@kernelminds/scailo-sdk 0.0.20 → 0.0.22

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 (43) hide show
  1. package/lib/cjs/src/families.scailo_connect.js +85 -8
  2. package/lib/cjs/src/families.scailo_pb.js +217 -22
  3. package/lib/cjs/src/goods_receipts.scailo_pb.js +11 -0
  4. package/lib/cjs/src/outward_jobs.scailo_pb.js +22 -0
  5. package/lib/cjs/src/purchases_orders.scailo_pb.js +11 -0
  6. package/lib/cjs/src/supply_offers.scailo_pb.js +11 -0
  7. package/lib/cjs/src/vendor_invoices.scailo_pb.js +11 -0
  8. package/lib/cjs/types/src/families.scailo_connect.d.ts +87 -10
  9. package/lib/cjs/types/src/families.scailo_connect.d.ts.map +1 -1
  10. package/lib/cjs/types/src/families.scailo_pb.d.ts +160 -18
  11. package/lib/cjs/types/src/families.scailo_pb.d.ts.map +1 -1
  12. package/lib/cjs/types/src/goods_receipts.scailo_pb.d.ts +10 -0
  13. package/lib/cjs/types/src/goods_receipts.scailo_pb.d.ts.map +1 -1
  14. package/lib/cjs/types/src/outward_jobs.scailo_pb.d.ts +20 -0
  15. package/lib/cjs/types/src/outward_jobs.scailo_pb.d.ts.map +1 -1
  16. package/lib/cjs/types/src/purchases_orders.scailo_pb.d.ts +10 -0
  17. package/lib/cjs/types/src/purchases_orders.scailo_pb.d.ts.map +1 -1
  18. package/lib/cjs/types/src/supply_offers.scailo_pb.d.ts +10 -0
  19. package/lib/cjs/types/src/supply_offers.scailo_pb.d.ts.map +1 -1
  20. package/lib/cjs/types/src/vendor_invoices.scailo_pb.d.ts +10 -0
  21. package/lib/cjs/types/src/vendor_invoices.scailo_pb.d.ts.map +1 -1
  22. package/lib/esm/src/families.scailo_connect.js +85 -8
  23. package/lib/esm/src/families.scailo_pb.js +229 -22
  24. package/lib/esm/src/goods_receipts.scailo_pb.js +11 -0
  25. package/lib/esm/src/outward_jobs.scailo_pb.js +22 -0
  26. package/lib/esm/src/purchases_orders.scailo_pb.js +11 -0
  27. package/lib/esm/src/supply_offers.scailo_pb.js +11 -0
  28. package/lib/esm/src/vendor_invoices.scailo_pb.js +11 -0
  29. package/lib/esm/types/src/families.scailo_connect.d.ts +87 -10
  30. package/lib/esm/types/src/families.scailo_connect.d.ts.map +1 -1
  31. package/lib/esm/types/src/families.scailo_pb.d.ts +160 -18
  32. package/lib/esm/types/src/families.scailo_pb.d.ts.map +1 -1
  33. package/lib/esm/types/src/goods_receipts.scailo_pb.d.ts +10 -0
  34. package/lib/esm/types/src/goods_receipts.scailo_pb.d.ts.map +1 -1
  35. package/lib/esm/types/src/outward_jobs.scailo_pb.d.ts +20 -0
  36. package/lib/esm/types/src/outward_jobs.scailo_pb.d.ts.map +1 -1
  37. package/lib/esm/types/src/purchases_orders.scailo_pb.d.ts +10 -0
  38. package/lib/esm/types/src/purchases_orders.scailo_pb.d.ts.map +1 -1
  39. package/lib/esm/types/src/supply_offers.scailo_pb.d.ts +10 -0
  40. package/lib/esm/types/src/supply_offers.scailo_pb.d.ts.map +1 -1
  41. package/lib/esm/types/src/vendor_invoices.scailo_pb.d.ts +10 -0
  42. package/lib/esm/types/src/vendor_invoices.scailo_pb.d.ts.map +1 -1
  43. package/package.json +1 -1
@@ -163,27 +163,49 @@ exports.FamiliesService = {
163
163
  O: base_scailo_pb_js_1.IdentifierResponse,
164
164
  kind: protobuf_1.MethodKind.Unary,
165
165
  },
