@incident-io/sdk 2.6.0 → 2.7.0
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/dist/cjs/apis/StatusPagesV2Api.d.ts +2 -2
- package/dist/cjs/apis/StatusPagesV2Api.js +2 -2
- package/dist/cjs/models/StatusPageStructureComponentV2.d.ts +8 -0
- package/dist/cjs/models/StatusPageStructureComponentV2.js +8 -0
- package/dist/cjs/models/StatusPageStructureGroupV2.d.ts +12 -0
- package/dist/cjs/models/StatusPageStructureGroupV2.js +10 -0
- package/dist/cjs/models/StatusPagesShowStatusPageStructureResultV2.d.ts +13 -0
- package/dist/cjs/models/StatusPagesShowStatusPageStructureResultV2.js +13 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/apis/StatusPagesV2Api.d.ts +2 -2
- package/dist/esm/apis/StatusPagesV2Api.js +2 -2
- package/dist/esm/models/StatusPageStructureComponentV2.d.ts +8 -0
- package/dist/esm/models/StatusPageStructureComponentV2.js +8 -0
- package/dist/esm/models/StatusPageStructureGroupV2.d.ts +12 -0
- package/dist/esm/models/StatusPageStructureGroupV2.js +10 -0
- package/dist/esm/models/StatusPagesShowStatusPageStructureResultV2.d.ts +13 -0
- package/dist/esm/models/StatusPagesShowStatusPageStructureResultV2.js +12 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -399,12 +399,12 @@ export declare class StatusPagesV2Api extends runtime.BaseAPI {
|
|
|
399
399
|
*/
|
|
400
400
|
statusPagesV2ShowStatusPageStructureRequestOpts(requestParameters: StatusPagesV2ShowStatusPageStructureRequest): Promise<runtime.RequestOpts>;
|
|
401
401
|
/**
|
|
402
|
-
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
402
|
+
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page, with their display settings, and how the page shows uptime. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
403
403
|
* ShowStatusPageStructure Status Pages V2
|
|
404
404
|
*/
|
|
405
405
|
statusPagesV2ShowStatusPageStructureRaw(requestParameters: StatusPagesV2ShowStatusPageStructureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StatusPagesShowStatusPageStructureResultV2>>;
|
|
406
406
|
/**
|
|
407
|
-
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
407
|
+
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page, with their display settings, and how the page shows uptime. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
408
408
|
* ShowStatusPageStructure Status Pages V2
|
|
409
409
|
*/
|
|
410
410
|
statusPagesV2ShowStatusPageStructure(requestParameters: StatusPagesV2ShowStatusPageStructureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StatusPagesShowStatusPageStructureResultV2>;
|
|
@@ -714,7 +714,7 @@ class StatusPagesV2Api extends runtime.BaseAPI {
|
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
716
|
/**
|
|
717
|
-
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
717
|
+
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page, with their display settings, and how the page shows uptime. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
718
718
|
* ShowStatusPageStructure Status Pages V2
|
|
719
719
|
*/
|
|
720
720
|
async statusPagesV2ShowStatusPageStructureRaw(requestParameters, initOverrides) {
|
|
@@ -723,7 +723,7 @@ class StatusPagesV2Api extends runtime.BaseAPI {
|
|
|
723
723
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, StatusPagesShowStatusPageStructureResultV2_js_1.StatusPagesShowStatusPageStructureResultV2FromJSON)(jsonValue));
|
|
724
724
|
}
|
|
725
725
|
/**
|
|
726
|
-
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
726
|
+
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page, with their display settings, and how the page shows uptime. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
727
727
|
* ShowStatusPageStructure Status Pages V2
|
|
728
728
|
*/
|
|
729
729
|
async statusPagesV2ShowStatusPageStructure(requestParameters, initOverrides) {
|
|
@@ -19,6 +19,14 @@ export interface StatusPageStructureComponentV2 {
|
|
|
19
19
|
* The ID of the affected component. This may be found by calling the ShowStatusPageStructure endpoint.
|
|
20
20
|
*/
|
|
21
21
|
component_id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the page shows this component's uptime
|
|
24
|
+
*/
|
|
25
|
+
display_uptime: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the component is hidden from the page
|
|
28
|
+
*/
|
|
29
|
+
hidden: boolean;
|
|
22
30
|
/**
|
|
23
31
|
* The name of this component
|
|
24
32
|
*/
|
|
@@ -24,6 +24,10 @@ exports.StatusPageStructureComponentV2ToJSONTyped = StatusPageStructureComponent
|
|
|
24
24
|
function instanceOfStatusPageStructureComponentV2(value) {
|
|
25
25
|
if (!('component_id' in value) || value['component_id'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('display_uptime' in value) || value['display_uptime'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('hidden' in value) || value['hidden'] === undefined)
|
|
30
|
+
return false;
|
|
27
31
|
if (!('name' in value) || value['name'] === undefined)
|
|
28
32
|
return false;
|
|
29
33
|
return true;
|
|
@@ -37,6 +41,8 @@ function StatusPageStructureComponentV2FromJSONTyped(json, ignoreDiscriminator)
|
|
|
37
41
|
}
|
|
38
42
|
return {
|
|
39
43
|
'component_id': json['component_id'],
|
|
44
|
+
'display_uptime': json['display_uptime'],
|
|
45
|
+
'hidden': json['hidden'],
|
|
40
46
|
'name': json['name'],
|
|
41
47
|
};
|
|
42
48
|
}
|
|
@@ -49,6 +55,8 @@ function StatusPageStructureComponentV2ToJSONTyped(value, ignoreDiscriminator =
|
|
|
49
55
|
}
|
|
50
56
|
return {
|
|
51
57
|
'component_id': value['component_id'],
|
|
58
|
+
'display_uptime': value['display_uptime'],
|
|
59
|
+
'hidden': value['hidden'],
|
|
52
60
|
'name': value['name'],
|
|
53
61
|
};
|
|
54
62
|
}
|
|
@@ -20,6 +20,18 @@ export interface StatusPageStructureGroupV2 {
|
|
|
20
20
|
* Array of components belonging to this group
|
|
21
21
|
*/
|
|
22
22
|
components: Array<StatusPageStructureComponentV2>;
|
|
23
|
+
/**
|
|
24
|
+
* A description shown under the group's name
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the page shows uptime aggregated across the group's components
|
|
29
|
+
*/
|
|
30
|
+
display_aggregated_uptime: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the group is hidden from the page
|
|
33
|
+
*/
|
|
34
|
+
hidden: boolean;
|
|
23
35
|
/**
|
|
24
36
|
* Unique ID of this component group
|
|
25
37
|
*/
|
|
@@ -25,6 +25,10 @@ const StatusPageStructureComponentV2_js_1 = require("./StatusPageStructureCompon
|
|
|
25
25
|
function instanceOfStatusPageStructureGroupV2(value) {
|
|
26
26
|
if (!('components' in value) || value['components'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('display_aggregated_uptime' in value) || value['display_aggregated_uptime'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('hidden' in value) || value['hidden'] === undefined)
|
|
31
|
+
return false;
|
|
28
32
|
if (!('id' in value) || value['id'] === undefined)
|
|
29
33
|
return false;
|
|
30
34
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -40,6 +44,9 @@ function StatusPageStructureGroupV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
44
|
}
|
|
41
45
|
return {
|
|
42
46
|
'components': (json['components'].map(StatusPageStructureComponentV2_js_1.StatusPageStructureComponentV2FromJSON)),
|
|
47
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
48
|
+
'display_aggregated_uptime': json['display_aggregated_uptime'],
|
|
49
|
+
'hidden': json['hidden'],
|
|
43
50
|
'id': json['id'],
|
|
44
51
|
'name': json['name'],
|
|
45
52
|
};
|
|
@@ -53,6 +60,9 @@ function StatusPageStructureGroupV2ToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
53
60
|
}
|
|
54
61
|
return {
|
|
55
62
|
'components': (value['components'].map(StatusPageStructureComponentV2_js_1.StatusPageStructureComponentV2ToJSON)),
|
|
63
|
+
'description': value['description'],
|
|
64
|
+
'display_aggregated_uptime': value['display_aggregated_uptime'],
|
|
65
|
+
'hidden': value['hidden'],
|
|
56
66
|
'id': value['id'],
|
|
57
67
|
'name': value['name'],
|
|
58
68
|
};
|
|
@@ -20,7 +20,20 @@ export interface StatusPagesShowStatusPageStructureResultV2 {
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
current_structure: StatusPageStructureV2;
|
|
23
|
+
/**
|
|
24
|
+
* How the page shows uptime against its components
|
|
25
|
+
*/
|
|
26
|
+
display_uptime_mode: StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum;
|
|
23
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export declare const StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum: {
|
|
32
|
+
readonly ChartAndPercentage: "chart_and_percentage";
|
|
33
|
+
readonly ChartOnly: "chart_only";
|
|
34
|
+
readonly Nothing: "nothing";
|
|
35
|
+
};
|
|
36
|
+
export type StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum = typeof StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum[keyof typeof StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum];
|
|
24
37
|
/**
|
|
25
38
|
* Check if a given object implements the StatusPagesShowStatusPageStructureResultV2 interface.
|
|
26
39
|
*/
|
|
@@ -13,18 +13,29 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum = void 0;
|
|
16
17
|
exports.instanceOfStatusPagesShowStatusPageStructureResultV2 = instanceOfStatusPagesShowStatusPageStructureResultV2;
|
|
17
18
|
exports.StatusPagesShowStatusPageStructureResultV2FromJSON = StatusPagesShowStatusPageStructureResultV2FromJSON;
|
|
18
19
|
exports.StatusPagesShowStatusPageStructureResultV2FromJSONTyped = StatusPagesShowStatusPageStructureResultV2FromJSONTyped;
|
|
19
20
|
exports.StatusPagesShowStatusPageStructureResultV2ToJSON = StatusPagesShowStatusPageStructureResultV2ToJSON;
|
|
20
21
|
exports.StatusPagesShowStatusPageStructureResultV2ToJSONTyped = StatusPagesShowStatusPageStructureResultV2ToJSONTyped;
|
|
21
22
|
const StatusPageStructureV2_js_1 = require("./StatusPageStructureV2.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum = {
|
|
27
|
+
ChartAndPercentage: 'chart_and_percentage',
|
|
28
|
+
ChartOnly: 'chart_only',
|
|
29
|
+
Nothing: 'nothing',
|
|
30
|
+
};
|
|
22
31
|
/**
|
|
23
32
|
* Check if a given object implements the StatusPagesShowStatusPageStructureResultV2 interface.
|
|
24
33
|
*/
|
|
25
34
|
function instanceOfStatusPagesShowStatusPageStructureResultV2(value) {
|
|
26
35
|
if (!('current_structure' in value) || value['current_structure'] === undefined)
|
|
27
36
|
return false;
|
|
37
|
+
if (!('display_uptime_mode' in value) || value['display_uptime_mode'] === undefined)
|
|
38
|
+
return false;
|
|
28
39
|
return true;
|
|
29
40
|
}
|
|
30
41
|
function StatusPagesShowStatusPageStructureResultV2FromJSON(json) {
|
|
@@ -36,6 +47,7 @@ function StatusPagesShowStatusPageStructureResultV2FromJSONTyped(json, ignoreDis
|
|
|
36
47
|
}
|
|
37
48
|
return {
|
|
38
49
|
'current_structure': (0, StatusPageStructureV2_js_1.StatusPageStructureV2FromJSON)(json['current_structure']),
|
|
50
|
+
'display_uptime_mode': json['display_uptime_mode'],
|
|
39
51
|
};
|
|
40
52
|
}
|
|
41
53
|
function StatusPagesShowStatusPageStructureResultV2ToJSON(json) {
|
|
@@ -47,5 +59,6 @@ function StatusPagesShowStatusPageStructureResultV2ToJSONTyped(value, ignoreDisc
|
|
|
47
59
|
}
|
|
48
60
|
return {
|
|
49
61
|
'current_structure': (0, StatusPageStructureV2_js_1.StatusPageStructureV2ToJSON)(value['current_structure']),
|
|
62
|
+
'display_uptime_mode': value['display_uptime_mode'],
|
|
50
63
|
};
|
|
51
64
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.7.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -399,12 +399,12 @@ export declare class StatusPagesV2Api extends runtime.BaseAPI {
|
|
|
399
399
|
*/
|
|
400
400
|
statusPagesV2ShowStatusPageStructureRequestOpts(requestParameters: StatusPagesV2ShowStatusPageStructureRequest): Promise<runtime.RequestOpts>;
|
|
401
401
|
/**
|
|
402
|
-
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
402
|
+
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page, with their display settings, and how the page shows uptime. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
403
403
|
* ShowStatusPageStructure Status Pages V2
|
|
404
404
|
*/
|
|
405
405
|
statusPagesV2ShowStatusPageStructureRaw(requestParameters: StatusPagesV2ShowStatusPageStructureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StatusPagesShowStatusPageStructureResultV2>>;
|
|
406
406
|
/**
|
|
407
|
-
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
407
|
+
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page, with their display settings, and how the page shows uptime. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
408
408
|
* ShowStatusPageStructure Status Pages V2
|
|
409
409
|
*/
|
|
410
410
|
statusPagesV2ShowStatusPageStructure(requestParameters: StatusPagesV2ShowStatusPageStructureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StatusPagesShowStatusPageStructureResultV2>;
|
|
@@ -678,7 +678,7 @@ export class StatusPagesV2Api extends runtime.BaseAPI {
|
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
680
|
/**
|
|
681
|
-
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
681
|
+
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page, with their display settings, and how the page shows uptime. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
682
682
|
* ShowStatusPageStructure Status Pages V2
|
|
683
683
|
*/
|
|
684
684
|
async statusPagesV2ShowStatusPageStructureRaw(requestParameters, initOverrides) {
|
|
@@ -687,7 +687,7 @@ export class StatusPagesV2Api extends runtime.BaseAPI {
|
|
|
687
687
|
return new runtime.JSONApiResponse(response, (jsonValue) => StatusPagesShowStatusPageStructureResultV2FromJSON(jsonValue));
|
|
688
688
|
}
|
|
689
689
|
/**
|
|
690
|
-
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
690
|
+
* Show the structure of a status page. This endpoint requires a valid API key but no specific scopes. Returns the components and component groups configured on a status page, with their display settings, and how the page shows uptime. Use this to find component IDs when specifying affected components for incidents or maintenance windows.
|
|
691
691
|
* ShowStatusPageStructure Status Pages V2
|
|
692
692
|
*/
|
|
693
693
|
async statusPagesV2ShowStatusPageStructure(requestParameters, initOverrides) {
|
|
@@ -19,6 +19,14 @@ export interface StatusPageStructureComponentV2 {
|
|
|
19
19
|
* The ID of the affected component. This may be found by calling the ShowStatusPageStructure endpoint.
|
|
20
20
|
*/
|
|
21
21
|
component_id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the page shows this component's uptime
|
|
24
|
+
*/
|
|
25
|
+
display_uptime: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the component is hidden from the page
|
|
28
|
+
*/
|
|
29
|
+
hidden: boolean;
|
|
22
30
|
/**
|
|
23
31
|
* The name of this component
|
|
24
32
|
*/
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
export function instanceOfStatusPageStructureComponentV2(value) {
|
|
18
18
|
if (!('component_id' in value) || value['component_id'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
+
if (!('display_uptime' in value) || value['display_uptime'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('hidden' in value) || value['hidden'] === undefined)
|
|
23
|
+
return false;
|
|
20
24
|
if (!('name' in value) || value['name'] === undefined)
|
|
21
25
|
return false;
|
|
22
26
|
return true;
|
|
@@ -30,6 +34,8 @@ export function StatusPageStructureComponentV2FromJSONTyped(json, ignoreDiscrimi
|
|
|
30
34
|
}
|
|
31
35
|
return {
|
|
32
36
|
'component_id': json['component_id'],
|
|
37
|
+
'display_uptime': json['display_uptime'],
|
|
38
|
+
'hidden': json['hidden'],
|
|
33
39
|
'name': json['name'],
|
|
34
40
|
};
|
|
35
41
|
}
|
|
@@ -42,6 +48,8 @@ export function StatusPageStructureComponentV2ToJSONTyped(value, ignoreDiscrimin
|
|
|
42
48
|
}
|
|
43
49
|
return {
|
|
44
50
|
'component_id': value['component_id'],
|
|
51
|
+
'display_uptime': value['display_uptime'],
|
|
52
|
+
'hidden': value['hidden'],
|
|
45
53
|
'name': value['name'],
|
|
46
54
|
};
|
|
47
55
|
}
|
|
@@ -20,6 +20,18 @@ export interface StatusPageStructureGroupV2 {
|
|
|
20
20
|
* Array of components belonging to this group
|
|
21
21
|
*/
|
|
22
22
|
components: Array<StatusPageStructureComponentV2>;
|
|
23
|
+
/**
|
|
24
|
+
* A description shown under the group's name
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the page shows uptime aggregated across the group's components
|
|
29
|
+
*/
|
|
30
|
+
display_aggregated_uptime: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the group is hidden from the page
|
|
33
|
+
*/
|
|
34
|
+
hidden: boolean;
|
|
23
35
|
/**
|
|
24
36
|
* Unique ID of this component group
|
|
25
37
|
*/
|
|
@@ -18,6 +18,10 @@ import { StatusPageStructureComponentV2FromJSON, StatusPageStructureComponentV2T
|
|
|
18
18
|
export function instanceOfStatusPageStructureGroupV2(value) {
|
|
19
19
|
if (!('components' in value) || value['components'] === undefined)
|
|
20
20
|
return false;
|
|
21
|
+
if (!('display_aggregated_uptime' in value) || value['display_aggregated_uptime'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('hidden' in value) || value['hidden'] === undefined)
|
|
24
|
+
return false;
|
|
21
25
|
if (!('id' in value) || value['id'] === undefined)
|
|
22
26
|
return false;
|
|
23
27
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -33,6 +37,9 @@ export function StatusPageStructureGroupV2FromJSONTyped(json, ignoreDiscriminato
|
|
|
33
37
|
}
|
|
34
38
|
return {
|
|
35
39
|
'components': (json['components'].map(StatusPageStructureComponentV2FromJSON)),
|
|
40
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
41
|
+
'display_aggregated_uptime': json['display_aggregated_uptime'],
|
|
42
|
+
'hidden': json['hidden'],
|
|
36
43
|
'id': json['id'],
|
|
37
44
|
'name': json['name'],
|
|
38
45
|
};
|
|
@@ -46,6 +53,9 @@ export function StatusPageStructureGroupV2ToJSONTyped(value, ignoreDiscriminator
|
|
|
46
53
|
}
|
|
47
54
|
return {
|
|
48
55
|
'components': (value['components'].map(StatusPageStructureComponentV2ToJSON)),
|
|
56
|
+
'description': value['description'],
|
|
57
|
+
'display_aggregated_uptime': value['display_aggregated_uptime'],
|
|
58
|
+
'hidden': value['hidden'],
|
|
49
59
|
'id': value['id'],
|
|
50
60
|
'name': value['name'],
|
|
51
61
|
};
|
|
@@ -20,7 +20,20 @@ export interface StatusPagesShowStatusPageStructureResultV2 {
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
current_structure: StatusPageStructureV2;
|
|
23
|
+
/**
|
|
24
|
+
* How the page shows uptime against its components
|
|
25
|
+
*/
|
|
26
|
+
display_uptime_mode: StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum;
|
|
23
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export declare const StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum: {
|
|
32
|
+
readonly ChartAndPercentage: "chart_and_percentage";
|
|
33
|
+
readonly ChartOnly: "chart_only";
|
|
34
|
+
readonly Nothing: "nothing";
|
|
35
|
+
};
|
|
36
|
+
export type StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum = typeof StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum[keyof typeof StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum];
|
|
24
37
|
/**
|
|
25
38
|
* Check if a given object implements the StatusPagesShowStatusPageStructureResultV2 interface.
|
|
26
39
|
*/
|
|
@@ -12,12 +12,22 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { StatusPageStructureV2FromJSON, StatusPageStructureV2ToJSON, } from './StatusPageStructureV2.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const StatusPagesShowStatusPageStructureResultV2DisplayUptimeModeEnum = {
|
|
19
|
+
ChartAndPercentage: 'chart_and_percentage',
|
|
20
|
+
ChartOnly: 'chart_only',
|
|
21
|
+
Nothing: 'nothing',
|
|
22
|
+
};
|
|
15
23
|
/**
|
|
16
24
|
* Check if a given object implements the StatusPagesShowStatusPageStructureResultV2 interface.
|
|
17
25
|
*/
|
|
18
26
|
export function instanceOfStatusPagesShowStatusPageStructureResultV2(value) {
|
|
19
27
|
if (!('current_structure' in value) || value['current_structure'] === undefined)
|
|
20
28
|
return false;
|
|
29
|
+
if (!('display_uptime_mode' in value) || value['display_uptime_mode'] === undefined)
|
|
30
|
+
return false;
|
|
21
31
|
return true;
|
|
22
32
|
}
|
|
23
33
|
export function StatusPagesShowStatusPageStructureResultV2FromJSON(json) {
|
|
@@ -29,6 +39,7 @@ export function StatusPagesShowStatusPageStructureResultV2FromJSONTyped(json, ig
|
|
|
29
39
|
}
|
|
30
40
|
return {
|
|
31
41
|
'current_structure': StatusPageStructureV2FromJSON(json['current_structure']),
|
|
42
|
+
'display_uptime_mode': json['display_uptime_mode'],
|
|
32
43
|
};
|
|
33
44
|
}
|
|
34
45
|
export function StatusPagesShowStatusPageStructureResultV2ToJSON(json) {
|
|
@@ -40,5 +51,6 @@ export function StatusPagesShowStatusPageStructureResultV2ToJSONTyped(value, ign
|
|
|
40
51
|
}
|
|
41
52
|
return {
|
|
42
53
|
'current_structure': StatusPageStructureV2ToJSON(value['current_structure']),
|
|
54
|
+
'display_uptime_mode': value['display_uptime_mode'],
|
|
43
55
|
};
|
|
44
56
|
}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.7.0";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Written by `make build` from package.json. Do not edit.
|
|
2
|
-
export const VERSION = "2.
|
|
2
|
+
export const VERSION = "2.7.0";
|