@kernelminds/scailo-sdk 0.0.80 → 0.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/lib/cjs/src/inventory.scailo_connect.js +5 -0
  2. package/lib/cjs/src/inventory.scailo_pb.js +421 -9
  3. package/lib/cjs/src/inward_jobs_free_issue_materials_returns.scailo_connect.js +23 -0
  4. package/lib/cjs/src/outward_jobs_free_issue_materials_returns.scailo_connect.js +23 -0
  5. package/lib/cjs/src/purchases_returns.scailo_connect.js +47 -0
  6. package/lib/cjs/src/purchases_returns.scailo_pb.js +45 -19
  7. package/lib/cjs/src/sales_returns.scailo_connect.js +23 -0
  8. package/lib/cjs/src/stock_returns.scailo_connect.js +35 -0
  9. package/lib/cjs/src/stock_returns.scailo_pb.js +45 -19
  10. package/lib/cjs/types/src/inventory.scailo_connect.d.ts +5 -0
  11. package/lib/cjs/types/src/inventory.scailo_connect.d.ts.map +1 -1
  12. package/lib/cjs/types/src/inventory.scailo_pb.d.ts +339 -11
  13. package/lib/cjs/types/src/inventory.scailo_pb.d.ts.map +1 -1
  14. package/lib/cjs/types/src/inward_jobs_free_issue_materials_returns.scailo_connect.d.ts +23 -0
  15. package/lib/cjs/types/src/inward_jobs_free_issue_materials_returns.scailo_connect.d.ts.map +1 -1
  16. package/lib/cjs/types/src/outward_jobs_free_issue_materials_returns.scailo_connect.d.ts +23 -0
  17. package/lib/cjs/types/src/outward_jobs_free_issue_materials_returns.scailo_connect.d.ts.map +1 -1
  18. package/lib/cjs/types/src/purchases_returns.scailo_connect.d.ts +47 -0
  19. package/lib/cjs/types/src/purchases_returns.scailo_connect.d.ts.map +1 -1
  20. package/lib/cjs/types/src/purchases_returns.scailo_pb.d.ts +32 -12
  21. package/lib/cjs/types/src/purchases_returns.scailo_pb.d.ts.map +1 -1
  22. package/lib/cjs/types/src/sales_returns.scailo_connect.d.ts +23 -0
  23. package/lib/cjs/types/src/sales_returns.scailo_connect.d.ts.map +1 -1
  24. package/lib/cjs/types/src/stock_returns.scailo_connect.d.ts +35 -0
  25. package/lib/cjs/types/src/stock_returns.scailo_connect.d.ts.map +1 -1
  26. package/lib/cjs/types/src/stock_returns.scailo_pb.d.ts +32 -12
  27. package/lib/cjs/types/src/stock_returns.scailo_pb.d.ts.map +1 -1
  28. package/lib/esm/src/inventory.scailo_connect.js +5 -0
  29. package/lib/esm/src/inventory.scailo_pb.js +435 -11
  30. package/lib/esm/src/inward_jobs_free_issue_materials_returns.scailo_connect.js +23 -0
  31. package/lib/esm/src/outward_jobs_free_issue_materials_returns.scailo_connect.js +23 -0
  32. package/lib/esm/src/purchases_returns.scailo_connect.js +47 -0
  33. package/lib/esm/src/purchases_returns.scailo_pb.js +45 -19
  34. package/lib/esm/src/sales_returns.scailo_connect.js +23 -0
  35. package/lib/esm/src/stock_returns.scailo_connect.js +35 -0
  36. package/lib/esm/src/stock_returns.scailo_pb.js +45 -19
  37. package/lib/esm/types/src/inventory.scailo_connect.d.ts +5 -0
  38. package/lib/esm/types/src/inventory.scailo_connect.d.ts.map +1 -1
  39. package/lib/esm/types/src/inventory.scailo_pb.d.ts +339 -11
  40. package/lib/esm/types/src/inventory.scailo_pb.d.ts.map +1 -1
  41. package/lib/esm/types/src/inward_jobs_free_issue_materials_returns.scailo_connect.d.ts +23 -0
  42. package/lib/esm/types/src/inward_jobs_free_issue_materials_returns.scailo_connect.d.ts.map +1 -1
  43. package/lib/esm/types/src/outward_jobs_free_issue_materials_returns.scailo_connect.d.ts +23 -0
  44. package/lib/esm/types/src/outward_jobs_free_issue_materials_returns.scailo_connect.d.ts.map +1 -1
  45. package/lib/esm/types/src/purchases_returns.scailo_connect.d.ts +47 -0
  46. package/lib/esm/types/src/purchases_returns.scailo_connect.d.ts.map +1 -1
  47. package/lib/esm/types/src/purchases_returns.scailo_pb.d.ts +32 -12
  48. package/lib/esm/types/src/purchases_returns.scailo_pb.d.ts.map +1 -1
  49. package/lib/esm/types/src/sales_returns.scailo_connect.d.ts +23 -0
  50. package/lib/esm/types/src/sales_returns.scailo_connect.d.ts.map +1 -1
  51. package/lib/esm/types/src/stock_returns.scailo_connect.d.ts +35 -0
  52. package/lib/esm/types/src/stock_returns.scailo_connect.d.ts.map +1 -1
  53. package/lib/esm/types/src/stock_returns.scailo_pb.d.ts +32 -12
  54. package/lib/esm/types/src/stock_returns.scailo_pb.d.ts.map +1 -1
  55. package/package.json +1 -1
