@kernelminds/scailo-sdk 0.0.79 → 0.0.81

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 (61) hide show
  1. package/lib/cjs/src/inventory.scailo_connect.js +5 -0
  2. package/lib/cjs/src/inventory.scailo_pb.js +421 -9
  3. package/lib/cjs/src/inward_jobs_free_issue_materials_returns.scailo_connect.js +23 -0
  4. package/lib/cjs/src/outward_jobs_free_issue_materials_returns.scailo_connect.js +23 -0
  5. package/lib/cjs/src/purchases_returns.scailo_connect.js +47 -0
  6. package/lib/cjs/src/purchases_returns.scailo_pb.js +45 -19
  7. package/lib/cjs/src/sales_returns.scailo_connect.js +47 -0
  8. package/lib/cjs/src/sales_returns.scailo_pb.js +45 -19
  9. package/lib/cjs/src/stock_returns.scailo_connect.js +35 -0
  10. package/lib/cjs/src/stock_returns.scailo_pb.js +45 -19
  11. package/lib/cjs/types/src/inventory.scailo_connect.d.ts +5 -0
  12. package/lib/cjs/types/src/inventory.scailo_connect.d.ts.map +1 -1
  13. package/lib/cjs/types/src/inventory.scailo_pb.d.ts +339 -11
  14. package/lib/cjs/types/src/inventory.scailo_pb.d.ts.map +1 -1
  15. package/lib/cjs/types/src/inward_jobs_free_issue_materials_returns.scailo_connect.d.ts +23 -0
  16. package/lib/cjs/types/src/inward_jobs_free_issue_materials_returns.scailo_connect.d.ts.map +1 -1
  17. package/lib/cjs/types/src/outward_jobs_free_issue_materials_returns.scailo_connect.d.ts +23 -0
  18. package/lib/cjs/types/src/outward_jobs_free_issue_materials_returns.scailo_connect.d.ts.map +1 -1
  19. package/lib/cjs/types/src/purchases_returns.scailo_connect.d.ts +47 -0
  20. package/lib/cjs/types/src/purchases_returns.scailo_connect.d.ts.map +1 -1
  21. package/lib/cjs/types/src/purchases_returns.scailo_pb.d.ts +32 -12
  22. package/lib/cjs/types/src/purchases_returns.scailo_pb.d.ts.map +1 -1
  23. package/lib/cjs/types/src/sales_returns.scailo_connect.d.ts +47 -0
  24. package/lib/cjs/types/src/sales_returns.scailo_connect.d.ts.map +1 -1
  25. package/lib/cjs/types/src/sales_returns.scailo_pb.d.ts +32 -12
  26. package/lib/cjs/types/src/sales_returns.scailo_pb.d.ts.map +1 -1
  27. package/lib/cjs/types/src/stock_returns.scailo_connect.d.ts +35 -0
  28. package/lib/cjs/types/src/stock_returns.scailo_connect.d.ts.map +1 -1
  29. package/lib/cjs/types/src/stock_returns.scailo_pb.d.ts +32 -12
  30. package/lib/cjs/types/src/stock_returns.scailo_pb.d.ts.map +1 -1
  31. package/lib/esm/src/inventory.scailo_connect.js +5 -0
  32. package/lib/esm/src/inventory.scailo_pb.js +435 -11
  33. package/lib/esm/src/inward_jobs_free_issue_materials_returns.scailo_connect.js +23 -0
  34. package/lib/esm/src/outward_jobs_free_issue_materials_returns.scailo_connect.js +23 -0
  35. package/lib/esm/src/purchases_returns.scailo_connect.js +47 -0
  36. package/lib/esm/src/purchases_returns.scailo_pb.js +45 -19
  37. package/lib/esm/src/sales_returns.scailo_connect.js +47 -0
  38. package/lib/esm/src/sales_returns.scailo_pb.js +45 -19
  39. package/lib/esm/src/stock_returns.scailo_connect.js +35 -0
  40. package/lib/esm/src/stock_returns.scailo_pb.js +45 -19
  41. package/lib/esm/types/src/inventory.scailo_connect.d.ts +5 -0
  42. package/lib/esm/types/src/inventory.scailo_connect.d.ts.map +1 -1
  43. package/lib/esm/types/src/inventory.scailo_pb.d.ts +339 -11
  44. package/lib/esm/types/src/inventory.scailo_pb.d.ts.map +1 -1
  45. package/lib/esm/types/src/inward_jobs_free_issue_materials_returns.scailo_connect.d.ts +23 -0
  46. package/lib/esm/types/src/inward_jobs_free_issue_materials_returns.scailo_connect.d.ts.map +1 -1
  47. package/lib/esm/types/src/outward_jobs_free_issue_materials_returns.scailo_connect.d.ts +23 -0
  48. package/lib/esm/types/src/outward_jobs_free_issue_materials_returns.scailo_connect.d.ts.map +1 -1
  49. package/lib/esm/types/src/purchases_returns.scailo_connect.d.ts +47 -0
  50. package/lib/esm/types/src/purchases_returns.scailo_connect.d.ts.map +1 -1
  51. package/lib/esm/types/src/purchases_returns.scailo_pb.d.ts +32 -12
  52. package/lib/esm/types/src/purchases_returns.scailo_pb.d.ts.map +1 -1
  53. package/lib/esm/types/src/sales_returns.scailo_connect.d.ts +47 -0
  54. package/lib/esm/types/src/sales_returns.scailo_connect.d.ts.map +1 -1
  55. package/lib/esm/types/src/sales_returns.scailo_pb.d.ts +32 -12
  56. package/lib/esm/types/src/sales_returns.scailo_pb.d.ts.map +1 -1
  57. package/lib/esm/types/src/stock_returns.scailo_connect.d.ts +35 -0
  58. package/lib/esm/types/src/stock_returns.scailo_connect.d.ts.map +1 -1
  59. package/lib/esm/types/src/stock_returns.scailo_pb.d.ts +32 -12
  60. package/lib/esm/types/src/stock_returns.scailo_pb.d.ts.map +1 -1
  61. package/package.json +1 -1
