@kernelminds/scailo-sdk 0.0.21 → 0.0.23

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 (111) hide show
  1. package/lib/cjs/permissions.js +12 -11
  2. package/lib/cjs/src/base.scailo_pb.js +7 -0
  3. package/lib/cjs/src/equations_families.scailo_connect.js +3 -3
  4. package/lib/cjs/src/equations_replaceables.scailo_connect.js +3 -3
  5. package/lib/cjs/src/equations_sales_bundles.scailo_connect.js +3 -3
  6. package/lib/cjs/src/equations_work_orders.scailo_connect.js +25 -3
  7. package/lib/cjs/src/equations_work_orders.scailo_pb.js +14 -0
  8. package/lib/cjs/src/families.scailo_connect.js +107 -8
  9. package/lib/cjs/src/families.scailo_pb.js +267 -22
  10. package/lib/cjs/src/goods_dispatches.scailo_connect.js +3 -3
  11. package/lib/cjs/src/goods_receipts.scailo_connect.js +3 -3
  12. package/lib/cjs/src/labels.scailo_pb.js +42 -0
  13. package/lib/cjs/src/proforma_invoices.scailo_connect.js +3 -3
  14. package/lib/cjs/src/purchases_indents.scailo_connect.js +3 -3
  15. package/lib/cjs/src/purchases_orders.scailo_connect.js +3 -3
  16. package/lib/cjs/src/sales_enquiries.scailo_connect.js +3 -3
  17. package/lib/cjs/src/sales_invoices.scailo_connect.js +3 -3
  18. package/lib/cjs/src/sales_orders.scailo_connect.js +3 -3
  19. package/lib/cjs/src/sales_quotations.scailo_connect.js +3 -3
  20. package/lib/cjs/src/supply_offers.scailo_connect.js +3 -3
  21. package/lib/cjs/src/tax_groups.scailo_pb.js +42 -0
  22. package/lib/cjs/src/vendor_invoices.scailo_connect.js +3 -3
  23. package/lib/cjs/src/vendors.scailo_connect.js +23 -0
  24. package/lib/cjs/types/permissions.d.ts +1 -0
  25. package/lib/cjs/types/permissions.d.ts.map +1 -1
  26. package/lib/cjs/types/src/base.scailo_pb.d.ts +7 -1
  27. package/lib/cjs/types/src/base.scailo_pb.d.ts.map +1 -1
  28. package/lib/cjs/types/src/equations_families.scailo_connect.d.ts +3 -3
  29. package/lib/cjs/types/src/equations_replaceables.scailo_connect.d.ts +3 -3
  30. package/lib/cjs/types/src/equations_sales_bundles.scailo_connect.d.ts +3 -3
  31. package/lib/cjs/types/src/equations_work_orders.scailo_connect.d.ts +26 -4
  32. package/lib/cjs/types/src/equations_work_orders.scailo_connect.d.ts.map +1 -1
  33. package/lib/cjs/types/src/equations_work_orders.scailo_pb.d.ts +13 -1
  34. package/lib/cjs/types/src/equations_work_orders.scailo_pb.d.ts.map +1 -1
  35. package/lib/cjs/types/src/families.scailo_connect.d.ts +109 -10
  36. package/lib/cjs/types/src/families.scailo_connect.d.ts.map +1 -1
  37. package/lib/cjs/types/src/families.scailo_pb.d.ts +194 -18
  38. package/lib/cjs/types/src/families.scailo_pb.d.ts.map +1 -1
  39. package/lib/cjs/types/src/goods_dispatches.scailo_connect.d.ts +3 -3
  40. package/lib/cjs/types/src/goods_receipts.scailo_connect.d.ts +3 -3
  41. package/lib/cjs/types/src/labels.scailo_pb.d.ts +37 -1
  42. package/lib/cjs/types/src/labels.scailo_pb.d.ts.map +1 -1
  43. package/lib/cjs/types/src/proforma_invoices.scailo_connect.d.ts +3 -3
  44. package/lib/cjs/types/src/purchases_indents.scailo_connect.d.ts +3 -3
  45. package/lib/cjs/types/src/purchases_orders.scailo_connect.d.ts +3 -3
  46. package/lib/cjs/types/src/sales_enquiries.scailo_connect.d.ts +3 -3
  47. package/lib/cjs/types/src/sales_invoices.scailo_connect.d.ts +3 -3
  48. package/lib/cjs/types/src/sales_orders.scailo_connect.d.ts +3 -3
  49. package/lib/cjs/types/src/sales_quotations.scailo_connect.d.ts +3 -3
  50. package/lib/cjs/types/src/supply_offers.scailo_connect.d.ts +3 -3
  51. package/lib/cjs/types/src/tax_groups.scailo_pb.d.ts +37 -1
  52. package/lib/cjs/types/src/tax_groups.scailo_pb.d.ts.map +1 -1
  53. package/lib/cjs/types/src/vendor_invoices.scailo_connect.d.ts +3 -3
  54. package/lib/cjs/types/src/vendors.scailo_connect.d.ts +24 -1
  55. package/lib/cjs/types/src/vendors.scailo_connect.d.ts.map +1 -1
  56. package/lib/esm/permissions.js +12 -11
  57. package/lib/esm/src/base.scailo_pb.js +7 -0
  58. package/lib/esm/src/equations_families.scailo_connect.js +3 -3
  59. package/lib/esm/src/equations_replaceables.scailo_connect.js +3 -3
  60. package/lib/esm/src/equations_sales_bundles.scailo_connect.js +3 -3
  61. package/lib/esm/src/equations_work_orders.scailo_connect.js +25 -3
  62. package/lib/esm/src/equations_work_orders.scailo_pb.js +14 -0
  63. package/lib/esm/src/families.scailo_connect.js +107 -8
  64. package/lib/esm/src/families.scailo_pb.js +279 -22
  65. package/lib/esm/src/goods_dispatches.scailo_connect.js +3 -3
  66. package/lib/esm/src/goods_receipts.scailo_connect.js +3 -3
  67. package/lib/esm/src/labels.scailo_pb.js +42 -0
  68. package/lib/esm/src/proforma_invoices.scailo_connect.js +3 -3
  69. package/lib/esm/src/purchases_indents.scailo_connect.js +3 -3
  70. package/lib/esm/src/purchases_orders.scailo_connect.js +3 -3
  71. package/lib/esm/src/sales_enquiries.scailo_connect.js +3 -3
  72. package/lib/esm/src/sales_invoices.scailo_connect.js +3 -3
  73. package/lib/esm/src/sales_orders.scailo_connect.js +3 -3
  74. package/lib/esm/src/sales_quotations.scailo_connect.js +3 -3
  75. package/lib/esm/src/supply_offers.scailo_connect.js +3 -3
  76. package/lib/esm/src/tax_groups.scailo_pb.js +42 -0
  77. package/lib/esm/src/vendor_invoices.scailo_connect.js +3 -3
  78. package/lib/esm/src/vendors.scailo_connect.js +23 -0
  79. package/lib/esm/types/permissions.d.ts +1 -0
  80. package/lib/esm/types/permissions.d.ts.map +1 -1
  81. package/lib/esm/types/src/base.scailo_pb.d.ts +7 -1
  82. package/lib/esm/types/src/base.scailo_pb.d.ts.map +1 -1
  83. package/lib/esm/types/src/equations_families.scailo_connect.d.ts +3 -3
  84. package/lib/esm/types/src/equations_replaceables.scailo_connect.d.ts +3 -3
  85. package/lib/esm/types/src/equations_sales_bundles.scailo_connect.d.ts +3 -3
  86. package/lib/esm/types/src/equations_work_orders.scailo_connect.d.ts +26 -4
  87. package/lib/esm/types/src/equations_work_orders.scailo_connect.d.ts.map +1 -1
  88. package/lib/esm/types/src/equations_work_orders.scailo_pb.d.ts +13 -1
  89. package/lib/esm/types/src/equations_work_orders.scailo_pb.d.ts.map +1 -1
  90. package/lib/esm/types/src/families.scailo_connect.d.ts +109 -10
  91. package/lib/esm/types/src/families.scailo_connect.d.ts.map +1 -1
  92. package/lib/esm/types/src/families.scailo_pb.d.ts +194 -18
  93. package/lib/esm/types/src/families.scailo_pb.d.ts.map +1 -1
  94. package/lib/esm/types/src/goods_dispatches.scailo_connect.d.ts +3 -3
  95. package/lib/esm/types/src/goods_receipts.scailo_connect.d.ts +3 -3
  96. package/lib/esm/types/src/labels.scailo_pb.d.ts +37 -1
  97. package/lib/esm/types/src/labels.scailo_pb.d.ts.map +1 -1
  98. package/lib/esm/types/src/proforma_invoices.scailo_connect.d.ts +3 -3
  99. package/lib/esm/types/src/purchases_indents.scailo_connect.d.ts +3 -3
  100. package/lib/esm/types/src/purchases_orders.scailo_connect.d.ts +3 -3
  101. package/lib/esm/types/src/sales_enquiries.scailo_connect.d.ts +3 -3
  102. package/lib/esm/types/src/sales_invoices.scailo_connect.d.ts +3 -3
  103. package/lib/esm/types/src/sales_orders.scailo_connect.d.ts +3 -3
  104. package/lib/esm/types/src/sales_quotations.scailo_connect.d.ts +3 -3
  105. package/lib/esm/types/src/supply_offers.scailo_connect.d.ts +3 -3
  106. package/lib/esm/types/src/tax_groups.scailo_pb.d.ts +37 -1
  107. package/lib/esm/types/src/tax_groups.scailo_pb.d.ts.map +1 -1
  108. package/lib/esm/types/src/vendor_invoices.scailo_connect.d.ts +3 -3
  109. package/lib/esm/types/src/vendors.scailo_connect.d.ts +24 -1
  110. package/lib/esm/types/src/vendors.scailo_connect.d.ts.map +1 -1
  111. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.FamilyQCGroupsList = exports.FamilyQCGroup = exports.FamiliesServiceQCGroupCreateRequest = exports.FamilyUnitConversionsList = exports.FamilyUnitConversion = exports.FamiliesServiceUnitConversionCreateRequest = exports.FamiliesServiceUnitConversionPresenceRequest = exports.FamilyStoragesList = exports.FamilyStorage = exports.FamiliesServiceStorageCreateRequest = exports.FamiliesServiceSearchAllReq = exports.FamiliesServiceCountReq = exports.FamiliesServiceFilterReq = exports.FamiliesServicePaginationResponse = exports.FamiliesServicePaginationReq = exports.FamiliesList = exports.Family = exports.FamiliesServiceUpdateRequest = exports.FamiliesServiceCreateRequest = exports.FamilyTypesList = exports.FAMILY_SORT_KEY = exports.CONSUMPTION_SEQUENCE = exports.FAMILY_TYPE = void 0;
