You've already forked npm-core-sdk
Latest generation
This commit is contained in:
28
notif.ts
28
notif.ts
@@ -83,6 +83,16 @@ export interface NotifPayload {
|
||||
* @generated from protobuf field: string Tags = 8
|
||||
*/
|
||||
Tags: string;
|
||||
/**
|
||||
* List of contacts mail
|
||||
*
|
||||
* @generated from protobuf field: repeated string ContactMails = 9
|
||||
*/
|
||||
ContactMails: string[];
|
||||
/**
|
||||
* @generated from protobuf field: bool GroupSending = 10
|
||||
*/
|
||||
GroupSending: boolean;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.NotifTriplet
|
||||
@@ -172,7 +182,9 @@ class NotifPayload$Type extends MessageType<NotifPayload> {
|
||||
{ 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" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ 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" } } }
|
||||
{ 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" } } },
|
||||
{ no: 9, name: "ContactMails", kind: "scalar", localName: "ContactMails", jsonName: "ContactMails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Mail of the contact to notify" }, "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: 10, name: "GroupSending", kind: "scalar", localName: "GroupSending", jsonName: "GroupSending", T: 8 /*ScalarType.BOOL*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["NotificationType", "IssuerID", "Contacts", "OldStatus", "NewStatus", "EntityDomain", "EntityType", "EntityRefID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<NotifPayload>): NotifPayload {
|
||||
@@ -185,6 +197,8 @@ class NotifPayload$Type extends MessageType<NotifPayload> {
|
||||
message.EntityType = "";
|
||||
message.EntityRefID = "";
|
||||
message.Tags = "";
|
||||
message.ContactMails = [];
|
||||
message.GroupSending = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NotifPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -218,6 +232,12 @@ class NotifPayload$Type extends MessageType<NotifPayload> {
|
||||
case /* string Tags */ 8:
|
||||
message.Tags = reader.string();
|
||||
break;
|
||||
case /* repeated string ContactMails */ 9:
|
||||
message.ContactMails.push(reader.string());
|
||||
break;
|
||||
case /* bool GroupSending */ 10:
|
||||
message.GroupSending = reader.bool();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -254,6 +274,12 @@ class NotifPayload$Type extends MessageType<NotifPayload> {
|
||||
/* string Tags = 8; */
|
||||
if (message.Tags !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.Tags);
|
||||
/* repeated string ContactMails = 9; */
|
||||
for (let i = 0; i < message.ContactMails.length; i++)
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.ContactMails[i]);
|
||||
/* bool GroupSending = 10; */
|
||||
if (message.GroupSending !== false)
|
||||
writer.tag(10, WireType.Varint).bool(message.GroupSending);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -57,7 +57,11 @@ export interface NotifNotifyByMailPayload {
|
||||
*/
|
||||
Tags: string;
|
||||
/**
|
||||
* @generated from protobuf field: bool GroupSending = 9
|
||||
* @generated from protobuf field: repeated string ContactMails = 9
|
||||
*/
|
||||
ContactMails: string[];
|
||||
/**
|
||||
* @generated from protobuf field: bool GroupSending = 10
|
||||
*/
|
||||
GroupSending: boolean;
|
||||
}
|
||||
@@ -163,7 +167,8 @@ class NotifNotifyByMailPayload$Type extends MessageType<NotifNotifyByMailPayload
|
||||
{ no: 6, name: "EntityType", kind: "scalar", localName: "EntityType", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "Tags", kind: "scalar", localName: "Tags", jsonName: "Tags", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 9, name: "GroupSending", kind: "scalar", localName: "GroupSending", jsonName: "GroupSending", T: 8 /*ScalarType.BOOL*/ }
|
||||
{ no: 9, name: "ContactMails", kind: "scalar", localName: "ContactMails", jsonName: "ContactMails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "GroupSending", kind: "scalar", localName: "GroupSending", jsonName: "GroupSending", T: 8 /*ScalarType.BOOL*/ }
|
||||
], { "api.messageType": "Command", "api.payload": true, "api.action": "NotifyByMail" });
|
||||
}
|
||||
create(value?: PartialMessage<NotifNotifyByMailPayload>): NotifNotifyByMailPayload {
|
||||
@@ -176,6 +181,7 @@ class NotifNotifyByMailPayload$Type extends MessageType<NotifNotifyByMailPayload
|
||||
message.EntityType = "";
|
||||
message.EntityRefID = "";
|
||||
message.Tags = "";
|
||||
message.ContactMails = [];
|
||||
message.GroupSending = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NotifNotifyByMailPayload>(this, message, value);
|
||||
@@ -210,7 +216,10 @@ class NotifNotifyByMailPayload$Type extends MessageType<NotifNotifyByMailPayload
|
||||
case /* string Tags */ 8:
|
||||
message.Tags = reader.string();
|
||||
break;
|
||||
case /* bool GroupSending */ 9:
|
||||
case /* repeated string ContactMails */ 9:
|
||||
message.ContactMails.push(reader.string());
|
||||
break;
|
||||
case /* bool GroupSending */ 10:
|
||||
message.GroupSending = reader.bool();
|
||||
break;
|
||||
default:
|
||||
@@ -249,9 +258,12 @@ class NotifNotifyByMailPayload$Type extends MessageType<NotifNotifyByMailPayload
|
||||
/* string Tags = 8; */
|
||||
if (message.Tags !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.Tags);
|
||||
/* bool GroupSending = 9; */
|
||||
/* repeated string ContactMails = 9; */
|
||||
for (let i = 0; i < message.ContactMails.length; i++)
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.ContactMails[i]);
|
||||
/* bool GroupSending = 10; */
|
||||
if (message.GroupSending !== false)
|
||||
writer.tag(9, WireType.Varint).bool(message.GroupSending);
|
||||
writer.tag(10, WireType.Varint).bool(message.GroupSending);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -75,6 +75,10 @@ export interface NotifCreatedPayload {
|
||||
* @generated from protobuf field: repeated string ContactMails = 9
|
||||
*/
|
||||
ContactMails: string[];
|
||||
/**
|
||||
* @generated from protobuf field: bool GroupSending = 10
|
||||
*/
|
||||
GroupSending: boolean;
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
@@ -245,7 +249,8 @@ class NotifCreatedPayload$Type extends MessageType<NotifCreatedPayload> {
|
||||
{ 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" } } },
|
||||
{ no: 9, name: "ContactMails", kind: "scalar", localName: "ContactMails", jsonName: "ContactMails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Mail of the contact to notify" }, "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: 9, name: "ContactMails", kind: "scalar", localName: "ContactMails", jsonName: "ContactMails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Mail of the contact to notify" }, "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: 10, name: "GroupSending", kind: "scalar", localName: "GroupSending", jsonName: "GroupSending", T: 8 /*ScalarType.BOOL*/ }
|
||||
], { "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 {
|
||||
@@ -259,6 +264,7 @@ class NotifCreatedPayload$Type extends MessageType<NotifCreatedPayload> {
|
||||
message.EntityRefID = "";
|
||||
message.Tags = "";
|
||||
message.ContactMails = [];
|
||||
message.GroupSending = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NotifCreatedPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -295,6 +301,9 @@ class NotifCreatedPayload$Type extends MessageType<NotifCreatedPayload> {
|
||||
case /* repeated string ContactMails */ 9:
|
||||
message.ContactMails.push(reader.string());
|
||||
break;
|
||||
case /* bool GroupSending */ 10:
|
||||
message.GroupSending = reader.bool();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -334,6 +343,9 @@ class NotifCreatedPayload$Type extends MessageType<NotifCreatedPayload> {
|
||||
/* repeated string ContactMails = 9; */
|
||||
for (let i = 0; i < message.ContactMails.length; i++)
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.ContactMails[i]);
|
||||
/* bool GroupSending = 10; */
|
||||
if (message.GroupSending !== false)
|
||||
writer.tag(10, WireType.Varint).bool(message.GroupSending);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-251121141259",
|
||||
"version": "1.12.0-SNAPSHOT-251121143144",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
Reference in New Issue
Block a user