@kernelminds/scailo-sdk 0.0.95 → 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 (121) 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/families.scailo_pb.js +0 -42
  6. package/lib/cjs/src/general_settings.scailo_pb.js +14 -0
  7. package/lib/cjs/src/goods_dispatches.scailo_connect.js +12 -0
  8. package/lib/cjs/src/goods_receipts.scailo_connect.js +12 -0
  9. package/lib/cjs/src/inward_jobs.scailo_connect.js +12 -0
  10. package/lib/cjs/src/login.scailo_pb.js +7 -0
  11. package/lib/cjs/src/magic_links.scailo_connect.js +198 -0
  12. package/lib/cjs/src/magic_links.scailo_pb.js +1021 -0
  13. package/lib/cjs/src/outward_jobs.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_returns.scailo_connect.js +12 -0
  20. package/lib/cjs/src/vendor_invoices.scailo_connect.js +12 -0
  21. package/lib/cjs/types/index.d.ts +31 -0
  22. package/lib/cjs/types/index.d.ts.map +1 -1
  23. package/lib/cjs/types/permissions.d.ts +95 -0
  24. package/lib/cjs/types/permissions.d.ts.map +1 -1
  25. package/lib/cjs/types/src/credit_notes.scailo_connect.d.ts +12 -0
  26. package/lib/cjs/types/src/credit_notes.scailo_connect.d.ts.map +1 -1
  27. package/lib/cjs/types/src/debit_notes.scailo_connect.d.ts +12 -0
  28. package/lib/cjs/types/src/debit_notes.scailo_connect.d.ts.map +1 -1
  29. package/lib/cjs/types/src/families.scailo_pb.d.ts +0 -36
  30. package/lib/cjs/types/src/families.scailo_pb.d.ts.map +1 -1
  31. package/lib/cjs/types/src/general_settings.scailo_pb.d.ts +12 -0
  32. package/lib/cjs/types/src/general_settings.scailo_pb.d.ts.map +1 -1
  33. package/lib/cjs/types/src/goods_dispatches.scailo_connect.d.ts +12 -0
  34. package/lib/cjs/types/src/goods_dispatches.scailo_connect.d.ts.map +1 -1
  35. package/lib/cjs/types/src/goods_receipts.scailo_connect.d.ts +12 -0
  36. package/lib/cjs/types/src/goods_receipts.scailo_connect.d.ts.map +1 -1
  37. package/lib/cjs/types/src/inward_jobs.scailo_connect.d.ts +12 -0
  38. package/lib/cjs/types/src/inward_jobs.scailo_connect.d.ts.map +1 -1
  39. package/lib/cjs/types/src/login.scailo_pb.d.ts +6 -0
  40. package/lib/cjs/types/src/login.scailo_pb.d.ts.map +1 -1
  41. package/lib/cjs/types/src/magic_links.scailo_connect.d.ts +192 -0
  42. package/lib/cjs/types/src/magic_links.scailo_connect.d.ts.map +1 -0
  43. package/lib/cjs/types/src/magic_links.scailo_pb.d.ts +762 -0
  44. package/lib/cjs/types/src/magic_links.scailo_pb.d.ts.map +1 -0
  45. package/lib/cjs/types/src/outward_jobs.scailo_connect.d.ts +12 -0
  46. package/lib/cjs/types/src/outward_jobs.scailo_connect.d.ts.map +1 -1
  47. package/lib/cjs/types/src/purchases_orders.scailo_connect.d.ts +12 -0
  48. package/lib/cjs/types/src/purchases_orders.scailo_connect.d.ts.map +1 -1
  49. package/lib/cjs/types/src/purchases_returns.scailo_connect.d.ts +12 -0
  50. package/lib/cjs/types/src/purchases_returns.scailo_connect.d.ts.map +1 -1
  51. package/lib/cjs/types/src/sales_enquiries.scailo_connect.d.ts +12 -0
  52. package/lib/cjs/types/src/sales_enquiries.scailo_connect.d.ts.map +1 -1
  53. package/lib/cjs/types/src/sales_invoices.scailo_connect.d.ts +12 -0
  54. package/lib/cjs/types/src/sales_invoices.scailo_connect.d.ts.map +1 -1
  55. package/lib/cjs/types/src/sales_orders.scailo_connect.d.ts +12 -0
  56. package/lib/cjs/types/src/sales_orders.scailo_connect.d.ts.map +1 -1
  57. package/lib/cjs/types/src/sales_returns.scailo_connect.d.ts +12 -0
  58. package/lib/cjs/types/src/sales_returns.scailo_connect.d.ts.map +1 -1
  59. package/lib/cjs/types/src/vendor_invoices.scailo_connect.d.ts +12 -0
  60. package/lib/cjs/types/src/vendor_invoices.scailo_connect.d.ts.map +1 -1
  61. package/lib/esm/index.js +34 -0
  62. package/lib/esm/permissions.js +56 -36
  63. package/lib/esm/src/credit_notes.scailo_connect.js +12 -0
  64. package/lib/esm/src/debit_notes.scailo_connect.js +12 -0
  65. package/lib/esm/src/families.scailo_pb.js +0 -42
  66. package/lib/esm/src/general_settings.scailo_pb.js +14 -0
  67. package/lib/esm/src/goods_dispatches.scailo_connect.js +12 -0
  68. package/lib/esm/src/goods_receipts.scailo_connect.js +12 -0
  69. package/lib/esm/src/inward_jobs.scailo_connect.js +12 -0
  70. package/lib/esm/src/login.scailo_pb.js +7 -0
  71. package/lib/esm/src/magic_links.scailo_connect.js +198 -0
  72. package/lib/esm/src/magic_links.scailo_pb.js +1033 -0
  73. package/lib/esm/src/outward_jobs.scailo_connect.js +12 -0
  74. package/lib/esm/src/purchases_orders.scailo_connect.js +12 -0
  75. package/lib/esm/src/purchases_returns.scailo_connect.js +12 -0
  76. package/lib/esm/src/sales_enquiries.scailo_connect.js +12 -0
  77. package/lib/esm/src/sales_invoices.scailo_connect.js +12 -0
  78. package/lib/esm/src/sales_orders.scailo_connect.js +12 -0
  79. package/lib/esm/src/sales_returns.scailo_connect.js +12 -0
  80. package/lib/esm/src/vendor_invoices.scailo_connect.js +12 -0
  81. package/lib/esm/types/index.d.ts +31 -0
  82. package/lib/esm/types/index.d.ts.map +1 -1
  83. package/lib/esm/types/permissions.d.ts +95 -0
  84. package/lib/esm/types/permissions.d.ts.map +1 -1
  85. package/lib/esm/types/src/credit_notes.scailo_connect.d.ts +12 -0
  86. package/lib/esm/types/src/credit_notes.scailo_connect.d.ts.map +1 -1
  87. package/lib/esm/types/src/debit_notes.scailo_connect.d.ts +12 -0
  88. package/lib/esm/types/src/debit_notes.scailo_connect.d.ts.map +1 -1
  89. package/lib/esm/types/src/families.scailo_pb.d.ts +0 -36
  90. package/lib/esm/types/src/families.scailo_pb.d.ts.map +1 -1
  91. package/lib/esm/types/src/general_settings.scailo_pb.d.ts +12 -0
  92. package/lib/esm/types/src/general_settings.scailo_pb.d.ts.map +1 -1
  93. package/lib/esm/types/src/goods_dispatches.scailo_connect.d.ts +12 -0
  94. package/lib/esm/types/src/goods_dispatches.scailo_connect.d.ts.map +1 -1
  95. package/lib/esm/types/src/goods_receipts.scailo_connect.d.ts +12 -0
  96. package/lib/esm/types/src/goods_receipts.scailo_connect.d.ts.map +1 -1
  97. package/lib/esm/types/src/inward_jobs.scailo_connect.d.ts +12 -0
  98. package/lib/esm/types/src/inward_jobs.scailo_connect.d.ts.map +1 -1
  99. package/lib/esm/types/src/login.scailo_pb.d.ts +6 -0
  100. package/lib/esm/types/src/login.scailo_pb.d.ts.map +1 -1
  101. package/lib/esm/types/src/magic_links.scailo_connect.d.ts +192 -0
  102. package/lib/esm/types/src/magic_links.scailo_connect.d.ts.map +1 -0
  103. package/lib/esm/types/src/magic_links.scailo_pb.d.ts +762 -0
  104. package/lib/esm/types/src/magic_links.scailo_pb.d.ts.map +1 -0
  105. package/lib/esm/types/src/outward_jobs.scailo_connect.d.ts +12 -0
  106. package/lib/esm/types/src/outward_jobs.scailo_connect.d.ts.map +1 -1
  107. package/lib/esm/types/src/purchases_orders.scailo_connect.d.ts +12 -0
  108. package/lib/esm/types/src/purchases_orders.scailo_connect.d.ts.map +1 -1
  109. package/lib/esm/types/src/purchases_returns.scailo_connect.d.ts +12 -0
  110. package/lib/esm/types/src/purchases_returns.scailo_connect.d.ts.map +1 -1
  111. package/lib/esm/types/src/sales_enquiries.scailo_connect.d.ts +12 -0
  112. package/lib/esm/types/src/sales_enquiries.scailo_connect.d.ts.map +1 -1
  113. package/lib/esm/types/src/sales_invoices.scailo_connect.d.ts +12 -0
  114. package/lib/esm/types/src/sales_invoices.scailo_connect.d.ts.map +1 -1
  115. package/lib/esm/types/src/sales_orders.scailo_connect.d.ts +12 -0
  116. package/lib/esm/types/src/sales_orders.scailo_connect.d.ts.map +1 -1
  117. package/lib/esm/types/src/sales_returns.scailo_connect.d.ts +12 -0
  118. package/lib/esm/types/src/sales_returns.scailo_connect.d.ts.map +1 -1
  119. package/lib/esm/types/src/vendor_invoices.scailo_connect.d.ts +12 -0
  120. package/lib/esm/types/src/vendor_invoices.scailo_connect.d.ts.map +1 -1
  121. package/package.json +1 -1
