@digital8/lighting-illusions-ts-sdk 0.0.534 → 0.0.536

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 (93) hide show
  1. package/.openapi-generator/FILES +28 -4
  2. package/README.md +16 -4
  3. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  4. package/dist/models/ExternalApiLogResource.js +1 -3
  5. package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
  6. package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
  7. package/dist/models/ProductAggregationResource.d.ts +50 -0
  8. package/dist/models/ProductAggregationResource.js +63 -0
  9. package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/ProductAggregationResourceArrayResponse.js +50 -0
  11. package/dist/models/ProductCategoryResource.d.ts +14 -0
  12. package/dist/models/ProductCategoryResource.js +10 -0
  13. package/dist/models/ProductRating.d.ts +26 -0
  14. package/dist/models/ProductRating.js +52 -0
  15. package/dist/models/ProductSearchResponseResource.d.ts +54 -0
  16. package/dist/models/ProductSearchResponseResource.js +67 -0
  17. package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
  19. package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
  20. package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
  21. package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
  22. package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
  23. package/dist/models/ProductSearchResultResource.d.ts +116 -0
  24. package/dist/models/ProductSearchResultResource.js +105 -0
  25. package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
  27. package/dist/models/ProductSortBy.d.ts +32 -0
  28. package/dist/models/ProductSortBy.js +58 -0
  29. package/dist/models/ProductStatus.d.ts +24 -0
  30. package/dist/models/ProductStatus.js +50 -0
  31. package/dist/models/StoreProductCategoryRequest.d.ts +23 -1
  32. package/dist/models/StoreProductCategoryRequest.js +14 -0
  33. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +27 -2
  34. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +24 -0
  35. package/dist/models/StoreProductCategoryRequestDescriptionsInner.d.ts +44 -0
  36. package/dist/models/StoreProductCategoryRequestDescriptionsInner.js +55 -0
  37. package/dist/models/StoreProductCategoryRequestSeoInner.d.ts +44 -0
  38. package/dist/models/StoreProductCategoryRequestSeoInner.js +55 -0
  39. package/dist/models/StoreSupplierRequest.d.ts +6 -6
  40. package/dist/models/StoreSupplierRequest.js +6 -6
  41. package/dist/models/UpdateProductCategoryRequest.d.ts +24 -2
  42. package/dist/models/UpdateProductCategoryRequest.js +17 -1
  43. package/dist/models/UpdateSupplierRequest.d.ts +6 -6
  44. package/dist/models/UpdateSupplierRequest.js +6 -6
  45. package/dist/models/index.d.ts +14 -2
  46. package/dist/models/index.js +14 -2
  47. package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
  48. package/docs/ProductAggregationResource.md +40 -0
  49. package/docs/ProductAggregationResourceArrayResponse.md +34 -0
  50. package/docs/ProductCategoryResource.md +4 -0
  51. package/docs/ProductRating.md +32 -0
  52. package/docs/ProductSearchResponseResource.md +40 -0
  53. package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
  54. package/docs/ProductSearchResponseResourceMeta.md +40 -0
  55. package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
  56. package/docs/ProductSearchResultResource.md +62 -0
  57. package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
  58. package/docs/ProductSortBy.md +32 -0
  59. package/docs/ProductStatus.md +32 -0
  60. package/docs/StoreProductCategoryRequest.md +4 -0
  61. package/docs/{StoreSupplierRequestDescriptionsInner.md → StoreProductCategoryRequestDescriptionsInner.md} +4 -4
  62. package/docs/{StoreSupplierRequestSeoInner.md → StoreProductCategoryRequestSeoInner.md} +4 -4
  63. package/docs/StoreSupplierRequest.md +2 -2
  64. package/docs/UpdateProductCategoryRequest.md +4 -0
  65. package/docs/UpdateSupplierRequest.md +2 -2
  66. package/package.json +1 -1
  67. package/src/models/ExternalApiLogResource.ts +2 -3
  68. package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
  69. package/src/models/ProductAggregationResource.ts +93 -0
  70. package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
  71. package/src/models/ProductCategoryResource.ts +32 -0
  72. package/src/models/ProductRating.ts +54 -0
  73. package/src/models/ProductSearchResponseResource.ts +122 -0
  74. package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
  75. package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
  76. package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
  77. package/src/models/ProductSearchResultResource.ts +191 -0
  78. package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
  79. package/src/models/ProductSortBy.ts +60 -0
  80. package/src/models/ProductStatus.ts +52 -0
  81. package/src/models/StoreProductCategoryRequest.ts +42 -1
  82. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +31 -2
  83. package/src/models/StoreProductCategoryRequestDescriptionsInner.ts +82 -0
  84. package/src/models/{StoreSupplierRequestSeoInner.ts → StoreProductCategoryRequestSeoInner.ts} +13 -13
  85. package/src/models/StoreSupplierRequest.ts +20 -20
  86. package/src/models/UpdateProductCategoryRequest.ts +45 -3
  87. package/src/models/UpdateSupplierRequest.ts +20 -20
  88. package/src/models/index.ts +14 -2
  89. package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +0 -44
  90. package/dist/models/StoreSupplierRequestDescriptionsInner.js +0 -55
  91. package/dist/models/StoreSupplierRequestSeoInner.d.ts +0 -44
  92. package/dist/models/StoreSupplierRequestSeoInner.js +0 -55
  93. package/src/models/StoreSupplierRequestDescriptionsInner.ts +0 -82
