@digital8/lighting-illusions-ts-sdk 0.0.1159 → 0.0.1160

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.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +4 -8
  2. package/README.md +16 -16
  3. package/dist/apis/AdminApi.d.ts +63 -0
  4. package/dist/apis/AdminApi.js +254 -0
  5. package/dist/apis/OverlayTemplateApi.d.ts +6 -6
  6. package/dist/apis/OverlayTemplateApi.js +1 -1
  7. package/dist/apis/ProductApi.d.ts +11 -12
  8. package/dist/apis/ProductApi.js +4 -6
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +0 -6
  12. package/dist/models/AttachAssetsOverlayTemplateRequest.js +0 -2
  13. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  14. package/dist/models/ExternalApiLogResource.js +3 -1
  15. package/dist/models/GetProductChildrenOverlayTemplateRequest.d.ts +190 -0
  16. package/dist/models/{IndexProductChildRequest.js → GetProductChildrenOverlayTemplateRequest.js} +17 -17
  17. package/dist/models/index.d.ts +1 -4
  18. package/dist/models/index.js +1 -4
  19. package/docs/AdminApi.md +206 -0
  20. package/docs/AttachAssetsOverlayTemplateRequest.md +0 -2
  21. package/docs/{IndexProductChildRequest.md → GetProductChildrenOverlayTemplateRequest.md} +4 -4
  22. package/docs/OverlayTemplateApi.md +7 -7
  23. package/docs/ProductApi.md +17 -20
  24. package/package.json +1 -1
  25. package/src/apis/AdminApi.ts +165 -0
  26. package/src/apis/OverlayTemplateApi.ts +9 -9
  27. package/src/apis/ProductApi.ts +20 -27
  28. package/src/apis/index.ts +1 -0
  29. package/src/models/AttachAssetsOverlayTemplateRequest.ts +0 -8
  30. package/src/models/ExternalApiLogResource.ts +3 -2
  31. package/src/models/{IndexProductChildRequest.ts → GetProductChildrenOverlayTemplateRequest.ts} +42 -42
  32. package/src/models/index.ts +1 -4
  33. package/dist/models/AssetWithOverlayLinkResource.d.ts +0 -93
  34. package/dist/models/AssetWithOverlayLinkResource.js +0 -90
  35. package/dist/models/AssetWithOverlayLinkResourceArrayResponse.d.ts +0 -33
  36. package/dist/models/AssetWithOverlayLinkResourceArrayResponse.js +0 -50
  37. package/dist/models/IndexProductChildRequest.d.ts +0 -190
  38. package/dist/models/ShowAssetsProductChildRequest.d.ts +0 -32
  39. package/dist/models/ShowAssetsProductChildRequest.js +0 -49
  40. package/docs/AssetWithOverlayLinkResource.md +0 -54
  41. package/docs/AssetWithOverlayLinkResourceArrayResponse.md +0 -34
  42. package/docs/ShowAssetsProductChildRequest.md +0 -34
  43. package/src/models/AssetWithOverlayLinkResource.ts +0 -163
  44. package/src/models/AssetWithOverlayLinkResourceArrayResponse.ts +0 -73
  45. package/src/models/ShowAssetsProductChildRequest.ts +0 -65
@@ -2,6 +2,7 @@
2
2
  .npmignore
3
3
  .openapi-generator-ignore
4
4
  README.md
5
+ docs/AdminApi.md
5
6
  docs/AssetApi.md
6
7
  docs/AssetFileForUploadResource.md
7
8
  docs/AssetFileForUploadResourceArrayResponse.md
@@ -11,8 +12,6 @@ docs/AssetLiteResource.md
11
12
  docs/AssetLiteResourceArrayResponse.md
12
13
  docs/AssetResource.md
13
14
  docs/AssetResourceArrayResponse.md
14
- docs/AssetWithOverlayLinkResource.md
15
- docs/AssetWithOverlayLinkResourceArrayResponse.md
16
15
  docs/AttachAccessoriesProductChildRequest.md
17
16
  docs/AttachAssetsOverlayTemplateRequest.md
18
17
  docs/AttachAttributeProductTypeRequest.md
@@ -87,6 +86,7 @@ docs/GetAllProductRequest.md
87
86
  docs/GetAllProductTypeRequest.md
88
87
  docs/GetAllSupplierRequest.md
89
88
  docs/GetHierarchyProductCategoryRequest.md
