@digital8/lighting-illusions-ts-sdk 0.0.1796 → 0.0.1798

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 (228) hide show
  1. package/.openapi-generator/FILES +62 -42
  2. package/README.md +44 -30
  3. package/dist/apis/CartsApi.d.ts +190 -0
  4. package/dist/apis/CartsApi.js +747 -0
  5. package/dist/apis/CustomersApi.d.ts +48 -0
  6. package/dist/apis/CustomersApi.js +196 -0
  7. package/dist/apis/index.d.ts +2 -1
  8. package/dist/apis/index.js +2 -1
  9. package/dist/models/AddressFrontendResource.d.ts +1 -1
  10. package/dist/models/AddressFrontendResource.js +1 -3
  11. package/dist/models/AddressResource.d.ts +1 -1
  12. package/dist/models/AddressResource.js +3 -1
  13. package/dist/models/AddressType.d.ts +25 -0
  14. package/dist/models/AddressType.js +51 -0
  15. package/dist/models/AdminCartResource.d.ts +197 -0
  16. package/dist/models/AdminCartResource.js +140 -0
  17. package/dist/models/AdminCartResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/AdminCartResourceArrayResponse.js +50 -0
  19. package/dist/models/AttachCouponCartRequest.d.ts +32 -0
  20. package/dist/models/AttachCouponCartRequest.js +51 -0
  21. package/dist/models/AttachItemCartRequest.d.ts +44 -0
  22. package/dist/models/AttachItemCartRequest.js +57 -0
  23. package/dist/models/CartListResource.d.ts +137 -0
  24. package/dist/models/CartListResource.js +106 -0
  25. package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/CartListResourceArrayResponse.js +50 -0
  27. package/dist/models/CartOrderSource.d.ts +29 -0
  28. package/dist/models/CartOrderSource.js +55 -0
  29. package/dist/models/CartStatus.d.ts +26 -0
  30. package/dist/models/CartStatus.js +52 -0
  31. package/dist/models/CustomerListResource.d.ts +69 -0
  32. package/dist/models/CustomerListResource.js +72 -0
  33. package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/CustomerListResourceArrayResponse.js +50 -0
  35. package/dist/models/CustomerResource.d.ts +69 -0
  36. package/dist/models/CustomerResource.js +72 -0
  37. package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/CustomerResourceArrayResponse.js +50 -0
  39. package/dist/models/FrontendCartResource.d.ts +155 -0
  40. package/dist/models/FrontendCartResource.js +118 -0
  41. package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
  43. package/dist/models/IndexCartRequest.d.ts +154 -0
  44. package/dist/models/IndexCartRequest.js +105 -0
  45. package/dist/models/IndexCustomerRequest.d.ts +99 -0
  46. package/dist/models/{IndexReviewRequest.js → IndexCustomerRequest.js} +20 -23
  47. package/dist/models/LineItemListResource.d.ts +51 -0
  48. package/dist/models/LineItemListResource.js +62 -0
  49. package/dist/models/LineItemListResourceArrayResponse.d.ts +33 -0
  50. package/dist/models/LineItemListResourceArrayResponse.js +50 -0
  51. package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
  52. package/dist/models/PaginatedCartListResourceResponse.js +57 -0
  53. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
  54. package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
  55. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +7 -0
  56. package/dist/models/ProductChildSiteDetailLiteResource.js +5 -0
  57. package/dist/models/ShippingType.d.ts +28 -0
  58. package/dist/models/ShippingType.js +54 -0
  59. package/dist/models/SitePaymentConfigResource.d.ts +6 -0
  60. package/dist/models/SitePaymentConfigResource.js +4 -0
  61. package/dist/models/StoreCartRequest.d.ts +136 -0
  62. package/dist/models/StoreCartRequest.js +110 -0
  63. package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
  64. package/dist/models/StoreCartRequestCustomer.js +55 -0
  65. package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
  66. package/dist/models/StoreCartRequestItemsInner.js +57 -0
  67. package/dist/models/StoreCartRequestShippingAddress.d.ts +74 -0
  68. package/dist/models/StoreCartRequestShippingAddress.js +63 -0
  69. package/dist/models/StoreCustomerRequest.d.ts +56 -0
  70. package/dist/models/StoreCustomerRequest.js +65 -0
  71. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  72. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  73. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  74. package/dist/models/StoreSpecialDateResource.js +3 -1
  75. package/dist/models/UpdateCartRequest.d.ts +111 -0
  76. package/dist/models/UpdateCartRequest.js +95 -0
  77. package/dist/models/UpdateItemCartRequest.d.ts +38 -0
  78. package/dist/models/UpdateItemCartRequest.js +53 -0
  79. package/dist/models/UpdateSiteRequest.d.ts +6 -0
  80. package/dist/models/UpdateSiteRequest.js +4 -0
  81. package/dist/models/index.d.ts +29 -20
  82. package/dist/models/index.js +29 -20
  83. package/docs/{ReviewLiteResource.md → AddressType.md} +4 -10
  84. package/docs/AdminCartResource.md +88 -0
  85. package/docs/{ReviewLiteResourceArrayResponse.md → AdminCartResourceArrayResponse.md} +5 -5
  86. package/docs/AttachCouponCartRequest.md +34 -0
  87. package/docs/{AdminUserLiteResourceArrayResponse.md → AttachItemCartRequest.md} +10 -6
  88. package/docs/CartListResource.md +68 -0
  89. package/docs/{ReviewResourceArrayResponse.md → CartListResourceArrayResponse.md} +5 -5
  90. package/docs/CartOrderSource.md +32 -0
  91. package/docs/CartStatus.md +32 -0
  92. package/docs/CartsApi.md +755 -0
  93. package/docs/{ReviewPublicResource.md → CustomerListResource.md} +16 -16
  94. package/docs/{ReviewPublicResourceArrayResponse.md → CustomerListResourceArrayResponse.md} +5 -5
  95. package/docs/CustomerResource.md +46 -0
  96. package/docs/{ReviewListResourceArrayResponse.md → CustomerResourceArrayResponse.md} +5 -5
  97. package/docs/CustomersApi.md +140 -0
  98. package/docs/FrontendCartResource.md +74 -0
  99. package/docs/{CustomerLiteResourceArrayResponse.md → FrontendCartResourceArrayResponse.md} +5 -5
  100. package/docs/IndexCartRequest.md +66 -0
  101. package/docs/{IndexReviewRequest.md → IndexCustomerRequest.md} +4 -8
  102. package/docs/LineItemListResource.md +40 -0
  103. package/docs/LineItemListResourceArrayResponse.md +34 -0
  104. package/docs/{PaginatedReviewResourceResponse.md → PaginatedCartListResourceResponse.md} +5 -5
  105. package/docs/{PaginatedReviewListResourceResponse.md → PaginatedCustomerListResourceResponse.md} +5 -5
  106. package/docs/ProductChildSiteDetailLiteResource.md +2 -0
  107. package/docs/ShippingType.md +32 -0
  108. package/docs/SitePaymentConfigResource.md +2 -0
  109. package/docs/StoreCartRequest.md +60 -0
  110. package/docs/{AdminUserLiteResource.md → StoreCartRequestCustomer.md} +6 -6
  111. package/docs/StoreCartRequestItemsInner.md +38 -0
  112. package/docs/StoreCartRequestShippingAddress.md +48 -0
  113. package/docs/{CustomerLiteResource.md → StoreCustomerRequest.md} +8 -6
  114. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  115. package/docs/StoreSpecialDateResource.md +1 -1
  116. package/docs/UpdateCartRequest.md +52 -0
  117. package/docs/UpdateItemCartRequest.md +36 -0
  118. package/docs/UpdateSiteRequest.md +2 -0
  119. package/package.json +1 -1
  120. package/src/apis/CartsApi.ts +626 -0
  121. package/src/apis/CustomersApi.ts +127 -0
  122. package/src/apis/index.ts +2 -1
  123. package/src/models/AddressFrontendResource.ts +2 -3
  124. package/src/models/AddressResource.ts +3 -2
  125. package/src/models/AddressType.ts +53 -0
  126. package/src/models/AdminCartResource.ts +320 -0
  127. package/src/models/AdminCartResourceArrayResponse.ts +73 -0
  128. package/src/models/AttachCouponCartRequest.ts +66 -0
  129. package/src/models/AttachItemCartRequest.ts +83 -0
  130. package/src/models/CartListResource.ts +233 -0
  131. package/src/models/CartListResourceArrayResponse.ts +73 -0
  132. package/src/models/CartOrderSource.ts +57 -0
  133. package/src/models/CartStatus.ts +54 -0
  134. package/src/models/CustomerListResource.ts +126 -0
  135. package/src/models/CustomerListResourceArrayResponse.ts +73 -0
  136. package/src/models/CustomerResource.ts +126 -0
  137. package/src/models/CustomerResourceArrayResponse.ts +73 -0
  138. package/src/models/FrontendCartResource.ts +260 -0
  139. package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
  140. package/src/models/IndexCartRequest.ts +224 -0
  141. package/src/models/{IndexReviewRequest.ts → IndexCustomerRequest.ts} +31 -46
  142. package/src/models/LineItemListResource.ts +100 -0
  143. package/src/models/LineItemListResourceArrayResponse.ts +73 -0
  144. package/src/models/PaginatedCartListResourceResponse.ts +90 -0
  145. package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
  146. package/src/models/ProductChildSiteDetailLiteResource.ts +16 -0
  147. package/src/models/ShippingType.ts +56 -0
  148. package/src/models/SitePaymentConfigResource.ts +9 -0
  149. package/src/models/StoreCartRequest.ts +223 -0
  150. package/src/models/StoreCartRequestCustomer.ts +89 -0
  151. package/src/models/StoreCartRequestItemsInner.ts +83 -0
  152. package/src/models/StoreCartRequestShippingAddress.ts +121 -0
  153. package/src/models/StoreCustomerRequest.ts +101 -0
  154. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  155. package/src/models/StoreSpecialDateResource.ts +4 -3
  156. package/src/models/UpdateCartRequest.ts +181 -0
  157. package/src/models/UpdateItemCartRequest.ts +74 -0
  158. package/src/models/UpdateSiteRequest.ts +9 -0
  159. package/src/models/index.ts +29 -20
  160. package/dist/apis/ReviewApi.d.ts +0 -139
  161. package/dist/apis/ReviewApi.js +0 -566
  162. package/dist/models/AdminUserLiteResource.d.ts +0 -50
  163. package/dist/models/AdminUserLiteResource.js +0 -61
  164. package/dist/models/AdminUserLiteResourceArrayResponse.d.ts +0 -33
  165. package/dist/models/AdminUserLiteResourceArrayResponse.js +0 -50
  166. package/dist/models/CustomerLiteResource.d.ts +0 -50
  167. package/dist/models/CustomerLiteResource.js +0 -61
  168. package/dist/models/CustomerLiteResourceArrayResponse.d.ts +0 -33
  169. package/dist/models/CustomerLiteResourceArrayResponse.js +0 -50
  170. package/dist/models/IndexReviewRequest.d.ts +0 -110
  171. package/dist/models/PaginatedReviewListResourceResponse.d.ts +0 -40
  172. package/dist/models/PaginatedReviewListResourceResponse.js +0 -57
  173. package/dist/models/PaginatedReviewLiteResourceResponse.d.ts +0 -40
  174. package/dist/models/PaginatedReviewLiteResourceResponse.js +0 -57
  175. package/dist/models/PaginatedReviewResourceResponse.d.ts +0 -40
  176. package/dist/models/PaginatedReviewResourceResponse.js +0 -57
  177. package/dist/models/ProductReviewsResource.d.ts +0 -63
  178. package/dist/models/ProductReviewsResource.js +0 -70
  179. package/dist/models/ProductReviewsResourceArrayResponse.d.ts +0 -33
  180. package/dist/models/ProductReviewsResourceArrayResponse.js +0 -50
  181. package/dist/models/ReviewListResource.d.ts +0 -94
  182. package/dist/models/ReviewListResource.js +0 -85
  183. package/dist/models/ReviewListResourceArrayResponse.d.ts +0 -33
  184. package/dist/models/ReviewListResourceArrayResponse.js +0 -50
  185. package/dist/models/ReviewLiteResource.d.ts +0 -44
  186. package/dist/models/ReviewLiteResource.js +0 -59
  187. package/dist/models/ReviewLiteResourceArrayResponse.d.ts +0 -33
  188. package/dist/models/ReviewLiteResourceArrayResponse.js +0 -50
  189. package/dist/models/ReviewPublicResource.d.ts +0 -68
  190. package/dist/models/ReviewPublicResource.js +0 -71
  191. package/dist/models/ReviewPublicResourceArrayResponse.d.ts +0 -33
  192. package/dist/models/ReviewPublicResourceArrayResponse.js +0 -50
  193. package/dist/models/ReviewResource.d.ts +0 -126
  194. package/dist/models/ReviewResource.js +0 -105
  195. package/dist/models/ReviewResourceArrayResponse.d.ts +0 -33
  196. package/dist/models/ReviewResourceArrayResponse.js +0 -50
  197. package/dist/models/StoreReviewRequest.d.ts +0 -80
  198. package/dist/models/StoreReviewRequest.js +0 -79
  199. package/dist/models/UpdateReviewRequest.d.ts +0 -68
  200. package/dist/models/UpdateReviewRequest.js +0 -71
  201. package/docs/PaginatedReviewLiteResourceResponse.md +0 -36
  202. package/docs/ProductReviewsResource.md +0 -44
  203. package/docs/ProductReviewsResourceArrayResponse.md +0 -34
  204. package/docs/ReviewApi.md +0 -539
  205. package/docs/ReviewListResource.md +0 -54
  206. package/docs/ReviewResource.md +0 -64
  207. package/docs/StoreReviewRequest.md +0 -50
  208. package/docs/UpdateReviewRequest.md +0 -46
  209. package/src/apis/ReviewApi.ts +0 -444
  210. package/src/models/AdminUserLiteResource.ts +0 -92
  211. package/src/models/AdminUserLiteResourceArrayResponse.ts +0 -73
  212. package/src/models/CustomerLiteResource.ts +0 -92
  213. package/src/models/CustomerLiteResourceArrayResponse.ts +0 -73
  214. package/src/models/PaginatedReviewListResourceResponse.ts +0 -90
  215. package/src/models/PaginatedReviewLiteResourceResponse.ts +0 -90
  216. package/src/models/PaginatedReviewResourceResponse.ts +0 -90
  217. package/src/models/ProductReviewsResource.ts +0 -118
  218. package/src/models/ProductReviewsResourceArrayResponse.ts +0 -73
  219. package/src/models/ReviewListResource.ts +0 -167
  220. package/src/models/ReviewListResourceArrayResponse.ts +0 -73
  221. package/src/models/ReviewLiteResource.ts +0 -84
  222. package/src/models/ReviewLiteResourceArrayResponse.ts +0 -73
  223. package/src/models/ReviewPublicResource.ts +0 -118
  224. package/src/models/ReviewPublicResourceArrayResponse.ts +0 -73
  225. package/src/models/ReviewResource.ts +0 -225
  226. package/src/models/ReviewResourceArrayResponse.ts +0 -73
  227. package/src/models/StoreReviewRequest.ts +0 -136
  228. package/src/models/UpdateReviewRequest.ts +0 -118
@@ -1,5 +1,5 @@
1
1
 
2
- # ReviewPublicResource
2
+ # CustomerListResource
3
3
 
4
4
 
5
5
  ## Properties
@@ -7,28 +7,28 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
- `overallRating` | number
11
- `comment` | string
12
- `replyText` | string
13
- `reviewerName` | string
14
- `location` | string
15
- `createdAt` | Date
10
+ `firstName` | string
11
+ `lastName` | string
12
+ `email` | string
13
+ `phone` | string
14
+ `siteId` | string
15
+ `site` | [SiteLiteResource](SiteLiteResource.md)
16
16
 
17
17
  ## Example
18
18
 
19
19
  ```typescript
20
- import type { ReviewPublicResource } from '@digital8/lighting-illusions-ts-sdk'
20
+ import type { CustomerListResource } from '@digital8/lighting-illusions-ts-sdk'
21
21
 
22
22
  // TODO: Update the object below with actual values
23
23
  const example = {
24
24
  "id": null,
25
- "overallRating": null,
26
- "comment": null,
27
- "replyText": null,
28
- "reviewerName": null,
29
- "location": null,
30
- "createdAt": null,
31
- } satisfies ReviewPublicResource
25
+ "firstName": null,
26
+ "lastName": null,
27
+ "email": null,
28
+ "phone": null,
29
+ "siteId": null,
30
+ "site": null,
31
+ } satisfies CustomerListResource
32
32
 
33
33
  console.log(example)
34
34
 
@@ -37,7 +37,7 @@ const exampleJSON: string = JSON.stringify(example)
37
37
  console.log(exampleJSON)
38
38
 
39
39
  // Parse the JSON string back to an object
40
- const exampleParsed = JSON.parse(exampleJSON) as ReviewPublicResource
40
+ const exampleParsed = JSON.parse(exampleJSON) as CustomerListResource
41
41
  console.log(exampleParsed)
42
42
  ```