@@ -0,0 +1,62 @@
1
+
2
+ # ProductSearchResultResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `sku` | string
11
+ `model` | string
12
+ `name` | string
13
+ `slug` | string
14
+ `price` | number
15
+ `salePrice` | number
16
+ `thumbnail` | string
17
+ `averageRating` | string
18
+ `labelDetails` | Array<number>
19
+ `categories` | Array<object>
20
+ `supplierName` | string
21
+ `supplierId` | number
22
+ `availability` | string
23
+ `wishlisted` | boolean
24
+
25
+ ## Example
26
+
27
+ ```typescript
28
+ import type { ProductSearchResultResource } from '@digital8/lighting-illusions-ts-sdk'
29
+
30
+ // TODO: Update the object below with actual values
31
+ const example = {
32
+ "id": null,
33
+ "sku": null,
34
+ "model": null,
35
+ "name": null,
36
+ "slug": null,
37
+ "price": null,
38
+ "salePrice": null,
39
+ "thumbnail": null,
40
+ "averageRating": null,
41
+ "labelDetails": null,
42
+ "categories": null,
43
+ "supplierName": null,
44
+ "supplierId": null,
45
+ "availability": null,
46
+ "wishlisted": null,
47
+ } satisfies ProductSearchResultResource
48
+
49
+ console.log(example)
50
+
51
+ // Convert the instance to a JSON string
52
+ const exampleJSON: string = JSON.stringify(example)
53
+ console.log(exampleJSON)
54
+
55
+ // Parse the JSON string back to an object
56
+ const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResultResource
57
+ console.log(exampleParsed)
58
+ ```
59
+
60
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
61
+
62
+
@@ -0,0 +1,34 @@
1
+
2
+ # ProductSearchResultResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<ProductSearchResultResource>](ProductSearchResultResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ProductSearchResultResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies ProductSearchResultResourceArrayResponse
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 ProductSearchResultResourceArrayResponse
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
+ # ProductSortBy
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { ProductSortBy } from '@digital8/lighting-illusions-ts-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies ProductSortBy
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 ProductSortBy
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
+
@@ -0,0 +1,32 @@
1
+
2
+ # ProductStatus
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { ProductStatus } from '@digital8/lighting-illusions-ts-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies ProductStatus
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 ProductStatus
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
+
@@ -19,6 +19,8 @@ Name | Type
19
19
  `altText` | string
20
20
  `mimeType` | string
21
21
  `fileId` | number
22
+ `seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
23
+ `descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
22
24
 
23
25
  ## Example
24
26
 
