@digital8/lighting-illusions-ts-sdk 0.0.1413 → 0.0.1415
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/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/IndexLabelRequest.d.ts +109 -0
- package/dist/models/{IndexProductRangeRequest.js → IndexLabelRequest.js} +29 -23
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -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 +1 -7
- package/dist/models/ProductSearchResultResource.js +3 -7
- package/dist/models/StoreAssetForAssetableRequest.d.ts +0 -3
- package/dist/models/StoreAssetForAssetableRequest.js +1 -4
- 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 +2 -4
- 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/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/IndexLabelRequest.ts +163 -0
- package/src/models/IndexProductChildRequest.ts +0 -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 +4 -13
- package/src/models/StoreAssetForAssetableRequest.ts +1 -4
- 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
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# LabelLiteResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`name` | string
|
|
9
|
+
`data` | [Array<LabelLiteResource>](LabelLiteResource.md)
|
|
11
10
|
|
|
12
11
|
## Example
|
|
13
12
|
|
|
14
13
|
```typescript
|
|
15
|
-
import type {
|
|
14
|
+
import type { LabelLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
15
|
|
|
17
16
|
// TODO: Update the object below with actual values
|
|
18
17
|
const example = {
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
} satisfies ProductRangeLiteResource
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies LabelLiteResourceArrayResponse
|
|
22
20
|
|
|
23
21
|
console.log(example)
|
|
24
22
|
|
|
@@ -27,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
25
|
console.log(exampleJSON)
|
|
28
26
|
|
|
29
27
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as LabelLiteResourceArrayResponse
|
|
31
29
|
console.log(exampleParsed)
|
|
32
30
|
```
|
|
33
31
|
|
package/docs/LabelResource.md
CHANGED
|
@@ -9,9 +9,12 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`shortName` | string
|
|
11
11
|
`longName` | string
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
12
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
13
|
+
`cartButtonText` | string
|
|
14
|
+
`colour` | string
|
|
15
|
+
`textColour` | string
|
|
16
|
+
`startDate` | string
|
|
17
|
+
`endDate` | string
|
|
15
18
|
|
|
16
19
|
## Example
|
|
17
20
|
|
|
@@ -23,9 +26,12 @@ const example = {
|
|
|
23
26
|
"id": null,
|
|
24
27
|
"shortName": null,
|
|
25
28
|
"longName": null,
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
+
"site": null,
|
|
30
|
+
"cartButtonText": null,
|
|
31
|
+
"colour": null,
|
|
32
|
+
"textColour": null,
|
|
33
|
+
"startDate": null,
|
|
34
|
+
"endDate": null,
|
|
29
35
|
} satisfies LabelResource
|
|
30
36
|
|
|
31
37
|
console.log(example)
|
|
@@ -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,
|
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,14 +9,13 @@ 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
|
|
16
15
|
`salePrice` | number
|
|
17
16
|
`thumbnail` | string
|
|
18
17
|
`averageRating` | string
|
|
19
|
-
`
|
|
18
|
+
`labelDetails` | Array<number>
|
|
20
19
|
`supplierName` | string
|
|
21
20
|
`supplierLogo` | string
|
|
22
21
|
`supplierId` | number
|
|
@@ -35,14 +34,13 @@ 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,
|
|
42
40
|
"salePrice": null,
|
|
43
41
|
"thumbnail": null,
|
|
44
42
|
"averageRating": null,
|
|
45
|
-
"
|
|
43
|
+
"labelDetails": null,
|
|
46
44
|
"supplierName": null,
|
|
47
45
|
"supplierLogo": null,
|
|
48
46
|
"supplierId": 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
|
*/
|