@commercetools/history-sdk 1.19.0 → 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 +33 -0
- package/README.md +110 -20
- package/dist/commercetools-history-sdk.browser.cjs.js +124 -188
- package/dist/commercetools-history-sdk.browser.esm.js +124 -188
- package/dist/commercetools-history-sdk.cjs.dev.js +124 -188
- package/dist/commercetools-history-sdk.cjs.prod.js +124 -188
- package/dist/commercetools-history-sdk.esm.js +124 -188
- package/dist/declarations/src/ctp/ctp-client.d.ts +2 -2
- package/dist/declarations/src/generated/client/api-root.d.ts +18 -18
- package/dist/declarations/src/generated/client/by-project-key-by-resource-type-by-id-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/by-project-key-by-resource-type-request-builder.d.ts +51 -51
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +50 -50
- package/dist/declarations/src/generated/index.d.ts +12 -12
- package/dist/declarations/src/generated/models/change-value.d.ts +332 -332
- package/dist/declarations/src/generated/models/change.d.ts +4571 -4492
- package/dist/declarations/src/generated/models/common.d.ts +1120 -1115
- package/dist/declarations/src/generated/models/label.d.ts +94 -83
- package/dist/declarations/src/generated/shared/utils/common-types.d.ts +26 -26
- package/dist/declarations/src/generated/shared/utils/middleware.d.ts +8 -8
- package/dist/declarations/src/generated/shared/utils/requests-utils.d.ts +13 -13
- package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +7 -7
- package/dist/declarations/src/index.d.ts +2 -2
- package/package.json +6 -7
|
@@ -1,50 +1,50 @@
|
|
|
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 { ChangeHistoryResourceType, PlatformInitiatedChange, RecordPagedQueryResponse } from '../models/common';
|
|
7
|
-
import { executeRequest, QueryParam } from '../shared/utils/common-types';
|
|
8
|
-
import { ApiRequest } from '../shared/utils/requests-utils';
|
|
9
|
-
import { ByProjectKeyByResourceTypeRequestBuilder } from './by-project-key-by-resource-type-request-builder';
|
|
10
|
-
export declare class ByProjectKeyRequestBuilder {
|
|
11
|
-
protected readonly args: {
|
|
12
|
-
pathArgs: {
|
|
13
|
-
projectKey: string;
|
|
14
|
-
};
|
|
15
|
-
executeRequest: executeRequest;
|
|
16
|
-
baseUri?: string;
|
|
17
|
-
};
|
|
18
|
-
constructor(args: {
|
|
19
|
-
pathArgs: {
|
|
20
|
-
projectKey: string;
|
|
21
|
-
};
|
|
22
|
-
executeRequest: executeRequest;
|
|
23
|
-
baseUri?: string;
|
|
24
|
-
});
|
|
25
|
-
withResourceTypeValue(childPathArgs: {
|
|
26
|
-
resourceType: string;
|
|
27
|
-
}): ByProjectKeyByResourceTypeRequestBuilder;
|
|
28
|
-
get(methodArgs?: {
|
|
29
|
-
queryArgs?: {
|
|
30
|
-
resourceType?: ChangeHistoryResourceType | ChangeHistoryResourceType[];
|
|
31
|
-
'date.from'?: any;
|
|
32
|
-
'date.to'?: any;
|
|
33
|
-
limit?: number;
|
|
34
|
-
offset?: number;
|
|
35
|
-
userId?: string;
|
|
36
|
-
type?: string;
|
|
37
|
-
clientId?: string;
|
|
38
|
-
resourceId?: string;
|
|
39
|
-
source?: string;
|
|
40
|
-
changes?: string | string[];
|
|
41
|
-
customerId?: string;
|
|
42
|
-
excludePlatformInitiatedChanges?: PlatformInitiatedChange | PlatformInitiatedChange[];
|
|
43
|
-
expand?: boolean;
|
|
44
|
-
[key: string]: QueryParam;
|
|
45
|
-
};
|
|
46
|
-
headers?: {
|
|
47
|
-
[key: string]: string | string[];
|
|
48
|
-
};
|
|
49
|
-
}): ApiRequest<RecordPagedQueryResponse>;
|
|
50
|
-
}
|
|
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 { ChangeHistoryResourceType, PlatformInitiatedChange, RecordPagedQueryResponse } from '../models/common';
|
|
7
|
+
import { executeRequest, QueryParam } from '../shared/utils/common-types';
|
|
8
|
+
import { ApiRequest } from '../shared/utils/requests-utils';
|
|
9
|
+
import { ByProjectKeyByResourceTypeRequestBuilder } from './by-project-key-by-resource-type-request-builder';
|
|
10
|
+
export declare class ByProjectKeyRequestBuilder {
|
|
11
|
+
protected readonly args: {
|
|
12
|
+
pathArgs: {
|
|
13
|
+
projectKey: string;
|
|
14
|
+
};
|
|
15
|
+
executeRequest: executeRequest;
|
|
16
|
+
baseUri?: string;
|
|
17
|
+
};
|
|
18
|
+
constructor(args: {
|
|
19
|
+
pathArgs: {
|
|
20
|
+
projectKey: string;
|
|
21
|
+
};
|
|
22
|
+
executeRequest: executeRequest;
|
|
23
|
+
baseUri?: string;
|
|
24
|
+
});
|
|
25
|
+
withResourceTypeValue(childPathArgs: {
|
|
26
|
+
resourceType: string;
|
|
27
|
+
}): ByProjectKeyByResourceTypeRequestBuilder;
|
|
28
|
+
get(methodArgs?: {
|
|
29
|
+
queryArgs?: {
|
|
30
|
+
resourceType?: ChangeHistoryResourceType | ChangeHistoryResourceType[];
|
|
31
|
+
'date.from'?: any;
|
|
32
|
+
'date.to'?: any;
|
|
33
|
+
limit?: number;
|
|
34
|
+
offset?: number;
|
|
35
|
+
userId?: string;
|
|
36
|
+
type?: string;
|
|
37
|
+
clientId?: string;
|
|
38
|
+
resourceId?: string;
|
|
39
|
+
source?: string;
|
|
40
|
+
changes?: string | string[];
|
|
41
|
+
customerId?: string;
|
|
42
|
+
excludePlatformInitiatedChanges?: PlatformInitiatedChange | PlatformInitiatedChange[];
|
|
43
|
+
expand?: boolean;
|
|
44
|
+
[key: string]: QueryParam;
|
|
45
|
+
};
|
|
46
|
+
headers?: {
|
|
47
|
+
[key: string]: string | string[];
|
|
48
|
+
};
|
|
49
|
+
}): ApiRequest<RecordPagedQueryResponse>;
|
|
50
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
-
export * from './client/api-root';
|
|
7
|
-
export * from './models/change';
|
|
8
|
-
export * from './models/change-value';
|
|
9
|
-
export * from './models/common';
|
|
10
|
-
export * from './models/label';
|
|
11
|
-
export * from './shared/utils/common-types';
|
|
12
|
-
export * from './shared/utils/middleware';
|
|
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
|
+
export * from './client/api-root';
|
|
7
|
+
export * from './models/change';
|
|
8
|
+
export * from './models/change-value';
|
|
9
|
+
export * from './models/common';
|
|
10
|
+
export * from './models/label';
|
|
11
|
+
export * from './shared/utils/common-types';
|
|
12
|
+
export * from './shared/utils/middleware';
|