Release 1.13.5

This commit is contained in:
ci core model
2026-05-07 08:25:49 +00:00
parent b9b3c9e308
commit 26c24571f4
19 changed files with 25 additions and 3465 deletions

View File

@@ -4,8 +4,6 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ItemInputAPI } from "./itemInput";
import type { ItemPhotoUriUpdatedResponse } from "./itemInput";
import type { ItemPhotoUriUpdatedRequest } from "./itemInput";
import type { ItemCustomFieldsUpdatedResponse } from "./itemInput";
import type { ItemCustomFieldsUpdatedRequest } from "./itemInput";
import type { ItemSanitisedResponse } from "./itemInput";
@@ -90,10 +88,6 @@ export interface IItemInputAPIClient {
* @generated from protobuf rpc: CustomFieldsUpdated
*/
customFieldsUpdated(input: ItemCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<ItemCustomFieldsUpdatedRequest, ItemCustomFieldsUpdatedResponse>;
/**
* @generated from protobuf rpc: PhotoUriUpdated
*/
photoUriUpdated(input: ItemPhotoUriUpdatedRequest, options?: RpcOptions): UnaryCall<ItemPhotoUriUpdatedRequest, ItemPhotoUriUpdatedResponse>;
}
/**
*
@@ -191,11 +185,4 @@ export class ItemInputAPIClient implements IItemInputAPIClient, ServiceInfo {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<ItemCustomFieldsUpdatedRequest, ItemCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: PhotoUriUpdated
*/
photoUriUpdated(input: ItemPhotoUriUpdatedRequest, options?: RpcOptions): UnaryCall<ItemPhotoUriUpdatedRequest, ItemPhotoUriUpdatedResponse> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<ItemPhotoUriUpdatedRequest, ItemPhotoUriUpdatedResponse>("unary", this._transport, method, opt, input);
}
}

View File

