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-251104082745",
|
||||
"version": "1.12.0-SNAPSHOT-251104100227",
|
||||
"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 { ProjectService } from "./proj";
|
||||
import type { IsProjectExistResult } from "./proj";
|
||||
import type { IsProjectExistRequest } from "./proj";
|
||||
import type { CleanDeletedProjectsResult } from "./proj";
|
||||
import type { CleanDeletedProjectsRequest } from "./proj";
|
||||
import type { DeleteProjectInDBResult } from "./proj";
|
||||
@@ -87,6 +89,10 @@ export interface IProjectServiceClient {
|
||||
* @generated from protobuf rpc: CleanDeletedProjects
|
||||
*/
|
||||
cleanDeletedProjects(input: CleanDeletedProjectsRequest, options?: RpcOptions): UnaryCall<CleanDeletedProjectsRequest, CleanDeletedProjectsResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: IsProjectExist
|
||||
*/
|
||||
isProjectExist(input: IsProjectExistRequest, options?: RpcOptions): UnaryCall<IsProjectExistRequest, IsProjectExistResult>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service api.ProjectService
|
||||
@@ -188,4 +194,11 @@ export class ProjectServiceClient implements IProjectServiceClient, ServiceInfo
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CleanDeletedProjectsRequest, CleanDeletedProjectsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: IsProjectExist
|
||||
*/
|
||||
isProjectExist(input: IsProjectExistRequest, options?: RpcOptions): UnaryCall<IsProjectExistRequest, IsProjectExistResult> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<IsProjectExistRequest, IsProjectExistResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
114
proj.ts
114
proj.ts
@@ -405,6 +405,24 @@ export interface CleanDeletedProjectsRequest {
|
||||
*/
|
||||
export interface CleanDeletedProjectsResult {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.IsProjectExistRequest
|
||||
*/
|
||||
export interface IsProjectExistRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.IsProjectExistResult
|
||||
*/
|
||||
export interface IsProjectExistResult {
|
||||
/**
|
||||
* @generated from protobuf field: bool Exist = 1
|
||||
*/
|
||||
Exist: boolean;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.ProjectStatusEnum
|
||||
*/
|
||||
@@ -2069,6 +2087,99 @@ class CleanDeletedProjectsResult$Type extends MessageType<CleanDeletedProjectsRe
|
||||
* @generated MessageType for protobuf message api.CleanDeletedProjectsResult
|
||||
*/
|
||||
export const CleanDeletedProjectsResult = new CleanDeletedProjectsResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class IsProjectExistRequest$Type extends MessageType<IsProjectExistRequest> {
|
||||
constructor() {
|
||||
super("api.IsProjectExistRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<IsProjectExistRequest>): IsProjectExistRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<IsProjectExistRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IsProjectExistRequest): IsProjectExistRequest {
|
||||
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;
|
||||
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: IsProjectExistRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.IsProjectExistRequest
|
||||
*/
|
||||
export const IsProjectExistRequest = new IsProjectExistRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class IsProjectExistResult$Type extends MessageType<IsProjectExistResult> {
|
||||
constructor() {
|
||||
super("api.IsProjectExistResult", [
|
||||
{ no: 1, name: "Exist", kind: "scalar", localName: "Exist", jsonName: "Exist", T: 8 /*ScalarType.BOOL*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<IsProjectExistResult>): IsProjectExistResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Exist = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<IsProjectExistResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IsProjectExistResult): IsProjectExistResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* bool Exist */ 1:
|
||||
message.Exist = reader.bool();
|
||||
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: IsProjectExistResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* bool Exist = 1; */
|
||||
if (message.Exist !== false)
|
||||
writer.tag(1, WireType.Varint).bool(message.Exist);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.IsProjectExistResult
|
||||
*/
|
||||
export const IsProjectExistResult = new IsProjectExistResult$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.ProjectService
|
||||
*/
|
||||
@@ -2085,5 +2196,6 @@ export const ProjectService = new ServiceType("api.ProjectService", [
|
||||
{ name: "GetMyUIContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Project"], description: "List all user accessible projects for non-SA users" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetMyContextRequest, O: GetMyContextResult },
|
||||
{ name: "GetMyContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Project"], description: "List all user accessible projects. For non-SA users, it is advised to use GetMyUIContext instead." }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetMyContextRequest, O: GetMyContextResult },
|
||||
{ name: "DeleteProjectInDB", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Project"], description: "Delete the project in database" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Deletion", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteProjectInDBRequest, O: DeleteProjectInDBResult },
|
||||
{ name: "CleanDeletedProjects", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Project"], description: "Clear deleted projects in database" }, "api.rscType": "Platform", "api.roles": "Platform.Project", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CleanDeletedProjectsRequest, O: CleanDeletedProjectsResult }
|
||||
{ name: "CleanDeletedProjects", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Project"], description: "Clear deleted projects in database" }, "api.rscType": "Platform", "api.roles": "Platform.Project", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CleanDeletedProjectsRequest, O: CleanDeletedProjectsResult },
|
||||
{ name: "IsProjectExist", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Project"], description: "IsProjectExist" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: IsProjectExistRequest, O: IsProjectExistResult }
|
||||
], { "api.k8sService": "organisation-server", "api.roleManager": true, "api.resourceManager": true });
|
||||
|
||||
2
site.ts
2
site.ts
@@ -5453,7 +5453,7 @@ export const InitBookerProfileResponse = new InitBookerProfileResponse$Type();
|
||||
*/
|
||||
export const SiteService = new ServiceType("api.SiteService", [
|
||||
{ name: "GetSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get site settings" }, "api.rscType": "Project", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSettingsRequest, O: GetSettingsResponse },
|
||||
{ name: "UpdateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update site Settings" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSettingsRequest, O: UpdateSettingsResponse },
|
||||
{ name: "UpdateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update site Settings" }, "api.rscType": "Project", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSettingsRequest, O: UpdateSettingsResponse },
|
||||
{ name: "UploadPhoto", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Upload or replace the photo of the site. <br>Must be called using a multipart form-data content type request. <br> Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.SiteService/UploadPhoto -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F SiteID=mySiteID" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UploadPhotoRequest, O: UploadPhotoResponse },
|
||||
{ name: "DeletePhoto", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the photo of the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeletePhotoRequest, O: DeletePhotoResponse },
|
||||
{ name: "UploadInstructionDocument", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Upload or replace an instruction document on a site for a specific language. <br>Must be called using a multipart form-data content type request. <br> Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.SiteService/UploadInstructionDocument -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F SiteID=mySiteID -F DocID=myDocID -F LanguageCodeISO6391=en -F Name=myName -F AckRequired=False" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UploadInstructionDocumentRequest, O: UploadInstructionDocumentResponse },
|
||||
|
||||
Reference in New Issue
Block a user