@digital8/lighting-illusions-ts-sdk 0.0.467 → 0.0.469
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/README.md +2 -2
- package/dist/models/SiteListResource.d.ts +0 -18
- package/dist/models/SiteListResource.js +0 -6
- package/dist/models/SiteNotificationListResource.d.ts +30 -0
- package/dist/models/SiteNotificationListResource.js +20 -0
- package/docs/SiteListResource.md +0 -6
- package/docs/SiteNotificationListResource.md +10 -0
- package/package.json +1 -1
- package/src/models/SiteListResource.ts +0 -24
- package/src/models/SiteNotificationListResource.ts +45 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.469
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -326,7 +326,7 @@ and is automatically generated by the
|
|
|
326
326
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
327
327
|
|
|
328
328
|
- API version: `1.0.0`
|
|
329
|
-
- Package version: `0.0.
|
|
329
|
+
- Package version: `0.0.469`
|
|
330
330
|
- Generator version: `7.17.0`
|
|
331
331
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
332
332
|
|
|
@@ -39,24 +39,6 @@ export interface SiteListResource {
|
|
|
39
39
|
* @memberof SiteListResource
|
|
40
40
|
*/
|
|
41
41
|
domain: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof SiteListResource
|
|
46
|
-
*/
|
|
47
|
-
startDate?: string | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof SiteListResource
|
|
52
|
-
*/
|
|
53
|
-
endDate?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SiteListResource
|
|
58
|
-
*/
|
|
59
|
-
text?: string | null;
|
|
60
42
|
}
|
|
61
43
|
/**
|
|
62
44
|
* Check if a given object implements the SiteListResource interface.
|
|
@@ -44,9 +44,6 @@ function SiteListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'name': json['name'],
|
|
45
45
|
'abbreviation': json['abbreviation'],
|
|
46
46
|
'domain': json['domain'],
|
|
47
|
-
'startDate': json['startDate'] == null ? undefined : json['startDate'],
|
|
48
|
-
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
49
|
-
'text': json['text'] == null ? undefined : json['text'],
|
|
50
47
|
};
|
|
51
48
|
}
|
|
52
49
|
function SiteListResourceToJSON(json) {
|
|
@@ -62,8 +59,5 @@ function SiteListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
62
59
|
'name': value['name'],
|
|
63
60
|
'abbreviation': value['abbreviation'],
|
|
64
61
|
'domain': value['domain'],
|
|
65
|
-
'startDate': value['startDate'],
|
|
66
|
-
'endDate': value['endDate'],
|
|
67
|
-
'text': value['text'],
|
|
68
62
|
};
|
|
69
63
|
}
|
|
@@ -40,6 +40,36 @@ export interface SiteNotificationListResource {
|
|
|
40
40
|
* @memberof SiteNotificationListResource
|
|
41
41
|
*/
|
|
42
42
|
isActive: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SiteNotificationListResource
|
|
47
|
+
*/
|
|
48
|
+
startDate: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof SiteNotificationListResource
|
|
53
|
+
*/
|
|
54
|
+
endDate: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SiteNotificationListResource
|
|
59
|
+
*/
|
|
60
|
+
text: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof SiteNotificationListResource
|
|
65
|
+
*/
|
|
66
|
+
textColour: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof SiteNotificationListResource
|
|
71
|
+
*/
|
|
72
|
+
backgroundColour: string;
|
|
43
73
|
/**
|
|
44
74
|
*
|
|
45
75
|
* @type {SiteLiteResource}
|
|
@@ -27,6 +27,16 @@ function instanceOfSiteNotificationListResource(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('textColour' in value) || value['textColour'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('backgroundColour' in value) || value['backgroundColour'] === undefined)
|
|
39
|
+
return false;
|
|
30
40
|
if (!('sites' in value) || value['sites'] === undefined)
|
|
31
41
|
return false;
|
|
32
42
|
return true;
|
|
@@ -43,6 +53,11 @@ function SiteNotificationListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
53
|
'heading': json['heading'] == null ? undefined : json['heading'],
|
|
44
54
|
'type': json['type'] == null ? undefined : json['type'],
|
|
45
55
|
'isActive': json['isActive'],
|
|
56
|
+
'startDate': json['startDate'],
|
|
57
|
+
'endDate': json['endDate'],
|
|
58
|
+
'text': json['text'],
|
|
59
|
+
'textColour': json['textColour'],
|
|
60
|
+
'backgroundColour': json['backgroundColour'],
|
|
46
61
|
'sites': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['sites']),
|
|
47
62
|
};
|
|
48
63
|
}
|
|
@@ -59,6 +74,11 @@ function SiteNotificationListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
59
74
|
'heading': value['heading'],
|
|
60
75
|
'type': value['type'],
|
|
61
76
|
'isActive': value['isActive'],
|
|
77
|
+
'startDate': value['startDate'],
|
|
78
|
+
'endDate': value['endDate'],
|
|
79
|
+
'text': value['text'],
|
|
80
|
+
'textColour': value['textColour'],
|
|
81
|
+
'backgroundColour': value['backgroundColour'],
|
|
62
82
|
'sites': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['sites']),
|
|
63
83
|
};
|
|
64
84
|
}
|
package/docs/SiteListResource.md
CHANGED
|
@@ -10,9 +10,6 @@ Name | Type
|
|
|
10
10
|
`name` | string
|
|
11
11
|
`abbreviation` | string
|
|
12
12
|
`domain` | string
|
|
13
|
-
`startDate` | string
|
|
14
|
-
`endDate` | string
|
|
15
|
-
`text` | string
|
|
16
13
|
|
|
17
14
|
## Example
|
|
18
15
|
|
|
@@ -25,9 +22,6 @@ const example = {
|
|
|
25
22
|
"name": null,
|
|
26
23
|
"abbreviation": null,
|
|
27
24
|
"domain": null,
|
|
28
|
-
"startDate": null,
|
|
29
|
-
"endDate": null,
|
|
30
|
-
"text": null,
|
|
31
25
|
} satisfies SiteListResource
|
|
32
26
|
|
|
33
27
|
console.log(example)
|
|
@@ -10,6 +10,11 @@ Name | Type
|
|
|
10
10
|
`heading` | string
|
|
11
11
|
`type` | string
|
|
12
12
|
`isActive` | boolean
|
|
13
|
+
`startDate` | string
|
|
14
|
+
`endDate` | string
|
|
15
|
+
`text` | string
|
|
16
|
+
`textColour` | string
|
|
17
|
+
`backgroundColour` | string
|
|
13
18
|
`sites` | [SiteLiteResource](SiteLiteResource.md)
|
|
14
19
|
|
|
15
20
|
## Example
|
|
@@ -23,6 +28,11 @@ const example = {
|
|
|
23
28
|
"heading": null,
|
|
24
29
|
"type": null,
|
|
25
30
|
"isActive": null,
|
|
31
|
+
"startDate": null,
|
|
32
|
+
"endDate": null,
|
|
33
|
+
"text": null,
|
|
34
|
+
"textColour": null,
|
|
35
|
+
"backgroundColour": null,
|
|
26
36
|
"sites": null,
|
|
27
37
|
} satisfies SiteNotificationListResource
|
|
28
38
|
|
package/package.json
CHANGED
|
@@ -43,24 +43,6 @@ export interface SiteListResource {
|
|
|
43
43
|
* @memberof SiteListResource
|
|
44
44
|
*/
|
|
45
45
|
domain: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof SiteListResource
|
|
50
|
-
*/
|
|
51
|
-
startDate?: string | null;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof SiteListResource
|
|
56
|
-
*/
|
|
57
|
-
endDate?: string | null;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof SiteListResource
|
|
62
|
-
*/
|
|
63
|
-
text?: string | null;
|
|
64
46
|
}
|
|
65
47
|
|
|
66
48
|
/**
|
|
@@ -88,9 +70,6 @@ export function SiteListResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
88
70
|
'name': json['name'],
|
|
89
71
|
'abbreviation': json['abbreviation'],
|
|
90
72
|
'domain': json['domain'],
|
|
91
|
-
'startDate': json['startDate'] == null ? undefined : json['startDate'],
|
|
92
|
-
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
93
|
-
'text': json['text'] == null ? undefined : json['text'],
|
|
94
73
|
};
|
|
95
74
|
}
|
|
96
75
|
|
|
@@ -109,9 +88,6 @@ export function SiteListResourceToJSONTyped(value?: SiteListResource | null, ign
|
|
|
109
88
|
'name': value['name'],
|
|
110
89
|
'abbreviation': value['abbreviation'],
|
|
111
90
|
'domain': value['domain'],
|
|
112
|
-
'startDate': value['startDate'],
|
|
113
|
-
'endDate': value['endDate'],
|
|
114
|
-
'text': value['text'],
|
|
115
91
|
};
|
|
116
92
|
}
|
|
117
93
|
|
|
@@ -51,6 +51,36 @@ export interface SiteNotificationListResource {
|
|
|
51
51
|
* @memberof SiteNotificationListResource
|
|
52
52
|
*/
|
|
53
53
|
isActive: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SiteNotificationListResource
|
|
58
|
+
*/
|
|
59
|
+
startDate: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SiteNotificationListResource
|
|
64
|
+
*/
|
|
65
|
+
endDate: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SiteNotificationListResource
|
|
70
|
+
*/
|
|
71
|
+
text: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof SiteNotificationListResource
|
|
76
|
+
*/
|
|
77
|
+
textColour: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof SiteNotificationListResource
|
|
82
|
+
*/
|
|
83
|
+
backgroundColour: string;
|
|
54
84
|
/**
|
|
55
85
|
*
|
|
56
86
|
* @type {SiteLiteResource}
|
|
@@ -65,6 +95,11 @@ export interface SiteNotificationListResource {
|
|
|
65
95
|
export function instanceOfSiteNotificationListResource(value: object): value is SiteNotificationListResource {
|
|
66
96
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
67
97
|
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
98
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
99
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
100
|
+
if (!('text' in value) || value['text'] === undefined) return false;
|
|
101
|
+
if (!('textColour' in value) || value['textColour'] === undefined) return false;
|
|
102
|
+
if (!('backgroundColour' in value) || value['backgroundColour'] === undefined) return false;
|
|
68
103
|
if (!('sites' in value) || value['sites'] === undefined) return false;
|
|
69
104
|
return true;
|
|
70
105
|
}
|
|
@@ -83,6 +118,11 @@ export function SiteNotificationListResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
83
118
|
'heading': json['heading'] == null ? undefined : json['heading'],
|
|
84
119
|
'type': json['type'] == null ? undefined : json['type'],
|
|
85
120
|
'isActive': json['isActive'],
|
|
121
|
+
'startDate': json['startDate'],
|
|
122
|
+
'endDate': json['endDate'],
|
|
123
|
+
'text': json['text'],
|
|
124
|
+
'textColour': json['textColour'],
|
|
125
|
+
'backgroundColour': json['backgroundColour'],
|
|
86
126
|
'sites': SiteLiteResourceFromJSON(json['sites']),
|
|
87
127
|
};
|
|
88
128
|
}
|
|
@@ -102,6 +142,11 @@ export function SiteNotificationListResourceToJSONTyped(value?: SiteNotification
|
|
|
102
142
|
'heading': value['heading'],
|
|
103
143
|
'type': value['type'],
|
|
104
144
|
'isActive': value['isActive'],
|
|
145
|
+
'startDate': value['startDate'],
|
|
146
|
+
'endDate': value['endDate'],
|
|
147
|
+
'text': value['text'],
|
|
148
|
+
'textColour': value['textColour'],
|
|
149
|
+
'backgroundColour': value['backgroundColour'],
|
|
105
150
|
'sites': SiteLiteResourceToJSON(value['sites']),
|
|
106
151
|
};
|
|
107
152
|
}
|