@ampsec/platform-client 33.0.0 → 33.0.1

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/README.md CHANGED
@@ -19,6 +19,11 @@ Collection of data models, utilities, and clients used by and with our Platform
19
19
  - [AmpSettingsService - src/services/settings.service.ts](https://amplifier-security.gitlab.io/ampsec-platform/amp-platform-client/classes/AmpSettingsService.html)
20
20
  - [AmpSettingsMap - src/services/settings.service.ts](https://amplifier-security.gitlab.io/ampsec-platform/amp-platform-client/classes/AmpSettingsMap.html)
21
21
 
22
+ ### Data
23
+
24
+ - [Modules](https://amplifier-security.gitlab.io/ampsec-platform/amp-platform-client/modules.html)
25
+ - Enumerations
26
+
22
27
  ## Getting Started
23
28
 
24
29
  ```ts
@@ -1,3 +1,4 @@
1
+ import { AssetKeys } from './assetKeys';
1
2
  import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
2
3
  import { Category, FindingSeverity, SaasComponentKind } from './enums';
3
4
  export type RawUserIds = {
@@ -7,16 +8,12 @@ export type RawUserIds = {
7
8
  primaryEmail?: string;
8
9
  emails?: string[];
9
10
  };
10
- export type RawAssetIds = {
11
+ export type RawAssetIds = AssetKeys & {
11
12
  aid?: string;
12
13
  /** Provider id used against the API */
13
14
  extId?: string;
14
- /** Serial Number */
15
- sn?: string;
16
15
  /** Hostnames */
17
16
  hostnames?: string[];
18
- /** MAC Addresses */
19
- macs?: string[];
20
17
  };
21
18
  export type RawTrainingContext = {
22
19
  title?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "33.0.0",
3
+ "version": "33.0.1",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -1,3 +1,4 @@
1
+ import {AssetKeys} from './assetKeys';
1
2
  import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
2
3
  import {Category, FindingSeverity, SaasComponentKind} from './enums';
3
4
 
@@ -9,16 +10,12 @@ export type RawUserIds = {
9
10
  emails?: string[];
10
11
  };
11
12
 
12
- export type RawAssetIds = {
13
+ export type RawAssetIds = AssetKeys & {
13
14
  aid?: string;
14
15
  /** Provider id used against the API */
15
16
  extId?: string;
16
- /** Serial Number */
17
- sn?: string;
18
17
  /** Hostnames */
19
18
  hostnames?: string[];
20
- /** MAC Addresses */
21
- macs?: string[];
22
19
  };
23
20
 
24
21
  export type RawTrainingContext = {