@ampsec/platform-client 59.7.0 → 59.8.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.
@@ -2,3 +2,8 @@ import { SaasComponentDto, SaasComponentUpsertDto } from '../saasComponents.dto'
2
2
  import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
3
3
  export type PlatformSaasComponentUpsertDto = SaasComponentUpsertDto & UpsertTenantBased;
4
4
  export type PlatformSaasComponentDto = SaasComponentDto & TenantBased;
5
+ export type StagedSaasComponentUpsertDto = SaasComponentUpsertDto & {
6
+ displayValue?: string | null;
7
+ };
8
+ export type PlatformStagedSaasComponentUpsertDto = StagedSaasComponentUpsertDto & UpsertTenantBased;
9
+ export type PlatformStagedSaasComponentDto = StagedSaasComponentUpsertDto & TenantBased;
@@ -14,6 +14,16 @@ export type RawAssetIds = AssetKeys & {
14
14
  extId?: string;
15
15
  /** Hostnames */
16
16
  hostnames?: string[];
17
+ /** Serian Number */
18
+ serialNumber?: string;
19
+ /** Mac Addresses */
20
+ macAddresses?: string[];
21
+ /** Kind */
22
+ kind?: string;
23
+ /** Operating System */
24
+ operatingSystem?: string;
25
+ /** Model */
26
+ model?: string;
17
27
  };
18
28
  export type RawTrainingContext = {
19
29
  title?: string;
@@ -1,4 +1,4 @@
1
- import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformFindingDto, PlatformFindingUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasAssetDto, PlatformSaasAssetUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformSaasUserDto, PlatformSaasUserUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
1
+ import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformFindingDto, PlatformFindingUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
2
2
  import { AmpEntityService, AmpSdkAssetService, AmpSdkTenantService, AmpSdkUserService } from './entity.service';
3
3
  import { AmpRestClientOptions, RestClient } from './rest';
4
4
  import { PlatformJobSpecDto, PlatformJobSpecUpsertDto } from '../dto/platform/platform.jobSpec.dto';
@@ -38,9 +38,9 @@ export declare class AmpSdkServices {
38
38
  readonly saasAssets: AmpSdkSaasAssetService;
39
39
  readonly saasComponents: AmpSdkSaasComponentService;
40
40
  readonly saasUsers: AmpSdkSaasUserService;
41
- readonly stagedSaasAssets: AmpEntityService<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>;
41
+ readonly stagedSaasAssets: AmpEntityService<PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasAssetDto>;
42
42
  readonly stagedSaaSComponents: AmpEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
43
- readonly stagedSaaSUsers: AmpEntityService<PlatformSaasUserUpsertDto, PlatformSaasUserDto>;
43
+ readonly stagedSaaSUsers: AmpEntityService<PlatformStagedSaasUserUpsertDto, PlatformStagedSaasUserDto>;
44
44
  readonly settings: AmpSdkSettingsService;
45
45
  readonly tenants: AmpSdkTenantService<TenantUpsertDto, TenantDto>;
46
46
  readonly users: AmpSdkUserService;
@@ -1 +1 @@
1
- {"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AAwBA,qDAAoI;AACpI,iCAA0E;AAC1E,2CAAsD;AAGtD,oDAAmE;AACnE,y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oBAAoB,GAAG,IAAI,qCAAoB,CAA2D,IAAI,EAAE,gBAAI,CAAC,sBAAsB,EAAE,+BAAmB,CAAC,CAAC;QACvK,IAAI,CAAC,eAAe,GAAG,IAAI,qCAAoB,CAAiD,IAAI,EAAE,gBAAI,CAAC,iBAAiB,EAAE,+BAAmB,CAAC,CAAC;QAEnJ,IAAI,CAAC,QAAQ,GAAG,IAAI,wCAAqB,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,IAAI,qCAAoB,CAA6B,IAAI,EAAE,gBAAI,CAAC,OAAO,EAAE,+BAAmB,CAAC,CAAC;QAC7G,IAAI,CAAC,KAAK,GAAG,IAAI,kCAAiB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;IAChE,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AA1DD,wCA0DC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "59.7.0",
3
+ "version": "59.8.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -4,3 +4,10 @@ import {TenantBased, UpsertTenantBased} from './tenant.based.dto';
4
4
  export type PlatformSaasComponentUpsertDto = SaasComponentUpsertDto & UpsertTenantBased;
5
5
 
6
6
  export type PlatformSaasComponentDto = SaasComponentDto & TenantBased;
7
+
8
+ export type StagedSaasComponentUpsertDto = SaasComponentUpsertDto & {
9
+ displayValue?: string | null;
10
+ };
11
+
12
+ export type PlatformStagedSaasComponentUpsertDto = StagedSaasComponentUpsertDto & UpsertTenantBased;
13
+ export type PlatformStagedSaasComponentDto = StagedSaasComponentUpsertDto & TenantBased;
@@ -16,6 +16,16 @@ export type RawAssetIds = AssetKeys & {
16
16
  extId?: string;
17
17
  /** Hostnames */
18
18
  hostnames?: string[];
19
+ /** Serian Number */
20
+ serialNumber?: string;
21
+ /** Mac Addresses */
22
+ macAddresses?: string[];
23
+ /** Kind */
24
+ kind?: string;
25
+ /** Operating System */
26
+ operatingSystem?: string;
27
+ /** Model */
28
+ model?: string;
19
29
  };
20
30
 
21
31
  export type RawTrainingContext = {
@@ -18,6 +18,10 @@ import {
18
18
  PlatformSaasComponentUpsertDto,
19
19
  PlatformSaasUserDto,
20
20
  PlatformSaasUserUpsertDto,
21
+ PlatformStagedSaasAssetDto,
22
+ PlatformStagedSaasAssetUpsertDto,
23
+ PlatformStagedSaasUserDto,
24
+ PlatformStagedSaasUserUpsertDto,
21
25
  ProviderDto,
22
26
  TenantDto,
23
27
  TenantUpsertDto,
@@ -64,9 +68,9 @@ export class AmpSdkServices {
64
68
  readonly saasAssets: AmpSdkSaasAssetService;
65
69
  readonly saasComponents: AmpSdkSaasComponentService;
66
70
  readonly saasUsers: AmpSdkSaasUserService;
67
- readonly stagedSaasAssets: AmpEntityService<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>;
71
+ readonly stagedSaasAssets: AmpEntityService<PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasAssetDto>;
68
72
  readonly stagedSaaSComponents: AmpEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
69
- readonly stagedSaaSUsers: AmpEntityService<PlatformSaasUserUpsertDto, PlatformSaasUserDto>;
73
+ readonly stagedSaaSUsers: AmpEntityService<PlatformStagedSaasUserUpsertDto, PlatformStagedSaasUserDto>;
70
74
  readonly settings: AmpSdkSettingsService;
71
75
  readonly tenants: AmpSdkTenantService<TenantUpsertDto, TenantDto>;
72
76
  readonly users: AmpSdkUserService;