@digital8/lighting-illusions-ts-sdk 0.0.1413 → 0.0.1414
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 +20 -90
- package/README.md +18 -64
- package/dist/apis/AttributeApi.d.ts +1 -16
- package/dist/apis/AttributeApi.js +0 -58
- package/dist/apis/LabelApi.d.ts +109 -0
- package/dist/apis/LabelApi.js +433 -0
- package/dist/apis/ProductApi.js +1 -1
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AssetLiteResource.d.ts +0 -12
- package/dist/models/AssetLiteResource.js +0 -6
- 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/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/IndexLabelRequest.d.ts +109 -0
- package/dist/models/{IndexProductRangeRequest.js → IndexLabelRequest.js} +29 -23
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/LabelListResource.d.ts +75 -0
- package/dist/models/LabelListResource.js +74 -0
- package/dist/models/LabelListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelListResourceArrayResponse.js +50 -0
- package/dist/models/LabelLiteResource.d.ts +56 -0
- package/dist/models/LabelLiteResource.js +65 -0
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelLiteResourceArrayResponse.js +50 -0
- package/dist/models/LabelResource.d.ts +23 -4
- package/dist/models/LabelResource.js +19 -8
- package/dist/models/ModelAttributeResource.d.ts +0 -6
- package/dist/models/ModelAttributeResource.js +0 -2
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLabelListResourceResponse.js +57 -0
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/StoreAssetForAssetableRequest.d.ts +0 -2
- package/dist/models/StoreAssetForAssetableRequest.js +1 -3
- package/dist/models/StoreLabelRequest.d.ts +74 -0
- package/dist/models/StoreLabelRequest.js +71 -0
- package/dist/models/UpdateLabelRequest.d.ts +74 -0
- package/dist/models/UpdateLabelRequest.js +63 -0
- 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 +9 -44
- package/dist/models/index.js +9 -44
- package/docs/AssetLiteResource.md +0 -4
- package/docs/AttributeApi.md +0 -66
- package/docs/{IndexModelAttributeRequest.md → IndexLabelRequest.md} +6 -10
- package/docs/LabelApi.md +407 -0
- package/docs/{ProductRangeFrontendListResource.md → LabelListResource.md} +18 -14
- package/docs/{ProductRangeResourceArrayResponse.md → LabelListResourceArrayResponse.md} +5 -5
- package/docs/{ProductRangeSiteDetailLiteResource.md → LabelLiteResource.md} +12 -8
- package/docs/{ProductRangeLiteResource.md → LabelLiteResourceArrayResponse.md} +6 -8
- package/docs/LabelResource.md +12 -6
- package/docs/ModelAttributeResource.md +0 -2
- package/docs/{PaginatedProductRangeResourceResponse.md → PaginatedLabelListResourceResponse.md} +5 -5
- package/docs/ProductApi.md +1 -1
- package/docs/ProductSearchResultResource.md +0 -2
- package/docs/{AttachDocumentsProductRangeRequest.md → StoreLabelRequest.md} +20 -6
- package/docs/{ProductRangeSortBy.md → UpdateLabelRequest.md} +20 -4
- 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/LabelApi.ts +328 -0
- package/src/apis/ProductApi.ts +1 -1
- package/src/apis/index.ts +1 -1
- package/src/models/AssetLiteResource.ts +0 -17
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -2
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -2
- 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/IndexLabelRequest.ts +163 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/LabelListResource.ts +134 -0
- package/src/models/LabelListResourceArrayResponse.ts +73 -0
- package/src/models/LabelLiteResource.ts +101 -0
- package/src/models/LabelLiteResourceArrayResponse.ts +73 -0
- package/src/models/LabelResource.ts +46 -12
- package/src/models/ModelAttributeResource.ts +0 -8
- package/src/models/PaginatedLabelListResourceResponse.ts +90 -0
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/StoreAssetForAssetableRequest.ts +1 -3
- package/src/models/StoreLabelRequest.ts +125 -0
- package/src/models/UpdateLabelRequest.ts +121 -0
- package/src/models/UpdateProductTypeRequest.ts +22 -22
- package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +73 -0
- package/src/models/index.ts +9 -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/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/DetachAccessoriesProductRangeRequest.md +0 -34
- package/docs/DetachAttributesProductRangeRequest.md +0 -34
- package/docs/DetachDocumentsProductRangeRequest.md +0 -34
- package/docs/GetAllProductRangeRequest.md +0 -50
- 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/PaginatedProductRangeSearchResultResourceResponse.md +0 -36
- package/docs/ProductRangeAggregationResource.md +0 -38
- package/docs/ProductRangeAggregationResourceArrayResponse.md +0 -34
- package/docs/ProductRangeApi.md +0 -1097
- 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/ProductRangeLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRangeResource.md +0 -52
- 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/ProductRangeSiteDetailLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSiteDetailResource.md +0 -56
- package/docs/ProductRangeSiteDetailResourceArrayResponse.md +0 -34
- 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/{PaginatedProductRangeResourceResponse.md → PaginatedLabelListResourceResponse.md}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PaginatedLabelListResourceResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<LabelListResource>](LabelListResource.md)
|
|
10
10
|
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { PaginatedLabelListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"data": null,
|
|
20
20
|
"meta": null,
|
|
21
|
-
} satisfies
|
|
21
|
+
} satisfies PaginatedLabelListResourceResponse
|
|
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 PaginatedLabelListResourceResponse
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
package/docs/ProductApi.md
CHANGED
|
@@ -18,7 +18,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
18
18
|
| [**getCompatibleProductsProductChild**](ProductApi.md#getcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/list | Auto-generated: getCompatibleProductsProductChild |
|
|
19
19
|
| [**indexProduct**](ProductApi.md#indexproductoperation) | **POST** /admin-api/product/parent/list | Auto-generated: indexProduct |
|
|
20
20
|
| [**indexProductChild**](ProductApi.md#indexproductchildoperation) | **POST** /admin-api/product/children/list | Auto-generated: indexProductChild |
|
|
21
|
-
| [**showAssetsProductChild**](ProductApi.md#showassetsproductchildoperation) | **
|
|
21
|
+
| [**showAssetsProductChild**](ProductApi.md#showassetsproductchildoperation) | **GET** /admin-api/product/children/{productChild}/assets | Auto-generated: showAssetsProductChild |
|
|
22
22
|
| [**showAttributesProductChild**](ProductApi.md#showattributesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild |
|
|
23
23
|
| [**showProduct**](ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct |
|
|
24
24
|
| [**showProductChild**](ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild |
|
|
@@ -9,7 +9,6 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`sku` | string
|
|
11
11
|
`model` | string
|
|
12
|
-
`barcode` | string
|
|
13
12
|
`name` | string
|
|
14
13
|
`slug` | string
|
|
15
14
|
`price` | number
|
|
@@ -35,7 +34,6 @@ const example = {
|
|
|
35
34
|
"id": null,
|
|
36
35
|
"sku": null,
|
|
37
36
|
"model": null,
|
|
38
|
-
"barcode": null,
|
|
39
37
|
"name": null,
|
|
40
38
|
"slug": null,
|
|
41
39
|
"price": null,
|
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# StoreLabelRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`siteId` | number
|
|
10
|
+
`shortName` | string
|
|
11
|
+
`longName` | string
|
|
12
|
+
`cartButtonText` | string
|
|
13
|
+
`colour` | string
|
|
14
|
+
`textColour` | string
|
|
15
|
+
`startDate` | Date
|
|
16
|
+
`endDate` | Date
|
|
10
17
|
|
|
11
18
|
## Example
|
|
12
19
|
|
|
13
20
|
```typescript
|
|
14
|
-
import type {
|
|
21
|
+
import type { StoreLabelRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
22
|
|
|
16
23
|
// TODO: Update the object below with actual values
|
|
17
24
|
const example = {
|
|
18
|
-
"
|
|
19
|
-
|
|
25
|
+
"siteId": null,
|
|
26
|
+
"shortName": null,
|
|
27
|
+
"longName": null,
|
|
28
|
+
"cartButtonText": null,
|
|
29
|
+
"colour": null,
|
|
30
|
+
"textColour": null,
|
|
31
|
+
"startDate": null,
|
|
32
|
+
"endDate": null,
|
|
33
|
+
} satisfies StoreLabelRequest
|
|
20
34
|
|
|
21
35
|
console.log(example)
|
|
22
36
|
|
|
@@ -25,7 +39,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
39
|
console.log(exampleJSON)
|
|
26
40
|
|
|
27
41
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreLabelRequest
|
|
29
43
|
console.log(exampleParsed)
|
|
30
44
|
```
|
|
31
45
|
|
|
@@ -1,20 +1,36 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# UpdateLabelRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`siteId` | number
|
|
10
|
+
`shortName` | string
|
|
11
|
+
`longName` | string
|
|
12
|
+
`cartButtonText` | string
|
|
13
|
+
`colour` | string
|
|
14
|
+
`textColour` | string
|
|
15
|
+
`startDate` | Date
|
|
16
|
+
`endDate` | Date
|
|
9
17
|
|
|
10
18
|
## Example
|
|
11
19
|
|
|
12
20
|
```typescript
|
|
13
|
-
import type {
|
|
21
|
+
import type { UpdateLabelRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
22
|
|
|
15
23
|
// TODO: Update the object below with actual values
|
|
16
24
|
const example = {
|
|
17
|
-
|
|
25
|
+
"siteId": null,
|
|
26
|
+
"shortName": null,
|
|
27
|
+
"longName": null,
|
|
28
|
+
"cartButtonText": null,
|
|
29
|
+
"colour": null,
|
|
30
|
+
"textColour": null,
|
|
31
|
+
"startDate": null,
|
|
32
|
+
"endDate": null,
|
|
33
|
+
} satisfies UpdateLabelRequest
|
|
18
34
|
|
|
19
35
|
console.log(example)
|
|
20
36
|
|
|
@@ -23,7 +39,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
39
|
console.log(exampleJSON)
|
|
24
40
|
|
|
25
41
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateLabelRequest
|
|
27
43
|
console.log(exampleParsed)
|
|
28
44
|
```
|
|
29
45
|
|
|
@@ -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
|
*/
|
|
@@ -0,0 +1,328 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
GenericResponse,
|
|
19
|
+
IndexLabelRequest,
|
|
20
|
+
LabelResource,
|
|
21
|
+
PaginatedLabelListResourceResponse,
|
|
22
|
+
StoreLabelRequest,
|
|
23
|
+
UpdateLabelRequest,
|
|
24
|
+
} from '../models/index';
|
|
25
|
+
import {
|
|
26
|
+
GenericResponseFromJSON,
|
|
27
|
+
GenericResponseToJSON,
|
|
28
|
+
IndexLabelRequestFromJSON,
|
|
29
|
+
IndexLabelRequestToJSON,
|
|
30
|
+
LabelResourceFromJSON,
|
|
31
|
+
LabelResourceToJSON,
|
|
32
|
+
PaginatedLabelListResourceResponseFromJSON,
|
|
33
|
+
PaginatedLabelListResourceResponseToJSON,
|
|
34
|
+
StoreLabelRequestFromJSON,
|
|
35
|
+
StoreLabelRequestToJSON,
|
|
36
|
+
UpdateLabelRequestFromJSON,
|
|
37
|
+
UpdateLabelRequestToJSON,
|
|
38
|
+
} from '../models/index';
|
|
39
|
+
|
|
40
|
+
export interface DestroyLabelRequest {
|
|
41
|
+
label: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface GetAllLabelRequest {
|
|
45
|
+
indexLabelRequest?: IndexLabelRequest;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface IndexLabelOperationRequest {
|
|
49
|
+
indexLabelRequest?: IndexLabelRequest;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface ShowLabelRequest {
|
|
53
|
+
label: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface StoreLabelOperationRequest {
|
|
57
|
+
storeLabelRequest?: StoreLabelRequest;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface UpdateLabelOperationRequest {
|
|
61
|
+
label: number;
|
|
62
|
+
updateLabelRequest?: UpdateLabelRequest;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export class LabelApi extends runtime.BaseAPI {
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for destroyLabel without sending the request
|
|
72
|
+
*/
|
|
73
|
+
async destroyLabelRequestOpts(requestParameters: DestroyLabelRequest): Promise<runtime.RequestOpts> {
|
|
74
|
+
if (requestParameters['label'] == null) {
|
|
75
|
+
throw new runtime.RequiredError(
|
|
76
|
+
'label',
|
|
77
|
+
'Required parameter "label" was null or undefined when calling destroyLabel().'
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const queryParameters: any = {};
|
|
82
|
+
|
|
83
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
let urlPath = `/admin-api/label/{label}/delete`;
|
|
87
|
+
urlPath = urlPath.replace(`{${"label"}}`, encodeURIComponent(String(requestParameters['label'])));
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'DELETE',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Auto-generated: destroyLabel
|
|
99
|
+
*/
|
|
100
|
+
async destroyLabelRaw(requestParameters: DestroyLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
101
|
+
const requestOptions = await this.destroyLabelRequestOpts(requestParameters);
|
|
102
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
103
|
+
|
|
104
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Auto-generated: destroyLabel
|
|
109
|
+
*/
|
|
110
|
+
async destroyLabel(requestParameters: DestroyLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
111
|
+
const response = await this.destroyLabelRaw(requestParameters, initOverrides);
|
|
112
|
+
return await response.value();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Creates request options for getAllLabel without sending the request
|
|
117
|
+
*/
|
|
118
|
+
async getAllLabelRequestOpts(requestParameters: GetAllLabelRequest): Promise<runtime.RequestOpts> {
|
|
119
|
+
const queryParameters: any = {};
|
|
120
|
+
|
|
121
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
122
|
+
|
|
123
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
let urlPath = `/admin-api/label/all`;
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
path: urlPath,
|
|
130
|
+
method: 'POST',
|
|
131
|
+
headers: headerParameters,
|
|
132
|
+
query: queryParameters,
|
|
133
|
+
body: IndexLabelRequestToJSON(requestParameters['indexLabelRequest']),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Auto-generated: getAllLabel
|
|
139
|
+
*/
|
|
140
|
+
async getAllLabelRaw(requestParameters: GetAllLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
141
|
+
const requestOptions = await this.getAllLabelRequestOpts(requestParameters);
|
|
142
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
143
|
+
|
|
144
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Auto-generated: getAllLabel
|
|
149
|
+
*/
|
|
150
|
+
async getAllLabel(requestParameters: GetAllLabelRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
151
|
+
const response = await this.getAllLabelRaw(requestParameters, initOverrides);
|
|
152
|
+
return await response.value();
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Creates request options for indexLabel without sending the request
|
|
157
|
+
*/
|
|
158
|
+
async indexLabelRequestOpts(requestParameters: IndexLabelOperationRequest): Promise<runtime.RequestOpts> {
|
|
159
|
+
const queryParameters: any = {};
|
|
160
|
+
|
|
161
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
162
|
+
|
|
163
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
let urlPath = `/admin-api/label/list`;
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
path: urlPath,
|
|
170
|
+
method: 'POST',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
body: IndexLabelRequestToJSON(requestParameters['indexLabelRequest']),
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Auto-generated: indexLabel
|
|
179
|
+
*/
|
|
180
|
+
async indexLabelRaw(requestParameters: IndexLabelOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedLabelListResourceResponse>> {
|
|
181
|
+
const requestOptions = await this.indexLabelRequestOpts(requestParameters);
|
|
182
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
183
|
+
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedLabelListResourceResponseFromJSON(jsonValue));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Auto-generated: indexLabel
|
|
189
|
+
*/
|
|
190
|
+
async indexLabel(requestParameters: IndexLabelOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedLabelListResourceResponse> {
|
|
191
|
+
const response = await this.indexLabelRaw(requestParameters, initOverrides);
|
|
192
|
+
return await response.value();
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Creates request options for showLabel without sending the request
|
|
197
|
+
*/
|
|
198
|
+
async showLabelRequestOpts(requestParameters: ShowLabelRequest): Promise<runtime.RequestOpts> {
|
|
199
|
+
if (requestParameters['label'] == null) {
|
|
200
|
+
throw new runtime.RequiredError(
|
|
201
|
+
'label',
|
|
202
|
+
'Required parameter "label" was null or undefined when calling showLabel().'
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const queryParameters: any = {};
|
|
207
|
+
|
|
208
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
let urlPath = `/admin-api/label/{label}`;
|
|
212
|
+
urlPath = urlPath.replace(`{${"label"}}`, encodeURIComponent(String(requestParameters['label'])));
|
|
213
|
+
|
|
214
|
+
return {
|
|
215
|
+
path: urlPath,
|
|
216
|
+
method: 'GET',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Auto-generated: showLabel
|
|
224
|
+
*/
|
|
225
|
+
async showLabelRaw(requestParameters: ShowLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LabelResource>> {
|
|
226
|
+
const requestOptions = await this.showLabelRequestOpts(requestParameters);
|
|
227
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
228
|
+
|
|
229
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LabelResourceFromJSON(jsonValue));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Auto-generated: showLabel
|
|
234
|
+
*/
|
|
235
|
+
async showLabel(requestParameters: ShowLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LabelResource> {
|
|
236
|
+
const response = await this.showLabelRaw(requestParameters, initOverrides);
|
|
237
|
+
return await response.value();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Creates request options for storeLabel without sending the request
|
|
242
|
+
*/
|
|
243
|
+
async storeLabelRequestOpts(requestParameters: StoreLabelOperationRequest): Promise<runtime.RequestOpts> {
|
|
244
|
+
const queryParameters: any = {};
|
|
245
|
+
|
|
246
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
247
|
+
|
|
248
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
let urlPath = `/admin-api/label/create`;
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
path: urlPath,
|
|
255
|
+
method: 'POST',
|
|
256
|
+
headers: headerParameters,
|
|
257
|
+
query: queryParameters,
|
|
258
|
+
body: StoreLabelRequestToJSON(requestParameters['storeLabelRequest']),
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Auto-generated: storeLabel
|
|
264
|
+
*/
|
|
265
|
+
async storeLabelRaw(requestParameters: StoreLabelOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LabelResource>> {
|
|
266
|
+
const requestOptions = await this.storeLabelRequestOpts(requestParameters);
|
|
267
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
268
|
+
|
|
269
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LabelResourceFromJSON(jsonValue));
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Auto-generated: storeLabel
|
|
274
|
+
*/
|
|
275
|
+
async storeLabel(requestParameters: StoreLabelOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LabelResource> {
|
|
276
|
+
const response = await this.storeLabelRaw(requestParameters, initOverrides);
|
|
277
|
+
return await response.value();
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Creates request options for updateLabel without sending the request
|
|
282
|
+
*/
|
|
283
|
+
async updateLabelRequestOpts(requestParameters: UpdateLabelOperationRequest): Promise<runtime.RequestOpts> {
|
|
284
|
+
if (requestParameters['label'] == null) {
|
|
285
|
+
throw new runtime.RequiredError(
|
|
286
|
+
'label',
|
|
287
|
+
'Required parameter "label" was null or undefined when calling updateLabel().'
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
const queryParameters: any = {};
|
|
292
|
+
|
|
293
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
294
|
+
|
|
295
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
let urlPath = `/admin-api/label/{label}/update`;
|
|
299
|
+
urlPath = urlPath.replace(`{${"label"}}`, encodeURIComponent(String(requestParameters['label'])));
|
|
300
|
+
|
|
301
|
+
return {
|
|
302
|
+
path: urlPath,
|
|
303
|
+
method: 'PUT',
|
|
304
|
+
headers: headerParameters,
|
|
305
|
+
query: queryParameters,
|
|
306
|
+
body: UpdateLabelRequestToJSON(requestParameters['updateLabelRequest']),
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Auto-generated: updateLabel
|
|
312
|
+
*/
|
|
313
|
+
async updateLabelRaw(requestParameters: UpdateLabelOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LabelResource>> {
|
|
314
|
+
const requestOptions = await this.updateLabelRequestOpts(requestParameters);
|
|
315
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
316
|
+
|
|
317
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LabelResourceFromJSON(jsonValue));
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Auto-generated: updateLabel
|
|
322
|
+
*/
|
|
323
|
+
async updateLabel(requestParameters: UpdateLabelOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LabelResource> {
|
|
324
|
+
const response = await this.updateLabelRaw(requestParameters, initOverrides);
|
|
325
|
+
return await response.value();
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
}
|
package/src/apis/ProductApi.ts
CHANGED
|
@@ -860,7 +860,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
860
860
|
|
|
861
861
|
return {
|
|
862
862
|
path: urlPath,
|
|
863
|
-
method: '
|
|
863
|
+
method: 'GET',
|
|
864
864
|
headers: headerParameters,
|
|
865
865
|
query: queryParameters,
|
|
866
866
|
body: ShowAssetsProductChildRequestToJSON(requestParameters['showAssetsProductChildRequest']),
|
package/src/apis/index.ts
CHANGED
|
@@ -7,10 +7,10 @@ export * from './DefinitionApi';
|
|
|
7
7
|
export * from './DocumentApi';
|
|
8
8
|
export * from './ExternalApiLogApi';
|
|
9
9
|
export * from './GoogleCategoryApi';
|
|
10
|
+
export * from './LabelApi';
|
|
10
11
|
export * from './OverlayTemplateApi';
|
|
11
12
|
export * from './ProductApi';
|
|
12
13
|
export * from './ProductCategoryApi';
|
|
13
|
-
export * from './ProductRangeApi';
|
|
14
14
|
export * from './ProductTypeApi';
|
|
15
15
|
export * from './SiteApi';
|
|
16
16
|
export * from './SupplierApi';
|