@digital8/lighting-illusions-ts-sdk 0.0.2347 → 0.0.2348

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 (179) hide show
  1. package/.openapi-generator/FILES +14 -34
  2. package/README.md +9 -24
  3. package/dist/apis/ProductClassApi.d.ts +34 -0
  4. package/dist/apis/ProductClassApi.js +139 -0
  5. package/dist/apis/index.d.ts +1 -1
  6. package/dist/apis/index.js +1 -1
  7. package/dist/models/AddressResource.d.ts +1 -1
  8. package/dist/models/AddressResource.js +3 -1
  9. package/dist/models/AdminOrderResource.d.ts +2 -3
  10. package/dist/models/AdminOrderResource.js +2 -3
  11. package/dist/models/AppliedCouponResource.d.ts +50 -0
  12. package/dist/models/{CartCouponResource.js → AppliedCouponResource.js} +13 -13
  13. package/dist/models/AppliedCouponResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/AppliedCouponResourceArrayResponse.js +50 -0
  15. package/dist/models/CartListResource.d.ts +6 -0
  16. package/dist/models/CartListResource.js +4 -0
  17. package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
  18. package/dist/models/CategoryAutomationFieldType.js +3 -1
  19. package/dist/models/CreatePageComponentRequest.d.ts +4 -4
  20. package/dist/models/CreatePageComponentRequest.js +4 -4
  21. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
  22. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
  23. package/dist/models/CreateSupplierRequest.d.ts +6 -0
  24. package/dist/models/CreateSupplierRequest.js +2 -0
  25. package/dist/models/FrontendCartResource.d.ts +18 -0
  26. package/dist/models/FrontendCartResource.js +12 -0
  27. package/dist/models/FrontendOrderResource.d.ts +3 -3
  28. package/dist/models/FrontendOrderResource.js +3 -3
  29. package/dist/models/OrderFulfillmentResource.d.ts +1 -1
  30. package/dist/models/OrderFulfillmentResource.js +3 -1
  31. package/dist/models/OrderStatusWithCountResource.d.ts +12 -0
  32. package/dist/models/OrderStatusWithCountResource.js +8 -0
  33. package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
  34. package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
  35. package/dist/models/ProductClassLiteResource.d.ts +44 -0
  36. package/dist/models/ProductClassLiteResource.js +57 -0
  37. package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
  39. package/dist/models/ProductClassResource.d.ts +2 -2
  40. package/dist/models/SearchAllOrdersRequest.d.ts +6 -0
  41. package/dist/models/SearchAllOrdersRequest.js +2 -0
  42. package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
  43. package/dist/models/SearchAllProductClassesRequest.js +74 -0
  44. package/dist/models/SearchCartsRequest.d.ts +0 -6
  45. package/dist/models/SearchCartsRequest.js +0 -2
  46. package/dist/models/SearchOrdersRequest.d.ts +6 -6
  47. package/dist/models/SearchOrdersRequest.js +2 -2
  48. package/dist/models/StoreResource.d.ts +2 -2
  49. package/dist/models/StoreResource.js +6 -2
  50. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  51. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  52. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  53. package/dist/models/StoreSpecialDateResource.js +3 -1
  54. package/dist/models/SupplierFrontendResource.d.ts +6 -0
  55. package/dist/models/SupplierFrontendResource.js +4 -0
  56. package/dist/models/SupplierResource.d.ts +6 -0
  57. package/dist/models/SupplierResource.js +4 -0
  58. package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
  59. package/dist/models/UpdatePageComponentRequest.js +4 -4
  60. package/dist/models/UpdateSupplierRequest.d.ts +6 -0
  61. package/dist/models/UpdateSupplierRequest.js +2 -0
  62. package/dist/models/index.d.ts +6 -16
  63. package/dist/models/index.js +6 -16
  64. package/docs/AdminOrderResource.md +1 -1
  65. package/docs/{CartCouponResource.md → AppliedCouponResource.md} +4 -4
  66. package/docs/{CouponLiteResourceArrayResponse.md → AppliedCouponResourceArrayResponse.md} +5 -5
  67. package/docs/CartListResource.md +2 -0
  68. package/docs/CreatePageComponentRequest.md +2 -2
  69. package/docs/CreateSupplierRequest.md +2 -0
  70. package/docs/FrontendCartResource.md +6 -0
  71. package/docs/FrontendOrderResource.md +1 -1
  72. package/docs/OrderStatusWithCountResource.md +4 -0
  73. package/docs/{PaginatedCouponListResourceResponse.md → PaginatedProductClassLiteResourceResponse.md} +5 -5
  74. package/docs/ProductClassApi.md +74 -0
  75. package/docs/{CouponLiteResource.md → ProductClassLiteResource.md} +6 -6
  76. package/docs/{CartCouponResourceArrayResponse.md → ProductClassLiteResourceArrayResponse.md} +5 -5
  77. package/docs/ProductClassResource.md +1 -1
  78. package/docs/SearchAllOrdersRequest.md +2 -0
  79. package/docs/{SearchAllCouponsRequest.md → SearchAllProductClassesRequest.md} +4 -10
  80. package/docs/SearchCartsRequest.md +0 -2
  81. package/docs/SearchOrdersRequest.md +2 -2
  82. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  83. package/docs/StoreSpecialDateResource.md +1 -1
  84. package/docs/SupplierFrontendResource.md +2 -0
  85. package/docs/SupplierResource.md +2 -0
  86. package/docs/UpdatePageComponentRequest.md +2 -2
  87. package/docs/UpdateSupplierRequest.md +2 -0
  88. package/package.json +1 -1
  89. package/src/apis/ProductClassApi.ts +76 -0
  90. package/src/apis/index.ts +1 -1
  91. package/src/models/AddressResource.ts +3 -2
  92. package/src/models/AdminOrderResource.ts +4 -11
  93. package/src/models/{CartCouponResource.ts → AppliedCouponResource.ts} +14 -14
  94. package/src/models/AppliedCouponResourceArrayResponse.ts +73 -0
  95. package/src/models/CartListResource.ts +9 -0
  96. package/src/models/CategoryAutomationFieldType.ts +3 -1
  97. package/src/models/CreatePageComponentRequest.ts +8 -8
  98. package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
  99. package/src/models/CreateSupplierRequest.ts +8 -0
  100. package/src/models/FrontendCartResource.ts +27 -0
  101. package/src/models/FrontendOrderResource.ts +11 -11
  102. package/src/models/OrderFulfillmentResource.ts +3 -2
  103. package/src/models/OrderStatusWithCountResource.ts +18 -0
  104. package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
  105. package/src/models/ProductClassLiteResource.ts +83 -0
  106. package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
  107. package/src/models/ProductClassResource.ts +2 -2
  108. package/src/models/SearchAllOrdersRequest.ts +8 -0
  109. package/src/models/SearchAllProductClassesRequest.ts +125 -0
  110. package/src/models/SearchCartsRequest.ts +0 -8
  111. package/src/models/SearchOrdersRequest.ts +8 -8
  112. package/src/models/StoreResource.ts +6 -4
  113. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  114. package/src/models/StoreSpecialDateResource.ts +4 -3
  115. package/src/models/SupplierFrontendResource.ts +9 -0
  116. package/src/models/SupplierResource.ts +9 -0
  117. package/src/models/UpdatePageComponentRequest.ts +8 -8
  118. package/src/models/UpdateSupplierRequest.ts +8 -0
  119. package/src/models/index.ts +6 -16
  120. package/dist/apis/CouponsApi.d.ts +0 -116
  121. package/dist/apis/CouponsApi.js +0 -440
  122. package/dist/models/CartCouponResource.d.ts +0 -50
  123. package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
  124. package/dist/models/CartCouponResourceArrayResponse.js +0 -50
  125. package/dist/models/CouponListResource.d.ts +0 -99
  126. package/dist/models/CouponListResource.js +0 -90
  127. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  128. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  129. package/dist/models/CouponLiteResource.d.ts +0 -44
  130. package/dist/models/CouponLiteResource.js +0 -57
  131. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  132. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  133. package/dist/models/CouponResource.d.ts +0 -163
  134. package/dist/models/CouponResource.js +0 -134
  135. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  136. package/dist/models/CouponResourceArrayResponse.js +0 -50
  137. package/dist/models/CouponType.d.ts +0 -26
  138. package/dist/models/CouponType.js +0 -52
  139. package/dist/models/CreateCouponRequest.d.ts +0 -134
  140. package/dist/models/CreateCouponRequest.js +0 -114
  141. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  142. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  143. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  144. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  145. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  146. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  147. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  148. package/dist/models/SearchAllCouponsRequest.js +0 -85
  149. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  150. package/dist/models/SearchCouponsRequest.js +0 -97
  151. package/dist/models/UpdateCouponRequest.d.ts +0 -128
  152. package/dist/models/UpdateCouponRequest.js +0 -110
  153. package/docs/CouponListResource.md +0 -56
  154. package/docs/CouponListResourceArrayResponse.md +0 -34
  155. package/docs/CouponResource.md +0 -76
  156. package/docs/CouponResourceArrayResponse.md +0 -34
  157. package/docs/CouponType.md +0 -32
  158. package/docs/CouponsApi.md +0 -407
  159. package/docs/CreateCouponRequest.md +0 -62
  160. package/docs/CreateCouponRequestCouponablesInner.md +0 -36
  161. package/docs/PaginatedCouponResourceResponse.md +0 -36
  162. package/docs/SearchCouponsRequest.md +0 -62
  163. package/docs/UpdateCouponRequest.md +0 -60
  164. package/src/apis/CouponsApi.ts +0 -345
  165. package/src/models/CartCouponResourceArrayResponse.ts +0 -73
  166. package/src/models/CouponListResource.ts +0 -170
  167. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  168. package/src/models/CouponLiteResource.ts +0 -83
  169. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  170. package/src/models/CouponResource.ts +0 -288
  171. package/src/models/CouponResourceArrayResponse.ts +0 -73
  172. package/src/models/CouponType.ts +0 -54
  173. package/src/models/CreateCouponRequest.ts +0 -216
  174. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  175. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  176. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  177. package/src/models/SearchAllCouponsRequest.ts +0 -154
  178. package/src/models/SearchCouponsRequest.ts +0 -202
  179. package/src/models/UpdateCouponRequest.ts +0 -207
