@kernelminds/scailo-sdk 0.0.96 → 0.0.97

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