@omni-commerce/sdk 0.5.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 +128 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1592 -259
- package/dist/index.d.ts +1592 -259
- package/dist/index.js +128 -125
- 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
|
*
|
|
@@ -1098,11 +1105,38 @@ var AopClient = class {
|
|
|
1098
1105
|
});
|
|
1099
1106
|
}
|
|
1100
1107
|
};
|
|
1108
|
+
var BrandsgatewayClient = class {
|
|
1109
|
+
constructor(_http) {
|
|
1110
|
+
__publicField(this, "_http", _http);
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* Import BrandsGateway Products
|
|
1114
|
+
*
|
|
1115
|
+
* Requires catalog:write and a connected BrandsGateway account. Uses the same parameters and import service as the import_brandsgateway_products tool.
|
|
1116
|
+
|
|
1117
|
+
### Selection
|
|
1118
|
+
|
|
1119
|
+
Choose catalogProductIds or importAllMatching with filters. maxProducts limits new imports to 1–50 across pages (default 50); already imported products are skipped. Numeric brandIds, vendorIds (supplier warehouses), categoryIds, and conditionIds arrays match any value within each field and all supplied fields together. Omit a field for no restriction; empty arrays and legacy singular/string filters are rejected. Brands accept at most 500 IDs; other filter arrays accept at most 50 each. Broad combinations may exceed the supplier request budget and return a failure asking you to narrow the filters.
|
|
1120
|
+
|
|
1121
|
+
### Updated dates and enrichme
|
|
1122
|
+
*
|
|
1123
|
+
* `POST /api/v1/brandsgateway/import`
|
|
1124
|
+
*/
|
|
1125
|
+
importProducts(request, requestOptions) {
|
|
1126
|
+
const { ...body } = request ?? {};
|
|
1127
|
+
return this._http.request({
|
|
1128
|
+
method: "POST",
|
|
1129
|
+
path: "/api/v1/brandsgateway/import",
|
|
1130
|
+
query: void 0,
|
|
1131
|
+
body,
|
|
1132
|
+
...mergeRequestOptions(requestOptions)
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1101
1136
|
var CampaignsClient = class {
|
|
1102
1137
|
constructor(_http) {
|
|
1103
|
-
this
|
|
1138
|
+
__publicField(this, "_http", _http);
|
|
1104
1139
|
}
|
|
1105
|
-
_http;
|
|
1106
1140
|
/**
|
|
1107
1141
|
* List Campaigns
|
|
1108
1142
|
*
|
|
@@ -1242,9 +1276,8 @@ var CampaignsClient = class {
|
|
|
1242
1276
|
};
|
|
1243
1277
|
var CatalogClient = class {
|
|
1244
1278
|
constructor(_http) {
|
|
1245
|
-
this
|
|
1279
|
+
__publicField(this, "_http", _http);
|
|
1246
1280
|
}
|
|
1247
|
-
_http;
|
|
1248
1281
|
/**
|
|
1249
1282
|
* Export Catalog Items
|
|
1250
1283
|
*
|
|
@@ -1267,9 +1300,8 @@ var CatalogClient = class {
|
|
|
1267
1300
|
};
|
|
1268
1301
|
var CheckoutSessionsClient = class {
|
|
1269
1302
|
constructor(_http) {
|
|
1270
|
-
this
|
|
1303
|
+
__publicField(this, "_http", _http);
|
|
1271
1304
|
}
|
|
1272
|
-
_http;
|
|
1273
1305
|
/**
|
|
1274
1306
|
* Create Agentic Checkout Session
|
|
1275
1307
|
*
|
|
@@ -1375,9 +1407,8 @@ var CheckoutSessionsClient = class {
|
|
|
1375
1407
|
};
|
|
1376
1408
|
var CompareClient = class {
|
|
1377
1409
|
constructor(_http) {
|
|
1378
|
-
this
|
|
1410
|
+
__publicField(this, "_http", _http);
|
|
1379
1411
|
}
|
|
1380
|
-
_http;
|
|
1381
1412
|
/**
|
|
1382
1413
|
* Compare Public Products
|
|
1383
1414
|
*
|
|
@@ -1398,9 +1429,8 @@ var CompareClient = class {
|
|
|
1398
1429
|
};
|
|
1399
1430
|
var DirectoryClient = class {
|
|
1400
1431
|
constructor(_http) {
|
|
1401
|
-
this
|
|
1432
|
+
__publicField(this, "_http", _http);
|
|
1402
1433
|
}
|
|
1403
|
-
_http;
|
|
1404
1434
|
/**
|
|
1405
1435
|
* List Public Merchants
|
|
1406
1436
|
*
|
|
@@ -1420,15 +1450,14 @@ var DirectoryClient = class {
|
|
|
1420
1450
|
};
|
|
1421
1451
|
var DocumentsClient = class {
|
|
1422
1452
|
constructor(_http) {
|
|
1423
|
-
this
|
|
1453
|
+
__publicField(this, "_http", _http);
|
|
1424
1454
|
}
|
|
1425
|
-
_http;
|
|
1426
1455
|
/**
|
|
1427
1456
|
* Upload Document
|
|
1428
1457
|
*
|
|
1429
1458
|
* Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.
|
|
1430
1459
|
|
|
1431
|
-
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.
|
|
1432
1461
|
*
|
|
1433
1462
|
* `POST /api/v1/documents`
|
|
1434
1463
|
*/
|
|
@@ -1462,9 +1491,8 @@ var DocumentsClient = class {
|
|
|
1462
1491
|
};
|
|
1463
1492
|
var EvaluateClient = class {
|
|
1464
1493
|
constructor(_http) {
|
|
1465
|
-
this
|
|
1494
|
+
__publicField(this, "_http", _http);
|
|
1466
1495
|
}
|
|
1467
|
-
_http;
|
|
1468
1496
|
/**
|
|
1469
1497
|
* Evaluate SKU Readiness
|
|
1470
1498
|
*
|
|
@@ -1485,9 +1513,8 @@ var EvaluateClient = class {
|
|
|
1485
1513
|
};
|
|
1486
1514
|
var FeedClient = class {
|
|
1487
1515
|
constructor(_http) {
|
|
1488
|
-
this
|
|
1516
|
+
__publicField(this, "_http", _http);
|
|
1489
1517
|
}
|
|
1490
|
-
_http;
|
|
1491
1518
|
/**
|
|
1492
1519
|
* Get Merchant LLM Feed
|
|
1493
1520
|
*
|
|
@@ -1508,9 +1535,8 @@ var FeedClient = class {
|
|
|
1508
1535
|
};
|
|
1509
1536
|
var ImagesClient = class {
|
|
1510
1537
|
constructor(_http) {
|
|
1511
|
-
this
|
|
1538
|
+
__publicField(this, "_http", _http);
|
|
1512
1539
|
}
|
|
1513
|
-
_http;
|
|
1514
1540
|
/**
|
|
1515
1541
|
* Generate Ghost Mannequin Image
|
|
1516
1542
|
*
|
|
@@ -1531,9 +1557,8 @@ var ImagesClient = class {
|
|
|
1531
1557
|
};
|
|
1532
1558
|
var JobsClient = class {
|
|
1533
1559
|
constructor(_http) {
|
|
1534
|
-
this
|
|
1560
|
+
__publicField(this, "_http", _http);
|
|
1535
1561
|
}
|
|
1536
|
-
_http;
|
|
1537
1562
|
/**
|
|
1538
1563
|
* Get Developer Job Status
|
|
1539
1564
|
*
|
|
@@ -1587,9 +1612,8 @@ var JobsClient = class {
|
|
|
1587
1612
|
};
|
|
1588
1613
|
var LooksClient = class {
|
|
1589
1614
|
constructor(_http) {
|
|
1590
|
-
this
|
|
1615
|
+
__publicField(this, "_http", _http);
|
|
1591
1616
|
}
|
|
1592
|
-
_http;
|
|
1593
1617
|
/**
|
|
1594
1618
|
* List Looks
|
|
1595
1619
|
*
|
|
@@ -1644,9 +1668,8 @@ var LooksClient = class {
|
|
|
1644
1668
|
};
|
|
1645
1669
|
var MarketplacesClient = class {
|
|
1646
1670
|
constructor(_http) {
|
|
1647
|
-
this
|
|
1671
|
+
__publicField(this, "_http", _http);
|
|
1648
1672
|
}
|
|
1649
|
-
_http;
|
|
1650
1673
|
/**
|
|
1651
1674
|
* List Connected Marketplaces
|
|
1652
1675
|
*
|
|
@@ -1667,9 +1690,8 @@ var MarketplacesClient = class {
|
|
|
1667
1690
|
};
|
|
1668
1691
|
var MerchantsClient = class {
|
|
1669
1692
|
constructor(_http) {
|
|
1670
|
-
this
|
|
1693
|
+
__publicField(this, "_http", _http);
|
|
1671
1694
|
}
|
|
1672
|
-
_http;
|
|
1673
1695
|
/**
|
|
1674
1696
|
* Get Public Merchant Manifest
|
|
1675
1697
|
*
|
|
@@ -1753,9 +1775,8 @@ var MerchantsClient = class {
|
|
|
1753
1775
|
};
|
|
1754
1776
|
var MonitorClient = class {
|
|
1755
1777
|
constructor(_http) {
|
|
1756
|
-
this
|
|
1778
|
+
__publicField(this, "_http", _http);
|
|
1757
1779
|
}
|
|
1758
|
-
_http;
|
|
1759
1780
|
/**
|
|
1760
1781
|
* Run AI Shelf Share Monitor
|
|
1761
1782
|
*
|
|
@@ -1776,9 +1797,8 @@ var MonitorClient = class {
|
|
|
1776
1797
|
};
|
|
1777
1798
|
var OauthClient = class {
|
|
1778
1799
|
constructor(_http) {
|
|
1779
|
-
this
|
|
1800
|
+
__publicField(this, "_http", _http);
|
|
1780
1801
|
}
|
|
1781
|
-
_http;
|
|
1782
1802
|
/**
|
|
1783
1803
|
* Revoke Access Token
|
|
1784
1804
|
*
|
|
@@ -1816,9 +1836,8 @@ var OauthClient = class {
|
|
|
1816
1836
|
};
|
|
1817
1837
|
var OrdersClient = class {
|
|
1818
1838
|
constructor(_http) {
|
|
1819
|
-
this
|
|
1839
|
+
__publicField(this, "_http", _http);
|
|
1820
1840
|
}
|
|
1821
|
-
_http;
|
|
1822
1841
|
/**
|
|
1823
1842
|
* List Orders
|
|
1824
1843
|
*
|
|
@@ -2031,9 +2050,8 @@ var OrdersClient = class {
|
|
|
2031
2050
|
};
|
|
2032
2051
|
var OrganizationsClient = class {
|
|
2033
2052
|
constructor(_http) {
|
|
2034
|
-
this
|
|
2053
|
+
__publicField(this, "_http", _http);
|
|
2035
2054
|
}
|
|
2036
|
-
_http;
|
|
2037
2055
|
/**
|
|
2038
2056
|
* Create Organization
|
|
2039
2057
|
*
|
|
@@ -2054,9 +2072,8 @@ var OrganizationsClient = class {
|
|
|
2054
2072
|
};
|
|
2055
2073
|
var PriceBooksClient = class {
|
|
2056
2074
|
constructor(_http) {
|
|
2057
|
-
this
|
|
2075
|
+
__publicField(this, "_http", _http);
|
|
2058
2076
|
}
|
|
2059
|
-
_http;
|
|
2060
2077
|
/**
|
|
2061
2078
|
* List Price Book Rules
|
|
2062
2079
|
*
|
|
@@ -2164,9 +2181,8 @@ var PriceBooksClient = class {
|
|
|
2164
2181
|
};
|
|
2165
2182
|
var ProductCategoriesClient = class {
|
|
2166
2183
|
constructor(_http) {
|
|
2167
|
-
this
|
|
2184
|
+
__publicField(this, "_http", _http);
|
|
2168
2185
|
}
|
|
2169
|
-
_http;
|
|
2170
2186
|
/**
|
|
2171
2187
|
* Recommend Marketplace Product Categories
|
|
2172
2188
|
*
|
|
@@ -2187,9 +2203,8 @@ var ProductCategoriesClient = class {
|
|
|
2187
2203
|
};
|
|
2188
2204
|
var ProductsClient = class {
|
|
2189
2205
|
constructor(_http) {
|
|
2190
|
-
this
|
|
2206
|
+
__publicField(this, "_http", _http);
|
|
2191
2207
|
}
|
|
2192
|
-
_http;
|
|
2193
2208
|
/**
|
|
2194
2209
|
* List Products
|
|
2195
2210
|
*
|
|
@@ -2549,9 +2564,8 @@ var ProductsClient = class {
|
|
|
2549
2564
|
};
|
|
2550
2565
|
var PromotionsClient = class {
|
|
2551
2566
|
constructor(_http) {
|
|
2552
|
-
this
|
|
2567
|
+
__publicField(this, "_http", _http);
|
|
2553
2568
|
}
|
|
2554
|
-
_http;
|
|
2555
2569
|
/**
|
|
2556
2570
|
* List Promotions
|
|
2557
2571
|
*
|
|
@@ -2730,9 +2744,8 @@ var PromotionsClient = class {
|
|
|
2730
2744
|
};
|
|
2731
2745
|
var ReturnsClient = class {
|
|
2732
2746
|
constructor(_http) {
|
|
2733
|
-
this
|
|
2747
|
+
__publicField(this, "_http", _http);
|
|
2734
2748
|
}
|
|
2735
|
-
_http;
|
|
2736
2749
|
/**
|
|
2737
2750
|
* List Returns
|
|
2738
2751
|
*
|
|
@@ -2786,9 +2799,8 @@ var ReturnsClient = class {
|
|
|
2786
2799
|
};
|
|
2787
2800
|
var ReviewsClient = class {
|
|
2788
2801
|
constructor(_http) {
|
|
2789
|
-
this
|
|
2802
|
+
__publicField(this, "_http", _http);
|
|
2790
2803
|
}
|
|
2791
|
-
_http;
|
|
2792
2804
|
/**
|
|
2793
2805
|
* List Reviews
|
|
2794
2806
|
*
|
|
@@ -2888,9 +2900,8 @@ var ReviewsClient = class {
|
|
|
2888
2900
|
};
|
|
2889
2901
|
var SearchClient = class {
|
|
2890
2902
|
constructor(_http) {
|
|
2891
|
-
this
|
|
2903
|
+
__publicField(this, "_http", _http);
|
|
2892
2904
|
}
|
|
2893
|
-
_http;
|
|
2894
2905
|
/**
|
|
2895
2906
|
* Search Public Merchant Products
|
|
2896
2907
|
*
|
|
@@ -2989,9 +3000,8 @@ var SearchClient = class {
|
|
|
2989
3000
|
};
|
|
2990
3001
|
var SettlementsClient = class {
|
|
2991
3002
|
constructor(_http) {
|
|
2992
|
-
this
|
|
3003
|
+
__publicField(this, "_http", _http);
|
|
2993
3004
|
}
|
|
2994
|
-
_http;
|
|
2995
3005
|
/**
|
|
2996
3006
|
* List Settlements
|
|
2997
3007
|
*
|
|
@@ -3082,9 +3092,8 @@ var SettlementsClient = class {
|
|
|
3082
3092
|
};
|
|
3083
3093
|
var SyncClient = class {
|
|
3084
3094
|
constructor(_http) {
|
|
3085
|
-
this
|
|
3095
|
+
__publicField(this, "_http", _http);
|
|
3086
3096
|
}
|
|
3087
|
-
_http;
|
|
3088
3097
|
/**
|
|
3089
3098
|
* Sync Product Commercial Fields
|
|
3090
3099
|
*
|
|
@@ -3105,9 +3114,8 @@ var SyncClient = class {
|
|
|
3105
3114
|
};
|
|
3106
3115
|
var ThreadsClient = class {
|
|
3107
3116
|
constructor(_http) {
|
|
3108
|
-
this
|
|
3117
|
+
__publicField(this, "_http", _http);
|
|
3109
3118
|
}
|
|
3110
|
-
_http;
|
|
3111
3119
|
/**
|
|
3112
3120
|
* Get Thread Status
|
|
3113
3121
|
*
|
|
@@ -3132,9 +3140,8 @@ var ThreadsClient = class {
|
|
|
3132
3140
|
};
|
|
3133
3141
|
var UcpCheckoutSessionsClient = class {
|
|
3134
3142
|
constructor(_http) {
|
|
3135
|
-
this
|
|
3143
|
+
__publicField(this, "_http", _http);
|
|
3136
3144
|
}
|
|
3137
|
-
_http;
|
|
3138
3145
|
/**
|
|
3139
3146
|
* Create UCP Checkout Session
|
|
3140
3147
|
*
|
|
@@ -3240,9 +3247,8 @@ var UcpCheckoutSessionsClient = class {
|
|
|
3240
3247
|
};
|
|
3241
3248
|
var UcpOrdersClient = class {
|
|
3242
3249
|
constructor(_http) {
|
|
3243
|
-
this
|
|
3250
|
+
__publicField(this, "_http", _http);
|
|
3244
3251
|
}
|
|
3245
|
-
_http;
|
|
3246
3252
|
/**
|
|
3247
3253
|
* Get UCP Order
|
|
3248
3254
|
*
|
|
@@ -3263,19 +3269,17 @@ var UcpOrdersClient = class {
|
|
|
3263
3269
|
};
|
|
3264
3270
|
var UcpClient = class {
|
|
3265
3271
|
constructor(_http) {
|
|
3266
|
-
this
|
|
3272
|
+
__publicField(this, "_http", _http);
|
|
3273
|
+
__publicField(this, "checkoutSessions");
|
|
3274
|
+
__publicField(this, "orders");
|
|
3267
3275
|
this.checkoutSessions = new UcpCheckoutSessionsClient(this._http);
|
|
3268
3276
|
this.orders = new UcpOrdersClient(this._http);
|
|
3269
3277
|
}
|
|
3270
|
-
_http;
|
|
3271
|
-
checkoutSessions;
|
|
3272
|
-
orders;
|
|
3273
3278
|
};
|
|
3274
3279
|
var WebhookEventsClient = class {
|
|
3275
3280
|
constructor(_http) {
|
|
3276
|
-
this
|
|
3281
|
+
__publicField(this, "_http", _http);
|
|
3277
3282
|
}
|
|
3278
|
-
_http;
|
|
3279
3283
|
/**
|
|
3280
3284
|
* List Webhook Events
|
|
3281
3285
|
*
|
|
@@ -3296,9 +3300,8 @@ var WebhookEventsClient = class {
|
|
|
3296
3300
|
};
|
|
3297
3301
|
var WebhooksClient = class {
|
|
3298
3302
|
constructor(_http) {
|
|
3299
|
-
this
|
|
3303
|
+
__publicField(this, "_http", _http);
|
|
3300
3304
|
}
|
|
3301
|
-
_http;
|
|
3302
3305
|
/**
|
|
3303
3306
|
* List Developer Webhooks
|
|
3304
3307
|
*
|
|
@@ -3335,9 +3338,8 @@ var WebhooksClient = class {
|
|
|
3335
3338
|
};
|
|
3336
3339
|
var ZaloraClient = class {
|
|
3337
3340
|
constructor(_http) {
|
|
3338
|
-
this
|
|
3341
|
+
__publicField(this, "_http", _http);
|
|
3339
3342
|
}
|
|
3340
|
-
_http;
|
|
3341
3343
|
/**
|
|
3342
3344
|
* Get Selected Zalora Import Status
|
|
3343
3345
|
*
|
|
@@ -3383,10 +3385,46 @@ var ZaloraClient = class {
|
|
|
3383
3385
|
};
|
|
3384
3386
|
var OmniGeneratedClient = class {
|
|
3385
3387
|
constructor(_http) {
|
|
3386
|
-
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");
|
|
3387
3424
|
this.agents = new AgentsClient(this._http);
|
|
3388
3425
|
this.analytics = new AnalyticsClient(this._http);
|
|
3389
3426
|
this.aop = new AopClient(this._http);
|
|
3427
|
+
this.brandsgateway = new BrandsgatewayClient(this._http);
|
|
3390
3428
|
this.campaigns = new CampaignsClient(this._http);
|
|
3391
3429
|
this.catalog = new CatalogClient(this._http);
|
|
3392
3430
|
this.checkoutSessions = new CheckoutSessionsClient(this._http);
|
|
@@ -3419,41 +3457,6 @@ var OmniGeneratedClient = class {
|
|
|
3419
3457
|
this.webhooks = new WebhooksClient(this._http);
|
|
3420
3458
|
this.zalora = new ZaloraClient(this._http);
|
|
3421
3459
|
}
|
|
3422
|
-
_http;
|
|
3423
|
-
agents;
|
|
3424
|
-
analytics;
|
|
3425
|
-
aop;
|
|
3426
|
-
campaigns;
|
|
3427
|
-
catalog;
|
|
3428
|
-
checkoutSessions;
|
|
3429
|
-
compare;
|
|
3430
|
-
directory;
|
|
3431
|
-
documents;
|
|
3432
|
-
evaluate;
|
|
3433
|
-
feed;
|
|
3434
|
-
images;
|
|
3435
|
-
jobs;
|
|
3436
|
-
looks;
|
|
3437
|
-
marketplaces;
|
|
3438
|
-
merchants;
|
|
3439
|
-
monitor;
|
|
3440
|
-
oauth;
|
|
3441
|
-
orders;
|
|
3442
|
-
organizations;
|
|
3443
|
-
priceBooks;
|
|
3444
|
-
productCategories;
|
|
3445
|
-
products;
|
|
3446
|
-
promotions;
|
|
3447
|
-
returns;
|
|
3448
|
-
reviews;
|
|
3449
|
-
search;
|
|
3450
|
-
settlements;
|
|
3451
|
-
sync;
|
|
3452
|
-
threads;
|
|
3453
|
-
ucp;
|
|
3454
|
-
webhookEvents;
|
|
3455
|
-
webhooks;
|
|
3456
|
-
zalora;
|
|
3457
3460
|
};
|
|
3458
3461
|
|
|
3459
3462
|
// src/Client.ts
|