7
+ exports.FamiliesServiceUpdateMinStockToMaintainRequest = exports.FamiliesServiceUpdatePriceRequest = exports.FamilyQCGroupsList = exports.FamilyQCGroup = exports.FamiliesServiceQCGroupCreateRequest = exports.FamilyUnitConversionsList = exports.FamilyUnitConversion = exports.FamiliesServiceUnitConversionCreateRequest = exports.FamiliesServiceUnitConversionPresenceRequest = exports.FamilyStoragesList = exports.FamilyStorage = exports.FamiliesServiceStorageCreateRequest = exports.FamilyLabelsList = exports.FamilyLabel = exports.FamiliesServiceLabelCreateRequest = exports.FamiliesServiceSearchAllReq = exports.FamiliesServiceCountReq = exports.FamiliesServiceFilterReq = exports.FamiliesServicePaginationResponse = exports.FamiliesServicePaginationReq = exports.FamiliesList = exports.Family = exports.FamiliesServiceUpdateRequest = exports.FamiliesServiceCreateRequest = exports.FamilyTypesList = exports.FAMILY_SORT_KEY = exports.CONSUMPTION_SEQUENCE = exports.FAMILY_TYPE = void 0;
8
8
  const protobuf_1 = require("@bufbuild/protobuf");
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
10
  /**
@@ -391,12 +391,6 @@ class FamiliesServiceCreateRequest extends protobuf_1.Message {
391
391
  * @generated from field: Scailo.CONSUMPTION_SEQUENCE consumption_sequence = 28;
392
392
  */