@@ -724,62 +724,6 @@ export interface ItemCustomFieldsUpdatedResponse {
*/
ID?: EntityID;
}
/**
* @generated from protobuf message api.ItemPhotoUriUpdatedPayload
*/
export interface ItemPhotoUriUpdatedPayload {
/**
* @generated from protobuf field: string PhotoURI = 1
*/
PhotoURI: string;
}
/**
* @generated from protobuf message api.ItemPhotoUriUpdatedEvent
*/
export interface ItemPhotoUriUpdatedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.ItemPhotoUriUpdatedPayload Payload = 3
*/
Payload?: ItemPhotoUriUpdatedPayload;
}
/**
* @generated from protobuf message api.ItemPhotoUriUpdatedRequest
*/
export interface ItemPhotoUriUpdatedRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.ItemPhotoUriUpdatedPayload Payload = 3
*/
Payload?: ItemPhotoUriUpdatedPayload;
}
/**
* @generated from protobuf message api.ItemPhotoUriUpdatedResponse
*/
export interface ItemPhotoUriUpdatedResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
// @generated message type with reflection information, may provide speed optimized methods
class ItemCreatedPayload$Type extends MessageType<ItemCreatedPayload> {
constructor() {
@@ -2984,226 +2928,6 @@ class ItemCustomFieldsUpdatedResponse$Type extends MessageType<ItemCustomFieldsU
* @generated MessageType for protobuf message api.ItemCustomFieldsUpdatedResponse
*/
export const ItemCustomFieldsUpdatedResponse = new ItemCustomFieldsUpdatedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ItemPhotoUriUpdatedPayload$Type extends MessageType<ItemPhotoUriUpdatedPayload> {
constructor() {
super("api.ItemPhotoUriUpdatedPayload", [
{ no: 1, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"https://reflex-visibility-forever.jpg\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["PhotoURI"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "PhotoUriUpdated" });
}
create(value?: PartialMessage<ItemPhotoUriUpdatedPayload>): ItemPhotoUriUpdatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.PhotoURI = "";
if (value !== undefined)
reflectionMergePartial<ItemPhotoUriUpdatedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemPhotoUriUpdatedPayload): ItemPhotoUriUpdatedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string PhotoURI */ 1:
message.PhotoURI = 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: ItemPhotoUriUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string PhotoURI = 1; */
if (message.PhotoURI !== "")
writer.tag(1, WireType.LengthDelimited).string(message.PhotoURI);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ItemPhotoUriUpdatedPayload
*/
export const ItemPhotoUriUpdatedPayload = new ItemPhotoUriUpdatedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ItemPhotoUriUpdatedEvent$Type extends MessageType<ItemPhotoUriUpdatedEvent> {
constructor() {
super("api.ItemPhotoUriUpdatedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemPhotoUriUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "api.messageType": "Event", "api.inputEvent": "PhotoUriUpdated" });
}
create(value?: PartialMessage<ItemPhotoUriUpdatedEvent>): ItemPhotoUriUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ItemPhotoUriUpdatedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemPhotoUriUpdatedEvent): ItemPhotoUriUpdatedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.ItemPhotoUriUpdatedPayload Payload */ 3:
message.Payload = ItemPhotoUriUpdatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: ItemPhotoUriUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
if (message.Header)
EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.ItemPhotoUriUpdatedPayload Payload = 3; */
if (message.Payload)
ItemPhotoUriUpdatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.ItemPhotoUriUpdatedEvent
*/
export const ItemPhotoUriUpdatedEvent = new ItemPhotoUriUpdatedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ItemPhotoUriUpdatedRequest$Type extends MessageType<ItemPhotoUriUpdatedRequest> {
constructor() {
super("api.ItemPhotoUriUpdatedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemPhotoUriUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PhotoUriUpdated" });
}
create(value?: PartialMessage<ItemPhotoUriUpdatedRequest>): ItemPhotoUriUpdatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ItemPhotoUriUpdatedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemPhotoUriUpdatedRequest): ItemPhotoUriUpdatedRequest {
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 /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.ItemPhotoUriUpdatedPayload Payload */ 3:
message.Payload = ItemPhotoUriUpdatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: ItemPhotoUriUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.ItemPhotoUriUpdatedPayload Payload = 3; */
if (message.Payload)
ItemPhotoUriUpdatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.ItemPhotoUriUpdatedRequest
*/
export const ItemPhotoUriUpdatedRequest = new ItemPhotoUriUpdatedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ItemPhotoUriUpdatedResponse$Type extends MessageType<ItemPhotoUriUpdatedResponse> {
constructor() {
super("api.ItemPhotoUriUpdatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "PhotoUriUpdated" });
}
create(value?: PartialMessage<ItemPhotoUriUpdatedResponse>): ItemPhotoUriUpdatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ItemPhotoUriUpdatedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemPhotoUriUpdatedResponse): ItemPhotoUriUpdatedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 1:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
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: ItemPhotoUriUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, 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.ItemPhotoUriUpdatedResponse
*/
export const ItemPhotoUriUpdatedResponse = new ItemPhotoUriUpdatedResponse$Type();
/**
* @generated ServiceType for protobuf service api.ItemInputAPI
*/
@@ -3217,6 +2941,5 @@ export const ItemInputAPI = new ServiceType("api.ItemInputAPI", [
{ name: "AttachmentAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "An attachment is added for the Item." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ItemAttachmentAddedRequest, O: ItemAttachmentAddedResponse },
{ name: "AttachmentRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "An attachment is removed for the Item." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ItemAttachmentRemovedRequest, O: ItemAttachmentRemovedResponse },
{ name: "Sanitised", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "An Item has been sanitised." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": false, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ItemSanitisedRequest, O: ItemSanitisedResponse },
{ name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ItemCustomFieldsUpdatedRequest, O: ItemCustomFieldsUpdatedResponse },
{ name: "PhotoUriUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "Photo Uri has been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ItemPhotoUriUpdatedRequest, O: ItemPhotoUriUpdatedResponse }
{ name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Item Inputs"], description: "CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ItemCustomFieldsUpdatedRequest, O: ItemCustomFieldsUpdatedResponse }
], { "api.serviceType": "Api", "api.k8sService": "api-server" });

View File

@@ -1,12 +1,4 @@
{
"API_KEY_ALREADY_EXISTS": {
"TechMessage": "API key already exists for {name}",
"UserMessage": "API key already exists for {name}"
},
"API_KEY_NOT_FOUND": {
"TechMessage": "API key not found for {name}",
"UserMessage": "API key not found for {name}"
},
"APPOINTMENT_ACTOR_UNKNOWN": {
"TechMessage": "Actor {ressource} unknown or not well defined",
"UserMessage": "Actor {ressource} unknown or not well defined"

View File

@@ -1,12 +1,4 @@
{
"API_KEY_ALREADY_EXISTS": {
"TechMessage": "",
"UserMessage": ""
},
"API_KEY_NOT_FOUND": {
"TechMessage": "",
"UserMessage": ""
},
"APPOINTMENT_ACTOR_UNKNOWN": {
"TechMessage": "",
"UserMessage": ""

View File

@@ -1,12 +1,4 @@
{
"API_KEY_ALREADY_EXISTS": {
"TechMessage": "",
"UserMessage": ""
},
"API_KEY_NOT_FOUND": {
"TechMessage": "",
"UserMessage": ""
},
"APPOINTMENT_ACTOR_UNKNOWN": {
"TechMessage": "",
"UserMessage": ""

View File

@@ -1,12 +1,4 @@
{
"API_KEY_ALREADY_EXISTS": {
"TechMessage": "",
"UserMessage": ""
},
"API_KEY_NOT_FOUND": {
"TechMessage": "",
"UserMessage": ""
},
"APPOINTMENT_ACTOR_UNKNOWN": {
"TechMessage": "",
"UserMessage": ""

View File

@@ -1,12 +1,4 @@
{
"API_KEY_ALREADY_EXISTS": {
"TechMessage": "",
"UserMessage": ""
},
"API_KEY_NOT_FOUND": {
"TechMessage": "",
"UserMessage": ""
},
"APPOINTMENT_ACTOR_UNKNOWN": {
"TechMessage": "",
"UserMessage": ""

View File

@@ -1,12 +1,4 @@
{
"API_KEY_ALREADY_EXISTS": {
"TechMessage": "",
"UserMessage": ""
},
"API_KEY_NOT_FOUND": {
"TechMessage": "",
"UserMessage": ""
},
"APPOINTMENT_ACTOR_UNKNOWN": {
"TechMessage": "",
"UserMessage": ""

View File

@@ -1,12 +1,4 @@
{
"API_KEY_ALREADY_EXISTS": {
"TechMessage": "",
"UserMessage": ""
},
"API_KEY_NOT_FOUND": {
"TechMessage": "",
"UserMessage": ""
},
"APPOINTMENT_ACTOR_UNKNOWN": {
"TechMessage": "",
"UserMessage": ""

View File

@@ -141,10 +141,6 @@ export interface OrderPayload {
* @generated from protobuf field: api.ETA OrderETA = 23
*/
OrderETA?: ETA;
/**
* @generated from protobuf field: bool Anticipated = 24
*/
Anticipated: boolean;
}
/**
* Order entity
@@ -270,8 +266,7 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
{ no: 20, name: "Claims", kind: "message", localName: "Claims", jsonName: "Claims", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims per type" }, "api.aggKey": "ClaimTypeID", "api.aggSkip": "ClaimAdded" } },
{ no: 21, name: "ClaimNumber", kind: "scalar", localName: "ClaimNumber", jsonName: "ClaimNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of claims" } } },
{ no: 22, name: "ExecutionflowETAs", kind: "message", localName: "ExecutionflowETAs", jsonName: "ExecutionflowETAs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ETAbyExecutionflow, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for each executionflow attached to the order" }, "api.aggKey": "ExecutionflowID", "api.aggSkip": "ExecutionflowETAUpdated" } },
{ no: 23, name: "OrderETA", kind: "message", localName: "OrderETA", jsonName: "OrderETA", T: () => ETA, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for the order, computed from ETA of the execitionFlows" }, "api.aggSkip": "ETAUpdated" } },
{ no: 24, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } }
{ no: 23, name: "OrderETA", kind: "message", localName: "OrderETA", jsonName: "OrderETA", T: () => ETA, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for the order, computed from ETA of the execitionFlows" }, "api.aggSkip": "ETAUpdated" } }
]);
}
create(value?: PartialMessage<OrderPayload>): OrderPayload {
@@ -286,7 +281,6 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
message.Claims = [];
message.ClaimNumber = 0;
message.ExecutionflowETAs = [];
message.Anticipated = false;
if (value !== undefined)
reflectionMergePartial<OrderPayload>(this, message, value);
return message;
@@ -362,9 +356,6 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
case /* api.ETA OrderETA */ 23:
message.OrderETA = ETA.internalBinaryRead(reader, reader.uint32(), options, message.OrderETA);
break;
case /* bool Anticipated */ 24:
message.Anticipated = reader.bool();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -443,9 +434,6 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
/* api.ETA OrderETA = 23; */
if (message.OrderETA)
ETA.internalBinaryWrite(message.OrderETA, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
/* bool Anticipated = 24; */
if (message.Anticipated !== false)
writer.tag(24, WireType.Varint).bool(message.Anticipated);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -89,10 +89,6 @@ export interface OrderBuildExecutionflowPayload {
* @generated from protobuf field: repeated api.OrderLine Lines = 11
*/
Lines: OrderLine[];
/**
* @generated from protobuf field: bool Anticipated = 17
*/
Anticipated: boolean;
}
/**
* @generated from protobuf message api.OrderBuildExecutionflow
@@ -129,10 +125,6 @@ export interface OrderPropagateLinesToExecutionflowPayload {
* @generated from protobuf field: repeated api.OrderLine Lines = 1
*/
Lines: OrderLine[];
/**
* @generated from protobuf field: bool Anticipated = 2
*/
Anticipated: boolean;
}
/**
* @generated from protobuf message api.OrderPropagateLinesToExecutionflow
@@ -174,8 +166,7 @@ class OrderBuildExecutionflowPayload$Type extends MessageType<OrderBuildExecutio
{ no: 9, name: "Carrier", kind: "message", localName: "Carrier", jsonName: "Carrier", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Definition of the order carrier" } } },
{ no: 16, name: "CarrierService", kind: "scalar", localName: "CarrierService", jsonName: "CarrierService", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of carrier service" } } },
{ no: 10, name: "RequestedMilestones", kind: "message", localName: "RequestedMilestones", jsonName: "RequestedMilestones", T: () => OrderRequestedMilestones },
{ no: 11, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } },
{ no: 17, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } }
{ no: 11, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Build Executionflow from Order" } }, "api.messageType": "Command", "api.payload": true, "api.action": "BuildExecutionflow" });
}
create(value?: PartialMessage<OrderBuildExecutionflowPayload>): OrderBuildExecutionflowPayload {
@@ -184,7 +175,6 @@ class OrderBuildExecutionflowPayload$Type extends MessageType<OrderBuildExecutio
message.MetaData = [];
message.CarrierService = "";
message.Lines = [];
message.Anticipated = false;
if (value !== undefined)
reflectionMergePartial<OrderBuildExecutionflowPayload>(this, message, value);
return message;
@@ -230,9 +220,6 @@ class OrderBuildExecutionflowPayload$Type extends MessageType<OrderBuildExecutio
case /* repeated api.OrderLine Lines */ 11:
message.Lines.push(OrderLine.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* bool Anticipated */ 17:
message.Anticipated = reader.bool();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -281,9 +268,6 @@ class OrderBuildExecutionflowPayload$Type extends MessageType<OrderBuildExecutio
/* string CarrierService = 16; */
if (message.CarrierService !== "")
writer.tag(16, WireType.LengthDelimited).string(message.CarrierService);
/* bool Anticipated = 17; */
if (message.Anticipated !== false)
writer.tag(17, WireType.Varint).bool(message.Anticipated);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -372,14 +356,12 @@ export const OrderBuildExecutionflow = new OrderBuildExecutionflow$Type();
class OrderPropagateLinesToExecutionflowPayload$Type extends MessageType<OrderPropagateLinesToExecutionflowPayload> {
constructor() {
super("api.OrderPropagateLinesToExecutionflowPayload", [
{ no: 1, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } },
{ no: 2, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } }
{ no: 1, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Propagate lines from Order to Executionflow" } }, "api.messageType": "Command", "api.payload": true, "api.action": "PropagateLinesToExecutionflow" });
}
create(value?: PartialMessage<OrderPropagateLinesToExecutionflowPayload>): OrderPropagateLinesToExecutionflowPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.Lines = [];
message.Anticipated = false;
if (value !== undefined)
reflectionMergePartial<OrderPropagateLinesToExecutionflowPayload>(this, message, value);
return message;
@@ -392,9 +374,6 @@ class OrderPropagateLinesToExecutionflowPayload$Type extends MessageType<OrderPr
case /* repeated api.OrderLine Lines */ 1:
message.Lines.push(OrderLine.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* bool Anticipated */ 2:
message.Anticipated = reader.bool();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -410,9 +389,6 @@ class OrderPropagateLinesToExecutionflowPayload$Type extends MessageType<OrderPr
/* repeated api.OrderLine Lines = 1; */
for (let i = 0; i < message.Lines.length; i++)
OrderLine.internalBinaryWrite(message.Lines[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* bool Anticipated = 2; */
if (message.Anticipated !== false)
writer.tag(2, WireType.Varint).bool(message.Anticipated);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -4,24 +4,6 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { OrderInputAPI } from "./orderInput";
import type { OrderReceiptCompletedResponse } from "./orderInput";
import type { OrderReceiptCompletedRequest } from "./orderInput";
import type { OrderReceiptStartedResponse } from "./orderInput";
import type { OrderReceiptStartedRequest } from "./orderInput";
import type { OrderReceiptExpectedResponse } from "./orderInput";
import type { OrderReceiptExpectedRequest } from "./orderInput";
import type { OrderTransportCompletedResponse } from "./orderInput";
import type { OrderTransportCompletedRequest } from "./orderInput";
import type { OrderTransportStartedResponse } from "./orderInput";
import type { OrderTransportStartedRequest } from "./orderInput";
import type { OrderTransportExpectedResponse } from "./orderInput";
import type { OrderTransportExpectedRequest } from "./orderInput";
import type { OrderPreparationCompletedResponse } from "./orderInput";
import type { OrderPreparationCompletedRequest } from "./orderInput";
import type { OrderPreparationStartedResponse } from "./orderInput";
import type { OrderPreparationStartedRequest } from "./orderInput";
import type { OrderPreparationExpectedResponse } from "./orderInput";
import type { OrderPreparationExpectedRequest } from "./orderInput";
import type { OrderCustomFieldsUpdatedResponse } from "./orderInput";
import type { OrderCustomFieldsUpdatedRequest } from "./orderInput";
import type { OrderSanitisedResponse } from "./orderInput";
@@ -158,42 +140,6 @@ export interface IOrderInputAPIClient {
* @generated from protobuf rpc: CustomFieldsUpdated
*/
customFieldsUpdated(input: OrderCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<OrderCustomFieldsUpdatedRequest, OrderCustomFieldsUpdatedResponse>;
/**
* @generated from protobuf rpc: PreparationExpected
*/
preparationExpected(input: OrderPreparationExpectedRequest, options?: RpcOptions): UnaryCall<OrderPreparationExpectedRequest, OrderPreparationExpectedResponse>;
/**
* @generated from protobuf rpc: PreparationStarted
*/
preparationStarted(input: OrderPreparationStartedRequest, options?: RpcOptions): UnaryCall<OrderPreparationStartedRequest, OrderPreparationStartedResponse>;
/**
* @generated from protobuf rpc: PreparationCompleted
*/
preparationCompleted(input: OrderPreparationCompletedRequest, options?: RpcOptions): UnaryCall<OrderPreparationCompletedRequest, OrderPreparationCompletedResponse>;
/**
* @generated from protobuf rpc: TransportExpected
*/
transportExpected(input: OrderTransportExpectedRequest, options?: RpcOptions): UnaryCall<OrderTransportExpectedRequest, OrderTransportExpectedResponse>;
/**
* @generated from protobuf rpc: TransportStarted
*/
transportStarted(input: OrderTransportStartedRequest, options?: RpcOptions): UnaryCall<OrderTransportStartedRequest, OrderTransportStartedResponse>;
/**
* @generated from protobuf rpc: TransportCompleted
*/
transportCompleted(input: OrderTransportCompletedRequest, options?: RpcOptions): UnaryCall<OrderTransportCompletedRequest, OrderTransportCompletedResponse>;
/**
* @generated from protobuf rpc: ReceiptExpected
*/
receiptExpected(input: OrderReceiptExpectedRequest, options?: RpcOptions): UnaryCall<OrderReceiptExpectedRequest, OrderReceiptExpectedResponse>;
/**
* @generated from protobuf rpc: ReceiptStarted
*/
receiptStarted(input: OrderReceiptStartedRequest, options?: RpcOptions): UnaryCall<OrderReceiptStartedRequest, OrderReceiptStartedResponse>;
/**
* @generated from protobuf rpc: ReceiptCompleted
*/
receiptCompleted(input: OrderReceiptCompletedRequest, options?: RpcOptions): UnaryCall<OrderReceiptCompletedRequest, OrderReceiptCompletedResponse>;
}
/**
*
@@ -354,67 +300,4 @@ export class OrderInputAPIClient implements IOrderInputAPIClient, ServiceInfo {
const method = this.methods[20], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderCustomFieldsUpdatedRequest, OrderCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: PreparationExpected
*/
preparationExpected(input: OrderPreparationExpectedRequest, options?: RpcOptions): UnaryCall<OrderPreparationExpectedRequest, OrderPreparationExpectedResponse> {
const method = this.methods[21], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderPreparationExpectedRequest, OrderPreparationExpectedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: PreparationStarted
*/
preparationStarted(input: OrderPreparationStartedRequest, options?: RpcOptions): UnaryCall<OrderPreparationStartedRequest, OrderPreparationStartedResponse> {
const method = this.methods[22], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderPreparationStartedRequest, OrderPreparationStartedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: PreparationCompleted
*/
preparationCompleted(input: OrderPreparationCompletedRequest, options?: RpcOptions): UnaryCall<OrderPreparationCompletedRequest, OrderPreparationCompletedResponse> {
const method = this.methods[23], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderPreparationCompletedRequest, OrderPreparationCompletedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: TransportExpected
*/
transportExpected(input: OrderTransportExpectedRequest, options?: RpcOptions): UnaryCall<OrderTransportExpectedRequest, OrderTransportExpectedResponse> {
const method = this.methods[24], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderTransportExpectedRequest, OrderTransportExpectedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: TransportStarted
*/
transportStarted(input: OrderTransportStartedRequest, options?: RpcOptions): UnaryCall<OrderTransportStartedRequest, OrderTransportStartedResponse> {
const method = this.methods[25], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderTransportStartedRequest, OrderTransportStartedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: TransportCompleted
*/
transportCompleted(input: OrderTransportCompletedRequest, options?: RpcOptions): UnaryCall<OrderTransportCompletedRequest, OrderTransportCompletedResponse> {
const method = this.methods[26], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderTransportCompletedRequest, OrderTransportCompletedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ReceiptExpected
*/
receiptExpected(input: OrderReceiptExpectedRequest, options?: RpcOptions): UnaryCall<OrderReceiptExpectedRequest, OrderReceiptExpectedResponse> {
const method = this.methods[27], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderReceiptExpectedRequest, OrderReceiptExpectedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ReceiptStarted
*/
receiptStarted(input: OrderReceiptStartedRequest, options?: RpcOptions): UnaryCall<OrderReceiptStartedRequest, OrderReceiptStartedResponse> {
const method = this.methods[28], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderReceiptStartedRequest, OrderReceiptStartedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ReceiptCompleted
*/
receiptCompleted(input: OrderReceiptCompletedRequest, options?: RpcOptions): UnaryCall<OrderReceiptCompletedRequest, OrderReceiptCompletedResponse> {
const method = this.methods[29], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderReceiptCompletedRequest, OrderReceiptCompletedResponse>("unary", this._transport, method, opt, input);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.14.0-SNAPSHOT-260506153549",
"version": "1.13.5",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

25
site.ts
View File

@@ -1252,14 +1252,9 @@ export interface GetBookingSegmentationsResponse {
/**
* Name of the Site
*
* @deprecated
* @generated from protobuf field: repeated api.Segmentation SegmentationChoices = 1 [deprecated = true]
* @generated from protobuf field: repeated api.Segmentation SegmentationChoices = 1
*/
SegmentationChoices: Segmentation[];
/**
* @generated from protobuf field: repeated api.PrjMetadata SegmentationKeys = 2
*/
SegmentationKeys: PrjMetadata[];
}
/**
* @generated from protobuf message api.GetMyBookingContextRequest
@@ -3132,7 +3127,7 @@ class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest
constructor() {
super("api.GetBookingContextRequest", [
{ 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"] } } });
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ActorID", "AppointmentType"] } } });
}
create(value?: PartialMessage<GetBookingContextRequest>): GetBookingContextRequest {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -4896,7 +4891,7 @@ class GetBookingSegmentationsRequest$Type extends MessageType<GetBookingSegmenta
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 5, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
{ no: 6, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType"] } } });
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ActorID", "AppointmentType"] } } });
}
create(value?: PartialMessage<GetBookingSegmentationsRequest>): GetBookingSegmentationsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -4974,14 +4969,12 @@ export const GetBookingSegmentationsRequest = new GetBookingSegmentationsRequest
class GetBookingSegmentationsResponse$Type extends MessageType<GetBookingSegmentationsResponse> {
constructor() {
super("api.GetBookingSegmentationsResponse", [
{ no: 1, name: "SegmentationChoices", kind: "message", localName: "SegmentationChoices", jsonName: "SegmentationChoices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
{ no: 2, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadata }
{ no: 1, name: "SegmentationChoices", kind: "message", localName: "SegmentationChoices", jsonName: "SegmentationChoices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation }
]);
}
create(value?: PartialMessage<GetBookingSegmentationsResponse>): GetBookingSegmentationsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SegmentationChoices = [];
message.SegmentationKeys = [];
if (value !== undefined)
reflectionMergePartial<GetBookingSegmentationsResponse>(this, message, value);
return message;
@@ -4991,12 +4984,9 @@ class GetBookingSegmentationsResponse$Type extends MessageType<GetBookingSegment
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Segmentation SegmentationChoices = 1 [deprecated = true] */ 1:
case /* repeated api.Segmentation SegmentationChoices */ 1:
message.SegmentationChoices.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.PrjMetadata SegmentationKeys */ 2:
message.SegmentationKeys.push(PrjMetadata.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -5009,12 +4999,9 @@ class GetBookingSegmentationsResponse$Type extends MessageType<GetBookingSegment
return message;
}
internalBinaryWrite(message: GetBookingSegmentationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Segmentation SegmentationChoices = 1 [deprecated = true]; */
/* repeated api.Segmentation SegmentationChoices = 1; */
for (let i = 0; i < message.SegmentationChoices.length; i++)
Segmentation.internalBinaryWrite(message.SegmentationChoices[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.PrjMetadata SegmentationKeys = 2; */
for (let i = 0; i < message.SegmentationKeys.length; i++)
PrjMetadata.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -15,8 +15,8 @@ import { ResponseHeader } from "./shared";
import { Slot } from "./slotbooking";
import { EntityID } from "./shared";
import { BookableSlot } from "./slotbooking";
import { AppointmentContent } from "./slotbooking";
import { MetadataElement } from "./shared";
import { AppointmentContent } from "./slotbooking";
import { SegmentationSelection } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
import { RequestProjectHeader } from "./shared";
@@ -38,16 +38,10 @@ export interface GetBookingSlotsRequest {
AppointmentType: AppointmentType;
/**
* Set of segmentation constraining the slot booking
* TODO delete after upgrade model
*
* @deprecated
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4 [deprecated = true]
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* @generated from protobuf field: repeated api.MetadataElement SegmentationKeys = 14
*/
SegmentationKeys: MetadataElement[];
/**
* @generated from protobuf field: string StartDate = 5
*/
@@ -131,16 +125,10 @@ export interface BookAppointmentPayload {
AppointmentType: AppointmentType;
/**
* Set of segmentation constraining the slot booking
* TODO delete after upgrade model
*
* @deprecated
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 2 [deprecated = true]
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 2
*/
SegmentationSelections: SegmentationSelection[];
/**
* @generated from protobuf field: repeated api.MetadataElement SegmentationKeys = 14
*/
SegmentationKeys: MetadataElement[];
/**
* Carrier information metadata
*
@@ -435,10 +423,6 @@ export interface CheckBookingAppointmentEditableResponse {
* @generated from protobuf field: bool IsForceEditable = 4
*/
IsForceEditable: boolean;
/**
* @generated from protobuf field: bool SiteHasCarrierInformation = 5
*/
SiteHasCarrierInformation: boolean;
}
/**
* LockBookingRequest
@@ -467,7 +451,6 @@ class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 14, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Segmentation keys" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 5, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } },
{ no: 6, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } },
{ no: 7, name: "SkippedAppointmentIDs", kind: "scalar", localName: "SkippedAppointmentIDs", jsonName: "SkippedAppointmentIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
@@ -475,13 +458,12 @@ class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
{ no: 11, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
{ no: 12, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 13, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType"] } } });
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "SegmentationSelections"] } } });
}
create(value?: PartialMessage<GetBookingSlotsRequest>): GetBookingSlotsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.SegmentationSelections = [];
message.SegmentationKeys = [];
message.StartDate = "";
message.EndDate = "";
message.SkippedAppointmentIDs = [];
@@ -502,12 +484,9 @@ class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
case /* api.AppointmentType AppointmentType */ 2:
message.AppointmentType = reader.int32();
break;
case /* repeated api.SegmentationSelection SegmentationSelections = 4 [deprecated = true] */ 4:
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.MetadataElement SegmentationKeys */ 14:
message.SegmentationKeys.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string StartDate */ 5:
message.StartDate = reader.string();
break;
@@ -547,7 +526,7 @@ class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
/* api.AppointmentType AppointmentType = 2; */
if (message.AppointmentType !== 0)
writer.tag(2, WireType.Varint).int32(message.AppointmentType);
/* repeated api.SegmentationSelection SegmentationSelections = 4 [deprecated = true]; */
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* string StartDate = 5; */
@@ -571,9 +550,6 @@ class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
/* repeated api.MetadataElement MetaData = 13; */
for (let i = 0; i < message.MetaData.length; i++)
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
/* repeated api.MetadataElement SegmentationKeys = 14; */
for (let i = 0; i < message.SegmentationKeys.length; i++)
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -705,7 +681,6 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
super("api.BookAppointmentPayload", [
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 2, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 14, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Segmentation keys" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 3, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 4, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
{ no: 6, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
@@ -715,13 +690,12 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
{ no: 10, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
{ no: 11, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
{ no: 13, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType", "Slot", "CarrierInformation", "Attendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType", "Slot", "SegmentationSelections", "CarrierInformation", "Attendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
}
create(value?: PartialMessage<BookAppointmentPayload>): BookAppointmentPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.SegmentationSelections = [];
message.SegmentationKeys = [];
message.CarrierInformation = [];
message.MetaData = [];
message.Reason = "";
@@ -740,12 +714,9 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
case /* api.AppointmentType AppointmentType */ 1:
message.AppointmentType = reader.int32();
break;
case /* repeated api.SegmentationSelection SegmentationSelections = 2 [deprecated = true] */ 2:
case /* repeated api.SegmentationSelection SegmentationSelections */ 2:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.MetadataElement SegmentationKeys */ 14:
message.SegmentationKeys.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.MetadataElement CarrierInformation */ 3:
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
@@ -788,7 +759,7 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
/* api.AppointmentType AppointmentType = 1; */
if (message.AppointmentType !== 0)
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
/* repeated api.SegmentationSelection SegmentationSelections = 2 [deprecated = true]; */
/* repeated api.SegmentationSelection SegmentationSelections = 2; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* repeated api.MetadataElement CarrierInformation = 3; */
@@ -818,9 +789,6 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
/* repeated string Emails = 13; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(13, WireType.LengthDelimited).string(message.Emails[i]);
/* repeated api.MetadataElement SegmentationKeys = 14; */
for (let i = 0; i < message.SegmentationKeys.length; i++)
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1551,15 +1519,13 @@ class CheckBookingAppointmentEditableResponse$Type extends MessageType<CheckBook
constructor() {
super("api.CheckBookingAppointmentEditableResponse", [
{ no: 3, name: "IsEditable", kind: "scalar", localName: "IsEditable", jsonName: "IsEditable", T: 8 /*ScalarType.BOOL*/ },
{ no: 4, name: "IsForceEditable", kind: "scalar", localName: "IsForceEditable", jsonName: "IsForceEditable", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "SiteHasCarrierInformation", kind: "scalar", localName: "SiteHasCarrierInformation", jsonName: "SiteHasCarrierInformation", T: 8 /*ScalarType.BOOL*/ }
{ no: 4, name: "IsForceEditable", kind: "scalar", localName: "IsForceEditable", jsonName: "IsForceEditable", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<CheckBookingAppointmentEditableResponse>): CheckBookingAppointmentEditableResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.IsEditable = false;
message.IsForceEditable = false;
message.SiteHasCarrierInformation = false;
if (value !== undefined)
reflectionMergePartial<CheckBookingAppointmentEditableResponse>(this, message, value);
return message;
@@ -1575,9 +1541,6 @@ class CheckBookingAppointmentEditableResponse$Type extends MessageType<CheckBook
case /* bool IsForceEditable */ 4:
message.IsForceEditable = reader.bool();
break;
case /* bool SiteHasCarrierInformation */ 5:
message.SiteHasCarrierInformation = reader.bool();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -1596,9 +1559,6 @@ class CheckBookingAppointmentEditableResponse$Type extends MessageType<CheckBook
/* bool IsForceEditable = 4; */
if (message.IsForceEditable !== false)
writer.tag(4, WireType.Varint).bool(message.IsForceEditable);
/* bool SiteHasCarrierInformation = 5; */
if (message.SiteHasCarrierInformation !== false)
writer.tag(5, WireType.Varint).bool(message.SiteHasCarrierInformation);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -189,7 +189,7 @@ class StockGenerateDelta$Type extends MessageType<StockGenerateDelta> {
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockGenerateDeltaPayload },
{ no: 4, name: "EventPayload", kind: "message", localName: "EventPayload", jsonName: "EventPayload", T: () => StockGenerateDeltaPayload },
{ no: 5, name: "PreviousPayload", kind: "message", localName: "PreviousPayload", jsonName: "PreviousPayload", T: () => StockGenerateDeltaPayload }
], { "api.messageType": "Command", "api.action": "GenerateDelta", "api.resultingEvent": "movement.Generated", "api.triggerEventFilters": "Snapshotted", "api.windowMethod": "TumblingProcessingTimeWindows", "api.keyByExpression": "obj.getHeader().getProject()" });
], { "api.messageType": "Command", "api.action": "GenerateDelta", "api.resultingEvent": "movement.Generated", "api.triggerEventFilters": "Snapshotted" });
}
create(value?: PartialMessage<StockGenerateDelta>): StockGenerateDelta {
const message = globalThis.Object.create((this.messagePrototype!));

View File

@@ -4,14 +4,6 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { UserService } from "./user";
import type { ResolveAPIKeyResult } from "./user";
import type { ResolveAPIKeyRequest } from "./user";
import type { RenewAPIKeyResult } from "./user";
import type { RenewAPIKeyRequest } from "./user";
import type { RevokeAPIKeyResult } from "./user";
import type { RevokeAPIKeyRequest } from "./user";
import type { GenerateAPIKeyResult } from "./user";
import type { GenerateAPIKeyRequest } from "./user";
import type { UpdateTwoFAPlatformResult } from "./user";
import type { UpdateTwoFAPlatformRequest } from "./user";
import type { ForceProjectUserTwoFARequest } from "./user";
@@ -305,22 +297,6 @@ export interface IUserServiceClient {
* @generated from protobuf rpc: UpdatePlatformTwoFA
*/
updatePlatformTwoFA(input: UpdateTwoFAPlatformRequest, options?: RpcOptions): UnaryCall<UpdateTwoFAPlatformRequest, UpdateTwoFAPlatformResult>;
/**
* @generated from protobuf rpc: GenerateAPIKey
*/
generateAPIKey(input: GenerateAPIKeyRequest, options?: RpcOptions): UnaryCall<GenerateAPIKeyRequest, GenerateAPIKeyResult>;
/**
* @generated from protobuf rpc: RevokeAPIKey
*/
revokeAPIKey(input: RevokeAPIKeyRequest, options?: RpcOptions): UnaryCall<RevokeAPIKeyRequest, RevokeAPIKeyResult>;
/**
* @generated from protobuf rpc: RenewAPIKey
*/
renewAPIKey(input: RenewAPIKeyRequest, options?: RpcOptions): UnaryCall<RenewAPIKeyRequest, RenewAPIKeyResult>;
/**
* @generated from protobuf rpc: ResolveAPIKey
*/
resolveAPIKey(input: ResolveAPIKeyRequest, options?: RpcOptions): UnaryCall<ResolveAPIKeyRequest, ResolveAPIKeyResult>;
}
/**
* @generated from protobuf service api.UserService
@@ -688,32 +664,4 @@ export class UserServiceClient implements IUserServiceClient, ServiceInfo {
const method = this.methods[50], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateTwoFAPlatformRequest, UpdateTwoFAPlatformResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GenerateAPIKey
*/
generateAPIKey(input: GenerateAPIKeyRequest, options?: RpcOptions): UnaryCall<GenerateAPIKeyRequest, GenerateAPIKeyResult> {
const method = this.methods[51], opt = this._transport.mergeOptions(options);
return stackIntercept<GenerateAPIKeyRequest, GenerateAPIKeyResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RevokeAPIKey
*/
revokeAPIKey(input: RevokeAPIKeyRequest, options?: RpcOptions): UnaryCall<RevokeAPIKeyRequest, RevokeAPIKeyResult> {
const method = this.methods[52], opt = this._transport.mergeOptions(options);
return stackIntercept<RevokeAPIKeyRequest, RevokeAPIKeyResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RenewAPIKey
*/
renewAPIKey(input: RenewAPIKeyRequest, options?: RpcOptions): UnaryCall<RenewAPIKeyRequest, RenewAPIKeyResult> {
const method = this.methods[53], opt = this._transport.mergeOptions(options);
return stackIntercept<RenewAPIKeyRequest, RenewAPIKeyResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ResolveAPIKey
*/
resolveAPIKey(input: ResolveAPIKeyRequest, options?: RpcOptions): UnaryCall<ResolveAPIKeyRequest, ResolveAPIKeyResult> {
const method = this.methods[54], opt = this._transport.mergeOptions(options);
return stackIntercept<ResolveAPIKeyRequest, ResolveAPIKeyResult>("unary", this._transport, method, opt, input);
}
}

404
user.ts
View File

@@ -1139,64 +1139,6 @@ export interface ListUsersInRoleResult {
*/
Users: User[];
}
/**
* ===== API Key =====
*
* @generated from protobuf message api.GenerateAPIKeyRequest
*/
export interface GenerateAPIKeyRequest {
}
/**
* @generated from protobuf message api.GenerateAPIKeyResult
*/
export interface GenerateAPIKeyResult {
/**
* @generated from protobuf field: string APIKey = 1
*/
APIKey: string;
}
/**
* @generated from protobuf message api.RevokeAPIKeyRequest
*/
export interface RevokeAPIKeyRequest {
}
/**
* @generated from protobuf message api.RevokeAPIKeyResult
*/
export interface RevokeAPIKeyResult {
}
/**
* @generated from protobuf message api.RenewAPIKeyRequest
*/
export interface RenewAPIKeyRequest {
}
/**
* @generated from protobuf message api.RenewAPIKeyResult
*/
export interface RenewAPIKeyResult {
/**
* @generated from protobuf field: string APIKey = 1
*/
APIKey: string;
}
/**
* @generated from protobuf message api.ResolveAPIKeyRequest
*/
export interface ResolveAPIKeyRequest {
/**
* @generated from protobuf field: string APIKey = 1
*/
APIKey: string;
}
/**
* @generated from protobuf message api.ResolveAPIKeyResult
*/
export interface ResolveAPIKeyResult {
/**
* @generated from protobuf field: string UserID = 1
*/
UserID: string;
}
/**
* @generated from protobuf enum api.TwoFAValue
*/
@@ -5875,346 +5817,6 @@ class ListUsersInRoleResult$Type extends MessageType<ListUsersInRoleResult> {
* @generated MessageType for protobuf message api.ListUsersInRoleResult
*/
export const ListUsersInRoleResult = new ListUsersInRoleResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GenerateAPIKeyRequest$Type extends MessageType<GenerateAPIKeyRequest> {
constructor() {
super("api.GenerateAPIKeyRequest", []);
}
create(value?: PartialMessage<GenerateAPIKeyRequest>): GenerateAPIKeyRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GenerateAPIKeyRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GenerateAPIKeyRequest): GenerateAPIKeyRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
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: GenerateAPIKeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GenerateAPIKeyRequest
*/
export const GenerateAPIKeyRequest = new GenerateAPIKeyRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GenerateAPIKeyResult$Type extends MessageType<GenerateAPIKeyResult> {
constructor() {
super("api.GenerateAPIKeyResult", [
{ no: 1, name: "APIKey", kind: "scalar", localName: "APIKey", jsonName: "APIKey", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<GenerateAPIKeyResult>): GenerateAPIKeyResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.APIKey = "";
if (value !== undefined)
reflectionMergePartial<GenerateAPIKeyResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GenerateAPIKeyResult): GenerateAPIKeyResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string APIKey */ 1:
message.APIKey = 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: GenerateAPIKeyResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string APIKey = 1; */
if (message.APIKey !== "")
writer.tag(1, WireType.LengthDelimited).string(message.APIKey);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GenerateAPIKeyResult
*/
export const GenerateAPIKeyResult = new GenerateAPIKeyResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RevokeAPIKeyRequest$Type extends MessageType<RevokeAPIKeyRequest> {
constructor() {
super("api.RevokeAPIKeyRequest", []);
}
create(value?: PartialMessage<RevokeAPIKeyRequest>): RevokeAPIKeyRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<RevokeAPIKeyRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeAPIKeyRequest): RevokeAPIKeyRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
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: RevokeAPIKeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RevokeAPIKeyRequest
*/
export const RevokeAPIKeyRequest = new RevokeAPIKeyRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RevokeAPIKeyResult$Type extends MessageType<RevokeAPIKeyResult> {
constructor() {
super("api.RevokeAPIKeyResult", []);
}
create(value?: PartialMessage<RevokeAPIKeyResult>): RevokeAPIKeyResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<RevokeAPIKeyResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeAPIKeyResult): RevokeAPIKeyResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
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: RevokeAPIKeyResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RevokeAPIKeyResult
*/
export const RevokeAPIKeyResult = new RevokeAPIKeyResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RenewAPIKeyRequest$Type extends MessageType<RenewAPIKeyRequest> {
constructor() {
super("api.RenewAPIKeyRequest", []);
}
create(value?: PartialMessage<RenewAPIKeyRequest>): RenewAPIKeyRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<RenewAPIKeyRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RenewAPIKeyRequest): RenewAPIKeyRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
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: RenewAPIKeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RenewAPIKeyRequest
*/
export const RenewAPIKeyRequest = new RenewAPIKeyRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RenewAPIKeyResult$Type extends MessageType<RenewAPIKeyResult> {
constructor() {
super("api.RenewAPIKeyResult", [
{ no: 1, name: "APIKey", kind: "scalar", localName: "APIKey", jsonName: "APIKey", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<RenewAPIKeyResult>): RenewAPIKeyResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.APIKey = "";
if (value !== undefined)
reflectionMergePartial<RenewAPIKeyResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RenewAPIKeyResult): RenewAPIKeyResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string APIKey */ 1:
message.APIKey = 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: RenewAPIKeyResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string APIKey = 1; */
if (message.APIKey !== "")
writer.tag(1, WireType.LengthDelimited).string(message.APIKey);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RenewAPIKeyResult
*/
export const RenewAPIKeyResult = new RenewAPIKeyResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ResolveAPIKeyRequest$Type extends MessageType<ResolveAPIKeyRequest> {
constructor() {
super("api.ResolveAPIKeyRequest", [
{ no: 1, name: "APIKey", kind: "scalar", localName: "APIKey", jsonName: "APIKey", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["APIKey"] } } });
}
create(value?: PartialMessage<ResolveAPIKeyRequest>): ResolveAPIKeyRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.APIKey = "";
if (value !== undefined)
reflectionMergePartial<ResolveAPIKeyRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveAPIKeyRequest): ResolveAPIKeyRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string APIKey */ 1:
message.APIKey = 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: ResolveAPIKeyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string APIKey = 1; */
if (message.APIKey !== "")
writer.tag(1, WireType.LengthDelimited).string(message.APIKey);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ResolveAPIKeyRequest
*/
export const ResolveAPIKeyRequest = new ResolveAPIKeyRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ResolveAPIKeyResult$Type extends MessageType<ResolveAPIKeyResult> {
constructor() {
super("api.ResolveAPIKeyResult", [
{ no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ResolveAPIKeyResult>): ResolveAPIKeyResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.UserID = "";
if (value !== undefined)
reflectionMergePartial<ResolveAPIKeyResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveAPIKeyResult): ResolveAPIKeyResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string UserID */ 1:
message.UserID = 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: ResolveAPIKeyResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string UserID = 1; */
if (message.UserID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.UserID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ResolveAPIKeyResult
*/
export const ResolveAPIKeyResult = new ResolveAPIKeyResult$Type();
/**
* @generated ServiceType for protobuf service api.UserService
*/
@@ -6269,9 +5871,5 @@ export const UserService = new ServiceType("api.UserService", [
{ name: "SetAttachmentTypeRoles", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Set AttachmentType Roles of a user" }, "api.rscType": "Project", "api.roles": "Platform.Project-User", "google.api.method_visibility": { restriction: "SDK" } }, I: SetUserAttachmentTypeRolesRequest, O: SetUserAttachmentTypeRolesResult },
{ name: "ForceTwoFA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Enable or disable forced 2FA for a user" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceTwoFAOrganisationRequest, O: ForceTwoFAResult },
{ name: "ForceProjectUserTwoFA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Enables forced 2FA for a user on a project. Cannot disable forced 2FA." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceProjectUserTwoFARequest, O: ForceTwoFAResult },
{ name: "UpdatePlatformTwoFA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Update 2FA value for a user" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateTwoFAPlatformRequest, O: UpdateTwoFAPlatformResult },
{ name: "GenerateAPIKey", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Generate an API key for the user" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GenerateAPIKeyRequest, O: GenerateAPIKeyResult },
{ name: "RevokeAPIKey", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Revoke the user's API key" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RevokeAPIKeyRequest, O: RevokeAPIKeyResult },
{ name: "RenewAPIKey", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Renew the user's API key" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RenewAPIKeyRequest, O: RenewAPIKeyResult },
{ name: "ResolveAPIKey", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Resolve an API key to the corresponding user ID" }, "api.rscType": "Platform", "api.roles": "Platform.API-Key", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ResolveAPIKeyRequest, O: ResolveAPIKeyResult }
{ name: "UpdatePlatformTwoFA", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin User"], description: "Update 2FA value for a user" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateTwoFAPlatformRequest, O: UpdateTwoFAPlatformResult }
], { "api.k8sService": "organisation-server" });