@amohamud23/notihub 1.0.123 → 1.0.124

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.cts CHANGED
@@ -146,6 +146,11 @@ type INotiHubStripeSubscription = {
146
146
  entityRef: INotiHubCustomer;
147
147
  stripe_subscription: string;
148
148
  };
149
+ type INotiHubPaymentSession = {
150
+ id: string;
151
+ session: string;
152
+ customerId: string;
153
+ };
149
154
  type NotiHubTypes = {
150
155
  INotiHubUserView: INotiHubUserView;
151
156
  IUserSubscribeNotifier: IUserSubscribeNotifier;
@@ -242,9 +247,9 @@ declare const NotiTypeStatsModel: mongoose.Model<INotiTypeStats, {}, {}, {}, mon
242
247
  __v?: number | undefined;
243
248
  }, any>;
244
249
 
245
- declare const StripScriptionModel: mongoose.Model<INotiTypeStats, {}, {}, {}, mongoose.Document<unknown, {}, INotiTypeStats> & INotiTypeStats & Required<{
246
- _id: string;
247
- }> & {
250
+ declare const StripScriptionModel: mongoose.Model<INotiHubStripeSubscription, {}, {}, {}, mongoose.Document<unknown, {}, INotiHubStripeSubscription> & INotiHubStripeSubscription & {
251
+ _id: mongoose.Types.ObjectId;
252
+ } & {
248
253
  __v?: number | undefined;
249
254
  }, any>;
250
255
 
@@ -273,4 +278,4 @@ declare namespace errorcodes {
273
278
  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 };
274
279
  }
275
280
 
276
- 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 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -146,6 +146,11 @@ type INotiHubStripeSubscription = {
146
146
  entityRef: INotiHubCustomer;
147
147
  stripe_subscription: string;
148
148
  };
149
+ type INotiHubPaymentSession = {
150
+ id: string;
151
+ session: string;
152
+ customerId: string;
153
+ };
149
154
  type NotiHubTypes = {
150
155
  INotiHubUserView: INotiHubUserView;
151
156
  IUserSubscribeNotifier: IUserSubscribeNotifier;
@@ -242,9 +247,9 @@ declare const NotiTypeStatsModel: mongoose.Model<INotiTypeStats, {}, {}, {}, mon
242
247
  __v?: number | undefined;
243
248
  }, any>;
244
249
 
245
- declare const StripScriptionModel: mongoose.Model<INotiTypeStats, {}, {}, {}, mongoose.Document<unknown, {}, INotiTypeStats> & INotiTypeStats & Required<{
246
- _id: string;
247
- }> & {
250
+ declare const StripScriptionModel: mongoose.Model<INotiHubStripeSubscription, {}, {}, {}, mongoose.Document<unknown, {}, INotiHubStripeSubscription> & INotiHubStripeSubscription & {
251
+ _id: mongoose.Types.ObjectId;
252
+ } & {
248
253
  __v?: number | undefined;
249
254
  }, any>;
250
255
 
@@ -273,4 +278,4 @@ declare namespace errorcodes {
273
278
  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 };
274
279
  }
275
280
 
276
- 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 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.123",
3
+ "version": "1.0.124",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",