@@ -109,6 +109,7 @@ exports.InventoryService = {
109
109
  * View inventory that is returnable from a purchase order
110
110
  *
111
111
  * @generated from rpc Scailo.InventoryService.ViewReturnableForPurchaseOrder
112
+ * @deprecated
112
113
  */
113
114
  viewReturnableForPurchaseOrder: {
114
115
  name: "ViewReturnableForPurchaseOrder",
@@ -120,6 +121,7 @@ exports.InventoryService = {
120
121
  * View inventory that is returnable from an inward job
121
122
  *
122
123
  * @generated from rpc Scailo.InventoryService.ViewReturnableForInwardJob
124
+ * @deprecated
123
125
  */
124
126
  viewReturnableForInwardJob: {
125
127
  name: "ViewReturnableForInwardJob",
@@ -131,6 +133,7 @@ exports.InventoryService = {
131
133
  * View inventory that is returnable from a stock issuance
132
134
  *
133
135
  * @generated from rpc Scailo.InventoryService.ViewReturnableForStockIssuance
136
+ * @deprecated
134
137
  */
135
138
  viewReturnableForStockIssuance: {
136
139
  name: "ViewReturnableForStockIssuance",
@@ -142,6 +145,7 @@ exports.InventoryService = {
142
145
  * View inventory that is returnable from a sales order
143
146
  *
144
147
  * @generated from rpc Scailo.InventoryService.ViewReturnableForSalesOrder
148
+ * @deprecated
145
149
  */
146
150
  viewReturnableForSalesOrder: {
147
151
  name: "ViewReturnableForSalesOrder",
@@ -153,6 +157,7 @@ exports.InventoryService = {
153
157
  * View inventory that is returnable from an outward job
154
158
  *
155
159
  * @generated from rpc Scailo.InventoryService.ViewReturnableForOutwardJob
160
+ * @deprecated
156
161
  */
157
162
  viewReturnableForOutwardJob: {
158
163
  name: "ViewReturnableForOutwardJob",
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ConsolidatedInventoryStatistics = exports.ReturnableInventorySearchReq = exports.InventoryServiceFamilyQuantityReq = exports.InventoryHashSearchReq = exports.IssuableInventorySearchReq = exports.InventoryCodeMap = exports.GenericInventoryList = exports.GenericInventory = exports.GENERIC_INVENTORY_REF_FROM = void 0;
7
+ exports.ConsolidatedInventoryStatistics = exports.FilterReturnableInventoryForIdentifierUUID = exports.FilterReturnableInventoryReq = exports.SearchReturnableInventoryForIdentifierUUID = exports.SearchReturnableInventoryReq = exports.ReturnableInventorySearchReq = exports.InventoryServiceFamilyQuantityReq = exports.InventoryHashSearchReq = exports.IssuableInventorySearchReq = exports.InventoryCodeMap = exports.GenericInventoryList = exports.GenericInventory = exports.GENERIC_INVENTORY_REF_FROM = 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
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
@@ -78,7 +78,7 @@ class GenericInventory extends protobuf_1.Message {
78
78
  */
79
79
  this.entityUuid = "";
80
80
  /**
81
- * The status of this product
81
+ * The status of this inventory item
82
82
  *
83
83
  * @generated from field: Scailo.INVENTORY_LIFECYCLE status = 4;
84
84
  */
@@ -150,7 +150,7 @@ class GenericInventory extends protobuf_1.Message {
150
150
  */
151
151
  this.familyId = protobuf_1.protoInt64.zero;
152
152
  /**
153
- * The auto generated code of the product
153
+ * The auto generated code of the inventory item
154
154
  *
155
155
  * @generated from field: string code = 34;
156
156
  */
@@ -162,7 +162,7 @@ class GenericInventory extends protobuf_1.Message {
162
162
  */
163
163
  this.internalItemCode = "";
164
164
  /**
165
- * The computed hash of the product
165
+ * The computed hash of the inventory item
166
166
  *
167
167
  * @generated from field: string hash = 36;
168
168
  */
@@ -180,13 +180,13 @@ class GenericInventory extends protobuf_1.Message {
180
180
  */
181
181
  this.quantityRemaining = protobuf_1.protoInt64.zero;
182
182
  /**
183
- * Stores an optional secondary unit of product
183
+ * Stores an optional secondary unit of inventory item
184
184
  *
185
185
  * @generated from field: uint64 secondary_uom_id = 39;
186
186
  */
187
187
  this.secondaryUomId = protobuf_1.protoInt64.zero;
188
188
  /**
189
- * Stores an optional quantity in the secondary unit of product
189
+ * Stores an optional quantity in the secondary unit of inventory item
190
190
  *
191
191
  * @generated from field: uint64 secondary_quantity = 40;
192
192
  */
@@ -204,13 +204,13 @@ class GenericInventory extends protobuf_1.Message {
204
204
  */
205
205
  this.warrantyTimestamp = protobuf_1.protoInt64.zero;
206
206
  /**
207
- * Stores the store to which the product is sent to
207
+ * Stores the store to which the inventory item is sent to
208
208
  *
209
209
  * @generated from field: uint64 store_id = 50;
210
210
  */
211
211
  this.storeId = protobuf_1.protoInt64.zero;
212
212
  /**
213
- * Stores an optional ID of the associated storage that the product is stored in
213
+ * Stores an optional ID of the associated storage that the inventory item is stored in
214
214
  *
215
215
  * @generated from field: uint64 storage_id = 51;
216
216
  */
@@ -234,7 +234,7 @@ class GenericInventory extends protobuf_1.Message {
234
234
  */
235
235
  this.remainingDimensions = "";
236
236
  /**
237
- * The description of the product
237
+ * The description of the inventory item
238
238
  *
239
239
  * @generated from field: string description = 60;
240
240
  */
@@ -603,6 +603,418 @@ ReturnableInventorySearchReq.fields = protobuf_1.proto3.util.newFieldList(() =>
603
603
  { no: 10, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
604
604
  { no: 15, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
605
605
  ]);
606
+ /**
607
+ *
608
+ * Describes the message that consists of parameters that are required to search for returnable inventory
609
+ *
610
+ * @generated from message Scailo.SearchReturnableInventoryReq
611
+ */
612
+ class SearchReturnableInventoryReq extends protobuf_1.Message {
613
+ constructor(data) {
614
+ super();
615
+ /**
616
+ * If true, then returns only active records. If false, then returns only inactive records
617
+ *
618
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
619
+ */
620
+ this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
621
+ /**
622
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
623
+ *
624
+ * @generated from field: int64 count = 2;
625
+ */
626
+ this.count = protobuf_1.protoInt64.zero;
627
+ /**
628
+ * The number that need to be offset by before fetching the records
629
+ *
630
+ * @generated from field: uint64 offset = 3;
631
+ */
632
+ this.offset = protobuf_1.protoInt64.zero;
633
+ /**
634
+ * The sort order that is to be used to fetch the pagination response
635
+ *
636
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
637
+ */
638
+ this.sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
639
+ /**
640
+ * The sort key that is to be used to fetch the pagination response
641
+ *
642
+ * @generated from field: Scailo.INVENTORY_SORT_KEY sort_key = 5;
643
+ */
644
+ this.sortKey = base_scailo_pb_js_1.INVENTORY_SORT_KEY.INVENTORY_SORT_KEY_ID_UNSPECIFIED;
645
+ /**
646
+ * The entity UUID that is to be used to filter records
647
+ *
648
+ * @generated from field: string entity_uuid = 6;
649
+ */
650
+ this.entityUuid = "";
651
+ /**
652
+ * Describes the key with which the search operation needs to be performed
653
+ *
654
+ * @generated from field: string search_key = 11;
655
+ */
656
+ this.searchKey = "";
657
+ /**
658
+ * Stores the ID of the associated family
659
+ *
660
+ * @generated from field: uint64 family_id = 33;
661
+ */
662
+ this.familyId = protobuf_1.protoInt64.zero;
663
+ /**
664
+ * The minimum remaining quantity (in cents)
665
+ *
666
+ * @generated from field: uint64 quantity_remaining_min = 37;
667
+ */
668
+ this.quantityRemainingMin = protobuf_1.protoInt64.zero;
669
+ /**
670
+ * The maximum remaining quantity (in cents)
671
+ *
672
+ * @generated from field: uint64 quantity_remaining_max = 38;
673
+ */
674
+ this.quantityRemainingMax = protobuf_1.protoInt64.zero;
675
+ /**
676
+ * Stores an optional secondary unit of inventory item
677
+ *
678
+ * @generated from field: uint64 secondary_uom_id = 39;
679
+ */
680
+ this.secondaryUomId = protobuf_1.protoInt64.zero;
681
+ /**
682
+ * The start range of shelf life timestamp
683
+ *
684
+ * @generated from field: uint64 shelf_life_timestamp_start = 40;
685
+ */
686
+ this.shelfLifeTimestampStart = protobuf_1.protoInt64.zero;
687
+ /**
688
+ * The end range of shelf life timestamp
689
+ *
690
+ * @generated from field: uint64 shelf_life_timestamp_end = 41;
691
+ */
692
+ this.shelfLifeTimestampEnd = protobuf_1.protoInt64.zero;
693
+ /**
694
+ * The start range of the warranty timestamp
695
+ *
696
+ * @generated from field: uint64 warranty_timestamp_start = 42;
697
+ */
698
+ this.warrantyTimestampStart = protobuf_1.protoInt64.zero;
699
+ /**
700
+ * The end range of the warranty timestamp
701
+ *
702
+ * @generated from field: uint64 warranty_timestamp_end = 43;
703
+ */
704
+ this.warrantyTimestampEnd = protobuf_1.protoInt64.zero;
705
+ /**
706
+ * Stores if the associated QC report should be public
707
+ *
708
+ * @generated from field: Scailo.BOOL_FILTER is_qc_report_public = 52;
709
+ */
710
+ this.isQcReportPublic = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
711
+ /**
712
+ * Filter by the location ID
713
+ *
714
+ * @generated from field: uint64 location_id = 54;
715
+ */
716
+ this.locationId = protobuf_1.protoInt64.zero;
717
+ protobuf_1.proto3.util.initPartial(data, this);
718
+ }
719
+ static fromBinary(bytes, options) {
720
+ return new SearchReturnableInventoryReq().fromBinary(bytes, options);
721
+ }
722
+ static fromJson(jsonValue, options) {
723
+ return new SearchReturnableInventoryReq().fromJson(jsonValue, options);
724
+ }
725
+ static fromJsonString(jsonString, options) {
726
+ return new SearchReturnableInventoryReq().fromJsonString(jsonString, options);
727
+ }
728
+ static equals(a, b) {
729
+ return protobuf_1.proto3.util.equals(SearchReturnableInventoryReq, a, b);
730
+ }
731
+ }
732
+ exports.SearchReturnableInventoryReq = SearchReturnableInventoryReq;
733
+ SearchReturnableInventoryReq.runtime = protobuf_1.proto3;
734
+ SearchReturnableInventoryReq.typeName = "Scailo.SearchReturnableInventoryReq";
735
+ SearchReturnableInventoryReq.fields = protobuf_1.proto3.util.newFieldList(() => [
736
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
737
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
738
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
739
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
740
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.INVENTORY_SORT_KEY) },
741
+ { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
742
+ { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
743
+ { no: 33, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
744
+ { no: 37, name: "quantity_remaining_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
745
+ { no: 38, name: "quantity_remaining_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
746
+ { no: 39, name: "secondary_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
747
+ { no: 40, name: "shelf_life_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
748
+ { no: 41, name: "shelf_life_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
749
+ { no: 42, name: "warranty_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
750
+ { no: 43, name: "warranty_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
751
+ { no: 52, name: "is_qc_report_public", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
752
+ { no: 54, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
753
+ ]);
754
+ /**
755
+ *
756
+ * Describes the message that consists of parameters that are required to search for returnable inventory for a record with the given identifier
757
+ *
758
+ * @generated from message Scailo.SearchReturnableInventoryForIdentifierUUID
759
+ */
760
+ class SearchReturnableInventoryForIdentifierUUID extends protobuf_1.Message {
761
+ constructor(data) {
762
+ super();
763
+ /**
764
+ * UUID of the resource
765
+ *
766
+ * @generated from field: string uuid = 1;
767
+ */
768
+ this.uuid = "";
769
+ protobuf_1.proto3.util.initPartial(data, this);
770
+ }
771
+ static fromBinary(bytes, options) {
772
+ return new SearchReturnableInventoryForIdentifierUUID().fromBinary(bytes, options);
773
+ }
774
+ static fromJson(jsonValue, options) {
775
+ return new SearchReturnableInventoryForIdentifierUUID().fromJson(jsonValue, options);
776
+ }
777
+ static fromJsonString(jsonString, options) {
778
+ return new SearchReturnableInventoryForIdentifierUUID().fromJsonString(jsonString, options);
779
+ }
780
+ static equals(a, b) {
781
+ return protobuf_1.proto3.util.equals(SearchReturnableInventoryForIdentifierUUID, a, b);
782
+ }
783
+ }
784
+ exports.SearchReturnableInventoryForIdentifierUUID = SearchReturnableInventoryForIdentifierUUID;
785
+ SearchReturnableInventoryForIdentifierUUID.runtime = protobuf_1.proto3;
786
+ SearchReturnableInventoryForIdentifierUUID.typeName = "Scailo.SearchReturnableInventoryForIdentifierUUID";
787
+ SearchReturnableInventoryForIdentifierUUID.fields = protobuf_1.proto3.util.newFieldList(() => [
788
+ { no: 1, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
789
+ { no: 10, name: "filter", kind: "message", T: SearchReturnableInventoryReq },
790
+ ]);
791
+ /**
792
+ *
793
+ * Describes the message that consists of parameters that are required to filter for returnable inventory
794
+ *
795
+ * @generated from message Scailo.FilterReturnableInventoryReq
796
+ */
797
+ class FilterReturnableInventoryReq extends protobuf_1.Message {
798
+ constructor(data) {
799
+ super();
800
+ /**
801
+ * If true, then returns only active records. If false, then returns only inactive records
802
+ *
803
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
804
+ */
805
+ this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
806
+ /**
807
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
808
+ *
809
+ * @generated from field: int64 count = 2;
810
+ */
811
+ this.count = protobuf_1.protoInt64.zero;
812
+ /**
813
+ * The number that need to be offset by before fetching the records
814
+ *
815
+ * @generated from field: uint64 offset = 3;
816
+ */
817
+ this.offset = protobuf_1.protoInt64.zero;
818
+ /**
819
+ * The sort order that is to be used to fetch the pagination response
820
+ *
821
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
822
+ */
823
+ this.sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
824
+ /**
825
+ * The sort key that is to be used to fetch the pagination response
826
+ *
827
+ * @generated from field: Scailo.INVENTORY_SORT_KEY sort_key = 5;
828
+ */
829
+ this.sortKey = base_scailo_pb_js_1.INVENTORY_SORT_KEY.INVENTORY_SORT_KEY_ID_UNSPECIFIED;
830
+ /**
831
+ * The minimum timestamp that needs to be considered to filter by creation
832
+ *
833
+ * @generated from field: uint64 creation_timestamp_start = 101;
834
+ */
835
+ this.creationTimestampStart = protobuf_1.protoInt64.zero;
836
+ /**
837
+ * The maximum timestamp that needs to be considered to filter by creation
838
+ *
839
+ * @generated from field: uint64 creation_timestamp_end = 102;
840
+ */
841
+ this.creationTimestampEnd = protobuf_1.protoInt64.zero;
842
+ /**
843
+ * The minimum timestamp that needs to be considered to filter by modification
844
+ *
845
+ * @generated from field: uint64 modification_timestamp_start = 103;
846
+ */
847
+ this.modificationTimestampStart = protobuf_1.protoInt64.zero;
848
+ /**
849
+ * The maximum timestamp that needs to be considered to filter by modification
850
+ *
851
+ * @generated from field: uint64 modification_timestamp_end = 104;
852
+ */
853
+ this.modificationTimestampEnd = protobuf_1.protoInt64.zero;
854
+ /**
855
+ * The entity UUID that is to be used to filter records
856
+ *
857
+ * @generated from field: string entity_uuid = 8;
858
+ */
859
+ this.entityUuid = "";
860
+ /**
861
+ * Stores the ID of the associated family
862
+ *
863
+ * @generated from field: uint64 family_id = 33;
864
+ */
865
+ this.familyId = protobuf_1.protoInt64.zero;
866
+ /**
867
+ * The auto generated code of the inventory item
868
+ *
869
+ * @generated from field: string code = 34;
870
+ */
871
+ this.code = "";
872
+ /**
873
+ * Stores the internal code (as given by user)
874
+ *
875
+ * @generated from field: string internal_item_code = 35;
876
+ */
877
+ this.internalItemCode = "";
878
+ /**
879
+ * The computed hash of the inventory item
880
+ *
881
+ * @generated from field: string hash = 36;
882
+ */
883
+ this.hash = "";
884
+ /**
885
+ * The minimum remaining quantity (in cents)
886
+ *
887
+ * @generated from field: uint64 quantity_remaining_min = 37;
888
+ */
889
+ this.quantityRemainingMin = protobuf_1.protoInt64.zero;
890
+ /**
891
+ * The maximum remaining quantity (in cents)
892
+ *
893
+ * @generated from field: uint64 quantity_remaining_max = 38;
894
+ */
895
+ this.quantityRemainingMax = protobuf_1.protoInt64.zero;
896
+ /**
897
+ * Stores an optional secondary unit of inventory item
898
+ *
899
+ * @generated from field: uint64 secondary_uom_id = 39;
900
+ */
901
+ this.secondaryUomId = protobuf_1.protoInt64.zero;
902
+ /**
903
+ * The start range of shelf life timestamp
904
+ *
905
+ * @generated from field: uint64 shelf_life_timestamp_start = 40;
906
+ */
907
+ this.shelfLifeTimestampStart = protobuf_1.protoInt64.zero;
908
+ /**
909
+ * The end range of shelf life timestamp
910
+ *
911
+ * @generated from field: uint64 shelf_life_timestamp_end = 41;
912
+ */
913
+ this.shelfLifeTimestampEnd = protobuf_1.protoInt64.zero;
914
+ /**
915
+ * The start range of the warranty timestamp
916
+ *
917
+ * @generated from field: uint64 warranty_timestamp_start = 42;
918
+ */
919
+ this.warrantyTimestampStart = protobuf_1.protoInt64.zero;
920
+ /**
921
+ * The end range of the warranty timestamp
922
+ *
923
+ * @generated from field: uint64 warranty_timestamp_end = 43;
924
+ */
925
+ this.warrantyTimestampEnd = protobuf_1.protoInt64.zero;
926
+ /**
927
+ * Stores if the associated QC report should be public
928
+ *
929
+ * @generated from field: Scailo.BOOL_FILTER is_qc_report_public = 52;
930
+ */
931
+ this.isQcReportPublic = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
932
+ /**
933
+ * Filter by the location ID
934
+ *
935
+ * @generated from field: uint64 location_id = 54;
936
+ */
937
+ this.locationId = protobuf_1.protoInt64.zero;
938
+ protobuf_1.proto3.util.initPartial(data, this);
939
+ }
940
+ static fromBinary(bytes, options) {
941
+ return new FilterReturnableInventoryReq().fromBinary(bytes, options);
942
+ }
943
+ static fromJson(jsonValue, options) {
944
+ return new FilterReturnableInventoryReq().fromJson(jsonValue, options);
945
+ }
946
+ static fromJsonString(jsonString, options) {
947
+ return new FilterReturnableInventoryReq().fromJsonString(jsonString, options);
948
+ }
949
+ static equals(a, b) {
950
+ return protobuf_1.proto3.util.equals(FilterReturnableInventoryReq, a, b);
951
+ }
952
+ }
953
+ exports.FilterReturnableInventoryReq = FilterReturnableInventoryReq;
954
+ FilterReturnableInventoryReq.runtime = protobuf_1.proto3;
955
+ FilterReturnableInventoryReq.typeName = "Scailo.FilterReturnableInventoryReq";
956
+ FilterReturnableInventoryReq.fields = protobuf_1.proto3.util.newFieldList(() => [
957
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
958
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
959
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
960
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
961
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.INVENTORY_SORT_KEY) },
962
+ { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
963
+ { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
964
+ { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
965
+ { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
966
+ { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
967
+ { no: 33, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
968
+ { no: 34, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
969
+ { no: 35, name: "internal_item_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
970
+ { no: 36, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
971
+ { no: 37, name: "quantity_remaining_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
972
+ { no: 38, name: "quantity_remaining_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
973
+ { no: 39, name: "secondary_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
974
+ { no: 40, name: "shelf_life_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
975
+ { no: 41, name: "shelf_life_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
976
+ { no: 42, name: "warranty_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
977
+ { no: 43, name: "warranty_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
978
+ { no: 52, name: "is_qc_report_public", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
979
+ { no: 54, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
980
+ ]);
981
+ /**
982
+ *
983
+ * Describes the message that consists of parameters that are required to filter returnable inventory for a record with the given identifier
984
+ *
985
+ * @generated from message Scailo.FilterReturnableInventoryForIdentifierUUID
986
+ */
987
+ class FilterReturnableInventoryForIdentifierUUID extends protobuf_1.Message {
988
+ constructor(data) {
989
+ super();
990
+ /**
991
+ * UUID of the resource
992
+ *
993
+ * @generated from field: string uuid = 1;
994
+ */
995
+ this.uuid = "";
996
+ protobuf_1.proto3.util.initPartial(data, this);
997
+ }
998
+ static fromBinary(bytes, options) {
999
+ return new FilterReturnableInventoryForIdentifierUUID().fromBinary(bytes, options);
1000
+ }
1001
+ static fromJson(jsonValue, options) {
1002
+ return new FilterReturnableInventoryForIdentifierUUID().fromJson(jsonValue, options);
1003
+ }
1004
+ static fromJsonString(jsonString, options) {
1005
+ return new FilterReturnableInventoryForIdentifierUUID().fromJsonString(jsonString, options);
1006
+ }
1007
+ static equals(a, b) {
1008
+ return protobuf_1.proto3.util.equals(FilterReturnableInventoryForIdentifierUUID, a, b);
1009
+ }
1010
+ }
1011
+ exports.FilterReturnableInventoryForIdentifierUUID = FilterReturnableInventoryForIdentifierUUID;
1012
+ FilterReturnableInventoryForIdentifierUUID.runtime = protobuf_1.proto3;
1013
+ FilterReturnableInventoryForIdentifierUUID.typeName = "Scailo.FilterReturnableInventoryForIdentifierUUID";
1014
+ FilterReturnableInventoryForIdentifierUUID.fields = protobuf_1.proto3.util.newFieldList(() => [
1015
+ { no: 1, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1016
+ { no: 10, name: "filter", kind: "message", T: FilterReturnableInventoryReq },
1017
+ ]);
606
1018
  /**
607
1019
  *
608
1020
  * Describes the message consisting of all the inventory statistics for the given family ID
@@ -9,6 +9,7 @@ const inward_jobs_free_issue_materials_returns_scailo_pb_js_1 = require("./inwar
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
10
  const protobuf_1 = require("@bufbuild/protobuf");
11
11
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
12
+ const inventory_scailo_pb_js_1 = require("./inventory.scailo_pb.js");
12
13
  /**
13
14
  *
14
15
  * Describes the common methods applicable on each inward job free issue material return
@@ -480,6 +481,28 @@ exports.InwardJobsFreeIssueMaterialsReturnsService = {
480
481
  O: inward_jobs_free_issue_materials_returns_scailo_pb_js_1.InwardJobsFreeIssueMaterialsReturnsServiceItemCreateRequest,
481
482
  kind: protobuf_1.MethodKind.Unary,
482
483
  },
484
+ /**
485
+ * Search for returnable inventory
486
+ *
487
+ * @generated from rpc Scailo.InwardJobsFreeIssueMaterialsReturnsService.SearchReturnableInventory
488
+ */
489
+ searchReturnableInventory: {
490
+ name: "SearchReturnableInventory",
491
+ I: inventory_scailo_pb_js_1.SearchReturnableInventoryForIdentifierUUID,
492
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
493
+ kind: protobuf_1.MethodKind.Unary,
494
+ },
495
+ /**
496
+ * Filter returnable inventory
497
+ *
498
+ * @generated from rpc Scailo.InwardJobsFreeIssueMaterialsReturnsService.FilterReturnableInventory
499
+ */
500
+ filterReturnableInventory: {
501
+ name: "FilterReturnableInventory",
502
+ I: inventory_scailo_pb_js_1.FilterReturnableInventoryForIdentifierUUID,
503
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
504
+ kind: protobuf_1.MethodKind.Unary,
505
+ },
483
506
  /**
484
507
  * Other view operations
485
508
  * Download inward job free issue material return with the given IdentifierUUID (can be used to allow public downloads)
@@ -9,6 +9,7 @@ const outward_jobs_free_issue_materials_returns_scailo_pb_js_1 = require("./outw
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
10
  const protobuf_1 = require("@bufbuild/protobuf");
11
11
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
12
+ const inventory_scailo_pb_js_1 = require("./inventory.scailo_pb.js");
12
13
  /**
13
14
  *
14
15
  * Describes the common methods applicable on each outward job free issue material return
@@ -480,6 +481,28 @@ exports.OutwardJobsFreeIssueMaterialsReturnsService = {
480
481
  O: outward_jobs_free_issue_materials_returns_scailo_pb_js_1.OutwardJobsFreeIssueMaterialsReturnsServiceItemCreateRequest,
481
482
  kind: protobuf_1.MethodKind.Unary,
482
483
  },
484
+ /**
485
+ * Search for returnable inventory
486
+ *
487
+ * @generated from rpc Scailo.OutwardJobsFreeIssueMaterialsReturnsService.SearchReturnableInventory
488
+ */
489
+ searchReturnableInventory: {
490
+ name: "SearchReturnableInventory",
491
+ I: inventory_scailo_pb_js_1.SearchReturnableInventoryForIdentifierUUID,
492
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
493
+ kind: protobuf_1.MethodKind.Unary,
494
+ },
495
+ /**
496
+ * Filter returnable inventory
497
+ *
498
+ * @generated from rpc Scailo.OutwardJobsFreeIssueMaterialsReturnsService.FilterReturnableInventory
499
+ */
500
+ filterReturnableInventory: {
501
+ name: "FilterReturnableInventory",
502
+ I: inventory_scailo_pb_js_1.FilterReturnableInventoryForIdentifierUUID,
503
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
504
+ kind: protobuf_1.MethodKind.Unary,
505
+ },
483
506
  /**
484
507
  * Other view operations
485
508
  * Download outward job free issue material return with the given IdentifierUUID (can be used to allow public downloads)
@@ -9,6 +9,7 @@ const purchases_returns_scailo_pb_js_1 = require("./purchases_returns.scailo_pb.
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
10
  const protobuf_1 = require("@bufbuild/protobuf");
11
11
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
12
+ const inventory_scailo_pb_js_1 = require("./inventory.scailo_pb.js");
12
13
  /**
13
14
  *
14
15
  * Describes the common methods applicable on each purchase return
@@ -348,6 +349,18 @@ exports.PurchasesReturnsService = {
348
349
  O: purchases_returns_scailo_pb_js_1.PurchasesReturnsServicePaginatedItemsResponse,
349
350
  kind: protobuf_1.MethodKind.Unary,
350
351
  },
352
+ /**
353
+ * CSV operations
354
+ * Download the CSV file that could be used to upload items from the filled CSV file. The same file can also be used as a template when there are no existing records
355
+ *
356
+ * @generated from rpc Scailo.PurchasesReturnsService.DownloadItemsAsCSV
357
+ */
358
+ downloadItemsAsCSV: {
359
+ name: "DownloadItemsAsCSV",
360
+ I: base_scailo_pb_js_1.IdentifierUUID,
361
+ O: base_scailo_pb_js_1.StandardFile,
362
+ kind: protobuf_1.MethodKind.Unary,
363
+ },
351
364
  /**
352
365
  * View by ID
353
366
  *
@@ -480,6 +493,40 @@ exports.PurchasesReturnsService = {
480
493
  O: purchases_returns_scailo_pb_js_1.PurchasesReturnsServiceItemCreateRequest,
481
494
  kind: protobuf_1.MethodKind.Unary,
482
495
  },
496
+ /**
497
+ * Search for returnable inventory
498
+ *
499
+ * @generated from rpc Scailo.PurchasesReturnsService.SearchReturnableInventory
500
+ */
501
+ searchReturnableInventory: {
502
+ name: "SearchReturnableInventory",
503
+ I: inventory_scailo_pb_js_1.SearchReturnableInventoryForIdentifierUUID,
504
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
505
+ kind: protobuf_1.MethodKind.Unary,
506
+ },
507
+ /**
508
+ * Filter returnable inventory
509
+ *
510
+ * @generated from rpc Scailo.PurchasesReturnsService.FilterReturnableInventory
511
+ */
512
+ filterReturnableInventory: {
513
+ name: "FilterReturnableInventory",
514
+ I: inventory_scailo_pb_js_1.FilterReturnableInventoryForIdentifierUUID,
515
+ O: inventory_scailo_pb_js_1.GenericInventoryList,
516
+ kind: protobuf_1.MethodKind.Unary,
517
+ },
518
+ /**
519
+ * Other view operations
520
+ * View the associated debit note information that is denoted by the identifier in the response for the goods dispatch that is denoted by the identifier UUID in the request
521
+ *
522
+ * @generated from rpc Scailo.PurchasesReturnsService.ViewAssociatedDebitNoteInfo
523
+ */
524
+ viewAssociatedDebitNoteInfo: {
525
+ name: "ViewAssociatedDebitNoteInfo",
526
+ I: base_scailo_pb_js_1.IdentifierUUID,
527
+ O: base_scailo_pb_js_1.IdentifierResponse,
528
+ kind: protobuf_1.MethodKind.Unary,
529
+ },
483
530
  /**
484
531
  * Checks if the Purchase Return has been billed
485
532
  *