166
+ /**
167
+ * Adjusts the price of the family with the given UUID
168
+ *
169
+ * @generated from rpc Scailo.FamiliesService.AdjustPrice
170
+ */
171
+ adjustPrice: {
172
+ name: "AdjustPrice",
173
+ I: families_scailo_pb_js_1.FamiliesServiceAdjustPriceRequest,
174
+ O: base_scailo_pb_js_1.IdentifierResponse,
175
+ kind: protobuf_1.MethodKind.Unary,
176
+ },
177
+ /**
178
+ * Adjusts the price of all the families mentioned in the file
179
+ *
180
+ * @generated from rpc Scailo.FamiliesService.UploadPrices
181
+ */
182
+ uploadPrices: {
183
+ name: "UploadPrices",
184
+ I: base_scailo_pb_js_1.StandardFile,
185
+ O: base_scailo_pb_js_1.IdentifierUUIDsList,
186
+ kind: protobuf_1.MethodKind.Unary,
187
+ },
166
188
  /**
167
189
  * CSV operations
168
- * 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
190
+ * Download the CSV file that consists of the list of families according to the given filter request. The same file could also be used as a template for uploading families
169
191
  *
170
192
  * @generated from rpc Scailo.FamiliesService.DownloadAsCSV
171
193
  */
172
194
  downloadAsCSV: {
173
195
  name: "DownloadAsCSV",
174
- I: base_scailo_pb_js_1.IdentifierUUID,
196
+ I: families_scailo_pb_js_1.FamiliesServiceFilterReq,
175
197
  O: base_scailo_pb_js_1.StandardFile,
176
198
  kind: protobuf_1.MethodKind.Unary,
177
199
  },
178
200
  /**
179
- * Upload items using a CSV file (duplicate codes will be skipped)
201
+ * Import families using a CSV file (duplicate codes will be skipped)
180
202
  *
181
- * @generated from rpc Scailo.FamiliesService.UploadFamilies
203
+ * @generated from rpc Scailo.FamiliesService.Import
182
204
  */
