Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #250

Merged
merged 3 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 40 additions & 34 deletions api/stately/generated/stately_item_types.js
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.',
);
}
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --detectOpenHandles --verbose --coverage --forceExit",
"test:watch": "jest --watch",
"eslint-inspect": "pnpm dlx @eslint/config-inspector",
"generate": "stately schema generate -l js --schema-id 8030842688320564 --version 1 api/stately/generated",
"generate": "stately schema generate -l js --schema-id 8030842688320564 --version 2 api/stately/generated",
"generate-preview": "stately schema generate -l js --preview api/stately/schema/index.ts api/stately/generated",
"dim-api-types:build": "./build-dim-api-types.sh"
},
Expand All @@ -30,40 +30,40 @@
"@babel/plugin-transform-object-rest-spread": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@eslint/compat": "^1.2.2",
"@eslint/compat": "^1.2.3",
"@eslint/js": "^9.14.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.3.0",
"@sentry/cli": "^2.38.2",
"@stately-cloud/schema": "^0.9.0",
"@stately-cloud/schema": "^0.10.0",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.14",
"@types/jsonwebtoken": "^9.0.7",
"@types/lodash": "^4.17.13",
"@types/morgan": "^1.9.9",
"@types/pg": "^8.11.10",
"@types/uuid": "^9.0.8",
"@types/uuid": "^10.0.0",
"@types/vhost": "3.0.7",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"db-migrate": "^0.11.14",
"db-migrate-pg": "^1.5.2",
"eslint": "^9.14.0",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-regexp": "^2.7.0",
"eslint-plugin-sonarjs": "^1.0.4",
"globals": "^15.12.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^3.2.4",
"rollup": "^3.29.5",
"prettier-plugin-organize-imports": "^4.1.0",
"rollup": "^4.26.0",
"supertest-fetch": "^2.0.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.13.0"
"typescript-eslint": "^8.14.0"
},
"dependencies": {
"@bufbuild/protobuf": "^2.2.2",
Expand All @@ -88,7 +88,7 @@
"pg": "^8.13.1",
"pg-protocol": "^1.7.0",
"slugify": "^1.6.6",
"uuid": "^9.0.1",
"uuid": "^11.0.3",
"vhost": "^3.0.2"
},
"packageManager": "pnpm@8.9.0+sha256.8f5264ad1d100da11a6add6bb8a94c6f1e913f9e9261b2a551fabefad2ec0fec"
Expand Down
Loading