@kernelminds/scailo-sdk 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/lib/cjs/index.js +34 -0
  2. package/lib/cjs/permissions.js +13 -10
  3. package/lib/cjs/src/forms_fields.scailo_pb.js +45 -24
  4. package/lib/cjs/src/transactional_emails.scailo_connect.js +132 -0
  5. package/lib/cjs/src/transactional_emails.scailo_pb.js +948 -0
  6. package/lib/cjs/types/index.d.ts +31 -0
  7. package/lib/cjs/types/index.d.ts.map +1 -1
  8. package/lib/cjs/types/permissions.d.ts +15 -0
  9. package/lib/cjs/types/permissions.d.ts.map +1 -1
  10. package/lib/cjs/types/src/forms_fields.scailo_pb.d.ts +36 -18
  11. package/lib/cjs/types/src/forms_fields.scailo_pb.d.ts.map +1 -1
  12. package/lib/cjs/types/src/transactional_emails.scailo_connect.d.ts +126 -0
  13. package/lib/cjs/types/src/transactional_emails.scailo_connect.d.ts.map +1 -0
  14. package/lib/cjs/types/src/transactional_emails.scailo_pb.d.ts +698 -0
  15. package/lib/cjs/types/src/transactional_emails.scailo_pb.d.ts.map +1 -0
  16. package/lib/esm/index.js +34 -0
  17. package/lib/esm/permissions.js +13 -10
  18. package/lib/esm/src/forms_fields.scailo_pb.js +45 -24
  19. package/lib/esm/src/transactional_emails.scailo_connect.js +132 -0
  20. package/lib/esm/src/transactional_emails.scailo_pb.js +966 -0
  21. package/lib/esm/types/index.d.ts +31 -0
  22. package/lib/esm/types/index.d.ts.map +1 -1
  23. package/lib/esm/types/permissions.d.ts +15 -0
  24. package/lib/esm/types/permissions.d.ts.map +1 -1
  25. package/lib/esm/types/src/forms_fields.scailo_pb.d.ts +36 -18
  26. package/lib/esm/types/src/forms_fields.scailo_pb.d.ts.map +1 -1
  27. package/lib/esm/types/src/transactional_emails.scailo_connect.d.ts +126 -0
  28. package/lib/esm/types/src/transactional_emails.scailo_connect.d.ts.map +1 -0
  29. package/lib/esm/types/src/transactional_emails.scailo_pb.d.ts +698 -0
  30. package/lib/esm/types/src/transactional_emails.scailo_pb.d.ts.map +1 -0
  31. package/package.json +1 -1