@@ -1,5 +1,5 @@
1
1
 
2
- # CouponLiteResource
2
+ # ProductClassLiteResource
3
3
 
4
4
 
5
5
  ## Properties
@@ -8,19 +8,19 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
10
  `name` | string
11
- `code` | string
11
+ `pathString` | string
12
12
 
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import type { CouponLiteResource } from '@digital8/lighting-illusions-ts-sdk'
16
+ import type { ProductClassLiteResource } from '@digital8/lighting-illusions-ts-sdk'
17
17
 
18
18
  // TODO: Update the object below with actual values
19
19
  const example = {
20
20
  "id": null,
21
21
  "name": null,
22
- "code": null,
23
- } satisfies CouponLiteResource
22
+ "pathString": null,
23
+ } satisfies ProductClassLiteResource
24
24
 
25
25
  console.log(example)
26
26
 
@@ -29,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
29
29
  console.log(exampleJSON)
30
30
 
31
31
  // Parse the JSON string back to an object
32
- const exampleParsed = JSON.parse(exampleJSON) as CouponLiteResource
32
+ const exampleParsed = JSON.parse(exampleJSON) as ProductClassLiteResource
33
33
  console.log(exampleParsed)
34
34
  ```
35
35
 
@@ -1,22 +1,22 @@
1
1
 
2
- # CartCouponResourceArrayResponse
2
+ # ProductClassLiteResourceArrayResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<CartCouponResource>](CartCouponResource.md)
9
+ `data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { CartCouponResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { ProductClassLiteResourceArrayResponse } 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 CartCouponResourceArrayResponse
19
+ } satisfies ProductClassLiteResourceArrayResponse
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 CartCouponResourceArrayResponse
28
+ const exampleParsed = JSON.parse(exampleJSON) as ProductClassLiteResourceArrayResponse
29
29
  console.log(exampleParsed)
