@commercetools/history-sdk 3.5.0 → 3.6.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 +20 -0
- package/dist/declarations/src/generated/client/by-project-key-by-resource-type-by-id-request-builder.d.ts +3 -2
- package/dist/declarations/src/generated/client/by-project-key-by-resource-type-request-builder.d.ts +3 -2
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +3 -2
- package/dist/declarations/src/generated/models/change-history.d.ts +13 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @commercetools/history-sdk
|
|
2
2
|
|
|
3
|
+
## 3.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0e0c5bf`](https://github.com/commercetools/commercetools-sdk-typescript/commit/0e0c5bfc7e9f9c0c30dfdd520aed768122c7933d) Thanks [@jenschude](https://github.com/jenschude)! - **History changes**
|
|
8
|
+
|
|
9
|
+
<details>
|
|
10
|
+
<summary>Added QueryParameter(s)</summary>
|
|
11
|
+
|
|
12
|
+
- added query parameter `associateId` to method `get /{projectKey}`
|
|
13
|
+
- added query parameter `associateId` to method `get /{projectKey}/{resourceType}`
|
|
14
|
+
- added query parameter `associateId` to method `get /{projectKey}/{resourceType}/{ID}`
|
|
15
|
+
</details>
|
|
16
|
+
|
|
17
|
+
<details>
|
|
18
|
+
<summary>Added Property(s)</summary>
|
|
19
|
+
|
|
20
|
+
- added property `associate` to type `ModifiedBy`
|
|
21
|
+
</details>
|
|
22
|
+
|
|
3
23
|
## 3.5.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -37,12 +37,13 @@ export declare class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
|
37
37
|
limit?: number;
|
|
38
38
|
offset?: number;
|
|
39
39
|
userId?: string;
|
|
40
|
-
type?: string;
|
|
41
40
|
clientId?: string;
|
|
41
|
+
customerId?: string;
|
|
42
|
+
associateId?: string;
|
|
43
|
+
type?: string;
|
|
42
44
|
source?: string;
|
|
43
45
|
changes?: string | string[];
|
|
44
46
|
stores?: string | string[];
|
|
45
|
-
customerId?: string;
|
|
46
47
|
excludePlatformInitiatedChanges?: PlatformInitiatedChange | PlatformInitiatedChange[];
|
|
47
48
|
expand?: boolean;
|
|
48
49
|
[key: string]: QueryParam;
|
package/dist/declarations/src/generated/client/by-project-key-by-resource-type-request-builder.d.ts
CHANGED
|
@@ -39,13 +39,14 @@ export declare class ByProjectKeyByResourceTypeRequestBuilder {
|
|
|
39
39
|
limit?: number;
|
|
40
40
|
offset?: number;
|
|
41
41
|
userId?: string;
|
|
42
|
-
type?: string;
|
|
43
42
|
clientId?: string;
|
|
43
|
+
customerId?: string;
|
|
44
|
+
associateId?: string;
|
|
45
|
+
type?: string;
|
|
44
46
|
resourceKey?: string;
|
|
45
47
|
source?: string;
|
|
46
48
|
changes?: string | string[];
|
|
47
49
|
stores?: string | string[];
|
|
48
|
-
customerId?: string;
|
|
49
50
|
excludePlatformInitiatedChanges?: PlatformInitiatedChange | PlatformInitiatedChange[];
|
|
50
51
|
expand?: boolean;
|
|
51
52
|
[key: string]: QueryParam;
|
|
@@ -38,14 +38,15 @@ export declare class ByProjectKeyRequestBuilder {
|
|
|
38
38
|
limit?: number;
|
|
39
39
|
offset?: number;
|
|
40
40
|
userId?: string;
|
|
41
|
-
type?: string;
|
|
42
41
|
clientId?: string;
|
|
42
|
+
customerId?: string;
|
|
43
|
+
associateId?: string;
|
|
44
|
+
type?: string;
|
|
43
45
|
resourceId?: string;
|
|
44
46
|
resourceKey?: string;
|
|
45
47
|
source?: string;
|
|
46
48
|
changes?: string | string[];
|
|
47
49
|
stores?: string | string[];
|
|
48
|
-
customerId?: string;
|
|
49
50
|
excludePlatformInitiatedChanges?: PlatformInitiatedChange | PlatformInitiatedChange[];
|
|
50
51
|
expand?: boolean;
|
|
51
52
|
[key: string]: QueryParam;
|
|
@@ -180,18 +180,19 @@ export interface ModifiedBy {
|
|
|
180
180
|
*
|
|
181
181
|
* - If the change was made by a user, the value is `"user"`.
|
|
182
182
|
* - If the change was made by an API Client with or without an [external user ID](/client-logging#external-user-ids), the value is `"external-user"`.
|
|
183
|
+
* - If the change was made by an [Associate](ctp:api:type:Associate), the value is `"associate"`.
|
|
183
184
|
*
|
|
184
185
|
*
|
|
185
186
|
*/
|
|
186
187
|
readonly type: string;
|
|
187
188
|
/**
|
|
188
|
-
* [
|
|
189
|
+
* [ID](/general-concepts#identifier) of the [API Client](ctp:api:type:ApiClient) that made the change.
|
|
189
190
|
*
|
|
190
|
-
* Present only if the change was made using
|
|
191
|
+
* Present only if the change was made using an API Client.
|
|
191
192
|
*
|
|
192
193
|
*
|
|
193
194
|
*/
|
|
194
|
-
readonly
|
|
195
|
+
readonly clientId?: string;
|
|
195
196
|
/**
|
|
196
197
|
* Present only if the change was made using a token from an [anonymous session](/authorization#tokens-for-anonymous-sessions).
|
|
197
198
|
*
|
|
@@ -199,13 +200,19 @@ export interface ModifiedBy {
|
|
|
199
200
|
*/
|
|
200
201
|
readonly anonymousId?: string;
|
|
201
202
|
/**
|
|
202
|
-
*
|
|
203
|
+
* The [Customer](ctp:api:type:Customer) who made the change.
|
|
203
204
|
*
|
|
204
|
-
* Present only if the change was made using
|
|
205
|
+
* Present only if the change was made using a token from the [password flow](/authorization#password-flow).
|
|
205
206
|
*
|
|
206
207
|
*
|
|
207
208
|
*/
|
|
208
|
-
readonly
|
|
209
|
+
readonly customer?: Reference;
|
|
210
|
+
/**
|
|
211
|
+
* The [Associate](ctp:api:type:Associate) who made the change in the context of a [Business Unit](ctp:api:type:BusinessUnit). Present only if the Associate acts on behalf of a company using the [associate endpoints](/associates-overview#on-the-associate-endpoints).
|
|
212
|
+
*
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
readonly associate?: Reference;
|
|
209
216
|
/**
|
|
210
217
|
* `true` if the change was made using the Merchant Center or [ImpEx](https://impex.europe-west1.gcp.commercetools.com/).
|
|
211
218
|
*
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@commercetools/history-sdk",
|
|
7
|
-
"version": "3.
|
|
7
|
+
"version": "3.6.0",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=14"
|
|
10
10
|
},
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"@commercetools/sdk-middleware-logger": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@commercetools/platform-sdk": "
|
|
41
|
+
"@commercetools/platform-sdk": "6.0.0",
|
|
42
42
|
"@types/uuid": "9.0.2",
|
|
43
43
|
"organize-imports-cli": "0.10.0",
|
|
44
|
-
"tsconfig-replace-paths": "0.0.
|
|
44
|
+
"tsconfig-replace-paths": "0.0.13",
|
|
45
45
|
"uuid": "9.0.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|