@digital8/lighting-illusions-ts-sdk 0.0.1672 → 0.0.1673
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 +36 -0
- package/README.md +34 -2
- package/dist/apis/BlogCategoryApi.d.ts +109 -0
- package/dist/apis/BlogCategoryApi.js +433 -0
- package/dist/apis/FrontendComponentApi.d.ts +33 -0
- package/dist/apis/FrontendComponentApi.js +138 -0
- package/dist/apis/PageApi.d.ts +109 -0
- package/dist/apis/PageApi.js +433 -0
- package/dist/apis/PageComponentApi.d.ts +94 -0
- package/dist/apis/PageComponentApi.js +375 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- 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/GetAllFrontendComponentRequest.d.ts +78 -0
- package/dist/models/GetAllFrontendComponentRequest.js +74 -0
- package/dist/models/GetAllPageComponentRequest.d.ts +90 -0
- package/dist/models/GetAllPageComponentRequest.js +78 -0
- package/dist/models/GetAllPageRequest.d.ts +91 -0
- package/dist/models/GetAllPageRequest.js +79 -0
- package/dist/models/IndexBlogCategoryRequest.d.ts +90 -0
- package/dist/models/IndexBlogCategoryRequest.js +78 -0
- package/dist/models/IndexPageRequest.d.ts +103 -0
- package/dist/models/IndexPageRequest.js +83 -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/StorePageComponentRequest.d.ts +81 -0
- package/dist/models/StorePageComponentRequest.js +72 -0
- package/dist/models/StorePageComponentRequestRelationsInner.d.ts +44 -0
- package/dist/models/StorePageComponentRequestRelationsInner.js +53 -0
- package/dist/models/StorePageRequest.d.ts +85 -0
- package/dist/models/StorePageRequest.js +84 -0
- package/dist/models/StorePageRequestBlog.d.ts +50 -0
- package/dist/models/StorePageRequestBlog.js +55 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/UpdateBlogCategoryRequest.d.ts +45 -0
- package/dist/models/UpdateBlogCategoryRequest.js +60 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +69 -0
- package/dist/models/UpdatePageComponentRequest.js +64 -0
- package/dist/models/UpdatePageRequest.d.ts +70 -0
- package/dist/models/UpdatePageRequest.js +69 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/BlogCategoryApi.md +407 -0
- package/docs/FrontendComponentApi.md +74 -0
- package/docs/GetAllBlogCategoryRequest.md +44 -0
- package/docs/GetAllFrontendComponentRequest.md +44 -0
- package/docs/GetAllPageComponentRequest.md +48 -0
- package/docs/GetAllPageRequest.md +48 -0
- package/docs/IndexBlogCategoryRequest.md +48 -0
- package/docs/IndexPageRequest.md +52 -0
- package/docs/PageApi.md +407 -0
- package/docs/PageComponentApi.md +341 -0
- package/docs/StoreBlogCategoryRequest.md +38 -0
- package/docs/StorePageComponentRequest.md +50 -0
- package/docs/StorePageComponentRequestRelationsInner.md +38 -0
- package/docs/StorePageRequest.md +48 -0
- package/docs/StorePageRequestBlog.md +40 -0
- package/docs/UpdateBlogCategoryRequest.md +38 -0
- package/docs/UpdatePageComponentRequest.md +46 -0
- package/docs/UpdatePageRequest.md +46 -0
- package/package.json +1 -1
- package/src/apis/BlogCategoryApi.ts +334 -0
- package/src/apis/FrontendComponentApi.ts +77 -0
- package/src/apis/PageApi.ts +334 -0
- package/src/apis/PageComponentApi.ts +284 -0
- package/src/apis/index.ts +4 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllBlogCategoryRequest.ts +125 -0
- package/src/models/GetAllFrontendComponentRequest.ts +125 -0
- package/src/models/GetAllPageComponentRequest.ts +141 -0
- package/src/models/GetAllPageRequest.ts +142 -0
- package/src/models/IndexBlogCategoryRequest.ts +141 -0
- package/src/models/IndexPageRequest.ts +158 -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/StorePageComponentRequest.ts +140 -0
- package/src/models/StorePageComponentRequestRelationsInner.ts +81 -0
- package/src/models/StorePageRequest.ts +153 -0
- package/src/models/StorePageRequestBlog.ts +89 -0
- package/src/models/StoreResource.ts +3 -2
- package/src/models/UpdateBlogCategoryRequest.ts +92 -0
- package/src/models/UpdatePageComponentRequest.ts +122 -0
- package/src/models/UpdatePageRequest.ts +131 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,84 @@
|
|
|
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.StorePageRequestTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfStorePageRequest = instanceOfStorePageRequest;
|
|
18
|
+
exports.StorePageRequestFromJSON = StorePageRequestFromJSON;
|
|
19
|
+
exports.StorePageRequestFromJSONTyped = StorePageRequestFromJSONTyped;
|
|
20
|
+
exports.StorePageRequestToJSON = StorePageRequestToJSON;
|
|
21
|
+
exports.StorePageRequestToJSONTyped = StorePageRequestToJSONTyped;
|
|
22
|
+
var StoreProductCategoryRequestSeoInner_1 = require("./StoreProductCategoryRequestSeoInner");
|
|
23
|
+
var StorePageRequestBlog_1 = require("./StorePageRequestBlog");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.StorePageRequestTypeEnum = {
|
|
28
|
+
Home: 'home',
|
|
29
|
+
Page: 'page',
|
|
30
|
+
Blog: 'blog'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the StorePageRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfStorePageRequest(value) {
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function StorePageRequestFromJSON(json) {
|
|
49
|
+
return StorePageRequestFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function StorePageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
'siteId': json['site_id'],
|
|
58
|
+
'slug': json['slug'],
|
|
59
|
+
'type': json['type'],
|
|
60
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
61
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
62
|
+
'blog': json['blog'] == null ? undefined : (0, StorePageRequestBlog_1.StorePageRequestBlogFromJSON)(json['blog']),
|
|
63
|
+
'seo': (json['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function StorePageRequestToJSON(json) {
|
|
67
|
+
return StorePageRequestToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function StorePageRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'name': value['name'],
|
|
76
|
+
'site_id': value['siteId'],
|
|
77
|
+
'slug': value['slug'],
|
|
78
|
+
'type': value['type'],
|
|
79
|
+
'enabled': value['enabled'],
|
|
80
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
81
|
+
'blog': (0, StorePageRequestBlog_1.StorePageRequestBlogToJSON)(value['blog']),
|
|
82
|
+
'seo': (value['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerToJSON)),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 StorePageRequestBlog
|
|
16
|
+
*/
|
|
17
|
+
export interface StorePageRequestBlog {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StorePageRequestBlog
|
|
22
|
+
*/
|
|
23
|
+
excerpt?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof StorePageRequestBlog
|
|
28
|
+
*/
|
|
29
|
+
featured?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof StorePageRequestBlog
|
|
34
|
+
*/
|
|
35
|
+
blogCategories?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof StorePageRequestBlog
|
|
40
|
+
*/
|
|
41
|
+
thumbnail?: Array<string> | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the StorePageRequestBlog interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfStorePageRequestBlog(value: object): value is StorePageRequestBlog;
|
|
47
|
+
export declare function StorePageRequestBlogFromJSON(json: any): StorePageRequestBlog;
|
|
48
|
+
export declare function StorePageRequestBlogFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorePageRequestBlog;
|
|
49
|
+
export declare function StorePageRequestBlogToJSON(json: any): StorePageRequestBlog;
|
|
50
|
+
export declare function StorePageRequestBlogToJSONTyped(value?: StorePageRequestBlog | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfStorePageRequestBlog = instanceOfStorePageRequestBlog;
|
|
17
|
+
exports.StorePageRequestBlogFromJSON = StorePageRequestBlogFromJSON;
|
|
18
|
+
exports.StorePageRequestBlogFromJSONTyped = StorePageRequestBlogFromJSONTyped;
|
|
19
|
+
exports.StorePageRequestBlogToJSON = StorePageRequestBlogToJSON;
|
|
20
|
+
exports.StorePageRequestBlogToJSONTyped = StorePageRequestBlogToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StorePageRequestBlog interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStorePageRequestBlog(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function StorePageRequestBlogFromJSON(json) {
|
|
28
|
+
return StorePageRequestBlogFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function StorePageRequestBlogFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'excerpt': json['excerpt'] == null ? undefined : json['excerpt'],
|
|
36
|
+
'featured': json['featured'] == null ? undefined : json['featured'],
|
|
37
|
+
'blogCategories': json['blog_categories'] == null ? undefined : json['blog_categories'],
|
|
38
|
+
'thumbnail': json['thumbnail'] == null ? undefined : json['thumbnail'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function StorePageRequestBlogToJSON(json) {
|
|
42
|
+
return StorePageRequestBlogToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function StorePageRequestBlogToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'excerpt': value['excerpt'],
|
|
51
|
+
'featured': value['featured'],
|
|
52
|
+
'blog_categories': value['blogCategories'],
|
|
53
|
+
'thumbnail': value['thumbnail'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -38,6 +38,8 @@ function instanceOfStoreResource(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
42
44
|
return false;
|
|
43
45
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -62,7 +64,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
64
|
'latitude': json['latitude'],
|
|
63
65
|
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
64
66
|
'email': json['email'],
|
|
65
|
-
'website': json['website']
|
|
67
|
+
'website': json['website'],
|
|
66
68
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
67
69
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
68
70
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { StorePageComponentRequestRelationsInner } from './StorePageComponentRequestRelationsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdatePageComponentRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdatePageComponentRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdatePageComponentRequest
|
|
23
|
+
*/
|
|
24
|
+
type: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof UpdatePageComponentRequest
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof UpdatePageComponentRequest
|
|
35
|
+
*/
|
|
36
|
+
order?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof UpdatePageComponentRequest
|
|
41
|
+
*/
|
|
42
|
+
startDate?: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof UpdatePageComponentRequest
|
|
47
|
+
*/
|
|
48
|
+
endDate?: Date | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof UpdatePageComponentRequest
|
|
53
|
+
*/
|
|
54
|
+
componentData?: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<StorePageComponentRequestRelationsInner>}
|
|
58
|
+
* @memberof UpdatePageComponentRequest
|
|
59
|
+
*/
|
|
60
|
+
relations?: Array<StorePageComponentRequestRelationsInner>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the UpdatePageComponentRequest interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfUpdatePageComponentRequest(value: object): value is UpdatePageComponentRequest;
|
|
66
|
+
export declare function UpdatePageComponentRequestFromJSON(json: any): UpdatePageComponentRequest;
|
|
67
|
+
export declare function UpdatePageComponentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePageComponentRequest;
|
|
68
|
+
export declare function UpdatePageComponentRequestToJSON(json: any): UpdatePageComponentRequest;
|
|
69
|
+
export declare function UpdatePageComponentRequestToJSONTyped(value?: UpdatePageComponentRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfUpdatePageComponentRequest = instanceOfUpdatePageComponentRequest;
|
|
17
|
+
exports.UpdatePageComponentRequestFromJSON = UpdatePageComponentRequestFromJSON;
|
|
18
|
+
exports.UpdatePageComponentRequestFromJSONTyped = UpdatePageComponentRequestFromJSONTyped;
|
|
19
|
+
exports.UpdatePageComponentRequestToJSON = UpdatePageComponentRequestToJSON;
|
|
20
|
+
exports.UpdatePageComponentRequestToJSONTyped = UpdatePageComponentRequestToJSONTyped;
|
|
21
|
+
var StorePageComponentRequestRelationsInner_1 = require("./StorePageComponentRequestRelationsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdatePageComponentRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdatePageComponentRequest(value) {
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function UpdatePageComponentRequestFromJSON(json) {
|
|
31
|
+
return UpdatePageComponentRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function UpdatePageComponentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
40
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
41
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
42
|
+
'endDate': json['end_date'] == null ? undefined : (new Date(json['end_date'])),
|
|
43
|
+
'componentData': json['component_data'] == null ? undefined : json['component_data'],
|
|
44
|
+
'relations': json['relations'] == null ? undefined : (json['relations'].map(StorePageComponentRequestRelationsInner_1.StorePageComponentRequestRelationsInnerFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function UpdatePageComponentRequestToJSON(json) {
|
|
48
|
+
return UpdatePageComponentRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function UpdatePageComponentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'type': value['type'],
|
|
57
|
+
'disabled': value['disabled'],
|
|
58
|
+
'order': value['order'],
|
|
59
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
60
|
+
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
61
|
+
'component_data': value['componentData'],
|
|
62
|
+
'relations': value['relations'] == null ? undefined : (value['relations'].map(StorePageComponentRequestRelationsInner_1.StorePageComponentRequestRelationsInnerToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { StoreProductCategoryRequestSeoInner } from './StoreProductCategoryRequestSeoInner';
|
|
13
|
+
import type { StorePageRequestBlog } from './StorePageRequestBlog';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UpdatePageRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdatePageRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UpdatePageRequest
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UpdatePageRequest
|
|
30
|
+
*/
|
|
31
|
+
slug: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof UpdatePageRequest
|
|
36
|
+
*/
|
|
37
|
+
enabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Date}
|
|
41
|
+
* @memberof UpdatePageRequest
|
|
42
|
+
*/
|
|
43
|
+
startDate?: Date | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {StorePageRequestBlog}
|
|
47
|
+
* @memberof UpdatePageRequest
|
|
48
|
+
*/
|
|
49
|
+
blog?: StorePageRequestBlog;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<number>}
|
|
53
|
+
* @memberof UpdatePageRequest
|
|
54
|
+
*/
|
|
55
|
+
componentOrder?: Array<number>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<StoreProductCategoryRequestSeoInner>}
|
|
59
|
+
* @memberof UpdatePageRequest
|
|
60
|
+
*/
|
|
61
|
+
seo: Array<StoreProductCategoryRequestSeoInner>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the UpdatePageRequest interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfUpdatePageRequest(value: object): value is UpdatePageRequest;
|
|
67
|
+
export declare function UpdatePageRequestFromJSON(json: any): UpdatePageRequest;
|
|
68
|
+
export declare function UpdatePageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePageRequest;
|
|
69
|
+
export declare function UpdatePageRequestToJSON(json: any): UpdatePageRequest;
|
|
70
|
+
export declare function UpdatePageRequestToJSONTyped(value?: UpdatePageRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.instanceOfUpdatePageRequest = instanceOfUpdatePageRequest;
|
|
17
|
+
exports.UpdatePageRequestFromJSON = UpdatePageRequestFromJSON;
|
|
18
|
+
exports.UpdatePageRequestFromJSONTyped = UpdatePageRequestFromJSONTyped;
|
|
19
|
+
exports.UpdatePageRequestToJSON = UpdatePageRequestToJSON;
|
|
20
|
+
exports.UpdatePageRequestToJSONTyped = UpdatePageRequestToJSONTyped;
|
|
21
|
+
var StoreProductCategoryRequestSeoInner_1 = require("./StoreProductCategoryRequestSeoInner");
|
|
22
|
+
var StorePageRequestBlog_1 = require("./StorePageRequestBlog");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UpdatePageRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUpdatePageRequest(value) {
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function UpdatePageRequestFromJSON(json) {
|
|
36
|
+
return UpdatePageRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function UpdatePageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'slug': json['slug'],
|
|
45
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
46
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
47
|
+
'blog': json['blog'] == null ? undefined : (0, StorePageRequestBlog_1.StorePageRequestBlogFromJSON)(json['blog']),
|
|
48
|
+
'componentOrder': json['component_order'] == null ? undefined : json['component_order'],
|
|
49
|
+
'seo': (json['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerFromJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function UpdatePageRequestToJSON(json) {
|
|
53
|
+
return UpdatePageRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function UpdatePageRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'slug': value['slug'],
|
|
63
|
+
'enabled': value['enabled'],
|
|
64
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
65
|
+
'blog': (0, StorePageRequestBlog_1.StorePageRequestBlogToJSON)(value['blog']),
|
|
66
|
+
'component_order': value['componentOrder'],
|
|
67
|
+
'seo': (value['seo'].map(StoreProductCategoryRequestSeoInner_1.StoreProductCategoryRequestSeoInnerToJSON)),
|
|
68
|
+
};
|
|
69
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -99,10 +99,14 @@ export * from './FrontendComponentResourceArrayResponse';
|
|
|
99
99
|
export * from './GenericResponse';
|
|
100
100
|
export * from './GetAllAttributeRequest';
|
|
101
101
|
export * from './GetAllAttributeValueRequest';
|
|
102
|
+
export * from './GetAllBlogCategoryRequest';
|
|
102
103
|
export * from './GetAllDefinitionRequest';
|
|
103
104
|
export * from './GetAllDocumentRequest';
|
|
105
|
+
export * from './GetAllFrontendComponentRequest';
|
|
104
106
|
export * from './GetAllGoogleCategoryRequest';
|
|
105
107
|
export * from './GetAllOverlayTemplateRequest';
|
|
108
|
+
export * from './GetAllPageComponentRequest';
|
|
109
|
+
export * from './GetAllPageRequest';
|
|
106
110
|
export * from './GetAllProductCategoryRequest';
|
|
107
111
|
export * from './GetAllProductChildRequest';
|
|
108
112
|
export * from './GetAllProductRangeRequest';
|
|
@@ -124,12 +128,14 @@ export * from './GoogleCategoryResource';
|
|
|
124
128
|
export * from './GoogleCategoryResourceArrayResponse';
|
|
125
129
|
export * from './IndexAttributeRequest';
|
|
126
130
|
export * from './IndexAttributeValueRequest';
|
|
131
|
+
export * from './IndexBlogCategoryRequest';
|
|
127
132
|
export * from './IndexDefinitionRequest';
|
|
128
133
|
export * from './IndexDocumentRequest';
|
|
129
134
|
export * from './IndexExternalApiLogRequest';
|
|
130
135
|
export * from './IndexLabelRequest';
|
|
131
136
|
export * from './IndexModelAttributeRequest';
|
|
132
137
|
export * from './IndexOverlayTemplateRequest';
|
|
138
|
+
export * from './IndexPageRequest';
|
|
133
139
|
export * from './IndexProductCategoryRequest';
|
|
134
140
|
export * from './IndexProductChildRequest';
|
|
135
141
|
export * from './IndexProductRangeRequest';
|
|
@@ -342,6 +348,7 @@ export * from './StoreAssetFileRequest';
|
|
|
342
348
|
export * from './StoreAssetForAssetableRequest';
|
|
343
349
|
export * from './StoreAttributeRequest';
|
|
344
350
|
export * from './StoreAttributeValueRequest';
|
|
351
|
+
export * from './StoreBlogCategoryRequest';
|
|
345
352
|
export * from './StoreDefinitionRequest';
|
|
346
353
|
export * from './StoreDocumentFileRequest';
|
|
347
354
|
export * from './StoreDocumentRequest';
|
|
@@ -354,6 +361,10 @@ export * from './StoreLiteResource';
|
|
|
354
361
|
export * from './StoreLiteResourceArrayResponse';
|
|
355
362
|
export * from './StoreOverlayTemplateAssetRequest';
|
|
356
363
|
export * from './StoreOverlayTemplateRequest';
|
|
364
|
+
export * from './StorePageComponentRequest';
|
|
365
|
+
export * from './StorePageComponentRequestRelationsInner';
|
|
366
|
+
export * from './StorePageRequest';
|
|
367
|
+
export * from './StorePageRequestBlog';
|
|
357
368
|
export * from './StoreProductCategoryRequest';
|
|
358
369
|
export * from './StoreProductCategoryRequestAutomationRulesInner';
|
|
359
370
|
export * from './StoreProductCategoryRequestDescriptionsInner';
|
|
@@ -400,6 +411,7 @@ export * from './TagType';
|
|
|
400
411
|
export * from './UpdateAssetForAssetableRequest';
|
|
401
412
|
export * from './UpdateAttributeRequest';
|
|
402
413
|
export * from './UpdateAttributeValueRequest';
|
|
414
|
+
export * from './UpdateBlogCategoryRequest';
|
|
403
415
|
export * from './UpdateDefinitionRequest';
|
|
404
416
|
export * from './UpdateDocumentRequest';
|
|
405
417
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
@@ -408,6 +420,8 @@ export * from './UpdateLabelRequest';
|
|
|
408
420
|
export * from './UpdateModelAttributeRequest';
|
|
409
421
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
410
422
|
export * from './UpdateOverlayTemplateRequest';
|
|
423
|
+
export * from './UpdatePageComponentRequest';
|
|
424
|
+
export * from './UpdatePageRequest';
|
|
411
425
|
export * from './UpdateProductCategoryRequest';
|
|
412
426
|
export * from './UpdateProductChildRequest';
|
|
413
427
|
export * from './UpdateProductChildRequestAssetsInner';
|