yellowgrid-api-ts 3.2.44 → 3.2.46
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/models/EventTypeEnum.d.ts +18 -0
- package/dist/models/EventTypeEnum.js +20 -0
- package/dist/models/ServiceEnum.d.ts +13 -0
- package/dist/models/ServiceEnum.js +15 -0
- package/dist/models/ServiceHealthEnum.d.ts +18 -0
- package/dist/models/ServiceHealthEnum.js +20 -0
- package/dist/models/ServiceStatusEnum.d.ts +18 -0
- package/dist/models/ServiceStatusEnum.js +20 -0
- package/dist/models/UpdateTypeEnum.d.ts +23 -0
- package/dist/models/UpdateTypeEnum.js +25 -0
- package/getEnums.php +2 -2
- package/models/EventTypeEnum.ts +19 -0
- package/models/ServiceEnum.ts +14 -0
- package/models/ServiceHealthEnum.ts +19 -0
- package/models/ServiceStatusEnum.ts +19 -0
- package/models/UpdateTypeEnum.ts +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const EventTypeEnum: {
|
|
2
|
+
readonly MINOR_INCIDENT: {
|
|
3
|
+
readonly name: "MINOR_INCIDENT";
|
|
4
|
+
readonly value: 0;
|
|
5
|
+
readonly publicValue: "Service Disruption";
|
|
6
|
+
};
|
|
7
|
+
readonly MAJOR_INCIDENT: {
|
|
8
|
+
readonly name: "MAJOR_INCIDENT";
|
|
9
|
+
readonly value: 1;
|
|
10
|
+
readonly publicValue: "Major Incident";
|
|
11
|
+
};
|
|
12
|
+
readonly MAINTENANCE: {
|
|
13
|
+
readonly name: "MAINTENANCE";
|
|
14
|
+
readonly value: 2;
|
|
15
|
+
readonly publicValue: "Maintenance";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type EventTypeEnum = typeof EventTypeEnum;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventTypeEnum = void 0;
|
|
4
|
+
exports.EventTypeEnum = {
|
|
5
|
+
"MINOR_INCIDENT": {
|
|
6
|
+
"name": "MINOR_INCIDENT",
|
|
7
|
+
"value": 0,
|
|
8
|
+
"publicValue": "Service Disruption"
|
|
9
|
+
},
|
|
10
|
+
"MAJOR_INCIDENT": {
|
|
11
|
+
"name": "MAJOR_INCIDENT",
|
|
12
|
+
"value": 1,
|
|
13
|
+
"publicValue": "Major Incident"
|
|
14
|
+
},
|
|
15
|
+
"MAINTENANCE": {
|
|
16
|
+
"name": "MAINTENANCE",
|
|
17
|
+
"value": 2,
|
|
18
|
+
"publicValue": "Maintenance"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const ServiceEnum: {
|
|
2
|
+
readonly HOSTING: {
|
|
3
|
+
readonly name: "HOSTING";
|
|
4
|
+
readonly value: 0;
|
|
5
|
+
readonly publicValue: "Hosting";
|
|
6
|
+
};
|
|
7
|
+
readonly SIP_TRUNKS: {
|
|
8
|
+
readonly name: "SIP_TRUNKS";
|
|
9
|
+
readonly value: 1;
|
|
10
|
+
readonly publicValue: "SIP Trunks";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type ServiceEnum = typeof ServiceEnum;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceEnum = void 0;
|
|
4
|
+
exports.ServiceEnum = {
|
|
5
|
+
"HOSTING": {
|
|
6
|
+
"name": "HOSTING",
|
|
7
|
+
"value": 0,
|
|
8
|
+
"publicValue": "Hosting"
|
|
9
|
+
},
|
|
10
|
+
"SIP_TRUNKS": {
|
|
11
|
+
"name": "SIP_TRUNKS",
|
|
12
|
+
"value": 1,
|
|
13
|
+
"publicValue": "SIP Trunks"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const ServiceHealthEnum: {
|
|
2
|
+
readonly ONLINE: {
|
|
3
|
+
readonly name: "ONLINE";
|
|
4
|
+
readonly value: 0;
|
|
5
|
+
readonly publicValue: "Online";
|
|
6
|
+
};
|
|
7
|
+
readonly DEGRADED: {
|
|
8
|
+
readonly name: "DEGRADED";
|
|
9
|
+
readonly value: 1;
|
|
10
|
+
readonly publicValue: "Degraded";
|
|
11
|
+
};
|
|
12
|
+
readonly OFFLINE: {
|
|
13
|
+
readonly name: "OFFLINE";
|
|
14
|
+
readonly value: 2;
|
|
15
|
+
readonly publicValue: "Offline";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type ServiceHealthEnum = typeof ServiceHealthEnum;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceHealthEnum = void 0;
|
|
4
|
+
exports.ServiceHealthEnum = {
|
|
5
|
+
"ONLINE": {
|
|
6
|
+
"name": "ONLINE",
|
|
7
|
+
"value": 0,
|
|
8
|
+
"publicValue": "Online"
|
|
9
|
+
},
|
|
10
|
+
"DEGRADED": {
|
|
11
|
+
"name": "DEGRADED",
|
|
12
|
+
"value": 1,
|
|
13
|
+
"publicValue": "Degraded"
|
|
14
|
+
},
|
|
15
|
+
"OFFLINE": {
|
|
16
|
+
"name": "OFFLINE",
|
|
17
|
+
"value": 2,
|
|
18
|
+
"publicValue": "Offline"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const ServiceStatusEnum: {
|
|
2
|
+
readonly ONLINE: {
|
|
3
|
+
readonly name: "ONLINE";
|
|
4
|
+
readonly value: 0;
|
|
5
|
+
readonly publicValue: "Online";
|
|
6
|
+
};
|
|
7
|
+
readonly MINOR_INCIDENT: {
|
|
8
|
+
readonly name: "MINOR_INCIDENT";
|
|
9
|
+
readonly value: 1;
|
|
10
|
+
readonly publicValue: "Experiencing Incident";
|
|
11
|
+
};
|
|
12
|
+
readonly MAJOR_INCIDENT: {
|
|
13
|
+
readonly name: "MAJOR_INCIDENT";
|
|
14
|
+
readonly value: 2;
|
|
15
|
+
readonly publicValue: "Experiencing Major Incident";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type ServiceStatusEnum = typeof ServiceStatusEnum;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceStatusEnum = void 0;
|
|
4
|
+
exports.ServiceStatusEnum = {
|
|
5
|
+
"ONLINE": {
|
|
6
|
+
"name": "ONLINE",
|
|
7
|
+
"value": 0,
|
|
8
|
+
"publicValue": "Online"
|
|
9
|
+
},
|
|
10
|
+
"MINOR_INCIDENT": {
|
|
11
|
+
"name": "MINOR_INCIDENT",
|
|
12
|
+
"value": 1,
|
|
13
|
+
"publicValue": "Experiencing Incident"
|
|
14
|
+
},
|
|
15
|
+
"MAJOR_INCIDENT": {
|
|
16
|
+
"name": "MAJOR_INCIDENT",
|
|
17
|
+
"value": 2,
|
|
18
|
+
"publicValue": "Experiencing Major Incident"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const UpdateTypeEnum: {
|
|
2
|
+
readonly INVESTIGATING: {
|
|
3
|
+
readonly name: "INVESTIGATING";
|
|
4
|
+
readonly value: 0;
|
|
5
|
+
readonly publicValue: "Investigating";
|
|
6
|
+
};
|
|
7
|
+
readonly UPDATE: {
|
|
8
|
+
readonly name: "UPDATE";
|
|
9
|
+
readonly value: 1;
|
|
10
|
+
readonly publicValue: "Update";
|
|
11
|
+
};
|
|
12
|
+
readonly RESOLVED_PENDING_CLOSURE: {
|
|
13
|
+
readonly name: "RESOLVED_PENDING_CLOSURE";
|
|
14
|
+
readonly value: 2;
|
|
15
|
+
readonly publicValue: "Resolved - Pending Closure";
|
|
16
|
+
};
|
|
17
|
+
readonly RESOLVED: {
|
|
18
|
+
readonly name: "RESOLVED";
|
|
19
|
+
readonly value: 3;
|
|
20
|
+
readonly publicValue: "Resolved";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type UpdateTypeEnum = typeof UpdateTypeEnum;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTypeEnum = void 0;
|
|
4
|
+
exports.UpdateTypeEnum = {
|
|
5
|
+
"INVESTIGATING": {
|
|
6
|
+
"name": "INVESTIGATING",
|
|
7
|
+
"value": 0,
|
|
8
|
+
"publicValue": "Investigating"
|
|
9
|
+
},
|
|
10
|
+
"UPDATE": {
|
|
11
|
+
"name": "UPDATE",
|
|
12
|
+
"value": 1,
|
|
13
|
+
"publicValue": "Update"
|
|
14
|
+
},
|
|
15
|
+
"RESOLVED_PENDING_CLOSURE": {
|
|
16
|
+
"name": "RESOLVED_PENDING_CLOSURE",
|
|
17
|
+
"value": 2,
|
|
18
|
+
"publicValue": "Resolved - Pending Closure"
|
|
19
|
+
},
|
|
20
|
+
"RESOLVED": {
|
|
21
|
+
"name": "RESOLVED",
|
|
22
|
+
"value": 3,
|
|
23
|
+
"publicValue": "Resolved"
|
|
24
|
+
}
|
|
25
|
+
};
|
package/getEnums.php
CHANGED
|
@@ -4,7 +4,7 @@ use App\Contracts\Enums\PublicEnumInterface;
|
|
|
4
4
|
|
|
5
5
|
require_once __DIR__."/../../../../vendor/autoload.php";
|
|
6
6
|
|
|
7
|
-
$dir = __DIR__."/
|
|
7
|
+
$dir = __DIR__."/models";
|
|
8
8
|
if (!is_dir($dir)) {
|
|
9
9
|
mkdir($dir);
|
|
10
10
|
}
|
|
@@ -26,6 +26,6 @@ foreach (\App\Enums\Router\PublicEnumEnum::cases() as $publicEnum) {
|
|
|
26
26
|
$enumName = $ref->getShortName();
|
|
27
27
|
$enumString = json_encode($cases, JSON_PRETTY_PRINT);
|
|
28
28
|
$content = "export const $enumName = $enumString as const;".
|
|
29
|
-
"\n\n export type $enumName = typeof $enumName
|
|
29
|
+
"\n\n export type $enumName = typeof $enumName;";
|
|
30
30
|
file_put_contents("$dir/$enumName.ts", $content);
|
|
31
31
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const EventTypeEnum = {
|
|
2
|
+
"MINOR_INCIDENT": {
|
|
3
|
+
"name": "MINOR_INCIDENT",
|
|
4
|
+
"value": 0,
|
|
5
|
+
"publicValue": "Service Disruption"
|
|
6
|
+
},
|
|
7
|
+
"MAJOR_INCIDENT": {
|
|
8
|
+
"name": "MAJOR_INCIDENT",
|
|
9
|
+
"value": 1,
|
|
10
|
+
"publicValue": "Major Incident"
|
|
11
|
+
},
|
|
12
|
+
"MAINTENANCE": {
|
|
13
|
+
"name": "MAINTENANCE",
|
|
14
|
+
"value": 2,
|
|
15
|
+
"publicValue": "Maintenance"
|
|
16
|
+
}
|
|
17
|
+
} as const;
|
|
18
|
+
|
|
19
|
+
export type EventTypeEnum = typeof EventTypeEnum;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const ServiceEnum = {
|
|
2
|
+
"HOSTING": {
|
|
3
|
+
"name": "HOSTING",
|
|
4
|
+
"value": 0,
|
|
5
|
+
"publicValue": "Hosting"
|
|
6
|
+
},
|
|
7
|
+
"SIP_TRUNKS": {
|
|
8
|
+
"name": "SIP_TRUNKS",
|
|
9
|
+
"value": 1,
|
|
10
|
+
"publicValue": "SIP Trunks"
|
|
11
|
+
}
|
|
12
|
+
} as const;
|
|
13
|
+
|
|
14
|
+
export type ServiceEnum = typeof ServiceEnum;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const ServiceHealthEnum = {
|
|
2
|
+
"ONLINE": {
|
|
3
|
+
"name": "ONLINE",
|
|
4
|
+
"value": 0,
|
|
5
|
+
"publicValue": "Online"
|
|
6
|
+
},
|
|
7
|
+
"DEGRADED": {
|
|
8
|
+
"name": "DEGRADED",
|
|
9
|
+
"value": 1,
|
|
10
|
+
"publicValue": "Degraded"
|
|
11
|
+
},
|
|
12
|
+
"OFFLINE": {
|
|
13
|
+
"name": "OFFLINE",
|
|
14
|
+
"value": 2,
|
|
15
|
+
"publicValue": "Offline"
|
|
16
|
+
}
|
|
17
|
+
} as const;
|
|
18
|
+
|
|
19
|
+
export type ServiceHealthEnum = typeof ServiceHealthEnum;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const ServiceStatusEnum = {
|
|
2
|
+
"ONLINE": {
|
|
3
|
+
"name": "ONLINE",
|
|
4
|
+
"value": 0,
|
|
5
|
+
"publicValue": "Online"
|
|
6
|
+
},
|
|
7
|
+
"MINOR_INCIDENT": {
|
|
8
|
+
"name": "MINOR_INCIDENT",
|
|
9
|
+
"value": 1,
|
|
10
|
+
"publicValue": "Experiencing Incident"
|
|
11
|
+
},
|
|
12
|
+
"MAJOR_INCIDENT": {
|
|
13
|
+
"name": "MAJOR_INCIDENT",
|
|
14
|
+
"value": 2,
|
|
15
|
+
"publicValue": "Experiencing Major Incident"
|
|
16
|
+
}
|
|
17
|
+
} as const;
|
|
18
|
+
|
|
19
|
+
export type ServiceStatusEnum = typeof ServiceStatusEnum;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const UpdateTypeEnum = {
|
|
2
|
+
"INVESTIGATING": {
|
|
3
|
+
"name": "INVESTIGATING",
|
|
4
|
+
"value": 0,
|
|
5
|
+
"publicValue": "Investigating"
|
|
6
|
+
},
|
|
7
|
+
"UPDATE": {
|
|
8
|
+
"name": "UPDATE",
|
|
9
|
+
"value": 1,
|
|
10
|
+
"publicValue": "Update"
|
|
11
|
+
},
|
|
12
|
+
"RESOLVED_PENDING_CLOSURE": {
|
|
13
|
+
"name": "RESOLVED_PENDING_CLOSURE",
|
|
14
|
+
"value": 2,
|
|
15
|
+
"publicValue": "Resolved - Pending Closure"
|
|
16
|
+
},
|
|
17
|
+
"RESOLVED": {
|
|
18
|
+
"name": "RESOLVED",
|
|
19
|
+
"value": 3,
|
|
20
|
+
"publicValue": "Resolved"
|
|
21
|
+
}
|
|
22
|
+
} as const;
|
|
23
|
+
|
|
24
|
+
export type UpdateTypeEnum = typeof UpdateTypeEnum;
|