@@ -40,6 +42,8 @@ const example = {
40
42
  "altText": null,
41
43
  "mimeType": null,
42
44
  "fileId": null,
45
+ "seo": null,
46
+ "descriptions": null,
43
47
  } satisfies StoreProductCategoryRequest
44
48
 
45
49
  console.log(example)
@@ -1,5 +1,5 @@
1
1
 
2
- # StoreSupplierRequestDescriptionsInner
2
+ # StoreProductCategoryRequestDescriptionsInner
3
3
 
4
4
 
5
5
  ## Properties
@@ -13,14 +13,14 @@ Name | Type
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import type { StoreSupplierRequestDescriptionsInner } from '@digital8/lighting-illusions-ts-sdk'
16
+ import type { StoreProductCategoryRequestDescriptionsInner } from '@digital8/lighting-illusions-ts-sdk'
17
17
 
18
18
  // TODO: Update the object below with actual values
19
19
  const example = {
20
20
  "headerDescription": null,
21
21
  "footerDescription": null,
22
22
  "siteId": null,
23
- } satisfies StoreSupplierRequestDescriptionsInner
23
+ } satisfies StoreProductCategoryRequestDescriptionsInner
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 StoreSupplierRequestDescriptionsInner
32
+ const exampleParsed = JSON.parse(exampleJSON) as StoreProductCategoryRequestDescriptionsInner
33
33
  console.log(exampleParsed)
34
34
  ```
35
35
 
@@ -1,5 +1,5 @@
1
1
 
2
- # StoreSupplierRequestSeoInner
2
+ # StoreProductCategoryRequestSeoInner
3
3
 
4
4
 
5
5
  ## Properties
@@ -13,14 +13,14 @@ Name | Type
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import type { StoreSupplierRequestSeoInner } from '@digital8/lighting-illusions-ts-sdk'
16
+ import type { StoreProductCategoryRequestSeoInner } from '@digital8/lighting-illusions-ts-sdk'
17
17
 
18
18
  // TODO: Update the object below with actual values
19
19
  const example = {
20
20
  "seoTitle": null,
21
21
  "seoDescription": null,
22
22
  "siteId": null,
23
- } satisfies StoreSupplierRequestSeoInner
23
+ } satisfies StoreProductCategoryRequestSeoInner
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 StoreSupplierRequestSeoInner
32
+ const exampleParsed = JSON.parse(exampleJSON) as StoreProductCategoryRequestSeoInner
33
33
  console.log(exampleParsed)
34
34
  ```
35
35
 
@@ -9,11 +9,11 @@ Name | Type
9
9
  `name` | string
10
10
  `slug` | string
11
11
  `supplierEta` | number
12
- `seo` | [Array<StoreSupplierRequestSeoInner>](StoreSupplierRequestSeoInner.md)
12
+ `seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
13
13
  `altText` | string
14
14
  `mimeType` | string
15
15
  `fileId` | number
16
- `descriptions` | [Array<StoreSupplierRequestDescriptionsInner>](StoreSupplierRequestDescriptionsInner.md)
16
+ `descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
17
17
 
18
18
  ## Example
19
19
 
@@ -19,6 +19,8 @@ Name | Type
19
19
  `altText` | string
20
20
  `mimeType` | string
21
21
  `fileId` | number
22
+ `seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
23
+ `descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
22
24
 
23
25
  ## Example
24
26
 
@@ -40,6 +42,8 @@ const example = {
40
42
  "altText": null,
41
43
  "mimeType": null,
42
44
  "fileId": null,
45
+ "seo": null,
46
+ "descriptions": null,
43
47
  } satisfies UpdateProductCategoryRequest
44
48
 
45
49
  console.log(example)
@@ -9,11 +9,11 @@ Name | Type
9
9
  `name` | string
10
10
  `slug` | string
11
11
  `supplierEta` | number
12
- `seo` | [Array<StoreSupplierRequestSeoInner>](StoreSupplierRequestSeoInner.md)
12
+ `seo` | [Array<StoreProductCategoryRequestSeoInner>](StoreProductCategoryRequestSeoInner.md)
13
13
  `altText` | string
14
14
  `mimeType` | string
15
15
  `fileId` | number
