@ampsec/platform-client 45.8.2 → 46.0.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 (25) hide show
  1. package/build/src/dto/index.d.ts +1 -2
  2. package/build/src/dto/index.js +1 -2
  3. package/build/src/dto/index.js.map +1 -1
  4. package/build/src/dto/{applicationMessage.dto.d.ts → messagingChannels/applicationMessage.dto.d.ts} +2 -1
  5. package/build/src/dto/messagingChannels/applicationMessage.dto.js.map +1 -0
  6. package/build/src/dto/{email.dto.d.ts → messagingChannels/email.dto.d.ts} +2 -1
  7. package/build/src/dto/messagingChannels/email.dto.js.map +1 -0
  8. package/build/src/dto/messagingChannels/index.d.ts +3 -0
  9. package/build/src/dto/messagingChannels/index.js +20 -0
  10. package/build/src/dto/messagingChannels/index.js.map +1 -0
  11. package/build/src/dto/messagingChannels/notifiable.dto.d.ts +1 -0
  12. package/build/src/dto/messagingChannels/notifiable.dto.js +3 -0
  13. package/build/src/dto/messagingChannels/notifiable.dto.js.map +1 -0
  14. package/build/src/services/AmpApi.d.ts +2 -2
  15. package/package.json +1 -1
  16. package/src/dto/index.ts +1 -2
  17. package/src/dto/{applicationMessage.dto.ts → messagingChannels/applicationMessage.dto.ts} +3 -1
  18. package/src/dto/{email.dto.ts → messagingChannels/email.dto.ts} +3 -1
  19. package/src/dto/messagingChannels/index.ts +3 -0
  20. package/src/dto/messagingChannels/notifiable.dto.ts +1 -0
  21. package/src/services/AmpApi.ts +1 -1
  22. package/build/src/dto/applicationMessage.dto.js.map +0 -1
  23. package/build/src/dto/email.dto.js.map +0 -1
  24. /package/build/src/dto/{applicationMessage.dto.js → messagingChannels/applicationMessage.dto.js} +0 -0
  25. /package/build/src/dto/{email.dto.js → messagingChannels/email.dto.js} +0 -0
@@ -4,7 +4,6 @@ export * from './assetKeys';
4
4
  export * from './base.dto';
5
5
  export * from './connectors.dto';
6
6
  export * from './constants';
7
- export * from './email.dto';
8
7
  export * from './enum.dto';
9
8
  export * from './enums';
10
9
  export * from './extKeyMap.dto';
@@ -20,8 +19,8 @@ export * from './riskContributors.dto';
20
19
  export * from './saasAssets.dto';
21
20
  export * from './saasComponents.dto';
22
21
  export * from './saasUsers.dto';
23
- export * from './applicationMessage.dto';
24
22
  export * from './ampSetting.dto';
25
23
  export * from './tenants.dto';
26
24
  export * from './users.dto';
27
25
  export * from './workflow.dto';
26
+ export * from './messagingChannels';
@@ -20,7 +20,6 @@ __exportStar(require("./assetKeys"), exports);
20
20
  __exportStar(require("./base.dto"), exports);
21
21
  __exportStar(require("./connectors.dto"), exports);
22
22
  __exportStar(require("./constants"), exports);
23
- __exportStar(require("./email.dto"), exports);
24
23
  __exportStar(require("./enum.dto"), exports);
25
24
  __exportStar(require("./enums"), exports);
26
25
  __exportStar(require("./extKeyMap.dto"), exports);
@@ -36,9 +35,9 @@ __exportStar(require("./riskContributors.dto"), exports);
36
35
  __exportStar(require("./saasAssets.dto"), exports);
37
36
  __exportStar(require("./saasComponents.dto"), exports);
38
37
  __exportStar(require("./saasUsers.dto"), exports);
39
- __exportStar(require("./applicationMessage.dto"), exports);
40
38
  __exportStar(require("./ampSetting.dto"), exports);
41
39
  __exportStar(require("./tenants.dto"), exports);
42
40
  __exportStar(require("./users.dto"), exports);
43
41
  __exportStar(require("./workflow.dto"), exports);
