@digital8/lighting-illusions-ts-sdk 0.0.447 → 0.0.448

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 (44) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +10 -2
  3. package/dist/apis/AttributeApi.d.ts +14 -3
  4. package/dist/apis/AttributeApi.js +46 -1
  5. package/dist/apis/ProductTypeApi.d.ts +14 -3
  6. package/dist/apis/ProductTypeApi.js +46 -1
  7. package/dist/models/AttributeListResource.d.ts +56 -0
  8. package/dist/models/AttributeListResource.js +67 -0
  9. package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/AttributeListResourceArrayResponse.js +50 -0
  11. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +1 -3
  13. package/dist/models/IndexAttributeRequest.d.ts +8 -1
  14. package/dist/models/IndexAttributeRequest.js +7 -1
  15. package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
  16. package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
  17. package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
  18. package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
  19. package/dist/models/ProductTypeListResource.d.ts +38 -0
  20. package/dist/models/ProductTypeListResource.js +55 -0
  21. package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
  23. package/dist/models/index.d.ts +6 -0
  24. package/dist/models/index.js +6 -0
  25. package/docs/AttributeApi.md +69 -3
  26. package/docs/AttributeListResource.md +42 -0
  27. package/docs/AttributeListResourceArrayResponse.md +34 -0
  28. package/docs/PaginatedAttributeListResourceResponse.md +36 -0
  29. package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
  30. package/docs/ProductTypeApi.md +69 -3
  31. package/docs/ProductTypeListResource.md +36 -0
  32. package/docs/ProductTypeListResourceArrayResponse.md +34 -0
  33. package/package.json +1 -1
  34. package/src/apis/AttributeApi.ts +42 -6
  35. package/src/apis/ProductTypeApi.ts +42 -6
  36. package/src/models/AttributeListResource.ts +102 -0
  37. package/src/models/AttributeListResourceArrayResponse.ts +73 -0
  38. package/src/models/ExternalApiLogResource.ts +2 -3
  39. package/src/models/IndexAttributeRequest.ts +9 -1
  40. package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
  41. package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
  42. package/src/models/ProductTypeListResource.ts +75 -0
  43. package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
  44. package/src/models/index.ts +6 -0
@@ -11,6 +11,8 @@ docs/AssetResource.md
11
11
  docs/AssetResourceArrayResponse.md
12
12
  docs/AttributeApi.md
13
13
  docs/AttributeFieldType.md
14
+ docs/AttributeListResource.md
15
+ docs/AttributeListResourceArrayResponse.md
14
16
  docs/AttributeLiteResource.md
15
17
  docs/AttributeLiteResourceArrayResponse.md
16
18
  docs/AttributeProductTypeRelationResource.md
@@ -57,6 +59,7 @@ docs/OverlayTemplateLiteResource.md
57
59
  docs/OverlayTemplateLiteResourceArrayResponse.md
58
60
  docs/OverlayTemplateResource.md
59
61
  docs/OverlayTemplateResourceArrayResponse.md
62
+ docs/PaginatedAttributeListResourceResponse.md
60
63
  docs/PaginatedAttributeLiteResourceResponse.md
61
64
  docs/PaginatedAttributeProductTypeRelationResourceResponse.md
62
65
  docs/PaginatedAttributeResourceResponse.md
@@ -69,6 +72,7 @@ docs/PaginatedProductChildRelationResourceResponse.md
69
72
  docs/PaginatedProductChildResourceResponse.md
70
73
  docs/PaginatedProductLiteResourceResponse.md
71
74
  docs/PaginatedProductResourceResponse.md
75
+ docs/PaginatedProductTypeListResourceResponse.md
72
76
  docs/PaginatedProductTypeLiteResourceResponse.md
73
77
  docs/PaginatedProductTypeResourceResponse.md
74
78
  docs/PaginatedSiteListResourceResponse.md
@@ -99,6 +103,8 @@ docs/ProductLiteResourceArrayResponse.md
99
103
  docs/ProductResource.md
100
104
  docs/ProductResourceArrayResponse.md
101
105
  docs/ProductTypeApi.md
106
+ docs/ProductTypeListResource.md
107
+ docs/ProductTypeListResourceArrayResponse.md
102
108
  docs/ProductTypeLiteResource.md
103
109
  docs/ProductTypeLiteResourceArrayResponse.md
