@commercetools/importapi-sdk 6.5.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.
Files changed (26) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/commercetools-importapi-sdk.browser.cjs.js +180 -1
  3. package/dist/commercetools-importapi-sdk.browser.esm.js +172 -2
  4. package/dist/commercetools-importapi-sdk.cjs.dev.js +180 -1
  5. package/dist/commercetools-importapi-sdk.cjs.prod.js +180 -1
  6. package/dist/commercetools-importapi-sdk.esm.js +172 -2
  7. package/dist/declarations/src/generated/client/business-units/by-project-key-business-units-request-builder.d.ts +27 -0
  8. package/dist/declarations/src/generated/client/business-units/by-project-key-business-units-request-builder.d.ts.map +1 -0
  9. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +2 -0
  10. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts.map +1 -1
  11. 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
  12. 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
  13. package/dist/declarations/src/generated/client/import-containers/by-project-key-business-units-import-containers-request-builder.d.ts +29 -0
  14. package/dist/declarations/src/generated/client/import-containers/by-project-key-business-units-import-containers-request-builder.d.ts.map +1 -0
  15. package/dist/declarations/src/generated/index.d.ts +4 -0
  16. package/dist/declarations/src/generated/index.d.ts.map +1 -1
  17. package/dist/declarations/src/generated/models/business-units.d.ts +330 -0
  18. package/dist/declarations/src/generated/models/business-units.d.ts.map +1 -0
  19. package/dist/declarations/src/generated/models/common.d.ts +29 -4
  20. package/dist/declarations/src/generated/models/common.d.ts.map +1 -1
  21. package/dist/declarations/src/generated/models/customers.d.ts +1 -1
  22. package/dist/declarations/src/generated/models/importrequests.d.ts +16 -2
  23. package/dist/declarations/src/generated/models/importrequests.d.ts.map +1 -1
  24. package/dist/declarations/src/generated/shared/utils/common-types.d.ts +29 -1
  25. package/dist/declarations/src/generated/shared/utils/common-types.d.ts.map +1 -1
  26. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # @commercetools/importapi-sdk
2
2
 
