@digital8/lighting-illusions-ts-sdk 0.0.636 → 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 (52) hide show
  1. package/.openapi-generator/FILES +2 -12
  2. package/README.md +3 -8
  3. package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +2 -3
  4. package/dist/models/OverlayTemplateAssetFrontendResource.js +2 -3
  5. package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
  6. package/dist/models/OverlayTemplateAssetResource.js +3 -3
  7. package/dist/models/ProductCompareResource.d.ts +2 -2
  8. package/dist/models/ProductSearchResultResource.d.ts +6 -12
  9. package/dist/models/ProductSearchResultResource.js +4 -8
  10. package/dist/models/ProductStatus.d.ts +24 -0
  11. package/dist/models/ProductStatus.js +50 -0
  12. package/dist/models/SupplierFrontendResource.d.ts +8 -7
  13. package/dist/models/SupplierFrontendResource.js +9 -8
  14. package/dist/models/index.d.ts +1 -6
  15. package/dist/models/index.js +1 -6
  16. package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
  17. package/docs/OverlayTemplateAssetResource.md +1 -1
  18. package/docs/ProductCompareResource.md +1 -1
  19. package/docs/ProductSearchResultResource.md +2 -4
  20. package/docs/{ProductAvailability.md → ProductStatus.md} +4 -4
  21. package/docs/SupplierFrontendResource.md +4 -4
  22. package/package.json +1 -1
  23. package/src/models/OverlayTemplateAssetFrontendResource.ts +4 -12
  24. package/src/models/OverlayTemplateAssetResource.ts +10 -10
  25. package/src/models/ProductCompareResource.ts +2 -2
  26. package/src/models/ProductSearchResultResource.ts +9 -18
  27. package/src/models/ProductStatus.ts +52 -0
  28. package/src/models/SupplierFrontendResource.ts +27 -20
  29. package/src/models/index.ts +1 -6
  30. package/dist/models/CategoryFrontendResource.d.ts +0 -70
  31. package/dist/models/CategoryFrontendResource.js +0 -73
  32. package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +0 -33
  33. package/dist/models/CategoryFrontendResourceArrayResponse.js +0 -50
  34. package/dist/models/CategoryWithChildrenFrontendResource.d.ts +0 -39
  35. package/dist/models/CategoryWithChildrenFrontendResource.js +0 -56
  36. package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +0 -33
  37. package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +0 -50
  38. package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +0 -40
  39. package/dist/models/PaginatedCategoryFrontendResourceResponse.js +0 -57
  40. package/dist/models/ProductAvailability.d.ts +0 -26
  41. package/dist/models/ProductAvailability.js +0 -52
  42. package/docs/CategoryFrontendResource.md +0 -46
  43. package/docs/CategoryFrontendResourceArrayResponse.md +0 -34
  44. package/docs/CategoryWithChildrenFrontendResource.md +0 -36
  45. package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +0 -34
  46. package/docs/PaginatedCategoryFrontendResourceResponse.md +0 -36
  47. package/src/models/CategoryFrontendResource.ts +0 -133
  48. package/src/models/CategoryFrontendResourceArrayResponse.ts +0 -73
  49. package/src/models/CategoryWithChildrenFrontendResource.ts +0 -83
  50. package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +0 -73
  51. package/src/models/PaginatedCategoryFrontendResourceResponse.ts +0 -90
  52. package/src/models/ProductAvailability.ts +0 -54
