@digital8/lighting-illusions-ts-sdk 0.0.1113 → 0.0.1114
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 +38 -0
- package/README.md +31 -2
- package/dist/apis/StoreApi.d.ts +158 -0
- package/dist/apis/StoreApi.js +621 -0
- package/dist/apis/SupplierApi.d.ts +33 -1
- package/dist/apis/SupplierApi.js +122 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +74 -0
- package/dist/models/AddressResource.js +79 -0
- package/dist/models/AddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressResourceArrayResponse.js +50 -0
- 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 +1 -3
- package/dist/models/GetAllStoreRequest.d.ts +87 -0
- package/dist/models/GetAllStoreRequest.js +79 -0
- package/dist/models/StoreListResource.d.ts +93 -0
- package/dist/models/StoreListResource.js +82 -0
- package/dist/models/StoreListResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreListResourceArrayResponse.js +50 -0
- package/dist/models/StoreResource.d.ts +112 -0
- package/dist/models/StoreResource.js +97 -0
- package/dist/models/StoreResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateResource.d.ts +56 -0
- package/dist/models/StoreSpecialDateResource.js +65 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +50 -0
- package/dist/models/StoreStoreRequest.d.ts +177 -0
- package/dist/models/StoreStoreRequest.js +124 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +50 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +50 -0
- package/dist/models/StoreStoreSpecialDateRequest.js +57 -0
- package/dist/models/SupplierResource.d.ts +6 -0
- package/dist/models/SupplierResource.js +4 -0
- package/dist/models/UpdateStoreRequest.d.ts +177 -0
- package/dist/models/UpdateStoreRequest.js +124 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +56 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/docs/AddressResource.md +48 -0
- package/docs/AddressResourceArrayResponse.md +34 -0
- package/docs/AttachStoresSupplierRequest.md +34 -0
- package/docs/AttachSuppliersStoreRequest.md +34 -0
- package/docs/DetachStoresSupplierRequest.md +34 -0
- package/docs/DetachSuppliersStoreRequest.md +34 -0
- package/docs/GetAllStoreRequest.md +46 -0
- package/docs/StoreApi.md +617 -0
- package/docs/StoreListResource.md +54 -0
- package/docs/StoreListResourceArrayResponse.md +34 -0
- package/docs/StoreResource.md +60 -0
- package/docs/StoreResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateResource.md +42 -0
- package/docs/StoreSpecialDateResourceArrayResponse.md +34 -0
- package/docs/StoreStoreRequest.md +82 -0
- package/docs/StoreStoreRequestSpecialDatesInner.md +40 -0
- package/docs/StoreStoreSpecialDateRequest.md +40 -0
- package/docs/SupplierApi.md +138 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/UpdateStoreRequest.md +82 -0
- package/docs/UpdateStoreRequestSpecialDatesInner.md +42 -0
- package/package.json +1 -1
- package/src/apis/StoreApi.ts +513 -0
- package/src/apis/SupplierApi.ts +112 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +129 -0
- package/src/models/AddressResourceArrayResponse.ts +73 -0
- 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 +2 -3
- package/src/models/GetAllStoreRequest.ts +136 -0
- package/src/models/StoreListResource.ts +159 -0
- package/src/models/StoreListResourceArrayResponse.ts +73 -0
- package/src/models/StoreResource.ts +194 -0
- package/src/models/StoreResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateResource.ts +101 -0
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +73 -0
- package/src/models/StoreStoreRequest.ts +278 -0
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +90 -0
- package/src/models/StoreStoreSpecialDateRequest.ts +90 -0
- package/src/models/SupplierResource.ts +9 -0
- package/src/models/UpdateStoreRequest.ts +278 -0
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +97 -0
- package/src/models/index.ts +18 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
11
|
+
`name` | string
|
|
12
|
+
`phone` | string
|
|
13
|
+
`longitude` | number
|
|
14
|
+
`latitude` | number
|
|
15
|
+
`tagLine` | string
|
|
16
|
+
`email` | string
|
|
17
|
+
`openingHours` | string
|
|
18
|
+
`createdAt` | string
|
|
19
|
+
`updatedAt` | string
|
|
20
|
+
`suppliers` | object
|
|
21
|
+
`address` | [AddressResource](AddressResource.md)
|
|
22
|
+
`specialDates` | object
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import type { StoreResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
28
|
+
|
|
29
|
+
// TODO: Update the object below with actual values
|
|
30
|
+
const example = {
|
|
31
|
+
"id": null,
|
|
32
|
+
"site": null,
|
|
33
|
+
"name": null,
|
|
34
|
+
"phone": null,
|
|
35
|
+
"longitude": null,
|
|
36
|
+
"latitude": null,
|
|
37
|
+
"tagLine": null,
|
|
38
|
+
"email": null,
|
|
39
|
+
"openingHours": null,
|
|
40
|
+
"createdAt": null,
|
|
41
|
+
"updatedAt": null,
|
|
42
|
+
"suppliers": null,
|
|
43
|
+
"address": null,
|
|
44
|
+
"specialDates": null,
|
|
45
|
+
} satisfies StoreResource
|
|
46
|
+
|
|
47
|
+
console.log(example)
|
|
48
|
+
|
|
49
|
+
// Convert the instance to a JSON string
|
|
50
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
51
|
+
console.log(exampleJSON)
|
|
52
|
+
|
|
53
|
+
// Parse the JSON string back to an object
|
|
54
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreResource
|
|
55
|
+
console.log(exampleParsed)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
59
|
+
|
|
60
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<StoreResource>](StoreResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { StoreResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies StoreResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreSpecialDateResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`hours` | string
|
|
12
|
+
`displayStart` | string
|
|
13
|
+
`displayEnd` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { StoreSpecialDateResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"hours": null,
|
|
25
|
+
"displayStart": null,
|
|
26
|
+
"displayEnd": null,
|
|
27
|
+
} satisfies StoreSpecialDateResource
|
|
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 StoreSpecialDateResource
|
|
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
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreSpecialDateResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<StoreSpecialDateResource>](StoreSpecialDateResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { StoreSpecialDateResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies StoreSpecialDateResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreSpecialDateResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreStoreRequest
|
|
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
|
+
`openingHours0` | string
|
|
18
|
+
`openingHours1` | string
|
|
19
|
+
`openingHours2` | string
|
|
20
|
+
`openingHours3` | string
|
|
21
|
+
`openingHours4` | string
|
|
22
|
+
`openingHours5` | string
|
|
23
|
+
`openingHours6` | string
|
|
24
|
+
`supplierIds` | Array<number>
|
|
25
|
+
`specialDates` | [Array<StoreStoreRequestSpecialDatesInner>](StoreStoreRequestSpecialDatesInner.md)
|
|
26
|
+
`address` | Array<string>
|
|
27
|
+
`addressCompany` | string
|
|
28
|
+
`addressLine1` | string
|
|
29
|
+
`addressLine2` | string
|
|
30
|
+
`addressPostcode` | string
|
|
31
|
+
`addressSuburb` | string
|
|
32
|
+
`addressCountry` | string
|
|
33
|
+
`addressState` | string
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import type { StoreStoreRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
39
|
+
|
|
40
|
+
// TODO: Update the object below with actual values
|
|
41
|
+
const example = {
|
|
42
|
+
"siteId": null,
|
|
43
|
+
"name": null,
|
|
44
|
+
"phone": null,
|
|
45
|
+
"longitude": null,
|
|
46
|
+
"latitude": null,
|
|
47
|
+
"tagLine": null,
|
|
48
|
+
"email": null,
|
|
49
|
+
"openingHours": null,
|
|
50
|
+
"openingHours0": null,
|
|
51
|
+
"openingHours1": null,
|
|
52
|
+
"openingHours2": null,
|
|
53
|
+
"openingHours3": null,
|
|
54
|
+
"openingHours4": null,
|
|
55
|
+
"openingHours5": null,
|
|
56
|
+
"openingHours6": null,
|
|
57
|
+
"supplierIds": null,
|
|
58
|
+
"specialDates": null,
|
|
59
|
+
"address": null,
|
|
60
|
+
"addressCompany": null,
|
|
61
|
+
"addressLine1": null,
|
|
62
|
+
"addressLine2": null,
|
|
63
|
+
"addressPostcode": null,
|
|
64
|
+
"addressSuburb": null,
|
|
65
|
+
"addressCountry": null,
|
|
66
|
+
"addressState": null,
|
|
67
|
+
} satisfies StoreStoreRequest
|
|
68
|
+
|
|
69
|
+
console.log(example)
|
|
70
|
+
|
|
71
|
+
// Convert the instance to a JSON string
|
|
72
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
73
|
+
console.log(exampleJSON)
|
|
74
|
+
|
|
75
|
+
// Parse the JSON string back to an object
|
|
76
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreStoreRequest
|
|
77
|
+
console.log(exampleParsed)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
81
|
+
|
|
82
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreStoreRequestSpecialDatesInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`hours` | string
|
|
11
|
+
`displayStart` | Date
|
|
12
|
+
`displayEnd` | Date
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { StoreStoreRequestSpecialDatesInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"hours": null,
|
|
23
|
+
"displayStart": null,
|
|
24
|
+
"displayEnd": null,
|
|
25
|
+
} satisfies StoreStoreRequestSpecialDatesInner
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreStoreRequestSpecialDatesInner
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreStoreSpecialDateRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`hours` | string
|
|
11
|
+
`displayStart` | Date
|
|
12
|
+
`displayEnd` | Date
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { StoreStoreSpecialDateRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"hours": null,
|
|
23
|
+
"displayStart": null,
|
|
24
|
+
"displayEnd": null,
|
|
25
|
+
} satisfies StoreStoreSpecialDateRequest
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreStoreSpecialDateRequest
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
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)
|
package/docs/SupplierResource.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`supplierEta` | number
|
|
14
14
|
`seo` | [Array<SEOResource>](SEOResource.md)
|
|
15
15
|
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
16
|
+
`stores` | object
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"supplierEta": null,
|
|
29
30
|
"seo": null,
|
|
30
31
|
"descriptions": null,
|
|
32
|
+
"stores": null,
|
|
31
33
|
} satisfies SupplierResource
|
|
32
34
|
|
|
33
35
|
console.log(example)
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
`openingHours0` | string
|
|
18
|
+
`openingHours1` | string
|
|
19
|
+
`openingHours2` | string
|
|
20
|
+
`openingHours3` | string
|
|
21
|
+
`openingHours4` | string
|
|
22
|
+
`openingHours5` | string
|
|
23
|
+
`openingHours6` | string
|
|
24
|
+
`supplierIds` | Array<number>
|
|
25
|
+
`specialDates` | [Array<UpdateStoreRequestSpecialDatesInner>](UpdateStoreRequestSpecialDatesInner.md)
|
|
26
|
+
`address` | Array<string>
|
|
27
|
+
`addressCompany` | string
|
|
28
|
+
`addressLine1` | string
|
|
29
|
+
`addressLine2` | string
|
|
30
|
+
`addressPostcode` | string
|
|
31
|
+
`addressSuburb` | string
|
|
32
|
+
`addressCountry` | string
|
|
33
|
+
`addressState` | string
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import type { UpdateStoreRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
39
|
+
|
|
40
|
+
// TODO: Update the object below with actual values
|
|
41
|
+
const example = {
|
|
42
|
+
"siteId": null,
|
|
43
|
+
"name": null,
|
|
44
|
+
"phone": null,
|
|
45
|
+
"longitude": null,
|
|
46
|
+
"latitude": null,
|
|
47
|
+
"tagLine": null,
|
|
48
|
+
"email": null,
|
|
49
|
+
"openingHours": null,
|
|
50
|
+
"openingHours0": null,
|
|
51
|
+
"openingHours1": null,
|
|
52
|
+
"openingHours2": null,
|
|
53
|
+
"openingHours3": null,
|
|
54
|
+
"openingHours4": null,
|
|
55
|
+
"openingHours5": null,
|
|
56
|
+
"openingHours6": null,
|
|
57
|
+
"supplierIds": null,
|
|
58
|
+
"specialDates": null,
|
|
59
|
+
"address": null,
|
|
60
|
+
"addressCompany": null,
|
|
61
|
+
"addressLine1": null,
|
|
62
|
+
"addressLine2": null,
|
|
63
|
+
"addressPostcode": null,
|
|
64
|
+
"addressSuburb": null,
|
|
65
|
+
"addressCountry": null,
|
|
66
|
+
"addressState": null,
|
|
67
|
+
} satisfies UpdateStoreRequest
|
|
68
|
+
|
|
69
|
+
console.log(example)
|
|
70
|
+
|
|
71
|
+
// Convert the instance to a JSON string
|
|
72
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
73
|
+
console.log(exampleJSON)
|
|
74
|
+
|
|
75
|
+
// Parse the JSON string back to an object
|
|
76
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateStoreRequest
|
|
77
|
+
console.log(exampleParsed)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
81
|
+
|
|
82
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateStoreRequestSpecialDatesInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`hours` | string
|
|
12
|
+
`displayStart` | Date
|
|
13
|
+
`displayEnd` | Date
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { UpdateStoreRequestSpecialDatesInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"hours": null,
|
|
25
|
+
"displayStart": null,
|
|
26
|
+
"displayEnd": null,
|
|
27
|
+
} satisfies UpdateStoreRequestSpecialDatesInner
|
|
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 UpdateStoreRequestSpecialDatesInner
|
|
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
|
+
|