@@ -8,6 +8,7 @@ exports.DebitNotesService = void 0;
8
8
  const debit_notes_scailo_pb_js_1 = require("./debit_notes.scailo_pb.js");
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
10
  const protobuf_1 = require("@bufbuild/protobuf");
11
+ const magic_links_scailo_pb_js_1 = require("./magic_links.scailo_pb.js");
11
12
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
12
13
  /**
13
14
  *
@@ -205,6 +206,17 @@ exports.DebitNotesService = {
205
206
  O: base_scailo_pb_js_1.IdentifierResponse,
206
207
  kind: protobuf_1.MethodKind.Unary,
207
208
  },
209
+ /**
210
+ * Create a magic link
211
+ *
212
+ * @generated from rpc Scailo.DebitNotesService.CreateMagicLink
213
+ */
214
+ createMagicLink: {
215
+ name: "CreateMagicLink",
216
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceCreateRequestForSpecificResource,
217
+ O: magic_links_scailo_pb_js_1.MagicLink,
218
+ kind: protobuf_1.MethodKind.Unary,
219
+ },
208
220
  /**
209
221
  * Add an item to a debit note
210
222
  *
@@ -187,12 +187,6 @@ var FAMILY_SORT_KEY;
187
187
  * @generated from enum value: FAMILY_SORT_KEY_NAME = 10;
188
188
  */
