@aghamdi/shared-types 0.2.0 → 0.2.2

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.mts CHANGED
@@ -7,4 +7,22 @@ declare class MiaServerResponse {
7
7
  static sendError: (error: any) => MiaServerResponse;
8
8
  }
9
9
 
10
- export { MiaServerResponse };
10
+ interface Notification {
11
+ title?: string;
12
+ body: string;
13
+ badge?: number;
14
+ topic?: string;
15
+ payload?: any;
16
+ }
17
+ interface UserNotification extends Notification {
18
+ userId: string;
19
+ }
20
+ interface DeviceNotification extends Notification {
21
+ deviceId: string;
22
+ }
23
+ declare class MiaNotifications {
24
+ static sendtoDevice(deviceId: string, body: string): Promise<void>;
25
+ static sendtoUserDevices(userId: string, body: string): Promise<void>;
26
+ }
27
+
28
+ export { type DeviceNotification, MiaNotifications, MiaServerResponse, type Notification, type UserNotification };
package/dist/index.d.ts CHANGED
@@ -7,4 +7,22 @@ declare class MiaServerResponse {
7
7
  static sendError: (error: any) => MiaServerResponse;
8
8
  }
9
9
 
10
- export { MiaServerResponse };
10
+ interface Notification {
11
+ title?: string;
12
+ body: string;
13
+ badge?: number;
14
+ topic?: string;
15
+ payload?: any;
16
+ }
17
+ interface UserNotification extends Notification {
18
+ userId: string;
19
+ }
20
+ interface DeviceNotification extends Notification {
21
+ deviceId: string;
22
+ }
23
+ declare class MiaNotifications {
24
+ static sendtoDevice(deviceId: string, body: string): Promise<void>;
25
+ static sendtoUserDevices(userId: string, body: string): Promise<void>;
26
+ }
27
+
28
+ export { type DeviceNotification, MiaNotifications, MiaServerResponse, type Notification, type UserNotification };
package/dist/index.js CHANGED
@@ -3,6 +3,9 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __knownSymbol = (name, symbol) => {
7
+ return (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
8
+ };
6
9
  var __export = (target, all) => {
7
10
  for (var name in all)
8
11
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -16,10 +19,32 @@ var __copyProps = (to, from, except, desc) => {
16
19
  return to;
17
20
  };
18
21
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
+ var __async = (__this, __arguments, generator) => {
23
+ return new Promise((resolve, reject) => {
24
+ var fulfilled = (value) => {
25
+ try {
26
+ step(generator.next(value));
27
+ } catch (e) {
28
+ reject(e);
29
+ }
30
+ };
31
+ var rejected = (value) => {
32
+ try {
33
+ step(generator.throw(value));
34
+ } catch (e) {
35
+ reject(e);
36
+ }
37
+ };
38
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
39
+ step((generator = generator.apply(__this, __arguments)).next());
40
+ });
41
+ };
42
+ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")]) ? it.call(obj) : (obj = obj[__knownSymbol("iterator")](), it = {}, method = (key, fn) => (fn = obj[key]) && (it[key] = (arg) => new Promise((yes, no, done) => (arg = fn.call(obj, arg), done = arg.done, Promise.resolve(arg.value).then((value) => yes({ value, done }), no)))), method("next"), method("return"), it);
19
43
 
20
44
  // src/index.ts
21
45
  var src_exports = {};
22
46
  __export(src_exports, {
47
+ MiaNotifications: () => MiaNotifications,
23
48
  MiaServerResponse: () => MiaServerResponse
24
49
  });
25
50
  module.exports = __toCommonJS(src_exports);
@@ -51,8 +76,68 @@ MiaServerResponse.sendError = (error) => {
51
76
  };
52
77
  return response;
53
78
  };
79
+
80
+ // src/MessagingBus.ts
81
+ var import_nats = require("nats");
82
+ var MessagingBus = class {
83
+ static subscribe(channel, queue, onMessage) {
84
+ return __async(this, null, function* () {
85
+ const nc = yield (0, import_nats.connect)({ servers: process.env.NATS_HOST });
86
+ const sc = (0, import_nats.JSONCodec)();
87
+ const subscription = nc.subscribe(channel, { queue });
88
+ ((sub) => __async(this, null, function* () {
89
+ console.log(`listening for ${sub.getSubject()} requests...`);
90
+ try {
91
+ for (var iter = __forAwait(sub), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
92
+ const m = temp.value;
93
+ const msg = sc.decode(m.data);
94
+ onMessage(msg);
95
+ }
96
+ } catch (temp) {
97
+ error = [temp];
98
+ } finally {
99
+ try {
100
+ more && (temp = iter.return) && (yield temp.call(iter));
101
+ } finally {
102
+ if (error)
103
+ throw error[0];
104
+ }
105
+ }
106
+ console.log(`subscription ${sub.getSubject()} drained.`);
107
+ }))(subscription);
108
+ });
109
+ }
110
+ static publish(channel, message) {
111
+ return __async(this, null, function* () {
112
+ if (!process.env.NATS_HOST) {
113
+ throw new Error("NATS_HOST ENV is not defined");
114
+ }
115
+ const nc = yield (0, import_nats.connect)({ servers: process.env.NATS_HOST });
116
+ const jc = (0, import_nats.JSONCodec)();
117
+ nc.publish(channel, jc.encode({ message }));
118
+ yield nc.drain();
119
+ });
120
+ }
121
+ };
122
+
123
+ // src/notifications.ts
124
+ var MiaNotifications = class {
125
+ static sendtoDevice(deviceId, body) {
126
+ return __async(this, null, function* () {
127
+ const message = { deviceId, body };
128
+ yield MessagingBus.publish("mia.notifications.test", message);
129
+ });
130
+ }
131
+ static sendtoUserDevices(userId, body) {
132
+ return __async(this, null, function* () {
133
+ const message = { userId, body };
134
+ yield MessagingBus.publish("mia.notifications.test", message);
135
+ });
136
+ }
137
+ };
54
138
  // Annotate the CommonJS export names for ESM import in node:
55
139
  0 && (module.exports = {
140
+ MiaNotifications,
56
141
  MiaServerResponse
57
142
  });
58
143
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/mia-server-response.ts"],"sourcesContent":["export * from './mia-server-response'","export class MiaServerResponse {\n status?: number;\n message?: string;\n data: any;\n\n static send = (status: number, message: string, data: any) => {\n const response: MiaServerResponse = {\n status: status,\n message: message,\n data: data\n };\n return response;\n }\n static sendData = (data: any) => {\n const response: MiaServerResponse = {\n status: 200,\n message: \"Success\",\n data: data\n };\n return response;\n }\n static sendError = (error: any) => {\n const response: MiaServerResponse = {\n status: 400,\n message: \"Failed\",\n data: error\n };\n return response;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,oBAAN,MAAwB;AA6B/B;AA7Ba,kBAKJ,OAAO,CAAC,QAAgB,SAAiB,SAAc;AAC5D,QAAM,WAA8B;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,SAAO;AACT;AAZW,kBAaJ,WAAW,CAAC,SAAc;AAC/B,QAAM,WAA8B;AAAA,IAClC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AApBW,kBAqBJ,YAAY,CAAC,UAAe;AACjC,QAAM,WAA8B;AAAA,IAClC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACA,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/mia-server-response.ts","../src/MessagingBus.ts","../src/notifications.ts"],"sourcesContent":["export * from './mia-server-response'\nexport * from './notifications'","export class MiaServerResponse {\n status?: number;\n message?: string;\n data: any;\n\n static send = (status: number, message: string, data: any) => {\n const response: MiaServerResponse = {\n status: status,\n message: message,\n data: data\n };\n return response;\n }\n static sendData = (data: any) => {\n const response: MiaServerResponse = {\n status: 200,\n message: \"Success\",\n data: data\n };\n return response;\n }\n static sendError = (error: any) => {\n const response: MiaServerResponse = {\n status: 400,\n message: \"Failed\",\n data: error\n };\n return response;\n }\n}\n","import { connect, JSONCodec } from \"nats\";\n\nexport class MessagingBus {\n static async subscribe(channel: string, queue: string, onMessage: Function) {\n const nc = await connect({ servers: process.env.NATS_HOST });\n const sc = JSONCodec();\n const subscription = nc.subscribe(channel, { queue: queue });\n\n (async (sub) => {\n\n console.log(`listening for ${sub.getSubject()} requests...`);\n\n for await (const m of sub) {\n const msg = sc.decode(m.data);\n onMessage(msg);\n }\n\n console.log(`subscription ${sub.getSubject()} drained.`);\n })(subscription);\n }\n\n static async publish(channel: string, message: any) {\n if (!process.env.NATS_HOST) {\n throw new Error(\"NATS_HOST ENV is not defined\");\n }\n const nc = await connect({ servers: process.env.NATS_HOST });\n const jc = JSONCodec();\n nc.publish(channel, jc.encode({ message }));\n await nc.drain();\n }\n}\n","import { connect, JSONCodec } from \"nats\";\nimport { MessagingBus } from \"./MessagingBus\";\nexport interface Notification {\n title?: string,\n body: string,\n badge?: number,\n topic?: string,\n payload?: any\n}\nexport interface UserNotification extends Notification {\n userId: string\n}\nexport interface DeviceNotification extends Notification {\n deviceId: string\n}\n\nexport class MiaNotifications {\n static async sendtoDevice(deviceId: string, body: string) {\n const message: DeviceNotification = { deviceId, body };\n await MessagingBus.publish(\"mia.notifications.test\", message);\n }\n static async sendtoUserDevices(userId: string, body: string) {\n const message: UserNotification = { userId, body };\n await MessagingBus.publish(\"mia.notifications.test\", message);\n }\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,oBAAN,MAAwB;AA6B/B;AA7Ba,kBAKJ,OAAO,CAAC,QAAgB,SAAiB,SAAc;AAC5D,QAAM,WAA8B;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,SAAO;AACT;AAZW,kBAaJ,WAAW,CAAC,SAAc;AAC/B,QAAM,WAA8B;AAAA,IAClC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AApBW,kBAqBJ,YAAY,CAAC,UAAe;AACjC,QAAM,WAA8B;AAAA,IAClC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACA,SAAO;AACT;;;AC5BF,kBAAmC;AAE5B,IAAM,eAAN,MAAmB;AAAA,EACxB,OAAa,UAAU,SAAiB,OAAe,WAAqB;AAAA;AAC1E,YAAM,KAAK,UAAM,qBAAQ,EAAE,SAAS,QAAQ,IAAI,UAAU,CAAC;AAC3D,YAAM,SAAK,uBAAU;AACrB,YAAM,eAAe,GAAG,UAAU,SAAS,EAAE,MAAa,CAAC;AAE3D,OAAC,CAAO,QAAQ;AAEd,gBAAQ,IAAI,iBAAiB,IAAI,WAAW,CAAC,cAAc;AAE3D;AAAA,qCAAsB,MAAtB,0EAA2B;AAAhB,kBAAM,IAAjB;AACE,kBAAM,MAAM,GAAG,OAAO,EAAE,IAAI;AAC5B,sBAAU,GAAG;AAAA,UACf;AAAA,iBAHA,MAZN;AAYM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,gBAAQ,IAAI,gBAAgB,IAAI,WAAW,CAAC,WAAW;AAAA,MACzD,IAAG,YAAY;AAAA,IACjB;AAAA;AAAA,EAEA,OAAa,QAAQ,SAAiB,SAAc;AAAA;AAClD,UAAI,CAAC,QAAQ,IAAI,WAAW;AAC1B,cAAM,IAAI,MAAM,8BAA8B;AAAA,MAChD;AACA,YAAM,KAAK,UAAM,qBAAQ,EAAE,SAAS,QAAQ,IAAI,UAAU,CAAC;AAC3D,YAAM,SAAK,uBAAU;AACrB,SAAG,QAAQ,SAAS,GAAG,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC1C,YAAM,GAAG,MAAM;AAAA,IACjB;AAAA;AACF;;;ACdO,IAAM,mBAAN,MAAuB;AAAA,EAC5B,OAAa,aAAa,UAAkB,MAAc;AAAA;AACxD,YAAM,UAA8B,EAAE,UAAU,KAAK;AACrD,YAAM,aAAa,QAAQ,0BAA0B,OAAO;AAAA,IAC9D;AAAA;AAAA,EACA,OAAa,kBAAkB,QAAgB,MAAc;AAAA;AAC3D,YAAM,UAA4B,EAAE,QAAQ,KAAK;AACjD,YAAM,aAAa,QAAQ,0BAA0B,OAAO;AAAA,IAC9D;AAAA;AACF;","names":[]}
package/dist/index.mjs CHANGED
@@ -1,3 +1,28 @@
1
+ var __knownSymbol = (name, symbol) => {
2
+ return (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
3
+ };
4
+ var __async = (__this, __arguments, generator) => {
5
+ return new Promise((resolve, reject) => {
6
+ var fulfilled = (value) => {
7
+ try {
8
+ step(generator.next(value));
9
+ } catch (e) {
10
+ reject(e);
11
+ }
12
+ };
13
+ var rejected = (value) => {
14
+ try {
15
+ step(generator.throw(value));
16
+ } catch (e) {
17
+ reject(e);
18
+ }
19
+ };
20
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
21
+ step((generator = generator.apply(__this, __arguments)).next());
22
+ });
23
+ };
24
+ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")]) ? it.call(obj) : (obj = obj[__knownSymbol("iterator")](), it = {}, method = (key, fn) => (fn = obj[key]) && (it[key] = (arg) => new Promise((yes, no, done) => (arg = fn.call(obj, arg), done = arg.done, Promise.resolve(arg.value).then((value) => yes({ value, done }), no)))), method("next"), method("return"), it);
25
+
1
26
  // src/mia-server-response.ts
2
27
  var MiaServerResponse = class {
3
28
  };
@@ -25,7 +50,67 @@ MiaServerResponse.sendError = (error) => {
25
50
  };
26
51
  return response;
27
52
  };
53
+
54
+ // src/MessagingBus.ts
55
+ import { connect, JSONCodec } from "nats";
56
+ var MessagingBus = class {
57
+ static subscribe(channel, queue, onMessage) {
58
+ return __async(this, null, function* () {
59
+ const nc = yield connect({ servers: process.env.NATS_HOST });
60
+ const sc = JSONCodec();
61
+ const subscription = nc.subscribe(channel, { queue });
62
+ ((sub) => __async(this, null, function* () {
63
+ console.log(`listening for ${sub.getSubject()} requests...`);
64
+ try {
65
+ for (var iter = __forAwait(sub), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
66
+ const m = temp.value;
67
+ const msg = sc.decode(m.data);
68
+ onMessage(msg);
69
+ }
70
+ } catch (temp) {
71
+ error = [temp];
72
+ } finally {
73
+ try {
74
+ more && (temp = iter.return) && (yield temp.call(iter));
75
+ } finally {
76
+ if (error)
77
+ throw error[0];
78
+ }
79
+ }
80
+ console.log(`subscription ${sub.getSubject()} drained.`);
81
+ }))(subscription);
82
+ });
83
+ }
84
+ static publish(channel, message) {
85
+ return __async(this, null, function* () {
86
+ if (!process.env.NATS_HOST) {
87
+ throw new Error("NATS_HOST ENV is not defined");
88
+ }
89
+ const nc = yield connect({ servers: process.env.NATS_HOST });
90
+ const jc = JSONCodec();
91
+ nc.publish(channel, jc.encode({ message }));
92
+ yield nc.drain();
93
+ });
94
+ }
95
+ };
96
+
97
+ // src/notifications.ts
98
+ var MiaNotifications = class {
99
+ static sendtoDevice(deviceId, body) {
100
+ return __async(this, null, function* () {
101
+ const message = { deviceId, body };
102
+ yield MessagingBus.publish("mia.notifications.test", message);
103
+ });
104
+ }
105
+ static sendtoUserDevices(userId, body) {
106
+ return __async(this, null, function* () {
107
+ const message = { userId, body };
108
+ yield MessagingBus.publish("mia.notifications.test", message);
109
+ });
110
+ }
111
+ };
28
112
  export {
113
+ MiaNotifications,
29
114
  MiaServerResponse
30
115
  };
31
116
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/mia-server-response.ts"],"sourcesContent":["export class MiaServerResponse {\n status?: number;\n message?: string;\n data: any;\n\n static send = (status: number, message: string, data: any) => {\n const response: MiaServerResponse = {\n status: status,\n message: message,\n data: data\n };\n return response;\n }\n static sendData = (data: any) => {\n const response: MiaServerResponse = {\n status: 200,\n message: \"Success\",\n data: data\n };\n return response;\n }\n static sendError = (error: any) => {\n const response: MiaServerResponse = {\n status: 400,\n message: \"Failed\",\n data: error\n };\n return response;\n }\n}\n"],"mappings":";AAAO,IAAM,oBAAN,MAAwB;AA6B/B;AA7Ba,kBAKJ,OAAO,CAAC,QAAgB,SAAiB,SAAc;AAC5D,QAAM,WAA8B;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,SAAO;AACT;AAZW,kBAaJ,WAAW,CAAC,SAAc;AAC/B,QAAM,WAA8B;AAAA,IAClC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AApBW,kBAqBJ,YAAY,CAAC,UAAe;AACjC,QAAM,WAA8B;AAAA,IAClC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACA,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../src/mia-server-response.ts","../src/MessagingBus.ts","../src/notifications.ts"],"sourcesContent":["export class MiaServerResponse {\n status?: number;\n message?: string;\n data: any;\n\n static send = (status: number, message: string, data: any) => {\n const response: MiaServerResponse = {\n status: status,\n message: message,\n data: data\n };\n return response;\n }\n static sendData = (data: any) => {\n const response: MiaServerResponse = {\n status: 200,\n message: \"Success\",\n data: data\n };\n return response;\n }\n static sendError = (error: any) => {\n const response: MiaServerResponse = {\n status: 400,\n message: \"Failed\",\n data: error\n };\n return response;\n }\n}\n","import { connect, JSONCodec } from \"nats\";\n\nexport class MessagingBus {\n static async subscribe(channel: string, queue: string, onMessage: Function) {\n const nc = await connect({ servers: process.env.NATS_HOST });\n const sc = JSONCodec();\n const subscription = nc.subscribe(channel, { queue: queue });\n\n (async (sub) => {\n\n console.log(`listening for ${sub.getSubject()} requests...`);\n\n for await (const m of sub) {\n const msg = sc.decode(m.data);\n onMessage(msg);\n }\n\n console.log(`subscription ${sub.getSubject()} drained.`);\n })(subscription);\n }\n\n static async publish(channel: string, message: any) {\n if (!process.env.NATS_HOST) {\n throw new Error(\"NATS_HOST ENV is not defined\");\n }\n const nc = await connect({ servers: process.env.NATS_HOST });\n const jc = JSONCodec();\n nc.publish(channel, jc.encode({ message }));\n await nc.drain();\n }\n}\n","import { connect, JSONCodec } from \"nats\";\nimport { MessagingBus } from \"./MessagingBus\";\nexport interface Notification {\n title?: string,\n body: string,\n badge?: number,\n topic?: string,\n payload?: any\n}\nexport interface UserNotification extends Notification {\n userId: string\n}\nexport interface DeviceNotification extends Notification {\n deviceId: string\n}\n\nexport class MiaNotifications {\n static async sendtoDevice(deviceId: string, body: string) {\n const message: DeviceNotification = { deviceId, body };\n await MessagingBus.publish(\"mia.notifications.test\", message);\n }\n static async sendtoUserDevices(userId: string, body: string) {\n const message: UserNotification = { userId, body };\n await MessagingBus.publish(\"mia.notifications.test\", message);\n }\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,oBAAN,MAAwB;AA6B/B;AA7Ba,kBAKJ,OAAO,CAAC,QAAgB,SAAiB,SAAc;AAC5D,QAAM,WAA8B;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,SAAO;AACT;AAZW,kBAaJ,WAAW,CAAC,SAAc;AAC/B,QAAM,WAA8B;AAAA,IAClC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AApBW,kBAqBJ,YAAY,CAAC,UAAe;AACjC,QAAM,WAA8B;AAAA,IAClC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACA,SAAO;AACT;;;AC5BF,SAAS,SAAS,iBAAiB;AAE5B,IAAM,eAAN,MAAmB;AAAA,EACxB,OAAa,UAAU,SAAiB,OAAe,WAAqB;AAAA;AAC1E,YAAM,KAAK,MAAM,QAAQ,EAAE,SAAS,QAAQ,IAAI,UAAU,CAAC;AAC3D,YAAM,KAAK,UAAU;AACrB,YAAM,eAAe,GAAG,UAAU,SAAS,EAAE,MAAa,CAAC;AAE3D,OAAC,CAAO,QAAQ;AAEd,gBAAQ,IAAI,iBAAiB,IAAI,WAAW,CAAC,cAAc;AAE3D;AAAA,qCAAsB,MAAtB,0EAA2B;AAAhB,kBAAM,IAAjB;AACE,kBAAM,MAAM,GAAG,OAAO,EAAE,IAAI;AAC5B,sBAAU,GAAG;AAAA,UACf;AAAA,iBAHA,MAZN;AAYM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,gBAAQ,IAAI,gBAAgB,IAAI,WAAW,CAAC,WAAW;AAAA,MACzD,IAAG,YAAY;AAAA,IACjB;AAAA;AAAA,EAEA,OAAa,QAAQ,SAAiB,SAAc;AAAA;AAClD,UAAI,CAAC,QAAQ,IAAI,WAAW;AAC1B,cAAM,IAAI,MAAM,8BAA8B;AAAA,MAChD;AACA,YAAM,KAAK,MAAM,QAAQ,EAAE,SAAS,QAAQ,IAAI,UAAU,CAAC;AAC3D,YAAM,KAAK,UAAU;AACrB,SAAG,QAAQ,SAAS,GAAG,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC1C,YAAM,GAAG,MAAM;AAAA,IACjB;AAAA;AACF;;;ACdO,IAAM,mBAAN,MAAuB;AAAA,EAC5B,OAAa,aAAa,UAAkB,MAAc;AAAA;AACxD,YAAM,UAA8B,EAAE,UAAU,KAAK;AACrD,YAAM,aAAa,QAAQ,0BAA0B,OAAO;AAAA,IAC9D;AAAA;AAAA,EACA,OAAa,kBAAkB,QAAgB,MAAc;AAAA;AAC3D,YAAM,UAA4B,EAAE,QAAQ,KAAK;AACjD,YAAM,aAAa,QAAQ,0BAA0B,OAAO;AAAA,IAC9D;AAAA;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aghamdi/shared-types",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Provide typescript interfaces for common types and some classes",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.js",