3
+ ## 6.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1151](https://github.com/commercetools/commercetools-sdk-typescript/pull/1151) [`55ba0ac`](https://github.com/commercetools/commercetools-sdk-typescript/commit/55ba0acd11fbd95b56bb75c93a7310850a95b4b8) Thanks [@ct-sdks](https://github.com/apps/ct-sdks)! - **Import changes**
8
+
9
+ <details>
10
+ <summary>Added Type(s)</summary>
11
+
12
+ - added type `AssociateRoleKeyReference`
13
+ - added type `BusinessUnitKeyReference`
14
+ - added type `BusinessUnitImportRequest`
15
+ - added type `AssociateRoleInheritanceMode`
16
+ - added type `BusinessUnitStatus`
17
+ - added type `BusinessUnitAssociateMode`
18
+ - added type `BusinessUnitApprovalRuleMode`
19
+ - added type `BusinessUnitStoreMode`
20
+ - added type `BusinessUnitType`
21
+ - added type `AssociateRoleAssignmentDraft`
22
+ - added type `AssociateDraft`
23
+ - added type `BusinessUnitImport`
24
+ - added type `CompanyBusinessUnitImport`
25
+ - added type `DivisionBusinessUnitImport`
26
+ </details>
27
+
28
+ <details>
29
+ <summary>Added Resource(s)</summary>
30
+
31
+ - added resource `/{projectKey}/business-units`
32
+ - added resource `/{projectKey}/business-units/import-containers`
33
+ - added resource `/{projectKey}/business-units/import-containers/{importContainerKey}`
34
+ </details>
35
+
36
+ <details>
37
+ <summary>Added Method(s)</summary>
38
+
39
+ - added method `apiRoot.withProjectKeyValue().businessUnits().importContainers().withImportContainerKeyValue().post()`
40
+ </details>
41
+
42
+ <details>
43
+ <summary>Added Enum(s)</summary>
44
+
45
+ - added enum `business-unit` to type `ImportResourceType`
46
+ - added enum `associate-role` to type `ReferenceType`
47
+ - added enum `business-unit` to type `ReferenceType`
48
+ </details>
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [[`0a6ea36`](https://github.com/commercetools/commercetools-sdk-typescript/commit/0a6ea364b2acd57d5e517ca21511de5f77bca6f0)]:
53
+ - @commercetools/ts-client@4.2.1
54
+
55
+ ## 6.6.0
56
+
57
+ ### Minor Changes
58
+
59
+ - [#1140](https://github.com/commercetools/commercetools-sdk-typescript/pull/1140) [`7c8b972`](https://github.com/commercetools/commercetools-sdk-typescript/commit/7c8b9720037996099ebed2c8b1f72d1bc480a894) Thanks [@ajimae](https://github.com/ajimae)! - Update and unify common type definitions
60
+
3
61
  ## 6.5.0
4
62
 
5
63
  ### Minor Changes
@@ -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 types that can be imported.
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;
@@ -100,6 +100,80 @@ class ApiRequest {
100
100
  }
101
101
  }
102
102
 
103
+ /**
104
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
105
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
106
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
107
+ */
108
+ /**
109
+ **/
110
+ class ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder {
111
+ constructor(args) {
112
+ this.args = args;
113
+ }
114
+ /**
115
+ * Creates an Import Request for Business Units.
116
+ */
117
+ post(methodArgs) {
118
+ return new ApiRequest({
119
+ baseUri: this.args.baseUri,
120
+ method: 'POST',
121
+ uriTemplate: '/{projectKey}/business-units/import-containers/{importContainerKey}',
122
+ pathVariables: this.args.pathArgs,
123
+ headers: {
124
+ 'Content-Type': 'application/json',
125
+ ...methodArgs?.headers
126
+ },
127
+ body: methodArgs?.body
128
+ }, this.args.executeRequest);
129
+ }
130
+ }
131
+
132
+ /**
133
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
134
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
135
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
136
+ */
137
+ /**
138
+ **/
139
+ class ByProjectKeyBusinessUnitsImportContainersRequestBuilder {
140
+ constructor(args) {
141
+ this.args = args;
142
+ }
143
+ withImportContainerKeyValue(childPathArgs) {
144
+ return new ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder({
145
+ pathArgs: {
146
+ ...this.args.pathArgs,
147
+ ...childPathArgs
148
+ },
149
+ executeRequest: this.args.executeRequest,
150
+ baseUri: this.args.baseUri
151
+ });
152
+ }
153
+ }
154
+
155
+ /**
156
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
157
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
158
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
159
+ */
160
+ /**
161
+ **/
162
+ class ByProjectKeyBusinessUnitsRequestBuilder {
163
+ constructor(args) {
164
+ this.args = args;
165
+ }
166
+ importContainers() {
167
+ return new ByProjectKeyBusinessUnitsImportContainersRequestBuilder({
168
+ pathArgs: {
169
+ ...this.args.pathArgs
170
+ },
171
+ executeRequest: this.args.executeRequest,
172
+ baseUri: this.args.baseUri
173
+ });
174
+ }
175
+ }
176
+
103
177
  /**
104
178
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
105
179
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -1622,6 +1696,15 @@ class ByProjectKeyRequestBuilder {
1622
1696
  baseUri: this.args.baseUri
1623
1697
  });
1624
1698
  }
1699
+ businessUnits() {
1700
+ return new ByProjectKeyBusinessUnitsRequestBuilder({
1701
+ pathArgs: {
1702
+ ...this.args.pathArgs
1703
+ },
1704
+ executeRequest: this.args.executeRequest,
1705
+ baseUri: this.args.baseUri
1706
+ });
1707
+ }
1625
1708
  }
1626
1709
 
1627
1710
  class ApiRoot {
@@ -1642,6 +1725,82 @@ class ApiRoot {
1642
1725
  }
1643
1726
  }
1644
1727
 
1728
+ /**
1729
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1730
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1731
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1732
+ */
1733
+
1734
+ /**
1735
+ * Determines whether the AssociateRoleAssignment can be inherited by child Business Units.
1736
+ *
1737
+ */
1738
+ let AssociateRoleInheritanceModeValues = /*#__PURE__*/function (AssociateRoleInheritanceModeValues) {
1739
+ AssociateRoleInheritanceModeValues["Disabled"] = "Disabled";
1740
+ AssociateRoleInheritanceModeValues["Enabled"] = "Enabled";
1741
+ return AssociateRoleInheritanceModeValues;
1742
+ }({});
1743
+ /**
1744
+ * Indicates whether the Business Unit can be used.
1745
+ */
1746
+ let BusinessUnitStatusValues = /*#__PURE__*/function (BusinessUnitStatusValues) {
1747
+ BusinessUnitStatusValues["Active"] = "Active";
1748
+ BusinessUnitStatusValues["Inactive"] = "Inactive";
1749
+ return BusinessUnitStatusValues;
1750
+ }({});
1751
+ let BusinessUnitAssociateModeValues = /*#__PURE__*/function (BusinessUnitAssociateModeValues) {
1752
+ BusinessUnitAssociateModeValues["Explicit"] = "Explicit";
1753
+ BusinessUnitAssociateModeValues["ExplicitAndFromParent"] = "ExplicitAndFromParent";
1754
+ return BusinessUnitAssociateModeValues;
1755
+ }({});
1756
+ /**
1757
+ * Determines whether a Business Unit can inherit [Approval Rules](/projects/approval-rules) from a parent. Only Business Units of type `Division` can use `ExplicitAndFromParent`.
1758
+ *
1759
+ */
1760
+ let BusinessUnitApprovalRuleModeValues = /*#__PURE__*/function (BusinessUnitApprovalRuleModeValues) {
1761
+ BusinessUnitApprovalRuleModeValues["Explicit"] = "Explicit";
1762
+ BusinessUnitApprovalRuleModeValues["ExplicitAndFromParent"] = "ExplicitAndFromParent";
1763
+ return BusinessUnitApprovalRuleModeValues;
1764
+ }({});
1765
+ /**
1766
+ * Defines whether the Stores of the Business Unit are set directly on the Business Unit or are inherited from its parent unit.
1767
+ *
1768
+ */
1769
+ let BusinessUnitStoreModeValues = /*#__PURE__*/function (BusinessUnitStoreModeValues) {
1770
+ BusinessUnitStoreModeValues["Explicit"] = "Explicit";
1771
+ BusinessUnitStoreModeValues["FromParent"] = "FromParent";
1772
+ return BusinessUnitStoreModeValues;
1773
+ }({});
1774
+ /**
1775
+ * Defines the type of the Business Unit.
1776
+ */
1777
+ let BusinessUnitTypeValues = /*#__PURE__*/function (BusinessUnitTypeValues) {
1778
+ BusinessUnitTypeValues["Company"] = "Company";
1779
+ BusinessUnitTypeValues["Division"] = "Division";
1780
+ return BusinessUnitTypeValues;
1781
+ }({});
1782
+
1783
+ /**
1784
+ * The role of an Associate in a Business Unit.
1785
+ */
1786
+
1787
+ /**
1788
+ * Draft for an Associate in a Business Unit.
1789
+ */
1790
+
1791
+ /**
1792
+ * Represents the data used to import a BusinessUnit. Can be of type [Company](ctp:api:type:Company) or [Division](ctp:api:type:Division).
1793
+ *
1794
+ */
1795
+
1796
+ /**
1797
+ * Represents a [Company](ctp:api:type:Company), the top-level of a business.
1798
+ */
1799
+
1800
+ /**
1801
+ * Represents a [Division](ctp:api:type:Division), a sub-unit of a [Company](ctp:api:type:Company) or another Division.
1802
+ */
1803
+
1645
1804
  /**
1646
1805
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1647
1806
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -1763,6 +1922,14 @@ class ApiRoot {
1763
1922
  * Used by the [Import API](/import-export/overview) to identify a Type.
1764
1923
  */
1765
1924
 
1925
+ /**
1926
+ * References an Associate Role by its key.
1927
+ */
1928
+
1929
+ /**
1930
+ * References a business unit by its key.
1931
+ */
1932
+
1766
1933
  /**
1767
1934
  * 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.
1768
1935
  */
@@ -1785,10 +1952,11 @@ let MoneyTypeValues = /*#__PURE__*/function (MoneyTypeValues) {
1785
1952
  */
1786
1953
 
1787
1954
  /**
1788
- * The resource types that can be imported.
1955
+ * The resource type that can be imported.
1789
1956
  *
1790
1957
  */
1791
1958
  let ImportResourceTypeValues = /*#__PURE__*/function (ImportResourceTypeValues) {
1959
+ ImportResourceTypeValues["BusinessUnit"] = "business-unit";
1792
1960
  ImportResourceTypeValues["Category"] = "category";
1793
1961
  ImportResourceTypeValues["Customer"] = "customer";
1794
1962
  ImportResourceTypeValues["DiscountCode"] = "discount-code";
@@ -1811,6 +1979,8 @@ let ImportResourceTypeValues = /*#__PURE__*/function (ImportResourceTypeValues)
1811
1979
  *
1812
1980
  */
1813
1981
  let ReferenceTypeValues = /*#__PURE__*/function (ReferenceTypeValues) {
1982
+ ReferenceTypeValues["AssociateRole"] = "associate-role";
1983
+ ReferenceTypeValues["BusinessUnit"] = "business-unit";
1814
1984
  ReferenceTypeValues["Cart"] = "cart";
1815
1985
  ReferenceTypeValues["CartDiscount"] = "cart-discount";
1816
1986
  ReferenceTypeValues["Category"] = "category";
@@ -2367,4 +2537,4 @@ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
2367
2537
  });
2368
2538
  }
2369
2539
 
2370
- export { ApiRequest, ApiRoot, AttributeConstraintEnumValues, AttributeLevelValues, AuthenticationModeValues, ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCategoriesImportContainersRequestBuilder, ByProjectKeyCategoriesRequestBuilder, ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCustomersImportContainersRequestBuilder, ByProjectKeyCustomersRequestBuilder, ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyDiscountCodesImportContainersRequestBuilder, ByProjectKeyDiscountCodesRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyImportContainersRequestBuilder, ByProjectKeyImportOperationsByIdRequestBuilder, ByProjectKeyImportOperationsRequestBuilder, ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyInventoriesImportContainersRequestBuilder, ByProjectKeyInventoriesRequestBuilder, ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrderPatchesImportContainersRequestBuilder, ByProjectKeyOrderPatchesRequestBuilder, ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrdersImportContainersRequestBuilder, ByProjectKeyOrdersRequestBuilder, ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyPricesImportContainersRequestBuilder, ByProjectKeyPricesRequestBuilder, ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductDraftsImportContainersRequestBuilder, ByProjectKeyProductDraftsRequestBuilder, ByProjectKeyProductSelectionsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductSelectionsImportContainersRequestBuilder, ByProjectKeyProductSelectionsRequestBuilder, ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductTypesImportContainersRequestBuilder, ByProjectKeyProductTypesRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersRequestBuilder, ByProjectKeyProductVariantPatchesRequestBuilder, ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantsImportContainersRequestBuilder, ByProjectKeyProductVariantsRequestBuilder, ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductsImportContainersRequestBuilder, ByProjectKeyProductsRequestBuilder, ByProjectKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersRequestBuilder, ByProjectKeyStandalonePricesRequestBuilder, ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyTypesImportContainersRequestBuilder, ByProjectKeyTypesRequestBuilder, CartOriginValues, CustomFieldReferenceValueValues, DiscountCodeStateValues, ImportOperationStateValues, ImportResourceTypeValues, InventoryModeValues, MoneyTypeValues, OrderStateValues, PaymentStateValues, ProcessingStateValues, ProductPriceModeEnumValues, ProductSelectionModeValues, ReferenceTypeValues, ResourceTypeIdValues, ReturnShipmentStateValues, RoundingModeValues, ShipmentStateValues, ShippingMethodStateValues, ShippingRateInputTypeValues, ShippingRateTierTypeValues, StrategyEnumValues, TaxCalculationModeValues, TaxModeValues, TextInputHintValues, TypeTextInputHintValues, VariantSelectionTypeValues, buildRelativeUri, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };
2540
+ export { ApiRequest, ApiRoot, AssociateRoleInheritanceModeValues, AttributeConstraintEnumValues, AttributeLevelValues, AuthenticationModeValues, BusinessUnitApprovalRuleModeValues, BusinessUnitAssociateModeValues, BusinessUnitStatusValues, BusinessUnitStoreModeValues, BusinessUnitTypeValues, ByProjectKeyBusinessUnitsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyBusinessUnitsImportContainersRequestBuilder, ByProjectKeyBusinessUnitsRequestBuilder, ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCategoriesImportContainersRequestBuilder, ByProjectKeyCategoriesRequestBuilder, ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCustomersImportContainersRequestBuilder, ByProjectKeyCustomersRequestBuilder, ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyDiscountCodesImportContainersRequestBuilder, ByProjectKeyDiscountCodesRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyImportContainersRequestBuilder, ByProjectKeyImportOperationsByIdRequestBuilder, ByProjectKeyImportOperationsRequestBuilder, ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyInventoriesImportContainersRequestBuilder, ByProjectKeyInventoriesRequestBuilder, ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrderPatchesImportContainersRequestBuilder, ByProjectKeyOrderPatchesRequestBuilder, ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrdersImportContainersRequestBuilder, ByProjectKeyOrdersRequestBuilder, ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyPricesImportContainersRequestBuilder, ByProjectKeyPricesRequestBuilder, ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductDraftsImportContainersRequestBuilder, ByProjectKeyProductDraftsRequestBuilder, ByProjectKeyProductSelectionsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductSelectionsImportContainersRequestBuilder, ByProjectKeyProductSelectionsRequestBuilder, ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductTypesImportContainersRequestBuilder, ByProjectKeyProductTypesRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersRequestBuilder, ByProjectKeyProductVariantPatchesRequestBuilder, ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantsImportContainersRequestBuilder, ByProjectKeyProductVariantsRequestBuilder, ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductsImportContainersRequestBuilder, ByProjectKeyProductsRequestBuilder, ByProjectKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersRequestBuilder, ByProjectKeyStandalonePricesRequestBuilder, ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyTypesImportContainersRequestBuilder, ByProjectKeyTypesRequestBuilder, CartOriginValues, CustomFieldReferenceValueValues, DiscountCodeStateValues, ImportOperationStateValues, ImportResourceTypeValues, InventoryModeValues, MoneyTypeValues, OrderStateValues, PaymentStateValues, ProcessingStateValues, ProductPriceModeEnumValues, ProductSelectionModeValues, ReferenceTypeValues, ResourceTypeIdValues, ReturnShipmentStateValues, RoundingModeValues, ShipmentStateValues, ShippingMethodStateValues, ShippingRateInputTypeValues, ShippingRateTierTypeValues, StrategyEnumValues, TaxCalculationModeValues, TaxModeValues, TextInputHintValues, TypeTextInputHintValues, VariantSelectionTypeValues, buildRelativeUri, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };