@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.
Files changed (165) hide show
  1. package/.openapi-generator/FILES +26 -40
  2. package/README.md +20 -26
  3. package/dist/apis/ReviewApi.d.ts +109 -0
  4. package/dist/apis/{ProductRegistrationApi.js → ReviewApi.js} +130 -74
  5. package/dist/apis/index.d.ts +1 -1
  6. package/dist/apis/index.js +1 -1
  7. package/dist/models/AddressFrontendResource.d.ts +2 -2
  8. package/dist/models/AddressFrontendResource.js +6 -2
  9. package/dist/models/AddressResource.d.ts +2 -2
  10. package/dist/models/AddressResource.js +4 -4
  11. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +1 -3
  13. package/dist/models/GlobalSearchProductResource.d.ts +0 -6
  14. package/dist/models/GlobalSearchProductResource.js +0 -4
  15. package/dist/models/IndexProductChildRequest.d.ts +0 -1
  16. package/dist/models/IndexProductChildRequest.js +0 -1
  17. package/dist/models/IndexReviewRequest.d.ts +110 -0
  18. package/dist/models/{ListAssetsProductRegistrationRequest.js → IndexReviewRequest.js} +24 -21
  19. package/dist/models/PaginatedReviewListResourceResponse.d.ts +40 -0
  20. package/dist/models/PaginatedReviewListResourceResponse.js +57 -0
  21. package/dist/models/PaginatedReviewLiteResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedReviewLiteResourceResponse.js +57 -0
  23. package/dist/models/PaginatedReviewResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedReviewResourceResponse.js +57 -0
  25. package/dist/models/ProductChildListResource.d.ts +0 -6
  26. package/dist/models/ProductChildListResource.js +0 -2
  27. package/dist/models/ProductSearchResultResource.d.ts +0 -6
  28. package/dist/models/ProductSearchResultResource.js +0 -4
  29. package/dist/models/ReviewListResource.d.ts +87 -0
  30. package/dist/models/ReviewListResource.js +82 -0
  31. package/dist/models/ReviewListResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/ReviewListResourceArrayResponse.js +50 -0
  33. package/dist/models/ReviewLiteResource.d.ts +44 -0
  34. package/dist/models/ReviewLiteResource.js +59 -0
  35. package/dist/models/ReviewLiteResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/ReviewLiteResourceArrayResponse.js +50 -0
  37. package/dist/models/ReviewResource.d.ts +117 -0
  38. package/dist/models/ReviewResource.js +100 -0
  39. package/dist/models/ReviewResourceArrayResponse.d.ts +33 -0
  40. package/dist/models/ReviewResourceArrayResponse.js +50 -0
  41. package/dist/models/StoreListResource.d.ts +2 -2
  42. package/dist/models/StoreListResource.js +4 -4
  43. package/dist/models/StoreResource.d.ts +2 -2
  44. package/dist/models/StoreResource.js +2 -6
  45. package/dist/models/StoreReviewRequest.d.ts +74 -0
  46. package/dist/models/StoreReviewRequest.js +71 -0
  47. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  48. package/dist/models/StoreSpecialDateResource.js +1 -3
  49. package/dist/models/UpdateReviewRequest.d.ts +62 -0
  50. package/dist/models/UpdateReviewRequest.js +63 -0
  51. package/dist/models/index.d.ts +12 -19
  52. package/dist/models/index.js +12 -19
  53. package/docs/GlobalSearchProductResource.md +0 -2
  54. package/docs/{ListAssetsProductRegistrationRequest.md → IndexReviewRequest.md} +10 -8
  55. package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedReviewListResourceResponse.md} +5 -5
  56. package/docs/{PaginatedProductRegistrationListResourceResponse.md → PaginatedReviewLiteResourceResponse.md} +5 -5
  57. package/docs/{ProductRegistrationResourceArrayResponse.md → PaginatedReviewResourceResponse.md} +7 -5
  58. package/docs/ProductChildListResource.md +0 -2
  59. package/docs/ProductSearchResultResource.md +0 -2
  60. package/docs/ReviewApi.md +407 -0
  61. package/docs/ReviewListResource.md +52 -0
  62. package/docs/{ProductRegistrationAssetResource.md → ReviewListResourceArrayResponse.md} +6 -10
  63. package/docs/{ProductRegistrationLiteResource.md → ReviewLiteResource.md} +8 -6
  64. package/docs/ReviewLiteResourceArrayResponse.md +34 -0
  65. package/docs/ReviewResource.md +62 -0
  66. package/docs/{ProductRegistrationAssetType.md → ReviewResourceArrayResponse.md} +6 -4
  67. package/docs/StoreReviewRequest.md +48 -0
  68. package/docs/StoreSpecialDateResource.md +1 -1
  69. package/docs/{ProductRegistrationAssetResourceArrayResponse.md → UpdateReviewRequest.md} +16 -6
  70. package/package.json +1 -1
  71. package/src/apis/ReviewApi.ts +331 -0
  72. package/src/apis/index.ts +1 -1
  73. package/src/models/AddressFrontendResource.ts +6 -4
  74. package/src/models/AddressResource.ts +5 -5
  75. package/src/models/ExternalApiLogResource.ts +2 -3
  76. package/src/models/GlobalSearchProductResource.ts +0 -9
  77. package/src/models/IndexProductChildRequest.ts +0 -1
  78. package/src/models/IndexReviewRequest.ts +167 -0
  79. package/src/models/PaginatedReviewListResourceResponse.ts +90 -0
  80. package/src/models/PaginatedReviewLiteResourceResponse.ts +90 -0
  81. package/src/models/PaginatedReviewResourceResponse.ts +90 -0
  82. package/src/models/ProductChildListResource.ts +0 -8
  83. package/src/models/ProductSearchResultResource.ts +0 -9
  84. package/src/models/ReviewListResource.ts +152 -0
  85. package/src/models/ReviewListResourceArrayResponse.ts +73 -0
  86. package/src/models/ReviewLiteResource.ts +84 -0
  87. package/src/models/ReviewLiteResourceArrayResponse.ts +73 -0
  88. package/src/models/ReviewResource.ts +196 -0
  89. package/src/models/ReviewResourceArrayResponse.ts +73 -0
  90. package/src/models/StoreListResource.ts +5 -5
  91. package/src/models/StoreResource.ts +4 -6
  92. package/src/models/StoreReviewRequest.ts +125 -0
  93. package/src/models/StoreSpecialDateResource.ts +3 -4
  94. package/src/models/UpdateReviewRequest.ts +107 -0
  95. package/src/models/index.ts +12 -19
  96. package/dist/apis/ProductRegistrationApi.d.ts +0 -95
  97. package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
  98. package/dist/models/GetAllProductRegistrationRequest.js +0 -80
  99. package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
  100. package/dist/models/IndexProductRegistrationRequest.js +0 -98
  101. package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
  102. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
  103. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
  104. package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
  105. package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
  106. package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
  107. package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
  108. package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
  109. package/dist/models/ProductRegistrationAssetResource.js +0 -58
  110. package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
  111. package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
  112. package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
  113. package/dist/models/ProductRegistrationAssetType.js +0 -51
  114. package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -62
  115. package/dist/models/ProductRegistrationCustomerResource.js +0 -65
  116. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
  117. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
  118. package/dist/models/ProductRegistrationListResource.d.ts +0 -57
  119. package/dist/models/ProductRegistrationListResource.js +0 -64
  120. package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
  121. package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
  122. package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
  123. package/dist/models/ProductRegistrationLiteResource.js +0 -53
  124. package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
  125. package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
  126. package/dist/models/ProductRegistrationProductChildResource.d.ts +0 -50
  127. package/dist/models/ProductRegistrationProductChildResource.js +0 -63
  128. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
  129. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
  130. package/dist/models/ProductRegistrationResource.d.ts +0 -90
  131. package/dist/models/ProductRegistrationResource.js +0 -81
  132. package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
  133. package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
  134. package/docs/GetAllProductRegistrationRequest.md +0 -46
  135. package/docs/IndexProductRegistrationRequest.md +0 -58
  136. package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
  137. package/docs/ProductRegistrationApi.md +0 -344
  138. package/docs/ProductRegistrationCustomerResource.md +0 -44
  139. package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
  140. package/docs/ProductRegistrationListResource.md +0 -42
  141. package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
  142. package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
  143. package/docs/ProductRegistrationProductChildResource.md +0 -40
  144. package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
  145. package/docs/ProductRegistrationResource.md +0 -52
  146. package/src/apis/ProductRegistrationApi.ts +0 -297
  147. package/src/models/GetAllProductRegistrationRequest.ts +0 -137
  148. package/src/models/IndexProductRegistrationRequest.ts +0 -193
  149. package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
  150. package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
  151. package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
  152. package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
  153. package/src/models/ProductRegistrationAssetResource.ts +0 -91
  154. package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
  155. package/src/models/ProductRegistrationAssetType.ts +0 -53
  156. package/src/models/ProductRegistrationCustomerResource.ts +0 -108
  157. package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
  158. package/src/models/ProductRegistrationListResource.ts +0 -108
  159. package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
  160. package/src/models/ProductRegistrationLiteResource.ts +0 -74
  161. package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
  162. package/src/models/ProductRegistrationProductChildResource.ts +0 -93
  163. package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
  164. package/src/models/ProductRegistrationResource.ts +0 -171
  165. package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
