@incident-io/sdk 2.41.0 → 2.42.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/models/CatalogEntryV3.d.ts +4 -0
- package/dist/cjs/models/CatalogEntryV3.js +4 -0
- package/dist/cjs/models/CatalogTypeV3.d.ts +4 -0
- package/dist/cjs/models/CatalogTypeV3.js +4 -0
- package/dist/cjs/models/CatalogUpdateEntryPayloadV3.d.ts +4 -0
- package/dist/cjs/models/CatalogUpdateEntryPayloadV3.js +2 -0
- package/dist/cjs/models/PartialEntryPayloadV3.d.ts +4 -0
- package/dist/cjs/models/PartialEntryPayloadV3.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/models/CatalogEntryV3.d.ts +4 -0
- package/dist/esm/models/CatalogEntryV3.js +4 -0
- package/dist/esm/models/CatalogTypeV3.d.ts +4 -0
- package/dist/esm/models/CatalogTypeV3.js +4 -0
- package/dist/esm/models/CatalogUpdateEntryPayloadV3.d.ts +4 -0
- package/dist/esm/models/CatalogUpdateEntryPayloadV3.js +2 -0
- package/dist/esm/models/PartialEntryPayloadV3.d.ts +4 -0
- package/dist/esm/models/PartialEntryPayloadV3.js +2 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -38,6 +38,10 @@ export interface CatalogEntryV3 {
|
|
|
38
38
|
* When this entry was created
|
|
39
39
|
*/
|
|
40
40
|
created_at: Date;
|
|
41
|
+
/**
|
|
42
|
+
* Aliases your organisation has added to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Syncs keep them, and they are also listed in aliases. When you update an entry, omit this or send null to keep its current custom aliases, send an empty list to clear them, or send a list to replace them.
|
|
43
|
+
*/
|
|
44
|
+
custom_aliases: Array<string>;
|
|
41
45
|
/**
|
|
42
46
|
* An optional alternative ID for this entry, which is ensured to be unique for the type
|
|
43
47
|
*/
|
|
@@ -32,6 +32,8 @@ function instanceOfCatalogEntryV3(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('custom_aliases' in value) || value['custom_aliases'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
if (!('id' in value) || value['id'] === undefined)
|
|
36
38
|
return false;
|
|
37
39
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -55,6 +57,7 @@ function CatalogEntryV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
57
|
'attribute_values': ((0, runtime_js_1.mapValues)(json['attribute_values'], CatalogEntryEngineParamBindingV3_js_1.CatalogEntryEngineParamBindingV3FromJSON)),
|
|
56
58
|
'catalog_type_id': json['catalog_type_id'],
|
|
57
59
|
'created_at': (json['created_at'] == null ? json['created_at'] : (0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
60
|
+
'custom_aliases': json['custom_aliases'],
|
|
58
61
|
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
59
62
|
'id': json['id'],
|
|
60
63
|
'name': json['name'],
|
|
@@ -75,6 +78,7 @@ function CatalogEntryV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
78
|
'attribute_values': ((0, runtime_js_1.mapValues)(value['attribute_values'], CatalogEntryEngineParamBindingV3_js_1.CatalogEntryEngineParamBindingV3ToJSON)),
|
|
76
79
|
'catalog_type_id': value['catalog_type_id'],
|
|
77
80
|
'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
|
|
81
|
+
'custom_aliases': value['custom_aliases'],
|
|
78
82
|
'external_id': value['external_id'],
|
|
79
83
|
'id': value['id'],
|
|
80
84
|
'name': value['name'],
|
|
@@ -98,6 +98,10 @@ export interface CatalogTypeV3 {
|
|
|
98
98
|
* The url of the external repository where this type is managed
|
|
99
99
|
*/
|
|
100
100
|
source_repo_url?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Whether entries of this type take custom_aliases. Only catalog types that incident.io syncs do, as you can't change their aliases directly, and not those whose aliases you edit elsewhere, such as alert priorities.
|
|
103
|
+
*/
|
|
104
|
+
supports_custom_aliases: boolean;
|
|
101
105
|
/**
|
|
102
106
|
* The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
|
|
103
107
|
*/
|
|
@@ -106,6 +106,8 @@ function instanceOfCatalogTypeV3(value) {
|
|
|
106
106
|
return false;
|
|
107
107
|
if (!('schema' in value) || value['schema'] === undefined)
|
|
108
108
|
return false;
|
|
109
|
+
if (!('supports_custom_aliases' in value) || value['supports_custom_aliases'] === undefined)
|
|
110
|
+
return false;
|
|
109
111
|
if (!('type_name' in value) || value['type_name'] === undefined)
|
|
110
112
|
return false;
|
|
111
113
|
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
@@ -142,6 +144,7 @@ function CatalogTypeV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
142
144
|
'required_integrations': json['required_integrations'] == null ? undefined : json['required_integrations'],
|
|
143
145
|
'schema': (0, CatalogTypeSchemaV3_js_1.CatalogTypeSchemaV3FromJSON)(json['schema']),
|
|
144
146
|
'source_repo_url': json['source_repo_url'] == null ? undefined : json['source_repo_url'],
|
|
147
|
+
'supports_custom_aliases': json['supports_custom_aliases'],
|
|
145
148
|
'type_name': json['type_name'],
|
|
146
149
|
'updated_at': (json['updated_at'] == null ? json['updated_at'] : (0, runtime_js_1.parseDateTime)(json['updated_at'])),
|
|
147
150
|
'use_name_as_identifier': json['use_name_as_identifier'],
|
|
@@ -175,6 +178,7 @@ function CatalogTypeV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
175
178
|
'required_integrations': value['required_integrations'],
|
|
176
179
|
'schema': (0, CatalogTypeSchemaV3_js_1.CatalogTypeSchemaV3ToJSON)(value['schema']),
|
|
177
180
|
'source_repo_url': value['source_repo_url'],
|
|
181
|
+
'supports_custom_aliases': value['supports_custom_aliases'],
|
|
178
182
|
'type_name': value['type_name'],
|
|
179
183
|
'updated_at': value['updated_at'] == null ? value['updated_at'] : (0, runtime_js_1.serializeDateTime)(value['updated_at']),
|
|
180
184
|
'use_name_as_identifier': value['use_name_as_identifier'],
|
|
@@ -26,6 +26,10 @@ export interface CatalogUpdateEntryPayloadV3 {
|
|
|
26
26
|
attribute_values: {
|
|
27
27
|
[key: string]: CatalogEngineParamBindingPayloadV3;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Aliases your organisation has added to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Syncs keep them, and they are also listed in aliases. When you update an entry, omit this or send null to keep its current custom aliases, send an empty list to clear them, or send a list to replace them.
|
|
31
|
+
*/
|
|
32
|
+
custom_aliases?: Array<string>;
|
|
29
33
|
/**
|
|
30
34
|
* An optional alternative ID for this entry, which is ensured to be unique for the type
|
|
31
35
|
*/
|
|
@@ -40,6 +40,7 @@ function CatalogUpdateEntryPayloadV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return {
|
|
41
41
|
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
42
42
|
'attribute_values': ((0, runtime_js_1.mapValues)(json['attribute_values'], CatalogEngineParamBindingPayloadV3_js_1.CatalogEngineParamBindingPayloadV3FromJSON)),
|
|
43
|
+
'custom_aliases': json['custom_aliases'] == null ? undefined : json['custom_aliases'],
|
|
43
44
|
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
44
45
|
'name': json['name'],
|
|
45
46
|
'rank': json['rank'] == null ? undefined : json['rank'],
|
|
@@ -56,6 +57,7 @@ function CatalogUpdateEntryPayloadV3ToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
56
57
|
return {
|
|
57
58
|
'aliases': value['aliases'],
|
|
58
59
|
'attribute_values': ((0, runtime_js_1.mapValues)(value['attribute_values'], CatalogEngineParamBindingPayloadV3_js_1.CatalogEngineParamBindingPayloadV3ToJSON)),
|
|
60
|
+
'custom_aliases': value['custom_aliases'],
|
|
59
61
|
'external_id': value['external_id'],
|
|
60
62
|
'name': value['name'],
|
|
61
63
|
'rank': value['rank'],
|
|
@@ -26,6 +26,10 @@ export interface PartialEntryPayloadV3 {
|
|
|
26
26
|
attribute_values: {
|
|
27
27
|
[key: string]: CatalogEngineParamBindingPayloadV3;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Aliases your organisation adds to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Omit this or send null to keep the entry's current custom aliases, send an empty list to clear them, or send a list to replace them. Only available on catalog types where supports_custom_aliases is true.
|
|
31
|
+
*/
|
|
32
|
+
custom_aliases?: Array<string>;
|
|
29
33
|
/**
|
|
30
34
|
* ID of the relevant catalog entry
|
|
31
35
|
*/
|
|
@@ -40,6 +40,7 @@ function PartialEntryPayloadV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return {
|
|
41
41
|
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
42
42
|
'attribute_values': ((0, runtime_js_1.mapValues)(json['attribute_values'], CatalogEngineParamBindingPayloadV3_js_1.CatalogEngineParamBindingPayloadV3FromJSON)),
|
|
43
|
+
'custom_aliases': json['custom_aliases'] == null ? undefined : json['custom_aliases'],
|
|
43
44
|
'entry_id': json['entry_id'],
|
|
44
45
|
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
45
46
|
'name': json['name'] == null ? undefined : json['name'],
|
|
@@ -56,6 +57,7 @@ function PartialEntryPayloadV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
57
|
return {
|
|
57
58
|
'aliases': value['aliases'],
|
|
58
59
|
'attribute_values': ((0, runtime_js_1.mapValues)(value['attribute_values'], CatalogEngineParamBindingPayloadV3_js_1.CatalogEngineParamBindingPayloadV3ToJSON)),
|
|
60
|
+
'custom_aliases': value['custom_aliases'],
|
|
59
61
|
'entry_id': value['entry_id'],
|
|
60
62
|
'external_id': value['external_id'],
|
|
61
63
|
'name': value['name'],
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.42.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -38,6 +38,10 @@ export interface CatalogEntryV3 {
|
|
|
38
38
|
* When this entry was created
|
|
39
39
|
*/
|
|
40
40
|
created_at: Date;
|
|
41
|
+
/**
|
|
42
|
+
* Aliases your organisation has added to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Syncs keep them, and they are also listed in aliases. When you update an entry, omit this or send null to keep its current custom aliases, send an empty list to clear them, or send a list to replace them.
|
|
43
|
+
*/
|
|
44
|
+
custom_aliases: Array<string>;
|
|
41
45
|
/**
|
|
42
46
|
* An optional alternative ID for this entry, which is ensured to be unique for the type
|
|
43
47
|
*/
|
|
@@ -25,6 +25,8 @@ export function instanceOfCatalogEntryV3(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('custom_aliases' in value) || value['custom_aliases'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('id' in value) || value['id'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -48,6 +50,7 @@ export function CatalogEntryV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
'attribute_values': (mapValues(json['attribute_values'], CatalogEntryEngineParamBindingV3FromJSON)),
|
|
49
51
|
'catalog_type_id': json['catalog_type_id'],
|
|
50
52
|
'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
|
|
53
|
+
'custom_aliases': json['custom_aliases'],
|
|
51
54
|
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
52
55
|
'id': json['id'],
|
|
53
56
|
'name': json['name'],
|
|
@@ -68,6 +71,7 @@ export function CatalogEntryV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
71
|
'attribute_values': (mapValues(value['attribute_values'], CatalogEntryEngineParamBindingV3ToJSON)),
|
|
69
72
|
'catalog_type_id': value['catalog_type_id'],
|
|
70
73
|
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
74
|
+
'custom_aliases': value['custom_aliases'],
|
|
71
75
|
'external_id': value['external_id'],
|
|
72
76
|
'id': value['id'],
|
|
73
77
|
'name': value['name'],
|
|
@@ -98,6 +98,10 @@ export interface CatalogTypeV3 {
|
|
|
98
98
|
* The url of the external repository where this type is managed
|
|
99
99
|
*/
|
|
100
100
|
source_repo_url?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Whether entries of this type take custom_aliases. Only catalog types that incident.io syncs do, as you can't change their aliases directly, and not those whose aliases you edit elsewhere, such as alert priorities.
|
|
103
|
+
*/
|
|
104
|
+
supports_custom_aliases: boolean;
|
|
101
105
|
/**
|
|
102
106
|
* The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
|
|
103
107
|
*/
|
|
@@ -98,6 +98,8 @@ export function instanceOfCatalogTypeV3(value) {
|
|
|
98
98
|
return false;
|
|
99
99
|
if (!('schema' in value) || value['schema'] === undefined)
|
|
100
100
|
return false;
|
|
101
|
+
if (!('supports_custom_aliases' in value) || value['supports_custom_aliases'] === undefined)
|
|
102
|
+
return false;
|
|
101
103
|
if (!('type_name' in value) || value['type_name'] === undefined)
|
|
102
104
|
return false;
|
|
103
105
|
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
@@ -134,6 +136,7 @@ export function CatalogTypeV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
134
136
|
'required_integrations': json['required_integrations'] == null ? undefined : json['required_integrations'],
|
|
135
137
|
'schema': CatalogTypeSchemaV3FromJSON(json['schema']),
|
|
136
138
|
'source_repo_url': json['source_repo_url'] == null ? undefined : json['source_repo_url'],
|
|
139
|
+
'supports_custom_aliases': json['supports_custom_aliases'],
|
|
137
140
|
'type_name': json['type_name'],
|
|
138
141
|
'updated_at': (json['updated_at'] == null ? json['updated_at'] : parseDateTime(json['updated_at'])),
|
|
139
142
|
'use_name_as_identifier': json['use_name_as_identifier'],
|
|
@@ -167,6 +170,7 @@ export function CatalogTypeV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
167
170
|
'required_integrations': value['required_integrations'],
|
|
168
171
|
'schema': CatalogTypeSchemaV3ToJSON(value['schema']),
|
|
169
172
|
'source_repo_url': value['source_repo_url'],
|
|
173
|
+
'supports_custom_aliases': value['supports_custom_aliases'],
|
|
170
174
|
'type_name': value['type_name'],
|
|
171
175
|
'updated_at': value['updated_at'] == null ? value['updated_at'] : serializeDateTime(value['updated_at']),
|
|
172
176
|
'use_name_as_identifier': value['use_name_as_identifier'],
|
|
@@ -26,6 +26,10 @@ export interface CatalogUpdateEntryPayloadV3 {
|
|
|
26
26
|
attribute_values: {
|
|
27
27
|
[key: string]: CatalogEngineParamBindingPayloadV3;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Aliases your organisation has added to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Syncs keep them, and they are also listed in aliases. When you update an entry, omit this or send null to keep its current custom aliases, send an empty list to clear them, or send a list to replace them.
|
|
31
|
+
*/
|
|
32
|
+
custom_aliases?: Array<string>;
|
|
29
33
|
/**
|
|
30
34
|
* An optional alternative ID for this entry, which is ensured to be unique for the type
|
|
31
35
|
*/
|
|
@@ -33,6 +33,7 @@ export function CatalogUpdateEntryPayloadV3FromJSONTyped(json, ignoreDiscriminat
|
|
|
33
33
|
return {
|
|
34
34
|
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
35
35
|
'attribute_values': (mapValues(json['attribute_values'], CatalogEngineParamBindingPayloadV3FromJSON)),
|
|
36
|
+
'custom_aliases': json['custom_aliases'] == null ? undefined : json['custom_aliases'],
|
|
36
37
|
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
37
38
|
'name': json['name'],
|
|
38
39
|
'rank': json['rank'] == null ? undefined : json['rank'],
|
|
@@ -49,6 +50,7 @@ export function CatalogUpdateEntryPayloadV3ToJSONTyped(value, ignoreDiscriminato
|
|
|
49
50
|
return {
|
|
50
51
|
'aliases': value['aliases'],
|
|
51
52
|
'attribute_values': (mapValues(value['attribute_values'], CatalogEngineParamBindingPayloadV3ToJSON)),
|
|
53
|
+
'custom_aliases': value['custom_aliases'],
|
|
52
54
|
'external_id': value['external_id'],
|
|
53
55
|
'name': value['name'],
|
|
54
56
|
'rank': value['rank'],
|
|
@@ -26,6 +26,10 @@ export interface PartialEntryPayloadV3 {
|
|
|
26
26
|
attribute_values: {
|
|
27
27
|
[key: string]: CatalogEngineParamBindingPayloadV3;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Aliases your organisation adds to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Omit this or send null to keep the entry's current custom aliases, send an empty list to clear them, or send a list to replace them. Only available on catalog types where supports_custom_aliases is true.
|
|
31
|
+
*/
|
|
32
|
+
custom_aliases?: Array<string>;
|
|
29
33
|
/**
|
|
30
34
|
* ID of the relevant catalog entry
|
|
31
35
|
*/
|
|
@@ -33,6 +33,7 @@ export function PartialEntryPayloadV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return {
|
|
34
34
|
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
35
35
|
'attribute_values': (mapValues(json['attribute_values'], CatalogEngineParamBindingPayloadV3FromJSON)),
|
|
36
|
+
'custom_aliases': json['custom_aliases'] == null ? undefined : json['custom_aliases'],
|
|
36
37
|
'entry_id': json['entry_id'],
|
|
37
38
|
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
38
39
|
'name': json['name'] == null ? undefined : json['name'],
|
|
@@ -49,6 +50,7 @@ export function PartialEntryPayloadV3ToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
49
50
|
return {
|
|
50
51
|
'aliases': value['aliases'],
|
|
51
52
|
'attribute_values': (mapValues(value['attribute_values'], CatalogEngineParamBindingPayloadV3ToJSON)),
|
|
53
|
+
'custom_aliases': value['custom_aliases'],
|
|
52
54
|
'entry_id': value['entry_id'],
|
|
53
55
|
'external_id': value['external_id'],
|
|
54
56
|
'name': value['name'],
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.42.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.42.0";
|