Skip to content

Commit

Permalink
Merge pull request #246 from DestinyItemManager/stately-types
Browse files Browse the repository at this point in the history
Regenerate stately types
  • Loading branch information
bhollis authored Oct 31, 2024
2 parents 69ddd46 + 85541eb commit abb2be5
Show file tree
Hide file tree
Showing 8 changed files with 302 additions and 295 deletions.
7 changes: 4 additions & 3 deletions api/stately/generated/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Code generated by Stately. DO NOT EDIT.
// @generated by Stately. DO NOT EDIT.
/* eslint-disable */

export * from "./index_pb.js";
export * from "./index_item_types.js";
export * from "./stately_pb.js";
export * from "./stately_item_types.js";
7 changes: 4 additions & 3 deletions api/stately/generated/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Code generated by Stately. DO NOT EDIT.
// @generated by Stately. DO NOT EDIT.
/* eslint-disable */

export * from "./index_pb.js";
export * from "./index_item_types.js";
export * from "./stately_pb.js";
export * from "./stately_item_types.js";
279 changes: 0 additions & 279 deletions api/stately/generated/index_pb.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Code generated by Stately. DO NOT EDIT.
// @generated by Stately. DO NOT EDIT.
/* eslint-disable */

import type { DatabaseClient as GenericDatabaseClient, StoreID, ClientOptions } from "@stately-cloud/client";
import type {
Expand Down Expand Up @@ -32,7 +33,7 @@ import type {
SocketOverrideSchema,
StatConstraintSchema,
StatConstraintsEntrySchema,
} from "./index_pb.js";
} from "./stately_pb.js";

export declare const itemTypeToSchema: {
"ApiApp": typeof ApiAppSchema,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Code generated by Stately. DO NOT EDIT.
// @generated by Stately. DO NOT EDIT.
/* eslint-disable */

import { createClient as createGenericClient } from "@stately-cloud/client";
import { createClient as createGenericClient, StatelyError } from "@stately-cloud/client";
import {
ApiAppSchema,
GlobalSettingsSchema,
Expand All @@ -23,7 +24,7 @@ import {
SocketOverrideSchema,
StatConstraintSchema,
StatConstraintsEntrySchema,
} from "./index_pb.js";
} from "./stately_pb.js";

export const typeToSchema = {
// itemTypes
Expand Down Expand Up @@ -52,6 +53,9 @@ export const typeToSchema = {
"StatConstraintsEntry": StatConstraintsEntrySchema,
};

const SCHEMA_VERSION_ID = 1

export function createClient(storeId, opts) {
return createGenericClient(storeId, typeToSchema, opts);

return createGenericClient(storeId, typeToSchema, SCHEMA_VERSION_ID, opts);
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// @generated by protoc-gen-es v2.0.0 with parameter "target=js+dts,import_extension=.js"
// @generated from file index.proto (package stately.generated, syntax proto3)
// @generated from file stately.proto (package stately.generated, syntax proto3)
/* eslint-disable */

import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";

/**
* Describes the file index.proto.
* Describes the file stately.proto.
*/
export declare const file_index: GenFile;
export declare const file_stately: GenFile;

/**
* @generated from message stately.generated.ApiApp
Expand Down
Loading

0 comments on commit abb2be5

Please sign in to comment.