@@ -0,0 +1,948 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v1.5.1 with parameter "target=ts"
3
+ // @generated from file transactional_emails.scailo.proto (package Scailo, syntax proto3)
4
+ /* eslint-disable */
5
+ // @ts-nocheck
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TransactionalEmailAttachmentsList = exports.TransactionalEmailAttachment = exports.TransactionalEmailsServiceAddAttachmentRequest = exports.TransactionalEmailRecipientsList = exports.TransactionalEmailRecipient = exports.TransactionalEmailsServiceAddRecipientRequest = exports.TransactionalEmailsServiceSearchAllReq = exports.TransactionalEmailsServiceCountReq = exports.TransactionalEmailsServiceFilterReq = exports.TransactionalEmailsServicePaginationReq = exports.TransactionalEmailPaginationResp = exports.TransactionalEmailsList = exports.TransactionalEmail = exports.TransactionalEmailsServiceCreateRequest = exports.TRANSACTIONAL_EMAIL_SORT_KEY = void 0;
8
+ const protobuf_1 = require("@bufbuild/protobuf");
9
+ const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
+ /**
11
+ *
12
+ * Describes the available sort keys for retrieving transactional emails
13
+ *
14
+ * @generated from enum Scailo.TRANSACTIONAL_EMAIL_SORT_KEY
15
+ */
16
+ var TRANSACTIONAL_EMAIL_SORT_KEY;
17
+ (function (TRANSACTIONAL_EMAIL_SORT_KEY) {
18
+ /**
19
+ * Fetch ordered results by id
20
+ *
21
+ * @generated from enum value: TRANSACTIONAL_EMAIL_SORT_KEY_ID_UNSPECIFIED = 0;
22
+ */
23
+ TRANSACTIONAL_EMAIL_SORT_KEY[TRANSACTIONAL_EMAIL_SORT_KEY["TRANSACTIONAL_EMAIL_SORT_KEY_ID_UNSPECIFIED"] = 0] = "TRANSACTIONAL_EMAIL_SORT_KEY_ID_UNSPECIFIED";
24
+ /**
25
+ * Fetch ordered results by the creation timestamp
26
+ *
27
+ * @generated from enum value: TRANSACTIONAL_EMAIL_SORT_KEY_CREATED_AT = 1;
28
+ */
29
+ TRANSACTIONAL_EMAIL_SORT_KEY[TRANSACTIONAL_EMAIL_SORT_KEY["TRANSACTIONAL_EMAIL_SORT_KEY_CREATED_AT"] = 1] = "TRANSACTIONAL_EMAIL_SORT_KEY_CREATED_AT";
30
+ /**
31
+ * Fetch ordered results by the modified timestamp
32
+ *
33
+ * @generated from enum value: TRANSACTIONAL_EMAIL_SORT_KEY_MODIFIED_AT = 2;
34
+ */
35
+ TRANSACTIONAL_EMAIL_SORT_KEY[TRANSACTIONAL_EMAIL_SORT_KEY["TRANSACTIONAL_EMAIL_SORT_KEY_MODIFIED_AT"] = 2] = "TRANSACTIONAL_EMAIL_SORT_KEY_MODIFIED_AT";
36
+ })(TRANSACTIONAL_EMAIL_SORT_KEY || (exports.TRANSACTIONAL_EMAIL_SORT_KEY = TRANSACTIONAL_EMAIL_SORT_KEY = {}));
37
+ // Retrieve enum metadata with: proto3.getEnumType(TRANSACTIONAL_EMAIL_SORT_KEY)
38
+ protobuf_1.proto3.util.setEnumType(TRANSACTIONAL_EMAIL_SORT_KEY, "Scailo.TRANSACTIONAL_EMAIL_SORT_KEY", [
39
+ { no: 0, name: "TRANSACTIONAL_EMAIL_SORT_KEY_ID_UNSPECIFIED" },
40
+ { no: 1, name: "TRANSACTIONAL_EMAIL_SORT_KEY_CREATED_AT" },
41
+ { no: 2, name: "TRANSACTIONAL_EMAIL_SORT_KEY_MODIFIED_AT" },
42
+ ]);
43
+ /**
44
+ *
45
+ * Describes the necessary data structure during creation of a transactional email
46
+ *
47
+ * @generated from message Scailo.TransactionalEmailsServiceCreateRequest
48
+ */
49
+ class TransactionalEmailsServiceCreateRequest extends protobuf_1.Message {
50
+ constructor(data) {
51
+ super();
52
+ /**
53
+ * Stores a globally unique entity UUID. This will be set at the organization level
54
+ *
55
+ * @generated from field: string entity_uuid = 1;
56
+ */
57
+ this.entityUuid = "";
58
+ /**
59
+ * Stores any comment that the user might add during this operation
60
+ *
61
+ * @generated from field: string user_comment = 2;
62
+ */
63
+ this.userComment = "";
64
+ /**
65
+ * Stores the name of the sender
66
+ *
67
+ * @generated from field: string sender_name = 10;
68
+ */
69
+ this.senderName = "";
70
+ /**
71
+ * Stores the title of the transactional email
72
+ *
73
+ * @generated from field: string title = 11;
74
+ */
75
+ this.title = "";
76
+ /**
77
+ * Stores the email address to which the reply could be sent
78
+ *
79
+ * @generated from field: string reply_to = 12;
80
+ */
81
+ this.replyTo = "";
82
+ /**
83
+ * Stores the subject of the transactional email
84
+ *
85
+ * @generated from field: string subject = 13;
86
+ */
87
+ this.subject = "";
88
+ /**
89
+ * Stores the content of the transactional email
90
+ *
91
+ * @generated from field: string content = 14;
92
+ */
93
+ this.content = "";
94
+ /**
95
+ * The list of recipients
96
+ *
97
+ * @generated from field: repeated Scailo.TransactionalEmailsServiceAddRecipientRequest recipients = 30;
98
+ */
99
+ this.recipients = [];
100
+ /**
101
+ * The list of attachments
102
+ *
103
+ * @generated from field: repeated Scailo.TransactionalEmailsServiceAddAttachmentRequest attachments = 40;
104
+ */
105
+ this.attachments = [];
106
+ protobuf_1.proto3.util.initPartial(data, this);
107
+ }
108
+ static fromBinary(bytes, options) {
109
+ return new TransactionalEmailsServiceCreateRequest().fromBinary(bytes, options);
110
+ }
111
+ static fromJson(jsonValue, options) {
112
+ return new TransactionalEmailsServiceCreateRequest().fromJson(jsonValue, options);
113
+ }
114
+ static fromJsonString(jsonString, options) {
115
+ return new TransactionalEmailsServiceCreateRequest().fromJsonString(jsonString, options);
116
+ }
117
+ static equals(a, b) {
118
+ return protobuf_1.proto3.util.equals(TransactionalEmailsServiceCreateRequest, a, b);
119
+ }
120
+ }
121
+ exports.TransactionalEmailsServiceCreateRequest = TransactionalEmailsServiceCreateRequest;
122
+ TransactionalEmailsServiceCreateRequest.runtime = protobuf_1.proto3;
123
+ TransactionalEmailsServiceCreateRequest.typeName = "Scailo.TransactionalEmailsServiceCreateRequest";
124
+ TransactionalEmailsServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
125
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
126
+ { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
127
+ { no: 10, name: "sender_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
128
+ { no: 11, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
129
+ { no: 12, name: "reply_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
130
+ { no: 13, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
131
+ { no: 14, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
132
+ { no: 30, name: "recipients", kind: "message", T: TransactionalEmailsServiceAddRecipientRequest, repeated: true },
133
+ { no: 40, name: "attachments", kind: "message", T: TransactionalEmailsServiceAddAttachmentRequest, repeated: true },
134
+ ]);
135
+ /**
136
+ *
137
+ * Describes the data structure of each transactional email on the platform
138
+ *
139
+ * @generated from message Scailo.TransactionalEmail
140
+ */
141
+ class TransactionalEmail extends protobuf_1.Message {
142
+ constructor(data) {
143
+ super();
144
+ /**
145
+ * Stores a globally unique entity UUID. This will be set at the organization level
146
+ *
147
+ * @generated from field: string entity_uuid = 1;
148
+ */
149
+ this.entityUuid = "";
150
+ /**
151
+ * Stores the name of the sender
152
+ *
153
+ * @generated from field: string sender_name = 10;
154
+ */
155
+ this.senderName = "";
156
+ /**
157
+ * Stores the title of the transactional email
158
+ *
159
+ * @generated from field: string title = 11;
160
+ */
161
+ this.title = "";
162
+ /**
163
+ * Stores the email address to which the reply could be sent
164
+ *
165
+ * @generated from field: string reply_to = 12;
166
+ */
167
+ this.replyTo = "";
168
+ /**
169
+ * Stores the subject of the transactional email
170
+ *
171
+ * @generated from field: string subject = 13;
172
+ */
173
+ this.subject = "";
174
+ /**
175
+ * Stores the content of the transactional email
176
+ *
177
+ * @generated from field: string content = 14;
178
+ */
179
+ this.content = "";
180
+ /**
181
+ * Stores the tracking URL of the transactional email
182
+ *
183
+ * @generated from field: string tracking_url = 20;
184
+ */
185
+ this.trackingUrl = "";
186
+ protobuf_1.proto3.util.initPartial(data, this);
187
+ }
188
+ static fromBinary(bytes, options) {
189
+ return new TransactionalEmail().fromBinary(bytes, options);
190
+ }
191
+ static fromJson(jsonValue, options) {
192
+ return new TransactionalEmail().fromJson(jsonValue, options);
193
+ }
194
+ static fromJsonString(jsonString, options) {
195
+ return new TransactionalEmail().fromJsonString(jsonString, options);
196
+ }
197
+ static equals(a, b) {
198
+ return protobuf_1.proto3.util.equals(TransactionalEmail, a, b);
199
+ }
200
+ }
201
+ exports.TransactionalEmail = TransactionalEmail;
202
+ TransactionalEmail.runtime = protobuf_1.proto3;
203
+ TransactionalEmail.typeName = "Scailo.TransactionalEmail";
204
+ TransactionalEmail.fields = protobuf_1.proto3.util.newFieldList(() => [
205
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
206
+ { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
207
+ { no: 10, name: "sender_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
208
+ { no: 11, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
209
+ { no: 12, name: "reply_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
210
+ { no: 13, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
211
+ { no: 14, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
212
+ { no: 20, name: "tracking_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
213
+ ]);
214
+ /**
215
+ *
216
+ * Describes the data structure that stores a list of transactional emails
217
+ *
218
+ * @generated from message Scailo.TransactionalEmailsList
219
+ */
220
+ class TransactionalEmailsList extends protobuf_1.Message {
221
+ constructor(data) {
222
+ super();
223
+ /**
224
+ * List of transactional emails
225
+ *
226
+ * @generated from field: repeated Scailo.TransactionalEmail list = 1;
227
+ */
228
+ this.list = [];
229
+ protobuf_1.proto3.util.initPartial(data, this);
230
+ }
231
+ static fromBinary(bytes, options) {
232
+ return new TransactionalEmailsList().fromBinary(bytes, options);
233
+ }
234
+ static fromJson(jsonValue, options) {
235
+ return new TransactionalEmailsList().fromJson(jsonValue, options);
236
+ }
237
+ static fromJsonString(jsonString, options) {
238
+ return new TransactionalEmailsList().fromJsonString(jsonString, options);
239
+ }
240
+ static equals(a, b) {
241
+ return protobuf_1.proto3.util.equals(TransactionalEmailsList, a, b);
242
+ }
243
+ }
244
+ exports.TransactionalEmailsList = TransactionalEmailsList;
245
+ TransactionalEmailsList.runtime = protobuf_1.proto3;
246
+ TransactionalEmailsList.typeName = "Scailo.TransactionalEmailsList";
247
+ TransactionalEmailsList.fields = protobuf_1.proto3.util.newFieldList(() => [
248
+ { no: 1, name: "list", kind: "message", T: TransactionalEmail, repeated: true },
249
+ ]);
250
+ /**
251
+ *
252
+ * Describes the data structure that responds to a pagination request
253
+ *
254
+ * @generated from message Scailo.TransactionalEmailPaginationResp
255
+ */
256
+ class TransactionalEmailPaginationResp extends protobuf_1.Message {
257
+ constructor(data) {
258
+ super();
259
+ /**
260
+ * The number of records in this payload
261
+ *
262
+ * @generated from field: uint64 count = 1;
263
+ */
264
+ this.count = protobuf_1.protoInt64.zero;
265
+ /**
266
+ * The number that has been offset before fetching the records. This is the same value that has been sent as part of the pagination request
267
+ *
268
+ * @generated from field: uint64 offset = 2;
269
+ */
270
+ this.offset = protobuf_1.protoInt64.zero;
271
+ /**
272
+ * The total number of records that are available
273
+ *
274
+ * @generated from field: uint64 total = 3;
275
+ */
276
+ this.total = protobuf_1.protoInt64.zero;
277
+ /**
278
+ * The list of records
279
+ *
280
+ * @generated from field: repeated Scailo.TransactionalEmail payload = 4;
281
+ */
282
+ this.payload = [];
283
+ protobuf_1.proto3.util.initPartial(data, this);
284
+ }
285
+ static fromBinary(bytes, options) {
286
+ return new TransactionalEmailPaginationResp().fromBinary(bytes, options);
287
+ }
288
+ static fromJson(jsonValue, options) {
289
+ return new TransactionalEmailPaginationResp().fromJson(jsonValue, options);
290
+ }
291
+ static fromJsonString(jsonString, options) {
292
+ return new TransactionalEmailPaginationResp().fromJsonString(jsonString, options);
293
+ }
294
+ static equals(a, b) {
295
+ return protobuf_1.proto3.util.equals(TransactionalEmailPaginationResp, a, b);
296
+ }
297
+ }
298
+ exports.TransactionalEmailPaginationResp = TransactionalEmailPaginationResp;
299
+ TransactionalEmailPaginationResp.runtime = protobuf_1.proto3;
300
+ TransactionalEmailPaginationResp.typeName = "Scailo.TransactionalEmailPaginationResp";
301
+ TransactionalEmailPaginationResp.fields = protobuf_1.proto3.util.newFieldList(() => [
302
+ { no: 1, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
303
+ { no: 2, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
304
+ { no: 3, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
305
+ { no: 4, name: "payload", kind: "message", T: TransactionalEmail, repeated: true },
306
+ ]);
307
+ /**
308
+ *
309
+ * Describes a pagination request to retrieve records
310
+ *
311
+ * @generated from message Scailo.TransactionalEmailsServicePaginationReq
312
+ */
313
+ class TransactionalEmailsServicePaginationReq extends protobuf_1.Message {
314
+ constructor(data) {
315
+ super();
316
+ /**
317
+ * If true, then returns only active records. If false, then returns only inactive records
318
+ *
319
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
320
+ */
321
+ this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
322
+ /**
323
+ * The number of records that need to be sent in the response
324
+ *
325
+ * @generated from field: int64 count = 2;
326
+ */
327
+ this.count = protobuf_1.protoInt64.zero;
328
+ /**
329
+ * The number that need to be offset by before fetching the records
330
+ *
331
+ * @generated from field: uint64 offset = 3;
332
+ */
333
+ this.offset = protobuf_1.protoInt64.zero;
334
+ /**
335
+ * The sort order that is to be used to fetch the pagination response
336
+ *
337
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
338
+ */
339
+ this.sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
340
+ /**
341
+ * The sort key that is to be used to fetch the pagination response
342
+ *
343
+ * @generated from field: Scailo.TRANSACTIONAL_EMAIL_SORT_KEY sort_key = 5;
344
+ */
345
+ this.sortKey = TRANSACTIONAL_EMAIL_SORT_KEY.TRANSACTIONAL_EMAIL_SORT_KEY_ID_UNSPECIFIED;
346
+ protobuf_1.proto3.util.initPartial(data, this);
347
+ }
348
+ static fromBinary(bytes, options) {
349
+ return new TransactionalEmailsServicePaginationReq().fromBinary(bytes, options);
350
+ }
351
+ static fromJson(jsonValue, options) {
352
+ return new TransactionalEmailsServicePaginationReq().fromJson(jsonValue, options);
353
+ }
354
+ static fromJsonString(jsonString, options) {
355
+ return new TransactionalEmailsServicePaginationReq().fromJsonString(jsonString, options);
356
+ }
357
+ static equals(a, b) {
358
+ return protobuf_1.proto3.util.equals(TransactionalEmailsServicePaginationReq, a, b);
359
+ }
360
+ }
361
+ exports.TransactionalEmailsServicePaginationReq = TransactionalEmailsServicePaginationReq;
362
+ TransactionalEmailsServicePaginationReq.runtime = protobuf_1.proto3;
363
+ TransactionalEmailsServicePaginationReq.typeName = "Scailo.TransactionalEmailsServicePaginationReq";
364
+ TransactionalEmailsServicePaginationReq.fields = protobuf_1.proto3.util.newFieldList(() => [
365
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
366
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
367
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
368
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
369
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(TRANSACTIONAL_EMAIL_SORT_KEY) },
370
+ ]);
371
+ /**
372
+ *
373
+ * Describes the base request payload of a filter search
374
+ *
375
+ * @generated from message Scailo.TransactionalEmailsServiceFilterReq
376
+ */
377
+ class TransactionalEmailsServiceFilterReq extends protobuf_1.Message {
378
+ constructor(data) {
379
+ super();
380
+ /**
381
+ * If true, then returns only active records. If false, then returns only inactive records
382
+ *
383
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
384
+ */
385
+ this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
386
+ /**
387
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
388
+ *
389
+ * @generated from field: int64 count = 2;
390
+ */
391
+ this.count = protobuf_1.protoInt64.zero;
392
+ /**
393
+ * The number that need to be offset by before fetching the records
394
+ *
395
+ * @generated from field: uint64 offset = 3;
396
+ */
397
+ this.offset = protobuf_1.protoInt64.zero;
398
+ /**
399
+ * The sort order that is to be used to fetch the pagination response
400
+ *
401
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
402
+ */
403
+ this.sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
404
+ /**
405
+ * The sort key that is to be used to fetch the pagination response
406
+ *
407
+ * @generated from field: Scailo.TRANSACTIONAL_EMAIL_SORT_KEY sort_key = 5;
408
+ */
409
+ this.sortKey = TRANSACTIONAL_EMAIL_SORT_KEY.TRANSACTIONAL_EMAIL_SORT_KEY_ID_UNSPECIFIED;
410
+ /**
411
+ * The minimum timestamp that needs to be considered to filter by creation
412
+ *
413
+ * @generated from field: uint64 creation_timestamp_start = 101;
414
+ */
415
+ this.creationTimestampStart = protobuf_1.protoInt64.zero;
416
+ /**
417
+ * The maximum timestamp that needs to be considered to filter by creation
418
+ *
419
+ * @generated from field: uint64 creation_timestamp_end = 102;
420
+ */
421
+ this.creationTimestampEnd = protobuf_1.protoInt64.zero;
422
+ /**
423
+ * The minimum timestamp that needs to be considered to filter by modification
424
+ *
425
+ * @generated from field: uint64 modification_timestamp_start = 103;
426
+ */
427
+ this.modificationTimestampStart = protobuf_1.protoInt64.zero;
428
+ /**
429
+ * The maximum timestamp that needs to be considered to filter by modification
430
+ *
431
+ * @generated from field: uint64 modification_timestamp_end = 104;
432
+ */
433
+ this.modificationTimestampEnd = protobuf_1.protoInt64.zero;
434
+ /**
435
+ * The entity UUID that is to be used to filter records
436
+ *
437
+ * @generated from field: string entity_uuid = 8;
438
+ */
439
+ this.entityUuid = "";
440
+ /**
441
+ * Stores the name of the sender
442
+ *
443
+ * @generated from field: string sender_name = 20;
444
+ */
445
+ this.senderName = "";
446
+ /**
447
+ * Stores the title of the transactional email
448
+ *
449
+ * @generated from field: string title = 21;
450
+ */
451
+ this.title = "";
452
+ /**
453
+ * Stores the email address to which the reply could be sent
454
+ *
455
+ * @generated from field: string reply_to = 22;
456
+ */
457
+ this.replyTo = "";
458
+ /**
459
+ * Stores the subject of the transactional email
460
+ *
461
+ * @generated from field: string subject = 23;
462
+ */
463
+ this.subject = "";
464
+ /**
465
+ * Stores the email address of the recipient
466
+ *
467
+ * @generated from field: string recipient_email_address = 40;
468
+ */
469
+ this.recipientEmailAddress = "";
470
+ protobuf_1.proto3.util.initPartial(data, this);
471
+ }
472
+ static fromBinary(bytes, options) {
473
+ return new TransactionalEmailsServiceFilterReq().fromBinary(bytes, options);
474
+ }
475
+ static fromJson(jsonValue, options) {
476
+ return new TransactionalEmailsServiceFilterReq().fromJson(jsonValue, options);
477
+ }
478
+ static fromJsonString(jsonString, options) {
479
+ return new TransactionalEmailsServiceFilterReq().fromJsonString(jsonString, options);
480
+ }
481
+ static equals(a, b) {
482
+ return protobuf_1.proto3.util.equals(TransactionalEmailsServiceFilterReq, a, b);
483
+ }
484
+ }
485
+ exports.TransactionalEmailsServiceFilterReq = TransactionalEmailsServiceFilterReq;
486
+ TransactionalEmailsServiceFilterReq.runtime = protobuf_1.proto3;
487
+ TransactionalEmailsServiceFilterReq.typeName = "Scailo.TransactionalEmailsServiceFilterReq";
488
+ TransactionalEmailsServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
489
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
490
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
491
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
492
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
493
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(TRANSACTIONAL_EMAIL_SORT_KEY) },
494
+ { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
495
+ { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
496
+ { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
497
+ { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
498
+ { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
499
+ { no: 20, name: "sender_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
500
+ { no: 21, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
501
+ { no: 22, name: "reply_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
502
+ { no: 23, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
503
+ { no: 40, name: "recipient_email_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
504
+ ]);
505
+ /**
506
+ *
507
+ * Describes the base request payload of a count search
508
+ *
509
+ * @generated from message Scailo.TransactionalEmailsServiceCountReq
510
+ */
511
+ class TransactionalEmailsServiceCountReq extends protobuf_1.Message {
512
+ constructor(data) {
513
+ super();
514
+ /**
515
+ * If true, then returns only active records. If false, then returns only inactive records
516
+ *
517
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
518
+ */
519
+ this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
520
+ /**
521
+ * The minimum timestamp that needs to be considered to filter by creation
522
+ *
523
+ * @generated from field: uint64 creation_timestamp_start = 101;
524
+ */
525
+ this.creationTimestampStart = protobuf_1.protoInt64.zero;
526
+ /**
527
+ * The maximum timestamp that needs to be considered to filter by creation
528
+ *
529
+ * @generated from field: uint64 creation_timestamp_end = 102;
530
+ */
531
+ this.creationTimestampEnd = protobuf_1.protoInt64.zero;
532
+ /**
533
+ * The minimum timestamp that needs to be considered to filter by modification
534
+ *
535
+ * @generated from field: uint64 modification_timestamp_start = 103;
536
+ */
537
+ this.modificationTimestampStart = protobuf_1.protoInt64.zero;
538
+ /**
539
+ * The maximum timestamp that needs to be considered to filter by modification
540
+ *
541
+ * @generated from field: uint64 modification_timestamp_end = 104;
542
+ */
543
+ this.modificationTimestampEnd = protobuf_1.protoInt64.zero;
544
+ /**
545
+ * The entity UUID that is to be used to filter records
546
+ *
547
+ * @generated from field: string entity_uuid = 8;
548
+ */
549
+ this.entityUuid = "";
550
+ /**
551
+ * Stores the name of the sender
552
+ *
553
+ * @generated from field: string sender_name = 20;
554
+ */
555
+ this.senderName = "";
556
+ /**
557
+ * Stores the title of the transactional email
558
+ *
559
+ * @generated from field: string title = 21;
560
+ */
561
+ this.title = "";
562
+ /**
563
+ * Stores the email address to which the reply could be sent
564
+ *
565
+ * @generated from field: string reply_to = 22;
566
+ */
567
+ this.replyTo = "";
568
+ /**
569
+ * Stores the subject of the transactional email
570
+ *
571
+ * @generated from field: string subject = 23;
572
+ */
573
+ this.subject = "";
574
+ /**
575
+ * Stores the email address of the recipient
576
+ *
577
+ * @generated from field: string recipient_email_address = 40;
578
+ */
579
+ this.recipientEmailAddress = "";
580
+ protobuf_1.proto3.util.initPartial(data, this);
581
+ }
582
+ static fromBinary(bytes, options) {
583
+ return new TransactionalEmailsServiceCountReq().fromBinary(bytes, options);
584
+ }
585
+ static fromJson(jsonValue, options) {
586
+ return new TransactionalEmailsServiceCountReq().fromJson(jsonValue, options);
587
+ }
588
+ static fromJsonString(jsonString, options) {
589
+ return new TransactionalEmailsServiceCountReq().fromJsonString(jsonString, options);
590
+ }
591
+ static equals(a, b) {
592
+ return protobuf_1.proto3.util.equals(TransactionalEmailsServiceCountReq, a, b);
593
+ }
594
+ }
595
+ exports.TransactionalEmailsServiceCountReq = TransactionalEmailsServiceCountReq;
596
+ TransactionalEmailsServiceCountReq.runtime = protobuf_1.proto3;
597
+ TransactionalEmailsServiceCountReq.typeName = "Scailo.TransactionalEmailsServiceCountReq";
598
+ TransactionalEmailsServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
599
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
600
+ { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
601
+ { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
602
+ { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
603
+ { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
604
+ { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
605
+ { no: 20, name: "sender_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
606
+ { no: 21, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
607
+ { no: 22, name: "reply_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
608
+ { no: 23, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
609
+ { no: 40, name: "recipient_email_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
610
+ ]);
611
+ /**
612
+ *
613
+ * Describes the request payload for performing a generic search operation on transactional emails
614
+ *
615
+ * @generated from message Scailo.TransactionalEmailsServiceSearchAllReq
616
+ */
617
+ class TransactionalEmailsServiceSearchAllReq extends protobuf_1.Message {
618
+ constructor(data) {
619
+ super();
620
+ /**
621
+ * If true, then returns only active records. If false, then returns only inactive records
622
+ *
623
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
624
+ */
625
+ this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
626
+ /**
627
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
628
+ *
629
+ * @generated from field: int64 count = 2;
630
+ */
631
+ this.count = protobuf_1.protoInt64.zero;
632
+ /**
633
+ * The number that need to be offset by before fetching the records
634
+ *
635
+ * @generated from field: uint64 offset = 3;
636
+ */
637
+ this.offset = protobuf_1.protoInt64.zero;
638
+ /**
639
+ * The sort order that is to be used to fetch the pagination response
640
+ *
641
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
642
+ */
643
+ this.sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
644
+ /**
645
+ * The sort key that is to be used to fetch the response
646
+ *
647
+ * @generated from field: Scailo.TRANSACTIONAL_EMAIL_SORT_KEY sort_key = 5;
648
+ */
649
+ this.sortKey = TRANSACTIONAL_EMAIL_SORT_KEY.TRANSACTIONAL_EMAIL_SORT_KEY_ID_UNSPECIFIED;
650
+ /**
651
+ * The entity UUID that is to be used to filter transactional emails
652
+ *
653
+ * @generated from field: string entity_uuid = 6;
654
+ */
655
+ this.entityUuid = "";
656
+ /**
657
+ * Describes the key with which the search operation needs to be performed
658
+ *
659
+ * @generated from field: string search_key = 10;
660
+ */
661
+ this.searchKey = "";
662
+ protobuf_1.proto3.util.initPartial(data, this);
663
+ }
664
+ static fromBinary(bytes, options) {
665
+ return new TransactionalEmailsServiceSearchAllReq().fromBinary(bytes, options);
666
+ }
667
+ static fromJson(jsonValue, options) {
668
+ return new TransactionalEmailsServiceSearchAllReq().fromJson(jsonValue, options);
669
+ }
670
+ static fromJsonString(jsonString, options) {
671
+ return new TransactionalEmailsServiceSearchAllReq().fromJsonString(jsonString, options);
672
+ }
673
+ static equals(a, b) {
674
+ return protobuf_1.proto3.util.equals(TransactionalEmailsServiceSearchAllReq, a, b);
675
+ }
676
+ }
677
+ exports.TransactionalEmailsServiceSearchAllReq = TransactionalEmailsServiceSearchAllReq;
678
+ TransactionalEmailsServiceSearchAllReq.runtime = protobuf_1.proto3;
679
+ TransactionalEmailsServiceSearchAllReq.typeName = "Scailo.TransactionalEmailsServiceSearchAllReq";
680
+ TransactionalEmailsServiceSearchAllReq.fields = protobuf_1.proto3.util.newFieldList(() => [
681
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
682
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
683
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
684
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
685
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(TRANSACTIONAL_EMAIL_SORT_KEY) },
686
+ { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
687
+ { no: 10, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
688
+ ]);
689
+ /**
690
+ *
691
+ * Describes the necessary data structure during addition of a recipient
692
+ *
693
+ * @generated from message Scailo.TransactionalEmailsServiceAddRecipientRequest
694
+ */
695
+ class TransactionalEmailsServiceAddRecipientRequest extends protobuf_1.Message {
696
+ constructor(data) {
697
+ super();
698
+ /**
699
+ * Stores the email address of the recipient
700
+ *
701
+ * @generated from field: string address = 10;
702
+ */
703
+ this.address = "";
704
+ protobuf_1.proto3.util.initPartial(data, this);
705
+ }
706
+ static fromBinary(bytes, options) {
707
+ return new TransactionalEmailsServiceAddRecipientRequest().fromBinary(bytes, options);
708
+ }
709
+ static fromJson(jsonValue, options) {
710
+ return new TransactionalEmailsServiceAddRecipientRequest().fromJson(jsonValue, options);
711
+ }
712
+ static fromJsonString(jsonString, options) {
713
+ return new TransactionalEmailsServiceAddRecipientRequest().fromJsonString(jsonString, options);
714
+ }
715
+ static equals(a, b) {
716
+ return protobuf_1.proto3.util.equals(TransactionalEmailsServiceAddRecipientRequest, a, b);
717
+ }
718
+ }
719
+ exports.TransactionalEmailsServiceAddRecipientRequest = TransactionalEmailsServiceAddRecipientRequest;
720
+ TransactionalEmailsServiceAddRecipientRequest.runtime = protobuf_1.proto3;
721
+ TransactionalEmailsServiceAddRecipientRequest.typeName = "Scailo.TransactionalEmailsServiceAddRecipientRequest";
722
+ TransactionalEmailsServiceAddRecipientRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
723
+ { no: 10, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
724
+ ]);
725
+ /**
726
+ *
727
+ * Describes the data structure that stores the recipient information of a transactional email
728
+ *
729
+ * @generated from message Scailo.TransactionalEmailRecipient
730
+ */
731
+ class TransactionalEmailRecipient extends protobuf_1.Message {
732
+ constructor(data) {
733
+ super();
734
+ /**
735
+ * Stores a globally unique entity UUID. This will be set at the organization level
736
+ *
737
+ * @generated from field: string entity_uuid = 1;
738
+ */
739
+ this.entityUuid = "";
740
+ /**
741
+ * The ID of the transactional email
742
+ *
743
+ * @generated from field: uint64 transactional_email_id = 10;
744
+ */
745
+ this.transactionalEmailId = protobuf_1.protoInt64.zero;
746
+ /**
747
+ * The email address of the recipient
748
+ *
749
+ * @generated from field: string address = 11;
750
+ */
751
+ this.address = "";
752
+ protobuf_1.proto3.util.initPartial(data, this);
753
+ }
754
+ static fromBinary(bytes, options) {
755
+ return new TransactionalEmailRecipient().fromBinary(bytes, options);
756
+ }
757
+ static fromJson(jsonValue, options) {
758
+ return new TransactionalEmailRecipient().fromJson(jsonValue, options);
759
+ }
760
+ static fromJsonString(jsonString, options) {
761
+ return new TransactionalEmailRecipient().fromJsonString(jsonString, options);
762
+ }
763
+ static equals(a, b) {
764
+ return protobuf_1.proto3.util.equals(TransactionalEmailRecipient, a, b);
765
+ }
766
+ }
767
+ exports.TransactionalEmailRecipient = TransactionalEmailRecipient;
768
+ TransactionalEmailRecipient.runtime = protobuf_1.proto3;
769
+ TransactionalEmailRecipient.typeName = "Scailo.TransactionalEmailRecipient";
770
+ TransactionalEmailRecipient.fields = protobuf_1.proto3.util.newFieldList(() => [
771
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
772
+ { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
773
+ { no: 10, name: "transactional_email_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
774
+ { no: 11, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
775
+ ]);
776
+ /**
777
+ *
778
+ * Describes the message consisting of the list of transactional email recipients
779
+ *
780
+ * @generated from message Scailo.TransactionalEmailRecipientsList
781
+ */
782
+ class TransactionalEmailRecipientsList extends protobuf_1.Message {
783
+ constructor(data) {
784
+ super();
785
+ /**
786
+ * List of records
787
+ *
788
+ * @generated from field: repeated Scailo.TransactionalEmailRecipient list = 1;
789
+ */
790
+ this.list = [];
791
+ protobuf_1.proto3.util.initPartial(data, this);
792
+ }
793
+ static fromBinary(bytes, options) {
794
+ return new TransactionalEmailRecipientsList().fromBinary(bytes, options);
795
+ }
796
+ static fromJson(jsonValue, options) {
797
+ return new TransactionalEmailRecipientsList().fromJson(jsonValue, options);
798
+ }
799
+ static fromJsonString(jsonString, options) {
800
+ return new TransactionalEmailRecipientsList().fromJsonString(jsonString, options);
801
+ }
802
+ static equals(a, b) {
803
+ return protobuf_1.proto3.util.equals(TransactionalEmailRecipientsList, a, b);
804
+ }
805
+ }
806
+ exports.TransactionalEmailRecipientsList = TransactionalEmailRecipientsList;
807
+ TransactionalEmailRecipientsList.runtime = protobuf_1.proto3;
808
+ TransactionalEmailRecipientsList.typeName = "Scailo.TransactionalEmailRecipientsList";
809
+ TransactionalEmailRecipientsList.fields = protobuf_1.proto3.util.newFieldList(() => [
810
+ { no: 1, name: "list", kind: "message", T: TransactionalEmailRecipient, repeated: true },
811
+ ]);
812
+ /**
813
+ *
814
+ * Describes the necessary data structure during addition of a recipient
815
+ *
816
+ * @generated from message Scailo.TransactionalEmailsServiceAddAttachmentRequest
817
+ */
818
+ class TransactionalEmailsServiceAddAttachmentRequest extends protobuf_1.Message {
819
+ constructor(data) {
820
+ super();
821
+ /**
822
+ * Stores the name of the attachment
823
+ *
824
+ * @generated from field: string name = 10;
825
+ */
826
+ this.name = "";
827
+ /**
828
+ * Stores the content of the attachment
829
+ *
830
+ * @generated from field: bytes content = 11;
831
+ */
832
+ this.content = new Uint8Array(0);
833
+ protobuf_1.proto3.util.initPartial(data, this);
834
+ }
835
+ static fromBinary(bytes, options) {
836
+ return new TransactionalEmailsServiceAddAttachmentRequest().fromBinary(bytes, options);
837
+ }
838
+ static fromJson(jsonValue, options) {
839
+ return new TransactionalEmailsServiceAddAttachmentRequest().fromJson(jsonValue, options);
840
+ }
841
+ static fromJsonString(jsonString, options) {
842
+ return new TransactionalEmailsServiceAddAttachmentRequest().fromJsonString(jsonString, options);
843
+ }
844
+ static equals(a, b) {
845
+ return protobuf_1.proto3.util.equals(TransactionalEmailsServiceAddAttachmentRequest, a, b);
846
+ }
847
+ }
848
+ exports.TransactionalEmailsServiceAddAttachmentRequest = TransactionalEmailsServiceAddAttachmentRequest;
849
+ TransactionalEmailsServiceAddAttachmentRequest.runtime = protobuf_1.proto3;
850
+ TransactionalEmailsServiceAddAttachmentRequest.typeName = "Scailo.TransactionalEmailsServiceAddAttachmentRequest";
851
+ TransactionalEmailsServiceAddAttachmentRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
852
+ { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
853
+ { no: 11, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
854
+ ]);
855
+ /**
856
+ *
857
+ * Describes the data structure that stores the attachment information of a transactional email
858
+ *
859
+ * @generated from message Scailo.TransactionalEmailAttachment
860
+ */
861
+ class TransactionalEmailAttachment extends protobuf_1.Message {
862
+ constructor(data) {
863
+ super();
864
+ /**
865
+ * Stores a globally unique entity UUID. This will be set at the organization level
866
+ *
867
+ * @generated from field: string entity_uuid = 1;
868
+ */
869
+ this.entityUuid = "";
870
+ /**
871
+ * The ID of the transactional email
872
+ *
873
+ * @generated from field: uint64 transactional_email_id = 10;
874
+ */
875
+ this.transactionalEmailId = protobuf_1.protoInt64.zero;
876
+ /**
877
+ * The name of the attachment
878
+ *
879
+ * @generated from field: string name = 11;
880
+ */
881
+ this.name = "";
882
+ /**
883
+ * The content of the attachment
884
+ *
885
+ * @generated from field: bytes content = 12;
886
+ */
887
+ this.content = new Uint8Array(0);
888
+ protobuf_1.proto3.util.initPartial(data, this);
889
+ }
890
+ static fromBinary(bytes, options) {
891
+ return new TransactionalEmailAttachment().fromBinary(bytes, options);
892
+ }
893
+ static fromJson(jsonValue, options) {
894
+ return new TransactionalEmailAttachment().fromJson(jsonValue, options);
895
+ }
896
+ static fromJsonString(jsonString, options) {
897
+ return new TransactionalEmailAttachment().fromJsonString(jsonString, options);
898
+ }
899
+ static equals(a, b) {
900
+ return protobuf_1.proto3.util.equals(TransactionalEmailAttachment, a, b);
901
+ }
902
+ }
903
+ exports.TransactionalEmailAttachment = TransactionalEmailAttachment;
904
+ TransactionalEmailAttachment.runtime = protobuf_1.proto3;
905
+ TransactionalEmailAttachment.typeName = "Scailo.TransactionalEmailAttachment";
906
+ TransactionalEmailAttachment.fields = protobuf_1.proto3.util.newFieldList(() => [
907
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
908
+ { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
909
+ { no: 10, name: "transactional_email_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
910
+ { no: 11, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
911
+ { no: 12, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
912
+ ]);
913
+ /**
914
+ *
915
+ * Describes the message consisting of the list of transactional email attachments
916
+ *
917
+ * @generated from message Scailo.TransactionalEmailAttachmentsList
918
+ */
919
+ class TransactionalEmailAttachmentsList extends protobuf_1.Message {
920
+ constructor(data) {
921
+ super();
922
+ /**
923
+ * List of records
924
+ *
925
+ * @generated from field: repeated Scailo.TransactionalEmailAttachment list = 1;
926
+ */
927
+ this.list = [];
928
+ protobuf_1.proto3.util.initPartial(data, this);
929
+ }
930
+ static fromBinary(bytes, options) {
931
+ return new TransactionalEmailAttachmentsList().fromBinary(bytes, options);
932
+ }
933
+ static fromJson(jsonValue, options) {
934
+ return new TransactionalEmailAttachmentsList().fromJson(jsonValue, options);
935
+ }
936
+ static fromJsonString(jsonString, options) {
937
+ return new TransactionalEmailAttachmentsList().fromJsonString(jsonString, options);
938
+ }
939
+ static equals(a, b) {
940
+ return protobuf_1.proto3.util.equals(TransactionalEmailAttachmentsList, a, b);
941
+ }
942
+ }
943
+ exports.TransactionalEmailAttachmentsList = TransactionalEmailAttachmentsList;
944
+ TransactionalEmailAttachmentsList.runtime = protobuf_1.proto3;
945
+ TransactionalEmailAttachmentsList.typeName = "Scailo.TransactionalEmailAttachmentsList";
946
+ TransactionalEmailAttachmentsList.fields = protobuf_1.proto3.util.newFieldList(() => [
947
+ { no: 1, name: "list", kind: "message", T: TransactionalEmailAttachment, repeated: true },
948
+ ]);