@digital8/lighting-illusions-ts-sdk 0.0.1731 → 0.0.1732
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 +2 -0
- package/README.md +3 -2
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/GetAllPageRequest.d.ts +2 -0
- package/dist/models/GetAllPageRequest.js +2 -0
- package/dist/models/IndexPageRequest.d.ts +2 -0
- package/dist/models/IndexPageRequest.js +2 -0
- package/dist/models/PageListResource.d.ts +12 -0
- package/dist/models/PageListResource.js +4 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/UpdatePageRequest.d.ts +3 -2
- package/dist/models/UpdatePageRequest.js +3 -2
- package/dist/models/UpdatePageRequestComponentOrderInner.d.ts +38 -0
- package/dist/models/UpdatePageRequestComponentOrderInner.js +55 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/PageListResource.md +4 -0
- package/docs/UpdatePageRequest.md +1 -1
- package/docs/UpdatePageRequestComponentOrderInner.md +36 -0
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +2 -3
- package/src/models/GetAllPageRequest.ts +2 -0
- package/src/models/IndexPageRequest.ts +2 -0
- package/src/models/PageListResource.ts +16 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/UpdatePageRequest.ts +11 -4
- package/src/models/UpdatePageRequestComponentOrderInner.ts +75 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -449,6 +449,7 @@ docs/UpdateOverlayTemplateAssetRequest.md
|
|
|
449
449
|
docs/UpdateOverlayTemplateRequest.md
|
|
450
450
|
docs/UpdatePageComponentRequest.md
|
|
451
451
|
docs/UpdatePageRequest.md
|
|
452
|
+
docs/UpdatePageRequestComponentOrderInner.md
|
|
452
453
|
docs/UpdateProductCategoryRequest.md
|
|
453
454
|
docs/UpdateProductChildRequest.md
|
|
454
455
|
docs/UpdateProductChildRequestAssetsInner.md
|
|
@@ -916,6 +917,7 @@ src/models/UpdateOverlayTemplateAssetRequest.ts
|
|
|
916
917
|
src/models/UpdateOverlayTemplateRequest.ts
|
|
917
918
|
src/models/UpdatePageComponentRequest.ts
|
|
918
919
|
src/models/UpdatePageRequest.ts
|
|
920
|
+
src/models/UpdatePageRequestComponentOrderInner.ts
|
|
919
921
|
src/models/UpdateProductCategoryRequest.ts
|
|
920
922
|
src/models/UpdateProductChildRequest.ts
|
|
921
923
|
src/models/UpdateProductChildRequestAssetsInner.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1732
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -656,6 +656,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
656
656
|
- [UpdateOverlayTemplateRequest](docs/UpdateOverlayTemplateRequest.md)
|
|
657
657
|
- [UpdatePageComponentRequest](docs/UpdatePageComponentRequest.md)
|
|
658
658
|
- [UpdatePageRequest](docs/UpdatePageRequest.md)
|
|
659
|
+
- [UpdatePageRequestComponentOrderInner](docs/UpdatePageRequestComponentOrderInner.md)
|
|
659
660
|
- [UpdateProductCategoryRequest](docs/UpdateProductCategoryRequest.md)
|
|
660
661
|
- [UpdateProductChildRequest](docs/UpdateProductChildRequest.md)
|
|
661
662
|
- [UpdateProductChildRequestAssetsInner](docs/UpdateProductChildRequestAssetsInner.md)
|
|
@@ -686,7 +687,7 @@ and is automatically generated by the
|
|
|
686
687
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
687
688
|
|
|
688
689
|
- API version: `1.0.0`
|
|
689
|
-
- Package version: `0.0.
|
|
690
|
+
- Package version: `0.0.1732`
|
|
690
691
|
- Generator version: `7.21.0`
|
|
691
692
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
692
693
|
|
|
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AddressFrontendResource
|
|
22
22
|
*/
|
|
23
|
-
company
|
|
23
|
+
company: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
line2
|
|
35
|
+
line2: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -22,8 +22,12 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
27
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
28
32
|
return false;
|
|
29
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -44,9 +48,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
48
|
return json;
|
|
45
49
|
}
|
|
46
50
|
return {
|
|
47
|
-
'company': json['company']
|
|
51
|
+
'company': json['company'],
|
|
48
52
|
'line1': json['line1'],
|
|
49
|
-
'line2': json['line2']
|
|
53
|
+
'line2': json['line2'],
|
|
50
54
|
'postcode': json['postcode'],
|
|
51
55
|
'suburb': json['suburb'],
|
|
52
56
|
'country': json['country'],
|
|
@@ -22,8 +22,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -47,7 +45,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'company': json['company'],
|
|
48
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
51
49
|
'line1': json['line_1'],
|
|
52
50
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
53
51
|
'postcode': json['postcode'],
|
|
@@ -76,6 +76,8 @@ export interface GetAllPageRequest {
|
|
|
76
76
|
export declare const GetAllPageRequestSortByEnum: {
|
|
77
77
|
readonly Id: "id";
|
|
78
78
|
readonly Name: "name";
|
|
79
|
+
readonly StartDate: "start_date";
|
|
80
|
+
readonly UpdatedAt: "updated_at";
|
|
79
81
|
readonly CreatedAt: "created_at";
|
|
80
82
|
};
|
|
81
83
|
export type GetAllPageRequestSortByEnum = typeof GetAllPageRequestSortByEnum[keyof typeof GetAllPageRequestSortByEnum];
|
|
@@ -88,6 +88,8 @@ export interface IndexPageRequest {
|
|
|
88
88
|
export declare const IndexPageRequestSortByEnum: {
|
|
89
89
|
readonly Id: "id";
|
|
90
90
|
readonly Name: "name";
|
|
91
|
+
readonly StartDate: "start_date";
|
|
92
|
+
readonly UpdatedAt: "updated_at";
|
|
91
93
|
readonly CreatedAt: "created_at";
|
|
92
94
|
};
|
|
93
95
|
export type IndexPageRequestSortByEnum = typeof IndexPageRequestSortByEnum[keyof typeof IndexPageRequestSortByEnum];
|
|
@@ -58,12 +58,24 @@ export interface PageListResource {
|
|
|
58
58
|
* @memberof PageListResource
|
|
59
59
|
*/
|
|
60
60
|
site: SiteLiteResource | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof PageListResource
|
|
65
|
+
*/
|
|
66
|
+
startDate?: Date | null;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {string}
|
|
64
70
|
* @memberof PageListResource
|
|
65
71
|
*/
|
|
66
72
|
createdAt?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof PageListResource
|
|
77
|
+
*/
|
|
78
|
+
updatedAt?: string | null;
|
|
67
79
|
}
|
|
68
80
|
/**
|
|
69
81
|
* Check if a given object implements the PageListResource interface.
|
|
@@ -54,7 +54,9 @@ function PageListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'enabled': json['enabled'],
|
|
55
55
|
'siteId': json['siteId'],
|
|
56
56
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
57
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
57
58
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
59
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
function PageListResourceToJSON(json) {
|
|
@@ -73,6 +75,8 @@ function PageListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
75
|
'enabled': value['enabled'],
|
|
74
76
|
'siteId': value['siteId'],
|
|
75
77
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
78
|
+
'startDate': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
76
79
|
'createdAt': value['createdAt'],
|
|
80
|
+
'updatedAt': value['updatedAt'],
|
|
77
81
|
};
|
|
78
82
|
}
|
|
@@ -28,8 +28,6 @@ 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;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
54
|
'siteId': json['siteId'],
|
|
57
55
|
'name': json['name'],
|
|
58
56
|
'email': json['email'],
|
|
59
|
-
'website': json['website'],
|
|
57
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
60
58
|
'phone': json['phone'],
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
return true;
|
|
43
41
|
}
|
|
44
42
|
function StoreListResourceFromJSON(json) {
|
|
@@ -57,7 +55,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
55
|
'latitude': json['latitude'],
|
|
58
56
|
'tagLine': json['tag_line'],
|
|
59
57
|
'email': json['email'],
|
|
60
|
-
'website': json['website'],
|
|
58
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
61
59
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
62
60
|
};
|
|
63
61
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { StorePageRequestSeoInner } from './StorePageRequestSeoInner';
|
|
13
13
|
import type { StorePageRequestBlog } from './StorePageRequestBlog';
|
|
14
|
+
import type { UpdatePageRequestComponentOrderInner } from './UpdatePageRequestComponentOrderInner';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -49,10 +50,10 @@ export interface UpdatePageRequest {
|
|
|
49
50
|
blog?: StorePageRequestBlog;
|
|
50
51
|
/**
|
|
51
52
|
*
|
|
52
|
-
* @type {Array<
|
|
53
|
+
* @type {Array<UpdatePageRequestComponentOrderInner>}
|
|
53
54
|
* @memberof UpdatePageRequest
|
|
54
55
|
*/
|
|
55
|
-
componentOrder?: Array<
|
|
56
|
+
componentOrder?: Array<UpdatePageRequestComponentOrderInner>;
|
|
56
57
|
/**
|
|
57
58
|
*
|
|
58
59
|
* @type {Array<StorePageRequestSeoInner>}
|
|
@@ -20,6 +20,7 @@ exports.UpdatePageRequestToJSON = UpdatePageRequestToJSON;
|
|
|
20
20
|
exports.UpdatePageRequestToJSONTyped = UpdatePageRequestToJSONTyped;
|
|
21
21
|
var StorePageRequestSeoInner_1 = require("./StorePageRequestSeoInner");
|
|
22
22
|
var StorePageRequestBlog_1 = require("./StorePageRequestBlog");
|
|
23
|
+
var UpdatePageRequestComponentOrderInner_1 = require("./UpdatePageRequestComponentOrderInner");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the UpdatePageRequest interface.
|
|
25
26
|
*/
|
|
@@ -45,7 +46,7 @@ function UpdatePageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
46
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
46
47
|
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
47
48
|
'blog': json['blog'] == null ? undefined : (0, StorePageRequestBlog_1.StorePageRequestBlogFromJSON)(json['blog']),
|
|
48
|
-
'componentOrder': json['component_order'] == null ? undefined : json['component_order'],
|
|
49
|
+
'componentOrder': json['component_order'] == null ? undefined : (json['component_order'].map(UpdatePageRequestComponentOrderInner_1.UpdatePageRequestComponentOrderInnerFromJSON)),
|
|
49
50
|
'seo': (json['seo'].map(StorePageRequestSeoInner_1.StorePageRequestSeoInnerFromJSON)),
|
|
50
51
|
};
|
|
51
52
|
}
|
|
@@ -63,7 +64,7 @@ function UpdatePageRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
63
64
|
'enabled': value['enabled'],
|
|
64
65
|
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
65
66
|
'blog': (0, StorePageRequestBlog_1.StorePageRequestBlogToJSON)(value['blog']),
|
|
66
|
-
'component_order': value['componentOrder'],
|
|
67
|
+
'component_order': value['componentOrder'] == null ? undefined : (value['componentOrder'].map(UpdatePageRequestComponentOrderInner_1.UpdatePageRequestComponentOrderInnerToJSON)),
|
|
67
68
|
'seo': (value['seo'].map(StorePageRequestSeoInner_1.StorePageRequestSeoInnerToJSON)),
|
|
68
69
|
};
|
|
69
70
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 UpdatePageRequestComponentOrderInner
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdatePageRequestComponentOrderInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdatePageRequestComponentOrderInner
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdatePageRequestComponentOrderInner
|
|
28
|
+
*/
|
|
29
|
+
order: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdatePageRequestComponentOrderInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdatePageRequestComponentOrderInner(value: object): value is UpdatePageRequestComponentOrderInner;
|
|
35
|
+
export declare function UpdatePageRequestComponentOrderInnerFromJSON(json: any): UpdatePageRequestComponentOrderInner;
|
|
36
|
+
export declare function UpdatePageRequestComponentOrderInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePageRequestComponentOrderInner;
|
|
37
|
+
export declare function UpdatePageRequestComponentOrderInnerToJSON(json: any): UpdatePageRequestComponentOrderInner;
|
|
38
|
+
export declare function UpdatePageRequestComponentOrderInnerToJSONTyped(value?: UpdatePageRequestComponentOrderInner | 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.instanceOfUpdatePageRequestComponentOrderInner = instanceOfUpdatePageRequestComponentOrderInner;
|
|
17
|
+
exports.UpdatePageRequestComponentOrderInnerFromJSON = UpdatePageRequestComponentOrderInnerFromJSON;
|
|
18
|
+
exports.UpdatePageRequestComponentOrderInnerFromJSONTyped = UpdatePageRequestComponentOrderInnerFromJSONTyped;
|
|
19
|
+
exports.UpdatePageRequestComponentOrderInnerToJSON = UpdatePageRequestComponentOrderInnerToJSON;
|
|
20
|
+
exports.UpdatePageRequestComponentOrderInnerToJSONTyped = UpdatePageRequestComponentOrderInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdatePageRequestComponentOrderInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdatePageRequestComponentOrderInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('order' in value) || value['order'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UpdatePageRequestComponentOrderInnerFromJSON(json) {
|
|
32
|
+
return UpdatePageRequestComponentOrderInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UpdatePageRequestComponentOrderInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'order': json['order'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function UpdatePageRequestComponentOrderInnerToJSON(json) {
|
|
44
|
+
return UpdatePageRequestComponentOrderInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UpdatePageRequestComponentOrderInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'order': value['order'],
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -423,6 +423,7 @@ export * from './UpdateOverlayTemplateAssetRequest';
|
|
|
423
423
|
export * from './UpdateOverlayTemplateRequest';
|
|
424
424
|
export * from './UpdatePageComponentRequest';
|
|
425
425
|
export * from './UpdatePageRequest';
|
|
426
|
+
export * from './UpdatePageRequestComponentOrderInner';
|
|
426
427
|
export * from './UpdateProductCategoryRequest';
|
|
427
428
|
export * from './UpdateProductChildRequest';
|
|
428
429
|
export * from './UpdateProductChildRequestAssetsInner';
|
package/dist/models/index.js
CHANGED
|
@@ -441,6 +441,7 @@ __exportStar(require("./UpdateOverlayTemplateAssetRequest"), exports);
|
|
|
441
441
|
__exportStar(require("./UpdateOverlayTemplateRequest"), exports);
|
|
442
442
|
__exportStar(require("./UpdatePageComponentRequest"), exports);
|
|
443
443
|
__exportStar(require("./UpdatePageRequest"), exports);
|
|
444
|
+
__exportStar(require("./UpdatePageRequestComponentOrderInner"), exports);
|
|
444
445
|
__exportStar(require("./UpdateProductCategoryRequest"), exports);
|
|
445
446
|
__exportStar(require("./UpdateProductChildRequest"), exports);
|
|
446
447
|
__exportStar(require("./UpdateProductChildRequestAssetsInner"), exports);
|
package/docs/PageListResource.md
CHANGED
|
@@ -13,7 +13,9 @@ Name | Type
|
|
|
13
13
|
`enabled` | boolean
|
|
14
14
|
`siteId` | number
|
|
15
15
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
16
|
+
`startDate` | Date
|
|
16
17
|
`createdAt` | string
|
|
18
|
+
`updatedAt` | string
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -29,7 +31,9 @@ const example = {
|
|
|
29
31
|
"enabled": null,
|
|
30
32
|
"siteId": null,
|
|
31
33
|
"site": null,
|
|
34
|
+
"startDate": null,
|
|
32
35
|
"createdAt": null,
|
|
36
|
+
"updatedAt": null,
|
|
33
37
|
} satisfies PageListResource
|
|
34
38
|
|
|
35
39
|
console.log(example)
|
|
@@ -11,7 +11,7 @@ Name | Type
|
|
|
11
11
|
`enabled` | boolean
|
|
12
12
|
`startDate` | Date
|
|
13
13
|
`blog` | [StorePageRequestBlog](StorePageRequestBlog.md)
|
|
14
|
-
`componentOrder` | Array<
|
|
14
|
+
`componentOrder` | [Array<UpdatePageRequestComponentOrderInner>](UpdatePageRequestComponentOrderInner.md)
|
|
15
15
|
`seo` | [Array<StorePageRequestSeoInner>](StorePageRequestSeoInner.md)
|
|
16
16
|
|
|
17
17
|
## Example
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdatePageRequestComponentOrderInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`order` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { UpdatePageRequestComponentOrderInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"order": null,
|
|
21
|
+
} satisfies UpdatePageRequestComponentOrderInner
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdatePageRequestComponentOrderInner
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -73,7 +73,9 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
76
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
77
79
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
78
80
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
79
81
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -92,9 +94,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
92
94
|
}
|
|
93
95
|
return {
|
|
94
96
|
|
|
95
|
-
'company': json['company']
|
|
97
|
+
'company': json['company'],
|
|
96
98
|
'line1': json['line1'],
|
|
97
|
-
'line2': json['line2']
|
|
99
|
+
'line2': json['line2'],
|
|
98
100
|
'postcode': json['postcode'],
|
|
99
101
|
'suburb': json['suburb'],
|
|
100
102
|
'country': json['country'],
|
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,7 +79,6 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
83
82
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
83
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
85
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -100,7 +99,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
100
99
|
return {
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'company': json['company'],
|
|
102
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
104
103
|
'line1': json['line_1'],
|
|
105
104
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
106
105
|
'postcode': json['postcode'],
|
|
@@ -82,6 +82,8 @@ export interface GetAllPageRequest {
|
|
|
82
82
|
export const GetAllPageRequestSortByEnum = {
|
|
83
83
|
Id: 'id',
|
|
84
84
|
Name: 'name',
|
|
85
|
+
StartDate: 'start_date',
|
|
86
|
+
UpdatedAt: 'updated_at',
|
|
85
87
|
CreatedAt: 'created_at'
|
|
86
88
|
} as const;
|
|
87
89
|
export type GetAllPageRequestSortByEnum = typeof GetAllPageRequestSortByEnum[keyof typeof GetAllPageRequestSortByEnum];
|
|
@@ -94,6 +94,8 @@ export interface IndexPageRequest {
|
|
|
94
94
|
export const IndexPageRequestSortByEnum = {
|
|
95
95
|
Id: 'id',
|
|
96
96
|
Name: 'name',
|
|
97
|
+
StartDate: 'start_date',
|
|
98
|
+
UpdatedAt: 'updated_at',
|
|
97
99
|
CreatedAt: 'created_at'
|
|
98
100
|
} as const;
|
|
99
101
|
export type IndexPageRequestSortByEnum = typeof IndexPageRequestSortByEnum[keyof typeof IndexPageRequestSortByEnum];
|
|
@@ -69,12 +69,24 @@ export interface PageListResource {
|
|
|
69
69
|
* @memberof PageListResource
|
|
70
70
|
*/
|
|
71
71
|
site: SiteLiteResource | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof PageListResource
|
|
76
|
+
*/
|
|
77
|
+
startDate?: Date | null;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {string}
|
|
75
81
|
* @memberof PageListResource
|
|
76
82
|
*/
|
|
77
83
|
createdAt?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof PageListResource
|
|
88
|
+
*/
|
|
89
|
+
updatedAt?: string | null;
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
/**
|
|
@@ -108,7 +120,9 @@ export function PageListResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
108
120
|
'enabled': json['enabled'],
|
|
109
121
|
'siteId': json['siteId'],
|
|
110
122
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
123
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
111
124
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
125
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
112
126
|
};
|
|
113
127
|
}
|
|
114
128
|
|
|
@@ -130,7 +144,9 @@ export function PageListResourceToJSONTyped(value?: PageListResource | null, ign
|
|
|
130
144
|
'enabled': value['enabled'],
|
|
131
145
|
'siteId': value['siteId'],
|
|
132
146
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
147
|
+
'startDate': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
133
148
|
'createdAt': value['createdAt'],
|
|
149
|
+
'updatedAt': value['updatedAt'],
|
|
134
150
|
};
|
|
135
151
|
}
|
|
136
152
|
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ 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;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -100,7 +100,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
101
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
102
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
104
103
|
return true;
|
|
105
104
|
}
|
|
106
105
|
|
|
@@ -122,7 +121,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
122
121
|
'latitude': json['latitude'],
|
|
123
122
|
'tagLine': json['tag_line'],
|
|
124
123
|
'email': json['email'],
|
|
125
|
-
'website': json['website'],
|
|
124
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
126
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
127
126
|
};
|
|
128
127
|
}
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
StorePageRequestBlogToJSON,
|
|
28
28
|
StorePageRequestBlogToJSONTyped,
|
|
29
29
|
} from './StorePageRequestBlog';
|
|
30
|
+
import type { UpdatePageRequestComponentOrderInner } from './UpdatePageRequestComponentOrderInner';
|
|
31
|
+
import {
|
|
32
|
+
UpdatePageRequestComponentOrderInnerFromJSON,
|
|
33
|
+
UpdatePageRequestComponentOrderInnerFromJSONTyped,
|
|
34
|
+
UpdatePageRequestComponentOrderInnerToJSON,
|
|
35
|
+
UpdatePageRequestComponentOrderInnerToJSONTyped,
|
|
36
|
+
} from './UpdatePageRequestComponentOrderInner';
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
@@ -66,10 +73,10 @@ export interface UpdatePageRequest {
|
|
|
66
73
|
blog?: StorePageRequestBlog;
|
|
67
74
|
/**
|
|
68
75
|
*
|
|
69
|
-
* @type {Array<
|
|
76
|
+
* @type {Array<UpdatePageRequestComponentOrderInner>}
|
|
70
77
|
* @memberof UpdatePageRequest
|
|
71
78
|
*/
|
|
72
|
-
componentOrder?: Array<
|
|
79
|
+
componentOrder?: Array<UpdatePageRequestComponentOrderInner>;
|
|
73
80
|
/**
|
|
74
81
|
*
|
|
75
82
|
* @type {Array<StorePageRequestSeoInner>}
|
|
@@ -103,7 +110,7 @@ export function UpdatePageRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
103
110
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
104
111
|
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
105
112
|
'blog': json['blog'] == null ? undefined : StorePageRequestBlogFromJSON(json['blog']),
|
|
106
|
-
'componentOrder': json['component_order'] == null ? undefined : json['component_order'],
|
|
113
|
+
'componentOrder': json['component_order'] == null ? undefined : ((json['component_order'] as Array<any>).map(UpdatePageRequestComponentOrderInnerFromJSON)),
|
|
107
114
|
'seo': ((json['seo'] as Array<any>).map(StorePageRequestSeoInnerFromJSON)),
|
|
108
115
|
};
|
|
109
116
|
}
|
|
@@ -124,7 +131,7 @@ export function UpdatePageRequestToJSONTyped(value?: UpdatePageRequest | null, i
|
|
|
124
131
|
'enabled': value['enabled'],
|
|
125
132
|
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
126
133
|
'blog': StorePageRequestBlogToJSON(value['blog']),
|
|
127
|
-
'component_order': value['componentOrder'],
|
|
134
|
+
'component_order': value['componentOrder'] == null ? undefined : ((value['componentOrder'] as Array<any>).map(UpdatePageRequestComponentOrderInnerToJSON)),
|
|
128
135
|
'seo': ((value['seo'] as Array<any>).map(StorePageRequestSeoInnerToJSON)),
|
|
129
136
|
};
|
|
130
137
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 UpdatePageRequestComponentOrderInner
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdatePageRequestComponentOrderInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UpdatePageRequestComponentOrderInner
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UpdatePageRequestComponentOrderInner
|
|
32
|
+
*/
|
|
33
|
+
order: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UpdatePageRequestComponentOrderInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUpdatePageRequestComponentOrderInner(value: object): value is UpdatePageRequestComponentOrderInner {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('order' in value) || value['order'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UpdatePageRequestComponentOrderInnerFromJSON(json: any): UpdatePageRequestComponentOrderInner {
|
|
46
|
+
return UpdatePageRequestComponentOrderInnerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UpdatePageRequestComponentOrderInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePageRequestComponentOrderInner {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'order': json['order'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UpdatePageRequestComponentOrderInnerToJSON(json: any): UpdatePageRequestComponentOrderInner {
|
|
61
|
+
return UpdatePageRequestComponentOrderInnerToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UpdatePageRequestComponentOrderInnerToJSONTyped(value?: UpdatePageRequestComponentOrderInner | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'order': value['order'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -425,6 +425,7 @@ export * from './UpdateOverlayTemplateAssetRequest';
|
|
|
425
425
|
export * from './UpdateOverlayTemplateRequest';
|
|
426
426
|
export * from './UpdatePageComponentRequest';
|
|
427
427
|
export * from './UpdatePageRequest';
|
|
428
|
+
export * from './UpdatePageRequestComponentOrderInner';
|
|
428
429
|
export * from './UpdateProductCategoryRequest';
|
|
429
430
|
export * from './UpdateProductChildRequest';
|
|
430
431
|
export * from './UpdateProductChildRequestAssetsInner';
|