@amohamud23/notihub 1.0.124 → 1.0.126
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 +16 -2
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +13 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -41,6 +41,7 @@ __export(src_exports, {
|
|
|
41
41
|
NotiTypeStatsModel: () => NotiTypeStatsModel_default,
|
|
42
42
|
NotificationModel: () => NotificationModel_default,
|
|
43
43
|
NotificationStats: () => NotificationStatsModel_default,
|
|
44
|
+
PaymentSessionModel: () => PaymentSessionModel_default,
|
|
44
45
|
StripScriptionModel: () => StripeSubscriptionModel_default,
|
|
45
46
|
Subscription: () => SubscriptionModel_default,
|
|
46
47
|
SubscriptionType: () => SubscriptionTypeModel_default,
|
|
@@ -424,9 +425,21 @@ var StripScriptionModel = (0, import_mongoose20.model)(
|
|
|
424
425
|
);
|
|
425
426
|
var StripeSubscriptionModel_default = StripScriptionModel;
|
|
426
427
|
|
|
428
|
+
// src/models/PaymentSessionModel.ts
|
|
429
|
+
var import_mongoose21 = require("mongoose");
|
|
430
|
+
var paymentSessionSchema = new import_mongoose21.Schema({
|
|
431
|
+
session: { type: String, required: true },
|
|
432
|
+
customerId: { type: String, required: true }
|
|
433
|
+
});
|
|
434
|
+
var PaymentSessionModel = (0, import_mongoose21.model)(
|
|
435
|
+
"PaymentSession",
|
|
436
|
+
paymentSessionSchema
|
|
437
|
+
);
|
|
438
|
+
var PaymentSessionModel_default = PaymentSessionModel;
|
|
439
|
+
|
|
427
440
|
// src/client/MongooseClient.ts
|
|
428
|
-
var
|
|
429
|
-
var Connect = () =>
|
|
441
|
+
var import_mongoose22 = __toESM(require("mongoose"), 1);
|
|
442
|
+
var Connect = () => import_mongoose22.default.connect(
|
|
430
443
|
"mongodb+srv://admin:YF6ImNWyAMUUu72I@nftcluster.llzxp.mongodb.net/test?authSource=admin&replicaSet=atlas-p5dddq-shard-0&readPreference=primary&ssl=true",
|
|
431
444
|
{ dbName: "notihub" }
|
|
432
445
|
).then(() => {
|
|
@@ -475,6 +488,7 @@ var InvalidPushToken = "4009";
|
|
|
475
488
|
NotiTypeStatsModel,
|
|
476
489
|
NotificationModel,
|
|
477
490
|
NotificationStats,
|
|
491
|
+
PaymentSessionModel,
|
|
478
492
|
StripScriptionModel,
|
|
479
493
|
Subscription,
|
|
480
494
|
SubscriptionType,
|
package/dist/index.d.cts
CHANGED
|
@@ -54,6 +54,8 @@ type INotiHubNotification = {
|
|
|
54
54
|
entityId: string;
|
|
55
55
|
entityMinified: INotiHubCustomerMinified;
|
|
56
56
|
body: string;
|
|
57
|
+
deliveryType: "IMMEDIATE" | "SCHEDULED";
|
|
58
|
+
scheduledAt: string;
|
|
57
59
|
createdAt: string;
|
|
58
60
|
updatedAt: string;
|
|
59
61
|
};
|
|
@@ -253,6 +255,12 @@ declare const StripScriptionModel: mongoose.Model<INotiHubStripeSubscription, {}
|
|
|
253
255
|
__v?: number | undefined;
|
|
254
256
|
}, any>;
|
|
255
257
|
|
|
258
|
+
declare const PaymentSessionModel: mongoose.Model<INotiHubPaymentSession, {}, {}, {}, mongoose.Document<unknown, {}, INotiHubPaymentSession> & INotiHubPaymentSession & {
|
|
259
|
+
_id: mongoose.Types.ObjectId;
|
|
260
|
+
} & {
|
|
261
|
+
__v?: number | undefined;
|
|
262
|
+
}, any>;
|
|
263
|
+
|
|
256
264
|
declare const Connect: () => Promise<void>;
|
|
257
265
|
|
|
258
266
|
declare class DocumentNotFoundException extends Error {
|
|
@@ -278,4 +286,4 @@ declare namespace errorcodes {
|
|
|
278
286
|
export { errorcodes_CustomerNotFound as CustomerNotFound, errorcodes_DocumentNotFound as DocumentNotFound, errorcodes_InvalidEmail as InvalidEmail, errorcodes_InvalidName as InvalidName, errorcodes_InvalidPassword as InvalidPassword, errorcodes_InvalidPushToken as InvalidPushToken, errorcodes_UserNotFound as UserNotFound };
|
|
279
287
|
}
|
|
280
288
|
|
|
281
|
-
export { type CreateNotiRequestBody, type CreateSubscriptionRequestBody, type CreateUserRequestBody, Customer, CustomerMinified, CustomerNotiHubStats, DocumentNotFoundException, errorcodes as ErrorCode, type ICreateCustomerRequestBody, type ICreateNotiRequestBody, type INotiHubCustomer, type INotiHubCustomerMinified, type INotiHubImage, type INotiHubNotification, type INotiHubNotificationStats, type INotiHubPaymentSession, type INotiHubStats, type INotiHubStatsHistory, type INotiHubStripeSubscription, type INotiHubSubscription, type INotiHubUser, type INotiHubUserView, type INotiType, type INotiTypeStats, type IUserSubscribeNotifier, type IUserSubscription, Connect as MongooseClient, NotiHubStatsHistory, type NotiHubTypes, NotiTypeModel, NotiTypeStatsModel, NotificationModel, NotificationStatsModel as NotificationStats, StripScriptionModel, Subscription, SubscriptionType, UserModel, ViewsModel, addMonths, getDate, getDateFormat };
|
|
289
|
+
export { type CreateNotiRequestBody, type CreateSubscriptionRequestBody, type CreateUserRequestBody, Customer, CustomerMinified, CustomerNotiHubStats, DocumentNotFoundException, errorcodes as ErrorCode, type ICreateCustomerRequestBody, type ICreateNotiRequestBody, type INotiHubCustomer, type INotiHubCustomerMinified, type INotiHubImage, type INotiHubNotification, type INotiHubNotificationStats, type INotiHubPaymentSession, type INotiHubStats, type INotiHubStatsHistory, type INotiHubStripeSubscription, type INotiHubSubscription, type INotiHubUser, type INotiHubUserView, type INotiType, type INotiTypeStats, type IUserSubscribeNotifier, type IUserSubscription, Connect as MongooseClient, NotiHubStatsHistory, type NotiHubTypes, NotiTypeModel, NotiTypeStatsModel, NotificationModel, NotificationStatsModel as NotificationStats, PaymentSessionModel, StripScriptionModel, Subscription, SubscriptionType, UserModel, ViewsModel, addMonths, getDate, getDateFormat };
|
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,8 @@ type INotiHubNotification = {
|
|
|
54
54
|
entityId: string;
|
|
55
55
|
entityMinified: INotiHubCustomerMinified;
|
|
56
56
|
body: string;
|
|
57
|
+
deliveryType: "IMMEDIATE" | "SCHEDULED";
|
|
58
|
+
scheduledAt: string;
|
|
57
59
|
createdAt: string;
|
|
58
60
|
updatedAt: string;
|
|
59
61
|
};
|
|
@@ -253,6 +255,12 @@ declare const StripScriptionModel: mongoose.Model<INotiHubStripeSubscription, {}
|
|
|
253
255
|
__v?: number | undefined;
|
|
254
256
|
}, any>;
|
|
255
257
|
|
|
258
|
+
declare const PaymentSessionModel: mongoose.Model<INotiHubPaymentSession, {}, {}, {}, mongoose.Document<unknown, {}, INotiHubPaymentSession> & INotiHubPaymentSession & {
|
|
259
|
+
_id: mongoose.Types.ObjectId;
|
|
260
|
+
} & {
|
|
261
|
+
__v?: number | undefined;
|
|
262
|
+
}, any>;
|
|
263
|
+
|
|
256
264
|
declare const Connect: () => Promise<void>;
|
|
257
265
|
|
|
258
266
|
declare class DocumentNotFoundException extends Error {
|
|
@@ -278,4 +286,4 @@ declare namespace errorcodes {
|
|
|
278
286
|
export { errorcodes_CustomerNotFound as CustomerNotFound, errorcodes_DocumentNotFound as DocumentNotFound, errorcodes_InvalidEmail as InvalidEmail, errorcodes_InvalidName as InvalidName, errorcodes_InvalidPassword as InvalidPassword, errorcodes_InvalidPushToken as InvalidPushToken, errorcodes_UserNotFound as UserNotFound };
|
|
279
287
|
}
|
|
280
288
|
|
|
281
|
-
export { type CreateNotiRequestBody, type CreateSubscriptionRequestBody, type CreateUserRequestBody, Customer, CustomerMinified, CustomerNotiHubStats, DocumentNotFoundException, errorcodes as ErrorCode, type ICreateCustomerRequestBody, type ICreateNotiRequestBody, type INotiHubCustomer, type INotiHubCustomerMinified, type INotiHubImage, type INotiHubNotification, type INotiHubNotificationStats, type INotiHubPaymentSession, type INotiHubStats, type INotiHubStatsHistory, type INotiHubStripeSubscription, type INotiHubSubscription, type INotiHubUser, type INotiHubUserView, type INotiType, type INotiTypeStats, type IUserSubscribeNotifier, type IUserSubscription, Connect as MongooseClient, NotiHubStatsHistory, type NotiHubTypes, NotiTypeModel, NotiTypeStatsModel, NotificationModel, NotificationStatsModel as NotificationStats, StripScriptionModel, Subscription, SubscriptionType, UserModel, ViewsModel, addMonths, getDate, getDateFormat };
|
|
289
|
+
export { type CreateNotiRequestBody, type CreateSubscriptionRequestBody, type CreateUserRequestBody, Customer, CustomerMinified, CustomerNotiHubStats, DocumentNotFoundException, errorcodes as ErrorCode, type ICreateCustomerRequestBody, type ICreateNotiRequestBody, type INotiHubCustomer, type INotiHubCustomerMinified, type INotiHubImage, type INotiHubNotification, type INotiHubNotificationStats, type INotiHubPaymentSession, type INotiHubStats, type INotiHubStatsHistory, type INotiHubStripeSubscription, type INotiHubSubscription, type INotiHubUser, type INotiHubUserView, type INotiType, type INotiTypeStats, type IUserSubscribeNotifier, type IUserSubscription, Connect as MongooseClient, NotiHubStatsHistory, type NotiHubTypes, NotiTypeModel, NotiTypeStatsModel, NotificationModel, NotificationStatsModel as NotificationStats, PaymentSessionModel, StripScriptionModel, Subscription, SubscriptionType, UserModel, ViewsModel, addMonths, getDate, getDateFormat };
|
package/dist/index.js
CHANGED
|
@@ -376,6 +376,18 @@ var StripScriptionModel = model13(
|
|
|
376
376
|
);
|
|
377
377
|
var StripeSubscriptionModel_default = StripScriptionModel;
|
|
378
378
|
|
|
379
|
+
// src/models/PaymentSessionModel.ts
|
|
380
|
+
import { Schema as Schema21, model as model14 } from "mongoose";
|
|
381
|
+
var paymentSessionSchema = new Schema21({
|
|
382
|
+
session: { type: String, required: true },
|
|
383
|
+
customerId: { type: String, required: true }
|
|
384
|
+
});
|
|
385
|
+
var PaymentSessionModel = model14(
|
|
386
|
+
"PaymentSession",
|
|
387
|
+
paymentSessionSchema
|
|
388
|
+
);
|
|
389
|
+
var PaymentSessionModel_default = PaymentSessionModel;
|
|
390
|
+
|
|
379
391
|
// src/client/MongooseClient.ts
|
|
380
392
|
import mongoose3 from "mongoose";
|
|
381
393
|
var Connect = () => mongoose3.connect(
|
|
@@ -426,6 +438,7 @@ export {
|
|
|
426
438
|
NotiTypeStatsModel_default as NotiTypeStatsModel,
|
|
427
439
|
NotificationModel_default as NotificationModel,
|
|
428
440
|
NotificationStatsModel_default as NotificationStats,
|
|
441
|
+
PaymentSessionModel_default as PaymentSessionModel,
|
|
429
442
|
StripeSubscriptionModel_default as StripScriptionModel,
|
|
430
443
|
SubscriptionModel_default as Subscription,
|
|
431
444
|
SubscriptionTypeModel_default as SubscriptionType,
|