@digital8/lighting-illusions-ts-sdk 0.0.647 → 0.0.649

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 (119) hide show
  1. package/.openapi-generator/FILES +10 -38
  2. package/README.md +7 -26
  3. package/dist/apis/index.d.ts +0 -1
  4. package/dist/apis/index.js +0 -1
  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/WishlistCheckResource.d.ts +32 -0
  17. package/dist/models/WishlistCheckResource.js +51 -0
  18. package/dist/models/WishlistCheckResourceArrayResponse.d.ts +33 -0
  19. package/dist/models/WishlistCheckResourceArrayResponse.js +50 -0
  20. package/dist/models/WishlistToggleResource.d.ts +38 -0
  21. package/dist/models/WishlistToggleResource.js +55 -0
  22. package/dist/models/WishlistToggleResourceArrayResponse.d.ts +33 -0
  23. package/dist/models/WishlistToggleResourceArrayResponse.js +50 -0
  24. package/dist/models/index.d.ts +5 -18
  25. package/dist/models/index.js +5 -18
  26. package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
  27. package/docs/OverlayTemplateAssetResource.md +1 -1
  28. package/docs/ProductCompareResource.md +1 -1
  29. package/docs/ProductSearchResultResource.md +2 -4
  30. package/docs/{ProductAvailability.md → ProductStatus.md} +4 -4
  31. package/docs/SupplierFrontendResource.md +4 -4
  32. package/docs/{StoreDefinitionRequest.md → WishlistCheckResource.md} +6 -8
  33. package/docs/{DefinitionResourceArrayResponse.md → WishlistCheckResourceArrayResponse.md} +5 -5
  34. package/docs/{DefinitionListResource.md → WishlistToggleResource.md} +8 -8
  35. package/docs/{DefinitionListResourceArrayResponse.md → WishlistToggleResourceArrayResponse.md} +5 -5
  36. package/package.json +1 -1
  37. package/src/apis/index.ts +0 -1
  38. package/src/models/OverlayTemplateAssetFrontendResource.ts +4 -12
  39. package/src/models/OverlayTemplateAssetResource.ts +10 -10
  40. package/src/models/ProductCompareResource.ts +2 -2
  41. package/src/models/ProductSearchResultResource.ts +9 -18
  42. package/src/models/ProductStatus.ts +52 -0
  43. package/src/models/SupplierFrontendResource.ts +27 -20
  44. package/src/models/WishlistCheckResource.ts +66 -0
  45. package/src/models/WishlistCheckResourceArrayResponse.ts +73 -0
  46. package/src/models/WishlistToggleResource.ts +75 -0
  47. package/src/models/WishlistToggleResourceArrayResponse.ts +73 -0
  48. package/src/models/index.ts +5 -18
  49. package/dist/apis/DefinitionApi.d.ts +0 -85
  50. package/dist/apis/DefinitionApi.js +0 -355
  51. package/dist/models/CategoryFrontendResource.d.ts +0 -70
  52. package/dist/models/CategoryFrontendResource.js +0 -73
  53. package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +0 -33
  54. package/dist/models/CategoryFrontendResourceArrayResponse.js +0 -50
  55. package/dist/models/CategoryWithChildrenFrontendResource.d.ts +0 -39
  56. package/dist/models/CategoryWithChildrenFrontendResource.js +0 -56
  57. package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +0 -33
  58. package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +0 -50
  59. package/dist/models/DefinitionListResource.d.ts +0 -38
  60. package/dist/models/DefinitionListResource.js +0 -55
  61. package/dist/models/DefinitionListResourceArrayResponse.d.ts +0 -33
  62. package/dist/models/DefinitionListResourceArrayResponse.js +0 -50
  63. package/dist/models/DefinitionResource.d.ts +0 -44
  64. package/dist/models/DefinitionResource.js +0 -59
  65. package/dist/models/DefinitionResourceArrayResponse.d.ts +0 -33
  66. package/dist/models/DefinitionResourceArrayResponse.js +0 -50
  67. package/dist/models/GetAllDefinitionRequest.d.ts +0 -80
  68. package/dist/models/GetAllDefinitionRequest.js +0 -76
  69. package/dist/models/IndexDefinitionRequest.d.ts +0 -92
  70. package/dist/models/IndexDefinitionRequest.js +0 -80
  71. package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +0 -40
  72. package/dist/models/PaginatedCategoryFrontendResourceResponse.js +0 -57
  73. package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +0 -40
  74. package/dist/models/PaginatedDefinitionListResourceResponse.js +0 -57
  75. package/dist/models/PaginatedDefinitionResourceResponse.d.ts +0 -40
  76. package/dist/models/PaginatedDefinitionResourceResponse.js +0 -57
  77. package/dist/models/ProductAvailability.d.ts +0 -26
  78. package/dist/models/ProductAvailability.js +0 -52
  79. package/dist/models/StoreDefinitionRequest.d.ts +0 -38
  80. package/dist/models/StoreDefinitionRequest.js +0 -55
  81. package/dist/models/TagFrontendResource.d.ts +0 -63
  82. package/dist/models/TagFrontendResource.js +0 -72
  83. package/dist/models/TagFrontendResourceArrayResponse.d.ts +0 -33
  84. package/dist/models/TagFrontendResourceArrayResponse.js +0 -50
  85. package/dist/models/UpdateDefinitionRequest.d.ts +0 -38
  86. package/dist/models/UpdateDefinitionRequest.js +0 -55
  87. package/docs/CategoryFrontendResource.md +0 -46
  88. package/docs/CategoryFrontendResourceArrayResponse.md +0 -34
  89. package/docs/CategoryWithChildrenFrontendResource.md +0 -36
  90. package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +0 -34
  91. package/docs/DefinitionApi.md +0 -407
  92. package/docs/DefinitionResource.md +0 -38
  93. package/docs/GetAllDefinitionRequest.md +0 -44
  94. package/docs/IndexDefinitionRequest.md +0 -48
  95. package/docs/PaginatedCategoryFrontendResourceResponse.md +0 -36
  96. package/docs/PaginatedDefinitionListResourceResponse.md +0 -36
  97. package/docs/PaginatedDefinitionResourceResponse.md +0 -36
  98. package/docs/TagFrontendResource.md +0 -44
  99. package/docs/TagFrontendResourceArrayResponse.md +0 -34
  100. package/docs/UpdateDefinitionRequest.md +0 -36
  101. package/src/apis/DefinitionApi.ts +0 -286
  102. package/src/models/CategoryFrontendResource.ts +0 -133
  103. package/src/models/CategoryFrontendResourceArrayResponse.ts +0 -73
  104. package/src/models/CategoryWithChildrenFrontendResource.ts +0 -83
  105. package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +0 -73
  106. package/src/models/DefinitionListResource.ts +0 -75
  107. package/src/models/DefinitionListResourceArrayResponse.ts +0 -73
  108. package/src/models/DefinitionResource.ts +0 -84
  109. package/src/models/DefinitionResourceArrayResponse.ts +0 -73
  110. package/src/models/GetAllDefinitionRequest.ts +0 -127
  111. package/src/models/IndexDefinitionRequest.ts +0 -143
  112. package/src/models/PaginatedCategoryFrontendResourceResponse.ts +0 -90
  113. package/src/models/PaginatedDefinitionListResourceResponse.ts +0 -90
  114. package/src/models/PaginatedDefinitionResourceResponse.ts +0 -90
  115. package/src/models/ProductAvailability.ts +0 -54
  116. package/src/models/StoreDefinitionRequest.ts +0 -75
  117. package/src/models/TagFrontendResource.ts +0 -119
  118. package/src/models/TagFrontendResourceArrayResponse.ts +0 -73
  119. package/src/models/UpdateDefinitionRequest.ts +0 -75
