sim-node-lib 0.0.12 → 0.0.13

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.
@@ -4,7 +4,7 @@ export declare class PubSubModel {
4
4
  readonly value: object;
5
5
  readonly action: string;
6
6
  readonly table: string;
7
- constructor(value: object, action: PubSubActionEnum, table: string);
7
+ constructor(value: object, action: PubSubActionEnum, table: PubSubTableEnum);
8
8
  }
9
9
  export declare class GooglePubSubSubscription {
10
10
  constructor(subscriptionName: string);
@@ -14,7 +14,7 @@ export declare class GooglePubSubSubscription {
14
14
  export declare class GooglePubSubPublish {
15
15
  constructor(topicName: string);
16
16
  private _topicName;
17
- createMessages(message: object, action: PubSubActionEnum, table: string): Promise<void>;
17
+ createMessages(message: object, action: PubSubActionEnum, table: PubSubTableEnum): Promise<void>;
18
18
  }
19
19
  export declare abstract class PubSubHandelerAction {
20
20
  constructor(pubsubModel: PubSubModel);
@@ -30,3 +30,6 @@ export declare enum PubSubActionEnum {
30
30
  update = "update",
31
31
  remove = "remove"
32
32
  }
33
+ export declare enum PubSubTableEnum {
34
+ documentoDigital = "documentoDigital"
35
+ }
@@ -14,7 +14,7 @@ class PubSubModel {
14
14
  constructor(value, action, table) {
15
15
  this.value = value;
16
16
  this.action = action.toString();
17
- this.table = table;
17
+ this.table = table.toString();
18
18
  }
19
19
  }
20
20
  exports.PubSubModel = PubSubModel;
@@ -106,3 +106,7 @@ var PubSubActionEnum;
106
106
  PubSubActionEnum["update"] = "update";
107
107
  PubSubActionEnum["remove"] = "remove";
108
108
  })(PubSubActionEnum = exports.PubSubActionEnum || (exports.PubSubActionEnum = {}));
109
+ var PubSubTableEnum;
110
+ (function (PubSubTableEnum) {
111
+ PubSubTableEnum["documentoDigital"] = "documentoDigital";
112
+ })(PubSubTableEnum = exports.PubSubTableEnum || (exports.PubSubTableEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim-node-lib",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Library from SIMLabs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",