@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
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
* @interface GetAllBlogCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GetAllBlogCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetAllBlogCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetAllBlogCategoryRequestSortByEnum}
|
|
27
|
+
* @memberof GetAllBlogCategoryRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: GetAllBlogCategoryRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {GetAllBlogCategoryRequestSortDirectionEnum}
|
|
33
|
+
* @memberof GetAllBlogCategoryRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: GetAllBlogCategoryRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetAllBlogCategoryRequest
|
|
40
|
+
*/
|
|
41
|
+
relatedId?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetAllBlogCategoryRequest
|
|
46
|
+
*/
|
|
47
|
+
relatedType?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetAllBlogCategoryRequest
|
|
52
|
+
*/
|
|
53
|
+
includesRelations?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const GetAllBlogCategoryRequestSortByEnum: {
|
|
59
|
+
readonly Id: "id";
|
|
60
|
+
readonly Name: "name";
|
|
61
|
+
};
|
|
62
|
+
export type GetAllBlogCategoryRequestSortByEnum = typeof GetAllBlogCategoryRequestSortByEnum[keyof typeof GetAllBlogCategoryRequestSortByEnum];
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const GetAllBlogCategoryRequestSortDirectionEnum: {
|
|
67
|
+
readonly Asc: "asc";
|
|
68
|
+
readonly Desc: "desc";
|
|
69
|
+
};
|
|
70
|
+
export type GetAllBlogCategoryRequestSortDirectionEnum = typeof GetAllBlogCategoryRequestSortDirectionEnum[keyof typeof GetAllBlogCategoryRequestSortDirectionEnum];
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the GetAllBlogCategoryRequest interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfGetAllBlogCategoryRequest(value: object): value is GetAllBlogCategoryRequest;
|
|
75
|
+
export declare function GetAllBlogCategoryRequestFromJSON(json: any): GetAllBlogCategoryRequest;
|
|
76
|
+
export declare function GetAllBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllBlogCategoryRequest;
|
|
77
|
+
export declare function GetAllBlogCategoryRequestToJSON(json: any): GetAllBlogCategoryRequest;
|
|
78
|
+
export declare function GetAllBlogCategoryRequestToJSONTyped(value?: GetAllBlogCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.GetAllBlogCategoryRequestSortDirectionEnum = exports.GetAllBlogCategoryRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfGetAllBlogCategoryRequest = instanceOfGetAllBlogCategoryRequest;
|
|
18
|
+
exports.GetAllBlogCategoryRequestFromJSON = GetAllBlogCategoryRequestFromJSON;
|
|
19
|
+
exports.GetAllBlogCategoryRequestFromJSONTyped = GetAllBlogCategoryRequestFromJSONTyped;
|
|
20
|
+
exports.GetAllBlogCategoryRequestToJSON = GetAllBlogCategoryRequestToJSON;
|
|
21
|
+
exports.GetAllBlogCategoryRequestToJSONTyped = GetAllBlogCategoryRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetAllBlogCategoryRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
Name: 'name'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.GetAllBlogCategoryRequestSortDirectionEnum = {
|
|
33
|
+
Asc: 'asc',
|
|
34
|
+
Desc: 'desc'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetAllBlogCategoryRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfGetAllBlogCategoryRequest(value) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function GetAllBlogCategoryRequestFromJSON(json) {
|
|
43
|
+
return GetAllBlogCategoryRequestFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function GetAllBlogCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
51
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
52
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
53
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
54
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
55
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function GetAllBlogCategoryRequestToJSON(json) {
|
|
59
|
+
return GetAllBlogCategoryRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function GetAllBlogCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'search': value['search'],
|
|
68
|
+
'sortBy': value['sortBy'],
|
|
69
|
+
'sortDirection': value['sortDirection'],
|
|
70
|
+
'related_id': value['relatedId'],
|
|
71
|
+
'related_type': value['relatedType'],
|
|
72
|
+
'includes_relations': value['includesRelations'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
* @interface IndexBlogCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexBlogCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexBlogCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {IndexBlogCategoryRequestSortByEnum}
|
|
27
|
+
* @memberof IndexBlogCategoryRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexBlogCategoryRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IndexBlogCategoryRequestSortDirectionEnum}
|
|
33
|
+
* @memberof IndexBlogCategoryRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexBlogCategoryRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexBlogCategoryRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexBlogCategoryRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof IndexBlogCategoryRequest
|
|
52
|
+
*/
|
|
53
|
+
relatedId?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof IndexBlogCategoryRequest
|
|
58
|
+
*/
|
|
59
|
+
relatedType?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof IndexBlogCategoryRequest
|
|
64
|
+
*/
|
|
65
|
+
includesRelations?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const IndexBlogCategoryRequestSortByEnum: {
|
|
71
|
+
readonly Id: "id";
|
|
72
|
+
readonly Name: "name";
|
|
73
|
+
};
|
|
74
|
+
export type IndexBlogCategoryRequestSortByEnum = typeof IndexBlogCategoryRequestSortByEnum[keyof typeof IndexBlogCategoryRequestSortByEnum];
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const IndexBlogCategoryRequestSortDirectionEnum: {
|
|
79
|
+
readonly Asc: "asc";
|
|
80
|
+
readonly Desc: "desc";
|
|
81
|
+
};
|
|
82
|
+
export type IndexBlogCategoryRequestSortDirectionEnum = typeof IndexBlogCategoryRequestSortDirectionEnum[keyof typeof IndexBlogCategoryRequestSortDirectionEnum];
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the IndexBlogCategoryRequest interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfIndexBlogCategoryRequest(value: object): value is IndexBlogCategoryRequest;
|
|
87
|
+
export declare function IndexBlogCategoryRequestFromJSON(json: any): IndexBlogCategoryRequest;
|
|
88
|
+
export declare function IndexBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexBlogCategoryRequest;
|
|
89
|
+
export declare function IndexBlogCategoryRequestToJSON(json: any): IndexBlogCategoryRequest;
|
|
90
|
+
export declare function IndexBlogCategoryRequestToJSONTyped(value?: IndexBlogCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.IndexBlogCategoryRequestSortDirectionEnum = exports.IndexBlogCategoryRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexBlogCategoryRequest = instanceOfIndexBlogCategoryRequest;
|
|
18
|
+
exports.IndexBlogCategoryRequestFromJSON = IndexBlogCategoryRequestFromJSON;
|
|
19
|
+
exports.IndexBlogCategoryRequestFromJSONTyped = IndexBlogCategoryRequestFromJSONTyped;
|
|
20
|
+
exports.IndexBlogCategoryRequestToJSON = IndexBlogCategoryRequestToJSON;
|
|
21
|
+
exports.IndexBlogCategoryRequestToJSONTyped = IndexBlogCategoryRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IndexBlogCategoryRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
Name: 'name'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.IndexBlogCategoryRequestSortDirectionEnum = {
|
|
33
|
+
Asc: 'asc',
|
|
34
|
+
Desc: 'desc'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the IndexBlogCategoryRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfIndexBlogCategoryRequest(value) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function IndexBlogCategoryRequestFromJSON(json) {
|
|
43
|
+
return IndexBlogCategoryRequestFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function IndexBlogCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
51
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
52
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
53
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
54
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
55
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
56
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
57
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function IndexBlogCategoryRequestToJSON(json) {
|
|
61
|
+
return IndexBlogCategoryRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function IndexBlogCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
64
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'search': value['search'],
|
|
70
|
+
'sortBy': value['sortBy'],
|
|
71
|
+
'sortDirection': value['sortDirection'],
|
|
72
|
+
'per_page': value['perPage'],
|
|
73
|
+
'page': value['page'],
|
|
74
|
+
'related_id': value['relatedId'],
|
|
75
|
+
'related_type': value['relatedType'],
|
|
76
|
+
'includes_relations': value['includesRelations'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StoreBlogCategoryRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreBlogCategoryRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof StoreBlogCategoryRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof StoreBlogCategoryRequest
|
|
29
|
+
*/
|
|
30
|
+
slug: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
34
|
+
* @memberof StoreBlogCategoryRequest
|
|
35
|
+
*/
|
|
36
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StoreBlogCategoryRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfStoreBlogCategoryRequest(value: object): value is StoreBlogCategoryRequest;
|
|
42
|
+
export declare function StoreBlogCategoryRequestFromJSON(json: any): StoreBlogCategoryRequest;
|
|
43
|
+
export declare function StoreBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreBlogCategoryRequest;
|
|
44
|
+
export declare function StoreBlogCategoryRequestToJSON(json: any): StoreBlogCategoryRequest;
|
|
45
|
+
export declare function StoreBlogCategoryRequestToJSONTyped(value?: StoreBlogCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfStoreBlogCategoryRequest = instanceOfStoreBlogCategoryRequest;
|
|
17
|
+
exports.StoreBlogCategoryRequestFromJSON = StoreBlogCategoryRequestFromJSON;
|
|
18
|
+
exports.StoreBlogCategoryRequestFromJSONTyped = StoreBlogCategoryRequestFromJSONTyped;
|
|
19
|
+
exports.StoreBlogCategoryRequestToJSON = StoreBlogCategoryRequestToJSON;
|
|
20
|
+
exports.StoreBlogCategoryRequestToJSONTyped = StoreBlogCategoryRequestToJSONTyped;
|
|
21
|
+
var StoreProductCategoryRequestDescriptionsInner_1 = require("./StoreProductCategoryRequestDescriptionsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StoreBlogCategoryRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStoreBlogCategoryRequest(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function StoreBlogCategoryRequestFromJSON(json) {
|
|
35
|
+
return StoreBlogCategoryRequestFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function StoreBlogCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'slug': json['slug'],
|
|
44
|
+
'descriptions': (json['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function StoreBlogCategoryRequestToJSON(json) {
|
|
48
|
+
return StoreBlogCategoryRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function StoreBlogCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'slug': value['slug'],
|
|
58
|
+
'descriptions': (value['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -28,6 +28,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -54,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'siteId': json['siteId'],
|
|
55
57
|
'name': json['name'],
|
|
56
58
|
'email': json['email'],
|
|
57
|
-
'website': json['website']
|
|
59
|
+
'website': json['website'],
|
|
58
60
|
'phone': json['phone'],
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
return true;
|
|
@@ -51,7 +53,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
'phone': json['phone'],
|
|
52
54
|
'longitude': json['longitude'],
|
|
53
55
|
'latitude': json['latitude'],
|
|
54
|
-
'tagLine': json['tag_line']
|
|
56
|
+
'tagLine': json['tag_line'],
|
|
55
57
|
'email': json['email'],
|
|
56
58
|
'website': json['website'] == null ? undefined : json['website'],
|
|
57
59
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['display_start_date'],
|
|
51
53
|
'displayEndDate': json['display_end_date'],
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { StoreProductCategoryRequestDescriptionsInner } from './StoreProductCategoryRequestDescriptionsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateBlogCategoryRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateBlogCategoryRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateBlogCategoryRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateBlogCategoryRequest
|
|
29
|
+
*/
|
|
30
|
+
slug: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<StoreProductCategoryRequestDescriptionsInner>}
|
|
34
|
+
* @memberof UpdateBlogCategoryRequest
|
|
35
|
+
*/
|
|
36
|
+
descriptions: Array<StoreProductCategoryRequestDescriptionsInner>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UpdateBlogCategoryRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfUpdateBlogCategoryRequest(value: object): value is UpdateBlogCategoryRequest;
|
|
42
|
+
export declare function UpdateBlogCategoryRequestFromJSON(json: any): UpdateBlogCategoryRequest;
|
|
43
|
+
export declare function UpdateBlogCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBlogCategoryRequest;
|
|
44
|
+
export declare function UpdateBlogCategoryRequestToJSON(json: any): UpdateBlogCategoryRequest;
|
|
45
|
+
export declare function UpdateBlogCategoryRequestToJSONTyped(value?: UpdateBlogCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfUpdateBlogCategoryRequest = instanceOfUpdateBlogCategoryRequest;
|
|
17
|
+
exports.UpdateBlogCategoryRequestFromJSON = UpdateBlogCategoryRequestFromJSON;
|
|
18
|
+
exports.UpdateBlogCategoryRequestFromJSONTyped = UpdateBlogCategoryRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateBlogCategoryRequestToJSON = UpdateBlogCategoryRequestToJSON;
|
|
20
|
+
exports.UpdateBlogCategoryRequestToJSONTyped = UpdateBlogCategoryRequestToJSONTyped;
|
|
21
|
+
var StoreProductCategoryRequestDescriptionsInner_1 = require("./StoreProductCategoryRequestDescriptionsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateBlogCategoryRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateBlogCategoryRequest(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function UpdateBlogCategoryRequestFromJSON(json) {
|
|
35
|
+
return UpdateBlogCategoryRequestFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function UpdateBlogCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'slug': json['slug'],
|
|
44
|
+
'descriptions': (json['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function UpdateBlogCategoryRequestToJSON(json) {
|
|
48
|
+
return UpdateBlogCategoryRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function UpdateBlogCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'slug': value['slug'],
|
|
58
|
+
'descriptions': (value['descriptions'].map(StoreProductCategoryRequestDescriptionsInner_1.StoreProductCategoryRequestDescriptionsInnerToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|