104
110
  docs/ProductTypeResource.md
@@ -190,6 +196,8 @@ src/models/AssetLiteResourceArrayResponse.ts
190
196
  src/models/AssetResource.ts
191
197
  src/models/AssetResourceArrayResponse.ts
192
198
  src/models/AttributeFieldType.ts
199
+ src/models/AttributeListResource.ts
200
+ src/models/AttributeListResourceArrayResponse.ts
193
201
  src/models/AttributeLiteResource.ts
194
202
  src/models/AttributeLiteResourceArrayResponse.ts
195
203
  src/models/AttributeProductTypeRelationResource.ts
@@ -234,6 +242,7 @@ src/models/OverlayTemplateLiteResource.ts
234
242
  src/models/OverlayTemplateLiteResourceArrayResponse.ts
235
243
  src/models/OverlayTemplateResource.ts
236
244
  src/models/OverlayTemplateResourceArrayResponse.ts
245
+ src/models/PaginatedAttributeListResourceResponse.ts
237
246
  src/models/PaginatedAttributeLiteResourceResponse.ts
238
247
  src/models/PaginatedAttributeProductTypeRelationResourceResponse.ts
239
248
  src/models/PaginatedAttributeResourceResponse.ts
@@ -246,6 +255,7 @@ src/models/PaginatedProductChildRelationResourceResponse.ts
246
255
  src/models/PaginatedProductChildResourceResponse.ts
247
256
  src/models/PaginatedProductLiteResourceResponse.ts
248
257
  src/models/PaginatedProductResourceResponse.ts
258
+ src/models/PaginatedProductTypeListResourceResponse.ts
249
259
  src/models/PaginatedProductTypeLiteResourceResponse.ts
250
260
  src/models/PaginatedProductTypeResourceResponse.ts
251
261
  src/models/PaginatedSiteListResourceResponse.ts
@@ -274,6 +284,8 @@ src/models/ProductLiteResource.ts
274
284
  src/models/ProductLiteResourceArrayResponse.ts
275
285
  src/models/ProductResource.ts
276
286
  src/models/ProductResourceArrayResponse.ts
287
+ src/models/ProductTypeListResource.ts
288
+ src/models/ProductTypeListResourceArrayResponse.ts
277
289
  src/models/ProductTypeLiteResource.ts
278
290
  src/models/ProductTypeLiteResourceArrayResponse.ts
