@devrev/ts-adaas 1.1.0 → 1.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.
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Release Notes
4
4
 
5
+ #### v1.1.1
6
+
7
+ - Added default workers for loading deletion events.
8
+
5
9
  #### v1.1.0
6
10
 
7
11
  - Support for sync from DevRev to external system. Known limitations: no support for loading attachments.
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const index_1 = require("../../index");
4
+ (0, index_1.processTask)({
5
+ task: async ({ adapter }) => {
6
+ await adapter.emit(index_1.LoaderEventType.LoaderStateDeletionDone);
7
+ },
8
+ onTimeout: async ({ adapter }) => {
9
+ await adapter.emit(index_1.LoaderEventType.LoaderStateDeletionError, {
10
+ error: {
11
+ message: 'Failed to delete data. Lambda timeout.',
12
+ },
13
+ });
14
+ },
15
+ });
@@ -43,6 +43,9 @@ function getWorkerPath({ event, connectorWorkerPath, }) {
43
43
  case extraction_1.EventType.ContinueLoadingData:
44
44
  path = __dirname + '/default-workers/data-loading';
45
45
  break;
46
+ case extraction_1.EventType.StartDeletingLoaderState:
47
+ path = __dirname + '/default-workers/loader-state-deletion';
48
+ break;
46
49
  default:
47
50
  (0, control_protocol_1.emit)({
48
51
  event,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/ts-adaas",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Typescript library containing the ADaaS(AirDrop as a Service) control protocol.",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",