@@ -4,10 +4,36 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.PurchasesReturnsServiceSearchAllReq = exports.PurchasesReturnsServiceCountReq = exports.PurchasesReturnsServiceFilterReq = exports.PurchasesReturnsServicePaginationResponse = exports.PurchasesReturnsServicePaginationReq = exports.PurchasesReturnsServiceAlreadyAddedQuantityForSourceRequest = exports.PurchasesReturnsServicePaginatedItemsResponse = exports.PurchaseReturnItemsSearchRequest = exports.PurchaseReturnItemProspectiveInfoRequest = exports.PurchaseReturnItemHistoryRequest = exports.PurchasesReturnsItemsList = exports.PurchasesReturnsList = exports.PurchaseReturnItem = exports.PurchasesReturnsServiceItemUpdateRequest = exports.PurchasesReturnsServiceItemCreateRequest = exports.PurchaseReturn = exports.PurchaseReturnAncillaryParameters = exports.PurchasesReturnsServiceUpdateRequest = exports.PurchasesReturnsServiceCreateRequest = exports.PURCHASE_RETURN_BILLING_STATUS = exports.PURCHASE_RETURN_SORT_KEY = exports.PURCHASE_RETURN_ITEM_STATUS = exports.PURCHASE_RETURN_ITEM_SORT_KEY = void 0;
7
+ exports.PurchasesReturnsServiceSearchAllReq = exports.PurchasesReturnsServiceCountReq = exports.PurchasesReturnsServiceFilterReq = exports.PurchasesReturnsServicePaginationResponse = exports.PurchasesReturnsServicePaginationReq = exports.PurchasesReturnsServiceAlreadyAddedQuantityForSourceRequest = exports.PurchasesReturnsServicePaginatedItemsResponse = exports.PurchaseReturnItemsSearchRequest = exports.PurchaseReturnItemProspectiveInfoRequest = exports.PurchaseReturnItemHistoryRequest = exports.PurchasesReturnsItemsList = exports.PurchasesReturnsList = exports.PurchaseReturnItem = exports.PurchasesReturnsServiceItemUpdateRequest = exports.PurchasesReturnsServiceItemCreateRequest = exports.PurchaseReturn = exports.PurchaseReturnAncillaryParameters = exports.PurchasesReturnsServiceUpdateRequest = exports.PurchasesReturnsServiceCreateRequest = exports.PURCHASE_RETURN_BILLING_STATUS = exports.PURCHASE_RETURN_SORT_KEY = exports.PURCHASE_RETURN_ITEM_STATUS = exports.PURCHASE_RETURN_ITEM_SORT_KEY = exports.PURCHASE_RETURN_REF_FROM = void 0;
8
8
  const protobuf_1 = require("@bufbuild/protobuf");
9
9
  const forms_fields_data_scailo_pb_js_1 = require("./forms_fields_data.scailo_pb.js");
10
10
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
11
+ /**
12
+ *
13
+ * Stores all the possible references from which a purchase return can be added
14
+ *
15
+ * @generated from enum Scailo.PURCHASE_RETURN_REF_FROM
16
+ */
17
+ var PURCHASE_RETURN_REF_FROM;
18
+ (function (PURCHASE_RETURN_REF_FROM) {
19
+ /**
20
+ * Used only in filters
21
+ *
22
+ * @generated from enum value: PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED = 0;
23
+ */
24
+ PURCHASE_RETURN_REF_FROM[PURCHASE_RETURN_REF_FROM["PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED"] = 0] = "PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED";
25
+ /**
26
+ * Denotes that the purchase return originated from a purchase order
27
+ *
28
+ * @generated from enum value: PURCHASE_RETURN_REF_FROM_PURCHASE_ORDER = 1;
29
+ */
30
+ PURCHASE_RETURN_REF_FROM[PURCHASE_RETURN_REF_FROM["PURCHASE_RETURN_REF_FROM_PURCHASE_ORDER"] = 1] = "PURCHASE_RETURN_REF_FROM_PURCHASE_ORDER";
31
+ })(PURCHASE_RETURN_REF_FROM || (exports.PURCHASE_RETURN_REF_FROM = PURCHASE_RETURN_REF_FROM = {}));
32
+ // Retrieve enum metadata with: proto3.getEnumType(PURCHASE_RETURN_REF_FROM)
33
+ protobuf_1.proto3.util.setEnumType(PURCHASE_RETURN_REF_FROM, "Scailo.PURCHASE_RETURN_REF_FROM", [
34
+ { no: 0, name: "PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED" },
35
+ { no: 1, name: "PURCHASE_RETURN_REF_FROM_PURCHASE_ORDER" },
36
+ ]);
11
37
  /**
12
38
  *
13
39
  * Describes the available sort keys
@@ -267,9 +293,9 @@ class PurchasesReturnsServiceCreateRequest extends protobuf_1.Message {
267
293
  /**
268
294
  * The associated reference
269
295
  *
270
- * @generated from field: string ref_from = 12;
296
+ * @generated from field: Scailo.PURCHASE_RETURN_REF_FROM ref_from = 12;
271
297
  */