279
291
  src/models/ProductTypeResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.447
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.448
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -56,6 +56,7 @@ All URIs are relative to *http://localhost/api*
56
56
  *AttributeApi* | [**getAllAttribute**](docs/AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute
57
57
  *AttributeApi* | [**indexAttribute**](docs/AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute
58
58
  *AttributeApi* | [**linkProductTypeAttribute**](docs/AttributeApi.md#linkproducttypeattributeoperation) | **POST** /admin-api/attribute/{attribute}/link-product-type | Auto-generated: linkProductTypeAttribute
59
+ *AttributeApi* | [**searchExcludingRelationsAttribute**](docs/AttributeApi.md#searchexcludingrelationsattribute) | **POST** /admin-api/attribute/search-excluding-relations | Auto-generated: searchExcludingRelationsAttribute
59
60
  *AttributeApi* | [**showAttribute**](docs/AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute
60
61
  *AttributeApi* | [**storeAttribute**](docs/AttributeApi.md#storeattributeoperation) | **POST** /admin-api/attribute/create | Auto-generated: storeAttribute
61
62
  *AttributeApi* | [**storeAttributeValue**](docs/AttributeApi.md#storeattributevalueoperation) | **POST** /admin-api/attribute/value/create | Auto-generated: storeAttributeValue
@@ -96,6 +97,7 @@ All URIs are relative to *http://localhost/api*
96
97
  *ProductTypeApi* | [**getAllProductType**](docs/ProductTypeApi.md#getallproducttypeoperation) | **POST** /admin-api/product-type/all | Auto-generated: getAllProductType
97
98
  *ProductTypeApi* | [**indexProductType**](docs/ProductTypeApi.md#indexproducttypeoperation) | **POST** /admin-api/product-type/list | Auto-generated: indexProductType
98
99
  *ProductTypeApi* | [**linkAttributeProductType**](docs/ProductTypeApi.md#linkattributeproducttypeoperation) | **POST** /admin-api/product-type/{productType}/link-attribute | Auto-generated: linkAttributeProductType
100
+ *ProductTypeApi* | [**searchExcludingRelationsProductType**](docs/ProductTypeApi.md#searchexcludingrelationsproducttype) | **POST** /admin-api/product-type/search-excluding-relations | Auto-generated: searchExcludingRelationsProductType
99
101
  *ProductTypeApi* | [**showProductType**](docs/ProductTypeApi.md#showproducttype) | **GET** /admin-api/product-type/{productType} | Auto-generated: showProductType
100
102
  *ProductTypeApi* | [**storeProductType**](docs/ProductTypeApi.md#storeproducttypeoperation) | **POST** /admin-api/product-type/create | Auto-generated: storeProductType
101
103
  *ProductTypeApi* | [**unlinkAttributeProductType**](docs/ProductTypeApi.md#unlinkattributeproducttype) | **POST** /admin-api/product-type/{productType}/remove-attribute/{attribute} | Auto-generated: unlinkAttributeProductType
@@ -139,6 +141,8 @@ All URIs are relative to *http://localhost/api*
139
141
  - [AssetResource](docs/AssetResource.md)
140
142
  - [AssetResourceArrayResponse](docs/AssetResourceArrayResponse.md)
141
143
  - [AttributeFieldType](docs/AttributeFieldType.md)
144
+ - [AttributeListResource](docs/AttributeListResource.md)
145
+ - [AttributeListResourceArrayResponse](docs/AttributeListResourceArrayResponse.md)
142
146
  - [AttributeLiteResource](docs/AttributeLiteResource.md)
143
147
  - [AttributeLiteResourceArrayResponse](docs/AttributeLiteResourceArrayResponse.md)
144
148
  - [AttributeProductTypeRelationResource](docs/AttributeProductTypeRelationResource.md)
@@ -183,6 +187,7 @@ All URIs are relative to *http://localhost/api*
183
187
  - [OverlayTemplateLiteResourceArrayResponse](docs/OverlayTemplateLiteResourceArrayResponse.md)
184
188
  - [OverlayTemplateResource](docs/OverlayTemplateResource.md)
185
189
  - [OverlayTemplateResourceArrayResponse](docs/OverlayTemplateResourceArrayResponse.md)
190
+ - [PaginatedAttributeListResourceResponse](docs/PaginatedAttributeListResourceResponse.md)
186
191
  - [PaginatedAttributeLiteResourceResponse](docs/PaginatedAttributeLiteResourceResponse.md)
187
192
  - [PaginatedAttributeProductTypeRelationResourceResponse](docs/PaginatedAttributeProductTypeRelationResourceResponse.md)
188
193
  - [PaginatedAttributeResourceResponse](docs/PaginatedAttributeResourceResponse.md)
@@ -195,6 +200,7 @@ All URIs are relative to *http://localhost/api*
195
200
  - [PaginatedProductChildResourceResponse](docs/PaginatedProductChildResourceResponse.md)
196
201
  - [PaginatedProductLiteResourceResponse](docs/PaginatedProductLiteResourceResponse.md)
197
202
  - [PaginatedProductResourceResponse](docs/PaginatedProductResourceResponse.md)
203
+ - [PaginatedProductTypeListResourceResponse](docs/PaginatedProductTypeListResourceResponse.md)
198
204
  - [PaginatedProductTypeLiteResourceResponse](docs/PaginatedProductTypeLiteResourceResponse.md)
199
205
  - [PaginatedProductTypeResourceResponse](docs/PaginatedProductTypeResourceResponse.md)
200
206
  - [PaginatedSiteListResourceResponse](docs/PaginatedSiteListResourceResponse.md)
@@ -223,6 +229,8 @@ All URIs are relative to *http://localhost/api*
223
229
  - [ProductLiteResourceArrayResponse](docs/ProductLiteResourceArrayResponse.md)
224
230
  - [ProductResource](docs/ProductResource.md)
225
231
  - [ProductResourceArrayResponse](docs/ProductResourceArrayResponse.md)
232
+ - [ProductTypeListResource](docs/ProductTypeListResource.md)
233
+ - [ProductTypeListResourceArrayResponse](docs/ProductTypeListResourceArrayResponse.md)
226
234
  - [ProductTypeLiteResource](docs/ProductTypeLiteResource.md)
227
235
  - [ProductTypeLiteResourceArrayResponse](docs/ProductTypeLiteResourceArrayResponse.md)
228
236
  - [ProductTypeResource](docs/ProductTypeResource.md)
@@ -305,7 +313,7 @@ and is automatically generated by the
305
313
  [OpenAPI Generator](https://openapi-generator.tech) project:
306
314
 
307
315
  - API version: `1.0.0`
308
- - Package version: `0.0.447`
316
+ - Package version: `0.0.448`
309
317
  - Generator version: `7.17.0`
310
318
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
311
319
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, LinkProductTypeAttributeRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
13
+ import type { AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, LinkProductTypeAttributeRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
14
14
  export interface DestroyAttributeRequest {
15
15
  attribute: number;
16
16
  }
@@ -28,6 +28,9 @@ export interface LinkProductTypeAttributeOperationRequest {
28
28
  attribute: number;
29
29
  linkProductTypeAttributeRequest?: LinkProductTypeAttributeRequest;
30
30
  }
31
+ export interface SearchExcludingRelationsAttributeRequest {
32
+ indexAttributeRequest?: IndexAttributeRequest;
33
+ }
31
34
  export interface ShowAttributeRequest {
32
35
  attribute: number;
33
36
  }
@@ -91,11 +94,11 @@ export declare class AttributeApi extends runtime.BaseAPI {
91
94
  /**
92
95
  * Auto-generated: indexAttribute
93
96
  */
94
- indexAttributeRaw(requestParameters: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeResourceResponse>>;
97
+ indexAttributeRaw(requestParameters: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeListResourceResponse>>;
95
98
  /**
96
99
  * Auto-generated: indexAttribute
97
100
  */
98
- indexAttribute(requestParameters?: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeResourceResponse>;
101
+ indexAttribute(requestParameters?: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeListResourceResponse>;
99
102
  /**
100
103
  * Auto-generated: linkProductTypeAttribute
101
104
  */
@@ -104,6 +107,14 @@ export declare class AttributeApi extends runtime.BaseAPI {
104
107
  * Auto-generated: linkProductTypeAttribute
105
108
  */
106
109
  linkProductTypeAttribute(requestParameters: LinkProductTypeAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeResource>;
110
+ /**
111
+ * Auto-generated: searchExcludingRelationsAttribute
112
+ */
113
+ searchExcludingRelationsAttributeRaw(requestParameters: SearchExcludingRelationsAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeListResourceResponse>>;
114
+ /**
115
+ * Auto-generated: searchExcludingRelationsAttribute
116
+ */
117
+ searchExcludingRelationsAttribute(requestParameters?: SearchExcludingRelationsAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeListResourceResponse>;
107
118
  /**
108
119
  * Auto-generated: showAttribute
109
120
  */
@@ -236,7 +236,7 @@ var AttributeApi = /** @class */ (function (_super) {
236
236
  }, initOverrides)];
237
237
  case 1:
238
238
  response = _a.sent();
239
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedAttributeResourceResponseFromJSON)(jsonValue); })];
239
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedAttributeListResourceResponseFromJSON)(jsonValue); })];
240
240
  }
241
241
  });
242
242
  });
@@ -307,6 +307,51 @@ var AttributeApi = /** @class */ (function (_super) {
307
307
  });
308
308
  });
309
309
  };
310
+ /**
311
+ * Auto-generated: searchExcludingRelationsAttribute
312
+ */
313
+ AttributeApi.prototype.searchExcludingRelationsAttributeRaw = function (requestParameters, initOverrides) {
314
+ return __awaiter(this, void 0, void 0, function () {
315
+ var queryParameters, headerParameters, urlPath, response;
316
+ return __generator(this, function (_a) {
317
+ switch (_a.label) {
318
+ case 0:
319
+ queryParameters = {};
320
+ headerParameters = {};
321
+ headerParameters['Content-Type'] = 'application/json';
322
+ urlPath = "/admin-api/attribute/search-excluding-relations";
323
+ return [4 /*yield*/, this.request({
324
+ path: urlPath,
325
+ method: 'POST',
326
+ headers: headerParameters,
327
+ query: queryParameters,
328
+ body: (0, index_1.IndexAttributeRequestToJSON)(requestParameters['indexAttributeRequest']),
329
+ }, initOverrides)];
330
+ case 1:
331
+ response = _a.sent();
332
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedAttributeListResourceResponseFromJSON)(jsonValue); })];
333
+ }
334
+ });
335
+ });
336
+ };
337
+ /**
338
+ * Auto-generated: searchExcludingRelationsAttribute
339
+ */
340
+ AttributeApi.prototype.searchExcludingRelationsAttribute = function () {
341
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
342
+ var response;
343
+ if (requestParameters === void 0) { requestParameters = {}; }
344
+ return __generator(this, function (_a) {
345
+ switch (_a.label) {
346
+ case 0: return [4 /*yield*/, this.searchExcludingRelationsAttributeRaw(requestParameters, initOverrides)];
347
+ case 1:
348
+ response = _a.sent();
349
+ return [4 /*yield*/, response.value()];
350
+ case 2: return [2 /*return*/, _a.sent()];
351
+ }
352
+ });
353
+ });
354
+ };
310
355
  /**
311
356
  * Auto-generated: showAttribute
312
357
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GenericResponse, GetAllProductTypeRequest, IndexProductTypeRequest, LinkAttributeProductTypeRequest, PaginatedProductTypeLiteResourceResponse, PaginatedProductTypeResourceResponse, ProductTypeResource, StoreProductTypeRequest, UpdateProductTypeRequest } from '../models/index';
13
+ import type { GenericResponse, GetAllProductTypeRequest, IndexProductTypeRequest, LinkAttributeProductTypeRequest, PaginatedProductTypeListResourceResponse, PaginatedProductTypeLiteResourceResponse, ProductTypeResource, StoreProductTypeRequest, UpdateProductTypeRequest } from '../models/index';
14
14
  export interface DestroyProductTypeRequest {
15
15
  productType: number;
16
16
  }
@@ -24,6 +24,9 @@ export interface LinkAttributeProductTypeOperationRequest {
24
24
  productType: number;
25
25
  linkAttributeProductTypeRequest?: LinkAttributeProductTypeRequest;
26
26
  }
27
+ export interface SearchExcludingRelationsProductTypeRequest {
28
+ indexProductTypeRequest?: IndexProductTypeRequest;
29
+ }
27
30
  export interface ShowProductTypeRequest {
28
31
  productType: number;
29
32
  }
@@ -65,11 +68,11 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
65
68
  /**
66
69
  * Auto-generated: indexProductType
67
70
  */
68
- indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeResourceResponse>>;
71
+ indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeListResourceResponse>>;
69
72
  /**
70
73
  * Auto-generated: indexProductType
71
74
  */
72
- indexProductType(requestParameters?: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeResourceResponse>;
75
+ indexProductType(requestParameters?: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeListResourceResponse>;
73
76
  /**
74
77
  * Auto-generated: linkAttributeProductType
75
78
  */
@@ -78,6 +81,14 @@ export declare class ProductTypeApi extends runtime.BaseAPI {
78
81
  * Auto-generated: linkAttributeProductType
79
82
  */
80
83
  linkAttributeProductType(requestParameters: LinkAttributeProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductTypeResource>;
84
+ /**
85
+ * Auto-generated: searchExcludingRelationsProductType
86
+ */
87
+ searchExcludingRelationsProductTypeRaw(requestParameters: SearchExcludingRelationsProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeListResourceResponse>>;
88
+ /**
89
+ * Auto-generated: searchExcludingRelationsProductType
90
+ */
91
+ searchExcludingRelationsProductType(requestParameters?: SearchExcludingRelationsProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeListResourceResponse>;
81
92
  /**
82
93
  * Auto-generated: showProductType
83
94
  */
@@ -188,7 +188,7 @@ var ProductTypeApi = /** @class */ (function (_super) {
188
188
  }, initOverrides)];
189
189
  case 1:
190
190
  response = _a.sent();
191
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductTypeResourceResponseFromJSON)(jsonValue); })];
191
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductTypeListResourceResponseFromJSON)(jsonValue); })];
192
192
  }
