@omni-commerce/sdk 0.6.0 → 0.7.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 +2 -0
- package/dist/embed.cjs +338 -0
- package/dist/embed.cjs.map +1 -0
- package/dist/embed.d.cts +50 -0
- package/dist/embed.d.ts +50 -0
- package/dist/embed.global.js +64 -0
- package/dist/embed.global.js.map +1 -0
- package/dist/embed.js +332 -0
- package/dist/embed.js.map +1 -0
- package/dist/index.cjs +100 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1227 -103
- package/dist/index.d.ts +1227 -103
- package/dist/index.js +100 -128
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +198 -0
- package/dist/react.cjs.map +1 -0
- package/dist/react.d.cts +18 -0
- package/dist/react.d.ts +18 -0
- package/dist/react.js +178 -0
- package/dist/react.js.map +1 -0
- package/package.json +21 -2
package/dist/index.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __typeError = (msg) => {
|
|
3
|
+
throw TypeError(msg);
|
|
4
|
+
};
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2
6
|
var __export = (target, all) => {
|
|
3
7
|
for (var name in all)
|
|
4
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
9
|
};
|
|
10
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
12
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
13
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
14
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
6
15
|
|
|
7
16
|
// src/BaseClient.ts
|
|
8
17
|
function normalizeClientOptions(options = {}) {
|
|
@@ -24,7 +33,7 @@ function normalizeClientOptions(options = {}) {
|
|
|
24
33
|
}
|
|
25
34
|
|
|
26
35
|
// src/version.ts
|
|
27
|
-
var SDK_VERSION = "0.
|
|
36
|
+
var SDK_VERSION = "0.7.0";
|
|
28
37
|
var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
|
|
29
38
|
|
|
30
39
|
// src/environments.ts
|
|
@@ -35,9 +44,6 @@ var OmniEnvironment = {
|
|
|
35
44
|
|
|
36
45
|
// src/errors/OmniError.ts
|
|
37
46
|
var OmniError = class extends Error {
|
|
38
|
-
statusCode;
|
|
39
|
-
body;
|
|
40
|
-
rawResponse;
|
|
41
47
|
constructor({
|
|
42
48
|
message,
|
|
43
49
|
statusCode,
|
|
@@ -45,6 +51,9 @@ var OmniError = class extends Error {
|
|
|
45
51
|
rawResponse
|
|
46
52
|
}) {
|
|
47
53
|
super(message ?? defaultErrorMessage(statusCode, body));
|
|
54
|
+
__publicField(this, "statusCode");
|
|
55
|
+
__publicField(this, "body");
|
|
56
|
+
__publicField(this, "rawResponse");
|
|
48
57
|
this.name = "OmniError";
|
|
49
58
|
this.statusCode = statusCode;
|
|
50
59
|
this.body = body;
|
|
@@ -223,11 +232,12 @@ function joinUrl(baseUrl, path, query) {
|
|
|
223
232
|
}
|
|
224
233
|
|
|
225
234
|
// src/core/http-response-promise.ts
|
|
226
|
-
var
|
|
227
|
-
|
|
235
|
+
var _response;
|
|
236
|
+
var _HttpResponsePromise = class _HttpResponsePromise extends Promise {
|
|
228
237
|
constructor(executor, response) {
|
|
229
238
|
super(executor);
|
|
230
|
-
this
|
|
239
|
+
__privateAdd(this, _response);
|
|
240
|
+
__privateSet(this, _response, response);
|
|
231
241
|
}
|
|
232
242
|
static from(response) {
|
|
233
243
|
return new _HttpResponsePromise((resolve, reject) => {
|
|
@@ -235,9 +245,11 @@ var HttpResponsePromise = class _HttpResponsePromise extends Promise {
|
|
|
235
245
|
}, response);
|
|
236
246
|
}
|
|
237
247
|
withRawResponse() {
|
|
238
|
-
return this
|
|
248
|
+
return __privateGet(this, _response);
|
|
239
249
|
}
|
|
240
250
|
};
|
|
251
|
+
_response = new WeakMap();
|
|
252
|
+
var HttpResponsePromise = _HttpResponsePromise;
|
|
241
253
|
function toRawResponse(response) {
|
|
242
254
|
return {
|
|
243
255
|
status: response.status,
|
|
@@ -250,9 +262,8 @@ function toRawResponse(response) {
|
|
|
250
262
|
var IDEMPOTENT_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS", "PUT", "DELETE"]);
|
|
251
263
|
var OmniHttp = class {
|
|
252
264
|
constructor(options) {
|
|
253
|
-
this
|
|
265
|
+
__publicField(this, "options", options);
|
|
254
266
|
}
|
|
255
|
-
options;
|
|
256
267
|
request(init) {
|
|
257
268
|
return HttpResponsePromise.from(this.requestWithRaw(init));
|
|
258
269
|
}
|
|
@@ -463,12 +474,12 @@ var TERMINAL_STATUSES = /* @__PURE__ */ new Set([
|
|
|
463
474
|
...CANCELLED_STATUSES
|
|
464
475
|
]);
|
|
465
476
|
var JobFailedError = class extends OmniError {
|
|
466
|
-
jobStatus;
|
|
467
477
|
constructor(jobStatus, body) {
|
|
468
478
|
super({
|
|
469
479
|
message: `Job ended with status "${jobStatus}"`,
|
|
470
480
|
body
|
|
471
481
|
});
|
|
482
|
+
__publicField(this, "jobStatus");
|
|
472
483
|
this.name = "JobFailedError";
|
|
473
484
|
this.jobStatus = jobStatus;
|
|
474
485
|
}
|
|
@@ -521,9 +532,8 @@ async function waitForJob(http, request, options) {
|
|
|
521
532
|
// src/generated/resources.ts
|
|
522
533
|
var AgentsGeneralClient = class {
|
|
523
534
|
constructor(_http) {
|
|
524
|
-
this
|
|
535
|
+
__publicField(this, "_http", _http);
|
|
525
536
|
}
|
|
526
|
-
_http;
|
|
527
537
|
/**
|
|
528
538
|
* Invoke the Omni agent
|
|
529
539
|
*
|
|
@@ -580,17 +590,15 @@ var AgentsGeneralClient = class {
|
|
|
580
590
|
};
|
|
581
591
|
var AgentsClient = class {
|
|
582
592
|
constructor(_http) {
|
|
583
|
-
this
|
|
593
|
+
__publicField(this, "_http", _http);
|
|
594
|
+
__publicField(this, "general");
|
|
584
595
|
this.general = new AgentsGeneralClient(this._http);
|
|
585
596
|
}
|
|
586
|
-
_http;
|
|
587
|
-
general;
|
|
588
597
|
};
|
|
589
598
|
var AnalyticsClient = class {
|
|
590
599
|
constructor(_http) {
|
|
591
|
-
this
|
|
600
|
+
__publicField(this, "_http", _http);
|
|
592
601
|
}
|
|
593
|
-
_http;
|
|
594
602
|
/**
|
|
595
603
|
* Get Ads Analytics
|
|
596
604
|
*
|
|
@@ -1009,9 +1017,8 @@ var AnalyticsClient = class {
|
|
|
1009
1017
|
};
|
|
1010
1018
|
var AopClient = class {
|
|
1011
1019
|
constructor(_http) {
|
|
1012
|
-
this
|
|
1020
|
+
__publicField(this, "_http", _http);
|
|
1013
1021
|
}
|
|
1014
|
-
_http;
|
|
1015
1022
|
/**
|
|
1016
1023
|
* Get AOP configuration
|
|
1017
1024
|
*
|
|
@@ -1100,9 +1107,8 @@ var AopClient = class {
|
|
|
1100
1107
|
};
|
|
1101
1108
|
var BrandsgatewayClient = class {
|
|
1102
1109
|
constructor(_http) {
|
|
1103
|
-
this
|
|
1110
|
+
__publicField(this, "_http", _http);
|
|
1104
1111
|
}
|
|
1105
|
-
_http;
|
|
1106
1112
|
/**
|
|
1107
1113
|
* Import BrandsGateway Products
|
|
1108
1114
|
*
|
|
@@ -1129,9 +1135,8 @@ var BrandsgatewayClient = class {
|
|
|
1129
1135
|
};
|
|
1130
1136
|
var CampaignsClient = class {
|
|
1131
1137
|
constructor(_http) {
|
|
1132
|
-
this
|
|
1138
|
+
__publicField(this, "_http", _http);
|
|
1133
1139
|
}
|
|
1134
|
-
_http;
|
|
1135
1140
|
/**
|
|
1136
1141
|
* List Campaigns
|
|
1137
1142
|
*
|
|
@@ -1271,9 +1276,8 @@ var CampaignsClient = class {
|
|
|
1271
1276
|
};
|
|
1272
1277
|
var CatalogClient = class {
|
|
1273
1278
|
constructor(_http) {
|
|
1274
|
-
this
|
|
1279
|
+
__publicField(this, "_http", _http);
|
|
1275
1280
|
}
|
|
1276
|
-
_http;
|
|
1277
1281
|
/**
|
|
1278
1282
|
* Export Catalog Items
|
|
1279
1283
|
*
|
|
@@ -1296,9 +1300,8 @@ var CatalogClient = class {
|
|
|
1296
1300
|
};
|
|
1297
1301
|
var CheckoutSessionsClient = class {
|
|
1298
1302
|
constructor(_http) {
|
|
1299
|
-
this
|
|
1303
|
+
__publicField(this, "_http", _http);
|
|
1300
1304
|
}
|
|
1301
|
-
_http;
|
|
1302
1305
|
/**
|
|
1303
1306
|
* Create Agentic Checkout Session
|
|
1304
1307
|
*
|
|
@@ -1404,9 +1407,8 @@ var CheckoutSessionsClient = class {
|
|
|
1404
1407
|
};
|
|
1405
1408
|
var CompareClient = class {
|
|
1406
1409
|
constructor(_http) {
|
|
1407
|
-
this
|
|
1410
|
+
__publicField(this, "_http", _http);
|
|
1408
1411
|
}
|
|
1409
|
-
_http;
|
|
1410
1412
|
/**
|
|
1411
1413
|
* Compare Public Products
|
|
1412
1414
|
*
|
|
@@ -1427,9 +1429,8 @@ var CompareClient = class {
|
|
|
1427
1429
|
};
|
|
1428
1430
|
var DirectoryClient = class {
|
|
1429
1431
|
constructor(_http) {
|
|
1430
|
-
this
|
|
1432
|
+
__publicField(this, "_http", _http);
|
|
1431
1433
|
}
|
|
1432
|
-
_http;
|
|
1433
1434
|
/**
|
|
1434
1435
|
* List Public Merchants
|
|
1435
1436
|
*
|
|
@@ -1449,15 +1450,14 @@ var DirectoryClient = class {
|
|
|
1449
1450
|
};
|
|
1450
1451
|
var DocumentsClient = class {
|
|
1451
1452
|
constructor(_http) {
|
|
1452
|
-
this
|
|
1453
|
+
__publicField(this, "_http", _http);
|
|
1453
1454
|
}
|
|
1454
|
-
_http;
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Upload Document
|
|
1457
1457
|
*
|
|
1458
1458
|
* Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.
|
|
1459
1459
|
|
|
1460
|
-
Accepted: PDF up to 20 MB, Excel (.xlsx/.xlsm) up to 10 MB, images up to 8 MB, CSV and Markdown up to 2 MB. PDFs, Markdown, and images are indexed in the background; poll `GET /api/v1/documents/{documentId}` until `status` is `completed`. CSV and Excel are stored for agents to read but are not indexed.
|
|
1460
|
+
Accepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to 10 MB, images up to 8 MB, CSV and Markdown up to 2 MB. PDFs, Word, PowerPoint, Markdown, and images are indexed in the background; poll `GET /api/v1/documents/{documentId}` until `status` is `completed`. CSV and Excel are stored for agents to read but are not indexed.
|
|
1461
1461
|
*
|
|
1462
1462
|
* `POST /api/v1/documents`
|
|
1463
1463
|
*/
|
|
@@ -1491,9 +1491,8 @@ var DocumentsClient = class {
|
|
|
1491
1491
|
};
|
|
1492
1492
|
var EvaluateClient = class {
|
|
1493
1493
|
constructor(_http) {
|
|
1494
|
-
this
|
|
1494
|
+
__publicField(this, "_http", _http);
|
|
1495
1495
|
}
|
|
1496
|
-
_http;
|
|
1497
1496
|
/**
|
|
1498
1497
|
* Evaluate SKU Readiness
|
|
1499
1498
|
*
|
|
@@ -1514,9 +1513,8 @@ var EvaluateClient = class {
|
|
|
1514
1513
|
};
|
|
1515
1514
|
var FeedClient = class {
|
|
1516
1515
|
constructor(_http) {
|
|
1517
|
-
this
|
|
1516
|
+
__publicField(this, "_http", _http);
|
|
1518
1517
|
}
|
|
1519
|
-
_http;
|
|
1520
1518
|
/**
|
|
1521
1519
|
* Get Merchant LLM Feed
|
|
1522
1520
|
*
|
|
@@ -1537,9 +1535,8 @@ var FeedClient = class {
|
|
|
1537
1535
|
};
|
|
1538
1536
|
var ImagesClient = class {
|
|
1539
1537
|
constructor(_http) {
|
|
1540
|
-
this
|
|
1538
|
+
__publicField(this, "_http", _http);
|
|
1541
1539
|
}
|
|
1542
|
-
_http;
|
|
1543
1540
|
/**
|
|
1544
1541
|
* Generate Ghost Mannequin Image
|
|
1545
1542
|
*
|
|
@@ -1560,9 +1557,8 @@ var ImagesClient = class {
|
|
|
1560
1557
|
};
|
|
1561
1558
|
var JobsClient = class {
|
|
1562
1559
|
constructor(_http) {
|
|
1563
|
-
this
|
|
1560
|
+
__publicField(this, "_http", _http);
|
|
1564
1561
|
}
|
|
1565
|
-
_http;
|
|
1566
1562
|
/**
|
|
1567
1563
|
* Get Developer Job Status
|
|
1568
1564
|
*
|
|
@@ -1616,9 +1612,8 @@ var JobsClient = class {
|
|
|
1616
1612
|
};
|
|
1617
1613
|
var LooksClient = class {
|
|
1618
1614
|
constructor(_http) {
|
|
1619
|
-
this
|
|
1615
|
+
__publicField(this, "_http", _http);
|
|
1620
1616
|
}
|
|
1621
|
-
_http;
|
|
1622
1617
|
/**
|
|
1623
1618
|
* List Looks
|
|
1624
1619
|
*
|
|
@@ -1673,9 +1668,8 @@ var LooksClient = class {
|
|
|
1673
1668
|
};
|
|
1674
1669
|
var MarketplacesClient = class {
|
|
1675
1670
|
constructor(_http) {
|
|
1676
|
-
this
|
|
1671
|
+
__publicField(this, "_http", _http);
|
|
1677
1672
|
}
|
|
1678
|
-
_http;
|
|
1679
1673
|
/**
|
|
1680
1674
|
* List Connected Marketplaces
|
|
1681
1675
|
*
|
|
@@ -1696,9 +1690,8 @@ var MarketplacesClient = class {
|
|
|
1696
1690
|
};
|
|
1697
1691
|
var MerchantsClient = class {
|
|
1698
1692
|
constructor(_http) {
|
|
1699
|
-
this
|
|
1693
|
+
__publicField(this, "_http", _http);
|
|
1700
1694
|
}
|
|
1701
|
-
_http;
|
|
1702
1695
|
/**
|
|
1703
1696
|
* Get Public Merchant Manifest
|
|
1704
1697
|
*
|
|
@@ -1782,9 +1775,8 @@ var MerchantsClient = class {
|
|
|
1782
1775
|
};
|
|
1783
1776
|
var MonitorClient = class {
|
|
1784
1777
|
constructor(_http) {
|
|
1785
|
-
this
|
|
1778
|
+
__publicField(this, "_http", _http);
|
|
1786
1779
|
}
|
|
1787
|
-
_http;
|
|
1788
1780
|
/**
|
|
1789
1781
|
* Run AI Shelf Share Monitor
|
|
1790
1782
|
*
|
|
@@ -1805,9 +1797,8 @@ var MonitorClient = class {
|
|
|
1805
1797
|
};
|
|
1806
1798
|
var OauthClient = class {
|
|
1807
1799
|
constructor(_http) {
|
|
1808
|
-
this
|
|
1800
|
+
__publicField(this, "_http", _http);
|
|
1809
1801
|
}
|
|
1810
|
-
_http;
|
|
1811
1802
|
/**
|
|
1812
1803
|
* Revoke Access Token
|
|
1813
1804
|
*
|
|
@@ -1845,9 +1836,8 @@ var OauthClient = class {
|
|
|
1845
1836
|
};
|
|
1846
1837
|
var OrdersClient = class {
|
|
1847
1838
|
constructor(_http) {
|
|
1848
|
-
this
|
|
1839
|
+
__publicField(this, "_http", _http);
|
|
1849
1840
|
}
|
|
1850
|
-
_http;
|
|
1851
1841
|
/**
|
|
1852
1842
|
* List Orders
|
|
1853
1843
|
*
|
|
@@ -2060,9 +2050,8 @@ var OrdersClient = class {
|
|
|
2060
2050
|
};
|
|
2061
2051
|
var OrganizationsClient = class {
|
|
2062
2052
|
constructor(_http) {
|
|
2063
|
-
this
|
|
2053
|
+
__publicField(this, "_http", _http);
|
|
2064
2054
|
}
|
|
2065
|
-
_http;
|
|
2066
2055
|
/**
|
|
2067
2056
|
* Create Organization
|
|
2068
2057
|
*
|
|
@@ -2083,9 +2072,8 @@ var OrganizationsClient = class {
|
|
|
2083
2072
|
};
|
|
2084
2073
|
var PriceBooksClient = class {
|
|
2085
2074
|
constructor(_http) {
|
|
2086
|
-
this
|
|
2075
|
+
__publicField(this, "_http", _http);
|
|
2087
2076
|
}
|
|
2088
|
-
_http;
|
|
2089
2077
|
/**
|
|
2090
2078
|
* List Price Book Rules
|
|
2091
2079
|
*
|
|
@@ -2193,9 +2181,8 @@ var PriceBooksClient = class {
|
|
|
2193
2181
|
};
|
|
2194
2182
|
var ProductCategoriesClient = class {
|
|
2195
2183
|
constructor(_http) {
|
|
2196
|
-
this
|
|
2184
|
+
__publicField(this, "_http", _http);
|
|
2197
2185
|
}
|
|
2198
|
-
_http;
|
|
2199
2186
|
/**
|
|
2200
2187
|
* Recommend Marketplace Product Categories
|
|
2201
2188
|
*
|
|
@@ -2216,9 +2203,8 @@ var ProductCategoriesClient = class {
|
|
|
2216
2203
|
};
|
|
2217
2204
|
var ProductsClient = class {
|
|
2218
2205
|
constructor(_http) {
|
|
2219
|
-
this
|
|
2206
|
+
__publicField(this, "_http", _http);
|
|
2220
2207
|
}
|
|
2221
|
-
_http;
|
|
2222
2208
|
/**
|
|
2223
2209
|
* List Products
|
|
2224
2210
|
*
|
|
@@ -2578,9 +2564,8 @@ var ProductsClient = class {
|
|
|
2578
2564
|
};
|
|
2579
2565
|
var PromotionsClient = class {
|
|
2580
2566
|
constructor(_http) {
|
|
2581
|
-
this
|
|
2567
|
+
__publicField(this, "_http", _http);
|
|
2582
2568
|
}
|
|
2583
|
-
_http;
|
|
2584
2569
|
/**
|
|
2585
2570
|
* List Promotions
|
|
2586
2571
|
*
|
|
@@ -2759,9 +2744,8 @@ var PromotionsClient = class {
|
|
|
2759
2744
|
};
|
|
2760
2745
|
var ReturnsClient = class {
|
|
2761
2746
|
constructor(_http) {
|
|
2762
|
-
this
|
|
2747
|
+
__publicField(this, "_http", _http);
|
|
2763
2748
|
}
|
|
2764
|
-
_http;
|
|
2765
2749
|
/**
|
|
2766
2750
|
* List Returns
|
|
2767
2751
|
*
|
|
@@ -2815,9 +2799,8 @@ var ReturnsClient = class {
|
|
|
2815
2799
|
};
|
|
2816
2800
|
var ReviewsClient = class {
|
|
2817
2801
|
constructor(_http) {
|
|
2818
|
-
this
|
|
2802
|
+
__publicField(this, "_http", _http);
|
|
2819
2803
|
}
|
|
2820
|
-
_http;
|
|
2821
2804
|
/**
|
|
2822
2805
|
* List Reviews
|
|
2823
2806
|
*
|
|
@@ -2917,9 +2900,8 @@ var ReviewsClient = class {
|
|
|
2917
2900
|
};
|
|
2918
2901
|
var SearchClient = class {
|
|
2919
2902
|
constructor(_http) {
|
|
2920
|
-
this
|
|
2903
|
+
__publicField(this, "_http", _http);
|
|
2921
2904
|
}
|
|
2922
|
-
_http;
|
|
2923
2905
|
/**
|
|
2924
2906
|
* Search Public Merchant Products
|
|
2925
2907
|
*
|
|
@@ -3018,9 +3000,8 @@ var SearchClient = class {
|
|
|
3018
3000
|
};
|
|
3019
3001
|
var SettlementsClient = class {
|
|
3020
3002
|
constructor(_http) {
|
|
3021
|
-
this
|
|
3003
|
+
__publicField(this, "_http", _http);
|
|
3022
3004
|
}
|
|
3023
|
-
_http;
|
|
3024
3005
|
/**
|
|
3025
3006
|
* List Settlements
|
|
3026
3007
|
*
|
|
@@ -3111,9 +3092,8 @@ var SettlementsClient = class {
|
|
|
3111
3092
|
};
|
|
3112
3093
|
var SyncClient = class {
|
|
3113
3094
|
constructor(_http) {
|
|
3114
|
-
this
|
|
3095
|
+
__publicField(this, "_http", _http);
|
|
3115
3096
|
}
|
|
3116
|
-
_http;
|
|
3117
3097
|
/**
|
|
3118
3098
|
* Sync Product Commercial Fields
|
|
3119
3099
|
*
|
|
@@ -3134,9 +3114,8 @@ var SyncClient = class {
|
|
|
3134
3114
|
};
|
|
3135
3115
|
var ThreadsClient = class {
|
|
3136
3116
|
constructor(_http) {
|
|
3137
|
-
this
|
|
3117
|
+
__publicField(this, "_http", _http);
|
|
3138
3118
|
}
|
|
3139
|
-
_http;
|
|
3140
3119
|
/**
|
|
3141
3120
|
* Get Thread Status
|
|
3142
3121
|
*
|
|
@@ -3161,9 +3140,8 @@ var ThreadsClient = class {
|
|
|
3161
3140
|
};
|
|
3162
3141
|
var UcpCheckoutSessionsClient = class {
|
|
3163
3142
|
constructor(_http) {
|
|
3164
|
-
this
|
|
3143
|
+
__publicField(this, "_http", _http);
|
|
3165
3144
|
}
|
|
3166
|
-
_http;
|
|
3167
3145
|
/**
|
|
3168
3146
|
* Create UCP Checkout Session
|
|
3169
3147
|
*
|
|
@@ -3269,9 +3247,8 @@ var UcpCheckoutSessionsClient = class {
|
|
|
3269
3247
|
};
|
|
3270
3248
|
var UcpOrdersClient = class {
|
|
3271
3249
|
constructor(_http) {
|
|
3272
|
-
this
|
|
3250
|
+
__publicField(this, "_http", _http);
|
|
3273
3251
|
}
|
|
3274
|
-
_http;
|
|
3275
3252
|
/**
|
|
3276
3253
|
* Get UCP Order
|
|
3277
3254
|
*
|
|
@@ -3292,19 +3269,17 @@ var UcpOrdersClient = class {
|
|
|
3292
3269
|
};
|
|
3293
3270
|
var UcpClient = class {
|
|
3294
3271
|
constructor(_http) {
|
|
3295
|
-
this
|
|
3272
|
+
__publicField(this, "_http", _http);
|
|
3273
|
+
__publicField(this, "checkoutSessions");
|
|
3274
|
+
__publicField(this, "orders");
|
|
3296
3275
|
this.checkoutSessions = new UcpCheckoutSessionsClient(this._http);
|
|
3297
3276
|
this.orders = new UcpOrdersClient(this._http);
|
|
3298
3277
|
}
|
|
3299
|
-
_http;
|
|
3300
|
-
checkoutSessions;
|
|
3301
|
-
orders;
|
|
3302
3278
|
};
|
|
3303
3279
|
var WebhookEventsClient = class {
|
|
3304
3280
|
constructor(_http) {
|
|
3305
|
-
this
|
|
3281
|
+
__publicField(this, "_http", _http);
|
|
3306
3282
|
}
|
|
3307
|
-
_http;
|
|
3308
3283
|
/**
|
|
3309
3284
|
* List Webhook Events
|
|
3310
3285
|
*
|
|
@@ -3325,9 +3300,8 @@ var WebhookEventsClient = class {
|
|
|
3325
3300
|
};
|
|
3326
3301
|
var WebhooksClient = class {
|
|
3327
3302
|
constructor(_http) {
|
|
3328
|
-
this
|
|
3303
|
+
__publicField(this, "_http", _http);
|
|
3329
3304
|
}
|
|
3330
|
-
_http;
|
|
3331
3305
|
/**
|
|
3332
3306
|
* List Developer Webhooks
|
|
3333
3307
|
*
|
|
@@ -3364,9 +3338,8 @@ var WebhooksClient = class {
|
|
|
3364
3338
|
};
|
|
3365
3339
|
var ZaloraClient = class {
|
|
3366
3340
|
constructor(_http) {
|
|
3367
|
-
this
|
|
3341
|
+
__publicField(this, "_http", _http);
|
|
3368
3342
|
}
|
|
3369
|
-
_http;
|
|
3370
3343
|
/**
|
|
3371
3344
|
* Get Selected Zalora Import Status
|
|
3372
3345
|
*
|
|
@@ -3412,7 +3385,42 @@ var ZaloraClient = class {
|
|
|
3412
3385
|
};
|
|
3413
3386
|
var OmniGeneratedClient = class {
|
|
3414
3387
|
constructor(_http) {
|
|
3415
|
-
this
|
|
3388
|
+
__publicField(this, "_http", _http);
|
|
3389
|
+
__publicField(this, "agents");
|
|
3390
|
+
__publicField(this, "analytics");
|
|
3391
|
+
__publicField(this, "aop");
|
|
3392
|
+
__publicField(this, "brandsgateway");
|
|
3393
|
+
__publicField(this, "campaigns");
|
|
3394
|
+
__publicField(this, "catalog");
|
|
3395
|
+
__publicField(this, "checkoutSessions");
|
|
3396
|
+
__publicField(this, "compare");
|
|
3397
|
+
__publicField(this, "directory");
|
|
3398
|
+
__publicField(this, "documents");
|
|
3399
|
+
__publicField(this, "evaluate");
|
|
3400
|
+
__publicField(this, "feed");
|
|
3401
|
+
__publicField(this, "images");
|
|
3402
|
+
__publicField(this, "jobs");
|
|
3403
|
+
__publicField(this, "looks");
|
|
3404
|
+
__publicField(this, "marketplaces");
|
|
3405
|
+
__publicField(this, "merchants");
|
|
3406
|
+
__publicField(this, "monitor");
|
|
3407
|
+
__publicField(this, "oauth");
|
|
3408
|
+
__publicField(this, "orders");
|
|
3409
|
+
__publicField(this, "organizations");
|
|
3410
|
+
__publicField(this, "priceBooks");
|
|
3411
|
+
__publicField(this, "productCategories");
|
|
3412
|
+
__publicField(this, "products");
|
|
3413
|
+
__publicField(this, "promotions");
|
|
3414
|
+
__publicField(this, "returns");
|
|
3415
|
+
__publicField(this, "reviews");
|
|
3416
|
+
__publicField(this, "search");
|
|
3417
|
+
__publicField(this, "settlements");
|
|
3418
|
+
__publicField(this, "sync");
|
|
3419
|
+
__publicField(this, "threads");
|
|
3420
|
+
__publicField(this, "ucp");
|
|
3421
|
+
__publicField(this, "webhookEvents");
|
|
3422
|
+
__publicField(this, "webhooks");
|
|
3423
|
+
__publicField(this, "zalora");
|
|
3416
3424
|
this.agents = new AgentsClient(this._http);
|
|
3417
3425
|
this.analytics = new AnalyticsClient(this._http);
|
|
3418
3426
|
this.aop = new AopClient(this._http);
|
|
@@ -3449,42 +3457,6 @@ var OmniGeneratedClient = class {
|
|
|
3449
3457
|
this.webhooks = new WebhooksClient(this._http);
|
|
3450
3458
|
this.zalora = new ZaloraClient(this._http);
|
|
3451
3459
|
}
|
|
3452
|
-
_http;
|
|
3453
|
-
agents;
|
|
3454
|
-
analytics;
|
|
3455
|
-
aop;
|
|
3456
|
-
brandsgateway;
|
|
3457
|
-
campaigns;
|
|
3458
|
-
catalog;
|
|
3459
|
-
checkoutSessions;
|
|
3460
|
-
compare;
|
|
3461
|
-
directory;
|
|
3462
|
-
documents;
|
|
3463
|
-
evaluate;
|
|
3464
|
-
feed;
|
|
3465
|
-
images;
|
|
3466
|
-
jobs;
|
|
3467
|
-
looks;
|
|
3468
|
-
marketplaces;
|
|
3469
|
-
merchants;
|
|
3470
|
-
monitor;
|
|
3471
|
-
oauth;
|
|
3472
|
-
orders;
|
|
3473
|
-
organizations;
|
|
3474
|
-
priceBooks;
|
|
3475
|
-
productCategories;
|
|
3476
|
-
products;
|
|
3477
|
-
promotions;
|
|
3478
|
-
returns;
|
|
3479
|
-
reviews;
|
|
3480
|
-
search;
|
|
3481
|
-
settlements;
|
|
3482
|
-
sync;
|
|
3483
|
-
threads;
|
|
3484
|
-
ucp;
|
|
3485
|
-
webhookEvents;
|
|
3486
|
-
webhooks;
|
|
3487
|
-
zalora;
|
|
3488
3460
|
};
|
|
3489
3461
|
|
|
3490
3462
|
// src/Client.ts
|