272
- this.refFrom = "";
298
+ this.refFrom = PURCHASE_RETURN_REF_FROM.PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED;
273
299
  /**
274
300
  * The associated ID of the reference
275
301
  *
@@ -311,7 +337,7 @@ PurchasesReturnsServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldLis
311
337
  { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
312
338
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
313
339
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
314
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
340
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_RETURN_REF_FROM) },
315
341
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
316
342
  { no: 15, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
317
343
  { no: 30, name: "form_data", kind: "message", T: forms_fields_data_scailo_pb_js_1.FormFieldDatumCreateRequest, repeated: true },
@@ -484,9 +510,9 @@ class PurchaseReturn extends protobuf_1.Message {
484
510
  /**
485
511
  * The associated reference
486
512
  *
487
- * @generated from field: string ref_from = 12;
513
+ * @generated from field: Scailo.PURCHASE_RETURN_REF_FROM ref_from = 12;
488
514
  */
489
- this.refFrom = "";
515
+ this.refFrom = PURCHASE_RETURN_REF_FROM.PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED;
490
516
  /**
491
517
  * The associated ID of the reference
492
518
  *
@@ -539,7 +565,7 @@ PurchaseReturn.fields = protobuf_1.proto3.util.newFieldList(() => [
539
565
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
540
566
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
541
567
  { no: 11, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
542
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
568
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_RETURN_REF_FROM) },
543
569
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
544
570
  { no: 15, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
545
571
  { no: 20, name: "list", kind: "message", T: PurchaseReturnItem, repeated: true },
@@ -1156,9 +1182,9 @@ class PurchasesReturnsServiceAlreadyAddedQuantityForSourceRequest extends protob
1156
1182
  /**
1157
1183
  * The associated reference
1158
1184
  *
1159
- * @generated from field: string ref_from = 1;
1185
+ * @generated from field: Scailo.PURCHASE_RETURN_REF_FROM ref_from = 1;
1160
1186
  */
1161
- this.refFrom = "";
1187
+ this.refFrom = PURCHASE_RETURN_REF_FROM.PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED;
1162
1188
  /**
1163
1189
  * The associated ID of the reference
1164
1190
  *
@@ -1190,7 +1216,7 @@ exports.PurchasesReturnsServiceAlreadyAddedQuantityForSourceRequest = PurchasesR
1190
1216
  PurchasesReturnsServiceAlreadyAddedQuantityForSourceRequest.runtime = protobuf_1.proto3;
1191
1217
  PurchasesReturnsServiceAlreadyAddedQuantityForSourceRequest.typeName = "Scailo.PurchasesReturnsServiceAlreadyAddedQuantityForSourceRequest";
1192
1218
  PurchasesReturnsServiceAlreadyAddedQuantityForSourceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1193
- { no: 1, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1219
+ { no: 1, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_RETURN_REF_FROM) },
1194
1220
  { no: 2, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1195
1221
  { no: 3, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1196
1222
  ]);
@@ -1448,9 +1474,9 @@ class PurchasesReturnsServiceFilterReq extends protobuf_1.Message {
1448
1474
  /**
1449
1475
  * The associated reference
1450
1476
  *
1451
- * @generated from field: string ref_from = 22;
1477
+ * @generated from field: Scailo.PURCHASE_RETURN_REF_FROM ref_from = 22;
1452
1478
  */
1453
- this.refFrom = "";
1479
+ this.refFrom = PURCHASE_RETURN_REF_FROM.PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED;
1454
1480
  /**
1455
1481
  * The associated ID of the reference
1456
1482
  *
@@ -1525,7 +1551,7 @@ PurchasesReturnsServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(()
1525
1551
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1526
1552
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1527
1553
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1528
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1554
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_RETURN_REF_FROM) },
1529
1555
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1530
1556
  { no: 25, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1531
1557
  { no: 40, name: "billing_status", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_RETURN_BILLING_STATUS) },
@@ -1635,9 +1661,9 @@ class PurchasesReturnsServiceCountReq extends protobuf_1.Message {
1635
1661
  /**
1636
1662
  * The associated reference
1637
1663
  *
1638
- * @generated from field: string ref_from = 22;
1664
+ * @generated from field: Scailo.PURCHASE_RETURN_REF_FROM ref_from = 22;
1639
1665
  */
1640
- this.refFrom = "";
1666
+ this.refFrom = PURCHASE_RETURN_REF_FROM.PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED;
1641
1667
  /**
1642
1668
  * The associated ID of the reference
1643
1669
  *
@@ -1708,7 +1734,7 @@ PurchasesReturnsServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(()
1708
1734
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1709
1735
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1710
1736
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1711
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1737
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_RETURN_REF_FROM) },
1712
1738
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1713
1739
  { no: 25, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1714
1740
  { no: 40, name: "billing_status", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_RETURN_BILLING_STATUS) },
@@ -1776,9 +1802,9 @@ class PurchasesReturnsServiceSearchAllReq extends protobuf_1.Message {
1776
1802
  /**
1777
1803
  * The associated reference
1778
1804
  *
1779
- * @generated from field: string ref_from = 22;
1805
+ * @generated from field: Scailo.PURCHASE_RETURN_REF_FROM ref_from = 22;
1780
1806
  */
