@digital8/lighting-illusions-ts-sdk 0.0.446 → 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.
- package/.openapi-generator/FILES +24 -0
- package/README.md +18 -2
- package/dist/apis/AttributeApi.d.ts +14 -3
- package/dist/apis/AttributeApi.js +46 -1
- package/dist/apis/ProductTypeApi.d.ts +14 -3
- package/dist/apis/ProductTypeApi.js +46 -1
- package/dist/apis/SiteApi.d.ts +14 -3
- package/dist/apis/SiteApi.js +46 -1
- package/dist/apis/SupplierApi.d.ts +14 -3
- package/dist/apis/SupplierApi.js +46 -1
- package/dist/models/AttributeListResource.d.ts +56 -0
- package/dist/models/AttributeListResource.js +67 -0
- package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/AttributeListResourceArrayResponse.js +50 -0
- package/dist/models/IndexAttributeRequest.d.ts +8 -1
- package/dist/models/IndexAttributeRequest.js +7 -1
- package/dist/models/IndexSupplierRequest.d.ts +8 -1
- package/dist/models/IndexSupplierRequest.js +7 -1
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
- package/dist/models/ProductTypeListResource.d.ts +38 -0
- package/dist/models/ProductTypeListResource.js +55 -0
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
- package/dist/models/SiteListResource.d.ts +50 -0
- package/dist/models/SiteListResource.js +63 -0
- package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteListResourceArrayResponse.js +50 -0
- package/dist/models/SupplierListResource.d.ts +57 -0
- package/dist/models/SupplierListResource.js +68 -0
- package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SupplierListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/docs/AttributeApi.md +69 -3
- package/docs/AttributeListResource.md +42 -0
- package/docs/AttributeListResourceArrayResponse.md +34 -0
- package/docs/PaginatedAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
- package/docs/PaginatedSiteListResourceResponse.md +36 -0
- package/docs/PaginatedSupplierListResourceResponse.md +36 -0
- package/docs/ProductTypeApi.md +69 -3
- package/docs/ProductTypeListResource.md +36 -0
- package/docs/ProductTypeListResourceArrayResponse.md +34 -0
- package/docs/SiteApi.md +69 -3
- package/docs/SiteListResource.md +40 -0
- package/docs/SiteListResourceArrayResponse.md +34 -0
- package/docs/SupplierApi.md +69 -3
- package/docs/SupplierListResource.md +42 -0
- package/docs/SupplierListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +42 -6
- package/src/apis/ProductTypeApi.ts +42 -6
- package/src/apis/SiteApi.ts +42 -6
- package/src/apis/SupplierApi.ts +42 -6
- package/src/models/AttributeListResource.ts +102 -0
- package/src/models/AttributeListResourceArrayResponse.ts +73 -0
- package/src/models/IndexAttributeRequest.ts +9 -1
- package/src/models/IndexSupplierRequest.ts +9 -1
- package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
- package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
- package/src/models/ProductTypeListResource.ts +75 -0
- package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
- package/src/models/SiteListResource.ts +93 -0
- package/src/models/SiteListResourceArrayResponse.ts +73 -0
- package/src/models/SupplierListResource.ts +110 -0
- package/src/models/SupplierListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +12 -0
|
@@ -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.instanceOfSupplierListResourceArrayResponse = instanceOfSupplierListResourceArrayResponse;
|
|
17
|
+
exports.SupplierListResourceArrayResponseFromJSON = SupplierListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.SupplierListResourceArrayResponseFromJSONTyped = SupplierListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.SupplierListResourceArrayResponseToJSON = SupplierListResourceArrayResponseToJSON;
|
|
20
|
+
exports.SupplierListResourceArrayResponseToJSONTyped = SupplierListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var SupplierListResource_1 = require("./SupplierListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SupplierListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSupplierListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function SupplierListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return SupplierListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function SupplierListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(SupplierListResource_1.SupplierListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function SupplierListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return SupplierListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SupplierListResourceArrayResponseToJSONTyped(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(SupplierListResource_1.SupplierListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export * from './AssetLiteResourceArrayResponse';
|
|
|
5
5
|
export * from './AssetResource';
|
|
6
6
|
export * from './AssetResourceArrayResponse';
|
|
7
7
|
export * from './AttributeFieldType';
|
|
8
|
+
export * from './AttributeListResource';
|
|
9
|
+
export * from './AttributeListResourceArrayResponse';
|
|
8
10
|
export * from './AttributeLiteResource';
|
|
9
11
|
export * from './AttributeLiteResourceArrayResponse';
|
|
10
12
|
export * from './AttributeProductTypeRelationResource';
|
|
@@ -49,6 +51,7 @@ export * from './OverlayTemplateLiteResource';
|
|
|
49
51
|
export * from './OverlayTemplateLiteResourceArrayResponse';
|
|
50
52
|
export * from './OverlayTemplateResource';
|
|
51
53
|
export * from './OverlayTemplateResourceArrayResponse';
|
|
54
|
+
export * from './PaginatedAttributeListResourceResponse';
|
|
52
55
|
export * from './PaginatedAttributeLiteResourceResponse';
|
|
53
56
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
54
57
|
export * from './PaginatedAttributeResourceResponse';
|
|
@@ -61,12 +64,15 @@ export * from './PaginatedProductChildRelationResourceResponse';
|
|
|
61
64
|
export * from './PaginatedProductChildResourceResponse';
|
|
62
65
|
export * from './PaginatedProductLiteResourceResponse';
|
|
63
66
|
export * from './PaginatedProductResourceResponse';
|
|
67
|
+
export * from './PaginatedProductTypeListResourceResponse';
|
|
64
68
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
65
69
|
export * from './PaginatedProductTypeResourceResponse';
|
|
70
|
+
export * from './PaginatedSiteListResourceResponse';
|
|
66
71
|
export * from './PaginatedSiteLiteResourceResponse';
|
|
67
72
|
export * from './PaginatedSiteNotificationResourceResponse';
|
|
68
73
|
export * from './PaginatedSiteResourceResponse';
|
|
69
74
|
export * from './PaginatedSupplierFrontendResourceResponse';
|
|
75
|
+
export * from './PaginatedSupplierListResourceResponse';
|
|
70
76
|
export * from './PaginatedSupplierLiteResourceResponse';
|
|
71
77
|
export * from './PaginatedSupplierResourceResponse';
|
|
72
78
|
export * from './PaginatedTagListResourceResponse';
|
|
@@ -87,6 +93,8 @@ export * from './ProductLiteResource';
|
|
|
87
93
|
export * from './ProductLiteResourceArrayResponse';
|
|
88
94
|
export * from './ProductResource';
|
|
89
95
|
export * from './ProductResourceArrayResponse';
|
|
96
|
+
export * from './ProductTypeListResource';
|
|
97
|
+
export * from './ProductTypeListResourceArrayResponse';
|
|
90
98
|
export * from './ProductTypeLiteResource';
|
|
91
99
|
export * from './ProductTypeLiteResourceArrayResponse';
|
|
92
100
|
export * from './ProductTypeResource';
|
|
@@ -95,6 +103,8 @@ export * from './SEOResource';
|
|
|
95
103
|
export * from './SEOResourceArrayResponse';
|
|
96
104
|
export * from './SiteConfigResource';
|
|
97
105
|
export * from './SiteConfigResourceArrayResponse';
|
|
106
|
+
export * from './SiteListResource';
|
|
107
|
+
export * from './SiteListResourceArrayResponse';
|
|
98
108
|
export * from './SiteLiteResource';
|
|
99
109
|
export * from './SiteLiteResourceArrayResponse';
|
|
100
110
|
export * from './SiteNotificationResource';
|
|
@@ -122,6 +132,8 @@ export * from './StoreSupplierRequestSeoInner';
|
|
|
122
132
|
export * from './StoreTagRequest';
|
|
123
133
|
export * from './SupplierFrontendResource';
|
|
124
134
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
135
|
+
export * from './SupplierListResource';
|
|
136
|
+
export * from './SupplierListResourceArrayResponse';
|
|
125
137
|
export * from './SupplierLiteResource';
|
|
126
138
|
export * from './SupplierLiteResourceArrayResponse';
|
|
127
139
|
export * from './SupplierResource';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,8 @@ __exportStar(require("./AssetLiteResourceArrayResponse"), exports);
|
|
|
23
23
|
__exportStar(require("./AssetResource"), exports);
|
|
24
24
|
__exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
25
25
|
__exportStar(require("./AttributeFieldType"), exports);
|
|
26
|
+
__exportStar(require("./AttributeListResource"), exports);
|
|
27
|
+
__exportStar(require("./AttributeListResourceArrayResponse"), exports);
|
|
26
28
|
__exportStar(require("./AttributeLiteResource"), exports);
|
|
27
29
|
__exportStar(require("./AttributeLiteResourceArrayResponse"), exports);
|
|
28
30
|
__exportStar(require("./AttributeProductTypeRelationResource"), exports);
|
|
@@ -67,6 +69,7 @@ __exportStar(require("./OverlayTemplateLiteResource"), exports);
|
|
|
67
69
|
__exportStar(require("./OverlayTemplateLiteResourceArrayResponse"), exports);
|
|
68
70
|
__exportStar(require("./OverlayTemplateResource"), exports);
|
|
69
71
|
__exportStar(require("./OverlayTemplateResourceArrayResponse"), exports);
|
|
72
|
+
__exportStar(require("./PaginatedAttributeListResourceResponse"), exports);
|
|
70
73
|
__exportStar(require("./PaginatedAttributeLiteResourceResponse"), exports);
|
|
71
74
|
__exportStar(require("./PaginatedAttributeProductTypeRelationResourceResponse"), exports);
|
|
72
75
|
__exportStar(require("./PaginatedAttributeResourceResponse"), exports);
|
|
@@ -79,12 +82,15 @@ __exportStar(require("./PaginatedProductChildRelationResourceResponse"), exports
|
|
|
79
82
|
__exportStar(require("./PaginatedProductChildResourceResponse"), exports);
|
|
80
83
|
__exportStar(require("./PaginatedProductLiteResourceResponse"), exports);
|
|
81
84
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
85
|
+
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
82
86
|
__exportStar(require("./PaginatedProductTypeLiteResourceResponse"), exports);
|
|
83
87
|
__exportStar(require("./PaginatedProductTypeResourceResponse"), exports);
|
|
88
|
+
__exportStar(require("./PaginatedSiteListResourceResponse"), exports);
|
|
84
89
|
__exportStar(require("./PaginatedSiteLiteResourceResponse"), exports);
|
|
85
90
|
__exportStar(require("./PaginatedSiteNotificationResourceResponse"), exports);
|
|
86
91
|
__exportStar(require("./PaginatedSiteResourceResponse"), exports);
|
|
87
92
|
__exportStar(require("./PaginatedSupplierFrontendResourceResponse"), exports);
|
|
93
|
+
__exportStar(require("./PaginatedSupplierListResourceResponse"), exports);
|
|
88
94
|
__exportStar(require("./PaginatedSupplierLiteResourceResponse"), exports);
|
|
89
95
|
__exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
90
96
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
@@ -105,6 +111,8 @@ __exportStar(require("./ProductLiteResource"), exports);
|
|
|
105
111
|
__exportStar(require("./ProductLiteResourceArrayResponse"), exports);
|
|
106
112
|
__exportStar(require("./ProductResource"), exports);
|
|
107
113
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
114
|
+
__exportStar(require("./ProductTypeListResource"), exports);
|
|
115
|
+
__exportStar(require("./ProductTypeListResourceArrayResponse"), exports);
|
|
108
116
|
__exportStar(require("./ProductTypeLiteResource"), exports);
|
|
109
117
|
__exportStar(require("./ProductTypeLiteResourceArrayResponse"), exports);
|
|
110
118
|
__exportStar(require("./ProductTypeResource"), exports);
|
|
@@ -113,6 +121,8 @@ __exportStar(require("./SEOResource"), exports);
|
|
|
113
121
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
114
122
|
__exportStar(require("./SiteConfigResource"), exports);
|
|
115
123
|
__exportStar(require("./SiteConfigResourceArrayResponse"), exports);
|
|
124
|
+
__exportStar(require("./SiteListResource"), exports);
|
|
125
|
+
__exportStar(require("./SiteListResourceArrayResponse"), exports);
|
|
116
126
|
__exportStar(require("./SiteLiteResource"), exports);
|
|
117
127
|
__exportStar(require("./SiteLiteResourceArrayResponse"), exports);
|
|
118
128
|
__exportStar(require("./SiteNotificationResource"), exports);
|
|
@@ -140,6 +150,8 @@ __exportStar(require("./StoreSupplierRequestSeoInner"), exports);
|
|
|
140
150
|
__exportStar(require("./StoreTagRequest"), exports);
|
|
141
151
|
__exportStar(require("./SupplierFrontendResource"), exports);
|
|
142
152
|
__exportStar(require("./SupplierFrontendResourceArrayResponse"), exports);
|
|
153
|
+
__exportStar(require("./SupplierListResource"), exports);
|
|
154
|
+
__exportStar(require("./SupplierListResourceArrayResponse"), exports);
|
|
143
155
|
__exportStar(require("./SupplierLiteResource"), exports);
|
|
144
156
|
__exportStar(require("./SupplierLiteResourceArrayResponse"), exports);
|
|
145
157
|
__exportStar(require("./SupplierResource"), exports);
|
package/docs/AttributeApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
9
9
|
| [**getAllAttribute**](AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute |
|
|
10
10
|
| [**indexAttribute**](AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute |
|
|
11
11
|
| [**linkProductTypeAttribute**](AttributeApi.md#linkproducttypeattributeoperation) | **POST** /admin-api/attribute/{attribute}/link-product-type | Auto-generated: linkProductTypeAttribute |
|
|
12
|
+
| [**searchExcludingRelationsAttribute**](AttributeApi.md#searchexcludingrelationsattribute) | **POST** /admin-api/attribute/search-excluding-relations | Auto-generated: searchExcludingRelationsAttribute |
|
|
12
13
|
| [**showAttribute**](AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute |
|
|
13
14
|
| [**storeAttribute**](AttributeApi.md#storeattributeoperation) | **POST** /admin-api/attribute/create | Auto-generated: storeAttribute |
|
|
14
15
|
| [**storeAttributeValue**](AttributeApi.md#storeattributevalueoperation) | **POST** /admin-api/attribute/value/create | Auto-generated: storeAttributeValue |
|
|
@@ -221,7 +222,7 @@ No authorization required
|
|
|
221
222
|
|
|
222
223
|
## indexAttribute
|
|
223
224
|
|
|
224
|
-
>
|
|
225
|
+
> PaginatedAttributeListResourceResponse indexAttribute(indexAttributeRequest)
|
|
225
226
|
|
|
226
227
|
Auto-generated: indexAttribute
|
|
227
228
|
|
|
@@ -264,7 +265,7 @@ example().catch(console.error);
|
|
|
264
265
|
|
|
265
266
|
### Return type
|
|
266
267
|
|
|
267
|
-
[**
|
|
268
|
+
[**PaginatedAttributeListResourceResponse**](PaginatedAttributeListResourceResponse.md)
|
|
268
269
|
|
|
269
270
|
### Authorization
|
|
270
271
|
|
|
@@ -279,7 +280,7 @@ No authorization required
|
|
|
279
280
|
### HTTP response details
|
|
280
281
|
| Status code | Description | Response headers |
|
|
281
282
|
|-------------|-------------|------------------|
|
|
282
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
283
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\AttributeListResource[]>> | - |
|
|
283
284
|
|
|
284
285
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
285
286
|
|
|
@@ -352,6 +353,71 @@ No authorization required
|
|
|
352
353
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
353
354
|
|
|
354
355
|
|
|
356
|
+
## searchExcludingRelationsAttribute
|
|
357
|
+
|
|
358
|
+
> PaginatedAttributeListResourceResponse searchExcludingRelationsAttribute(indexAttributeRequest)
|
|
359
|
+
|
|
360
|
+
Auto-generated: searchExcludingRelationsAttribute
|
|
361
|
+
|
|
362
|
+
### Example
|
|
363
|
+
|
|
364
|
+
```ts
|
|
365
|
+
import {
|
|
366
|
+
Configuration,
|
|
367
|
+
AttributeApi,
|
|
368
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
369
|
+
import type { SearchExcludingRelationsAttributeRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
370
|
+
|
|
371
|
+
async function example() {
|
|
372
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
373
|
+
const api = new AttributeApi();
|
|
374
|
+
|
|
375
|
+
const body = {
|
|
376
|
+
// IndexAttributeRequest (optional)
|
|
377
|
+
indexAttributeRequest: ...,
|
|
378
|
+
} satisfies SearchExcludingRelationsAttributeRequest;
|
|
379
|
+
|
|
380
|
+
try {
|
|
381
|
+
const data = await api.searchExcludingRelationsAttribute(body);
|
|
382
|
+
console.log(data);
|
|
383
|
+
} catch (error) {
|
|
384
|
+
console.error(error);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Run the test
|
|
389
|
+
example().catch(console.error);
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### Parameters
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
| Name | Type | Description | Notes |
|
|
396
|
+
|------------- | ------------- | ------------- | -------------|
|
|
397
|
+
| **indexAttributeRequest** | [IndexAttributeRequest](IndexAttributeRequest.md) | | [Optional] |
|
|
398
|
+
|
|
399
|
+
### Return type
|
|
400
|
+
|
|
401
|
+
[**PaginatedAttributeListResourceResponse**](PaginatedAttributeListResourceResponse.md)
|
|
402
|
+
|
|
403
|
+
### Authorization
|
|
404
|
+
|
|
405
|
+
No authorization required
|
|
406
|
+
|
|
407
|
+
### HTTP request headers
|
|
408
|
+
|
|
409
|
+
- **Content-Type**: `application/json`
|
|
410
|
+
- **Accept**: `application/json`
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
### HTTP response details
|
|
414
|
+
| Status code | Description | Response headers |
|
|
415
|
+
|-------------|-------------|------------------|
|
|
416
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\AttributeListResource[]>> | - |
|
|
417
|
+
|
|
418
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
419
|
+
|
|
420
|
+
|
|
355
421
|
## showAttribute
|
|
356
422
|
|
|
357
423
|
> AttributeResource showAttribute(attribute)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# AttributeListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`type` | string
|
|
12
|
+
`isFilterable` | boolean
|
|
13
|
+
`filterIndex` | number
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { AttributeListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"type": null,
|
|
25
|
+
"isFilterable": null,
|
|
26
|
+
"filterIndex": null,
|
|
27
|
+
} satisfies AttributeListResource
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttributeListResource
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# AttributeListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<AttributeListResource>](AttributeListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { AttributeListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies AttributeListResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttributeListResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedAttributeListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<AttributeListResource>](AttributeListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedAttributeListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedAttributeListResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedAttributeListResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedProductTypeListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductTypeListResource>](ProductTypeListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedProductTypeListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedProductTypeListResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductTypeListResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedSiteListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<SiteListResource>](SiteListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedSiteListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedSiteListResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedSiteListResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedSupplierListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<SupplierListResource>](SupplierListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedSupplierListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedSupplierListResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedSupplierListResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/ProductTypeApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
8
8
|
| [**getAllProductType**](ProductTypeApi.md#getallproducttypeoperation) | **POST** /admin-api/product-type/all | Auto-generated: getAllProductType |
|
|
9
9
|
| [**indexProductType**](ProductTypeApi.md#indexproducttypeoperation) | **POST** /admin-api/product-type/list | Auto-generated: indexProductType |
|
|
10
10
|
| [**linkAttributeProductType**](ProductTypeApi.md#linkattributeproducttypeoperation) | **POST** /admin-api/product-type/{productType}/link-attribute | Auto-generated: linkAttributeProductType |
|
|
11
|
+
| [**searchExcludingRelationsProductType**](ProductTypeApi.md#searchexcludingrelationsproducttype) | **POST** /admin-api/product-type/search-excluding-relations | Auto-generated: searchExcludingRelationsProductType |
|
|
11
12
|
| [**showProductType**](ProductTypeApi.md#showproducttype) | **GET** /admin-api/product-type/{productType} | Auto-generated: showProductType |
|
|
12
13
|
| [**storeProductType**](ProductTypeApi.md#storeproducttypeoperation) | **POST** /admin-api/product-type/create | Auto-generated: storeProductType |
|
|
13
14
|
| [**unlinkAttributeProductType**](ProductTypeApi.md#unlinkattributeproducttype) | **POST** /admin-api/product-type/{productType}/remove-attribute/{attribute} | Auto-generated: unlinkAttributeProductType |
|
|
@@ -148,7 +149,7 @@ No authorization required
|
|
|
148
149
|
|
|
149
150
|
## indexProductType
|
|
150
151
|
|
|
151
|
-
>
|
|
152
|
+
> PaginatedProductTypeListResourceResponse indexProductType(indexProductTypeRequest)
|
|
152
153
|
|
|
153
154
|
Auto-generated: indexProductType
|
|
154
155
|
|
|
@@ -191,7 +192,7 @@ example().catch(console.error);
|
|
|
191
192
|
|
|
192
193
|
### Return type
|
|
193
194
|
|
|
194
|
-
[**
|
|
195
|
+
[**PaginatedProductTypeListResourceResponse**](PaginatedProductTypeListResourceResponse.md)
|
|
195
196
|
|
|
196
197
|
### Authorization
|
|
197
198
|
|
|
@@ -206,7 +207,7 @@ No authorization required
|
|
|
206
207
|
### HTTP response details
|
|
207
208
|
| Status code | Description | Response headers |
|
|
208
209
|
|-------------|-------------|------------------|
|
|
209
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
210
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductTypeListResource[]>> | - |
|
|
210
211
|
|
|
211
212
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
212
213
|
|
|
@@ -279,6 +280,71 @@ No authorization required
|
|
|
279
280
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
280
281
|
|
|
281
282
|
|
|
283
|
+
## searchExcludingRelationsProductType
|
|
284
|
+
|
|
285
|
+
> PaginatedProductTypeListResourceResponse searchExcludingRelationsProductType(indexProductTypeRequest)
|
|
286
|
+
|
|
287
|
+
Auto-generated: searchExcludingRelationsProductType
|
|
288
|
+
|
|
289
|
+
### Example
|
|
290
|
+
|
|
291
|
+
```ts
|
|
292
|
+
import {
|
|
293
|
+
Configuration,
|
|
294
|
+
ProductTypeApi,
|
|
295
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
296
|
+
import type { SearchExcludingRelationsProductTypeRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
297
|
+
|
|
298
|
+
async function example() {
|
|
299
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
300
|
+
const api = new ProductTypeApi();
|
|
301
|
+
|
|
302
|
+
const body = {
|
|
303
|
+
// IndexProductTypeRequest (optional)
|
|
304
|
+
indexProductTypeRequest: ...,
|
|
305
|
+
} satisfies SearchExcludingRelationsProductTypeRequest;
|
|
306
|
+
|
|
307
|
+
try {
|
|
308
|
+
const data = await api.searchExcludingRelationsProductType(body);
|
|
309
|
+
console.log(data);
|
|
310
|
+
} catch (error) {
|
|
311
|
+
console.error(error);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// Run the test
|
|
316
|
+
example().catch(console.error);
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Parameters
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
| Name | Type | Description | Notes |
|
|
323
|
+
|------------- | ------------- | ------------- | -------------|
|
|
324
|
+
| **indexProductTypeRequest** | [IndexProductTypeRequest](IndexProductTypeRequest.md) | | [Optional] |
|
|
325
|
+
|
|
326
|
+
### Return type
|
|
327
|
+
|
|
328
|
+
[**PaginatedProductTypeListResourceResponse**](PaginatedProductTypeListResourceResponse.md)
|
|
329
|
+
|
|
330
|
+
### Authorization
|
|
331
|
+
|
|
332
|
+
No authorization required
|
|
333
|
+
|
|
334
|
+
### HTTP request headers
|
|
335
|
+
|
|
336
|
+
- **Content-Type**: `application/json`
|
|
337
|
+
- **Accept**: `application/json`
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
### HTTP response details
|
|
341
|
+
| Status code | Description | Response headers |
|
|
342
|
+
|-------------|-------------|------------------|
|
|
343
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductTypeListResource[]>> | - |
|
|
344
|
+
|
|
345
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
346
|
+
|
|
347
|
+
|
|
282
348
|
## showProductType
|
|
283
349
|
|
|
284
350
|
> ProductTypeResource showProductType(productType)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductTypeListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ProductTypeListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"name": null,
|
|
21
|
+
} satisfies ProductTypeListResource
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductTypeListResource
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductTypeListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductTypeListResource>](ProductTypeListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductTypeListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductTypeListResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductTypeListResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|