@digital8/lighting-illusions-ts-sdk 0.0.1339 → 0.0.1341
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 +2 -90
- package/README.md +3 -63
- package/dist/apis/AttributeApi.d.ts +1 -16
- package/dist/apis/AttributeApi.js +0 -58
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -2
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +1 -2
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -2
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +1 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDocumentRequest.d.ts +1 -2
- package/dist/models/GetAllDocumentRequest.js +1 -2
- package/dist/models/GetAllProductChildRequest.d.ts +0 -1
- package/dist/models/GetAllProductChildRequest.js +0 -1
- package/dist/models/IndexAttributeRequest.d.ts +0 -2
- package/dist/models/IndexAttributeRequest.js +1 -3
- package/dist/models/IndexDocumentRequest.d.ts +1 -2
- package/dist/models/IndexDocumentRequest.js +1 -2
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/ModelAttributeResource.d.ts +0 -6
- package/dist/models/ModelAttributeResource.js +0 -2
- package/dist/models/ProductSearchResultResource.d.ts +1 -1
- package/dist/models/ProductSearchResultResource.js +3 -3
- package/dist/models/StoreAssetForAssetableRequest.d.ts +0 -2
- package/dist/models/StoreAssetForAssetableRequest.js +1 -3
- package/dist/models/UpdateProductTypeRequest.d.ts +9 -9
- package/dist/models/UpdateProductTypeRequest.js +9 -9
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +38 -0
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +51 -0
- package/dist/models/index.d.ts +1 -44
- package/dist/models/index.js +1 -44
- package/docs/AttributeApi.md +0 -66
- package/docs/ModelAttributeResource.md +0 -2
- package/docs/ProductSearchResultResource.md +2 -2
- package/docs/UpdateProductTypeRequest.md +4 -4
- package/docs/{UpdateProductRangeRequestAttributesInner.md → UpdateProductTypeRequestPerformanceValuesInner.md} +4 -4
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +0 -50
- package/src/apis/index.ts +0 -1
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -2
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -2
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDocumentRequest.ts +1 -2
- package/src/models/GetAllProductChildRequest.ts +0 -1
- package/src/models/IndexAttributeRequest.ts +1 -3
- package/src/models/IndexDocumentRequest.ts +1 -2
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/ModelAttributeResource.ts +0 -8
- package/src/models/ProductSearchResultResource.ts +4 -4
- package/src/models/StoreAssetForAssetableRequest.ts +1 -3
- package/src/models/UpdateProductTypeRequest.ts +22 -22
- package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +73 -0
- package/src/models/index.ts +1 -44
- package/dist/apis/ProductRangeApi.d.ts +0 -269
- package/dist/apis/ProductRangeApi.js +0 -1043
- package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +0 -32
- package/dist/models/AttachAccessoriesProductRangeRequest.js +0 -51
- package/dist/models/AttachAttributesProductRangeRequest.d.ts +0 -33
- package/dist/models/AttachAttributesProductRangeRequest.js +0 -52
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.d.ts +0 -38
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.js +0 -53
- package/dist/models/AttachDocumentsProductRangeRequest.d.ts +0 -33
- package/dist/models/AttachDocumentsProductRangeRequest.js +0 -52
- package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +0 -32
- package/dist/models/DetachAccessoriesProductRangeRequest.js +0 -51
- package/dist/models/DetachAttributesProductRangeRequest.d.ts +0 -32
- package/dist/models/DetachAttributesProductRangeRequest.js +0 -51
- package/dist/models/DetachDocumentsProductRangeRequest.d.ts +0 -32
- package/dist/models/DetachDocumentsProductRangeRequest.js +0 -51
- package/dist/models/GetAllProductRangeRequest.d.ts +0 -98
- package/dist/models/GetAllProductRangeRequest.js +0 -82
- package/dist/models/IndexModelAttributeRequest.d.ts +0 -118
- package/dist/models/IndexModelAttributeRequest.js +0 -93
- package/dist/models/IndexProductRangeRequest.d.ts +0 -110
- package/dist/models/IndexProductRangeRequest.js +0 -86
- package/dist/models/ModelAttributeListResource.d.ts +0 -64
- package/dist/models/ModelAttributeListResource.js +0 -71
- package/dist/models/ModelAttributeListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ModelAttributeListResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedModelAttributeListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedModelAttributeListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeLiteResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeSearchResultResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeSearchResultResourceResponse.js +0 -57
- package/dist/models/ProductRangeAggregationResource.d.ts +0 -44
- package/dist/models/ProductRangeAggregationResource.js +0 -59
- package/dist/models/ProductRangeAggregationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeAggregationResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeFrontendListResource.d.ts +0 -62
- package/dist/models/ProductRangeFrontendListResource.js +0 -71
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeFrontendResource.d.ts +0 -117
- package/dist/models/ProductRangeFrontendResource.js +0 -106
- package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeFrontendResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeListResource.d.ts +0 -66
- package/dist/models/ProductRangeListResource.js +0 -75
- package/dist/models/ProductRangeListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeLiteResource.d.ts +0 -38
- package/dist/models/ProductRangeLiteResource.js +0 -55
- package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeResource.d.ts +0 -89
- package/dist/models/ProductRangeResource.js +0 -86
- package/dist/models/ProductRangeResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSearchResponseResource.d.ts +0 -47
- package/dist/models/ProductRangeSearchResponseResource.js +0 -62
- package/dist/models/ProductRangeSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeSearchResponseResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSearchResponseResourceMeta.d.ts +0 -50
- package/dist/models/ProductRangeSearchResponseResourceMeta.js +0 -63
- package/dist/models/ProductRangeSearchResultResource.d.ts +0 -80
- package/dist/models/ProductRangeSearchResultResource.js +0 -83
- package/dist/models/ProductRangeSearchResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeSearchResultResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSiteDetailLiteResource.d.ts +0 -44
- package/dist/models/ProductRangeSiteDetailLiteResource.js +0 -59
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSiteDetailResource.d.ts +0 -101
- package/dist/models/ProductRangeSiteDetailResource.js +0 -98
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSortBy.d.ts +0 -27
- package/dist/models/ProductRangeSortBy.js +0 -53
- package/dist/models/StoreProductRangeRequest.d.ts +0 -52
- package/dist/models/StoreProductRangeRequest.js +0 -59
- package/dist/models/StoreProductRangeRequestSitesInner.d.ts +0 -92
- package/dist/models/StoreProductRangeRequestSitesInner.js +0 -75
- package/dist/models/UpdateProductRangeRequest.d.ts +0 -59
- package/dist/models/UpdateProductRangeRequest.js +0 -62
- package/dist/models/UpdateProductRangeRequestAttributesInner.d.ts +0 -38
- package/dist/models/UpdateProductRangeRequestAttributesInner.js +0 -51
- package/docs/AttachAccessoriesProductRangeRequest.md +0 -34
- package/docs/AttachAttributesProductRangeRequest.md +0 -34
- package/docs/AttachAttributesProductRangeRequestAttributesInner.md +0 -36
- package/docs/AttachDocumentsProductRangeRequest.md +0 -34
- package/docs/DetachAccessoriesProductRangeRequest.md +0 -34
- package/docs/DetachAttributesProductRangeRequest.md +0 -34
- package/docs/DetachDocumentsProductRangeRequest.md +0 -34
- package/docs/GetAllProductRangeRequest.md +0 -50
- package/docs/IndexModelAttributeRequest.md +0 -54
- package/docs/IndexProductRangeRequest.md +0 -54
- package/docs/ModelAttributeListResource.md +0 -44
- package/docs/ModelAttributeListResourceArrayResponse.md +0 -34
- package/docs/PaginatedModelAttributeListResourceResponse.md +0 -36
- package/docs/PaginatedProductRangeFrontendListResourceResponse.md +0 -36
- package/docs/PaginatedProductRangeListResourceResponse.md +0 -36
- package/docs/PaginatedProductRangeLiteResourceResponse.md +0 -36
- package/docs/PaginatedProductRangeResourceResponse.md +0 -36
- package/docs/PaginatedProductRangeSearchResultResourceResponse.md +0 -36
- package/docs/ProductRangeAggregationResource.md +0 -38
- package/docs/ProductRangeAggregationResourceArrayResponse.md +0 -34
- package/docs/ProductRangeApi.md +0 -1097
- package/docs/ProductRangeFrontendListResource.md +0 -44
- package/docs/ProductRangeFrontendListResourceArrayResponse.md +0 -34
- package/docs/ProductRangeFrontendResource.md +0 -62
- package/docs/ProductRangeFrontendResourceArrayResponse.md +0 -34
- package/docs/ProductRangeListResource.md +0 -44
- package/docs/ProductRangeListResourceArrayResponse.md +0 -34
- package/docs/ProductRangeLiteResource.md +0 -36
- package/docs/ProductRangeLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRangeResource.md +0 -52
- package/docs/ProductRangeResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSearchResponseResource.md +0 -38
- package/docs/ProductRangeSearchResponseResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSearchResponseResourceMeta.md +0 -40
- package/docs/ProductRangeSearchResultResource.md +0 -50
- package/docs/ProductRangeSearchResultResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSiteDetailLiteResource.md +0 -38
- package/docs/ProductRangeSiteDetailLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSiteDetailResource.md +0 -56
- package/docs/ProductRangeSiteDetailResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSortBy.md +0 -32
- package/docs/StoreProductRangeRequest.md +0 -40
- package/docs/StoreProductRangeRequestSitesInner.md +0 -54
- package/docs/UpdateProductRangeRequest.md +0 -42
- package/src/apis/ProductRangeApi.ts +0 -888
- package/src/models/AttachAccessoriesProductRangeRequest.ts +0 -66
- package/src/models/AttachAttributesProductRangeRequest.ts +0 -74
- package/src/models/AttachAttributesProductRangeRequestAttributesInner.ts +0 -74
- package/src/models/AttachDocumentsProductRangeRequest.ts +0 -74
- package/src/models/DetachAccessoriesProductRangeRequest.ts +0 -66
- package/src/models/DetachAttributesProductRangeRequest.ts +0 -66
- package/src/models/DetachDocumentsProductRangeRequest.ts +0 -66
- package/src/models/GetAllProductRangeRequest.ts +0 -151
- package/src/models/IndexModelAttributeRequest.ts +0 -176
- package/src/models/IndexProductRangeRequest.ts +0 -167
- package/src/models/ModelAttributeListResource.ts +0 -125
- package/src/models/ModelAttributeListResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedModelAttributeListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeLiteResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeSearchResultResourceResponse.ts +0 -90
- package/src/models/ProductRangeAggregationResource.ts +0 -84
- package/src/models/ProductRangeAggregationResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeFrontendListResource.ts +0 -111
- package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeFrontendResource.ts +0 -199
- package/src/models/ProductRangeFrontendResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeListResource.ts +0 -140
- package/src/models/ProductRangeListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeLiteResource.ts +0 -75
- package/src/models/ProductRangeLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeResource.ts +0 -167
- package/src/models/ProductRangeResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSearchResponseResource.ts +0 -106
- package/src/models/ProductRangeSearchResponseResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSearchResponseResourceMeta.ts +0 -93
- package/src/models/ProductRangeSearchResultResource.ts +0 -138
- package/src/models/ProductRangeSearchResultResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSiteDetailLiteResource.ts +0 -84
- package/src/models/ProductRangeSiteDetailLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSiteDetailResource.ts +0 -187
- package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSortBy.ts +0 -55
- package/src/models/StoreProductRangeRequest.ts +0 -105
- package/src/models/StoreProductRangeRequestSitesInner.ts +0 -148
- package/src/models/UpdateProductRangeRequest.ts +0 -120
- package/src/models/UpdateProductRangeRequestAttributesInner.ts +0 -73
package/docs/AttributeApi.md
CHANGED
|
@@ -12,7 +12,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
12
12
|
| [**getAllAttributeValue**](AttributeApi.md#getallattributevalueoperation) | **POST** /admin-api/attribute/value/all | Auto-generated: getAllAttributeValue |
|
|
13
13
|
| [**indexAttribute**](AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute |
|
|
14
14
|
| [**indexAttributeValue**](AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue |
|
|
15
|
-
| [**indexModelAttribute**](AttributeApi.md#indexmodelattributeoperation) | **POST** /admin-api/attribute/model-attribute/list | Auto-generated: indexModelAttribute |
|
|
16
15
|
| [**showAttribute**](AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute |
|
|
17
16
|
| [**storeAttribute**](AttributeApi.md#storeattributeoperation) | **POST** /admin-api/attribute/create | Auto-generated: storeAttribute |
|
|
18
17
|
| [**storeAttributeValue**](AttributeApi.md#storeattributevalueoperation) | **POST** /admin-api/attribute/value/create | Auto-generated: storeAttributeValue |
|
|
@@ -553,71 +552,6 @@ No authorization required
|
|
|
553
552
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
554
553
|
|
|
555
554
|
|
|
556
|
-
## indexModelAttribute
|
|
557
|
-
|
|
558
|
-
> PaginatedModelAttributeListResourceResponse indexModelAttribute(indexModelAttributeRequest)
|
|
559
|
-
|
|
560
|
-
Auto-generated: indexModelAttribute
|
|
561
|
-
|
|
562
|
-
### Example
|
|
563
|
-
|
|
564
|
-
```ts
|
|
565
|
-
import {
|
|
566
|
-
Configuration,
|
|
567
|
-
AttributeApi,
|
|
568
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
569
|
-
import type { IndexModelAttributeOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
570
|
-
|
|
571
|
-
async function example() {
|
|
572
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
573
|
-
const api = new AttributeApi();
|
|
574
|
-
|
|
575
|
-
const body = {
|
|
576
|
-
// IndexModelAttributeRequest (optional)
|
|
577
|
-
indexModelAttributeRequest: ...,
|
|
578
|
-
} satisfies IndexModelAttributeOperationRequest;
|
|
579
|
-
|
|
580
|
-
try {
|
|
581
|
-
const data = await api.indexModelAttribute(body);
|
|
582
|
-
console.log(data);
|
|
583
|
-
} catch (error) {
|
|
584
|
-
console.error(error);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
// Run the test
|
|
589
|
-
example().catch(console.error);
|
|
590
|
-
```
|
|
591
|
-
|
|
592
|
-
### Parameters
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
| Name | Type | Description | Notes |
|
|
596
|
-
|------------- | ------------- | ------------- | -------------|
|
|
597
|
-
| **indexModelAttributeRequest** | [IndexModelAttributeRequest](IndexModelAttributeRequest.md) | | [Optional] |
|
|
598
|
-
|
|
599
|
-
### Return type
|
|
600
|
-
|
|
601
|
-
[**PaginatedModelAttributeListResourceResponse**](PaginatedModelAttributeListResourceResponse.md)
|
|
602
|
-
|
|
603
|
-
### Authorization
|
|
604
|
-
|
|
605
|
-
No authorization required
|
|
606
|
-
|
|
607
|
-
### HTTP request headers
|
|
608
|
-
|
|
609
|
-
- **Content-Type**: `application/json`
|
|
610
|
-
- **Accept**: `application/json`
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
### HTTP response details
|
|
614
|
-
| Status code | Description | Response headers |
|
|
615
|
-
|-------------|-------------|------------------|
|
|
616
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ModelAttributeListResource[]>> | - |
|
|
617
|
-
|
|
618
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
619
|
-
|
|
620
|
-
|
|
621
555
|
## showAttribute
|
|
622
556
|
|
|
623
557
|
> AttributeResource showAttribute(attribute)
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`order` | string
|
|
11
10
|
`value` | string
|
|
12
11
|
`attribute` | [AttributeLiteResource](AttributeLiteResource.md)
|
|
13
12
|
`attributeValues` | [Array<AttributeValueResource>](AttributeValueResource.md)
|
|
@@ -20,7 +19,6 @@ import type { ModelAttributeResource } from '@digital8/lighting-illusions-ts-sdk
|
|
|
20
19
|
// TODO: Update the object below with actual values
|
|
21
20
|
const example = {
|
|
22
21
|
"id": null,
|
|
23
|
-
"order": null,
|
|
24
22
|
"value": null,
|
|
25
23
|
"attribute": null,
|
|
26
24
|
"attributeValues": null,
|
|
@@ -15,7 +15,7 @@ Name | Type
|
|
|
15
15
|
`salePrice` | number
|
|
16
16
|
`thumbnail` | string
|
|
17
17
|
`averageRating` | string
|
|
18
|
-
`
|
|
18
|
+
`label` | Array<number>
|
|
19
19
|
`supplierName` | string
|
|
20
20
|
`supplierLogo` | string
|
|
21
21
|
`supplierId` | number
|
|
@@ -40,7 +40,7 @@ const example = {
|
|
|
40
40
|
"salePrice": null,
|
|
41
41
|
"thumbnail": null,
|
|
42
42
|
"averageRating": null,
|
|
43
|
-
"
|
|
43
|
+
"label": null,
|
|
44
44
|
"supplierName": null,
|
|
45
45
|
"supplierLogo": null,
|
|
46
46
|
"supplierId": null,
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
|
-
`performanceValues` | [Array<
|
|
11
|
-
`dimensionValues` | [Array<
|
|
12
|
-
`specificationValues` | [Array<
|
|
13
|
-
`otherValues` | [Array<
|
|
10
|
+
`performanceValues` | [Array<UpdateProductTypeRequestPerformanceValuesInner>](UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
11
|
+
`dimensionValues` | [Array<UpdateProductTypeRequestPerformanceValuesInner>](UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
12
|
+
`specificationValues` | [Array<UpdateProductTypeRequestPerformanceValuesInner>](UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
13
|
+
`otherValues` | [Array<UpdateProductTypeRequestPerformanceValuesInner>](UpdateProductTypeRequestPerformanceValuesInner.md)
|
|
14
14
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# UpdateProductTypeRequestPerformanceValuesInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -12,13 +12,13 @@ Name | Type
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { UpdateProductTypeRequestPerformanceValuesInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"attributeId": null,
|
|
20
20
|
"order": null,
|
|
21
|
-
} satisfies
|
|
21
|
+
} satisfies UpdateProductTypeRequestPerformanceValuesInner
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateProductTypeRequestPerformanceValuesInner
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
package/package.json
CHANGED
package/src/apis/AttributeApi.ts
CHANGED
|
@@ -26,11 +26,9 @@ import type {
|
|
|
26
26
|
GetAllAttributeValueRequest,
|
|
27
27
|
IndexAttributeRequest,
|
|
28
28
|
IndexAttributeValueRequest,
|
|
29
|
-
IndexModelAttributeRequest,
|
|
30
29
|
ModelAttributeResourceArrayResponse,
|
|
31
30
|
PaginatedAttributeListResourceResponse,
|
|
32
31
|
PaginatedAttributeValueResourceResponse,
|
|
33
|
-
PaginatedModelAttributeListResourceResponse,
|
|
34
32
|
StoreAttributeRequest,
|
|
35
33
|
StoreAttributeValueRequest,
|
|
36
34
|
UpdateAttributeRequest,
|
|
@@ -61,16 +59,12 @@ import {
|
|
|
61
59
|
IndexAttributeRequestToJSON,
|
|
62
60
|
IndexAttributeValueRequestFromJSON,
|
|
63
61
|
IndexAttributeValueRequestToJSON,
|
|
64
|
-
IndexModelAttributeRequestFromJSON,
|
|
65
|
-
IndexModelAttributeRequestToJSON,
|
|
66
62
|
ModelAttributeResourceArrayResponseFromJSON,
|
|
67
63
|
ModelAttributeResourceArrayResponseToJSON,
|
|
68
64
|
PaginatedAttributeListResourceResponseFromJSON,
|
|
69
65
|
PaginatedAttributeListResourceResponseToJSON,
|
|
70
66
|
PaginatedAttributeValueResourceResponseFromJSON,
|
|
71
67
|
PaginatedAttributeValueResourceResponseToJSON,
|
|
72
|
-
PaginatedModelAttributeListResourceResponseFromJSON,
|
|
73
|
-
PaginatedModelAttributeListResourceResponseToJSON,
|
|
74
68
|
StoreAttributeRequestFromJSON,
|
|
75
69
|
StoreAttributeRequestToJSON,
|
|
76
70
|
StoreAttributeValueRequestFromJSON,
|
|
@@ -120,10 +114,6 @@ export interface IndexAttributeValueOperationRequest {
|
|
|
120
114
|
indexAttributeValueRequest?: IndexAttributeValueRequest;
|
|
121
115
|
}
|
|
122
116
|
|
|
123
|
-
export interface IndexModelAttributeOperationRequest {
|
|
124
|
-
indexModelAttributeRequest?: IndexModelAttributeRequest;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
117
|
export interface ShowAttributeRequest {
|
|
128
118
|
attribute: number;
|
|
129
119
|
}
|
|
@@ -519,46 +509,6 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
519
509
|
return await response.value();
|
|
520
510
|
}
|
|
521
511
|
|
|
522
|
-
/**
|
|
523
|
-
* Creates request options for indexModelAttribute without sending the request
|
|
524
|
-
*/
|
|
525
|
-
async indexModelAttributeRequestOpts(requestParameters: IndexModelAttributeOperationRequest): Promise<runtime.RequestOpts> {
|
|
526
|
-
const queryParameters: any = {};
|
|
527
|
-
|
|
528
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
529
|
-
|
|
530
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
let urlPath = `/admin-api/attribute/model-attribute/list`;
|
|
534
|
-
|
|
535
|
-
return {
|
|
536
|
-
path: urlPath,
|
|
537
|
-
method: 'POST',
|
|
538
|
-
headers: headerParameters,
|
|
539
|
-
query: queryParameters,
|
|
540
|
-
body: IndexModelAttributeRequestToJSON(requestParameters['indexModelAttributeRequest']),
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* Auto-generated: indexModelAttribute
|
|
546
|
-
*/
|
|
547
|
-
async indexModelAttributeRaw(requestParameters: IndexModelAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedModelAttributeListResourceResponse>> {
|
|
548
|
-
const requestOptions = await this.indexModelAttributeRequestOpts(requestParameters);
|
|
549
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
550
|
-
|
|
551
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedModelAttributeListResourceResponseFromJSON(jsonValue));
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* Auto-generated: indexModelAttribute
|
|
556
|
-
*/
|
|
557
|
-
async indexModelAttribute(requestParameters: IndexModelAttributeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedModelAttributeListResourceResponse> {
|
|
558
|
-
const response = await this.indexModelAttributeRaw(requestParameters, initOverrides);
|
|
559
|
-
return await response.value();
|
|
560
|
-
}
|
|
561
|
-
|
|
562
512
|
/**
|
|
563
513
|
* Creates request options for showAttribute without sending the request
|
|
564
514
|
*/
|
package/src/apis/index.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * from './GoogleCategoryApi';
|
|
|
10
10
|
export * from './OverlayTemplateApi';
|
|
11
11
|
export * from './ProductApi';
|
|
12
12
|
export * from './ProductCategoryApi';
|
|
13
|
-
export * from './ProductRangeApi';
|
|
14
13
|
export * from './ProductTypeApi';
|
|
15
14
|
export * from './SiteApi';
|
|
16
15
|
export * from './SupplierApi';
|
|
@@ -45,8 +45,7 @@ export interface AttachDocumentablesDocumentRequestDocumentablesInner {
|
|
|
45
45
|
*/
|
|
46
46
|
export const AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = {
|
|
47
47
|
AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
|
|
48
|
-
|
|
49
|
-
AppModelsProductRangesProductRangeSiteDetail: 'App\\Models\\ProductRanges\\ProductRangeSiteDetail'
|
|
48
|
+
AppModelsProductRangeSite: 'App\\Models\\ProductRangeSite'
|
|
50
49
|
} as const;
|
|
51
50
|
export type AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = typeof AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum[keyof typeof AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum];
|
|
52
51
|
|
|
@@ -39,8 +39,7 @@ export interface DetachDocumentablesDocumentRequestDocumentablesInner {
|
|
|
39
39
|
*/
|
|
40
40
|
export const DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = {
|
|
41
41
|
AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
|
|
42
|
-
|
|
43
|
-
AppModelsProductRangesProductRangeSiteDetail: 'App\\Models\\ProductRanges\\ProductRangeSiteDetail'
|
|
42
|
+
AppModelsProductRangeSite: 'App\\Models\\ProductRangeSite'
|
|
44
43
|
} as const;
|
|
45
44
|
export type DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = typeof DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum[keyof typeof DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum];
|
|
46
45
|
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -89,8 +89,7 @@ export type GetAllDocumentRequestSortDirectionEnum = typeof GetAllDocumentReques
|
|
|
89
89
|
*/
|
|
90
90
|
export const GetAllDocumentRequestRelatedTypeEnum = {
|
|
91
91
|
ProductChild: 'productChild',
|
|
92
|
-
|
|
93
|
-
ProductRangeSiteDetail: 'productRangeSiteDetail'
|
|
92
|
+
ProductRangeSite: 'productRangeSite'
|
|
94
93
|
} as const;
|
|
95
94
|
export type GetAllDocumentRequestRelatedTypeEnum = typeof GetAllDocumentRequestRelatedTypeEnum[keyof typeof GetAllDocumentRequestRelatedTypeEnum];
|
|
96
95
|
|
|
@@ -163,7 +163,6 @@ export type GetAllProductChildRequestSortDirectionEnum = typeof GetAllProductChi
|
|
|
163
163
|
*/
|
|
164
164
|
export const GetAllProductChildRequestRelatedTypeEnum = {
|
|
165
165
|
OverlayTemplate: 'overlayTemplate',
|
|
166
|
-
ProductRange: 'productRange',
|
|
167
166
|
Supplier: 'supplier',
|
|
168
167
|
Tag: 'tag',
|
|
169
168
|
Document: 'document'
|
|
@@ -113,9 +113,7 @@ export type IndexAttributeRequestSortDirectionEnum = typeof IndexAttributeReques
|
|
|
113
113
|
* @export
|
|
114
114
|
*/
|
|
115
115
|
export const IndexAttributeRequestRelatedTypeEnum = {
|
|
116
|
-
ProductType: 'productType'
|
|
117
|
-
ProductRange: 'productRange',
|
|
118
|
-
Category: 'category'
|
|
116
|
+
ProductType: 'productType'
|
|
119
117
|
} as const;
|
|
120
118
|
export type IndexAttributeRequestRelatedTypeEnum = typeof IndexAttributeRequestRelatedTypeEnum[keyof typeof IndexAttributeRequestRelatedTypeEnum];
|
|
121
119
|
|
|
@@ -101,8 +101,7 @@ export type IndexDocumentRequestSortDirectionEnum = typeof IndexDocumentRequestS
|
|
|
101
101
|
*/
|
|
102
102
|
export const IndexDocumentRequestRelatedTypeEnum = {
|
|
103
103
|
ProductChild: 'productChild',
|
|
104
|
-
|
|
105
|
-
ProductRangeSiteDetail: 'productRangeSiteDetail'
|
|
104
|
+
ProductRangeSite: 'productRangeSite'
|
|
106
105
|
} as const;
|
|
107
106
|
export type IndexDocumentRequestRelatedTypeEnum = typeof IndexDocumentRequestRelatedTypeEnum[keyof typeof IndexDocumentRequestRelatedTypeEnum];
|
|
108
107
|
|
|
@@ -40,12 +40,6 @@ export interface ModelAttributeResource {
|
|
|
40
40
|
* @memberof ModelAttributeResource
|
|
41
41
|
*/
|
|
42
42
|
id: number;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof ModelAttributeResource
|
|
47
|
-
*/
|
|
48
|
-
order?: string | null;
|
|
49
43
|
/**
|
|
50
44
|
*
|
|
51
45
|
* @type {string}
|
|
@@ -88,7 +82,6 @@ export function ModelAttributeResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
88
82
|
return {
|
|
89
83
|
|
|
90
84
|
'id': json['id'],
|
|
91
|
-
'order': json['order'] == null ? undefined : json['order'],
|
|
92
85
|
'value': json['value'],
|
|
93
86
|
'attribute': AttributeLiteResourceFromJSON(json['attribute']),
|
|
94
87
|
'attributeValues': (json['attributeValues'] == null ? null : (json['attributeValues'] as Array<any>).map(AttributeValueResourceFromJSON)),
|
|
@@ -107,7 +100,6 @@ export function ModelAttributeResourceToJSONTyped(value?: ModelAttributeResource
|
|
|
107
100
|
return {
|
|
108
101
|
|
|
109
102
|
'id': value['id'],
|
|
110
|
-
'order': value['order'],
|
|
111
103
|
'value': value['value'],
|
|
112
104
|
'attribute': AttributeLiteResourceToJSON(value['attribute']),
|
|
113
105
|
'attributeValues': (value['attributeValues'] == null ? null : (value['attributeValues'] as Array<any>).map(AttributeValueResourceToJSON)),
|
|
@@ -78,7 +78,7 @@ export interface ProductSearchResultResource {
|
|
|
78
78
|
* @type {Array<number>}
|
|
79
79
|
* @memberof ProductSearchResultResource
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
label: Array<number>;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -135,7 +135,7 @@ export function instanceOfProductSearchResultResource(value: object): value is P
|
|
|
135
135
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
136
136
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
137
137
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
138
|
-
if (!('
|
|
138
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
139
139
|
if (!('supplierName' in value) || value['supplierName'] === undefined) return false;
|
|
140
140
|
if (!('supplierLogo' in value) || value['supplierLogo'] === undefined) return false;
|
|
141
141
|
if (!('supplierId' in value) || value['supplierId'] === undefined) return false;
|
|
@@ -165,7 +165,7 @@ export function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
165
165
|
'salePrice': json['salePrice'],
|
|
166
166
|
'thumbnail': json['thumbnail'],
|
|
167
167
|
'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
|
|
168
|
-
'
|
|
168
|
+
'label': json['label'],
|
|
169
169
|
'supplierName': json['supplierName'],
|
|
170
170
|
'supplierLogo': json['supplierLogo'],
|
|
171
171
|
'supplierId': json['supplierId'],
|
|
@@ -196,7 +196,7 @@ export function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResu
|
|
|
196
196
|
'salePrice': value['salePrice'],
|
|
197
197
|
'thumbnail': value['thumbnail'],
|
|
198
198
|
'averageRating': value['averageRating'],
|
|
199
|
-
'
|
|
199
|
+
'label': value['label'],
|
|
200
200
|
'supplierName': value['supplierName'],
|
|
201
201
|
'supplierLogo': value['supplierLogo'],
|
|
202
202
|
'supplierId': value['supplierId'],
|
|
@@ -75,9 +75,7 @@ export interface StoreAssetForAssetableRequest {
|
|
|
75
75
|
*/
|
|
76
76
|
export const StoreAssetForAssetableRequestAssetableTypeEnum = {
|
|
77
77
|
AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
|
|
78
|
-
|
|
79
|
-
ProductChild: 'productChild',
|
|
80
|
-
ProductRange: 'productRange'
|
|
78
|
+
ProductChild: 'productChild'
|
|
81
79
|
} as const;
|
|
82
80
|
export type StoreAssetForAssetableRequestAssetableTypeEnum = typeof StoreAssetForAssetableRequestAssetableTypeEnum[keyof typeof StoreAssetForAssetableRequestAssetableTypeEnum];
|
|
83
81
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { UpdateProductTypeRequestPerformanceValuesInner } from './UpdateProductTypeRequestPerformanceValuesInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
UpdateProductTypeRequestPerformanceValuesInnerFromJSON,
|
|
19
|
+
UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped,
|
|
20
|
+
UpdateProductTypeRequestPerformanceValuesInnerToJSON,
|
|
21
|
+
UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped,
|
|
22
|
+
} from './UpdateProductTypeRequestPerformanceValuesInner';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -35,28 +35,28 @@ export interface UpdateProductTypeRequest {
|
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {Array<
|
|
38
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
39
39
|
* @memberof UpdateProductTypeRequest
|
|
40
40
|
*/
|
|
41
|
-
performanceValues?: Array<
|
|
41
|
+
performanceValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {Array<
|
|
44
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
45
45
|
* @memberof UpdateProductTypeRequest
|
|
46
46
|
*/
|
|
47
|
-
dimensionValues?: Array<
|
|
47
|
+
dimensionValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {Array<
|
|
50
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
51
51
|
* @memberof UpdateProductTypeRequest
|
|
52
52
|
*/
|
|
53
|
-
specificationValues?: Array<
|
|
53
|
+
specificationValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {Array<
|
|
56
|
+
* @type {Array<UpdateProductTypeRequestPerformanceValuesInner>}
|
|
57
57
|
* @memberof UpdateProductTypeRequest
|
|
58
58
|
*/
|
|
59
|
-
otherValues?: Array<
|
|
59
|
+
otherValues?: Array<UpdateProductTypeRequestPerformanceValuesInner>;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -78,10 +78,10 @@ export function UpdateProductTypeRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
78
78
|
return {
|
|
79
79
|
|
|
80
80
|
'name': json['name'],
|
|
81
|
-
'performanceValues': json['performance_values'] == null ? undefined : ((json['performance_values'] as Array<any>).map(
|
|
82
|
-
'dimensionValues': json['dimension_values'] == null ? undefined : ((json['dimension_values'] as Array<any>).map(
|
|
83
|
-
'specificationValues': json['specification_values'] == null ? undefined : ((json['specification_values'] as Array<any>).map(
|
|
84
|
-
'otherValues': json['other_values'] == null ? undefined : ((json['other_values'] as Array<any>).map(
|
|
81
|
+
'performanceValues': json['performance_values'] == null ? undefined : ((json['performance_values'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
82
|
+
'dimensionValues': json['dimension_values'] == null ? undefined : ((json['dimension_values'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
83
|
+
'specificationValues': json['specification_values'] == null ? undefined : ((json['specification_values'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
84
|
+
'otherValues': json['other_values'] == null ? undefined : ((json['other_values'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerFromJSON)),
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -97,10 +97,10 @@ export function UpdateProductTypeRequestToJSONTyped(value?: UpdateProductTypeReq
|
|
|
97
97
|
return {
|
|
98
98
|
|
|
99
99
|
'name': value['name'],
|
|
100
|
-
'performance_values': value['performanceValues'] == null ? undefined : ((value['performanceValues'] as Array<any>).map(
|
|
101
|
-
'dimension_values': value['dimensionValues'] == null ? undefined : ((value['dimensionValues'] as Array<any>).map(
|
|
102
|
-
'specification_values': value['specificationValues'] == null ? undefined : ((value['specificationValues'] as Array<any>).map(
|
|
103
|
-
'other_values': value['otherValues'] == null ? undefined : ((value['otherValues'] as Array<any>).map(
|
|
100
|
+
'performance_values': value['performanceValues'] == null ? undefined : ((value['performanceValues'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
101
|
+
'dimension_values': value['dimensionValues'] == null ? undefined : ((value['dimensionValues'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
102
|
+
'specification_values': value['specificationValues'] == null ? undefined : ((value['specificationValues'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
103
|
+
'other_values': value['otherValues'] == null ? undefined : ((value['otherValues'] as Array<any>).map(UpdateProductTypeRequestPerformanceValuesInnerToJSON)),
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateProductTypeRequestPerformanceValuesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateProductTypeRequestPerformanceValuesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UpdateProductTypeRequestPerformanceValuesInner
|
|
26
|
+
*/
|
|
27
|
+
attributeId?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UpdateProductTypeRequestPerformanceValuesInner
|
|
32
|
+
*/
|
|
33
|
+
order?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UpdateProductTypeRequestPerformanceValuesInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUpdateProductTypeRequestPerformanceValuesInner(value: object): value is UpdateProductTypeRequestPerformanceValuesInner {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UpdateProductTypeRequestPerformanceValuesInnerFromJSON(json: any): UpdateProductTypeRequestPerformanceValuesInner {
|
|
44
|
+
return UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UpdateProductTypeRequestPerformanceValuesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductTypeRequestPerformanceValuesInner {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
|
|
54
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function UpdateProductTypeRequestPerformanceValuesInnerToJSON(json: any): UpdateProductTypeRequestPerformanceValuesInner {
|
|
59
|
+
return UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function UpdateProductTypeRequestPerformanceValuesInnerToJSONTyped(value?: UpdateProductTypeRequestPerformanceValuesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'attribute_id': value['attributeId'],
|
|
70
|
+
'order': value['order'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|