@digital8/lighting-illusions-ts-sdk 0.0.2309 → 0.0.2311

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 (241) hide show
  1. package/.openapi-generator/FILES +64 -10
  2. package/README.md +42 -7
  3. package/dist/apis/AdminsApi.d.ts +116 -0
  4. package/dist/apis/AdminsApi.js +440 -0
  5. package/dist/apis/CustomersApi.d.ts +50 -0
  6. package/dist/apis/CustomersApi.js +182 -0
  7. package/dist/apis/index.d.ts +1 -1
  8. package/dist/apis/index.js +1 -1
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +1 -3
  11. package/dist/models/AddressType.d.ts +2 -0
  12. package/dist/models/AddressType.js +3 -1
  13. package/dist/models/AdminListResource.d.ts +52 -0
  14. package/dist/models/AdminListResource.js +61 -0
  15. package/dist/models/AdminListResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/AdminListResourceArrayResponse.js +50 -0
  17. package/dist/models/AdminLiteResource.d.ts +39 -0
  18. package/dist/models/AdminLiteResource.js +54 -0
  19. package/dist/models/AdminLiteResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/AdminLiteResourceArrayResponse.js +50 -0
  21. package/dist/models/AdminResource.d.ts +58 -0
  22. package/dist/models/AdminResource.js +63 -0
  23. package/dist/models/AdminResourceArrayResponse.d.ts +33 -0
  24. package/dist/models/AdminResourceArrayResponse.js +50 -0
  25. package/dist/models/CartListResource.d.ts +0 -6
  26. package/dist/models/CartListResource.js +0 -4
  27. package/dist/models/CategoryAutomationFieldType.d.ts +0 -2
  28. package/dist/models/CategoryAutomationFieldType.js +1 -3
  29. package/dist/models/CheckEmailFrontendResource.d.ts +38 -0
  30. package/dist/models/CheckEmailFrontendResource.js +53 -0
  31. package/dist/models/CheckEmailFrontendResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/CheckEmailFrontendResourceArrayResponse.js +50 -0
  33. package/dist/models/CreateAdminUserRequest.d.ts +62 -0
  34. package/dist/models/CreateAdminUserRequest.js +69 -0
  35. package/dist/models/CreateCustomerRequest.d.ts +18 -6
  36. package/dist/models/CreateCustomerRequest.js +12 -6
  37. package/dist/models/CreatePageComponentRequest.d.ts +4 -4
  38. package/dist/models/CreatePageComponentRequest.js +4 -4
  39. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +0 -2
  40. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +1 -3
  41. package/dist/models/CreateSupplierRequest.d.ts +0 -6
  42. package/dist/models/CreateSupplierRequest.js +0 -2
  43. package/dist/models/CustomerAuthResponseResource.d.ts +39 -0
  44. package/dist/models/CustomerAuthResponseResource.js +56 -0
  45. package/dist/models/CustomerAuthResponseResourceArrayResponse.d.ts +33 -0
  46. package/dist/models/CustomerAuthResponseResourceArrayResponse.js +50 -0
  47. package/dist/models/CustomerFrontendResource.d.ts +70 -0
  48. package/dist/models/CustomerFrontendResource.js +75 -0
  49. package/dist/models/CustomerFrontendResourceArrayResponse.d.ts +33 -0
  50. package/dist/models/CustomerFrontendResourceArrayResponse.js +50 -0
  51. package/dist/models/CustomerListResource.d.ts +21 -8
  52. package/dist/models/CustomerListResource.js +20 -13
  53. package/dist/models/CustomerResource.d.ts +34 -9
  54. package/dist/models/CustomerResource.js +27 -16
  55. package/dist/models/CustomerSocialLinkableResource.d.ts +38 -0
  56. package/dist/models/CustomerSocialLinkableResource.js +55 -0
  57. package/dist/models/CustomerSocialLinkableResourceArrayResponse.d.ts +33 -0
  58. package/dist/models/CustomerSocialLinkableResourceArrayResponse.js +50 -0
  59. package/dist/models/CustomerType.d.ts +25 -0
  60. package/dist/models/CustomerType.js +51 -0
  61. package/dist/models/FrontendCartResource.d.ts +0 -18
  62. package/dist/models/FrontendCartResource.js +0 -12
  63. package/dist/models/OrderStatusWithCountResource.d.ts +0 -12
  64. package/dist/models/OrderStatusWithCountResource.js +0 -8
  65. package/dist/models/PaginatedAdminListResourceResponse.d.ts +40 -0
  66. package/dist/models/PaginatedAdminListResourceResponse.js +57 -0
  67. package/dist/models/PaginatedAdminLiteResourceResponse.d.ts +40 -0
  68. package/dist/models/PaginatedAdminLiteResourceResponse.js +57 -0
  69. package/dist/models/PaginatedRoleLiteResourceResponse.d.ts +40 -0
  70. package/dist/models/PaginatedRoleLiteResourceResponse.js +57 -0
  71. package/dist/models/ProductClassResource.d.ts +2 -2
  72. package/dist/models/RoleLiteResource.d.ts +38 -0
  73. package/dist/models/RoleLiteResource.js +53 -0
  74. package/dist/models/RoleLiteResourceArrayResponse.d.ts +33 -0
  75. package/dist/models/RoleLiteResourceArrayResponse.js +50 -0
  76. package/dist/models/SearchAdminUsersRequest.d.ts +112 -0
  77. package/dist/models/SearchAdminUsersRequest.js +88 -0
  78. package/dist/models/SearchAllAdminUsersRequest.d.ts +82 -0
  79. package/dist/models/{SearchAllProductClassesRequest.js → SearchAllAdminUsersRequest.js} +21 -17
  80. package/dist/models/SearchAllCustomersRequest.d.ts +103 -0
  81. package/dist/models/SearchAllCustomersRequest.js +87 -0
  82. package/dist/models/SearchAllOrdersRequest.d.ts +0 -6
  83. package/dist/models/SearchAllOrdersRequest.js +0 -2
  84. package/dist/models/SearchCustomersRequest.d.ts +31 -3
  85. package/dist/models/SearchCustomersRequest.js +15 -3
  86. package/dist/models/SearchOrdersRequest.d.ts +0 -6
  87. package/dist/models/SearchOrdersRequest.js +0 -2
  88. package/dist/models/SignUpType.d.ts +29 -0
  89. package/dist/models/SignUpType.js +55 -0
  90. package/dist/models/SocialProvider.d.ts +26 -0
  91. package/dist/models/SocialProvider.js +52 -0
  92. package/dist/models/StoreFrontendResource.d.ts +1 -1
  93. package/dist/models/StoreFrontendResource.js +1 -3
  94. package/dist/models/StoreResource.d.ts +1 -1
  95. package/dist/models/StoreResource.js +1 -3
  96. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  97. package/dist/models/StoreSpecialDateResource.js +3 -1
  98. package/dist/models/SupplierFrontendResource.d.ts +0 -6
  99. package/dist/models/SupplierFrontendResource.js +0 -4
  100. package/dist/models/SupplierResource.d.ts +0 -6
  101. package/dist/models/SupplierResource.js +0 -4
  102. package/dist/models/UpdateAdminUserRequest.d.ts +62 -0
  103. package/dist/models/UpdateAdminUserRequest.js +67 -0
  104. package/dist/models/UpdateCustomerRequest.d.ts +62 -0
  105. package/dist/models/UpdateCustomerRequest.js +65 -0
  106. package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
  107. package/dist/models/UpdatePageComponentRequest.js +4 -4
  108. package/dist/models/UpdateSupplierRequest.d.ts +0 -6
  109. package/dist/models/UpdateSupplierRequest.js +0 -2
  110. package/dist/models/UserLiteResource.d.ts +62 -0
  111. package/dist/models/UserLiteResource.js +69 -0
  112. package/dist/models/UserLiteResourceArrayResponse.d.ts +33 -0
  113. package/dist/models/UserLiteResourceArrayResponse.js +50 -0
  114. package/dist/models/UserType.d.ts +25 -0
  115. package/dist/models/UserType.js +51 -0
  116. package/dist/models/index.d.ts +31 -4
  117. package/dist/models/index.js +31 -4
  118. package/docs/AdminListResource.md +40 -0
  119. package/docs/AdminListResourceArrayResponse.md +34 -0
  120. package/docs/AdminLiteResource.md +36 -0
  121. package/docs/AdminLiteResourceArrayResponse.md +34 -0
  122. package/docs/AdminResource.md +42 -0
  123. package/docs/AdminResourceArrayResponse.md +34 -0
  124. package/docs/AdminsApi.md +407 -0
  125. package/docs/CartListResource.md +0 -2
  126. package/docs/CheckEmailFrontendResource.md +36 -0
  127. package/docs/CheckEmailFrontendResourceArrayResponse.md +34 -0
  128. package/docs/CreateAdminUserRequest.md +44 -0
  129. package/docs/CreateCustomerRequest.md +8 -4
  130. package/docs/CreatePageComponentRequest.md +2 -2
  131. package/docs/CreateSupplierRequest.md +0 -2
  132. package/docs/CustomerAuthResponseResource.md +36 -0
  133. package/docs/CustomerAuthResponseResourceArrayResponse.md +34 -0
  134. package/docs/CustomerFrontendResource.md +46 -0
  135. package/docs/{ProductClassLiteResourceArrayResponse.md → CustomerFrontendResourceArrayResponse.md} +5 -5
  136. package/docs/CustomerListResource.md +12 -8
  137. package/docs/CustomerResource.md +17 -9
  138. package/docs/CustomerSocialLinkableResource.md +36 -0
  139. package/docs/CustomerSocialLinkableResourceArrayResponse.md +34 -0
  140. package/docs/CustomerType.md +32 -0
  141. package/docs/CustomersApi.md +201 -0
  142. package/docs/FrontendCartResource.md +0 -6
  143. package/docs/OrderStatusWithCountResource.md +0 -4
  144. package/docs/{PaginatedProductClassLiteResourceResponse.md → PaginatedAdminListResourceResponse.md} +5 -5
  145. package/docs/PaginatedAdminLiteResourceResponse.md +36 -0
  146. package/docs/PaginatedRoleLiteResourceResponse.md +36 -0
  147. package/docs/ProductClassResource.md +1 -1
  148. package/docs/{ProductClassLiteResource.md → RoleLiteResource.md} +4 -6
  149. package/docs/RoleLiteResourceArrayResponse.md +34 -0
  150. package/docs/SearchAdminUsersRequest.md +54 -0
  151. package/docs/{SearchAllProductClassesRequest.md → SearchAllAdminUsersRequest.md} +4 -4
  152. package/docs/SearchAllCustomersRequest.md +50 -0
  153. package/docs/SearchAllOrdersRequest.md +0 -2
  154. package/docs/SearchCustomersRequest.md +8 -0
  155. package/docs/SearchOrdersRequest.md +0 -2
  156. package/docs/SignUpType.md +32 -0
  157. package/docs/SocialProvider.md +32 -0
  158. package/docs/StoreSpecialDateResource.md +1 -1
  159. package/docs/SupplierFrontendResource.md +0 -2
  160. package/docs/SupplierResource.md +0 -2
  161. package/docs/UpdateAdminUserRequest.md +44 -0
  162. package/docs/UpdateCustomerRequest.md +44 -0
  163. package/docs/UpdatePageComponentRequest.md +2 -2
  164. package/docs/UpdateSupplierRequest.md +0 -2
  165. package/docs/UserLiteResource.md +44 -0
  166. package/docs/UserLiteResourceArrayResponse.md +34 -0
  167. package/docs/UserType.md +32 -0
  168. package/package.json +1 -1
  169. package/src/apis/AdminsApi.ts +345 -0
  170. package/src/apis/CustomersApi.ts +166 -0
  171. package/src/apis/index.ts +1 -1
  172. package/src/models/AddressResource.ts +2 -3
  173. package/src/models/AddressType.ts +3 -1
  174. package/src/models/AdminListResource.ts +106 -0
  175. package/src/models/AdminListResourceArrayResponse.ts +73 -0
  176. package/src/models/AdminLiteResource.ts +82 -0
  177. package/src/models/AdminLiteResourceArrayResponse.ts +73 -0
  178. package/src/models/AdminResource.ts +114 -0
  179. package/src/models/AdminResourceArrayResponse.ts +73 -0
  180. package/src/models/CartListResource.ts +0 -9
  181. package/src/models/CategoryAutomationFieldType.ts +1 -3
  182. package/src/models/CheckEmailFrontendResource.ts +74 -0
  183. package/src/models/CheckEmailFrontendResourceArrayResponse.ts +73 -0
  184. package/src/models/CreateAdminUserRequest.ts +110 -0
  185. package/src/models/CreateCustomerRequest.ts +28 -11
  186. package/src/models/CreatePageComponentRequest.ts +8 -8
  187. package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +1 -3
  188. package/src/models/CreateSupplierRequest.ts +0 -8
  189. package/src/models/CustomerAuthResponseResource.ts +83 -0
  190. package/src/models/CustomerAuthResponseResourceArrayResponse.ts +73 -0
  191. package/src/models/CustomerFrontendResource.ts +134 -0
  192. package/src/models/CustomerFrontendResourceArrayResponse.ts +73 -0
  193. package/src/models/CustomerListResource.ts +44 -20
  194. package/src/models/CustomerResource.ts +68 -28
  195. package/src/models/CustomerSocialLinkableResource.ts +75 -0
  196. package/src/models/CustomerSocialLinkableResourceArrayResponse.ts +73 -0
  197. package/src/models/CustomerType.ts +53 -0
  198. package/src/models/FrontendCartResource.ts +0 -27
  199. package/src/models/OrderStatusWithCountResource.ts +0 -18
  200. package/src/models/PaginatedAdminListResourceResponse.ts +90 -0
  201. package/src/models/PaginatedAdminLiteResourceResponse.ts +90 -0
  202. package/src/models/PaginatedRoleLiteResourceResponse.ts +90 -0
  203. package/src/models/ProductClassResource.ts +2 -2
  204. package/src/models/RoleLiteResource.ts +74 -0
  205. package/src/models/RoleLiteResourceArrayResponse.ts +73 -0
  206. package/src/models/SearchAdminUsersRequest.ts +169 -0
  207. package/src/models/SearchAllAdminUsersRequest.ts +129 -0
  208. package/src/models/SearchAllCustomersRequest.ts +156 -0
  209. package/src/models/SearchAllOrdersRequest.ts +0 -8
  210. package/src/models/SearchCustomersRequest.ts +39 -3
  211. package/src/models/SearchOrdersRequest.ts +0 -8
  212. package/src/models/SignUpType.ts +57 -0
  213. package/src/models/SocialProvider.ts +54 -0
  214. package/src/models/StoreFrontendResource.ts +2 -3
  215. package/src/models/StoreResource.ts +2 -3
  216. package/src/models/StoreSpecialDateResource.ts +4 -3
  217. package/src/models/SupplierFrontendResource.ts +0 -9
  218. package/src/models/SupplierResource.ts +0 -9
  219. package/src/models/UpdateAdminUserRequest.ts +109 -0
  220. package/src/models/UpdateCustomerRequest.ts +108 -0
  221. package/src/models/UpdatePageComponentRequest.ts +8 -8
  222. package/src/models/UpdateSupplierRequest.ts +0 -8
  223. package/src/models/UserLiteResource.ts +110 -0
  224. package/src/models/UserLiteResourceArrayResponse.ts +73 -0
  225. package/src/models/UserType.ts +53 -0
  226. package/src/models/index.ts +31 -4
  227. package/dist/apis/ProductClassApi.d.ts +0 -34
  228. package/dist/apis/ProductClassApi.js +0 -139
  229. package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +0 -40
  230. package/dist/models/PaginatedProductClassLiteResourceResponse.js +0 -57
  231. package/dist/models/ProductClassLiteResource.d.ts +0 -44
  232. package/dist/models/ProductClassLiteResource.js +0 -57
  233. package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +0 -33
  234. package/dist/models/ProductClassLiteResourceArrayResponse.js +0 -50
  235. package/dist/models/SearchAllProductClassesRequest.d.ts +0 -78
  236. package/docs/ProductClassApi.md +0 -74
  237. package/src/apis/ProductClassApi.ts +0 -76
  238. package/src/models/PaginatedProductClassLiteResourceResponse.ts +0 -90
  239. package/src/models/ProductClassLiteResource.ts +0 -83
  240. package/src/models/ProductClassLiteResourceArrayResponse.ts +0 -73
  241. package/src/models/SearchAllProductClassesRequest.ts +0 -125