30
30
  ```
31
31
 
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `netsuiteId` | string
11
11
  `name` | string
12
- `parentId` | string
12
+ `parentId` | number
13
13
 
14
14
  ## Example
15
15
 
@@ -16,6 +16,7 @@ Name | Type
16
16
  `source` | Array<string>
17
17
  `statusId` | Array<string>
18
18
  `customerId` | Array<string>
19
+ `lineItemsLabelId` | Array<string>
19
20
 
20
21
  ## Example
21
22
 
@@ -34,6 +35,7 @@ const example = {
34
35
  "source": null,
35
36
  "statusId": null,
36
37
  "customerId": null,
38
+ "lineItemsLabelId": null,
37
39
  } satisfies SearchAllOrdersRequest
38
40
 
39
41
  console.log(example)
@@ -1,5 +1,5 @@
1
1
 
2
- # SearchAllCouponsRequest
2
+ # SearchAllProductClassesRequest
3
3
 
4
4
 
5
5
  ## Properties
@@ -12,14 +12,11 @@ Name | Type
12
12
  `relatedId` | number
13
13
  `relatedType` | string
14
14
  `includesRelations` | boolean
15
- `type` | Array<string>
16
- `siteId` | Array<string>
17
- `isAbandonedCart` | Array<string>
18
15
 
19
16
  ## Example
20
17
 
21
18
  ```typescript
