diff --git a/index.ts b/index.ts index edc0580..a9ca64d 100644 --- a/index.ts +++ b/index.ts @@ -19,8 +19,6 @@ export * from './viz-project-settings' export * from './viz-tab.client' export * from './viz-tab' - export * from './viz-translations.client' - export * from './viz-translations' export * from './viz-user-settings.client' export * from './viz-user-settings' export * from './viz-view.client' diff --git a/package.json b/package.json index 1eb74e1..44496ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-viz-sdk", - "version": "1.13.0-SNAPSHOT-260223154647", + "version": "1.13.0-SNAPSHOT-260227144520", "description": "npm libs from visibility model proto files", "homepage": "", "main": "index.ts", diff --git a/viz-translations.client.ts b/viz-translations.client.ts deleted file mode 100644 index fbfbd19..0000000 --- a/viz-translations.client.ts +++ /dev/null @@ -1,110 +0,0 @@ -// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name -// @generated from protobuf file "viz-translations.proto" (package "vizapi", syntax proto3) -// tslint:disable -import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; -import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; -import { TranslationsService } from "./viz-translations"; -import type { GetLanguagesResult } from "./viz-translations"; -import type { GetLanguagesRequest } from "./viz-translations"; -import type { DeleteAllTranslationsResult } from "./viz-translations"; -import type { DeleteAllTranslationsRequest } from "./viz-translations"; -import type { ListTranslationsResult } from "./viz-translations"; -import type { ListTranslationsRequest } from "./viz-translations"; -import type { DeleteTranslationsResult } from "./viz-translations"; -import type { DeleteTranslationsRequest } from "./viz-translations"; -import type { PutTranslationsResult } from "./viz-translations"; -import type { PutTranslationsRequest } from "./viz-translations"; -import { stackIntercept } from "@protobuf-ts/runtime-rpc"; -import type { GetTranslationsResult } from "./viz-translations"; -import type { GetTranslationsRequest } from "./viz-translations"; -import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; -import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; -// =================================== -// ============= Service ============= -// =================================== - -/** - * @generated from protobuf service vizapi.TranslationsService - */ -export interface ITranslationsServiceClient { - /** - * @generated from protobuf rpc: Get - */ - get(input: GetTranslationsRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: Put - */ - put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: Delete - */ - delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: List - */ - list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: DeleteAll - */ - deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall; - /** - * @generated from protobuf rpc: GetLanguages - */ - getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall; -} -// =================================== -// ============= Service ============= -// =================================== - -/** - * @generated from protobuf service vizapi.TranslationsService - */ -export class TranslationsServiceClient implements ITranslationsServiceClient, ServiceInfo { - typeName = TranslationsService.typeName; - methods = TranslationsService.methods; - options = TranslationsService.options; - constructor(private readonly _transport: RpcTransport) { - } - /** - * @generated from protobuf rpc: Get - */ - get(input: GetTranslationsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[0], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: Put - */ - put(input: PutTranslationsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[1], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: Delete - */ - delete(input: DeleteTranslationsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[2], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: List - */ - list(input: ListTranslationsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[3], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: DeleteAll - */ - deleteAll(input: DeleteAllTranslationsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[4], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @generated from protobuf rpc: GetLanguages - */ - getLanguages(input: GetLanguagesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[5], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } -} diff --git a/viz-translations.ts b/viz-translations.ts deleted file mode 100644 index 867207c..0000000 --- a/viz-translations.ts +++ /dev/null @@ -1,1193 +0,0 @@ -// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name -// @generated from protobuf file "viz-translations.proto" (package "vizapi", syntax proto3) -// tslint:disable -import { ServiceType } from "@protobuf-ts/runtime-rpc"; -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import { WireType } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import { UnknownFieldHandler } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { reflectionMergePartial } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -import { RequestProjectHeader } from "./core/shared"; -// =================================== -// ============== Model ============== -// =================================== - -/** - * @generated from protobuf message vizapi.Label - */ -export interface Label { - /** - * @generated from protobuf field: string ID = 1 - */ - ID: string; // ID of the label (unique, ProjectID + Context + Label) - /** - * @generated from protobuf field: string ProjectID = 2 - */ - ProjectID: string; // ID of the project - /** - * @generated from protobuf field: string Context = 3 - */ - Context: string; // Context of the label (ex: "Order", "Product", "Customer", "User", "...") - /** - * @generated from protobuf field: string Label = 4 - */ - Label: string; // Label (ex: "Status", "Color", "Size") -} -/** - * @generated from protobuf message vizapi.LanguageCode - */ -export interface LanguageCode { - /** - * @generated from protobuf field: string Code = 1 - */ - Code: string; // ISO 639-1 code -} -/** - * @generated from protobuf message vizapi.Translation - */ -export interface Translation { - /** - * @generated from protobuf field: string LabelID = 1 - */ - LabelID: string; // ID of the label (unique, ProjectID + Context + Label) - /** - * @generated from protobuf field: string LanguageCode = 2 - */ - LanguageCode: string; // ICU - ISO 639-1 code - /** - * @generated from protobuf field: string Translation = 3 - */ - Translation: string; // Translation of the label in the given language code -} -// =================================== -// ======= Requests & Results ======== -// =================================== - -/** - * @generated from protobuf message vizapi.GetTranslationsRequest - */ -export interface GetTranslationsRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * @generated from protobuf field: string Context = 2 - */ - Context: string; - /** - * @generated from protobuf field: string Label = 3 - */ - Label: string; -} -/** - * @generated from protobuf message vizapi.GetTranslationsResult - */ -export interface GetTranslationsResult { - /** - * @generated from protobuf field: repeated vizapi.Translation Translations = 1 - */ - Translations: Translation[]; -} -/** - * Message used to Put a translation for a label in the PutTranslationsRequest - * - * @generated from protobuf message vizapi.PutTranslationMessage - */ -export interface PutTranslationMessage { - /** - * @generated from protobuf field: string LanguageCode = 1 - */ - LanguageCode: string; - /** - * @generated from protobuf field: string Translation = 2 - */ - Translation: string; -} -/** - * @generated from protobuf message vizapi.PutTranslationsRequest - */ -export interface PutTranslationsRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * @generated from protobuf field: string Context = 2 - */ - Context: string; - /** - * @generated from protobuf field: string Label = 3 - */ - Label: string; - /** - * @generated from protobuf field: repeated vizapi.PutTranslationMessage Translations = 4 - */ - Translations: PutTranslationMessage[]; -} -/** - * @generated from protobuf message vizapi.PutTranslationsResult - */ -export interface PutTranslationsResult { - /** - * @generated from protobuf field: repeated vizapi.Translation Translations = 1 - */ - Translations: Translation[]; -} -/** - * @generated from protobuf message vizapi.DeleteTranslationsRequest - */ -export interface DeleteTranslationsRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * @generated from protobuf field: string Context = 2 - */ - Context: string; - /** - * @generated from protobuf field: string Label = 3 - */ - Label: string; -} -/** - * @generated from protobuf message vizapi.DeleteTranslationsResult - */ -export interface DeleteTranslationsResult { -} -/** - * @generated from protobuf message vizapi.ListTranslationsRequest - */ -export interface ListTranslationsRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * @generated from protobuf field: string LanguageCode = 2 - */ - LanguageCode: string; -} -/** - * Messages for the ListTranslationsResult - * - * @generated from protobuf message vizapi.TranslationContextResult - */ -export interface TranslationContextResult { - /** - * @generated from protobuf field: string Name = 1 - */ - Name: string; - /** - * @generated from protobuf field: repeated vizapi.TranslationLabelResult Labels = 2 - */ - Labels: TranslationLabelResult[]; -} -/** - * @generated from protobuf message vizapi.TranslationLabelResult - */ -export interface TranslationLabelResult { - /** - * @generated from protobuf field: string Name = 1 - */ - Name: string; - /** - * @generated from protobuf field: string Translation = 2 - */ - Translation: string; -} -/** - * @generated from protobuf message vizapi.ListTranslationsResult - */ -export interface ListTranslationsResult { - /** - * @generated from protobuf field: repeated vizapi.TranslationContextResult Contexts = 1 - */ - Contexts: TranslationContextResult[]; -} -/** - * @generated from protobuf message vizapi.DeleteAllTranslationsRequest - */ -export interface DeleteAllTranslationsRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; -} -/** - * @generated from protobuf message vizapi.DeleteAllTranslationsResult - */ -export interface DeleteAllTranslationsResult { -} -/** - * @generated from protobuf message vizapi.GetLanguagesRequest - */ -export interface GetLanguagesRequest { -} -/** - * @generated from protobuf message vizapi.GetLanguagesResult - */ -export interface GetLanguagesResult { - /** - * @generated from protobuf field: repeated vizapi.LanguageCode Languages = 1 - */ - Languages: LanguageCode[]; -} -// @generated message type with reflection information, may provide speed optimized methods -class Label$Type extends MessageType