You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -128,14 +128,14 @@ class NotifCreatedPayload$Type extends MessageType<NotifCreatedPayload> {
|
||||
constructor() {
|
||||
super("api.NotifCreatedPayload", [
|
||||
{ no: 1, name: "NotificationType", kind: "enum", localName: "NotificationType", jsonName: "NotificationType", T: () => ["api.NotifTypeEnum", NotifTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of change to be notified" } } },
|
||||
{ no: 2, name: "IssuerID", kind: "scalar", localName: "IssuerID", jsonName: "IssuerID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the issuer (uuid format)" } } },
|
||||
{ no: 3, name: "Contacts", kind: "scalar", localName: "Contacts", jsonName: "Contacts", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifiers of the contact to notity (uuid format)" } } },
|
||||
{ no: 2, name: "IssuerID", kind: "scalar", localName: "IssuerID", jsonName: "IssuerID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the issuer (uuid format)" }, "validate.rules": { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } },
|
||||
{ no: 3, name: "Contacts", kind: "scalar", localName: "Contacts", jsonName: "Contacts", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifiers of the contact to notity (uuid format)" }, "validate.rules": { repeated: { items: { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } } } },
|
||||
{ no: 4, name: "Details", kind: "scalar", localName: "Details", jsonName: "Details", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "EntityDomain", kind: "scalar", localName: "EntityDomain", jsonName: "EntityDomain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity domain" } } },
|
||||
{ no: 6, name: "EntityType", kind: "scalar", localName: "EntityType", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of entity" } } },
|
||||
{ no: 7, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of entity" } } },
|
||||
{ no: 5, name: "EntityDomain", kind: "scalar", localName: "EntityDomain", jsonName: "EntityDomain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity domain" }, "validate.rules": { string: { in: ["trade", "collab"] } } } },
|
||||
{ no: 6, name: "EntityType", kind: "scalar", localName: "EntityType", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of entity" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 7, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of entity" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 8, name: "Tags", kind: "scalar", localName: "Tags", jsonName: "Tags", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Tags" } } }
|
||||
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["NotificationType", "IssuerID", "Contacts", "EntityDomain", "EntityType", "EntityRefID"] } } });
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["NotificationType", "IssuerID", "Contacts", "EntityDomain", "EntityType", "EntityRefID"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
|
||||
}
|
||||
create(value?: PartialMessage<NotifCreatedPayload>): NotifCreatedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -233,7 +233,7 @@ class NotifCreatedEvent$Type extends MessageType<NotifCreatedEvent> {
|
||||
{ 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: () => NotifCreatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "api.messageType": "Event", "api.inputEvent": "Created", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityID", "Payload"] } } });
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Created" });
|
||||
}
|
||||
create(value?: PartialMessage<NotifCreatedEvent>): NotifCreatedEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -293,7 +293,7 @@ class NotifCreatedRequest$Type extends MessageType<NotifCreatedRequest> {
|
||||
{ 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: () => NotifCreatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "api.messageType": "Request", "api.inputEvent": "Created", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityID", "Payload"] } } });
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" });
|
||||
}
|
||||
create(value?: PartialMessage<NotifCreatedRequest>): NotifCreatedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -403,5 +403,5 @@ export const NotifCreatedResponse = new NotifCreatedResponse$Type();
|
||||
* @generated ServiceType for protobuf service api.NotifInputAPI
|
||||
*/
|
||||
export const NotifInputAPI = new ServiceType("api.NotifInputAPI", [
|
||||
{ name: "Created", options: { "api.rscType": "Project", "api.roles": "Platform.Project-Notication", "api.platformReserved": true, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Notification Inputs"], description: "A notification has been created." }, "google.api.method_visibility": { restriction: "SDK" } }, I: NotifCreatedRequest, O: NotifCreatedResponse }
|
||||
{ name: "Created", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Notification Inputs"], description: "A notification has been created." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "Platform.Project-Notication", "api.platformReserved": true }, I: NotifCreatedRequest, O: NotifCreatedResponse }
|
||||
], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" });
|
||||
|
||||
Reference in New Issue
Block a user