@incident-io/sdk 2.48.0 → 2.50.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.
Files changed (37) hide show
  1. package/dist/cjs/models/AuditLogTargetV2.d.ts +1 -0
  2. package/dist/cjs/models/AuditLogTargetV2.js +1 -0
  3. package/dist/cjs/models/AuditLogsEscalationUrgencyCreatedV1.d.ts +53 -0
  4. package/dist/cjs/models/AuditLogsEscalationUrgencyCreatedV1.js +74 -0
  5. package/dist/cjs/models/AuditLogsEscalationUrgencyDeletedV1.d.ts +53 -0
  6. package/dist/cjs/models/AuditLogsEscalationUrgencyDeletedV1.js +74 -0
  7. package/dist/cjs/models/AuditLogsEscalationUrgencyUpdatedV1.d.ts +53 -0
  8. package/dist/cjs/models/AuditLogsEscalationUrgencyUpdatedV1.js +74 -0
  9. package/dist/cjs/models/PayConfigV2.d.ts +4 -3
  10. package/dist/cjs/models/PayConfigV2.js +1 -0
  11. package/dist/cjs/models/PayConfigsCreatePayloadV2.d.ts +3 -2
  12. package/dist/cjs/models/PayConfigsCreatePayloadV2.js +1 -0
  13. package/dist/cjs/models/PayConfigsUpdatePayloadV2.d.ts +3 -2
  14. package/dist/cjs/models/PayConfigsUpdatePayloadV2.js +1 -0
  15. package/dist/cjs/models/index.d.ts +3 -0
  16. package/dist/cjs/models/index.js +3 -0
  17. package/dist/cjs/version.d.ts +1 -1
  18. package/dist/cjs/version.js +1 -1
  19. package/dist/esm/models/AuditLogTargetV2.d.ts +1 -0
  20. package/dist/esm/models/AuditLogTargetV2.js +1 -0
  21. package/dist/esm/models/AuditLogsEscalationUrgencyCreatedV1.d.ts +53 -0
  22. package/dist/esm/models/AuditLogsEscalationUrgencyCreatedV1.js +67 -0
  23. package/dist/esm/models/AuditLogsEscalationUrgencyDeletedV1.d.ts +53 -0
  24. package/dist/esm/models/AuditLogsEscalationUrgencyDeletedV1.js +67 -0
  25. package/dist/esm/models/AuditLogsEscalationUrgencyUpdatedV1.d.ts +53 -0
  26. package/dist/esm/models/AuditLogsEscalationUrgencyUpdatedV1.js +67 -0
  27. package/dist/esm/models/PayConfigV2.d.ts +4 -3
  28. package/dist/esm/models/PayConfigV2.js +1 -0
  29. package/dist/esm/models/PayConfigsCreatePayloadV2.d.ts +3 -2
  30. package/dist/esm/models/PayConfigsCreatePayloadV2.js +1 -0
  31. package/dist/esm/models/PayConfigsUpdatePayloadV2.d.ts +3 -2
  32. package/dist/esm/models/PayConfigsUpdatePayloadV2.js +1 -0
  33. package/dist/esm/models/index.d.ts +3 -0
  34. package/dist/esm/models/index.js +3 -0
  35. package/dist/esm/version.d.ts +1 -1
  36. package/dist/esm/version.js +1 -1
  37. package/package.json +1 -1
