@commercetools/importapi-sdk 6.6.0 → 6.7.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 +52 -0
- package/dist/commercetools-importapi-sdk.browser.cjs.js +180 -1
- package/dist/commercetools-importapi-sdk.browser.esm.js +172 -2
- package/dist/commercetools-importapi-sdk.cjs.dev.js +180 -1
- package/dist/commercetools-importapi-sdk.cjs.prod.js +180 -1
- package/dist/commercetools-importapi-sdk.esm.js +172 -2
- package/dist/declarations/src/generated/client/business-units/by-project-key-business-units-request-builder.d.ts +27 -0
- package/dist/declarations/src/generated/client/business-units/by-project-key-business-units-request-builder.d.ts.map +1 -0
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +2 -0
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts.map +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-business-units-import-containers-by-import-container-key-request-builder.d.ts +38 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-business-units-import-containers-by-import-container-key-request-builder.d.ts.map +1 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-business-units-import-containers-request-builder.d.ts +29 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-business-units-import-containers-request-builder.d.ts.map +1 -0
- package/dist/declarations/src/generated/index.d.ts +4 -0
- package/dist/declarations/src/generated/index.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/business-units.d.ts +330 -0
- package/dist/declarations/src/generated/models/business-units.d.ts.map +1 -0
- package/dist/declarations/src/generated/models/common.d.ts +29 -4
- package/dist/declarations/src/generated/models/common.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/customers.d.ts +1 -1
- package/dist/declarations/src/generated/models/importrequests.d.ts +16 -2
- package/dist/declarations/src/generated/models/importrequests.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -104,6 +104,80 @@ class ApiRequest {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
109
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
110
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
111
|
+
*/
|
|
112
|
+
/**
|
|
113
|
+
**/
|
|
114
|
+
class ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder {
|
|
115
|
+
constructor(args) {
|
|
116
|
+
this.args = args;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Creates an Import Request for Business Units.
|
|
120
|
+
*/
|
|
121
|
+
post(methodArgs) {
|
|
122
|
+
return new ApiRequest({
|
|
123
|
+
baseUri: this.args.baseUri,
|
|
124
|
+
method: 'POST',
|
|
125
|
+
uriTemplate: '/{projectKey}/business-units/import-containers/{importContainerKey}',
|
|
126
|
+
pathVariables: this.args.pathArgs,
|
|
127
|
+
headers: {
|
|
128
|
+
'Content-Type': 'application/json',
|
|
129
|
+
...methodArgs?.headers
|
|
130
|
+
},
|
|
131
|
+
body: methodArgs?.body
|
|
132
|
+
}, this.args.executeRequest);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
138
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
139
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
140
|
+
*/
|
|
141
|
+
/**
|
|
142
|
+
**/
|
|
143
|
+
class ByProjectKeyBusinessUnitsImportContainersRequestBuilder {
|
|
144
|
+
constructor(args) {
|
|
145
|
+
this.args = args;
|
|
146
|
+
}
|
|
147
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
148
|
+
return new ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder({
|
|
149
|
+
pathArgs: {
|
|
150
|
+
...this.args.pathArgs,
|
|
151
|
+
...childPathArgs
|
|
152
|
+
},
|
|
153
|
+
executeRequest: this.args.executeRequest,
|
|
154
|
+
baseUri: this.args.baseUri
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
161
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
162
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
163
|
+
*/
|
|
164
|
+
/**
|
|
165
|
+
**/
|
|
166
|
+
class ByProjectKeyBusinessUnitsRequestBuilder {
|
|
167
|
+
constructor(args) {
|
|
168
|
+
this.args = args;
|
|
169
|
+
}
|
|
170
|
+
importContainers() {
|
|
171
|
+
return new ByProjectKeyBusinessUnitsImportContainersRequestBuilder({
|
|
172
|
+
pathArgs: {
|
|
173
|
+
...this.args.pathArgs
|
|
174
|
+
},
|
|
175
|
+
executeRequest: this.args.executeRequest,
|
|
176
|
+
baseUri: this.args.baseUri
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
107
181
|
/**
|
|
108
182
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
109
183
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1626,6 +1700,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1626
1700
|
baseUri: this.args.baseUri
|
|
1627
1701
|
});
|
|
1628
1702
|
}
|
|
1703
|
+
businessUnits() {
|
|
1704
|
+
return new ByProjectKeyBusinessUnitsRequestBuilder({
|
|
1705
|
+
pathArgs: {
|
|
1706
|
+
...this.args.pathArgs
|
|
1707
|
+
},
|
|
1708
|
+
executeRequest: this.args.executeRequest,
|
|
1709
|
+
baseUri: this.args.baseUri
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1629
1712
|
}
|
|
1630
1713
|
|
|
1631
1714
|
class ApiRoot {
|
|
@@ -1646,6 +1729,82 @@ class ApiRoot {
|
|
|
1646
1729
|
}
|
|
1647
1730
|
}
|
|
1648
1731
|
|
|
1732
|
+
/**
|
|
1733
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1734
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1735
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1736
|
+
*/
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* Determines whether the AssociateRoleAssignment can be inherited by child Business Units.
|
|
1740
|
+
*
|
|
1741
|
+
*/
|
|
1742
|
+
let AssociateRoleInheritanceModeValues = /*#__PURE__*/function (AssociateRoleInheritanceModeValues) {
|
|
1743
|
+
AssociateRoleInheritanceModeValues["Disabled"] = "Disabled";
|
|
1744
|
+
AssociateRoleInheritanceModeValues["Enabled"] = "Enabled";
|
|
1745
|
+
return AssociateRoleInheritanceModeValues;
|
|
1746
|
+
}({});
|
|
1747
|
+
/**
|
|
1748
|
+
* Indicates whether the Business Unit can be used.
|
|
1749
|
+
*/
|
|
1750
|
+
let BusinessUnitStatusValues = /*#__PURE__*/function (BusinessUnitStatusValues) {
|
|
1751
|
+
BusinessUnitStatusValues["Active"] = "Active";
|
|
1752
|
+
BusinessUnitStatusValues["Inactive"] = "Inactive";
|
|
1753
|
+
return BusinessUnitStatusValues;
|
|
1754
|
+
}({});
|
|
1755
|
+
let BusinessUnitAssociateModeValues = /*#__PURE__*/function (BusinessUnitAssociateModeValues) {
|
|
1756
|
+
BusinessUnitAssociateModeValues["Explicit"] = "Explicit";
|
|
1757
|
+
BusinessUnitAssociateModeValues["ExplicitAndFromParent"] = "ExplicitAndFromParent";
|
|
1758
|
+
return BusinessUnitAssociateModeValues;
|
|
1759
|
+
}({});
|
|
1760
|
+
/**
|
|
1761
|
+
* Determines whether a Business Unit can inherit [Approval Rules](/projects/approval-rules) from a parent. Only Business Units of type `Division` can use `ExplicitAndFromParent`.
|
|
1762
|
+
*
|
|
1763
|
+
*/
|
|
1764
|
+
let BusinessUnitApprovalRuleModeValues = /*#__PURE__*/function (BusinessUnitApprovalRuleModeValues) {
|
|
1765
|
+
BusinessUnitApprovalRuleModeValues["Explicit"] = "Explicit";
|
|
1766
|
+
BusinessUnitApprovalRuleModeValues["ExplicitAndFromParent"] = "ExplicitAndFromParent";
|
|
1767
|
+
return BusinessUnitApprovalRuleModeValues;
|
|
1768
|
+
}({});
|
|
1769
|
+
/**
|
|
1770
|
+
* Defines whether the Stores of the Business Unit are set directly on the Business Unit or are inherited from its parent unit.
|
|
1771
|
+
*
|
|
1772
|
+
*/
|
|
1773
|
+
let BusinessUnitStoreModeValues = /*#__PURE__*/function (BusinessUnitStoreModeValues) {
|
|
1774
|
+
BusinessUnitStoreModeValues["Explicit"] = "Explicit";
|
|
1775
|
+
BusinessUnitStoreModeValues["FromParent"] = "FromParent";
|
|
1776
|
+
return BusinessUnitStoreModeValues;
|
|
1777
|
+
}({});
|
|
1778
|
+
/**
|
|
1779
|
+
* Defines the type of the Business Unit.
|
|
1780
|
+
*/
|
|
1781
|
+
let BusinessUnitTypeValues = /*#__PURE__*/function (BusinessUnitTypeValues) {
|
|
1782
|
+
BusinessUnitTypeValues["Company"] = "Company";
|
|
1783
|
+
BusinessUnitTypeValues["Division"] = "Division";
|
|
1784
|
+
return BusinessUnitTypeValues;
|
|
1785
|
+
}({});
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* The role of an Associate in a Business Unit.
|
|
1789
|
+
*/
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* Draft for an Associate in a Business Unit.
|
|
1793
|
+
*/
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* Represents the data used to import a BusinessUnit. Can be of type [Company](ctp:api:type:Company) or [Division](ctp:api:type:Division).
|
|
1797
|
+
*
|
|
1798
|
+
*/
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Represents a [Company](ctp:api:type:Company), the top-level of a business.
|
|
1802
|
+
*/
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* Represents a [Division](ctp:api:type:Division), a sub-unit of a [Company](ctp:api:type:Company) or another Division.
|
|
1806
|
+
*/
|
|
1807
|
+
|
|
1649
1808
|
/**
|
|
1650
1809
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1651
1810
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1767,6 +1926,14 @@ class ApiRoot {
|
|
|
1767
1926
|
* Used by the [Import API](/import-export/overview) to identify a Type.
|
|
1768
1927
|
*/
|
|
1769
1928
|
|
|
1929
|
+
/**
|
|
1930
|
+
* References an Associate Role by its key.
|
|
1931
|
+
*/
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* References a business unit by its key.
|
|
1935
|
+
*/
|
|
1936
|
+
|
|
1770
1937
|
/**
|
|
1771
1938
|
* Contains a reference to a resource which does not exist. For example, if a Category is imported with a parent Category that does not exist, the reference to the parent Category is an unresolved reference.
|
|
1772
1939
|
*/
|
|
@@ -1789,10 +1956,11 @@ let MoneyTypeValues = /*#__PURE__*/function (MoneyTypeValues) {
|
|
|
1789
1956
|
*/
|
|
1790
1957
|
|
|
1791
1958
|
/**
|
|
1792
|
-
* The resource
|
|
1959
|
+
* The resource type that can be imported.
|
|
1793
1960
|
*
|
|
1794
1961
|
*/
|
|
1795
1962
|
let ImportResourceTypeValues = /*#__PURE__*/function (ImportResourceTypeValues) {
|
|
1963
|
+
ImportResourceTypeValues["BusinessUnit"] = "business-unit";
|
|
1796
1964
|
ImportResourceTypeValues["Category"] = "category";
|
|
1797
1965
|
ImportResourceTypeValues["Customer"] = "customer";
|
|
1798
1966
|
ImportResourceTypeValues["DiscountCode"] = "discount-code";
|
|
@@ -1815,6 +1983,8 @@ let ImportResourceTypeValues = /*#__PURE__*/function (ImportResourceTypeValues)
|
|
|
1815
1983
|
*
|
|
1816
1984
|
*/
|
|
1817
1985
|
let ReferenceTypeValues = /*#__PURE__*/function (ReferenceTypeValues) {
|
|
1986
|
+
ReferenceTypeValues["AssociateRole"] = "associate-role";
|
|
1987
|
+
ReferenceTypeValues["BusinessUnit"] = "business-unit";
|
|
1818
1988
|
ReferenceTypeValues["Cart"] = "cart";
|
|
1819
1989
|
ReferenceTypeValues["CartDiscount"] = "cart-discount";
|
|
1820
1990
|
ReferenceTypeValues["Category"] = "category";
|
|
@@ -2373,9 +2543,18 @@ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
|
|
|
2373
2543
|
|
|
2374
2544
|
exports.ApiRequest = ApiRequest;
|
|
2375
2545
|
exports.ApiRoot = ApiRoot;
|
|
2546
|
+
exports.AssociateRoleInheritanceModeValues = AssociateRoleInheritanceModeValues;
|
|
2376
2547
|
exports.AttributeConstraintEnumValues = AttributeConstraintEnumValues;
|
|
2377
2548
|
exports.AttributeLevelValues = AttributeLevelValues;
|
|
2378
2549
|
exports.AuthenticationModeValues = AuthenticationModeValues;
|
|
2550
|
+
exports.BusinessUnitApprovalRuleModeValues = BusinessUnitApprovalRuleModeValues;
|
|
2551
|
+
exports.BusinessUnitAssociateModeValues = BusinessUnitAssociateModeValues;
|
|
2552
|
+
exports.BusinessUnitStatusValues = BusinessUnitStatusValues;
|
|
2553
|
+
exports.BusinessUnitStoreModeValues = BusinessUnitStoreModeValues;
|
|
2554
|
+
exports.BusinessUnitTypeValues = BusinessUnitTypeValues;
|
|
2555
|
+
exports.ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder;
|
|
2556
|
+
exports.ByProjectKeyBusinessUnitsImportContainersRequestBuilder = ByProjectKeyBusinessUnitsImportContainersRequestBuilder;
|
|
2557
|
+
exports.ByProjectKeyBusinessUnitsRequestBuilder = ByProjectKeyBusinessUnitsRequestBuilder;
|
|
2379
2558
|
exports.ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder;
|
|
2380
2559
|
exports.ByProjectKeyCategoriesImportContainersRequestBuilder = ByProjectKeyCategoriesImportContainersRequestBuilder;
|
|
2381
2560
|
exports.ByProjectKeyCategoriesRequestBuilder = ByProjectKeyCategoriesRequestBuilder;
|
|
@@ -104,6 +104,80 @@ class ApiRequest {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
109
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
110
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
111
|
+
*/
|
|
112
|
+
/**
|
|
113
|
+
**/
|
|
114
|
+
class ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder {
|
|
115
|
+
constructor(args) {
|
|
116
|
+
this.args = args;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Creates an Import Request for Business Units.
|
|
120
|
+
*/
|
|
121
|
+
post(methodArgs) {
|
|
122
|
+
return new ApiRequest({
|
|
123
|
+
baseUri: this.args.baseUri,
|
|
124
|
+
method: 'POST',
|
|
125
|
+
uriTemplate: '/{projectKey}/business-units/import-containers/{importContainerKey}',
|
|
126
|
+
pathVariables: this.args.pathArgs,
|
|
127
|
+
headers: {
|
|
128
|
+
'Content-Type': 'application/json',
|
|
129
|
+
...methodArgs?.headers
|
|
130
|
+
},
|
|
131
|
+
body: methodArgs?.body
|
|
132
|
+
}, this.args.executeRequest);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
138
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
139
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
140
|
+
*/
|
|
141
|
+
/**
|
|
142
|
+
**/
|
|
143
|
+
class ByProjectKeyBusinessUnitsImportContainersRequestBuilder {
|
|
144
|
+
constructor(args) {
|
|
145
|
+
this.args = args;
|
|
146
|
+
}
|
|
147
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
148
|
+
return new ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder({
|
|
149
|
+
pathArgs: {
|
|
150
|
+
...this.args.pathArgs,
|
|
151
|
+
...childPathArgs
|
|
152
|
+
},
|
|
153
|
+
executeRequest: this.args.executeRequest,
|
|
154
|
+
baseUri: this.args.baseUri
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
161
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
162
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
163
|
+
*/
|
|
164
|
+
/**
|
|
165
|
+
**/
|
|
166
|
+
class ByProjectKeyBusinessUnitsRequestBuilder {
|
|
167
|
+
constructor(args) {
|
|
168
|
+
this.args = args;
|
|
169
|
+
}
|
|
170
|
+
importContainers() {
|
|
171
|
+
return new ByProjectKeyBusinessUnitsImportContainersRequestBuilder({
|
|
172
|
+
pathArgs: {
|
|
173
|
+
...this.args.pathArgs
|
|
174
|
+
},
|
|
175
|
+
executeRequest: this.args.executeRequest,
|
|
176
|
+
baseUri: this.args.baseUri
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
107
181
|
/**
|
|
108
182
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
109
183
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1626,6 +1700,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1626
1700
|
baseUri: this.args.baseUri
|
|
1627
1701
|
});
|
|
1628
1702
|
}
|
|
1703
|
+
businessUnits() {
|
|
1704
|
+
return new ByProjectKeyBusinessUnitsRequestBuilder({
|
|
1705
|
+
pathArgs: {
|
|
1706
|
+
...this.args.pathArgs
|
|
1707
|
+
},
|
|
1708
|
+
executeRequest: this.args.executeRequest,
|
|
1709
|
+
baseUri: this.args.baseUri
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1629
1712
|
}
|
|
1630
1713
|
|
|
1631
1714
|
class ApiRoot {
|
|
@@ -1646,6 +1729,82 @@ class ApiRoot {
|
|
|
1646
1729
|
}
|
|
1647
1730
|
}
|
|
1648
1731
|
|
|
1732
|
+
/**
|
|
1733
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1734
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1735
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1736
|
+
*/
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* Determines whether the AssociateRoleAssignment can be inherited by child Business Units.
|
|
1740
|
+
*
|
|
1741
|
+
*/
|
|
1742
|
+
let AssociateRoleInheritanceModeValues = /*#__PURE__*/function (AssociateRoleInheritanceModeValues) {
|
|
1743
|
+
AssociateRoleInheritanceModeValues["Disabled"] = "Disabled";
|
|
1744
|
+
AssociateRoleInheritanceModeValues["Enabled"] = "Enabled";
|
|
1745
|
+
return AssociateRoleInheritanceModeValues;
|
|
1746
|
+
}({});
|
|
1747
|
+
/**
|
|
1748
|
+
* Indicates whether the Business Unit can be used.
|
|
1749
|
+
*/
|
|
1750
|
+
let BusinessUnitStatusValues = /*#__PURE__*/function (BusinessUnitStatusValues) {
|
|
1751
|
+
BusinessUnitStatusValues["Active"] = "Active";
|
|
1752
|
+
BusinessUnitStatusValues["Inactive"] = "Inactive";
|
|
1753
|
+
return BusinessUnitStatusValues;
|
|
1754
|
+
}({});
|
|
1755
|
+
let BusinessUnitAssociateModeValues = /*#__PURE__*/function (BusinessUnitAssociateModeValues) {
|
|
1756
|
+
BusinessUnitAssociateModeValues["Explicit"] = "Explicit";
|
|
1757
|
+
BusinessUnitAssociateModeValues["ExplicitAndFromParent"] = "ExplicitAndFromParent";
|
|
1758
|
+
return BusinessUnitAssociateModeValues;
|
|
1759
|
+
}({});
|
|
1760
|
+
/**
|
|
1761
|
+
* Determines whether a Business Unit can inherit [Approval Rules](/projects/approval-rules) from a parent. Only Business Units of type `Division` can use `ExplicitAndFromParent`.
|
|
1762
|
+
*
|
|
1763
|
+
*/
|
|
1764
|
+
let BusinessUnitApprovalRuleModeValues = /*#__PURE__*/function (BusinessUnitApprovalRuleModeValues) {
|
|
1765
|
+
BusinessUnitApprovalRuleModeValues["Explicit"] = "Explicit";
|
|
1766
|
+
BusinessUnitApprovalRuleModeValues["ExplicitAndFromParent"] = "ExplicitAndFromParent";
|
|
1767
|
+
return BusinessUnitApprovalRuleModeValues;
|
|
1768
|
+
}({});
|
|
1769
|
+
/**
|
|
1770
|
+
* Defines whether the Stores of the Business Unit are set directly on the Business Unit or are inherited from its parent unit.
|
|
1771
|
+
*
|
|
1772
|
+
*/
|
|
1773
|
+
let BusinessUnitStoreModeValues = /*#__PURE__*/function (BusinessUnitStoreModeValues) {
|
|
1774
|
+
BusinessUnitStoreModeValues["Explicit"] = "Explicit";
|
|
1775
|
+
BusinessUnitStoreModeValues["FromParent"] = "FromParent";
|
|
1776
|
+
return BusinessUnitStoreModeValues;
|
|
1777
|
+
}({});
|
|
1778
|
+
/**
|
|
1779
|
+
* Defines the type of the Business Unit.
|
|
1780
|
+
*/
|
|
1781
|
+
let BusinessUnitTypeValues = /*#__PURE__*/function (BusinessUnitTypeValues) {
|
|
1782
|
+
BusinessUnitTypeValues["Company"] = "Company";
|
|
1783
|
+
BusinessUnitTypeValues["Division"] = "Division";
|
|
1784
|
+
return BusinessUnitTypeValues;
|
|
1785
|
+
}({});
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* The role of an Associate in a Business Unit.
|
|
1789
|
+
*/
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* Draft for an Associate in a Business Unit.
|
|
1793
|
+
*/
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* Represents the data used to import a BusinessUnit. Can be of type [Company](ctp:api:type:Company) or [Division](ctp:api:type:Division).
|
|
1797
|
+
*
|
|
1798
|
+
*/
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Represents a [Company](ctp:api:type:Company), the top-level of a business.
|
|
1802
|
+
*/
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* Represents a [Division](ctp:api:type:Division), a sub-unit of a [Company](ctp:api:type:Company) or another Division.
|
|
1806
|
+
*/
|
|
1807
|
+
|
|
1649
1808
|
/**
|
|
1650
1809
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1651
1810
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1767,6 +1926,14 @@ class ApiRoot {
|
|
|
1767
1926
|
* Used by the [Import API](/import-export/overview) to identify a Type.
|
|
1768
1927
|
*/
|
|
1769
1928
|
|
|
1929
|
+
/**
|
|
1930
|
+
* References an Associate Role by its key.
|
|
1931
|
+
*/
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* References a business unit by its key.
|
|
1935
|
+
*/
|
|
1936
|
+
|
|
1770
1937
|
/**
|
|
1771
1938
|
* Contains a reference to a resource which does not exist. For example, if a Category is imported with a parent Category that does not exist, the reference to the parent Category is an unresolved reference.
|
|
1772
1939
|
*/
|
|
@@ -1789,10 +1956,11 @@ let MoneyTypeValues = /*#__PURE__*/function (MoneyTypeValues) {
|
|
|
1789
1956
|
*/
|
|
1790
1957
|
|
|
1791
1958
|
/**
|
|
1792
|
-
* The resource
|
|
1959
|
+
* The resource type that can be imported.
|
|
1793
1960
|
*
|
|
1794
1961
|
*/
|
|
1795
1962
|
let ImportResourceTypeValues = /*#__PURE__*/function (ImportResourceTypeValues) {
|
|
1963
|
+
ImportResourceTypeValues["BusinessUnit"] = "business-unit";
|
|
1796
1964
|
ImportResourceTypeValues["Category"] = "category";
|
|
1797
1965
|
ImportResourceTypeValues["Customer"] = "customer";
|
|
1798
1966
|
ImportResourceTypeValues["DiscountCode"] = "discount-code";
|
|
@@ -1815,6 +1983,8 @@ let ImportResourceTypeValues = /*#__PURE__*/function (ImportResourceTypeValues)
|
|
|
1815
1983
|
*
|
|
1816
1984
|
*/
|
|
1817
1985
|
let ReferenceTypeValues = /*#__PURE__*/function (ReferenceTypeValues) {
|
|
1986
|
+
ReferenceTypeValues["AssociateRole"] = "associate-role";
|
|
1987
|
+
ReferenceTypeValues["BusinessUnit"] = "business-unit";
|
|
1818
1988
|
ReferenceTypeValues["Cart"] = "cart";
|
|
1819
1989
|
ReferenceTypeValues["CartDiscount"] = "cart-discount";
|
|
1820
1990
|
ReferenceTypeValues["Category"] = "category";
|
|
@@ -2373,9 +2543,18 @@ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
|
|
|
2373
2543
|
|
|
2374
2544
|
exports.ApiRequest = ApiRequest;
|
|
2375
2545
|
exports.ApiRoot = ApiRoot;
|
|
2546
|
+
exports.AssociateRoleInheritanceModeValues = AssociateRoleInheritanceModeValues;
|
|
2376
2547
|
exports.AttributeConstraintEnumValues = AttributeConstraintEnumValues;
|
|
2377
2548
|
exports.AttributeLevelValues = AttributeLevelValues;
|
|
2378
2549
|
exports.AuthenticationModeValues = AuthenticationModeValues;
|
|
2550
|
+
exports.BusinessUnitApprovalRuleModeValues = BusinessUnitApprovalRuleModeValues;
|
|
2551
|
+
exports.BusinessUnitAssociateModeValues = BusinessUnitAssociateModeValues;
|
|
2552
|
+
exports.BusinessUnitStatusValues = BusinessUnitStatusValues;
|
|
2553
|
+
exports.BusinessUnitStoreModeValues = BusinessUnitStoreModeValues;
|
|
2554
|
+
exports.BusinessUnitTypeValues = BusinessUnitTypeValues;
|
|
2555
|
+
exports.ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder;
|
|
2556
|
+
exports.ByProjectKeyBusinessUnitsImportContainersRequestBuilder = ByProjectKeyBusinessUnitsImportContainersRequestBuilder;
|
|
2557
|
+
exports.ByProjectKeyBusinessUnitsRequestBuilder = ByProjectKeyBusinessUnitsRequestBuilder;
|
|
2379
2558
|
exports.ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder;
|
|
2380
2559
|
exports.ByProjectKeyCategoriesImportContainersRequestBuilder = ByProjectKeyCategoriesImportContainersRequestBuilder;
|
|
2381
2560
|
exports.ByProjectKeyCategoriesRequestBuilder = ByProjectKeyCategoriesRequestBuilder;
|