@digital8/lighting-illusions-ts-sdk 0.0.525 → 0.0.527

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 (61) hide show
  1. package/.openapi-generator/FILES +0 -22
  2. package/README.md +2 -13
  3. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  4. package/dist/models/ExternalApiLogResource.js +3 -1
  5. package/dist/models/StoreProductChildRequestAssetsInner.d.ts +1 -1
  6. package/dist/models/StoreProductChildRequestAssetsInner.js +3 -3
  7. package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +1 -1
  8. package/dist/models/UpdateProductChildRequestAssetsInner.js +3 -3
  9. package/dist/models/index.d.ts +0 -11
  10. package/dist/models/index.js +0 -11
  11. package/docs/StoreProductChildRequestAssetsInner.md +2 -2
  12. package/docs/UpdateProductChildRequestAssetsInner.md +2 -2
  13. package/package.json +1 -1
  14. package/src/models/ExternalApiLogResource.ts +3 -2
  15. package/src/models/StoreProductChildRequestAssetsInner.ts +4 -4
  16. package/src/models/UpdateProductChildRequestAssetsInner.ts +4 -4
  17. package/src/models/index.ts +0 -11
  18. package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +0 -40
  19. package/dist/models/PaginatedProductSearchResultResourceResponse.js +0 -57
  20. package/dist/models/ProductAggregationResource.d.ts +0 -50
  21. package/dist/models/ProductAggregationResource.js +0 -63
  22. package/dist/models/ProductAggregationResourceArrayResponse.d.ts +0 -33
  23. package/dist/models/ProductAggregationResourceArrayResponse.js +0 -50
  24. package/dist/models/ProductRating.d.ts +0 -26
  25. package/dist/models/ProductRating.js +0 -52
  26. package/dist/models/ProductSearchResponseResource.d.ts +0 -54
  27. package/dist/models/ProductSearchResponseResource.js +0 -67
  28. package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +0 -33
  29. package/dist/models/ProductSearchResponseResourceArrayResponse.js +0 -50
  30. package/dist/models/ProductSearchResponseResourceMeta.d.ts +0 -50
  31. package/dist/models/ProductSearchResponseResourceMeta.js +0 -63
  32. package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +0 -50
  33. package/dist/models/ProductSearchResponseResourcePriceInfo.js +0 -63
  34. package/dist/models/ProductSearchResultResource.d.ts +0 -116
  35. package/dist/models/ProductSearchResultResource.js +0 -105
  36. package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +0 -33
  37. package/dist/models/ProductSearchResultResourceArrayResponse.js +0 -50
  38. package/dist/models/ProductSortBy.d.ts +0 -32
  39. package/dist/models/ProductSortBy.js +0 -58
  40. package/docs/PaginatedProductSearchResultResourceResponse.md +0 -36
  41. package/docs/ProductAggregationResource.md +0 -40
  42. package/docs/ProductAggregationResourceArrayResponse.md +0 -34
  43. package/docs/ProductRating.md +0 -32
  44. package/docs/ProductSearchResponseResource.md +0 -40
  45. package/docs/ProductSearchResponseResourceArrayResponse.md +0 -34
  46. package/docs/ProductSearchResponseResourceMeta.md +0 -40
  47. package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
  48. package/docs/ProductSearchResultResource.md +0 -62
  49. package/docs/ProductSearchResultResourceArrayResponse.md +0 -34
  50. package/docs/ProductSortBy.md +0 -32
  51. package/src/models/PaginatedProductSearchResultResourceResponse.ts +0 -90
  52. package/src/models/ProductAggregationResource.ts +0 -93
  53. package/src/models/ProductAggregationResourceArrayResponse.ts +0 -73
  54. package/src/models/ProductRating.ts +0 -54
  55. package/src/models/ProductSearchResponseResource.ts +0 -122
  56. package/src/models/ProductSearchResponseResourceArrayResponse.ts +0 -73
  57. package/src/models/ProductSearchResponseResourceMeta.ts +0 -93
  58. package/src/models/ProductSearchResponseResourcePriceInfo.ts +0 -93
  59. package/src/models/ProductSearchResultResource.ts +0 -191
  60. package/src/models/ProductSearchResultResourceArrayResponse.ts +0 -73
  61. package/src/models/ProductSortBy.ts +0 -60