193
193
  });
194
194
  });
@@ -259,6 +259,51 @@ var ProductTypeApi = /** @class */ (function (_super) {
259
259
  });
260
260
  });
261
261
  };
262
+ /**
263
+ * Auto-generated: searchExcludingRelationsProductType
264
+ */
265
+ ProductTypeApi.prototype.searchExcludingRelationsProductTypeRaw = function (requestParameters, initOverrides) {
266
+ return __awaiter(this, void 0, void 0, function () {
267
+ var queryParameters, headerParameters, urlPath, response;
268
+ return __generator(this, function (_a) {
269
+ switch (_a.label) {
270
+ case 0:
271
+ queryParameters = {};
272
+ headerParameters = {};
273
+ headerParameters['Content-Type'] = 'application/json';
274
+ urlPath = "/admin-api/product-type/search-excluding-relations";
275
+ return [4 /*yield*/, this.request({
276
+ path: urlPath,
277
+ method: 'POST',
278
+ headers: headerParameters,
279
+ query: queryParameters,
280
+ body: (0, index_1.IndexProductTypeRequestToJSON)(requestParameters['indexProductTypeRequest']),
281
+ }, initOverrides)];
282
+ case 1:
283
+ response = _a.sent();
284
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductTypeListResourceResponseFromJSON)(jsonValue); })];
285
+ }
286
+ });
287
+ });
288
+ };
289
+ /**
290
+ * Auto-generated: searchExcludingRelationsProductType
291
+ */
292
+ ProductTypeApi.prototype.searchExcludingRelationsProductType = function () {
293
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
294
+ var response;
295
+ if (requestParameters === void 0) { requestParameters = {}; }
296
+ return __generator(this, function (_a) {
297
+ switch (_a.label) {
298
+ case 0: return [4 /*yield*/, this.searchExcludingRelationsProductTypeRaw(requestParameters, initOverrides)];
299
+ case 1:
300
+ response = _a.sent();
301
+ return [4 /*yield*/, response.value()];
302
+ case 2: return [2 /*return*/, _a.sent()];
303
+ }
304
+ });
305
+ });
306
+ };
262
307
  /**
263
308
  * Auto-generated: showProductType
264
309
  */