16
- `descriptions` | [Array<StoreSupplierRequestDescriptionsInner>](StoreSupplierRequestDescriptionsInner.md)
16
+ `descriptions` | [Array<StoreProductCategoryRequestDescriptionsInner>](StoreProductCategoryRequestDescriptionsInner.md)
17
17
 
18
18
  ## Example
19
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.534",
3
+ "version": "0.0.536",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -0,0 +1,90 @@
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 { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { ProductSearchResultResource } from './ProductSearchResultResource';
24
+ import {
25
+ ProductSearchResultResourceFromJSON,
26
+ ProductSearchResultResourceFromJSONTyped,
27
+ ProductSearchResultResourceToJSON,
28
+ ProductSearchResultResourceToJSONTyped,
29
+ } from './ProductSearchResultResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedProductSearchResultResourceResponse
35
+ */
36
+ export interface PaginatedProductSearchResultResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ProductSearchResultResource>}
40
+ * @memberof PaginatedProductSearchResultResourceResponse
41
+ */
42
+ data: Array<ProductSearchResultResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedProductSearchResultResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedProductSearchResultResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedProductSearchResultResourceResponse(value: object): value is PaginatedProductSearchResultResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedProductSearchResultResourceResponseFromJSON(json: any): PaginatedProductSearchResultResourceResponse {
61
+ return PaginatedProductSearchResultResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedProductSearchResultResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductSearchResultResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(ProductSearchResultResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedProductSearchResultResourceResponseToJSON(json: any): PaginatedProductSearchResultResourceResponse {
76
+ return PaginatedProductSearchResultResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedProductSearchResultResourceResponseToJSONTyped(value?: PaginatedProductSearchResultResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(ProductSearchResultResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,93 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProductAggregationResource
20
+ */
21
+ export interface ProductAggregationResource {
22
+ /**
23
+ *
24
+ * @type {object}
25
+ * @memberof ProductAggregationResource
26
+ */
27
+ attributes: object;
28
+ /**
29
+ *
30
+ * @type {Array<object>}
31
+ * @memberof ProductAggregationResource
32
+ */
33
+ priceRanges: Array<object>;
34
+ /**
35
+ *
36
+ * @type {Array<object>}
37
+ * @memberof ProductAggregationResource
38
+ */
39
+ brands: Array<object>;
40
+ /**
41
+ *
42
+ * @type {Array<object>}
43
+ * @memberof ProductAggregationResource
44
+ */
45
+ ratings: Array<object>;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ProductAggregationResource interface.
50
+ */
51
+ export function instanceOfProductAggregationResource(value: object): value is ProductAggregationResource {
52
+ if (!('attributes' in value) || value['attributes'] === undefined) return false;
53
+ if (!('priceRanges' in value) || value['priceRanges'] === undefined) return false;
54
+ if (!('brands' in value) || value['brands'] === undefined) return false;
55
+ if (!('ratings' in value) || value['ratings'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ProductAggregationResourceFromJSON(json: any): ProductAggregationResource {
60
+ return ProductAggregationResourceFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductAggregationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResource {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'attributes': json['attributes'],
70
+ 'priceRanges': json['priceRanges'],
71
+ 'brands': json['brands'],
72
+ 'ratings': json['ratings'],
73
+ };
74
+ }
75
+
76
+ export function ProductAggregationResourceToJSON(json: any): ProductAggregationResource {
77
+ return ProductAggregationResourceToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ProductAggregationResourceToJSONTyped(value?: ProductAggregationResource | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'attributes': value['attributes'],
88
+ 'priceRanges': value['priceRanges'],
89
+ 'brands': value['brands'],
90
+ 'ratings': value['ratings'],
91
+ };
92
+ }
93
+
@@ -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 { ProductAggregationResource } from './ProductAggregationResource';
17
+ import {
18
+ ProductAggregationResourceFromJSON,
19
+ ProductAggregationResourceFromJSONTyped,
20
+ ProductAggregationResourceToJSON,
21
+ ProductAggregationResourceToJSONTyped,
22
+ } from './ProductAggregationResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductAggregationResourceArrayResponse
28
+ */
29
+ export interface ProductAggregationResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductAggregationResource>}
33
+ * @memberof ProductAggregationResourceArrayResponse
34
+ */
35
+ data?: Array<ProductAggregationResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductAggregationResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductAggregationResourceArrayResponse(value: object): value is ProductAggregationResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductAggregationResourceArrayResponseFromJSON(json: any): ProductAggregationResourceArrayResponse {
46
+ return ProductAggregationResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductAggregationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductAggregationResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductAggregationResourceArrayResponseToJSON(json: any): ProductAggregationResourceArrayResponse {
60
+ return ProductAggregationResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductAggregationResourceArrayResponseToJSONTyped(value?: ProductAggregationResourceArrayResponse | 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(ProductAggregationResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -20,6 +20,13 @@ import {
20
20
  SiteLiteResourceToJSON,
21
21
  SiteLiteResourceToJSONTyped,
22
22
  } from './SiteLiteResource';
23
+ import type { DescriptionResource } from './DescriptionResource';
24
+ import {
25
+ DescriptionResourceFromJSON,
26
+ DescriptionResourceFromJSONTyped,
27
+ DescriptionResourceToJSON,
28
+ DescriptionResourceToJSONTyped,
29
+ } from './DescriptionResource';
23
30
  import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
24
31
  import {
25
32
  ProductCategoryLiteResourceFromJSON,
@@ -34,6 +41,13 @@ import {
34
41
  AssetResourceToJSON,
35
42
  AssetResourceToJSONTyped,
36
43
  } from './AssetResource';
44
+ import type { SEOResource } from './SEOResource';
45
+ import {
46
+ SEOResourceFromJSON,
47
+ SEOResourceFromJSONTyped,
48
+ SEOResourceToJSON,
49
+ SEOResourceToJSONTyped,
50
+ } from './SEOResource';
37
51
 
38
52
  /**
39
53
  *
@@ -119,6 +133,18 @@ export interface ProductCategoryResource {
119
133
  * @memberof ProductCategoryResource
120
134
  */
121
135
  site: SiteLiteResource | null;
136
+ /**
137
+ *
138
+ * @type {Array<SEOResource>}
139
+ * @memberof ProductCategoryResource
140
+ */
141
+ seo: Array<SEOResource> | null;
142
+ /**
143
+ *
144
+ * @type {Array<DescriptionResource>}
145
+ * @memberof ProductCategoryResource
146
+ */
147
+ descriptions: Array<DescriptionResource> | null;
122
148
  }
123
149
 
124
150
  /**
@@ -135,6 +161,8 @@ export function instanceOfProductCategoryResource(value: object): value is Produ
135
161
  if (!('automationRules' in value) || value['automationRules'] === undefined) return false;
136
162
  if (!('parent' in value) || value['parent'] === undefined) return false;
137
163
  if (!('site' in value) || value['site'] === undefined) return false;
164
+ if (!('seo' in value) || value['seo'] === undefined) return false;
165
+ if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
138
166
  return true;
139
167
  }
140
168
 
@@ -161,6 +189,8 @@ export function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscrimina
161
189
  'automationRules': json['automationRules'],
162
190
  'parent': ProductCategoryLiteResourceFromJSON(json['parent']),
163
191
  'site': SiteLiteResourceFromJSON(json['site']),
192
+ 'seo': (json['seo'] == null ? null : (json['seo'] as Array<any>).map(SEOResourceFromJSON)),
193
+ 'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
164
194
  };
165
195
  }
166
196
 
@@ -188,6 +218,8 @@ export function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResour
188
218
  'automationRules': value['automationRules'],
189
219
  'parent': ProductCategoryLiteResourceToJSON(value['parent']),
190
220
  'site': SiteLiteResourceToJSON(value['site']),
221
+ 'seo': (value['seo'] == null ? null : (value['seo'] as Array<any>).map(SEOResourceToJSON)),
222
+ 'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
191
223
  };
192
224
  }
193
225