@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
  /**
@@ -389,12 +389,6 @@ class FamiliesServiceCreateRequest extends protobuf_1.Message {
389
389
  * @generated from field: Scailo.CONSUMPTION_SEQUENCE consumption_sequence = 28;
390
390
  */
391
391
  consumptionSequence = CONSUMPTION_SEQUENCE.CONSUMPTION_SEQUENCE_ANY_UNSPECIFIED;
392
- /**
393
- * Stores the list of label IDs
394
- *
395
- * @generated from field: repeated uint64 label_ids = 30;
396
- */
397
- labelIds = [];
398
392
  constructor(data) {
399
393
  super();
400
394
  protobuf_1.proto3.util.initPartial(data, this);
@@ -421,7 +415,6 @@ class FamiliesServiceCreateRequest extends protobuf_1.Message {
421
415
  { no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
422
416
  { no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
423
417
  { no: 28, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
424
- { no: 30, name: "label_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
425
418
  ]);
426
419
  static fromBinary(bytes, options) {
427
420
  return new FamiliesServiceCreateRequest().fromBinary(bytes, options);
@@ -564,12 +557,6 @@ class FamiliesServiceUpdateRequest extends protobuf_1.Message {
564
557
  * @generated from field: Scailo.CONSUMPTION_SEQUENCE consumption_sequence = 28;
565
558
  */
566
559
  consumptionSequence = CONSUMPTION_SEQUENCE.CONSUMPTION_SEQUENCE_ANY_UNSPECIFIED;
567
- /**
568
- * Stores the list of label IDs
569
- *
570
- * @generated from field: repeated uint64 label_ids = 30;
571
- */
572
- labelIds = [];
573
560
  constructor(data) {
574
561
  super();
575
562
  protobuf_1.proto3.util.initPartial(data, this);
@@ -597,7 +584,6 @@ class FamiliesServiceUpdateRequest extends protobuf_1.Message {
597
584
  { no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
598
585
  { no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
599
586
  { no: 28, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
600
- { no: 30, name: "label_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
601
587
  ]);
602
588
  static fromBinary(bytes, options) {
603
589
  return new FamiliesServiceUpdateRequest().fromBinary(bytes, options);
@@ -752,12 +738,6 @@ class Family extends protobuf_1.Message {
752
738
  * @generated from field: Scailo.CONSUMPTION_SEQUENCE consumption_sequence = 29;
753
739
  */
754
740
  consumptionSequence = CONSUMPTION_SEQUENCE.CONSUMPTION_SEQUENCE_ANY_UNSPECIFIED;
755
- /**
756
- * Stores the list of label IDs
757
- *
758
- * @generated from field: repeated uint64 label_ids = 30;
759
- */
760
- labelIds = [];
761
741
  /**
762
742
  * The number of times that the family has been amended
763
743
  *
@@ -793,7 +773,6 @@ class Family extends protobuf_1.Message {
793
773
  { no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
794
774
  { no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
795
775
  { no: 29, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
796
- { no: 30, name: "label_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
797
776
  { no: 40, name: "amendment_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
798
777
  ]);
799
778
  static fromBinary(bytes, options) {
@@ -1155,6 +1134,12 @@ class FamiliesServiceFilterReq extends protobuf_1.Message {
1155
1134
  * @generated from field: uint64 parent_storage_id = 50;
1156
1135
  */
1157
1136
  parentStorageId = protobuf_1.protoInt64.zero;
1137
+ /**
1138
+ * Filter by families that have the given label ID
1139
+ *
1140
+ * @generated from field: uint64 label_id = 60;
1141
+ */
1142
+ labelId = protobuf_1.protoInt64.zero;
1158
1143
  constructor(data) {
1159
1144
  super();
1160
1145
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1191,6 +1176,7 @@ class FamiliesServiceFilterReq extends protobuf_1.Message {
1191
1176
  { no: 33, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1192
1177
  { no: 39, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
1193
1178
  { no: 50, name: "parent_storage_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1179
+ { no: 60, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1194
1180
  ]);
1195
1181
  static fromBinary(bytes, options) {
1196
1182
  return new FamiliesServiceFilterReq().fromBinary(bytes, options);
@@ -1363,6 +1349,12 @@ class FamiliesServiceCountReq extends protobuf_1.Message {
1363
1349
  * @generated from field: uint64 parent_storage_id = 50;
1364
1350
  */
1365
1351
  parentStorageId = protobuf_1.protoInt64.zero;
1352
+ /**
1353
+ * Filter by families that have the given label ID
1354
+ *
1355
+ * @generated from field: uint64 label_id = 60;
1356
+ */
1357
+ labelId = protobuf_1.protoInt64.zero;
1366
1358
  constructor(data) {
1367
1359
  super();
1368
1360
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1395,6 +1387,7 @@ class FamiliesServiceCountReq extends protobuf_1.Message {
1395
1387
  { no: 33, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1396
1388
  { no: 39, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
1397
1389
  { no: 50, name: "parent_storage_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1390
+ { no: 60, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1398
1391
  ]);
1399
1392
  static fromBinary(bytes, options) {
1400
1393
  return new FamiliesServiceCountReq().fromBinary(bytes, options);
@@ -1516,6 +1509,170 @@ class FamiliesServiceSearchAllReq extends protobuf_1.Message {
1516
1509
  }
1517
1510
  }
1518
1511
  exports.FamiliesServiceSearchAllReq = FamiliesServiceSearchAllReq;
1512
+ /**
1513
+ *
1514
+ * Describes the parameters necessary to create a family label
1515
+ *
1516
+ * @generated from message Scailo.FamiliesServiceLabelCreateRequest
1517
+ */
1518
+ class FamiliesServiceLabelCreateRequest extends protobuf_1.Message {
1519
+ /**
1520
+ * Stores any comment that the user might add during this operation
1521
+ *
1522
+ * @generated from field: string user_comment = 1;
1523
+ */
1524
+ userComment = "";
1525
+ /**
1526
+ * Stores the family ID
1527
+ *
1528
+ * @generated from field: uint64 family_id = 10;
1529
+ */
1530
+ familyId = protobuf_1.protoInt64.zero;
1531
+ /**
1532
+ * Stores the label ID
1533
+ *
1534
+ * @generated from field: uint64 label_id = 11;
1535
+ */
1536
+ labelId = protobuf_1.protoInt64.zero;
1537
+ constructor(data) {
1538
+ super();
1539
+ protobuf_1.proto3.util.initPartial(data, this);
1540
+ }
1541
+ static runtime = protobuf_1.proto3;
1542
+ static typeName = "Scailo.FamiliesServiceLabelCreateRequest";
1543
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1544
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1545
+ { no: 10, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1546
+ { no: 11, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1547
+ ]);
1548
+ static fromBinary(bytes, options) {
1549
+ return new FamiliesServiceLabelCreateRequest().fromBinary(bytes, options);
1550
+ }
1551
+ static fromJson(jsonValue, options) {
1552
+ return new FamiliesServiceLabelCreateRequest().fromJson(jsonValue, options);
1553
+ }
1554
+ static fromJsonString(jsonString, options) {
1555
+ return new FamiliesServiceLabelCreateRequest().fromJsonString(jsonString, options);
1556
+ }
1557
+ static equals(a, b) {
1558
+ return protobuf_1.proto3.util.equals(FamiliesServiceLabelCreateRequest, a, b);
1559
+ }
1560
+ }
1561
+ exports.FamiliesServiceLabelCreateRequest = FamiliesServiceLabelCreateRequest;
1562
+ /**
1563
+ *
1564
+ * Describes the parameters that constitute a family label
1565
+ *
1566
+ * @generated from message Scailo.FamilyLabel
1567
+ */
1568
+ class FamilyLabel extends protobuf_1.Message {
1569
+ /**
1570
+ * Stores a globally unique entity UUID. This will be set at the organization level
1571
+ *
1572
+ * @generated from field: string entity_uuid = 1;
1573
+ */
1574
+ entityUuid = "";
1575
+ /**
1576
+ * Stores the metadata of this family
1577
+ *
1578
+ * @generated from field: Scailo.EmployeeMetadata metadata = 2;
1579
+ */
1580
+ metadata;
1581
+ /**
1582
+ * Stores the approval metadata
1583
+ *
1584
+ * @generated from field: Scailo.ApprovalMetadata approval_metadata = 3;
1585
+ */
1586
+ approvalMetadata;
1587
+ /**
1588
+ * Denotes if this record requires approval (or has been approved)
1589
+ *
1590
+ * @generated from field: bool need_approval = 4;
1591
+ */
1592
+ needApproval = false;
1593
+ /**
1594
+ * Stores any comment that the user might have added during an operation
1595
+ *
1596
+ * @generated from field: string user_comment = 5;
1597
+ */
1598
+ userComment = "";
1599
+ /**
1600
+ * Stores the family ID
1601
+ *
1602
+ * @generated from field: uint64 family_id = 10;
1603
+ */
1604
+ familyId = protobuf_1.protoInt64.zero;
1605
+ /**
1606
+ * Stores the label ID
1607
+ *
1608
+ * @generated from field: uint64 label_id = 11;
1609
+ */
1610
+ labelId = protobuf_1.protoInt64.zero;
1611
+ constructor(data) {
1612
+ super();
1613
+ protobuf_1.proto3.util.initPartial(data, this);
1614
+ }
1615
+ static runtime = protobuf_1.proto3;
1616
+ static typeName = "Scailo.FamilyLabel";
1617
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1618
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1619
+ { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
1620
+ { no: 3, name: "approval_metadata", kind: "message", T: base_scailo_pb_js_1.ApprovalMetadata },
1621
+ { no: 4, name: "need_approval", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1622
+ { no: 5, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1623
+ { no: 10, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1624
+ { no: 11, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1625
+ ]);
1626
+ static fromBinary(bytes, options) {
1627
+ return new FamilyLabel().fromBinary(bytes, options);
1628
+ }
1629
+ static fromJson(jsonValue, options) {
1630
+ return new FamilyLabel().fromJson(jsonValue, options);
1631
+ }
1632
+ static fromJsonString(jsonString, options) {
1633
+ return new FamilyLabel().fromJsonString(jsonString, options);
1634
+ }
1635
+ static equals(a, b) {
1636
+ return protobuf_1.proto3.util.equals(FamilyLabel, a, b);
1637
+ }
1638
+ }
1639
+ exports.FamilyLabel = FamilyLabel;
1640
+ /**
1641
+ *
1642
+ * Describes the message consisting of the list of family labels
1643
+ *
1644
+ * @generated from message Scailo.FamilyLabelsList
1645
+ */
1646
+ class FamilyLabelsList extends protobuf_1.Message {
1647
+ /**
1648
+ * List of records
1649
+ *
1650
+ * @generated from field: repeated Scailo.FamilyLabel list = 1;
1651
+ */
1652
+ list = [];
1653
+ constructor(data) {
1654
+ super();
1655
+ protobuf_1.proto3.util.initPartial(data, this);
1656
+ }
1657
+ static runtime = protobuf_1.proto3;
1658
+ static typeName = "Scailo.FamilyLabelsList";
1659
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1660
+ { no: 1, name: "list", kind: "message", T: FamilyLabel, repeated: true },
1661
+ ]);
1662
+ static fromBinary(bytes, options) {
1663
+ return new FamilyLabelsList().fromBinary(bytes, options);
1664
+ }
1665
+ static fromJson(jsonValue, options) {
1666
+ return new FamilyLabelsList().fromJson(jsonValue, options);
1667
+ }
1668
+ static fromJsonString(jsonString, options) {
1669
+ return new FamilyLabelsList().fromJsonString(jsonString, options);
1670
+ }
1671
+ static equals(a, b) {
1672
+ return protobuf_1.proto3.util.equals(FamilyLabelsList, a, b);
1673
+ }
1674
+ }
1675
+ exports.FamilyLabelsList = FamilyLabelsList;
1519
1676
  /**
1520
1677
  *
1521
1678
  * Describes the parameters necessary to create a family storage
@@ -2079,3 +2236,103 @@ class FamilyQCGroupsList extends protobuf_1.Message {
2079
2236
  }
2080
2237
  }
2081
2238
  exports.FamilyQCGroupsList = FamilyQCGroupsList;
2239
+ /**
2240
+ *
2241
+ * Describes the parameters necessary to update a family's price
2242
+ *
2243
+ * @generated from message Scailo.FamiliesServiceUpdatePriceRequest
2244
+ */
2245
+ class FamiliesServiceUpdatePriceRequest extends protobuf_1.Message {
2246
+ /**
2247
+ * Stores any comment that the user might add during this operation
2248
+ *
2249
+ * @generated from field: string user_comment = 1;
2250
+ */
2251
+ userComment = "";
2252
+ /**
2253
+ * The UUID of the family
2254
+ *
2255
+ * @generated from field: string uuid = 10;
2256
+ */
2257
+ uuid = "";
2258
+ /**
2259
+ * Stores the unit price
2260
+ *
2261
+ * @generated from field: uint64 price = 26;
2262
+ */
2263
+ price = protobuf_1.protoInt64.zero;
2264
+ constructor(data) {
2265
+ super();
2266
+ protobuf_1.proto3.util.initPartial(data, this);
2267
+ }
2268
+ static runtime = protobuf_1.proto3;
2269
+ static typeName = "Scailo.FamiliesServiceUpdatePriceRequest";
2270
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2271
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2272
+ { no: 10, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2273
+ { no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2274
+ ]);
2275
+ static fromBinary(bytes, options) {
2276
+ return new FamiliesServiceUpdatePriceRequest().fromBinary(bytes, options);
2277
+ }
2278
+ static fromJson(jsonValue, options) {
2279
+ return new FamiliesServiceUpdatePriceRequest().fromJson(jsonValue, options);
2280
+ }
2281
+ static fromJsonString(jsonString, options) {
2282
+ return new FamiliesServiceUpdatePriceRequest().fromJsonString(jsonString, options);
2283
+ }
2284
+ static equals(a, b) {
2285
+ return protobuf_1.proto3.util.equals(FamiliesServiceUpdatePriceRequest, a, b);
2286
+ }
2287
+ }
2288
+ exports.FamiliesServiceUpdatePriceRequest = FamiliesServiceUpdatePriceRequest;
2289
+ /**
2290
+ *
2291
+ * Describes the parameters necessary to update a family's min stock to maintain
2292
+ *
2293
+ * @generated from message Scailo.FamiliesServiceUpdateMinStockToMaintainRequest
2294
+ */
2295
+ class FamiliesServiceUpdateMinStockToMaintainRequest extends protobuf_1.Message {
2296
+ /**
2297
+ * Stores any comment that the user might add during this operation
2298
+ *
2299
+ * @generated from field: string user_comment = 1;
2300
+ */
2301
+ userComment = "";
2302
+ /**
2303
+ * The UUID of the family
2304
+ *
2305
+ * @generated from field: string uuid = 10;
2306
+ */
2307
+ uuid = "";
2308
+ /**
2309
+ * Stores the minimum stock to maintain
2310
+ *
2311
+ * @generated from field: uint64 min_stock_to_maintain = 27;
2312
+ */
2313
+ minStockToMaintain = protobuf_1.protoInt64.zero;
2314
+ constructor(data) {
2315
+ super();
2316
+ protobuf_1.proto3.util.initPartial(data, this);
2317
+ }
2318
+ static runtime = protobuf_1.proto3;
2319
+ static typeName = "Scailo.FamiliesServiceUpdateMinStockToMaintainRequest";
2320
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2321
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2322
+ { no: 10, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2323
+ { no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2324
+ ]);
2325
+ static fromBinary(bytes, options) {
2326
+ return new FamiliesServiceUpdateMinStockToMaintainRequest().fromBinary(bytes, options);
2327
+ }
2328
+ static fromJson(jsonValue, options) {
2329
+ return new FamiliesServiceUpdateMinStockToMaintainRequest().fromJson(jsonValue, options);
2330
+ }
2331
+ static fromJsonString(jsonString, options) {
2332
+ return new FamiliesServiceUpdateMinStockToMaintainRequest().fromJsonString(jsonString, options);
2333
+ }
2334
+ static equals(a, b) {
2335
+ return protobuf_1.proto3.util.equals(FamiliesServiceUpdateMinStockToMaintainRequest, a, b);
2336
+ }
2337
+ }
2338
+ exports.FamiliesServiceUpdateMinStockToMaintainRequest = FamiliesServiceUpdateMinStockToMaintainRequest;
@@ -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
  *
@@ -72,6 +79,12 @@ class Label extends protobuf_1.Message {
72
79
  * @generated from field: string name = 10;
73
80
  */
74
81
  name = "";
82
+ /**
83
+ * The unique code by which the label is classified
84
+ *
85
+ * @generated from field: string code = 21;
86
+ */
87
+ code = "";
75
88
  /**
76
89
  * A short description of the label
77
90
  *
@@ -88,6 +101,7 @@ class Label extends protobuf_1.Message {
88
101
  { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
89
102
  { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
90
103
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
104
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
91
105
  { no: 11, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
92
106
  ]);
93
107
  static fromBinary(bytes, options) {
@@ -222,6 +236,12 @@ class LabelsServiceCreateRequest extends protobuf_1.Message {
222
236
  * @generated from field: string name = 10;
223
237
  */
224
238
  name = "";
239
+ /**
240
+ * The unique code by which the label is classified
241
+ *
242
+ * @generated from field: string code = 21;
243
+ */
244
+ code = "";
225
245
  /**
226
246
  * A short description of the label
227
247
  *
@@ -238,6 +258,7 @@ class LabelsServiceCreateRequest extends protobuf_1.Message {
238
258
  { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
239
259
  { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
240
260
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
261
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
241
262
  { no: 11, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
242
263
  ]);
243
264
  static fromBinary(bytes, options) {
@@ -279,6 +300,12 @@ class LabelsServiceUpdateRequest extends protobuf_1.Message {
279
300
  * @generated from field: string name = 10;
280
301
  */
281
302
  name = "";
303
+ /**
304
+ * The unique code by which the label is classified
305
+ *
306
+ * @generated from field: string code = 21;
307
+ */
308
+ code = "";
282
309
  /**
283
310
  * A short description of the label
284
311
  *
@@ -295,6 +322,7 @@ class LabelsServiceUpdateRequest extends protobuf_1.Message {
295
322
  { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
296
323
  { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
297
324
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
325
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
298
326
  { no: 11, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
299
327
  ]);
300
328
  static fromBinary(bytes, options) {
@@ -448,6 +476,12 @@ class LabelsServiceFilterReq extends protobuf_1.Message {
448
476
  * @generated from field: string name = 10;
449
477
  */
450
478
  name = "";
479
+ /**
480
+ * The unique code by which the label is classified
481
+ *
482
+ * @generated from field: string code = 21;
483
+ */
484
+ code = "";
451
485
  constructor(data) {
452
486
  super();
453
487
  protobuf_1.proto3.util.initPartial(data, this);
@@ -466,6 +500,7 @@ class LabelsServiceFilterReq extends protobuf_1.Message {
466
500
  { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
467
501
  { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
468
502
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
503
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
469
504
  ]);
470
505
  static fromBinary(bytes, options) {
471
506
  return new LabelsServiceFilterReq().fromBinary(bytes, options);
@@ -530,6 +565,12 @@ class LabelsServiceCountReq extends protobuf_1.Message {
530
565
  * @generated from field: string name = 10;
531
566
  */
532
567
  name = "";
568
+ /**
569
+ * The unique code by which the label is classified
570
+ *
571
+ * @generated from field: string code = 21;
572
+ */
573
+ code = "";
533
574
  constructor(data) {
534
575
  super();
535
576
  protobuf_1.proto3.util.initPartial(data, this);
@@ -544,6 +585,7 @@ class LabelsServiceCountReq extends protobuf_1.Message {
544
585
  { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
545
586
  { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
546
587
  { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
588
+ { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
547
589
  ]);
548
590
  static fromBinary(bytes, options) {
549
591
  return new LabelsServiceCountReq().fromBinary(bytes, options);
@@ -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,