@@ -0,0 +1,56 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface AttributeListResource
16
+ */
17
+ export interface AttributeListResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AttributeListResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AttributeListResource
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AttributeListResource
34
+ */
35
+ type: string;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof AttributeListResource
40
+ */
41
+ isFilterable: boolean;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AttributeListResource
46
+ */
47
+ filterIndex: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AttributeListResource interface.
51
+ */
52
+ export declare function instanceOfAttributeListResource(value: object): value is AttributeListResource;
53
+ export declare function AttributeListResourceFromJSON(json: any): AttributeListResource;
54
+ export declare function AttributeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResource;
55
+ export declare function AttributeListResourceToJSON(json: any): AttributeListResource;
56
+ export declare function AttributeListResourceToJSONTyped(value?: AttributeListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAttributeListResource = instanceOfAttributeListResource;
17
+ exports.AttributeListResourceFromJSON = AttributeListResourceFromJSON;
18
+ exports.AttributeListResourceFromJSONTyped = AttributeListResourceFromJSONTyped;
19
+ exports.AttributeListResourceToJSON = AttributeListResourceToJSON;
20
+ exports.AttributeListResourceToJSONTyped = AttributeListResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AttributeListResource interface.
23
+ */
24
+ function instanceOfAttributeListResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('type' in value) || value['type'] === undefined)
30
+ return false;
31
+ if (!('isFilterable' in value) || value['isFilterable'] === undefined)
32
+ return false;
33
+ if (!('filterIndex' in value) || value['filterIndex'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function AttributeListResourceFromJSON(json) {
38
+ return AttributeListResourceFromJSONTyped(json, false);
39
+ }
40
+ function AttributeListResourceFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'name': json['name'],
47
+ 'type': json['type'],
48
+ 'isFilterable': json['isFilterable'],
49
+ 'filterIndex': json['filterIndex'],
50
+ };
51
+ }
52
+ function AttributeListResourceToJSON(json) {
53
+ return AttributeListResourceToJSONTyped(json, false);
54
+ }
55
+ function AttributeListResourceToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'id': value['id'],
62
+ 'name': value['name'],
63
+ 'type': value['type'],
64
+ 'isFilterable': value['isFilterable'],
65
+ 'filterIndex': value['filterIndex'],
66
+ };
67
+ }
@@ -0,0 +1,33 @@
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 type { AttributeListResource } from './AttributeListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AttributeListResourceArrayResponse
17
+ */
18
+ export interface AttributeListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<AttributeListResource>}
22
+ * @memberof AttributeListResourceArrayResponse
23
+ */
24
+ data?: Array<AttributeListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AttributeListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfAttributeListResourceArrayResponse(value: object): value is AttributeListResourceArrayResponse;
30
+ export declare function AttributeListResourceArrayResponseFromJSON(json: any): AttributeListResourceArrayResponse;
31
+ export declare function AttributeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResourceArrayResponse;
32
+ export declare function AttributeListResourceArrayResponseToJSON(json: any): AttributeListResourceArrayResponse;
33
+ export declare function AttributeListResourceArrayResponseToJSONTyped(value?: AttributeListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAttributeListResourceArrayResponse = instanceOfAttributeListResourceArrayResponse;
17
+ exports.AttributeListResourceArrayResponseFromJSON = AttributeListResourceArrayResponseFromJSON;
18
+ exports.AttributeListResourceArrayResponseFromJSONTyped = AttributeListResourceArrayResponseFromJSONTyped;
19
+ exports.AttributeListResourceArrayResponseToJSON = AttributeListResourceArrayResponseToJSON;
20
+ exports.AttributeListResourceArrayResponseToJSONTyped = AttributeListResourceArrayResponseToJSONTyped;
21
+ var AttributeListResource_1 = require("./AttributeListResource");
22
+ /**
23
+ * Check if a given object implements the AttributeListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfAttributeListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function AttributeListResourceArrayResponseFromJSON(json) {
29
+ return AttributeListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function AttributeListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(AttributeListResource_1.AttributeListResourceFromJSON)),
37
+ };
38
+ }
39
+ function AttributeListResourceArrayResponseToJSON(json) {
40
+ return AttributeListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function AttributeListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(AttributeListResource_1.AttributeListResourceToJSON)),
49
+ };
50
+ }
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
- return false;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -74,7 +74,7 @@ export interface IndexAttributeRequest {
74
74
  * @type {string}
75
75
  * @memberof IndexAttributeRequest
76
76
  */
77
- relatedType?: string;
77
+ relatedType?: IndexAttributeRequestRelatedTypeEnum;
78
78
  }