1781
- this.refFrom = "";
1807
+ this.refFrom = PURCHASE_RETURN_REF_FROM.PURCHASE_RETURN_REF_FROM_ANY_UNSPECIFIED;
1782
1808
  /**
1783
1809
  * The associated ID of the reference
1784
1810
  *
@@ -1824,7 +1850,7 @@ PurchasesReturnsServiceSearchAllReq.fields = protobuf_1.proto3.util.newFieldList
1824
1850
  { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1825
1851
  { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
1826
1852
  { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1827
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1853
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_RETURN_REF_FROM) },
1828
1854
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1829
1855
  { no: 40, name: "billing_status", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_RETURN_BILLING_STATUS) },
1830
1856
  { no: 50, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -9,6 +9,7 @@ const sales_returns_scailo_pb_js_1 = require("./sales_returns.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
11
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
12
+ const inventory_scailo_pb_js_1 = require("./inventory.scailo_pb.js");
12
13
  /**
13
14
  *
14
15
  * Describes the common methods applicable on each sales return
@@ -348,6 +349,18 @@ exports.SalesReturnsService = {
348
349
  O: sales_returns_scailo_pb_js_1.SalesReturnsServicePaginatedItemsResponse,
349
350
  kind: protobuf_1.MethodKind.Unary,
350
351
  },
352
+ /**
353
+ * CSV operations
354
+ * Download the CSV file that could be used to upload items from the filled CSV file. The same file can also be used as a template when there are no existing records
355
+ *
356
+ * @generated from rpc Scailo.SalesReturnsService.DownloadItemsAsCSV
357
+ */
358
+ downloadItemsAsCSV: {
359
+ name: "DownloadItemsAsCSV",
360
+ I: base_scailo_pb_js_1.IdentifierUUID,
361
+ O: base_scailo_pb_js_1.StandardFile,
362
+ kind: protobuf_1.MethodKind.Unary,
363
+ },
351
364
  /**
352
365
  * View by ID
353
366
  *
@@ -480,6 +493,40 @@ exports.SalesReturnsService = {
480
493
  O: sales_returns_scailo_pb_js_1.SalesReturnsServiceItemCreateRequest,
481
494
  kind: protobuf_1.MethodKind.Unary,
482
495
  },
496
+ /**
497
+ * Search for returnable inventory
498
+ *
499
+ * @generated from rpc Scailo.SalesReturnsService.SearchReturnableInventory
500
+ */
501
+ searchReturnableInventory: {
502
+ name: "SearchReturnableInventory",
503
+ I: inventory_scailo_pb_js_1.SearchReturnableInventoryForIdentifierUUID,
504
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
505
+ kind: protobuf_1.MethodKind.Unary,
506
+ },
507
+ /**
508
+ * Filter returnable inventory
509
+ *
510
+ * @generated from rpc Scailo.SalesReturnsService.FilterReturnableInventory
511
+ */
512
+ filterReturnableInventory: {
513
+ name: "FilterReturnableInventory",
514
+ I: inventory_scailo_pb_js_1.FilterReturnableInventoryForIdentifierUUID,
515
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
516
+ kind: protobuf_1.MethodKind.Unary,
517
+ },
518
+ /**
519
+ * Other view operations
520
+ * View the associated credit note information that is denoted by the identifier in the response for the goods dispatch that is denoted by the identifier UUID in the request
521
+ *
522
+ * @generated from rpc Scailo.SalesReturnsService.ViewAssociatedCreditNoteInfo
523
+ */
524
+ viewAssociatedCreditNoteInfo: {
525
+ name: "ViewAssociatedCreditNoteInfo",
526
+ I: base_scailo_pb_js_1.IdentifierUUID,
527
+ O: base_scailo_pb_js_1.IdentifierResponse,
528
+ kind: protobuf_1.MethodKind.Unary,
529
+ },
483
530
  /**
484
531
  * Checks if the Sales Return has been billed
485
532
  *
@@ -4,10 +4,36 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.SalesReturnsServiceSearchAllReq = exports.SalesReturnsServiceCountReq = exports.SalesReturnsServiceFilterReq = exports.SalesReturnsServicePaginationResponse = exports.SalesReturnsServicePaginationReq = exports.SalesReturnsServiceAlreadyAddedQuantityForSourceRequest = exports.SalesReturnsServicePaginatedItemsResponse = exports.SalesReturnItemsSearchRequest = exports.SalesReturnItemProspectiveInfoRequest = exports.SalesReturnItemHistoryRequest = exports.SalesReturnsItemsList = exports.SalesReturnsList = exports.SalesReturnItem = exports.SalesReturnsServiceItemUpdateRequest = exports.SalesReturnsServiceItemCreateRequest = exports.SalesReturn = exports.SalesReturnAncillaryParameters = exports.SalesReturnsServiceUpdateRequest = exports.SalesReturnsServiceCreateRequest = exports.SALES_RETURN_BILLING_STATUS = exports.SALES_RETURN_SORT_KEY = exports.SALES_RETURN_ITEM_STATUS = exports.SALES_RETURN_ITEM_SORT_KEY = void 0;
7
+ exports.SalesReturnsServiceSearchAllReq = exports.SalesReturnsServiceCountReq = exports.SalesReturnsServiceFilterReq = exports.SalesReturnsServicePaginationResponse = exports.SalesReturnsServicePaginationReq = exports.SalesReturnsServiceAlreadyAddedQuantityForSourceRequest = exports.SalesReturnsServicePaginatedItemsResponse = exports.SalesReturnItemsSearchRequest = exports.SalesReturnItemProspectiveInfoRequest = exports.SalesReturnItemHistoryRequest = exports.SalesReturnsItemsList = exports.SalesReturnsList = exports.SalesReturnItem = exports.SalesReturnsServiceItemUpdateRequest = exports.SalesReturnsServiceItemCreateRequest = exports.SalesReturn = exports.SalesReturnAncillaryParameters = exports.SalesReturnsServiceUpdateRequest = exports.SalesReturnsServiceCreateRequest = exports.SALES_RETURN_BILLING_STATUS = exports.SALES_RETURN_SORT_KEY = exports.SALES_RETURN_ITEM_STATUS = exports.SALES_RETURN_ITEM_SORT_KEY = exports.SALES_RETURN_REF_FROM = void 0;
8
8
  const protobuf_1 = require("@bufbuild/protobuf");
9
9
  const forms_fields_data_scailo_pb_js_1 = require("./forms_fields_data.scailo_pb.js");
10
10
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
11
+ /**
12
+ *
13
+ * Stores all the possible references from which a sales return can be added
14
+ *
15
+ * @generated from enum Scailo.SALES_RETURN_REF_FROM
16
+ */
17
+ var SALES_RETURN_REF_FROM;
18
+ (function (SALES_RETURN_REF_FROM) {
19
+ /**
20
+ * Used only in filters
21
+ *
22
+ * @generated from enum value: SALES_RETURN_REF_FROM_ANY_UNSPECIFIED = 0;
23
+ */
24
+ SALES_RETURN_REF_FROM[SALES_RETURN_REF_FROM["SALES_RETURN_REF_FROM_ANY_UNSPECIFIED"] = 0] = "SALES_RETURN_REF_FROM_ANY_UNSPECIFIED";
25
+ /**
26
+ * Denotes that the sales return originated from a sales order
27
+ *
28
+ * @generated from enum value: SALES_RETURN_REF_FROM_SALES_ORDER = 1;
29
+ */
30
+ SALES_RETURN_REF_FROM[SALES_RETURN_REF_FROM["SALES_RETURN_REF_FROM_SALES_ORDER"] = 1] = "SALES_RETURN_REF_FROM_SALES_ORDER";
31
+ })(SALES_RETURN_REF_FROM || (exports.SALES_RETURN_REF_FROM = SALES_RETURN_REF_FROM = {}));
32
+ // Retrieve enum metadata with: proto3.getEnumType(SALES_RETURN_REF_FROM)
33
+ protobuf_1.proto3.util.setEnumType(SALES_RETURN_REF_FROM, "Scailo.SALES_RETURN_REF_FROM", [
34
+ { no: 0, name: "SALES_RETURN_REF_FROM_ANY_UNSPECIFIED" },
35
+ { no: 1, name: "SALES_RETURN_REF_FROM_SALES_ORDER" },
36
+ ]);
11
37
  /**
12
38
  *
13
39
  * Describes the available sort keys
@@ -267,9 +293,9 @@ class SalesReturnsServiceCreateRequest extends protobuf_1.Message {
267
293
  /**
268
294
  * The associated reference
269
295
  *
270
- * @generated from field: string ref_from = 12;
296
+ * @generated from field: Scailo.SALES_RETURN_REF_FROM ref_from = 12;
271
297
  */
