@magda/minion-sdk 2.0.1 → 2.1.0-alpha.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.
package/dist/index.d.ts CHANGED
@@ -259,7 +259,11 @@ export declare interface MinionOptions {
259
259
  express?: () => express.Express;
260
260
  maxRetries?: number;
261
261
  concurrency?: number;
262
- crawlerRecordFetchNumber?: number;}
262
+ crawlerRecordFetchNumber?: number;
263
+ includeEvents?: boolean;
264
+ includeRecords?: boolean;
265
+ includeAspectDefinitions?: boolean;
266
+ dereference?: boolean;}
263
267
 
264
268
  declare interface Monad<T> {
265
269
  unit<U>(t: U): Monad<U>;
package/dist/index.js CHANGED
@@ -45895,10 +45895,18 @@ function buildWebhookConfig(options) {
45895
45895
  return {
45896
45896
  aspects: options.aspects,
45897
45897
  optionalAspects: options.optionalAspects,
45898
- includeEvents: false,
45899
- includeRecords: true,
45900
- includeAspectDefinitions: false,
45901
- dereference: true };
45898
+ includeEvents: typeof options.includeEvents === "boolean" ?
45899
+ options.includeEvents :
45900
+ false,
45901
+ includeRecords: typeof options.includeRecords === "boolean" ?
45902
+ options.includeRecords :
45903
+ true,
45904
+ includeAspectDefinitions: typeof options.includeAspectDefinitions === "boolean" ?
45905
+ options.includeAspectDefinitions :
45906
+ false,
45907
+ dereference: typeof options.dereference === "boolean" ?
45908
+ options.dereference :
45909
+ true };
45902
45910
 
45903
45911
  }
45904
45912
  exports.default = buildWebhookConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@magda/minion-sdk",
3
3
  "description": "MAGDA Minion SDK",
4
- "version": "2.0.1",
4
+ "version": "2.1.0-alpha.0",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf dist tsconfig.tsbuildinfo",
7
7
  "build": "webpack && api-extractor run -l",
@@ -12,8 +12,8 @@
12
12
  "main": "dist/index.js",
13
13
  "types": "dist/index.d.ts",
14
14
  "devDependencies": {
15
- "@magda/minion-framework": "^2.0.1",
16
- "@magda/typescript-common": "^2.0.1",
15
+ "@magda/minion-framework": "^2.1.0-alpha.0",
16
+ "@magda/typescript-common": "^2.1.0-alpha.0",
17
17
  "@microsoft/api-extractor": "~7.15.2",
18
18
  "ts-loader": "^6.2.1",
19
19
  "typescript": "~4.2.4",