79
79
  /**
80
80
  * @export
@@ -94,6 +94,13 @@ export declare const IndexAttributeRequestSortDirectionEnum: {
94
94
  readonly Desc: "desc";
95
95
  };
96
96
  export type IndexAttributeRequestSortDirectionEnum = typeof IndexAttributeRequestSortDirectionEnum[keyof typeof IndexAttributeRequestSortDirectionEnum];
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const IndexAttributeRequestRelatedTypeEnum: {
101
+ readonly ProductType: "productType";
102
+ };
103
+ export type IndexAttributeRequestRelatedTypeEnum = typeof IndexAttributeRequestRelatedTypeEnum[keyof typeof IndexAttributeRequestRelatedTypeEnum];
97
104
  /**
98
105
  * Check if a given object implements the IndexAttributeRequest interface.
99
106
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IndexAttributeRequestSortDirectionEnum = exports.IndexAttributeRequestSortByEnum = void 0;
16
+ exports.IndexAttributeRequestRelatedTypeEnum = exports.IndexAttributeRequestSortDirectionEnum = exports.IndexAttributeRequestSortByEnum = void 0;
17
17
  exports.instanceOfIndexAttributeRequest = instanceOfIndexAttributeRequest;
18
18
  exports.IndexAttributeRequestFromJSON = IndexAttributeRequestFromJSON;
19
19
  exports.IndexAttributeRequestFromJSONTyped = IndexAttributeRequestFromJSONTyped;
@@ -35,6 +35,12 @@ exports.IndexAttributeRequestSortDirectionEnum = {
35
35
  Asc: 'asc',
36
36
  Desc: 'desc'
37
37
  };
38
+ /**
39
+ * @export
40
+ */
41
+ exports.IndexAttributeRequestRelatedTypeEnum = {
42
+ ProductType: 'productType'
43
+ };
38
44
  /**
39
45
  * Check if a given object implements the IndexAttributeRequest interface.
40
46
  */