@scaleway/sdk-cockpit 1.2.0 → 1.3.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.
@@ -182,7 +182,9 @@ const unmarshalPreconfiguredAlertData = (data) => {
182
182
  return {
183
183
  displayDescription: data.display_description,
184
184
  displayName: data.display_name,
185
- preconfiguredRuleId: data.preconfigured_rule_id
185
+ preconfiguredRuleId: data.preconfigured_rule_id,
186
+ productFamily: data.product_family,
187
+ productName: data.product_name
186
188
  };
187
189
  };
188
190
  const unmarshalAlert = (data) => {
@@ -180,7 +180,9 @@ const unmarshalPreconfiguredAlertData = (data) => {
180
180
  return {
181
181
  displayDescription: data.display_description,
182
182
  displayName: data.display_name,
183
- preconfiguredRuleId: data.preconfigured_rule_id
183
+ preconfiguredRuleId: data.preconfigured_rule_id,
184
+ productFamily: data.product_family,
185
+ productName: data.product_name
184
186
  };
185
187
  };
186
188
  const unmarshalAlert = (data) => {
@@ -26,6 +26,14 @@ export interface PreconfiguredAlertData {
26
26
  * Human readable description of the alert.
27
27
  */
28
28
  displayDescription: string;
29
+ /**
30
+ * Product associated with the alert.
31
+ */
32
+ productName: string;
33
+ /**
34
+ * Family of the product associated with the alert.
35
+ */
36
+ productFamily: string;
29
37
  }
30
38
  export interface ContactPointEmail {
31
39
  to: string;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-cockpit",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Scaleway SDK cockpit",
5
- "types": "dist/index.d.ts",
5
+ "license": "Apache-2.0",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
@@ -30,13 +30,13 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@scaleway/random-name": "5.1.1",
33
- "@scaleway/sdk-std": "1.0.3"
33
+ "@scaleway/sdk-std": "1.0.4"
34
34
  },
35
35
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.2.2"
36
+ "@scaleway/sdk-client": "^1.2.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.2.2"
39
+ "@scaleway/sdk-client": "^1.2.3"
40
40
  },
41
41
  "scripts": {
42
42
  "package:check": "pnpm publint",