@@ -1,143 +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 IndexDefinitionRequest
20
- */
21
- export interface IndexDefinitionRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof IndexDefinitionRequest
26
- */
27
- search?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof IndexDefinitionRequest
32
- */
33
- sortBy?: IndexDefinitionRequestSortByEnum;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof IndexDefinitionRequest
38
- */
39
- sortDirection?: IndexDefinitionRequestSortDirectionEnum;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof IndexDefinitionRequest
44
- */
45
- perPage?: number;
46
- /**
47
- *
48
- * @type {number}
49
- * @memberof IndexDefinitionRequest
50
- */
51
- page?: number;
52
- /**
53
- *
54
- * @type {number}
55
- * @memberof IndexDefinitionRequest
56
- */
57
- relatedId?: number;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof IndexDefinitionRequest
62
- */
63
- relatedType?: string;
64
- /**
65
- *
66
- * @type {boolean}
67
- * @memberof IndexDefinitionRequest
68
- */
69
- includesRelations?: boolean;
70
- }
71
-
72
-
73
- /**
74
- * @export
75
- */
76
- export const IndexDefinitionRequestSortByEnum = {
77
- Id: 'id',
78
- Name: 'name',
79
- CreatedAt: 'created_at',
80
- UpdatedAt: 'updated_at'
81
- } as const;
82
- export type IndexDefinitionRequestSortByEnum = typeof IndexDefinitionRequestSortByEnum[keyof typeof IndexDefinitionRequestSortByEnum];
83
-
84
- /**
85
- * @export
86
- */
87
- export const IndexDefinitionRequestSortDirectionEnum = {
88
- Asc: 'asc',
89
- Desc: 'desc'
90
- } as const;
91
- export type IndexDefinitionRequestSortDirectionEnum = typeof IndexDefinitionRequestSortDirectionEnum[keyof typeof IndexDefinitionRequestSortDirectionEnum];
92
-
93
-
94
- /**
95
- * Check if a given object implements the IndexDefinitionRequest interface.
96
- */
97
- export function instanceOfIndexDefinitionRequest(value: object): value is IndexDefinitionRequest {
98
- return true;
99
- }
100
-
101
- export function IndexDefinitionRequestFromJSON(json: any): IndexDefinitionRequest {
102
- return IndexDefinitionRequestFromJSONTyped(json, false);
103
- }
104
-
105
- export function IndexDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexDefinitionRequest {
106
- if (json == null) {
107
- return json;
108
- }
109
- return {
110
-
111
- 'search': json['search'] == null ? undefined : json['search'],
112
- 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
113
- 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
114
- 'perPage': json['per_page'] == null ? undefined : json['per_page'],
115
- 'page': json['page'] == null ? undefined : json['page'],
116
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
117
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
118
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
119
- };
120
- }
121
-
122
- export function IndexDefinitionRequestToJSON(json: any): IndexDefinitionRequest {
123
- return IndexDefinitionRequestToJSONTyped(json, false);
124
- }
125
-
126
- export function IndexDefinitionRequestToJSONTyped(value?: IndexDefinitionRequest | null, ignoreDiscriminator: boolean = false): any {
127
- if (value == null) {
128
- return value;
129
- }
130
-
131
- return {
132
-
133
- 'search': value['search'],
134
- 'sortBy': value['sortBy'],
135
- 'sortDirection': value['sortDirection'],
136
- 'per_page': value['perPage'],
137
- 'page': value['page'],
138
- 'related_id': value['relatedId'],
139
- 'related_type': value['relatedType'],
140
- 'includes_relations': value['includesRelations'],
141
- };
142
- }
143
-
@@ -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 { CategoryFrontendResource } from './CategoryFrontendResource';
24
- import {
25
- CategoryFrontendResourceFromJSON,
26
- CategoryFrontendResourceFromJSONTyped,
27
- CategoryFrontendResourceToJSON,
28
- CategoryFrontendResourceToJSONTyped,
29
- } from './CategoryFrontendResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedCategoryFrontendResourceResponse
35
- */
36
- export interface PaginatedCategoryFrontendResourceResponse {
37
- /**
38
- *
39
- * @type {Array<CategoryFrontendResource>}
40
- * @memberof PaginatedCategoryFrontendResourceResponse
41
- */
42
- data: Array<CategoryFrontendResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedCategoryFrontendResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedCategoryFrontendResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedCategoryFrontendResourceResponse(value: object): value is PaginatedCategoryFrontendResourceResponse {
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 PaginatedCategoryFrontendResourceResponseFromJSON(json: any): PaginatedCategoryFrontendResourceResponse {
61
- return PaginatedCategoryFrontendResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedCategoryFrontendResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCategoryFrontendResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(CategoryFrontendResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedCategoryFrontendResourceResponseToJSON(json: any): PaginatedCategoryFrontendResourceResponse {
76
- return PaginatedCategoryFrontendResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedCategoryFrontendResourceResponseToJSONTyped(value?: PaginatedCategoryFrontendResourceResponse | 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(CategoryFrontendResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -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 { DefinitionListResource } from './DefinitionListResource';
24
- import {
25
- DefinitionListResourceFromJSON,
26
- DefinitionListResourceFromJSONTyped,
27
- DefinitionListResourceToJSON,
28
- DefinitionListResourceToJSONTyped,
29
- } from './DefinitionListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedDefinitionListResourceResponse
35
- */
36
- export interface PaginatedDefinitionListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<DefinitionListResource>}
40
- * @memberof PaginatedDefinitionListResourceResponse
41
- */
42
- data: Array<DefinitionListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedDefinitionListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedDefinitionListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedDefinitionListResourceResponse(value: object): value is PaginatedDefinitionListResourceResponse {
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 PaginatedDefinitionListResourceResponseFromJSON(json: any): PaginatedDefinitionListResourceResponse {
61
- return PaginatedDefinitionListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedDefinitionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedDefinitionListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(DefinitionListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedDefinitionListResourceResponseToJSON(json: any): PaginatedDefinitionListResourceResponse {
76
- return PaginatedDefinitionListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedDefinitionListResourceResponseToJSONTyped(value?: PaginatedDefinitionListResourceResponse | 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(DefinitionListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -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 { DefinitionResource } from './DefinitionResource';
24
- import {
25
- DefinitionResourceFromJSON,
26
- DefinitionResourceFromJSONTyped,
27
- DefinitionResourceToJSON,
28
- DefinitionResourceToJSONTyped,
29
- } from './DefinitionResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedDefinitionResourceResponse
35
- */
36
- export interface PaginatedDefinitionResourceResponse {
37
- /**
38
- *
39
- * @type {Array<DefinitionResource>}
40
- * @memberof PaginatedDefinitionResourceResponse
41
- */
42
- data: Array<DefinitionResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedDefinitionResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedDefinitionResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedDefinitionResourceResponse(value: object): value is PaginatedDefinitionResourceResponse {
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 PaginatedDefinitionResourceResponseFromJSON(json: any): PaginatedDefinitionResourceResponse {
61
- return PaginatedDefinitionResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedDefinitionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedDefinitionResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(DefinitionResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedDefinitionResourceResponseToJSON(json: any): PaginatedDefinitionResourceResponse {
76
- return PaginatedDefinitionResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedDefinitionResourceResponseToJSONTyped(value?: PaginatedDefinitionResourceResponse | 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(DefinitionResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -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 ProductAvailability = {
21
- InStock: 'in_stock',
22
- OutOfStock: 'out_of_stock',
23
- Preorder: 'preorder'
24
- } as const;
25
- export type ProductAvailability = typeof ProductAvailability[keyof typeof ProductAvailability];
26
-
27
-
28
- export function instanceOfProductAvailability(value: any): boolean {
29
- for (const key in ProductAvailability) {
30
- if (Object.prototype.hasOwnProperty.call(ProductAvailability, key)) {
31
- if (ProductAvailability[key as keyof typeof ProductAvailability] === value) {
32
- return true;
33
- }
34
- }
35
- }
36
- return false;
37
- }
38
-
39
- export function ProductAvailabilityFromJSON(json: any): ProductAvailability {
40
- return ProductAvailabilityFromJSONTyped(json, false);
41
- }
42
-
43
- export function ProductAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAvailability {
44
- return json as ProductAvailability;
45
- }
46
-
47
- export function ProductAvailabilityToJSON(value?: ProductAvailability | null): any {
48
- return value as any;
49
- }
50
-
51
- export function ProductAvailabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductAvailability {
52
- return value as ProductAvailability;
53
- }
54
-
@@ -1,75 +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 StoreDefinitionRequest
20
- */
21
- export interface StoreDefinitionRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof StoreDefinitionRequest
26
- */
27
- name: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof StoreDefinitionRequest
32
- */
33
- content: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the StoreDefinitionRequest interface.
38
- */
39
- export function instanceOfStoreDefinitionRequest(value: object): value is StoreDefinitionRequest {
40
- if (!('name' in value) || value['name'] === undefined) return false;
41
- if (!('content' in value) || value['content'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function StoreDefinitionRequestFromJSON(json: any): StoreDefinitionRequest {
46
- return StoreDefinitionRequestFromJSONTyped(json, false);
47
- }
48
-
49
- export function StoreDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreDefinitionRequest {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'name': json['name'],
56
- 'content': json['content'],
57
- };
58
- }
59
-
60
- export function StoreDefinitionRequestToJSON(json: any): StoreDefinitionRequest {
61
- return StoreDefinitionRequestToJSONTyped(json, false);
62
- }
63
-
64
- export function StoreDefinitionRequestToJSONTyped(value?: StoreDefinitionRequest | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'name': value['name'],
72
- 'content': value['content'],
73
- };
74
- }
75
-
@@ -1,119 +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 { DescriptionResource } from './DescriptionResource';
17
- import {
18
- DescriptionResourceFromJSON,
19
- DescriptionResourceFromJSONTyped,
20
- DescriptionResourceToJSON,
21
- DescriptionResourceToJSONTyped,
22
- } from './DescriptionResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface TagFrontendResource
28
- */
29
- export interface TagFrontendResource {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof TagFrontendResource
34
- */
35
- id: number;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof TagFrontendResource
40
- */
41
- name: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof TagFrontendResource
46
- */
47
- slug: string;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof TagFrontendResource
52
- */
53
- type: string;
54
- /**
55
- *
56
- * @type {object}
57
- * @memberof TagFrontendResource
58
- */
59
- seo: object;
60
- /**
61
- *
62
- * @type {DescriptionResource}
63
- * @memberof TagFrontendResource
64
- */
65
- description: DescriptionResource | null;
66
- }
67
-
68
- /**
69
- * Check if a given object implements the TagFrontendResource interface.
70
- */
71
- export function instanceOfTagFrontendResource(value: object): value is TagFrontendResource {
72
- if (!('id' in value) || value['id'] === undefined) return false;
73
- if (!('name' in value) || value['name'] === undefined) return false;
74
- if (!('slug' in value) || value['slug'] === undefined) return false;
75
- if (!('type' in value) || value['type'] === undefined) return false;
76
- if (!('seo' in value) || value['seo'] === undefined) return false;
77
- if (!('description' in value) || value['description'] === undefined) return false;
78
- return true;
79
- }
80
-
81
- export function TagFrontendResourceFromJSON(json: any): TagFrontendResource {
82
- return TagFrontendResourceFromJSONTyped(json, false);
83
- }
84
-
85
- export function TagFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagFrontendResource {
86
- if (json == null) {
87
- return json;
88
- }
89
- return {
90
-
91
- 'id': json['id'],
92
- 'name': json['name'],
93
- 'slug': json['slug'],
94
- 'type': json['type'],
95
- 'seo': json['seo'],
96
- 'description': DescriptionResourceFromJSON(json['description']),
97
- };
98
- }
99
-
100
- export function TagFrontendResourceToJSON(json: any): TagFrontendResource {
101
- return TagFrontendResourceToJSONTyped(json, false);
102
- }
103
-
104
- export function TagFrontendResourceToJSONTyped(value?: TagFrontendResource | null, ignoreDiscriminator: boolean = false): any {
105
- if (value == null) {
106
- return value;
107
- }
108
-
109
- return {
110
-
111
- 'id': value['id'],
112
- 'name': value['name'],
113
- 'slug': value['slug'],
114
- 'type': value['type'],
115
- 'seo': value['seo'],
116
- 'description': DescriptionResourceToJSON(value['description']),
117
- };
118
- }
119
-