272
- this.refFrom = "";
298
+ this.refFrom = SALES_RETURN_REF_FROM.SALES_RETURN_REF_FROM_ANY_UNSPECIFIED;
273
299
  /**
274
300
  * The associated ID of the reference
275
301
  *
@@ -311,7 +337,7 @@ SalesReturnsServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(()
311
337
  { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
312
338
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
313
339
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
314
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
340
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RETURN_REF_FROM) },
315
341
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
316
342
  { no: 15, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
317
343
  { no: 30, name: "form_data", kind: "message", T: forms_fields_data_scailo_pb_js_1.FormFieldDatumCreateRequest, repeated: true },
@@ -484,9 +510,9 @@ class SalesReturn extends protobuf_1.Message {
484
510
  /**
485
511
  * The associated reference
486
512
  *
487
- * @generated from field: string ref_from = 12;
513
+ * @generated from field: Scailo.SALES_RETURN_REF_FROM ref_from = 12;
488
514
  */
489
- this.refFrom = "";
515
+ this.refFrom = SALES_RETURN_REF_FROM.SALES_RETURN_REF_FROM_ANY_UNSPECIFIED;
490
516
  /**
491
517
  * The associated ID of the reference
492
518
  *
@@ -539,7 +565,7 @@ SalesReturn.fields = protobuf_1.proto3.util.newFieldList(() => [
539
565
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
540
566
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
541
567
  { no: 11, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
542
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
568
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RETURN_REF_FROM) },
543
569
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
544
570
  { no: 15, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
545
571
  { no: 20, name: "list", kind: "message", T: SalesReturnItem, repeated: true },
@@ -1156,9 +1182,9 @@ class SalesReturnsServiceAlreadyAddedQuantityForSourceRequest extends protobuf_1
1156
1182
  /**
1157
1183
  * The associated reference
1158
1184
  *
1159
- * @generated from field: string ref_from = 1;
1185
+ * @generated from field: Scailo.SALES_RETURN_REF_FROM ref_from = 1;
1160
1186
  */
