Skip to content

Commit

Permalink
Fix gen code
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Nov 15, 2024
1 parent d22f297 commit 9e552ff
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions api/stately/generated/stately_item_types.js
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.',
);
}

0 comments on commit 9e552ff

Please sign in to comment.