@0xsequence/api 2.0.11 → 2.0.13

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.
@@ -18,20 +18,20 @@ function _extends() {
18
18
  }
19
19
 
20
20
  /* eslint-disable */
21
- // sequence-api v0.4.0 76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da
21
+ // sequence-api v0.4.0 470a0f88ea399c2a57ff8c22da54358c033ed5f0
22
22
  // --
23
23
  // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.
24
24
  //
25
25
  // webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts
26
26
 
27
27
  // WebRPC description and code-gen version
28
- const WebRPCVersion = 'v1';
28
+ const WebRPCVersion = "v1";
29
29
 
30
30
  // Schema version of your RIDL schema
31
- const WebRPCSchemaVersion = 'v0.4.0';
31
+ const WebRPCSchemaVersion = "v0.4.0";
32
32
 
33
33
  // Schema hash generated from your RIDL schema
34
- const WebRPCSchemaHash = '76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da';
34
+ const WebRPCSchemaHash = "470a0f88ea399c2a57ff8c22da54358c033ed5f0";
35
35
 
36
36
  //
37
37
  // Types
@@ -810,30 +810,6 @@ class API {
810
810
  });
811
811
  });
812
812
  };
813
- this.addCurrencyGroup = (args, headers, signal) => {
814
- return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
815
- return buildResponse(res).then(_data => {
816
- return {
817
- groupId: _data.groupId
818
- };
819
- });
820
- }, error => {
821
- throw WebrpcRequestFailedError.new({
822
- cause: `fetch(): ${error.message || ''}`
823
- });
824
- });
825
- };
826
- this.updateCurrencyGroup = (args, headers, signal) => {
827
- return this.fetch(this.url('UpdateCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
828
- return buildResponse(res).then(_data => {
829
- return {};
830
- });
831
- }, error => {
832
- throw WebrpcRequestFailedError.new({
833
- cause: `fetch(): ${error.message || ''}`
834
- });
835
- });
836
- };
837
813
  this.listCurrencyGroups = (headers, signal) => {
838
814
  return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {
839
815
  return buildResponse(res).then(_data => {
@@ -847,11 +823,11 @@ class API {
847
823
  });
848
824
  });
849
825
  };
