-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
// @generated by Stately. DO NOT EDIT. | ||
/* eslint-disable */ | ||
|
||
import { createClient as createGenericClient, StatelyError } from "@stately-cloud/client"; | ||
import clientPackageJson from "@stately-cloud/client/package.json" with { "type": "json" }; | ||
import { createClient as createGenericClient } from '@stately-cloud/client'; | ||
import { | ||
ApiAppSchema, | ||
GlobalSettingsSchema, | ||
ItemAnnotationSchema, | ||
ItemHashTagSchema, | ||
LoadoutSchema, | ||
LoadoutShareSchema, | ||
SearchSchema, | ||
SettingsSchema, | ||
TriumphSchema, | ||
ArtifactUnlocksSchema, | ||
CollapsedSectionSchema, | ||
CustomStatDefSchema, | ||
CustomStatWeightsEntrySchema, | ||
CustomStatsEntrySchema, | ||
CustomStatWeightsEntrySchema, | ||
GlobalSettingsSchema, | ||
InGameLoadoutIdentifiersSchema, | ||
ItemAnnotationSchema, | ||
ItemHashTagSchema, | ||
LoadoutItemSchema, | ||
LoadoutParametersSchema, | ||
LoadoutSchema, | ||
LoadoutShareSchema, | ||
ModsByBucketEntrySchema, | ||
SearchSchema, | ||
SettingsSchema, | ||
SocketOverrideSchema, | ||
StatConstraintSchema, | ||
StatConstraintsEntrySchema, | ||
} from "./stately_pb.js"; | ||
TriumphSchema, | ||
} from './stately_pb.js'; | ||
|
||
export const typeToSchema = { | ||
// itemTypes | ||
"ApiApp": ApiAppSchema, | ||
"GlobalSettings": GlobalSettingsSchema, | ||
"ItemAnnotation": ItemAnnotationSchema, | ||
"ItemHashTag": ItemHashTagSchema, | ||
"Loadout": LoadoutSchema, | ||
"LoadoutShare": LoadoutShareSchema, | ||
"Search": SearchSchema, | ||
"Settings": SettingsSchema, | ||
"Triumph": TriumphSchema, | ||
ApiApp: ApiAppSchema, | ||
GlobalSettings: GlobalSettingsSchema, | ||
ItemAnnotation: ItemAnnotationSchema, | ||
ItemHashTag: ItemHashTagSchema, | ||
Loadout: LoadoutSchema, | ||
LoadoutShare: LoadoutShareSchema, | ||
Search: SearchSchema, | ||
Settings: SettingsSchema, | ||
Triumph: TriumphSchema, | ||
|
||
// objectTypes | ||
"ArtifactUnlocks": ArtifactUnlocksSchema, | ||
"CollapsedSection": CollapsedSectionSchema, | ||
"CustomStatDef": CustomStatDefSchema, | ||
"CustomStatWeightsEntry": CustomStatWeightsEntrySchema, | ||
"CustomStatsEntry": CustomStatsEntrySchema, | ||
"InGameLoadoutIdentifiers": InGameLoadoutIdentifiersSchema, | ||
"LoadoutItem": LoadoutItemSchema, | ||
"LoadoutParameters": LoadoutParametersSchema, | ||
"ModsByBucketEntry": ModsByBucketEntrySchema, | ||
"SocketOverride": SocketOverrideSchema, | ||
"StatConstraint": StatConstraintSchema, | ||
"StatConstraintsEntry": StatConstraintsEntrySchema, | ||
ArtifactUnlocks: ArtifactUnlocksSchema, | ||
CollapsedSection: CollapsedSectionSchema, | ||
CustomStatDef: CustomStatDefSchema, | ||
CustomStatWeightsEntry: CustomStatWeightsEntrySchema, | ||
CustomStatsEntry: CustomStatsEntrySchema, | ||
InGameLoadoutIdentifiers: InGameLoadoutIdentifiersSchema, | ||
LoadoutItem: LoadoutItemSchema, | ||
LoadoutParameters: LoadoutParametersSchema, | ||
ModsByBucketEntry: ModsByBucketEntrySchema, | ||
SocketOverride: SocketOverrideSchema, | ||
StatConstraint: StatConstraintSchema, | ||
StatConstraintsEntry: StatConstraintsEntrySchema, | ||
}; | ||
|
||
/** The version of the schema that this client was generated for. */ | ||
const SCHEMA_VERSION_ID = 2; | ||
|
||
export function createClient(storeId, opts) { | ||
|
||
return createGenericClient(storeId, typeToSchema, SCHEMA_VERSION_ID, opts); | ||
} | ||
|
||
if (createGenericClient.length < 3) { | ||
throw new Error("Your version of @stately-cloud/client is too old. Please update to the latest version."); | ||
throw new Error( | ||
'Your version of @stately-cloud/client is too old. Please update to the latest version.', | ||
); | ||
} |