@@ -1,40 +0,0 @@
1
-
2
- # ProductSearchResponseResourcePriceInfo
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `minPrice` | number
10
- `maxPrice` | number
11
- `lowestPrice` | number
12
- `highestPrice` | number
13
-
14
- ## Example
15
-
16
- ```typescript
17
- import type { ProductSearchResponseResourcePriceInfo } from '@digital8/lighting-illusions-ts-sdk'
18
-
19
- // TODO: Update the object below with actual values
20
- const example = {
21
- "minPrice": 49.99,
22
- "maxPrice": 899.99,
23
- "lowestPrice": 29.99,
24
- "highestPrice": 1299.99,
25
- } satisfies ProductSearchResponseResourcePriceInfo
26
-
27
- console.log(example)
28
-
29
- // Convert the instance to a JSON string
30
- const exampleJSON: string = JSON.stringify(example)
31
- console.log(exampleJSON)
32
-
33
- // Parse the JSON string back to an object
34
- const exampleParsed = JSON.parse(exampleJSON) as ProductSearchResponseResourcePriceInfo
35
- console.log(exampleParsed)
36
- ```
37
-
38
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
-
40
-
@@ -1,62 +0,0 @@
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
-
@@ -1,34 +0,0 @@
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
-
@@ -1,32 +0,0 @@
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
-
@@ -1,90 +0,0 @@
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
-
@@ -1,93 +0,0 @@
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 {Array<object>}
25
- * @memberof ProductAggregationResource
26
- */
27
- attributes: Array<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
-
@@ -1,73 +0,0 @@
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
-
@@ -1,54 +0,0 @@
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
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const ProductRating = {
21
- _5: '5',
22
- _4: '4',
23
- _3: '3'
24
- } as const;
25
- export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
26
-
27
-
28
- export function instanceOfProductRating(value: any): boolean {
29
- for (const key in ProductRating) {
30
- if (Object.prototype.hasOwnProperty.call(ProductRating, key)) {
31
- if (ProductRating[key as keyof typeof ProductRating] === value) {
32
- return true;
33
- }
34
- }
35
- }
36
- return false;
37
- }
38
-
39
- export function ProductRatingFromJSON(json: any): ProductRating {
40
- return ProductRatingFromJSONTyped(json, false);
41
- }
42
-
43
- export function ProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRating {
44
- return json as ProductRating;
45
- }
46
-
47
- export function ProductRatingToJSON(value?: ProductRating | null): any {
48
- return value as any;
49
- }
50
-
51
- export function ProductRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRating {
52
- return value as ProductRating;
53
- }
54
-
@@ -1,122 +0,0 @@
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 { ProductSearchResultResource } from './ProductSearchResultResource';
17
- import {
18
- ProductSearchResultResourceFromJSON,
19
- ProductSearchResultResourceFromJSONTyped,
20
- ProductSearchResultResourceToJSON,
21
- ProductSearchResultResourceToJSONTyped,
22
- } from './ProductSearchResultResource';
23
- import type { ProductSearchResponseResourceMeta } from './ProductSearchResponseResourceMeta';
24
- import {
25
- ProductSearchResponseResourceMetaFromJSON,
26
- ProductSearchResponseResourceMetaFromJSONTyped,
27
- ProductSearchResponseResourceMetaToJSON,
28
- ProductSearchResponseResourceMetaToJSONTyped,
29
- } from './ProductSearchResponseResourceMeta';
30
- import type { ProductAggregationResource } from './ProductAggregationResource';
31
- import {
32
- ProductAggregationResourceFromJSON,
33
- ProductAggregationResourceFromJSONTyped,
34
- ProductAggregationResourceToJSON,
35
- ProductAggregationResourceToJSONTyped,
36
- } from './ProductAggregationResource';
37
- import type { ProductSearchResponseResourcePriceInfo } from './ProductSearchResponseResourcePriceInfo';
38
- import {
39
- ProductSearchResponseResourcePriceInfoFromJSON,
40
- ProductSearchResponseResourcePriceInfoFromJSONTyped,
41
- ProductSearchResponseResourcePriceInfoToJSON,
42
- ProductSearchResponseResourcePriceInfoToJSONTyped,
43
- } from './ProductSearchResponseResourcePriceInfo';
44
-
45
- /**
46
- *
47
- * @export
48
- * @interface ProductSearchResponseResource
49
- */
50
- export interface ProductSearchResponseResource {
51
- /**
52
- *
53
- * @type {Array<ProductSearchResultResource>}
54
- * @memberof ProductSearchResponseResource
55
- */
56
- data: Array<ProductSearchResultResource>;
57
- /**
58
- *
59
- * @type {ProductSearchResponseResourceMeta}
60
- * @memberof ProductSearchResponseResource
61
- */
62
- meta: ProductSearchResponseResourceMeta;
63
- /**
64
- *
65
- * @type {ProductAggregationResource}
66
- * @memberof ProductSearchResponseResource
67
- */
68
- aggregations: ProductAggregationResource;
69
- /**
70
- *
71
- * @type {ProductSearchResponseResourcePriceInfo}
72
- * @memberof ProductSearchResponseResource
73
- */
74
- priceInfo: ProductSearchResponseResourcePriceInfo;
75
- }
76
-
77
- /**
78
- * Check if a given object implements the ProductSearchResponseResource interface.
79
- */
80
- export function instanceOfProductSearchResponseResource(value: object): value is ProductSearchResponseResource {
81
- if (!('data' in value) || value['data'] === undefined) return false;
82
- if (!('meta' in value) || value['meta'] === undefined) return false;
83
- if (!('aggregations' in value) || value['aggregations'] === undefined) return false;
84
- if (!('priceInfo' in value) || value['priceInfo'] === undefined) return false;
85
- return true;
86
- }
87
-
88
- export function ProductSearchResponseResourceFromJSON(json: any): ProductSearchResponseResource {
89
- return ProductSearchResponseResourceFromJSONTyped(json, false);
90
- }
91
-
92
- export function ProductSearchResponseResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResource {
93
- if (json == null) {
94
- return json;
95
- }
96
- return {
97
-
98
- 'data': ((json['data'] as Array<any>).map(ProductSearchResultResourceFromJSON)),
99
- 'meta': ProductSearchResponseResourceMetaFromJSON(json['meta']),
100
- 'aggregations': ProductAggregationResourceFromJSON(json['aggregations']),
101
- 'priceInfo': ProductSearchResponseResourcePriceInfoFromJSON(json['priceInfo']),
102
- };
103
- }
104
-
105
- export function ProductSearchResponseResourceToJSON(json: any): ProductSearchResponseResource {
106
- return ProductSearchResponseResourceToJSONTyped(json, false);
107
- }
108
-
109
- export function ProductSearchResponseResourceToJSONTyped(value?: ProductSearchResponseResource | null, ignoreDiscriminator: boolean = false): any {
110
- if (value == null) {
111
- return value;
112
- }
113
-
114
- return {
115
-
116
- 'data': ((value['data'] as Array<any>).map(ProductSearchResultResourceToJSON)),
117
- 'meta': ProductSearchResponseResourceMetaToJSON(value['meta']),
118
- 'aggregations': ProductAggregationResourceToJSON(value['aggregations']),
119
- 'priceInfo': ProductSearchResponseResourcePriceInfoToJSON(value['priceInfo']),
120
- };
121
- }
122
-
@@ -1,73 +0,0 @@
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 { ProductSearchResponseResource } from './ProductSearchResponseResource';
17
- import {
18
- ProductSearchResponseResourceFromJSON,
19
- ProductSearchResponseResourceFromJSONTyped,
20
- ProductSearchResponseResourceToJSON,
21
- ProductSearchResponseResourceToJSONTyped,
22
- } from './ProductSearchResponseResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface ProductSearchResponseResourceArrayResponse
28
- */
29
- export interface ProductSearchResponseResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<ProductSearchResponseResource>}
33
- * @memberof ProductSearchResponseResourceArrayResponse
34
- */
35
- data?: Array<ProductSearchResponseResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the ProductSearchResponseResourceArrayResponse interface.
40
- */
41
- export function instanceOfProductSearchResponseResourceArrayResponse(value: object): value is ProductSearchResponseResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function ProductSearchResponseResourceArrayResponseFromJSON(json: any): ProductSearchResponseResourceArrayResponse {
46
- return ProductSearchResponseResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function ProductSearchResponseResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductSearchResponseResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function ProductSearchResponseResourceArrayResponseToJSON(json: any): ProductSearchResponseResourceArrayResponse {
60
- return ProductSearchResponseResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function ProductSearchResponseResourceArrayResponseToJSONTyped(value?: ProductSearchResponseResourceArrayResponse | 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(ProductSearchResponseResourceToJSON)),
71
- };
72
- }
73
-