@digital8/lighting-illusions-ts-sdk 0.0.2349 → 0.0.2350

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 (128) hide show
  1. package/.openapi-generator/FILES +14 -4
  2. package/README.md +9 -4
  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 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +3 -1
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +3 -1
  11. package/dist/models/AdminOrderResource.d.ts +2 -3
  12. package/dist/models/AdminOrderResource.js +2 -3
  13. package/dist/models/AppliedCouponResource.d.ts +50 -0
  14. package/dist/models/{CartCouponResource.js → AppliedCouponResource.js} +13 -13
  15. package/dist/models/AppliedCouponResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/AppliedCouponResourceArrayResponse.js +50 -0
  17. package/dist/models/CartListResource.d.ts +6 -0
  18. package/dist/models/CartListResource.js +4 -0
  19. package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
  20. package/dist/models/CategoryAutomationFieldType.js +3 -1
  21. package/dist/models/CreatePageComponentRequest.d.ts +4 -4
  22. package/dist/models/CreatePageComponentRequest.js +4 -4
  23. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
  24. package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
  25. package/dist/models/CreateSupplierRequest.d.ts +6 -0
  26. package/dist/models/CreateSupplierRequest.js +2 -0
  27. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  28. package/dist/models/ExternalApiLogResource.js +3 -1
  29. package/dist/models/FrontendCartResource.d.ts +18 -0
  30. package/dist/models/FrontendCartResource.js +12 -0
  31. package/dist/models/FrontendOrderResource.d.ts +3 -3
  32. package/dist/models/FrontendOrderResource.js +3 -3
  33. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  34. package/dist/models/OrderFulfillmentResource.js +2 -6
  35. package/dist/models/OrderStatusWithCountResource.d.ts +12 -0
  36. package/dist/models/OrderStatusWithCountResource.js +8 -0
  37. package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
  38. package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
  39. package/dist/models/ProductClassLiteResource.d.ts +44 -0
  40. package/dist/models/ProductClassLiteResource.js +57 -0
  41. package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
  43. package/dist/models/ProductClassResource.d.ts +2 -2
  44. package/dist/models/SearchAllOrdersRequest.d.ts +6 -0
  45. package/dist/models/SearchAllOrdersRequest.js +2 -0
  46. package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
  47. package/dist/models/SearchAllProductClassesRequest.js +74 -0
  48. package/dist/models/SearchOrdersRequest.d.ts +6 -0
  49. package/dist/models/SearchOrdersRequest.js +2 -0
  50. package/dist/models/StoreFrontendResource.d.ts +1 -1
  51. package/dist/models/StoreFrontendResource.js +1 -3
  52. package/dist/models/StoreListResource.d.ts +1 -1
  53. package/dist/models/StoreListResource.js +1 -3
  54. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  55. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  56. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  57. package/dist/models/StoreSpecialDateResource.js +1 -3
  58. package/dist/models/SupplierFrontendResource.d.ts +6 -0
  59. package/dist/models/SupplierFrontendResource.js +4 -0
  60. package/dist/models/SupplierResource.d.ts +6 -0
  61. package/dist/models/SupplierResource.js +4 -0
  62. package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
  63. package/dist/models/UpdatePageComponentRequest.js +4 -4
  64. package/dist/models/UpdateSupplierRequest.d.ts +6 -0
  65. package/dist/models/UpdateSupplierRequest.js +2 -0
  66. package/dist/models/index.d.ts +6 -2
  67. package/dist/models/index.js +6 -2
  68. package/docs/AdminOrderResource.md +1 -1
  69. package/docs/{CartCouponResource.md → AppliedCouponResource.md} +4 -4
  70. package/docs/{CartCouponResourceArrayResponse.md → AppliedCouponResourceArrayResponse.md} +5 -5
  71. package/docs/CartListResource.md +2 -0
  72. package/docs/CreatePageComponentRequest.md +2 -2
  73. package/docs/CreateSupplierRequest.md +2 -0
  74. package/docs/FrontendCartResource.md +6 -0
  75. package/docs/FrontendOrderResource.md +1 -1
  76. package/docs/OrderStatusWithCountResource.md +4 -0
  77. package/docs/PaginatedProductClassLiteResourceResponse.md +36 -0
  78. package/docs/ProductClassApi.md +74 -0
  79. package/docs/ProductClassLiteResource.md +38 -0
  80. package/docs/ProductClassLiteResourceArrayResponse.md +34 -0
  81. package/docs/ProductClassResource.md +1 -1
  82. package/docs/SearchAllOrdersRequest.md +2 -0
  83. package/docs/SearchAllProductClassesRequest.md +44 -0
  84. package/docs/SearchOrdersRequest.md +2 -0
  85. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  86. package/docs/StoreSpecialDateResource.md +1 -1
  87. package/docs/SupplierFrontendResource.md +2 -0
  88. package/docs/SupplierResource.md +2 -0
  89. package/docs/UpdatePageComponentRequest.md +2 -2
  90. package/docs/UpdateSupplierRequest.md +2 -0
  91. package/package.json +1 -1
  92. package/src/apis/ProductClassApi.ts +76 -0
  93. package/src/apis/index.ts +1 -0
  94. package/src/models/AddressFrontendResource.ts +3 -2
  95. package/src/models/AddressResource.ts +3 -2
  96. package/src/models/AdminOrderResource.ts +4 -11
  97. package/src/models/{CartCouponResource.ts → AppliedCouponResource.ts} +14 -14
  98. package/src/models/AppliedCouponResourceArrayResponse.ts +73 -0
  99. package/src/models/CartListResource.ts +9 -0
  100. package/src/models/CategoryAutomationFieldType.ts +3 -1
  101. package/src/models/CreatePageComponentRequest.ts +8 -8
  102. package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
  103. package/src/models/CreateSupplierRequest.ts +8 -0
  104. package/src/models/ExternalApiLogResource.ts +3 -2
  105. package/src/models/FrontendCartResource.ts +27 -0
  106. package/src/models/FrontendOrderResource.ts +11 -11
  107. package/src/models/OrderFulfillmentResource.ts +4 -6
  108. package/src/models/OrderStatusWithCountResource.ts +18 -0
  109. package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
  110. package/src/models/ProductClassLiteResource.ts +83 -0
  111. package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
  112. package/src/models/ProductClassResource.ts +2 -2
  113. package/src/models/SearchAllOrdersRequest.ts +8 -0
  114. package/src/models/SearchAllProductClassesRequest.ts +125 -0
  115. package/src/models/SearchOrdersRequest.ts +8 -0
  116. package/src/models/StoreFrontendResource.ts +2 -3
  117. package/src/models/StoreListResource.ts +2 -3
  118. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  119. package/src/models/StoreSpecialDateResource.ts +3 -4
  120. package/src/models/SupplierFrontendResource.ts +9 -0
  121. package/src/models/SupplierResource.ts +9 -0
  122. package/src/models/UpdatePageComponentRequest.ts +8 -8
  123. package/src/models/UpdateSupplierRequest.ts +8 -0
  124. package/src/models/index.ts +6 -2
  125. package/dist/models/CartCouponResource.d.ts +0 -50
  126. package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
  127. package/dist/models/CartCouponResourceArrayResponse.js +0 -50
  128. package/src/models/CartCouponResourceArrayResponse.ts +0 -73