@@ -1,39 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { CategoryFrontendResource } from './CategoryFrontendResource';
13
- /**
14
- *
15
- * @export
16
- * @interface CategoryWithChildrenFrontendResource
17
- */
18
- export interface CategoryWithChildrenFrontendResource {
19
- /**
20
- *
21
- * @type {CategoryFrontendResource}
22
- * @memberof CategoryWithChildrenFrontendResource
23
- */
24
- category: CategoryFrontendResource | null;
25
- /**
26
- *
27
- * @type {Array<CategoryFrontendResource>}
28
- * @memberof CategoryWithChildrenFrontendResource
29
- */
30
- children: Array<CategoryFrontendResource> | null;
31
- }
32
- /**
33
- * Check if a given object implements the CategoryWithChildrenFrontendResource interface.
34
- */
35
- export declare function instanceOfCategoryWithChildrenFrontendResource(value: object): value is CategoryWithChildrenFrontendResource;
36
- export declare function CategoryWithChildrenFrontendResourceFromJSON(json: any): CategoryWithChildrenFrontendResource;
37
- export declare function CategoryWithChildrenFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryWithChildrenFrontendResource;
38
- export declare function CategoryWithChildrenFrontendResourceToJSON(json: any): CategoryWithChildrenFrontendResource;
39
- export declare function CategoryWithChildrenFrontendResourceToJSONTyped(value?: CategoryWithChildrenFrontendResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfCategoryWithChildrenFrontendResource = instanceOfCategoryWithChildrenFrontendResource;
17
- exports.CategoryWithChildrenFrontendResourceFromJSON = CategoryWithChildrenFrontendResourceFromJSON;
18
- exports.CategoryWithChildrenFrontendResourceFromJSONTyped = CategoryWithChildrenFrontendResourceFromJSONTyped;
19
- exports.CategoryWithChildrenFrontendResourceToJSON = CategoryWithChildrenFrontendResourceToJSON;
20
- exports.CategoryWithChildrenFrontendResourceToJSONTyped = CategoryWithChildrenFrontendResourceToJSONTyped;
21
- var CategoryFrontendResource_1 = require("./CategoryFrontendResource");
22
- /**
23
- * Check if a given object implements the CategoryWithChildrenFrontendResource interface.
24
- */
25
- function instanceOfCategoryWithChildrenFrontendResource(value) {
26
- if (!('category' in value) || value['category'] === undefined)
27
- return false;
28
- if (!('children' in value) || value['children'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function CategoryWithChildrenFrontendResourceFromJSON(json) {
33
- return CategoryWithChildrenFrontendResourceFromJSONTyped(json, false);
34
- }
35
- function CategoryWithChildrenFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'category': (0, CategoryFrontendResource_1.CategoryFrontendResourceFromJSON)(json['category']),
41
- 'children': (json['children'] == null ? null : json['children'].map(CategoryFrontendResource_1.CategoryFrontendResourceFromJSON)),
42
- };
43
- }
44
- function CategoryWithChildrenFrontendResourceToJSON(json) {
45
- return CategoryWithChildrenFrontendResourceToJSONTyped(json, false);
46
- }
47
- function CategoryWithChildrenFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
48
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
- if (value == null) {
50
- return value;
51
- }
52
- return {
53
- 'category': (0, CategoryFrontendResource_1.CategoryFrontendResourceToJSON)(value['category']),
54
- 'children': (value['children'] == null ? null : value['children'].map(CategoryFrontendResource_1.CategoryFrontendResourceToJSON)),
55
- };
56
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { CategoryWithChildrenFrontendResource } from './CategoryWithChildrenFrontendResource';
13
- /**
14
- *
15
- * @export
16
- * @interface CategoryWithChildrenFrontendResourceArrayResponse
17
- */
18
- export interface CategoryWithChildrenFrontendResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<CategoryWithChildrenFrontendResource>}
22
- * @memberof CategoryWithChildrenFrontendResourceArrayResponse
23
- */
24
- data?: Array<CategoryWithChildrenFrontendResource>;
25
- }
26
- /**
27
- * Check if a given object implements the CategoryWithChildrenFrontendResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfCategoryWithChildrenFrontendResourceArrayResponse(value: object): value is CategoryWithChildrenFrontendResourceArrayResponse;
30
- export declare function CategoryWithChildrenFrontendResourceArrayResponseFromJSON(json: any): CategoryWithChildrenFrontendResourceArrayResponse;
31
- export declare function CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryWithChildrenFrontendResourceArrayResponse;
32
- export declare function CategoryWithChildrenFrontendResourceArrayResponseToJSON(json: any): CategoryWithChildrenFrontendResourceArrayResponse;
33
- export declare function CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(value?: CategoryWithChildrenFrontendResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfCategoryWithChildrenFrontendResourceArrayResponse = instanceOfCategoryWithChildrenFrontendResourceArrayResponse;
17
- exports.CategoryWithChildrenFrontendResourceArrayResponseFromJSON = CategoryWithChildrenFrontendResourceArrayResponseFromJSON;
18
- exports.CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped = CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped;
19
- exports.CategoryWithChildrenFrontendResourceArrayResponseToJSON = CategoryWithChildrenFrontendResourceArrayResponseToJSON;
20
- exports.CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped = CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped;
21
- var CategoryWithChildrenFrontendResource_1 = require("./CategoryWithChildrenFrontendResource");
22
- /**
23
- * Check if a given object implements the CategoryWithChildrenFrontendResourceArrayResponse interface.
24
- */
25
- function instanceOfCategoryWithChildrenFrontendResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function CategoryWithChildrenFrontendResourceArrayResponseFromJSON(json) {
29
- return CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(CategoryWithChildrenFrontendResource_1.CategoryWithChildrenFrontendResourceFromJSON)),
37
- };
38
- }
39
- function CategoryWithChildrenFrontendResourceArrayResponseToJSON(json) {
40
- return CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(CategoryWithChildrenFrontendResource_1.CategoryWithChildrenFrontendResourceToJSON)),
49
- };
50
- }
@@ -1,40 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { PagingMetadata } from './PagingMetadata';
13
- import type { CategoryFrontendResource } from './CategoryFrontendResource';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedCategoryFrontendResourceResponse
18
- */
19
- export interface PaginatedCategoryFrontendResourceResponse {
20
- /**
21
- *
22
- * @type {Array<CategoryFrontendResource>}
23
- * @memberof PaginatedCategoryFrontendResourceResponse
24
- */
25
- data: Array<CategoryFrontendResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedCategoryFrontendResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedCategoryFrontendResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedCategoryFrontendResourceResponse(value: object): value is PaginatedCategoryFrontendResourceResponse;
37
- export declare function PaginatedCategoryFrontendResourceResponseFromJSON(json: any): PaginatedCategoryFrontendResourceResponse;
38
- export declare function PaginatedCategoryFrontendResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCategoryFrontendResourceResponse;
39
- export declare function PaginatedCategoryFrontendResourceResponseToJSON(json: any): PaginatedCategoryFrontendResourceResponse;
40
- export declare function PaginatedCategoryFrontendResourceResponseToJSONTyped(value?: PaginatedCategoryFrontendResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfPaginatedCategoryFrontendResourceResponse = instanceOfPaginatedCategoryFrontendResourceResponse;
17
- exports.PaginatedCategoryFrontendResourceResponseFromJSON = PaginatedCategoryFrontendResourceResponseFromJSON;
18
- exports.PaginatedCategoryFrontendResourceResponseFromJSONTyped = PaginatedCategoryFrontendResourceResponseFromJSONTyped;
19
- exports.PaginatedCategoryFrontendResourceResponseToJSON = PaginatedCategoryFrontendResourceResponseToJSON;
20
- exports.PaginatedCategoryFrontendResourceResponseToJSONTyped = PaginatedCategoryFrontendResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var CategoryFrontendResource_1 = require("./CategoryFrontendResource");
23
- /**
24
- * Check if a given object implements the PaginatedCategoryFrontendResourceResponse interface.
25
- */
26
- function instanceOfPaginatedCategoryFrontendResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedCategoryFrontendResourceResponseFromJSON(json) {
34
- return PaginatedCategoryFrontendResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedCategoryFrontendResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(CategoryFrontendResource_1.CategoryFrontendResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedCategoryFrontendResourceResponseToJSON(json) {
46
- return PaginatedCategoryFrontendResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedCategoryFrontendResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(CategoryFrontendResource_1.CategoryFrontendResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- */
16
- export declare const ProductAvailability: {
17
- readonly InStock: "in_stock";
18
- readonly OutOfStock: "out_of_stock";
19
- readonly Preorder: "preorder";
20
- };
21
- export type ProductAvailability = typeof ProductAvailability[keyof typeof ProductAvailability];
22
- export declare function instanceOfProductAvailability(value: any): boolean;
23
- export declare function ProductAvailabilityFromJSON(json: any): ProductAvailability;
24
- export declare function ProductAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAvailability;
25
- export declare function ProductAvailabilityToJSON(value?: ProductAvailability | null): any;
26
- export declare function ProductAvailabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductAvailability;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ProductAvailability = void 0;
17
- exports.instanceOfProductAvailability = instanceOfProductAvailability;
18
- exports.ProductAvailabilityFromJSON = ProductAvailabilityFromJSON;
19
- exports.ProductAvailabilityFromJSONTyped = ProductAvailabilityFromJSONTyped;
20
- exports.ProductAvailabilityToJSON = ProductAvailabilityToJSON;
21
- exports.ProductAvailabilityToJSONTyped = ProductAvailabilityToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.ProductAvailability = {
27
- InStock: 'in_stock',
28
- OutOfStock: 'out_of_stock',
29
- Preorder: 'preorder'
30
- };
31
- function instanceOfProductAvailability(value) {
32
- for (var key in exports.ProductAvailability) {
33
- if (Object.prototype.hasOwnProperty.call(exports.ProductAvailability, key)) {
34
- if (exports.ProductAvailability[key] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
- function ProductAvailabilityFromJSON(json) {
42
- return ProductAvailabilityFromJSONTyped(json, false);
43
- }
44
- function ProductAvailabilityFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- function ProductAvailabilityToJSON(value) {
48
- return value;
49
- }
50
- function ProductAvailabilityToJSONTyped(value, ignoreDiscriminator) {
51
- return value;
52
- }
@@ -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&lt;DescriptionResource&gt;](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&lt;CategoryFrontendResource&gt;](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&lt;CategoryFrontendResource&gt;](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&lt;CategoryWithChildrenFrontendResource&gt;](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&lt;CategoryFrontendResource&gt;](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,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
-