@aurigma/axios-storefront-api-client 2.51.1 → 2.52.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/storefront-api-client.d.ts +38 -7
- package/dist/cjs/storefront-api-client.js +171 -1
- package/dist/cjs/storefront-api-client.js.map +1 -1
- package/dist/esm/storefront-api-client.d.ts +38 -7
- package/dist/esm/storefront-api-client.js +171 -1
- package/dist/esm/storefront-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -338,11 +338,12 @@ export interface IProjectsApiClient {
|
|
|
338
338
|
* @param search (optional) Search string for partial match.
|
|
339
339
|
* @param orderId (optional) Identifier of corresponding order.
|
|
340
340
|
* @param processingStatus (optional) Project processing status filter.
|
|
341
|
+
* @param includeObsolete (optional) Indicates if obsolete projects prepared to be removed should be included to result.
|
|
341
342
|
* @param storefrontId (optional) Storefront identifier.
|
|
342
343
|
* @param tenantId (optional) Tenant identifier.
|
|
343
344
|
* @return Success
|
|
344
345
|
*/
|
|
345
|
-
getAll(ownerId?: string | null | undefined, productReference?: string | null | undefined, status?: number | null | undefined, datePeriod?: DatePeriod | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, orderId?: string | null | undefined, processingStatus?: ProjectProcessingStatus | null | undefined, storefrontId?: number | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProjectDto>;
|
|
346
|
+
getAll(ownerId?: string | null | undefined, productReference?: string | null | undefined, status?: number | null | undefined, datePeriod?: DatePeriod | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, orderId?: string | null | undefined, processingStatus?: ProjectProcessingStatus | null | undefined, includeObsolete?: boolean | undefined, storefrontId?: number | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProjectDto>;
|
|
346
347
|
/**
|
|
347
348
|
* Returns a project by identifier.
|
|
348
349
|
* @param id Project identifier.
|
|
@@ -426,6 +427,14 @@ export interface IProjectsApiClient {
|
|
|
426
427
|
* @return Success
|
|
427
428
|
*/
|
|
428
429
|
forceStatus(id: number, status: number, tenantId?: number | null | undefined): Promise<ProjectStatusDto>;
|
|
430
|
+
/**
|
|
431
|
+
* Deletes specified projects.
|
|
432
|
+
These projects will be hide from projects list immediately, but complete projects data cleaning will take some additional time.
|
|
433
|
+
* @param tenantId (optional) Tenant identifier.
|
|
434
|
+
* @param body (optional)
|
|
435
|
+
* @return Success
|
|
436
|
+
*/
|
|
437
|
+
batchDelete(tenantId?: number | null | undefined, body?: BatchDeleteProjectsInput | null | undefined): Promise<PagedOfProjectStatusDto>;
|
|
429
438
|
/**
|
|
430
439
|
* Returns a list of all existing project statuses.
|
|
431
440
|
* @param tenantId (optional) Tenant identifier.
|
|
@@ -517,11 +526,12 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
|
|
|
517
526
|
* @param search (optional) Search string for partial match.
|
|
518
527
|
* @param orderId (optional) Identifier of corresponding order.
|
|
519
528
|
* @param processingStatus (optional) Project processing status filter.
|
|
529
|
+
* @param includeObsolete (optional) Indicates if obsolete projects prepared to be removed should be included to result.
|
|
520
530
|
* @param storefrontId (optional) Storefront identifier.
|
|
521
531
|
* @param tenantId (optional) Tenant identifier.
|
|
522
532
|
* @return Success
|
|
523
533
|
*/
|
|
524
|
-
getAll(ownerId?: string | null | undefined, productReference?: string | null | undefined, status?: number | null | undefined, datePeriod?: DatePeriod | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, orderId?: string | null | undefined, processingStatus?: ProjectProcessingStatus | null | undefined, storefrontId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProjectDto>;
|
|
534
|
+
getAll(ownerId?: string | null | undefined, productReference?: string | null | undefined, status?: number | null | undefined, datePeriod?: DatePeriod | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, orderId?: string | null | undefined, processingStatus?: ProjectProcessingStatus | null | undefined, includeObsolete?: boolean | undefined, storefrontId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProjectDto>;
|
|
525
535
|
protected processGetAll(response: AxiosResponse): Promise<PagedOfProjectDto>;
|
|
526
536
|
/**
|
|
527
537
|
* Returns a project by identifier.
|
|
@@ -617,6 +627,15 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
|
|
|
617
627
|
*/
|
|
618
628
|
forceStatus(id: number, status: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectStatusDto>;
|
|
619
629
|
protected processForceStatus(response: AxiosResponse): Promise<ProjectStatusDto>;
|
|
630
|
+
/**
|
|
631
|
+
* Deletes specified projects.
|
|
632
|
+
These projects will be hide from projects list immediately, but complete projects data cleaning will take some additional time.
|
|
633
|
+
* @param tenantId (optional) Tenant identifier.
|
|
634
|
+
* @param body (optional)
|
|
635
|
+
* @return Success
|
|
636
|
+
*/
|
|
637
|
+
batchDelete(tenantId?: number | null | undefined, body?: BatchDeleteProjectsInput | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProjectStatusDto>;
|
|
638
|
+
protected processBatchDelete(response: AxiosResponse): Promise<PagedOfProjectStatusDto>;
|
|
620
639
|
/**
|
|
621
640
|
* Returns a list of all existing project statuses.
|
|
622
641
|
* @param tenantId (optional) Tenant identifier.
|
|
@@ -1159,6 +1178,11 @@ export interface PagedOfProjectDto {
|
|
|
1159
1178
|
/** Items list. */
|
|
1160
1179
|
items?: ProjectDto[] | null;
|
|
1161
1180
|
}
|
|
1181
|
+
/** Conflict descritpion. */
|
|
1182
|
+
export interface ConflictDto {
|
|
1183
|
+
/** Conflict description. */
|
|
1184
|
+
description?: string | null;
|
|
1185
|
+
}
|
|
1162
1186
|
/** Dto class, containing create operation parameters for a project item resource. */
|
|
1163
1187
|
export interface ProjectItemResourceParametersDto {
|
|
1164
1188
|
/** Resource URL. */
|
|
@@ -1360,11 +1384,6 @@ export interface PagedOfProjectTransitionDto {
|
|
|
1360
1384
|
/** Items list. */
|
|
1361
1385
|
items?: ProjectTransitionDto[] | null;
|
|
1362
1386
|
}
|
|
1363
|
-
/** Dto class, containing information about the project transition conflict. */
|
|
1364
|
-
export interface ProjectTransitionConflictDto {
|
|
1365
|
-
/** A list of all available status transitions for the project. */
|
|
1366
|
-
availableTransitions?: ProjectTransitionDto[] | null;
|
|
1367
|
-
}
|
|
1368
1387
|
/** Dto class, containing the information about project status. */
|
|
1369
1388
|
export interface ProjectStatusDto {
|
|
1370
1389
|
/** Status code. */
|
|
@@ -1372,6 +1391,18 @@ export interface ProjectStatusDto {
|
|
|
1372
1391
|
/** Status display name. */
|
|
1373
1392
|
displayName?: string | null;
|
|
1374
1393
|
}
|
|
1394
|
+
/** Dto class, containing information about the project transition conflict. */
|
|
1395
|
+
export interface ProjectTransitionConflictDto {
|
|
1396
|
+
/** A list of all available status transitions for the project. */
|
|
1397
|
+
availableTransitions?: ProjectTransitionDto[] | null;
|
|
1398
|
+
/** Conflict description. */
|
|
1399
|
+
description?: string | null;
|
|
1400
|
+
}
|
|
1401
|
+
/** Dto class, containing parameters for the 'projects batch delete' operation. */
|
|
1402
|
+
export interface BatchDeleteProjectsInput {
|
|
1403
|
+
/** Identifiers of projects that should be deleted. */
|
|
1404
|
+
ids?: number[] | null;
|
|
1405
|
+
}
|
|
1375
1406
|
/** Paged list of items. */
|
|
1376
1407
|
export interface PagedOfProjectStatusDto {
|
|
1377
1408
|
/** Items count. */
|
|
@@ -1301,11 +1301,12 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1301
1301
|
* @param search (optional) Search string for partial match.
|
|
1302
1302
|
* @param orderId (optional) Identifier of corresponding order.
|
|
1303
1303
|
* @param processingStatus (optional) Project processing status filter.
|
|
1304
|
+
* @param includeObsolete (optional) Indicates if obsolete projects prepared to be removed should be included to result.
|
|
1304
1305
|
* @param storefrontId (optional) Storefront identifier.
|
|
1305
1306
|
* @param tenantId (optional) Tenant identifier.
|
|
1306
1307
|
* @return Success
|
|
1307
1308
|
*/
|
|
1308
|
-
getAll(ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, processingStatus, storefrontId, tenantId, cancelToken) {
|
|
1309
|
+
getAll(ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, processingStatus, includeObsolete, storefrontId, tenantId, cancelToken) {
|
|
1309
1310
|
let url_ = this.baseUrl + "/api/storefront/v1/projects?";
|
|
1310
1311
|
if (ownerId !== undefined && ownerId !== null)
|
|
1311
1312
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
@@ -1329,6 +1330,10 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1329
1330
|
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
1330
1331
|
if (processingStatus !== undefined && processingStatus !== null)
|
|
1331
1332
|
url_ += "processingStatus=" + encodeURIComponent("" + processingStatus) + "&";
|
|
1333
|
+
if (includeObsolete === null)
|
|
1334
|
+
throw new Error("The parameter 'includeObsolete' cannot be null.");
|
|
1335
|
+
else if (includeObsolete !== undefined)
|
|
1336
|
+
url_ += "includeObsolete=" + encodeURIComponent("" + includeObsolete) + "&";
|
|
1332
1337
|
if (storefrontId !== undefined && storefrontId !== null)
|
|
1333
1338
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
1334
1339
|
if (tenantId !== undefined && tenantId !== null)
|
|
@@ -1445,6 +1450,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1445
1450
|
result404 = JSON.parse(resultData404);
|
|
1446
1451
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1447
1452
|
}
|
|
1453
|
+
else if (status === 409) {
|
|
1454
|
+
const _responseText = response.data;
|
|
1455
|
+
let result409 = null;
|
|
1456
|
+
let resultData409 = _responseText;
|
|
1457
|
+
result409 = JSON.parse(resultData409);
|
|
1458
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1459
|
+
}
|
|
1448
1460
|
else if (status === 401) {
|
|
1449
1461
|
const _responseText = response.data;
|
|
1450
1462
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -1513,6 +1525,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1513
1525
|
result404 = JSON.parse(resultData404);
|
|
1514
1526
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1515
1527
|
}
|
|
1528
|
+
else if (status === 409) {
|
|
1529
|
+
const _responseText = response.data;
|
|
1530
|
+
let result409 = null;
|
|
1531
|
+
let resultData409 = _responseText;
|
|
1532
|
+
result409 = JSON.parse(resultData409);
|
|
1533
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1534
|
+
}
|
|
1516
1535
|
else if (status === 401) {
|
|
1517
1536
|
const _responseText = response.data;
|
|
1518
1537
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -1586,6 +1605,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1586
1605
|
result404 = JSON.parse(resultData404);
|
|
1587
1606
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1588
1607
|
}
|
|
1608
|
+
else if (status === 409) {
|
|
1609
|
+
const _responseText = response.data;
|
|
1610
|
+
let result409 = null;
|
|
1611
|
+
let resultData409 = _responseText;
|
|
1612
|
+
result409 = JSON.parse(resultData409);
|
|
1613
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1614
|
+
}
|
|
1589
1615
|
else if (status === 401) {
|
|
1590
1616
|
const _responseText = response.data;
|
|
1591
1617
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -1659,6 +1685,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1659
1685
|
result404 = resultData404;
|
|
1660
1686
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1661
1687
|
}
|
|
1688
|
+
else if (status === 409) {
|
|
1689
|
+
const _responseText = response.data;
|
|
1690
|
+
let result409 = null;
|
|
1691
|
+
let resultData409 = _responseText;
|
|
1692
|
+
result409 = resultData409;
|
|
1693
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1694
|
+
}
|
|
1662
1695
|
else if (status === 401) {
|
|
1663
1696
|
const _responseText = response.data;
|
|
1664
1697
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2261,6 +2294,80 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2261
2294
|
result404 = JSON.parse(resultData404);
|
|
2262
2295
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2263
2296
|
}
|
|
2297
|
+
else if (status === 409) {
|
|
2298
|
+
const _responseText = response.data;
|
|
2299
|
+
let result409 = null;
|
|
2300
|
+
let resultData409 = _responseText;
|
|
2301
|
+
result409 = JSON.parse(resultData409);
|
|
2302
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2303
|
+
}
|
|
2304
|
+
else if (status === 401) {
|
|
2305
|
+
const _responseText = response.data;
|
|
2306
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2307
|
+
}
|
|
2308
|
+
else if (status === 403) {
|
|
2309
|
+
const _responseText = response.data;
|
|
2310
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2311
|
+
}
|
|
2312
|
+
else if (status !== 200 && status !== 204) {
|
|
2313
|
+
const _responseText = response.data;
|
|
2314
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2315
|
+
}
|
|
2316
|
+
return Promise.resolve(null);
|
|
2317
|
+
}
|
|
2318
|
+
/**
|
|
2319
|
+
* Deletes specified projects.
|
|
2320
|
+
These projects will be hide from projects list immediately, but complete projects data cleaning will take some additional time.
|
|
2321
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2322
|
+
* @param body (optional)
|
|
2323
|
+
* @return Success
|
|
2324
|
+
*/
|
|
2325
|
+
batchDelete(tenantId, body, cancelToken) {
|
|
2326
|
+
let url_ = this.baseUrl + "/api/storefront/v1/projects/batch-delete?";
|
|
2327
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
2328
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2329
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2330
|
+
const content_ = JSON.stringify(body);
|
|
2331
|
+
let options_ = {
|
|
2332
|
+
data: content_,
|
|
2333
|
+
method: "DELETE",
|
|
2334
|
+
url: url_,
|
|
2335
|
+
headers: {
|
|
2336
|
+
"Content-Type": "application/json-patch+json",
|
|
2337
|
+
"Accept": "text/plain"
|
|
2338
|
+
},
|
|
2339
|
+
cancelToken
|
|
2340
|
+
};
|
|
2341
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2342
|
+
return this.instance.request(transformedOptions_);
|
|
2343
|
+
}).catch((_error) => {
|
|
2344
|
+
if (isAxiosError(_error) && _error.response) {
|
|
2345
|
+
return _error.response;
|
|
2346
|
+
}
|
|
2347
|
+
else {
|
|
2348
|
+
throw _error;
|
|
2349
|
+
}
|
|
2350
|
+
}).then((_response) => {
|
|
2351
|
+
return this.transformResult(url_, _response, (_response) => this.processBatchDelete(_response));
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2354
|
+
processBatchDelete(response) {
|
|
2355
|
+
const status = response.status;
|
|
2356
|
+
let _headers = {};
|
|
2357
|
+
if (response.headers && typeof response.headers === "object") {
|
|
2358
|
+
for (let k in response.headers) {
|
|
2359
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
2360
|
+
_headers[k] = response.headers[k];
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
if (status === 200) {
|
|
2365
|
+
const _responseText = response.data;
|
|
2366
|
+
let result200 = null;
|
|
2367
|
+
let resultData200 = _responseText;
|
|
2368
|
+
result200 = JSON.parse(resultData200);
|
|
2369
|
+
return Promise.resolve(result200);
|
|
2370
|
+
}
|
|
2264
2371
|
else if (status === 401) {
|
|
2265
2372
|
const _responseText = response.data;
|
|
2266
2373
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2462,6 +2569,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2462
2569
|
result200 = JSON.parse(resultData200);
|
|
2463
2570
|
return Promise.resolve(result200);
|
|
2464
2571
|
}
|
|
2572
|
+
else if (status === 409) {
|
|
2573
|
+
const _responseText = response.data;
|
|
2574
|
+
let result409 = null;
|
|
2575
|
+
let resultData409 = _responseText;
|
|
2576
|
+
result409 = JSON.parse(resultData409);
|
|
2577
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2578
|
+
}
|
|
2465
2579
|
else if (status === 401) {
|
|
2466
2580
|
const _responseText = response.data;
|
|
2467
2581
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2549,6 +2663,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2549
2663
|
result404 = JSON.parse(resultData404);
|
|
2550
2664
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2551
2665
|
}
|
|
2666
|
+
else if (status === 409) {
|
|
2667
|
+
const _responseText = response.data;
|
|
2668
|
+
let result409 = null;
|
|
2669
|
+
let resultData409 = _responseText;
|
|
2670
|
+
result409 = JSON.parse(resultData409);
|
|
2671
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2672
|
+
}
|
|
2552
2673
|
else if (status === 401) {
|
|
2553
2674
|
const _responseText = response.data;
|
|
2554
2675
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2625,6 +2746,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2625
2746
|
result404 = JSON.parse(resultData404);
|
|
2626
2747
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2627
2748
|
}
|
|
2749
|
+
else if (status === 409) {
|
|
2750
|
+
const _responseText = response.data;
|
|
2751
|
+
let result409 = null;
|
|
2752
|
+
let resultData409 = _responseText;
|
|
2753
|
+
result409 = JSON.parse(resultData409);
|
|
2754
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2755
|
+
}
|
|
2628
2756
|
else if (status === 401) {
|
|
2629
2757
|
const _responseText = response.data;
|
|
2630
2758
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2696,6 +2824,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2696
2824
|
result404 = JSON.parse(resultData404);
|
|
2697
2825
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2698
2826
|
}
|
|
2827
|
+
else if (status === 409) {
|
|
2828
|
+
const _responseText = response.data;
|
|
2829
|
+
let result409 = null;
|
|
2830
|
+
let resultData409 = _responseText;
|
|
2831
|
+
result409 = JSON.parse(resultData409);
|
|
2832
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2833
|
+
}
|
|
2699
2834
|
else if (status === 401) {
|
|
2700
2835
|
const _responseText = response.data;
|
|
2701
2836
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2767,6 +2902,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2767
2902
|
result404 = JSON.parse(resultData404);
|
|
2768
2903
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2769
2904
|
}
|
|
2905
|
+
else if (status === 409) {
|
|
2906
|
+
const _responseText = response.data;
|
|
2907
|
+
let result409 = null;
|
|
2908
|
+
let resultData409 = _responseText;
|
|
2909
|
+
result409 = JSON.parse(resultData409);
|
|
2910
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2911
|
+
}
|
|
2770
2912
|
else if (status === 401) {
|
|
2771
2913
|
const _responseText = response.data;
|
|
2772
2914
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2840,6 +2982,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2840
2982
|
result404 = JSON.parse(resultData404);
|
|
2841
2983
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2842
2984
|
}
|
|
2985
|
+
else if (status === 409) {
|
|
2986
|
+
const _responseText = response.data;
|
|
2987
|
+
let result409 = null;
|
|
2988
|
+
let resultData409 = _responseText;
|
|
2989
|
+
result409 = JSON.parse(resultData409);
|
|
2990
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2991
|
+
}
|
|
2843
2992
|
else if (status === 401) {
|
|
2844
2993
|
const _responseText = response.data;
|
|
2845
2994
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2916,6 +3065,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
2916
3065
|
result404 = JSON.parse(resultData404);
|
|
2917
3066
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2918
3067
|
}
|
|
3068
|
+
else if (status === 409) {
|
|
3069
|
+
const _responseText = response.data;
|
|
3070
|
+
let result409 = null;
|
|
3071
|
+
let resultData409 = _responseText;
|
|
3072
|
+
result409 = JSON.parse(resultData409);
|
|
3073
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3074
|
+
}
|
|
2919
3075
|
else if (status === 401) {
|
|
2920
3076
|
const _responseText = response.data;
|
|
2921
3077
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3077,6 +3233,13 @@ class StorefrontsApiClient extends ApiClientBase {
|
|
|
3077
3233
|
result404 = JSON.parse(resultData404);
|
|
3078
3234
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3079
3235
|
}
|
|
3236
|
+
else if (status === 409) {
|
|
3237
|
+
const _responseText = response.data;
|
|
3238
|
+
let result409 = null;
|
|
3239
|
+
let resultData409 = _responseText;
|
|
3240
|
+
result409 = JSON.parse(resultData409);
|
|
3241
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3242
|
+
}
|
|
3080
3243
|
else if (status === 401) {
|
|
3081
3244
|
const _responseText = response.data;
|
|
3082
3245
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -3326,6 +3489,13 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
3326
3489
|
result404 = JSON.parse(resultData404);
|
|
3327
3490
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3328
3491
|
}
|
|
3492
|
+
else if (status === 409) {
|
|
3493
|
+
const _responseText = response.data;
|
|
3494
|
+
let result409 = null;
|
|
3495
|
+
let resultData409 = _responseText;
|
|
3496
|
+
result409 = JSON.parse(resultData409);
|
|
3497
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3498
|
+
}
|
|
3329
3499
|
else if (status === 401) {
|
|
3330
3500
|
const _responseText = response.data;
|
|
3331
3501
|
return throwException("Unauthorized", status, _responseText, _headers);
|