22
- import type { SearchAllCouponsRequest } from '@digital8/lighting-illusions-ts-sdk'
19
+ import type { SearchAllProductClassesRequest } from '@digital8/lighting-illusions-ts-sdk'
23
20
 
24
21
  // TODO: Update the object below with actual values
25
22
  const example = {
@@ -29,10 +26,7 @@ const example = {
29
26
  "relatedId": null,
30
27
  "relatedType": null,
31
28
  "includesRelations": null,
32
- "type": null,
33
- "siteId": null,
34
- "isAbandonedCart": null,
35
- } satisfies SearchAllCouponsRequest
29
+ } satisfies SearchAllProductClassesRequest
36
30
 
37
31
  console.log(example)
38
32
 
@@ -41,7 +35,7 @@ const exampleJSON: string = JSON.stringify(example)
41
35
  console.log(exampleJSON)
42
36
 
43
37
  // Parse the JSON string back to an object
44
- const exampleParsed = JSON.parse(exampleJSON) as SearchAllCouponsRequest
38
+ const exampleParsed = JSON.parse(exampleJSON) as SearchAllProductClassesRequest
45
39
  console.log(exampleParsed)
46
40
  ```
47
41
 
@@ -23,7 +23,6 @@ Name | Type
23
23
  `relatedId` | number
24
24
  `relatedType` | string
25
25
  `includesRelations` | boolean
26
- `couponId` | number
27
26
 
28
27
  ## Example
29
28
 
@@ -49,7 +48,6 @@ const example = {
49
48
  "relatedId": null,
50
49
  "relatedType": null,
51
50
  "includesRelations": null,
52
- "couponId": null,
53
51
  } satisfies SearchCartsRequest
54
52
 
55
53
  console.log(example)
@@ -15,6 +15,7 @@ Name | Type
15
15
  `source` | Array<string>
16
16
  `statusId` | Array<string>
17
17
  `customerId` | Array<string>
18
+ `lineItemsLabelId` | Array<string>
18
19
  `beforeCreatedAt` | Date
19
20
  `afterCreatedAt` | Date
20
21
  `beforePlacedAt` | Date
@@ -24,7 +25,6 @@ Name | Type
24
25
  `relatedId` | number
25
26
  `relatedType` | string
26
27
  `includesRelations` | boolean
27
- `couponId` | number
28
28
 
29
29
  ## Example
30
30
 
@@ -42,6 +42,7 @@ const example = {
42
42
  "source": null,
43
43
  "statusId": null,
44
44
  "customerId": null,
45
+ "lineItemsLabelId": null,
45
46
  "beforeCreatedAt": null,
46
47
  "afterCreatedAt": null,
47
48
  "beforePlacedAt": null,
@@ -51,7 +52,6 @@ const example = {
51
52
  "relatedId": null,
52
53
  "relatedType": null,
53
54
  "includesRelations": null,
54
- "couponId": null,
55
55
  } satisfies SearchOrdersRequest
56
56
 
57
57
  console.log(example)
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | string
15
15
  `displayEndDate` | string
@@ -11,6 +11,7 @@ Name | Type
11
11
  `slug` | string
12
12
  `thumbnail` | [AssetLiteResource](AssetLiteResource.md)
13
13
  `supplierEta` | number
14
+ `productEnquiriesOnly` | boolean
14
15
  `seo` | object
15
16
  `description` | [DescriptionResource](DescriptionResource.md)
16
17
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "slug": null,
27
28
  "thumbnail": null,
28
29
  "supplierEta": null,
30
+ "productEnquiriesOnly": null,
29
31
  "seo": null,
30
32
  "description": null,
31
33
  } satisfies SupplierFrontendResource
@@ -11,6 +11,7 @@ Name | Type
11
11
  `slug` | string
12
12
  `thumbnail` | [AssetResource](AssetResource.md)
13
13
  `supplierEta` | number
14
+ `productEnquiriesOnly` | boolean
14
15
  `seo` | [Array<SEOResource>](SEOResource.md)
15
16
  `descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