@@ -39,6 +39,7 @@ export declare const AuditLogTargetV2TypeEnum: {
39
39
  readonly AlertSchema: "alert_schema";
40
40
  readonly AlertSource: "alert_source";
41
41
  readonly AlertPriority: "alert_priority";
42
+ readonly EscalationUrgency: "escalation_urgency";
42
43
  readonly AnnouncementRule: "announcement_rule";
43
44
  readonly AnnouncementPostTemplate: "announcement_post_template";
44
45
  readonly CatalogType: "catalog_type";
@@ -30,6 +30,7 @@ exports.AuditLogTargetV2TypeEnum = {
30
30
  AlertSchema: 'alert_schema',
31
31
  AlertSource: 'alert_source',
32
32
  AlertPriority: 'alert_priority',
33
+ EscalationUrgency: 'escalation_urgency',
33
34
  AnnouncementRule: 'announcement_rule',
34
35
  AnnouncementPostTemplate: 'announcement_post_template',
35
36
  CatalogType: 'catalog_type',
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsEscalationUrgencyCreatedV1
19
+ */
20
+ export interface AuditLogsEscalationUrgencyCreatedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsEscalationUrgencyCreatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsEscalationUrgencyCreatedV1(value: object): value is AuditLogsEscalationUrgencyCreatedV1;
50
+ export declare function AuditLogsEscalationUrgencyCreatedV1FromJSON(json: any): AuditLogsEscalationUrgencyCreatedV1;
51
+ export declare function AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsEscalationUrgencyCreatedV1;
52
+ export declare function AuditLogsEscalationUrgencyCreatedV1ToJSON(json: any): AuditLogsEscalationUrgencyCreatedV1;
53
+ export declare function AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(value?: AuditLogsEscalationUrgencyCreatedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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.instanceOfAuditLogsEscalationUrgencyCreatedV1 = instanceOfAuditLogsEscalationUrgencyCreatedV1;
17
+ exports.AuditLogsEscalationUrgencyCreatedV1FromJSON = AuditLogsEscalationUrgencyCreatedV1FromJSON;
18
+ exports.AuditLogsEscalationUrgencyCreatedV1FromJSONTyped = AuditLogsEscalationUrgencyCreatedV1FromJSONTyped;
19
+ exports.AuditLogsEscalationUrgencyCreatedV1ToJSON = AuditLogsEscalationUrgencyCreatedV1ToJSON;
20
+ exports.AuditLogsEscalationUrgencyCreatedV1ToJSONTyped = AuditLogsEscalationUrgencyCreatedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
24
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
25
+ /**
26
+ * Check if a given object implements the AuditLogsEscalationUrgencyCreatedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsEscalationUrgencyCreatedV1(value) {
29
+ if (!('action' in value) || value['action'] === undefined)
30
+ return false;
31
+ if (!('actor' in value) || value['actor'] === undefined)
32
+ return false;
33
+ if (!('context' in value) || value['context'] === undefined)
34
+ return false;
35
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
36
+ return false;
37
+ if (!('targets' in value) || value['targets'] === undefined)
38
+ return false;
39
+ if (!('version' in value) || value['version'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function AuditLogsEscalationUrgencyCreatedV1FromJSON(json) {
44
+ return AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'action': json['action'],
52
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
53
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
54
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
55
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
56
+ 'version': json['version'],
57
+ };
58
+ }
59
+ function AuditLogsEscalationUrgencyCreatedV1ToJSON(json) {
60
+ return AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'action': value['action'],
68
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
69
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
70
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
71
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
72
+ 'version': value['version'],
73
+ };
74
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsEscalationUrgencyDeletedV1
19
+ */
20
+ export interface AuditLogsEscalationUrgencyDeletedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsEscalationUrgencyDeletedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsEscalationUrgencyDeletedV1(value: object): value is AuditLogsEscalationUrgencyDeletedV1;
50
+ export declare function AuditLogsEscalationUrgencyDeletedV1FromJSON(json: any): AuditLogsEscalationUrgencyDeletedV1;
51
+ export declare function AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsEscalationUrgencyDeletedV1;
52
+ export declare function AuditLogsEscalationUrgencyDeletedV1ToJSON(json: any): AuditLogsEscalationUrgencyDeletedV1;
53
+ export declare function AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(value?: AuditLogsEscalationUrgencyDeletedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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.instanceOfAuditLogsEscalationUrgencyDeletedV1 = instanceOfAuditLogsEscalationUrgencyDeletedV1;
17
+ exports.AuditLogsEscalationUrgencyDeletedV1FromJSON = AuditLogsEscalationUrgencyDeletedV1FromJSON;
18
+ exports.AuditLogsEscalationUrgencyDeletedV1FromJSONTyped = AuditLogsEscalationUrgencyDeletedV1FromJSONTyped;
19
+ exports.AuditLogsEscalationUrgencyDeletedV1ToJSON = AuditLogsEscalationUrgencyDeletedV1ToJSON;
20
+ exports.AuditLogsEscalationUrgencyDeletedV1ToJSONTyped = AuditLogsEscalationUrgencyDeletedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
24
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
25
+ /**
26
+ * Check if a given object implements the AuditLogsEscalationUrgencyDeletedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsEscalationUrgencyDeletedV1(value) {
29
+ if (!('action' in value) || value['action'] === undefined)
30
+ return false;
31
+ if (!('actor' in value) || value['actor'] === undefined)
32
+ return false;
33
+ if (!('context' in value) || value['context'] === undefined)
34
+ return false;
35
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
36
+ return false;
37
+ if (!('targets' in value) || value['targets'] === undefined)
38
+ return false;
39
+ if (!('version' in value) || value['version'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function AuditLogsEscalationUrgencyDeletedV1FromJSON(json) {
44
+ return AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'action': json['action'],
52
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
53
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
54
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
55
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
56
+ 'version': json['version'],
57
+ };
58
+ }
59
+ function AuditLogsEscalationUrgencyDeletedV1ToJSON(json) {
60
+ return AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'action': value['action'],
68
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
69
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
70
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
71
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
72
+ 'version': value['version'],
73
+ };
74
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsEscalationUrgencyUpdatedV1
19
+ */
20
+ export interface AuditLogsEscalationUrgencyUpdatedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsEscalationUrgencyUpdatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsEscalationUrgencyUpdatedV1(value: object): value is AuditLogsEscalationUrgencyUpdatedV1;
50
+ export declare function AuditLogsEscalationUrgencyUpdatedV1FromJSON(json: any): AuditLogsEscalationUrgencyUpdatedV1;
51
+ export declare function AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsEscalationUrgencyUpdatedV1;
52
+ export declare function AuditLogsEscalationUrgencyUpdatedV1ToJSON(json: any): AuditLogsEscalationUrgencyUpdatedV1;
53
+ export declare function AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(value?: AuditLogsEscalationUrgencyUpdatedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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.instanceOfAuditLogsEscalationUrgencyUpdatedV1 = instanceOfAuditLogsEscalationUrgencyUpdatedV1;
17
+ exports.AuditLogsEscalationUrgencyUpdatedV1FromJSON = AuditLogsEscalationUrgencyUpdatedV1FromJSON;
18
+ exports.AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped = AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped;
19
+ exports.AuditLogsEscalationUrgencyUpdatedV1ToJSON = AuditLogsEscalationUrgencyUpdatedV1ToJSON;
20
+ exports.AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped = AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
24
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
25
+ /**
26
+ * Check if a given object implements the AuditLogsEscalationUrgencyUpdatedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsEscalationUrgencyUpdatedV1(value) {
29
+ if (!('action' in value) || value['action'] === undefined)
30
+ return false;
31
+ if (!('actor' in value) || value['actor'] === undefined)
32
+ return false;
33
+ if (!('context' in value) || value['context'] === undefined)
34
+ return false;
35
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
36
+ return false;
37
+ if (!('targets' in value) || value['targets'] === undefined)
38
+ return false;
39
+ if (!('version' in value) || value['version'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function AuditLogsEscalationUrgencyUpdatedV1FromJSON(json) {
44
+ return AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'action': json['action'],
52
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
53
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
54
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
55
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
56
+ 'version': json['version'],
57
+ };
58
+ }
59
+ function AuditLogsEscalationUrgencyUpdatedV1ToJSON(json) {
60
+ return AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'action': value['action'],
68
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
69
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
70
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
71
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
72
+ 'version': value['version'],
73
+ };
74
+ }
@@ -23,7 +23,7 @@ import type { PayConfigWeeklyRuleV2 } from './PayConfigWeeklyRuleV2.js';
23
23
  */
24
24
  export interface PayConfigV2 {
25
25
  /**
26
- * Rate paid for any time no rule covers, in the lowest denomination of the currency
26
+ * Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency
27
27
  */
28
28
  base_rate_cents: number;
29
29
  /**
@@ -51,7 +51,7 @@ export interface PayConfigV2 {
51
51
  */
52
52
  published_at?: Date;
53
53
  /**
54
- * The unit of time every rate on this config is quoted per. Pay is pro-rated by the second either way.
54
+ * The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second.
55
55
  */
56
56
  rate_time_unit: PayConfigV2RateTimeUnitEnum;
57
57
  /**
@@ -63,7 +63,7 @@ export interface PayConfigV2 {
63
63
  */
64
64
  updated_at: Date;
65
65
  /**
66
- * Rules that apply every week, by day of week and time of day, in evaluation order
66
+ * Rules that apply every week, by day of week and time of day, in evaluation order. Must be empty when rate_time_unit is week.
67
67
  */
68
68
  weekly_rules: Array<PayConfigWeeklyRuleV2>;
69
69
  }
@@ -73,6 +73,7 @@ export interface PayConfigV2 {
73
73
  export declare const PayConfigV2RateTimeUnitEnum: {
74
74
  readonly Hour: "hour";
75
75
  readonly Day: "day";
76
+ readonly Week: "week";
76
77
  };
77
78
  export type PayConfigV2RateTimeUnitEnum = typeof PayConfigV2RateTimeUnitEnum[keyof typeof PayConfigV2RateTimeUnitEnum];
78
79
  /**
@@ -28,6 +28,7 @@ const PayConfigWeeklyRuleV2_js_1 = require("./PayConfigWeeklyRuleV2.js");
28
28
  exports.PayConfigV2RateTimeUnitEnum = {
29
29
  Hour: 'hour',
30
30
  Day: 'day',
31
+ Week: 'week',
31
32
  };
32
33
  /**
33
34
  * Check if a given object implements the PayConfigV2 interface.
@@ -18,7 +18,7 @@ import type { PayConfigOneOffRulePayloadV2 } from './PayConfigOneOffRulePayloadV
18
18
  */
19
19
  export interface PayConfigsCreatePayloadV2 {
20
20
  /**
21
- * Rate paid for any time no rule covers, in the lowest denomination of the currency
21
+ * Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency
22
22
  */
23
23
  base_rate_cents: number;
24
24
  /**
@@ -34,7 +34,7 @@ export interface PayConfigsCreatePayloadV2 {
34
34
  */
35
35
  one_off_rules?: Array<PayConfigOneOffRulePayloadV2>;
36
36
  /**
37
- * The unit of time every rate on this config is quoted per
37
+ * The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second.
38
38
  */
39
39
  rate_time_unit: PayConfigsCreatePayloadV2RateTimeUnitEnum;
40
40
  /**
@@ -52,6 +52,7 @@ export interface PayConfigsCreatePayloadV2 {
52
52
  export declare const PayConfigsCreatePayloadV2RateTimeUnitEnum: {
53
53
  readonly Hour: "hour";
54
54
  readonly Day: "day";
55
+ readonly Week: "week";
55
56
  };
56
57
  export type PayConfigsCreatePayloadV2RateTimeUnitEnum = typeof PayConfigsCreatePayloadV2RateTimeUnitEnum[keyof typeof PayConfigsCreatePayloadV2RateTimeUnitEnum];
57
58
  /**
@@ -27,6 +27,7 @@ const PayConfigOneOffRulePayloadV2_js_1 = require("./PayConfigOneOffRulePayloadV
27
27
  exports.PayConfigsCreatePayloadV2RateTimeUnitEnum = {
28
28
  Hour: 'hour',
29
29
  Day: 'day',
30
+ Week: 'week',
30
31
  };
31
32
  /**
32
33
  * Check if a given object implements the PayConfigsCreatePayloadV2 interface.
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface PayConfigsUpdatePayloadV2 {
18
18
  /**
19
- * Rate paid for any time no rule covers, in the lowest denomination of the currency
19
+ * Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency
20
20
  */
21
21
  base_rate_cents: number;
22
22
  /**
@@ -28,7 +28,7 @@ export interface PayConfigsUpdatePayloadV2 {
28
28
  */
29
29
  name: string;
30
30
  /**
31
- * The unit of time every rate on this config is quoted per. Pay is pro-rated by the second either way.
31
+ * The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second.
32
32
  */
33
33
  rate_time_unit: PayConfigsUpdatePayloadV2RateTimeUnitEnum;
34
34
  /**
@@ -42,6 +42,7 @@ export interface PayConfigsUpdatePayloadV2 {
42
42
  export declare const PayConfigsUpdatePayloadV2RateTimeUnitEnum: {
43
43
  readonly Hour: "hour";
44
44
  readonly Day: "day";
45
+ readonly Week: "week";
45
46
  };
46
47
  export type PayConfigsUpdatePayloadV2RateTimeUnitEnum = typeof PayConfigsUpdatePayloadV2RateTimeUnitEnum[keyof typeof PayConfigsUpdatePayloadV2RateTimeUnitEnum];
47
48
  /**
@@ -25,6 +25,7 @@ exports.PayConfigsUpdatePayloadV2ToJSONTyped = PayConfigsUpdatePayloadV2ToJSONTy
25
25
  exports.PayConfigsUpdatePayloadV2RateTimeUnitEnum = {
26
26
  Hour: 'hour',
27
27
  Day: 'day',
28
+ Week: 'week',
28
29
  };
29
30
  /**
30
31
  * Check if a given object implements the PayConfigsUpdatePayloadV2 interface.
@@ -365,6 +365,9 @@ export * from './AuditLogsEscalationPathUpdatedV1.js';
365
365
  export * from './AuditLogsEscalationPathUpdatedV2.js';
366
366
  export * from './AuditLogsEscalationScrubbedV1.js';
367
367
  export * from './AuditLogsEscalationScrubbedV2.js';
368
+ export * from './AuditLogsEscalationUrgencyCreatedV1.js';
369
+ export * from './AuditLogsEscalationUrgencyDeletedV1.js';
370
+ export * from './AuditLogsEscalationUrgencyUpdatedV1.js';
368
371
  export * from './AuditLogsExtensionConnectorCalledV1.js';
369
372
  export * from './AuditLogsExtensionConnectorCalledV2.js';
370
373
  export * from './AuditLogsExtensionConnectorCalledV3.js';
@@ -383,6 +383,9 @@ __exportStar(require("./AuditLogsEscalationPathUpdatedV1.js"), exports);
383
383
  __exportStar(require("./AuditLogsEscalationPathUpdatedV2.js"), exports);
384
384
  __exportStar(require("./AuditLogsEscalationScrubbedV1.js"), exports);
385
385
  __exportStar(require("./AuditLogsEscalationScrubbedV2.js"), exports);
386
+ __exportStar(require("./AuditLogsEscalationUrgencyCreatedV1.js"), exports);
387
+ __exportStar(require("./AuditLogsEscalationUrgencyDeletedV1.js"), exports);
388
+ __exportStar(require("./AuditLogsEscalationUrgencyUpdatedV1.js"), exports);
386
389
  __exportStar(require("./AuditLogsExtensionConnectorCalledV1.js"), exports);
387
390
  __exportStar(require("./AuditLogsExtensionConnectorCalledV2.js"), exports);
388
391
  __exportStar(require("./AuditLogsExtensionConnectorCalledV3.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "2.48.0";
1
+ export declare const VERSION = "2.50.0";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Written by `make build` from package.json. Do not edit.
5
- exports.VERSION = "2.48.0";
5
+ exports.VERSION = "2.50.0";
@@ -39,6 +39,7 @@ export declare const AuditLogTargetV2TypeEnum: {
39
39
  readonly AlertSchema: "alert_schema";
40
40
  readonly AlertSource: "alert_source";
41
41
  readonly AlertPriority: "alert_priority";
42
+ readonly EscalationUrgency: "escalation_urgency";
42
43
  readonly AnnouncementRule: "announcement_rule";
43
44
  readonly AnnouncementPostTemplate: "announcement_post_template";
44
45
  readonly CatalogType: "catalog_type";
@@ -22,6 +22,7 @@ export const AuditLogTargetV2TypeEnum = {
22
22
  AlertSchema: 'alert_schema',
23
23
  AlertSource: 'alert_source',
24
24
  AlertPriority: 'alert_priority',
25
+ EscalationUrgency: 'escalation_urgency',
25
26
  AnnouncementRule: 'announcement_rule',
26
27
  AnnouncementPostTemplate: 'announcement_post_template',
27
28
  CatalogType: 'catalog_type',
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsEscalationUrgencyCreatedV1
19
+ */
20
+ export interface AuditLogsEscalationUrgencyCreatedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsEscalationUrgencyCreatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsEscalationUrgencyCreatedV1(value: object): value is AuditLogsEscalationUrgencyCreatedV1;
50
+ export declare function AuditLogsEscalationUrgencyCreatedV1FromJSON(json: any): AuditLogsEscalationUrgencyCreatedV1;
51
+ export declare function AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsEscalationUrgencyCreatedV1;
52
+ export declare function AuditLogsEscalationUrgencyCreatedV1ToJSON(json: any): AuditLogsEscalationUrgencyCreatedV1;
53
+ export declare function AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(value?: AuditLogsEscalationUrgencyCreatedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
18
+ /**
19
+ * Check if a given object implements the AuditLogsEscalationUrgencyCreatedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsEscalationUrgencyCreatedV1(value) {
22
+ if (!('action' in value) || value['action'] === undefined)
23
+ return false;
24
+ if (!('actor' in value) || value['actor'] === undefined)
25
+ return false;
26
+ if (!('context' in value) || value['context'] === undefined)
27
+ return false;
28
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
29
+ return false;
30
+ if (!('targets' in value) || value['targets'] === undefined)
31
+ return false;
32
+ if (!('version' in value) || value['version'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function AuditLogsEscalationUrgencyCreatedV1FromJSON(json) {
37
+ return AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'action': json['action'],
45
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
46
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
47
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
48
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
49
+ 'version': json['version'],
50
+ };
51
+ }
52
+ export function AuditLogsEscalationUrgencyCreatedV1ToJSON(json) {
53
+ return AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'action': value['action'],
61
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
62
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
63
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
64
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
65
+ 'version': value['version'],
66
+ };
67
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsEscalationUrgencyDeletedV1
19
+ */
20
+ export interface AuditLogsEscalationUrgencyDeletedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsEscalationUrgencyDeletedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsEscalationUrgencyDeletedV1(value: object): value is AuditLogsEscalationUrgencyDeletedV1;
50
+ export declare function AuditLogsEscalationUrgencyDeletedV1FromJSON(json: any): AuditLogsEscalationUrgencyDeletedV1;
51
+ export declare function AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsEscalationUrgencyDeletedV1;
52
+ export declare function AuditLogsEscalationUrgencyDeletedV1ToJSON(json: any): AuditLogsEscalationUrgencyDeletedV1;
53
+ export declare function AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(value?: AuditLogsEscalationUrgencyDeletedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
18
+ /**
19
+ * Check if a given object implements the AuditLogsEscalationUrgencyDeletedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsEscalationUrgencyDeletedV1(value) {
22
+ if (!('action' in value) || value['action'] === undefined)
23
+ return false;
24
+ if (!('actor' in value) || value['actor'] === undefined)
25
+ return false;
26
+ if (!('context' in value) || value['context'] === undefined)
27
+ return false;
28
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
29
+ return false;
30
+ if (!('targets' in value) || value['targets'] === undefined)
31
+ return false;
32
+ if (!('version' in value) || value['version'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function AuditLogsEscalationUrgencyDeletedV1FromJSON(json) {
37
+ return AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'action': json['action'],
45
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
46
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
47
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
48
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
49
+ 'version': json['version'],
50
+ };
51
+ }
52
+ export function AuditLogsEscalationUrgencyDeletedV1ToJSON(json) {
53
+ return AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'action': value['action'],
61
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
62
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
63
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
64
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
65
+ 'version': value['version'],
66
+ };
67
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsEscalationUrgencyUpdatedV1
19
+ */
20
+ export interface AuditLogsEscalationUrgencyUpdatedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsEscalationUrgencyUpdatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsEscalationUrgencyUpdatedV1(value: object): value is AuditLogsEscalationUrgencyUpdatedV1;
50
+ export declare function AuditLogsEscalationUrgencyUpdatedV1FromJSON(json: any): AuditLogsEscalationUrgencyUpdatedV1;
51
+ export declare function AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsEscalationUrgencyUpdatedV1;
52
+ export declare function AuditLogsEscalationUrgencyUpdatedV1ToJSON(json: any): AuditLogsEscalationUrgencyUpdatedV1;
53
+ export declare function AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(value?: AuditLogsEscalationUrgencyUpdatedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
18
+ /**
19
+ * Check if a given object implements the AuditLogsEscalationUrgencyUpdatedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsEscalationUrgencyUpdatedV1(value) {
22
+ if (!('action' in value) || value['action'] === undefined)
23
+ return false;
24
+ if (!('actor' in value) || value['actor'] === undefined)
25
+ return false;
26
+ if (!('context' in value) || value['context'] === undefined)
27
+ return false;
28
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
29
+ return false;
30
+ if (!('targets' in value) || value['targets'] === undefined)
31
+ return false;
32
+ if (!('version' in value) || value['version'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function AuditLogsEscalationUrgencyUpdatedV1FromJSON(json) {
37
+ return AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'action': json['action'],
45
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
46
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
47
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
48
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
49
+ 'version': json['version'],
50
+ };
51
+ }
52
+ export function AuditLogsEscalationUrgencyUpdatedV1ToJSON(json) {
53
+ return AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'action': value['action'],
61
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
62
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
63
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
64
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
65
+ 'version': value['version'],
66
+ };
67
+ }
@@ -23,7 +23,7 @@ import type { PayConfigWeeklyRuleV2 } from './PayConfigWeeklyRuleV2.js';
23
23
  */
24
24
  export interface PayConfigV2 {
25
25
  /**
26
- * Rate paid for any time no rule covers, in the lowest denomination of the currency
26
+ * Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency
27
27
  */
28
28
  base_rate_cents: number;
29
29
  /**
@@ -51,7 +51,7 @@ export interface PayConfigV2 {
51
51
  */
52
52
  published_at?: Date;
53
53
  /**
54
- * The unit of time every rate on this config is quoted per. Pay is pro-rated by the second either way.
54
+ * The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second.
55
55
  */
56
56
  rate_time_unit: PayConfigV2RateTimeUnitEnum;
57
57
  /**
@@ -63,7 +63,7 @@ export interface PayConfigV2 {
63
63
  */
64
64
  updated_at: Date;
65
65
  /**
66
- * Rules that apply every week, by day of week and time of day, in evaluation order
66
+ * Rules that apply every week, by day of week and time of day, in evaluation order. Must be empty when rate_time_unit is week.
67
67
  */
68
68
  weekly_rules: Array<PayConfigWeeklyRuleV2>;
69
69
  }
@@ -73,6 +73,7 @@ export interface PayConfigV2 {
73
73
  export declare const PayConfigV2RateTimeUnitEnum: {
74
74
  readonly Hour: "hour";
75
75
  readonly Day: "day";
76
+ readonly Week: "week";
76
77
  };
77
78
  export type PayConfigV2RateTimeUnitEnum = typeof PayConfigV2RateTimeUnitEnum[keyof typeof PayConfigV2RateTimeUnitEnum];
78
79
  /**
@@ -20,6 +20,7 @@ import { PayConfigWeeklyRuleV2FromJSON, PayConfigWeeklyRuleV2ToJSON, } from './P
20
20
  export const PayConfigV2RateTimeUnitEnum = {
21
21
  Hour: 'hour',
22
22
  Day: 'day',
23
+ Week: 'week',
23
24
  };
24
25
  /**
25
26
  * Check if a given object implements the PayConfigV2 interface.
@@ -18,7 +18,7 @@ import type { PayConfigOneOffRulePayloadV2 } from './PayConfigOneOffRulePayloadV
18
18
  */
19
19
  export interface PayConfigsCreatePayloadV2 {
20
20
  /**
21
- * Rate paid for any time no rule covers, in the lowest denomination of the currency
21
+ * Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency
22
22
  */
23
23
  base_rate_cents: number;
24
24
  /**
@@ -34,7 +34,7 @@ export interface PayConfigsCreatePayloadV2 {
34
34
  */
35
35
  one_off_rules?: Array<PayConfigOneOffRulePayloadV2>;
36
36
  /**
37
- * The unit of time every rate on this config is quoted per
37
+ * The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second.
38
38
  */
39
39
  rate_time_unit: PayConfigsCreatePayloadV2RateTimeUnitEnum;
40
40
  /**
@@ -52,6 +52,7 @@ export interface PayConfigsCreatePayloadV2 {
52
52
  export declare const PayConfigsCreatePayloadV2RateTimeUnitEnum: {
53
53
  readonly Hour: "hour";
54
54
  readonly Day: "day";
55
+ readonly Week: "week";
55
56
  };
56
57
  export type PayConfigsCreatePayloadV2RateTimeUnitEnum = typeof PayConfigsCreatePayloadV2RateTimeUnitEnum[keyof typeof PayConfigsCreatePayloadV2RateTimeUnitEnum];
57
58
  /**
@@ -19,6 +19,7 @@ import { PayConfigOneOffRulePayloadV2FromJSON, PayConfigOneOffRulePayloadV2ToJSO
19
19
  export const PayConfigsCreatePayloadV2RateTimeUnitEnum = {
20
20
  Hour: 'hour',
21
21
  Day: 'day',
22
+ Week: 'week',
22
23
  };
23
24
  /**
24
25
  * Check if a given object implements the PayConfigsCreatePayloadV2 interface.
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface PayConfigsUpdatePayloadV2 {
18
18
  /**
19
- * Rate paid for any time no rule covers, in the lowest denomination of the currency
19
+ * Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency
20
20
  */
21
21
  base_rate_cents: number;
22
22
  /**
@@ -28,7 +28,7 @@ export interface PayConfigsUpdatePayloadV2 {
28
28
  */
29
29
  name: string;
30
30
  /**
31
- * The unit of time every rate on this config is quoted per. Pay is pro-rated by the second either way.
31
+ * The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second.
32
32
  */
33
33
  rate_time_unit: PayConfigsUpdatePayloadV2RateTimeUnitEnum;
34
34
  /**
@@ -42,6 +42,7 @@ export interface PayConfigsUpdatePayloadV2 {
42
42
  export declare const PayConfigsUpdatePayloadV2RateTimeUnitEnum: {
43
43
  readonly Hour: "hour";
44
44
  readonly Day: "day";
45
+ readonly Week: "week";
45
46
  };
46
47
  export type PayConfigsUpdatePayloadV2RateTimeUnitEnum = typeof PayConfigsUpdatePayloadV2RateTimeUnitEnum[keyof typeof PayConfigsUpdatePayloadV2RateTimeUnitEnum];
47
48
  /**
@@ -17,6 +17,7 @@
17
17
  export const PayConfigsUpdatePayloadV2RateTimeUnitEnum = {
18
18
  Hour: 'hour',
19
19
  Day: 'day',
20
+ Week: 'week',
20
21
  };
21
22
  /**
22
23
  * Check if a given object implements the PayConfigsUpdatePayloadV2 interface.
@@ -365,6 +365,9 @@ export * from './AuditLogsEscalationPathUpdatedV1.js';
365
365
  export * from './AuditLogsEscalationPathUpdatedV2.js';
366
366
  export * from './AuditLogsEscalationScrubbedV1.js';
367
367
  export * from './AuditLogsEscalationScrubbedV2.js';
368
+ export * from './AuditLogsEscalationUrgencyCreatedV1.js';
369
+ export * from './AuditLogsEscalationUrgencyDeletedV1.js';
370
+ export * from './AuditLogsEscalationUrgencyUpdatedV1.js';
368
371
  export * from './AuditLogsExtensionConnectorCalledV1.js';
369
372
  export * from './AuditLogsExtensionConnectorCalledV2.js';
370
373
  export * from './AuditLogsExtensionConnectorCalledV3.js';
@@ -367,6 +367,9 @@ export * from './AuditLogsEscalationPathUpdatedV1.js';
367
367
  export * from './AuditLogsEscalationPathUpdatedV2.js';
368
368
  export * from './AuditLogsEscalationScrubbedV1.js';
369
369
  export * from './AuditLogsEscalationScrubbedV2.js';
370
+ export * from './AuditLogsEscalationUrgencyCreatedV1.js';
371
+ export * from './AuditLogsEscalationUrgencyDeletedV1.js';
372
+ export * from './AuditLogsEscalationUrgencyUpdatedV1.js';
370
373
  export * from './AuditLogsExtensionConnectorCalledV1.js';
371
374
  export * from './AuditLogsExtensionConnectorCalledV2.js';
372
375
  export * from './AuditLogsExtensionConnectorCalledV3.js';
@@ -1 +1 @@
1
- export declare const VERSION = "2.48.0";
1
+ export declare const VERSION = "2.50.0";
@@ -1,2 +1,2 @@
1
1
  // Written by `make build` from package.json. Do not edit.
2
- export const VERSION = "2.48.0";
2
+ export const VERSION = "2.50.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incident-io/sdk",
3
- "version": "2.48.0",
3
+ "version": "2.50.0",
4
4
  "description": "TypeScript SDK for the incident.io API",
5
5
  "license": "MIT",
6
6
  "author": "incident.io <support@incident.io>",