42
+ __exportStar(require("./messagingChannels"), exports);
44
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,2DAAyC;AACzC,mDAAiC;AACjC,gDAA8B;AAC9B,8CAA4B;AAC5B,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC"}
@@ -1,4 +1,5 @@
1
- export type ApplicationMessageDto = {
1
+ import { Notifiable } from './notifiable.dto';
2
+ export type ApplicationMessageDto = Notifiable & {
2
3
  /** Connector ID for the slack instance to send to */
3
4
  cid: string;
4
5
  /** Slack user IDs to which the notification is being sent */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationMessage.dto.js","sourceRoot":"","sources":["../../../../src/dto/messagingChannels/applicationMessage.dto.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
- export type EmailDto = {
1
+ import { Notifiable } from './notifiable.dto';
2
+ export type EmailDto = Notifiable & {
2
3
  /** Email address of the recipient */
3
4
  to: string;
4
5
  /** Email subject */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.dto.js","sourceRoot":"","sources":["../../../../src/dto/messagingChannels/email.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './applicationMessage.dto';
2
+ export * from './email.dto';
3
+ export * from './notifiable.dto';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./applicationMessage.dto"), exports);
18
+ __exportStar(require("./email.dto"), exports);
19
+ __exportStar(require("./notifiable.dto"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/messagingChannels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,8CAA4B;AAC5B,mDAAiC"}
@@ -0,0 +1 @@
1
+ export type Notifiable = {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notifiable.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifiable.dto.js","sourceRoot":"","sources":["../../../../src/dto/messagingChannels/notifiable.dto.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { AgentDto, AgentUpsertDto, AssetDto, ConnectorDto, ConnectorUpsertDto, NotificationDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, UserDto } from '../dto';
1
+ import { AgentDto, AgentUpsertDto, AssetDto, ConnectorDto, ConnectorUpsertDto, NotificationDto, NotificationUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, UserDto } from '../dto';
2
2
  import { AmpEntityService } from './entity.service';
3
3
  import { AmpDataService } from './data.service';
4
4
  import { AmpRestClientOptions, RestClient } from './rest';
@@ -29,7 +29,7 @@ export declare class AmpApi {
29
29
  readonly findings: FindingsService;
30
30
  readonly identity: AgentIdentityService;
31
31
  readonly install: ConnectorInstallService;
32
- readonly notifications: AmpDataService<NotificationDto>;
32
+ readonly notifications: AmpEntityService<NotificationUpsertDto, NotificationDto>;
33
33
  readonly providers: AmpDataService<ProviderDto>;
34
34
  readonly reportResults: AmpDataService<ReportResultDto>;
35
35
  readonly reports: AmpReportService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "45.8.2",
3
+ "version": "46.0.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
package/src/dto/index.ts CHANGED
@@ -4,7 +4,6 @@ export * from './assetKeys';
4
4
  export * from './base.dto';
5
5
  export * from './connectors.dto';
6
6
  export * from './constants';
7
- export * from './email.dto';
8
7
  export * from './enum.dto';
9
8
  export * from './enums';
10
9
  export * from './extKeyMap.dto';
@@ -20,8 +19,8 @@ export * from './riskContributors.dto';
20
19
  export * from './saasAssets.dto';
21
20
  export * from './saasComponents.dto';
22
21
  export * from './saasUsers.dto';
23
- export * from './applicationMessage.dto';
24
22
  export * from './ampSetting.dto';
25
23
  export * from './tenants.dto';
26
24
  export * from './users.dto';
27
25
  export * from './workflow.dto';
26
+ export * from './messagingChannels';
@@ -1,4 +1,6 @@
1
- export type ApplicationMessageDto = {
1
+ import {Notifiable} from './notifiable.dto';
2
+
3
+ export type ApplicationMessageDto = Notifiable & {
2
4
  /** Connector ID for the slack instance to send to */
3
5
  cid: string;
4
6
  /** Slack user IDs to which the notification is being sent */
@@ -1,4 +1,6 @@
1
- export type EmailDto = {
1
+ import {Notifiable} from './notifiable.dto';
2
+
3
+ export type EmailDto = Notifiable & {
2
4
  /** Email address of the recipient */
3
5
  to: string;
4
6
  /** Email subject */
@@ -0,0 +1,3 @@
1
+ export * from './applicationMessage.dto';
2
+ export * from './email.dto';
3
+ export * from './notifiable.dto';
@@ -0,0 +1 @@
1
+ export type Notifiable = {};
@@ -48,7 +48,7 @@ export class AmpApi {
48
48
  readonly findings: FindingsService;
49
49
  readonly identity: AgentIdentityService;
50
50
  readonly install: ConnectorInstallService;
51
- readonly notifications: AmpDataService<NotificationDto>;
51
+ readonly notifications: AmpEntityService<NotificationUpsertDto, NotificationDto>;
52
52
  readonly providers: AmpDataService<ProviderDto>;
53
53
  readonly reportResults: AmpDataService<ReportResultDto>;
54
54
  readonly reports: AmpReportService;
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicationMessage.dto.js","sourceRoot":"","sources":["../../../src/dto/applicationMessage.dto.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"email.dto.js","sourceRoot":"","sources":["../../../src/dto/email.dto.ts"],"names":[],"mappings":""}