1161
- this.refFrom = "";
1187
+ this.refFrom = SALES_RETURN_REF_FROM.SALES_RETURN_REF_FROM_ANY_UNSPECIFIED;
1162
1188
  /**
1163
1189
  * The associated ID of the reference
1164
1190
  *
@@ -1190,7 +1216,7 @@ exports.SalesReturnsServiceAlreadyAddedQuantityForSourceRequest = SalesReturnsSe
1190
1216
  SalesReturnsServiceAlreadyAddedQuantityForSourceRequest.runtime = protobuf_1.proto3;
1191
1217
  SalesReturnsServiceAlreadyAddedQuantityForSourceRequest.typeName = "Scailo.SalesReturnsServiceAlreadyAddedQuantityForSourceRequest";
1192
1218
  SalesReturnsServiceAlreadyAddedQuantityForSourceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1193
- { no: 1, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1219
+ { no: 1, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RETURN_REF_FROM) },
1194
1220
  { no: 2, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1195
1221
  { no: 3, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1196
1222
  ]);
@@ -1448,9 +1474,9 @@ class SalesReturnsServiceFilterReq extends protobuf_1.Message {
1448
1474
  /**
1449
1475
  * The associated reference
1450
1476
  *
1451
- * @generated from field: string ref_from = 22;
1477
+ * @generated from field: Scailo.SALES_RETURN_REF_FROM ref_from = 22;
1452
1478
  */
1453
- this.refFrom = "";
1479
+ this.refFrom = SALES_RETURN_REF_FROM.SALES_RETURN_REF_FROM_ANY_UNSPECIFIED;
1454
1480
  /**
1455
1481
  * The associated ID of the reference
1456
1482
  *
@@ -1532,7 +1558,7 @@ SalesReturnsServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() =>
1532
1558
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1533
1559
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1534
1560
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1535
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1561
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RETURN_REF_FROM) },
1536
1562
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1537
1563
  { no: 25, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1538
1564
  { no: 40, name: "billing_status", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RETURN_BILLING_STATUS) },
@@ -1643,9 +1669,9 @@ class SalesReturnsServiceCountReq extends protobuf_1.Message {
1643
1669
  /**
1644
1670
  * The associated reference
1645
1671
  *
1646
- * @generated from field: string ref_from = 22;
1672
+ * @generated from field: Scailo.SALES_RETURN_REF_FROM ref_from = 22;
1647
1673
  */
1648
- this.refFrom = "";
1674
+ this.refFrom = SALES_RETURN_REF_FROM.SALES_RETURN_REF_FROM_ANY_UNSPECIFIED;
1649
1675
  /**
1650
1676
  * The associated ID of the reference
1651
1677
  *
@@ -1723,7 +1749,7 @@ SalesReturnsServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1723
1749
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1724
1750
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1725
1751
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1726
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1752
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RETURN_REF_FROM) },
1727
1753
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1728
1754
  { no: 25, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1729
1755
  { no: 40, name: "billing_status", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RETURN_BILLING_STATUS) },
@@ -1792,9 +1818,9 @@ class SalesReturnsServiceSearchAllReq extends protobuf_1.Message {
1792
1818
  /**
1793
1819
  * The associated reference
1794
1820
  *
1795
- * @generated from field: string ref_from = 22;
1821
+ * @generated from field: Scailo.SALES_RETURN_REF_FROM ref_from = 22;
1796
1822
  */
