@amohamud23/notihub 1.0.126 → 1.0.128
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.cjs +3 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -253,7 +253,9 @@ var NotificationSchema = {
|
|
|
253
253
|
type: import_mongoose8.Schema.Types.ObjectId,
|
|
254
254
|
ref: "CustomerMinified",
|
|
255
255
|
required: true
|
|
256
|
-
}
|
|
256
|
+
},
|
|
257
|
+
deliveryType: { type: String, required: true },
|
|
258
|
+
scheduledAt: { type: Date }
|
|
257
259
|
};
|
|
258
260
|
var NotificationSchema_default = NotificationSchema;
|
|
259
261
|
|
package/dist/index.d.cts
CHANGED
|
@@ -10,6 +10,8 @@ type CreateNotiRequestBody = {
|
|
|
10
10
|
message: string;
|
|
11
11
|
body: string;
|
|
12
12
|
type: string;
|
|
13
|
+
deliveryType: "IMMEDIATE" | "SCHEDULED";
|
|
14
|
+
scheduledAt?: Date;
|
|
13
15
|
};
|
|
14
16
|
type CreateSubscriptionRequestBody = {
|
|
15
17
|
subscriptionId: string;
|
|
@@ -55,7 +57,7 @@ type INotiHubNotification = {
|
|
|
55
57
|
entityMinified: INotiHubCustomerMinified;
|
|
56
58
|
body: string;
|
|
57
59
|
deliveryType: "IMMEDIATE" | "SCHEDULED";
|
|
58
|
-
scheduledAt:
|
|
60
|
+
scheduledAt: Date;
|
|
59
61
|
createdAt: string;
|
|
60
62
|
updatedAt: string;
|
|
61
63
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ type CreateNotiRequestBody = {
|
|
|
10
10
|
message: string;
|
|
11
11
|
body: string;
|
|
12
12
|
type: string;
|
|
13
|
+
deliveryType: "IMMEDIATE" | "SCHEDULED";
|
|
14
|
+
scheduledAt?: Date;
|
|
13
15
|
};
|
|
14
16
|
type CreateSubscriptionRequestBody = {
|
|
15
17
|
subscriptionId: string;
|
|
@@ -55,7 +57,7 @@ type INotiHubNotification = {
|
|
|
55
57
|
entityMinified: INotiHubCustomerMinified;
|
|
56
58
|
body: string;
|
|
57
59
|
deliveryType: "IMMEDIATE" | "SCHEDULED";
|
|
58
|
-
scheduledAt:
|
|
60
|
+
scheduledAt: Date;
|
|
59
61
|
createdAt: string;
|
|
60
62
|
updatedAt: string;
|
|
61
63
|
};
|
package/dist/index.js
CHANGED
|
@@ -204,7 +204,9 @@ var NotificationSchema = {
|
|
|
204
204
|
type: Schema8.Types.ObjectId,
|
|
205
205
|
ref: "CustomerMinified",
|
|
206
206
|
required: true
|
|
207
|
-
}
|
|
207
|
+
},
|
|
208
|
+
deliveryType: { type: String, required: true },
|
|
209
|
+
scheduledAt: { type: Date }
|
|
208
210
|
};
|
|
209
211
|
var NotificationSchema_default = NotificationSchema;
|
|
210
212
|
|