@commercetools/importapi-sdk 2.0.1 → 2.1.0
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.
- package/CHANGELOG.md +11 -0
- package/dist/commercetools-importapi-sdk.browser.cjs.js +0 -197
- package/dist/commercetools-importapi-sdk.browser.esm.js +0 -197
- package/dist/commercetools-importapi-sdk.cjs.dev.js +0 -197
- package/dist/commercetools-importapi-sdk.cjs.prod.js +0 -197
- package/dist/commercetools-importapi-sdk.esm.js +0 -197
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +0 -2
- package/dist/declarations/src/generated/index.d.ts +0 -1
- package/dist/declarations/src/generated/models/common.d.ts +1 -1
- package/dist/declarations/src/generated/models/importoperations.d.ts +1 -1
- package/dist/declarations/src/generated/models/importrequests.d.ts +1 -15
- package/package.json +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +0 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-request-builder.d.ts +0 -26
- package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +0 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +0 -48
- package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-import-sink-key-by-import-sink-key-request-builder.d.ts +0 -37
- package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-request-builder.d.ts +0 -28
- package/dist/declarations/src/generated/models/inventories.d.ts +0 -44
|
@@ -885,194 +885,6 @@ class ByProjectKeyImportSummariesRequestBuilder {
|
|
|
885
885
|
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
-
/**
|
|
889
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
890
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
891
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
892
|
-
*/
|
|
893
|
-
class ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder {
|
|
894
|
-
constructor(args) {
|
|
895
|
-
this.args = args;
|
|
896
|
-
}
|
|
897
|
-
/**
|
|
898
|
-
* Creates a request for creating new Inventories or updating existing ones.
|
|
899
|
-
*/
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
post(methodArgs) {
|
|
903
|
-
return new ApiRequest({
|
|
904
|
-
baseUri: this.args.baseUri,
|
|
905
|
-
method: 'POST',
|
|
906
|
-
uriTemplate: '/{projectKey}/inventories/import-containers/{importContainerKey}',
|
|
907
|
-
pathVariables: this.args.pathArgs,
|
|
908
|
-
headers: {
|
|
909
|
-
'Content-Type': 'application/json',
|
|
910
|
-
...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
911
|
-
},
|
|
912
|
-
body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
|
|
913
|
-
}, this.args.executeRequest);
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
920
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
921
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
922
|
-
*/
|
|
923
|
-
class ByProjectKeyInventoriesImportContainersRequestBuilder {
|
|
924
|
-
constructor(args) {
|
|
925
|
-
this.args = args;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
withImportContainerKeyValue(childPathArgs) {
|
|
929
|
-
return new ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder({
|
|
930
|
-
pathArgs: { ...this.args.pathArgs,
|
|
931
|
-
...childPathArgs
|
|
932
|
-
},
|
|
933
|
-
executeRequest: this.args.executeRequest,
|
|
934
|
-
baseUri: this.args.baseUri
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
942
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
943
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
944
|
-
*/
|
|
945
|
-
class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
|
|
946
|
-
constructor(args) {
|
|
947
|
-
this.args = args;
|
|
948
|
-
}
|
|
949
|
-
/**
|
|
950
|
-
* Retrieves the import operation with the given id.
|
|
951
|
-
*
|
|
952
|
-
*/
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
get(methodArgs) {
|
|
956
|
-
return new ApiRequest({
|
|
957
|
-
baseUri: this.args.baseUri,
|
|
958
|
-
method: 'GET',
|
|
959
|
-
uriTemplate: '/{projectKey}/inventories/importSinkKey={importSinkKey}/import-operations/{id}',
|
|
960
|
-
pathVariables: this.args.pathArgs,
|
|
961
|
-
headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
962
|
-
}
|
|
963
|
-
}, this.args.executeRequest);
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
970
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
971
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
972
|
-
*/
|
|
973
|
-
class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
|
|
974
|
-
constructor(args) {
|
|
975
|
-
this.args = args;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
withIdValue(childPathArgs) {
|
|
979
|
-
return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
|
|
980
|
-
pathArgs: { ...this.args.pathArgs,
|
|
981
|
-
...childPathArgs
|
|
982
|
-
},
|
|
983
|
-
executeRequest: this.args.executeRequest,
|
|
984
|
-
baseUri: this.args.baseUri
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
/**
|
|
988
|
-
* Retrieves all inventory import operations of an import sink key.
|
|
989
|
-
*/
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
get(methodArgs) {
|
|
993
|
-
return new ApiRequest({
|
|
994
|
-
baseUri: this.args.baseUri,
|
|
995
|
-
method: 'GET',
|
|
996
|
-
uriTemplate: '/{projectKey}/inventories/importSinkKey={importSinkKey}/import-operations',
|
|
997
|
-
pathVariables: this.args.pathArgs,
|
|
998
|
-
headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
999
|
-
},
|
|
1000
|
-
queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
|
|
1001
|
-
}, this.args.executeRequest);
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1008
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1009
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1010
|
-
*/
|
|
1011
|
-
class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder {
|
|
1012
|
-
constructor(args) {
|
|
1013
|
-
this.args = args;
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
importOperations() {
|
|
1017
|
-
return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
|
|
1018
|
-
pathArgs: { ...this.args.pathArgs
|
|
1019
|
-
},
|
|
1020
|
-
executeRequest: this.args.executeRequest,
|
|
1021
|
-
baseUri: this.args.baseUri
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
|
-
/**
|
|
1025
|
-
* Creates import request for creating new inventories or updating existing ones.
|
|
1026
|
-
*/
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
post(methodArgs) {
|
|
1030
|
-
return new ApiRequest({
|
|
1031
|
-
baseUri: this.args.baseUri,
|
|
1032
|
-
method: 'POST',
|
|
1033
|
-
uriTemplate: '/{projectKey}/inventories/importSinkKey={importSinkKey}',
|
|
1034
|
-
pathVariables: this.args.pathArgs,
|
|
1035
|
-
headers: {
|
|
1036
|
-
'Content-Type': 'application/json',
|
|
1037
|
-
...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
1038
|
-
},
|
|
1039
|
-
body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
|
|
1040
|
-
}, this.args.executeRequest);
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
/**
|
|
1046
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1047
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1048
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1049
|
-
*/
|
|
1050
|
-
class ByProjectKeyInventoriesRequestBuilder {
|
|
1051
|
-
constructor(args) {
|
|
1052
|
-
this.args = args;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
importContainers() {
|
|
1056
|
-
return new ByProjectKeyInventoriesImportContainersRequestBuilder({
|
|
1057
|
-
pathArgs: { ...this.args.pathArgs
|
|
1058
|
-
},
|
|
1059
|
-
executeRequest: this.args.executeRequest,
|
|
1060
|
-
baseUri: this.args.baseUri
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
importSinkKeyWithImportSinkKeyValue(childPathArgs) {
|
|
1065
|
-
return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder({
|
|
1066
|
-
pathArgs: { ...this.args.pathArgs,
|
|
1067
|
-
...childPathArgs
|
|
1068
|
-
},
|
|
1069
|
-
executeRequest: this.args.executeRequest,
|
|
1070
|
-
baseUri: this.args.baseUri
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
888
|
/**
|
|
1077
889
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1078
890
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -2715,15 +2527,6 @@ class ByProjectKeyRequestBuilder {
|
|
|
2715
2527
|
});
|
|
2716
2528
|
}
|
|
2717
2529
|
|
|
2718
|
-
inventories() {
|
|
2719
|
-
return new ByProjectKeyInventoriesRequestBuilder({
|
|
2720
|
-
pathArgs: { ...this.args.pathArgs
|
|
2721
|
-
},
|
|
2722
|
-
executeRequest: this.args.executeRequest,
|
|
2723
|
-
baseUri: this.args.baseUri
|
|
2724
|
-
});
|
|
2725
|
-
}
|
|
2726
|
-
|
|
2727
2530
|
}
|
|
2728
2531
|
|
|
2729
2532
|
class ApiRoot {
|
|
@@ -881,194 +881,6 @@ class ByProjectKeyImportSummariesRequestBuilder {
|
|
|
881
881
|
|
|
882
882
|
}
|
|
883
883
|
|
|
884
|
-
/**
|
|
885
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
886
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
887
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
888
|
-
*/
|
|
889
|
-
class ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder {
|
|
890
|
-
constructor(args) {
|
|
891
|
-
this.args = args;
|
|
892
|
-
}
|
|
893
|
-
/**
|
|
894
|
-
* Creates a request for creating new Inventories or updating existing ones.
|
|
895
|
-
*/
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
post(methodArgs) {
|
|
899
|
-
return new ApiRequest({
|
|
900
|
-
baseUri: this.args.baseUri,
|
|
901
|
-
method: 'POST',
|
|
902
|
-
uriTemplate: '/{projectKey}/inventories/import-containers/{importContainerKey}',
|
|
903
|
-
pathVariables: this.args.pathArgs,
|
|
904
|
-
headers: {
|
|
905
|
-
'Content-Type': 'application/json',
|
|
906
|
-
...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
907
|
-
},
|
|
908
|
-
body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
|
|
909
|
-
}, this.args.executeRequest);
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
/**
|
|
915
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
916
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
917
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
918
|
-
*/
|
|
919
|
-
class ByProjectKeyInventoriesImportContainersRequestBuilder {
|
|
920
|
-
constructor(args) {
|
|
921
|
-
this.args = args;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
withImportContainerKeyValue(childPathArgs) {
|
|
925
|
-
return new ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder({
|
|
926
|
-
pathArgs: { ...this.args.pathArgs,
|
|
927
|
-
...childPathArgs
|
|
928
|
-
},
|
|
929
|
-
executeRequest: this.args.executeRequest,
|
|
930
|
-
baseUri: this.args.baseUri
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
/**
|
|
937
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
938
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
939
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
940
|
-
*/
|
|
941
|
-
class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
|
|
942
|
-
constructor(args) {
|
|
943
|
-
this.args = args;
|
|
944
|
-
}
|
|
945
|
-
/**
|
|
946
|
-
* Retrieves the import operation with the given id.
|
|
947
|
-
*
|
|
948
|
-
*/
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
get(methodArgs) {
|
|
952
|
-
return new ApiRequest({
|
|
953
|
-
baseUri: this.args.baseUri,
|
|
954
|
-
method: 'GET',
|
|
955
|
-
uriTemplate: '/{projectKey}/inventories/importSinkKey={importSinkKey}/import-operations/{id}',
|
|
956
|
-
pathVariables: this.args.pathArgs,
|
|
957
|
-
headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
958
|
-
}
|
|
959
|
-
}, this.args.executeRequest);
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
966
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
967
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
968
|
-
*/
|
|
969
|
-
class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
|
|
970
|
-
constructor(args) {
|
|
971
|
-
this.args = args;
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
withIdValue(childPathArgs) {
|
|
975
|
-
return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder({
|
|
976
|
-
pathArgs: { ...this.args.pathArgs,
|
|
977
|
-
...childPathArgs
|
|
978
|
-
},
|
|
979
|
-
executeRequest: this.args.executeRequest,
|
|
980
|
-
baseUri: this.args.baseUri
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
/**
|
|
984
|
-
* Retrieves all inventory import operations of an import sink key.
|
|
985
|
-
*/
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
get(methodArgs) {
|
|
989
|
-
return new ApiRequest({
|
|
990
|
-
baseUri: this.args.baseUri,
|
|
991
|
-
method: 'GET',
|
|
992
|
-
uriTemplate: '/{projectKey}/inventories/importSinkKey={importSinkKey}/import-operations',
|
|
993
|
-
pathVariables: this.args.pathArgs,
|
|
994
|
-
headers: { ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
995
|
-
},
|
|
996
|
-
queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
|
|
997
|
-
}, this.args.executeRequest);
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
/**
|
|
1003
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1004
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1005
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1006
|
-
*/
|
|
1007
|
-
class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder {
|
|
1008
|
-
constructor(args) {
|
|
1009
|
-
this.args = args;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
importOperations() {
|
|
1013
|
-
return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder({
|
|
1014
|
-
pathArgs: { ...this.args.pathArgs
|
|
1015
|
-
},
|
|
1016
|
-
executeRequest: this.args.executeRequest,
|
|
1017
|
-
baseUri: this.args.baseUri
|
|
1018
|
-
});
|
|
1019
|
-
}
|
|
1020
|
-
/**
|
|
1021
|
-
* Creates import request for creating new inventories or updating existing ones.
|
|
1022
|
-
*/
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
post(methodArgs) {
|
|
1026
|
-
return new ApiRequest({
|
|
1027
|
-
baseUri: this.args.baseUri,
|
|
1028
|
-
method: 'POST',
|
|
1029
|
-
uriTemplate: '/{projectKey}/inventories/importSinkKey={importSinkKey}',
|
|
1030
|
-
pathVariables: this.args.pathArgs,
|
|
1031
|
-
headers: {
|
|
1032
|
-
'Content-Type': 'application/json',
|
|
1033
|
-
...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
|
|
1034
|
-
},
|
|
1035
|
-
body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
|
|
1036
|
-
}, this.args.executeRequest);
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
/**
|
|
1042
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1043
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1044
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1045
|
-
*/
|
|
1046
|
-
class ByProjectKeyInventoriesRequestBuilder {
|
|
1047
|
-
constructor(args) {
|
|
1048
|
-
this.args = args;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
importContainers() {
|
|
1052
|
-
return new ByProjectKeyInventoriesImportContainersRequestBuilder({
|
|
1053
|
-
pathArgs: { ...this.args.pathArgs
|
|
1054
|
-
},
|
|
1055
|
-
executeRequest: this.args.executeRequest,
|
|
1056
|
-
baseUri: this.args.baseUri
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
importSinkKeyWithImportSinkKeyValue(childPathArgs) {
|
|
1061
|
-
return new ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyRequestBuilder({
|
|
1062
|
-
pathArgs: { ...this.args.pathArgs,
|
|
1063
|
-
...childPathArgs
|
|
1064
|
-
},
|
|
1065
|
-
executeRequest: this.args.executeRequest,
|
|
1066
|
-
baseUri: this.args.baseUri
|
|
1067
|
-
});
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
884
|
/**
|
|
1073
885
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1074
886
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -2711,15 +2523,6 @@ class ByProjectKeyRequestBuilder {
|
|
|
2711
2523
|
});
|
|
2712
2524
|
}
|
|
2713
2525
|
|
|
2714
|
-
inventories() {
|
|
2715
|
-
return new ByProjectKeyInventoriesRequestBuilder({
|
|
2716
|
-
pathArgs: { ...this.args.pathArgs
|
|
2717
|
-
},
|
|
2718
|
-
executeRequest: this.args.executeRequest,
|
|
2719
|
-
baseUri: this.args.baseUri
|
|
2720
|
-
});
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
2526
|
}
|
|
2724
2527
|
|
|
2725
2528
|
class ApiRoot {
|
|
@@ -10,7 +10,6 @@ import { ByProjectKeyImportContainersRequestBuilder } from './import-containers/
|
|
|
10
10
|
import { ByProjectKeyImportOperationsRequestBuilder } from './import-operations/by-project-key-import-operations-request-builder';
|
|
11
11
|
import { ByProjectKeyImportSinksRequestBuilder } from './import-sinks/by-project-key-import-sinks-request-builder';
|
|
12
12
|
import { ByProjectKeyImportSummariesRequestBuilder } from './import-summaries/by-project-key-import-summaries-request-builder';
|
|
13
|
-
import { ByProjectKeyInventoriesRequestBuilder } from './inventories/by-project-key-inventories-request-builder';
|
|
14
13
|
import { ByProjectKeyOrderPatchesRequestBuilder } from './order-patches/by-project-key-order-patches-request-builder';
|
|
15
14
|
import { ByProjectKeyOrdersRequestBuilder } from './orders/by-project-key-orders-request-builder';
|
|
16
15
|
import { ByProjectKeyPricesRequestBuilder } from './prices/by-project-key-prices-request-builder';
|
|
@@ -48,5 +47,4 @@ export declare class ByProjectKeyRequestBuilder {
|
|
|
48
47
|
orders(): ByProjectKeyOrdersRequestBuilder;
|
|
49
48
|
orderPatches(): ByProjectKeyOrderPatchesRequestBuilder;
|
|
50
49
|
customers(): ByProjectKeyCustomersRequestBuilder;
|
|
51
|
-
inventories(): ByProjectKeyInventoriesRequestBuilder;
|
|
52
50
|
}
|
|
@@ -14,7 +14,6 @@ export * from './models/importoperations';
|
|
|
14
14
|
export * from './models/importrequests';
|
|
15
15
|
export * from './models/importsinks';
|
|
16
16
|
export * from './models/importsummaries';
|
|
17
|
-
export * from './models/inventories';
|
|
18
17
|
export * from './models/order-patches';
|
|
19
18
|
export * from './models/orders';
|
|
20
19
|
export * from './models/prices';
|
|
@@ -453,7 +453,7 @@ export interface PriceTier {
|
|
|
453
453
|
* The type of the import resource.
|
|
454
454
|
*
|
|
455
455
|
*/
|
|
456
|
-
export declare type ImportResourceType = 'category' | 'customer' | '
|
|
456
|
+
export declare type ImportResourceType = 'category' | 'customer' | 'order' | 'order-patch' | 'price' | 'product' | 'product-draft' | 'product-type' | 'product-variant' | 'product-variant-patch';
|
|
457
457
|
/**
|
|
458
458
|
* The type of the referenced resource.
|
|
459
459
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { ProcessingState, UnresolvedReferences } from './common';
|
|
7
7
|
import { ErrorObject } from './errors';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Import Operation describes the import status of a specific resource.
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
12
|
export interface ImportOperation {
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
import { CategoryImport } from './categories';
|
|
7
7
|
import { CustomerImport } from './customers';
|
|
8
8
|
import { ImportOperationStatus } from './importoperations';
|
|
9
|
-
import { InventoryImport } from './inventories';
|
|
10
9
|
import { OrderPatchImport } from './order-patches';
|
|
11
10
|
import { OrderImport } from './orders';
|
|
12
11
|
import { PriceImport } from './prices';
|
|
@@ -18,7 +17,7 @@ import { ProductVariantImport, ProductVariantPatch } from './productvariants';
|
|
|
18
17
|
* An import request batches multiple import resources of the same import resource type for processing by an import container.
|
|
19
18
|
*
|
|
20
19
|
*/
|
|
21
|
-
export declare type ImportRequest = CategoryImportRequest | CustomerImportRequest |
|
|
20
|
+
export declare type ImportRequest = CategoryImportRequest | CustomerImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest;
|
|
22
21
|
/**
|
|
23
22
|
* A list of the ID's and validation statuses of newly created [ImportOperations](#importoperation).
|
|
24
23
|
* Used as a response at each resource-specific import endpoint, for example, at [Import Categories](/category#import-categories) and [Import ProductTypes](/product-type#import-producttypes).
|
|
@@ -160,16 +159,3 @@ export interface CustomerImportRequest {
|
|
|
160
159
|
*/
|
|
161
160
|
readonly resources: CustomerImport[];
|
|
162
161
|
}
|
|
163
|
-
/**
|
|
164
|
-
* The request body to [import Inventories](#import-inventories). Contains data for [Inventories](/../api//projects/inventory#inventoryentry) to be created or updated in a commercetools Project.
|
|
165
|
-
*
|
|
166
|
-
*/
|
|
167
|
-
export interface InventoryImportRequest {
|
|
168
|
-
readonly type: 'inventory';
|
|
169
|
-
/**
|
|
170
|
-
* The inventory import resources of this request.
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*/
|
|
174
|
-
readonly resources: InventoryImport[];
|
|
175
|
-
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@commercetools/importapi-sdk",
|
|
7
|
-
"version": "2.0
|
|
7
|
+
"version": "2.1.0",
|
|
8
8
|
"description": "Type script sdk for commercetools import features",
|
|
9
9
|
"keywords": ["commercetools", "typescript", "sdk", "import"],
|
|
10
10
|
"homepage": "https://github.com/commercetools/commercetools-sdk-typescript/packages/importapi-sdk",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"./dist/commercetools-importapi-sdk.esm.js": "./dist/commercetools-importapi-sdk.browser.esm.js"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@commercetools/sdk-client-v2": "^1.0.
|
|
26
|
+
"@commercetools/sdk-client-v2": "^1.0.1",
|
|
27
27
|
"@commercetools/sdk-middleware-auth": "^6.0.4",
|
|
28
28
|
"@commercetools/sdk-middleware-http": "^6.0.4",
|
|
29
29
|
"@commercetools/sdk-middleware-logger": "^2.1.1",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
3
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
|
-
*/
|
|
6
|
-
import { ImportResponse, InventoryImportRequest } from '../../models/importrequests';
|
|
7
|
-
import { executeRequest } from '../../shared/utils/common-types';
|
|
8
|
-
import { ApiRequest } from '../../shared/utils/requests-utils';
|
|
9
|
-
export declare class ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder {
|
|
10
|
-
protected readonly args: {
|
|
11
|
-
pathArgs: {
|
|
12
|
-
projectKey: string;
|
|
13
|
-
importContainerKey: string;
|
|
14
|
-
};
|
|
15
|
-
executeRequest: executeRequest;
|
|
16
|
-
baseUri?: string;
|
|
17
|
-
};
|
|
18
|
-
constructor(args: {
|
|
19
|
-
pathArgs: {
|
|
20
|
-
projectKey: string;
|
|
21
|
-
importContainerKey: string;
|
|
22
|
-
};
|
|
23
|
-
executeRequest: executeRequest;
|
|
24
|
-
baseUri?: string;
|
|
25
|
-
});
|
|
26
|
-
/**
|
|
27
|
-
* Creates a request for creating new Inventories or updating existing ones.
|
|
28
|
-
*/
|
|
29
|
-
post(methodArgs: {
|
|
30
|
-
body: InventoryImportRequest;
|
|
31
|
-
headers?: {
|
|
32
|
-
[key: string]: string | string[];
|
|
33
|
-
};
|
|
34
|
-
}): ApiRequest<ImportResponse>;
|
|
35
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
3
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
|
-
*/
|
|
6
|
-
import { executeRequest } from '../../shared/utils/common-types';
|
|
7
|
-
import { ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder } from './by-project-key-inventories-import-containers-by-import-container-key-request-builder';
|
|
8
|
-
export declare class ByProjectKeyInventoriesImportContainersRequestBuilder {
|
|
9
|
-
protected readonly args: {
|
|
10
|
-
pathArgs: {
|
|
11
|
-
projectKey: string;
|
|
12
|
-
};
|
|
13
|
-
executeRequest: executeRequest;
|
|
14
|
-
baseUri?: string;
|
|
15
|
-
};
|
|
16
|
-
constructor(args: {
|
|
17
|
-
pathArgs: {
|
|
18
|
-
projectKey: string;
|
|
19
|
-
};
|
|
20
|
-
executeRequest: executeRequest;
|
|
21
|
-
baseUri?: string;
|
|
22
|
-
});
|
|
23
|
-
withImportContainerKeyValue(childPathArgs: {
|
|
24
|
-
importContainerKey: string;
|
|
25
|
-
}): ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder;
|
|
26
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
3
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
|
-
*/
|
|
6
|
-
import { ImportOperation } from '../../models/importoperations';
|
|
7
|
-
import { executeRequest } from '../../shared/utils/common-types';
|
|
8
|
-
import { ApiRequest } from '../../shared/utils/requests-utils';
|
|
9
|
-
export declare class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder {
|
|
10
|
-
protected readonly args: {
|
|
11
|
-
pathArgs: {
|
|
12
|
-
projectKey: string;
|
|
13
|
-
importSinkKey: string;
|
|
14
|
-
id: string;
|
|
15
|
-
};
|
|
16
|
-
executeRequest: executeRequest;
|
|
17
|
-
baseUri?: string;
|
|
18
|
-
};
|
|
19
|
-
constructor(args: {
|
|
20
|
-
pathArgs: {
|
|
21
|
-
projectKey: string;
|
|
22
|
-
importSinkKey: string;
|
|
23
|
-
id: string;
|
|
24
|
-
};
|
|
25
|
-
executeRequest: executeRequest;
|
|
26
|
-
baseUri?: string;
|
|
27
|
-
});
|
|
28
|
-
/**
|
|
29
|
-
* Retrieves the import operation with the given id.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
get(methodArgs?: {
|
|
33
|
-
headers?: {
|
|
34
|
-
[key: string]: string | string[];
|
|
35
|
-
};
|
|
36
|
-
}): ApiRequest<ImportOperation>;
|
|
37
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
3
|
-
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
|
-
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
|
-
*/
|
|
6
|
-
import { ProcessingState } from '../../models/common';
|
|
7
|
-
import { ImportOperationPagedResponse } from '../../models/importoperations';
|
|
8
|
-
import { executeRequest, QueryParam } from '../../shared/utils/common-types';
|
|
9
|
-
import { ApiRequest } from '../../shared/utils/requests-utils';
|
|
10
|
-
import { ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder } from './by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder';
|
|
11
|
-
export declare class ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder {
|
|
12
|
-
protected readonly args: {
|
|
13
|
-
pathArgs: {
|
|
14
|
-
projectKey: string;
|
|
15
|
-
importSinkKey: string;
|
|
16
|
-
};
|
|
17
|
-
executeRequest: executeRequest;
|
|
18
|
-
baseUri?: string;
|
|
19
|
-
};
|
|
20
|
-
constructor(args: {
|
|
21
|
-
pathArgs: {
|
|
22
|
-
projectKey: string;
|
|
23
|
-
importSinkKey: string;
|
|
24
|
-
};
|
|
25
|
-
executeRequest: executeRequest;
|
|
26
|
-
baseUri?: string;
|
|
27
|
-
});
|
|
28
|
-
withIdValue(childPathArgs: {
|
|
29
|
-
id: string;
|
|
30
|
-
}): ByProjectKeyInventoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves all inventory import operations of an import sink key.
|
|
33
|
-
*/
|
|
34
|
-
get(methodArgs?: {
|
|
35
|
-
queryArgs?: {
|
|
36
|
-
limit?: number;
|
|
37
|
-
offset?: number;
|
|
38
|
-
sort?: string | string[];
|
|
39
|
-
resourceKey?: string;
|
|
40
|
-
state?: ProcessingState;
|
|
41
|
-
debug?: boolean;
|
|
42
|
-
[key: string]: QueryParam;
|
|
43
|
-
};
|
|
44
|
-
headers?: {
|
|
45
|
-
[key: string]: string | string[];
|
|
46
|
-
};
|
|
47
|
-
}): ApiRequest<ImportOperationPagedResponse>;
|
|
48
|
-
}
|