1797
- this.refFrom = "";
1823
+ this.refFrom = SALES_RETURN_REF_FROM.SALES_RETURN_REF_FROM_ANY_UNSPECIFIED;
1798
1824
  /**
1799
1825
  * The associated ID of the reference
1800
1826
  *
@@ -1847,7 +1873,7 @@ SalesReturnsServiceSearchAllReq.fields = protobuf_1.proto3.util.newFieldList(()
1847
1873
  { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1848
1874
  { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
1849
1875
  { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1850
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1876
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RETURN_REF_FROM) },
1851
1877
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1852
1878
  { no: 40, name: "billing_status", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RETURN_BILLING_STATUS) },
1853
1879
  { no: 60, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -9,6 +9,7 @@ const stock_returns_scailo_pb_js_1 = require("./stock_returns.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
11
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
12
+ const inventory_scailo_pb_js_1 = require("./inventory.scailo_pb.js");
12
13
  /**
13
14
  *
14
15
  * Describes the common methods applicable on each stock return
@@ -348,6 +349,18 @@ exports.StockReturnsService = {
348
349
  O: stock_returns_scailo_pb_js_1.StockReturnsServicePaginatedItemsResponse,
349
350
  kind: protobuf_1.MethodKind.Unary,
350
351
  },
352
+ /**
353
+ * CSV operations
354
+ * Download the CSV file that could be used to upload items from the filled CSV file. The same file can also be used as a template when there are no existing records
355
+ *
356
+ * @generated from rpc Scailo.StockReturnsService.DownloadItemsAsCSV
357
+ */
358
+ downloadItemsAsCSV: {
359
+ name: "DownloadItemsAsCSV",
360
+ I: base_scailo_pb_js_1.IdentifierUUID,
361
+ O: base_scailo_pb_js_1.StandardFile,
362
+ kind: protobuf_1.MethodKind.Unary,
363
+ },
351
364
  /**
352
365
  * View by ID
353
366
  *
@@ -469,6 +482,28 @@ exports.StockReturnsService = {
469
482
  O: stock_returns_scailo_pb_js_1.StockReturnsServiceItemCreateRequest,
470
483
  kind: protobuf_1.MethodKind.Unary,
471
484
  },
485
+ /**
486
+ * Search for returnable inventory
487
+ *
488
+ * @generated from rpc Scailo.StockReturnsService.SearchReturnableInventory
489
+ */
490
+ searchReturnableInventory: {
491
+ name: "SearchReturnableInventory",
492
+ I: inventory_scailo_pb_js_1.SearchReturnableInventoryForIdentifierUUID,
493
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
494
+ kind: protobuf_1.MethodKind.Unary,
495
+ },
496
+ /**
497
+ * Filter returnable inventory
498
+ *
499
+ * @generated from rpc Scailo.StockReturnsService.FilterReturnableInventory
500
+ */
501
+ filterReturnableInventory: {
502
+ name: "FilterReturnableInventory",
503
+ I: inventory_scailo_pb_js_1.FilterReturnableInventoryForIdentifierUUID,
504
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
505
+ kind: protobuf_1.MethodKind.Unary,
506
+ },
472
507
  /**
473
508
  * View already added quantities
474
509
  *
@@ -4,10 +4,36 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.StockReturnsServicePaginatedItemsResponse = exports.StockReturnItemsSearchRequest = exports.StockReturnsServiceSearchAllReq = exports.StockReturnsServiceCountReq = exports.StockReturnsServiceFilterReq = exports.StockReturnsServicePaginationResponse = exports.StockReturnsServicePaginationReq = exports.StockReturnsServiceAlreadyAddedQuantityForSourceRequest = exports.StockReturnItemProspectiveInfoRequest = exports.StockReturnItemHistoryRequest = exports.StockReturnsItemsList = exports.StockReturnsList = exports.StockReturnItem = exports.StockReturnsServiceItemUpdateRequest = exports.StockReturnsServiceItemCreateRequest = exports.StockReturn = exports.StockReturnsServiceUpdateRequest = exports.StockReturnsServiceCreateRequest = exports.STOCK_RETURN_ITEM_STATUS = exports.STOCK_RETURN_ITEM_SORT_KEY = exports.STOCK_RETURN_SORT_KEY = void 0;
7
+ exports.StockReturnsServicePaginatedItemsResponse = exports.StockReturnItemsSearchRequest = exports.StockReturnsServiceSearchAllReq = exports.StockReturnsServiceCountReq = exports.StockReturnsServiceFilterReq = exports.StockReturnsServicePaginationResponse = exports.StockReturnsServicePaginationReq = exports.StockReturnsServiceAlreadyAddedQuantityForSourceRequest = exports.StockReturnItemProspectiveInfoRequest = exports.StockReturnItemHistoryRequest = exports.StockReturnsItemsList = exports.StockReturnsList = exports.StockReturnItem = exports.StockReturnsServiceItemUpdateRequest = exports.StockReturnsServiceItemCreateRequest = exports.StockReturn = exports.StockReturnsServiceUpdateRequest = exports.StockReturnsServiceCreateRequest = exports.STOCK_RETURN_ITEM_STATUS = exports.STOCK_RETURN_ITEM_SORT_KEY = exports.STOCK_RETURN_SORT_KEY = exports.STOCK_RETURN_REF_FROM = void 0;
8
8
  const protobuf_1 = require("@bufbuild/protobuf");
9
9
  const forms_fields_data_scailo_pb_js_1 = require("./forms_fields_data.scailo_pb.js");
10
10
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
11
+ /**
12
+ *
13
+ * Stores all the possible references from which a stock return can be added
14
+ *
15
+ * @generated from enum Scailo.STOCK_RETURN_REF_FROM
16
+ */
17
+ var STOCK_RETURN_REF_FROM;
18
+ (function (STOCK_RETURN_REF_FROM) {
19
+ /**
20
+ * Used only in filters
21
+ *
22
+ * @generated from enum value: STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED = 0;
23
+ */
24
+ STOCK_RETURN_REF_FROM[STOCK_RETURN_REF_FROM["STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED"] = 0] = "STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED";
25
+ /**
26
+ * Denotes that the stock return originated from a stock issuance
27
+ *
28
+ * @generated from enum value: STOCK_RETURN_REF_FROM_STOCK_ISSUANCE = 1;
29
+ */
30
+ STOCK_RETURN_REF_FROM[STOCK_RETURN_REF_FROM["STOCK_RETURN_REF_FROM_STOCK_ISSUANCE"] = 1] = "STOCK_RETURN_REF_FROM_STOCK_ISSUANCE";
31
+ })(STOCK_RETURN_REF_FROM || (exports.STOCK_RETURN_REF_FROM = STOCK_RETURN_REF_FROM = {}));
32
+ // Retrieve enum metadata with: proto3.getEnumType(STOCK_RETURN_REF_FROM)
33
+ protobuf_1.proto3.util.setEnumType(STOCK_RETURN_REF_FROM, "Scailo.STOCK_RETURN_REF_FROM", [
34
+ { no: 0, name: "STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED" },
35
+ { no: 1, name: "STOCK_RETURN_REF_FROM_STOCK_ISSUANCE" },
36
+ ]);
11
37
  /**
12
38
  *
13
39
  * Describes the available sort keys
@@ -220,9 +246,9 @@ class StockReturnsServiceCreateRequest extends protobuf_1.Message {
220
246
  /**
221
247
  * The associated reference
222
248
  *
223
- * @generated from field: string ref_from = 12;
249
+ * @generated from field: Scailo.STOCK_RETURN_REF_FROM ref_from = 12;
224
250
  */
