@kernelminds/scailo-sdk 0.0.96 → 0.0.98

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