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

Regenerate stately types #246

Merged
merged 1 commit into from
Oct 31, 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
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