@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,762 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { BOOL_FILTER, EmployeeMetadata, SORT_ORDER } from "./base.scailo_pb.js";
4
+ /**
5
+ *
6
+ * Describes the available resource types magic links
7
+ *
8
+ * @generated from enum Scailo.MAGIC_LINK_RESOURCE_TYPE
9
+ */
10
+ export declare enum MAGIC_LINK_RESOURCE_TYPE {
11
+ /**
12
+ * Used only in filters
13
+ *
14
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED = 0;
15
+ */
16
+ MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED = 0,
17
+ /**
18
+ * Denotes that the magic link was created for a purchase order
19
+ *
20
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_PURCHASE_ORDER = 100;
21
+ */
22
+ MAGIC_LINK_RESOURCE_TYPE_PURCHASE_ORDER = 100,
23
+ /**
24
+ * Denotes that the magic link was created for a goods receipt
25
+ *
26
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_GOODS_RECEIPT = 110;
27
+ */
28
+ MAGIC_LINK_RESOURCE_TYPE_GOODS_RECEIPT = 110,
29
+ /**
30
+ * Denotes that the magic link was created for a vendor invoice
31
+ *
32
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_VENDOR_INVOICE = 120;
33
+ */
34
+ MAGIC_LINK_RESOURCE_TYPE_VENDOR_INVOICE = 120,
35
+ /**
36
+ * Denotes that the magic link was created for a debit note
37
+ *
38
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_DEBIT_NOTE = 130;
39
+ */
40
+ MAGIC_LINK_RESOURCE_TYPE_DEBIT_NOTE = 130,
41
+ /**
42
+ * Denotes that the magic link was created for a purchase return
43
+ *
44
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_PURCHASE_RETURN = 140;
45
+ */
46
+ MAGIC_LINK_RESOURCE_TYPE_PURCHASE_RETURN = 140,
47
+ /**
48
+ * Denotes that the magic link was created for a sales enquiry
49
+ *
50
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_SALES_ENQUIRY = 200;
51
+ */
52
+ MAGIC_LINK_RESOURCE_TYPE_SALES_ENQUIRY = 200,
53
+ /**
54
+ * Denotes that the magic link was created for a sales order
55
+ *
56
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_SALES_ORDER = 210;
57
+ */
58
+ MAGIC_LINK_RESOURCE_TYPE_SALES_ORDER = 210,
59
+ /**
60
+ * Denotes that the magic link was created for a goods dispatch
61
+ *
62
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_GOODS_DISPATCH = 220;
63
+ */
64
+ MAGIC_LINK_RESOURCE_TYPE_GOODS_DISPATCH = 220,
65
+ /**
66
+ * Denotes that the magic link was created for a sales invoice
67
+ *
68
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_SALES_INVOICE = 230;
69
+ */
70
+ MAGIC_LINK_RESOURCE_TYPE_SALES_INVOICE = 230,
71
+ /**
72
+ * Denotes that the magic link was created for a credit note
73
+ *
74
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_CREDIT_NOTE = 240;
75
+ */
76
+ MAGIC_LINK_RESOURCE_TYPE_CREDIT_NOTE = 240,
77
+ /**
78
+ * Denotes that the magic link was created for a sales return
79
+ *
80
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_SALES_RETURN = 250;
81
+ */
82
+ MAGIC_LINK_RESOURCE_TYPE_SALES_RETURN = 250,
83
+ /**
84
+ * Denotes that the magic link was created for an inward job
85
+ *
86
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_INWARD_JOB = 300;
87
+ */
88
+ MAGIC_LINK_RESOURCE_TYPE_INWARD_JOB = 300,
89
+ /**
90
+ * Denotes that the magic link was created for an outward job
91
+ *
92
+ * @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_OUTWARD_JOB = 400;
93
+ */
94
+ MAGIC_LINK_RESOURCE_TYPE_OUTWARD_JOB = 400
95
+ }
96
+ /**
97
+ *
98
+ * Describes the available sort keys for retrieving magic links
99
+ *
100
+ * @generated from enum Scailo.MAGIC_LINK_SORT_KEY
101
+ */
102
+ export declare enum MAGIC_LINK_SORT_KEY {
103
+ /**
104
+ * Fetch ordered results by id
105
+ *
106
+ * @generated from enum value: MAGIC_LINK_SORT_KEY_ID_UNSPECIFIED = 0;
107
+ */
108
+ MAGIC_LINK_SORT_KEY_ID_UNSPECIFIED = 0,
109
+ /**
110
+ * Fetch ordered results by the creation timestamp
111
+ *
112
+ * @generated from enum value: MAGIC_LINK_SORT_KEY_CREATED_AT = 1;
113
+ */
114
+ MAGIC_LINK_SORT_KEY_CREATED_AT = 1,
115
+ /**
116
+ * Fetch ordered results by the modified timestamp
117
+ *
118
+ * @generated from enum value: MAGIC_LINK_SORT_KEY_MODIFIED_AT = 2;
119
+ */
120
+ MAGIC_LINK_SORT_KEY_MODIFIED_AT = 2,
121
+ /**
122
+ * Fetch ordered results by expiry timestamp
123
+ *
124
+ * @generated from enum value: MAGIC_LINK_SORT_KEY_EXPIRES_AT = 10;
125
+ */
126
+ MAGIC_LINK_SORT_KEY_EXPIRES_AT = 10
127
+ }
128
+ /**
129
+ *
130
+ * Describes the data structure of each magic link on the platform
131
+ *
132
+ * @generated from message Scailo.MagicLink
133
+ */
134
+ export declare class MagicLink extends Message<MagicLink> {
135
+ /**
136
+ * Stores a globally unique entity UUID. This will be set at the organization level
137
+ *
138
+ * @generated from field: string entity_uuid = 1;
139
+ */
140
+ entityUuid: string;
141
+ /**
142
+ * Stores the metadata of this resource
143
+ *
144
+ * @generated from field: Scailo.EmployeeMetadata metadata = 2;
145
+ */
146
+ metadata?: EmployeeMetadata;
147
+ /**
148
+ * The UUID of the resource
149
+ *
150
+ * @generated from field: string resource_uuid = 10;
151
+ */
152
+ resourceUuid: string;
153
+ /**
154
+ * The type of the resource
155
+ *
156
+ * @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
157
+ */
158
+ resourceType: MAGIC_LINK_RESOURCE_TYPE;
159
+ /**
160
+ * Stores the UNIX timestamp of when the link expires. If 0, then the link never expires
161
+ *
162
+ * @generated from field: uint64 expires_at = 30;
163
+ */
164
+ expiresAt: bigint;
165
+ /**
166
+ * Stores an optional description of the magic link
167
+ *
168
+ * @generated from field: string description = 35;
169
+ */
170
+ description: string;
171
+ /**
172
+ * 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.
173
+ *
174
+ * @generated from field: string code = 40;
175
+ */
176
+ code: string;
177
+ /**
178
+ * Stores the generated URL of the magic link
179
+ *
180
+ * @generated from field: string url = 100;
181
+ */
182
+ url: string;
183
+ constructor(data?: PartialMessage<MagicLink>);
184
+ static readonly runtime: typeof proto3;
185
+ static readonly typeName = "Scailo.MagicLink";
186
+ static readonly fields: FieldList;
187
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLink;
188
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLink;
189
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLink;
190
+ static equals(a: MagicLink | PlainMessage<MagicLink> | undefined, b: MagicLink | PlainMessage<MagicLink> | undefined): boolean;
191
+ }
192
+ /**
193
+ *
194
+ * Describes the data structure that stores a list of magic links
195
+ *
196
+ * @generated from message Scailo.MagicLinksList
197
+ */
198
+ export declare class MagicLinksList extends Message<MagicLinksList> {
199
+ /**
200
+ * List of magic links
201
+ *
202
+ * @generated from field: repeated Scailo.MagicLink list = 1;
203
+ */
204
+ list: MagicLink[];
205
+ constructor(data?: PartialMessage<MagicLinksList>);
206
+ static readonly runtime: typeof proto3;
207
+ static readonly typeName = "Scailo.MagicLinksList";
208
+ static readonly fields: FieldList;
209
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinksList;
210
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinksList;
211
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinksList;
212
+ static equals(a: MagicLinksList | PlainMessage<MagicLinksList> | undefined, b: MagicLinksList | PlainMessage<MagicLinksList> | undefined): boolean;
213
+ }
214
+ /**
215
+ *
216
+ * Describes the data structure that responds to a pagination request
217
+ *
218
+ * @generated from message Scailo.MagicLinkPaginationResp
219
+ */
220
+ export declare class MagicLinkPaginationResp extends Message<MagicLinkPaginationResp> {
221
+ /**
222
+ * The number of records in this payload
223
+ *
224
+ * @generated from field: uint64 count = 1;
225
+ */
226
+ count: bigint;
227
+ /**
228
+ * 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
229
+ *
230
+ * @generated from field: uint64 offset = 2;
231
+ */
232
+ offset: bigint;
233
+ /**
234
+ * The total number of records that are available
235
+ *
236
+ * @generated from field: uint64 total = 3;
237
+ */
238
+ total: bigint;
239
+ /**
240
+ * The list of records
241
+ *
242
+ * @generated from field: repeated Scailo.MagicLink payload = 4;
243
+ */
244
+ payload: MagicLink[];
245
+ constructor(data?: PartialMessage<MagicLinkPaginationResp>);
246
+ static readonly runtime: typeof proto3;
247
+ static readonly typeName = "Scailo.MagicLinkPaginationResp";
248
+ static readonly fields: FieldList;
249
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinkPaginationResp;
250
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinkPaginationResp;
251
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinkPaginationResp;
252
+ static equals(a: MagicLinkPaginationResp | PlainMessage<MagicLinkPaginationResp> | undefined, b: MagicLinkPaginationResp | PlainMessage<MagicLinkPaginationResp> | undefined): boolean;
253
+ }
254
+ /**
255
+ *
256
+ * Describes the necessary data structure during creation of a magic link
257
+ *
258
+ * @generated from message Scailo.MagicLinksServiceCreateRequest
259
+ */
260
+ export declare class MagicLinksServiceCreateRequest extends Message<MagicLinksServiceCreateRequest> {
261
+ /**
262
+ * Stores a globally unique entity UUID. This will be set at the organization level
263
+ *
264
+ * @generated from field: string entity_uuid = 1;
265
+ */
266
+ entityUuid: string;
267
+ /**
268
+ * Stores any comment that the user might add during this operation
269
+ *
270
+ * @generated from field: string user_comment = 2;
271
+ */
272
+ userComment: string;
273
+ /**
274
+ * The UUID of the resource
275
+ *
276
+ * @generated from field: string resource_uuid = 10;
277
+ */
278
+ resourceUuid: string;
279
+ /**
280
+ * The type of the resource
281
+ *
282
+ * @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
283
+ */
284
+ resourceType: MAGIC_LINK_RESOURCE_TYPE;
285
+ /**
286
+ * Stores the UNIX timestamp of when the link expires. If 0, then the link never expires
287
+ *
288
+ * @generated from field: uint64 expires_at = 30;
289
+ */
290
+ expiresAt: bigint;
291
+ /**
292
+ * Stores an optional description of the magic link
293
+ *
294
+ * @generated from field: string description = 35;
295
+ */
296
+ description: string;
297
+ constructor(data?: PartialMessage<MagicLinksServiceCreateRequest>);
298
+ static readonly runtime: typeof proto3;
299
+ static readonly typeName = "Scailo.MagicLinksServiceCreateRequest";
300
+ static readonly fields: FieldList;
301
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinksServiceCreateRequest;
302
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinksServiceCreateRequest;
303
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinksServiceCreateRequest;
304
+ static equals(a: MagicLinksServiceCreateRequest | PlainMessage<MagicLinksServiceCreateRequest> | undefined, b: MagicLinksServiceCreateRequest | PlainMessage<MagicLinksServiceCreateRequest> | undefined): boolean;
305
+ }
306
+ /**
307
+ *
308
+ * 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
309
+ *
310
+ * @generated from message Scailo.MagicLinksServiceCreateRequestForSpecificResource
311
+ */
312
+ export declare class MagicLinksServiceCreateRequestForSpecificResource extends Message<MagicLinksServiceCreateRequestForSpecificResource> {
313
+ /**
314
+ * Stores any comment that the user might add during this operation
315
+ *
316
+ * @generated from field: string user_comment = 2;
317
+ */
318
+ userComment: string;
319
+ /**
320
+ * The UUID of the resource
321
+ *
322
+ * @generated from field: string resource_uuid = 10;
323
+ */
324
+ resourceUuid: string;
325
+ /**
326
+ * Stores the UNIX timestamp of when the link expires. If 0, then the link never expires
327
+ *
328
+ * @generated from field: uint64 expires_at = 30;
329
+ */
330
+ expiresAt: bigint;
331
+ /**
332
+ * Stores an optional description of the magic link
333
+ *
334
+ * @generated from field: string description = 35;
335
+ */
336
+ description: string;
337
+ constructor(data?: PartialMessage<MagicLinksServiceCreateRequestForSpecificResource>);
338
+ static readonly runtime: typeof proto3;
339
+ static readonly typeName = "Scailo.MagicLinksServiceCreateRequestForSpecificResource";
340
+ static readonly fields: FieldList;
341
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinksServiceCreateRequestForSpecificResource;
342
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinksServiceCreateRequestForSpecificResource;
343
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinksServiceCreateRequestForSpecificResource;
344
+ static equals(a: MagicLinksServiceCreateRequestForSpecificResource | PlainMessage<MagicLinksServiceCreateRequestForSpecificResource> | undefined, b: MagicLinksServiceCreateRequestForSpecificResource | PlainMessage<MagicLinksServiceCreateRequestForSpecificResource> | undefined): boolean;
345
+ }
346
+ /**
347
+ *
348
+ * Describes the data structure to perform the update (draft/revision) operation on a magic link
349
+ *
350
+ * @generated from message Scailo.MagicLinksServiceUpdateRequest
351
+ */
352
+ export declare class MagicLinksServiceUpdateRequest extends Message<MagicLinksServiceUpdateRequest> {
353
+ /**
354
+ * Stores any comment that the user might add during this operation
355
+ *
356
+ * @generated from field: string user_comment = 1;
357
+ */
358
+ userComment: string;
359
+ /**
360
+ * The ID of the magic link that needs to be updated
361
+ *
362
+ * @generated from field: uint64 id = 2;
363
+ */
364
+ id: bigint;
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
+ expiresAt: bigint;
371
+ /**
372
+ * Stores an optional description of the magic link
373
+ *
374
+ * @generated from field: string description = 35;
375
+ */
376
+ description: string;
377
+ constructor(data?: PartialMessage<MagicLinksServiceUpdateRequest>);
378
+ static readonly runtime: typeof proto3;
379
+ static readonly typeName = "Scailo.MagicLinksServiceUpdateRequest";
380
+ static readonly fields: FieldList;
381
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinksServiceUpdateRequest;
382
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinksServiceUpdateRequest;
383
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinksServiceUpdateRequest;
384
+ static equals(a: MagicLinksServiceUpdateRequest | PlainMessage<MagicLinksServiceUpdateRequest> | undefined, b: MagicLinksServiceUpdateRequest | PlainMessage<MagicLinksServiceUpdateRequest> | undefined): boolean;
385
+ }
386
+ /**
387
+ *
388
+ * Describes a pagination request to retrieve records
389
+ *
390
+ * @generated from message Scailo.MagicLinksServicePaginationReq
391
+ */
392
+ export declare class MagicLinksServicePaginationReq extends Message<MagicLinksServicePaginationReq> {
393
+ /**
394
+ * If true, then returns only active records. If false, then returns only inactive records
395
+ *
396
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
397
+ */
398
+ isActive: BOOL_FILTER;
399
+ /**
400
+ * The number of records that need to be sent in the response
401
+ *
402
+ * @generated from field: int64 count = 2;
403
+ */
404
+ count: bigint;
405
+ /**
406
+ * The number that need to be offset by before fetching the records
407
+ *
408
+ * @generated from field: uint64 offset = 3;
409
+ */
410
+ offset: bigint;
411
+ /**
412
+ * The sort order that is to be used to fetch the pagination response
413
+ *
414
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
415
+ */
416
+ sortOrder: SORT_ORDER;
417
+ /**
418
+ * The sort key that is to be used to fetch the pagination response
419
+ *
420
+ * @generated from field: Scailo.MAGIC_LINK_SORT_KEY sort_key = 5;
421
+ */
422
+ sortKey: MAGIC_LINK_SORT_KEY;
423
+ constructor(data?: PartialMessage<MagicLinksServicePaginationReq>);
424
+ static readonly runtime: typeof proto3;
425
+ static readonly typeName = "Scailo.MagicLinksServicePaginationReq";
426
+ static readonly fields: FieldList;
427
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinksServicePaginationReq;
428
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinksServicePaginationReq;
429
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinksServicePaginationReq;
430
+ static equals(a: MagicLinksServicePaginationReq | PlainMessage<MagicLinksServicePaginationReq> | undefined, b: MagicLinksServicePaginationReq | PlainMessage<MagicLinksServicePaginationReq> | undefined): boolean;
431
+ }
432
+ /**
433
+ *
434
+ * Describes the base request payload of a filter search
435
+ *
436
+ * @generated from message Scailo.MagicLinksServiceFilterReq
437
+ */
438
+ export declare class MagicLinksServiceFilterReq extends Message<MagicLinksServiceFilterReq> {
439
+ /**
440
+ * If true, then returns only active records. If false, then returns only inactive records
441
+ *
442
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
443
+ */
444
+ isActive: BOOL_FILTER;
445
+ /**
446
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
447
+ *
448
+ * @generated from field: int64 count = 2;
449
+ */
450
+ count: bigint;
451
+ /**
452
+ * The number that need to be offset by before fetching the records
453
+ *
454
+ * @generated from field: uint64 offset = 3;
455
+ */
456
+ offset: bigint;
457
+ /**
458
+ * The sort order that is to be used to fetch the pagination response
459
+ *
460
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
461
+ */
462
+ sortOrder: SORT_ORDER;
463
+ /**
464
+ * The sort key that is to be used to fetch the pagination response
465
+ *
466
+ * @generated from field: Scailo.MAGIC_LINK_SORT_KEY sort_key = 5;
467
+ */
468
+ sortKey: MAGIC_LINK_SORT_KEY;
469
+ /**
470
+ * The minimum timestamp that needs to be considered to filter by creation
471
+ *
472
+ * @generated from field: uint64 creation_timestamp_start = 101;
473
+ */
474
+ creationTimestampStart: bigint;
475
+ /**
476
+ * The maximum timestamp that needs to be considered to filter by creation
477
+ *
478
+ * @generated from field: uint64 creation_timestamp_end = 102;
479
+ */
480
+ creationTimestampEnd: bigint;
481
+ /**
482
+ * The minimum timestamp that needs to be considered to filter by modification
483
+ *
484
+ * @generated from field: uint64 modification_timestamp_start = 103;
485
+ */
486
+ modificationTimestampStart: bigint;
487
+ /**
488
+ * The maximum timestamp that needs to be considered to filter by modification
489
+ *
490
+ * @generated from field: uint64 modification_timestamp_end = 104;
491
+ */
492
+ modificationTimestampEnd: bigint;
493
+ /**
494
+ * The entity UUID that is to be used to filter records
495
+ *
496
+ * @generated from field: string entity_uuid = 8;
497
+ */
498
+ entityUuid: string;
499
+ /**
500
+ * The type of the resource
501
+ *
502
+ * @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
503
+ */
504
+ resourceType: MAGIC_LINK_RESOURCE_TYPE;
505
+ /**
506
+ * The UUID of the resource
507
+ *
508
+ * @generated from field: string resource_uuid = 22;
509
+ */
510
+ resourceUuid: string;
511
+ /**
512
+ * The start timestamp that needs to be considered to filter by expiry
513
+ *
514
+ * @generated from field: uint64 expires_at_start = 30;
515
+ */
516
+ expiresAtStart: bigint;
517
+ /**
518
+ * The end timestamp that needs to be considered to filter by expiry
519
+ *
520
+ * @generated from field: uint64 expires_at_end = 31;
521
+ */
522
+ expiresAtEnd: bigint;
523
+ constructor(data?: PartialMessage<MagicLinksServiceFilterReq>);
524
+ static readonly runtime: typeof proto3;
525
+ static readonly typeName = "Scailo.MagicLinksServiceFilterReq";
526
+ static readonly fields: FieldList;
527
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinksServiceFilterReq;
528
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinksServiceFilterReq;
529
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinksServiceFilterReq;
530
+ static equals(a: MagicLinksServiceFilterReq | PlainMessage<MagicLinksServiceFilterReq> | undefined, b: MagicLinksServiceFilterReq | PlainMessage<MagicLinksServiceFilterReq> | undefined): boolean;
531
+ }
532
+ /**
533
+ *
534
+ * Describes the base request payload of a count search
535
+ *
536
+ * @generated from message Scailo.MagicLinksServiceCountReq
537
+ */
538
+ export declare class MagicLinksServiceCountReq extends Message<MagicLinksServiceCountReq> {
539
+ /**
540
+ * If true, then returns only active records. If false, then returns only inactive records
541
+ *
542
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
543
+ */
544
+ isActive: BOOL_FILTER;
545
+ /**
546
+ * The minimum timestamp that needs to be considered to filter by creation
547
+ *
548
+ * @generated from field: uint64 creation_timestamp_start = 101;
549
+ */
550
+ creationTimestampStart: bigint;
551
+ /**
552
+ * The maximum timestamp that needs to be considered to filter by creation
553
+ *
554
+ * @generated from field: uint64 creation_timestamp_end = 102;
555
+ */
556
+ creationTimestampEnd: bigint;
557
+ /**
558
+ * The minimum timestamp that needs to be considered to filter by modification
559
+ *
560
+ * @generated from field: uint64 modification_timestamp_start = 103;
561
+ */
562
+ modificationTimestampStart: bigint;
563
+ /**
564
+ * The maximum timestamp that needs to be considered to filter by modification
565
+ *
566
+ * @generated from field: uint64 modification_timestamp_end = 104;
567
+ */
568
+ modificationTimestampEnd: bigint;
569
+ /**
570
+ * The entity UUID that is to be used to filter records
571
+ *
572
+ * @generated from field: string entity_uuid = 8;
573
+ */
574
+ entityUuid: string;
575
+ /**
576
+ * The type of the resource
577
+ *
578
+ * @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
579
+ */
580
+ resourceType: MAGIC_LINK_RESOURCE_TYPE;
581
+ /**
582
+ * The UUID of the resource
583
+ *
584
+ * @generated from field: string resource_uuid = 22;
585
+ */
586
+ resourceUuid: string;
587
+ /**
588
+ * The start timestamp that needs to be considered to filter by expiry
589
+ *
590
+ * @generated from field: uint64 expires_at_start = 30;
591
+ */
592
+ expiresAtStart: bigint;
593
+ /**
594
+ * The end timestamp that needs to be considered to filter by expiry
595
+ *
596
+ * @generated from field: uint64 expires_at_end = 31;
597
+ */
598
+ expiresAtEnd: bigint;
599
+ constructor(data?: PartialMessage<MagicLinksServiceCountReq>);
600
+ static readonly runtime: typeof proto3;
601
+ static readonly typeName = "Scailo.MagicLinksServiceCountReq";
602
+ static readonly fields: FieldList;
603
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinksServiceCountReq;
604
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinksServiceCountReq;
605
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinksServiceCountReq;
606
+ static equals(a: MagicLinksServiceCountReq | PlainMessage<MagicLinksServiceCountReq> | undefined, b: MagicLinksServiceCountReq | PlainMessage<MagicLinksServiceCountReq> | undefined): boolean;
607
+ }
608
+ /**
609
+ *
610
+ * Describes the request payload for performing a generic search operation on magic links
611
+ *
612
+ * @generated from message Scailo.MagicLinksServiceSearchAllReq
613
+ */
614
+ export declare class MagicLinksServiceSearchAllReq extends Message<MagicLinksServiceSearchAllReq> {
615
+ /**
616
+ * If true, then returns only active records. If false, then returns only inactive records
617
+ *
618
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
619
+ */
620
+ isActive: BOOL_FILTER;
621
+ /**
622
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
623
+ *
624
+ * @generated from field: int64 count = 2;
625
+ */
626
+ count: bigint;
627
+ /**
628
+ * The number that need to be offset by before fetching the records
629
+ *
630
+ * @generated from field: uint64 offset = 3;
631
+ */
632
+ offset: bigint;
633
+ /**
634
+ * The sort order that is to be used to fetch the pagination response
635
+ *
636
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
637
+ */
638
+ sortOrder: SORT_ORDER;
639
+ /**
640
+ * The sort key that is to be used to fetch the response
641
+ *
642
+ * @generated from field: Scailo.MAGIC_LINK_SORT_KEY sort_key = 5;
643
+ */
644
+ sortKey: MAGIC_LINK_SORT_KEY;
645
+ /**
646
+ * The entity UUID that is to be used to filter magic links
647
+ *
648
+ * @generated from field: string entity_uuid = 6;
649
+ */
650
+ entityUuid: string;
651
+ /**
652
+ * Describes the key with which the search operation needs to be performed
653
+ *
654
+ * @generated from field: string search_key = 10;
655
+ */
656
+ searchKey: string;
657
+ /**
658
+ * The type of the resource
659
+ *
660
+ * @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
661
+ */
662
+ resourceType: MAGIC_LINK_RESOURCE_TYPE;
663
+ constructor(data?: PartialMessage<MagicLinksServiceSearchAllReq>);
664
+ static readonly runtime: typeof proto3;
665
+ static readonly typeName = "Scailo.MagicLinksServiceSearchAllReq";
666
+ static readonly fields: FieldList;
667
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinksServiceSearchAllReq;
668
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinksServiceSearchAllReq;
669
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinksServiceSearchAllReq;
670
+ static equals(a: MagicLinksServiceSearchAllReq | PlainMessage<MagicLinksServiceSearchAllReq> | undefined, b: MagicLinksServiceSearchAllReq | PlainMessage<MagicLinksServiceSearchAllReq> | undefined): boolean;
671
+ }
672
+ /**
673
+ *
674
+ * Describes the request payload for retrieving the magic link information using the code
675
+ *
676
+ * @generated from message Scailo.MagicLinkServiceSearchByCodeReq
677
+ */
678
+ export declare class MagicLinkServiceSearchByCodeReq extends Message<MagicLinkServiceSearchByCodeReq> {
679
+ /**
680
+ * The code that needs to be used to retrieve the magic link
681
+ *
682
+ * @generated from field: string code = 1;
683
+ */
684
+ code: string;
685
+ /**
686
+ * The IP address that is requesting the search (must be a valid IPv4 or IPv6 address)
687
+ *
688
+ * @generated from field: string ip_address = 2;
689
+ */
690
+ ipAddress: string;
691
+ constructor(data?: PartialMessage<MagicLinkServiceSearchByCodeReq>);
692
+ static readonly runtime: typeof proto3;
693
+ static readonly typeName = "Scailo.MagicLinkServiceSearchByCodeReq";
694
+ static readonly fields: FieldList;
695
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinkServiceSearchByCodeReq;
696
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinkServiceSearchByCodeReq;
697
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinkServiceSearchByCodeReq;
698
+ static equals(a: MagicLinkServiceSearchByCodeReq | PlainMessage<MagicLinkServiceSearchByCodeReq> | undefined, b: MagicLinkServiceSearchByCodeReq | PlainMessage<MagicLinkServiceSearchByCodeReq> | undefined): boolean;
699
+ }
700
+ /**
701
+ *
702
+ * Describes the access log of each magic link
703
+ *
704
+ * @generated from message Scailo.MagicLinkAccessLog
705
+ */
706
+ export declare class MagicLinkAccessLog extends Message<MagicLinkAccessLog> {
707
+ /**
708
+ * Stores a globally unique entity UUID. This will be set at the organization level
709
+ *
710
+ * @generated from field: string entity_uuid = 1;
711
+ */
712
+ entityUuid: string;
713
+ /**
714
+ * Stores the metadata of this user
715
+ *
716
+ * @generated from field: Scailo.EmployeeMetadata metadata = 2;
717
+ */
718
+ metadata?: EmployeeMetadata;
719
+ /**
720
+ * Stores the UUID of the magic link that was accessed
721
+ *
722
+ * @generated from field: string magic_link_uuid = 12;
723
+ */
724
+ magicLinkUuid: string;
725
+ /**
726
+ * Stores the IP address from where the resource was accessed
727
+ *
728
+ * @generated from field: string ip_addr = 13;
729
+ */
730
+ ipAddr: string;
731
+ constructor(data?: PartialMessage<MagicLinkAccessLog>);
732
+ static readonly runtime: typeof proto3;
733
+ static readonly typeName = "Scailo.MagicLinkAccessLog";
734
+ static readonly fields: FieldList;
735
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinkAccessLog;
736
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinkAccessLog;
737
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinkAccessLog;
738
+ static equals(a: MagicLinkAccessLog | PlainMessage<MagicLinkAccessLog> | undefined, b: MagicLinkAccessLog | PlainMessage<MagicLinkAccessLog> | undefined): boolean;
739
+ }
740
+ /**
741
+ *
742
+ * Describes the message consisting of the list of access logs
743
+ *
744
+ * @generated from message Scailo.MagicLinkAccessLogsList
745
+ */
746
+ export declare class MagicLinkAccessLogsList extends Message<MagicLinkAccessLogsList> {
747
+ /**
748
+ * List of access logs
749
+ *
750
+ * @generated from field: repeated Scailo.MagicLinkAccessLog list = 1;
751
+ */
752
+ list: MagicLinkAccessLog[];
753
+ constructor(data?: PartialMessage<MagicLinkAccessLogsList>);
754
+ static readonly runtime: typeof proto3;
755
+ static readonly typeName = "Scailo.MagicLinkAccessLogsList";
756
+ static readonly fields: FieldList;
757
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MagicLinkAccessLogsList;
758
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MagicLinkAccessLogsList;
759
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MagicLinkAccessLogsList;
760
+ static equals(a: MagicLinkAccessLogsList | PlainMessage<MagicLinkAccessLogsList> | undefined, b: MagicLinkAccessLogsList | PlainMessage<MagicLinkAccessLogsList> | undefined): boolean;
761
+ }
762
+ //# sourceMappingURL=magic_links.scailo_pb.d.ts.map