File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change
1
+ import { processTask , LoaderEventType } from '../../index' ;
2
+
3
+ processTask ( {
4
+ task : async ( { adapter } ) => {
5
+ await adapter . emit ( LoaderEventType . LoaderStateDeletionDone ) ;
6
+ } ,
7
+ onTimeout : async ( { adapter } ) => {
8
+ await adapter . emit ( LoaderEventType . LoaderStateDeletionError , {
9
+ error : {
10
+ message : 'Failed to delete data. Lambda timeout.' ,
11
+ } ,
12
+ } ) ;
13
+ } ,
14
+ } ) ;
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ function getWorkerPath({
58
58
case EventType . ContinueLoadingData :
59
59
path = __dirname + '/default-workers/data-loading' ;
60
60
break ;
61
+ case EventType . StartDeletingLoaderState :
62
+ path = __dirname + '/default-workers/loader-state-deletion' ;
63
+ break ;
61
64
62
65
default :
63
66
emit ( {
You can’t perform that action at this time.
0 commit comments