@ampsec/platform-client 2.0.0 → 2.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.
@@ -6,6 +6,6 @@ export type ConnectorUpsertDto = BaseUpsertDto & {
6
6
  /** Status of the connector, e.g. ACTIVE */
7
7
  status: ConnectorStatus;
8
8
  /** Provider Id */
9
- pid?: number | undefined;
9
+ pid?: number | null;
10
10
  };
11
11
  export type ConnectorDto = BaseDto & ConnectorUpsertDto;
@@ -3,9 +3,11 @@ export * from './platform.assets.dto';
3
3
  export * from './platform.connectors.dto';
4
4
  export * from './platform.findings.dto';
5
5
  export * from './platform.metrics.dto';
6
+ export * from './platform.providers.dto';
6
7
  export * from './platform.reportResults.dto';
7
8
  export * from './platform.saasAssets.dto';
8
9
  export * from './platform.saasComponents.dto';
9
10
  export * from './platform.saasUsers.dto';
11
+ export * from './platform.tenants.dto';
10
12
  export * from './platform.users.dto';
11
13
  export * from './tenant.based.dto';
@@ -19,10 +19,12 @@ __exportStar(require("./platform.assets.dto"), exports);
19
19
  __exportStar(require("./platform.connectors.dto"), exports);
20
20
  __exportStar(require("./platform.findings.dto"), exports);
21
21
  __exportStar(require("./platform.metrics.dto"), exports);
22
+ __exportStar(require("./platform.providers.dto"), exports);
22
23
  __exportStar(require("./platform.reportResults.dto"), exports);
23
24
  __exportStar(require("./platform.saasAssets.dto"), exports);
24
25
  __exportStar(require("./platform.saasComponents.dto"), exports);
25
26
  __exportStar(require("./platform.saasUsers.dto"), exports);
27
+ __exportStar(require("./platform.tenants.dto"), exports);
26
28
  __exportStar(require("./platform.users.dto"), exports);
27
29
  __exportStar(require("./tenant.based.dto"), exports);