850
- this.deleteCurrencyGroup = (args, headers, signal) => {
851
- return this.fetch(this.url('DeleteCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
826
+ this.addOffchainInventory = (args, headers, signal) => {
827
+ return this.fetch(this.url('AddOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
852
828
  return buildResponse(res).then(_data => {
853
829
  return {
854
- ok: _data.ok
830
+ inventoryId: _data.inventoryId
855
831
  };
856
832
  });
857
833
  }, error => {
@@ -860,11 +836,11 @@ class API {
860
836
  });
861
837
  });
862
838
  };
863
- this.addInventoryPaymentConfig = (args, headers, signal) => {
864
- return this.fetch(this.url('AddInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
839
+ this.getOffchainInventory = (args, headers, signal) => {
840
+ return this.fetch(this.url('GetOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
865
841
  return buildResponse(res).then(_data => {
866
842
  return {
867
- configId: _data.configId
843
+ inventory: _data.inventory
868
844
  };
869
845
  });
870
846
  }, error => {
@@ -873,11 +849,11 @@ class API {
873
849
  });
874
850
  });
875
851
  };
876
- this.getInventoryPaymentConfig = (args, headers, signal) => {
877
- return this.fetch(this.url('GetInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
852
+ this.listOffchainInventories = (args, headers, signal) => {
853
+ return this.fetch(this.url('ListOffchainInventories'), createHTTPRequest(args, headers, signal)).then(res => {
878
854
  return buildResponse(res).then(_data => {
879
855
  return {
880
- config: _data.config
856
+ inventory: _data.inventory
881
857
  };
882
858
  });
883
859
  }, error => {
@@ -886,12 +862,10 @@ class API {
886
862
  });
887
863
  });
888
864
  };
889
- this.listInventoryPaymentConfigs = (args, headers, signal) => {
890
- return this.fetch(this.url('ListInventoryPaymentConfigs'), createHTTPRequest(args, headers, signal)).then(res => {
865
+ this.updateOffchainInventory = (args, headers, signal) => {
866
+ return this.fetch(this.url('UpdateOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
891
867
  return buildResponse(res).then(_data => {
892
- return {
893
- configs: _data.configs
894
- };
868
+ return {};
895
869
  });
896
870
  }, error => {
897
871
  throw WebrpcRequestFailedError.new({
@@ -899,10 +873,12 @@ class API {
899
873
  });
900
874
  });
901
875
  };
902
- this.updateInventoryPaymentConfig = (args, headers, signal) => {
903
- return this.fetch(this.url('UpdateInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
876
+ this.deleteOffchainInventory = (args, headers, signal) => {
877
+ return this.fetch(this.url('DeleteOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
904
878
  return buildResponse(res).then(_data => {
905
- return {};
879
+ return {
880
+ ok: _data.ok
881
+ };
906
882
  });
907
883
  }, error => {
908
884
  throw WebrpcRequestFailedError.new({
@@ -910,11 +886,11 @@ class API {
910
886
  });
911
887
  });
912
888
  };
913
- this.deleteInventoryPaymentConfig = (args, headers, signal) => {
914
- return this.fetch(this.url('DeleteInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
889
+ this.requestOffchainPayment = (args, headers, signal) => {
890
+ return this.fetch(this.url('RequestOffchainPayment'), createHTTPRequest(args, headers, signal)).then(res => {
915
891
  return buildResponse(res).then(_data => {
916
892
  return {
917
- ok: _data.ok
893
+ payment: _data.payment
918
894
  };
919
895
  });
920
896
  }, error => {
@@ -923,11 +899,12 @@ class API {
923
899
  });
924
900
  });
925
901
  };
926
- this.requestInventoryPayment = (args, headers, signal) => {
927
- return this.fetch(this.url('RequestInventoryPayment'), createHTTPRequest(args, headers, signal)).then(res => {
902
+ this.listOffchainPayments = (args, headers, signal) => {
903
+ return this.fetch(this.url('ListOffchainPayments'), createHTTPRequest(args, headers, signal)).then(res => {
928
904
  return buildResponse(res).then(_data => {
929
905
  return {
930
- payment: _data.payment
906
+ page: _data.page,
907
+ payments: _data.payments
931
908
  };
932
909
  });
933
910
  }, error => {
@@ -18,20 +18,20 @@ function _extends() {
18
18
  }
19
19
 
20
20
  /* eslint-disable */
21
- // sequence-api v0.4.0 76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da
21
+ // sequence-api v0.4.0 470a0f88ea399c2a57ff8c22da54358c033ed5f0
22
22
  // --
23
23
  // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.
24
24
  //
25
25
  // webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts
26
26
 
27
27
  // WebRPC description and code-gen version
28
- const WebRPCVersion = 'v1';
28
+ const WebRPCVersion = "v1";
29
29
 
30
30
  // Schema version of your RIDL schema
31
- const WebRPCSchemaVersion = 'v0.4.0';
31
+ const WebRPCSchemaVersion = "v0.4.0";
32
32
 
33
33
  // Schema hash generated from your RIDL schema
34
- const WebRPCSchemaHash = '76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da';
34
+ const WebRPCSchemaHash = "470a0f88ea399c2a57ff8c22da54358c033ed5f0";
35
35
 
36
36
  //
37
37
  // Types
@@ -810,30 +810,6 @@ class API {
810
810
  });
811
811
  });
812
812
  };
813
- this.addCurrencyGroup = (args, headers, signal) => {
814
- return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
815
- return buildResponse(res).then(_data => {
816
- return {
817
- groupId: _data.groupId
818
- };
819
- });
820
- }, error => {
821
- throw WebrpcRequestFailedError.new({
822
- cause: `fetch(): ${error.message || ''}`
823
- });
824
- });
825
- };
826
- this.updateCurrencyGroup = (args, headers, signal) => {
827
- return this.fetch(this.url('UpdateCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
828
- return buildResponse(res).then(_data => {
829
- return {};
830
- });
831
- }, error => {
832
- throw WebrpcRequestFailedError.new({
833
- cause: `fetch(): ${error.message || ''}`
834
- });
835
- });
836
- };
837
813
  this.listCurrencyGroups = (headers, signal) => {
838
814
  return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {
839
815
  return buildResponse(res).then(_data => {
@@ -847,11 +823,11 @@ class API {
847
823
  });
848
824
  });
849
825
  };
850
- this.deleteCurrencyGroup = (args, headers, signal) => {
851
- return this.fetch(this.url('DeleteCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
826
+ this.addOffchainInventory = (args, headers, signal) => {
827
+ return this.fetch(this.url('AddOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
852
828
  return buildResponse(res).then(_data => {
853
829
  return {
854
- ok: _data.ok
830
+ inventoryId: _data.inventoryId
855
831
  };
856
832
  });
857
833
  }, error => {
@@ -860,11 +836,11 @@ class API {
860
836
  });
861
837
  });
862
838
  };
863
- this.addInventoryPaymentConfig = (args, headers, signal) => {
864
- return this.fetch(this.url('AddInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
839
+ this.getOffchainInventory = (args, headers, signal) => {
840
+ return this.fetch(this.url('GetOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
865
841
  return buildResponse(res).then(_data => {
866
842
  return {
867
- configId: _data.configId
843
+ inventory: _data.inventory
868
844
  };
869
845
  });
870
846
  }, error => {
@@ -873,11 +849,11 @@ class API {
873
849
  });
874
850
  });
875
851
  };
876
- this.getInventoryPaymentConfig = (args, headers, signal) => {
877
- return this.fetch(this.url('GetInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
852
+ this.listOffchainInventories = (args, headers, signal) => {
853
+ return this.fetch(this.url('ListOffchainInventories'), createHTTPRequest(args, headers, signal)).then(res => {
878
854
  return buildResponse(res).then(_data => {
879
855
  return {
880
- config: _data.config
856
+ inventory: _data.inventory
881
857
  };
882
858
  });
883
859
  }, error => {
@@ -886,12 +862,10 @@ class API {
886
862
  });
887
863
  });
888
864
  };
889
- this.listInventoryPaymentConfigs = (args, headers, signal) => {
890
- return this.fetch(this.url('ListInventoryPaymentConfigs'), createHTTPRequest(args, headers, signal)).then(res => {
865
+ this.updateOffchainInventory = (args, headers, signal) => {
866
+ return this.fetch(this.url('UpdateOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
891
867
  return buildResponse(res).then(_data => {
892
- return {
893
- configs: _data.configs
894
- };
868
+ return {};
895
869
  });
896
870
  }, error => {
897
871
  throw WebrpcRequestFailedError.new({
@@ -899,10 +873,12 @@ class API {
899
873
  });
900
874
  });
901
875
  };
902
- this.updateInventoryPaymentConfig = (args, headers, signal) => {
903
- return this.fetch(this.url('UpdateInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
876
+ this.deleteOffchainInventory = (args, headers, signal) => {
877
+ return this.fetch(this.url('DeleteOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
904
878
  return buildResponse(res).then(_data => {
905
- return {};
879
+ return {
880
+ ok: _data.ok
881
+ };
906
882
  });
907
883
  }, error => {
908
884
  throw WebrpcRequestFailedError.new({
@@ -910,11 +886,11 @@ class API {
910
886
  });
911
887
  });
912
888
  };
913
- this.deleteInventoryPaymentConfig = (args, headers, signal) => {
914
- return this.fetch(this.url('DeleteInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
889
+ this.requestOffchainPayment = (args, headers, signal) => {
890
+ return this.fetch(this.url('RequestOffchainPayment'), createHTTPRequest(args, headers, signal)).then(res => {
915
891
  return buildResponse(res).then(_data => {
916
892
  return {
917
- ok: _data.ok
893
+ payment: _data.payment
918
894
  };
919
895
  });
920
896
  }, error => {
@@ -923,11 +899,12 @@ class API {
923
899
  });
924
900
  });
925
901
  };
926
- this.requestInventoryPayment = (args, headers, signal) => {
927
- return this.fetch(this.url('RequestInventoryPayment'), createHTTPRequest(args, headers, signal)).then(res => {
902
+ this.listOffchainPayments = (args, headers, signal) => {
903
+ return this.fetch(this.url('ListOffchainPayments'), createHTTPRequest(args, headers, signal)).then(res => {
928
904
  return buildResponse(res).then(_data => {
929
905
  return {
930
- payment: _data.payment
906
+ page: _data.page,
907
+ payments: _data.payments
931
908
  };
932
909
  });
933
910
  }, error => {
@@ -14,20 +14,20 @@ function _extends() {
14
14
  }
15
15
 
16
16
  /* eslint-disable */
17
- // sequence-api v0.4.0 76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da
17
+ // sequence-api v0.4.0 470a0f88ea399c2a57ff8c22da54358c033ed5f0
18
18
  // --
19
19
  // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.
20
20
  //
21
21
  // webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts
22
22
 
23
23
  // WebRPC description and code-gen version
24
- const WebRPCVersion = 'v1';
24
+ const WebRPCVersion = "v1";
25
25
 
26
26
  // Schema version of your RIDL schema
27
- const WebRPCSchemaVersion = 'v0.4.0';
27
+ const WebRPCSchemaVersion = "v0.4.0";
28
28
 
29
29
  // Schema hash generated from your RIDL schema
30
- const WebRPCSchemaHash = '76d8fe04d2e75e4d4ffd3d4c9da10b7a733622da';
30
+ const WebRPCSchemaHash = "470a0f88ea399c2a57ff8c22da54358c033ed5f0";
31
31
 
32
32
  //
33
33
  // Types
@@ -806,30 +806,6 @@ class API {
806
806
  });
807
807
  });
808
808
  };
809
- this.addCurrencyGroup = (args, headers, signal) => {
810
- return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
811
- return buildResponse(res).then(_data => {
812
- return {
813
- groupId: _data.groupId
814
- };
815
- });
816
- }, error => {
817
- throw WebrpcRequestFailedError.new({
818
- cause: `fetch(): ${error.message || ''}`
819
- });
820
- });
821
- };
822
- this.updateCurrencyGroup = (args, headers, signal) => {
823
- return this.fetch(this.url('UpdateCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
824
- return buildResponse(res).then(_data => {
825
- return {};
826
- });
827
- }, error => {
828
- throw WebrpcRequestFailedError.new({
829
- cause: `fetch(): ${error.message || ''}`
830
- });
831
- });
832
- };
833
809
  this.listCurrencyGroups = (headers, signal) => {
834
810
  return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {
835
811
  return buildResponse(res).then(_data => {
@@ -843,11 +819,11 @@ class API {
843
819
  });
844
820
  });
845
821
  };
846
- this.deleteCurrencyGroup = (args, headers, signal) => {
847
- return this.fetch(this.url('DeleteCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
822
+ this.addOffchainInventory = (args, headers, signal) => {
823
+ return this.fetch(this.url('AddOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
848
824
  return buildResponse(res).then(_data => {
849
825
  return {
850
- ok: _data.ok
826
+ inventoryId: _data.inventoryId
851
827
  };
852
828
  });
853
829
  }, error => {
@@ -856,11 +832,11 @@ class API {
856
832
  });
857
833
  });
858
834
  };
859
- this.addInventoryPaymentConfig = (args, headers, signal) => {
860
- return this.fetch(this.url('AddInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
835
+ this.getOffchainInventory = (args, headers, signal) => {
836
+ return this.fetch(this.url('GetOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
861
837
  return buildResponse(res).then(_data => {
862
838
  return {
863
- configId: _data.configId
839
+ inventory: _data.inventory
864
840
  };
865
841
  });
866
842
  }, error => {
@@ -869,11 +845,11 @@ class API {
869
845
  });
870
846
  });
871
847
  };
872
- this.getInventoryPaymentConfig = (args, headers, signal) => {
873
- return this.fetch(this.url('GetInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
848
+ this.listOffchainInventories = (args, headers, signal) => {
849
+ return this.fetch(this.url('ListOffchainInventories'), createHTTPRequest(args, headers, signal)).then(res => {
874
850
  return buildResponse(res).then(_data => {
875
851
  return {
876
- config: _data.config
852
+ inventory: _data.inventory
877
853
  };
878
854
  });
879
855
  }, error => {
@@ -882,12 +858,10 @@ class API {
882
858
  });
883
859
  });
884
860
  };
885
- this.listInventoryPaymentConfigs = (args, headers, signal) => {
886
- return this.fetch(this.url('ListInventoryPaymentConfigs'), createHTTPRequest(args, headers, signal)).then(res => {
861
+ this.updateOffchainInventory = (args, headers, signal) => {
862
+ return this.fetch(this.url('UpdateOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
887
863
  return buildResponse(res).then(_data => {
888
- return {
889
- configs: _data.configs
890
- };
864
+ return {};
891
865
  });
892
866
  }, error => {
893
867
  throw WebrpcRequestFailedError.new({
@@ -895,10 +869,12 @@ class API {
895
869
  });
896
870
  });
897
871
  };
898
- this.updateInventoryPaymentConfig = (args, headers, signal) => {
899
- return this.fetch(this.url('UpdateInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
872
+ this.deleteOffchainInventory = (args, headers, signal) => {
873
+ return this.fetch(this.url('DeleteOffchainInventory'), createHTTPRequest(args, headers, signal)).then(res => {
900
874
  return buildResponse(res).then(_data => {
901
- return {};
875
+ return {
876
+ ok: _data.ok
877
+ };
902
878
  });
903
879
  }, error => {
904
880
  throw WebrpcRequestFailedError.new({
@@ -906,11 +882,11 @@ class API {
906
882
  });
907
883
  });
908
884
  };
909
- this.deleteInventoryPaymentConfig = (args, headers, signal) => {
910
- return this.fetch(this.url('DeleteInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
885
+ this.requestOffchainPayment = (args, headers, signal) => {
886
+ return this.fetch(this.url('RequestOffchainPayment'), createHTTPRequest(args, headers, signal)).then(res => {
911
887
  return buildResponse(res).then(_data => {
912
888
  return {
913
- ok: _data.ok
889
+ payment: _data.payment
914
890
  };
915
891
  });
916
892
  }, error => {
@@ -919,11 +895,12 @@ class API {
919
895
  });
920
896
  });
921
897
  };
922
- this.requestInventoryPayment = (args, headers, signal) => {
923
- return this.fetch(this.url('RequestInventoryPayment'), createHTTPRequest(args, headers, signal)).then(res => {
898
+ this.listOffchainPayments = (args, headers, signal) => {
899
+ return this.fetch(this.url('ListOffchainPayments'), createHTTPRequest(args, headers, signal)).then(res => {
924
900
  return buildResponse(res).then(_data => {
925
901
  return {
926
- payment: _data.payment
902
+ page: _data.page,
903
+ payments: _data.payments
927
904
  };
928
905
  });
929
906
  }, error => {