@digital8/lighting-illusions-ts-sdk 0.0.637 → 0.0.638

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 (63) hide show
  1. package/.openapi-generator/FILES +2 -16
  2. package/README.md +3 -10
  3. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  4. package/dist/models/ExternalApiLogResource.js +1 -3
  5. package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +2 -3
  6. package/dist/models/OverlayTemplateAssetFrontendResource.js +2 -3
  7. package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
  8. package/dist/models/OverlayTemplateAssetResource.js +3 -3
  9. package/dist/models/ProductCompareResource.d.ts +2 -2
  10. package/dist/models/ProductSearchResultResource.d.ts +6 -12
  11. package/dist/models/ProductSearchResultResource.js +4 -8
  12. package/dist/models/ProductStatus.d.ts +24 -0
  13. package/dist/models/ProductStatus.js +50 -0
  14. package/dist/models/SupplierFrontendResource.d.ts +8 -7
  15. package/dist/models/SupplierFrontendResource.js +9 -8
  16. package/dist/models/index.d.ts +1 -8
  17. package/dist/models/index.js +1 -8
  18. package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
  19. package/docs/OverlayTemplateAssetResource.md +1 -1
  20. package/docs/ProductCompareResource.md +1 -1
  21. package/docs/ProductSearchResultResource.md +2 -4
  22. package/docs/{ProductAvailability.md → ProductStatus.md} +4 -4
  23. package/docs/SupplierFrontendResource.md +4 -4
  24. package/package.json +1 -1
  25. package/src/models/ExternalApiLogResource.ts +2 -3
  26. package/src/models/OverlayTemplateAssetFrontendResource.ts +4 -12
  27. package/src/models/OverlayTemplateAssetResource.ts +10 -10
  28. package/src/models/ProductCompareResource.ts +2 -2
  29. package/src/models/ProductSearchResultResource.ts +9 -18
  30. package/src/models/ProductStatus.ts +52 -0
  31. package/src/models/SupplierFrontendResource.ts +27 -20
  32. package/src/models/index.ts +1 -8
  33. package/dist/models/CategoryFrontendResource.d.ts +0 -70
  34. package/dist/models/CategoryFrontendResource.js +0 -73
  35. package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +0 -33
  36. package/dist/models/CategoryFrontendResourceArrayResponse.js +0 -50
  37. package/dist/models/CategoryWithChildrenFrontendResource.d.ts +0 -39
  38. package/dist/models/CategoryWithChildrenFrontendResource.js +0 -56
  39. package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +0 -33
  40. package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +0 -50
  41. package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +0 -40
  42. package/dist/models/PaginatedCategoryFrontendResourceResponse.js +0 -57
  43. package/dist/models/ProductAvailability.d.ts +0 -26
  44. package/dist/models/ProductAvailability.js +0 -52
  45. package/dist/models/TagFrontendResource.d.ts +0 -63
  46. package/dist/models/TagFrontendResource.js +0 -72
  47. package/dist/models/TagFrontendResourceArrayResponse.d.ts +0 -33
  48. package/dist/models/TagFrontendResourceArrayResponse.js +0 -50
  49. package/docs/CategoryFrontendResource.md +0 -46
  50. package/docs/CategoryFrontendResourceArrayResponse.md +0 -34
  51. package/docs/CategoryWithChildrenFrontendResource.md +0 -36
  52. package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +0 -34
  53. package/docs/PaginatedCategoryFrontendResourceResponse.md +0 -36
  54. package/docs/TagFrontendResource.md +0 -44
  55. package/docs/TagFrontendResourceArrayResponse.md +0 -34
  56. package/src/models/CategoryFrontendResource.ts +0 -133
  57. package/src/models/CategoryFrontendResourceArrayResponse.ts +0 -73
  58. package/src/models/CategoryWithChildrenFrontendResource.ts +0 -83
  59. package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +0 -73
  60. package/src/models/PaginatedCategoryFrontendResourceResponse.ts +0 -90
  61. package/src/models/ProductAvailability.ts +0 -54
  62. package/src/models/TagFrontendResource.ts +0 -119
  63. package/src/models/TagFrontendResourceArrayResponse.ts +0 -73
