@kernelminds/scailo-sdk 0.1.1 → 0.1.2

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