@commercelayer/sdk 6.55.0 → 6.56.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/lib/index.d.mts +35 -4
- package/lib/index.d.ts +35 -4
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +3 -3
package/lib/index.d.mts
CHANGED
|
@@ -16336,7 +16336,7 @@ type ExportType = 'exports';
|
|
|
16336
16336
|
type ExportRel = ResourceRel & {
|
|
16337
16337
|
type: ExportType;
|
|
16338
16338
|
};
|
|
16339
|
-
type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'attachment_url'> & ResourceSort;
|
|
16339
|
+
type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url'> & ResourceSort;
|
|
16340
16340
|
interface Export extends Resource {
|
|
16341
16341
|
readonly type: ExportType;
|
|
16342
16342
|
/**
|
|
@@ -16350,10 +16350,10 @@ interface Export extends Resource {
|
|
|
16350
16350
|
*/
|
|
16351
16351
|
format?: string | null;
|
|
16352
16352
|
/**
|
|
16353
|
-
* The export job status. One of 'pending' (default), 'in_progress', 'interrupted', or '
|
|
16353
|
+
* The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'.
|
|
16354
16354
|
* @example ```"in_progress"```
|
|
16355
16355
|
*/
|
|
16356
|
-
status: 'pending' | 'in_progress' | 'interrupted' | 'completed';
|
|
16356
|
+
status: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed';
|
|
16357
16357
|
/**
|
|
16358
16358
|
* List of related resources that should be included in the export (redundant when 'fields' are specified).
|
|
16359
16359
|
* @example ```["prices.price_tiers"]```
|
|
@@ -16373,6 +16373,11 @@ interface Export extends Resource {
|
|
|
16373
16373
|
* Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.
|
|
16374
16374
|
*/
|
|
16375
16375
|
dry_data?: boolean | null;
|
|
16376
|
+
/**
|
|
16377
|
+
* Send this attribute to apply JWT scope–based sales channel filtering to the exported data.
|
|
16378
|
+
* @example ```true```
|
|
16379
|
+
*/
|
|
16380
|
+
jwt_filters?: boolean | null;
|
|
16376
16381
|
/**
|
|
16377
16382
|
* Time at which the export was started.
|
|
16378
16383
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
|
@@ -16383,6 +16388,11 @@ interface Export extends Resource {
|
|
|
16383
16388
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
|
16384
16389
|
*/
|
|
16385
16390
|
completed_at?: string | null;
|
|
16391
|
+
/**
|
|
16392
|
+
* Estimated time at which the export should complete (dynamically refres^hed).
|
|
16393
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
|
16394
|
+
*/
|
|
16395
|
+
estimated_completion_at?: string | null;
|
|
16386
16396
|
/**
|
|
16387
16397
|
* Time at which the export was interrupted.
|
|
16388
16398
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
|
@@ -16393,6 +16403,16 @@ interface Export extends Resource {
|
|
|
16393
16403
|
* @example ```300```
|
|
16394
16404
|
*/
|
|
16395
16405
|
records_count?: number | null;
|
|
16406
|
+
/**
|
|
16407
|
+
* Indicates how many records have been processed in real time.
|
|
16408
|
+
* @example ```270```
|
|
16409
|
+
*/
|
|
16410
|
+
processed_count?: number | null;
|
|
16411
|
+
/**
|
|
16412
|
+
* The percentage of progress of the export.
|
|
16413
|
+
* @example ```30```
|
|
16414
|
+
*/
|
|
16415
|
+
progress?: number | null;
|
|
16396
16416
|
/**
|
|
16397
16417
|
* The URL to the output file, which will be generated upon export completion.
|
|
16398
16418
|
* @example ```"http://cl_exports.s3.amazonaws.com/"```
|
|
@@ -16437,8 +16457,18 @@ interface ExportCreate extends ResourceCreate {
|
|
|
16437
16457
|
* Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.
|
|
16438
16458
|
*/
|
|
16439
16459
|
dry_data?: boolean | null;
|
|
16460
|
+
/**
|
|
16461
|
+
* Send this attribute to apply JWT scope–based sales channel filtering to the exported data.
|
|
16462
|
+
* @example ```true```
|
|
16463
|
+
*/
|
|
16464
|
+
jwt_filters?: boolean | null;
|
|
16440
16465
|
}
|
|
16441
16466
|
interface ExportUpdate extends ResourceUpdate {
|
|
16467
|
+
/**
|
|
16468
|
+
* Send this attribute if you want to restart an 'interrupted' export.
|
|
16469
|
+
* @example ```true```
|
|
16470
|
+
*/
|
|
16471
|
+
_start?: boolean | null;
|
|
16442
16472
|
/**
|
|
16443
16473
|
* Send this attribute if you want to mark status as 'interrupted'.
|
|
16444
16474
|
* @example ```true```
|
|
@@ -16453,6 +16483,7 @@ declare class Exports extends ApiResource<Export> {
|
|
|
16453
16483
|
events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
|
16454
16484
|
versions(exportId: string | Export, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
|
16455
16485
|
event_stores(exportId: string | Export, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
|
|
16486
|
+
_start(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export>;
|
|
16456
16487
|
_interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export>;
|
|
16457
16488
|
isExport(resource: any): resource is Export;
|
|
16458
16489
|
relationship(id: string | ResourceId | null): ExportRel;
|
|
@@ -18234,7 +18265,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
|
18234
18265
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
18235
18266
|
declare class CommerceLayerClient {
|
|
18236
18267
|
#private;
|
|
18237
|
-
readonly openApiSchemaVersion = "7.9.
|
|
18268
|
+
readonly openApiSchemaVersion = "7.9.15";
|
|
18238
18269
|
constructor(config: CommerceLayerInitConfig);
|
|
18239
18270
|
get addresses(): Addresses;
|
|
18240
18271
|
get adjustments(): Adjustments;
|
package/lib/index.d.ts
CHANGED
|
@@ -16336,7 +16336,7 @@ type ExportType = 'exports';
|
|
|
16336
16336
|
type ExportRel = ResourceRel & {
|
|
16337
16337
|
type: ExportType;
|
|
16338
16338
|
};
|
|
16339
|
-
type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'attachment_url'> & ResourceSort;
|
|
16339
|
+
type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url'> & ResourceSort;
|
|
16340
16340
|
interface Export extends Resource {
|
|
16341
16341
|
readonly type: ExportType;
|
|
16342
16342
|
/**
|
|
@@ -16350,10 +16350,10 @@ interface Export extends Resource {
|
|
|
16350
16350
|
*/
|
|
16351
16351
|
format?: string | null;
|
|
16352
16352
|
/**
|
|
16353
|
-
* The export job status. One of 'pending' (default), 'in_progress', 'interrupted', or '
|
|
16353
|
+
* The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'.
|
|
16354
16354
|
* @example ```"in_progress"```
|
|
16355
16355
|
*/
|
|
16356
|
-
status: 'pending' | 'in_progress' | 'interrupted' | 'completed';
|
|
16356
|
+
status: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed';
|
|
16357
16357
|
/**
|
|
16358
16358
|
* List of related resources that should be included in the export (redundant when 'fields' are specified).
|
|
16359
16359
|
* @example ```["prices.price_tiers"]```
|
|
@@ -16373,6 +16373,11 @@ interface Export extends Resource {
|
|
|
16373
16373
|
* Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.
|
|
16374
16374
|
*/
|
|
16375
16375
|
dry_data?: boolean | null;
|
|
16376
|
+
/**
|
|
16377
|
+
* Send this attribute to apply JWT scope–based sales channel filtering to the exported data.
|
|
16378
|
+
* @example ```true```
|
|
16379
|
+
*/
|
|
16380
|
+
jwt_filters?: boolean | null;
|
|
16376
16381
|
/**
|
|
16377
16382
|
* Time at which the export was started.
|
|
16378
16383
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
|
@@ -16383,6 +16388,11 @@ interface Export extends Resource {
|
|
|
16383
16388
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
|
16384
16389
|
*/
|
|
16385
16390
|
completed_at?: string | null;
|
|
16391
|
+
/**
|
|
16392
|
+
* Estimated time at which the export should complete (dynamically refres^hed).
|
|
16393
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
|
16394
|
+
*/
|
|
16395
|
+
estimated_completion_at?: string | null;
|
|
16386
16396
|
/**
|
|
16387
16397
|
* Time at which the export was interrupted.
|
|
16388
16398
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
|
@@ -16393,6 +16403,16 @@ interface Export extends Resource {
|
|
|
16393
16403
|
* @example ```300```
|
|
16394
16404
|
*/
|
|
16395
16405
|
records_count?: number | null;
|
|
16406
|
+
/**
|
|
16407
|
+
* Indicates how many records have been processed in real time.
|
|
16408
|
+
* @example ```270```
|
|
16409
|
+
*/
|
|
16410
|
+
processed_count?: number | null;
|
|
16411
|
+
/**
|
|
16412
|
+
* The percentage of progress of the export.
|
|
16413
|
+
* @example ```30```
|
|
16414
|
+
*/
|
|
16415
|
+
progress?: number | null;
|
|
16396
16416
|
/**
|
|
16397
16417
|
* The URL to the output file, which will be generated upon export completion.
|
|
16398
16418
|
* @example ```"http://cl_exports.s3.amazonaws.com/"```
|
|
@@ -16437,8 +16457,18 @@ interface ExportCreate extends ResourceCreate {
|
|
|
16437
16457
|
* Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.
|
|
16438
16458
|
*/
|
|
16439
16459
|
dry_data?: boolean | null;
|
|
16460
|
+
/**
|
|
16461
|
+
* Send this attribute to apply JWT scope–based sales channel filtering to the exported data.
|
|
16462
|
+
* @example ```true```
|
|
16463
|
+
*/
|
|
16464
|
+
jwt_filters?: boolean | null;
|
|
16440
16465
|
}
|
|
16441
16466
|
interface ExportUpdate extends ResourceUpdate {
|
|
16467
|
+
/**
|
|
16468
|
+
* Send this attribute if you want to restart an 'interrupted' export.
|
|
16469
|
+
* @example ```true```
|
|
16470
|
+
*/
|
|
16471
|
+
_start?: boolean | null;
|
|
16442
16472
|
/**
|
|
16443
16473
|
* Send this attribute if you want to mark status as 'interrupted'.
|
|
16444
16474
|
* @example ```true```
|
|
@@ -16453,6 +16483,7 @@ declare class Exports extends ApiResource<Export> {
|
|
|
16453
16483
|
events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
|
16454
16484
|
versions(exportId: string | Export, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
|
16455
16485
|
event_stores(exportId: string | Export, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
|
|
16486
|
+
_start(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export>;
|
|
16456
16487
|
_interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export>;
|
|
16457
16488
|
isExport(resource: any): resource is Export;
|
|
16458
16489
|
relationship(id: string | ResourceId | null): ExportRel;
|
|
@@ -18234,7 +18265,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
|
18234
18265
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
18235
18266
|
declare class CommerceLayerClient {
|
|
18236
18267
|
#private;
|
|
18237
|
-
readonly openApiSchemaVersion = "7.9.
|
|
18268
|
+
readonly openApiSchemaVersion = "7.9.15";
|
|
18238
18269
|
constructor(config: CommerceLayerInitConfig);
|
|
18239
18270
|
get addresses(): Addresses;
|
|
18240
18271
|
get adjustments(): Adjustments;
|