183
- uploadFamilies: {
184
- name: "UploadFamilies",
185
- I: base_scailo_pb_js_1.IdentifierWithFile,
186
- O: base_scailo_pb_js_1.IdentifiersList,
205
+ import: {
206
+ name: "Import",
207
+ I: base_scailo_pb_js_1.StandardFile,
208
+ O: base_scailo_pb_js_1.IdentifierUUIDsList,
187
209
  kind: protobuf_1.MethodKind.Unary,
188
210
  },
189
211
  /**
@@ -241,6 +263,61 @@ exports.FamiliesService = {
241
263
  O: families_scailo_pb_js_1.FamilyStoragesList,
242
264
  kind: protobuf_1.MethodKind.Unary,
243
265
  },
266
+ /**
267
+ * Add a label
268
+ *
269
+ * @generated from rpc Scailo.FamiliesService.AddLabel
270
+ */
271
+ addLabel: {
272
+ name: "AddLabel",
273
+ I: families_scailo_pb_js_1.FamiliesServiceLabelCreateRequest,
274
+ O: base_scailo_pb_js_1.IdentifierResponse,
275
+ kind: protobuf_1.MethodKind.Unary,
276
+ },
277
+ /**
278
+ * Approve a label
279
+ *
280
+ * @generated from rpc Scailo.FamiliesService.ApproveLabel
281
+ */
282
+ approveLabel: {
283
+ name: "ApproveLabel",
284
+ I: base_scailo_pb_js_1.IdentifierWithUserComment,
285
+ O: base_scailo_pb_js_1.IdentifierResponse,
286
+ kind: protobuf_1.MethodKind.Unary,
287
+ },
288
+ /**
289
+ * Delete a label
290
+ *
291
+ * @generated from rpc Scailo.FamiliesService.DeleteLabel
292
+ */
293
+ deleteLabel: {
294
+ name: "DeleteLabel",
295
+ I: base_scailo_pb_js_1.IdentifierWithUserComment,
296
+ O: base_scailo_pb_js_1.IdentifierResponse,
297
+ kind: protobuf_1.MethodKind.Unary,
298
+ },
299
+ /**
300
+ * View a label for the given ID
301
+ *
302
+ * @generated from rpc Scailo.FamiliesService.ViewLabelByID
303
+ */
304
+ viewLabelByID: {
305
+ name: "ViewLabelByID",
306
+ I: base_scailo_pb_js_1.Identifier,
307
+ O: families_scailo_pb_js_1.FamilyLabel,
308
+ kind: protobuf_1.MethodKind.Unary,
309
+ },
310
+ /**
311
+ * View all labels for given family ID
312
+ *
313
+ * @generated from rpc Scailo.FamiliesService.ViewLabels
314
+ */
315
+ viewLabels: {
316
+ name: "ViewLabels",
317
+ I: base_scailo_pb_js_1.Identifier,
318
+ O: families_scailo_pb_js_1.FamilyLabelsList,
319
+ kind: protobuf_1.MethodKind.Unary,
320
+ },
244
321
  /**
245
322
  * Add a unit conversion
246
323
  *
@@ -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.FamiliesServiceAdjustPriceRequest = 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,53 @@ class FamilyQCGroupsList extends protobuf_1.Message {
2079
2236
  }
2080
2237
  }
2081
2238
  exports.FamilyQCGroupsList = FamilyQCGroupsList;
2239
+ /**
2240
+ *
2241
+ * Describes the parameters necessary to adjust a family's price
2242
+ *
2243
+ * @generated from message Scailo.FamiliesServiceAdjustPriceRequest
2244
+ */
2245
+ class FamiliesServiceAdjustPriceRequest 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.FamiliesServiceAdjustPriceRequest";
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 FamiliesServiceAdjustPriceRequest().fromBinary(bytes, options);
2277
+ }
2278
+ static fromJson(jsonValue, options) {
2279
+ return new FamiliesServiceAdjustPriceRequest().fromJson(jsonValue, options);
2280
+ }
2281
+ static fromJsonString(jsonString, options) {
2282
+ return new FamiliesServiceAdjustPriceRequest().fromJsonString(jsonString, options);
2283
+ }
2284
+ static equals(a, b) {
2285
+ return protobuf_1.proto3.util.equals(FamiliesServiceAdjustPriceRequest, a, b);
2286
+ }
2287
+ }
2288
+ exports.FamiliesServiceAdjustPriceRequest = FamiliesServiceAdjustPriceRequest;
@@ -1141,6 +1141,16 @@ class GoodsReceiptItemsSearchRequest extends protobuf_1.Message {
1141
1141
  * @generated from field: string search_key = 40;
1142
1142
  */
1143
1143
  searchKey = "";
1144
+ /**
1145
+ * ------------------------------------------
1146
+ * Extra filters
1147
+ * The ID of the associated vendor
1148
+ *
1149
+ * ------------------------------------------
1150
+ *
1151
+ * @generated from field: uint64 vendor_id = 200;
1152
+ */
1153
+ vendorId = protobuf_1.protoInt64.zero;
1144
1154
  constructor(data) {
1145
1155
  super();
1146
1156
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1163,6 +1173,7 @@ class GoodsReceiptItemsSearchRequest extends protobuf_1.Message {
1163
1173
  { no: 22, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1164
1174
  { no: 24, name: "vendor_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1165
1175
  { no: 40, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1176
+ { no: 200, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1166
1177
  ]);
1167
1178
  static fromBinary(bytes, options) {
1168
1179
  return new GoodsReceiptItemsSearchRequest().fromBinary(bytes, options);
@@ -1949,6 +1949,16 @@ class OutwardJobInwardItemsSearchRequest extends protobuf_1.Message {
1949
1949
  * @generated from field: string search_key = 40;
1950
1950
  */
1951
1951
  searchKey = "";
1952
+ /**
1953
+ * ------------------------------------------
1954
+ * Extra filters
1955
+ * The ID of the associated vendor
1956
+ *
1957
+ * ------------------------------------------
1958
+ *
1959
+ * @generated from field: uint64 vendor_id = 200;
1960
+ */
1961
+ vendorId = protobuf_1.protoInt64.zero;
1952
1962
  constructor(data) {
1953
1963
  super();
1954
1964
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1973,6 +1983,7 @@ class OutwardJobInwardItemsSearchRequest extends protobuf_1.Message {
1973
1983
  { no: 29, name: "delivery_date_start", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1974
1984
  { no: 30, name: "delivery_date_end", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1975
1985
  { no: 40, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1986
+ { no: 200, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1976
1987
  ]);
1977
1988
  static fromBinary(bytes, options) {
1978
1989
  return new OutwardJobInwardItemsSearchRequest().fromBinary(bytes, options);
@@ -2622,6 +2633,16 @@ class OutwardJobOutwardItemsSearchRequest extends protobuf_1.Message {
2622
2633
  * @generated from field: string search_key = 40;
2623
2634
  */
2624
2635
  searchKey = "";
2636
+ /**
2637
+ * ------------------------------------------
2638
+ * Extra filters
2639
+ * The ID of the associated vendor
2640
+ *
2641
+ * ------------------------------------------
2642
+ *
2643
+ * @generated from field: uint64 vendor_id = 200;
2644
+ */
2645
+ vendorId = protobuf_1.protoInt64.zero;
2625
2646
  constructor(data) {
2626
2647
  super();
2627
2648
  protobuf_1.proto3.util.initPartial(data, this);
@@ -2644,6 +2665,7 @@ class OutwardJobOutwardItemsSearchRequest extends protobuf_1.Message {
2644
2665
  { no: 21, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2645
2666
  { no: 22, name: "item_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2646
2667
  { no: 40, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2668
+ { no: 200, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2647
2669
  ]);
2648
2670
  static fromBinary(bytes, options) {
2649
2671
  return new OutwardJobOutwardItemsSearchRequest().fromBinary(bytes, options);
@@ -2487,6 +2487,16 @@ class PurchaseOrderItemsSearchRequest extends protobuf_1.Message {
2487
2487
  * @generated from field: string search_key = 40;
2488
2488
  */
2489
2489
  searchKey = "";
2490
+ /**
2491
+ * ------------------------------------------
2492
+ * Extra filters
2493
+ * The ID of the associated vendor
2494
+ *
2495
+ * ------------------------------------------
2496
+ *
2497
+ * @generated from field: uint64 vendor_id = 200;
2498
+ */
2499
+ vendorId = protobuf_1.protoInt64.zero;
2490
2500
  constructor(data) {
2491
2501
  super();
2492
2502
  protobuf_1.proto3.util.initPartial(data, this);
@@ -2513,6 +2523,7 @@ class PurchaseOrderItemsSearchRequest extends protobuf_1.Message {
2513
2523
  { no: 29, name: "delivery_date_start", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2514
2524
  { no: 30, name: "delivery_date_end", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2515
2525
  { no: 40, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2526
+ { no: 200, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2516
2527
  ]);
2517
2528
  static fromBinary(bytes, options) {
2518
2529
  return new PurchaseOrderItemsSearchRequest().fromBinary(bytes, options);
@@ -2187,6 +2187,16 @@ class SupplyOfferItemsSearchRequest extends protobuf_1.Message {
2187
2187
  * @generated from field: string search_key = 40;
2188
2188
  */
2189
2189
  searchKey = "";
2190
+ /**
2191
+ * ------------------------------------------
2192
+ * Extra filters
2193
+ * The ID of the associated vendor
2194
+ *
2195
+ * ------------------------------------------
2196
+ *
2197
+ * @generated from field: uint64 vendor_id = 200;
2198
+ */
2199
+ vendorId = protobuf_1.protoInt64.zero;
2190
2200
  constructor(data) {
2191
2201
  super();
2192
2202
  protobuf_1.proto3.util.initPartial(data, this);
@@ -2213,6 +2223,7 @@ class SupplyOfferItemsSearchRequest extends protobuf_1.Message {
2213
2223
  { no: 29, name: "delivery_date_start", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2214
2224
  { no: 30, name: "delivery_date_end", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2215
2225
  { no: 40, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2226
+ { no: 200, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2216
2227
  ]);
2217
2228
  static fromBinary(bytes, options) {
2218
2229
  return new SupplyOfferItemsSearchRequest().fromBinary(bytes, options);
@@ -2264,6 +2264,16 @@ class VendorInvoiceItemsSearchRequest extends protobuf_1.Message {
2264
2264
  * @generated from field: string search_key = 40;
2265
2265
  */
2266
2266
  searchKey = "";
2267
+ /**
2268
+ * ------------------------------------------
2269
+ * Extra filters
2270
+ * The ID of the associated vendor
2271
+ *
2272
+ * ------------------------------------------
2273
+ *
2274
+ * @generated from field: uint64 vendor_id = 200;
2275
+ */
2276
+ vendorId = protobuf_1.protoInt64.zero;
2267
2277
  constructor(data) {
2268
2278
  super();
2269
2279
  protobuf_1.proto3.util.initPartial(data, this);
@@ -2287,6 +2297,7 @@ class VendorInvoiceItemsSearchRequest extends protobuf_1.Message {
2287
2297
  { no: 23, name: "vendor_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2288
2298
  { no: 26, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2289
2299
  { no: 40, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2300
+ { no: 200, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2290
2301
  ]);
2291
2302
  static fromBinary(bytes, options) {
2292
2303
  return new VendorInvoiceItemsSearchRequest().fromBinary(bytes, options);