@omni-commerce/sdk 0.20.0 → 0.21.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/README.md +4 -0
- package/dist/index.cjs +146 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +973 -46
- package/dist/index.d.ts +973 -46
- package/dist/index.js +146 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -971,6 +971,90 @@ interface paths {
|
|
|
971
971
|
patch?: never;
|
|
972
972
|
trace?: never;
|
|
973
973
|
};
|
|
974
|
+
"/api/v1/catalog/operations": {
|
|
975
|
+
parameters: {
|
|
976
|
+
query?: never;
|
|
977
|
+
header?: never;
|
|
978
|
+
path?: never;
|
|
979
|
+
cookie?: never;
|
|
980
|
+
};
|
|
981
|
+
/**
|
|
982
|
+
* List Catalog Operations for Session
|
|
983
|
+
* @description Read the latest 20 compact catalog-operation summaries linked to an authorized session. Requires catalog:read; product data scope is rechecked.
|
|
984
|
+
*/
|
|
985
|
+
get: operations["get_v1_catalog_operations"];
|
|
986
|
+
put?: never;
|
|
987
|
+
/**
|
|
988
|
+
* Start Catalog Operation
|
|
989
|
+
* @description Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write. Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
|
|
990
|
+
*/
|
|
991
|
+
post: operations["post_v1_catalog_operations"];
|
|
992
|
+
delete?: never;
|
|
993
|
+
options?: never;
|
|
994
|
+
head?: never;
|
|
995
|
+
patch?: never;
|
|
996
|
+
trace?: never;
|
|
997
|
+
};
|
|
998
|
+
"/api/v1/catalog/operations/results": {
|
|
999
|
+
parameters: {
|
|
1000
|
+
query?: never;
|
|
1001
|
+
header?: never;
|
|
1002
|
+
path?: never;
|
|
1003
|
+
cookie?: never;
|
|
1004
|
+
};
|
|
1005
|
+
get?: never;
|
|
1006
|
+
put?: never;
|
|
1007
|
+
/**
|
|
1008
|
+
* Get Catalog Operation Results
|
|
1009
|
+
* @description Read ordered per-product receipts and verification evidence for up to 50 operationIds. Filter status=failed to inspect failures directly. At most 100 rows across the requested operations per page. Requires catalog:read.
|
|
1010
|
+
*/
|
|
1011
|
+
post: operations["post_v1_catalog_operations_results"];
|
|
1012
|
+
delete?: never;
|
|
1013
|
+
options?: never;
|
|
1014
|
+
head?: never;
|
|
1015
|
+
patch?: never;
|
|
1016
|
+
trace?: never;
|
|
1017
|
+
};
|
|
1018
|
+
"/api/v1/catalog/operations/status": {
|
|
1019
|
+
parameters: {
|
|
1020
|
+
query?: never;
|
|
1021
|
+
header?: never;
|
|
1022
|
+
path?: never;
|
|
1023
|
+
cookie?: never;
|
|
1024
|
+
};
|
|
1025
|
+
get?: never;
|
|
1026
|
+
put?: never;
|
|
1027
|
+
/**
|
|
1028
|
+
* Get Catalog Operation Status
|
|
1029
|
+
* @description Read compact progress for up to 50 operationIds in first-requested order. Pending is incomplete, and partial failures remain explicit. Requires catalog:read. Detailed receipts are returned only by the paginated report API.
|
|
1030
|
+
*/
|
|
1031
|
+
post: operations["post_v1_catalog_operations_status"];
|
|
1032
|
+
delete?: never;
|
|
1033
|
+
options?: never;
|
|
1034
|
+
head?: never;
|
|
1035
|
+
patch?: never;
|
|
1036
|
+
trace?: never;
|
|
1037
|
+
};
|
|
1038
|
+
"/api/v1/catalog/query": {
|
|
1039
|
+
parameters: {
|
|
1040
|
+
query?: never;
|
|
1041
|
+
header?: never;
|
|
1042
|
+
path?: never;
|
|
1043
|
+
cookie?: never;
|
|
1044
|
+
};
|
|
1045
|
+
get?: never;
|
|
1046
|
+
put?: never;
|
|
1047
|
+
/**
|
|
1048
|
+
* Query Catalog
|
|
1049
|
+
* @description Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match. Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
|
|
1050
|
+
*/
|
|
1051
|
+
post: operations["post_v1_catalog_query"];
|
|
1052
|
+
delete?: never;
|
|
1053
|
+
options?: never;
|
|
1054
|
+
head?: never;
|
|
1055
|
+
patch?: never;
|
|
1056
|
+
trace?: never;
|
|
1057
|
+
};
|
|
974
1058
|
"/api/v1/checkout-sessions": {
|
|
975
1059
|
parameters: {
|
|
976
1060
|
query?: never;
|
|
@@ -1115,6 +1199,26 @@ interface paths {
|
|
|
1115
1199
|
patch?: never;
|
|
1116
1200
|
trace?: never;
|
|
1117
1201
|
};
|
|
1202
|
+
"/api/v1/commerce/state/verify/jobs": {
|
|
1203
|
+
parameters: {
|
|
1204
|
+
query?: never;
|
|
1205
|
+
header?: never;
|
|
1206
|
+
path?: never;
|
|
1207
|
+
cookie?: never;
|
|
1208
|
+
};
|
|
1209
|
+
get?: never;
|
|
1210
|
+
put?: never;
|
|
1211
|
+
/**
|
|
1212
|
+
* Start Commerce Verification
|
|
1213
|
+
* @description Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read. Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
|
|
1214
|
+
*/
|
|
1215
|
+
post: operations["post_v1_commerce_state_verify_jobs"];
|
|
1216
|
+
delete?: never;
|
|
1217
|
+
options?: never;
|
|
1218
|
+
head?: never;
|
|
1219
|
+
patch?: never;
|
|
1220
|
+
trace?: never;
|
|
1221
|
+
};
|
|
1118
1222
|
"/api/v1/compare": {
|
|
1119
1223
|
parameters: {
|
|
1120
1224
|
query?: never;
|
|
@@ -4036,8 +4140,8 @@ interface components {
|
|
|
4036
4140
|
| "ebay";
|
|
4037
4141
|
sourceCountry?: string;
|
|
4038
4142
|
/**
|
|
4039
|
-
* @description
|
|
4040
|
-
* @default
|
|
4143
|
+
* @description campaign_start prepares all eligible offers on Run (default); offer_windows prepares each window at preparesAt. Sale dates are unchanged. Locked while running.
|
|
4144
|
+
* @default campaign_start
|
|
4041
4145
|
* @enum {string}
|
|
4042
4146
|
*/
|
|
4043
4147
|
syncMode: "offer_windows" | "campaign_start";
|
|
@@ -10441,8 +10545,8 @@ interface operations {
|
|
|
10441
10545
|
| "ebay";
|
|
10442
10546
|
sourceCountry?: string;
|
|
10443
10547
|
/**
|
|
10444
|
-
* @description
|
|
10445
|
-
* @default
|
|
10548
|
+
* @description campaign_start prepares all eligible offers on Run (default); offer_windows prepares each window at preparesAt. Sale dates are unchanged. Locked while running.
|
|
10549
|
+
* @default campaign_start
|
|
10446
10550
|
* @enum {string}
|
|
10447
10551
|
*/
|
|
10448
10552
|
syncMode?: "offer_windows" | "campaign_start";
|
|
@@ -10699,6 +10803,16 @@ interface operations {
|
|
|
10699
10803
|
offerId: string;
|
|
10700
10804
|
windowId: string;
|
|
10701
10805
|
promotionId: string | null;
|
|
10806
|
+
promotionStatus?:
|
|
10807
|
+
| (
|
|
10808
|
+
| "draft"
|
|
10809
|
+
| "scheduled"
|
|
10810
|
+
| "active"
|
|
10811
|
+
| "paused"
|
|
10812
|
+
| "ended"
|
|
10813
|
+
| "archived"
|
|
10814
|
+
)
|
|
10815
|
+
| null;
|
|
10702
10816
|
/** @enum {string} */
|
|
10703
10817
|
state:
|
|
10704
10818
|
| "draft"
|
|
@@ -10896,6 +11010,16 @@ interface operations {
|
|
|
10896
11010
|
offerId: string;
|
|
10897
11011
|
windowId: string;
|
|
10898
11012
|
promotionId: string | null;
|
|
11013
|
+
promotionStatus?:
|
|
11014
|
+
| (
|
|
11015
|
+
| "draft"
|
|
11016
|
+
| "scheduled"
|
|
11017
|
+
| "active"
|
|
11018
|
+
| "paused"
|
|
11019
|
+
| "ended"
|
|
11020
|
+
| "archived"
|
|
11021
|
+
)
|
|
11022
|
+
| null;
|
|
10899
11023
|
/** @enum {string} */
|
|
10900
11024
|
state:
|
|
10901
11025
|
| "draft"
|
|
@@ -11113,8 +11237,8 @@ interface operations {
|
|
|
11113
11237
|
| "ebay";
|
|
11114
11238
|
sourceCountry?: string;
|
|
11115
11239
|
/**
|
|
11116
|
-
* @description
|
|
11117
|
-
* @default
|
|
11240
|
+
* @description campaign_start prepares all eligible offers on Run (default); offer_windows prepares each window at preparesAt. Sale dates are unchanged. Locked while running.
|
|
11241
|
+
* @default campaign_start
|
|
11118
11242
|
* @enum {string}
|
|
11119
11243
|
*/
|
|
11120
11244
|
syncMode?: "offer_windows" | "campaign_start";
|
|
@@ -11371,6 +11495,16 @@ interface operations {
|
|
|
11371
11495
|
offerId: string;
|
|
11372
11496
|
windowId: string;
|
|
11373
11497
|
promotionId: string | null;
|
|
11498
|
+
promotionStatus?:
|
|
11499
|
+
| (
|
|
11500
|
+
| "draft"
|
|
11501
|
+
| "scheduled"
|
|
11502
|
+
| "active"
|
|
11503
|
+
| "paused"
|
|
11504
|
+
| "ended"
|
|
11505
|
+
| "archived"
|
|
11506
|
+
)
|
|
11507
|
+
| null;
|
|
11374
11508
|
/** @enum {string} */
|
|
11375
11509
|
state:
|
|
11376
11510
|
| "draft"
|
|
@@ -11813,6 +11947,16 @@ interface operations {
|
|
|
11813
11947
|
offerId: string;
|
|
11814
11948
|
windowId: string;
|
|
11815
11949
|
promotionId: string | null;
|
|
11950
|
+
promotionStatus?:
|
|
11951
|
+
| (
|
|
11952
|
+
| "draft"
|
|
11953
|
+
| "scheduled"
|
|
11954
|
+
| "active"
|
|
11955
|
+
| "paused"
|
|
11956
|
+
| "ended"
|
|
11957
|
+
| "archived"
|
|
11958
|
+
)
|
|
11959
|
+
| null;
|
|
11816
11960
|
/** @enum {string} */
|
|
11817
11961
|
state:
|
|
11818
11962
|
| "draft"
|
|
@@ -12026,6 +12170,16 @@ interface operations {
|
|
|
12026
12170
|
offerId: string;
|
|
12027
12171
|
windowId: string;
|
|
12028
12172
|
promotionId: string | null;
|
|
12173
|
+
promotionStatus?:
|
|
12174
|
+
| (
|
|
12175
|
+
| "draft"
|
|
12176
|
+
| "scheduled"
|
|
12177
|
+
| "active"
|
|
12178
|
+
| "paused"
|
|
12179
|
+
| "ended"
|
|
12180
|
+
| "archived"
|
|
12181
|
+
)
|
|
12182
|
+
| null;
|
|
12029
12183
|
/** @enum {string} */
|
|
12030
12184
|
state:
|
|
12031
12185
|
| "draft"
|
|
@@ -13491,94 +13645,628 @@ interface operations {
|
|
|
13491
13645
|
path: (string | number)[];
|
|
13492
13646
|
message: string;
|
|
13493
13647
|
}[];
|
|
13494
|
-
campaignId?: string;
|
|
13495
|
-
revision?: number;
|
|
13496
|
-
pendingChangeVersion?: number;
|
|
13497
|
-
/** @enum {string} */
|
|
13498
|
-
stage?:
|
|
13499
|
-
| "draft"
|
|
13500
|
-
| "approved"
|
|
13501
|
-
| "running"
|
|
13502
|
-
| "ending"
|
|
13503
|
-
| "completed"
|
|
13504
|
-
| "archived";
|
|
13505
|
-
plan?: components["schemas"]["CampaignPlan"];
|
|
13506
|
-
shiftMs?: number;
|
|
13507
|
-
}[];
|
|
13648
|
+
campaignId?: string;
|
|
13649
|
+
revision?: number;
|
|
13650
|
+
pendingChangeVersion?: number;
|
|
13651
|
+
/** @enum {string} */
|
|
13652
|
+
stage?:
|
|
13653
|
+
| "draft"
|
|
13654
|
+
| "approved"
|
|
13655
|
+
| "running"
|
|
13656
|
+
| "ending"
|
|
13657
|
+
| "completed"
|
|
13658
|
+
| "archived";
|
|
13659
|
+
plan?: components["schemas"]["CampaignPlan"];
|
|
13660
|
+
shiftMs?: number;
|
|
13661
|
+
}[];
|
|
13662
|
+
};
|
|
13663
|
+
};
|
|
13664
|
+
};
|
|
13665
|
+
/** @description Invalid input or domain validation failed. */
|
|
13666
|
+
400: {
|
|
13667
|
+
headers: {
|
|
13668
|
+
[name: string]: unknown;
|
|
13669
|
+
};
|
|
13670
|
+
content?: never;
|
|
13671
|
+
};
|
|
13672
|
+
/** @description Missing or expired credentials. */
|
|
13673
|
+
401: {
|
|
13674
|
+
headers: {
|
|
13675
|
+
[name: string]: unknown;
|
|
13676
|
+
};
|
|
13677
|
+
content?: never;
|
|
13678
|
+
};
|
|
13679
|
+
/** @description Insufficient current organization, store, operation or OAuth permissions. */
|
|
13680
|
+
403: {
|
|
13681
|
+
headers: {
|
|
13682
|
+
[name: string]: unknown;
|
|
13683
|
+
};
|
|
13684
|
+
content?: never;
|
|
13685
|
+
};
|
|
13686
|
+
};
|
|
13687
|
+
};
|
|
13688
|
+
get_v1_catalog_items: {
|
|
13689
|
+
parameters: {
|
|
13690
|
+
query?: {
|
|
13691
|
+
/** @description Optional organization scope for session-authenticated calls. OAuth client credentials resolve the organization from the token. */
|
|
13692
|
+
organizationId?: string;
|
|
13693
|
+
/** @description Inclusive item update lower bound for incremental exports. */
|
|
13694
|
+
updatedSince?: string;
|
|
13695
|
+
cursor?: string;
|
|
13696
|
+
limit?: number;
|
|
13697
|
+
/** @description Use csv for the documented catalog columns; omit for JSON. */
|
|
13698
|
+
format?: "json" | "csv";
|
|
13699
|
+
};
|
|
13700
|
+
header?: never;
|
|
13701
|
+
path?: never;
|
|
13702
|
+
cookie?: never;
|
|
13703
|
+
};
|
|
13704
|
+
requestBody?: never;
|
|
13705
|
+
responses: {
|
|
13706
|
+
/** @description Catalog page as JSON, or CSV with X-Has-More and X-Next-Cursor headers. */
|
|
13707
|
+
200: {
|
|
13708
|
+
headers: {
|
|
13709
|
+
[name: string]: unknown;
|
|
13710
|
+
};
|
|
13711
|
+
content?: never;
|
|
13712
|
+
};
|
|
13713
|
+
/** @description Invalid cursor or updatedSince value. */
|
|
13714
|
+
400: {
|
|
13715
|
+
headers: {
|
|
13716
|
+
[name: string]: unknown;
|
|
13717
|
+
};
|
|
13718
|
+
content?: never;
|
|
13719
|
+
};
|
|
13720
|
+
/** @description Unauthorized. */
|
|
13721
|
+
401: {
|
|
13722
|
+
headers: {
|
|
13723
|
+
[name: string]: unknown;
|
|
13724
|
+
};
|
|
13725
|
+
content?: never;
|
|
13726
|
+
};
|
|
13727
|
+
/** @description Missing catalog:read scope. */
|
|
13728
|
+
403: {
|
|
13729
|
+
headers: {
|
|
13730
|
+
[name: string]: unknown;
|
|
13731
|
+
};
|
|
13732
|
+
content?: never;
|
|
13733
|
+
};
|
|
13734
|
+
/** @description Internal server error. */
|
|
13735
|
+
500: {
|
|
13736
|
+
headers: {
|
|
13737
|
+
[name: string]: unknown;
|
|
13738
|
+
};
|
|
13739
|
+
content?: never;
|
|
13740
|
+
};
|
|
13741
|
+
};
|
|
13742
|
+
};
|
|
13743
|
+
get_v1_catalog_operations: {
|
|
13744
|
+
parameters: {
|
|
13745
|
+
query: {
|
|
13746
|
+
organizationId?: string;
|
|
13747
|
+
sessionId: string;
|
|
13748
|
+
};
|
|
13749
|
+
header?: never;
|
|
13750
|
+
path?: never;
|
|
13751
|
+
cookie?: never;
|
|
13752
|
+
};
|
|
13753
|
+
requestBody?: never;
|
|
13754
|
+
responses: {
|
|
13755
|
+
/** @description Operation summaries */
|
|
13756
|
+
200: {
|
|
13757
|
+
headers: {
|
|
13758
|
+
[name: string]: unknown;
|
|
13759
|
+
};
|
|
13760
|
+
content: {
|
|
13761
|
+
"application/json": {
|
|
13762
|
+
ok?: boolean;
|
|
13763
|
+
data?: {
|
|
13764
|
+
results: {
|
|
13765
|
+
operationId: string;
|
|
13766
|
+
/** @enum {string} */
|
|
13767
|
+
kind?: "update" | "verify";
|
|
13768
|
+
success: boolean;
|
|
13769
|
+
allTerminal: boolean;
|
|
13770
|
+
status: string;
|
|
13771
|
+
totalCount?: number;
|
|
13772
|
+
succeededCount?: number;
|
|
13773
|
+
failedCount?: number;
|
|
13774
|
+
pendingCount?: number;
|
|
13775
|
+
syncingCount?: number;
|
|
13776
|
+
verifiedCount?: number;
|
|
13777
|
+
verificationRequested?: boolean;
|
|
13778
|
+
phases?: {
|
|
13779
|
+
[key: string]: number;
|
|
13780
|
+
};
|
|
13781
|
+
updatedAt?: string;
|
|
13782
|
+
completedAt?: string | null;
|
|
13783
|
+
error?: string;
|
|
13784
|
+
report?: string;
|
|
13785
|
+
}[];
|
|
13786
|
+
};
|
|
13787
|
+
};
|
|
13788
|
+
};
|
|
13789
|
+
};
|
|
13790
|
+
/** @description Invalid session ID. */
|
|
13791
|
+
400: {
|
|
13792
|
+
headers: {
|
|
13793
|
+
[name: string]: unknown;
|
|
13794
|
+
};
|
|
13795
|
+
content?: never;
|
|
13796
|
+
};
|
|
13797
|
+
/** @description Authentication required. */
|
|
13798
|
+
401: {
|
|
13799
|
+
headers: {
|
|
13800
|
+
[name: string]: unknown;
|
|
13801
|
+
};
|
|
13802
|
+
content?: never;
|
|
13803
|
+
};
|
|
13804
|
+
/** @description Missing catalog:read or organization access. */
|
|
13805
|
+
403: {
|
|
13806
|
+
headers: {
|
|
13807
|
+
[name: string]: unknown;
|
|
13808
|
+
};
|
|
13809
|
+
content?: never;
|
|
13810
|
+
};
|
|
13811
|
+
};
|
|
13812
|
+
};
|
|
13813
|
+
post_v1_catalog_operations: {
|
|
13814
|
+
parameters: {
|
|
13815
|
+
query?: never;
|
|
13816
|
+
header?: never;
|
|
13817
|
+
path?: never;
|
|
13818
|
+
cookie?: never;
|
|
13819
|
+
};
|
|
13820
|
+
requestBody: {
|
|
13821
|
+
content: {
|
|
13822
|
+
"application/json": {
|
|
13823
|
+
organizationId?: string;
|
|
13824
|
+
idempotencyKey: string;
|
|
13825
|
+
updates: {
|
|
13826
|
+
/** Format: uuid */
|
|
13827
|
+
productId: string;
|
|
13828
|
+
price?: number;
|
|
13829
|
+
salePrice?: number | null;
|
|
13830
|
+
currency?: string;
|
|
13831
|
+
costPrice?: number | null;
|
|
13832
|
+
costPriceCurrency?: string;
|
|
13833
|
+
/** Format: date-time */
|
|
13834
|
+
expectedUpdatedAt?: string;
|
|
13835
|
+
targets?: {
|
|
13836
|
+
/** @enum {string} */
|
|
13837
|
+
platform:
|
|
13838
|
+
| "shopee"
|
|
13839
|
+
| "lazada"
|
|
13840
|
+
| "tiktok"
|
|
13841
|
+
| "shopify"
|
|
13842
|
+
| "whatsapp"
|
|
13843
|
+
| "zalora"
|
|
13844
|
+
| "amazon"
|
|
13845
|
+
| "ebay";
|
|
13846
|
+
accountId: string;
|
|
13847
|
+
}[];
|
|
13848
|
+
}[];
|
|
13849
|
+
/** @default false */
|
|
13850
|
+
syncToMarketplaces?: boolean;
|
|
13851
|
+
/** @default true */
|
|
13852
|
+
verify?: boolean;
|
|
13853
|
+
/** Format: uuid */
|
|
13854
|
+
sessionId?: string;
|
|
13855
|
+
};
|
|
13856
|
+
};
|
|
13857
|
+
};
|
|
13858
|
+
responses: {
|
|
13859
|
+
/** @description Durable operation accepted; completion and verification remain pending. */
|
|
13860
|
+
202: {
|
|
13861
|
+
headers: {
|
|
13862
|
+
[name: string]: unknown;
|
|
13863
|
+
};
|
|
13864
|
+
content: {
|
|
13865
|
+
"application/json": {
|
|
13866
|
+
ok: boolean;
|
|
13867
|
+
apiVersion?: string;
|
|
13868
|
+
operationId?: string;
|
|
13869
|
+
status?: string;
|
|
13870
|
+
data: {
|
|
13871
|
+
queued: boolean;
|
|
13872
|
+
operationIds: string[];
|
|
13873
|
+
productIds: string[];
|
|
13874
|
+
operation: {
|
|
13875
|
+
operationId: string;
|
|
13876
|
+
/** @enum {string} */
|
|
13877
|
+
kind?: "update" | "verify";
|
|
13878
|
+
success: boolean;
|
|
13879
|
+
allTerminal: boolean;
|
|
13880
|
+
status: string;
|
|
13881
|
+
totalCount?: number;
|
|
13882
|
+
succeededCount?: number;
|
|
13883
|
+
failedCount?: number;
|
|
13884
|
+
pendingCount?: number;
|
|
13885
|
+
syncingCount?: number;
|
|
13886
|
+
verifiedCount?: number;
|
|
13887
|
+
verificationRequested?: boolean;
|
|
13888
|
+
phases?: {
|
|
13889
|
+
[key: string]: number;
|
|
13890
|
+
};
|
|
13891
|
+
updatedAt?: string;
|
|
13892
|
+
completedAt?: string | null;
|
|
13893
|
+
error?: string;
|
|
13894
|
+
report?: string;
|
|
13895
|
+
};
|
|
13896
|
+
};
|
|
13897
|
+
};
|
|
13898
|
+
};
|
|
13899
|
+
};
|
|
13900
|
+
/** @description Invalid request. */
|
|
13901
|
+
400: {
|
|
13902
|
+
headers: {
|
|
13903
|
+
[name: string]: unknown;
|
|
13904
|
+
};
|
|
13905
|
+
content?: never;
|
|
13906
|
+
};
|
|
13907
|
+
/** @description Authentication required. */
|
|
13908
|
+
401: {
|
|
13909
|
+
headers: {
|
|
13910
|
+
[name: string]: unknown;
|
|
13911
|
+
};
|
|
13912
|
+
content?: never;
|
|
13913
|
+
};
|
|
13914
|
+
/** @description Missing capability or organization/product access. */
|
|
13915
|
+
403: {
|
|
13916
|
+
headers: {
|
|
13917
|
+
[name: string]: unknown;
|
|
13918
|
+
};
|
|
13919
|
+
content?: never;
|
|
13920
|
+
};
|
|
13921
|
+
/** @description Idempotency key reused with different input. */
|
|
13922
|
+
409: {
|
|
13923
|
+
headers: {
|
|
13924
|
+
[name: string]: unknown;
|
|
13925
|
+
};
|
|
13926
|
+
content?: never;
|
|
13927
|
+
};
|
|
13928
|
+
/** @description Temporarily unavailable. Retry the same idempotency key. */
|
|
13929
|
+
503: {
|
|
13930
|
+
headers: {
|
|
13931
|
+
[name: string]: unknown;
|
|
13932
|
+
};
|
|
13933
|
+
content?: never;
|
|
13934
|
+
};
|
|
13935
|
+
};
|
|
13936
|
+
};
|
|
13937
|
+
post_v1_catalog_operations_results: {
|
|
13938
|
+
parameters: {
|
|
13939
|
+
query?: never;
|
|
13940
|
+
header?: never;
|
|
13941
|
+
path?: never;
|
|
13942
|
+
cookie?: never;
|
|
13943
|
+
};
|
|
13944
|
+
requestBody: {
|
|
13945
|
+
content: {
|
|
13946
|
+
"application/json": {
|
|
13947
|
+
organizationId?: string;
|
|
13948
|
+
operationIds: string[];
|
|
13949
|
+
/** @enum {string} */
|
|
13950
|
+
status?: "succeeded" | "failed" | "pending";
|
|
13951
|
+
/** @default 0 */
|
|
13952
|
+
cursor?: number;
|
|
13953
|
+
/** @default 25 */
|
|
13954
|
+
limit?: number;
|
|
13955
|
+
};
|
|
13956
|
+
};
|
|
13957
|
+
};
|
|
13958
|
+
responses: {
|
|
13959
|
+
/** @description Result */
|
|
13960
|
+
200: {
|
|
13961
|
+
headers: {
|
|
13962
|
+
[name: string]: unknown;
|
|
13963
|
+
};
|
|
13964
|
+
content: {
|
|
13965
|
+
"application/json": {
|
|
13966
|
+
ok: boolean;
|
|
13967
|
+
apiVersion?: string;
|
|
13968
|
+
operationId?: string;
|
|
13969
|
+
status?: string;
|
|
13970
|
+
data: {
|
|
13971
|
+
operationIds: string[];
|
|
13972
|
+
hasMore: boolean;
|
|
13973
|
+
nextCursor: number | null;
|
|
13974
|
+
results: {
|
|
13975
|
+
[key: string]: unknown;
|
|
13976
|
+
}[];
|
|
13977
|
+
};
|
|
13978
|
+
};
|
|
13979
|
+
};
|
|
13980
|
+
};
|
|
13981
|
+
/** @description Invalid request. */
|
|
13982
|
+
400: {
|
|
13983
|
+
headers: {
|
|
13984
|
+
[name: string]: unknown;
|
|
13985
|
+
};
|
|
13986
|
+
content?: never;
|
|
13987
|
+
};
|
|
13988
|
+
/** @description Authentication required. */
|
|
13989
|
+
401: {
|
|
13990
|
+
headers: {
|
|
13991
|
+
[name: string]: unknown;
|
|
13992
|
+
};
|
|
13993
|
+
content?: never;
|
|
13994
|
+
};
|
|
13995
|
+
/** @description Missing capability or organization/product access. */
|
|
13996
|
+
403: {
|
|
13997
|
+
headers: {
|
|
13998
|
+
[name: string]: unknown;
|
|
13999
|
+
};
|
|
14000
|
+
content?: never;
|
|
14001
|
+
};
|
|
14002
|
+
/** @description Idempotency key reused with different input. */
|
|
14003
|
+
409: {
|
|
14004
|
+
headers: {
|
|
14005
|
+
[name: string]: unknown;
|
|
14006
|
+
};
|
|
14007
|
+
content?: never;
|
|
14008
|
+
};
|
|
14009
|
+
/** @description Temporarily unavailable. Retry the same idempotency key. */
|
|
14010
|
+
503: {
|
|
14011
|
+
headers: {
|
|
14012
|
+
[name: string]: unknown;
|
|
14013
|
+
};
|
|
14014
|
+
content?: never;
|
|
14015
|
+
};
|
|
14016
|
+
};
|
|
14017
|
+
};
|
|
14018
|
+
post_v1_catalog_operations_status: {
|
|
14019
|
+
parameters: {
|
|
14020
|
+
query?: never;
|
|
14021
|
+
header?: never;
|
|
14022
|
+
path?: never;
|
|
14023
|
+
cookie?: never;
|
|
14024
|
+
};
|
|
14025
|
+
requestBody: {
|
|
14026
|
+
content: {
|
|
14027
|
+
"application/json": {
|
|
14028
|
+
organizationId?: string;
|
|
14029
|
+
operationIds: string[];
|
|
14030
|
+
};
|
|
14031
|
+
};
|
|
14032
|
+
};
|
|
14033
|
+
responses: {
|
|
14034
|
+
/** @description Result */
|
|
14035
|
+
200: {
|
|
14036
|
+
headers: {
|
|
14037
|
+
[name: string]: unknown;
|
|
14038
|
+
};
|
|
14039
|
+
content: {
|
|
14040
|
+
"application/json": {
|
|
14041
|
+
ok: boolean;
|
|
14042
|
+
apiVersion?: string;
|
|
14043
|
+
operationId?: string;
|
|
14044
|
+
status?: string;
|
|
14045
|
+
data: {
|
|
14046
|
+
success: boolean;
|
|
14047
|
+
operationIds: string[];
|
|
14048
|
+
allTerminal: boolean;
|
|
14049
|
+
succeededCount: number;
|
|
14050
|
+
failedCount: number;
|
|
14051
|
+
results: {
|
|
14052
|
+
operationId: string;
|
|
14053
|
+
/** @enum {string} */
|
|
14054
|
+
kind?: "update" | "verify";
|
|
14055
|
+
success: boolean;
|
|
14056
|
+
allTerminal: boolean;
|
|
14057
|
+
status: string;
|
|
14058
|
+
totalCount?: number;
|
|
14059
|
+
succeededCount?: number;
|
|
14060
|
+
failedCount?: number;
|
|
14061
|
+
pendingCount?: number;
|
|
14062
|
+
syncingCount?: number;
|
|
14063
|
+
verifiedCount?: number;
|
|
14064
|
+
verificationRequested?: boolean;
|
|
14065
|
+
phases?: {
|
|
14066
|
+
[key: string]: number;
|
|
14067
|
+
};
|
|
14068
|
+
updatedAt?: string;
|
|
14069
|
+
completedAt?: string | null;
|
|
14070
|
+
error?: string;
|
|
14071
|
+
report?: string;
|
|
14072
|
+
}[];
|
|
14073
|
+
};
|
|
13508
14074
|
};
|
|
13509
14075
|
};
|
|
13510
14076
|
};
|
|
13511
|
-
/** @description Invalid
|
|
14077
|
+
/** @description Invalid request. */
|
|
13512
14078
|
400: {
|
|
13513
14079
|
headers: {
|
|
13514
14080
|
[name: string]: unknown;
|
|
13515
14081
|
};
|
|
13516
14082
|
content?: never;
|
|
13517
14083
|
};
|
|
13518
|
-
/** @description
|
|
14084
|
+
/** @description Authentication required. */
|
|
13519
14085
|
401: {
|
|
13520
14086
|
headers: {
|
|
13521
14087
|
[name: string]: unknown;
|
|
13522
14088
|
};
|
|
13523
14089
|
content?: never;
|
|
13524
14090
|
};
|
|
13525
|
-
/** @description
|
|
14091
|
+
/** @description Missing capability or organization/product access. */
|
|
13526
14092
|
403: {
|
|
13527
14093
|
headers: {
|
|
13528
14094
|
[name: string]: unknown;
|
|
13529
14095
|
};
|
|
13530
14096
|
content?: never;
|
|
13531
14097
|
};
|
|
14098
|
+
/** @description Idempotency key reused with different input. */
|
|
14099
|
+
409: {
|
|
14100
|
+
headers: {
|
|
14101
|
+
[name: string]: unknown;
|
|
14102
|
+
};
|
|
14103
|
+
content?: never;
|
|
14104
|
+
};
|
|
14105
|
+
/** @description Temporarily unavailable. Retry the same idempotency key. */
|
|
14106
|
+
503: {
|
|
14107
|
+
headers: {
|
|
14108
|
+
[name: string]: unknown;
|
|
14109
|
+
};
|
|
14110
|
+
content?: never;
|
|
14111
|
+
};
|
|
13532
14112
|
};
|
|
13533
14113
|
};
|
|
13534
|
-
|
|
14114
|
+
post_v1_catalog_query: {
|
|
13535
14115
|
parameters: {
|
|
13536
|
-
query?:
|
|
13537
|
-
/** @description Optional organization scope for session-authenticated calls. OAuth client credentials resolve the organization from the token. */
|
|
13538
|
-
organizationId?: string;
|
|
13539
|
-
/** @description Inclusive item update lower bound for incremental exports. */
|
|
13540
|
-
updatedSince?: string;
|
|
13541
|
-
cursor?: string;
|
|
13542
|
-
limit?: number;
|
|
13543
|
-
/** @description Use csv for the documented catalog columns; omit for JSON. */
|
|
13544
|
-
format?: "json" | "csv";
|
|
13545
|
-
};
|
|
14116
|
+
query?: never;
|
|
13546
14117
|
header?: never;
|
|
13547
14118
|
path?: never;
|
|
13548
14119
|
cookie?: never;
|
|
13549
14120
|
};
|
|
13550
|
-
requestBody
|
|
14121
|
+
requestBody: {
|
|
14122
|
+
content: {
|
|
14123
|
+
"application/json": {
|
|
14124
|
+
organizationId?: string;
|
|
14125
|
+
/**
|
|
14126
|
+
* @default {
|
|
14127
|
+
* "statuses": [
|
|
14128
|
+
* "active"
|
|
14129
|
+
* ],
|
|
14130
|
+
* "sellableOnly": true
|
|
14131
|
+
* }
|
|
14132
|
+
*/
|
|
14133
|
+
filters?: {
|
|
14134
|
+
/**
|
|
14135
|
+
* @default [
|
|
14136
|
+
* "active"
|
|
14137
|
+
* ]
|
|
14138
|
+
*/
|
|
14139
|
+
statuses?: ("active" | "draft" | "archived")[];
|
|
14140
|
+
productIds?: string[];
|
|
14141
|
+
skus?: string[];
|
|
14142
|
+
currencies?: string[];
|
|
14143
|
+
/** @default true */
|
|
14144
|
+
sellableOnly?: boolean;
|
|
14145
|
+
/**
|
|
14146
|
+
* @description Compare known cost against catalog price in the catalog currency, using recorded valid cost conversions. Missing cost or conversion is excluded.
|
|
14147
|
+
* @constant
|
|
14148
|
+
*/
|
|
14149
|
+
costComparison?: "above_price";
|
|
14150
|
+
};
|
|
14151
|
+
/**
|
|
14152
|
+
* @description Selected fields; id and the currency companions of monetary fields are always returned.
|
|
14153
|
+
* @default [
|
|
14154
|
+
* "id",
|
|
14155
|
+
* "parentId",
|
|
14156
|
+
* "type",
|
|
14157
|
+
* "name",
|
|
14158
|
+
* "sku",
|
|
14159
|
+
* "status",
|
|
14160
|
+
* "price",
|
|
14161
|
+
* "currency",
|
|
14162
|
+
* "cost",
|
|
14163
|
+
* "costCurrency",
|
|
14164
|
+
* "costInCatalogCurrency",
|
|
14165
|
+
* "costConversion",
|
|
14166
|
+
* "updatedAt"
|
|
14167
|
+
* ]
|
|
14168
|
+
*/
|
|
14169
|
+
fields?: (
|
|
14170
|
+
| "id"
|
|
14171
|
+
| "parentId"
|
|
14172
|
+
| "type"
|
|
14173
|
+
| "name"
|
|
14174
|
+
| "sku"
|
|
14175
|
+
| "status"
|
|
14176
|
+
| "price"
|
|
14177
|
+
| "currency"
|
|
14178
|
+
| "cost"
|
|
14179
|
+
| "costCurrency"
|
|
14180
|
+
| "costInCatalogCurrency"
|
|
14181
|
+
| "costConversion"
|
|
14182
|
+
| "updatedAt"
|
|
14183
|
+
)[];
|
|
14184
|
+
/** @default 100 */
|
|
14185
|
+
limit?: number;
|
|
14186
|
+
cursor?: string;
|
|
14187
|
+
/** @default true */
|
|
14188
|
+
includeCount?: boolean;
|
|
14189
|
+
};
|
|
14190
|
+
};
|
|
14191
|
+
};
|
|
13551
14192
|
responses: {
|
|
13552
|
-
/** @description
|
|
14193
|
+
/** @description Result */
|
|
13553
14194
|
200: {
|
|
13554
14195
|
headers: {
|
|
13555
14196
|
[name: string]: unknown;
|
|
13556
14197
|
};
|
|
13557
|
-
content
|
|
14198
|
+
content: {
|
|
14199
|
+
"application/json": {
|
|
14200
|
+
ok: boolean;
|
|
14201
|
+
apiVersion?: string;
|
|
14202
|
+
operationId?: string;
|
|
14203
|
+
status?: string;
|
|
14204
|
+
data: {
|
|
14205
|
+
success: boolean;
|
|
14206
|
+
matchedCount: number | null;
|
|
14207
|
+
returnedCount: number;
|
|
14208
|
+
diagnostics: {
|
|
14209
|
+
missingCostCount: number;
|
|
14210
|
+
uncomparableCostCount: number;
|
|
14211
|
+
} | null;
|
|
14212
|
+
hasMore: boolean;
|
|
14213
|
+
nextCursor: string | null;
|
|
14214
|
+
filters: {
|
|
14215
|
+
[key: string]: unknown;
|
|
14216
|
+
};
|
|
14217
|
+
comparisonCurrency: string | null;
|
|
14218
|
+
items: {
|
|
14219
|
+
id: string;
|
|
14220
|
+
parentId?: string | null;
|
|
14221
|
+
/** @enum {string} */
|
|
14222
|
+
type?: "product" | "variant";
|
|
14223
|
+
name?: string;
|
|
14224
|
+
sku?: string | null;
|
|
14225
|
+
status?: string | null;
|
|
14226
|
+
price?: number | null;
|
|
14227
|
+
currency?: string | null;
|
|
14228
|
+
cost?: number | null;
|
|
14229
|
+
costCurrency?: string | null;
|
|
14230
|
+
costInCatalogCurrency?: number | null;
|
|
14231
|
+
costConversion?: {
|
|
14232
|
+
[key: string]: unknown;
|
|
14233
|
+
} | null;
|
|
14234
|
+
updatedAt?: string;
|
|
14235
|
+
}[];
|
|
14236
|
+
};
|
|
14237
|
+
};
|
|
14238
|
+
};
|
|
13558
14239
|
};
|
|
13559
|
-
/** @description Invalid
|
|
14240
|
+
/** @description Invalid request. */
|
|
13560
14241
|
400: {
|
|
13561
14242
|
headers: {
|
|
13562
14243
|
[name: string]: unknown;
|
|
13563
14244
|
};
|
|
13564
14245
|
content?: never;
|
|
13565
14246
|
};
|
|
13566
|
-
/** @description
|
|
14247
|
+
/** @description Authentication required. */
|
|
13567
14248
|
401: {
|
|
13568
14249
|
headers: {
|
|
13569
14250
|
[name: string]: unknown;
|
|
13570
14251
|
};
|
|
13571
14252
|
content?: never;
|
|
13572
14253
|
};
|
|
13573
|
-
/** @description Missing
|
|
14254
|
+
/** @description Missing capability or organization/product access. */
|
|
13574
14255
|
403: {
|
|
13575
14256
|
headers: {
|
|
13576
14257
|
[name: string]: unknown;
|
|
13577
14258
|
};
|
|
13578
14259
|
content?: never;
|
|
13579
14260
|
};
|
|
13580
|
-
/** @description
|
|
13581
|
-
|
|
14261
|
+
/** @description Idempotency key reused with different input. */
|
|
14262
|
+
409: {
|
|
14263
|
+
headers: {
|
|
14264
|
+
[name: string]: unknown;
|
|
14265
|
+
};
|
|
14266
|
+
content?: never;
|
|
14267
|
+
};
|
|
14268
|
+
/** @description Temporarily unavailable. Retry the same idempotency key. */
|
|
14269
|
+
503: {
|
|
13582
14270
|
headers: {
|
|
13583
14271
|
[name: string]: unknown;
|
|
13584
14272
|
};
|
|
@@ -14856,6 +15544,8 @@ interface operations {
|
|
|
14856
15544
|
rootProductId?: string;
|
|
14857
15545
|
verification: {
|
|
14858
15546
|
ok: boolean;
|
|
15547
|
+
retryable?: boolean;
|
|
15548
|
+
currency?: string | null;
|
|
14859
15549
|
target: string;
|
|
14860
15550
|
evidence: string;
|
|
14861
15551
|
action?: string;
|
|
@@ -14955,6 +15645,156 @@ interface operations {
|
|
|
14955
15645
|
};
|
|
14956
15646
|
};
|
|
14957
15647
|
};
|
|
15648
|
+
post_v1_commerce_state_verify_jobs: {
|
|
15649
|
+
parameters: {
|
|
15650
|
+
query?: never;
|
|
15651
|
+
header?: never;
|
|
15652
|
+
path?: never;
|
|
15653
|
+
cookie?: never;
|
|
15654
|
+
};
|
|
15655
|
+
requestBody: {
|
|
15656
|
+
content: {
|
|
15657
|
+
"application/json": {
|
|
15658
|
+
organizationId?: string;
|
|
15659
|
+
idempotencyKey: string;
|
|
15660
|
+
verification: {
|
|
15661
|
+
/** @description Durable product verification does not accept job correlations; use commerce.verifyState for those. */
|
|
15662
|
+
correlations?: {
|
|
15663
|
+
/** @enum {string} */
|
|
15664
|
+
kind: "order_action" | "return_action" | "price_book_sync";
|
|
15665
|
+
/** Format: uuid */
|
|
15666
|
+
id: string;
|
|
15667
|
+
platform?: string;
|
|
15668
|
+
storeId?: string;
|
|
15669
|
+
productId?: string;
|
|
15670
|
+
productIds?: string[];
|
|
15671
|
+
externalIds?: string[];
|
|
15672
|
+
}[];
|
|
15673
|
+
/** @description Up to 2000 existing product or variant IDs. */
|
|
15674
|
+
productIds?: string[];
|
|
15675
|
+
/** @description Expected commerce state after a write (price, quantity, listingStatus, etc). */
|
|
15676
|
+
expected?: {
|
|
15677
|
+
price?: number;
|
|
15678
|
+
salePrice?: number | null;
|
|
15679
|
+
currency?: string;
|
|
15680
|
+
quantity?: number;
|
|
15681
|
+
/** @enum {string} */
|
|
15682
|
+
listingStatus?: "active" | "draft" | "unlisted" | "deleted";
|
|
15683
|
+
platforms?: string[];
|
|
15684
|
+
};
|
|
15685
|
+
/** @description Up to 2000 product targets with distinct expected states. Identical duplicates collapse; conflicting expectations fail. */
|
|
15686
|
+
targets?: {
|
|
15687
|
+
productId: string;
|
|
15688
|
+
expected: {
|
|
15689
|
+
price?: number;
|
|
15690
|
+
salePrice?: number | null;
|
|
15691
|
+
currency?: string;
|
|
15692
|
+
quantity?: number;
|
|
15693
|
+
/** @enum {string} */
|
|
15694
|
+
listingStatus?: "active" | "draft" | "unlisted" | "deleted";
|
|
15695
|
+
platforms?: string[];
|
|
15696
|
+
};
|
|
15697
|
+
}[];
|
|
15698
|
+
/**
|
|
15699
|
+
* @description Lifecycle action being verified. Use delete for Omni-only delete checks.
|
|
15700
|
+
* @enum {string}
|
|
15701
|
+
*/
|
|
15702
|
+
action?:
|
|
15703
|
+
| "price"
|
|
15704
|
+
| "inventory"
|
|
15705
|
+
| "publish"
|
|
15706
|
+
| "update"
|
|
15707
|
+
| "delist"
|
|
15708
|
+
| "delete";
|
|
15709
|
+
/** @description Optional marketplace filter: shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, ebay. */
|
|
15710
|
+
platforms?: string[];
|
|
15711
|
+
/** @description Also assert Omni DB fields (default true). */
|
|
15712
|
+
includeOmni?: boolean;
|
|
15713
|
+
};
|
|
15714
|
+
/** Format: uuid */
|
|
15715
|
+
sessionId?: string;
|
|
15716
|
+
};
|
|
15717
|
+
};
|
|
15718
|
+
};
|
|
15719
|
+
responses: {
|
|
15720
|
+
/** @description Durable operation accepted; completion and verification remain pending. */
|
|
15721
|
+
202: {
|
|
15722
|
+
headers: {
|
|
15723
|
+
[name: string]: unknown;
|
|
15724
|
+
};
|
|
15725
|
+
content: {
|
|
15726
|
+
"application/json": {
|
|
15727
|
+
ok: boolean;
|
|
15728
|
+
apiVersion?: string;
|
|
15729
|
+
operationId?: string;
|
|
15730
|
+
status?: string;
|
|
15731
|
+
data: {
|
|
15732
|
+
queued: boolean;
|
|
15733
|
+
operationIds: string[];
|
|
15734
|
+
productIds: string[];
|
|
15735
|
+
operation: {
|
|
15736
|
+
operationId: string;
|
|
15737
|
+
/** @enum {string} */
|
|
15738
|
+
kind?: "update" | "verify";
|
|
15739
|
+
success: boolean;
|
|
15740
|
+
allTerminal: boolean;
|
|
15741
|
+
status: string;
|
|
15742
|
+
totalCount?: number;
|
|
15743
|
+
succeededCount?: number;
|
|
15744
|
+
failedCount?: number;
|
|
15745
|
+
pendingCount?: number;
|
|
15746
|
+
syncingCount?: number;
|
|
15747
|
+
verifiedCount?: number;
|
|
15748
|
+
verificationRequested?: boolean;
|
|
15749
|
+
phases?: {
|
|
15750
|
+
[key: string]: number;
|
|
15751
|
+
};
|
|
15752
|
+
updatedAt?: string;
|
|
15753
|
+
completedAt?: string | null;
|
|
15754
|
+
error?: string;
|
|
15755
|
+
report?: string;
|
|
15756
|
+
};
|
|
15757
|
+
};
|
|
15758
|
+
};
|
|
15759
|
+
};
|
|
15760
|
+
};
|
|
15761
|
+
/** @description Invalid request. */
|
|
15762
|
+
400: {
|
|
15763
|
+
headers: {
|
|
15764
|
+
[name: string]: unknown;
|
|
15765
|
+
};
|
|
15766
|
+
content?: never;
|
|
15767
|
+
};
|
|
15768
|
+
/** @description Authentication required. */
|
|
15769
|
+
401: {
|
|
15770
|
+
headers: {
|
|
15771
|
+
[name: string]: unknown;
|
|
15772
|
+
};
|
|
15773
|
+
content?: never;
|
|
15774
|
+
};
|
|
15775
|
+
/** @description Missing capability or organization/product access. */
|
|
15776
|
+
403: {
|
|
15777
|
+
headers: {
|
|
15778
|
+
[name: string]: unknown;
|
|
15779
|
+
};
|
|
15780
|
+
content?: never;
|
|
15781
|
+
};
|
|
15782
|
+
/** @description Idempotency key reused with different input. */
|
|
15783
|
+
409: {
|
|
15784
|
+
headers: {
|
|
15785
|
+
[name: string]: unknown;
|
|
15786
|
+
};
|
|
15787
|
+
content?: never;
|
|
15788
|
+
};
|
|
15789
|
+
/** @description Temporarily unavailable. Retry the same idempotency key. */
|
|
15790
|
+
503: {
|
|
15791
|
+
headers: {
|
|
15792
|
+
[name: string]: unknown;
|
|
15793
|
+
};
|
|
15794
|
+
content?: never;
|
|
15795
|
+
};
|
|
15796
|
+
};
|
|
15797
|
+
};
|
|
14958
15798
|
get_v1_compare: {
|
|
14959
15799
|
parameters: {
|
|
14960
15800
|
query: {
|
|
@@ -29838,6 +30678,42 @@ declare class BrandsgatewayClient {
|
|
|
29838
30678
|
*/
|
|
29839
30679
|
importProducts(request: OperationBody<operations["post_v1_brandsgateway_import"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_brandsgateway_import"]>>;
|
|
29840
30680
|
}
|
|
30681
|
+
declare class BulkClient {
|
|
30682
|
+
protected readonly _http: OmniHttp;
|
|
30683
|
+
constructor(_http: OmniHttp);
|
|
30684
|
+
/**
|
|
30685
|
+
* List Catalog Operations for Session
|
|
30686
|
+
*
|
|
30687
|
+
* Read the latest 20 compact catalog-operation summaries linked to an authorized session. Requires catalog:read; product data scope is rechecked.
|
|
30688
|
+
*
|
|
30689
|
+
* `GET /api/v1/catalog/operations`
|
|
30690
|
+
*/
|
|
30691
|
+
listForSession(request: OperationQuery<operations["get_v1_catalog_operations"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_operations"]>>;
|
|
30692
|
+
/**
|
|
30693
|
+
* Start Catalog Operation
|
|
30694
|
+
*
|
|
30695
|
+
* Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write. Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
|
|
30696
|
+
*
|
|
30697
|
+
* `POST /api/v1/catalog/operations`
|
|
30698
|
+
*/
|
|
30699
|
+
start(request: OperationBody<operations["post_v1_catalog_operations"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_catalog_operations"]>>;
|
|
30700
|
+
/**
|
|
30701
|
+
* Get Catalog Operation Results
|
|
30702
|
+
*
|
|
30703
|
+
* Read ordered per-product receipts and verification evidence for up to 50 operationIds. Filter status=failed to inspect failures directly. At most 100 rows across the requested operations per page. Requires catalog:read.
|
|
30704
|
+
*
|
|
30705
|
+
* `POST /api/v1/catalog/operations/results`
|
|
30706
|
+
*/
|
|
30707
|
+
results(request: OperationBody<operations["post_v1_catalog_operations_results"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_catalog_operations_results"]>>;
|
|
30708
|
+
/**
|
|
30709
|
+
* Get Catalog Operation Status
|
|
30710
|
+
*
|
|
30711
|
+
* Read compact progress for up to 50 operationIds in first-requested order. Pending is incomplete, and partial failures remain explicit. Requires catalog:read. Detailed receipts are returned only by the paginated report API.
|
|
30712
|
+
*
|
|
30713
|
+
* `POST /api/v1/catalog/operations/status`
|
|
30714
|
+
*/
|
|
30715
|
+
status(request: OperationBody<operations["post_v1_catalog_operations_status"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_catalog_operations_status"]>>;
|
|
30716
|
+
}
|
|
29841
30717
|
declare class CampaignsClient {
|
|
29842
30718
|
protected readonly _http: OmniHttp;
|
|
29843
30719
|
constructor(_http: OmniHttp);
|
|
@@ -30009,6 +30885,14 @@ declare class CatalogClient {
|
|
|
30009
30885
|
* `GET /api/v1/catalog/items`
|
|
30010
30886
|
*/
|
|
30011
30887
|
listItems(request?: OperationQuery<operations["get_v1_catalog_items"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_items"]>>;
|
|
30888
|
+
/**
|
|
30889
|
+
* Query Catalog
|
|
30890
|
+
*
|
|
30891
|
+
* Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match. Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
|
|
30892
|
+
*
|
|
30893
|
+
* `POST /api/v1/catalog/query`
|
|
30894
|
+
*/
|
|
30895
|
+
query(request: OperationBody<operations["post_v1_catalog_query"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_catalog_query"]>>;
|
|
30012
30896
|
}
|
|
30013
30897
|
declare class CheckoutSessionsClient {
|
|
30014
30898
|
protected readonly _http: OmniHttp;
|
|
@@ -30097,6 +30981,14 @@ declare class CommerceClient {
|
|
|
30097
30981
|
* `POST /api/v1/commerce/state/verify`
|
|
30098
30982
|
*/
|
|
30099
30983
|
verifyState(request: OperationBody<operations["post_v1_commerce_state_verify"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_commerce_state_verify"]>>;
|
|
30984
|
+
/**
|
|
30985
|
+
* Start Commerce Verification
|
|
30986
|
+
*
|
|
30987
|
+
* Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read. Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
|
|
30988
|
+
*
|
|
30989
|
+
* `POST /api/v1/commerce/state/verify/jobs`
|
|
30990
|
+
*/
|
|
30991
|
+
startVerification(request: OperationBody<operations["post_v1_commerce_state_verify_jobs"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_commerce_state_verify_jobs"]>>;
|
|
30100
30992
|
}
|
|
30101
30993
|
declare class CompareClient {
|
|
30102
30994
|
protected readonly _http: OmniHttp;
|
|
@@ -30876,11 +31768,44 @@ declare class ProductsClient {
|
|
|
30876
31768
|
enrich(request: OperationBody<operations["post_v1_products_enrich"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_enrich"]>>;
|
|
30877
31769
|
/** Read a bounded chunk without summary classification; persist progress to resume. */
|
|
30878
31770
|
scan(request?: ProductScanRequest, options?: ProductScanOptions): Promise<ProductScanResult>;
|
|
30879
|
-
/**
|
|
31771
|
+
/**
|
|
31772
|
+
* Publish saved products; updateFields limits writes to selected fields on existing listings.
|
|
31773
|
+
* Accepts 1–100 entries; concurrency is 1–10 (default 3).
|
|
31774
|
+
* productIds are trimmed and deduplicated in first-requested order.
|
|
31775
|
+
* Omit marketplaces for all eligible marketplaces, or preserve the requested targets.
|
|
31776
|
+
* Returns success, productIds, succeededCount, failedCount, ordered results and jobIds.
|
|
31777
|
+
* Results retain each response/error, even for partial failures. Success means submitted,
|
|
31778
|
+
* not marketplace-verified. Preserve typed correlations from the responses for commerce.awaitJobs.
|
|
31779
|
+
* These client-side requests are not atomic or a durable server batch. Keep this process
|
|
31780
|
+
* alive during submission and persist receipts before the next chunk. Request options
|
|
31781
|
+
* apply per product, not to the entire batch. An abortSignal stops unstarted submissions.
|
|
31782
|
+
*/
|
|
30880
31783
|
batchPublish(request: BatchPublishProductsRequest, options?: ProductBatchOptions): Promise<BatchPublishProductsResult>;
|
|
30881
|
-
/**
|
|
31784
|
+
/**
|
|
31785
|
+
* Delist products using their eligible or explicitly selected marketplaces.
|
|
31786
|
+
* Accepts 1–100 entries; concurrency is 1–10 (default 3).
|
|
31787
|
+
* productIds are trimmed and deduplicated in first-requested order.
|
|
31788
|
+
* Omit marketplaces for all eligible marketplaces, or preserve the requested targets.
|
|
31789
|
+
* Returns success, productIds, succeededCount, failedCount, ordered results and jobIds.
|
|
31790
|
+
* Results retain each response/error, even for partial failures. Success means submitted,
|
|
31791
|
+
* not marketplace-verified. Preserve typed correlations from the responses for commerce.awaitJobs.
|
|
31792
|
+
* These client-side requests are not atomic or a durable server batch. Keep this process
|
|
31793
|
+
* alive during submission and persist receipts before the next chunk. Request options
|
|
31794
|
+
* apply per product, not to the entire batch. An abortSignal stops unstarted submissions.
|
|
31795
|
+
*/
|
|
30882
31796
|
batchDelist(request: BatchDelistProductsRequest, options?: ProductBatchOptions): Promise<BatchDelistProductsResult>;
|
|
30883
|
-
/**
|
|
31797
|
+
/**
|
|
31798
|
+
* Save per-product catalog edits; publish saved fields separately when requested.
|
|
31799
|
+
* Accepts 1–100 entries; concurrency is 1–10 (default 3).
|
|
31800
|
+
* Each update uses productId and normal update fields; duplicate IDs are rejected.
|
|
31801
|
+
* Submit price/currency changes separately from other product fields.
|
|
31802
|
+
* Returns success, productIds, succeededCount, failedCount, ordered results and jobIds.
|
|
31803
|
+
* Results retain each response/error, even for partial failures. Success means submitted,
|
|
31804
|
+
* not marketplace-verified. Preserve typed correlations from the responses for commerce.awaitJobs.
|
|
31805
|
+
* These client-side requests are not atomic or a durable server batch. Keep this process
|
|
31806
|
+
* alive during submission and persist receipts before the next chunk. Request options
|
|
31807
|
+
* apply per product, not to the entire batch. An abortSignal stops unstarted submissions.
|
|
31808
|
+
*/
|
|
30884
31809
|
batchUpdate(request: BatchUpdateProductsRequest, options?: ProductBatchOptions): Promise<BatchUpdateProductsResult>;
|
|
30885
31810
|
}
|
|
30886
31811
|
declare class PromotionsClient {
|
|
@@ -31493,6 +32418,7 @@ declare class OmniGeneratedClient {
|
|
|
31493
32418
|
readonly api: ApiClient;
|
|
31494
32419
|
readonly brandKits: BrandKitsClient;
|
|
31495
32420
|
readonly brandsgateway: BrandsgatewayClient;
|
|
32421
|
+
readonly bulk: BulkClient;
|
|
31496
32422
|
readonly campaigns: CampaignsClient;
|
|
31497
32423
|
readonly catalog: CatalogClient;
|
|
31498
32424
|
readonly checkoutSessions: CheckoutSessionsClient;
|
|
@@ -31536,6 +32462,7 @@ type OmniResources = {
|
|
|
31536
32462
|
api: ApiClient;
|
|
31537
32463
|
brandKits: BrandKitsClient;
|
|
31538
32464
|
brandsgateway: BrandsgatewayClient;
|
|
32465
|
+
bulk: BulkClient;
|
|
31539
32466
|
campaigns: CampaignsClient;
|
|
31540
32467
|
catalog: CatalogClient;
|
|
31541
32468
|
checkoutSessions: CheckoutSessionsClient;
|
|
@@ -31613,7 +32540,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
31613
32540
|
toleranceInSeconds?: number;
|
|
31614
32541
|
}): Promise<ConstructedWebhookEvent>;
|
|
31615
32542
|
|
|
31616
|
-
declare const SDK_VERSION = "0.
|
|
32543
|
+
declare const SDK_VERSION = "0.21.0";
|
|
31617
32544
|
|
|
31618
32545
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
31619
32546
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|