@omni-commerce/sdk 0.13.0 → 0.17.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 +94 -12
- package/dist/embed.cjs +7 -1
- package/dist/embed.cjs.map +1 -1
- package/dist/embed.d.cts +5 -0
- package/dist/embed.d.ts +5 -0
- package/dist/embed.global.js +4 -4
- package/dist/embed.global.js.map +1 -1
- package/dist/embed.js +7 -1
- package/dist/embed.js.map +1 -1
- package/dist/index.cjs +497 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2698 -378
- package/dist/index.d.ts +2698 -378
- package/dist/index.js +497 -21
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +34 -6
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +34 -6
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -85,110 +85,6 @@ declare class OmniHttp {
|
|
|
85
85
|
private buildHeaders;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
type SuccessStatus = 200 | 201 | 202 | 204;
|
|
89
|
-
type MediaOf<T> = T extends {
|
|
90
|
-
content: infer C;
|
|
91
|
-
} ? C extends {
|
|
92
|
-
"application/json": infer J;
|
|
93
|
-
} ? J : C extends {
|
|
94
|
-
"text/plain": infer P;
|
|
95
|
-
} ? P : C extends {
|
|
96
|
-
"application/x-www-form-urlencoded": infer U;
|
|
97
|
-
} ? U : unknown : undefined;
|
|
98
|
-
type SuccessData<Op> = Op extends {
|
|
99
|
-
responses: infer R;
|
|
100
|
-
} ? {
|
|
101
|
-
[Status in keyof R]: Status extends SuccessStatus ? MediaOf<R[Status]> : never;
|
|
102
|
-
}[keyof R] : unknown;
|
|
103
|
-
type OperationQuery<Op> = Op extends {
|
|
104
|
-
parameters: {
|
|
105
|
-
query?: infer Q;
|
|
106
|
-
};
|
|
107
|
-
} ? Q extends undefined | never ? Record<string, never> : NonNullable<Q> : Record<string, never>;
|
|
108
|
-
type OperationPath<Op> = Op extends {
|
|
109
|
-
parameters: {
|
|
110
|
-
path?: infer P;
|
|
111
|
-
};
|
|
112
|
-
} ? P extends undefined | never ? Record<string, never> : NonNullable<P> : Record<string, never>;
|
|
113
|
-
type RequestBodyContent<Op> = Op extends {
|
|
114
|
-
requestBody?: {
|
|
115
|
-
content: infer C;
|
|
116
|
-
};
|
|
117
|
-
} ? C : Op extends {
|
|
118
|
-
requestBody: {
|
|
119
|
-
content: infer C;
|
|
120
|
-
};
|
|
121
|
-
} ? C : never;
|
|
122
|
-
type OperationBody<Op> = RequestBodyContent<Op> extends never ? undefined : RequestBodyContent<Op> extends {
|
|
123
|
-
"application/json": infer J;
|
|
124
|
-
} ? J : RequestBodyContent<Op> extends {
|
|
125
|
-
"application/x-www-form-urlencoded": infer U;
|
|
126
|
-
} ? U : RequestBodyContent<Op> extends {
|
|
127
|
-
"multipart/form-data": infer M;
|
|
128
|
-
} ? MultipartFields<M> : undefined;
|
|
129
|
-
/** Multipart fields: a binary (string) field also takes a Blob or File. */
|
|
130
|
-
type MultipartFields<T> = {
|
|
131
|
-
[K in keyof T]: T[K] extends string ? T[K] | Blob : T[K];
|
|
132
|
-
};
|
|
133
|
-
type FlattenedRequest<Op> = OperationPath<Op> & OperationQuery<Op> & (OperationBody<Op> extends undefined ? Record<string, never> : OperationBody<Op>);
|
|
134
|
-
|
|
135
|
-
declare class OmniError extends Error {
|
|
136
|
-
readonly statusCode?: number;
|
|
137
|
-
readonly body?: unknown;
|
|
138
|
-
readonly rawResponse?: RawResponse;
|
|
139
|
-
constructor({ message, statusCode, body, rawResponse, }: {
|
|
140
|
-
message?: string;
|
|
141
|
-
statusCode?: number;
|
|
142
|
-
body?: unknown;
|
|
143
|
-
rawResponse?: RawResponse;
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
declare class OmniTimeoutError extends Error {
|
|
148
|
-
constructor(message?: string);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
declare class BadRequestError extends OmniError {
|
|
152
|
-
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
153
|
-
}
|
|
154
|
-
declare class UnauthorizedError extends OmniError {
|
|
155
|
-
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
156
|
-
}
|
|
157
|
-
declare class ForbiddenError extends OmniError {
|
|
158
|
-
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
159
|
-
}
|
|
160
|
-
declare class NotFoundError extends OmniError {
|
|
161
|
-
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
162
|
-
}
|
|
163
|
-
declare class UnprocessableEntityError extends OmniError {
|
|
164
|
-
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
165
|
-
}
|
|
166
|
-
declare class TooManyRequestsError extends OmniError {
|
|
167
|
-
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
168
|
-
}
|
|
169
|
-
declare class InternalServerError extends OmniError {
|
|
170
|
-
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
171
|
-
}
|
|
172
|
-
declare class BadGatewayError extends OmniError {
|
|
173
|
-
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
174
|
-
}
|
|
175
|
-
declare class ServiceUnavailableError extends OmniError {
|
|
176
|
-
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
type WaitForJobRequest = {
|
|
180
|
-
jobId: string;
|
|
181
|
-
organizationId?: string;
|
|
182
|
-
};
|
|
183
|
-
type WaitForJobOptions = BaseRequestOptions & {
|
|
184
|
-
intervalMs?: number;
|
|
185
|
-
timeoutInSeconds?: number;
|
|
186
|
-
};
|
|
187
|
-
declare class JobFailedError extends OmniError {
|
|
188
|
-
readonly jobStatus: string;
|
|
189
|
-
constructor(jobStatus: string, body: unknown);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
88
|
/**
|
|
193
89
|
* This file was auto-generated by openapi-typescript.
|
|
194
90
|
* Do not make direct changes to the file.
|
|
@@ -583,6 +479,62 @@ interface paths {
|
|
|
583
479
|
patch?: never;
|
|
584
480
|
trace?: never;
|
|
585
481
|
};
|
|
482
|
+
"/api/v1/brand-kits": {
|
|
483
|
+
parameters: {
|
|
484
|
+
query?: never;
|
|
485
|
+
header?: never;
|
|
486
|
+
path?: never;
|
|
487
|
+
cookie?: never;
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* List Brand Kits
|
|
491
|
+
* @description List full brand kits and canonical image-source websites. Requires branding:read. Supports q, limit (1–1000), and offset. Bearer credentials resolve the organization; sessions supply organizationId.
|
|
492
|
+
*/
|
|
493
|
+
get: operations["get_v1_brand_kits"];
|
|
494
|
+
put?: never;
|
|
495
|
+
/**
|
|
496
|
+
* Create Brand Kit
|
|
497
|
+
* @description Create a full brand kit with optional imageSourceUrls. Requires branding:write. All brandKit fields are supported; omitted fields receive canonical defaults.
|
|
498
|
+
*
|
|
499
|
+
* Source websites accept HTTP(S) URLs or domain/path scopes and return normalized host/path values. The kit and sources save atomically. Use public HTTP(S) URLs for logo/icons; embedded images are rejected.
|
|
500
|
+
*/
|
|
501
|
+
post: operations["post_v1_brand_kits"];
|
|
502
|
+
delete?: never;
|
|
503
|
+
options?: never;
|
|
504
|
+
head?: never;
|
|
505
|
+
patch?: never;
|
|
506
|
+
trace?: never;
|
|
507
|
+
};
|
|
508
|
+
"/api/v1/brand-kits/{brandKitId}": {
|
|
509
|
+
parameters: {
|
|
510
|
+
query?: never;
|
|
511
|
+
header?: never;
|
|
512
|
+
path?: never;
|
|
513
|
+
cookie?: never;
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* Get Brand Kit
|
|
517
|
+
* @description Read the complete kit and imageSourceUrls. Requires branding:read.
|
|
518
|
+
*/
|
|
519
|
+
get: operations["get_v1_brand_kits_by_brandkitid"];
|
|
520
|
+
put?: never;
|
|
521
|
+
post?: never;
|
|
522
|
+
/**
|
|
523
|
+
* Delete Brand Kit
|
|
524
|
+
* @description Delete the organization-owned kit and its saved brand image-source websites. Requires branding:write. Historical job snapshots are preserved.
|
|
525
|
+
*/
|
|
526
|
+
delete: operations["delete_v1_brand_kits_by_brandkitid"];
|
|
527
|
+
options?: never;
|
|
528
|
+
head?: never;
|
|
529
|
+
/**
|
|
530
|
+
* Update Brand Kit
|
|
531
|
+
* @description Edit name, any nested brandKit fields, and imageSourceUrls. Requires branding:write. Nested objects merge and arrays replace; omitted fields are preserved.
|
|
532
|
+
*
|
|
533
|
+
* imageSourceUrls: [] clears websites. Renaming keeps source websites attached. Parent kit IDs must belong to this organization. Existing running jobs keep their frozen source snapshot until explicitly retried with brandKitIds.
|
|
534
|
+
*/
|
|
535
|
+
patch: operations["patch_v1_brand_kits_by_brandkitid"];
|
|
536
|
+
trace?: never;
|
|
537
|
+
};
|
|
586
538
|
"/api/v1/brandsgateway/import": {
|
|
587
539
|
parameters: {
|
|
588
540
|
query?: never;
|
|
@@ -995,6 +947,36 @@ interface paths {
|
|
|
995
947
|
patch?: never;
|
|
996
948
|
trace?: never;
|
|
997
949
|
};
|
|
950
|
+
"/api/v1/inventory": {
|
|
951
|
+
parameters: {
|
|
952
|
+
query?: never;
|
|
953
|
+
header?: never;
|
|
954
|
+
path?: never;
|
|
955
|
+
cookie?: never;
|
|
956
|
+
};
|
|
957
|
+
/**
|
|
958
|
+
* List Inventory Groups
|
|
959
|
+
* @description Read active inventory using the same canonical quantities, filters and grouping as the inventory assistant. Requires catalog:read and inventory.read permission. Organization scope comes only from the credential.
|
|
960
|
+
*
|
|
961
|
+
* ### Stock and listing absence
|
|
962
|
+
*
|
|
963
|
+
* status=in_stock means positive available stock (on hand minus locked), with variants rolled up for product groups. unlistedMarketplaces checks every organization store and the entire saved catalog, including product/variant identities, exact catalog SKUs, and historical listings. Source marketplace/country/storeIds filters do not restrict absence evidence. All supported marketplaces are accepted.
|
|
964
|
+
*
|
|
965
|
+
* listingPresence reports saved-catalog evidence and unknown missing-SKU families. It does not establish fresh live marketplace absence. Stock quantities from duplicate SKU records must not be added as independent physical inventory.
|
|
966
|
+
*
|
|
967
|
+
* ### Pagination
|
|
968
|
+
*
|
|
969
|
+
* Groups are one page, maximum 30. totalGroups is the full matching count. Continue with nextOffset and identical filters until hasMore=false.
|
|
970
|
+
*/
|
|
971
|
+
get: operations["get_v1_inventory"];
|
|
972
|
+
put?: never;
|
|
973
|
+
post?: never;
|
|
974
|
+
delete?: never;
|
|
975
|
+
options?: never;
|
|
976
|
+
head?: never;
|
|
977
|
+
patch?: never;
|
|
978
|
+
trace?: never;
|
|
979
|
+
};
|
|
998
980
|
"/api/v1/jobs/{jobId}": {
|
|
999
981
|
parameters: {
|
|
1000
982
|
query?: never;
|
|
@@ -1770,6 +1752,8 @@ interface paths {
|
|
|
1770
1752
|
* Bulk Import Products from JSON or CSV
|
|
1771
1753
|
* @description Queue a bulk product import for the authenticated organization.
|
|
1772
1754
|
*
|
|
1755
|
+
* Supply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing or incompatible size systems and other required options block publishing. Each row remains a standalone product; no child variants are created for the default.
|
|
1756
|
+
*
|
|
1773
1757
|
* ### Input options
|
|
1774
1758
|
*
|
|
1775
1759
|
* - Upload a CSV (2 MiB) or JSON products file (8 MiB) using `multipart/form-data`.
|
|
@@ -1790,6 +1774,60 @@ interface paths {
|
|
|
1790
1774
|
patch?: never;
|
|
1791
1775
|
trace?: never;
|
|
1792
1776
|
};
|
|
1777
|
+
"/api/v1/products/bulk-import/retries/{retryJobId}": {
|
|
1778
|
+
parameters: {
|
|
1779
|
+
query?: never;
|
|
1780
|
+
header?: never;
|
|
1781
|
+
path?: never;
|
|
1782
|
+
cookie?: never;
|
|
1783
|
+
};
|
|
1784
|
+
/**
|
|
1785
|
+
* Get Import Retry Progress
|
|
1786
|
+
* @description Read actual row and review generation progress using an importretry_... handle. Requires catalog:read. success is null while running, true only for successful completion, and false for missing targets, dispatch failure, or stage failures.
|
|
1787
|
+
*
|
|
1788
|
+
* Row IDs, review request IDs, errors, and per-stage counts remain available. The same handle works with GET /api/v1/jobs/{jobId} and SDK jobs.wait.
|
|
1789
|
+
*/
|
|
1790
|
+
get: operations["get_v1_products_bulk_import_retries_by_retryjobid"];
|
|
1791
|
+
put?: never;
|
|
1792
|
+
post?: never;
|
|
1793
|
+
delete?: never;
|
|
1794
|
+
options?: never;
|
|
1795
|
+
head?: never;
|
|
1796
|
+
patch?: never;
|
|
1797
|
+
trace?: never;
|
|
1798
|
+
};
|
|
1799
|
+
"/api/v1/products/bulk-import/retry": {
|
|
1800
|
+
parameters: {
|
|
1801
|
+
query?: never;
|
|
1802
|
+
header?: never;
|
|
1803
|
+
path?: never;
|
|
1804
|
+
cookie?: never;
|
|
1805
|
+
};
|
|
1806
|
+
get?: never;
|
|
1807
|
+
put?: never;
|
|
1808
|
+
/**
|
|
1809
|
+
* Retry Failed Import or Review Jobs
|
|
1810
|
+
* @description Retry 1–20 jobs with durable background execution. Requires catalog:write.
|
|
1811
|
+
*
|
|
1812
|
+
* ### Targets
|
|
1813
|
+
*
|
|
1814
|
+
* jobIds accepts import UUIDs, bulk_... developer job handles, or review_<batch UUID> for a Review job (including jobs created in the app). Inputs are trimmed, bounded, and deduplicated in first-requested order.
|
|
1815
|
+
*
|
|
1816
|
+
* ### Retry scope
|
|
1817
|
+
*
|
|
1818
|
+
* stages=all retries failed source rows and linked review stages; stages=images retries failed review images only. Completed work, applied products, cancelled stages, and active work are preserved. Optional brandKitIds replaces image-source selection using the kits' current organization-owned websites. Omit it to keep frozen sources. To resume interrupted dispatch, pass an importretry_... handle without overrides; the saved target plan is reused.
|
|
1819
|
+
*
|
|
1820
|
+
* ### Results
|
|
1821
|
+
*
|
|
1822
|
+
* Use the returned ordered results and retryJobIds; partial enqueue failures remain explicit. HTTP 202 means accepted, not successful generation. Read every retry handle with getBulkImportRetry or jobs.wait. Newly imported rows enter the normal Review pipeline.
|
|
1823
|
+
*/
|
|
1824
|
+
post: operations["post_v1_products_bulk_import_retry"];
|
|
1825
|
+
delete?: never;
|
|
1826
|
+
options?: never;
|
|
1827
|
+
head?: never;
|
|
1828
|
+
patch?: never;
|
|
1829
|
+
trace?: never;
|
|
1830
|
+
};
|
|
1793
1831
|
"/api/v1/products/compare-prices": {
|
|
1794
1832
|
parameters: {
|
|
1795
1833
|
query?: never;
|
|
@@ -1882,6 +1920,30 @@ interface paths {
|
|
|
1882
1920
|
patch?: never;
|
|
1883
1921
|
trace?: never;
|
|
1884
1922
|
};
|
|
1923
|
+
"/api/v1/products/count": {
|
|
1924
|
+
parameters: {
|
|
1925
|
+
query?: never;
|
|
1926
|
+
header?: never;
|
|
1927
|
+
path?: never;
|
|
1928
|
+
cookie?: never;
|
|
1929
|
+
};
|
|
1930
|
+
/**
|
|
1931
|
+
* Count Products
|
|
1932
|
+
* @description Count matching catalog parent products using the Products page's canonical filters and authorization, without loading rows, pricing, or location data.
|
|
1933
|
+
*
|
|
1934
|
+
* Products are counted once even when multiple listings match. This does not count variants or verify live marketplace status. status is the catalog lifecycle/derived view. All marketplaces are supported. Use storeKeys for exact marketplace/country/account identity.
|
|
1935
|
+
*
|
|
1936
|
+
* Authenticate with a read-only catalog credential; organization comes only from that credential.
|
|
1937
|
+
*/
|
|
1938
|
+
get: operations["get_v1_products_count"];
|
|
1939
|
+
put?: never;
|
|
1940
|
+
post?: never;
|
|
1941
|
+
delete?: never;
|
|
1942
|
+
options?: never;
|
|
1943
|
+
head?: never;
|
|
1944
|
+
patch?: never;
|
|
1945
|
+
trace?: never;
|
|
1946
|
+
};
|
|
1885
1947
|
"/api/v1/products/enrich": {
|
|
1886
1948
|
parameters: {
|
|
1887
1949
|
query?: never;
|
|
@@ -1897,7 +1959,7 @@ interface paths {
|
|
|
1897
1959
|
*
|
|
1898
1960
|
* ### Enrichment options
|
|
1899
1961
|
*
|
|
1900
|
-
* Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included;
|
|
1962
|
+
* Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.
|
|
1901
1963
|
*
|
|
1902
1964
|
* autoApplyHighConfidence defaults to false. When enabled, the supplied threshold (0.62–1) or organization threshold applies; low-confidence or blocked proposals remain in Review. AI usage is billed to the authenticated organization. Open links.review to inspect results.
|
|
1903
1965
|
*/
|
|
@@ -3009,6 +3071,12 @@ interface components {
|
|
|
3009
3071
|
| "amazon"
|
|
3010
3072
|
| "ebay";
|
|
3011
3073
|
sourceCountry?: string;
|
|
3074
|
+
/**
|
|
3075
|
+
* @description offer_windows prepares each window at preparesAt (default); campaign_start opts into preparing all eligible offers on Run. Sale dates are unchanged. Locked while running.
|
|
3076
|
+
* @default offer_windows
|
|
3077
|
+
* @enum {string}
|
|
3078
|
+
*/
|
|
3079
|
+
syncMode: "offer_windows" | "campaign_start";
|
|
3012
3080
|
/** @default */
|
|
3013
3081
|
cleanupNotes: string;
|
|
3014
3082
|
};
|
|
@@ -3017,7 +3085,7 @@ interface components {
|
|
|
3017
3085
|
id: string;
|
|
3018
3086
|
name: string;
|
|
3019
3087
|
/**
|
|
3020
|
-
* @description Preparation time: publish promotions with
|
|
3088
|
+
* @description Preparation time in offer_windows mode: publish promotions with future live dates. Required before approval and at or before startsAt; ignored in campaign_start mode.
|
|
3021
3089
|
* @default null
|
|
3022
3090
|
*/
|
|
3023
3091
|
preparesAt: string | null;
|
|
@@ -7864,38 +7932,1015 @@ interface operations {
|
|
|
7864
7932
|
};
|
|
7865
7933
|
};
|
|
7866
7934
|
};
|
|
7867
|
-
|
|
7935
|
+
get_v1_brand_kits: {
|
|
7868
7936
|
parameters: {
|
|
7869
|
-
query?:
|
|
7937
|
+
query?: {
|
|
7938
|
+
organizationId?: string;
|
|
7939
|
+
q?: string;
|
|
7940
|
+
limit?: number;
|
|
7941
|
+
offset?: number;
|
|
7942
|
+
};
|
|
7870
7943
|
header?: never;
|
|
7871
7944
|
path?: never;
|
|
7872
7945
|
cookie?: never;
|
|
7873
7946
|
};
|
|
7874
|
-
requestBody
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7947
|
+
requestBody?: never;
|
|
7948
|
+
responses: {
|
|
7949
|
+
/** @description Brand kits. */
|
|
7950
|
+
200: {
|
|
7951
|
+
headers: {
|
|
7952
|
+
[name: string]: unknown;
|
|
7953
|
+
};
|
|
7954
|
+
content: {
|
|
7955
|
+
"application/json": {
|
|
7956
|
+
ok: boolean;
|
|
7957
|
+
/** @constant */
|
|
7958
|
+
apiVersion: "developer_v1";
|
|
7959
|
+
operationId: string;
|
|
7960
|
+
/** @enum {string} */
|
|
7961
|
+
status: "accepted" | "completed" | "failed";
|
|
7962
|
+
jobId?: string;
|
|
7963
|
+
warnings: string[];
|
|
7964
|
+
recommendations: string[];
|
|
7965
|
+
links: {
|
|
7966
|
+
[key: string]: string;
|
|
7967
|
+
};
|
|
7968
|
+
data: {
|
|
7969
|
+
items: {
|
|
7970
|
+
id: string;
|
|
7971
|
+
organizationId: string;
|
|
7972
|
+
name: string;
|
|
7973
|
+
normalizedName: string;
|
|
7974
|
+
brandKit: {
|
|
7975
|
+
websiteUrl: string | "";
|
|
7976
|
+
/** @enum {string} */
|
|
7977
|
+
colorScheme: "light" | "dark";
|
|
7978
|
+
fonts: {
|
|
7979
|
+
family: string;
|
|
7980
|
+
/** @enum {string} */
|
|
7981
|
+
role: "heading" | "body";
|
|
7982
|
+
}[];
|
|
7983
|
+
colors: {
|
|
7984
|
+
primary: string;
|
|
7985
|
+
accent: string;
|
|
7986
|
+
background: string;
|
|
7987
|
+
textPrimary: string;
|
|
7988
|
+
link: string;
|
|
7989
|
+
};
|
|
7990
|
+
colorPalette: string[];
|
|
7991
|
+
typography: {
|
|
7992
|
+
fontFamilies: {
|
|
7993
|
+
primary: string;
|
|
7994
|
+
heading: string;
|
|
7995
|
+
body: string;
|
|
7996
|
+
};
|
|
7997
|
+
fontStacks: {
|
|
7998
|
+
heading: string[];
|
|
7999
|
+
body: string[];
|
|
8000
|
+
paragraph: string[];
|
|
8001
|
+
};
|
|
8002
|
+
fontSizes: {
|
|
8003
|
+
h1: string;
|
|
8004
|
+
h2: string;
|
|
8005
|
+
body: string;
|
|
8006
|
+
};
|
|
8007
|
+
};
|
|
8008
|
+
spacing: {
|
|
8009
|
+
baseUnit: number;
|
|
8010
|
+
borderRadius: string;
|
|
8011
|
+
};
|
|
8012
|
+
components: {
|
|
8013
|
+
input: {
|
|
8014
|
+
background: string;
|
|
8015
|
+
textColor: string;
|
|
8016
|
+
borderColor: string;
|
|
8017
|
+
borderRadius: string;
|
|
8018
|
+
borderRadiusCorners: {
|
|
8019
|
+
topLeft: string;
|
|
8020
|
+
topRight: string;
|
|
8021
|
+
bottomRight: string;
|
|
8022
|
+
bottomLeft: string;
|
|
8023
|
+
};
|
|
8024
|
+
shadow: string;
|
|
8025
|
+
};
|
|
8026
|
+
buttonPrimary: {
|
|
8027
|
+
background: string;
|
|
8028
|
+
textColor: string;
|
|
8029
|
+
borderColor: string;
|
|
8030
|
+
borderRadius: string;
|
|
8031
|
+
borderRadiusCorners: {
|
|
8032
|
+
topLeft: string;
|
|
8033
|
+
topRight: string;
|
|
8034
|
+
bottomRight: string;
|
|
8035
|
+
bottomLeft: string;
|
|
8036
|
+
};
|
|
8037
|
+
shadow: string;
|
|
8038
|
+
};
|
|
8039
|
+
buttonSecondary: {
|
|
8040
|
+
background: string;
|
|
8041
|
+
textColor: string;
|
|
8042
|
+
borderColor: string;
|
|
8043
|
+
borderRadius: string;
|
|
8044
|
+
borderRadiusCorners: {
|
|
8045
|
+
topLeft: string;
|
|
8046
|
+
topRight: string;
|
|
8047
|
+
bottomRight: string;
|
|
8048
|
+
bottomLeft: string;
|
|
8049
|
+
};
|
|
8050
|
+
shadow: string;
|
|
8051
|
+
};
|
|
8052
|
+
};
|
|
8053
|
+
images: {
|
|
8054
|
+
logo: string | null;
|
|
8055
|
+
icons: string[];
|
|
8056
|
+
};
|
|
8057
|
+
personality: {
|
|
8058
|
+
tone: string;
|
|
8059
|
+
energy: string;
|
|
8060
|
+
targetAudience: string;
|
|
8061
|
+
};
|
|
8062
|
+
contentGuidelines: string;
|
|
8063
|
+
parentBrandName: string;
|
|
8064
|
+
parentBrandKitIds?: string[];
|
|
8065
|
+
alsoKnownAs: string[];
|
|
8066
|
+
extractedAt: string | null;
|
|
8067
|
+
/** @enum {string} */
|
|
8068
|
+
source: "manual" | "auto";
|
|
8069
|
+
};
|
|
8070
|
+
imageSourceUrls: string[];
|
|
8071
|
+
/** @enum {string} */
|
|
8072
|
+
source: "manual" | "auto" | "legacy";
|
|
8073
|
+
createdByUserId: string | null;
|
|
8074
|
+
updatedByUserId: string | null;
|
|
8075
|
+
createdAt: string;
|
|
8076
|
+
updatedAt: string;
|
|
8077
|
+
}[];
|
|
8078
|
+
total: number;
|
|
8079
|
+
limit: number;
|
|
8080
|
+
offset: number;
|
|
8081
|
+
hasMore: boolean;
|
|
8082
|
+
};
|
|
8083
|
+
};
|
|
8084
|
+
};
|
|
8085
|
+
};
|
|
8086
|
+
/** @description Invalid request. */
|
|
8087
|
+
400: {
|
|
8088
|
+
headers: {
|
|
8089
|
+
[name: string]: unknown;
|
|
8090
|
+
};
|
|
8091
|
+
content?: never;
|
|
8092
|
+
};
|
|
8093
|
+
/** @description Missing credentials. */
|
|
8094
|
+
401: {
|
|
8095
|
+
headers: {
|
|
8096
|
+
[name: string]: unknown;
|
|
8097
|
+
};
|
|
8098
|
+
content?: never;
|
|
8099
|
+
};
|
|
8100
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
8101
|
+
403: {
|
|
8102
|
+
headers: {
|
|
8103
|
+
[name: string]: unknown;
|
|
8104
|
+
};
|
|
8105
|
+
content?: never;
|
|
8106
|
+
};
|
|
8107
|
+
/** @description Resource not found in this organization. */
|
|
8108
|
+
404: {
|
|
8109
|
+
headers: {
|
|
8110
|
+
[name: string]: unknown;
|
|
8111
|
+
};
|
|
8112
|
+
content?: never;
|
|
8113
|
+
};
|
|
8114
|
+
};
|
|
8115
|
+
};
|
|
8116
|
+
post_v1_brand_kits: {
|
|
8117
|
+
parameters: {
|
|
8118
|
+
query?: never;
|
|
8119
|
+
header?: never;
|
|
8120
|
+
path?: never;
|
|
8121
|
+
cookie?: never;
|
|
8122
|
+
};
|
|
8123
|
+
requestBody: {
|
|
8124
|
+
content: {
|
|
8125
|
+
"application/json": {
|
|
8126
|
+
organizationId?: string;
|
|
8127
|
+
name: string;
|
|
8128
|
+
brandKit?: {
|
|
8129
|
+
websiteUrl?: string | "";
|
|
8130
|
+
/** @enum {string} */
|
|
8131
|
+
colorScheme?: "light" | "dark";
|
|
8132
|
+
fonts?: {
|
|
8133
|
+
family: string;
|
|
8134
|
+
/** @enum {string} */
|
|
8135
|
+
role: "heading" | "body";
|
|
8136
|
+
}[];
|
|
8137
|
+
colors?: {
|
|
8138
|
+
primary?: string;
|
|
8139
|
+
accent?: string;
|
|
8140
|
+
background?: string;
|
|
8141
|
+
textPrimary?: string;
|
|
8142
|
+
link?: string;
|
|
8143
|
+
};
|
|
8144
|
+
colorPalette?: string[];
|
|
8145
|
+
typography?: {
|
|
8146
|
+
fontFamilies?: {
|
|
8147
|
+
primary?: string;
|
|
8148
|
+
heading?: string;
|
|
8149
|
+
body?: string;
|
|
8150
|
+
};
|
|
8151
|
+
fontStacks?: {
|
|
8152
|
+
heading?: string[];
|
|
8153
|
+
body?: string[];
|
|
8154
|
+
paragraph?: string[];
|
|
8155
|
+
};
|
|
8156
|
+
fontSizes?: {
|
|
8157
|
+
h1?: string;
|
|
8158
|
+
h2?: string;
|
|
8159
|
+
body?: string;
|
|
8160
|
+
};
|
|
8161
|
+
};
|
|
8162
|
+
spacing?: {
|
|
8163
|
+
baseUnit?: number;
|
|
8164
|
+
borderRadius?: string;
|
|
8165
|
+
};
|
|
8166
|
+
components?: {
|
|
8167
|
+
input?: {
|
|
8168
|
+
background?: string;
|
|
8169
|
+
textColor?: string;
|
|
8170
|
+
borderColor?: string;
|
|
8171
|
+
borderRadius?: string;
|
|
8172
|
+
borderRadiusCorners?: {
|
|
8173
|
+
topLeft?: string;
|
|
8174
|
+
topRight?: string;
|
|
8175
|
+
bottomRight?: string;
|
|
8176
|
+
bottomLeft?: string;
|
|
8177
|
+
};
|
|
8178
|
+
shadow?: string;
|
|
8179
|
+
};
|
|
8180
|
+
buttonPrimary?: {
|
|
8181
|
+
background?: string;
|
|
8182
|
+
textColor?: string;
|
|
8183
|
+
borderColor?: string;
|
|
8184
|
+
borderRadius?: string;
|
|
8185
|
+
borderRadiusCorners?: {
|
|
8186
|
+
topLeft?: string;
|
|
8187
|
+
topRight?: string;
|
|
8188
|
+
bottomRight?: string;
|
|
8189
|
+
bottomLeft?: string;
|
|
8190
|
+
};
|
|
8191
|
+
shadow?: string;
|
|
8192
|
+
};
|
|
8193
|
+
buttonSecondary?: {
|
|
8194
|
+
background?: string;
|
|
8195
|
+
textColor?: string;
|
|
8196
|
+
borderColor?: string;
|
|
8197
|
+
borderRadius?: string;
|
|
8198
|
+
borderRadiusCorners?: {
|
|
8199
|
+
topLeft?: string;
|
|
8200
|
+
topRight?: string;
|
|
8201
|
+
bottomRight?: string;
|
|
8202
|
+
bottomLeft?: string;
|
|
8203
|
+
};
|
|
8204
|
+
shadow?: string;
|
|
8205
|
+
};
|
|
8206
|
+
};
|
|
8207
|
+
images?: {
|
|
8208
|
+
logo?: string | null;
|
|
8209
|
+
icons?: string[];
|
|
8210
|
+
};
|
|
8211
|
+
personality?: {
|
|
8212
|
+
tone?: string;
|
|
8213
|
+
energy?: string;
|
|
8214
|
+
targetAudience?: string;
|
|
8215
|
+
};
|
|
8216
|
+
contentGuidelines?: string;
|
|
8217
|
+
parentBrandName?: string;
|
|
8218
|
+
parentBrandKitIds?: string[];
|
|
8219
|
+
alsoKnownAs?: string[];
|
|
8220
|
+
extractedAt?: string | null;
|
|
8221
|
+
/** @enum {string} */
|
|
8222
|
+
source?: "manual" | "auto";
|
|
8223
|
+
};
|
|
8224
|
+
/** @description Manufacturer/distributor source websites. HTTP(S) URLs and domain/path scopes are accepted and normalized to host/path. Empty arrays clear sources. */
|
|
8225
|
+
imageSourceUrls?: string[];
|
|
8226
|
+
};
|
|
8227
|
+
};
|
|
8228
|
+
};
|
|
8229
|
+
responses: {
|
|
8230
|
+
/** @description Created brand kit. */
|
|
8231
|
+
201: {
|
|
8232
|
+
headers: {
|
|
8233
|
+
[name: string]: unknown;
|
|
8234
|
+
};
|
|
8235
|
+
content: {
|
|
8236
|
+
"application/json": {
|
|
8237
|
+
ok: boolean;
|
|
8238
|
+
/** @constant */
|
|
8239
|
+
apiVersion: "developer_v1";
|
|
8240
|
+
operationId: string;
|
|
8241
|
+
/** @enum {string} */
|
|
8242
|
+
status: "accepted" | "completed" | "failed";
|
|
8243
|
+
jobId?: string;
|
|
8244
|
+
warnings: string[];
|
|
8245
|
+
recommendations: string[];
|
|
8246
|
+
links: {
|
|
8247
|
+
[key: string]: string;
|
|
8248
|
+
};
|
|
8249
|
+
data: {
|
|
8250
|
+
id: string;
|
|
8251
|
+
organizationId: string;
|
|
8252
|
+
name: string;
|
|
8253
|
+
normalizedName: string;
|
|
8254
|
+
brandKit: {
|
|
8255
|
+
websiteUrl: string | "";
|
|
8256
|
+
/** @enum {string} */
|
|
8257
|
+
colorScheme: "light" | "dark";
|
|
8258
|
+
fonts: {
|
|
8259
|
+
family: string;
|
|
8260
|
+
/** @enum {string} */
|
|
8261
|
+
role: "heading" | "body";
|
|
8262
|
+
}[];
|
|
8263
|
+
colors: {
|
|
8264
|
+
primary: string;
|
|
8265
|
+
accent: string;
|
|
8266
|
+
background: string;
|
|
8267
|
+
textPrimary: string;
|
|
8268
|
+
link: string;
|
|
8269
|
+
};
|
|
8270
|
+
colorPalette: string[];
|
|
8271
|
+
typography: {
|
|
8272
|
+
fontFamilies: {
|
|
8273
|
+
primary: string;
|
|
8274
|
+
heading: string;
|
|
8275
|
+
body: string;
|
|
8276
|
+
};
|
|
8277
|
+
fontStacks: {
|
|
8278
|
+
heading: string[];
|
|
8279
|
+
body: string[];
|
|
8280
|
+
paragraph: string[];
|
|
8281
|
+
};
|
|
8282
|
+
fontSizes: {
|
|
8283
|
+
h1: string;
|
|
8284
|
+
h2: string;
|
|
8285
|
+
body: string;
|
|
8286
|
+
};
|
|
8287
|
+
};
|
|
8288
|
+
spacing: {
|
|
8289
|
+
baseUnit: number;
|
|
8290
|
+
borderRadius: string;
|
|
8291
|
+
};
|
|
8292
|
+
components: {
|
|
8293
|
+
input: {
|
|
8294
|
+
background: string;
|
|
8295
|
+
textColor: string;
|
|
8296
|
+
borderColor: string;
|
|
8297
|
+
borderRadius: string;
|
|
8298
|
+
borderRadiusCorners: {
|
|
8299
|
+
topLeft: string;
|
|
8300
|
+
topRight: string;
|
|
8301
|
+
bottomRight: string;
|
|
8302
|
+
bottomLeft: string;
|
|
8303
|
+
};
|
|
8304
|
+
shadow: string;
|
|
8305
|
+
};
|
|
8306
|
+
buttonPrimary: {
|
|
8307
|
+
background: string;
|
|
8308
|
+
textColor: string;
|
|
8309
|
+
borderColor: string;
|
|
8310
|
+
borderRadius: string;
|
|
8311
|
+
borderRadiusCorners: {
|
|
8312
|
+
topLeft: string;
|
|
8313
|
+
topRight: string;
|
|
8314
|
+
bottomRight: string;
|
|
8315
|
+
bottomLeft: string;
|
|
8316
|
+
};
|
|
8317
|
+
shadow: string;
|
|
8318
|
+
};
|
|
8319
|
+
buttonSecondary: {
|
|
8320
|
+
background: string;
|
|
8321
|
+
textColor: string;
|
|
8322
|
+
borderColor: string;
|
|
8323
|
+
borderRadius: string;
|
|
8324
|
+
borderRadiusCorners: {
|
|
8325
|
+
topLeft: string;
|
|
8326
|
+
topRight: string;
|
|
8327
|
+
bottomRight: string;
|
|
8328
|
+
bottomLeft: string;
|
|
8329
|
+
};
|
|
8330
|
+
shadow: string;
|
|
8331
|
+
};
|
|
8332
|
+
};
|
|
8333
|
+
images: {
|
|
8334
|
+
logo: string | null;
|
|
8335
|
+
icons: string[];
|
|
8336
|
+
};
|
|
8337
|
+
personality: {
|
|
8338
|
+
tone: string;
|
|
8339
|
+
energy: string;
|
|
8340
|
+
targetAudience: string;
|
|
8341
|
+
};
|
|
8342
|
+
contentGuidelines: string;
|
|
8343
|
+
parentBrandName: string;
|
|
8344
|
+
parentBrandKitIds?: string[];
|
|
8345
|
+
alsoKnownAs: string[];
|
|
8346
|
+
extractedAt: string | null;
|
|
8347
|
+
/** @enum {string} */
|
|
8348
|
+
source: "manual" | "auto";
|
|
8349
|
+
};
|
|
8350
|
+
imageSourceUrls: string[];
|
|
8351
|
+
/** @enum {string} */
|
|
8352
|
+
source: "manual" | "auto" | "legacy";
|
|
8353
|
+
createdByUserId: string | null;
|
|
8354
|
+
updatedByUserId: string | null;
|
|
8355
|
+
createdAt: string;
|
|
8356
|
+
updatedAt: string;
|
|
8357
|
+
};
|
|
8358
|
+
};
|
|
8359
|
+
};
|
|
8360
|
+
};
|
|
8361
|
+
/** @description Invalid request. */
|
|
8362
|
+
400: {
|
|
8363
|
+
headers: {
|
|
8364
|
+
[name: string]: unknown;
|
|
8365
|
+
};
|
|
8366
|
+
content?: never;
|
|
8367
|
+
};
|
|
8368
|
+
/** @description Missing credentials. */
|
|
8369
|
+
401: {
|
|
8370
|
+
headers: {
|
|
8371
|
+
[name: string]: unknown;
|
|
8372
|
+
};
|
|
8373
|
+
content?: never;
|
|
8374
|
+
};
|
|
8375
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
8376
|
+
403: {
|
|
8377
|
+
headers: {
|
|
8378
|
+
[name: string]: unknown;
|
|
8379
|
+
};
|
|
8380
|
+
content?: never;
|
|
8381
|
+
};
|
|
8382
|
+
/** @description Resource not found in this organization. */
|
|
8383
|
+
404: {
|
|
8384
|
+
headers: {
|
|
8385
|
+
[name: string]: unknown;
|
|
8386
|
+
};
|
|
8387
|
+
content?: never;
|
|
8388
|
+
};
|
|
8389
|
+
};
|
|
8390
|
+
};
|
|
8391
|
+
get_v1_brand_kits_by_brandkitid: {
|
|
8392
|
+
parameters: {
|
|
8393
|
+
query?: {
|
|
8394
|
+
organizationId?: string;
|
|
8395
|
+
};
|
|
8396
|
+
header?: never;
|
|
8397
|
+
path: {
|
|
8398
|
+
brandKitId: string;
|
|
8399
|
+
};
|
|
8400
|
+
cookie?: never;
|
|
8401
|
+
};
|
|
8402
|
+
requestBody?: never;
|
|
8403
|
+
responses: {
|
|
8404
|
+
/** @description Brand kit. */
|
|
8405
|
+
200: {
|
|
8406
|
+
headers: {
|
|
8407
|
+
[name: string]: unknown;
|
|
8408
|
+
};
|
|
8409
|
+
content: {
|
|
8410
|
+
"application/json": {
|
|
8411
|
+
ok: boolean;
|
|
8412
|
+
/** @constant */
|
|
8413
|
+
apiVersion: "developer_v1";
|
|
8414
|
+
operationId: string;
|
|
8415
|
+
/** @enum {string} */
|
|
8416
|
+
status: "accepted" | "completed" | "failed";
|
|
8417
|
+
jobId?: string;
|
|
8418
|
+
warnings: string[];
|
|
8419
|
+
recommendations: string[];
|
|
8420
|
+
links: {
|
|
8421
|
+
[key: string]: string;
|
|
8422
|
+
};
|
|
8423
|
+
data: {
|
|
8424
|
+
id: string;
|
|
8425
|
+
organizationId: string;
|
|
8426
|
+
name: string;
|
|
8427
|
+
normalizedName: string;
|
|
8428
|
+
brandKit: {
|
|
8429
|
+
websiteUrl: string | "";
|
|
8430
|
+
/** @enum {string} */
|
|
8431
|
+
colorScheme: "light" | "dark";
|
|
8432
|
+
fonts: {
|
|
8433
|
+
family: string;
|
|
8434
|
+
/** @enum {string} */
|
|
8435
|
+
role: "heading" | "body";
|
|
8436
|
+
}[];
|
|
8437
|
+
colors: {
|
|
8438
|
+
primary: string;
|
|
8439
|
+
accent: string;
|
|
8440
|
+
background: string;
|
|
8441
|
+
textPrimary: string;
|
|
8442
|
+
link: string;
|
|
8443
|
+
};
|
|
8444
|
+
colorPalette: string[];
|
|
8445
|
+
typography: {
|
|
8446
|
+
fontFamilies: {
|
|
8447
|
+
primary: string;
|
|
8448
|
+
heading: string;
|
|
8449
|
+
body: string;
|
|
8450
|
+
};
|
|
8451
|
+
fontStacks: {
|
|
8452
|
+
heading: string[];
|
|
8453
|
+
body: string[];
|
|
8454
|
+
paragraph: string[];
|
|
8455
|
+
};
|
|
8456
|
+
fontSizes: {
|
|
8457
|
+
h1: string;
|
|
8458
|
+
h2: string;
|
|
8459
|
+
body: string;
|
|
8460
|
+
};
|
|
8461
|
+
};
|
|
8462
|
+
spacing: {
|
|
8463
|
+
baseUnit: number;
|
|
8464
|
+
borderRadius: string;
|
|
8465
|
+
};
|
|
8466
|
+
components: {
|
|
8467
|
+
input: {
|
|
8468
|
+
background: string;
|
|
8469
|
+
textColor: string;
|
|
8470
|
+
borderColor: string;
|
|
8471
|
+
borderRadius: string;
|
|
8472
|
+
borderRadiusCorners: {
|
|
8473
|
+
topLeft: string;
|
|
8474
|
+
topRight: string;
|
|
8475
|
+
bottomRight: string;
|
|
8476
|
+
bottomLeft: string;
|
|
8477
|
+
};
|
|
8478
|
+
shadow: string;
|
|
8479
|
+
};
|
|
8480
|
+
buttonPrimary: {
|
|
8481
|
+
background: string;
|
|
8482
|
+
textColor: string;
|
|
8483
|
+
borderColor: string;
|
|
8484
|
+
borderRadius: string;
|
|
8485
|
+
borderRadiusCorners: {
|
|
8486
|
+
topLeft: string;
|
|
8487
|
+
topRight: string;
|
|
8488
|
+
bottomRight: string;
|
|
8489
|
+
bottomLeft: string;
|
|
8490
|
+
};
|
|
8491
|
+
shadow: string;
|
|
8492
|
+
};
|
|
8493
|
+
buttonSecondary: {
|
|
8494
|
+
background: string;
|
|
8495
|
+
textColor: string;
|
|
8496
|
+
borderColor: string;
|
|
8497
|
+
borderRadius: string;
|
|
8498
|
+
borderRadiusCorners: {
|
|
8499
|
+
topLeft: string;
|
|
8500
|
+
topRight: string;
|
|
8501
|
+
bottomRight: string;
|
|
8502
|
+
bottomLeft: string;
|
|
8503
|
+
};
|
|
8504
|
+
shadow: string;
|
|
8505
|
+
};
|
|
8506
|
+
};
|
|
8507
|
+
images: {
|
|
8508
|
+
logo: string | null;
|
|
8509
|
+
icons: string[];
|
|
8510
|
+
};
|
|
8511
|
+
personality: {
|
|
8512
|
+
tone: string;
|
|
8513
|
+
energy: string;
|
|
8514
|
+
targetAudience: string;
|
|
8515
|
+
};
|
|
8516
|
+
contentGuidelines: string;
|
|
8517
|
+
parentBrandName: string;
|
|
8518
|
+
parentBrandKitIds?: string[];
|
|
8519
|
+
alsoKnownAs: string[];
|
|
8520
|
+
extractedAt: string | null;
|
|
8521
|
+
/** @enum {string} */
|
|
8522
|
+
source: "manual" | "auto";
|
|
8523
|
+
};
|
|
8524
|
+
imageSourceUrls: string[];
|
|
8525
|
+
/** @enum {string} */
|
|
8526
|
+
source: "manual" | "auto" | "legacy";
|
|
8527
|
+
createdByUserId: string | null;
|
|
8528
|
+
updatedByUserId: string | null;
|
|
8529
|
+
createdAt: string;
|
|
8530
|
+
updatedAt: string;
|
|
8531
|
+
};
|
|
8532
|
+
};
|
|
8533
|
+
};
|
|
8534
|
+
};
|
|
8535
|
+
/** @description Invalid request. */
|
|
8536
|
+
400: {
|
|
8537
|
+
headers: {
|
|
8538
|
+
[name: string]: unknown;
|
|
8539
|
+
};
|
|
8540
|
+
content?: never;
|
|
8541
|
+
};
|
|
8542
|
+
/** @description Missing credentials. */
|
|
8543
|
+
401: {
|
|
8544
|
+
headers: {
|
|
8545
|
+
[name: string]: unknown;
|
|
8546
|
+
};
|
|
8547
|
+
content?: never;
|
|
8548
|
+
};
|
|
8549
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
8550
|
+
403: {
|
|
8551
|
+
headers: {
|
|
8552
|
+
[name: string]: unknown;
|
|
8553
|
+
};
|
|
8554
|
+
content?: never;
|
|
8555
|
+
};
|
|
8556
|
+
/** @description Resource not found in this organization. */
|
|
8557
|
+
404: {
|
|
8558
|
+
headers: {
|
|
8559
|
+
[name: string]: unknown;
|
|
8560
|
+
};
|
|
8561
|
+
content?: never;
|
|
8562
|
+
};
|
|
8563
|
+
};
|
|
8564
|
+
};
|
|
8565
|
+
delete_v1_brand_kits_by_brandkitid: {
|
|
8566
|
+
parameters: {
|
|
8567
|
+
query?: {
|
|
8568
|
+
organizationId?: string;
|
|
8569
|
+
};
|
|
8570
|
+
header?: never;
|
|
8571
|
+
path: {
|
|
8572
|
+
brandKitId: string;
|
|
8573
|
+
};
|
|
8574
|
+
cookie?: never;
|
|
8575
|
+
};
|
|
8576
|
+
requestBody?: never;
|
|
8577
|
+
responses: {
|
|
8578
|
+
/** @description Deleted brand kit. */
|
|
8579
|
+
200: {
|
|
8580
|
+
headers: {
|
|
8581
|
+
[name: string]: unknown;
|
|
8582
|
+
};
|
|
8583
|
+
content: {
|
|
8584
|
+
"application/json": {
|
|
8585
|
+
ok: boolean;
|
|
8586
|
+
/** @constant */
|
|
8587
|
+
apiVersion: "developer_v1";
|
|
8588
|
+
operationId: string;
|
|
8589
|
+
/** @enum {string} */
|
|
8590
|
+
status: "accepted" | "completed" | "failed";
|
|
8591
|
+
jobId?: string;
|
|
8592
|
+
warnings: string[];
|
|
8593
|
+
recommendations: string[];
|
|
8594
|
+
links: {
|
|
8595
|
+
[key: string]: string;
|
|
8596
|
+
};
|
|
8597
|
+
data: {
|
|
8598
|
+
id: string;
|
|
8599
|
+
/** @constant */
|
|
8600
|
+
deleted: true;
|
|
8601
|
+
};
|
|
8602
|
+
};
|
|
8603
|
+
};
|
|
8604
|
+
};
|
|
8605
|
+
/** @description Invalid request. */
|
|
8606
|
+
400: {
|
|
8607
|
+
headers: {
|
|
8608
|
+
[name: string]: unknown;
|
|
8609
|
+
};
|
|
8610
|
+
content?: never;
|
|
8611
|
+
};
|
|
8612
|
+
/** @description Missing credentials. */
|
|
8613
|
+
401: {
|
|
8614
|
+
headers: {
|
|
8615
|
+
[name: string]: unknown;
|
|
8616
|
+
};
|
|
8617
|
+
content?: never;
|
|
8618
|
+
};
|
|
8619
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
8620
|
+
403: {
|
|
8621
|
+
headers: {
|
|
8622
|
+
[name: string]: unknown;
|
|
8623
|
+
};
|
|
8624
|
+
content?: never;
|
|
8625
|
+
};
|
|
8626
|
+
/** @description Resource not found in this organization. */
|
|
8627
|
+
404: {
|
|
8628
|
+
headers: {
|
|
8629
|
+
[name: string]: unknown;
|
|
8630
|
+
};
|
|
8631
|
+
content?: never;
|
|
8632
|
+
};
|
|
8633
|
+
};
|
|
8634
|
+
};
|
|
8635
|
+
patch_v1_brand_kits_by_brandkitid: {
|
|
8636
|
+
parameters: {
|
|
8637
|
+
query?: never;
|
|
8638
|
+
header?: never;
|
|
8639
|
+
path: {
|
|
8640
|
+
brandKitId: string;
|
|
8641
|
+
};
|
|
8642
|
+
cookie?: never;
|
|
8643
|
+
};
|
|
8644
|
+
requestBody: {
|
|
8645
|
+
content: {
|
|
8646
|
+
"application/json": {
|
|
8647
|
+
organizationId?: string;
|
|
8648
|
+
name?: string;
|
|
8649
|
+
brandKit?: {
|
|
8650
|
+
websiteUrl?: string | "";
|
|
8651
|
+
/** @enum {string} */
|
|
8652
|
+
colorScheme?: "light" | "dark";
|
|
8653
|
+
fonts?: {
|
|
8654
|
+
family: string;
|
|
8655
|
+
/** @enum {string} */
|
|
8656
|
+
role: "heading" | "body";
|
|
8657
|
+
}[];
|
|
8658
|
+
colors?: {
|
|
8659
|
+
primary?: string;
|
|
8660
|
+
accent?: string;
|
|
8661
|
+
background?: string;
|
|
8662
|
+
textPrimary?: string;
|
|
8663
|
+
link?: string;
|
|
8664
|
+
};
|
|
8665
|
+
colorPalette?: string[];
|
|
8666
|
+
typography?: {
|
|
8667
|
+
fontFamilies?: {
|
|
8668
|
+
primary?: string;
|
|
8669
|
+
heading?: string;
|
|
8670
|
+
body?: string;
|
|
8671
|
+
};
|
|
8672
|
+
fontStacks?: {
|
|
8673
|
+
heading?: string[];
|
|
8674
|
+
body?: string[];
|
|
8675
|
+
paragraph?: string[];
|
|
8676
|
+
};
|
|
8677
|
+
fontSizes?: {
|
|
8678
|
+
h1?: string;
|
|
8679
|
+
h2?: string;
|
|
8680
|
+
body?: string;
|
|
8681
|
+
};
|
|
8682
|
+
};
|
|
8683
|
+
spacing?: {
|
|
8684
|
+
baseUnit?: number;
|
|
8685
|
+
borderRadius?: string;
|
|
8686
|
+
};
|
|
8687
|
+
components?: {
|
|
8688
|
+
input?: {
|
|
8689
|
+
background?: string;
|
|
8690
|
+
textColor?: string;
|
|
8691
|
+
borderColor?: string;
|
|
8692
|
+
borderRadius?: string;
|
|
8693
|
+
borderRadiusCorners?: {
|
|
8694
|
+
topLeft?: string;
|
|
8695
|
+
topRight?: string;
|
|
8696
|
+
bottomRight?: string;
|
|
8697
|
+
bottomLeft?: string;
|
|
8698
|
+
};
|
|
8699
|
+
shadow?: string;
|
|
8700
|
+
};
|
|
8701
|
+
buttonPrimary?: {
|
|
8702
|
+
background?: string;
|
|
8703
|
+
textColor?: string;
|
|
8704
|
+
borderColor?: string;
|
|
8705
|
+
borderRadius?: string;
|
|
8706
|
+
borderRadiusCorners?: {
|
|
8707
|
+
topLeft?: string;
|
|
8708
|
+
topRight?: string;
|
|
8709
|
+
bottomRight?: string;
|
|
8710
|
+
bottomLeft?: string;
|
|
8711
|
+
};
|
|
8712
|
+
shadow?: string;
|
|
8713
|
+
};
|
|
8714
|
+
buttonSecondary?: {
|
|
8715
|
+
background?: string;
|
|
8716
|
+
textColor?: string;
|
|
8717
|
+
borderColor?: string;
|
|
8718
|
+
borderRadius?: string;
|
|
8719
|
+
borderRadiusCorners?: {
|
|
8720
|
+
topLeft?: string;
|
|
8721
|
+
topRight?: string;
|
|
8722
|
+
bottomRight?: string;
|
|
8723
|
+
bottomLeft?: string;
|
|
8724
|
+
};
|
|
8725
|
+
shadow?: string;
|
|
8726
|
+
};
|
|
8727
|
+
};
|
|
8728
|
+
images?: {
|
|
8729
|
+
logo?: string | null;
|
|
8730
|
+
icons?: string[];
|
|
8731
|
+
};
|
|
8732
|
+
personality?: {
|
|
8733
|
+
tone?: string;
|
|
8734
|
+
energy?: string;
|
|
8735
|
+
targetAudience?: string;
|
|
8736
|
+
};
|
|
8737
|
+
contentGuidelines?: string;
|
|
8738
|
+
parentBrandName?: string;
|
|
8739
|
+
parentBrandKitIds?: string[];
|
|
8740
|
+
alsoKnownAs?: string[];
|
|
8741
|
+
extractedAt?: string | null;
|
|
8742
|
+
/** @enum {string} */
|
|
8743
|
+
source?: "manual" | "auto";
|
|
8744
|
+
};
|
|
8745
|
+
/** @description Manufacturer/distributor source websites. HTTP(S) URLs and domain/path scopes are accepted and normalized to host/path. Empty arrays clear sources. */
|
|
8746
|
+
imageSourceUrls?: string[];
|
|
8747
|
+
};
|
|
8748
|
+
};
|
|
8749
|
+
};
|
|
8750
|
+
responses: {
|
|
8751
|
+
/** @description Updated brand kit. */
|
|
8752
|
+
200: {
|
|
8753
|
+
headers: {
|
|
8754
|
+
[name: string]: unknown;
|
|
8755
|
+
};
|
|
8756
|
+
content: {
|
|
8757
|
+
"application/json": {
|
|
8758
|
+
ok: boolean;
|
|
8759
|
+
/** @constant */
|
|
8760
|
+
apiVersion: "developer_v1";
|
|
8761
|
+
operationId: string;
|
|
8762
|
+
/** @enum {string} */
|
|
8763
|
+
status: "accepted" | "completed" | "failed";
|
|
8764
|
+
jobId?: string;
|
|
8765
|
+
warnings: string[];
|
|
8766
|
+
recommendations: string[];
|
|
8767
|
+
links: {
|
|
8768
|
+
[key: string]: string;
|
|
8769
|
+
};
|
|
8770
|
+
data: {
|
|
8771
|
+
id: string;
|
|
8772
|
+
organizationId: string;
|
|
8773
|
+
name: string;
|
|
8774
|
+
normalizedName: string;
|
|
8775
|
+
brandKit: {
|
|
8776
|
+
websiteUrl: string | "";
|
|
8777
|
+
/** @enum {string} */
|
|
8778
|
+
colorScheme: "light" | "dark";
|
|
8779
|
+
fonts: {
|
|
8780
|
+
family: string;
|
|
8781
|
+
/** @enum {string} */
|
|
8782
|
+
role: "heading" | "body";
|
|
8783
|
+
}[];
|
|
8784
|
+
colors: {
|
|
8785
|
+
primary: string;
|
|
8786
|
+
accent: string;
|
|
8787
|
+
background: string;
|
|
8788
|
+
textPrimary: string;
|
|
8789
|
+
link: string;
|
|
8790
|
+
};
|
|
8791
|
+
colorPalette: string[];
|
|
8792
|
+
typography: {
|
|
8793
|
+
fontFamilies: {
|
|
8794
|
+
primary: string;
|
|
8795
|
+
heading: string;
|
|
8796
|
+
body: string;
|
|
8797
|
+
};
|
|
8798
|
+
fontStacks: {
|
|
8799
|
+
heading: string[];
|
|
8800
|
+
body: string[];
|
|
8801
|
+
paragraph: string[];
|
|
8802
|
+
};
|
|
8803
|
+
fontSizes: {
|
|
8804
|
+
h1: string;
|
|
8805
|
+
h2: string;
|
|
8806
|
+
body: string;
|
|
8807
|
+
};
|
|
8808
|
+
};
|
|
8809
|
+
spacing: {
|
|
8810
|
+
baseUnit: number;
|
|
8811
|
+
borderRadius: string;
|
|
8812
|
+
};
|
|
8813
|
+
components: {
|
|
8814
|
+
input: {
|
|
8815
|
+
background: string;
|
|
8816
|
+
textColor: string;
|
|
8817
|
+
borderColor: string;
|
|
8818
|
+
borderRadius: string;
|
|
8819
|
+
borderRadiusCorners: {
|
|
8820
|
+
topLeft: string;
|
|
8821
|
+
topRight: string;
|
|
8822
|
+
bottomRight: string;
|
|
8823
|
+
bottomLeft: string;
|
|
8824
|
+
};
|
|
8825
|
+
shadow: string;
|
|
8826
|
+
};
|
|
8827
|
+
buttonPrimary: {
|
|
8828
|
+
background: string;
|
|
8829
|
+
textColor: string;
|
|
8830
|
+
borderColor: string;
|
|
8831
|
+
borderRadius: string;
|
|
8832
|
+
borderRadiusCorners: {
|
|
8833
|
+
topLeft: string;
|
|
8834
|
+
topRight: string;
|
|
8835
|
+
bottomRight: string;
|
|
8836
|
+
bottomLeft: string;
|
|
8837
|
+
};
|
|
8838
|
+
shadow: string;
|
|
8839
|
+
};
|
|
8840
|
+
buttonSecondary: {
|
|
8841
|
+
background: string;
|
|
8842
|
+
textColor: string;
|
|
8843
|
+
borderColor: string;
|
|
8844
|
+
borderRadius: string;
|
|
8845
|
+
borderRadiusCorners: {
|
|
8846
|
+
topLeft: string;
|
|
8847
|
+
topRight: string;
|
|
8848
|
+
bottomRight: string;
|
|
8849
|
+
bottomLeft: string;
|
|
8850
|
+
};
|
|
8851
|
+
shadow: string;
|
|
8852
|
+
};
|
|
8853
|
+
};
|
|
8854
|
+
images: {
|
|
8855
|
+
logo: string | null;
|
|
8856
|
+
icons: string[];
|
|
8857
|
+
};
|
|
8858
|
+
personality: {
|
|
8859
|
+
tone: string;
|
|
8860
|
+
energy: string;
|
|
8861
|
+
targetAudience: string;
|
|
8862
|
+
};
|
|
8863
|
+
contentGuidelines: string;
|
|
8864
|
+
parentBrandName: string;
|
|
8865
|
+
parentBrandKitIds?: string[];
|
|
8866
|
+
alsoKnownAs: string[];
|
|
8867
|
+
extractedAt: string | null;
|
|
8868
|
+
/** @enum {string} */
|
|
8869
|
+
source: "manual" | "auto";
|
|
8870
|
+
};
|
|
8871
|
+
imageSourceUrls: string[];
|
|
8872
|
+
/** @enum {string} */
|
|
8873
|
+
source: "manual" | "auto" | "legacy";
|
|
8874
|
+
createdByUserId: string | null;
|
|
8875
|
+
updatedByUserId: string | null;
|
|
8876
|
+
createdAt: string;
|
|
8877
|
+
updatedAt: string;
|
|
8878
|
+
};
|
|
8879
|
+
};
|
|
8880
|
+
};
|
|
8881
|
+
};
|
|
8882
|
+
/** @description Invalid request. */
|
|
8883
|
+
400: {
|
|
8884
|
+
headers: {
|
|
8885
|
+
[name: string]: unknown;
|
|
8886
|
+
};
|
|
8887
|
+
content?: never;
|
|
8888
|
+
};
|
|
8889
|
+
/** @description Missing credentials. */
|
|
8890
|
+
401: {
|
|
8891
|
+
headers: {
|
|
8892
|
+
[name: string]: unknown;
|
|
8893
|
+
};
|
|
8894
|
+
content?: never;
|
|
8895
|
+
};
|
|
8896
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
8897
|
+
403: {
|
|
8898
|
+
headers: {
|
|
8899
|
+
[name: string]: unknown;
|
|
8900
|
+
};
|
|
8901
|
+
content?: never;
|
|
8902
|
+
};
|
|
8903
|
+
/** @description Resource not found in this organization. */
|
|
8904
|
+
404: {
|
|
8905
|
+
headers: {
|
|
8906
|
+
[name: string]: unknown;
|
|
8907
|
+
};
|
|
8908
|
+
content?: never;
|
|
8909
|
+
};
|
|
8910
|
+
};
|
|
8911
|
+
};
|
|
8912
|
+
post_v1_brandsgateway_import: {
|
|
8913
|
+
parameters: {
|
|
8914
|
+
query?: never;
|
|
8915
|
+
header?: never;
|
|
8916
|
+
path?: never;
|
|
8917
|
+
cookie?: never;
|
|
8918
|
+
};
|
|
8919
|
+
requestBody: {
|
|
8920
|
+
content: {
|
|
8921
|
+
/**
|
|
8922
|
+
* @example {
|
|
8923
|
+
* "importAllMatching": true,
|
|
8924
|
+
* "maxProducts": 10,
|
|
8925
|
+
* "filters": {
|
|
8926
|
+
* "categoryIds": [
|
|
8927
|
+
* 71816
|
|
8928
|
+
* ],
|
|
8929
|
+
* "vendorIds": [
|
|
8930
|
+
* 73680
|
|
8931
|
+
* ],
|
|
8932
|
+
* "brandIds": [
|
|
8933
|
+
* 68571,
|
|
8934
|
+
* 615
|
|
8935
|
+
* ],
|
|
8936
|
+
* "updatedAtMin": "2026-10-01"
|
|
8937
|
+
* }
|
|
8938
|
+
* }
|
|
8939
|
+
*/
|
|
8940
|
+
"application/json": {
|
|
8941
|
+
/** @description BrandsGateway catalog product IDs (supplier numbers, not Omni product IDs). Trimmed and de-duplicated while preserving order. Max 50. */
|
|
8942
|
+
catalogProductIds?: number[];
|
|
8943
|
+
/** @description Import up to maxProducts products matching filters instead of an explicit catalogProductIds list (defaults to 50). */
|
|
7899
8944
|
importAllMatching?: boolean;
|
|
7900
8945
|
/** @description Maximum products to import in this call (1–50, defaults to 50). Applied across all matching catalog pages. An explicit catalogProductIds selection cannot exceed this limit after deduplication. */
|
|
7901
8946
|
maxProducts?: number;
|
|
@@ -7925,9 +8970,8 @@ interface operations {
|
|
|
7925
8970
|
};
|
|
7926
8971
|
/** @description Connected marketplaces to assign on import. Taxonomy enrichment uses taxonomy-capable stores from this list. */
|
|
7927
8972
|
targetMarketplaces?: string[];
|
|
7928
|
-
/** @description Connected store ID keyed by marketplace. */
|
|
7929
8973
|
marketplaceStoreSelections?: {
|
|
7930
|
-
[key: string]: string;
|
|
8974
|
+
[key: string]: string[] | string;
|
|
7931
8975
|
};
|
|
7932
8976
|
/** @description Shared country for the selected import stores. */
|
|
7933
8977
|
country?: string;
|
|
@@ -8205,6 +9249,12 @@ interface operations {
|
|
|
8205
9249
|
| "amazon"
|
|
8206
9250
|
| "ebay";
|
|
8207
9251
|
sourceCountry?: string;
|
|
9252
|
+
/**
|
|
9253
|
+
* @description offer_windows prepares each window at preparesAt (default); campaign_start opts into preparing all eligible offers on Run. Sale dates are unchanged. Locked while running.
|
|
9254
|
+
* @default offer_windows
|
|
9255
|
+
* @enum {string}
|
|
9256
|
+
*/
|
|
9257
|
+
syncMode?: "offer_windows" | "campaign_start";
|
|
8208
9258
|
/** @default */
|
|
8209
9259
|
cleanupNotes?: string;
|
|
8210
9260
|
};
|
|
@@ -8213,7 +9263,7 @@ interface operations {
|
|
|
8213
9263
|
id: string;
|
|
8214
9264
|
name: string;
|
|
8215
9265
|
/**
|
|
8216
|
-
* @description Preparation time: publish promotions with
|
|
9266
|
+
* @description Preparation time in offer_windows mode: publish promotions with future live dates. Required before approval and at or before startsAt; ignored in campaign_start mode.
|
|
8217
9267
|
* @default null
|
|
8218
9268
|
*/
|
|
8219
9269
|
preparesAt?: string | null;
|
|
@@ -8869,6 +9919,12 @@ interface operations {
|
|
|
8869
9919
|
| "amazon"
|
|
8870
9920
|
| "ebay";
|
|
8871
9921
|
sourceCountry?: string;
|
|
9922
|
+
/**
|
|
9923
|
+
* @description offer_windows prepares each window at preparesAt (default); campaign_start opts into preparing all eligible offers on Run. Sale dates are unchanged. Locked while running.
|
|
9924
|
+
* @default offer_windows
|
|
9925
|
+
* @enum {string}
|
|
9926
|
+
*/
|
|
9927
|
+
syncMode?: "offer_windows" | "campaign_start";
|
|
8872
9928
|
/** @default */
|
|
8873
9929
|
cleanupNotes?: string;
|
|
8874
9930
|
};
|
|
@@ -8877,7 +9933,7 @@ interface operations {
|
|
|
8877
9933
|
id: string;
|
|
8878
9934
|
name: string;
|
|
8879
9935
|
/**
|
|
8880
|
-
* @description Preparation time: publish promotions with
|
|
9936
|
+
* @description Preparation time in offer_windows mode: publish promotions with future live dates. Required before approval and at or before startsAt; ignored in campaign_start mode.
|
|
8881
9937
|
* @default null
|
|
8882
9938
|
*/
|
|
8883
9939
|
preparesAt?: string | null;
|
|
@@ -11352,42 +12408,249 @@ interface operations {
|
|
|
11352
12408
|
* }
|
|
11353
12409
|
*/
|
|
11354
12410
|
"application/json": {
|
|
11355
|
-
ok: boolean;
|
|
11356
|
-
/** @default developer_v1 */
|
|
11357
|
-
apiVersion: string;
|
|
11358
|
-
operationId: string;
|
|
12411
|
+
ok: boolean;
|
|
12412
|
+
/** @default developer_v1 */
|
|
12413
|
+
apiVersion: string;
|
|
12414
|
+
operationId: string;
|
|
12415
|
+
/** @enum {string} */
|
|
12416
|
+
status: "completed";
|
|
12417
|
+
warnings: string[];
|
|
12418
|
+
recommendations: string[];
|
|
12419
|
+
/** @description Remote HTTP(S) URL for the generated ghost mannequin image stored by OmniCommerce. */
|
|
12420
|
+
image: string;
|
|
12421
|
+
};
|
|
12422
|
+
};
|
|
12423
|
+
};
|
|
12424
|
+
/** @description Bad Request - invalid JSON or imageUrl */
|
|
12425
|
+
400: {
|
|
12426
|
+
headers: {
|
|
12427
|
+
[name: string]: unknown;
|
|
12428
|
+
};
|
|
12429
|
+
content?: never;
|
|
12430
|
+
};
|
|
12431
|
+
/** @description Unauthorized */
|
|
12432
|
+
401: {
|
|
12433
|
+
headers: {
|
|
12434
|
+
[name: string]: unknown;
|
|
12435
|
+
};
|
|
12436
|
+
content?: never;
|
|
12437
|
+
};
|
|
12438
|
+
/** @description Forbidden - missing catalog:enrich scope */
|
|
12439
|
+
403: {
|
|
12440
|
+
headers: {
|
|
12441
|
+
[name: string]: unknown;
|
|
12442
|
+
};
|
|
12443
|
+
content?: never;
|
|
12444
|
+
};
|
|
12445
|
+
/** @description Image generation failed or the generated image could not be retrieved. */
|
|
12446
|
+
502: {
|
|
12447
|
+
headers: {
|
|
12448
|
+
[name: string]: unknown;
|
|
12449
|
+
};
|
|
12450
|
+
content?: never;
|
|
12451
|
+
};
|
|
12452
|
+
};
|
|
12453
|
+
};
|
|
12454
|
+
get_v1_inventory: {
|
|
12455
|
+
parameters: {
|
|
12456
|
+
query?: {
|
|
12457
|
+
productIds?: string[];
|
|
12458
|
+
query?: string;
|
|
12459
|
+
marketplace?: string[];
|
|
12460
|
+
country?: string[];
|
|
12461
|
+
storeIds?: string[];
|
|
12462
|
+
unlistedMarketplaces?: (
|
|
12463
|
+
| "shopee"
|
|
12464
|
+
| "lazada"
|
|
12465
|
+
| "tiktok"
|
|
12466
|
+
| "shopify"
|
|
12467
|
+
| "whatsapp"
|
|
12468
|
+
| "zalora"
|
|
12469
|
+
| "amazon"
|
|
12470
|
+
| "ebay"
|
|
12471
|
+
)[];
|
|
12472
|
+
groupBy?: "product" | "marketplace" | "country";
|
|
12473
|
+
status?: "all" | "in_stock" | "low_stock" | "out_of_stock";
|
|
12474
|
+
offset?: number;
|
|
12475
|
+
limit?: number;
|
|
12476
|
+
};
|
|
12477
|
+
header?: never;
|
|
12478
|
+
path?: never;
|
|
12479
|
+
cookie?: never;
|
|
12480
|
+
};
|
|
12481
|
+
requestBody?: never;
|
|
12482
|
+
responses: {
|
|
12483
|
+
/** @description One inventory page, matching count, continuation and listing evidence. */
|
|
12484
|
+
200: {
|
|
12485
|
+
headers: {
|
|
12486
|
+
[name: string]: unknown;
|
|
12487
|
+
};
|
|
12488
|
+
content: {
|
|
12489
|
+
"application/json": {
|
|
12490
|
+
/** @enum {boolean} */
|
|
12491
|
+
success: true;
|
|
11359
12492
|
/** @enum {string} */
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
12493
|
+
groupBy: "product" | "marketplace" | "country";
|
|
12494
|
+
/** @enum {string} */
|
|
12495
|
+
status: "all" | "in_stock" | "low_stock" | "out_of_stock";
|
|
12496
|
+
stats: {
|
|
12497
|
+
totalSKUs: number;
|
|
12498
|
+
lowStockCount: number;
|
|
12499
|
+
outOfStockCount: number;
|
|
12500
|
+
trackableCount: number;
|
|
12501
|
+
lastUpdatedAt: string | null;
|
|
12502
|
+
};
|
|
12503
|
+
groups: {
|
|
12504
|
+
key: string;
|
|
12505
|
+
label: string;
|
|
12506
|
+
skuCount: number;
|
|
12507
|
+
trackableCount: number;
|
|
12508
|
+
lowStockCount: number;
|
|
12509
|
+
outOfStockCount: number;
|
|
12510
|
+
totalQuantity: number;
|
|
12511
|
+
lastUpdatedAt: string | null;
|
|
12512
|
+
productId?: string;
|
|
12513
|
+
sku?: string | null;
|
|
12514
|
+
marketplaces?: string[];
|
|
12515
|
+
countries?: string[];
|
|
12516
|
+
hasVariants?: boolean;
|
|
12517
|
+
forecast?: {
|
|
12518
|
+
signalCount: number;
|
|
12519
|
+
/**
|
|
12520
|
+
* @description Sales-history demand units used by the forecast. This can include out-of-stock demand imputation.
|
|
12521
|
+
* @default 0
|
|
12522
|
+
*/
|
|
12523
|
+
salesHistoryUnits: number;
|
|
12524
|
+
/**
|
|
12525
|
+
* @description Maximum daily history-point count across the included forecast series.
|
|
12526
|
+
* @default 0
|
|
12527
|
+
*/
|
|
12528
|
+
salesHistoryPoints: number;
|
|
12529
|
+
/** @default null */
|
|
12530
|
+
historyStartDate: string | null;
|
|
12531
|
+
/** @default null */
|
|
12532
|
+
historyEndDate: string | null;
|
|
12533
|
+
/** @default null */
|
|
12534
|
+
lastSaleDate: string | null;
|
|
12535
|
+
/**
|
|
12536
|
+
* @description Canonical country scopes for the included forecast series; global is an aggregate connection scope.
|
|
12537
|
+
* @default []
|
|
12538
|
+
*/
|
|
12539
|
+
countryScopes: string[];
|
|
12540
|
+
expectedSalesUnits: number;
|
|
12541
|
+
suggestedReorderQuantity: number;
|
|
12542
|
+
highRiskCount: number;
|
|
12543
|
+
mediumRiskCount: number;
|
|
12544
|
+
/** @enum {string} */
|
|
12545
|
+
stockoutRisk: "low" | "medium" | "high" | "unknown";
|
|
12546
|
+
/** @enum {string} */
|
|
12547
|
+
reorderUrgency: "none" | "low" | "medium" | "high" | "critical";
|
|
12548
|
+
/** @enum {string|null} */
|
|
12549
|
+
confidenceLabel: "low" | "medium" | "high" | null;
|
|
12550
|
+
forecastWindowDays: number | null;
|
|
12551
|
+
forecastStartDate: string | null;
|
|
12552
|
+
forecastEndDate: string | null;
|
|
12553
|
+
stockoutDate: string | null;
|
|
12554
|
+
reorderByDate: string | null;
|
|
12555
|
+
generatedAt: string | null;
|
|
12556
|
+
};
|
|
12557
|
+
}[];
|
|
12558
|
+
forecast?: {
|
|
12559
|
+
signalCount: number;
|
|
12560
|
+
/**
|
|
12561
|
+
* @description Sales-history demand units used by the forecast. This can include out-of-stock demand imputation.
|
|
12562
|
+
* @default 0
|
|
12563
|
+
*/
|
|
12564
|
+
salesHistoryUnits: number;
|
|
12565
|
+
/**
|
|
12566
|
+
* @description Maximum daily history-point count across the included forecast series.
|
|
12567
|
+
* @default 0
|
|
12568
|
+
*/
|
|
12569
|
+
salesHistoryPoints: number;
|
|
12570
|
+
/** @default null */
|
|
12571
|
+
historyStartDate: string | null;
|
|
12572
|
+
/** @default null */
|
|
12573
|
+
historyEndDate: string | null;
|
|
12574
|
+
/** @default null */
|
|
12575
|
+
lastSaleDate: string | null;
|
|
12576
|
+
/**
|
|
12577
|
+
* @description Canonical country scopes for the included forecast series; global is an aggregate connection scope.
|
|
12578
|
+
* @default []
|
|
12579
|
+
*/
|
|
12580
|
+
countryScopes: string[];
|
|
12581
|
+
expectedSalesUnits: number;
|
|
12582
|
+
suggestedReorderQuantity: number;
|
|
12583
|
+
highRiskCount: number;
|
|
12584
|
+
mediumRiskCount: number;
|
|
12585
|
+
/** @enum {string} */
|
|
12586
|
+
stockoutRisk: "low" | "medium" | "high" | "unknown";
|
|
12587
|
+
/** @enum {string} */
|
|
12588
|
+
reorderUrgency: "none" | "low" | "medium" | "high" | "critical";
|
|
12589
|
+
/** @enum {string|null} */
|
|
12590
|
+
confidenceLabel: "low" | "medium" | "high" | null;
|
|
12591
|
+
forecastWindowDays: number | null;
|
|
12592
|
+
forecastStartDate: string | null;
|
|
12593
|
+
forecastEndDate: string | null;
|
|
12594
|
+
stockoutDate: string | null;
|
|
12595
|
+
reorderByDate: string | null;
|
|
12596
|
+
generatedAt: string | null;
|
|
12597
|
+
};
|
|
12598
|
+
count: number;
|
|
12599
|
+
totalGroups: number;
|
|
12600
|
+
returnedGroups: number;
|
|
12601
|
+
truncated: boolean;
|
|
12602
|
+
offset: number;
|
|
12603
|
+
hasMore: boolean;
|
|
12604
|
+
nextOffset: number | null;
|
|
12605
|
+
listingPresence?: {
|
|
12606
|
+
/** @enum {string} */
|
|
12607
|
+
source: "saved_catalog";
|
|
12608
|
+
marketplaces: (
|
|
12609
|
+
| "shopee"
|
|
12610
|
+
| "lazada"
|
|
12611
|
+
| "tiktok"
|
|
12612
|
+
| "shopify"
|
|
12613
|
+
| "whatsapp"
|
|
12614
|
+
| "zalora"
|
|
12615
|
+
| "amazon"
|
|
12616
|
+
| "ebay"
|
|
12617
|
+
)[];
|
|
12618
|
+
unknownProductCount: number;
|
|
12619
|
+
complete: boolean;
|
|
12620
|
+
};
|
|
11365
12621
|
};
|
|
11366
12622
|
};
|
|
11367
12623
|
};
|
|
11368
|
-
/** @description
|
|
12624
|
+
/** @description Invalid inventory filters. */
|
|
11369
12625
|
400: {
|
|
11370
12626
|
headers: {
|
|
11371
12627
|
[name: string]: unknown;
|
|
11372
12628
|
};
|
|
11373
12629
|
content?: never;
|
|
11374
12630
|
};
|
|
11375
|
-
/** @description
|
|
12631
|
+
/** @description Missing or invalid credentials. */
|
|
11376
12632
|
401: {
|
|
11377
12633
|
headers: {
|
|
11378
12634
|
[name: string]: unknown;
|
|
11379
12635
|
};
|
|
11380
12636
|
content?: never;
|
|
11381
12637
|
};
|
|
11382
|
-
/** @description
|
|
12638
|
+
/** @description Missing catalog:read, inventory permission or organization access. */
|
|
11383
12639
|
403: {
|
|
11384
12640
|
headers: {
|
|
11385
12641
|
[name: string]: unknown;
|
|
11386
12642
|
};
|
|
11387
12643
|
content?: never;
|
|
11388
12644
|
};
|
|
11389
|
-
/** @description
|
|
11390
|
-
|
|
12645
|
+
/** @description Rate limited. */
|
|
12646
|
+
429: {
|
|
12647
|
+
headers: {
|
|
12648
|
+
[name: string]: unknown;
|
|
12649
|
+
};
|
|
12650
|
+
content?: never;
|
|
12651
|
+
};
|
|
12652
|
+
/** @description Inventory query failed. An error is not an empty inventory list. */
|
|
12653
|
+
500: {
|
|
11391
12654
|
headers: {
|
|
11392
12655
|
[name: string]: unknown;
|
|
11393
12656
|
};
|
|
@@ -11910,7 +13173,7 @@ interface operations {
|
|
|
11910
13173
|
organizationId?: string;
|
|
11911
13174
|
/** @description OmniCommerce product ID. The API key must belong to the organization that owns this product. */
|
|
11912
13175
|
productId: string;
|
|
11913
|
-
/** @description
|
|
13176
|
+
/** @description Exact marketplace/store targets (maximum 50). Each store keeps its own category and attributes; connected store country takes precedence. */
|
|
11914
13177
|
targets: {
|
|
11915
13178
|
/** @enum {string} */
|
|
11916
13179
|
marketplace:
|
|
@@ -11921,6 +13184,8 @@ interface operations {
|
|
|
11921
13184
|
| "zalora"
|
|
11922
13185
|
| "amazon"
|
|
11923
13186
|
| "ebay";
|
|
13187
|
+
/** @description Connected store ID. Required to disambiguate multiple assignments on one marketplace. */
|
|
13188
|
+
storeId?: string;
|
|
11924
13189
|
/** @description Marketplace country code or name, for example singapore, malaysia, sg, or my. */
|
|
11925
13190
|
country?: string;
|
|
11926
13191
|
}[];
|
|
@@ -14189,6 +15454,7 @@ interface operations {
|
|
|
14189
15454
|
| "lazada"
|
|
14190
15455
|
| "tiktok"
|
|
14191
15456
|
| "shopify"
|
|
15457
|
+
| "whatsapp"
|
|
14192
15458
|
| "zalora"
|
|
14193
15459
|
| "amazon"
|
|
14194
15460
|
| "ebay";
|
|
@@ -14203,11 +15469,49 @@ interface operations {
|
|
|
14203
15469
|
/** @description Maximum price filter. */
|
|
14204
15470
|
maxPrice?: number;
|
|
14205
15471
|
/** @description Sort order for results. */
|
|
14206
|
-
sortBy?:
|
|
15472
|
+
sortBy?:
|
|
15473
|
+
| "updated_desc"
|
|
15474
|
+
| "updated_asc"
|
|
15475
|
+
| "created_desc"
|
|
15476
|
+
| "created_asc"
|
|
15477
|
+
| "price_asc"
|
|
15478
|
+
| "price_desc"
|
|
15479
|
+
| "name_asc"
|
|
15480
|
+
| "name_desc"
|
|
15481
|
+
| "stock_asc"
|
|
15482
|
+
| "stock_desc"
|
|
15483
|
+
| "status_asc"
|
|
15484
|
+
| "status_desc"
|
|
15485
|
+
| "marketplace_asc"
|
|
15486
|
+
| "marketplace_desc"
|
|
15487
|
+
| "country_asc"
|
|
15488
|
+
| "country_desc"
|
|
15489
|
+
| "published_desc"
|
|
15490
|
+
| "published_asc";
|
|
14207
15491
|
/** @description Result limit per page. Values above the cap are clamped silently; the applied value is returned in `pagination.limit`. Defaults to 20. */
|
|
14208
15492
|
limit?: number;
|
|
14209
15493
|
/** @description Zero-based pagination offset. Use `pagination.nextOffset` from the previous response to page forward. Defaults to 0. */
|
|
14210
15494
|
offset?: number;
|
|
15495
|
+
/** @description Exact marketplace account/store IDs, comma-separated. Combine with marketplace, or use storeKeys for exact platform/country/store identity. */
|
|
15496
|
+
store?: string;
|
|
15497
|
+
/** @description Comma-separated marketplace:country:storeId keys (up to 50), matching the Products page. Missing account IDs never match another store. */
|
|
15498
|
+
storeKeys?: string;
|
|
15499
|
+
/** @description JSON array of marketplace-prefixed brand names, matching the Products page. */
|
|
15500
|
+
brands?: string;
|
|
15501
|
+
bundleType?: "" | "hard" | "virtual" | "non_bundle";
|
|
15502
|
+
language?: string;
|
|
15503
|
+
hasImage?: "yes" | "no";
|
|
15504
|
+
stock?: "in_stock";
|
|
15505
|
+
/** @description Inclusive publication date or exact ISO timestamp. */
|
|
15506
|
+
publishedFrom?: string;
|
|
15507
|
+
/** @description Inclusive publication date (whole local day), or exact ISO timestamp. */
|
|
15508
|
+
publishedTo?: string;
|
|
15509
|
+
/** @description IANA time zone for date-only publication bounds. */
|
|
15510
|
+
publishedTimeZone?: string;
|
|
15511
|
+
/** @description Opaque nextCursor from the previous page with identical organization and filters. Supported for created_desc without search; other sorts use nextOffset. */
|
|
15512
|
+
cursor?: string;
|
|
15513
|
+
/** @description Set false for scans to skip catalog summary classification on every page. summary is omitted and pagination.total is null; use products.count for a count-only request. */
|
|
15514
|
+
includeSummary?: boolean;
|
|
14211
15515
|
};
|
|
14212
15516
|
header?: never;
|
|
14213
15517
|
path?: never;
|
|
@@ -14215,7 +15519,7 @@ interface operations {
|
|
|
14215
15519
|
};
|
|
14216
15520
|
requestBody?: never;
|
|
14217
15521
|
responses: {
|
|
14218
|
-
/** @description Success */
|
|
15522
|
+
/** @description Success. summary is omitted and pagination.total is null when includeSummary=false. */
|
|
14219
15523
|
200: {
|
|
14220
15524
|
headers: {
|
|
14221
15525
|
[name: string]: unknown;
|
|
@@ -14269,9 +15573,10 @@ interface operations {
|
|
|
14269
15573
|
offset: number;
|
|
14270
15574
|
/** @description Limit that was applied to this page (after clamping to `maxLimit`). */
|
|
14271
15575
|
limit: number;
|
|
14272
|
-
/** @description Total number of records matching the filters, ignoring offset/limit. */
|
|
14273
|
-
total: number;
|
|
15576
|
+
/** @description Total number of records matching the filters, ignoring offset/limit. Null when includeSummary=false. */
|
|
15577
|
+
total: number | null;
|
|
14274
15578
|
hasMore: boolean;
|
|
15579
|
+
nextCursor?: string | null;
|
|
14275
15580
|
/** @description Null when `hasMore` is false. */
|
|
14276
15581
|
nextOffset: number | null;
|
|
14277
15582
|
/** @description Server-side maximum for the `limit` query parameter. */
|
|
@@ -14282,6 +15587,13 @@ interface operations {
|
|
|
14282
15587
|
};
|
|
14283
15588
|
};
|
|
14284
15589
|
};
|
|
15590
|
+
/** @description Invalid or mismatched pagination cursor */
|
|
15591
|
+
400: {
|
|
15592
|
+
headers: {
|
|
15593
|
+
[name: string]: unknown;
|
|
15594
|
+
};
|
|
15595
|
+
content?: never;
|
|
15596
|
+
};
|
|
14285
15597
|
/** @description Unauthorized - Invalid or missing Bearer token */
|
|
14286
15598
|
401: {
|
|
14287
15599
|
headers: {
|
|
@@ -14464,69 +15776,264 @@ interface operations {
|
|
|
14464
15776
|
* ```
|
|
14465
15777
|
*/
|
|
14466
15778
|
marketplaces?: {
|
|
14467
|
-
|
|
14468
|
-
|
|
14469
|
-
|
|
14470
|
-
|
|
14471
|
-
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
|
|
14503
|
-
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
|
|
15779
|
+
/** @enum {integer} */
|
|
15780
|
+
schemaVersion?: 1 | 2;
|
|
15781
|
+
shopee?:
|
|
15782
|
+
| ({
|
|
15783
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15784
|
+
enabled?: boolean;
|
|
15785
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15786
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15787
|
+
storeId?: string;
|
|
15788
|
+
} & {
|
|
15789
|
+
[key: string]: unknown;
|
|
15790
|
+
})
|
|
15791
|
+
| {
|
|
15792
|
+
stores: {
|
|
15793
|
+
[key: string]: {
|
|
15794
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15795
|
+
enabled?: boolean;
|
|
15796
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15797
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15798
|
+
storeId?: string;
|
|
15799
|
+
} & {
|
|
15800
|
+
[key: string]: unknown;
|
|
15801
|
+
};
|
|
15802
|
+
};
|
|
15803
|
+
defaults?: {
|
|
15804
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15805
|
+
enabled?: boolean;
|
|
15806
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15807
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15808
|
+
storeId?: string;
|
|
15809
|
+
} & {
|
|
15810
|
+
[key: string]: unknown;
|
|
15811
|
+
};
|
|
15812
|
+
};
|
|
15813
|
+
lazada?:
|
|
15814
|
+
| ({
|
|
15815
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15816
|
+
enabled?: boolean;
|
|
15817
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15818
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15819
|
+
storeId?: string;
|
|
15820
|
+
} & {
|
|
15821
|
+
[key: string]: unknown;
|
|
15822
|
+
})
|
|
15823
|
+
| {
|
|
15824
|
+
stores: {
|
|
15825
|
+
[key: string]: {
|
|
15826
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15827
|
+
enabled?: boolean;
|
|
15828
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15829
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15830
|
+
storeId?: string;
|
|
15831
|
+
} & {
|
|
15832
|
+
[key: string]: unknown;
|
|
15833
|
+
};
|
|
15834
|
+
};
|
|
15835
|
+
defaults?: {
|
|
15836
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15837
|
+
enabled?: boolean;
|
|
15838
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15839
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15840
|
+
storeId?: string;
|
|
15841
|
+
} & {
|
|
15842
|
+
[key: string]: unknown;
|
|
15843
|
+
};
|
|
15844
|
+
};
|
|
15845
|
+
tiktok?:
|
|
15846
|
+
| ({
|
|
15847
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15848
|
+
enabled?: boolean;
|
|
15849
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15850
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15851
|
+
storeId?: string;
|
|
15852
|
+
} & {
|
|
15853
|
+
[key: string]: unknown;
|
|
15854
|
+
})
|
|
15855
|
+
| {
|
|
15856
|
+
stores: {
|
|
15857
|
+
[key: string]: {
|
|
15858
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15859
|
+
enabled?: boolean;
|
|
15860
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15861
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15862
|
+
storeId?: string;
|
|
15863
|
+
} & {
|
|
15864
|
+
[key: string]: unknown;
|
|
15865
|
+
};
|
|
15866
|
+
};
|
|
15867
|
+
defaults?: {
|
|
15868
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15869
|
+
enabled?: boolean;
|
|
15870
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15871
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15872
|
+
storeId?: string;
|
|
15873
|
+
} & {
|
|
15874
|
+
[key: string]: unknown;
|
|
15875
|
+
};
|
|
15876
|
+
};
|
|
15877
|
+
shopify?:
|
|
15878
|
+
| ({
|
|
15879
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15880
|
+
enabled?: boolean;
|
|
15881
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15882
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15883
|
+
storeId?: string;
|
|
15884
|
+
} & {
|
|
15885
|
+
[key: string]: unknown;
|
|
15886
|
+
})
|
|
15887
|
+
| {
|
|
15888
|
+
stores: {
|
|
15889
|
+
[key: string]: {
|
|
15890
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15891
|
+
enabled?: boolean;
|
|
15892
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15893
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15894
|
+
storeId?: string;
|
|
15895
|
+
} & {
|
|
15896
|
+
[key: string]: unknown;
|
|
15897
|
+
};
|
|
15898
|
+
};
|
|
15899
|
+
defaults?: {
|
|
15900
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15901
|
+
enabled?: boolean;
|
|
15902
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15903
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15904
|
+
storeId?: string;
|
|
15905
|
+
} & {
|
|
15906
|
+
[key: string]: unknown;
|
|
15907
|
+
};
|
|
15908
|
+
};
|
|
15909
|
+
whatsapp?:
|
|
15910
|
+
| ({
|
|
15911
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15912
|
+
enabled?: boolean;
|
|
15913
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15914
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15915
|
+
storeId?: string;
|
|
15916
|
+
} & {
|
|
15917
|
+
[key: string]: unknown;
|
|
15918
|
+
})
|
|
15919
|
+
| {
|
|
15920
|
+
stores: {
|
|
15921
|
+
[key: string]: {
|
|
15922
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15923
|
+
enabled?: boolean;
|
|
15924
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15925
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15926
|
+
storeId?: string;
|
|
15927
|
+
} & {
|
|
15928
|
+
[key: string]: unknown;
|
|
15929
|
+
};
|
|
15930
|
+
};
|
|
15931
|
+
defaults?: {
|
|
15932
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15933
|
+
enabled?: boolean;
|
|
15934
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15935
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15936
|
+
storeId?: string;
|
|
15937
|
+
} & {
|
|
15938
|
+
[key: string]: unknown;
|
|
15939
|
+
};
|
|
15940
|
+
};
|
|
15941
|
+
zalora?:
|
|
15942
|
+
| ({
|
|
15943
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15944
|
+
enabled?: boolean;
|
|
15945
|
+
country?: components["schemas"]["ZaloraProductCountry"];
|
|
15946
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15947
|
+
storeId?: string;
|
|
15948
|
+
} & {
|
|
15949
|
+
[key: string]: unknown;
|
|
15950
|
+
})
|
|
15951
|
+
| {
|
|
15952
|
+
stores: {
|
|
15953
|
+
[key: string]: {
|
|
15954
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15955
|
+
enabled?: boolean;
|
|
15956
|
+
country?: components["schemas"]["ZaloraProductCountry"];
|
|
15957
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15958
|
+
storeId?: string;
|
|
15959
|
+
} & {
|
|
15960
|
+
[key: string]: unknown;
|
|
15961
|
+
};
|
|
15962
|
+
};
|
|
15963
|
+
defaults?: {
|
|
15964
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15965
|
+
enabled?: boolean;
|
|
15966
|
+
country?: components["schemas"]["ZaloraProductCountry"];
|
|
15967
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15968
|
+
storeId?: string;
|
|
15969
|
+
} & {
|
|
15970
|
+
[key: string]: unknown;
|
|
15971
|
+
};
|
|
15972
|
+
};
|
|
15973
|
+
amazon?:
|
|
15974
|
+
| ({
|
|
15975
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15976
|
+
enabled?: boolean;
|
|
15977
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15978
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15979
|
+
storeId?: string;
|
|
15980
|
+
} & {
|
|
15981
|
+
[key: string]: unknown;
|
|
15982
|
+
})
|
|
15983
|
+
| {
|
|
15984
|
+
stores: {
|
|
15985
|
+
[key: string]: {
|
|
15986
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15987
|
+
enabled?: boolean;
|
|
15988
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15989
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
15990
|
+
storeId?: string;
|
|
15991
|
+
} & {
|
|
15992
|
+
[key: string]: unknown;
|
|
15993
|
+
};
|
|
15994
|
+
};
|
|
15995
|
+
defaults?: {
|
|
15996
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
15997
|
+
enabled?: boolean;
|
|
15998
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
15999
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16000
|
+
storeId?: string;
|
|
16001
|
+
} & {
|
|
16002
|
+
[key: string]: unknown;
|
|
16003
|
+
};
|
|
16004
|
+
};
|
|
16005
|
+
ebay?:
|
|
16006
|
+
| ({
|
|
16007
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16008
|
+
enabled?: boolean;
|
|
16009
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16010
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16011
|
+
storeId?: string;
|
|
16012
|
+
} & {
|
|
16013
|
+
[key: string]: unknown;
|
|
16014
|
+
})
|
|
16015
|
+
| {
|
|
16016
|
+
stores: {
|
|
16017
|
+
[key: string]: {
|
|
16018
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16019
|
+
enabled?: boolean;
|
|
16020
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16021
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16022
|
+
storeId?: string;
|
|
16023
|
+
} & {
|
|
16024
|
+
[key: string]: unknown;
|
|
16025
|
+
};
|
|
16026
|
+
};
|
|
16027
|
+
defaults?: {
|
|
16028
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16029
|
+
enabled?: boolean;
|
|
16030
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16031
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16032
|
+
storeId?: string;
|
|
16033
|
+
} & {
|
|
16034
|
+
[key: string]: unknown;
|
|
16035
|
+
};
|
|
16036
|
+
};
|
|
14530
16037
|
} & {
|
|
14531
16038
|
[key: string]: unknown;
|
|
14532
16039
|
};
|
|
@@ -14557,6 +16064,7 @@ interface operations {
|
|
|
14557
16064
|
| "lazada"
|
|
14558
16065
|
| "tiktok"
|
|
14559
16066
|
| "shopify"
|
|
16067
|
+
| "whatsapp"
|
|
14560
16068
|
| "zalora"
|
|
14561
16069
|
| "amazon"
|
|
14562
16070
|
| "ebay"
|
|
@@ -15028,70 +16536,266 @@ interface operations {
|
|
|
15028
16536
|
images?: string[];
|
|
15029
16537
|
highlights?: string[];
|
|
15030
16538
|
tags?: string[];
|
|
16539
|
+
/** @description New products persist schemaVersion 2 with a stores map per marketplace, even for one store. Existing unversioned and version 1 products retain their format until an explicit add-stores action. Partial updates may use a store-scoped listing or the stores map. */
|
|
15031
16540
|
marketplaces?: {
|
|
15032
|
-
|
|
15033
|
-
|
|
15034
|
-
|
|
15035
|
-
|
|
15036
|
-
|
|
15037
|
-
|
|
15038
|
-
|
|
15039
|
-
|
|
15040
|
-
|
|
15041
|
-
|
|
15042
|
-
|
|
15043
|
-
|
|
15044
|
-
|
|
15045
|
-
|
|
15046
|
-
|
|
15047
|
-
|
|
15048
|
-
|
|
15049
|
-
|
|
15050
|
-
|
|
15051
|
-
|
|
15052
|
-
|
|
15053
|
-
|
|
15054
|
-
|
|
15055
|
-
|
|
15056
|
-
|
|
15057
|
-
|
|
15058
|
-
|
|
15059
|
-
|
|
15060
|
-
|
|
15061
|
-
|
|
15062
|
-
|
|
15063
|
-
|
|
15064
|
-
|
|
15065
|
-
|
|
15066
|
-
|
|
15067
|
-
|
|
15068
|
-
|
|
15069
|
-
|
|
15070
|
-
|
|
15071
|
-
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
|
|
15084
|
-
|
|
15085
|
-
|
|
15086
|
-
|
|
15087
|
-
|
|
15088
|
-
|
|
15089
|
-
|
|
15090
|
-
|
|
15091
|
-
|
|
15092
|
-
|
|
15093
|
-
|
|
15094
|
-
|
|
16541
|
+
/** @enum {integer} */
|
|
16542
|
+
schemaVersion?: 1 | 2;
|
|
16543
|
+
shopee?:
|
|
16544
|
+
| ({
|
|
16545
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16546
|
+
enabled?: boolean;
|
|
16547
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16548
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16549
|
+
storeId?: string;
|
|
16550
|
+
} & {
|
|
16551
|
+
[key: string]: unknown;
|
|
16552
|
+
})
|
|
16553
|
+
| {
|
|
16554
|
+
stores: {
|
|
16555
|
+
[key: string]: {
|
|
16556
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16557
|
+
enabled?: boolean;
|
|
16558
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16559
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16560
|
+
storeId?: string;
|
|
16561
|
+
} & {
|
|
16562
|
+
[key: string]: unknown;
|
|
16563
|
+
};
|
|
16564
|
+
};
|
|
16565
|
+
defaults?: {
|
|
16566
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16567
|
+
enabled?: boolean;
|
|
16568
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16569
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16570
|
+
storeId?: string;
|
|
16571
|
+
} & {
|
|
16572
|
+
[key: string]: unknown;
|
|
16573
|
+
};
|
|
16574
|
+
};
|
|
16575
|
+
lazada?:
|
|
16576
|
+
| ({
|
|
16577
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16578
|
+
enabled?: boolean;
|
|
16579
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16580
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16581
|
+
storeId?: string;
|
|
16582
|
+
} & {
|
|
16583
|
+
[key: string]: unknown;
|
|
16584
|
+
})
|
|
16585
|
+
| {
|
|
16586
|
+
stores: {
|
|
16587
|
+
[key: string]: {
|
|
16588
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16589
|
+
enabled?: boolean;
|
|
16590
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16591
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16592
|
+
storeId?: string;
|
|
16593
|
+
} & {
|
|
16594
|
+
[key: string]: unknown;
|
|
16595
|
+
};
|
|
16596
|
+
};
|
|
16597
|
+
defaults?: {
|
|
16598
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16599
|
+
enabled?: boolean;
|
|
16600
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16601
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16602
|
+
storeId?: string;
|
|
16603
|
+
} & {
|
|
16604
|
+
[key: string]: unknown;
|
|
16605
|
+
};
|
|
16606
|
+
};
|
|
16607
|
+
tiktok?:
|
|
16608
|
+
| ({
|
|
16609
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16610
|
+
enabled?: boolean;
|
|
16611
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16612
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16613
|
+
storeId?: string;
|
|
16614
|
+
} & {
|
|
16615
|
+
[key: string]: unknown;
|
|
16616
|
+
})
|
|
16617
|
+
| {
|
|
16618
|
+
stores: {
|
|
16619
|
+
[key: string]: {
|
|
16620
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16621
|
+
enabled?: boolean;
|
|
16622
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16623
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16624
|
+
storeId?: string;
|
|
16625
|
+
} & {
|
|
16626
|
+
[key: string]: unknown;
|
|
16627
|
+
};
|
|
16628
|
+
};
|
|
16629
|
+
defaults?: {
|
|
16630
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16631
|
+
enabled?: boolean;
|
|
16632
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16633
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16634
|
+
storeId?: string;
|
|
16635
|
+
} & {
|
|
16636
|
+
[key: string]: unknown;
|
|
16637
|
+
};
|
|
16638
|
+
};
|
|
16639
|
+
shopify?:
|
|
16640
|
+
| ({
|
|
16641
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16642
|
+
enabled?: boolean;
|
|
16643
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16644
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16645
|
+
storeId?: string;
|
|
16646
|
+
} & {
|
|
16647
|
+
[key: string]: unknown;
|
|
16648
|
+
})
|
|
16649
|
+
| {
|
|
16650
|
+
stores: {
|
|
16651
|
+
[key: string]: {
|
|
16652
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16653
|
+
enabled?: boolean;
|
|
16654
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16655
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16656
|
+
storeId?: string;
|
|
16657
|
+
} & {
|
|
16658
|
+
[key: string]: unknown;
|
|
16659
|
+
};
|
|
16660
|
+
};
|
|
16661
|
+
defaults?: {
|
|
16662
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16663
|
+
enabled?: boolean;
|
|
16664
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16665
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16666
|
+
storeId?: string;
|
|
16667
|
+
} & {
|
|
16668
|
+
[key: string]: unknown;
|
|
16669
|
+
};
|
|
16670
|
+
};
|
|
16671
|
+
whatsapp?:
|
|
16672
|
+
| ({
|
|
16673
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16674
|
+
enabled?: boolean;
|
|
16675
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16676
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16677
|
+
storeId?: string;
|
|
16678
|
+
} & {
|
|
16679
|
+
[key: string]: unknown;
|
|
16680
|
+
})
|
|
16681
|
+
| {
|
|
16682
|
+
stores: {
|
|
16683
|
+
[key: string]: {
|
|
16684
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16685
|
+
enabled?: boolean;
|
|
16686
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16687
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16688
|
+
storeId?: string;
|
|
16689
|
+
} & {
|
|
16690
|
+
[key: string]: unknown;
|
|
16691
|
+
};
|
|
16692
|
+
};
|
|
16693
|
+
defaults?: {
|
|
16694
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16695
|
+
enabled?: boolean;
|
|
16696
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16697
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16698
|
+
storeId?: string;
|
|
16699
|
+
} & {
|
|
16700
|
+
[key: string]: unknown;
|
|
16701
|
+
};
|
|
16702
|
+
};
|
|
16703
|
+
zalora?:
|
|
16704
|
+
| ({
|
|
16705
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16706
|
+
enabled?: boolean;
|
|
16707
|
+
country?: components["schemas"]["ZaloraProductCountry"];
|
|
16708
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16709
|
+
storeId?: string;
|
|
16710
|
+
} & {
|
|
16711
|
+
[key: string]: unknown;
|
|
16712
|
+
})
|
|
16713
|
+
| {
|
|
16714
|
+
stores: {
|
|
16715
|
+
[key: string]: {
|
|
16716
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16717
|
+
enabled?: boolean;
|
|
16718
|
+
country?: components["schemas"]["ZaloraProductCountry"];
|
|
16719
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16720
|
+
storeId?: string;
|
|
16721
|
+
} & {
|
|
16722
|
+
[key: string]: unknown;
|
|
16723
|
+
};
|
|
16724
|
+
};
|
|
16725
|
+
defaults?: {
|
|
16726
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16727
|
+
enabled?: boolean;
|
|
16728
|
+
country?: components["schemas"]["ZaloraProductCountry"];
|
|
16729
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16730
|
+
storeId?: string;
|
|
16731
|
+
} & {
|
|
16732
|
+
[key: string]: unknown;
|
|
16733
|
+
};
|
|
16734
|
+
};
|
|
16735
|
+
amazon?:
|
|
16736
|
+
| ({
|
|
16737
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16738
|
+
enabled?: boolean;
|
|
16739
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16740
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16741
|
+
storeId?: string;
|
|
16742
|
+
} & {
|
|
16743
|
+
[key: string]: unknown;
|
|
16744
|
+
})
|
|
16745
|
+
| {
|
|
16746
|
+
stores: {
|
|
16747
|
+
[key: string]: {
|
|
16748
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16749
|
+
enabled?: boolean;
|
|
16750
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16751
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16752
|
+
storeId?: string;
|
|
16753
|
+
} & {
|
|
16754
|
+
[key: string]: unknown;
|
|
16755
|
+
};
|
|
16756
|
+
};
|
|
16757
|
+
defaults?: {
|
|
16758
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16759
|
+
enabled?: boolean;
|
|
16760
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16761
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16762
|
+
storeId?: string;
|
|
16763
|
+
} & {
|
|
16764
|
+
[key: string]: unknown;
|
|
16765
|
+
};
|
|
16766
|
+
};
|
|
16767
|
+
ebay?:
|
|
16768
|
+
| ({
|
|
16769
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16770
|
+
enabled?: boolean;
|
|
16771
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16772
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16773
|
+
storeId?: string;
|
|
16774
|
+
} & {
|
|
16775
|
+
[key: string]: unknown;
|
|
16776
|
+
})
|
|
16777
|
+
| {
|
|
16778
|
+
stores: {
|
|
16779
|
+
[key: string]: {
|
|
16780
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16781
|
+
enabled?: boolean;
|
|
16782
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16783
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16784
|
+
storeId?: string;
|
|
16785
|
+
} & {
|
|
16786
|
+
[key: string]: unknown;
|
|
16787
|
+
};
|
|
16788
|
+
};
|
|
16789
|
+
defaults?: {
|
|
16790
|
+
/** @description Enable this marketplace on the product. On create, when top-level targetMarketplaces is omitted, entries with enabled set to true or omitted become targets. */
|
|
16791
|
+
enabled?: boolean;
|
|
16792
|
+
country?: components["schemas"]["ProductCountryCode"];
|
|
16793
|
+
/** @description Connected store ID. Copy connectedMarketplaces[].storeId from GET /api/v1/marketplaces/connected for this marketplace and country. */
|
|
16794
|
+
storeId?: string;
|
|
16795
|
+
} & {
|
|
16796
|
+
[key: string]: unknown;
|
|
16797
|
+
};
|
|
16798
|
+
};
|
|
15095
16799
|
} & {
|
|
15096
16800
|
[key: string]: unknown;
|
|
15097
16801
|
};
|
|
@@ -16018,6 +17722,20 @@ interface operations {
|
|
|
16018
17722
|
| "price"
|
|
16019
17723
|
| "inventory"
|
|
16020
17724
|
)[];
|
|
17725
|
+
/** @description Optional exact assigned stores to publish. Omit to publish every eligible assigned store in the selected marketplaces. Duplicate marketplace/store pairs are removed. Invalid or disconnected targets return explicit failures while valid targets continue. */
|
|
17726
|
+
storeTargets?: {
|
|
17727
|
+
/** @enum {string} */
|
|
17728
|
+
marketplace:
|
|
17729
|
+
| "shopee"
|
|
17730
|
+
| "lazada"
|
|
17731
|
+
| "tiktok"
|
|
17732
|
+
| "shopify"
|
|
17733
|
+
| "whatsapp"
|
|
17734
|
+
| "zalora"
|
|
17735
|
+
| "amazon"
|
|
17736
|
+
| "ebay";
|
|
17737
|
+
storeId: string;
|
|
17738
|
+
}[];
|
|
16021
17739
|
/**
|
|
16022
17740
|
* @description Publish visibility mode.
|
|
16023
17741
|
* @default live
|
|
@@ -16052,6 +17770,7 @@ interface operations {
|
|
|
16052
17770
|
productId: string;
|
|
16053
17771
|
sourceProductId?: string;
|
|
16054
17772
|
productName?: string;
|
|
17773
|
+
storeId?: string;
|
|
16055
17774
|
/** @enum {string} */
|
|
16056
17775
|
marketplace?:
|
|
16057
17776
|
| "lazada"
|
|
@@ -16174,7 +17893,9 @@ interface operations {
|
|
|
16174
17893
|
* "shopee"
|
|
16175
17894
|
* ],
|
|
16176
17895
|
* "marketplaceStoreSelections": {
|
|
16177
|
-
* "shopee":
|
|
17896
|
+
* "shopee": [
|
|
17897
|
+
* "store_123"
|
|
17898
|
+
* ]
|
|
16178
17899
|
* },
|
|
16179
17900
|
* "workflow": {
|
|
16180
17901
|
* "enableRichDescription": true,
|
|
@@ -16183,11 +17904,16 @@ interface operations {
|
|
|
16183
17904
|
* }
|
|
16184
17905
|
*/
|
|
16185
17906
|
"application/json": {
|
|
17907
|
+
brandKitIds?: string[];
|
|
16186
17908
|
title?: string | null;
|
|
16187
17909
|
products?: {
|
|
16188
17910
|
sku: string;
|
|
16189
17911
|
title?: string;
|
|
16190
17912
|
gtin?: string;
|
|
17913
|
+
/** @description UPC-A / GTIN-12 string with a valid GS1 check digit. Preserve leading zeros. */
|
|
17914
|
+
upc?: string;
|
|
17915
|
+
/** @description EAN-8 or EAN-13 string with a valid GS1 check digit. Preserve leading zeros. */
|
|
17916
|
+
ean?: string;
|
|
16191
17917
|
brand?: string;
|
|
16192
17918
|
description?: string;
|
|
16193
17919
|
price?: number;
|
|
@@ -16196,6 +17922,16 @@ interface operations {
|
|
|
16196
17922
|
salePrice?: number;
|
|
16197
17923
|
costPerItem?: number;
|
|
16198
17924
|
inventory?: number;
|
|
17925
|
+
/** @description Explicit options for this row's SKU, such as Size and Color (maximum 20). Enrichment never infers missing options. At Zalora publish time only, a missing required Size defaults to One Size when valid for the selected category and size system; other required options must be supplied. */
|
|
17926
|
+
variationAttributes?: {
|
|
17927
|
+
[key: string]: string;
|
|
17928
|
+
};
|
|
17929
|
+
/** @description Explicit marketplace attribute maps using native attribute names (maximum 100 per marketplace). Values apply to the row's selected stores; use strings or string arrays. */
|
|
17930
|
+
marketplaceAttributes?: {
|
|
17931
|
+
[key: string]: {
|
|
17932
|
+
[key: string]: string | string[];
|
|
17933
|
+
};
|
|
17934
|
+
};
|
|
16199
17935
|
images?: string[];
|
|
16200
17936
|
category?: string;
|
|
16201
17937
|
categoryName?: string;
|
|
@@ -16235,24 +17971,24 @@ interface operations {
|
|
|
16235
17971
|
| "fail_job";
|
|
16236
17972
|
autoApproveThreshold?: number | null;
|
|
16237
17973
|
spendCeilingUsd?: number | null;
|
|
16238
|
-
/** @description
|
|
17974
|
+
/** @description Select connected store ID arrays per marketplace. Multiple stores on the same marketplace are supported (maximum 50 total). Existing single-ID requests remain accepted. */
|
|
16239
17975
|
marketplaceStoreSelections: {
|
|
16240
|
-
/** @description Connected shopee store
|
|
16241
|
-
shopee?: string;
|
|
16242
|
-
/** @description Connected lazada store
|
|
16243
|
-
lazada?: string;
|
|
16244
|
-
/** @description Connected tiktok store
|
|
16245
|
-
tiktok?: string;
|
|
16246
|
-
/** @description Connected shopify store
|
|
16247
|
-
shopify?: string;
|
|
16248
|
-
/** @description Connected whatsapp store
|
|
16249
|
-
whatsapp?: string;
|
|
16250
|
-
/** @description Connected zalora store
|
|
16251
|
-
zalora?: string;
|
|
16252
|
-
/** @description Connected amazon store
|
|
16253
|
-
amazon?: string;
|
|
16254
|
-
/** @description Connected ebay store
|
|
16255
|
-
ebay?: string;
|
|
17976
|
+
/** @description Connected shopee store IDs. */
|
|
17977
|
+
shopee?: string[];
|
|
17978
|
+
/** @description Connected lazada store IDs. */
|
|
17979
|
+
lazada?: string[];
|
|
17980
|
+
/** @description Connected tiktok store IDs. */
|
|
17981
|
+
tiktok?: string[];
|
|
17982
|
+
/** @description Connected shopify store IDs. */
|
|
17983
|
+
shopify?: string[];
|
|
17984
|
+
/** @description Connected whatsapp store IDs. */
|
|
17985
|
+
whatsapp?: string[];
|
|
17986
|
+
/** @description Connected zalora store IDs. */
|
|
17987
|
+
zalora?: string[];
|
|
17988
|
+
/** @description Connected amazon store IDs. */
|
|
17989
|
+
amazon?: string[];
|
|
17990
|
+
/** @description Connected ebay store IDs. */
|
|
17991
|
+
ebay?: string[];
|
|
16256
17992
|
};
|
|
16257
17993
|
model?: string;
|
|
16258
17994
|
imageAnnotationTemplateId?: string | null;
|
|
@@ -16307,25 +18043,25 @@ interface operations {
|
|
|
16307
18043
|
targetCountries?: string | string[];
|
|
16308
18044
|
/** @description JSON object mapping CSV headers to import fields, e.g. `{"sku":"SKU","title":"Product Name"}`. */
|
|
16309
18045
|
fieldMapping?: string;
|
|
16310
|
-
/** @description Connected store ID for each target marketplace. JSON requests send an object; multipart may send that object as a JSON string. */
|
|
18046
|
+
/** @description Connected store ID arrays for each target marketplace. JSON requests send an object; multipart may send that object as a JSON string. */
|
|
16311
18047
|
marketplaceStoreSelections:
|
|
16312
18048
|
| {
|
|
16313
|
-
/** @description Connected shopee store
|
|
16314
|
-
shopee?: string;
|
|
16315
|
-
/** @description Connected lazada store
|
|
16316
|
-
lazada?: string;
|
|
16317
|
-
/** @description Connected tiktok store
|
|
16318
|
-
tiktok?: string;
|
|
16319
|
-
/** @description Connected shopify store
|
|
16320
|
-
shopify?: string;
|
|
16321
|
-
/** @description Connected whatsapp store
|
|
16322
|
-
whatsapp?: string;
|
|
16323
|
-
/** @description Connected zalora store
|
|
16324
|
-
zalora?: string;
|
|
16325
|
-
/** @description Connected amazon store
|
|
16326
|
-
amazon?: string;
|
|
16327
|
-
/** @description Connected ebay store
|
|
16328
|
-
ebay?: string;
|
|
18049
|
+
/** @description Connected shopee store IDs. */
|
|
18050
|
+
shopee?: string[];
|
|
18051
|
+
/** @description Connected lazada store IDs. */
|
|
18052
|
+
lazada?: string[];
|
|
18053
|
+
/** @description Connected tiktok store IDs. */
|
|
18054
|
+
tiktok?: string[];
|
|
18055
|
+
/** @description Connected shopify store IDs. */
|
|
18056
|
+
shopify?: string[];
|
|
18057
|
+
/** @description Connected whatsapp store IDs. */
|
|
18058
|
+
whatsapp?: string[];
|
|
18059
|
+
/** @description Connected zalora store IDs. */
|
|
18060
|
+
zalora?: string[];
|
|
18061
|
+
/** @description Connected amazon store IDs. */
|
|
18062
|
+
amazon?: string[];
|
|
18063
|
+
/** @description Connected ebay store IDs. */
|
|
18064
|
+
ebay?: string[];
|
|
16329
18065
|
}
|
|
16330
18066
|
| string;
|
|
16331
18067
|
/** @description JSON array of zero-based CSV row indexes to import. */
|
|
@@ -16351,6 +18087,8 @@ interface operations {
|
|
|
16351
18087
|
imageAnnotationScope?: "primary" | "all_gallery";
|
|
16352
18088
|
/** @description JSON object with enrichment workflow options such as `sourceImagesAutomatically`, `enableRichDescription`, and `autoAssignMarketplaceTaxonomy`. */
|
|
16353
18089
|
workflow?: string;
|
|
18090
|
+
/** @description JSON array of organization brand-kit IDs for image sourcing. Enables automatic sourcing. */
|
|
18091
|
+
brandKitIds?: string;
|
|
16354
18092
|
};
|
|
16355
18093
|
};
|
|
16356
18094
|
};
|
|
@@ -16422,6 +18160,191 @@ interface operations {
|
|
|
16422
18160
|
};
|
|
16423
18161
|
};
|
|
16424
18162
|
};
|
|
18163
|
+
get_v1_products_bulk_import_retries_by_retryjobid: {
|
|
18164
|
+
parameters: {
|
|
18165
|
+
query?: {
|
|
18166
|
+
organizationId?: string;
|
|
18167
|
+
};
|
|
18168
|
+
header?: never;
|
|
18169
|
+
path: {
|
|
18170
|
+
retryJobId: string;
|
|
18171
|
+
};
|
|
18172
|
+
cookie?: never;
|
|
18173
|
+
};
|
|
18174
|
+
requestBody?: never;
|
|
18175
|
+
responses: {
|
|
18176
|
+
/** @description Retry progress and results. */
|
|
18177
|
+
200: {
|
|
18178
|
+
headers: {
|
|
18179
|
+
[name: string]: unknown;
|
|
18180
|
+
};
|
|
18181
|
+
content: {
|
|
18182
|
+
"application/json": {
|
|
18183
|
+
ok: boolean;
|
|
18184
|
+
/** @constant */
|
|
18185
|
+
apiVersion: "developer_v1";
|
|
18186
|
+
operationId: string;
|
|
18187
|
+
/** @enum {string} */
|
|
18188
|
+
status: "accepted" | "completed" | "failed";
|
|
18189
|
+
jobId?: string;
|
|
18190
|
+
warnings: string[];
|
|
18191
|
+
recommendations: string[];
|
|
18192
|
+
links: {
|
|
18193
|
+
[key: string]: string;
|
|
18194
|
+
};
|
|
18195
|
+
data: {
|
|
18196
|
+
id: string;
|
|
18197
|
+
/** @constant */
|
|
18198
|
+
type: "import_retry";
|
|
18199
|
+
jobId: string;
|
|
18200
|
+
/** @enum {string} */
|
|
18201
|
+
status: "queued" | "running" | "completed" | "failed";
|
|
18202
|
+
success: boolean | null;
|
|
18203
|
+
rowIds: string[];
|
|
18204
|
+
reviewRequestIds: string[];
|
|
18205
|
+
total: number;
|
|
18206
|
+
processed: number;
|
|
18207
|
+
succeededCount: number;
|
|
18208
|
+
failedCount: number;
|
|
18209
|
+
rows: {
|
|
18210
|
+
id: string;
|
|
18211
|
+
status: string;
|
|
18212
|
+
error: string | null;
|
|
18213
|
+
}[];
|
|
18214
|
+
reviews: {
|
|
18215
|
+
id: string;
|
|
18216
|
+
status: string;
|
|
18217
|
+
counts: {
|
|
18218
|
+
[key: string]: number;
|
|
18219
|
+
};
|
|
18220
|
+
error: string | null;
|
|
18221
|
+
}[];
|
|
18222
|
+
error: string | null;
|
|
18223
|
+
};
|
|
18224
|
+
};
|
|
18225
|
+
};
|
|
18226
|
+
};
|
|
18227
|
+
/** @description Invalid request. */
|
|
18228
|
+
400: {
|
|
18229
|
+
headers: {
|
|
18230
|
+
[name: string]: unknown;
|
|
18231
|
+
};
|
|
18232
|
+
content?: never;
|
|
18233
|
+
};
|
|
18234
|
+
/** @description Missing credentials. */
|
|
18235
|
+
401: {
|
|
18236
|
+
headers: {
|
|
18237
|
+
[name: string]: unknown;
|
|
18238
|
+
};
|
|
18239
|
+
content?: never;
|
|
18240
|
+
};
|
|
18241
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
18242
|
+
403: {
|
|
18243
|
+
headers: {
|
|
18244
|
+
[name: string]: unknown;
|
|
18245
|
+
};
|
|
18246
|
+
content?: never;
|
|
18247
|
+
};
|
|
18248
|
+
/** @description Resource not found in this organization. */
|
|
18249
|
+
404: {
|
|
18250
|
+
headers: {
|
|
18251
|
+
[name: string]: unknown;
|
|
18252
|
+
};
|
|
18253
|
+
content?: never;
|
|
18254
|
+
};
|
|
18255
|
+
};
|
|
18256
|
+
};
|
|
18257
|
+
post_v1_products_bulk_import_retry: {
|
|
18258
|
+
parameters: {
|
|
18259
|
+
query?: never;
|
|
18260
|
+
header?: never;
|
|
18261
|
+
path?: never;
|
|
18262
|
+
cookie?: never;
|
|
18263
|
+
};
|
|
18264
|
+
requestBody: {
|
|
18265
|
+
content: {
|
|
18266
|
+
"application/json": {
|
|
18267
|
+
organizationId?: string;
|
|
18268
|
+
/** @description 1–20 import UUIDs or bulk_... developer handles. Use review_<batch UUID> for a Review job, or importretry_... without overrides to resume interrupted dispatch. Duplicates are removed in first-requested order. */
|
|
18269
|
+
jobIds: string[];
|
|
18270
|
+
/**
|
|
18271
|
+
* @description Retry failed work only. all includes failed source rows and review stages; images retries only failed review images.
|
|
18272
|
+
* @default all
|
|
18273
|
+
* @enum {string}
|
|
18274
|
+
*/
|
|
18275
|
+
stages?: "all" | "images";
|
|
18276
|
+
/** @description Replace the image-source kit selection for failed images using current saved websites. Omit to retain the previous selection. */
|
|
18277
|
+
brandKitIds?: string[];
|
|
18278
|
+
model?: string;
|
|
18279
|
+
};
|
|
18280
|
+
};
|
|
18281
|
+
};
|
|
18282
|
+
responses: {
|
|
18283
|
+
/** @description Ordered retry acceptance results. */
|
|
18284
|
+
202: {
|
|
18285
|
+
headers: {
|
|
18286
|
+
[name: string]: unknown;
|
|
18287
|
+
};
|
|
18288
|
+
content: {
|
|
18289
|
+
"application/json": {
|
|
18290
|
+
ok: boolean;
|
|
18291
|
+
/** @constant */
|
|
18292
|
+
apiVersion: "developer_v1";
|
|
18293
|
+
operationId: string;
|
|
18294
|
+
/** @enum {string} */
|
|
18295
|
+
status: "accepted" | "completed" | "failed";
|
|
18296
|
+
jobId?: string;
|
|
18297
|
+
warnings: string[];
|
|
18298
|
+
recommendations: string[];
|
|
18299
|
+
links: {
|
|
18300
|
+
[key: string]: string;
|
|
18301
|
+
};
|
|
18302
|
+
data: {
|
|
18303
|
+
success: boolean;
|
|
18304
|
+
jobIds: string[];
|
|
18305
|
+
retryJobIds: string[];
|
|
18306
|
+
succeededCount: number;
|
|
18307
|
+
failedCount: number;
|
|
18308
|
+
results: {
|
|
18309
|
+
jobId: string;
|
|
18310
|
+
success: boolean;
|
|
18311
|
+
retryJobId?: string;
|
|
18312
|
+
error?: string;
|
|
18313
|
+
}[];
|
|
18314
|
+
};
|
|
18315
|
+
};
|
|
18316
|
+
};
|
|
18317
|
+
};
|
|
18318
|
+
/** @description Invalid request. */
|
|
18319
|
+
400: {
|
|
18320
|
+
headers: {
|
|
18321
|
+
[name: string]: unknown;
|
|
18322
|
+
};
|
|
18323
|
+
content?: never;
|
|
18324
|
+
};
|
|
18325
|
+
/** @description Missing credentials. */
|
|
18326
|
+
401: {
|
|
18327
|
+
headers: {
|
|
18328
|
+
[name: string]: unknown;
|
|
18329
|
+
};
|
|
18330
|
+
content?: never;
|
|
18331
|
+
};
|
|
18332
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
18333
|
+
403: {
|
|
18334
|
+
headers: {
|
|
18335
|
+
[name: string]: unknown;
|
|
18336
|
+
};
|
|
18337
|
+
content?: never;
|
|
18338
|
+
};
|
|
18339
|
+
/** @description Resource not found in this organization. */
|
|
18340
|
+
404: {
|
|
18341
|
+
headers: {
|
|
18342
|
+
[name: string]: unknown;
|
|
18343
|
+
};
|
|
18344
|
+
content?: never;
|
|
18345
|
+
};
|
|
18346
|
+
};
|
|
18347
|
+
};
|
|
16425
18348
|
post_v1_products_compare_prices: {
|
|
16426
18349
|
parameters: {
|
|
16427
18350
|
query?: never;
|
|
@@ -16831,75 +18754,170 @@ interface operations {
|
|
|
16831
18754
|
};
|
|
16832
18755
|
content?: never;
|
|
16833
18756
|
};
|
|
16834
|
-
};
|
|
16835
|
-
};
|
|
16836
|
-
post_v1_products_cost: {
|
|
16837
|
-
parameters: {
|
|
16838
|
-
query?: never;
|
|
18757
|
+
};
|
|
18758
|
+
};
|
|
18759
|
+
post_v1_products_cost: {
|
|
18760
|
+
parameters: {
|
|
18761
|
+
query?: never;
|
|
18762
|
+
header?: never;
|
|
18763
|
+
path?: never;
|
|
18764
|
+
cookie?: never;
|
|
18765
|
+
};
|
|
18766
|
+
requestBody: {
|
|
18767
|
+
content: {
|
|
18768
|
+
/**
|
|
18769
|
+
* @example {
|
|
18770
|
+
* "updates": [
|
|
18771
|
+
* {
|
|
18772
|
+
* "sku": "TLVBGLX83220",
|
|
18773
|
+
* "costPrice": 578,
|
|
18774
|
+
* "costPriceCurrency": "USD"
|
|
18775
|
+
* }
|
|
18776
|
+
* ]
|
|
18777
|
+
* }
|
|
18778
|
+
*/
|
|
18779
|
+
"application/json": {
|
|
18780
|
+
updates: (
|
|
18781
|
+
| {
|
|
18782
|
+
/** Format: uuid */
|
|
18783
|
+
productId?: string;
|
|
18784
|
+
sku?: string;
|
|
18785
|
+
/** @description Source cost amount. Null clears catalog cost and FX. */
|
|
18786
|
+
costPrice: number | null;
|
|
18787
|
+
/** @description ISO currency of costPrice, for example USD. Defaults to the product selling currency. */
|
|
18788
|
+
costPriceCurrency?: string;
|
|
18789
|
+
/** @description Optional units of selling currency per 1 costPriceCurrency. Quoted automatically when omitted and currencies differ. */
|
|
18790
|
+
costPriceFxRate?: number;
|
|
18791
|
+
/** @description Must match the product selling currency when provided. */
|
|
18792
|
+
costPriceFxTo?: string;
|
|
18793
|
+
/** @description Optional YYYY-MM or YYYY-MM-DD quote date. */
|
|
18794
|
+
costPriceFxAsOf?: string;
|
|
18795
|
+
}
|
|
18796
|
+
| unknown
|
|
18797
|
+
| unknown
|
|
18798
|
+
)[];
|
|
18799
|
+
};
|
|
18800
|
+
};
|
|
18801
|
+
};
|
|
18802
|
+
responses: {
|
|
18803
|
+
/** @description Batch processed. Top-level success is true only when every update succeeded. */
|
|
18804
|
+
200: {
|
|
18805
|
+
headers: {
|
|
18806
|
+
[name: string]: unknown;
|
|
18807
|
+
};
|
|
18808
|
+
content?: never;
|
|
18809
|
+
};
|
|
18810
|
+
/** @description Invalid payload. */
|
|
18811
|
+
400: {
|
|
18812
|
+
headers: {
|
|
18813
|
+
[name: string]: unknown;
|
|
18814
|
+
};
|
|
18815
|
+
content?: never;
|
|
18816
|
+
};
|
|
18817
|
+
/** @description Unauthorized */
|
|
18818
|
+
401: {
|
|
18819
|
+
headers: {
|
|
18820
|
+
[name: string]: unknown;
|
|
18821
|
+
};
|
|
18822
|
+
content?: never;
|
|
18823
|
+
};
|
|
18824
|
+
/** @description Credential lacks catalog:write or organization is inactive. */
|
|
18825
|
+
403: {
|
|
18826
|
+
headers: {
|
|
18827
|
+
[name: string]: unknown;
|
|
18828
|
+
};
|
|
18829
|
+
content?: never;
|
|
18830
|
+
};
|
|
18831
|
+
/** @description Internal Server Error */
|
|
18832
|
+
500: {
|
|
18833
|
+
headers: {
|
|
18834
|
+
[name: string]: unknown;
|
|
18835
|
+
};
|
|
18836
|
+
content?: never;
|
|
18837
|
+
};
|
|
18838
|
+
};
|
|
18839
|
+
};
|
|
18840
|
+
get_v1_products_count: {
|
|
18841
|
+
parameters: {
|
|
18842
|
+
query?: {
|
|
18843
|
+
/** @description Filter by one catalog view status. Lifecycle values include draft, active, archived and deleted; derived views include flagged, errors, qc_pending and qc_rejected. A product may have a lifecycle value and multiple derived signals simultaneously. */
|
|
18844
|
+
status?: string;
|
|
18845
|
+
/** @description Filter by enabled marketplace. */
|
|
18846
|
+
marketplace?:
|
|
18847
|
+
| "shopee"
|
|
18848
|
+
| "lazada"
|
|
18849
|
+
| "tiktok"
|
|
18850
|
+
| "shopify"
|
|
18851
|
+
| "whatsapp"
|
|
18852
|
+
| "zalora"
|
|
18853
|
+
| "amazon"
|
|
18854
|
+
| "ebay";
|
|
18855
|
+
/** @description Filter by marketplace country (e.g., Singapore, Malaysia). */
|
|
18856
|
+
country?: string;
|
|
18857
|
+
/** @description Search query for product name or SKU. */
|
|
18858
|
+
q?: string;
|
|
18859
|
+
/** @description Exact catalog SKU match after trim. Not fuzzy and not substring. Repeat the parameter or comma-separate up to 50 SKUs. Combined with other filters using AND. */
|
|
18860
|
+
sku?: string;
|
|
18861
|
+
/** @description Minimum price filter. */
|
|
18862
|
+
minPrice?: number;
|
|
18863
|
+
/** @description Maximum price filter. */
|
|
18864
|
+
maxPrice?: number;
|
|
18865
|
+
/** @description Exact marketplace account/store IDs, comma-separated. Combine with marketplace, or use storeKeys for exact platform/country/store identity. */
|
|
18866
|
+
store?: string;
|
|
18867
|
+
/** @description Comma-separated marketplace:country:storeId keys (up to 50), matching the Products page. Missing account IDs never match another store. */
|
|
18868
|
+
storeKeys?: string;
|
|
18869
|
+
/** @description JSON array of marketplace-prefixed brand names, matching the Products page. */
|
|
18870
|
+
brands?: string;
|
|
18871
|
+
bundleType?: "" | "hard" | "virtual" | "non_bundle";
|
|
18872
|
+
language?: string;
|
|
18873
|
+
hasImage?: "yes" | "no";
|
|
18874
|
+
stock?: "in_stock";
|
|
18875
|
+
/** @description Inclusive publication date or exact ISO timestamp. */
|
|
18876
|
+
publishedFrom?: string;
|
|
18877
|
+
/** @description Inclusive publication date (whole local day), or exact ISO timestamp. */
|
|
18878
|
+
publishedTo?: string;
|
|
18879
|
+
/** @description IANA time zone for date-only publication bounds. */
|
|
18880
|
+
publishedTimeZone?: string;
|
|
18881
|
+
};
|
|
16839
18882
|
header?: never;
|
|
16840
18883
|
path?: never;
|
|
16841
18884
|
cookie?: never;
|
|
16842
18885
|
};
|
|
16843
|
-
requestBody
|
|
16844
|
-
content: {
|
|
16845
|
-
/**
|
|
16846
|
-
* @example {
|
|
16847
|
-
* "updates": [
|
|
16848
|
-
* {
|
|
16849
|
-
* "sku": "TLVBGLX83220",
|
|
16850
|
-
* "costPrice": 578,
|
|
16851
|
-
* "costPriceCurrency": "USD"
|
|
16852
|
-
* }
|
|
16853
|
-
* ]
|
|
16854
|
-
* }
|
|
16855
|
-
*/
|
|
16856
|
-
"application/json": {
|
|
16857
|
-
updates: (
|
|
16858
|
-
| {
|
|
16859
|
-
/** Format: uuid */
|
|
16860
|
-
productId?: string;
|
|
16861
|
-
sku?: string;
|
|
16862
|
-
/** @description Source cost amount. Null clears catalog cost and FX. */
|
|
16863
|
-
costPrice: number | null;
|
|
16864
|
-
/** @description ISO currency of costPrice, for example USD. Defaults to the product selling currency. */
|
|
16865
|
-
costPriceCurrency?: string;
|
|
16866
|
-
/** @description Optional units of selling currency per 1 costPriceCurrency. Quoted automatically when omitted and currencies differ. */
|
|
16867
|
-
costPriceFxRate?: number;
|
|
16868
|
-
/** @description Must match the product selling currency when provided. */
|
|
16869
|
-
costPriceFxTo?: string;
|
|
16870
|
-
/** @description Optional YYYY-MM or YYYY-MM-DD quote date. */
|
|
16871
|
-
costPriceFxAsOf?: string;
|
|
16872
|
-
}
|
|
16873
|
-
| unknown
|
|
16874
|
-
| unknown
|
|
16875
|
-
)[];
|
|
16876
|
-
};
|
|
16877
|
-
};
|
|
16878
|
-
};
|
|
18886
|
+
requestBody?: never;
|
|
16879
18887
|
responses: {
|
|
16880
|
-
/** @description
|
|
18888
|
+
/** @description Matching catalog product count */
|
|
16881
18889
|
200: {
|
|
16882
18890
|
headers: {
|
|
16883
18891
|
[name: string]: unknown;
|
|
16884
18892
|
};
|
|
16885
|
-
content
|
|
18893
|
+
content: {
|
|
18894
|
+
"application/json": {
|
|
18895
|
+
count: number;
|
|
18896
|
+
/** @enum {string} */
|
|
18897
|
+
unit: "catalog_products";
|
|
18898
|
+
/** @description Normalized Products page filters used for this count. */
|
|
18899
|
+
filters: {
|
|
18900
|
+
[key: string]: string;
|
|
18901
|
+
};
|
|
18902
|
+
};
|
|
18903
|
+
};
|
|
16886
18904
|
};
|
|
16887
|
-
/** @description
|
|
16888
|
-
|
|
18905
|
+
/** @description Unauthorized */
|
|
18906
|
+
401: {
|
|
16889
18907
|
headers: {
|
|
16890
18908
|
[name: string]: unknown;
|
|
16891
18909
|
};
|
|
16892
18910
|
content?: never;
|
|
16893
18911
|
};
|
|
16894
|
-
/** @description
|
|
16895
|
-
|
|
18912
|
+
/** @description Forbidden */
|
|
18913
|
+
403: {
|
|
16896
18914
|
headers: {
|
|
16897
18915
|
[name: string]: unknown;
|
|
16898
18916
|
};
|
|
16899
18917
|
content?: never;
|
|
16900
18918
|
};
|
|
16901
|
-
/** @description
|
|
16902
|
-
|
|
18919
|
+
/** @description Rate limited */
|
|
18920
|
+
429: {
|
|
16903
18921
|
headers: {
|
|
16904
18922
|
[name: string]: unknown;
|
|
16905
18923
|
};
|
|
@@ -16941,6 +18959,21 @@ interface operations {
|
|
|
16941
18959
|
organizationId?: string;
|
|
16942
18960
|
/** @description Existing Omni product IDs. Trimmed and deduplicated in requested order; at most 1,000 entries. */
|
|
16943
18961
|
productIds: string[];
|
|
18962
|
+
/** @default true */
|
|
18963
|
+
includeListingCopy?: boolean;
|
|
18964
|
+
targetMarketplaces?: (
|
|
18965
|
+
| "shopee"
|
|
18966
|
+
| "lazada"
|
|
18967
|
+
| "tiktok"
|
|
18968
|
+
| "shopify"
|
|
18969
|
+
| "whatsapp"
|
|
18970
|
+
| "zalora"
|
|
18971
|
+
| "amazon"
|
|
18972
|
+
| "ebay"
|
|
18973
|
+
)[];
|
|
18974
|
+
marketplaceStoreSelections?: {
|
|
18975
|
+
[key: string]: string[] | string;
|
|
18976
|
+
};
|
|
16944
18977
|
/** @description Fields to enrich. Omit for all content fields. Weight and dimensions are always included by the enrichment service. Exclude name to preserve the product title. */
|
|
16945
18978
|
selectedFields?: (
|
|
16946
18979
|
| "name"
|
|
@@ -17255,7 +19288,7 @@ interface operations {
|
|
|
17255
19288
|
| "ebay_coded_coupon"
|
|
17256
19289
|
| null;
|
|
17257
19290
|
browserAutomation?: {
|
|
17258
|
-
/** @description Optional overrides for the selected AOP's declared variables.
|
|
19291
|
+
/** @description Optional overrides for the selected AOP's declared variables. promotionIds, action, and storeId are supplied automatically; the AOP loads the approved promotions with get_promotions. */
|
|
17259
19292
|
variableValues?: {
|
|
17260
19293
|
[key: string]: string;
|
|
17261
19294
|
};
|
|
@@ -17588,7 +19621,7 @@ interface operations {
|
|
|
17588
19621
|
| "ebay_coded_coupon"
|
|
17589
19622
|
| null;
|
|
17590
19623
|
browserAutomation?: {
|
|
17591
|
-
/** @description Optional overrides for the selected AOP's declared variables.
|
|
19624
|
+
/** @description Optional overrides for the selected AOP's declared variables. promotionIds, action, and storeId are supplied automatically; the AOP loads the approved promotions with get_promotions. */
|
|
17592
19625
|
variableValues?: {
|
|
17593
19626
|
[key: string]: string;
|
|
17594
19627
|
};
|
|
@@ -21486,6 +23519,177 @@ interface operations {
|
|
|
21486
23519
|
};
|
|
21487
23520
|
}
|
|
21488
23521
|
|
|
23522
|
+
type SuccessStatus = 200 | 201 | 202 | 204;
|
|
23523
|
+
type MediaOf<T> = T extends {
|
|
23524
|
+
content: infer C;
|
|
23525
|
+
} ? C extends {
|
|
23526
|
+
"application/json": infer J;
|
|
23527
|
+
} ? J : C extends {
|
|
23528
|
+
"text/plain": infer P;
|
|
23529
|
+
} ? P : C extends {
|
|
23530
|
+
"application/x-www-form-urlencoded": infer U;
|
|
23531
|
+
} ? U : unknown : undefined;
|
|
23532
|
+
type SuccessData<Op> = Op extends {
|
|
23533
|
+
responses: infer R;
|
|
23534
|
+
} ? {
|
|
23535
|
+
[Status in keyof R]: Status extends SuccessStatus ? MediaOf<R[Status]> : never;
|
|
23536
|
+
}[keyof R] : unknown;
|
|
23537
|
+
type OperationQuery<Op> = Op extends {
|
|
23538
|
+
parameters: {
|
|
23539
|
+
query?: infer Q;
|
|
23540
|
+
};
|
|
23541
|
+
} ? Q extends undefined | never ? Record<string, never> : NonNullable<Q> : Record<string, never>;
|
|
23542
|
+
type OperationPath<Op> = Op extends {
|
|
23543
|
+
parameters: {
|
|
23544
|
+
path?: infer P;
|
|
23545
|
+
};
|
|
23546
|
+
} ? P extends undefined | never ? Record<string, never> : NonNullable<P> : Record<string, never>;
|
|
23547
|
+
type RequestBodyContent<Op> = Op extends {
|
|
23548
|
+
requestBody?: {
|
|
23549
|
+
content: infer C;
|
|
23550
|
+
};
|
|
23551
|
+
} ? C : Op extends {
|
|
23552
|
+
requestBody: {
|
|
23553
|
+
content: infer C;
|
|
23554
|
+
};
|
|
23555
|
+
} ? C : never;
|
|
23556
|
+
type OperationBody<Op> = RequestBodyContent<Op> extends never ? undefined : RequestBodyContent<Op> extends {
|
|
23557
|
+
"application/json": infer J;
|
|
23558
|
+
} ? J : RequestBodyContent<Op> extends {
|
|
23559
|
+
"application/x-www-form-urlencoded": infer U;
|
|
23560
|
+
} ? U : RequestBodyContent<Op> extends {
|
|
23561
|
+
"multipart/form-data": infer M;
|
|
23562
|
+
} ? MultipartFields<M> : undefined;
|
|
23563
|
+
/** Multipart fields: a binary (string) field also takes a Blob or File. */
|
|
23564
|
+
type MultipartFields<T> = {
|
|
23565
|
+
[K in keyof T]: T[K] extends string ? T[K] | Blob : T[K];
|
|
23566
|
+
};
|
|
23567
|
+
type FlattenedRequest<Op> = OperationPath<Op> & OperationQuery<Op> & (OperationBody<Op> extends undefined ? Record<string, never> : OperationBody<Op>);
|
|
23568
|
+
|
|
23569
|
+
type ProductScanRequest = Omit<OperationQuery<operations["get_v1_products"]>, "includeSummary">;
|
|
23570
|
+
type ProductPage = SuccessData<operations["get_v1_products"]>;
|
|
23571
|
+
type ProductItem = NonNullable<ProductPage["items"]>[number];
|
|
23572
|
+
type ProductScanProgress = {
|
|
23573
|
+
pagesRead: number;
|
|
23574
|
+
itemsRead: number;
|
|
23575
|
+
complete: boolean;
|
|
23576
|
+
/** Persist with the page's items. Pass unchanged to scan() to resume. */
|
|
23577
|
+
next: ProductScanRequest | null;
|
|
23578
|
+
};
|
|
23579
|
+
type ProductScanResult = ProductScanProgress & {
|
|
23580
|
+
items: ProductItem[];
|
|
23581
|
+
};
|
|
23582
|
+
type ProductScanOptions = Omit<BaseRequestOptions, "queryParams"> & {
|
|
23583
|
+
/** Pages per chunk, 1–100. Defaults to one; no unbounded catalog downloads. */
|
|
23584
|
+
maxPages?: number;
|
|
23585
|
+
onProgress?: (progress: ProductScanProgress, items: ProductItem[]) => void | Promise<void>;
|
|
23586
|
+
};
|
|
23587
|
+
declare class ProductScanError extends Error {
|
|
23588
|
+
readonly partial: ProductScanResult;
|
|
23589
|
+
readonly cause: unknown;
|
|
23590
|
+
constructor(partial: ProductScanResult, cause: unknown);
|
|
23591
|
+
}
|
|
23592
|
+
|
|
23593
|
+
type PublishOperation = operations["post_v1_products_by_productid_publish"];
|
|
23594
|
+
type DelistOperation = operations["post_v1_products_by_productid_delist"];
|
|
23595
|
+
type UpdateOperation = operations["patch_v1_products_by_productid"];
|
|
23596
|
+
type ProductRequest<Operation> = OperationPath<Operation> & OperationBody<Operation>;
|
|
23597
|
+
type BatchPublishProductsRequest = OperationBody<PublishOperation> & {
|
|
23598
|
+
productIds: readonly string[];
|
|
23599
|
+
};
|
|
23600
|
+
type BatchDelistProductsRequest = OperationBody<DelistOperation> & {
|
|
23601
|
+
productIds: readonly string[];
|
|
23602
|
+
};
|
|
23603
|
+
type BatchUpdateProductsRequest = {
|
|
23604
|
+
/** One update per product; duplicate product IDs are rejected before any writes. */
|
|
23605
|
+
updates: readonly ProductRequest<UpdateOperation>[];
|
|
23606
|
+
};
|
|
23607
|
+
type ProductBatchOptions = BaseRequestOptions & {
|
|
23608
|
+
/** Concurrent product requests, 1–10. Defaults to 3. */
|
|
23609
|
+
concurrency?: number;
|
|
23610
|
+
};
|
|
23611
|
+
type ProductBatchItemResult<T> = {
|
|
23612
|
+
/** Requested ID, even when the server resolves a variant to its parent listing. */
|
|
23613
|
+
productId: string;
|
|
23614
|
+
success: boolean;
|
|
23615
|
+
/** False when cancelled before this product's request started. */
|
|
23616
|
+
attempted: boolean;
|
|
23617
|
+
data?: T;
|
|
23618
|
+
/** Original HTTP/transport error, or an error for an unsuccessful API response. */
|
|
23619
|
+
error?: unknown;
|
|
23620
|
+
jobIds: string[];
|
|
23621
|
+
};
|
|
23622
|
+
type ProductBatchResult<T> = {
|
|
23623
|
+
/** All requests succeeded/queued; marketplace job completion is separate. */
|
|
23624
|
+
success: boolean;
|
|
23625
|
+
productIds: string[];
|
|
23626
|
+
succeededCount: number;
|
|
23627
|
+
failedCount: number;
|
|
23628
|
+
results: ProductBatchItemResult<T>[];
|
|
23629
|
+
/** Every returned job/batch/inventory handle, deduplicated in result order. */
|
|
23630
|
+
jobIds: string[];
|
|
23631
|
+
};
|
|
23632
|
+
type BatchPublishProductsResult = ProductBatchResult<SuccessData<PublishOperation>>;
|
|
23633
|
+
type BatchDelistProductsResult = ProductBatchResult<SuccessData<DelistOperation>>;
|
|
23634
|
+
type BatchUpdateProductsResult = ProductBatchResult<SuccessData<UpdateOperation>>;
|
|
23635
|
+
|
|
23636
|
+
declare class OmniError extends Error {
|
|
23637
|
+
readonly statusCode?: number;
|
|
23638
|
+
readonly body?: unknown;
|
|
23639
|
+
readonly rawResponse?: RawResponse;
|
|
23640
|
+
constructor({ message, statusCode, body, rawResponse, }: {
|
|
23641
|
+
message?: string;
|
|
23642
|
+
statusCode?: number;
|
|
23643
|
+
body?: unknown;
|
|
23644
|
+
rawResponse?: RawResponse;
|
|
23645
|
+
});
|
|
23646
|
+
}
|
|
23647
|
+
|
|
23648
|
+
declare class OmniTimeoutError extends Error {
|
|
23649
|
+
constructor(message?: string);
|
|
23650
|
+
}
|
|
23651
|
+
|
|
23652
|
+
declare class BadRequestError extends OmniError {
|
|
23653
|
+
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
23654
|
+
}
|
|
23655
|
+
declare class UnauthorizedError extends OmniError {
|
|
23656
|
+
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
23657
|
+
}
|
|
23658
|
+
declare class ForbiddenError extends OmniError {
|
|
23659
|
+
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
23660
|
+
}
|
|
23661
|
+
declare class NotFoundError extends OmniError {
|
|
23662
|
+
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
23663
|
+
}
|
|
23664
|
+
declare class UnprocessableEntityError extends OmniError {
|
|
23665
|
+
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
23666
|
+
}
|
|
23667
|
+
declare class TooManyRequestsError extends OmniError {
|
|
23668
|
+
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
23669
|
+
}
|
|
23670
|
+
declare class InternalServerError extends OmniError {
|
|
23671
|
+
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
23672
|
+
}
|
|
23673
|
+
declare class BadGatewayError extends OmniError {
|
|
23674
|
+
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
23675
|
+
}
|
|
23676
|
+
declare class ServiceUnavailableError extends OmniError {
|
|
23677
|
+
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
23678
|
+
}
|
|
23679
|
+
|
|
23680
|
+
type WaitForJobRequest = {
|
|
23681
|
+
jobId: string;
|
|
23682
|
+
organizationId?: string;
|
|
23683
|
+
};
|
|
23684
|
+
type WaitForJobOptions = BaseRequestOptions & {
|
|
23685
|
+
intervalMs?: number;
|
|
23686
|
+
timeoutInSeconds?: number;
|
|
23687
|
+
};
|
|
23688
|
+
declare class JobFailedError extends OmniError {
|
|
23689
|
+
readonly jobStatus: string;
|
|
23690
|
+
constructor(jobStatus: string, body: unknown);
|
|
23691
|
+
}
|
|
23692
|
+
|
|
21489
23693
|
/**
|
|
21490
23694
|
* Auto-generated from docs/openapi.json. Do not edit.
|
|
21491
23695
|
*
|
|
@@ -21686,6 +23890,54 @@ declare class AopClient {
|
|
|
21686
23890
|
*/
|
|
21687
23891
|
retry(request: OperationBody<operations["post_v1_aop_retry"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_aop_retry"]>>;
|
|
21688
23892
|
}
|
|
23893
|
+
declare class BrandKitsClient {
|
|
23894
|
+
protected readonly _http: OmniHttp;
|
|
23895
|
+
constructor(_http: OmniHttp);
|
|
23896
|
+
/**
|
|
23897
|
+
* List Brand Kits
|
|
23898
|
+
*
|
|
23899
|
+
* List full brand kits and canonical image-source websites. Requires branding:read. Supports q, limit (1–1000), and offset. Bearer credentials resolve the organization; sessions supply organizationId.
|
|
23900
|
+
*
|
|
23901
|
+
* `GET /api/v1/brand-kits`
|
|
23902
|
+
*/
|
|
23903
|
+
list(request?: OperationQuery<operations["get_v1_brand_kits"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_brand_kits"]>>;
|
|
23904
|
+
/**
|
|
23905
|
+
* Create Brand Kit
|
|
23906
|
+
*
|
|
23907
|
+
* Create a full brand kit with optional imageSourceUrls. Requires branding:write. All brandKit fields are supported; omitted fields receive canonical defaults.
|
|
23908
|
+
|
|
23909
|
+
Source websites accept HTTP(S) URLs or domain/path scopes and return normalized host/path values. The kit and sources save atomically. Use public HTTP(S) URLs for logo/icons; embedded images are rejected.
|
|
23910
|
+
*
|
|
23911
|
+
* `POST /api/v1/brand-kits`
|
|
23912
|
+
*/
|
|
23913
|
+
create(request: OperationBody<operations["post_v1_brand_kits"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_brand_kits"]>>;
|
|
23914
|
+
/**
|
|
23915
|
+
* Delete Brand Kit
|
|
23916
|
+
*
|
|
23917
|
+
* Delete the organization-owned kit and its saved brand image-source websites. Requires branding:write. Historical job snapshots are preserved.
|
|
23918
|
+
*
|
|
23919
|
+
* `DELETE /api/v1/brand-kits/{brandKitId}`
|
|
23920
|
+
*/
|
|
23921
|
+
delete(request: OperationPath<operations["delete_v1_brand_kits_by_brandkitid"]> & OperationQuery<operations["delete_v1_brand_kits_by_brandkitid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["delete_v1_brand_kits_by_brandkitid"]>>;
|
|
23922
|
+
/**
|
|
23923
|
+
* Get Brand Kit
|
|
23924
|
+
*
|
|
23925
|
+
* Read the complete kit and imageSourceUrls. Requires branding:read.
|
|
23926
|
+
*
|
|
23927
|
+
* `GET /api/v1/brand-kits/{brandKitId}`
|
|
23928
|
+
*/
|
|
23929
|
+
get(request: OperationPath<operations["get_v1_brand_kits_by_brandkitid"]> & OperationQuery<operations["get_v1_brand_kits_by_brandkitid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_brand_kits_by_brandkitid"]>>;
|
|
23930
|
+
/**
|
|
23931
|
+
* Update Brand Kit
|
|
23932
|
+
*
|
|
23933
|
+
* Edit name, any nested brandKit fields, and imageSourceUrls. Requires branding:write. Nested objects merge and arrays replace; omitted fields are preserved.
|
|
23934
|
+
|
|
23935
|
+
imageSourceUrls: [] clears websites. Renaming keeps source websites attached. Parent kit IDs must belong to this organization. Existing running jobs keep their frozen source snapshot until explicitly retried with brandKitIds.
|
|
23936
|
+
*
|
|
23937
|
+
* `PATCH /api/v1/brand-kits/{brandKitId}`
|
|
23938
|
+
*/
|
|
23939
|
+
update(request: OperationPath<operations["patch_v1_brand_kits_by_brandkitid"]> & OperationBody<operations["patch_v1_brand_kits_by_brandkitid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["patch_v1_brand_kits_by_brandkitid"]>>;
|
|
23940
|
+
}
|
|
21689
23941
|
declare class BrandsgatewayClient {
|
|
21690
23942
|
protected readonly _http: OmniHttp;
|
|
21691
23943
|
constructor(_http: OmniHttp);
|
|
@@ -21920,6 +24172,24 @@ declare class ImagesClient {
|
|
|
21920
24172
|
*/
|
|
21921
24173
|
ghostMannequin(request: OperationBody<operations["post_v1_images_ghost_mannequin"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_images_ghost_mannequin"]>>;
|
|
21922
24174
|
}
|
|
24175
|
+
declare class InventoryClient {
|
|
24176
|
+
protected readonly _http: OmniHttp;
|
|
24177
|
+
constructor(_http: OmniHttp);
|
|
24178
|
+
/**
|
|
24179
|
+
* List Inventory Groups
|
|
24180
|
+
*
|
|
24181
|
+
* Read active inventory using the same canonical quantities, filters and grouping as the inventory assistant. Requires catalog:read and inventory.read permission. Organization scope comes only from the credential.
|
|
24182
|
+
|
|
24183
|
+
### Stock and listing absence
|
|
24184
|
+
|
|
24185
|
+
status=in_stock means positive available stock (on hand minus locked), with variants rolled up for product groups. unlistedMarketplaces checks every organization store and the entire saved catalog, including product/variant identities, exact catalog SKUs, and historical listings. Source marketplace/country/storeIds filters do not restrict absence evidence. All supported marketplaces are accepted.
|
|
24186
|
+
|
|
24187
|
+
listingPresence reports saved-catalog evidence and unknown missing-SKU families. It does not establish fresh live marketplace absence. Stock quantities fro
|
|
24188
|
+
*
|
|
24189
|
+
* `GET /api/v1/inventory`
|
|
24190
|
+
*/
|
|
24191
|
+
list(request?: OperationQuery<operations["get_v1_inventory"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_inventory"]>>;
|
|
24192
|
+
}
|
|
21923
24193
|
declare class JobsClient {
|
|
21924
24194
|
protected readonly _http: OmniHttp;
|
|
21925
24195
|
constructor(_http: OmniHttp);
|
|
@@ -22422,22 +24692,48 @@ declare class ProductsClient {
|
|
|
22422
24692
|
*
|
|
22423
24693
|
* Queue a bulk product import for the authenticated organization.
|
|
22424
24694
|
|
|
24695
|
+
Supply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing or incompatible size systems and other required options block publishing. Each row remains a standalone product; no child variants are created for the default.
|
|
24696
|
+
|
|
22425
24697
|
### Input options
|
|
22426
24698
|
|
|
22427
24699
|
- Upload a CSV (2 MiB) or JSON products file (8 MiB) using `multipart/form-data`.
|
|
22428
24700
|
- Send JSON with a `products` array of 1–5,000 flat product objects (8 MiB request maximum).
|
|
22429
24701
|
- Send JSON with inline `csvText`.
|
|
22430
|
-
- Send
|
|
24702
|
+
- Send
|
|
24703
|
+
*
|
|
24704
|
+
* `POST /api/v1/products/bulk-import`
|
|
24705
|
+
*/
|
|
24706
|
+
bulkImport(request: OperationBody<operations["post_v1_products_bulk_import"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_import"]>>;
|
|
24707
|
+
/**
|
|
24708
|
+
* Get Import Retry Progress
|
|
24709
|
+
*
|
|
24710
|
+
* Read actual row and review generation progress using an importretry_... handle. Requires catalog:read. success is null while running, true only for successful completion, and false for missing targets, dispatch failure, or stage failures.
|
|
22431
24711
|
|
|
22432
|
-
|
|
24712
|
+
Row IDs, review request IDs, errors, and per-stage counts remain available. The same handle works with GET /api/v1/jobs/{jobId} and SDK jobs.wait.
|
|
24713
|
+
*
|
|
24714
|
+
* `GET /api/v1/products/bulk-import/retries/{retryJobId}`
|
|
24715
|
+
*/
|
|
24716
|
+
getBulkImportRetry(request: OperationPath<operations["get_v1_products_bulk_import_retries_by_retryjobid"]> & OperationQuery<operations["get_v1_products_bulk_import_retries_by_retryjobid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_products_bulk_import_retries_by_retryjobid"]>>;
|
|
24717
|
+
/**
|
|
24718
|
+
* Retry Failed Import or Review Jobs
|
|
24719
|
+
*
|
|
24720
|
+
* Retry 1–20 jobs with durable background execution. Requires catalog:write.
|
|
24721
|
+
|
|
24722
|
+
### Targets
|
|
24723
|
+
|
|
24724
|
+
jobIds accepts import UUIDs, bulk_... developer job handles, or review_<batch UUID> for a Review job (including jobs created in the app). Inputs are trimmed, bounded, and deduplicated in first-requested order.
|
|
24725
|
+
|
|
24726
|
+
### Retry scope
|
|
24727
|
+
|
|
24728
|
+
stages=all retries failed source rows and linked review stages; stages=images retries failed review images only. Completed work, applied products, cancelled stages, and active work are preserved. Optional brandKitIds replaces image-source selection using the kits' current organization-owned websites. Omit it to keep frozen sources. To resume interrupted dispatch, pass an importretry_... handle without overrides; the saved target plan is reused.
|
|
22433
24729
|
|
|
22434
|
-
|
|
24730
|
+
### Results
|
|
22435
24731
|
|
|
22436
|
-
|
|
24732
|
+
Use the returned ord
|
|
22437
24733
|
*
|
|
22438
|
-
* `POST /api/v1/products/bulk-import`
|
|
24734
|
+
* `POST /api/v1/products/bulk-import/retry`
|
|
22439
24735
|
*/
|
|
22440
|
-
|
|
24736
|
+
retryBulkImport(request: OperationBody<operations["post_v1_products_bulk_import_retry"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_import_retry"]>>;
|
|
22441
24737
|
/**
|
|
22442
24738
|
* Compare Product Market Prices
|
|
22443
24739
|
*
|
|
@@ -22482,6 +24778,18 @@ declare class ProductsClient {
|
|
|
22482
24778
|
* `POST /api/v1/products/cost`
|
|
22483
24779
|
*/
|
|
22484
24780
|
updateCosts(request: OperationBody<operations["post_v1_products_cost"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_cost"]>>;
|
|
24781
|
+
/**
|
|
24782
|
+
* Count Products
|
|
24783
|
+
*
|
|
24784
|
+
* Count matching catalog parent products using the Products page's canonical filters and authorization, without loading rows, pricing, or location data.
|
|
24785
|
+
|
|
24786
|
+
Products are counted once even when multiple listings match. This does not count variants or verify live marketplace status. status is the catalog lifecycle/derived view. All marketplaces are supported. Use storeKeys for exact marketplace/country/account identity.
|
|
24787
|
+
|
|
24788
|
+
Authenticate with a read-only catalog credential; organization comes only from that credential.
|
|
24789
|
+
*
|
|
24790
|
+
* `GET /api/v1/products/count`
|
|
24791
|
+
*/
|
|
24792
|
+
count(request?: OperationQuery<operations["get_v1_products_count"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_products_count"]>>;
|
|
22485
24793
|
/**
|
|
22486
24794
|
* Queue Product Enrichment
|
|
22487
24795
|
*
|
|
@@ -22489,13 +24797,21 @@ declare class ProductsClient {
|
|
|
22489
24797
|
|
|
22490
24798
|
### Enrichment options
|
|
22491
24799
|
|
|
22492
|
-
Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included;
|
|
24800
|
+
Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.
|
|
22493
24801
|
|
|
22494
|
-
autoApplyHighConfidence defaults to false.
|
|
24802
|
+
autoApplyHighConfidence defaults to false.
|
|
22495
24803
|
*
|
|
22496
24804
|
* `POST /api/v1/products/enrich`
|
|
22497
24805
|
*/
|
|
22498
24806
|
enrich(request: OperationBody<operations["post_v1_products_enrich"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_enrich"]>>;
|
|
24807
|
+
/** Read a bounded chunk without summary classification; persist progress to resume. */
|
|
24808
|
+
scan(request?: ProductScanRequest, options?: ProductScanOptions): Promise<ProductScanResult>;
|
|
24809
|
+
/** Process 1–100 products with bounded concurrency and ordered per-product results. */
|
|
24810
|
+
batchPublish(request: BatchPublishProductsRequest, options?: ProductBatchOptions): Promise<BatchPublishProductsResult>;
|
|
24811
|
+
/** Process 1–100 products with bounded concurrency and ordered per-product results. */
|
|
24812
|
+
batchDelist(request: BatchDelistProductsRequest, options?: ProductBatchOptions): Promise<BatchDelistProductsResult>;
|
|
24813
|
+
/** Process 1–100 products with bounded concurrency and ordered per-product results. */
|
|
24814
|
+
batchUpdate(request: BatchUpdateProductsRequest, options?: ProductBatchOptions): Promise<BatchUpdateProductsResult>;
|
|
22499
24815
|
}
|
|
22500
24816
|
declare class PromotionsClient {
|
|
22501
24817
|
protected readonly _http: OmniHttp;
|
|
@@ -22852,6 +25168,7 @@ declare class OmniGeneratedClient {
|
|
|
22852
25168
|
readonly agents: AgentsClient;
|
|
22853
25169
|
readonly analytics: AnalyticsClient;
|
|
22854
25170
|
readonly aop: AopClient;
|
|
25171
|
+
readonly brandKits: BrandKitsClient;
|
|
22855
25172
|
readonly brandsgateway: BrandsgatewayClient;
|
|
22856
25173
|
readonly campaigns: CampaignsClient;
|
|
22857
25174
|
readonly catalog: CatalogClient;
|
|
@@ -22862,6 +25179,7 @@ declare class OmniGeneratedClient {
|
|
|
22862
25179
|
readonly evaluate: EvaluateClient;
|
|
22863
25180
|
readonly feed: FeedClient;
|
|
22864
25181
|
readonly images: ImagesClient;
|
|
25182
|
+
readonly inventory: InventoryClient;
|
|
22865
25183
|
readonly jobs: JobsClient;
|
|
22866
25184
|
readonly looks: LooksClient;
|
|
22867
25185
|
readonly marketplaces: MarketplacesClient;
|
|
@@ -22890,6 +25208,7 @@ type OmniResources = {
|
|
|
22890
25208
|
agents: AgentsClient;
|
|
22891
25209
|
analytics: AnalyticsClient;
|
|
22892
25210
|
aop: AopClient;
|
|
25211
|
+
brandKits: BrandKitsClient;
|
|
22893
25212
|
brandsgateway: BrandsgatewayClient;
|
|
22894
25213
|
campaigns: CampaignsClient;
|
|
22895
25214
|
catalog: CatalogClient;
|
|
@@ -22900,6 +25219,7 @@ type OmniResources = {
|
|
|
22900
25219
|
evaluate: EvaluateClient;
|
|
22901
25220
|
feed: FeedClient;
|
|
22902
25221
|
images: ImagesClient;
|
|
25222
|
+
inventory: InventoryClient;
|
|
22903
25223
|
jobs: JobsClient;
|
|
22904
25224
|
looks: LooksClient;
|
|
22905
25225
|
marketplaces: MarketplacesClient;
|
|
@@ -22965,7 +25285,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
22965
25285
|
toleranceInSeconds?: number;
|
|
22966
25286
|
}): Promise<ConstructedWebhookEvent>;
|
|
22967
25287
|
|
|
22968
|
-
declare const SDK_VERSION = "0.
|
|
25288
|
+
declare const SDK_VERSION = "0.17.0";
|
|
22969
25289
|
|
|
22970
25290
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
22971
25291
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|
|
@@ -23043,4 +25363,4 @@ declare namespace index {
|
|
|
23043
25363
|
export { type index_AccountStatementCreatedWebhookEvent as AccountStatementCreatedWebhookEvent, type index_AccountStatementReconciliationChangedWebhookEvent as AccountStatementReconciliationChangedWebhookEvent, type index_AccountStatementStatusChangedWebhookEvent as AccountStatementStatusChangedWebhookEvent, type index_AccountStatementSyncCompletedWebhookEvent as AccountStatementSyncCompletedWebhookEvent, type index_AccountStatementSyncFailedWebhookEvent as AccountStatementSyncFailedWebhookEvent, type index_AccountStatementSyncQueuedWebhookEvent as AccountStatementSyncQueuedWebhookEvent, type index_AccountStatementSyncStartedWebhookEvent as AccountStatementSyncStartedWebhookEvent, type index_AccountStatementSyncUnavailableWebhookEvent as AccountStatementSyncUnavailableWebhookEvent, type index_AccountStatementTransactionsFailedWebhookEvent as AccountStatementTransactionsFailedWebhookEvent, type index_AccountStatementTransactionsSyncedWebhookEvent as AccountStatementTransactionsSyncedWebhookEvent, type index_AccountStatementUpdatedWebhookEvent as AccountStatementUpdatedWebhookEvent, type index_FlattenedRequest as FlattenedRequest, type index_LookCreatedWebhookEvent as LookCreatedWebhookEvent, type index_LookDeletedWebhookEvent as LookDeletedWebhookEvent, index_OmniGeneratedClient as OmniGeneratedClient, type index_OmniResources as OmniResources, type index_OperationBody as OperationBody, type index_OperationPath as OperationPath, type index_OperationQuery as OperationQuery, type index_OrderCreatedWebhookEvent as OrderCreatedWebhookEvent, type index_OrderDeletedWebhookEvent as OrderDeletedWebhookEvent, type index_OrderStatusChangedWebhookEvent as OrderStatusChangedWebhookEvent, type index_OrderUpdatedWebhookEvent as OrderUpdatedWebhookEvent, type index_ProductCreatedWebhookEvent as ProductCreatedWebhookEvent, type index_ProductDeletedWebhookEvent as ProductDeletedWebhookEvent, type index_ProductEnrichmentCompletedWebhookEvent as ProductEnrichmentCompletedWebhookEvent, type index_ProductEnrichmentStartedWebhookEvent as ProductEnrichmentStartedWebhookEvent, type index_ProductInventoryChangedWebhookEvent as ProductInventoryChangedWebhookEvent, type index_ProductPriceChangedWebhookEvent as ProductPriceChangedWebhookEvent, type index_ProductUpdatedWebhookEvent as ProductUpdatedWebhookEvent, type index_ReturnCreatedWebhookEvent as ReturnCreatedWebhookEvent, type index_ReturnStatusChangedWebhookEvent as ReturnStatusChangedWebhookEvent, type index_ReturnUpdatedWebhookEvent as ReturnUpdatedWebhookEvent, type index_SettlementCreatedWebhookEvent as SettlementCreatedWebhookEvent, type index_SettlementStatusChangedWebhookEvent as SettlementStatusChangedWebhookEvent, type index_SettlementUpdatedWebhookEvent as SettlementUpdatedWebhookEvent, type index_SuccessData as SuccessData, type index_components as components, type index_operations as operations, type index_paths as paths };
|
|
23044
25364
|
}
|
|
23045
25365
|
|
|
23046
|
-
export { BadGatewayError, BadRequestError, type BaseClientOptions, type BaseRequestOptions, type ConstructedWebhookEvent, type FetchLike, ForbiddenError, HttpResponsePromise, InternalServerError, JobFailedError, NotFoundError, index as Omni, OmniClient, OmniEnvironment, OmniError, type OmniRequestInit, OmniTimeoutError, type RawResponse, SDK_VERSION, ServiceUnavailableError, TooManyRequestsError, UnauthorizedError, UnprocessableEntityError, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, type WebhookHeaders, type WithRawResponse, constructEvent, signWebhookPayload, verifyWebhookSignature };
|
|
25366
|
+
export { BadGatewayError, BadRequestError, type BaseClientOptions, type BaseRequestOptions, type BatchDelistProductsRequest, type BatchDelistProductsResult, type BatchPublishProductsRequest, type BatchPublishProductsResult, type BatchUpdateProductsRequest, type BatchUpdateProductsResult, type ConstructedWebhookEvent, type FetchLike, ForbiddenError, HttpResponsePromise, InternalServerError, JobFailedError, NotFoundError, index as Omni, OmniClient, OmniEnvironment, OmniError, type OmniRequestInit, OmniTimeoutError, type ProductBatchItemResult, type ProductBatchOptions, type ProductBatchResult, ProductScanError, type ProductScanOptions, type ProductScanProgress, type ProductScanRequest, type ProductScanResult, type RawResponse, SDK_VERSION, ServiceUnavailableError, TooManyRequestsError, UnauthorizedError, UnprocessableEntityError, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, type WebhookHeaders, type WithRawResponse, constructEvent, signWebhookPayload, verifyWebhookSignature };
|