@digital8/lighting-illusions-ts-sdk 0.0.1628 → 0.0.1630
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.
- package/.openapi-generator/FILES +14 -0
- package/README.md +14 -2
- package/dist/apis/BlogCategoriesApi.d.ts +109 -0
- package/dist/apis/BlogCategoriesApi.js +433 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/BlogCategoryFrontendResource.d.ts +44 -0
- package/dist/models/BlogCategoryFrontendResource.js +59 -0
- package/dist/models/BlogCategoryFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/BlogCategoryFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllBlogCategoryRequest.d.ts +78 -0
- package/dist/models/GetAllBlogCategoryRequest.js +74 -0
- package/dist/models/IndexBlogCategoryRequest.d.ts +90 -0
- package/dist/models/IndexBlogCategoryRequest.js +78 -0
- package/dist/models/StoreBlogCategoryRequest.d.ts +45 -0
- package/dist/models/StoreBlogCategoryRequest.js +60 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateBlogCategoryRequest.d.ts +45 -0
- package/dist/models/UpdateBlogCategoryRequest.js +60 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/BlogCategoriesApi.md +407 -0
- package/docs/BlogCategoryFrontendResource.md +38 -0
- package/docs/BlogCategoryFrontendResourceArrayResponse.md +34 -0
- package/docs/GetAllBlogCategoryRequest.md +44 -0
- package/docs/IndexBlogCategoryRequest.md +48 -0
- package/docs/StoreBlogCategoryRequest.md +38 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateBlogCategoryRequest.md +38 -0
- package/package.json +1 -1
- package/src/apis/BlogCategoriesApi.ts +334 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +2 -3
- package/src/models/BlogCategoryFrontendResource.ts +84 -0
- package/src/models/BlogCategoryFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllBlogCategoryRequest.ts +125 -0
- package/src/models/IndexBlogCategoryRequest.ts +141 -0
- package/src/models/StoreBlogCategoryRequest.ts +92 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateBlogCategoryRequest.ts +92 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,125 @@
|
|
|
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 GetAllBlogCategoryRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GetAllBlogCategoryRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetAllBlogCategoryRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {GetAllBlogCategoryRequestSortByEnum}
|
|
31
|
+
* @memberof GetAllBlogCategoryRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: GetAllBlogCategoryRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {GetAllBlogCategoryRequestSortDirectionEnum}
|
|
37
|
+
* @memberof GetAllBlogCategoryRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: GetAllBlogCategoryRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetAllBlogCategoryRequest
|
|
44
|
+
*/
|
|
45
|
+
relatedId?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetAllBlogCategoryRequest
|
|
50
|
+
*/
|
|
51
|
+
relatedType?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetAllBlogCategoryRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const GetAllBlogCategoryRequestSortByEnum = {
|
|
65
|
+
Id: 'id',
|
|
66
|
+
Name: 'name'
|
|
67
|
+
} as const;
|
|
68
|
+
export type GetAllBlogCategoryRequestSortByEnum = typeof GetAllBlogCategoryRequestSortByEnum[keyof typeof GetAllBlogCategoryRequestSortByEnum];
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export const GetAllBlogCategoryRequestSortDirectionEnum = {
|
|
74
|
+
Asc: 'asc',
|
|
75
|
+
Desc: 'desc'
|
|
76
|
+
} as const;
|
|
77
|
+
export type GetAllBlogCategoryRequestSortDirectionEnum = typeof GetAllBlogCategoryRequestSortDirectionEnum[keyof typeof GetAllBlogCategoryRequestSortDirectionEnum];
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the GetAllBlogCategoryRequest interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfGetAllBlogCategoryRequest(value: object): value is GetAllBlogCategoryRequest {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function GetAllBlogCategoryRequestFromJSON(json: any): GetAllBlogCategoryRequest {
|
|
88
|
+
return GetAllBlogCategoryRequestFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function GetAllBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllBlogCategoryRequest {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
98
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
99
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
100
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
101
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
102
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function GetAllBlogCategoryRequestToJSON(json: any): GetAllBlogCategoryRequest {
|
|
107
|
+
return GetAllBlogCategoryRequestToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function GetAllBlogCategoryRequestToJSONTyped(value?: GetAllBlogCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'search': value['search'],
|
|
118
|
+
'sortBy': value['sortBy'],
|
|
119
|
+
'sortDirection': value['sortDirection'],
|
|
120
|
+
'related_id': value['relatedId'],
|
|
121
|
+
'related_type': value['relatedType'],
|
|
122
|
+
'includes_relations': value['includesRelations'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
@@ -0,0 +1,141 @@
|
|
|
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 IndexBlogCategoryRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IndexBlogCategoryRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndexBlogCategoryRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {IndexBlogCategoryRequestSortByEnum}
|
|
31
|
+
* @memberof IndexBlogCategoryRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: IndexBlogCategoryRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {IndexBlogCategoryRequestSortDirectionEnum}
|
|
37
|
+
* @memberof IndexBlogCategoryRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IndexBlogCategoryRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexBlogCategoryRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexBlogCategoryRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof IndexBlogCategoryRequest
|
|
56
|
+
*/
|
|
57
|
+
relatedId?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof IndexBlogCategoryRequest
|
|
62
|
+
*/
|
|
63
|
+
relatedType?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof IndexBlogCategoryRequest
|
|
68
|
+
*/
|
|
69
|
+
includesRelations?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const IndexBlogCategoryRequestSortByEnum = {
|
|
77
|
+
Id: 'id',
|
|
78
|
+
Name: 'name'
|
|
79
|
+
} as const;
|
|
80
|
+
export type IndexBlogCategoryRequestSortByEnum = typeof IndexBlogCategoryRequestSortByEnum[keyof typeof IndexBlogCategoryRequestSortByEnum];
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export const IndexBlogCategoryRequestSortDirectionEnum = {
|
|
86
|
+
Asc: 'asc',
|
|
87
|
+
Desc: 'desc'
|
|
88
|
+
} as const;
|
|
89
|
+
export type IndexBlogCategoryRequestSortDirectionEnum = typeof IndexBlogCategoryRequestSortDirectionEnum[keyof typeof IndexBlogCategoryRequestSortDirectionEnum];
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the IndexBlogCategoryRequest interface.
|
|
94
|
+
*/
|
|
95
|
+
export function instanceOfIndexBlogCategoryRequest(value: object): value is IndexBlogCategoryRequest {
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function IndexBlogCategoryRequestFromJSON(json: any): IndexBlogCategoryRequest {
|
|
100
|
+
return IndexBlogCategoryRequestFromJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function IndexBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexBlogCategoryRequest {
|
|
104
|
+
if (json == null) {
|
|
105
|
+
return json;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
110
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
111
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
112
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
113
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
114
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
115
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
116
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function IndexBlogCategoryRequestToJSON(json: any): IndexBlogCategoryRequest {
|
|
121
|
+
return IndexBlogCategoryRequestToJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function IndexBlogCategoryRequestToJSONTyped(value?: IndexBlogCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
125
|
+
if (value == null) {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'search': value['search'],
|
|
132
|
+
'sortBy': value['sortBy'],
|
|
133
|
+
'sortDirection': value['sortDirection'],
|
|
134
|
+
'per_page': value['perPage'],
|
|
135
|
+
'page': value['page'],
|
|
136
|
+
'related_id': value['relatedId'],
|
|
137
|
+
'related_type': value['relatedType'],
|
|
138
|
+
'includes_relations': value['includesRelations'],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface StoreBlogCategoryRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface StoreBlogCategoryRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StoreBlogCategoryRequest
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StoreBlogCategoryRequest
|
|
40
|
+
*/
|
|
41
|
+
slug: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
45
|
+
* @memberof StoreBlogCategoryRequest
|
|
46
|
+
*/
|
|
47
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the StoreBlogCategoryRequest interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfStoreBlogCategoryRequest(value: object): value is StoreBlogCategoryRequest {
|
|
54
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
55
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
56
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function StoreBlogCategoryRequestFromJSON(json: any): StoreBlogCategoryRequest {
|
|
61
|
+
return StoreBlogCategoryRequestFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function StoreBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreBlogCategoryRequest {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'slug': json['slug'],
|
|
72
|
+
'descriptions': ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function StoreBlogCategoryRequestToJSON(json: any): StoreBlogCategoryRequest {
|
|
77
|
+
return StoreBlogCategoryRequestToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function StoreBlogCategoryRequestToJSONTyped(value?: StoreBlogCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'slug': value['slug'],
|
|
89
|
+
'descriptions': ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
130
|
'siteId': json['siteId'],
|
|
130
131
|
'name': json['name'],
|
|
131
132
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -98,6 +98,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
98
98
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
99
99
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
101
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
102
103
|
return true;
|
|
103
104
|
}
|
|
@@ -118,7 +119,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
118
119
|
'phone': json['phone'],
|
|
119
120
|
'longitude': json['longitude'],
|
|
120
121
|
'latitude': json['latitude'],
|
|
121
|
-
'tagLine': json['tag_line']
|
|
122
|
+
'tagLine': json['tag_line'],
|
|
122
123
|
'email': json['email'],
|
|
123
124
|
'website': json['website'] == null ? undefined : json['website'],
|
|
124
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['display_start_date'],
|
|
94
95
|
'displayEndDate': json['display_end_date'],
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSON,
|
|
19
|
+
StoreProductCategoryRequestDescriptionsInnerFromJSONTyped,
|
|
20
|
+
StoreProductCategoryRequestDescriptionsInnerToJSON,
|
|
21
|
+
StoreProductCategoryRequestDescriptionsInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductCategoryRequestDescriptionsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateBlogCategoryRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateBlogCategoryRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateBlogCategoryRequest
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateBlogCategoryRequest
|
|
40
|
+
*/
|
|
41
|
+
slug: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
45
|
+
* @memberof UpdateBlogCategoryRequest
|
|
46
|
+
*/
|
|
47
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the UpdateBlogCategoryRequest interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfUpdateBlogCategoryRequest(value: object): value is UpdateBlogCategoryRequest {
|
|
54
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
55
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
56
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UpdateBlogCategoryRequestFromJSON(json: any): UpdateBlogCategoryRequest {
|
|
61
|
+
return UpdateBlogCategoryRequestFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UpdateBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBlogCategoryRequest {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'slug': json['slug'],
|
|
72
|
+
'descriptions': ((json['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function UpdateBlogCategoryRequestToJSON(json: any): UpdateBlogCategoryRequest {
|
|
77
|
+
return UpdateBlogCategoryRequestToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function UpdateBlogCategoryRequestToJSONTyped(value?: UpdateBlogCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'slug': value['slug'],
|
|
89
|
+
'descriptions': ((value['descriptions'] as Array<any>).map(StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -41,6 +41,8 @@ export * from './AttributeResourceArrayResponse';
|
|
|
41
41
|
export * from './AttributeType';
|
|
42
42
|
export * from './AttributeValueResource';
|
|
43
43
|
export * from './AttributeValueResourceArrayResponse';
|
|
44
|
+
export * from './BlogCategoryFrontendResource';
|
|
45
|
+
export * from './BlogCategoryFrontendResourceArrayResponse';
|
|
44
46
|
export * from './BlogCategoryListResource';
|
|
45
47
|
export * from './BlogCategoryListResourceArrayResponse';
|
|
46
48
|
export * from './BlogCategoryLiteResource';
|
|
@@ -91,6 +93,7 @@ export * from './ExternalApiSyncStatus';
|
|
|
91
93
|
export * from './GenericResponse';
|
|
92
94
|
export * from './GetAllAttributeRequest';
|
|
93
95
|
export * from './GetAllAttributeValueRequest';
|
|
96
|
+
export * from './GetAllBlogCategoryRequest';
|
|
94
97
|
export * from './GetAllDefinitionRequest';
|
|
95
98
|
export * from './GetAllDocumentRequest';
|
|
96
99
|
export * from './GetAllGoogleCategoryRequest';
|
|
@@ -116,6 +119,7 @@ export * from './GoogleCategoryResource';
|
|
|
116
119
|
export * from './GoogleCategoryResourceArrayResponse';
|
|
117
120
|
export * from './IndexAttributeRequest';
|
|
118
121
|
export * from './IndexAttributeValueRequest';
|
|
122
|
+
export * from './IndexBlogCategoryRequest';
|
|
119
123
|
export * from './IndexDefinitionRequest';
|
|
120
124
|
export * from './IndexDocumentRequest';
|
|
121
125
|
export * from './IndexExternalApiLogRequest';
|
|
@@ -314,6 +318,7 @@ export * from './StoreAssetFileRequest';
|
|
|
314
318
|
export * from './StoreAssetForAssetableRequest';
|
|
315
319
|
export * from './StoreAttributeRequest';
|
|
316
320
|
export * from './StoreAttributeValueRequest';
|
|
321
|
+
export * from './StoreBlogCategoryRequest';
|
|
317
322
|
export * from './StoreDefinitionRequest';
|
|
318
323
|
export * from './StoreDocumentFileRequest';
|
|
319
324
|
export * from './StoreDocumentRequest';
|
|
@@ -372,6 +377,7 @@ export * from './TagType';
|
|
|
372
377
|
export * from './UpdateAssetForAssetableRequest';
|
|
373
378
|
export * from './UpdateAttributeRequest';
|
|
374
379
|
export * from './UpdateAttributeValueRequest';
|
|
380
|
+
export * from './UpdateBlogCategoryRequest';
|
|
375
381
|
export * from './UpdateDefinitionRequest';
|
|
376
382
|
export * from './UpdateDocumentRequest';
|
|
377
383
|
export * from './UpdateFilterOrderAttributeRequest';
|