89
+ docs/GetProductChildrenOverlayTemplateRequest.md
90
90
  docs/GetUniqueEndpointsExternalApiLogRequest.md
91
91
  docs/GlobalSearchCategoryResource.md
92
92
  docs/GlobalSearchCategoryResourceArrayResponse.md
@@ -106,7 +106,6 @@ docs/IndexDocumentRequest.md
106
106
  docs/IndexExternalApiLogRequest.md
107
107
  docs/IndexOverlayTemplateRequest.md
108
108
  docs/IndexProductCategoryRequest.md
109
- docs/IndexProductChildRequest.md
110
109
  docs/IndexProductRequest.md
111
110
  docs/IndexProductTypeRequest.md
112
111
  docs/IndexSiteNotificationRequest.md
@@ -228,7 +227,6 @@ docs/ProductTypeResource.md
228
227
  docs/ProductTypeResourceArrayResponse.md
229
228
  docs/SEOResource.md
230
229
  docs/SEOResourceArrayResponse.md
231
- docs/ShowAssetsProductChildRequest.md
232
230
  docs/SiteApi.md
233
231
  docs/SiteConfigResource.md
234
232
  docs/SiteConfigResourceArrayResponse.md
@@ -311,6 +309,7 @@ docs/WishlistCheckResourceArrayResponse.md
311
309
  docs/WishlistToggleResource.md
312
310
  docs/WishlistToggleResourceArrayResponse.md
313
311
  package.json
312
+ src/apis/AdminApi.ts
314
313
  src/apis/AssetApi.ts
315
314
  src/apis/AttributeApi.ts
316
315
  src/apis/DefinitionApi.ts
@@ -334,8 +333,6 @@ src/models/AssetLiteResource.ts
334
333
  src/models/AssetLiteResourceArrayResponse.ts
335
334
  src/models/AssetResource.ts
336
335
  src/models/AssetResourceArrayResponse.ts
337
- src/models/AssetWithOverlayLinkResource.ts
338
- src/models/AssetWithOverlayLinkResourceArrayResponse.ts
339
336
  src/models/AttachAccessoriesProductChildRequest.ts
340
337
  src/models/AttachAssetsOverlayTemplateRequest.ts
341
338
  src/models/AttachAttributeProductTypeRequest.ts
@@ -406,6 +403,7 @@ src/models/GetAllProductRequest.ts
406
403
  src/models/GetAllProductTypeRequest.ts
407
404
  src/models/GetAllSupplierRequest.ts
408
405
  src/models/GetHierarchyProductCategoryRequest.ts
406
+ src/models/GetProductChildrenOverlayTemplateRequest.ts
409
407
  src/models/GetUniqueEndpointsExternalApiLogRequest.ts
410
408
  src/models/GlobalSearchCategoryResource.ts
411
409
  src/models/GlobalSearchCategoryResourceArrayResponse.ts
@@ -424,7 +422,6 @@ src/models/IndexDocumentRequest.ts
424
422
  src/models/IndexExternalApiLogRequest.ts
425
423
  src/models/IndexOverlayTemplateRequest.ts
426
424
  src/models/IndexProductCategoryRequest.ts
427
- src/models/IndexProductChildRequest.ts
428
425
  src/models/IndexProductRequest.ts
429
426
  src/models/IndexProductTypeRequest.ts
430
427
  src/models/IndexSiteNotificationRequest.ts
@@ -542,7 +539,6 @@ src/models/ProductTypeResource.ts
542
539
  src/models/ProductTypeResourceArrayResponse.ts
543
540
  src/models/SEOResource.ts
544
541
  src/models/SEOResourceArrayResponse.ts
545
- src/models/ShowAssetsProductChildRequest.ts
546
542
  src/models/SiteConfigResource.ts
547
543
  src/models/SiteConfigResourceArrayResponse.ts
