You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -497,10 +497,10 @@ class MovementCreatedPayload$Type extends MessageType<MovementCreatedPayload> {
|
||||
constructor() {
|
||||
super("api.MovementCreatedPayload", [
|
||||
{ no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Actor" } },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.entityRef": "Actor", "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 4, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Describe the goods movement with the provided goods quantity", required: ["Goods", "ActorID", "Movement"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created", "api.postAggMethods": "computeMovementQuantity,quantityByBranchLVs", "api.preAggMethods": "filterMovement", "api.idGenMethod": "genMoveCreatedId" });
|
||||
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created", "api.postAggMethods": "computeMovementQuantity,quantityByBranchLVs", "api.preAggMethods": "filterMovement", "api.idGenMethod": "genMoveCreatedId", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Describe the goods movement with the provided goods quantity", required: ["Goods", "ActorID", "Movement"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<MovementCreatedPayload>): MovementCreatedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -627,7 +627,7 @@ class MovementCreatedRequest$Type extends MessageType<MovementCreatedRequest> {
|
||||
{ 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_field": { description: "Header of the event request" } } },
|
||||
{ no: 4, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => NoID },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementCreatedPayload, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" });
|
||||
], { "api.messageType": "Request", "api.inputEvent": "Created", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<MovementCreatedRequest>): MovementCreatedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -738,11 +738,11 @@ class MovementGeneratedPayload$Type extends MessageType<MovementGeneratedPayload
|
||||
constructor() {
|
||||
super("api.MovementGeneratedPayload", [
|
||||
{ no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Actor" } },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.entityRef": "Actor", "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 4, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 8, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Describe the goods movement with the provided goods quantity", required: ["Goods", "ActorID", "Movement"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Generated", "api.postAggMethods": "computeMovementQuantity,quantityByBranchLVs", "api.preAggMethods": "filterMovement", "api.idGenMethod": "genMoveGeneratedId" });
|
||||
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Generated", "api.postAggMethods": "computeMovementQuantity,quantityByBranchLVs", "api.preAggMethods": "filterMovement", "api.idGenMethod": "genMoveGeneratedId", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Describe the goods movement with the provided goods quantity", required: ["Goods", "ActorID", "Movement"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<MovementGeneratedPayload>): MovementGeneratedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -875,7 +875,7 @@ class MovementGeneratedRequest$Type extends MessageType<MovementGeneratedRequest
|
||||
{ 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_field": { description: "Header of the event request" } } },
|
||||
{ no: 4, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => NoID },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementGeneratedPayload, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Generated" });
|
||||
], { "api.messageType": "Request", "api.inputEvent": "Generated", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<MovementGeneratedRequest>): MovementGeneratedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -1094,7 +1094,7 @@ class MovementStockValueUpdatedRequest$Type extends MessageType<MovementStockVal
|
||||
{ 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: () => MovementStockValueUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "StockValueUpdated" });
|
||||
], { "api.messageType": "Request", "api.inputEvent": "StockValueUpdated", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<MovementStockValueUpdatedRequest>): MovementStockValueUpdatedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -1204,7 +1204,7 @@ export const MovementStockValueUpdatedResponse = new MovementStockValueUpdatedRe
|
||||
class MovementClaimAddedPayload$Type extends MessageType<MovementClaimAddedPayload> {
|
||||
constructor() {
|
||||
super("api.MovementClaimAddedPayload", [
|
||||
{ no: 1, 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 added per type" }, "api.aggKey": "ClaimTypeID" } }
|
||||
{ no: 1, name: "Claims", kind: "message", localName: "Claims", jsonName: "Claims", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimSummary, options: { "api.aggKey": "ClaimTypeID", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims added per type" } } }
|
||||
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ClaimAdded" });
|
||||
}
|
||||
create(value?: PartialMessage<MovementClaimAddedPayload>): MovementClaimAddedPayload {
|
||||
@@ -1314,7 +1314,7 @@ class MovementClaimAddedRequest$Type extends MessageType<MovementClaimAddedReque
|
||||
{ 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: () => MovementClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ClaimAdded" });
|
||||
], { "api.messageType": "Request", "api.inputEvent": "ClaimAdded", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<MovementClaimAddedRequest>): MovementClaimAddedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -1534,7 +1534,7 @@ class MovementAttachmentAddedRequest$Type extends MessageType<MovementAttachment
|
||||
{ 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: () => MovementAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" });
|
||||
], { "api.messageType": "Request", "api.inputEvent": "AttachmentAdded", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<MovementAttachmentAddedRequest>): MovementAttachmentAddedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -1754,7 +1754,7 @@ class MovementAttachmentRemovedRequest$Type extends MessageType<MovementAttachme
|
||||
{ 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: () => MovementAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" });
|
||||
], { "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<MovementAttachmentRemovedRequest>): MovementAttachmentRemovedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -1863,7 +1863,7 @@ export const MovementAttachmentRemovedResponse = new MovementAttachmentRemovedRe
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MovementDeletedPayload$Type extends MessageType<MovementDeletedPayload> {
|
||||
constructor() {
|
||||
super("api.MovementDeletedPayload", [], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Deleted" });
|
||||
super("api.MovementDeletedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Deleted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } });
|
||||
}
|
||||
create(value?: PartialMessage<MovementDeletedPayload>): MovementDeletedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -2075,11 +2075,11 @@ export const MovementDeletedResponse = new MovementDeletedResponse$Type();
|
||||
* @generated ServiceType for protobuf service api.MovementInputAPI
|
||||
*/
|
||||
export const MovementInputAPI = new ServiceType("api.MovementInputAPI", [
|
||||
{ name: "Created", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "A stock has been moved. Called directly from WMS for requalification or fix." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: MovementCreatedRequest, O: MovementCreatedResponse },
|
||||
{ name: "Generated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "A stock has been moved. Called internally only, from outbound and inbound and stock" }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementGeneratedRequest, O: MovementGeneratedResponse },
|
||||
{ name: "StockValueUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "The stock value (after the movement is applied) is updated on the movement" }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementStockValueUpdatedRequest, O: MovementStockValueUpdatedResponse },
|
||||
{ name: "ClaimAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "A claim is added for the Stock movement." }, "api.rscType": "Project", "api.roles": "Platform.Project-Claim", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementClaimAddedRequest, O: MovementClaimAddedResponse },
|
||||
{ name: "AttachmentAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "An attachment is added for the Movement." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementAttachmentAddedRequest, O: MovementAttachmentAddedResponse },
|
||||
{ name: "AttachmentRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "An attachment is removed for the Movement." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementAttachmentRemovedRequest, O: MovementAttachmentRemovedResponse },
|
||||
{ name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "An Movement has been deleted. This is called from Reflex Platform Admin service to share the Organisation Movements." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: MovementDeletedRequest, O: MovementDeletedResponse }
|
||||
{ name: "Created", options: { "api.rscType": "Project", "api.roles": "Platform.Project-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "A stock has been moved. Called directly from WMS for requalification or fix." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: MovementCreatedRequest, O: MovementCreatedResponse },
|
||||
{ name: "Generated", options: { "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": true, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "A stock has been moved. Called internally only, from outbound and inbound and stock" }, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementGeneratedRequest, O: MovementGeneratedResponse },
|
||||
{ name: "StockValueUpdated", options: { "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": true, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "The stock value (after the movement is applied) is updated on the movement" }, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementStockValueUpdatedRequest, O: MovementStockValueUpdatedResponse },
|
||||
{ name: "ClaimAdded", options: { "api.rscType": "Project", "api.roles": "Platform.Project-Claim", "api.platformReserved": true, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "A claim is added for the Stock movement." }, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementClaimAddedRequest, O: MovementClaimAddedResponse },
|
||||
{ name: "AttachmentAdded", options: { "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "An attachment is added for the Movement." }, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementAttachmentAddedRequest, O: MovementAttachmentAddedResponse },
|
||||
{ name: "AttachmentRemoved", options: { "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "An attachment is removed for the Movement." }, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: MovementAttachmentRemovedRequest, O: MovementAttachmentRemovedResponse },
|
||||
{ name: "Deleted", options: { "api.rscType": "Project", "api.roles": "Platform.Project-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Movement Inputs"], description: "An Movement has been deleted. This is called from Reflex Platform Admin service to share the Organisation Movements." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: MovementDeletedRequest, O: MovementDeletedResponse }
|
||||
], { "api.serviceType": "Api", "api.k8sService": "api-server" });
|
||||
|
||||
Reference in New Issue
Block a user