@amohamud23/notihub 1.0.104 → 1.0.106
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 +22 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +27 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
CustomerMinified: () => CustomerMinifiedModel_default,
|
|
35
35
|
CustomerNotiHubStats: () => CustomerNotiHubStatsModel_default,
|
|
36
36
|
DocumentNotFoundException: () => DocumentNotFoundException,
|
|
37
|
+
ErrorCode: () => errorcodes_exports,
|
|
37
38
|
MongooseClient: () => MongooseClient_default,
|
|
38
39
|
NotiHubStatsHistory: () => NotiHubStatsHistoryModel_default,
|
|
39
40
|
NotiTypeModel: () => NotiTypeModel_default,
|
|
@@ -400,19 +401,39 @@ var Connect = () => import_mongoose20.default.connect(
|
|
|
400
401
|
});
|
|
401
402
|
var MongooseClient_default = Connect;
|
|
402
403
|
|
|
403
|
-
// src/
|
|
404
|
+
// src/exceptions.ts
|
|
404
405
|
var DocumentNotFoundException = class _DocumentNotFoundException extends Error {
|
|
405
406
|
constructor(msg) {
|
|
406
407
|
super(msg);
|
|
407
408
|
Object.setPrototypeOf(this, _DocumentNotFoundException.prototype);
|
|
408
409
|
}
|
|
409
410
|
};
|
|
411
|
+
|
|
412
|
+
// src/errorcodes.ts
|
|
413
|
+
var errorcodes_exports = {};
|
|
414
|
+
__export(errorcodes_exports, {
|
|
415
|
+
CustomerNotFound: () => CustomerNotFound,
|
|
416
|
+
DocumentNotFound: () => DocumentNotFound,
|
|
417
|
+
InvalidEmail: () => InvalidEmail,
|
|
418
|
+
InvalidName: () => InvalidName,
|
|
419
|
+
InvalidPassword: () => InvalidPassword,
|
|
420
|
+
InvalidPushToken: () => InvalidPushToken,
|
|
421
|
+
UserNotFound: () => UserNotFound
|
|
422
|
+
});
|
|
423
|
+
var DocumentNotFound = "4001";
|
|
424
|
+
var UserNotFound = "4002";
|
|
425
|
+
var CustomerNotFound = "4003";
|
|
426
|
+
var InvalidEmail = "4006";
|
|
427
|
+
var InvalidPassword = "4007";
|
|
428
|
+
var InvalidName = "4008";
|
|
429
|
+
var InvalidPushToken = "4009";
|
|
410
430
|
// Annotate the CommonJS export names for ESM import in node:
|
|
411
431
|
0 && (module.exports = {
|
|
412
432
|
Customer,
|
|
413
433
|
CustomerMinified,
|
|
414
434
|
CustomerNotiHubStats,
|
|
415
435
|
DocumentNotFoundException,
|
|
436
|
+
ErrorCode,
|
|
416
437
|
MongooseClient,
|
|
417
438
|
NotiHubStatsHistory,
|
|
418
439
|
NotiTypeModel,
|
package/dist/index.d.cts
CHANGED
|
@@ -236,4 +236,23 @@ declare class DocumentNotFoundException extends Error {
|
|
|
236
236
|
constructor(msg: string);
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
declare const DocumentNotFound = "4001";
|
|
240
|
+
declare const UserNotFound = "4002";
|
|
241
|
+
declare const CustomerNotFound = "4003";
|
|
242
|
+
declare const InvalidEmail = "4006";
|
|
243
|
+
declare const InvalidPassword = "4007";
|
|
244
|
+
declare const InvalidName = "4008";
|
|
245
|
+
declare const InvalidPushToken = "4009";
|
|
246
|
+
|
|
247
|
+
declare const errorcodes_CustomerNotFound: typeof CustomerNotFound;
|
|
248
|
+
declare const errorcodes_DocumentNotFound: typeof DocumentNotFound;
|
|
249
|
+
declare const errorcodes_InvalidEmail: typeof InvalidEmail;
|
|
250
|
+
declare const errorcodes_InvalidName: typeof InvalidName;
|
|
251
|
+
declare const errorcodes_InvalidPassword: typeof InvalidPassword;
|
|
252
|
+
declare const errorcodes_InvalidPushToken: typeof InvalidPushToken;
|
|
253
|
+
declare const errorcodes_UserNotFound: typeof UserNotFound;
|
|
254
|
+
declare namespace errorcodes {
|
|
255
|
+
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 };
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
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 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, Subscription, SubscriptionType, UserModel, ViewsModel, addMonths, getDate, getDateFormat };
|
package/dist/index.d.ts
CHANGED
|
@@ -236,4 +236,23 @@ declare class DocumentNotFoundException extends Error {
|
|
|
236
236
|
constructor(msg: string);
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
declare const DocumentNotFound = "4001";
|
|
240
|
+
declare const UserNotFound = "4002";
|
|
241
|
+
declare const CustomerNotFound = "4003";
|
|
242
|
+
declare const InvalidEmail = "4006";
|
|
243
|
+
declare const InvalidPassword = "4007";
|
|
244
|
+
declare const InvalidName = "4008";
|
|
245
|
+
declare const InvalidPushToken = "4009";
|
|
246
|
+
|
|
247
|
+
declare const errorcodes_CustomerNotFound: typeof CustomerNotFound;
|
|
248
|
+
declare const errorcodes_DocumentNotFound: typeof DocumentNotFound;
|
|
249
|
+
declare const errorcodes_InvalidEmail: typeof InvalidEmail;
|
|
250
|
+
declare const errorcodes_InvalidName: typeof InvalidName;
|
|
251
|
+
declare const errorcodes_InvalidPassword: typeof InvalidPassword;
|
|
252
|
+
declare const errorcodes_InvalidPushToken: typeof InvalidPushToken;
|
|
253
|
+
declare const errorcodes_UserNotFound: typeof UserNotFound;
|
|
254
|
+
declare namespace errorcodes {
|
|
255
|
+
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 };
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
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 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, Subscription, SubscriptionType, UserModel, ViewsModel, addMonths, getDate, getDateFormat };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
1
7
|
// src/util/index.ts
|
|
2
8
|
function getDate(dateStr) {
|
|
3
9
|
const date = new Date(dateStr);
|
|
@@ -348,18 +354,38 @@ var Connect = () => mongoose3.connect(
|
|
|
348
354
|
});
|
|
349
355
|
var MongooseClient_default = Connect;
|
|
350
356
|
|
|
351
|
-
// src/
|
|
357
|
+
// src/exceptions.ts
|
|
352
358
|
var DocumentNotFoundException = class _DocumentNotFoundException extends Error {
|
|
353
359
|
constructor(msg) {
|
|
354
360
|
super(msg);
|
|
355
361
|
Object.setPrototypeOf(this, _DocumentNotFoundException.prototype);
|
|
356
362
|
}
|
|
357
363
|
};
|
|
364
|
+
|
|
365
|
+
// src/errorcodes.ts
|
|
366
|
+
var errorcodes_exports = {};
|
|
367
|
+
__export(errorcodes_exports, {
|
|
368
|
+
CustomerNotFound: () => CustomerNotFound,
|
|
369
|
+
DocumentNotFound: () => DocumentNotFound,
|
|
370
|
+
InvalidEmail: () => InvalidEmail,
|
|
371
|
+
InvalidName: () => InvalidName,
|
|
372
|
+
InvalidPassword: () => InvalidPassword,
|
|
373
|
+
InvalidPushToken: () => InvalidPushToken,
|
|
374
|
+
UserNotFound: () => UserNotFound
|
|
375
|
+
});
|
|
376
|
+
var DocumentNotFound = "4001";
|
|
377
|
+
var UserNotFound = "4002";
|
|
378
|
+
var CustomerNotFound = "4003";
|
|
379
|
+
var InvalidEmail = "4006";
|
|
380
|
+
var InvalidPassword = "4007";
|
|
381
|
+
var InvalidName = "4008";
|
|
382
|
+
var InvalidPushToken = "4009";
|
|
358
383
|
export {
|
|
359
384
|
CustomerModel_default as Customer,
|
|
360
385
|
CustomerMinifiedModel_default as CustomerMinified,
|
|
361
386
|
CustomerNotiHubStatsModel_default as CustomerNotiHubStats,
|
|
362
387
|
DocumentNotFoundException,
|
|
388
|
+
errorcodes_exports as ErrorCode,
|
|
363
389
|
MongooseClient_default as MongooseClient,
|
|
364
390
|
NotiHubStatsHistoryModel_default as NotiHubStatsHistory,
|
|
365
391
|
NotiTypeModel_default as NotiTypeModel,
|