393
393
  this.consumptionSequence = CONSUMPTION_SEQUENCE.CONSUMPTION_SEQUENCE_ANY_UNSPECIFIED;
394
- /**
395
- * Stores the list of label IDs
396
- *
397
- * @generated from field: repeated uint64 label_ids = 30;
398
- */
399
- this.labelIds = [];
400
394
  protobuf_1.proto3.util.initPartial(data, this);
401
395
  }
402
396
  static fromBinary(bytes, options) {
@@ -435,7 +429,6 @@ FamiliesServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(() =>
435
429
  { no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
436
430
  { no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
437
431
  { no: 28, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
438
- { no: 30, name: "label_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
439
432
  ]);
440
433
  /**
441
434
  *
@@ -566,12 +559,6 @@ class FamiliesServiceUpdateRequest extends protobuf_1.Message {
566
559
  * @generated from field: Scailo.CONSUMPTION_SEQUENCE consumption_sequence = 28;
567
560
  */
568
561
  this.consumptionSequence = CONSUMPTION_SEQUENCE.CONSUMPTION_SEQUENCE_ANY_UNSPECIFIED;
569
- /**
570
- * Stores the list of label IDs
571
- *
572
- * @generated from field: repeated uint64 label_ids = 30;
573
- */
574
- this.labelIds = [];
575
562
  protobuf_1.proto3.util.initPartial(data, this);
576
563
  }
577
564
  static fromBinary(bytes, options) {
@@ -611,7 +598,6 @@ FamiliesServiceUpdateRequest.fields = protobuf_1.proto3.util.newFieldList(() =>
611
598
  { no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
612
599
  { no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
613
600
  { no: 28, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
614
- { no: 30, name: "label_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
615
601
  ]);
616
602
  /**
617
603
  *
@@ -742,12 +728,6 @@ class Family extends protobuf_1.Message {
742
728
  * @generated from field: Scailo.CONSUMPTION_SEQUENCE consumption_sequence = 29;
743
729
  */
744
730
  this.consumptionSequence = CONSUMPTION_SEQUENCE.CONSUMPTION_SEQUENCE_ANY_UNSPECIFIED;
745
- /**
746
- * Stores the list of label IDs
747
- *
748
- * @generated from field: repeated uint64 label_ids = 30;
749
- */
750
- this.labelIds = [];
751
731
  /**
752
732
  * The number of times that the family has been amended
753
733
  *
@@ -795,7 +775,6 @@ Family.fields = protobuf_1.proto3.util.newFieldList(() => [
795
775
  { no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
796
776
  { no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
797
777
  { no: 29, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
798
- { no: 30, name: "label_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
799
778
  { no: 40, name: "amendment_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
800
779
  ]);
801
780
  /**
@@ -1145,6 +1124,12 @@ class FamiliesServiceFilterReq extends protobuf_1.Message {
1145
1124
  * @generated from field: uint64 parent_storage_id = 50;
1146
1125
  */
1147
1126
  this.parentStorageId = protobuf_1.protoInt64.zero;
1127
+ /**
1128
+ * Filter by families that have the given label ID
1129
+ *
1130
+ * @generated from field: uint64 label_id = 60;
1131
+ */
1132
+ this.labelId = protobuf_1.protoInt64.zero;
1148
1133
  protobuf_1.proto3.util.initPartial(data, this);
1149
1134
  }
1150
1135
  static fromBinary(bytes, options) {
@@ -1193,6 +1178,7 @@ FamiliesServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1193
1178
  { no: 33, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1194
1179
  { no: 39, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
1195
1180
  { no: 50, name: "parent_storage_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1181
+ { no: 60, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1196
1182
  ]);
1197
1183
  /**
1198
1184
  *
@@ -1353,6 +1339,12 @@ class FamiliesServiceCountReq extends protobuf_1.Message {
1353
1339
  * @generated from field: uint64 parent_storage_id = 50;
1354
1340
  */
1355
1341
  this.parentStorageId = protobuf_1.protoInt64.zero;
1342
+ /**
1343
+ * Filter by families that have the given label ID
1344
+ *
1345
+ * @generated from field: uint64 label_id = 60;
1346
+ */
1347
+ this.labelId = protobuf_1.protoInt64.zero;
1356
1348
  protobuf_1.proto3.util.initPartial(data, this);
1357
1349
  }
1358
1350
  static fromBinary(bytes, options) {
@@ -1397,6 +1389,7 @@ FamiliesServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1397
1389
  { no: 33, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1398
1390
  { no: 39, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
1399
1391
  { no: 50, name: "parent_storage_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1392
+ { no: 60, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1400
1393
  ]);
1401
1394
  /**
1402
1395
  *
@@ -1504,6 +1497,158 @@ FamiliesServiceSearchAllReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1504
1497
  { no: 29, name: "parent_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1505
1498
  { no: 30, name: "is_leaf", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
1506
1499
  ]);
1500
+ /**
1501
+ *
1502
+ * Describes the parameters necessary to create a family label
1503
+ *
1504
+ * @generated from message Scailo.FamiliesServiceLabelCreateRequest
1505
+ */
1506
+ class FamiliesServiceLabelCreateRequest extends protobuf_1.Message {
1507
+ constructor(data) {
1508
+ super();
1509
+ /**
1510
+ * Stores any comment that the user might add during this operation
1511
+ *
1512
+ * @generated from field: string user_comment = 1;
1513
+ */
1514
+ this.userComment = "";
1515
+ /**
1516
+ * Stores the family ID
1517
+ *
1518
+ * @generated from field: uint64 family_id = 10;
1519
+ */
1520
+ this.familyId = protobuf_1.protoInt64.zero;
1521
+ /**
1522
+ * Stores the label ID
1523
+ *
1524
+ * @generated from field: uint64 label_id = 11;
1525
+ */
1526
+ this.labelId = protobuf_1.protoInt64.zero;
1527
+ protobuf_1.proto3.util.initPartial(data, this);
1528
+ }
1529
+ static fromBinary(bytes, options) {
1530
+ return new FamiliesServiceLabelCreateRequest().fromBinary(bytes, options);
1531
+ }
1532
+ static fromJson(jsonValue, options) {
1533
+ return new FamiliesServiceLabelCreateRequest().fromJson(jsonValue, options);
1534
+ }
1535
+ static fromJsonString(jsonString, options) {
1536
+ return new FamiliesServiceLabelCreateRequest().fromJsonString(jsonString, options);
1537
+ }
1538
+ static equals(a, b) {
1539
+ return protobuf_1.proto3.util.equals(FamiliesServiceLabelCreateRequest, a, b);
1540
+ }
1541
+ }
1542
+ exports.FamiliesServiceLabelCreateRequest = FamiliesServiceLabelCreateRequest;
1543
+ FamiliesServiceLabelCreateRequest.runtime = protobuf_1.proto3;
1544
+ FamiliesServiceLabelCreateRequest.typeName = "Scailo.FamiliesServiceLabelCreateRequest";
1545
+ FamiliesServiceLabelCreateRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1546
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1547
+ { no: 10, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1548
+ { no: 11, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1549
+ ]);
1550
+ /**
1551
+ *
1552
+ * Describes the parameters that constitute a family label
1553
+ *
1554
+ * @generated from message Scailo.FamilyLabel
1555
+ */
1556
+ class FamilyLabel extends protobuf_1.Message {
1557
+ constructor(data) {
1558
+ super();
1559
+ /**
1560
+ * Stores a globally unique entity UUID. This will be set at the organization level
1561
+ *
1562
+ * @generated from field: string entity_uuid = 1;
1563
+ */
1564
+ this.entityUuid = "";
1565
+ /**
1566
+ * Denotes if this record requires approval (or has been approved)
1567
+ *
1568
+ * @generated from field: bool need_approval = 4;
1569
+ */
1570
+ this.needApproval = false;
1571
+ /**
1572
+ * Stores any comment that the user might have added during an operation
1573
+ *
1574
+ * @generated from field: string user_comment = 5;
1575
+ */
1576
+ this.userComment = "";
1577
+ /**
1578
+ * Stores the family ID
1579
+ *
1580
+ * @generated from field: uint64 family_id = 10;
1581
+ */
1582
+ this.familyId = protobuf_1.protoInt64.zero;
1583
+ /**
1584
+ * Stores the label ID
1585
+ *
1586
+ * @generated from field: uint64 label_id = 11;
1587
+ */
1588
+ this.labelId = protobuf_1.protoInt64.zero;
1589
+ protobuf_1.proto3.util.initPartial(data, this);
1590
+ }
1591
+ static fromBinary(bytes, options) {
1592
+ return new FamilyLabel().fromBinary(bytes, options);
1593
+ }
1594
+ static fromJson(jsonValue, options) {
1595
+ return new FamilyLabel().fromJson(jsonValue, options);
1596
+ }
1597
+ static fromJsonString(jsonString, options) {
1598
+ return new FamilyLabel().fromJsonString(jsonString, options);
1599
+ }
1600
+ static equals(a, b) {
1601
+ return protobuf_1.proto3.util.equals(FamilyLabel, a, b);
1602
+ }
1603
+ }
1604
+ exports.FamilyLabel = FamilyLabel;
1605
+ FamilyLabel.runtime = protobuf_1.proto3;
1606
+ FamilyLabel.typeName = "Scailo.FamilyLabel";
1607
+ FamilyLabel.fields = protobuf_1.proto3.util.newFieldList(() => [
1608
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1609
+ { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
1610
+ { no: 3, name: "approval_metadata", kind: "message", T: base_scailo_pb_js_1.ApprovalMetadata },
1611
+ { no: 4, name: "need_approval", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1612
+ { no: 5, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1613
+ { no: 10, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1614
+ { no: 11, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1615
+ ]);
1616
+ /**
1617
+ *
1618
+ * Describes the message consisting of the list of family labels
1619
+ *
1620
+ * @generated from message Scailo.FamilyLabelsList
1621
+ */
1622
+ class FamilyLabelsList extends protobuf_1.Message {
1623
+ constructor(data) {
1624
+ super();
1625
+ /**
1626
+ * List of records
1627
+ *
1628
+ * @generated from field: repeated Scailo.FamilyLabel list = 1;
1629
+ */
1630
+ this.list = [];
1631
+ protobuf_1.proto3.util.initPartial(data, this);
1632
+ }
1633
+ static fromBinary(bytes, options) {
1634
+ return new FamilyLabelsList().fromBinary(bytes, options);
1635
+ }
1636
+ static fromJson(jsonValue, options) {
1637
+ return new FamilyLabelsList().fromJson(jsonValue, options);
1638
+ }
1639
+ static fromJsonString(jsonString, options) {
1640
+ return new FamilyLabelsList().fromJsonString(jsonString, options);
1641
+ }
1642
+ static equals(a, b) {
1643
+ return protobuf_1.proto3.util.equals(FamilyLabelsList, a, b);
1644
+ }
1645
+ }
1646
+ exports.FamilyLabelsList = FamilyLabelsList;
1647
+ FamilyLabelsList.runtime = protobuf_1.proto3;
1648
+ FamilyLabelsList.typeName = "Scailo.FamilyLabelsList";
1649
+ FamilyLabelsList.fields = protobuf_1.proto3.util.newFieldList(() => [
1650
+ { no: 1, name: "list", kind: "message", T: FamilyLabel, repeated: true },
1651
+ ]);
1507
1652
  /**
1508
1653
  *
1509
1654
  * Describes the parameters necessary to create a family storage
@@ -2031,3 +2176,103 @@ FamilyQCGroupsList.typeName = "Scailo.FamilyQCGroupsList";
2031
2176
  FamilyQCGroupsList.fields = protobuf_1.proto3.util.newFieldList(() => [
2032
2177
  { no: 1, name: "list", kind: "message", T: FamilyQCGroup, repeated: true },
2033
2178
  ]);
2179
+ /**
2180
+ *
2181
+ * Describes the parameters necessary to update a family's price
2182
+ *
2183
+ * @generated from message Scailo.FamiliesServiceUpdatePriceRequest
2184
+ */
2185
+ class FamiliesServiceUpdatePriceRequest extends protobuf_1.Message {
2186
+ constructor(data) {
2187
+ super();
2188
+ /**
2189
+ * Stores any comment that the user might add during this operation
2190
+ *
2191
+ * @generated from field: string user_comment = 1;
2192
+ */
2193
+ this.userComment = "";
2194
+ /**
2195
+ * The UUID of the family
2196
+ *
2197
+ * @generated from field: string uuid = 10;
2198
+ */
2199
+ this.uuid = "";
2200
+ /**
2201
+ * Stores the unit price
2202
+ *
2203
+ * @generated from field: uint64 price = 26;
2204
+ */
2205
+ this.price = protobuf_1.protoInt64.zero;
2206
+ protobuf_1.proto3.util.initPartial(data, this);
2207
+ }
2208
+ static fromBinary(bytes, options) {
2209
+ return new FamiliesServiceUpdatePriceRequest().fromBinary(bytes, options);
2210
+ }
2211
+ static fromJson(jsonValue, options) {
2212
+ return new FamiliesServiceUpdatePriceRequest().fromJson(jsonValue, options);
2213
+ }
2214
+ static fromJsonString(jsonString, options) {
2215
+ return new FamiliesServiceUpdatePriceRequest().fromJsonString(jsonString, options);
2216
+ }
2217
+ static equals(a, b) {
2218
+ return protobuf_1.proto3.util.equals(FamiliesServiceUpdatePriceRequest, a, b);
2219
+ }
2220
+ }
2221
+ exports.FamiliesServiceUpdatePriceRequest = FamiliesServiceUpdatePriceRequest;
2222
+ FamiliesServiceUpdatePriceRequest.runtime = protobuf_1.proto3;
2223
+ FamiliesServiceUpdatePriceRequest.typeName = "Scailo.FamiliesServiceUpdatePriceRequest";
2224
+ FamiliesServiceUpdatePriceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
2225
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2226
+ { no: 10, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2227
+ { no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2228
+ ]);
2229
+ /**
2230
+ *
2231
+ * Describes the parameters necessary to update a family's min stock to maintain
2232
+ *
2233
+ * @generated from message Scailo.FamiliesServiceUpdateMinStockToMaintainRequest
2234
+ */
2235
+ class FamiliesServiceUpdateMinStockToMaintainRequest extends protobuf_1.Message {
2236
+ constructor(data) {
2237
+ super();
2238
+ /**
2239
+ * Stores any comment that the user might add during this operation
2240
+ *
2241
+ * @generated from field: string user_comment = 1;
2242
+ */
2243
+ this.userComment = "";
2244
+ /**
2245
+ * The UUID of the family
2246
+ *
2247
+ * @generated from field: string uuid = 10;
2248
+ */
2249
+ this.uuid = "";
2250
+ /**
2251
+ * Stores the minimum stock to maintain
2252
+ *
2253
+ * @generated from field: uint64 min_stock_to_maintain = 27;
2254
+ */
2255
+ this.minStockToMaintain = protobuf_1.protoInt64.zero;
2256
+ protobuf_1.proto3.util.initPartial(data, this);
2257
+ }
2258
+ static fromBinary(bytes, options) {
2259
+ return new FamiliesServiceUpdateMinStockToMaintainRequest().fromBinary(bytes, options);
2260
+ }
2261
+ static fromJson(jsonValue, options) {
2262
+ return new FamiliesServiceUpdateMinStockToMaintainRequest().fromJson(jsonValue, options);
2263
+ }
2264
+ static fromJsonString(jsonString, options) {
2265
+ return new FamiliesServiceUpdateMinStockToMaintainRequest().fromJsonString(jsonString, options);
2266
+ }
2267
+ static equals(a, b) {
2268
+ return protobuf_1.proto3.util.equals(FamiliesServiceUpdateMinStockToMaintainRequest, a, b);
2269
+ }
2270
+ }
2271
+ exports.FamiliesServiceUpdateMinStockToMaintainRequest = FamiliesServiceUpdateMinStockToMaintainRequest;
2272
+ FamiliesServiceUpdateMinStockToMaintainRequest.runtime = protobuf_1.proto3;
2273
+ FamiliesServiceUpdateMinStockToMaintainRequest.typeName = "Scailo.FamiliesServiceUpdateMinStockToMaintainRequest";
2274
+ FamiliesServiceUpdateMinStockToMaintainRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
2275
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2276
+ { no: 10, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2277
+ { no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2278
+ ]);
@@ -363,10 +363,10 @@ exports.GoodsDispatchesService = {
363
363
  * CSV operations
364
364
  * 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
365
365
  *
366
- * @generated from rpc Scailo.GoodsDispatchesService.DownloadAsCSV
366
+ * @generated from rpc Scailo.GoodsDispatchesService.DownloadItemsAsCSV
367
367
  */
368
- downloadAsCSV: {
369
- name: "DownloadAsCSV",
368
+ downloadItemsAsCSV: {
369
+ name: "DownloadItemsAsCSV",
370
370
  I: base_scailo_pb_js_1.IdentifierUUID,
371
371
  O: base_scailo_pb_js_1.StandardFile,
372
372
  kind: protobuf_1.MethodKind.Unary,
@@ -352,10 +352,10 @@ exports.GoodsReceiptsService = {
352
352
  * CSV operations
353
353
  * 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
354
354
  *
355
- * @generated from rpc Scailo.GoodsReceiptsService.DownloadAsCSV
355
+ * @generated from rpc Scailo.GoodsReceiptsService.DownloadItemsAsCSV
356
356
  */
357
- downloadAsCSV: {
358
- name: "DownloadAsCSV",
357
+ downloadItemsAsCSV: {
358
+ name: "DownloadItemsAsCSV",
359
359
  I: base_scailo_pb_js_1.IdentifierUUID,
360
360
  O: base_scailo_pb_js_1.StandardFile,
361
361
  kind: protobuf_1.MethodKind.Unary,
@@ -39,6 +39,12 @@ var LABEL_SORT_KEY;
39
39
  * @generated from enum value: LABEL_SORT_KEY_NAME = 10;
40
40
  */
41
41
  LABEL_SORT_KEY[LABEL_SORT_KEY["LABEL_SORT_KEY_NAME"] = 10] = "LABEL_SORT_KEY_NAME";
42
+ /**
43
+ * Fetch ordered results by the code
44
+ *
45
+ * @generated from enum value: LABEL_SORT_KEY_CODE = 11;
46
+ */
47
+ LABEL_SORT_KEY[LABEL_SORT_KEY["LABEL_SORT_KEY_CODE"] = 11] = "LABEL_SORT_KEY_CODE";
42
48
  })(LABEL_SORT_KEY || (exports.LABEL_SORT_KEY = LABEL_SORT_KEY = {}));
43
49
  // Retrieve enum metadata with: proto3.getEnumType(LABEL_SORT_KEY)
44
50
  protobuf_1.proto3.util.setEnumType(LABEL_SORT_KEY, "Scailo.LABEL_SORT_KEY", [
@@ -46,6 +52,7 @@ protobuf_1.proto3.util.setEnumType(LABEL_SORT_KEY, "Scailo.LABEL_SORT_KEY", [
46
52
  { no: 1, name: "LABEL_SORT_KEY_CREATED_AT" },
47
53
  { no: 2, name: "LABEL_SORT_KEY_MODIFIED_AT" },
48
54
  { no: 10, name: "LABEL_SORT_KEY_NAME" },
55
+ { no: 11, name: "LABEL_SORT_KEY_CODE" },
49
56
  ]);
50
57
  /**
51
58
  *
@@ -68,6 +75,12 @@ class Label extends protobuf_1.Message {
68
75
  * @generated from field: string name = 10;
69
76
  */
70
77
  this.name = "";
78
+ /**
79
+ * The unique code by which the label is classified
80
+ *
81
+ * @generated from field: string code = 21;
82
+ */
83
+ this.code = "";
71
84
  /**
72
85
  * A short description of the label
73
86
  *
@@ -96,6 +109,7 @@ Label.fields = protobuf_1.proto3.util.newFieldList(() => [
96
109
  { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
97
110
  { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
98
111
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
112
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
99
113
  { no: 11, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
100
114
  ]);
101
115
  /**
@@ -218,6 +232,12 @@ class LabelsServiceCreateRequest extends protobuf_1.Message {
218
232
  * @generated from field: string name = 10;
219
233
  */
220
234
  this.name = "";
235
+ /**
236
+ * The unique code by which the label is classified
237
+ *
238
+ * @generated from field: string code = 21;
239
+ */
240
+ this.code = "";
221
241
  /**
222
242
  * A short description of the label
223
243
  *
@@ -246,6 +266,7 @@ LabelsServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
246
266
  { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
247
267
  { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
248
268
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
269
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
249
270
  { no: 11, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
250
271
  ]);
251
272
  /**
@@ -275,6 +296,12 @@ class LabelsServiceUpdateRequest extends protobuf_1.Message {
275
296
  * @generated from field: string name = 10;
276
297
  */
277
298
  this.name = "";
299
+ /**
300
+ * The unique code by which the label is classified
301
+ *
302
+ * @generated from field: string code = 21;
303
+ */
304
+ this.code = "";
278
305
  /**
279
306
  * A short description of the label
280
307
  *
@@ -303,6 +330,7 @@ LabelsServiceUpdateRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
303
330
  { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
304
331
  { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
305
332
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
333
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
306
334
  { no: 11, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
307
335
  ]);
308
336
  /**
@@ -444,6 +472,12 @@ class LabelsServiceFilterReq extends protobuf_1.Message {
444
472
  * @generated from field: string name = 10;
445
473
  */
446
474
  this.name = "";
475
+ /**
476
+ * The unique code by which the label is classified
477
+ *
478
+ * @generated from field: string code = 21;
479
+ */
480
+ this.code = "";
447
481
  protobuf_1.proto3.util.initPartial(data, this);
448
482
  }
449
483
  static fromBinary(bytes, options) {
@@ -474,6 +508,7 @@ LabelsServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
474
508
  { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
475
509
  { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
476
510
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
511
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
477
512
  ]);
478
513
  /**
479
514
  *
@@ -526,6 +561,12 @@ class LabelsServiceCountReq extends protobuf_1.Message {
526
561
  * @generated from field: string name = 10;
527
562
  */
528
563
  this.name = "";
564
+ /**
565
+ * The unique code by which the label is classified
566
+ *
567
+ * @generated from field: string code = 21;
568
+ */
569
+ this.code = "";
529
570
  protobuf_1.proto3.util.initPartial(data, this);
530
571
  }
531
572
  static fromBinary(bytes, options) {
@@ -552,6 +593,7 @@ LabelsServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
552
593
  { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
553
594
  { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
554
595
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
596
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
555
597
  ]);
556
598
  /**
557
599
  *
@@ -352,10 +352,10 @@ exports.ProformaInvoicesService = {
352
352
  * CSV operations
353
353
  * 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
354
354
  *
355
- * @generated from rpc Scailo.ProformaInvoicesService.DownloadAsCSV
355
+ * @generated from rpc Scailo.ProformaInvoicesService.DownloadItemsAsCSV
356
356
  */
357
- downloadAsCSV: {
358
- name: "DownloadAsCSV",
357
+ downloadItemsAsCSV: {
358
+ name: "DownloadItemsAsCSV",
359
359
  I: base_scailo_pb_js_1.IdentifierUUID,
360
360
  O: base_scailo_pb_js_1.StandardFile,
361
361
  kind: protobuf_1.MethodKind.Unary,
@@ -363,10 +363,10 @@ exports.PurchasesIndentsService = {
363
363
  * CSV operations
364
364
  * 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
365
365
  *
366
- * @generated from rpc Scailo.PurchasesIndentsService.DownloadAsCSV
366
+ * @generated from rpc Scailo.PurchasesIndentsService.DownloadItemsAsCSV
367
367
  */
368
- downloadAsCSV: {
369
- name: "DownloadAsCSV",
368
+ downloadItemsAsCSV: {
369
+ name: "DownloadItemsAsCSV",
370
370
  I: base_scailo_pb_js_1.IdentifierUUID,
371
371
  O: base_scailo_pb_js_1.StandardFile,
372
372
  kind: protobuf_1.MethodKind.Unary,
@@ -363,10 +363,10 @@ exports.PurchasesOrdersService = {
363
363
  * CSV operations
364
364
  * 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
365
365
  *
366
- * @generated from rpc Scailo.PurchasesOrdersService.DownloadAsCSV
366
+ * @generated from rpc Scailo.PurchasesOrdersService.DownloadItemsAsCSV
367
367
  */
368
- downloadAsCSV: {
369
- name: "DownloadAsCSV",
368
+ downloadItemsAsCSV: {
369
+ name: "DownloadItemsAsCSV",
370
370
  I: base_scailo_pb_js_1.IdentifierUUID,
371
371
  O: base_scailo_pb_js_1.StandardFile,
372
372
  kind: protobuf_1.MethodKind.Unary,
@@ -340,10 +340,10 @@ exports.SalesEnquiriesService = {
340
340
  * CSV operations
341
341
  * 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
342
342
  *
343
- * @generated from rpc Scailo.SalesEnquiriesService.DownloadAsCSV
343
+ * @generated from rpc Scailo.SalesEnquiriesService.DownloadItemsAsCSV
344
344
  */
345
- downloadAsCSV: {
346
- name: "DownloadAsCSV",
345
+ downloadItemsAsCSV: {
346
+ name: "DownloadItemsAsCSV",
347
347
  I: base_scailo_pb_js_1.IdentifierUUID,
348
348
  O: base_scailo_pb_js_1.StandardFile,
349
349
  kind: protobuf_1.MethodKind.Unary,
@@ -352,10 +352,10 @@ exports.SalesInvoicesService = {
352
352
  * CSV operations
353
353
  * 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
354
354
  *
355
- * @generated from rpc Scailo.SalesInvoicesService.DownloadAsCSV
355
+ * @generated from rpc Scailo.SalesInvoicesService.DownloadItemsAsCSV
356
356
  */
357
- downloadAsCSV: {
358
- name: "DownloadAsCSV",
357
+ downloadItemsAsCSV: {
358
+ name: "DownloadItemsAsCSV",
359
359
  I: base_scailo_pb_js_1.IdentifierUUID,
360
360
  O: base_scailo_pb_js_1.StandardFile,
361
361
  kind: protobuf_1.MethodKind.Unary,
@@ -363,10 +363,10 @@ exports.SalesOrdersService = {
363
363
  * CSV operations
364
364
  * 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
365
365
  *
366
- * @generated from rpc Scailo.SalesOrdersService.DownloadAsCSV
366
+ * @generated from rpc Scailo.SalesOrdersService.DownloadItemsAsCSV
367
367
  */
368
- downloadAsCSV: {
369
- name: "DownloadAsCSV",
368
+ downloadItemsAsCSV: {
369
+ name: "DownloadItemsAsCSV",
370
370
  I: base_scailo_pb_js_1.IdentifierUUID,
371
371
  O: base_scailo_pb_js_1.StandardFile,
372
372
  kind: protobuf_1.MethodKind.Unary,
@@ -363,10 +363,10 @@ exports.SalesQuotationsService = {
363
363
  * CSV operations
364
364
  * 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
365
365
  *
366
- * @generated from rpc Scailo.SalesQuotationsService.DownloadAsCSV
366
+ * @generated from rpc Scailo.SalesQuotationsService.DownloadItemsAsCSV
367
367
  */
368
- downloadAsCSV: {
369
- name: "DownloadAsCSV",
368
+ downloadItemsAsCSV: {
369
+ name: "DownloadItemsAsCSV",
370
370
  I: base_scailo_pb_js_1.IdentifierUUID,
371
371
  O: base_scailo_pb_js_1.StandardFile,
372
372
  kind: protobuf_1.MethodKind.Unary,
@@ -363,10 +363,10 @@ exports.SupplyOffersService = {
363
363
  * CSV operations
364
364
  * 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
365
365
  *
366
- * @generated from rpc Scailo.SupplyOffersService.DownloadAsCSV
366
+ * @generated from rpc Scailo.SupplyOffersService.DownloadItemsAsCSV
367
367
  */
368
- downloadAsCSV: {
369
- name: "DownloadAsCSV",
368
+ downloadItemsAsCSV: {
369
+ name: "DownloadItemsAsCSV",
370
370
  I: base_scailo_pb_js_1.IdentifierUUID,
371
371
  O: base_scailo_pb_js_1.StandardFile,
372
372
  kind: protobuf_1.MethodKind.Unary,