-
-
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.
Merge pull request #250 from DestinyItemManager/update-deps
Update dependencies
- Loading branch information
Showing
3 changed files
with
429 additions
and
424 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,61 +1,67 @@ | ||
// @generated by Stately. DO NOT EDIT. | ||
/* eslint-disable */ | ||
|
||
import { createClient as createGenericClient, StatelyError } from "@stately-cloud/client"; | ||
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, | ||
}; | ||
|
||
const SCHEMA_VERSION_ID = 1 | ||
/** 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.', | ||
); | ||
} |
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
Oops, something went wrong.