189
189
  FAMILY_SORT_KEY[FAMILY_SORT_KEY["FAMILY_SORT_KEY_NAME"] = 10] = "FAMILY_SORT_KEY_NAME";
190
- /**
191
- * Fetch ordered results by the drawing number
192
- *
193
- * @generated from enum value: FAMILY_SORT_KEY_DRAWING_NUMBER = 11;
194
- */
195
- FAMILY_SORT_KEY[FAMILY_SORT_KEY["FAMILY_SORT_KEY_DRAWING_NUMBER"] = 11] = "FAMILY_SORT_KEY_DRAWING_NUMBER";
196
190
  /**
197
191
  * Fetch ordered results by the code
198
192
  *
@@ -227,7 +221,6 @@ protobuf_1.proto3.util.setEnumType(FAMILY_SORT_KEY, "Scailo.FAMILY_SORT_KEY", [
227
221
  { no: 4, name: "FAMILY_SORT_KEY_APPROVED_BY" },
228
222
  { no: 5, name: "FAMILY_SORT_KEY_APPROVER_ROLE_ID" },
229
223
  { no: 10, name: "FAMILY_SORT_KEY_NAME" },
230
- { no: 11, name: "FAMILY_SORT_KEY_DRAWING_NUMBER" },
231
224
  { no: 12, name: "FAMILY_SORT_KEY_CODE" },
232
225
  { no: 13, name: "FAMILY_SORT_KEY_UNIT_QUANTITY" },
233
226
  { no: 14, name: "FAMILY_SORT_KEY_PRICE" },
@@ -314,12 +307,6 @@ class FamiliesServiceCreateRequest extends protobuf_1.Message {
314
307
  * @generated from field: string code = 12;
315
308
  */