@@ -44,7 +44,7 @@ Name | Type
44
44
  `admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
45
45
  `status` | [OrderStatusLiteResource](OrderStatusLiteResource.md)
46
46
  `lineItems` | [Array<AdminOrderLineItemResource>](AdminOrderLineItemResource.md)
47
- `coupons` | [Array<CartCouponResource>](CartCouponResource.md)
47
+ `coupons` | object
48
48
  `discounts` | [Array<DiscountResource>](DiscountResource.md)
49
49
  `transactions` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
50
50
  `shippingAddress` | [AddressResource](AddressResource.md)
@@ -1,5 +1,5 @@
1
1
 
2
- # CartCouponResource
2
+ # AppliedCouponResource
3
3
 
4
4
 
5
5
  ## Properties
@@ -14,7 +14,7 @@ Name | Type
14
14
  ## Example
15
15
 
16
16
  ```typescript
17
- import type { CartCouponResource } from '@digital8/lighting-illusions-ts-sdk'
17
+ import type { AppliedCouponResource } from '@digital8/lighting-illusions-ts-sdk'
18
18
 
19
19
  // TODO: Update the object below with actual values
20
20
  const example = {
@@ -22,7 +22,7 @@ const example = {
22
22
  "code": null,
23
23
  "name": null,
24
24
  "discountTotal": null,
25
- } satisfies CartCouponResource
25
+ } satisfies AppliedCouponResource
26
26
 
27
27
  console.log(example)
28
28
 
@@ -31,7 +31,7 @@ const exampleJSON: string = JSON.stringify(example)
31
31
  console.log(exampleJSON)
32
32
 
33
33
  // Parse the JSON string back to an object
