@jupiterone/integration-sdk-core 7.4.0 → 8.1.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.
@@ -1,29 +1,5 @@
1
- import { Entity, RawDataTracking } from '../types';
1
+ import { Entity } from '../types';
2
2
  import { ResourceTagList, ResourceTagMap } from './tagging';
3
- /**
4
- * Properties required to build a valid `Entity`.
5
- *
6
- * These properties are more strict (than their counterpart definitions on
7
- * `Entity`) to prevent literal assignments of `undefined`
8
- * values.
9
- */
10
- declare type RequiredEntityProperties = {
11
- _class: string | string[];
12
- _type: string;
13
- };
14
- /**
15
- * Allows assignment of any additional properties without being forced to use
16
- * specific types where that isn't helpful.
17
- *
18
- * During development, schema validation prevents failures to provide properties
19
- * required by the entity `_class`. Combined with automatic transfer of many
20
- * properties from the `ProviderSourceData`, there may be no strong case to be
21
- * made for referencing specific TypeScript types. In those cases, it should be
22
- * possible to provide additional literal entity properties.
23
- */
24
- declare type AdditionalEntityProperties = {
25
- [key: string]: any;
26
- };
27
3
  /**
28
4
  * Properties to be assigned to a generated entity which are declared in code
29
5
  * literals.
@@ -34,7 +10,7 @@ declare type AdditionalEntityProperties = {
34
10
  * certainly includes those of `Entity`, and some properties
35
11
  * *must* be provided.
36
12
  */
37
- declare type LiteralAssignments = Partial<Entity> & RequiredEntityProperties & AdditionalEntityProperties;
13
+ declare type LiteralAssignments = Entity;
38
14
  /**
39
15
  * A type representing entity data from a provider.
40
16
  */
