@digital8/lighting-illusions-ts-sdk 0.0.1637 → 0.0.1639
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 +26 -40
- package/README.md +20 -26
- package/dist/apis/ReviewApi.d.ts +109 -0
- package/dist/apis/{ProductRegistrationApi.js → ReviewApi.js} +130 -74
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GlobalSearchProductResource.d.ts +0 -6
- package/dist/models/GlobalSearchProductResource.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/IndexReviewRequest.d.ts +110 -0
- package/dist/models/{ListAssetsProductRegistrationRequest.js → IndexReviewRequest.js} +24 -21
- package/dist/models/PaginatedReviewListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReviewListResourceResponse.js +57 -0
- package/dist/models/PaginatedReviewLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReviewLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedReviewResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReviewResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -2
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/ReviewListResource.d.ts +87 -0
- package/dist/models/ReviewListResource.js +82 -0
- package/dist/models/ReviewListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewListResourceArrayResponse.js +50 -0
- package/dist/models/ReviewLiteResource.d.ts +44 -0
- package/dist/models/ReviewLiteResource.js +59 -0
- package/dist/models/ReviewLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewLiteResourceArrayResponse.js +50 -0
- package/dist/models/ReviewResource.d.ts +117 -0
- package/dist/models/ReviewResource.js +100 -0
- package/dist/models/ReviewResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewResourceArrayResponse.js +50 -0
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/StoreReviewRequest.d.ts +74 -0
- package/dist/models/StoreReviewRequest.js +71 -0
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/UpdateReviewRequest.d.ts +62 -0
- package/dist/models/UpdateReviewRequest.js +63 -0
- package/dist/models/index.d.ts +12 -19
- package/dist/models/index.js +12 -19
- package/docs/GlobalSearchProductResource.md +0 -2
- package/docs/{ListAssetsProductRegistrationRequest.md → IndexReviewRequest.md} +10 -8
- package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedReviewListResourceResponse.md} +5 -5
- package/docs/{PaginatedProductRegistrationListResourceResponse.md → PaginatedReviewLiteResourceResponse.md} +5 -5
- package/docs/{ProductRegistrationResourceArrayResponse.md → PaginatedReviewResourceResponse.md} +7 -5
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductSearchResultResource.md +0 -2
- package/docs/ReviewApi.md +407 -0
- package/docs/ReviewListResource.md +52 -0
- package/docs/{ProductRegistrationAssetResource.md → ReviewListResourceArrayResponse.md} +6 -10
- package/docs/{ProductRegistrationLiteResource.md → ReviewLiteResource.md} +8 -6
- package/docs/ReviewLiteResourceArrayResponse.md +34 -0
- package/docs/ReviewResource.md +62 -0
- package/docs/{ProductRegistrationAssetType.md → ReviewResourceArrayResponse.md} +6 -4
- package/docs/StoreReviewRequest.md +48 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/{ProductRegistrationAssetResourceArrayResponse.md → UpdateReviewRequest.md} +16 -6
- package/package.json +1 -1
- package/src/apis/ReviewApi.ts +331 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GlobalSearchProductResource.ts +0 -9
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/IndexReviewRequest.ts +167 -0
- package/src/models/PaginatedReviewListResourceResponse.ts +90 -0
- package/src/models/PaginatedReviewLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedReviewResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +0 -8
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/ReviewListResource.ts +152 -0
- package/src/models/ReviewListResourceArrayResponse.ts +73 -0
- package/src/models/ReviewLiteResource.ts +84 -0
- package/src/models/ReviewLiteResourceArrayResponse.ts +73 -0
- package/src/models/ReviewResource.ts +196 -0
- package/src/models/ReviewResourceArrayResponse.ts +73 -0
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreReviewRequest.ts +125 -0
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/UpdateReviewRequest.ts +107 -0
- package/src/models/index.ts +12 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -95
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
- package/dist/models/GetAllProductRegistrationRequest.js +0 -80
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
- package/dist/models/IndexProductRegistrationRequest.js +0 -98
- 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/ProductRegistrationCustomerResource.d.ts +0 -62
- package/dist/models/ProductRegistrationCustomerResource.js +0 -65
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -57
- package/dist/models/ProductRegistrationListResource.js +0 -64
- 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/ProductRegistrationProductChildResource.d.ts +0 -50
- package/dist/models/ProductRegistrationProductChildResource.js +0 -63
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -90
- package/dist/models/ProductRegistrationResource.js +0 -81
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/GetAllProductRegistrationRequest.md +0 -46
- package/docs/IndexProductRegistrationRequest.md +0 -58
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
- package/docs/ProductRegistrationApi.md +0 -344
- package/docs/ProductRegistrationCustomerResource.md +0 -44
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResource.md +0 -42
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationProductChildResource.md +0 -40
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -52
- package/src/apis/ProductRegistrationApi.ts +0 -297
- package/src/models/GetAllProductRegistrationRequest.ts +0 -137
- package/src/models/IndexProductRegistrationRequest.ts +0 -193
- 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/ProductRegistrationCustomerResource.ts +0 -108
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -108
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationProductChildResource.ts +0 -93
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -171
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GetAllProductRegistrationRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`search` | string
|
|
10
|
-
`sortBy` | string
|
|
11
|
-
`sortDirection` | string
|
|
12
|
-
`relatedId` | number
|
|
13
|
-
`relatedType` | string
|
|
14
|
-
`includesRelations` | boolean
|
|
15
|
-
`siteId` | Array<string>
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import type { GetAllProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
-
|
|
22
|
-
// TODO: Update the object below with actual values
|
|
23
|
-
const example = {
|
|
24
|
-
"search": null,
|
|
25
|
-
"sortBy": null,
|
|
26
|
-
"sortDirection": null,
|
|
27
|
-
"relatedId": null,
|
|
28
|
-
"relatedType": null,
|
|
29
|
-
"includesRelations": null,
|
|
30
|
-
"siteId": null,
|
|
31
|
-
} satisfies GetAllProductRegistrationRequest
|
|
32
|
-
|
|
33
|
-
console.log(example)
|
|
34
|
-
|
|
35
|
-
// Convert the instance to a JSON string
|
|
36
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
-
console.log(exampleJSON)
|
|
38
|
-
|
|
39
|
-
// Parse the JSON string back to an object
|
|
40
|
-
const exampleParsed = JSON.parse(exampleJSON) as GetAllProductRegistrationRequest
|
|
41
|
-
console.log(exampleParsed)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
-
|
|
46
|
-
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# IndexProductRegistrationRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`search` | string
|
|
10
|
-
`sortBy` | string
|
|
11
|
-
`sortDirection` | string
|
|
12
|
-
`perPage` | number
|
|
13
|
-
`page` | number
|
|
14
|
-
`siteId` | Array<string>
|
|
15
|
-
`beforePurchasedDate` | Date
|
|
16
|
-
`afterPurchasedDate` | Date
|
|
17
|
-
`beforeCreatedAt` | Date
|
|
18
|
-
`afterCreatedAt` | Date
|
|
19
|
-
`relatedId` | number
|
|
20
|
-
`relatedType` | string
|
|
21
|
-
`includesRelations` | boolean
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
import type { IndexProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
27
|
-
|
|
28
|
-
// TODO: Update the object below with actual values
|
|
29
|
-
const example = {
|
|
30
|
-
"search": null,
|
|
31
|
-
"sortBy": null,
|
|
32
|
-
"sortDirection": null,
|
|
33
|
-
"perPage": null,
|
|
34
|
-
"page": null,
|
|
35
|
-
"siteId": null,
|
|
36
|
-
"beforePurchasedDate": null,
|
|
37
|
-
"afterPurchasedDate": null,
|
|
38
|
-
"beforeCreatedAt": null,
|
|
39
|
-
"afterCreatedAt": null,
|
|
40
|
-
"relatedId": null,
|
|
41
|
-
"relatedType": null,
|
|
42
|
-
"includesRelations": null,
|
|
43
|
-
} satisfies IndexProductRegistrationRequest
|
|
44
|
-
|
|
45
|
-
console.log(example)
|
|
46
|
-
|
|
47
|
-
// Convert the instance to a JSON string
|
|
48
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
-
console.log(exampleJSON)
|
|
50
|
-
|
|
51
|
-
// Parse the JSON string back to an object
|
|
52
|
-
const exampleParsed = JSON.parse(exampleJSON) as IndexProductRegistrationRequest
|
|
53
|
-
console.log(exampleParsed)
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
-
|
|
58
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedProductRegistrationAssetResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationAssetResource>](ProductRegistrationAssetResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedProductRegistrationAssetResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"data": null,
|
|
20
|
-
"meta": null,
|
|
21
|
-
} satisfies PaginatedProductRegistrationAssetResourceResponse
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductRegistrationAssetResourceResponse
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
# ProductRegistrationApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**getAllProductRegistration**](ProductRegistrationApi.md#getallproductregistrationoperation) | **POST** /admin-api/product-registration/all | Auto-generated: getAllProductRegistration |
|
|
8
|
-
| [**indexProductRegistration**](ProductRegistrationApi.md#indexproductregistrationoperation) | **POST** /admin-api/product-registration/list | Auto-generated: indexProductRegistration |
|
|
9
|
-
| [**listAssetsProductRegistration**](ProductRegistrationApi.md#listassetsproductregistrationoperation) | **POST** /admin-api/product-registration/{productRegistration}/assets | Auto-generated: listAssetsProductRegistration |
|
|
10
|
-
| [**listProductsProductRegistration**](ProductRegistrationApi.md#listproductsproductregistration) | **POST** /admin-api/product-registration/{productRegistration}/product/list | Auto-generated: listProductsProductRegistration |
|
|
11
|
-
| [**showProductRegistration**](ProductRegistrationApi.md#showproductregistration) | **GET** /admin-api/product-registration/{productRegistration} | Auto-generated: showProductRegistration |
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## getAllProductRegistration
|
|
16
|
-
|
|
17
|
-
> ProductRegistrationLiteResourceArrayResponse getAllProductRegistration(getAllProductRegistrationRequest)
|
|
18
|
-
|
|
19
|
-
Auto-generated: getAllProductRegistration
|
|
20
|
-
|
|
21
|
-
### Example
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
import {
|
|
25
|
-
Configuration,
|
|
26
|
-
ProductRegistrationApi,
|
|
27
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
28
|
-
import type { GetAllProductRegistrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
29
|
-
|
|
30
|
-
async function example() {
|
|
31
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
32
|
-
const api = new ProductRegistrationApi();
|
|
33
|
-
|
|
34
|
-
const body = {
|
|
35
|
-
// GetAllProductRegistrationRequest (optional)
|
|
36
|
-
getAllProductRegistrationRequest: ...,
|
|
37
|
-
} satisfies GetAllProductRegistrationOperationRequest;
|
|
38
|
-
|
|
39
|
-
try {
|
|
40
|
-
const data = await api.getAllProductRegistration(body);
|
|
41
|
-
console.log(data);
|
|
42
|
-
} catch (error) {
|
|
43
|
-
console.error(error);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Run the test
|
|
48
|
-
example().catch(console.error);
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Parameters
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
| Name | Type | Description | Notes |
|
|
55
|
-
|------------- | ------------- | ------------- | -------------|
|
|
56
|
-
| **getAllProductRegistrationRequest** | [GetAllProductRegistrationRequest](GetAllProductRegistrationRequest.md) | | [Optional] |
|
|
57
|
-
|
|
58
|
-
### Return type
|
|
59
|
-
|
|
60
|
-
[**ProductRegistrationLiteResourceArrayResponse**](ProductRegistrationLiteResourceArrayResponse.md)
|
|
61
|
-
|
|
62
|
-
### Authorization
|
|
63
|
-
|
|
64
|
-
No authorization required
|
|
65
|
-
|
|
66
|
-
### HTTP request headers
|
|
67
|
-
|
|
68
|
-
- **Content-Type**: `application/json`
|
|
69
|
-
- **Accept**: `application/json`
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
### HTTP response details
|
|
73
|
-
| Status code | Description | Response headers |
|
|
74
|
-
|-------------|-------------|------------------|
|
|
75
|
-
| **200** | Successful resource response | - |
|
|
76
|
-
|
|
77
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
## indexProductRegistration
|
|
81
|
-
|
|
82
|
-
> PaginatedProductRegistrationListResourceResponse indexProductRegistration(indexProductRegistrationRequest)
|
|
83
|
-
|
|
84
|
-
Auto-generated: indexProductRegistration
|
|
85
|
-
|
|
86
|
-
### Example
|
|
87
|
-
|
|
88
|
-
```ts
|
|
89
|
-
import {
|
|
90
|
-
Configuration,
|
|
91
|
-
ProductRegistrationApi,
|
|
92
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
93
|
-
import type { IndexProductRegistrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
94
|
-
|
|
95
|
-
async function example() {
|
|
96
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
97
|
-
const api = new ProductRegistrationApi();
|
|
98
|
-
|
|
99
|
-
const body = {
|
|
100
|
-
// IndexProductRegistrationRequest (optional)
|
|
101
|
-
indexProductRegistrationRequest: ...,
|
|
102
|
-
} satisfies IndexProductRegistrationOperationRequest;
|
|
103
|
-
|
|
104
|
-
try {
|
|
105
|
-
const data = await api.indexProductRegistration(body);
|
|
106
|
-
console.log(data);
|
|
107
|
-
} catch (error) {
|
|
108
|
-
console.error(error);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Run the test
|
|
113
|
-
example().catch(console.error);
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
### Parameters
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
| Name | Type | Description | Notes |
|
|
120
|
-
|------------- | ------------- | ------------- | -------------|
|
|
121
|
-
| **indexProductRegistrationRequest** | [IndexProductRegistrationRequest](IndexProductRegistrationRequest.md) | | [Optional] |
|
|
122
|
-
|
|
123
|
-
### Return type
|
|
124
|
-
|
|
125
|
-
[**PaginatedProductRegistrationListResourceResponse**](PaginatedProductRegistrationListResourceResponse.md)
|
|
126
|
-
|
|
127
|
-
### Authorization
|
|
128
|
-
|
|
129
|
-
No authorization required
|
|
130
|
-
|
|
131
|
-
### HTTP request headers
|
|
132
|
-
|
|
133
|
-
- **Content-Type**: `application/json`
|
|
134
|
-
- **Accept**: `application/json`
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
### HTTP response details
|
|
138
|
-
| Status code | Description | Response headers |
|
|
139
|
-
|-------------|-------------|------------------|
|
|
140
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductRegistrationListResource[]>> | - |
|
|
141
|
-
|
|
142
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
## listAssetsProductRegistration
|
|
146
|
-
|
|
147
|
-
> PaginatedProductRegistrationAssetResourceResponse listAssetsProductRegistration(productRegistration, listAssetsProductRegistrationRequest)
|
|
148
|
-
|
|
149
|
-
Auto-generated: listAssetsProductRegistration
|
|
150
|
-
|
|
151
|
-
### Example
|
|
152
|
-
|
|
153
|
-
```ts
|
|
154
|
-
import {
|
|
155
|
-
Configuration,
|
|
156
|
-
ProductRegistrationApi,
|
|
157
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
158
|
-
import type { ListAssetsProductRegistrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
159
|
-
|
|
160
|
-
async function example() {
|
|
161
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
162
|
-
const api = new ProductRegistrationApi();
|
|
163
|
-
|
|
164
|
-
const body = {
|
|
165
|
-
// number | The id of the productRegistration
|
|
166
|
-
productRegistration: 56,
|
|
167
|
-
// ListAssetsProductRegistrationRequest (optional)
|
|
168
|
-
listAssetsProductRegistrationRequest: ...,
|
|
169
|
-
} satisfies ListAssetsProductRegistrationOperationRequest;
|
|
170
|
-
|
|
171
|
-
try {
|
|
172
|
-
const data = await api.listAssetsProductRegistration(body);
|
|
173
|
-
console.log(data);
|
|
174
|
-
} catch (error) {
|
|
175
|
-
console.error(error);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// Run the test
|
|
180
|
-
example().catch(console.error);
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
### Parameters
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
| Name | Type | Description | Notes |
|
|
187
|
-
|------------- | ------------- | ------------- | -------------|
|
|
188
|
-
| **productRegistration** | `number` | The id of the productRegistration | [Defaults to `undefined`] |
|
|
189
|
-
| **listAssetsProductRegistrationRequest** | [ListAssetsProductRegistrationRequest](ListAssetsProductRegistrationRequest.md) | | [Optional] |
|
|
190
|
-
|
|
191
|
-
### Return type
|
|
192
|
-
|
|
193
|
-
[**PaginatedProductRegistrationAssetResourceResponse**](PaginatedProductRegistrationAssetResourceResponse.md)
|
|
194
|
-
|
|
195
|
-
### Authorization
|
|
196
|
-
|
|
197
|
-
No authorization required
|
|
198
|
-
|
|
199
|
-
### HTTP request headers
|
|
200
|
-
|
|
201
|
-
- **Content-Type**: `application/json`
|
|
202
|
-
- **Accept**: `application/json`
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
### HTTP response details
|
|
206
|
-
| Status code | Description | Response headers |
|
|
207
|
-
|-------------|-------------|------------------|
|
|
208
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductRegistrationAssetResource[]>> | - |
|
|
209
|
-
|
|
210
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
## listProductsProductRegistration
|
|
214
|
-
|
|
215
|
-
> PaginatedProductChildListResourceResponse listProductsProductRegistration(productRegistration, indexProductChildRequest)
|
|
216
|
-
|
|
217
|
-
Auto-generated: listProductsProductRegistration
|
|
218
|
-
|
|
219
|
-
### Example
|
|
220
|
-
|
|
221
|
-
```ts
|
|
222
|
-
import {
|
|
223
|
-
Configuration,
|
|
224
|
-
ProductRegistrationApi,
|
|
225
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
226
|
-
import type { ListProductsProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
227
|
-
|
|
228
|
-
async function example() {
|
|
229
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
230
|
-
const api = new ProductRegistrationApi();
|
|
231
|
-
|
|
232
|
-
const body = {
|
|
233
|
-
// number | The id of the productRegistration
|
|
234
|
-
productRegistration: 56,
|
|
235
|
-
// IndexProductChildRequest (optional)
|
|
236
|
-
indexProductChildRequest: ...,
|
|
237
|
-
} satisfies ListProductsProductRegistrationRequest;
|
|
238
|
-
|
|
239
|
-
try {
|
|
240
|
-
const data = await api.listProductsProductRegistration(body);
|
|
241
|
-
console.log(data);
|
|
242
|
-
} catch (error) {
|
|
243
|
-
console.error(error);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
// Run the test
|
|
248
|
-
example().catch(console.error);
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### Parameters
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
| Name | Type | Description | Notes |
|
|
255
|
-
|------------- | ------------- | ------------- | -------------|
|
|
256
|
-
| **productRegistration** | `number` | The id of the productRegistration | [Defaults to `undefined`] |
|
|
257
|
-
| **indexProductChildRequest** | [IndexProductChildRequest](IndexProductChildRequest.md) | | [Optional] |
|
|
258
|
-
|
|
259
|
-
### Return type
|
|
260
|
-
|
|
261
|
-
[**PaginatedProductChildListResourceResponse**](PaginatedProductChildListResourceResponse.md)
|
|
262
|
-
|
|
263
|
-
### Authorization
|
|
264
|
-
|
|
265
|
-
No authorization required
|
|
266
|
-
|
|
267
|
-
### HTTP request headers
|
|
268
|
-
|
|
269
|
-
- **Content-Type**: `application/json`
|
|
270
|
-
- **Accept**: `application/json`
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
### HTTP response details
|
|
274
|
-
| Status code | Description | Response headers |
|
|
275
|
-
|-------------|-------------|------------------|
|
|
276
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductChildListResource[]>> | - |
|
|
277
|
-
|
|
278
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
## showProductRegistration
|
|
282
|
-
|
|
283
|
-
> ProductRegistrationResource showProductRegistration(productRegistration)
|
|
284
|
-
|
|
285
|
-
Auto-generated: showProductRegistration
|
|
286
|
-
|
|
287
|
-
### Example
|
|
288
|
-
|
|
289
|
-
```ts
|
|
290
|
-
import {
|
|
291
|
-
Configuration,
|
|
292
|
-
ProductRegistrationApi,
|
|
293
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
294
|
-
import type { ShowProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
295
|
-
|
|
296
|
-
async function example() {
|
|
297
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
298
|
-
const api = new ProductRegistrationApi();
|
|
299
|
-
|
|
300
|
-
const body = {
|
|
301
|
-
// number | The id of the productRegistration
|
|
302
|
-
productRegistration: 56,
|
|
303
|
-
} satisfies ShowProductRegistrationRequest;
|
|
304
|
-
|
|
305
|
-
try {
|
|
306
|
-
const data = await api.showProductRegistration(body);
|
|
307
|
-
console.log(data);
|
|
308
|
-
} catch (error) {
|
|
309
|
-
console.error(error);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
// Run the test
|
|
314
|
-
example().catch(console.error);
|
|
315
|
-
```
|
|
316
|
-
|
|
317
|
-
### Parameters
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
| Name | Type | Description | Notes |
|
|
321
|
-
|------------- | ------------- | ------------- | -------------|
|
|
322
|
-
| **productRegistration** | `number` | The id of the productRegistration | [Defaults to `undefined`] |
|
|
323
|
-
|
|
324
|
-
### Return type
|
|
325
|
-
|
|
326
|
-
[**ProductRegistrationResource**](ProductRegistrationResource.md)
|
|
327
|
-
|
|
328
|
-
### Authorization
|
|
329
|
-
|
|
330
|
-
No authorization required
|
|
331
|
-
|
|
332
|
-
### HTTP request headers
|
|
333
|
-
|
|
334
|
-
- **Content-Type**: Not defined
|
|
335
|
-
- **Accept**: `application/json`
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
### HTTP response details
|
|
339
|
-
| Status code | Description | Response headers |
|
|
340
|
-
|-------------|-------------|------------------|
|
|
341
|
-
| **200** | Successful resource response | - |
|
|
342
|
-
|
|
343
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
344
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationCustomerResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`email` | string
|
|
12
|
-
`phone` | string
|
|
13
|
-
`omnisendId` | string
|
|
14
|
-
`omnisendSyncStatus` | string
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import type { ProductRegistrationCustomerResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
-
|
|
21
|
-
// TODO: Update the object below with actual values
|
|
22
|
-
const example = {
|
|
23
|
-
"id": null,
|
|
24
|
-
"name": null,
|
|
25
|
-
"email": null,
|
|
26
|
-
"phone": null,
|
|
27
|
-
"omnisendId": null,
|
|
28
|
-
"omnisendSyncStatus": null,
|
|
29
|
-
} satisfies ProductRegistrationCustomerResource
|
|
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 ProductRegistrationCustomerResource
|
|
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
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationCustomerResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationCustomerResource>](ProductRegistrationCustomerResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductRegistrationCustomerResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductRegistrationCustomerResourceArrayResponse
|
|
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 ProductRegistrationCustomerResourceArrayResponse
|
|
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
|
-
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationListResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`purchasedDate` | Date
|
|
11
|
-
`customer` | [ProductRegistrationCustomerResource](ProductRegistrationCustomerResource.md)
|
|
12
|
-
`productChildrenCount` | number
|
|
13
|
-
`createdAt` | Date
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import type { ProductRegistrationListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
-
|
|
20
|
-
// TODO: Update the object below with actual values
|
|
21
|
-
const example = {
|
|
22
|
-
"id": null,
|
|
23
|
-
"purchasedDate": null,
|
|
24
|
-
"customer": null,
|
|
25
|
-
"productChildrenCount": null,
|
|
26
|
-
"createdAt": null,
|
|
27
|
-
} satisfies ProductRegistrationListResource
|
|
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 ProductRegistrationListResource
|
|
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,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationListResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationListResource>](ProductRegistrationListResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductRegistrationListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductRegistrationListResourceArrayResponse
|
|
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 ProductRegistrationListResourceArrayResponse
|
|
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
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationLiteResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationLiteResource>](ProductRegistrationLiteResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductRegistrationLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductRegistrationLiteResourceArrayResponse
|
|
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 ProductRegistrationLiteResourceArrayResponse
|
|
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
|
-
|