28
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,0DAAwC;AACxC,yDAAuC;AACvC,+DAA6C;AAC7C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,0DAAwC;AACxC,yDAAuC;AACvC,2DAAyC;AACzC,+DAA6C;AAC7C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC"}
@@ -1,4 +1,9 @@
1
- export type MultiTenantBased = {
1
+ import { BaseDto, BaseUpsertDto } from '../base.dto';
2
+ export type UpsertMultiTenantBased = BaseUpsertDto & {
3
+ /** Tenant Ids for multi-tenant entities */
4
+ tids?: number[];
5
+ };
6
+ export type MultiTenantBased = BaseDto & {
2
7
  /** Tenant Ids for multi-tenant entities */
3
8
  tids: number[];
4
9
  };
@@ -1,3 +1,4 @@
1
- import { AgentDto } from '../agents.dto';
2
- import { MultiTenantBased } from './multi.tenant.based.dto';
3
- export type PlatformAgentDto = AgentDto & MultiTenantBased;
1
+ import { AgentUpsertDto } from '../agents.dto';
2
+ import { MultiTenantBased, UpsertMultiTenantBased } from './multi.tenant.based.dto';
3
+ export type PlatformAgentUpsertDto = AgentUpsertDto & UpsertMultiTenantBased;
4
+ export type PlatformAgentDto = MultiTenantBased & PlatformAgentUpsertDto;
@@ -1,3 +1,4 @@
1
- import { AssetDto } from '../assets.dto';
2
- import { TenantBased } from './tenant.based.dto';
3
- export type PlatformAssetDto = AssetDto & TenantBased;
1
+ import { AssetUpsertDto } from '../assets.dto';
2
+ import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
+ export type PlatformAssetUpsertDto = AssetUpsertDto & UpsertTenantBased;
4
+ export type PlatformAssetDto = TenantBased & PlatformAssetUpsertDto;
@@ -1,3 +1,4 @@
1
- import { ConnectorDto } from '../connectors.dto';
2
- import { TenantBased } from './tenant.based.dto';
3
- export type PlatformConnectorDto = ConnectorDto & TenantBased;
1
+ import { ConnectorUpsertDto } from '../connectors.dto';
2
+ import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
+ export type PlatformConnectorUpsertDto = ConnectorUpsertDto & UpsertTenantBased;
4
+ export type PlatformConnectorDto = TenantBased & PlatformConnectorUpsertDto;
@@ -1,3 +1,4 @@
1
- import { FindingDto } from '../findings.dto';
2
- import { TenantBased } from './tenant.based.dto';
3
- export type PlatformFindingDto = FindingDto & TenantBased;
1
+ import { FindingUpsertDto } from '../findings.dto';
2
+ import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
+ export type PlatformFindingUpsertDto = FindingUpsertDto & UpsertTenantBased;
4
+ export type PlatformFindingDto = TenantBased & PlatformFindingUpsertDto;
@@ -1,3 +1,4 @@
1
- import { MetricDto } from '../metrics.dto';
2
- import { TenantBased } from './tenant.based.dto';
3
- export type PlatformMetricDto = MetricDto & TenantBased;
1
+ import { MetricUpsertDto } from '../metrics.dto';
2
+ import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
+ export type PlatformMetricUpsertDto = MetricUpsertDto & UpsertTenantBased;
4
+ export type PlatformMetricDto = TenantBased & PlatformMetricUpsertDto;
@@ -0,0 +1,3 @@
1
+ import { ProviderDto, ProviderUpsertDto } from '../providers.dto';
2
+ export type PlatformProviderUpsertDto = ProviderUpsertDto;
3
+ export type PlatformProviderDto = ProviderDto;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=platform.providers.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.providers.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.providers.dto.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
- import { ReportResultDto } from '../reportResults.dto';
2
- import { TenantBased } from './tenant.based.dto';
3
- export type PlatformReportResultDto = ReportResultDto & TenantBased;
1
+ import { ReportResultUpsertDto } from '../reportResults.dto';
2
+ import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
+ export type PlatformReportResultUpsertDto = ReportResultUpsertDto & UpsertTenantBased;
4
+ export type PlatformReportResultDto = TenantBased & PlatformReportResultUpsertDto;
@@ -1,3 +1,4 @@
1
- import { SaasAssetDto } from '../saasAssets.dto';
2
- import { TenantBased } from './tenant.based.dto';
3
- export type PlatformSaasAssetDto = SaasAssetDto & TenantBased;
1
+ import { SaasAssetUpsertDto } from '../saasAssets.dto';
2
+ import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
+ export type PlatformSaasAssetUpsertDto = SaasAssetUpsertDto & UpsertTenantBased;
4
+ export type PlatformSaasAssetDto = TenantBased & PlatformSaasAssetUpsertDto;
@@ -1,3 +1,4 @@
1
- import { SaasComponentDto } from '../saasComponents.dto';
2
- import { TenantBased } from './tenant.based.dto';
3
- export type PlatformSaasComponentDto = SaasComponentDto & TenantBased;
1
+ import { SaasComponentUpsertDto } from '../saasComponents.dto';
2
+ import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
+ export type PlatformSaasComponentUpsertDto = SaasComponentUpsertDto & UpsertTenantBased;
4
+ export type PlatformSaasComponentDto = TenantBased & PlatformSaasComponentUpsertDto;
@@ -1,3 +1,4 @@
1
- import { SaasUserDto } from '../saasUsers.dto';
2
- import { TenantBased } from './tenant.based.dto';
3
- export type PlatformSaasUserDto = SaasUserDto & TenantBased;
1
+ import { SaasUserUpsertDto } from '../saasUsers.dto';
2
+ import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
+ export type PlatformSaasUserUpsertDto = SaasUserUpsertDto & UpsertTenantBased;
4
+ export type PlatformSaasUserDto = TenantBased & PlatformSaasUserUpsertDto;
@@ -0,0 +1,3 @@
1
+ import { TenantDto, TenantUpsertDto } from '../tenants.dto';
2
+ export type PlatformTenantUpsertDto = TenantUpsertDto;
3
+ export type PlatformTenantDto = TenantDto;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=platform.tenants.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.tenants.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.tenants.dto.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
- import { UserDto } from '../users.dto';
2
- import { TenantBased } from './tenant.based.dto';
3
- export type PlatformUserDto = UserDto & TenantBased;
1
+ import { UserUpsertDto } from '../users.dto';
2
+ import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
+ export type PlatformUserUpsertDto = UserUpsertDto & UpsertTenantBased;
4
+ export type PlatformUserDto = TenantBased & PlatformUserUpsertDto;
@@ -1,4 +1,9 @@
1
- export type TenantBased = {
1
+ import { BaseDto, BaseUpsertDto } from '../base.dto';
2
+ export type UpsertTenantBased = BaseUpsertDto & {
3
+ /** Tenant Id */
4
+ tid?: number;
5
+ };
6
+ export type TenantBased = BaseDto & {
2
7
  /** Tenant Id */
3
8
  tid: number;
4
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "scripts": {