@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
@@ -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");
@@ -76,13 +76,13 @@ class GenericInventory extends protobuf_1.Message {
76
76
  */
77
77
  entityUuid = "";
78
78
  /**
79
- * Stores the metadata of this product
79
+ * Stores the metadata of this inventory item
80
80
  *
81
81
  * @generated from field: Scailo.EmployeeMetadata metadata = 2;
82
82
  */
83
83
  metadata;
84
84
  /**
85
- * The status of this product
85
+ * The status of this inventory item
86
86
  *
87
87
  * @generated from field: Scailo.INVENTORY_LIFECYCLE status = 4;
88
88
  */
@@ -154,7 +154,7 @@ class GenericInventory extends protobuf_1.Message {
154
154
  */
155
155
  familyId = protobuf_1.protoInt64.zero;
156
156
  /**
157
- * The auto generated code of the product
157
+ * The auto generated code of the inventory item
158
158
  *
159
159
  * @generated from field: string code = 34;
160
160
  */
@@ -166,7 +166,7 @@ class GenericInventory extends protobuf_1.Message {
166
166
  */
167
167
  internalItemCode = "";
168
168
  /**
169
- * The computed hash of the product
169
+ * The computed hash of the inventory item
170
170
  *
171
171
  * @generated from field: string hash = 36;
172
172
  */
@@ -184,13 +184,13 @@ class GenericInventory extends protobuf_1.Message {
184
184
  */
185
185
  quantityRemaining = protobuf_1.protoInt64.zero;
186
186
  /**
187
- * Stores an optional secondary unit of product
187
+ * Stores an optional secondary unit of inventory item
188
188
  *
189
189
  * @generated from field: uint64 secondary_uom_id = 39;
190
190
  */
191
191
  secondaryUomId = protobuf_1.protoInt64.zero;
192
192
  /**
193
- * Stores an optional quantity in the secondary unit of product
193
+ * Stores an optional quantity in the secondary unit of inventory item
194
194
  *
195
195
  * @generated from field: uint64 secondary_quantity = 40;
196
196
  */
@@ -208,13 +208,13 @@ class GenericInventory extends protobuf_1.Message {
208
208
  */
209
209
  warrantyTimestamp = protobuf_1.protoInt64.zero;
210
210
  /**
211
- * Stores the store to which the product is sent to
211
+ * Stores the store to which the inventory item is sent to
212
212
  *
213
213
  * @generated from field: uint64 store_id = 50;
214
214
  */
215
215
  storeId = protobuf_1.protoInt64.zero;
216
216
  /**
217
- * Stores an optional ID of the associated storage that the product is stored in
217
+ * Stores an optional ID of the associated storage that the inventory item is stored in
218
218
  *
219
219
  * @generated from field: uint64 storage_id = 51;
220
220
  */
@@ -238,7 +238,7 @@ class GenericInventory extends protobuf_1.Message {
238
238
  */
239
239
  remainingDimensions = "";
240
240
  /**
241
- * The description of the product
241
+ * The description of the inventory item
242
242
  *
243
243
  * @generated from field: string description = 60;
244
244
  */
@@ -351,7 +351,7 @@ class InventoryCodeMap extends protobuf_1.Message {
351
351
  */
352
352
  entityUuid = "";
353
353
  /**
354
- * Stores the metadata of this product
354
+ * Stores the metadata of this inventory item
355
355
  *
356
356
  * @generated from field: Scailo.EmployeeMetadata metadata = 2;
357
357
  */
@@ -615,6 +615,430 @@ class ReturnableInventorySearchReq extends protobuf_1.Message {
615
615
  }
616
616
  }
617
617
  exports.ReturnableInventorySearchReq = ReturnableInventorySearchReq;
618
+ /**
619
+ *
620
+ * Describes the message that consists of parameters that are required to search for returnable inventory
621
+ *
622
+ * @generated from message Scailo.SearchReturnableInventoryReq
623
+ */
624
+ class SearchReturnableInventoryReq extends protobuf_1.Message {
625
+ /**
626
+ * If true, then returns only active records. If false, then returns only inactive records
627
+ *
628
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
629
+ */
630
+ isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
631
+ /**
632
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
633
+ *
634
+ * @generated from field: int64 count = 2;
635
+ */
636
+ count = protobuf_1.protoInt64.zero;
637
+ /**
638
+ * The number that need to be offset by before fetching the records
639
+ *
640
+ * @generated from field: uint64 offset = 3;
641
+ */
642
+ offset = protobuf_1.protoInt64.zero;
643
+ /**
644
+ * The sort order that is to be used to fetch the pagination response
645
+ *
646
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
647
+ */
648
+ sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
649
+ /**
650
+ * The sort key that is to be used to fetch the pagination response
651
+ *
652
+ * @generated from field: Scailo.INVENTORY_SORT_KEY sort_key = 5;
653
+ */
654
+ sortKey = base_scailo_pb_js_1.INVENTORY_SORT_KEY.INVENTORY_SORT_KEY_ID_UNSPECIFIED;
655
+ /**
656
+ * The entity UUID that is to be used to filter records
657
+ *
658
+ * @generated from field: string entity_uuid = 6;
659
+ */
660
+ entityUuid = "";
661
+ /**
662
+ * Describes the key with which the search operation needs to be performed
663
+ *
664
+ * @generated from field: string search_key = 11;
665
+ */
666
+ searchKey = "";
667
+ /**
668
+ * Stores the ID of the associated family
669
+ *
670
+ * @generated from field: uint64 family_id = 33;
671
+ */
672
+ familyId = protobuf_1.protoInt64.zero;
673
+ /**
674
+ * The minimum remaining quantity (in cents)
675
+ *
676
+ * @generated from field: uint64 quantity_remaining_min = 37;
677
+ */
678
+ quantityRemainingMin = protobuf_1.protoInt64.zero;
679
+ /**
680
+ * The maximum remaining quantity (in cents)
681
+ *
682
+ * @generated from field: uint64 quantity_remaining_max = 38;
683
+ */
684
+ quantityRemainingMax = protobuf_1.protoInt64.zero;
685
+ /**
686
+ * Stores an optional secondary unit of inventory item
687
+ *
688
+ * @generated from field: uint64 secondary_uom_id = 39;
689
+ */
690
+ secondaryUomId = protobuf_1.protoInt64.zero;
691
+ /**
692
+ * The start range of shelf life timestamp
693
+ *
694
+ * @generated from field: uint64 shelf_life_timestamp_start = 40;
695
+ */
696
+ shelfLifeTimestampStart = protobuf_1.protoInt64.zero;
697
+ /**
698
+ * The end range of shelf life timestamp
699
+ *
700
+ * @generated from field: uint64 shelf_life_timestamp_end = 41;
701
+ */
702
+ shelfLifeTimestampEnd = protobuf_1.protoInt64.zero;
703
+ /**
704
+ * The start range of the warranty timestamp
705
+ *
706
+ * @generated from field: uint64 warranty_timestamp_start = 42;
707
+ */
708
+ warrantyTimestampStart = protobuf_1.protoInt64.zero;
709
+ /**
710
+ * The end range of the warranty timestamp
711
+ *
712
+ * @generated from field: uint64 warranty_timestamp_end = 43;
713
+ */
714
+ warrantyTimestampEnd = protobuf_1.protoInt64.zero;
715
+ /**
716
+ * Stores if the associated QC report should be public
717
+ *
718
+ * @generated from field: Scailo.BOOL_FILTER is_qc_report_public = 52;
719
+ */
720
+ isQcReportPublic = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
721
+ /**
722
+ * Filter by the location ID
723
+ *
724
+ * @generated from field: uint64 location_id = 54;
725
+ */
726
+ locationId = protobuf_1.protoInt64.zero;
727
+ constructor(data) {
728
+ super();
729
+ protobuf_1.proto3.util.initPartial(data, this);
730
+ }
731
+ static runtime = protobuf_1.proto3;
732
+ static typeName = "Scailo.SearchReturnableInventoryReq";
733
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
734
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
735
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
736
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
737
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
738
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.INVENTORY_SORT_KEY) },
739
+ { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
740
+ { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
741
+ { no: 33, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
742
+ { no: 37, name: "quantity_remaining_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
743
+ { no: 38, name: "quantity_remaining_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
744
+ { no: 39, name: "secondary_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
745
+ { no: 40, name: "shelf_life_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
746
+ { no: 41, name: "shelf_life_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
747
+ { no: 42, name: "warranty_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
748
+ { no: 43, name: "warranty_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
749
+ { no: 52, name: "is_qc_report_public", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
750
+ { no: 54, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
751
+ ]);
752
+ static fromBinary(bytes, options) {
753
+ return new SearchReturnableInventoryReq().fromBinary(bytes, options);
754
+ }
755
+ static fromJson(jsonValue, options) {
756
+ return new SearchReturnableInventoryReq().fromJson(jsonValue, options);
757
+ }
758
+ static fromJsonString(jsonString, options) {
759
+ return new SearchReturnableInventoryReq().fromJsonString(jsonString, options);
760
+ }
761
+ static equals(a, b) {
762
+ return protobuf_1.proto3.util.equals(SearchReturnableInventoryReq, a, b);
763
+ }
764
+ }
765
+ exports.SearchReturnableInventoryReq = SearchReturnableInventoryReq;
766
+ /**
767
+ *
768
+ * Describes the message that consists of parameters that are required to search for returnable inventory for a record with the given identifier
769
+ *
770
+ * @generated from message Scailo.SearchReturnableInventoryForIdentifierUUID
771
+ */
772
+ class SearchReturnableInventoryForIdentifierUUID extends protobuf_1.Message {
773
+ /**
774
+ * UUID of the resource
775
+ *
776
+ * @generated from field: string uuid = 1;
777
+ */
778
+ uuid = "";
779
+ /**
780
+ * The search filter to apply
781
+ *
782
+ * @generated from field: Scailo.SearchReturnableInventoryReq filter = 10;
783
+ */
784
+ filter;
785
+ constructor(data) {
786
+ super();
787
+ protobuf_1.proto3.util.initPartial(data, this);
788
+ }
789
+ static runtime = protobuf_1.proto3;
790
+ static typeName = "Scailo.SearchReturnableInventoryForIdentifierUUID";
791
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
792
+ { no: 1, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
793
+ { no: 10, name: "filter", kind: "message", T: SearchReturnableInventoryReq },
794
+ ]);
795
+ static fromBinary(bytes, options) {
796
+ return new SearchReturnableInventoryForIdentifierUUID().fromBinary(bytes, options);
797
+ }
798
+ static fromJson(jsonValue, options) {
799
+ return new SearchReturnableInventoryForIdentifierUUID().fromJson(jsonValue, options);
800
+ }
801
+ static fromJsonString(jsonString, options) {
802
+ return new SearchReturnableInventoryForIdentifierUUID().fromJsonString(jsonString, options);
803
+ }
804
+ static equals(a, b) {
805
+ return protobuf_1.proto3.util.equals(SearchReturnableInventoryForIdentifierUUID, a, b);
806
+ }
807
+ }
808
+ exports.SearchReturnableInventoryForIdentifierUUID = SearchReturnableInventoryForIdentifierUUID;
809
+ /**
810
+ *
811
+ * Describes the message that consists of parameters that are required to filter for returnable inventory
812
+ *
813
+ * @generated from message Scailo.FilterReturnableInventoryReq
814
+ */
815
+ class FilterReturnableInventoryReq extends protobuf_1.Message {
816
+ /**
817
+ * If true, then returns only active records. If false, then returns only inactive records
818
+ *
819
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
820
+ */
821
+ isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
822
+ /**
823
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
824
+ *
825
+ * @generated from field: int64 count = 2;
826
+ */
827
+ count = protobuf_1.protoInt64.zero;
828
+ /**
829
+ * The number that need to be offset by before fetching the records
830
+ *
831
+ * @generated from field: uint64 offset = 3;
832
+ */
833
+ offset = protobuf_1.protoInt64.zero;
834
+ /**
835
+ * The sort order that is to be used to fetch the pagination response
836
+ *
837
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
838
+ */
839
+ sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
840
+ /**
841
+ * The sort key that is to be used to fetch the pagination response
842
+ *
843
+ * @generated from field: Scailo.INVENTORY_SORT_KEY sort_key = 5;
844
+ */
845
+ sortKey = base_scailo_pb_js_1.INVENTORY_SORT_KEY.INVENTORY_SORT_KEY_ID_UNSPECIFIED;
846
+ /**
847
+ * The minimum timestamp that needs to be considered to filter by creation
848
+ *
849
+ * @generated from field: uint64 creation_timestamp_start = 101;
850
+ */
851
+ creationTimestampStart = protobuf_1.protoInt64.zero;
852
+ /**
853
+ * The maximum timestamp that needs to be considered to filter by creation
854
+ *
855
+ * @generated from field: uint64 creation_timestamp_end = 102;
856
+ */
857
+ creationTimestampEnd = protobuf_1.protoInt64.zero;
858
+ /**
859
+ * The minimum timestamp that needs to be considered to filter by modification
860
+ *
861
+ * @generated from field: uint64 modification_timestamp_start = 103;
862
+ */
863
+ modificationTimestampStart = protobuf_1.protoInt64.zero;
864
+ /**
865
+ * The maximum timestamp that needs to be considered to filter by modification
866
+ *
867
+ * @generated from field: uint64 modification_timestamp_end = 104;
868
+ */
869
+ modificationTimestampEnd = protobuf_1.protoInt64.zero;
870
+ /**
871
+ * The entity UUID that is to be used to filter records
872
+ *
873
+ * @generated from field: string entity_uuid = 8;
874
+ */
875
+ entityUuid = "";
876
+ /**
877
+ * Stores the ID of the associated family
878
+ *
879
+ * @generated from field: uint64 family_id = 33;
880
+ */
881
+ familyId = protobuf_1.protoInt64.zero;
882
+ /**
883
+ * The auto generated code of the inventory item
884
+ *
885
+ * @generated from field: string code = 34;
886
+ */
887
+ code = "";
888
+ /**
889
+ * Stores the internal code (as given by user)
890
+ *
891
+ * @generated from field: string internal_item_code = 35;
892
+ */
893
+ internalItemCode = "";
894
+ /**
895
+ * The computed hash of the inventory item
896
+ *
897
+ * @generated from field: string hash = 36;
898
+ */
899
+ hash = "";
900
+ /**
901
+ * The minimum remaining quantity (in cents)
902
+ *
903
+ * @generated from field: uint64 quantity_remaining_min = 37;
904
+ */
905
+ quantityRemainingMin = protobuf_1.protoInt64.zero;
906
+ /**
907
+ * The maximum remaining quantity (in cents)
908
+ *
909
+ * @generated from field: uint64 quantity_remaining_max = 38;
910
+ */
911
+ quantityRemainingMax = protobuf_1.protoInt64.zero;
912
+ /**
913
+ * Stores an optional secondary unit of inventory item
914
+ *
915
+ * @generated from field: uint64 secondary_uom_id = 39;
916
+ */
917
+ secondaryUomId = protobuf_1.protoInt64.zero;
918
+ /**
919
+ * The start range of shelf life timestamp
920
+ *
921
+ * @generated from field: uint64 shelf_life_timestamp_start = 40;
922
+ */
923
+ shelfLifeTimestampStart = protobuf_1.protoInt64.zero;
924
+ /**
925
+ * The end range of shelf life timestamp
926
+ *
927
+ * @generated from field: uint64 shelf_life_timestamp_end = 41;
928
+ */
929
+ shelfLifeTimestampEnd = protobuf_1.protoInt64.zero;
930
+ /**
931
+ * The start range of the warranty timestamp
932
+ *
933
+ * @generated from field: uint64 warranty_timestamp_start = 42;
934
+ */
935
+ warrantyTimestampStart = protobuf_1.protoInt64.zero;
936
+ /**
937
+ * The end range of the warranty timestamp
938
+ *
939
+ * @generated from field: uint64 warranty_timestamp_end = 43;
940
+ */
941
+ warrantyTimestampEnd = protobuf_1.protoInt64.zero;
942
+ /**
943
+ * Stores if the associated QC report should be public
944
+ *
945
+ * @generated from field: Scailo.BOOL_FILTER is_qc_report_public = 52;
946
+ */
947
+ isQcReportPublic = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
948
+ /**
949
+ * Filter by the location ID
950
+ *
951
+ * @generated from field: uint64 location_id = 54;
952
+ */
953
+ locationId = protobuf_1.protoInt64.zero;
954
+ constructor(data) {
955
+ super();
956
+ protobuf_1.proto3.util.initPartial(data, this);
957
+ }
958
+ static runtime = protobuf_1.proto3;
959
+ static typeName = "Scailo.FilterReturnableInventoryReq";
960
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
961
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
962
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
963
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
964
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
965
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.INVENTORY_SORT_KEY) },
966
+ { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
967
+ { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
968
+ { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
969
+ { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
970
+ { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
971
+ { no: 33, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
972
+ { no: 34, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
973
+ { no: 35, name: "internal_item_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
974
+ { no: 36, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
975
+ { no: 37, name: "quantity_remaining_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
976
+ { no: 38, name: "quantity_remaining_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
977
+ { no: 39, name: "secondary_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
978
+ { no: 40, name: "shelf_life_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
979
+ { no: 41, name: "shelf_life_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
980
+ { no: 42, name: "warranty_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
981
+ { no: 43, name: "warranty_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
982
+ { no: 52, name: "is_qc_report_public", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
983
+ { no: 54, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
984
+ ]);
985
+ static fromBinary(bytes, options) {
986
+ return new FilterReturnableInventoryReq().fromBinary(bytes, options);
987
+ }
988
+ static fromJson(jsonValue, options) {
989
+ return new FilterReturnableInventoryReq().fromJson(jsonValue, options);
990
+ }
991
+ static fromJsonString(jsonString, options) {
992
+ return new FilterReturnableInventoryReq().fromJsonString(jsonString, options);
993
+ }
994
+ static equals(a, b) {
995
+ return protobuf_1.proto3.util.equals(FilterReturnableInventoryReq, a, b);
996
+ }
997
+ }
998
+ exports.FilterReturnableInventoryReq = FilterReturnableInventoryReq;
999
+ /**
1000
+ *
1001
+ * Describes the message that consists of parameters that are required to filter returnable inventory for a record with the given identifier
1002
+ *
1003
+ * @generated from message Scailo.FilterReturnableInventoryForIdentifierUUID
1004
+ */
1005
+ class FilterReturnableInventoryForIdentifierUUID extends protobuf_1.Message {
1006
+ /**
1007
+ * UUID of the resource
1008
+ *
1009
+ * @generated from field: string uuid = 1;
1010
+ */
1011
+ uuid = "";
1012
+ /**
1013
+ * The returnable inventory filter to apply
1014
+ *
1015
+ * @generated from field: Scailo.FilterReturnableInventoryReq filter = 10;
1016
+ */
1017
+ filter;
1018
+ constructor(data) {
1019
+ super();
1020
+ protobuf_1.proto3.util.initPartial(data, this);
1021
+ }
1022
+ static runtime = protobuf_1.proto3;
1023
+ static typeName = "Scailo.FilterReturnableInventoryForIdentifierUUID";
1024
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1025
+ { no: 1, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1026
+ { no: 10, name: "filter", kind: "message", T: FilterReturnableInventoryReq },
1027
+ ]);
1028
+ static fromBinary(bytes, options) {
1029
+ return new FilterReturnableInventoryForIdentifierUUID().fromBinary(bytes, options);
1030
+ }
1031
+ static fromJson(jsonValue, options) {
1032
+ return new FilterReturnableInventoryForIdentifierUUID().fromJson(jsonValue, options);
1033
+ }
1034
+ static fromJsonString(jsonString, options) {
1035
+ return new FilterReturnableInventoryForIdentifierUUID().fromJsonString(jsonString, options);
1036
+ }
1037
+ static equals(a, b) {
1038
+ return protobuf_1.proto3.util.equals(FilterReturnableInventoryForIdentifierUUID, a, b);
1039
+ }
1040
+ }
1041
+ exports.FilterReturnableInventoryForIdentifierUUID = FilterReturnableInventoryForIdentifierUUID;
618
1042
  /**
619
1043
  *
620
1044
  * 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
  *