@omni-commerce/sdk 0.1.0 → 0.1.1
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/dist/index.cjs +17 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +236 -43
- package/dist/index.d.ts +236 -43
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -918,13 +918,15 @@ interface paths {
|
|
|
918
918
|
};
|
|
919
919
|
/**
|
|
920
920
|
* List Price Book Rules
|
|
921
|
-
* @description List marketplace price book rules for the authenticated organization.
|
|
921
|
+
* @description List marketplace price book rules for the authenticated organization. A rule applies either a buyer formula or a markup percent to the catalog price at publish time, by platform and optional store/country. Requires `price_books:read`.
|
|
922
922
|
*/
|
|
923
923
|
get: operations["get_v1_price_books"];
|
|
924
924
|
put?: never;
|
|
925
925
|
/**
|
|
926
926
|
* Create Price Book Rule
|
|
927
|
-
* @description Create a marketplace price book rule for a platform (optional store
|
|
927
|
+
* @description Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.
|
|
928
|
+
*
|
|
929
|
+
* `expression` is the buyer formula and replaces markup percent. `price` in that formula is the catalog price, not cost price. Without an expression, `marginValue` is the markup percent.
|
|
928
930
|
*/
|
|
929
931
|
post: operations["post_v1_price_books"];
|
|
930
932
|
delete?: never;
|
|
@@ -956,7 +958,7 @@ interface paths {
|
|
|
956
958
|
head?: never;
|
|
957
959
|
/**
|
|
958
960
|
* Update Price Book Rule
|
|
959
|
-
* @description Update store, country,
|
|
961
|
+
* @description Update store, country, markup, buyer formula, rounding, currency, or enabled flag for a price book rule. Platform cannot be changed; create a new rule instead. Requires `price_books:write`.
|
|
960
962
|
*/
|
|
961
963
|
patch: operations["patch_v1_price_books_by_ruleid"];
|
|
962
964
|
trace?: never;
|
|
@@ -991,6 +993,8 @@ interface paths {
|
|
|
991
993
|
/**
|
|
992
994
|
* List Products
|
|
993
995
|
* @description List products for the authenticated organization with optional filters and pagination. Authenticate with an API key or OAuth bearer token. The organization is taken from that credential; do not send `organizationId`.
|
|
996
|
+
*
|
|
997
|
+
* Rows are in `items`. Read catalog stock from `items[].stockQuantity`: parent rows already aggregate their non-deleted variants, and virtual bundles use component availability with any manual cap. Null means unknown, not zero. List rows do not contain `inventoryQuantity`, `inventory.quantity`, or an embedded `variants` array.
|
|
994
998
|
*/
|
|
995
999
|
get: operations["get_v1_products"];
|
|
996
1000
|
put?: never;
|
|
@@ -1086,7 +1090,9 @@ interface paths {
|
|
|
1086
1090
|
put?: never;
|
|
1087
1091
|
/**
|
|
1088
1092
|
* Delist Product
|
|
1089
|
-
* @description Queue delist for one product on the marketplaces you name. `marketplaces` accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit `marketplaces` to delist every existing listing. This does not delete the OmniCommerce product.
|
|
1093
|
+
* @description Queue delist for one product on the marketplaces you name. `marketplaces` accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit `marketplaces` to delist every existing listing. This does not delete the OmniCommerce product.
|
|
1094
|
+
*
|
|
1095
|
+
* Poll GET /api/v1/jobs/{jobId} until data.status is succeeded, partial, or failed. Accepted means the job was queued, not that the marketplace has removed the listing.
|
|
1090
1096
|
*/
|
|
1091
1097
|
post: operations["post_v1_products_by_productid_delist"];
|
|
1092
1098
|
delete?: never;
|
|
@@ -2087,6 +2093,33 @@ interface components {
|
|
|
2087
2093
|
} & {
|
|
2088
2094
|
[key: string]: unknown;
|
|
2089
2095
|
};
|
|
2096
|
+
ReviewWebhookSnapshot: {
|
|
2097
|
+
id: string;
|
|
2098
|
+
organizationId: string;
|
|
2099
|
+
platform: string;
|
|
2100
|
+
accountId: string | null;
|
|
2101
|
+
productId: string | null;
|
|
2102
|
+
orderId: string | null;
|
|
2103
|
+
externalItemId: string | null;
|
|
2104
|
+
externalReviewId: string;
|
|
2105
|
+
externalOrderId: string | null;
|
|
2106
|
+
/** @enum {string} */
|
|
2107
|
+
kind: "product_review" | "solicitation";
|
|
2108
|
+
/** @enum {string} */
|
|
2109
|
+
status:
|
|
2110
|
+
| "open"
|
|
2111
|
+
| "replied"
|
|
2112
|
+
| "hidden"
|
|
2113
|
+
| "handoff"
|
|
2114
|
+
| "solicited"
|
|
2115
|
+
| "ineligible";
|
|
2116
|
+
rating: number | null;
|
|
2117
|
+
comment: string | null;
|
|
2118
|
+
sellerReply: string | null;
|
|
2119
|
+
canReply: boolean;
|
|
2120
|
+
/** Format: date-time */
|
|
2121
|
+
reviewedAt: string | null;
|
|
2122
|
+
};
|
|
2090
2123
|
ProductCreatedWebhookEvent: {
|
|
2091
2124
|
/** @description Stable event ID and recipient idempotency key. */
|
|
2092
2125
|
eventId: string;
|
|
@@ -2297,6 +2330,72 @@ interface components {
|
|
|
2297
2330
|
} & {
|
|
2298
2331
|
[key: string]: unknown;
|
|
2299
2332
|
};
|
|
2333
|
+
ReviewCreatedWebhookEvent: {
|
|
2334
|
+
/** @description Stable event ID and recipient idempotency key. */
|
|
2335
|
+
eventId: string;
|
|
2336
|
+
/** @constant */
|
|
2337
|
+
eventType: "review.created";
|
|
2338
|
+
organizationId: string;
|
|
2339
|
+
reviewId: string;
|
|
2340
|
+
productId: string | null;
|
|
2341
|
+
previousStatus?: string | null;
|
|
2342
|
+
changedFields: string[];
|
|
2343
|
+
/** Format: date-time */
|
|
2344
|
+
occurredAt: string;
|
|
2345
|
+
/** @description Internal OmniCommerce workflow provenance when supplied. */
|
|
2346
|
+
source?: string | null;
|
|
2347
|
+
data: {
|
|
2348
|
+
review: components["schemas"]["ReviewWebhookSnapshot"];
|
|
2349
|
+
} & {
|
|
2350
|
+
[key: string]: unknown;
|
|
2351
|
+
};
|
|
2352
|
+
} & {
|
|
2353
|
+
[key: string]: unknown;
|
|
2354
|
+
};
|
|
2355
|
+
ReviewUpdatedWebhookEvent: {
|
|
2356
|
+
/** @description Stable event ID and recipient idempotency key. */
|
|
2357
|
+
eventId: string;
|
|
2358
|
+
/** @constant */
|
|
2359
|
+
eventType: "review.updated";
|
|
2360
|
+
organizationId: string;
|
|
2361
|
+
reviewId: string;
|
|
2362
|
+
productId: string | null;
|
|
2363
|
+
previousStatus?: string | null;
|
|
2364
|
+
changedFields: string[];
|
|
2365
|
+
/** Format: date-time */
|
|
2366
|
+
occurredAt: string;
|
|
2367
|
+
/** @description Internal OmniCommerce workflow provenance when supplied. */
|
|
2368
|
+
source?: string | null;
|
|
2369
|
+
data: {
|
|
2370
|
+
review: components["schemas"]["ReviewWebhookSnapshot"];
|
|
2371
|
+
} & {
|
|
2372
|
+
[key: string]: unknown;
|
|
2373
|
+
};
|
|
2374
|
+
} & {
|
|
2375
|
+
[key: string]: unknown;
|
|
2376
|
+
};
|
|
2377
|
+
ReviewStatusChangedWebhookEvent: {
|
|
2378
|
+
/** @description Stable event ID and recipient idempotency key. */
|
|
2379
|
+
eventId: string;
|
|
2380
|
+
/** @constant */
|
|
2381
|
+
eventType: "review.status.changed";
|
|
2382
|
+
organizationId: string;
|
|
2383
|
+
reviewId: string;
|
|
2384
|
+
productId: string | null;
|
|
2385
|
+
previousStatus?: string | null;
|
|
2386
|
+
changedFields: string[];
|
|
2387
|
+
/** Format: date-time */
|
|
2388
|
+
occurredAt: string;
|
|
2389
|
+
/** @description Internal OmniCommerce workflow provenance when supplied. */
|
|
2390
|
+
source?: string | null;
|
|
2391
|
+
data: {
|
|
2392
|
+
review: components["schemas"]["ReviewWebhookSnapshot"];
|
|
2393
|
+
} & {
|
|
2394
|
+
[key: string]: unknown;
|
|
2395
|
+
};
|
|
2396
|
+
} & {
|
|
2397
|
+
[key: string]: unknown;
|
|
2398
|
+
};
|
|
2300
2399
|
WebhookMoney: {
|
|
2301
2400
|
/** @description Decimal monetary amount encoded as a JSON string. */
|
|
2302
2401
|
amount: string;
|
|
@@ -6742,28 +6841,16 @@ interface operations {
|
|
|
6742
6841
|
storeId?: string | null;
|
|
6743
6842
|
/** @description Optional country scope (name or code). Null/omit applies to all countries. */
|
|
6744
6843
|
country?: string | null;
|
|
6745
|
-
/** @description
|
|
6746
|
-
sourceKey?: string | null;
|
|
6747
|
-
/**
|
|
6748
|
-
* @description Starting amount for a formula. Ignored when `steps` is empty. Defaults to `list_price`.
|
|
6749
|
-
* @enum {string}
|
|
6750
|
-
*/
|
|
6751
|
-
base?: "list_price" | "cost";
|
|
6752
|
-
/**
|
|
6753
|
-
* @description `list_price` rewrites the shelf price. `payout` is calculated and not published. Defaults to `list_price`.
|
|
6754
|
-
* @enum {string}
|
|
6755
|
-
*/
|
|
6756
|
-
application?: "list_price" | "payout";
|
|
6757
|
-
/** @description Ordered formula steps. When non-empty, these replace the percent markup. */
|
|
6758
|
-
steps?: Record<string, never>[];
|
|
6759
|
-
/** @description Markup percent applied to canonical list price. Ignored when `steps` is non-empty. */
|
|
6844
|
+
/** @description Markup percent applied to the catalog price. Ignored when `expression` is set. */
|
|
6760
6845
|
marginValue: number;
|
|
6846
|
+
/** @description Buyer formula. `price` is the catalog price. Supports arithmetic, percentages, CEILING, IF, and CURRENCY(rate, "USD"). Replaces markup percent. */
|
|
6847
|
+
expression?: string | null;
|
|
6761
6848
|
/**
|
|
6762
6849
|
* @description Defaults to `currency_minor` when omitted.
|
|
6763
6850
|
* @enum {string}
|
|
6764
6851
|
*/
|
|
6765
6852
|
rounding?: "none" | "currency_minor" | "nearest_0_05" | "nearest_1";
|
|
6766
|
-
/** @description ISO 4217 currency
|
|
6853
|
+
/** @description Optional ISO 4217 currency for `currency_minor` rounding. */
|
|
6767
6854
|
currency?: string | null;
|
|
6768
6855
|
/**
|
|
6769
6856
|
* @description Whether the rule is active. Defaults to true.
|
|
@@ -6956,17 +7043,12 @@ interface operations {
|
|
|
6956
7043
|
organizationId?: string;
|
|
6957
7044
|
storeId?: string | null;
|
|
6958
7045
|
country?: string | null;
|
|
6959
|
-
sourceKey?: string | null;
|
|
6960
|
-
/** @enum {string} */
|
|
6961
|
-
base?: "list_price" | "cost";
|
|
6962
|
-
/** @enum {string} */
|
|
6963
|
-
application?: "list_price" | "payout";
|
|
6964
|
-
/** @description Ordered formula steps. When non-empty, these replace the percent markup. */
|
|
6965
|
-
steps?: Record<string, never>[];
|
|
6966
7046
|
marginValue?: number;
|
|
6967
7047
|
/** @enum {string} */
|
|
6968
7048
|
rounding?: "none" | "currency_minor" | "nearest_0_05" | "nearest_1";
|
|
6969
7049
|
currency?: string | null;
|
|
7050
|
+
/** @description Buyer formula. `price` is the catalog price. Null clears the formula and markup percent applies again. */
|
|
7051
|
+
expression?: string | null;
|
|
6970
7052
|
enabled?: boolean;
|
|
6971
7053
|
};
|
|
6972
7054
|
};
|
|
@@ -7050,16 +7132,8 @@ interface operations {
|
|
|
7050
7132
|
| "zalora"
|
|
7051
7133
|
| "amazon"
|
|
7052
7134
|
| "ebay";
|
|
7053
|
-
/** @description Canonical list price
|
|
7135
|
+
/** @description Canonical list price to mark up. */
|
|
7054
7136
|
listPrice: number;
|
|
7055
|
-
/** @description Cost used when the matching formula starts from cost. */
|
|
7056
|
-
costPrice?: number;
|
|
7057
|
-
costCurrency?: string | null;
|
|
7058
|
-
sourceKey?: string | null;
|
|
7059
|
-
/** @description Pricing category used by a shipping rate step. */
|
|
7060
|
-
categoryKey?: string | null;
|
|
7061
|
-
/** @enum {string} */
|
|
7062
|
-
application?: "list_price" | "payout";
|
|
7063
7137
|
storeId?: string | null;
|
|
7064
7138
|
country?: string | null;
|
|
7065
7139
|
currency?: string | null;
|
|
@@ -7085,12 +7159,18 @@ interface operations {
|
|
|
7085
7159
|
/** @enum {string} */
|
|
7086
7160
|
source: "price_book" | "canonical";
|
|
7087
7161
|
markupPercent?: number;
|
|
7162
|
+
/** @description Listed currency when known. A buyer formula with CURRENCY sets it. */
|
|
7163
|
+
currency?: string;
|
|
7164
|
+
/** @description Present and true when the buyer formula lists below the catalog price in the same currency. This is usually a payout formula, price * (1 - fees), used where the gross-up, price / (1 - fees), was meant. */
|
|
7165
|
+
belowCatalogPrice?: boolean;
|
|
7166
|
+
/** @description Set when the matched buyer formula cannot price this list price. Publish fails for that listing instead of using the catalog price. */
|
|
7167
|
+
formulaError?: string;
|
|
7088
7168
|
rule?: Record<string, never> | null;
|
|
7089
7169
|
message?: string;
|
|
7090
7170
|
};
|
|
7091
7171
|
};
|
|
7092
7172
|
};
|
|
7093
|
-
/** @description Bad Request */
|
|
7173
|
+
/** @description Bad Request, or the forced `ruleId` has a buyer formula that cannot price this list price */
|
|
7094
7174
|
400: {
|
|
7095
7175
|
headers: {
|
|
7096
7176
|
[name: string]: unknown;
|
|
@@ -7172,6 +7252,18 @@ interface operations {
|
|
|
7172
7252
|
content: {
|
|
7173
7253
|
"application/json": {
|
|
7174
7254
|
items?: {
|
|
7255
|
+
/** Format: uuid */
|
|
7256
|
+
id: string;
|
|
7257
|
+
name: string;
|
|
7258
|
+
sku: string | null;
|
|
7259
|
+
/** Format: uuid */
|
|
7260
|
+
parentId: string | null;
|
|
7261
|
+
isVariant: boolean;
|
|
7262
|
+
/** @description Catalog stock in whole units, matching the Products page. Parent rows aggregate non-deleted variants in the same organization; virtual bundles derive stock from components and any manual cap. Null means unknown: never substitute zero for missing or null stock. This is not a sum of marketplace inventory mirrors or a per-location available-to-promise balance. */
|
|
7263
|
+
stockQuantity: number | null;
|
|
7264
|
+
/** @description Whether the product has variants. The list row's stockQuantity already includes their stock; variants are not embedded in this response. */
|
|
7265
|
+
hasVariants: boolean;
|
|
7266
|
+
variantCount: number;
|
|
7175
7267
|
status?: string;
|
|
7176
7268
|
/** @description Read-only product-wide state. Lifecycle status and derived quality/error signals are independent; this field is recalculated from current product, marketplace QC, and review flags. */
|
|
7177
7269
|
statusFacets?: {
|
|
@@ -7194,8 +7286,12 @@ interface operations {
|
|
|
7194
7286
|
hasMore?: boolean;
|
|
7195
7287
|
nextOffset?: number;
|
|
7196
7288
|
summary?: {
|
|
7289
|
+
/** @description All-tab count under the other filters, before applying the selected status. Use pagination.total for the matching result count. */
|
|
7197
7290
|
totalCount?: number;
|
|
7198
|
-
|
|
7291
|
+
/** @description Counts by product status under the other selected filters. */
|
|
7292
|
+
statusCounts?: {
|
|
7293
|
+
[key: string]: number;
|
|
7294
|
+
};
|
|
7199
7295
|
};
|
|
7200
7296
|
/** @description Echoes the offset/limit actually applied to the query (after clamping) plus discovery metadata for paging. */
|
|
7201
7297
|
pagination?: {
|
|
@@ -8784,8 +8880,8 @@ interface operations {
|
|
|
8784
8880
|
| "fail_job";
|
|
8785
8881
|
autoApproveThreshold?: number | null;
|
|
8786
8882
|
spendCeilingUsd?: number | null;
|
|
8787
|
-
/** @description
|
|
8788
|
-
marketplaceStoreSelections
|
|
8883
|
+
/** @description Required: select at least one connected store. One store per marketplace, not an array of store IDs. */
|
|
8884
|
+
marketplaceStoreSelections: {
|
|
8789
8885
|
/** @description Connected shopee store ID. */
|
|
8790
8886
|
shopee?: string;
|
|
8791
8887
|
/** @description Connected lazada store ID. */
|
|
@@ -8856,7 +8952,7 @@ interface operations {
|
|
|
8856
8952
|
/** @description JSON object mapping CSV headers to import fields, e.g. `{"sku":"SKU","title":"Product Name"}`. */
|
|
8857
8953
|
fieldMapping?: string;
|
|
8858
8954
|
/** @description Connected store ID for each target marketplace. JSON requests send an object; multipart may send that object as a JSON string. */
|
|
8859
|
-
marketplaceStoreSelections
|
|
8955
|
+
marketplaceStoreSelections:
|
|
8860
8956
|
| {
|
|
8861
8957
|
/** @description Connected shopee store ID. */
|
|
8862
8958
|
shopee?: string;
|
|
@@ -9904,6 +10000,12 @@ interface operations {
|
|
|
9904
10000
|
variantSku?: string | null;
|
|
9905
10001
|
/** @default 0 */
|
|
9906
10002
|
priority?: number;
|
|
10003
|
+
/** @description Optional per-product discount for product discounts and flash sales. Uses the campaign discount type. Null restores the shared discount. Shopee and TikTok publish the resulting price. Lazada vouchers and Shopify fail sync while any product has its own discount. */
|
|
10004
|
+
productDiscounts?: {
|
|
10005
|
+
/** Format: uuid */
|
|
10006
|
+
productId: string;
|
|
10007
|
+
discountValue: number | null;
|
|
10008
|
+
}[];
|
|
9907
10009
|
};
|
|
9908
10010
|
};
|
|
9909
10011
|
};
|
|
@@ -10990,6 +11092,9 @@ interface operations {
|
|
|
10990
11092
|
| "order.status.changed"
|
|
10991
11093
|
| "look.created"
|
|
10992
11094
|
| "look.deleted"
|
|
11095
|
+
| "review.created"
|
|
11096
|
+
| "review.updated"
|
|
11097
|
+
| "review.status.changed"
|
|
10993
11098
|
| "settlement.created"
|
|
10994
11099
|
| "settlement.updated"
|
|
10995
11100
|
| "settlement.status.changed"
|
|
@@ -12444,6 +12549,90 @@ interface operations {
|
|
|
12444
12549
|
};
|
|
12445
12550
|
};
|
|
12446
12551
|
};
|
|
12552
|
+
review_created_webhook: {
|
|
12553
|
+
parameters: {
|
|
12554
|
+
query?: never;
|
|
12555
|
+
header: {
|
|
12556
|
+
"X-Omni-Event-Id": string;
|
|
12557
|
+
"X-Omni-Event-Type": "review.created";
|
|
12558
|
+
"X-Omni-Timestamp": string;
|
|
12559
|
+
/** @description Hex HMAC-SHA256 of `{timestamp}.{rawBody}` using the subscription secret. */
|
|
12560
|
+
"X-Omni-Signature": string;
|
|
12561
|
+
};
|
|
12562
|
+
path?: never;
|
|
12563
|
+
cookie?: never;
|
|
12564
|
+
};
|
|
12565
|
+
requestBody: {
|
|
12566
|
+
content: {
|
|
12567
|
+
"application/json": components["schemas"]["ReviewCreatedWebhookEvent"];
|
|
12568
|
+
};
|
|
12569
|
+
};
|
|
12570
|
+
responses: {
|
|
12571
|
+
/** @description Event accepted. */
|
|
12572
|
+
"2XX": {
|
|
12573
|
+
headers: {
|
|
12574
|
+
[name: string]: unknown;
|
|
12575
|
+
};
|
|
12576
|
+
content?: never;
|
|
12577
|
+
};
|
|
12578
|
+
};
|
|
12579
|
+
};
|
|
12580
|
+
review_updated_webhook: {
|
|
12581
|
+
parameters: {
|
|
12582
|
+
query?: never;
|
|
12583
|
+
header: {
|
|
12584
|
+
"X-Omni-Event-Id": string;
|
|
12585
|
+
"X-Omni-Event-Type": "review.updated";
|
|
12586
|
+
"X-Omni-Timestamp": string;
|
|
12587
|
+
/** @description Hex HMAC-SHA256 of `{timestamp}.{rawBody}` using the subscription secret. */
|
|
12588
|
+
"X-Omni-Signature": string;
|
|
12589
|
+
};
|
|
12590
|
+
path?: never;
|
|
12591
|
+
cookie?: never;
|
|
12592
|
+
};
|
|
12593
|
+
requestBody: {
|
|
12594
|
+
content: {
|
|
12595
|
+
"application/json": components["schemas"]["ReviewUpdatedWebhookEvent"];
|
|
12596
|
+
};
|
|
12597
|
+
};
|
|
12598
|
+
responses: {
|
|
12599
|
+
/** @description Event accepted. */
|
|
12600
|
+
"2XX": {
|
|
12601
|
+
headers: {
|
|
12602
|
+
[name: string]: unknown;
|
|
12603
|
+
};
|
|
12604
|
+
content?: never;
|
|
12605
|
+
};
|
|
12606
|
+
};
|
|
12607
|
+
};
|
|
12608
|
+
review_status_changed_webhook: {
|
|
12609
|
+
parameters: {
|
|
12610
|
+
query?: never;
|
|
12611
|
+
header: {
|
|
12612
|
+
"X-Omni-Event-Id": string;
|
|
12613
|
+
"X-Omni-Event-Type": "review.status.changed";
|
|
12614
|
+
"X-Omni-Timestamp": string;
|
|
12615
|
+
/** @description Hex HMAC-SHA256 of `{timestamp}.{rawBody}` using the subscription secret. */
|
|
12616
|
+
"X-Omni-Signature": string;
|
|
12617
|
+
};
|
|
12618
|
+
path?: never;
|
|
12619
|
+
cookie?: never;
|
|
12620
|
+
};
|
|
12621
|
+
requestBody: {
|
|
12622
|
+
content: {
|
|
12623
|
+
"application/json": components["schemas"]["ReviewStatusChangedWebhookEvent"];
|
|
12624
|
+
};
|
|
12625
|
+
};
|
|
12626
|
+
responses: {
|
|
12627
|
+
/** @description Event accepted. */
|
|
12628
|
+
"2XX": {
|
|
12629
|
+
headers: {
|
|
12630
|
+
[name: string]: unknown;
|
|
12631
|
+
};
|
|
12632
|
+
content?: never;
|
|
12633
|
+
};
|
|
12634
|
+
};
|
|
12635
|
+
};
|
|
12447
12636
|
order_created_webhook: {
|
|
12448
12637
|
parameters: {
|
|
12449
12638
|
query?: never;
|
|
@@ -13260,6 +13449,8 @@ declare class ProductsClient {
|
|
|
13260
13449
|
* List Products
|
|
13261
13450
|
*
|
|
13262
13451
|
* List products for the authenticated organization with optional filters and pagination. Authenticate with an API key or OAuth bearer token. The organization is taken from that credential; do not send `organizationId`.
|
|
13452
|
+
|
|
13453
|
+
Rows are in `items`. Read catalog stock from `items[].stockQuantity`: parent rows already aggregate their non-deleted variants, and virtual bundles use component availability with any manual cap. Null means unknown, not zero. List rows do not contain `inventoryQuantity`, `inventory.quantity`, or an embedded `variants` array.
|
|
13263
13454
|
*
|
|
13264
13455
|
* `GET /api/v1/products`
|
|
13265
13456
|
*/
|
|
@@ -13329,7 +13520,9 @@ declare class ProductsClient {
|
|
|
13329
13520
|
/**
|
|
13330
13521
|
* Delist Product
|
|
13331
13522
|
*
|
|
13332
|
-
* Queue delist for one product on the marketplaces you name. `marketplaces` accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit `marketplaces` to delist every existing listing. This does not delete the OmniCommerce product.
|
|
13523
|
+
* Queue delist for one product on the marketplaces you name. `marketplaces` accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit `marketplaces` to delist every existing listing. This does not delete the OmniCommerce product.
|
|
13524
|
+
|
|
13525
|
+
Poll GET /api/v1/jobs/{jobId} until data.status is succeeded, partial, or failed. Accepted means the job was queued, not that the marketplace has removed the listing.
|
|
13333
13526
|
*
|
|
13334
13527
|
* `POST /api/v1/products/{productId}/delist`
|
|
13335
13528
|
*/
|
|
@@ -13852,7 +14045,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
13852
14045
|
toleranceInSeconds?: number;
|
|
13853
14046
|
}): Promise<ConstructedWebhookEvent>;
|
|
13854
14047
|
|
|
13855
|
-
declare const SDK_VERSION = "0.1.
|
|
14048
|
+
declare const SDK_VERSION = "0.1.1";
|
|
13856
14049
|
|
|
13857
14050
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
13858
14051
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|