@ampsec/platform-client 2.1.0 → 3.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.
@@ -0,0 +1,6 @@
1
+ export type ExtKeyMap = {
2
+ [propName: string]: {
3
+ id: number;
4
+ etag: string;
5
+ };
6
+ };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=EntityIdLookupMap.js.map
3
+ //# sourceMappingURL=extKeyMap.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extKeyMap.dto.js","sourceRoot":"","sources":["../../../src/dto/extKeyMap.dto.ts"],"names":[],"mappings":""}
@@ -3,7 +3,9 @@ export * from './assets.dto';
3
3
  export * from './base.dto';
4
4
  export * from './connectors.dto';
5
5
  export * from './enums';
6
+ export * from './extKeyMap.dto';
6
7
  export * from './findings.dto';
8
+ export * from './message.dto';
7
9
  export * from './metrics.dto';
8
10
  export * from './page.dto';
9
11
  export * from './platform';
@@ -19,7 +19,9 @@ __exportStar(require("./assets.dto"), exports);
19
19
  __exportStar(require("./base.dto"), exports);
20
20
  __exportStar(require("./connectors.dto"), exports);
21
21
  __exportStar(require("./enums"), exports);
22
+ __exportStar(require("./extKeyMap.dto"), exports);
22
23
  __exportStar(require("./findings.dto"), exports);
24
+ __exportStar(require("./message.dto"), exports);
23
25
  __exportStar(require("./metrics.dto"), exports);
24
26
  __exportStar(require("./page.dto"), exports);
25
27
  __exportStar(require("./platform"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,gDAA8B;AAC9B,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,gDAA8B;AAC9B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B;AAC9B,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,gDAA8B;AAC9B,8CAA4B"}
@@ -0,0 +1,3 @@
1
+ export type Message = {
2
+ message: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=message.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.dto.js","sourceRoot":"","sources":["../../../src/dto/message.dto.ts"],"names":[],"mappings":""}
@@ -3,6 +3,8 @@ export type Page<T> = {
3
3
  data: T[];
4
4
  error: string | null;
5
5
  hints: {
6
- [propName: string]: number | string | boolean | null | undefined;
6
+ [propName: string]: number | string | boolean | null | {
7
+ [keyName: string]: string;
8
+ } | undefined;
7
9
  };
8
10
  };
@@ -1,3 +1,2 @@
1
1
  export * from './dto';
2
2
  export * from './etag';
3
- export * from './EntityIdLookupMap';
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto"), exports);
18
18
  __exportStar(require("./etag"), exports);
19
- __exportStar(require("./EntityIdLookupMap"), exports);
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,yCAAuB;AACvB,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,yCAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "scripts": {
@@ -1,11 +0,0 @@
1
- export type EntityIds = {
2
- id: number;
3
- etag: string;
4
- };
5
- /**
6
- * A lookup table used during ingestion pipeline to efficiently
7
- * drop unmodified data and duplicate events.
8
- */
9
- export type EntityIdLookupMap = {
10
- [extId: string]: EntityIds;
11
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"EntityIdLookupMap.js","sourceRoot":"","sources":["../../src/EntityIdLookupMap.ts"],"names":[],"mappings":""}