@digital8/lighting-illusions-ts-sdk 0.0.1237 → 0.0.1239
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 +72 -58
- package/README.md +54 -42
- package/dist/apis/AttributeApi.d.ts +16 -1
- package/dist/apis/AttributeApi.js +58 -0
- package/dist/apis/ProductRangeApi.d.ts +269 -0
- package/dist/apis/ProductRangeApi.js +1043 -0
- package/dist/apis/SupplierApi.d.ts +1 -33
- package/dist/apis/SupplierApi.js +0 -122
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/AttachAttributesProductRangeRequest.d.ts +33 -0
- package/dist/models/AttachAttributesProductRangeRequest.js +52 -0
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.d.ts +38 -0
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.js +53 -0
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
- package/dist/models/AttachDocumentsProductRangeRequest.d.ts +33 -0
- package/dist/models/AttachDocumentsProductRangeRequest.js +52 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/DetachAttributesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAttributesProductRangeRequest.js +51 -0
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
- package/dist/models/DetachDocumentsProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachDocumentsProductRangeRequest.js +51 -0
- package/dist/models/GetAllDocumentRequest.d.ts +1 -0
- package/dist/models/GetAllDocumentRequest.js +1 -0
- package/dist/models/GetAllProductChildRequest.d.ts +1 -0
- package/dist/models/GetAllProductChildRequest.js +1 -0
- package/dist/models/GetAllProductRangeRequest.d.ts +98 -0
- package/dist/models/GetAllProductRangeRequest.js +82 -0
- package/dist/models/IndexAttributeRequest.d.ts +2 -0
- package/dist/models/IndexAttributeRequest.js +3 -1
- package/dist/models/IndexDocumentRequest.d.ts +1 -0
- package/dist/models/IndexDocumentRequest.js +1 -0
- package/dist/models/IndexModelAttributeRequest.d.ts +118 -0
- package/dist/models/IndexModelAttributeRequest.js +93 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRangeRequest.d.ts +110 -0
- package/dist/models/{IndexStoreRequest.js → IndexProductRangeRequest.js} +22 -21
- package/dist/models/ModelAttributeListResource.d.ts +64 -0
- package/dist/models/ModelAttributeListResource.js +71 -0
- package/dist/models/ModelAttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ModelAttributeListResourceArrayResponse.js +50 -0
- package/dist/models/ModelAttributeResource.d.ts +6 -0
- package/dist/models/ModelAttributeResource.js +2 -0
- package/dist/models/PaginatedModelAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedModelAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeResourceResponse.js +57 -0
- package/dist/models/ProductRangeFrontendListResource.d.ts +62 -0
- package/dist/models/ProductRangeFrontendListResource.js +71 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +118 -0
- package/dist/models/ProductRangeFrontendResource.js +109 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeListResource.d.ts +66 -0
- package/dist/models/ProductRangeListResource.js +75 -0
- package/dist/models/ProductRangeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeLiteResource.d.ts +38 -0
- package/dist/models/ProductRangeLiteResource.js +55 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeResource.d.ts +89 -0
- package/dist/models/ProductRangeResource.js +86 -0
- package/dist/models/ProductRangeResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSiteDetailLiteResource.d.ts +44 -0
- package/dist/models/ProductRangeSiteDetailLiteResource.js +59 -0
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSiteDetailResource.d.ts +101 -0
- package/dist/models/ProductRangeSiteDetailResource.js +98 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +50 -0
- package/dist/models/StoreAssetForAssetableRequest.d.ts +3 -0
- package/dist/models/StoreAssetForAssetableRequest.js +4 -1
- package/dist/models/StoreProductRangeRequest.d.ts +52 -0
- package/dist/models/StoreProductRangeRequest.js +59 -0
- package/dist/models/StoreProductRangeRequestSitesInner.d.ts +92 -0
- package/dist/models/StoreProductRangeRequestSitesInner.js +75 -0
- package/dist/models/UpdateProductRangeRequest.d.ts +59 -0
- package/dist/models/UpdateProductRangeRequest.js +62 -0
- package/dist/models/UpdateProductRangeRequestAttributesInner.d.ts +38 -0
- package/dist/models/UpdateProductRangeRequestAttributesInner.js +51 -0
- package/dist/models/UpdateProductTypeRequest.d.ts +9 -9
- package/dist/models/UpdateProductTypeRequest.js +9 -9
- package/dist/models/index.d.ts +35 -28
- package/dist/models/index.js +35 -28
- package/docs/{AddressFrontendResourceArrayResponse.md → AttachAccessoriesProductRangeRequest.md} +6 -6
- package/docs/AttachAttributesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequestAttributesInner.md +36 -0
- package/docs/{StoreStoreRequestSpecialDatesInner.md → AttachDocumentsProductRangeRequest.md} +6 -12
- package/docs/AttributeApi.md +66 -0
- package/docs/{AttachSuppliersStoreRequest.md → DetachAccessoriesProductRangeRequest.md} +6 -6
- package/docs/{AttachStoresSupplierRequest.md → DetachAttributesProductRangeRequest.md} +6 -6
- package/docs/{StoreFrontendResourceArrayResponse.md → DetachDocumentsProductRangeRequest.md} +6 -6
- package/docs/{GetAllStoreRequest.md → GetAllProductRangeRequest.md} +10 -8
- package/docs/{IndexStoreRequest.md → IndexModelAttributeRequest.md} +10 -8
- package/docs/IndexProductRangeRequest.md +54 -0
- package/docs/ModelAttributeListResource.md +44 -0
- package/docs/ModelAttributeListResourceArrayResponse.md +34 -0
- package/docs/ModelAttributeResource.md +2 -0
- package/docs/PaginatedModelAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeFrontendListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeLiteResourceResponse.md +36 -0
- package/docs/{PaginatedStoreListResourceResponse.md → PaginatedProductRangeResourceResponse.md} +5 -5
- package/docs/ProductRangeApi.md +1097 -0
- package/docs/{StoreSpecialDateFrontendResource.md → ProductRangeFrontendListResource.md} +12 -10
- package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRangeFrontendListResourceArrayResponse.md} +5 -5
- package/docs/ProductRangeFrontendResource.md +62 -0
- package/docs/ProductRangeFrontendResourceArrayResponse.md +34 -0
- package/docs/ProductRangeListResource.md +44 -0
- package/docs/{StoreListResourceArrayResponse.md → ProductRangeListResourceArrayResponse.md} +5 -5
- package/docs/{StoreLiteResource.md → ProductRangeLiteResource.md} +4 -6
- package/docs/{StoreSpecialDateResourceArrayResponse.md → ProductRangeLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductRangeResource.md +52 -0
- package/docs/{AddressResourceArrayResponse.md → ProductRangeResourceArrayResponse.md} +5 -5
- package/docs/ProductRangeSiteDetailLiteResource.md +38 -0
- package/docs/ProductRangeSiteDetailLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRangeSiteDetailResource.md +56 -0
- package/docs/ProductRangeSiteDetailResourceArrayResponse.md +34 -0
- package/docs/{StoreSpecialDateResource.md → StoreProductRangeRequest.md} +10 -12
- package/docs/StoreProductRangeRequestSitesInner.md +54 -0
- package/docs/SupplierApi.md +0 -138
- package/docs/UpdateProductRangeRequest.md +42 -0
- package/docs/{UpdateProductTypeRequestPerformanceValuesInner.md → UpdateProductRangeRequestAttributesInner.md} +4 -4
- package/docs/UpdateProductTypeRequest.md +4 -4
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +50 -0
- package/src/apis/ProductRangeApi.ts +888 -0
- package/src/apis/SupplierApi.ts +0 -112
- package/src/apis/index.ts +1 -1
- package/src/models/AttachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/AttachAttributesProductRangeRequest.ts +74 -0
- package/src/models/AttachAttributesProductRangeRequestAttributesInner.ts +74 -0
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -0
- package/src/models/AttachDocumentsProductRangeRequest.ts +74 -0
- package/src/models/DetachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/DetachAttributesProductRangeRequest.ts +66 -0
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -0
- package/src/models/DetachDocumentsProductRangeRequest.ts +66 -0
- package/src/models/GetAllDocumentRequest.ts +1 -0
- package/src/models/GetAllProductChildRequest.ts +1 -0
- package/src/models/GetAllProductRangeRequest.ts +151 -0
- package/src/models/IndexAttributeRequest.ts +3 -1
- package/src/models/IndexDocumentRequest.ts +1 -0
- package/src/models/IndexModelAttributeRequest.ts +176 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRangeRequest.ts +167 -0
- package/src/models/ModelAttributeListResource.ts +125 -0
- package/src/models/ModelAttributeListResourceArrayResponse.ts +73 -0
- package/src/models/ModelAttributeResource.ts +8 -0
- package/src/models/PaginatedModelAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeResourceResponse.ts +90 -0
- package/src/models/ProductRangeFrontendListResource.ts +111 -0
- package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeFrontendResource.ts +207 -0
- package/src/models/ProductRangeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeListResource.ts +140 -0
- package/src/models/ProductRangeListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeLiteResource.ts +75 -0
- package/src/models/ProductRangeLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeResource.ts +167 -0
- package/src/models/ProductRangeResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSiteDetailLiteResource.ts +84 -0
- package/src/models/ProductRangeSiteDetailLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSiteDetailResource.ts +187 -0
- package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +73 -0
- package/src/models/StoreAssetForAssetableRequest.ts +4 -1
- package/src/models/StoreProductRangeRequest.ts +105 -0
- package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
- package/src/models/UpdateProductRangeRequest.ts +120 -0
- package/src/models/UpdateProductRangeRequestAttributesInner.ts +73 -0
- package/src/models/UpdateProductTypeRequest.ts +22 -22
- package/src/models/index.ts +35 -28
- package/dist/apis/StoreApi.d.ts +0 -173
- package/dist/apis/StoreApi.js +0 -679
- package/dist/models/AddressFrontendResource.d.ts +0 -74
- package/dist/models/AddressFrontendResource.js +0 -75
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
- package/dist/models/AddressResource.d.ts +0 -80
- package/dist/models/AddressResource.js +0 -79
- package/dist/models/AddressResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressResourceArrayResponse.js +0 -50
- package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/AttachStoresSupplierRequest.js +0 -51
- package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/AttachSuppliersStoreRequest.js +0 -51
- package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/DetachStoresSupplierRequest.js +0 -51
- package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/DetachSuppliersStoreRequest.js +0 -51
- package/dist/models/GetAllStoreRequest.d.ts +0 -93
- package/dist/models/GetAllStoreRequest.js +0 -81
- package/dist/models/IndexStoreRequest.d.ts +0 -105
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
- package/dist/models/StoreFrontendResource.d.ts +0 -98
- package/dist/models/StoreFrontendResource.js +0 -87
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreListResource.d.ts +0 -81
- package/dist/models/StoreListResource.js +0 -78
- package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreListResourceArrayResponse.js +0 -50
- package/dist/models/StoreLiteResource.d.ts +0 -45
- package/dist/models/StoreLiteResource.js +0 -58
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
- package/dist/models/StoreResource.d.ts +0 -100
- package/dist/models/StoreResource.js +0 -93
- package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -56
- package/dist/models/StoreSpecialDateFrontendResource.js +0 -65
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateResource.d.ts +0 -56
- package/dist/models/StoreSpecialDateResource.js +0 -65
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
- package/dist/models/StoreStoreRequest.d.ts +0 -177
- package/dist/models/StoreStoreRequest.js +0 -124
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -50
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -57
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -50
- package/dist/models/StoreStoreSpecialDateRequest.js +0 -57
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +0 -38
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +0 -51
- package/dist/models/UpdateStoreRequest.d.ts +0 -164
- package/dist/models/UpdateStoreRequest.js +0 -119
- package/docs/AddressFrontendResource.md +0 -48
- package/docs/AddressResource.md +0 -50
- package/docs/DetachStoresSupplierRequest.md +0 -34
- package/docs/DetachSuppliersStoreRequest.md +0 -34
- package/docs/StoreApi.md +0 -683
- package/docs/StoreFrontendResource.md +0 -56
- package/docs/StoreListResource.md +0 -50
- package/docs/StoreLiteResourceArrayResponse.md +0 -34
- package/docs/StoreResource.md +0 -56
- package/docs/StoreResourceArrayResponse.md +0 -34
- package/docs/StoreStoreRequest.md +0 -82
- package/docs/StoreStoreSpecialDateRequest.md +0 -40
- package/docs/UpdateStoreRequest.md +0 -78
- package/src/apis/StoreApi.ts +0 -563
- package/src/models/AddressFrontendResource.ts +0 -127
- package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
- package/src/models/AddressResource.ts +0 -136
- package/src/models/AddressResourceArrayResponse.ts +0 -73
- package/src/models/AttachStoresSupplierRequest.ts +0 -66
- package/src/models/AttachSuppliersStoreRequest.ts +0 -66
- package/src/models/DetachStoresSupplierRequest.ts +0 -66
- package/src/models/DetachSuppliersStoreRequest.ts +0 -66
- package/src/models/GetAllStoreRequest.ts +0 -144
- package/src/models/IndexStoreRequest.ts +0 -160
- package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
- package/src/models/StoreFrontendResource.ts +0 -161
- package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreListResource.ts +0 -143
- package/src/models/StoreListResourceArrayResponse.ts +0 -73
- package/src/models/StoreLiteResource.ts +0 -91
- package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
- package/src/models/StoreResource.ts +0 -178
- package/src/models/StoreResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateFrontendResource.ts +0 -101
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateResource.ts +0 -101
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
- package/src/models/StoreStoreRequest.ts +0 -278
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -90
- package/src/models/StoreStoreSpecialDateRequest.ts +0 -90
- package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +0 -73
- package/src/models/UpdateStoreRequest.ts +0 -254
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreProductRangeRequestSitesInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`siteId` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`slug` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`content` | string
|
|
14
|
+
`excerpt` | string
|
|
15
|
+
`popularityScore` | number
|
|
16
|
+
`isDisabled` | boolean
|
|
17
|
+
`categories` | Array<number>
|
|
18
|
+
`seoTitle` | string
|
|
19
|
+
`seoDescription` | string
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { StoreProductRangeRequestSitesInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"siteId": null,
|
|
29
|
+
"name": null,
|
|
30
|
+
"slug": null,
|
|
31
|
+
"description": null,
|
|
32
|
+
"content": null,
|
|
33
|
+
"excerpt": null,
|
|
34
|
+
"popularityScore": null,
|
|
35
|
+
"isDisabled": null,
|
|
36
|
+
"categories": null,
|
|
37
|
+
"seoTitle": null,
|
|
38
|
+
"seoDescription": null,
|
|
39
|
+
} satisfies StoreProductRangeRequestSitesInner
|
|
40
|
+
|
|
41
|
+
console.log(example)
|
|
42
|
+
|
|
43
|
+
// Convert the instance to a JSON string
|
|
44
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
45
|
+
console.log(exampleJSON)
|
|
46
|
+
|
|
47
|
+
// Parse the JSON string back to an object
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreProductRangeRequestSitesInner
|
|
49
|
+
console.log(exampleParsed)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
|
package/docs/SupplierApi.md
CHANGED
|
@@ -4,9 +4,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**attachStoresSupplier**](SupplierApi.md#attachstoressupplieroperation) | **POST** /admin-api/supplier/{supplier}/attach-stores | Auto-generated: attachStoresSupplier |
|
|
8
7
|
| [**destroySupplier**](SupplierApi.md#destroysupplier) | **DELETE** /admin-api/supplier/{supplier}/delete | Auto-generated: destroySupplier |
|
|
9
|
-
| [**detachStoresSupplier**](SupplierApi.md#detachstoressupplieroperation) | **POST** /admin-api/supplier/{supplier}/detach-stores | Auto-generated: detachStoresSupplier |
|
|
10
8
|
| [**exportSupplier**](SupplierApi.md#exportsupplier) | **POST** /admin-api/supplier/export | Auto-generated: exportSupplier |
|
|
11
9
|
| [**getAllSupplier**](SupplierApi.md#getallsupplieroperation) | **POST** /admin-api/supplier/all | Auto-generated: getAllSupplier |
|
|
12
10
|
| [**importSupplier**](SupplierApi.md#importsupplier) | **POST** /admin-api/supplier/import | Auto-generated: importSupplier |
|
|
@@ -17,74 +15,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
17
15
|
|
|
18
16
|
|
|
19
17
|
|
|
20
|
-
## attachStoresSupplier
|
|
21
|
-
|
|
22
|
-
> SupplierResource attachStoresSupplier(supplier, attachStoresSupplierRequest)
|
|
23
|
-
|
|
24
|
-
Auto-generated: attachStoresSupplier
|
|
25
|
-
|
|
26
|
-
### Example
|
|
27
|
-
|
|
28
|
-
```ts
|
|
29
|
-
import {
|
|
30
|
-
Configuration,
|
|
31
|
-
SupplierApi,
|
|
32
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
33
|
-
import type { AttachStoresSupplierOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
34
|
-
|
|
35
|
-
async function example() {
|
|
36
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
37
|
-
const api = new SupplierApi();
|
|
38
|
-
|
|
39
|
-
const body = {
|
|
40
|
-
// number | The id of the supplier
|
|
41
|
-
supplier: 56,
|
|
42
|
-
// AttachStoresSupplierRequest (optional)
|
|
43
|
-
attachStoresSupplierRequest: ...,
|
|
44
|
-
} satisfies AttachStoresSupplierOperationRequest;
|
|
45
|
-
|
|
46
|
-
try {
|
|
47
|
-
const data = await api.attachStoresSupplier(body);
|
|
48
|
-
console.log(data);
|
|
49
|
-
} catch (error) {
|
|
50
|
-
console.error(error);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Run the test
|
|
55
|
-
example().catch(console.error);
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Parameters
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
| Name | Type | Description | Notes |
|
|
62
|
-
|------------- | ------------- | ------------- | -------------|
|
|
63
|
-
| **supplier** | `number` | The id of the supplier | [Defaults to `undefined`] |
|
|
64
|
-
| **attachStoresSupplierRequest** | [AttachStoresSupplierRequest](AttachStoresSupplierRequest.md) | | [Optional] |
|
|
65
|
-
|
|
66
|
-
### Return type
|
|
67
|
-
|
|
68
|
-
[**SupplierResource**](SupplierResource.md)
|
|
69
|
-
|
|
70
|
-
### Authorization
|
|
71
|
-
|
|
72
|
-
No authorization required
|
|
73
|
-
|
|
74
|
-
### HTTP request headers
|
|
75
|
-
|
|
76
|
-
- **Content-Type**: `application/json`
|
|
77
|
-
- **Accept**: `application/json`
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### HTTP response details
|
|
81
|
-
| Status code | Description | Response headers |
|
|
82
|
-
|-------------|-------------|------------------|
|
|
83
|
-
| **200** | Successful resource response | - |
|
|
84
|
-
|
|
85
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
86
|
-
|
|
87
|
-
|
|
88
18
|
## destroySupplier
|
|
89
19
|
|
|
90
20
|
> GenericResponse destroySupplier(supplier)
|
|
@@ -150,74 +80,6 @@ No authorization required
|
|
|
150
80
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
151
81
|
|
|
152
82
|
|
|
153
|
-
## detachStoresSupplier
|
|
154
|
-
|
|
155
|
-
> SupplierResource detachStoresSupplier(supplier, detachStoresSupplierRequest)
|
|
156
|
-
|
|
157
|
-
Auto-generated: detachStoresSupplier
|
|
158
|
-
|
|
159
|
-
### Example
|
|
160
|
-
|
|
161
|
-
```ts
|
|
162
|
-
import {
|
|
163
|
-
Configuration,
|
|
164
|
-
SupplierApi,
|
|
165
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
166
|
-
import type { DetachStoresSupplierOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
167
|
-
|
|
168
|
-
async function example() {
|
|
169
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
170
|
-
const api = new SupplierApi();
|
|
171
|
-
|
|
172
|
-
const body = {
|
|
173
|
-
// number | The id of the supplier
|
|
174
|
-
supplier: 56,
|
|
175
|
-
// DetachStoresSupplierRequest (optional)
|
|
176
|
-
detachStoresSupplierRequest: ...,
|
|
177
|
-
} satisfies DetachStoresSupplierOperationRequest;
|
|
178
|
-
|
|
179
|
-
try {
|
|
180
|
-
const data = await api.detachStoresSupplier(body);
|
|
181
|
-
console.log(data);
|
|
182
|
-
} catch (error) {
|
|
183
|
-
console.error(error);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// Run the test
|
|
188
|
-
example().catch(console.error);
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
### Parameters
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
| Name | Type | Description | Notes |
|
|
195
|
-
|------------- | ------------- | ------------- | -------------|
|
|
196
|
-
| **supplier** | `number` | The id of the supplier | [Defaults to `undefined`] |
|
|
197
|
-
| **detachStoresSupplierRequest** | [DetachStoresSupplierRequest](DetachStoresSupplierRequest.md) | | [Optional] |
|
|
198
|
-
|
|
199
|
-
### Return type
|
|
200
|
-
|
|
201
|
-
[**SupplierResource**](SupplierResource.md)
|
|
202
|
-
|
|
203
|
-
### Authorization
|
|
204
|
-
|
|
205
|
-
No authorization required
|
|
206
|
-
|
|
207
|
-
### HTTP request headers
|
|
208
|
-
|
|
209
|
-
- **Content-Type**: `application/json`
|
|
210
|
-
- **Accept**: `application/json`
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
### HTTP response details
|
|
214
|
-
| Status code | Description | Response headers |
|
|
215
|
-
|-------------|-------------|------------------|
|
|
216
|
-
| **200** | Successful resource response | - |
|
|
217
|
-
|
|
218
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
219
|
-
|
|
220
|
-
|
|
221
83
|
## exportSupplier
|
|
222
84
|
|
|
223
85
|
> Blob exportSupplier(indexSupplierRequest)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateProductRangeRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`supplierId` | number
|
|
11
|
+
`attributes` | [Array<UpdateProductRangeRequestAttributesInner>](UpdateProductRangeRequestAttributesInner.md)
|
|
12
|
+
`sites` | [Array<StoreProductRangeRequestSitesInner>](StoreProductRangeRequestSitesInner.md)
|
|
13
|
+
`assets` | [Array<UpdateProductChildRequestAssetsInner>](UpdateProductChildRequestAssetsInner.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { UpdateProductRangeRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"name": null,
|
|
23
|
+
"supplierId": null,
|
|
24
|
+
"attributes": null,
|
|
25
|
+
"sites": null,
|
|
26
|
+
"assets": null,
|
|
27
|
+
} satisfies UpdateProductRangeRequest
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateProductRangeRequest
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# UpdateProductRangeRequestAttributesInner
|
|
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 { UpdateProductRangeRequestAttributesInner } 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 UpdateProductRangeRequestAttributesInner
|
|
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 UpdateProductRangeRequestAttributesInner
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -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<UpdateProductRangeRequestAttributesInner>](UpdateProductRangeRequestAttributesInner.md)
|
|
11
|
+
`dimensionValues` | [Array<UpdateProductRangeRequestAttributesInner>](UpdateProductRangeRequestAttributesInner.md)
|
|
12
|
+
`specificationValues` | [Array<UpdateProductRangeRequestAttributesInner>](UpdateProductRangeRequestAttributesInner.md)
|
|
13
|
+
`otherValues` | [Array<UpdateProductRangeRequestAttributesInner>](UpdateProductRangeRequestAttributesInner.md)
|
|
14
14
|
|
|
15
15
|
## Example
|
|
16
16
|
|
package/package.json
CHANGED
package/src/apis/AttributeApi.ts
CHANGED
|
@@ -26,9 +26,11 @@ import type {
|
|
|
26
26
|
GetAllAttributeValueRequest,
|
|
27
27
|
IndexAttributeRequest,
|
|
28
28
|
IndexAttributeValueRequest,
|
|
29
|
+
IndexModelAttributeRequest,
|
|
29
30
|
ModelAttributeResourceArrayResponse,
|
|
30
31
|
PaginatedAttributeListResourceResponse,
|
|
31
32
|
PaginatedAttributeValueResourceResponse,
|
|
33
|
+
PaginatedModelAttributeListResourceResponse,
|
|
32
34
|
StoreAttributeRequest,
|
|
33
35
|
StoreAttributeValueRequest,
|
|
34
36
|
UpdateAttributeRequest,
|
|
@@ -59,12 +61,16 @@ import {
|
|
|
59
61
|
IndexAttributeRequestToJSON,
|
|
60
62
|
IndexAttributeValueRequestFromJSON,
|
|
61
63
|
IndexAttributeValueRequestToJSON,
|
|
64
|
+
IndexModelAttributeRequestFromJSON,
|
|
65
|
+
IndexModelAttributeRequestToJSON,
|
|
62
66
|
ModelAttributeResourceArrayResponseFromJSON,
|
|
63
67
|
ModelAttributeResourceArrayResponseToJSON,
|
|
64
68
|
PaginatedAttributeListResourceResponseFromJSON,
|
|
65
69
|
PaginatedAttributeListResourceResponseToJSON,
|
|
66
70
|
PaginatedAttributeValueResourceResponseFromJSON,
|
|
67
71
|
PaginatedAttributeValueResourceResponseToJSON,
|
|
72
|
+
PaginatedModelAttributeListResourceResponseFromJSON,
|
|
73
|
+
PaginatedModelAttributeListResourceResponseToJSON,
|
|
68
74
|
StoreAttributeRequestFromJSON,
|
|
69
75
|
StoreAttributeRequestToJSON,
|
|
70
76
|
StoreAttributeValueRequestFromJSON,
|
|
@@ -114,6 +120,10 @@ export interface IndexAttributeValueOperationRequest {
|
|
|
114
120
|
indexAttributeValueRequest?: IndexAttributeValueRequest;
|
|
115
121
|
}
|
|
116
122
|
|
|
123
|
+
export interface IndexModelAttributeOperationRequest {
|
|
124
|
+
indexModelAttributeRequest?: IndexModelAttributeRequest;
|
|
125
|
+
}
|
|
126
|
+
|
|
117
127
|
export interface ShowAttributeRequest {
|
|
118
128
|
attribute: number;
|
|
119
129
|
}
|
|
@@ -509,6 +519,46 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
509
519
|
return await response.value();
|
|
510
520
|
}
|
|
511
521
|
|
|
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
|
+
|
|
512
562
|
/**
|
|
513
563
|
* Creates request options for showAttribute without sending the request
|
|
514
564
|
*/
|