34
- const exampleParsed = JSON.parse(exampleJSON) as CartCouponResource
34
+ const exampleParsed = JSON.parse(exampleJSON) as AppliedCouponResource
35
35
  console.log(exampleParsed)
36
36
  ```
37
37
 
@@ -1,22 +1,22 @@
1
1
 
2
- # CartCouponResourceArrayResponse
2
+ # AppliedCouponResourceArrayResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<CartCouponResource>](CartCouponResource.md)
9
+ `data` | [Array<AppliedCouponResource>](AppliedCouponResource.md)
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { CartCouponResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { AppliedCouponResourceArrayResponse } 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 AppliedCouponResourceArrayResponse
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 AppliedCouponResourceArrayResponse
29
29
  console.log(exampleParsed)
30
30
  ```
31
31
 
@@ -11,6 +11,7 @@ Name | Type
11
11
  `source` | string
12
12
  `checkoutCompletedAt` | Date
13
13
  `createdAt` | Date
14
+ `expiryDate` | Date
14
15
  `site` | [SiteLiteResource](SiteLiteResource.md)
15
16
  `customer` | [CustomerListResource](CustomerListResource.md)
16
17
  `lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
@@ -29,6 +30,7 @@ const example = {
29
30
  "source": null,
30
31
  "checkoutCompletedAt": null,
31
32
  "createdAt": null,
33
+ "expiryDate": null,
32
34
  "site": null,
33
35
  "customer": null,
34
36
  "lineItems": null,
@@ -11,8 +11,8 @@ Name | Type
11
11
  `type` | string
12
12
  `disabled` | boolean
13
13
  `order` | number
14
- `startDate` | Date
15
- `endDate` | Date
14
+ `startDate` | string
15
+ `endDate` | string
16
16
  `componentData` | object
17
17
  `relations` | [Array<CreatePageComponentRequestRelationsInner>](CreatePageComponentRequestRelationsInner.md)
18
18
 
@@ -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,
@@ -18,11 +18,14 @@ Name | Type
18
18
  `lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
19
19
  `coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
20
20
  `subtotal` | number
21
+ `subtotalAfterDiscounts` | number
21
22
  `promotionalDiscount` | number
22
23
  `couponSubtotalDiscount` | number
23
24
  `couponShippingDiscount` | number
24
25
  `shipping` | number
25
26
  `transitInsurance` | number
27
+ `deliveryShippingQuote` | number
28
+ `transitInsuranceQuote` | number
26
29
  `gst` | number
27
30
  `grandTotal` | number
28
31
 
@@ -45,11 +48,14 @@ const example = {
45
48
  "lineItems": null,
46
49
  "coupons": null,
47
50
  "subtotal": null,
51
+ "subtotalAfterDiscounts": null,
48
52
  "promotionalDiscount": null,
49
53
  "couponSubtotalDiscount": null,
50
54
  "couponShippingDiscount": null,
51
55
  "shipping": null,
52
56
  "transitInsurance": null,
57
+ "deliveryShippingQuote": null,
58
+ "transitInsuranceQuote": null,
53
59
  "gst": null,
54
60
  "grandTotal": null,
55
61
  } satisfies FrontendCartResource
@@ -19,7 +19,7 @@ Name | Type
19
19
  `shippingAddress` | [AddressResource](AddressResource.md)
20
20
  `billingAddress` | [AddressResource](AddressResource.md)
21
21
  `lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