316
309
  this.code = "";
317
- /**
318
- * The drawing number of the family
319
- *
320
- * @generated from field: string drawing_number = 13;
321
- */
322
- this.drawingNumber = "";
323
310
  /**
324
311
  * The description of the family
325
312
  *
@@ -423,7 +410,6 @@ FamiliesServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(() =>
423
410
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
424
411
  { no: 11, name: "print_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
425
412
  { no: 12, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
426
- { no: 13, name: "drawing_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
427
413
  { no: 14, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
428
414
  { no: 15, name: "family_type", kind: "enum", T: protobuf_1.proto3.getEnumType(FAMILY_TYPE) },
429
415
  { no: 16, name: "hsn_sac_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -489,12 +475,6 @@ class FamiliesServiceUpdateRequest extends protobuf_1.Message {
489
475
  * @generated from field: string code = 12;
490
476
  */
491
477
  this.code = "";
492
- /**
493
- * The drawing number of the family
494
- *
495
- * @generated from field: string drawing_number = 13;
496
- */
497
- this.drawingNumber = "";
498
478
  /**
499
479
  * The description of the family
500
480
  *
@@ -599,7 +579,6 @@ FamiliesServiceUpdateRequest.fields = protobuf_1.proto3.util.newFieldList(() =>
599
579
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
600
580
  { no: 11, name: "print_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
601
581
  { no: 12, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
602
- { no: 13, name: "drawing_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
603
582
  { no: 14, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
604
583
  { no: 15, name: "family_type", kind: "enum", T: protobuf_1.proto3.getEnumType(FAMILY_TYPE) },
605
584
  { no: 16, name: "hsn_sac_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -665,12 +644,6 @@ class Family extends protobuf_1.Message {
665
644
  * @generated from field: string code = 12;
666
645
  */
667
646
  this.code = "";
668
- /**
669
- * The drawing number of the family
670
- *
671
- * @generated from field: string drawing_number = 13;
672
- */
673
- this.drawingNumber = "";
674
647
  /**
675
648
  * The description of the family
676
649
  *
@@ -783,7 +756,6 @@ Family.fields = protobuf_1.proto3.util.newFieldList(() => [
783
756
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
784
757
  { no: 11, name: "print_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
785
758
  { no: 12, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
786
- { no: 13, name: "drawing_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
787
759
  { no: 14, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
788
760
  { no: 15, name: "family_type", kind: "enum", T: protobuf_1.proto3.getEnumType(FAMILY_TYPE) },
789
761
  { no: 16, name: "hsn_sac_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -1080,12 +1052,6 @@ class FamiliesServiceFilterReq extends protobuf_1.Message {
1080
1052
  * @generated from field: string code = 22;
1081
1053
  */
1082
1054
  this.code = "";