@@ -0,0 +1,46 @@
1
+
2
+ # CustomerFrontendResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `type` | string
11
+ `signUpType` | string
12
+ `subscribedToNewsletter` | boolean
13
+ `user` | [UserLiteResource](UserLiteResource.md)
14
+ `site` | [SiteLiteResource](SiteLiteResource.md)
15
+ `addresses` | object
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { CustomerFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "type": null,
26
+ "signUpType": null,
27
+ "subscribedToNewsletter": null,
28
+ "user": null,
29
+ "site": null,
30
+ "addresses": null,
31
+ } satisfies CustomerFrontendResource
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 CustomerFrontendResource
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
- # ProductClassLiteResourceArrayResponse
2
+ # CustomerFrontendResourceArrayResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
9
+ `data` | [Array<CustomerFrontendResource>](CustomerFrontendResource.md)
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { ProductClassLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { CustomerFrontendResourceArrayResponse } 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 ProductClassLiteResourceArrayResponse
19
+ } satisfies CustomerFrontendResourceArrayResponse
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 ProductClassLiteResourceArrayResponse
28
+ const exampleParsed = JSON.parse(exampleJSON) as CustomerFrontendResourceArrayResponse
29
29
  console.log(exampleParsed)
30
30
  ```
31
31
 
@@ -7,11 +7,13 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
- `firstName` | string
11
- `lastName` | string
12
- `email` | string
13
- `phone` | string
10
+ `user` | [UserLiteResource](UserLiteResource.md)
14
11
  `site` | [SiteLiteResource](SiteLiteResource.md)
12
+ `type` | string
13
+ `signUpType` | string
14
+ `subscribedToNewsletter` | boolean
15
+ `netsuiteId` | object
16
+ `createdAt` | Date
15
17
 
16
18
  ## Example
17
19
 
@@ -21,11 +23,13 @@ import type { CustomerListResource } from '@digital8/lighting-illusions-ts-sdk'
21
23
  // TODO: Update the object below with actual values
22
24
  const example = {
23
25
  "id": null,
24
- "firstName": null,
25
- "lastName": null,
26
- "email": null,
27
- "phone": null,
26
+ "user": null,
28
27
  "site": null,
28
+ "type": null,
29
+ "signUpType": null,
30
+ "subscribedToNewsletter": null,
31
+ "netsuiteId": null,
32
+ "createdAt": null,
29
33
  } satisfies CustomerListResource
30
34
 
31
35
  console.log(example)
@@ -7,12 +7,16 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
- `firstName` | string
11
- `lastName` | string
12
- `email` | string
13
- `phone` | string
10
+ `user` | [UserLiteResource](UserLiteResource.md)
14
11
  `site` | [SiteLiteResource](SiteLiteResource.md)
15
- `addresses` | [Array<LiAddressResource>](LiAddressResource.md)
12
+ `type` | string
13
+ `signUpType` | string
14
+ `socialId` | string
15
+ `subscribedToNewsletter` | boolean
16
+ `netsuiteId` | string
17
+ `addresses` | [Array<AddressResource>](AddressResource.md)
18
+ `createdAt` | Date
19
+ `updatedAt` | Date
16
20
 
17
21
  ## Example
18
22
 
@@ -22,12 +26,16 @@ import type { CustomerResource } from '@digital8/lighting-illusions-ts-sdk'
22
26
  // TODO: Update the object below with actual values
23
27
  const example = {
24
28
  "id": null,
25
- "firstName": null,
26
- "lastName": null,
27
- "email": null,
28
- "phone": null,
29
+ "user": null,
29
30
  "site": null,
31
+ "type": null,
32
+ "signUpType": null,
33
+ "socialId": null,
34
+ "subscribedToNewsletter": null,
35
+ "netsuiteId": null,
30
36
  "addresses": null,
37
+ "createdAt": null,
38
+ "updatedAt": null,
31
39
  } satisfies CustomerResource
32
40
 
33
41
  console.log(example)
@@ -0,0 +1,36 @@
1
+
2
+ # CustomerSocialLinkableResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `linkable` | boolean
10
+ `customer` | object
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { CustomerSocialLinkableResource } from '@digital8/lighting-illusions-ts-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "linkable": null,
20
+ "customer": null,
21
+ } satisfies CustomerSocialLinkableResource
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 CustomerSocialLinkableResource
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
+
@@ -0,0 +1,34 @@
1
+
2
+ # CustomerSocialLinkableResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<CustomerSocialLinkableResource>](CustomerSocialLinkableResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CustomerSocialLinkableResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies CustomerSocialLinkableResourceArrayResponse
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 CustomerSocialLinkableResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,32 @@
1
+
2
+ # CustomerType
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { CustomerType } from '@digital8/lighting-illusions-ts-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies CustomerType
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as CustomerType
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
@@ -4,12 +4,145 @@ All URIs are relative to *http://localhost/api*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**destroyCustomer**](CustomersApi.md#destroycustomer) | **DELETE** /admin-api/customers/{customer}/delete | Auto-generated: destroyCustomer |
8
+ | [**getAllCustomer**](CustomersApi.md#getallcustomer) | **POST** /admin-api/customers/all | Auto-generated: getAllCustomer |
7
9
  | [**indexCustomer**](CustomersApi.md#indexcustomer) | **POST** /admin-api/customers/list | Auto-generated: indexCustomer |
8
10
  | [**showCustomer**](CustomersApi.md#showcustomer) | **GET** /admin-api/customers/{customer} | Auto-generated: showCustomer |
9
11
  | [**storeCustomer**](CustomersApi.md#storecustomer) | **POST** /admin-api/customers/create | Auto-generated: storeCustomer |
12
+ | [**updateCustomer**](CustomersApi.md#updatecustomeroperation) | **PUT** /admin-api/customers/{customer}/update | Auto-generated: updateCustomer |
10
13
 
11
14
 
12
15
 
16
+ ## destroyCustomer
17
+
18
+ > GenericResponse destroyCustomer(customer)
19
+
20
+ Auto-generated: destroyCustomer
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ CustomersApi,
28
+ } from '@digital8/lighting-illusions-ts-sdk';
29
+ import type { DestroyCustomerRequest } 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 CustomersApi();
34
+
35
+ const body = {
36
+ // number | The id of the customer
37
+ customer: 56,
38
+ } satisfies DestroyCustomerRequest;
39
+
40
+ try {
41
+ const data = await api.destroyCustomer(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
+ | **customer** | `number` | The id of the customer | [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** | Generic JSON success | - |
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
+ ## getAllCustomer
82
+
83
+ > CustomerLiteResourceArrayResponse getAllCustomer(searchAllCustomersRequest)
84
+
85
+ Auto-generated: getAllCustomer
86
+
87
+ ### Example
88
+
89
+ ```ts
90
+ import {
91
+ Configuration,
92
+ CustomersApi,
93
+ } from '@digital8/lighting-illusions-ts-sdk';
94
+ import type { GetAllCustomerRequest } 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 CustomersApi();
99
+
100
+ const body = {
101
+ // SearchAllCustomersRequest (optional)
102
+ searchAllCustomersRequest: ...,
103
+ } satisfies GetAllCustomerRequest;
104
+
105
+ try {
106
+ const data = await api.getAllCustomer(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
+ | **searchAllCustomersRequest** | [SearchAllCustomersRequest](SearchAllCustomersRequest.md) | | [Optional] |
123
+
124
+ ### Return type
125
+
126
+ [**CustomerLiteResourceArrayResponse**](CustomerLiteResourceArrayResponse.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
+
13
146
  ## indexCustomer
14
147
 
15
148
  > PaginatedCustomerListResourceResponse indexCustomer(searchCustomersRequest)
@@ -204,3 +337,71 @@ No authorization required
204
337
 
205
338
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
206
339
 
340
+
341
+ ## updateCustomer
342
+
343
+ > CustomerResource updateCustomer(customer, updateCustomerRequest)
344
+
345
+ Auto-generated: updateCustomer
346
+
347
+ ### Example
348
+
349
+ ```ts
350
+ import {
351
+ Configuration,
352
+ CustomersApi,
353
+ } from '@digital8/lighting-illusions-ts-sdk';
354
+ import type { UpdateCustomerOperationRequest } 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 CustomersApi();
359
+
360
+ const body = {
361
+ // number | The id of the customer
362
+ customer: 56,
363
+ // UpdateCustomerRequest (optional)
364
+ updateCustomerRequest: ...,
365
+ } satisfies UpdateCustomerOperationRequest;
366
+
367
+ try {
368
+ const data = await api.updateCustomer(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
+ | **customer** | `number` | The id of the customer | [Defaults to `undefined`] |
385
+ | **updateCustomerRequest** | [UpdateCustomerRequest](UpdateCustomerRequest.md) | | [Optional] |
386
+
387
+ ### Return type
388
+
389
+ [**CustomerResource**](CustomerResource.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
+
@@ -18,14 +18,11 @@ Name | Type
18
18
  `lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
19
19
  `coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
20
20
  `subtotal` | number
21
- `subtotalAfterDiscounts` | number
22
21
  `promotionalDiscount` | number
23
22
  `couponSubtotalDiscount` | number
24
23
  `couponShippingDiscount` | number
25
24
  `shipping` | number
26
25
  `transitInsurance` | number
27
- `deliveryShippingQuote` | number
28
- `transitInsuranceQuote` | number
29
26
  `gst` | number
30
27
  `grandTotal` | number
31
28
 
@@ -48,14 +45,11 @@ const example = {
48
45
  "lineItems": null,
49
46
  "coupons": null,
50
47
  "subtotal": null,
51
- "subtotalAfterDiscounts": null,
52
48
  "promotionalDiscount": null,
53
49
  "couponSubtotalDiscount": null,
54
50
  "couponShippingDiscount": null,
55
51
  "shipping": null,
56
52
  "transitInsurance": null,
57
- "deliveryShippingQuote": null,
58
- "transitInsuranceQuote": null,
59
53
  "gst": null,
60
54
  "grandTotal": null,
61
55
  } satisfies FrontendCartResource
@@ -8,8 +8,6 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
10
  `name` | string
11
- `shortName` | string
12
- `displayOrder` | number
13
11
  `isOrderNetsuiteSyncable` | boolean
14
12
  `ordersCount` | number
15
13
 
@@ -22,8 +20,6 @@ import type { OrderStatusWithCountResource } from '@digital8/lighting-illusions-
22
20
  const example = {
23
21
  "id": null,
24
22
  "name": null,
25
- "shortName": null,
26
- "displayOrder": null,
27
23
  "isOrderNetsuiteSyncable": null,
28
24
  "ordersCount": null,
29
25
  } satisfies OrderStatusWithCountResource
@@ -1,24 +1,24 @@
1
1
 
2
- # PaginatedProductClassLiteResourceResponse
2
+ # PaginatedAdminListResourceResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
9
+ `data` | [Array<AdminListResource>](AdminListResource.md)
10
10
  `meta` | [PagingMetadata](PagingMetadata.md)
11
11
 
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import type { PaginatedProductClassLiteResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+ import type { PaginatedAdminListResourceResponse } 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 PaginatedProductClassLiteResourceResponse
21
+ } satisfies PaginatedAdminListResourceResponse
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 PaginatedProductClassLiteResourceResponse
30
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedAdminListResourceResponse
31
31
  console.log(exampleParsed)
32
32
  ```
33
33
 
@@ -0,0 +1,36 @@
1
+
2
+ # PaginatedAdminLiteResourceResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<AdminLiteResource>](AdminLiteResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PaginatedAdminLiteResourceResponse } 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 PaginatedAdminLiteResourceResponse
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 PaginatedAdminLiteResourceResponse
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
+
@@ -0,0 +1,36 @@
1
+
2
+ # PaginatedRoleLiteResourceResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<RoleLiteResource>](RoleLiteResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PaginatedRoleLiteResourceResponse } 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 PaginatedRoleLiteResourceResponse
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 PaginatedRoleLiteResourceResponse
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
+
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `netsuiteId` | string
11
11
  `name` | string
12
- `parentId` | number
12
+ `parentId` | string
13
13
 
14
14
  ## Example
15
15
 
@@ -1,5 +1,5 @@
1
1
 
2
- # ProductClassLiteResource
2
+ # RoleLiteResource
3
3
 
4
4
 
5
5
  ## Properties
@@ -8,19 +8,17 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
10
  `name` | string
11
- `pathString` | string
12
11
 
13
12
  ## Example
14
13
 
15
14
  ```typescript
16
- import type { ProductClassLiteResource } from '@digital8/lighting-illusions-ts-sdk'
15
+ import type { RoleLiteResource } from '@digital8/lighting-illusions-ts-sdk'
17
16
 
18
17
  // TODO: Update the object below with actual values
19
18
  const example = {
20
19
  "id": null,
21
20
  "name": null,
22
- "pathString": null,
23
- } satisfies ProductClassLiteResource
21
+ } satisfies RoleLiteResource
24
22
 
25
23
  console.log(example)
26
24
 
@@ -29,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
29
27
  console.log(exampleJSON)
30
28
 
31
29
  // Parse the JSON string back to an object
32
- const exampleParsed = JSON.parse(exampleJSON) as ProductClassLiteResource
30
+ const exampleParsed = JSON.parse(exampleJSON) as RoleLiteResource
33
31
  console.log(exampleParsed)
34
32
  ```
35
33