548
544
  src/models/SiteListResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1159
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1160
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -16,21 +16,21 @@ Next, try it out.
16
16
  ```ts
17
17
  import {
18
18
  Configuration,
19
- AssetApi,
19
+ AdminApi,
20
20
  } from '@digital8/lighting-illusions-ts-sdk';
21
- import type { DestroyAssetForAssetableRequest } from '@digital8/lighting-illusions-ts-sdk';
21
+ import type { GenerateGoogleFeedAdminRequest } from '@digital8/lighting-illusions-ts-sdk';
22
22
 
23
23
  async function example() {
24
24
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
25
- const api = new AssetApi();
25
+ const api = new AdminApi();
26
26
 
27
27
  const body = {
28
- // number | The id of the asset
29
- asset: 56,
30
- } satisfies DestroyAssetForAssetableRequest;
28
+ // GetHierarchyProductCategoryRequest (optional)
29
+ getHierarchyProductCategoryRequest: ...,
30
+ } satisfies GenerateGoogleFeedAdminRequest;
31
31
 
32
32
  try {
33
- const data = await api.destroyAssetForAssetable(body);
33
+ const data = await api.generateGoogleFeedAdmin(body);
34
34
  console.log(data);
35
35
  } catch (error) {
36
36
  console.error(error);
@@ -50,6 +50,9 @@ All URIs are relative to *http://localhost/api*
50
50
 
51
51
  | Class | Method | HTTP request | Description
52
52
  | ----- | ------ | ------------ | -------------
53
+ *AdminApi* | [**generateGoogleFeedAdmin**](docs/AdminApi.md#generategooglefeedadmin) | **POST** /admin-api/admin/feeds/google/generate | Auto-generated: generateGoogleFeedAdmin
54
+ *AdminApi* | [**generateSocialFeedAdmin**](docs/AdminApi.md#generatesocialfeedadmin) | **POST** /admin-api/admin/feeds/social/generate | Auto-generated: generateSocialFeedAdmin
55
+ *AdminApi* | [**generateTGNDataFeedAdmin**](docs/AdminApi.md#generatetgndatafeedadmin) | **POST** /admin-api/admin/feeds/tgn-data/generate | Auto-generated: generateTGNDataFeedAdmin
53
56
  *AssetApi* | [**destroyAssetForAssetable**](docs/AssetApi.md#destroyassetforassetable) | **DELETE** /admin-api/asset/{asset}/delete | Auto-generated: destroyAssetForAssetable
54
57
  *AssetApi* | [**storeAssetFile**](docs/AssetApi.md#storeassetfileoperation) | **POST** /admin-api/asset/files | Auto-generated: storeAssetFile
55
58
  *AssetApi* | [**storeAssetForAssetable**](docs/AssetApi.md#storeassetforassetableoperation) | **POST** /admin-api/asset/create | Auto-generated: storeAssetForAssetable
@@ -94,7 +97,7 @@ All URIs are relative to *http://localhost/api*
94
97
  *OverlayTemplateApi* | [**detachAssetOverlayTemplate**](docs/OverlayTemplateApi.md#detachassetoverlaytemplate) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-asset/{asset} | Auto-generated: detachAssetOverlayTemplate
95
98
  *OverlayTemplateApi* | [**detachAssetableOverlayTemplate**](docs/OverlayTemplateApi.md#detachassetableoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/detach-assetable | Auto-generated: detachAssetableOverlayTemplate
96
99
  *OverlayTemplateApi* | [**getAllOverlayTemplate**](docs/OverlayTemplateApi.md#getalloverlaytemplateoperation) | **POST** /admin-api/overlay-template/all | Auto-generated: getAllOverlayTemplate
97
- *OverlayTemplateApi* | [**getProductChildrenOverlayTemplate**](docs/OverlayTemplateApi.md#getproductchildrenoverlaytemplate) | **POST** /admin-api/overlay-template/{overlayTemplate}/product-children | Auto-generated: getProductChildrenOverlayTemplate
100
+ *OverlayTemplateApi* | [**getProductChildrenOverlayTemplate**](docs/OverlayTemplateApi.md#getproductchildrenoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/product-children | Auto-generated: getProductChildrenOverlayTemplate
98
101
  *OverlayTemplateApi* | [**indexOverlayTemplate**](docs/OverlayTemplateApi.md#indexoverlaytemplateoperation) | **POST** /admin-api/overlay-template/list | Auto-generated: indexOverlayTemplate
99
102
  *OverlayTemplateApi* | [**showOverlayTemplate**](docs/OverlayTemplateApi.md#showoverlaytemplate) | **GET** /admin-api/overlay-template/{overlayTemplate} | Auto-generated: showOverlayTemplate
100
103
  *OverlayTemplateApi* | [**storeOverlayTemplate**](docs/OverlayTemplateApi.md#storeoverlaytemplateoperation) | **POST** /admin-api/overlay-template/create | Auto-generated: storeOverlayTemplate
@@ -114,8 +117,8 @@ All URIs are relative to *http://localhost/api*
114
117
  *ProductApi* | [**getAllProductChild**](docs/ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild
115
118
  *ProductApi* | [**getCompatibleProductsProductChild**](docs/ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild
116
119
  *ProductApi* | [**indexProduct**](docs/ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct
117
- *ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
118
- *ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
120
+ *ProductApi* | [**indexProductChild**](docs/ProductApi.md#indexproductchild) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild
121
+ *ProductApi* | [**showAssetsProductChild**](docs/ProductApi.md#showassetsproductchild) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild
119
122
  *ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
120
123
  *ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
121
124
  *ProductApi* | [**storeProduct**](docs/ProductApi.md#storeproductoperation) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct
@@ -180,8 +183,6 @@ All URIs are relative to *http://localhost/api*
180
183
  - [AssetLiteResourceArrayResponse](docs/AssetLiteResourceArrayResponse.md)
181
184
  - [AssetResource](docs/AssetResource.md)
182
185
  - [AssetResourceArrayResponse](docs/AssetResourceArrayResponse.md)
183
- - [AssetWithOverlayLinkResource](docs/AssetWithOverlayLinkResource.md)
184
- - [AssetWithOverlayLinkResourceArrayResponse](docs/AssetWithOverlayLinkResourceArrayResponse.md)
185
186
  - [AttachAccessoriesProductChildRequest](docs/AttachAccessoriesProductChildRequest.md)
186
187
  - [AttachAssetsOverlayTemplateRequest](docs/AttachAssetsOverlayTemplateRequest.md)
187
188
  - [AttachAttributeProductTypeRequest](docs/AttachAttributeProductTypeRequest.md)
@@ -252,6 +253,7 @@ All URIs are relative to *http://localhost/api*
252
253
  - [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
253
254
  - [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
254
255
  - [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
256
+ - [GetProductChildrenOverlayTemplateRequest](docs/GetProductChildrenOverlayTemplateRequest.md)
255
257
  - [GetUniqueEndpointsExternalApiLogRequest](docs/GetUniqueEndpointsExternalApiLogRequest.md)
256
258
  - [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
257
259
  - [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
@@ -270,7 +272,6 @@ All URIs are relative to *http://localhost/api*
270
272
  - [IndexExternalApiLogRequest](docs/IndexExternalApiLogRequest.md)
271
273
  - [IndexOverlayTemplateRequest](docs/IndexOverlayTemplateRequest.md)
272
274
  - [IndexProductCategoryRequest](docs/IndexProductCategoryRequest.md)
273
- - [IndexProductChildRequest](docs/IndexProductChildRequest.md)
274
275
  - [IndexProductRequest](docs/IndexProductRequest.md)
275
276
  - [IndexProductTypeRequest](docs/IndexProductTypeRequest.md)
276
277
  - [IndexSiteNotificationRequest](docs/IndexSiteNotificationRequest.md)
@@ -388,7 +389,6 @@ All URIs are relative to *http://localhost/api*
388
389
  - [ProductTypeResourceArrayResponse](docs/ProductTypeResourceArrayResponse.md)
389
390
  - [SEOResource](docs/SEOResource.md)
390
391
  - [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
391
- - [ShowAssetsProductChildRequest](docs/ShowAssetsProductChildRequest.md)
392
392
  - [SiteConfigResource](docs/SiteConfigResource.md)
393
393
  - [SiteConfigResourceArrayResponse](docs/SiteConfigResourceArrayResponse.md)
394
394
  - [SiteListResource](docs/SiteListResource.md)
@@ -480,7 +480,7 @@ and is automatically generated by the
480
480
  [OpenAPI Generator](https://openapi-generator.tech) project:
481
481
 
482
482
  - API version: `1.0.0`
483
- - Package version: `0.0.1159`
483
+ - Package version: `0.0.1160`
484
484
  - Generator version: `7.20.0`
485
485
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
486
486
 
@@ -0,0 +1,63 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { GenericResponse, GetHierarchyProductCategoryRequest } from '../models/index';
14
+ export interface GenerateGoogleFeedAdminRequest {
15
+ getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
16
+ }
17
+ export interface GenerateSocialFeedAdminRequest {
18
+ getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
19
+ }
20
+ export interface GenerateTGNDataFeedAdminRequest {
21
+ getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class AdminApi extends runtime.BaseAPI {
27
+ /**
28
+ * Creates request options for generateGoogleFeedAdmin without sending the request
29
+ */
30
+ generateGoogleFeedAdminRequestOpts(requestParameters: GenerateGoogleFeedAdminRequest): Promise<runtime.RequestOpts>;
31
+ /**
32
+ * Auto-generated: generateGoogleFeedAdmin
33
+ */
34
+ generateGoogleFeedAdminRaw(requestParameters: GenerateGoogleFeedAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
35
+ /**
36
+ * Auto-generated: generateGoogleFeedAdmin
37
+ */
38
+ generateGoogleFeedAdmin(requestParameters?: GenerateGoogleFeedAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
39
+ /**
40
+ * Creates request options for generateSocialFeedAdmin without sending the request
41
+ */
42
+ generateSocialFeedAdminRequestOpts(requestParameters: GenerateSocialFeedAdminRequest): Promise<runtime.RequestOpts>;
43
+ /**
44
+ * Auto-generated: generateSocialFeedAdmin
45
+ */
46
+ generateSocialFeedAdminRaw(requestParameters: GenerateSocialFeedAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
47
+ /**
48
+ * Auto-generated: generateSocialFeedAdmin
49
+ */
50
+ generateSocialFeedAdmin(requestParameters?: GenerateSocialFeedAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
51
+ /**
52
+ * Creates request options for generateTGNDataFeedAdmin without sending the request
53
+ */
54
+ generateTGNDataFeedAdminRequestOpts(requestParameters: GenerateTGNDataFeedAdminRequest): Promise<runtime.RequestOpts>;
55
+ /**
56
+ * Auto-generated: generateTGNDataFeedAdmin
57
+ */
58
+ generateTGNDataFeedAdminRaw(requestParameters: GenerateTGNDataFeedAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
59
+ /**
60
+ * Auto-generated: generateTGNDataFeedAdmin
61
+ */
62
+ generateTGNDataFeedAdmin(requestParameters?: GenerateTGNDataFeedAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
63
+ }
@@ -0,0 +1,254 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.AdminApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var AdminApi = /** @class */ (function (_super) {
74
+ __extends(AdminApi, _super);
75
+ function AdminApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Creates request options for generateGoogleFeedAdmin without sending the request
80
+ */
81
+ AdminApi.prototype.generateGoogleFeedAdminRequestOpts = function (requestParameters) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, urlPath;
84
+ return __generator(this, function (_a) {
85
+ queryParameters = {};
86
+ headerParameters = {};
87
+ headerParameters['Content-Type'] = 'application/json';
88
+ urlPath = "/admin-api/admin/feeds/google/generate";
89
+ return [2 /*return*/, {
90
+ path: urlPath,
91
+ method: 'POST',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ body: (0, index_1.GetHierarchyProductCategoryRequestToJSON)(requestParameters['getHierarchyProductCategoryRequest']),
95
+ }];
96
+ });
97
+ });
98
+ };
99
+ /**
100
+ * Auto-generated: generateGoogleFeedAdmin
101
+ */
102
+ AdminApi.prototype.generateGoogleFeedAdminRaw = function (requestParameters, initOverrides) {
103
+ return __awaiter(this, void 0, void 0, function () {
104
+ var requestOptions, response;
105
+ return __generator(this, function (_a) {
106
+ switch (_a.label) {
107
+ case 0: return [4 /*yield*/, this.generateGoogleFeedAdminRequestOpts(requestParameters)];
108
+ case 1:
109
+ requestOptions = _a.sent();
110
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
111
+ case 2:
112
+ response = _a.sent();
113
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
114
+ }
115
+ });
116
+ });
117
+ };
118
+ /**
119
+ * Auto-generated: generateGoogleFeedAdmin
120
+ */
121
+ AdminApi.prototype.generateGoogleFeedAdmin = function () {
122
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
123
+ var response;
124
+ if (requestParameters === void 0) { requestParameters = {}; }
125
+ return __generator(this, function (_a) {
126
+ switch (_a.label) {
127
+ case 0: return [4 /*yield*/, this.generateGoogleFeedAdminRaw(requestParameters, initOverrides)];
128
+ case 1:
129
+ response = _a.sent();
130
+ return [4 /*yield*/, response.value()];
131
+ case 2: return [2 /*return*/, _a.sent()];
132
+ }
133
+ });
134
+ });
135
+ };
136
+ /**
137
+ * Creates request options for generateSocialFeedAdmin without sending the request
138
+ */
139
+ AdminApi.prototype.generateSocialFeedAdminRequestOpts = function (requestParameters) {
140
+ return __awaiter(this, void 0, void 0, function () {
141
+ var queryParameters, headerParameters, urlPath;
142
+ return __generator(this, function (_a) {
143
+ queryParameters = {};
144
+ headerParameters = {};
145
+ headerParameters['Content-Type'] = 'application/json';
146
+ urlPath = "/admin-api/admin/feeds/social/generate";
147
+ return [2 /*return*/, {
148
+ path: urlPath,
149
+ method: 'POST',
150
+ headers: headerParameters,
151
+ query: queryParameters,
152
+ body: (0, index_1.GetHierarchyProductCategoryRequestToJSON)(requestParameters['getHierarchyProductCategoryRequest']),
153
+ }];
154
+ });
155
+ });
156
+ };
157
+ /**
158
+ * Auto-generated: generateSocialFeedAdmin
159
+ */
160
+ AdminApi.prototype.generateSocialFeedAdminRaw = function (requestParameters, initOverrides) {
161
+ return __awaiter(this, void 0, void 0, function () {
162
+ var requestOptions, response;
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0: return [4 /*yield*/, this.generateSocialFeedAdminRequestOpts(requestParameters)];
166
+ case 1:
167
+ requestOptions = _a.sent();
168
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
169
+ case 2:
170
+ response = _a.sent();
171
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
172
+ }
173
+ });
174
+ });
175
+ };
176
+ /**
177
+ * Auto-generated: generateSocialFeedAdmin
178
+ */
179
+ AdminApi.prototype.generateSocialFeedAdmin = function () {
180
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
181
+ var response;
182
+ if (requestParameters === void 0) { requestParameters = {}; }
183
+ return __generator(this, function (_a) {
184
+ switch (_a.label) {
185
+ case 0: return [4 /*yield*/, this.generateSocialFeedAdminRaw(requestParameters, initOverrides)];
186
+ case 1:
187
+ response = _a.sent();
188
+ return [4 /*yield*/, response.value()];
189
+ case 2: return [2 /*return*/, _a.sent()];
190
+ }
191
+ });
192
+ });
193
+ };
194
+ /**
195
+ * Creates request options for generateTGNDataFeedAdmin without sending the request
196
+ */
197
+ AdminApi.prototype.generateTGNDataFeedAdminRequestOpts = function (requestParameters) {
198
+ return __awaiter(this, void 0, void 0, function () {
199
+ var queryParameters, headerParameters, urlPath;
200
+ return __generator(this, function (_a) {
201
+ queryParameters = {};
202
+ headerParameters = {};
203
+ headerParameters['Content-Type'] = 'application/json';
204
+ urlPath = "/admin-api/admin/feeds/tgn-data/generate";
205
+ return [2 /*return*/, {
206
+ path: urlPath,
207
+ method: 'POST',
208
+ headers: headerParameters,
209
+ query: queryParameters,
210
+ body: (0, index_1.GetHierarchyProductCategoryRequestToJSON)(requestParameters['getHierarchyProductCategoryRequest']),
211
+ }];
212
+ });
213
+ });
214
+ };
215
+ /**
216
+ * Auto-generated: generateTGNDataFeedAdmin
217
+ */
218
+ AdminApi.prototype.generateTGNDataFeedAdminRaw = function (requestParameters, initOverrides) {
219
+ return __awaiter(this, void 0, void 0, function () {
220
+ var requestOptions, response;
221
+ return __generator(this, function (_a) {
222
+ switch (_a.label) {
223
+ case 0: return [4 /*yield*/, this.generateTGNDataFeedAdminRequestOpts(requestParameters)];
224
+ case 1:
225
+ requestOptions = _a.sent();
226
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
227
+ case 2:
228
+ response = _a.sent();
229
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
230
+ }
231
+ });
232
+ });
233
+ };
234
+ /**
235
+ * Auto-generated: generateTGNDataFeedAdmin
236
+ */
237
+ AdminApi.prototype.generateTGNDataFeedAdmin = function () {
238
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
239
+ var response;
240
+ if (requestParameters === void 0) { requestParameters = {}; }
241
+ return __generator(this, function (_a) {
242
+ switch (_a.label) {
243
+ case 0: return [4 /*yield*/, this.generateTGNDataFeedAdminRaw(requestParameters, initOverrides)];
244
+ case 1:
245
+ response = _a.sent();
246
+ return [4 /*yield*/, response.value()];
247
+ case 2: return [2 /*return*/, _a.sent()];
248
+ }
249
+ });
250
+ });
251
+ };
252
+ return AdminApi;
253
+ }(runtime.BaseAPI));
254
+ exports.AdminApi = AdminApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AttachAssetsOverlayTemplateRequest, DetachAssetableOverlayTemplateRequest, GenericResponse, GetAllOverlayTemplateRequest, IndexOverlayTemplateRequest, IndexProductChildRequest, OverlayTemplateLiteResourceArrayResponse, OverlayTemplateResource, PaginatedOverlayTemplateListResourceResponse, PaginatedProductChildOverlayRelationResourceResponse, StoreOverlayTemplateAssetRequest, StoreOverlayTemplateRequest, UpdateOverlayTemplateAssetRequest, UpdateOverlayTemplateRequest } from '../models/index';
13
+ import type { AttachAssetsOverlayTemplateRequest, DetachAssetableOverlayTemplateRequest, GenericResponse, GetAllOverlayTemplateRequest, GetProductChildrenOverlayTemplateRequest, IndexOverlayTemplateRequest, OverlayTemplateLiteResourceArrayResponse, OverlayTemplateResource, PaginatedOverlayTemplateListResourceResponse, PaginatedProductChildOverlayRelationResourceResponse, StoreOverlayTemplateAssetRequest, StoreOverlayTemplateRequest, UpdateOverlayTemplateAssetRequest, UpdateOverlayTemplateRequest } from '../models/index';
14
14
  export interface AttachAssetsOverlayTemplateOperationRequest {
15
15
  overlayTemplate: number;
16
16
  attachAssetsOverlayTemplateRequest?: AttachAssetsOverlayTemplateRequest;
@@ -32,9 +32,9 @@ export interface DetachAssetableOverlayTemplateOperationRequest {
32
32
  export interface GetAllOverlayTemplateOperationRequest {
33
33
  getAllOverlayTemplateRequest?: GetAllOverlayTemplateRequest;
34
34
  }
35
- export interface GetProductChildrenOverlayTemplateRequest {
35
+ export interface GetProductChildrenOverlayTemplateOperationRequest {
36
36
  overlayTemplate: number;
37
- indexProductChildRequest?: IndexProductChildRequest;
37
+ getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
38
38
  }
39
39
  export interface IndexOverlayTemplateOperationRequest {
40
40
  indexOverlayTemplateRequest?: IndexOverlayTemplateRequest;
@@ -135,15 +135,15 @@ export declare class OverlayTemplateApi extends runtime.BaseAPI {
135
135
  /**
136
136
  * Creates request options for getProductChildrenOverlayTemplate without sending the request
137
137
  */
138
- getProductChildrenOverlayTemplateRequestOpts(requestParameters: GetProductChildrenOverlayTemplateRequest): Promise<runtime.RequestOpts>;
138
+ getProductChildrenOverlayTemplateRequestOpts(requestParameters: GetProductChildrenOverlayTemplateOperationRequest): Promise<runtime.RequestOpts>;
139
139
  /**
140
140
  * Auto-generated: getProductChildrenOverlayTemplate
141
141
  */
142
- getProductChildrenOverlayTemplateRaw(requestParameters: GetProductChildrenOverlayTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildOverlayRelationResourceResponse>>;
142
+ getProductChildrenOverlayTemplateRaw(requestParameters: GetProductChildrenOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildOverlayRelationResourceResponse>>;
143
143
  /**
144
144
  * Auto-generated: getProductChildrenOverlayTemplate
145
145
  */
146
- getProductChildrenOverlayTemplate(requestParameters: GetProductChildrenOverlayTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildOverlayRelationResourceResponse>;
146
+ getProductChildrenOverlayTemplate(requestParameters: GetProductChildrenOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildOverlayRelationResourceResponse>;
147
147
  /**
148
148
  * Creates request options for indexOverlayTemplate without sending the request
149
149
  */
@@ -456,7 +456,7 @@ var OverlayTemplateApi = /** @class */ (function (_super) {
456
456
  method: 'POST',
457
457
  headers: headerParameters,
458
458
  query: queryParameters,
459
- body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
459
+ body: (0, index_1.GetProductChildrenOverlayTemplateRequestToJSON)(requestParameters['getProductChildrenOverlayTemplateRequest']),
460
460
  }];
461
461
  });
462
462
  });
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AssetWithOverlayLinkResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, IndexProductChildRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildListResourceArrayResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, ShowAssetsProductChildRequest, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
13
+ import type { AssetResourceArrayResponse, AttachAccessoriesProductChildRequest, AttachDocumentsProductChildRequest, DetachDocumentsProductChildRequest, GenericResponse, GetAllProductChildRequest, GetAllProductRequest, GetProductChildrenOverlayTemplateRequest, IndexProductRequest, PaginatedProductChildListResourceResponse, PaginatedProductListResourceResponse, ProductChildListResourceArrayResponse, ProductChildLiteResourceArrayResponse, ProductChildResource, ProductLiteResourceArrayResponse, ProductResource, StoreProductChildRequest, StoreProductRequest, UpdateProductChildRequest, UpdateProductRequest } from '../models/index';
14
14
  export interface AttachAccessoriesProductChildOperationRequest {
15
15
  productChild: number;
16
16
  attachAccessoriesProductChildRequest?: AttachAccessoriesProductChildRequest;
@@ -53,17 +53,16 @@ export interface GetAllProductChildOperationRequest {
53
53
  }
54
54
  export interface GetCompatibleProductsProductChildRequest {
55
55
  productChild: number;
56
- indexProductChildRequest?: IndexProductChildRequest;
56
+ getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
57
57
  }
58
58
  export interface IndexProductOperationRequest {
59
59
  indexProductRequest?: IndexProductRequest;
60
60
  }
61
- export interface IndexProductChildOperationRequest {
62
- indexProductChildRequest?: IndexProductChildRequest;
61
+ export interface IndexProductChildRequest {
62
+ getProductChildrenOverlayTemplateRequest?: GetProductChildrenOverlayTemplateRequest;
63
63
  }
64
- export interface ShowAssetsProductChildOperationRequest {
64
+ export interface ShowAssetsProductChildRequest {
65
65
  productChild: number;
66
- showAssetsProductChildRequest?: ShowAssetsProductChildRequest;
67
66
  }
68
67
  export interface ShowProductRequest {
69
68
  product: number;
@@ -248,27 +247,27 @@ export declare class ProductApi extends runtime.BaseAPI {
248
247
  /**
249
248
  * Creates request options for indexProductChild without sending the request
250
249
  */
251
- indexProductChildRequestOpts(requestParameters: IndexProductChildOperationRequest): Promise<runtime.RequestOpts>;
250
+ indexProductChildRequestOpts(requestParameters: IndexProductChildRequest): Promise<runtime.RequestOpts>;
252
251
  /**
253
252
  * Auto-generated: indexProductChild
254
253
  */
255
- indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
254
+ indexProductChildRaw(requestParameters: IndexProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
256
255
  /**
257
256
  * Auto-generated: indexProductChild
258
257
  */
259
- indexProductChild(requestParameters?: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
258
+ indexProductChild(requestParameters?: IndexProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
260
259
  /**
261
260
  * Creates request options for showAssetsProductChild without sending the request
262
261
  */
263
- showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildOperationRequest): Promise<runtime.RequestOpts>;
262
+ showAssetsProductChildRequestOpts(requestParameters: ShowAssetsProductChildRequest): Promise<runtime.RequestOpts>;
264
263
  /**
265
264
  * Auto-generated: showAssetsProductChild
266
265
  */
267
- showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetWithOverlayLinkResourceArrayResponse>>;
266
+ showAssetsProductChildRaw(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResourceArrayResponse>>;
268
267
  /**
269
268
  * Auto-generated: showAssetsProductChild
270
269
  */
271
- showAssetsProductChild(requestParameters: ShowAssetsProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetWithOverlayLinkResourceArrayResponse>;
270
+ showAssetsProductChild(requestParameters: ShowAssetsProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResourceArrayResponse>;
272
271
  /**
273
272
  * Creates request options for showProduct without sending the request
274
273
  */