@magda/minion-sdk 2.0.1 → 2.1.0-alpha.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/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;
@@ -86692,7 +86700,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
86692
86700
  function resumeWebhook(options, registry) {
86693
86701
  return __awaiter(this, void 0, void 0, function* () {
86694
86702
  console.info(`Attempting to resume webhook ${options.id}`);
86695
- const resumeResult = yield registry.resumeHook(options.id);
86703
+ const resumeResult = yield registry.resumeHook(options.id, false, null, true);
86696
86704
  if (resumeResult instanceof Error) {
86697
86705
  throw resumeResult;
86698
86706
  }
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.1",
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.1",
16
+ "@magda/typescript-common": "^2.1.0-alpha.1",
17
17
  "@microsoft/api-extractor": "~7.15.2",
18
18
  "ts-loader": "^6.2.1",
19
19
  "typescript": "~4.2.4",