@ampsec/platform-client 46.12.0 → 47.1.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/build/src/dto/messagingChannels/index.d.ts +1 -1
- package/build/src/dto/messagingChannels/index.js +1 -1
- package/build/src/dto/messagingChannels/index.js.map +1 -1
- package/build/src/dto/messagingChannels/{applicationMessage.dto.d.ts → slackMessage.dto.d.ts} +3 -3
- package/build/src/dto/messagingChannels/{applicationMessage.dto.js → slackMessage.dto.js} +1 -1
- package/build/src/dto/messagingChannels/slackMessage.dto.js.map +1 -0
- package/build/src/dto/notification.dto.d.ts +4 -1
- package/package.json +1 -1
- package/src/dto/messagingChannels/index.ts +1 -1
- package/src/dto/messagingChannels/{applicationMessage.dto.ts → slackMessage.dto.ts} +3 -3
- package/src/dto/notification.dto.ts +5 -1
- package/build/src/dto/messagingChannels/applicationMessage.dto.js.map +0 -1
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./slackMessage.dto"), exports);
|
|
18
18
|
__exportStar(require("./email.dto"), exports);
|
|
19
19
|
__exportStar(require("./notifiable.dto"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/messagingChannels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/messagingChannels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,8CAA4B;AAC5B,mDAAiC"}
|
package/build/src/dto/messagingChannels/{applicationMessage.dto.d.ts → slackMessage.dto.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Notifiable } from './notifiable.dto';
|
|
2
|
-
export type
|
|
3
|
-
/**
|
|
4
|
-
|
|
2
|
+
export type SlackMessageDto = Notifiable & {
|
|
3
|
+
/** ID of the Slack team to which the user(s) belong */
|
|
4
|
+
teamId: string;
|
|
5
5
|
/** Slack user IDs to which the notification is being sent */
|
|
6
6
|
users: string[];
|
|
7
7
|
/** Message to be sent to the users */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slackMessage.dto.js","sourceRoot":"","sources":["../../../../src/dto/messagingChannels/slackMessage.dto.ts"],"names":[],"mappings":""}
|
|
@@ -12,6 +12,9 @@ export type NotificationAddress = {
|
|
|
12
12
|
/** Webhook URLs to which the notification is being sent */
|
|
13
13
|
webhooks?: string[];
|
|
14
14
|
};
|
|
15
|
+
export type SlackNotificationAddress = NotificationAddress & {
|
|
16
|
+
teamId: string;
|
|
17
|
+
};
|
|
15
18
|
export type AssetNotificationContext = {
|
|
16
19
|
/** Name of the asset */
|
|
17
20
|
deviceName: string;
|
|
@@ -114,7 +117,7 @@ export type DeliveryStrategySpec = {
|
|
|
114
117
|
/** Channel type that should be used for sending the notificaiton */
|
|
115
118
|
kind: DeliveryStrategyKind;
|
|
116
119
|
/** Recipient address to which the notification is being sent */
|
|
117
|
-
to: NotificationAddress;
|
|
120
|
+
to: NotificationAddress | SlackNotificationAddress;
|
|
118
121
|
};
|
|
119
122
|
export type EmailDeliveryStrategySpec = DeliveryStrategySpec & {
|
|
120
123
|
subject: string;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {Notifiable} from './notifiable.dto';
|
|
2
2
|
|
|
3
|
-
export type
|
|
4
|
-
/**
|
|
5
|
-
|
|
3
|
+
export type SlackMessageDto = Notifiable & {
|
|
4
|
+
/** ID of the Slack team to which the user(s) belong */
|
|
5
|
+
teamId: string;
|
|
6
6
|
/** Slack user IDs to which the notification is being sent */
|
|
7
7
|
users: string[];
|
|
8
8
|
/** Message to be sent to the users */
|
|
@@ -14,6 +14,10 @@ export type NotificationAddress = {
|
|
|
14
14
|
webhooks?: string[];
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
export type SlackNotificationAddress = NotificationAddress & {
|
|
18
|
+
teamId: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
17
21
|
export type AssetNotificationContext = {
|
|
18
22
|
/** Name of the asset */
|
|
19
23
|
deviceName: string;
|
|
@@ -127,7 +131,7 @@ export type DeliveryStrategySpec = {
|
|
|
127
131
|
/** Channel type that should be used for sending the notificaiton */
|
|
128
132
|
kind: DeliveryStrategyKind;
|
|
129
133
|
/** Recipient address to which the notification is being sent */
|
|
130
|
-
to: NotificationAddress;
|
|
134
|
+
to: NotificationAddress | SlackNotificationAddress;
|
|
131
135
|
};
|
|
132
136
|
|
|
133
137
|
export type EmailDeliveryStrategySpec = DeliveryStrategySpec & {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applicationMessage.dto.js","sourceRoot":"","sources":["../../../../src/dto/messagingChannels/applicationMessage.dto.ts"],"names":[],"mappings":""}
|