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