225
- this.refFrom = "";
251
+ this.refFrom = STOCK_RETURN_REF_FROM.STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED;
226
252
  /**
227
253
  * The associated ID of the reference
228
254
  *
@@ -264,7 +290,7 @@ StockReturnsServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(()
264
290
  { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
265
291
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
266
292
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
267
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
293
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(STOCK_RETURN_REF_FROM) },
268
294
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
269
295
  { no: 15, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
270
296
  { no: 30, name: "form_data", kind: "message", T: forms_fields_data_scailo_pb_js_1.FormFieldDatumCreateRequest, repeated: true },
@@ -394,9 +420,9 @@ class StockReturn extends protobuf_1.Message {
394
420
  /**
395
421
  * The associated reference
396
422
  *
397
- * @generated from field: string ref_from = 12;
423
+ * @generated from field: Scailo.STOCK_RETURN_REF_FROM ref_from = 12;
398
424
  */
399
- this.refFrom = "";
425
+ this.refFrom = STOCK_RETURN_REF_FROM.STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED;
400
426
  /**
401
427
  * The associated ID of the reference
402
428
  *
@@ -449,7 +475,7 @@ StockReturn.fields = protobuf_1.proto3.util.newFieldList(() => [
449
475
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
450
476
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
451
477
  { no: 11, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
452
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
478
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(STOCK_RETURN_REF_FROM) },
453
479
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
454
480
  { no: 15, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
455
481
  { no: 20, name: "list", kind: "message", T: StockReturnItem, repeated: true },
@@ -847,9 +873,9 @@ class StockReturnsServiceAlreadyAddedQuantityForSourceRequest extends protobuf_1
847
873
  /**
848
874
  * The associated reference
849
875
  *
850
- * @generated from field: string ref_from = 1;
876
+ * @generated from field: Scailo.STOCK_RETURN_REF_FROM ref_from = 1;
851
877
  */
852
- this.refFrom = "";
878
+ this.refFrom = STOCK_RETURN_REF_FROM.STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED;
853
879
  /**
854
880
  * The associated ID of the reference
855
881
  *
@@ -881,7 +907,7 @@ exports.StockReturnsServiceAlreadyAddedQuantityForSourceRequest = StockReturnsSe
881
907
  StockReturnsServiceAlreadyAddedQuantityForSourceRequest.runtime = protobuf_1.proto3;
882
908
  StockReturnsServiceAlreadyAddedQuantityForSourceRequest.typeName = "Scailo.StockReturnsServiceAlreadyAddedQuantityForSourceRequest";
883
909
  StockReturnsServiceAlreadyAddedQuantityForSourceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
884
- { no: 1, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
910
+ { no: 1, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(STOCK_RETURN_REF_FROM) },
885
911
  { no: 2, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
886
912
  { no: 3, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
887
913
  ]);
@@ -1139,9 +1165,9 @@ class StockReturnsServiceFilterReq extends protobuf_1.Message {
1139
1165
  /**
1140
1166
  * The associated reference
1141
1167
  *
1142
- * @generated from field: string ref_from = 22;
1168
+ * @generated from field: Scailo.STOCK_RETURN_REF_FROM ref_from = 22;
1143
1169
  */
1144
- this.refFrom = "";
1170
+ this.refFrom = STOCK_RETURN_REF_FROM.STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED;
1145
1171
  /**
1146
1172
  * The associated ID of the reference
1147
1173
  *
@@ -1198,7 +1224,7 @@ StockReturnsServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() =>
1198
1224
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1199
1225
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1200
1226
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1201
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1227
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(STOCK_RETURN_REF_FROM) },
1202
1228
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1203
1229
  { no: 25, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1204
1230
  { no: 30, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1305,9 +1331,9 @@ class StockReturnsServiceCountReq extends protobuf_1.Message {
1305
1331
  /**
1306
1332
  * The associated reference
1307
1333
  *
1308
- * @generated from field: string ref_from = 22;
1334
+ * @generated from field: Scailo.STOCK_RETURN_REF_FROM ref_from = 22;
1309
1335
  */
1310
- this.refFrom = "";
1336
+ this.refFrom = STOCK_RETURN_REF_FROM.STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED;
1311
1337
  /**
1312
1338
  * The associated ID of the reference
1313
1339
  *
@@ -1360,7 +1386,7 @@ StockReturnsServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1360
1386
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1361
1387
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1362
1388
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1363
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1389
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(STOCK_RETURN_REF_FROM) },
1364
1390
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1365
1391
  { no: 25, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1366
1392
  { no: 30, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1425,9 +1451,9 @@ class StockReturnsServiceSearchAllReq extends protobuf_1.Message {
1425
1451
  /**
1426
1452
  * The associated reference
1427
1453
  *
1428
- * @generated from field: string ref_from = 22;
1454
+ * @generated from field: Scailo.STOCK_RETURN_REF_FROM ref_from = 22;
1429
1455
  */
1430
- this.refFrom = "";
1456
+ this.refFrom = STOCK_RETURN_REF_FROM.STOCK_RETURN_REF_FROM_ANY_UNSPECIFIED;
1431
1457
  /**
1432
1458
  * The associated ID of the reference
1433
1459
  *
@@ -1461,7 +1487,7 @@ StockReturnsServiceSearchAllReq.fields = protobuf_1.proto3.util.newFieldList(()
1461
1487
  { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1462
1488
  { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
1463
1489
  { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1464
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1490
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(STOCK_RETURN_REF_FROM) },
1465
1491
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1466
1492
  ]);
1467
1493
  /**