@@ -78,10 +54,8 @@ export declare type IntegrationEntityData = {
78
54
  * A generated `Entity` that includes additional properties
79
55
  * specific to the entity class and some properties are guaranteed.
80
56
  */
81
- declare type GeneratedEntity = Omit<Entity, '_class'> & AdditionalEntityProperties & RawDataTracking & {
57
+ declare type GeneratedEntity = Entity & {
82
58
  _class: string[];
83
- _key: string;
84
- _type: string;
85
59
  };
86
60
  export declare type IntegrationEntityBuilderInput = {
87
61
  /**
@@ -30,12 +30,10 @@ function generateEntity({ source, assign, tagProperties, }) {
30
30
  if (assign._rawData) {
31
31
  _rawData.push(...assign._rawData);
32
32
  }
33
- const _key = assign._key || generateEntityKey(source);
34
33
  const _class = Array.isArray(assign._class) ? assign._class : [assign._class];
35
34
  const entity = {
36
35
  ...whitelistedProviderData(source, _class),
37
36
  ...assign,
38
- _key,
39
37
  _class,
40
38
  _rawData,
41
39
  };
@@ -75,24 +73,6 @@ function generateEntity({ source, assign, tagProperties, }) {
75
73
  }
76
74
  return entity;
77
75
  }
78
- /**
79
- * Generates an entity `_key` value from the source data when possible or throws
80
- * an error. It is expected that this won't be called when a `_key` is
81
- * explicitly assigned.
82
- *
83
- * @param data any source data object
84
- * @throws IntegrationError when there is no suitable value
85
- */
86
- function generateEntityKey(data) {
87
- const id = data.providerId || data.id;
88
- if (typeof id !== 'string') {
89
- throw new errors_1.IntegrationError({
90
- code: 'INVALID_INPUT_TO_GENERATE_ENTITY_KEY',
91
- message: `Entity key generation requires one of data.{providerId,id} as type string, received ${JSON.stringify(id)}`,
92
- });
93
- }
94
- return id;
95
- }
96
76
  /**
97
77
  * Answers a form of the provider data with only the properties supported by the
98
78
  * data model schema.
@@ -1 +1 @@
1
- {"version":3,"file":"createIntegrationEntity.js","sourceRoot":"","sources":["../../../src/data/createIntegrationEntity.ts"],"names":[],"mappings":";;;AAAA,uDAIgC;AAEhC,sCAA6C;AAE7C,6CAAsD;AACtD,uCAA4C;AAC5C,uCAAwE;AAExE,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AAqGxD;;;;;GAKG;AACH,SAAgB,uBAAuB,CACrC,KAAoC;IAEpC,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAEzD,yBAAe,CAAC,eAAe,CAAC,CAAC;IAEjC,IAAI,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE;QACrD,qCAAwB,CAAC,eAAe,CAAC,CAAC;KAC3C;IAED,OAAO,eAAe,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,EAAE,qBAAqB;oBAC3B,OAAO,EAAE,UAAU,CAAC,oDAAoD;iBACzE,CAAC,CAAC;aACJ;YACD,KAAK,MAAM,IAAI,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;gBAC9C,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACvB;SACF;QACD,wBAAgB,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;KAChD;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AApBD,wEAoBC;AAED,SAAS,mBAAmB,CAAC,MAA+B;IAC1D,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,MAAM,CAAC,UAAU,EAAE;QACrB,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;KAC/C;IACD,IAAI,MAAM,CAAC,KAAK,EAAE;QAChB,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE;YAC5B,KAAK,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;SACvC;KACF;IACD,IAAI,MAAM,CAAC,IAAI,EAAE;QACf,MAAM,SAAS,GAAG,sBAAS,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,IAAI,SAAS,EAAE;YACb,KAAK,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;SAC/C;aAAM;YACL,MAAM,IAAI,yBAAgB,CAAC;gBACzB,IAAI,EAAE,2BAA2B;gBACjC,OAAO,EAAE,gBAAgB,MAAM,CAAC,IAAI,uBAAuB;aAC5D,CAAC,CAAC;SACJ;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"createIntegrationEntity.js","sourceRoot":"","sources":["../../../src/data/createIntegrationEntity.ts"],"names":[],"mappings":";;;AAAA,uDAIgC;A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AAU,CAAC,oDAAoD;iBACzE,CAAC,CAAC;aACJ;YACD,KAAK,MAAM,IAAI,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;gBAC9C,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACvB;SACF;QACD,wBAAgB,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;KAChD;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AApBD,wEAoBC;AAED,SAAS,mBAAmB,CAAC,MAA+B;IAC1D,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,MAAM,CAAC,UAAU,EAAE;QACrB,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;KAC/C;IACD,IAAI,MAAM,CAAC,KAAK,EAAE;QAChB,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE;YAC5B,KAAK,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;SACvC;KACF;IACD,IAAI,MAAM,CAAC,IAAI,EAAE;QACf,MAAM,SAAS,GAAG,sBAAS,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,IAAI,SAAS,EAAE;YACb,KAAK,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;SAC/C;aAAM;YACL,MAAM,IAAI,yBAAgB,CAAC;gBACzB,IAAI,EAAE,2BAA2B;gBACjC,OAAO,EAAE,gBAAgB,MAAM,CAAC,IAAI,uBAAuB;aAC5D,CAAC,CAAC;SACJ;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -71,14 +71,14 @@ export interface JobState {
71
71
  * the same `_key` value. Note however, there are mechanisms in place to
72
72
  * prevent storing duplicates.
73
73
  */
74
- findEntity: (_key: string) => Promise<Entity | null>;
74
+ findEntity: (_key: string | undefined) => Promise<Entity | null>;
75
75
  /**
76
76
  * Answers `true` when an entity OR relationship having `_key` has been added.
77
77
  *
78
78
  * @see findEntity when the entity, if present, is needed (there is no need to
79
79
  * use `hasKey` before `findEntity`).
80
80
  */
81
- hasKey: (_key: string) => boolean | Promise<boolean>;
81
+ hasKey: (_key: string | undefined) => boolean | Promise<boolean>;
82
82
  /**
83
83
  * Allows a step to iterate all entities collected into the job state, limited
84
84
  * to those that match the provided `filter`.
@@ -297,8 +297,8 @@
297
297
  "affectsGlobalScope": false
298
298
  },
299
299
  "../../../node_modules/@jupiterone/data-model/dist/RelationshipClass.d.ts": {
300
- "version": "d40cc0c19efd8eed7ab13fce42b87891a21181466526d8b012064d2fa8936d02",
301
- "signature": "d40cc0c19efd8eed7ab13fce42b87891a21181466526d8b012064d2fa8936d02",
300
+ "version": "44c6751f74dda336e79b3e1689688ea6acb0725fff87a0884ff6aa49f8d1e7b7",
301
+ "signature": "44c6751f74dda336e79b3e1689688ea6acb0725fff87a0884ff6aa49f8d1e7b7",
302
302
  "affectsGlobalScope": false
303
303
  },
304
304
  "../../../node_modules/@jupiterone/data-model/dist/relationships.d.ts": {
@@ -532,8 +532,8 @@
532
532
  "affectsGlobalScope": false
533
533
  },
534
534
  "../../../node_modules/@jupiterone/data-model/dist/IntegrationSchema.d.ts": {
535
- "version": "233ec8bc7a4c269bf07231cf7b5c85f9f7b8eb94bc89a9f68b2279e3fc9e9e5c",
536
- "signature": "233ec8bc7a4c269bf07231cf7b5c85f9f7b8eb94bc89a9f68b2279e3fc9e9e5c",
535
+ "version": "6c572cb0cc80ec71ec002e39b7917cd9410dc6bd3a1e0b834dd20b73d6db9112",
536
+ "signature": "6c572cb0cc80ec71ec002e39b7917cd9410dc6bd3a1e0b834dd20b73d6db9112",
537
537
  "affectsGlobalScope": false
538
538
  },
539
539
  "../../../node_modules/@jupiterone/data-model/dist/validateEntityWithSchema.d.ts": {
@@ -547,13 +547,13 @@
547
547
  "affectsGlobalScope": false
548
548
  },
549
549
  "../../../node_modules/@jupiterone/data-model/dist/index.d.ts": {
550
- "version": "8cdc912ecc5d48502aea6d6cddcb7c90faa1b4ddbc0c8e4c56d808583acc1cdc",
551
- "signature": "8cdc912ecc5d48502aea6d6cddcb7c90faa1b4ddbc0c8e4c56d808583acc1cdc",
550
+ "version": "c9bbf1d56427cf8ecb8276caaa60a38cf961d6dbeb445c5a15c3f367e73d3720",
551
+ "signature": "c9bbf1d56427cf8ecb8276caaa60a38cf961d6dbeb445c5a15c3f367e73d3720",
552
552
  "affectsGlobalScope": false
553
553
  },
554
554
  "../src/types/jobState.ts": {
555
- "version": "4232fa36cd3209b191fca1440bab35a2de8a9fe31852b7848046ee5020255c02",
556
- "signature": "d0954eaf4c429dcf1a2317569ae846fba67f1a3dd1d85adc6e59d2b178b862e1",
555
+ "version": "313c9c90fe87ad3ff6acc2880832c591648f8a85687fe36b8ff3c36f0ed575b6",
556
+ "signature": "15ef8198d2d6b81a46e37c11872d3487eaa8b083395b320cf4b1b6f373c3e778",
557
557
  "affectsGlobalScope": false
558
558
  },
559
559
  "../src/types/synchronization.ts": {
@@ -632,8 +632,8 @@
632
632
  "affectsGlobalScope": false
633
633
  },
634
634
  "../src/data/createIntegrationEntity.ts": {
635
- "version": "3388e7d47377f2c8774741dfcea08d800775b33f19ec9ef874fcf7c3afe96187",
636
- "signature": "2674bd498525d6fe9588c923041bbf0042e6b7512682804a906d15a423883fc3",
635
+ "version": "e49fc168d421ec4663ce5a8960236fe28c1c1e8d04a2638de532da8efa34afad",
636
+ "signature": "e509f891f8d6872b0a78387b5439370f69d510e4dbc3ebdecd2f17be3493cd68",
637
637
  "affectsGlobalScope": false
638
638
  },
639
639
  "../src/data/createIntegrationRelationship.ts": {
@@ -1091,6 +1091,11 @@
1091
1091
  "signature": "41422586881bcd739b4e62d9b91cd29909f8572aa3e3cdf316b7c50f14708d49",
1092
1092
  "affectsGlobalScope": false
1093
1093
  },
1094
+ "../../../node_modules/@types/traverse/index.d.ts": {
1095
+ "version": "97cad055446113b65658aa07fac62e03dee7645dafec7f8e1e627500d5d8ee6d",
1096
+ "signature": "97cad055446113b65658aa07fac62e03dee7645dafec7f8e1e627500d5d8ee6d",
1097
+ "affectsGlobalScope": false
1098
+ },
1094
1099
  "../../../node_modules/@types/uuid/interfaces.d.ts": {
1095
1100
  "version": "5cc5d6f26a50072d51c4ea3a85ee65574b7fa2ae48261ae27b07014695638c50",
1096
1101
  "signature": "5cc5d6f26a50072d51c4ea3a85ee65574b7fa2ae48261ae27b07014695638c50",
@@ -2288,6 +2293,13 @@
2288
2293
  "../../../node_modules/@types/node/ts3.2/util.d.ts",
2289
2294
  "../../../node_modules/@types/node/util.d.ts"
2290
2295
  ],
2296
+ "../../../node_modules/@types/traverse/index.d.ts": [
2297
+ "../../../node_modules/@types/graceful-fs/index.d.ts",
2298
+ "../../../node_modules/@types/node/fs.d.ts",
2299
+ "../../../node_modules/@types/node/ts3.2/fs.d.ts",
2300
+ "../../../node_modules/@types/node/ts3.2/util.d.ts",
2301
+ "../../../node_modules/@types/node/util.d.ts"
2302
+ ],
2291
2303
  "../../../node_modules/@types/uuid/index.d.ts": [
2292
2304
  "../../../node_modules/@types/graceful-fs/index.d.ts",
2293
2305
  "../../../node_modules/@types/node/fs.d.ts",
@@ -4357,6 +4369,13 @@
4357
4369
  "../../../node_modules/@types/node/ts3.2/util.d.ts",
4358
4370
  "../../../node_modules/@types/node/util.d.ts"
4359
4371
  ],
4372
+ "../../../node_modules/@types/traverse/index.d.ts": [
4373
+ "../../../node_modules/@types/graceful-fs/index.d.ts",
4374
+ "../../../node_modules/@types/node/fs.d.ts",
4375
+ "../../../node_modules/@types/node/ts3.2/fs.d.ts",
4376
+ "../../../node_modules/@types/node/ts3.2/util.d.ts",
4377
+ "../../../node_modules/@types/node/util.d.ts"
4378
+ ],
4360
4379
  "../../../node_modules/@types/uuid/index.d.ts": [
4361
4380
  "../../../node_modules/@types/graceful-fs/index.d.ts",
4362
4381
  "../../../node_modules/@types/node/fs.d.ts",
@@ -5243,6 +5262,7 @@
5243
5262
  "../../../node_modules/@types/pollyjs__persister/index.d.ts",
5244
5263
  "../../../node_modules/@types/prettier/index.d.ts",
5245
5264
  "../../../node_modules/@types/stack-utils/index.d.ts",
5265
+ "../../../node_modules/@types/traverse/index.d.ts",
5246
5266
  "../../../node_modules/@types/uuid/index.d.ts",
5247
5267
  "../../../node_modules/@types/uuid/interfaces.d.ts",
5248
5268
  "../../../node_modules/@types/vis/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupiterone/integration-sdk-core",
3
- "version": "7.4.0",
3
+ "version": "8.1.1",
4
4
  "description": "The SDK for developing JupiterOne integrations",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -23,12 +23,12 @@
23
23
  "prepack": "yarn build:dist"
24
24
  },
25
25
  "dependencies": {
26
- "@jupiterone/data-model": "^0.40.0",
26
+ "@jupiterone/data-model": "^0.42.0",
27
27
  "lodash": "^4.17.21",
28
28
  "uuid": "^8.3.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/lodash": "^4.14.168"
32
32
  },
33
- "gitHead": "3b0f837555b8b9a03885143591d655ffff3a5cca"
33
+ "gitHead": "a0b05062979e1d7bd6318cebe34332be376c0b85"
34
34
  }