16
17
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "slug": null,
27
28
  "thumbnail": null,
28
29
  "supplierEta": null,
30
+ "productEnquiriesOnly": null,
29
31
  "seo": null,
30
32
  "descriptions": null,
31
33
  } satisfies SupplierResource
@@ -9,8 +9,8 @@ Name | Type
9
9
  `type` | string
10
10
  `disabled` | boolean
11
11
  `order` | number
12
- `startDate` | Date
13
- `endDate` | Date
12
+ `startDate` | string
13
+ `endDate` | string
14
14
  `componentData` | object
15
15
  `relations` | [Array<CreatePageComponentRequestRelationsInner>](CreatePageComponentRequestRelationsInner.md)
16
16
 
@@ -9,6 +9,7 @@ Name | Type
9
9
  `name` | string
10
10
  `slug` | string
11
11
  `supplierEta` | number
12
+ `productEnquiriesOnly` | boolean
12
13
  `seo` | [Array<CreateBlogCategoryRequestSeoInner>](CreateBlogCategoryRequestSeoInner.md)
13
14
  `altText` | string
14
15
  `mimeType` | string
@@ -27,6 +28,7 @@ const example = {
27
28
  "name": null,
28
29
  "slug": null,
29
30
  "supplierEta": null,
31
+ "productEnquiriesOnly": null,
30
32
  "seo": null,
31
33
  "altText": null,
32
34
  "mimeType": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2347",
3
+ "version": "0.0.2348",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,76 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import * as runtime from '../runtime';
16
+ import {
17
+ type ProductClassLiteResourceArrayResponse,
18
+ ProductClassLiteResourceArrayResponseFromJSON,
19
+ ProductClassLiteResourceArrayResponseToJSON,
20
+ } from '../models/ProductClassLiteResourceArrayResponse';
21
+ import {
22
+ type SearchAllProductClassesRequest,
23
+ SearchAllProductClassesRequestFromJSON,
24
+ SearchAllProductClassesRequestToJSON,
25
+ } from '../models/SearchAllProductClassesRequest';
26
+
27
+ export interface GetAllProductClassRequest {
28
+ searchAllProductClassesRequest?: SearchAllProductClassesRequest;
29
+ }
30
+
31
+ /**
32
+ *
33
+ */
34
+ export class ProductClassApi extends runtime.BaseAPI {
35
+
36
+ /**
37
+ * Creates request options for getAllProductClass without sending the request
38
+ */
39
+ async getAllProductClassRequestOpts(requestParameters: GetAllProductClassRequest): Promise<runtime.RequestOpts> {
40
+ const queryParameters: any = {};
41
+
42
+ const headerParameters: runtime.HTTPHeaders = {};
43
+
44
+ headerParameters['Content-Type'] = 'application/json';
45
+
46
+
47
+ let urlPath = `/admin-api/product-class/all`;
48
+
49
+ return {
50
+ path: urlPath,
51
+ method: 'POST',
52
+ headers: headerParameters,
53
+ query: queryParameters,
54
+ body: SearchAllProductClassesRequestToJSON(requestParameters['searchAllProductClassesRequest']),
55
+ };
56
+ }
57
+
58
+ /**
59
+ * Auto-generated: getAllProductClass
60
+ */
61
+ async getAllProductClassRaw(requestParameters: GetAllProductClassRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductClassLiteResourceArrayResponse>> {
62
+ const requestOptions = await this.getAllProductClassRequestOpts(requestParameters);
63
+ const response = await this.request(requestOptions, initOverrides);
64
+
65
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProductClassLiteResourceArrayResponseFromJSON(jsonValue));
66
+ }
67
+
68
+ /**
69
+ * Auto-generated: getAllProductClass
70
+ */
71
+ async getAllProductClass(requestParameters: GetAllProductClassRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductClassLiteResourceArrayResponse> {
72
+ const response = await this.getAllProductClassRaw(requestParameters, initOverrides);
73
+ return await response.value();
74
+ }
75
+
76
+ }
package/src/apis/index.ts CHANGED
@@ -5,7 +5,6 @@ export * from './AssetApi';
5
5
  export * from './AttributeApi';
6
6
  export * from './BlogCategoryApi';
7
7
  export * from './CartsApi';
8
- export * from './CouponsApi';
9
8
  export * from './CustomersApi';
10
9
  export * from './DefinitionApi';
11
10
  export * from './DocumentApi';
@@ -21,6 +20,7 @@ export * from './PageApi';
21
20
  export * from './PageComponentApi';
22
21
  export * from './ProductApi';
23
22
  export * from './ProductCategoryApi';
23
+ export * from './ProductClassApi';
24
24
  export * from './ProductRangeApi';
25
25
  export * from './ProductRegistrationApi';
26
26
  export * from './ProductTypeApi';
@@ -60,7 +60,7 @@ export interface AddressResource {
60
60
  * @type {string}
61
61
  * @memberof AddressResource
62
62
  */
63
- line2?: string | null;
63
+ line2: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -100,6 +100,7 @@ export function instanceOfAddressResource(value: object): value is AddressResour
100
100
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
101
101
  if (!('company' in value) || value['company'] === undefined) return false;
102
102
  if (!('line1' in value) || value['line1'] === undefined) return false;
103
+ if (!('line2' in value) || value['line2'] === undefined) return false;
103
104
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
104
105
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
105
106
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -124,7 +125,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
124
125
  'addresseeName': json['addresseeName'],
125
126
  'company': json['company'],
126
127
  'line1': json['line1'],
127
- 'line2': json['line2'] == null ? undefined : json['line2'],
128
+ 'line2': json['line2'],
128
129
  'postcode': json['postcode'],
129
130
  'suburb': json['suburb'],
130
131
  'country': json['country'],
@@ -55,13 +55,6 @@ import {
55
55
  OrderStatusLiteResourceToJSON,
56
56
  OrderStatusLiteResourceToJSONTyped,
57
57
  } from './OrderStatusLiteResource';
58
- import type { CartCouponResource } from './CartCouponResource';
59
- import {
60
- CartCouponResourceFromJSON,
61
- CartCouponResourceFromJSONTyped,
62
- CartCouponResourceToJSON,
63
- CartCouponResourceToJSONTyped,
64
- } from './CartCouponResource';
65
58
  import type { CustomerResource } from './CustomerResource';
66
59
  import {
67
60
  CustomerResourceFromJSON,
@@ -327,10 +320,10 @@ export interface AdminOrderResource {
327
320
  lineItems: Array<AdminOrderLineItemResource> | null;
328
321
  /**
329
322
  *
330
- * @type {Array<CartCouponResource>}
323
+ * @type {object}
331
324
  * @memberof AdminOrderResource
332
325
  */
333
- coupons: Array<CartCouponResource> | null;
326
+ coupons: object;
334
327
  /**
335
328
  *
336
329
  * @type {Array<DiscountResource>}
@@ -457,7 +450,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
457
450
  'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
458
451
  'status': OrderStatusLiteResourceFromJSON(json['status']),
459
452
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(AdminOrderLineItemResourceFromJSON)),
460
- 'coupons': (json['coupons'] == null ? null : (json['coupons'] as Array<any>).map(CartCouponResourceFromJSON)),
453
+ 'coupons': json['coupons'],
461
454
  'discounts': (json['discounts'] == null ? null : (json['discounts'] as Array<any>).map(DiscountResourceFromJSON)),
462
455
  'transactions': (json['transactions'] == null ? null : (json['transactions'] as Array<any>).map(TransactionLiteResourceFromJSON)),
463
456
  'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
@@ -515,7 +508,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
515
508
  'admin': LiAdminUserLiteResourceToJSON(value['admin']),
516
509
  'status': OrderStatusLiteResourceToJSON(value['status']),
517
510
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(AdminOrderLineItemResourceToJSON)),
518
- 'coupons': (value['coupons'] == null ? null : (value['coupons'] as Array<any>).map(CartCouponResourceToJSON)),
511
+ 'coupons': value['coupons'],
519
512
  'discounts': (value['discounts'] == null ? null : (value['discounts'] as Array<any>).map(DiscountResourceToJSON)),
520
513
  'transactions': (value['transactions'] == null ? null : (value['transactions'] as Array<any>).map(TransactionLiteResourceToJSON)),
521
514
  'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
@@ -16,39 +16,39 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface CartCouponResource
19
+ * @interface AppliedCouponResource
20
20
  */
21
- export interface CartCouponResource {
21
+ export interface AppliedCouponResource {
22
22
  /**
23
23
  *
24
24
  * @type {number}
25
- * @memberof CartCouponResource
25
+ * @memberof AppliedCouponResource
26
26
  */
27
27
  id: number;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
- * @memberof CartCouponResource
31
+ * @memberof AppliedCouponResource
32
32
  */
33
33
  code: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
- * @memberof CartCouponResource
37
+ * @memberof AppliedCouponResource
38
38
  */
39
39
  name: string;
40
40
  /**
41
41
  *
42
42
  * @type {number}
43
- * @memberof CartCouponResource
43
+ * @memberof AppliedCouponResource
44
44
  */
45
45
  discountTotal: number;
46
46
  }
47
47
 
48
48
  /**
49
- * Check if a given object implements the CartCouponResource interface.
49
+ * Check if a given object implements the AppliedCouponResource interface.
50
50
  */
51
- export function instanceOfCartCouponResource(value: object): value is CartCouponResource {
51
+ export function instanceOfAppliedCouponResource(value: object): value is AppliedCouponResource {
52
52
  if (!('id' in value) || value['id'] === undefined) return false;
53
53
  if (!('code' in value) || value['code'] === undefined) return false;
54
54
  if (!('name' in value) || value['name'] === undefined) return false;
@@ -56,11 +56,11 @@ export function instanceOfCartCouponResource(value: object): value is CartCoupon
56
56
  return true;
57
57
  }
58
58
 
59
- export function CartCouponResourceFromJSON(json: any): CartCouponResource {
60
- return CartCouponResourceFromJSONTyped(json, false);
59
+ export function AppliedCouponResourceFromJSON(json: any): AppliedCouponResource {
60
+ return AppliedCouponResourceFromJSONTyped(json, false);
61
61
  }
62
62
 
63
- export function CartCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponResource {
63
+ export function AppliedCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppliedCouponResource {
64
64
  if (json == null) {
65
65
  return json;
66
66
  }
@@ -73,11 +73,11 @@ export function CartCouponResourceFromJSONTyped(json: any, ignoreDiscriminator:
73
73
  };
74
74
  }
75
75
 
76
- export function CartCouponResourceToJSON(json: any): CartCouponResource {
77
- return CartCouponResourceToJSONTyped(json, false);
76
+ export function AppliedCouponResourceToJSON(json: any): AppliedCouponResource {
77
+ return AppliedCouponResourceToJSONTyped(json, false);
78
78
  }
79
79
 
80
- export function CartCouponResourceToJSONTyped(value?: CartCouponResource | null, ignoreDiscriminator: boolean = false): any {
80
+ export function AppliedCouponResourceToJSONTyped(value?: AppliedCouponResource | null, ignoreDiscriminator: boolean = false): any {
81
81
  if (value == null) {
82
82
  return value;
83
83
  }
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { AppliedCouponResource } from './AppliedCouponResource';
17
+ import {
18
+ AppliedCouponResourceFromJSON,
19
+ AppliedCouponResourceFromJSONTyped,
20
+ AppliedCouponResourceToJSON,
21
+ AppliedCouponResourceToJSONTyped,
22
+ } from './AppliedCouponResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AppliedCouponResourceArrayResponse
28
+ */
29
+ export interface AppliedCouponResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<AppliedCouponResource>}
33
+ * @memberof AppliedCouponResourceArrayResponse
34
+ */
35
+ data?: Array<AppliedCouponResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AppliedCouponResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfAppliedCouponResourceArrayResponse(value: object): value is AppliedCouponResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function AppliedCouponResourceArrayResponseFromJSON(json: any): AppliedCouponResourceArrayResponse {
46
+ return AppliedCouponResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AppliedCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppliedCouponResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AppliedCouponResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function AppliedCouponResourceArrayResponseToJSON(json: any): AppliedCouponResourceArrayResponse {
60
+ return AppliedCouponResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function AppliedCouponResourceArrayResponseToJSONTyped(value?: AppliedCouponResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(AppliedCouponResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -71,6 +71,12 @@ export interface CartListResource {
71
71
  * @memberof CartListResource
72
72
  */
73
73
  createdAt?: Date | null;
74
+ /**
75
+ *
76
+ * @type {Date}
77
+ * @memberof CartListResource
78
+ */
79
+ expiryDate: Date;
74
80
  /**
75
81
  *
76
82
  * @type {SiteLiteResource}
@@ -108,6 +114,7 @@ export interface CartListResource {
108
114
  */
109
115
  export function instanceOfCartListResource(value: object): value is CartListResource {
110
116
  if (!('source' in value) || value['source'] === undefined) return false;
117
+ if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
111
118
  if (!('site' in value) || value['site'] === undefined) return false;
112
119
  if (!('customer' in value) || value['customer'] === undefined) return false;
113
120
  if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
@@ -131,6 +138,7 @@ export function CartListResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
131
138
  'source': json['source'],
132
139
  'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
133
140
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
141
+ 'expiryDate': (new Date(json['expiryDate'])),
134
142
  'site': SiteLiteResourceFromJSON(json['site']),
135
143
  'customer': CustomerListResourceFromJSON(json['customer']),
136
144
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
@@ -155,6 +163,7 @@ export function CartListResourceToJSONTyped(value?: CartListResource | null, ign
155
163
  'source': value['source'],
156
164
  'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
157
165
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
166
+ 'expiryDate': value['expiryDate'].toISOString(),
158
167
  'site': SiteLiteResourceToJSON(value['site']),
159
168
  'customer': CustomerListResourceToJSON(value['customer']),
160
169
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
@@ -24,7 +24,9 @@ export const CategoryAutomationFieldType = {
24
24
  Attribute: 'attribute',
25
25
  Tag: 'tag',
26
26
  Supplier: 'supplier',
27
- Label: 'label'
27
+ Label: 'label',
28
+ ProductType: 'product_type',
29
+ ProductClass: 'product_class'
28
30
  } as const;
29
31
  export type CategoryAutomationFieldType = typeof CategoryAutomationFieldType[keyof typeof CategoryAutomationFieldType];
30
32