You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-251029154347",
|
||||
"version": "1.12.0-SNAPSHOT-251030110520",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { SiteService } from "./site";
|
||||
import type { NextSiteCounterResponse } from "./site";
|
||||
import type { NextSiteCounterRequest } from "./site";
|
||||
import type { ClearAliasesOfProjectResponse } from "./site";
|
||||
import type { ClearAliasesOfProjectRequest } from "./site";
|
||||
import type { ClearAliasesOfSiteResponse } from "./site";
|
||||
@@ -186,6 +188,10 @@ export interface ISiteServiceClient {
|
||||
* @generated from protobuf rpc: ClearAliasesOfProject
|
||||
*/
|
||||
clearAliasesOfProject(input: ClearAliasesOfProjectRequest, options?: RpcOptions): UnaryCall<ClearAliasesOfProjectRequest, ClearAliasesOfProjectResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: NextSiteCounter
|
||||
*/
|
||||
nextSiteCounter(input: NextSiteCounterRequest, options?: RpcOptions): UnaryCall<NextSiteCounterRequest, NextSiteCounterResponse>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service api.SiteService
|
||||
@@ -413,4 +419,11 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
||||
const method = this.methods[30], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ClearAliasesOfProjectRequest, ClearAliasesOfProjectResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: NextSiteCounter
|
||||
*/
|
||||
nextSiteCounter(input: NextSiteCounterRequest, options?: RpcOptions): UnaryCall<NextSiteCounterRequest, NextSiteCounterResponse> {
|
||||
const method = this.methods[31], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<NextSiteCounterRequest, NextSiteCounterResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
126
site.ts
126
site.ts
@@ -1308,6 +1308,28 @@ export interface GetBasicSettingsResponse {
|
||||
*/
|
||||
PhotoURI: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.NextSiteCounterRequest
|
||||
*/
|
||||
export interface NextSiteCounterRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 2
|
||||
*/
|
||||
ActorID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.NextSiteCounterResponse
|
||||
*/
|
||||
export interface NextSiteCounterResponse {
|
||||
/**
|
||||
* @generated from protobuf field: int64 Value = 1
|
||||
*/
|
||||
Value: bigint;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetUnitsRequest
|
||||
*/
|
||||
@@ -5026,6 +5048,107 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
|
||||
*/
|
||||
export const GetBasicSettingsResponse = new GetBasicSettingsResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class NextSiteCounterRequest$Type extends MessageType<NextSiteCounterRequest> {
|
||||
constructor() {
|
||||
super("api.NextSiteCounterRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<NextSiteCounterRequest>): NextSiteCounterRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ActorID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NextSiteCounterRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NextSiteCounterRequest): NextSiteCounterRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string ActorID */ 2:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NextSiteCounterRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ActorID = 2; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.NextSiteCounterRequest
|
||||
*/
|
||||
export const NextSiteCounterRequest = new NextSiteCounterRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class NextSiteCounterResponse$Type extends MessageType<NextSiteCounterResponse> {
|
||||
constructor() {
|
||||
super("api.NextSiteCounterResponse", [
|
||||
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<NextSiteCounterResponse>): NextSiteCounterResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Value = 0n;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NextSiteCounterResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NextSiteCounterResponse): NextSiteCounterResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* int64 Value */ 1:
|
||||
message.Value = reader.int64().toBigInt();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NextSiteCounterResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* int64 Value = 1; */
|
||||
if (message.Value !== 0n)
|
||||
writer.tag(1, WireType.Varint).int64(message.Value);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.NextSiteCounterResponse
|
||||
*/
|
||||
export const NextSiteCounterResponse = new NextSiteCounterResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetUnitsRequest$Type extends MessageType<GetUnitsRequest> {
|
||||
constructor() {
|
||||
super("api.GetUnitsRequest", [
|
||||
@@ -5277,5 +5400,6 @@ export const SiteService = new ServiceType("api.SiteService", [
|
||||
{ name: "SetSiteAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Set a new site alias." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: SetSiteAliasRequest, O: SetSiteAliasResponse },
|
||||
{ name: "ClearSiteAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete a site alias." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearSiteAliasRequest, O: ClearSiteAliasResponse },
|
||||
{ name: "ClearAliasesOfSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Clear all site alias for a site." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearAliasesOfSiteRequest, O: ClearAliasesOfSiteResponse },
|
||||
{ name: "ClearAliasesOfProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Clear all site alias for a project." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearAliasesOfProjectRequest, O: ClearAliasesOfProjectResponse }
|
||||
{ name: "ClearAliasesOfProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Clear all site alias for a project." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearAliasesOfProjectRequest, O: ClearAliasesOfProjectResponse },
|
||||
{ name: "NextSiteCounter", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], summary: "Get the next value for a site key using either siteID or projectID and ActorID.", description: "Get the next value for a site key using either siteID or projectID and ActorID." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: NextSiteCounterRequest, O: NextSiteCounterResponse }
|
||||
], { "api.k8sService": "core-site" });
|
||||
|
||||
Reference in New Issue
Block a user