43
43
 
@@ -1,22 +1,22 @@
1
1
 
2
- # ReviewPublicResourceArrayResponse
2
+ # CustomerListResourceArrayResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<ReviewPublicResource>](ReviewPublicResource.md)
9
+ `data` | [Array<CustomerListResource>](CustomerListResource.md)
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { ReviewPublicResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { CustomerListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
15
 
16
16
  // TODO: Update the object below with actual values
17
17
  const example = {
18
18
  "data": null,
19
- } satisfies ReviewPublicResourceArrayResponse
19
+ } satisfies CustomerListResourceArrayResponse
20
20
 
21
21
  console.log(example)
22
22
 
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
25
25
  console.log(exampleJSON)
26
26
 
27
27
  // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as ReviewPublicResourceArrayResponse
28
+ const exampleParsed = JSON.parse(exampleJSON) as CustomerListResourceArrayResponse
29
29
  console.log(exampleParsed)
30
30
  ```
31
31
 
@@ -0,0 +1,46 @@
1
+
2
+ # CustomerResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `firstName` | string
11
+ `lastName` | string
12
+ `email` | string
13
+ `phone` | string
14
+ `siteId` | string
15
+ `site` | [SiteLiteResource](SiteLiteResource.md)
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { CustomerResource } from '@digital8/lighting-illusions-ts-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "firstName": null,
26
+ "lastName": null,
27
+ "email": null,
28
+ "phone": null,
29
+ "siteId": null,
30
+ "site": null,
31
+ } satisfies CustomerResource
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 CustomerResource
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,22 +1,22 @@
1
1
 
2
- # ReviewListResourceArrayResponse
2
+ # CustomerResourceArrayResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<ReviewListResource>](ReviewListResource.md)
9
+ `data` | [Array<CustomerResource>](CustomerResource.md)
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { ReviewListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { CustomerResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
15
 
16
16
  // TODO: Update the object below with actual values
17
17
  const example = {
18
18
  "data": null,
19
- } satisfies ReviewListResourceArrayResponse
19
+ } satisfies CustomerResourceArrayResponse
20
20
 
21
21
  console.log(example)
22
22
 
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
25
25
  console.log(exampleJSON)
26
26
 
27
27
  // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as ReviewListResourceArrayResponse
28
+ const exampleParsed = JSON.parse(exampleJSON) as CustomerResourceArrayResponse
29
29
  console.log(exampleParsed)
30
30
  ```
31
31
 
@@ -0,0 +1,140 @@
1
+ # CustomersApi
2
+
3
+ All URIs are relative to *http://localhost/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**indexCustomer**](CustomersApi.md#indexcustomeroperation) | **POST** /admin-api/customers/list | Auto-generated: indexCustomer |
8
+ | [**storeCustomer**](CustomersApi.md#storecustomeroperation) | **POST** /admin-api/customers/create | Auto-generated: storeCustomer |
9
+
10
+
11
+
12
+ ## indexCustomer
13
+
14
+ > PaginatedCustomerListResourceResponse indexCustomer(indexCustomerRequest)
15
+
16
+ Auto-generated: indexCustomer
17
+
18
+ ### Example
19
+
20
+ ```ts
21
+ import {
22
+ Configuration,
23
+ CustomersApi,
24
+ } from '@digital8/lighting-illusions-ts-sdk';
25
+ import type { IndexCustomerOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
26
+
27
+ async function example() {
28
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
29
+ const api = new CustomersApi();
30
+
31
+ const body = {
32
+ // IndexCustomerRequest (optional)
33
+ indexCustomerRequest: ...,
34
+ } satisfies IndexCustomerOperationRequest;
35
+
36
+ try {
37
+ const data = await api.indexCustomer(body);
38
+ console.log(data);
39
+ } catch (error) {
40
+ console.error(error);
41
+ }
42
+ }
43
+
44
+ // Run the test
45
+ example().catch(console.error);
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+
51
+ | Name | Type | Description | Notes |
52
+ |------------- | ------------- | ------------- | -------------|
53
+ | **indexCustomerRequest** | [IndexCustomerRequest](IndexCustomerRequest.md) | | [Optional] |
54
+
55
+ ### Return type
56
+
57
+ [**PaginatedCustomerListResourceResponse**](PaginatedCustomerListResourceResponse.md)
58
+
59
+ ### Authorization
60
+
61
+ No authorization required
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: `application/json`
66
+ - **Accept**: `application/json`
67
+
68
+
69
+ ### HTTP response details
70
+ | Status code | Description | Response headers |
71
+ |-------------|-------------|------------------|
72
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\CustomerListResource[]>> | - |
73
+
74
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
75
+
76
+
77
+ ## storeCustomer
78
+
79
+ > CustomerResource storeCustomer(storeCustomerRequest)
80
+
81
+ Auto-generated: storeCustomer
82
+
83
+ ### Example
84
+
85
+ ```ts
86
+ import {
87
+ Configuration,
88
+ CustomersApi,
89
+ } from '@digital8/lighting-illusions-ts-sdk';
90
+ import type { StoreCustomerOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
91
+
92
+ async function example() {
93
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
94
+ const api = new CustomersApi();
95
+
96
+ const body = {
97
+ // StoreCustomerRequest (optional)
98
+ storeCustomerRequest: ...,
99
+ } satisfies StoreCustomerOperationRequest;
100
+
101
+ try {
102
+ const data = await api.storeCustomer(body);
103
+ console.log(data);
104
+ } catch (error) {
105
+ console.error(error);
106
+ }
107
+ }
108
+
109
+ // Run the test
110
+ example().catch(console.error);
111
+ ```
112
+
113
+ ### Parameters
114
+
115
+
116
+ | Name | Type | Description | Notes |
117
+ |------------- | ------------- | ------------- | -------------|
118
+ | **storeCustomerRequest** | [StoreCustomerRequest](StoreCustomerRequest.md) | | [Optional] |
119
+
120
+ ### Return type
121
+
122
+ [**CustomerResource**](CustomerResource.md)
123
+
124
+ ### Authorization
125
+
126
+ No authorization required
127
+
128
+ ### HTTP request headers
129
+
130
+ - **Content-Type**: `application/json`
131
+ - **Accept**: `application/json`
132
+
133
+
134
+ ### HTTP response details
135
+ | Status code | Description | Response headers |
136
+ |-------------|-------------|------------------|
137
+ | **200** | Successful resource response | - |
138
+
139
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
140
+
@@ -0,0 +1,74 @@
1
+
2
+ # FrontendCartResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `siteId` | number
11
+ `customerId` | number
12
+ `source` | string
13
+ `sessionToken` | string
14
+ `expiryDate` | Date
15
+ `checkoutCompletedAt` | Date
16
+ `createdAt` | Date
17
+ `updatedAt` | Date
18
+ `shippingType` | string
19
+ `site` | [SiteLiteResource](SiteLiteResource.md)
20
+ `customer` | [CustomerListResource](CustomerListResource.md)
21
+ `lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
22
+ `coupons` | object
23
+ `shippingAddress` | Array<number>
24
+ `billingAddress` | string
25
+ `subtotal` | number
26
+ `discountPreview` | number
27
+ `shippingEstimate` | number
28
+ `insuranceEstimate` | number
29
+ `status` | string
30
+
31
+ ## Example
32
+
33
+ ```typescript
34
+ import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
35
+
36
+ // TODO: Update the object below with actual values
37
+ const example = {
38
+ "id": null,
39
+ "siteId": null,
40
+ "customerId": null,
41
+ "source": null,
42
+ "sessionToken": null,
43
+ "expiryDate": null,
44
+ "checkoutCompletedAt": null,
45
+ "createdAt": null,
46
+ "updatedAt": null,
47
+ "shippingType": null,
48
+ "site": null,
49
+ "customer": null,
50
+ "lineItems": null,
51
+ "coupons": null,
52
+ "shippingAddress": null,
53
+ "billingAddress": null,
54
+ "subtotal": null,
55
+ "discountPreview": null,
56
+ "shippingEstimate": null,
57
+ "insuranceEstimate": null,
58
+ "status": null,
59
+ } satisfies FrontendCartResource
60
+
61
+ console.log(example)
62
+
63
+ // Convert the instance to a JSON string
64
+ const exampleJSON: string = JSON.stringify(example)
65
+ console.log(exampleJSON)
66
+
67
+ // Parse the JSON string back to an object
68
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
69
+ console.log(exampleParsed)
70
+ ```
71
+
72
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
73
+
74
+
@@ -1,22 +1,22 @@
1
1
 
2
- # CustomerLiteResourceArrayResponse
2
+ # FrontendCartResourceArrayResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<CustomerLiteResource>](CustomerLiteResource.md)
9
+ `data` | [Array<FrontendCartResource>](FrontendCartResource.md)
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { CustomerLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { FrontendCartResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
15
 
16
16
  // TODO: Update the object below with actual values
17
17
  const example = {
18
18
  "data": null,
19
- } satisfies CustomerLiteResourceArrayResponse
19
+ } satisfies FrontendCartResourceArrayResponse
20
20
 
21
21
  console.log(example)
22
22
 
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
25
25
  console.log(exampleJSON)
26
26
 
27
27
  // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as CustomerLiteResourceArrayResponse
28
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResourceArrayResponse
29
29
  console.log(exampleParsed)
30
30
  ```
31
31
 
@@ -0,0 +1,66 @@
1
+
2
+ # IndexCartRequest
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
+ `source` | Array<string>
16
+ `beforeCreatedAt` | Date
17
+ `afterCreatedAt` | Date
18
+ `beforeExpiryDate` | Date
19
+ `afterExpiryDate` | Date
20
+ `beforeCheckoutCompletedAt` | Date
21
+ `afterCheckoutCompletedAt` | Date
22
+ `relatedId` | number
23
+ `relatedType` | string
24
+ `includesRelations` | boolean
25
+ `status` | Array<string>
26
+
27
+ ## Example
28
+
29
+ ```typescript
30
+ import type { IndexCartRequest } from '@digital8/lighting-illusions-ts-sdk'
31
+
32
+ // TODO: Update the object below with actual values
33
+ const example = {
34
+ "search": null,
35
+ "sortBy": null,
36
+ "sortDirection": null,
37
+ "perPage": null,
38
+ "page": null,
39
+ "siteId": null,
40
+ "source": null,
41
+ "beforeCreatedAt": null,
42
+ "afterCreatedAt": null,
43
+ "beforeExpiryDate": null,
44
+ "afterExpiryDate": null,
45
+ "beforeCheckoutCompletedAt": null,
46
+ "afterCheckoutCompletedAt": null,
47
+ "relatedId": null,
48
+ "relatedType": null,
49
+ "includesRelations": null,
50
+ "status": null,
51
+ } satisfies IndexCartRequest
52
+
53
+ console.log(example)
54
+
55
+ // Convert the instance to a JSON string
56
+ const exampleJSON: string = JSON.stringify(example)
57
+ console.log(exampleJSON)
58
+
59
+ // Parse the JSON string back to an object
60
+ const exampleParsed = JSON.parse(exampleJSON) as IndexCartRequest
61
+ console.log(exampleParsed)
62
+ ```
63
+
64
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
65
+
66
+
@@ -1,5 +1,5 @@
1
1
 
2
- # IndexReviewRequest
2
+ # IndexCustomerRequest
3
3
 
4
4
 
5
5
  ## Properties
@@ -12,8 +12,6 @@ Name | Type
12
12
  `perPage` | number
13
13
  `page` | number
14
14
  `siteId` | Array<string>
15
- `createdByAdmin` | Array<string>
16
- `hasApprovedAt` | Array<string>
17
15
  `relatedId` | number
18
16
  `relatedType` | string
19
17
  `includesRelations` | boolean
@@ -21,7 +19,7 @@ Name | Type
21
19
  ## Example
22
20
 
23
21
  ```typescript
24
- import type { IndexReviewRequest } from '@digital8/lighting-illusions-ts-sdk'
22
+ import type { IndexCustomerRequest } from '@digital8/lighting-illusions-ts-sdk'
25
23
 
26
24
  // TODO: Update the object below with actual values
27
25
  const example = {
@@ -31,12 +29,10 @@ const example = {
31
29
  "perPage": null,
32
30
  "page": null,
33
31
  "siteId": null,
34
- "createdByAdmin": null,
35
- "hasApprovedAt": null,
36
32
  "relatedId": null,
37
33
  "relatedType": null,
38
34
  "includesRelations": null,
39
- } satisfies IndexReviewRequest
35
+ } satisfies IndexCustomerRequest
40
36
 
41
37
  console.log(example)
42
38
 
@@ -45,7 +41,7 @@ const exampleJSON: string = JSON.stringify(example)
45
41
  console.log(exampleJSON)
46
42
 
47
43
  // Parse the JSON string back to an object
48
- const exampleParsed = JSON.parse(exampleJSON) as IndexReviewRequest
44
+ const exampleParsed = JSON.parse(exampleJSON) as IndexCustomerRequest
49
45
  console.log(exampleParsed)
50
46
  ```
51
47
 
@@ -0,0 +1,40 @@
1
+
2
+ # LineItemListResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `quantity` | number
11
+ `productPrice` | number
12
+ `productChild` | [ProductChildListResource](ProductChildListResource.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { LineItemListResource } from '@digital8/lighting-illusions-ts-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "id": null,
22
+ "quantity": null,
23
+ "productPrice": null,
24
+ "productChild": null,
25
+ } satisfies LineItemListResource
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 LineItemListResource
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,34 @@
1
+
2
+ # LineItemListResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<LineItemListResource>](LineItemListResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { LineItemListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies LineItemListResourceArrayResponse
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 LineItemListResourceArrayResponse
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,24 +1,24 @@
1
1
 
2
- # PaginatedReviewResourceResponse
2
+ # PaginatedCartListResourceResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<ReviewResource>](ReviewResource.md)
9
+ `data` | [Array<CartListResource>](CartListResource.md)
10
10
  `meta` | [PagingMetadata](PagingMetadata.md)
11
11
 
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import type { PaginatedReviewResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+ import type { PaginatedCartListResourceResponse } 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 PaginatedReviewResourceResponse
21
+ } satisfies PaginatedCartListResourceResponse
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 PaginatedReviewResourceResponse
30
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedCartListResourceResponse
31
31
  console.log(exampleParsed)
32
32
  ```
33
33
 
@@ -1,24 +1,24 @@
1
1
 
2
- # PaginatedReviewListResourceResponse
2
+ # PaginatedCustomerListResourceResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<ReviewListResource>](ReviewListResource.md)
9
+ `data` | [Array<CustomerListResource>](CustomerListResource.md)
10
10
  `meta` | [PagingMetadata](PagingMetadata.md)
11
11
 
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import type { PaginatedReviewListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+ import type { PaginatedCustomerListResourceResponse } 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 PaginatedReviewListResourceResponse
21
+ } satisfies PaginatedCustomerListResourceResponse
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 PaginatedReviewListResourceResponse
30
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedCustomerListResourceResponse
31
31
  console.log(exampleParsed)
32
32
  ```
33
33