@digital8/lighting-illusions-ts-sdk 0.0.1452 → 0.0.1453
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 +74 -40
- package/README.md +56 -25
- package/dist/apis/LabelApi.d.ts +109 -0
- package/dist/apis/{ProductRegistrationApi.js → LabelApi.js} +174 -57
- package/dist/apis/StoreApi.d.ts +190 -0
- package/dist/apis/StoreApi.js +744 -0
- package/dist/apis/SupplierApi.d.ts +33 -1
- package/dist/apis/SupplierApi.js +122 -0
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/models/AddressFrontendResource.d.ts +74 -0
- package/dist/models/AddressFrontendResource.js +77 -0
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressFrontendResourceArrayResponse.js +50 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +9 -7
- package/dist/models/AttachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/AttachStoresSupplierRequest.js +51 -0
- package/dist/models/AttachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/AttachSuppliersStoreRequest.js +51 -0
- package/dist/models/DetachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/DetachStoresSupplierRequest.js +51 -0
- package/dist/models/DetachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/DetachSuppliersStoreRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllStoreRequest.d.ts +93 -0
- package/dist/models/{GetAllProductRegistrationRequest.js → GetAllStoreRequest.js} +24 -20
- package/dist/models/IndexLabelRequest.d.ts +109 -0
- package/dist/models/{ListAssetsProductRegistrationRequest.js → IndexLabelRequest.js} +31 -22
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexStoreRequest.d.ts +105 -0
- package/dist/models/IndexStoreRequest.js +85 -0
- 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/PaginatedLabelListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLabelListResourceResponse.js +57 -0
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedStoreListResourceResponse.js +57 -0
- package/dist/models/StoreFrontendResource.d.ts +98 -0
- package/dist/models/StoreFrontendResource.js +89 -0
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreFrontendResourceArrayResponse.js +50 -0
- package/dist/models/StoreLabelRequest.d.ts +74 -0
- package/dist/models/StoreLabelRequest.js +71 -0
- package/dist/models/StoreListResource.d.ts +81 -0
- package/dist/models/StoreListResource.js +78 -0
- package/dist/models/StoreListResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreListResourceArrayResponse.js +50 -0
- package/dist/models/StoreLiteResource.d.ts +45 -0
- package/dist/models/StoreLiteResource.js +58 -0
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreResource.d.ts +102 -0
- package/dist/models/StoreResource.js +95 -0
- package/dist/models/StoreResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +68 -0
- package/dist/models/StoreSpecialDateFrontendResource.js +73 -0
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateResource.d.ts +68 -0
- package/dist/models/StoreSpecialDateResource.js +73 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +50 -0
- package/dist/models/StoreStoreRequest.d.ts +94 -0
- package/dist/models/StoreStoreRequest.js +85 -0
- package/dist/models/StoreStoreRequestAddress.d.ts +68 -0
- package/dist/models/StoreStoreRequestAddress.js +73 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +62 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +61 -0
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +62 -0
- package/dist/models/StoreStoreSpecialDateRequest.js +61 -0
- package/dist/models/UpdateLabelRequest.d.ts +74 -0
- package/dist/models/UpdateLabelRequest.js +63 -0
- package/dist/models/UpdateStoreRequest.d.ts +94 -0
- package/dist/models/UpdateStoreRequest.js +85 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +56 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/index.d.ts +35 -19
- package/dist/models/index.js +35 -19
- package/docs/{PaginatedProductRegistrationAssetResourceResponse.md → AddressFrontendResource.md} +20 -8
- package/docs/{ProductRegistrationResourceArrayResponse.md → AddressFrontendResourceArrayResponse.md} +5 -5
- package/docs/{ProductRegistrationAssetType.md → AttachStoresSupplierRequest.md} +6 -4
- package/docs/{ProductRegistrationLiteResource.md → AttachSuppliersStoreRequest.md} +6 -8
- package/docs/DetachStoresSupplierRequest.md +34 -0
- package/docs/DetachSuppliersStoreRequest.md +34 -0
- package/docs/{GetAllProductRegistrationRequest.md → GetAllStoreRequest.md} +8 -4
- package/docs/{ListAssetsProductRegistrationRequest.md → IndexLabelRequest.md} +6 -8
- package/docs/{IndexProductRegistrationRequest.md → IndexStoreRequest.md} +8 -12
- package/docs/LabelApi.md +407 -0
- package/docs/LabelListResource.md +48 -0
- package/docs/LabelListResourceArrayResponse.md +34 -0
- package/docs/{ProductRegistrationAssetResource.md → LabelLiteResource.md} +12 -8
- package/docs/LabelLiteResourceArrayResponse.md +34 -0
- package/docs/LabelResource.md +12 -6
- package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedLabelListResourceResponse.md} +5 -5
- package/docs/{PaginatedProductRegistrationListResourceResponse.md → PaginatedStoreListResourceResponse.md} +5 -5
- package/docs/StoreApi.md +755 -0
- package/docs/StoreFrontendResource.md +56 -0
- package/docs/StoreFrontendResourceArrayResponse.md +34 -0
- package/docs/StoreLabelRequest.md +48 -0
- package/docs/StoreListResource.md +50 -0
- package/docs/StoreListResourceArrayResponse.md +34 -0
- package/docs/{ProductRegistrationCustomerLiteResource.md → StoreLiteResource.md} +6 -6
- package/docs/StoreLiteResourceArrayResponse.md +34 -0
- package/docs/StoreResource.md +56 -0
- package/docs/StoreResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateFrontendResource.md +46 -0
- package/docs/{ProductRegistrationAssetResourceArrayResponse.md → StoreSpecialDateFrontendResourceArrayResponse.md} +5 -5
- package/docs/{ProductRegistrationListResource.md → StoreSpecialDateResource.md} +16 -10
- package/docs/StoreSpecialDateResourceArrayResponse.md +34 -0
- package/docs/StoreStoreRequest.md +54 -0
- package/docs/StoreStoreRequestAddress.md +46 -0
- package/docs/StoreStoreRequestSpecialDatesInner.md +44 -0
- package/docs/StoreStoreSpecialDateRequest.md +44 -0
- package/docs/SupplierApi.md +138 -0
- package/docs/UpdateLabelRequest.md +48 -0
- package/docs/UpdateStoreRequest.md +54 -0
- package/docs/{ProductRegistrationCustomerResource.md → UpdateStoreRequestSpecialDatesInner.md} +10 -8
- package/package.json +1 -1
- package/src/apis/LabelApi.ts +328 -0
- package/src/apis/StoreApi.ts +625 -0
- package/src/apis/SupplierApi.ts +112 -0
- package/src/apis/index.ts +2 -1
- package/src/models/AddressFrontendResource.ts +128 -0
- package/src/models/AddressFrontendResourceArrayResponse.ts +73 -0
- package/src/models/AddressResource.ts +9 -8
- package/src/models/AttachStoresSupplierRequest.ts +66 -0
- package/src/models/AttachSuppliersStoreRequest.ts +66 -0
- package/src/models/DetachStoresSupplierRequest.ts +66 -0
- package/src/models/DetachSuppliersStoreRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllStoreRequest.ts +144 -0
- package/src/models/IndexLabelRequest.ts +163 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexStoreRequest.ts +160 -0
- 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/PaginatedLabelListResourceResponse.ts +90 -0
- package/src/models/PaginatedStoreListResourceResponse.ts +90 -0
- package/src/models/StoreFrontendResource.ts +162 -0
- package/src/models/StoreFrontendResourceArrayResponse.ts +73 -0
- package/src/models/StoreLabelRequest.ts +125 -0
- package/src/models/StoreListResource.ts +143 -0
- package/src/models/StoreListResourceArrayResponse.ts +73 -0
- package/src/models/StoreLiteResource.ts +91 -0
- package/src/models/StoreLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreResource.ts +192 -0
- package/src/models/StoreResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateFrontendResource.ts +119 -0
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateResource.ts +119 -0
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +73 -0
- package/src/models/StoreStoreRequest.ts +167 -0
- package/src/models/StoreStoreRequestAddress.ts +119 -0
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +106 -0
- package/src/models/StoreStoreSpecialDateRequest.ts +106 -0
- package/src/models/UpdateLabelRequest.ts +121 -0
- package/src/models/UpdateStoreRequest.ts +167 -0
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +97 -0
- package/src/models/index.ts +35 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -79
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -81
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -124
- package/dist/models/IndexProductRegistrationRequest.js +0 -95
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
- package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
- package/dist/models/ProductRegistrationAssetResource.js +0 -58
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
- package/dist/models/ProductRegistrationAssetType.js +0 -51
- package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +0 -44
- package/dist/models/ProductRegistrationCustomerLiteResource.js +0 -57
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -50
- package/dist/models/ProductRegistrationCustomerResource.js +0 -61
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -51
- package/dist/models/ProductRegistrationListResource.js +0 -60
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
- package/dist/models/ProductRegistrationLiteResource.js +0 -53
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -76
- package/dist/models/ProductRegistrationResource.js +0 -75
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/ProductRegistrationApi.md +0 -275
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -48
- package/src/apis/ProductRegistrationApi.ts +0 -238
- package/src/models/GetAllProductRegistrationRequest.ts +0 -128
- package/src/models/IndexProductRegistrationRequest.ts +0 -184
- package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
- package/src/models/ProductRegistrationAssetResource.ts +0 -91
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationAssetType.ts +0 -53
- package/src/models/ProductRegistrationCustomerLiteResource.ts +0 -83
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationCustomerResource.ts +0 -92
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -99
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -141
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreStoreRequestSpecialDatesInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`hours` | string
|
|
11
|
+
`date` | Date
|
|
12
|
+
`closed` | boolean
|
|
13
|
+
`displayStartDate` | Date
|
|
14
|
+
`displayEndDate` | Date
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { StoreStoreRequestSpecialDatesInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"name": null,
|
|
24
|
+
"hours": null,
|
|
25
|
+
"date": null,
|
|
26
|
+
"closed": null,
|
|
27
|
+
"displayStartDate": null,
|
|
28
|
+
"displayEndDate": null,
|
|
29
|
+
} satisfies StoreStoreRequestSpecialDatesInner
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreStoreRequestSpecialDatesInner
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreStoreSpecialDateRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`hours` | string
|
|
11
|
+
`date` | Date
|
|
12
|
+
`closed` | boolean
|
|
13
|
+
`displayStartDate` | Date
|
|
14
|
+
`displayEndDate` | Date
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { StoreStoreSpecialDateRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"name": null,
|
|
24
|
+
"hours": null,
|
|
25
|
+
"date": null,
|
|
26
|
+
"closed": null,
|
|
27
|
+
"displayStartDate": null,
|
|
28
|
+
"displayEndDate": null,
|
|
29
|
+
} satisfies StoreStoreSpecialDateRequest
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreStoreSpecialDateRequest
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
package/docs/SupplierApi.md
CHANGED
|
@@ -4,7 +4,9 @@ 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 |
|
|
7
8
|
| [**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 |
|
|
8
10
|
| [**exportSupplier**](SupplierApi.md#exportsupplier) | **POST** /admin-api/supplier/export | Auto-generated: exportSupplier |
|
|
9
11
|
| [**getAllSupplier**](SupplierApi.md#getallsupplieroperation) | **POST** /admin-api/supplier/all | Auto-generated: getAllSupplier |
|
|
10
12
|
| [**importSupplier**](SupplierApi.md#importsupplier) | **POST** /admin-api/supplier/import | Auto-generated: importSupplier |
|
|
@@ -15,6 +17,74 @@ All URIs are relative to *http://localhost/api*
|
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
|
|
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
|
+
|
|
18
88
|
## destroySupplier
|
|
19
89
|
|
|
20
90
|
> GenericResponse destroySupplier(supplier)
|
|
@@ -80,6 +150,74 @@ No authorization required
|
|
|
80
150
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
81
151
|
|
|
82
152
|
|
|
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
|
+
|
|
83
221
|
## exportSupplier
|
|
84
222
|
|
|
85
223
|
> Blob exportSupplier(indexSupplierRequest)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateLabelRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
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
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { UpdateLabelRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
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
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateLabelRequest
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateStoreRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`siteId` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`phone` | string
|
|
12
|
+
`longitude` | number
|
|
13
|
+
`latitude` | number
|
|
14
|
+
`tagLine` | string
|
|
15
|
+
`email` | string
|
|
16
|
+
`openingHours` | Array<string>
|
|
17
|
+
`supplierIds` | Array<number>
|
|
18
|
+
`specialDates` | [Array<UpdateStoreRequestSpecialDatesInner>](UpdateStoreRequestSpecialDatesInner.md)
|
|
19
|
+
`address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { UpdateStoreRequest } 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
|
+
"phone": null,
|
|
31
|
+
"longitude": null,
|
|
32
|
+
"latitude": null,
|
|
33
|
+
"tagLine": null,
|
|
34
|
+
"email": null,
|
|
35
|
+
"openingHours": null,
|
|
36
|
+
"supplierIds": null,
|
|
37
|
+
"specialDates": null,
|
|
38
|
+
"address": null,
|
|
39
|
+
} satisfies UpdateStoreRequest
|
|
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 UpdateStoreRequest
|
|
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/{ProductRegistrationCustomerResource.md → UpdateStoreRequestSpecialDatesInner.md}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# UpdateStoreRequestSpecialDatesInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -8,21 +8,23 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
|
-
`
|
|
12
|
-
`
|
|
11
|
+
`hours` | string
|
|
12
|
+
`displayStart` | Date
|
|
13
|
+
`displayEnd` | Date
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
16
17
|
```typescript
|
|
17
|
-
import type {
|
|
18
|
+
import type { UpdateStoreRequestSpecialDatesInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
19
|
|
|
19
20
|
// TODO: Update the object below with actual values
|
|
20
21
|
const example = {
|
|
21
22
|
"id": null,
|
|
22
23
|
"name": null,
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
24
|
+
"hours": null,
|
|
25
|
+
"displayStart": null,
|
|
26
|
+
"displayEnd": null,
|
|
27
|
+
} satisfies UpdateStoreRequestSpecialDatesInner
|
|
26
28
|
|
|
27
29
|
console.log(example)
|
|
28
30
|
|
|
@@ -31,7 +33,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
31
33
|
console.log(exampleJSON)
|
|
32
34
|
|
|
33
35
|
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateStoreRequestSpecialDatesInner
|
|
35
37
|
console.log(exampleParsed)
|
|
36
38
|
```
|
|
37
39
|
|