sim-node-lib 0.0.18 → 0.0.19
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/google-pub-sub.d.ts +4 -4
- package/dist/google-pub-sub.js +12 -10
- package/package.json +1 -1
package/dist/google-pub-sub.d.ts
CHANGED
|
@@ -19,10 +19,10 @@ export declare class GooglePubSubPublish {
|
|
|
19
19
|
export declare abstract class PubSubHandelerAction {
|
|
20
20
|
constructor(pubsubModel: PubSubModel);
|
|
21
21
|
protected _pubsubValueModel: PubSubModel;
|
|
22
|
-
handlerAction(): boolean
|
|
23
|
-
protected insert(): boolean
|
|
24
|
-
protected update(): boolean
|
|
25
|
-
protected remove(): boolean
|
|
22
|
+
handlerAction(): Promise<boolean>;
|
|
23
|
+
protected insert(): Promise<boolean>;
|
|
24
|
+
protected update(): Promise<boolean>;
|
|
25
|
+
protected remove(): Promise<boolean>;
|
|
26
26
|
protected buildData(): Object;
|
|
27
27
|
}
|
|
28
28
|
export declare enum PubSubActionEnum {
|
package/dist/google-pub-sub.js
CHANGED
|
@@ -69,16 +69,18 @@ class PubSubHandelerAction {
|
|
|
69
69
|
this._pubsubValueModel = pubsubModel;
|
|
70
70
|
}
|
|
71
71
|
handlerAction() {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
switch (this._pubsubValueModel.action) {
|
|
74
|
+
case 'insert':
|
|
75
|
+
return yield this.insert();
|
|
76
|
+
case 'update':
|
|
77
|
+
return yield this.update();
|
|
78
|
+
case 'remove':
|
|
79
|
+
return yield this.remove();
|
|
80
|
+
default:
|
|
81
|
+
throw new Error('PubSub handler action not implemented.');
|
|
82
|
+
}
|
|
83
|
+
});
|
|
82
84
|
}
|
|
83
85
|
insert() {
|
|
84
86
|
throw new Error('Method insert PubSub handler action not implemented.');
|