@bolt.tech/kafka-utils 1.0.2 → 1.0.3

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.
@@ -0,0 +1,30 @@
1
+ syntax = "proto3";
2
+
3
+ message AssetsTriggerNotification {
4
+ optional User user = 1;
5
+ optional Message message = 2;
6
+ optional string appId = 3;
7
+ optional SmsObj smsObj = 4;
8
+ optional OneSignalPayload oneSignalPayload = 6;
9
+
10
+ message User {
11
+ optional string inAppNotificationUserId = 1;
12
+ optional string pushNotificationUserId = 2;
13
+ repeated string emailIds = 3;
14
+ repeated string phoneNumbers = 4;
15
+ }
16
+ message Message {
17
+ optional string body = 1;
18
+ optional string subject = 2;
19
+ optional int32 priority = 3;
20
+ }
21
+ message SmsObj {
22
+ optional string smsType = 1;
23
+ optional string templateId = 2;
24
+ }
25
+ message OneSignalPayload {
26
+ optional string alert = 1;
27
+ optional bool sos = 2;
28
+ optional string vin = 3;
29
+ }
30
+ }
@@ -0,0 +1,23 @@
1
+ syntax = "proto3";
2
+
3
+ message BoltNotification {
4
+ optional User user = 1;
5
+ optional Message message = 2;
6
+ optional string appId = 4;
7
+ optional SmsObj smsObj = 5;
8
+
9
+ message User {
10
+ optional string pushNotificationUserId = 3;
11
+ optional string inAppNotificationUserId = 4;
12
+ repeated string phoneNumbers = 5;
13
+ repeated string emailIds = 6;
14
+ }
15
+ message Message {
16
+ optional string body = 1;
17
+ optional string subject = 2;
18
+ }
19
+ message SmsObj {
20
+ optional string smsType = 1;
21
+ optional string templateId = 2;
22
+ }
23
+ }
@@ -0,0 +1,36 @@
1
+ syntax = "proto3";
2
+
3
+ message Notification {
4
+ message User {
5
+ string inAppNotificationUserId = 1;
6
+ string pushNotificationUserId = 2;
7
+ repeated string emailIds = 3;
8
+ repeated string phoneNumbers = 4;
9
+ }
10
+ message Message {
11
+ string body = 1;
12
+ string subject = 2;
13
+ int32 priority = 3;
14
+ repeated bytes attachments = 4;
15
+ string html = 5;
16
+ }
17
+ message SmsObj {
18
+ string smsType = 1;
19
+ string templateId = 2;
20
+ }
21
+ message OneSignalPayload {
22
+ string alert = 1;
23
+ bool sos = 2;
24
+ string vin = 3;
25
+ }
26
+ message Attachment {
27
+ string filename = 1;
28
+ string filetype = 2;
29
+ bytes content = 3;
30
+ }
31
+ User user = 1;
32
+ Message message = 2;
33
+ string appId = 3;
34
+ SmsObj smsObj = 4;
35
+ OneSignalPayload oneSignalPayload = 6;
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolt.tech/kafka-utils",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
- "build": "rm -rf ./build/ && tsc",
12
+ "build": "rm -rf ./build/ && tsc && cp -R ./src/store/schemas ./build/store/schemas",
13
13
  "pub": "rm -rf build/ && npm run build && npm publish --access=public"
14
14
  },
15
15
  "keywords": [],