@@ -1,46 +0,0 @@
1
-
2
- # CategoryFrontendResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `name` | string
11
- `slug` | string
12
- `parentId` | string
13
- `thumbnail` | [AssetLiteResource](AssetLiteResource.md)
14
- `seo` | object
15
- `descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import type { CategoryFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
21
-
22
- // TODO: Update the object below with actual values
23
- const example = {
24
- "id": null,
25
- "name": null,
26
- "slug": null,
27
- "parentId": null,
28
- "thumbnail": null,
29
- "seo": null,
30
- "descriptions": null,
31
- } satisfies CategoryFrontendResource
32
-
33
- console.log(example)
34
-
35
- // Convert the instance to a JSON string
36
- const exampleJSON: string = JSON.stringify(example)
37
- console.log(exampleJSON)
38
-
39
- // Parse the JSON string back to an object
40
- const exampleParsed = JSON.parse(exampleJSON) as CategoryFrontendResource
41
- console.log(exampleParsed)
42
- ```
43
-
44
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
-
46
-
@@ -1,34 +0,0 @@
1
-
2
- # CategoryFrontendResourceArrayResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array<CategoryFrontendResource>](CategoryFrontendResource.md)
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { CategoryFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "data": null,
19
- } satisfies CategoryFrontendResourceArrayResponse
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 CategoryFrontendResourceArrayResponse
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,36 +0,0 @@
1
-
2
- # CategoryWithChildrenFrontendResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `category` | [CategoryFrontendResource](CategoryFrontendResource.md)
10
- `children` | [Array<CategoryFrontendResource>](CategoryFrontendResource.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { CategoryWithChildrenFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "category": null,
20
- "children": null,
21
- } satisfies CategoryWithChildrenFrontendResource
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 CategoryWithChildrenFrontendResource
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
-
@@ -1,34 +0,0 @@
1
-
2
- # CategoryWithChildrenFrontendResourceArrayResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array<CategoryWithChildrenFrontendResource>](CategoryWithChildrenFrontendResource.md)
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { CategoryWithChildrenFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "data": null,
19
- } satisfies CategoryWithChildrenFrontendResourceArrayResponse
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 CategoryWithChildrenFrontendResourceArrayResponse
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,36 +0,0 @@
1
-
2
- # PaginatedCategoryFrontendResourceResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array<CategoryFrontendResource>](CategoryFrontendResource.md)
10
- `meta` | [PagingMetadata](PagingMetadata.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { PaginatedCategoryFrontendResourceResponse } 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 PaginatedCategoryFrontendResourceResponse
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 PaginatedCategoryFrontendResourceResponse
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
-
@@ -1,44 +0,0 @@
1
-
2
- # TagFrontendResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `name` | string
11
- `slug` | string
12
- `type` | string
13
- `seo` | object
14
- `description` | [DescriptionResource](DescriptionResource.md)
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import type { TagFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
20
-
21
- // TODO: Update the object below with actual values
22
- const example = {
23
- "id": null,
24
- "name": null,
25
- "slug": null,
26
- "type": null,
27
- "seo": null,
28
- "description": null,
29
- } satisfies TagFrontendResource
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 TagFrontendResource
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
-
@@ -1,34 +0,0 @@
1
-
2
- # TagFrontendResourceArrayResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array<TagFrontendResource>](TagFrontendResource.md)
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { TagFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "data": null,
19
- } satisfies TagFrontendResourceArrayResponse
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 TagFrontendResourceArrayResponse
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,133 +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 { AssetLiteResource } from './AssetLiteResource';
17
- import {
18
- AssetLiteResourceFromJSON,
19
- AssetLiteResourceFromJSONTyped,
20
- AssetLiteResourceToJSON,
21
- AssetLiteResourceToJSONTyped,
22
- } from './AssetLiteResource';
23
- import type { DescriptionResource } from './DescriptionResource';
24
- import {
25
- DescriptionResourceFromJSON,
26
- DescriptionResourceFromJSONTyped,
27
- DescriptionResourceToJSON,
28
- DescriptionResourceToJSONTyped,
29
- } from './DescriptionResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface CategoryFrontendResource
35
- */
36
- export interface CategoryFrontendResource {
37
- /**
38
- *
39
- * @type {number}
40
- * @memberof CategoryFrontendResource
41
- */
42
- id?: number | null;
43
- /**
44
- *
45
- * @type {string}
46
- * @memberof CategoryFrontendResource
47
- */
48
- name: string;
49
- /**
50
- *
51
- * @type {string}
52
- * @memberof CategoryFrontendResource
53
- */
54
- slug: string;
55
- /**
56
- *
57
- * @type {string}
58
- * @memberof CategoryFrontendResource
59
- */
60
- parentId?: string | null;
61
- /**
62
- *
63
- * @type {AssetLiteResource}
64
- * @memberof CategoryFrontendResource
65
- */
66
- thumbnail: AssetLiteResource | null;
67
- /**
68
- *
69
- * @type {object}
70
- * @memberof CategoryFrontendResource
71
- */
72
- seo: object;
73
- /**
74
- *
75
- * @type {Array<DescriptionResource>}
76
- * @memberof CategoryFrontendResource
77
- */
78
- descriptions: Array<DescriptionResource> | null;
79
- }
80
-
81
- /**
82
- * Check if a given object implements the CategoryFrontendResource interface.
83
- */
84
- export function instanceOfCategoryFrontendResource(value: object): value is CategoryFrontendResource {
85
- if (!('name' in value) || value['name'] === undefined) return false;
86
- if (!('slug' in value) || value['slug'] === undefined) return false;
87
- if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
88
- if (!('seo' in value) || value['seo'] === undefined) return false;
89
- if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
90
- return true;
91
- }
92
-
93
- export function CategoryFrontendResourceFromJSON(json: any): CategoryFrontendResource {
94
- return CategoryFrontendResourceFromJSONTyped(json, false);
95
- }
96
-
97
- export function CategoryFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryFrontendResource {
98
- if (json == null) {
99
- return json;
100
- }
101
- return {
102
-
103
- 'id': json['id'] == null ? undefined : json['id'],
104
- 'name': json['name'],
105
- 'slug': json['slug'],
106
- 'parentId': json['parentId'] == null ? undefined : json['parentId'],
107
- 'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
108
- 'seo': json['seo'],
109
- 'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
110
- };
111
- }
112
-
113
- export function CategoryFrontendResourceToJSON(json: any): CategoryFrontendResource {
114
- return CategoryFrontendResourceToJSONTyped(json, false);
115
- }
116
-
117
- export function CategoryFrontendResourceToJSONTyped(value?: CategoryFrontendResource | null, ignoreDiscriminator: boolean = false): any {
118
- if (value == null) {
119
- return value;
120
- }
121
-
122
- return {
123
-
124
- 'id': value['id'],
125
- 'name': value['name'],
126
- 'slug': value['slug'],
127
- 'parentId': value['parentId'],
128
- 'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
129
- 'seo': value['seo'],
130
- 'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
131
- };
132
- }
133
-
@@ -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 { CategoryFrontendResource } from './CategoryFrontendResource';
17
- import {
18
- CategoryFrontendResourceFromJSON,
19
- CategoryFrontendResourceFromJSONTyped,
20
- CategoryFrontendResourceToJSON,
21
- CategoryFrontendResourceToJSONTyped,
22
- } from './CategoryFrontendResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CategoryFrontendResourceArrayResponse
28
- */
29
- export interface CategoryFrontendResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<CategoryFrontendResource>}
33
- * @memberof CategoryFrontendResourceArrayResponse
34
- */
35
- data?: Array<CategoryFrontendResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the CategoryFrontendResourceArrayResponse interface.
40
- */
41
- export function instanceOfCategoryFrontendResourceArrayResponse(value: object): value is CategoryFrontendResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function CategoryFrontendResourceArrayResponseFromJSON(json: any): CategoryFrontendResourceArrayResponse {
46
- return CategoryFrontendResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function CategoryFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryFrontendResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CategoryFrontendResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function CategoryFrontendResourceArrayResponseToJSON(json: any): CategoryFrontendResourceArrayResponse {
60
- return CategoryFrontendResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function CategoryFrontendResourceArrayResponseToJSONTyped(value?: CategoryFrontendResourceArrayResponse | 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(CategoryFrontendResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,83 +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 { CategoryFrontendResource } from './CategoryFrontendResource';
17
- import {
18
- CategoryFrontendResourceFromJSON,
19
- CategoryFrontendResourceFromJSONTyped,
20
- CategoryFrontendResourceToJSON,
21
- CategoryFrontendResourceToJSONTyped,
22
- } from './CategoryFrontendResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CategoryWithChildrenFrontendResource
28
- */
29
- export interface CategoryWithChildrenFrontendResource {
30
- /**
31
- *
32
- * @type {CategoryFrontendResource}
33
- * @memberof CategoryWithChildrenFrontendResource
34
- */
35
- category: CategoryFrontendResource | null;
36
- /**
37
- *
38
- * @type {Array<CategoryFrontendResource>}
39
- * @memberof CategoryWithChildrenFrontendResource
40
- */
41
- children: Array<CategoryFrontendResource> | null;
42
- }
43
-
44
- /**
45
- * Check if a given object implements the CategoryWithChildrenFrontendResource interface.
46
- */
47
- export function instanceOfCategoryWithChildrenFrontendResource(value: object): value is CategoryWithChildrenFrontendResource {
48
- if (!('category' in value) || value['category'] === undefined) return false;
49
- if (!('children' in value) || value['children'] === undefined) return false;
50
- return true;
51
- }
52
-
53
- export function CategoryWithChildrenFrontendResourceFromJSON(json: any): CategoryWithChildrenFrontendResource {
54
- return CategoryWithChildrenFrontendResourceFromJSONTyped(json, false);
55
- }
56
-
57
- export function CategoryWithChildrenFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryWithChildrenFrontendResource {
58
- if (json == null) {
59
- return json;
60
- }
61
- return {
62
-
63
- 'category': CategoryFrontendResourceFromJSON(json['category']),
64
- 'children': (json['children'] == null ? null : (json['children'] as Array<any>).map(CategoryFrontendResourceFromJSON)),
65
- };
66
- }
67
-
68
- export function CategoryWithChildrenFrontendResourceToJSON(json: any): CategoryWithChildrenFrontendResource {
69
- return CategoryWithChildrenFrontendResourceToJSONTyped(json, false);
70
- }
71
-
72
- export function CategoryWithChildrenFrontendResourceToJSONTyped(value?: CategoryWithChildrenFrontendResource | null, ignoreDiscriminator: boolean = false): any {
73
- if (value == null) {
74
- return value;
75
- }
76
-
77
- return {
78
-
79
- 'category': CategoryFrontendResourceToJSON(value['category']),
80
- 'children': (value['children'] == null ? null : (value['children'] as Array<any>).map(CategoryFrontendResourceToJSON)),
81
- };
82
- }
83
-
@@ -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 { CategoryWithChildrenFrontendResource } from './CategoryWithChildrenFrontendResource';
17
- import {
18
- CategoryWithChildrenFrontendResourceFromJSON,
19
- CategoryWithChildrenFrontendResourceFromJSONTyped,
20
- CategoryWithChildrenFrontendResourceToJSON,
21
- CategoryWithChildrenFrontendResourceToJSONTyped,
22
- } from './CategoryWithChildrenFrontendResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CategoryWithChildrenFrontendResourceArrayResponse
28
- */
29
- export interface CategoryWithChildrenFrontendResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<CategoryWithChildrenFrontendResource>}
33
- * @memberof CategoryWithChildrenFrontendResourceArrayResponse
34
- */
35
- data?: Array<CategoryWithChildrenFrontendResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the CategoryWithChildrenFrontendResourceArrayResponse interface.
40
- */
41
- export function instanceOfCategoryWithChildrenFrontendResourceArrayResponse(value: object): value is CategoryWithChildrenFrontendResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function CategoryWithChildrenFrontendResourceArrayResponseFromJSON(json: any): CategoryWithChildrenFrontendResourceArrayResponse {
46
- return CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryWithChildrenFrontendResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CategoryWithChildrenFrontendResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function CategoryWithChildrenFrontendResourceArrayResponseToJSON(json: any): CategoryWithChildrenFrontendResourceArrayResponse {
60
- return CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(value?: CategoryWithChildrenFrontendResourceArrayResponse | 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(CategoryWithChildrenFrontendResourceToJSON)),
71
- };
72
- }
73
-