1083
- /**
1084
- * The drawing number of the family
1085
- *
1086
- * @generated from field: string drawing_number = 23;
1087
- */
1088
- this.drawingNumber = "";
1089
1055
  /**
1090
1056
  * The type of the family
1091
1057
  *
@@ -1207,7 +1173,6 @@ FamiliesServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1207
1173
  { no: 14, name: "approver_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1208
1174
  { no: 20, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1209
1175
  { no: 22, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1210
- { no: 23, name: "drawing_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1211
1176
  { no: 25, name: "family_type", kind: "enum", T: protobuf_1.proto3.getEnumType(FAMILY_TYPE) },
1212
1177
  { no: 250, name: "multi_family_type", kind: "enum", T: protobuf_1.proto3.getEnumType(FAMILY_TYPE), repeated: true },
1213
1178
  { no: 26, name: "hsn_sac_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -1316,12 +1281,6 @@ class FamiliesServiceCountReq extends protobuf_1.Message {
1316
1281
  * @generated from field: string code = 22;
1317
1282
  */
1318
1283
  this.code = "";
1319
- /**
1320
- * The drawing number of the family
1321
- *
1322
- * @generated from field: string drawing_number = 23;
1323
- */
1324
- this.drawingNumber = "";
1325
1284
  /**
1326
1285
  * The type of the family
1327
1286
  *
@@ -1439,7 +1398,6 @@ FamiliesServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1439
1398
  { no: 14, name: "approver_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1440
1399
  { no: 20, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1441
1400
  { no: 22, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1442
- { no: 23, name: "drawing_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1443
1401
  { no: 25, name: "family_type", kind: "enum", T: protobuf_1.proto3.getEnumType(FAMILY_TYPE) },
1444
1402
  { no: 250, name: "multi_family_type", kind: "enum", T: protobuf_1.proto3.getEnumType(FAMILY_TYPE), repeated: true },
1445
1403
  { no: 26, name: "hsn_sac_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -94,6 +94,12 @@ class GeneralSettingsUpdateRequest extends protobuf_1.Message {
94
94
  * @generated from field: string domain_name = 40;
95
95
  */
96
96
  this.domainName = "";
97
+ /**
98
+ * The name of the domain using which users can access records without logging in
99
+ *
100
+ * @generated from field: string authless_access_domain = 41;
101
+ */
102
+ this.authlessAccessDomain = "";
97
103
  /**
98
104
  * The email address from which purchase orders will be sent
99
105
  *
@@ -192,6 +198,7 @@ GeneralSettingsUpdateRequest.fields = protobuf_1.proto3.util.newFieldList(() =>
192
198
  { no: 19, name: "pan", kind: "scalar", T: 9 /* ScalarType.STRING */ },