@@ -1,24 +1,24 @@
1
1
 
2
- # PaginatedProductRegistrationResourceResponse
2
+ # PaginatedReviewListResourceResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<ProductRegistrationResource>](ProductRegistrationResource.md)
9
+ `data` | [Array<ReviewListResource>](ReviewListResource.md)
10
10
  `meta` | [PagingMetadata](PagingMetadata.md)
11
11
 
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import type { PaginatedProductRegistrationResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+ import type { PaginatedReviewListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
16
16
 
17
17
  // TODO: Update the object below with actual values
18
18
  const example = {
19
19
  "data": null,
20
20
  "meta": null,
21
- } satisfies PaginatedProductRegistrationResourceResponse
21
+ } satisfies PaginatedReviewListResourceResponse
22
22
 
23
23
  console.log(example)
24
24
 
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
27
27
  console.log(exampleJSON)
28
28
 
29
29
  // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductRegistrationResourceResponse
30
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedReviewListResourceResponse
31
31
  console.log(exampleParsed)
32
32
  ```
33
33
 
@@ -1,24 +1,24 @@
1
1
 
2
- # PaginatedProductRegistrationListResourceResponse
2
+ # PaginatedReviewLiteResourceResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<ProductRegistrationListResource>](ProductRegistrationListResource.md)
9
+ `data` | [Array<ReviewLiteResource>](ReviewLiteResource.md)
10
10
  `meta` | [PagingMetadata](PagingMetadata.md)
11
11
 
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import type { PaginatedProductRegistrationListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+ import type { PaginatedReviewLiteResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
16
16
 
17
17
  // TODO: Update the object below with actual values
18
18
  const example = {
19
19
  "data": null,
20
20
  "meta": null,
21
- } satisfies PaginatedProductRegistrationListResourceResponse
21
+ } satisfies PaginatedReviewLiteResourceResponse
22
22
 
23
23
  console.log(example)
24
24
 
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
27
27
  console.log(exampleJSON)
28
28
 
29
29
  // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductRegistrationListResourceResponse
30
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedReviewLiteResourceResponse
31
31
  console.log(exampleParsed)
32
32
  ```
33
33
 
@@ -1,22 +1,24 @@
1
1
 
2
- # ProductRegistrationResourceArrayResponse
2
+ # PaginatedReviewResourceResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<ProductRegistrationResource>](ProductRegistrationResource.md)
9
+ `data` | [Array<ReviewResource>](ReviewResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
10
11
 
11
12
  ## Example
12
13
 
13
14
  ```typescript
14
- import type { ProductRegistrationResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+ import type { PaginatedReviewResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
15
16
 
16
17
  // TODO: Update the object below with actual values
17
18
  const example = {
18
19
  "data": null,
19
- } satisfies ProductRegistrationResourceArrayResponse
20
+ "meta": null,
21
+ } satisfies PaginatedReviewResourceResponse
20
22
 
21
23
  console.log(example)
22
24
 
@@ -25,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
25
27
  console.log(exampleJSON)
26
28
 
27
29
  // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as ProductRegistrationResourceArrayResponse
30
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedReviewResourceResponse
29
31
  console.log(exampleParsed)
30
32
  ```
31
33
 
@@ -14,7 +14,6 @@ Name | Type
14
14
  `stock` | number
15
15
  `isDisabled` | string
16
16
  `displayInSocialFeed` | boolean
17
- `quantity` | string
18
17
  `netsuiteId` | number
19
18
  `thumbnail` | [AssetLiteResource](AssetLiteResource.md)
20
19
  `siteDetails` | [Array<ProductChildSiteDetailLiteResource>](ProductChildSiteDetailLiteResource.md)
@@ -34,7 +33,6 @@ const example = {
34
33
  "stock": null,
35
34
  "isDisabled": null,
36
35
  "displayInSocialFeed": null,
37
- "quantity": null,
38
36
  "netsuiteId": null,
39
37
  "thumbnail": null,
40
38
  "siteDetails": null,
@@ -9,7 +9,6 @@ Name | Type
9
9
  `id` | number
10
10
  `sku` | string
11
11
  `model` | string
12
- `modelRaw` | string
13
12
  `barcode` | string
14
13
  `name` | string
15
14
  `slug` | string
@@ -36,7 +35,6 @@ const example = {
36
35
  "id": null,
37
36
  "sku": null,
38
37
  "model": null,
39
- "modelRaw": null,
40
38
  "barcode": null,
41
39
  "name": null,
42
40
  "slug": null,
@@ -0,0 +1,407 @@
1
+ # ReviewApi
2
+
3
+ All URIs are relative to *http://localhost/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**destroyReview**](ReviewApi.md#destroyreview) | **DELETE** /admin-api/review/{review}/delete | Auto-generated: destroyReview |
8
+ | [**getAllReview**](ReviewApi.md#getallreview) | **POST** /admin-api/review/all | Auto-generated: getAllReview |
9
+ | [**indexReview**](ReviewApi.md#indexreviewoperation) | **POST** /admin-api/review/list | Auto-generated: indexReview |
10
+ | [**showReview**](ReviewApi.md#showreview) | **GET** /admin-api/review/{review} | Auto-generated: showReview |
11
+ | [**storeReview**](ReviewApi.md#storereviewoperation) | **POST** /admin-api/review/create | Auto-generated: storeReview |
12
+ | [**updateReview**](ReviewApi.md#updatereviewoperation) | **PUT** /admin-api/review/{review}/update | Auto-generated: updateReview |
13
+
14
+
15
+
16
+ ## destroyReview
17
+
18
+ > GenericResponse destroyReview(review)
19
+
20
+ Auto-generated: destroyReview
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ ReviewApi,
28
+ } from '@digital8/lighting-illusions-ts-sdk';
29
+ import type { DestroyReviewRequest } from '@digital8/lighting-illusions-ts-sdk';
30
+
31
+ async function example() {
32
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
33
+ const api = new ReviewApi();
34
+
35
+ const body = {
36
+ // number | The id of the review
37
+ review: 56,
38
+ } satisfies DestroyReviewRequest;
39
+
40
+ try {
41
+ const data = await api.destroyReview(body);
42
+ console.log(data);
43
+ } catch (error) {
44
+ console.error(error);
45
+ }
46
+ }
47
+
48
+ // Run the test
49
+ example().catch(console.error);
50
+ ```
51
+
52
+ ### Parameters
53
+
54
+
55
+ | Name | Type | Description | Notes |
56
+ |------------- | ------------- | ------------- | -------------|
57
+ | **review** | `number` | The id of the review | [Defaults to `undefined`] |
58
+
59
+ ### Return type
60
+
61
+ [**GenericResponse**](GenericResponse.md)
62
+
63
+ ### Authorization
64
+
65
+ No authorization required
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: Not defined
70
+ - **Accept**: `application/json`
71
+
72
+
73
+ ### HTTP response details
74
+ | Status code | Description | Response headers |
75
+ |-------------|-------------|------------------|
76
+ | **200** | \\JsonResponse | - |
77
+
78
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
79
+
80
+
81
+ ## getAllReview
82
+
83
+ > ReviewLiteResourceArrayResponse getAllReview(indexReviewRequest)
84
+
85
+ Auto-generated: getAllReview
86
+
87
+ ### Example
88
+
89
+ ```ts
90
+ import {
91
+ Configuration,
92
+ ReviewApi,
93
+ } from '@digital8/lighting-illusions-ts-sdk';
94
+ import type { GetAllReviewRequest } from '@digital8/lighting-illusions-ts-sdk';
95
+
96
+ async function example() {
97
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
98
+ const api = new ReviewApi();
99
+
100
+ const body = {
101
+ // IndexReviewRequest (optional)
102
+ indexReviewRequest: ...,
103
+ } satisfies GetAllReviewRequest;
104
+
105
+ try {
106
+ const data = await api.getAllReview(body);
107
+ console.log(data);
108
+ } catch (error) {
109
+ console.error(error);
110
+ }
111
+ }
112
+
113
+ // Run the test
114
+ example().catch(console.error);
115
+ ```
116
+
117
+ ### Parameters
118
+
119
+
120
+ | Name | Type | Description | Notes |
121
+ |------------- | ------------- | ------------- | -------------|
122
+ | **indexReviewRequest** | [IndexReviewRequest](IndexReviewRequest.md) | | [Optional] |
123
+
124
+ ### Return type
125
+
126
+ [**ReviewLiteResourceArrayResponse**](ReviewLiteResourceArrayResponse.md)
127
+
128
+ ### Authorization
129
+
130
+ No authorization required
131
+
132
+ ### HTTP request headers
133
+
134
+ - **Content-Type**: `application/json`
135
+ - **Accept**: `application/json`
136
+
137
+
138
+ ### HTTP response details
139
+ | Status code | Description | Response headers |
140
+ |-------------|-------------|------------------|
141
+ | **200** | Successful resource response | - |
142
+
143
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
144
+
145
+
146
+ ## indexReview
147
+
148
+ > PaginatedReviewListResourceResponse indexReview(indexReviewRequest)
149
+
150
+ Auto-generated: indexReview
151
+
152
+ ### Example
153
+
154
+ ```ts
155
+ import {
156
+ Configuration,
157
+ ReviewApi,
158
+ } from '@digital8/lighting-illusions-ts-sdk';
159
+ import type { IndexReviewOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
160
+
161
+ async function example() {
162
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
163
+ const api = new ReviewApi();
164
+
165
+ const body = {
166
+ // IndexReviewRequest (optional)
167
+ indexReviewRequest: ...,
168
+ } satisfies IndexReviewOperationRequest;
169
+
170
+ try {
171
+ const data = await api.indexReview(body);
172
+ console.log(data);
173
+ } catch (error) {
174
+ console.error(error);
175
+ }
176
+ }
177
+
178
+ // Run the test
179
+ example().catch(console.error);
180
+ ```
181
+
182
+ ### Parameters
183
+
184
+
185
+ | Name | Type | Description | Notes |
186
+ |------------- | ------------- | ------------- | -------------|
187
+ | **indexReviewRequest** | [IndexReviewRequest](IndexReviewRequest.md) | | [Optional] |
188
+
189
+ ### Return type
190
+
191
+ [**PaginatedReviewListResourceResponse**](PaginatedReviewListResourceResponse.md)
192
+
193
+ ### Authorization
194
+
195
+ No authorization required
196
+
197
+ ### HTTP request headers
198
+
199
+ - **Content-Type**: `application/json`
200
+ - **Accept**: `application/json`
201
+
202
+
203
+ ### HTTP response details
204
+ | Status code | Description | Response headers |
205
+ |-------------|-------------|------------------|
206
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ReviewListResource[]>> | - |
207
+
208
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
209
+
210
+
211
+ ## showReview
212
+
213
+ > ReviewResource showReview(review)
214
+
215
+ Auto-generated: showReview
216
+
217
+ ### Example
218
+
219
+ ```ts
220
+ import {
221
+ Configuration,
222
+ ReviewApi,
223
+ } from '@digital8/lighting-illusions-ts-sdk';
224
+ import type { ShowReviewRequest } from '@digital8/lighting-illusions-ts-sdk';
225
+
226
+ async function example() {
227
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
228
+ const api = new ReviewApi();
229
+
230
+ const body = {
231
+ // number | The id of the review
232
+ review: 56,
233
+ } satisfies ShowReviewRequest;
234
+
235
+ try {
236
+ const data = await api.showReview(body);
237
+ console.log(data);
238
+ } catch (error) {
239
+ console.error(error);
240
+ }
241
+ }
242
+
243
+ // Run the test
244
+ example().catch(console.error);
245
+ ```
246
+
247
+ ### Parameters
248
+
249
+
250
+ | Name | Type | Description | Notes |
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **review** | `number` | The id of the review | [Defaults to `undefined`] |
253
+
254
+ ### Return type
255
+
256
+ [**ReviewResource**](ReviewResource.md)
257
+
258
+ ### Authorization
259
+
260
+ No authorization required
261
+
262
+ ### HTTP request headers
263
+
264
+ - **Content-Type**: Not defined
265
+ - **Accept**: `application/json`
266
+
267
+
268
+ ### HTTP response details
269
+ | Status code | Description | Response headers |
270
+ |-------------|-------------|------------------|
271
+ | **200** | Successful resource response | - |
272
+
273
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
274
+
275
+
276
+ ## storeReview
277
+
278
+ > ReviewResource storeReview(storeReviewRequest)
279
+
280
+ Auto-generated: storeReview
281
+
282
+ ### Example
283
+
284
+ ```ts
285
+ import {
286
+ Configuration,
287
+ ReviewApi,
288
+ } from '@digital8/lighting-illusions-ts-sdk';
289
+ import type { StoreReviewOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
290
+
291
+ async function example() {
292
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
293
+ const api = new ReviewApi();
294
+
295
+ const body = {
296
+ // StoreReviewRequest (optional)
297
+ storeReviewRequest: ...,
298
+ } satisfies StoreReviewOperationRequest;
299
+
300
+ try {
301
+ const data = await api.storeReview(body);
302
+ console.log(data);
303
+ } catch (error) {
304
+ console.error(error);
305
+ }
306
+ }
307
+
308
+ // Run the test
309
+ example().catch(console.error);
310
+ ```
311
+
312
+ ### Parameters
313
+
314
+
315
+ | Name | Type | Description | Notes |
316
+ |------------- | ------------- | ------------- | -------------|
317
+ | **storeReviewRequest** | [StoreReviewRequest](StoreReviewRequest.md) | | [Optional] |
318
+
319
+ ### Return type
320
+
321
+ [**ReviewResource**](ReviewResource.md)
322
+
323
+ ### Authorization
324
+
325
+ No authorization required
326
+
327
+ ### HTTP request headers
328
+
329
+ - **Content-Type**: `application/json`
330
+ - **Accept**: `application/json`
331
+
332
+
333
+ ### HTTP response details
334
+ | Status code | Description | Response headers |
335
+ |-------------|-------------|------------------|
336
+ | **200** | Successful resource response | - |
337
+
338
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
339
+
340
+
341
+ ## updateReview
342
+
343
+ > ReviewResource updateReview(review, updateReviewRequest)
344
+
345
+ Auto-generated: updateReview
346
+
347
+ ### Example
348
+
349
+ ```ts
350
+ import {
351
+ Configuration,
352
+ ReviewApi,
353
+ } from '@digital8/lighting-illusions-ts-sdk';
354
+ import type { UpdateReviewOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
355
+
356
+ async function example() {
357
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
358
+ const api = new ReviewApi();
359
+
360
+ const body = {
361
+ // number | The id of the review
362
+ review: 56,
363
+ // UpdateReviewRequest (optional)
364
+ updateReviewRequest: ...,
365
+ } satisfies UpdateReviewOperationRequest;
366
+
367
+ try {
368
+ const data = await api.updateReview(body);
369
+ console.log(data);
370
+ } catch (error) {
371
+ console.error(error);
372
+ }
373
+ }
374
+
375
+ // Run the test
376
+ example().catch(console.error);
377
+ ```
378
+
379
+ ### Parameters
380
+
381
+
382
+ | Name | Type | Description | Notes |
383
+ |------------- | ------------- | ------------- | -------------|
384
+ | **review** | `number` | The id of the review | [Defaults to `undefined`] |
385
+ | **updateReviewRequest** | [UpdateReviewRequest](UpdateReviewRequest.md) | | [Optional] |
386
+
387
+ ### Return type
388
+
389
+ [**ReviewResource**](ReviewResource.md)
390
+
391
+ ### Authorization
392
+
393
+ No authorization required
394
+
395
+ ### HTTP request headers
396
+
397
+ - **Content-Type**: `application/json`
398
+ - **Accept**: `application/json`
399
+
400
+
401
+ ### HTTP response details
402
+ | Status code | Description | Response headers |
403
+ |-------------|-------------|------------------|
404
+ | **200** | Successful resource response | - |
405
+
406
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
407
+
@@ -0,0 +1,52 @@
1
+
2
+ # ReviewListResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `reviewerName` | string
11
+ `rating` | number
12
+ `comment` | string
13
+ `replyFromAdmin` | string
14
+ `createdByAdmin` | boolean
15
+ `approvedAt` | string
16
+ `createdAt` | string
17
+ `site` | [SiteLiteResource](SiteLiteResource.md)
18
+ `productChild` | Array<number>
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { ReviewListResource } from '@digital8/lighting-illusions-ts-sdk'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "id": null,
28
+ "reviewerName": null,
29
+ "rating": null,
30
+ "comment": null,
31
+ "replyFromAdmin": null,
32
+ "createdByAdmin": null,
33
+ "approvedAt": null,
34
+ "createdAt": null,
35
+ "site": null,
36
+ "productChild": null,
37
+ } satisfies ReviewListResource
38
+
39
+ console.log(example)
40
+
41
+ // Convert the instance to a JSON string
42
+ const exampleJSON: string = JSON.stringify(example)
43
+ console.log(exampleJSON)
44
+
45
+ // Parse the JSON string back to an object
46
+ const exampleParsed = JSON.parse(exampleJSON) as ReviewListResource
47
+ console.log(exampleParsed)
48
+ ```
49
+
50
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
+
52
+
@@ -1,26 +1,22 @@
1
1
 
2
- # ProductRegistrationAssetResource
2
+ # ReviewListResourceArrayResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `id` | number
10
- `type` | string
11
- `asset` | [AssetResource](AssetResource.md)
9
+ `data` | [Array<ReviewListResource>](ReviewListResource.md)
12
10
 
13
11
  ## Example
14
12
 
15
13
  ```typescript
16
- import type { ProductRegistrationAssetResource } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { ReviewListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
17
15
 
18
16
  // TODO: Update the object below with actual values
19
17
  const example = {
20
- "id": null,
21
- "type": null,
22
- "asset": null,
23
- } satisfies ProductRegistrationAssetResource
18
+ "data": null,
19
+ } satisfies ReviewListResourceArrayResponse
24
20
 
25
21
  console.log(example)
26
22
 
@@ -29,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
29
25
  console.log(exampleJSON)
30
26
 
31
27
  // Parse the JSON string back to an object
32
- const exampleParsed = JSON.parse(exampleJSON) as ProductRegistrationAssetResource
28
+ const exampleParsed = JSON.parse(exampleJSON) as ReviewListResourceArrayResponse
33
29
  console.log(exampleParsed)
34
30
  ```
35
31
 
@@ -1,5 +1,5 @@
1
1
 
2
- # ProductRegistrationLiteResource
2
+ # ReviewLiteResource
3
3
 
4
4
 
5
5
  ## Properties
@@ -7,18 +7,20 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
- `purchasedDate` | Date
10
+ `reviewerName` | string
11
+ `rating` | number
11
12
 
12
13
  ## Example
13
14
 
14
15
  ```typescript
15
- import type { ProductRegistrationLiteResource } from '@digital8/lighting-illusions-ts-sdk'
16
+ import type { ReviewLiteResource } from '@digital8/lighting-illusions-ts-sdk'
16
17
 
17
18
  // TODO: Update the object below with actual values
18
19
  const example = {
19
20
  "id": null,
20
- "purchasedDate": null,
21
- } satisfies ProductRegistrationLiteResource
21
+ "reviewerName": null,
22
+ "rating": null,
23
+ } satisfies ReviewLiteResource
22
24
 
23
25
  console.log(example)
24
26
 
@@ -27,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
27
29
  console.log(exampleJSON)
28
30
 
29
31
  // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as ProductRegistrationLiteResource
32
+ const exampleParsed = JSON.parse(exampleJSON) as ReviewLiteResource
31
33
  console.log(exampleParsed)
32
34
  ```
33
35