22
- `coupons` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
22
+ `coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
23
23
  `subtotal` | number
24
24
  `promotionalDiscount` | number
25
25
  `couponSubtotalDiscount` | number
@@ -8,6 +8,8 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
10
  `name` | string
11
+ `shortName` | string
12
+ `displayOrder` | number
11
13
  `isOrderNetsuiteSyncable` | boolean
12
14
  `ordersCount` | number
13
15
 
@@ -20,6 +22,8 @@ import type { OrderStatusWithCountResource } from '@digital8/lighting-illusions-
20
22
  const example = {
21
23
  "id": null,
22
24
  "name": null,
25
+ "shortName": null,
26
+ "displayOrder": null,
23
27
  "isOrderNetsuiteSyncable": null,
24
28
  "ordersCount": null,
25
29
  } satisfies OrderStatusWithCountResource
@@ -0,0 +1,36 @@
1
+
2
+ # PaginatedProductClassLiteResourceResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PaginatedProductClassLiteResourceResponse } 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 PaginatedProductClassLiteResourceResponse
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 PaginatedProductClassLiteResourceResponse
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,74 @@
1
+ # ProductClassApi
2
+
3
+ All URIs are relative to *http://localhost/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getAllProductClass**](ProductClassApi.md#getallproductclass) | **POST** /admin-api/product-class/all | Auto-generated: getAllProductClass |
8
+
9
+
10
+
11
+ ## getAllProductClass
12
+
13
+ > ProductClassLiteResourceArrayResponse getAllProductClass(searchAllProductClassesRequest)
14
+
15
+ Auto-generated: getAllProductClass
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ ProductClassApi,
23
+ } from '@digital8/lighting-illusions-ts-sdk';
24
+ import type { GetAllProductClassRequest } from '@digital8/lighting-illusions-ts-sdk';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
28
+ const api = new ProductClassApi();
29
+
30
+ const body = {
31
+ // SearchAllProductClassesRequest (optional)
32
+ searchAllProductClassesRequest: ...,
33
+ } satisfies GetAllProductClassRequest;
34
+
35
+ try {
36
+ const data = await api.getAllProductClass(body);
37
+ console.log(data);
38
+ } catch (error) {
39
+ console.error(error);
40
+ }
41
+ }
42
+
43
+ // Run the test
44
+ example().catch(console.error);
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+
50
+ | Name | Type | Description | Notes |
51
+ |------------- | ------------- | ------------- | -------------|
52
+ | **searchAllProductClassesRequest** | [SearchAllProductClassesRequest](SearchAllProductClassesRequest.md) | | [Optional] |
53
+
54
+ ### Return type
55
+
56
+ [**ProductClassLiteResourceArrayResponse**](ProductClassLiteResourceArrayResponse.md)
57
+
58
+ ### Authorization
59
+
60
+ No authorization required
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: `application/json`
65
+ - **Accept**: `application/json`
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ | **200** | Successful resource response | - |
72
+
73
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
74
+
@@ -0,0 +1,38 @@
1
+
2
+ # ProductClassLiteResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+ `pathString` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ProductClassLiteResource } from '@digital8/lighting-illusions-ts-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "id": null,
21
+ "name": null,
22
+ "pathString": null,
23
+ } satisfies ProductClassLiteResource
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as ProductClassLiteResource
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,34 @@
1
+
2
+ # ProductClassLiteResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ProductClassLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies ProductClassLiteResourceArrayResponse
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 ProductClassLiteResourceArrayResponse
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
+
@@ -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)
@@ -0,0 +1,44 @@
1
+
2
+ # SearchAllProductClassesRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `search` | string
10
+ `sortBy` | string
11
+ `sortDirection` | string
12
+ `relatedId` | number
13
+ `relatedType` | string
14
+ `includesRelations` | boolean
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { SearchAllProductClassesRequest } from '@digital8/lighting-illusions-ts-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "search": null,
24
+ "sortBy": null,
25
+ "sortDirection": null,
26
+ "relatedId": null,
27
+ "relatedType": null,
28
+ "includesRelations": null,
29
+ } satisfies SearchAllProductClassesRequest
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as SearchAllProductClassesRequest
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -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
@@ -42,6 +43,7 @@ const example = {
42
43
  "source": null,
43
44
  "statusId": null,
44
45
  "customerId": null,
46
+ "lineItemsLabelId": null,
45
47
  "beforeCreatedAt": null,
46
48
  "afterCreatedAt": null,
47
49
  "beforePlacedAt": null,
@@ -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` | object
12
+ `date` | string
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.2349",
3
+ "version": "0.0.2350",
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
@@ -21,6 +21,7 @@ export * from './PageApi';
21
21
  export * from './PageComponentApi';
22
22
  export * from './ProductApi';
23
23
  export * from './ProductCategoryApi';
24
+ export * from './ProductClassApi';
24
25
  export * from './ProductRangeApi';
25
26
  export * from './ProductRegistrationApi';
26
27
  export * from './ProductTypeApi';
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2?: string | null;
39
+ line2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -74,6 +74,7 @@ export interface AddressFrontendResource {
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
76
  if (!('line1' in value) || value['line1'] === undefined) return false;
77
+ if (!('line2' in value) || value['line2'] === undefined) return false;
77
78
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
78
79
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
79
80
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -94,7 +95,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
94
95
 
95
96
  'company': json['company'] == null ? undefined : json['company'],
96
97
  'line1': json['line1'],
97
- 'line2': json['line2'] == null ? undefined : json['line2'],
98
+ 'line2': json['line2'],
98
99
  'postcode': json['postcode'],
99
100
  'suburb': json['suburb'],
100
101
  'country': json['country'],