193
199
  { no: 20, name: "gstin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
194
200
  { no: 40, name: "domain_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
201
+ { no: 41, name: "authless_access_domain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
195
202
  { no: 50, name: "purchase_order_sender_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
196
203
  { no: 51, name: "sales_enquiry_sender_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
197
204
  { no: 52, name: "sales_order_sender_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -291,6 +298,12 @@ class GeneralSettings extends protobuf_1.Message {
291
298
  * @generated from field: string domain_name = 40;
292
299
  */
293
300
  this.domainName = "";
301
+ /**
302
+ * The name of the domain using which users can access records without logging in
303
+ *
304
+ * @generated from field: string authless_access_domain = 41;
305
+ */
306
+ this.authlessAccessDomain = "";
294
307
  /**
295
308
  * The email address from which purchase orders will be sent
296
309
  *
@@ -396,6 +409,7 @@ GeneralSettings.fields = protobuf_1.proto3.util.newFieldList(() => [
396
409
  { no: 19, name: "pan", kind: "scalar", T: 9 /* ScalarType.STRING */ },
397
410
  { no: 20, name: "gstin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
398
411
  { no: 40, name: "domain_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
412
+ { no: 41, name: "authless_access_domain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
399
413
  { no: 50, name: "purchase_order_sender_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
400
414
  { no: 51, name: "sales_enquiry_sender_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
401
415
  { no: 52, name: "sales_order_sender_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -8,6 +8,7 @@ exports.GoodsDispatchesService = void 0;
8
8
  const goods_dispatches_scailo_pb_js_1 = require("./goods_dispatches.scailo_pb.js");
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
10
  const protobuf_1 = require("@bufbuild/protobuf");
11
+ const magic_links_scailo_pb_js_1 = require("./magic_links.scailo_pb.js");
11
12
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
12
13
  /**
13
14
  *
@@ -216,6 +217,17 @@ exports.GoodsDispatchesService = {
216
217
  O: base_scailo_pb_js_1.BooleanResponse,
217
218
  kind: protobuf_1.MethodKind.Unary,
218
219
  },
220
+ /**
221
+ * Create a magic link
222
+ *
223
+ * @generated from rpc Scailo.GoodsDispatchesService.CreateMagicLink
224
+ */
225
+ createMagicLink: {
226
+ name: "CreateMagicLink",
227
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceCreateRequestForSpecificResource,
228
+ O: magic_links_scailo_pb_js_1.MagicLink,
229
+ kind: protobuf_1.MethodKind.Unary,
230
+ },
219
231
  /**
220
232
  * Add an item to a goods dispatch
221
233
  *
@@ -8,6 +8,7 @@ exports.GoodsReceiptsService = void 0;
8
8
  const goods_receipts_scailo_pb_js_1 = require("./goods_receipts.scailo_pb.js");
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
10
  const protobuf_1 = require("@bufbuild/protobuf");
11
+ const magic_links_scailo_pb_js_1 = require("./magic_links.scailo_pb.js");
11
12
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
12
13
  /**
13
14
  *
@@ -216,6 +217,17 @@ exports.GoodsReceiptsService = {
216
217
  O: base_scailo_pb_js_1.BooleanResponse,
217
218
  kind: protobuf_1.MethodKind.Unary,
218
219
  },
220
+ /**
221
+ * Create a magic link
222
+ *
223
+ * @generated from rpc Scailo.GoodsReceiptsService.CreateMagicLink
224
+ */
225
+ createMagicLink: {
226
+ name: "CreateMagicLink",
227
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceCreateRequestForSpecificResource,
228
+ O: magic_links_scailo_pb_js_1.MagicLink,
229
+ kind: protobuf_1.MethodKind.Unary,
230
+ },
219
231
  /**
220
232
  * Add an item to a goods receipt
221
233
  *
@@ -8,6 +8,7 @@ exports.InwardJobsService = void 0;
8
8
  const inward_jobs_scailo_pb_js_1 = require("./inward_jobs.scailo_pb.js");
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
10
  const protobuf_1 = require("@bufbuild/protobuf");
11
+ const magic_links_scailo_pb_js_1 = require("./magic_links.scailo_pb.js");
11
12
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
12
13
  /**
13
14
  *
@@ -205,6 +206,17 @@ exports.InwardJobsService = {
205
206
  O: base_scailo_pb_js_1.IdentifierResponse,
206
207
  kind: protobuf_1.MethodKind.Unary,
207
208
  },
209
+ /**
210
+ * Create a magic link
211
+ *
212
+ * @generated from rpc Scailo.InwardJobsService.CreateMagicLink
213
+ */
214
+ createMagicLink: {
215
+ name: "CreateMagicLink",
216
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceCreateRequestForSpecificResource,
217
+ O: magic_links_scailo_pb_js_1.MagicLink,
218
+ kind: protobuf_1.MethodKind.Unary,
219
+ },
208
220
  /**
209
221
  * Checks if the Inward Job can be marked as completed (is true when all the inward items have been ordered and all the outward items have been received)
210
222
  *
@@ -34,6 +34,12 @@ class UserLoginRequest extends protobuf_1.Message {
34
34
  * @generated from field: string otp = 13;
35
35
  */
36
36
  this.otp = "";
37
+ /**
38
+ * Optional session expiry time in seconds. The value is ignored if set to 0.
39
+ *
40
+ * @generated from field: uint64 expires_in = 20;
41
+ */
42
+ this.expiresIn = protobuf_1.protoInt64.zero;
37
43
  protobuf_1.proto3.util.initPartial(data, this);
38
44
  }
39
45
  static fromBinary(bytes, options) {
@@ -56,6 +62,7 @@ UserLoginRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
56
62
  { no: 1, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
63
  { no: 12, name: "plain_text_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
64
  { no: 13, name: "otp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
65
+ { no: 20, name: "expires_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
59
66
  ]);
60
67
  /**
61
68
  *
@@ -0,0 +1,198 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-connect-es v0.12.0 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.MagicLinksService = void 0;
8
+ const magic_links_scailo_pb_js_1 = require("./magic_links.scailo_pb.js");
9
+ const protobuf_1 = require("@bufbuild/protobuf");
10
+ const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
11
+ /**
12
+ *
13
+ * Describes the methods applicable on each magic link
14
+ *
15
+ * @generated from service Scailo.MagicLinksService
16
+ */
17
+ exports.MagicLinksService = {
18
+ typeName: "Scailo.MagicLinksService",
19
+ methods: {
20
+ /**
21
+ * Create a magic link
22
+ *
23
+ * @generated from rpc Scailo.MagicLinksService.Create
24
+ */
25
+ create: {
26
+ name: "Create",
27
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceCreateRequest,
28
+ O: magic_links_scailo_pb_js_1.MagicLink,
29
+ kind: protobuf_1.MethodKind.Unary,
30
+ },
31
+ /**
32
+ * Update a magic link
33
+ *
34
+ * @generated from rpc Scailo.MagicLinksService.Update
35
+ */
36
+ update: {
37
+ name: "Update",
38
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceUpdateRequest,
39
+ O: magic_links_scailo_pb_js_1.MagicLink,
40
+ kind: protobuf_1.MethodKind.Unary,
41
+ },
42
+ /**
43
+ * Discard the magic link
44
+ *
45
+ * @generated from rpc Scailo.MagicLinksService.Discard
46
+ */
47
+ discard: {
48
+ name: "Discard",
49
+ I: base_scailo_pb_js_1.IdentifierUUIDWithUserComment,
50
+ O: base_scailo_pb_js_1.IdentifierResponse,
51
+ kind: protobuf_1.MethodKind.Unary,
52
+ },
53
+ /**
54
+ * Restore the magic link
55
+ *
56
+ * @generated from rpc Scailo.MagicLinksService.Restore
57
+ */
58
+ restore: {
59
+ name: "Restore",
60
+ I: base_scailo_pb_js_1.IdentifierUUIDWithUserComment,
61
+ O: base_scailo_pb_js_1.IdentifierResponse,
62
+ kind: protobuf_1.MethodKind.Unary,
63
+ },
64
+ /**
65
+ * View by ID
66
+ *
67
+ * @generated from rpc Scailo.MagicLinksService.ViewByID
68
+ */
69
+ viewByID: {
70
+ name: "ViewByID",
71
+ I: base_scailo_pb_js_1.Identifier,
72
+ O: magic_links_scailo_pb_js_1.MagicLink,
73
+ kind: protobuf_1.MethodKind.Unary,
74
+ },
75
+ /**
76
+ * View by UUID
77
+ *
78
+ * @generated from rpc Scailo.MagicLinksService.ViewByUUID
79
+ */
80
+ viewByUUID: {
81
+ name: "ViewByUUID",
82
+ I: base_scailo_pb_js_1.IdentifierUUID,
83
+ O: magic_links_scailo_pb_js_1.MagicLink,
84
+ kind: protobuf_1.MethodKind.Unary,
85
+ },
86
+ /**
87
+ * View only essential components that matches the given code
88
+ *
89
+ * @generated from rpc Scailo.MagicLinksService.ViewByCode
90
+ */
91
+ viewByCode: {
92
+ name: "ViewByCode",
93
+ I: magic_links_scailo_pb_js_1.MagicLinkServiceSearchByCodeReq,
94
+ O: magic_links_scailo_pb_js_1.MagicLink,
95
+ kind: protobuf_1.MethodKind.Unary,
96
+ },
97
+ /**
98
+ * View all records with the given IDs
99
+ *
100
+ * @generated from rpc Scailo.MagicLinksService.ViewFromIDs
101
+ */
102
+ viewFromIDs: {
103
+ name: "ViewFromIDs",
104
+ I: base_scailo_pb_js_1.IdentifiersList,
105
+ O: magic_links_scailo_pb_js_1.MagicLinksList,
106
+ kind: protobuf_1.MethodKind.Unary,
107
+ },
108
+ /**
109
+ * View all magic links
110
+ *
111
+ * @generated from rpc Scailo.MagicLinksService.ViewAll
112
+ */
113
+ viewAll: {
114
+ name: "ViewAll",
115
+ I: base_scailo_pb_js_1.ActiveStatus,
116
+ O: magic_links_scailo_pb_js_1.MagicLinksList,
117
+ kind: protobuf_1.MethodKind.Unary,
118
+ },
119
+ /**
120
+ * View all magic links with the given entity UUID
121
+ *
122
+ * @generated from rpc Scailo.MagicLinksService.ViewAllForEntityUUID
123
+ */
124
+ viewAllForEntityUUID: {
125
+ name: "ViewAllForEntityUUID",
126
+ I: base_scailo_pb_js_1.IdentifierUUID,
127
+ O: magic_links_scailo_pb_js_1.MagicLinksList,
128
+ kind: protobuf_1.MethodKind.Unary,
129
+ },
130
+ /**
131
+ * View magic links with pagination
132
+ *
133
+ * @generated from rpc Scailo.MagicLinksService.ViewWithPagination
134
+ */
135
+ viewWithPagination: {
136
+ name: "ViewWithPagination",
137
+ I: magic_links_scailo_pb_js_1.MagicLinksServicePaginationReq,
138
+ O: magic_links_scailo_pb_js_1.MagicLinkPaginationResp,
139
+ kind: protobuf_1.MethodKind.Unary,
140
+ },
141
+ /**
142
+ * View access logs of magic link
143
+ *
144
+ * @generated from rpc Scailo.MagicLinksService.ViewAccessLogs
145
+ */
146
+ viewAccessLogs: {
147
+ name: "ViewAccessLogs",
148
+ I: base_scailo_pb_js_1.IdentifierUUID,
149
+ O: magic_links_scailo_pb_js_1.MagicLinkAccessLogsList,
150
+ kind: protobuf_1.MethodKind.Unary,
151
+ },
152
+ /**
153
+ * View all magic links that match the given search key
154
+ *
155
+ * @generated from rpc Scailo.MagicLinksService.SearchAll
156
+ */
157
+ searchAll: {
158
+ name: "SearchAll",
159
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceSearchAllReq,
160
+ O: magic_links_scailo_pb_js_1.MagicLinksList,
161
+ kind: protobuf_1.MethodKind.Unary,
162
+ },
163
+ /**
164
+ * View all that match the given filter criteria
165
+ *
166
+ * @generated from rpc Scailo.MagicLinksService.Filter
167
+ */
168
+ filter: {
169
+ name: "Filter",
170
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceFilterReq,
171
+ O: magic_links_scailo_pb_js_1.MagicLinksList,
172
+ kind: protobuf_1.MethodKind.Unary,
173
+ },
174
+ /**
175
+ * Count all that match the given criteria
176
+ *
177
+ * @generated from rpc Scailo.MagicLinksService.Count
178
+ */
179
+ count: {
180
+ name: "Count",
181
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceCountReq,
182
+ O: base_scailo_pb_js_1.CountResponse,
183
+ kind: protobuf_1.MethodKind.Unary,
184
+ },
185
+ /**
186
+ * CSV operations
187
+ * Download the CSV file that consists of the list of records according to the given filter request. The same file could also be used as a template for uploading records
188
+ *
189
+ * @generated from rpc Scailo.MagicLinksService.DownloadAsCSV
190
+ */
191
+ downloadAsCSV: {
192
+ name: "DownloadAsCSV",
193
+ I: magic_links_scailo_pb_js_1.MagicLinksServiceFilterReq,
194
+ O: base_scailo_pb_js_1.StandardFile,
195
+ kind: protobuf_1.MethodKind.Unary,
196
+ },
197
+ }
198
+ };