@trm-market-pulse/shared-types 1.0.0
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/README.md +131 -0
- package/dist/enums/audit-types.d.ts +19 -0
- package/dist/enums/audit-types.d.ts.map +1 -0
- package/dist/enums/audit-types.js +23 -0
- package/dist/enums/audit-types.js.map +1 -0
- package/dist/enums/cache-keys.d.ts +12 -0
- package/dist/enums/cache-keys.d.ts.map +1 -0
- package/dist/enums/cache-keys.js +16 -0
- package/dist/enums/cache-keys.js.map +1 -0
- package/dist/enums/collections.d.ts +16 -0
- package/dist/enums/collections.d.ts.map +1 -0
- package/dist/enums/collections.js +20 -0
- package/dist/enums/collections.js.map +1 -0
- package/dist/enums/currencies.d.ts +5 -0
- package/dist/enums/currencies.d.ts.map +1 -0
- package/dist/enums/currencies.js +9 -0
- package/dist/enums/currencies.js.map +1 -0
- package/dist/enums/errors.d.ts +17 -0
- package/dist/enums/errors.d.ts.map +1 -0
- package/dist/enums/errors.js +21 -0
- package/dist/enums/errors.js.map +1 -0
- package/dist/enums/news-filter-types.d.ts +5 -0
- package/dist/enums/news-filter-types.d.ts.map +1 -0
- package/dist/enums/news-filter-types.js +9 -0
- package/dist/enums/news-filter-types.js.map +1 -0
- package/dist/enums/notification-method.d.ts +6 -0
- package/dist/enums/notification-method.d.ts.map +1 -0
- package/dist/enums/notification-method.js +10 -0
- package/dist/enums/notification-method.js.map +1 -0
- package/dist/enums/rate-source.d.ts +8 -0
- package/dist/enums/rate-source.d.ts.map +1 -0
- package/dist/enums/rate-source.js +12 -0
- package/dist/enums/rate-source.js.map +1 -0
- package/dist/enums/roles.d.ts +5 -0
- package/dist/enums/roles.d.ts.map +1 -0
- package/dist/enums/roles.js +9 -0
- package/dist/enums/roles.js.map +1 -0
- package/dist/enums/subscriptions.d.ts +6 -0
- package/dist/enums/subscriptions.d.ts.map +1 -0
- package/dist/enums/subscriptions.js +10 -0
- package/dist/enums/subscriptions.js.map +1 -0
- package/dist/enums/treshold-condition.d.ts +6 -0
- package/dist/enums/treshold-condition.d.ts.map +1 -0
- package/dist/enums/treshold-condition.js +10 -0
- package/dist/enums/treshold-condition.js.map +1 -0
- package/dist/enums/trm-filter-date.d.ts +11 -0
- package/dist/enums/trm-filter-date.d.ts.map +1 -0
- package/dist/enums/trm-filter-date.js +15 -0
- package/dist/enums/trm-filter-date.js.map +1 -0
- package/dist/errors/BaseError.d.ts +8 -0
- package/dist/errors/BaseError.d.ts.map +1 -0
- package/dist/errors/BaseError.js +13 -0
- package/dist/errors/BaseError.js.map +1 -0
- package/dist/errors/BusinessError.d.ts +6 -0
- package/dist/errors/BusinessError.d.ts.map +1 -0
- package/dist/errors/BusinessError.js +17 -0
- package/dist/errors/BusinessError.js.map +1 -0
- package/dist/errors/ForbiddenError.d.ts +6 -0
- package/dist/errors/ForbiddenError.d.ts.map +1 -0
- package/dist/errors/ForbiddenError.js +17 -0
- package/dist/errors/ForbiddenError.js.map +1 -0
- package/dist/errors/NotFoundError.d.ts +6 -0
- package/dist/errors/NotFoundError.d.ts.map +1 -0
- package/dist/errors/NotFoundError.js +17 -0
- package/dist/errors/NotFoundError.js.map +1 -0
- package/dist/errors/ServerError.d.ts +6 -0
- package/dist/errors/ServerError.d.ts.map +1 -0
- package/dist/errors/ServerError.js +17 -0
- package/dist/errors/ServerError.js.map +1 -0
- package/dist/errors/UnauthorizedError.d.ts +6 -0
- package/dist/errors/UnauthorizedError.d.ts.map +1 -0
- package/dist/errors/UnauthorizedError.js +17 -0
- package/dist/errors/UnauthorizedError.js.map +1 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +85 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/entities/IAuditHistory.interface.d.ts +22 -0
- package/dist/interfaces/entities/IAuditHistory.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/IAuditHistory.interface.js +3 -0
- package/dist/interfaces/entities/IAuditHistory.interface.js.map +1 -0
- package/dist/interfaces/entities/INew.interface.d.ts +25 -0
- package/dist/interfaces/entities/INew.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/INew.interface.js +3 -0
- package/dist/interfaces/entities/INew.interface.js.map +1 -0
- package/dist/interfaces/entities/INewLike.interface.d.ts +7 -0
- package/dist/interfaces/entities/INewLike.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/INewLike.interface.js +3 -0
- package/dist/interfaces/entities/INewLike.interface.js.map +1 -0
- package/dist/interfaces/entities/INotificationHistory.interface.d.ts +14 -0
- package/dist/interfaces/entities/INotificationHistory.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/INotificationHistory.interface.js +3 -0
- package/dist/interfaces/entities/INotificationHistory.interface.js.map +1 -0
- package/dist/interfaces/entities/ISnapshotHistory.interface.d.ts +17 -0
- package/dist/interfaces/entities/ISnapshotHistory.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/ISnapshotHistory.interface.js +3 -0
- package/dist/interfaces/entities/ISnapshotHistory.interface.js.map +1 -0
- package/dist/interfaces/entities/ISnapshotRate.inteface.d.ts +15 -0
- package/dist/interfaces/entities/ISnapshotRate.inteface.d.ts.map +1 -0
- package/dist/interfaces/entities/ISnapshotRate.inteface.js +3 -0
- package/dist/interfaces/entities/ISnapshotRate.inteface.js.map +1 -0
- package/dist/interfaces/entities/ISyncNewsChangelog.interface.d.ts +9 -0
- package/dist/interfaces/entities/ISyncNewsChangelog.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/ISyncNewsChangelog.interface.js +3 -0
- package/dist/interfaces/entities/ISyncNewsChangelog.interface.js.map +1 -0
- package/dist/interfaces/entities/ISyncSnapshotRate.interface.d.ts +8 -0
- package/dist/interfaces/entities/ISyncSnapshotRate.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/ISyncSnapshotRate.interface.js +3 -0
- package/dist/interfaces/entities/ISyncSnapshotRate.interface.js.map +1 -0
- package/dist/interfaces/entities/ISyncTrmChangelog.interface.d.ts +13 -0
- package/dist/interfaces/entities/ISyncTrmChangelog.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/ISyncTrmChangelog.interface.js +3 -0
- package/dist/interfaces/entities/ISyncTrmChangelog.interface.js.map +1 -0
- package/dist/interfaces/entities/IThreshold.interface.d.ts +20 -0
- package/dist/interfaces/entities/IThreshold.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/IThreshold.interface.js +3 -0
- package/dist/interfaces/entities/IThreshold.interface.js.map +1 -0
- package/dist/interfaces/entities/IThresholdSubscription.interface.d.ts +14 -0
- package/dist/interfaces/entities/IThresholdSubscription.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/IThresholdSubscription.interface.js +3 -0
- package/dist/interfaces/entities/IThresholdSubscription.interface.js.map +1 -0
- package/dist/interfaces/entities/ITrmRate.interface.d.ts +14 -0
- package/dist/interfaces/entities/ITrmRate.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/ITrmRate.interface.js +3 -0
- package/dist/interfaces/entities/ITrmRate.interface.js.map +1 -0
- package/dist/interfaces/entities/IUser.interface.d.ts +21 -0
- package/dist/interfaces/entities/IUser.interface.d.ts.map +1 -0
- package/dist/interfaces/entities/IUser.interface.js +3 -0
- package/dist/interfaces/entities/IUser.interface.js.map +1 -0
- package/dist/interfaces/general/IApiResponse.d.ts +9 -0
- package/dist/interfaces/general/IApiResponse.d.ts.map +1 -0
- package/dist/interfaces/general/IApiResponse.js +3 -0
- package/dist/interfaces/general/IApiResponse.js.map +1 -0
- package/dist/interfaces/general/IConfigServer.d.ts +22 -0
- package/dist/interfaces/general/IConfigServer.d.ts.map +1 -0
- package/dist/interfaces/general/IConfigServer.js +3 -0
- package/dist/interfaces/general/IConfigServer.js.map +1 -0
- package/dist/interfaces/general/ICrypt.d.ts +5 -0
- package/dist/interfaces/general/ICrypt.d.ts.map +1 -0
- package/dist/interfaces/general/ICrypt.js +3 -0
- package/dist/interfaces/general/ICrypt.js.map +1 -0
- package/dist/interfaces/general/IEmail.d.ts +23 -0
- package/dist/interfaces/general/IEmail.d.ts.map +1 -0
- package/dist/interfaces/general/IEmail.js +3 -0
- package/dist/interfaces/general/IEmail.js.map +1 -0
- package/dist/interfaces/general/IEmailTemplateOptions.d.ts +14 -0
- package/dist/interfaces/general/IEmailTemplateOptions.d.ts.map +1 -0
- package/dist/interfaces/general/IEmailTemplateOptions.js +3 -0
- package/dist/interfaces/general/IEmailTemplateOptions.js.map +1 -0
- package/dist/interfaces/general/IHealthCheckResponse.d.ts +6 -0
- package/dist/interfaces/general/IHealthCheckResponse.d.ts.map +1 -0
- package/dist/interfaces/general/IHealthCheckResponse.js +3 -0
- package/dist/interfaces/general/IHealthCheckResponse.js.map +1 -0
- package/dist/interfaces/general/IOtp.d.ts +4 -0
- package/dist/interfaces/general/IOtp.d.ts.map +1 -0
- package/dist/interfaces/general/IOtp.js +3 -0
- package/dist/interfaces/general/IOtp.js.map +1 -0
- package/dist/interfaces/general/IPaginatedResponse.d.ts +6 -0
- package/dist/interfaces/general/IPaginatedResponse.d.ts.map +1 -0
- package/dist/interfaces/general/IPaginatedResponse.js +3 -0
- package/dist/interfaces/general/IPaginatedResponse.js.map +1 -0
- package/dist/interfaces/general/IPagination.d.ts +7 -0
- package/dist/interfaces/general/IPagination.d.ts.map +1 -0
- package/dist/interfaces/general/IPagination.js +3 -0
- package/dist/interfaces/general/IPagination.js.map +1 -0
- package/dist/interfaces/general/IServerInit.d.ts +9 -0
- package/dist/interfaces/general/IServerInit.d.ts.map +1 -0
- package/dist/interfaces/general/IServerInit.js +3 -0
- package/dist/interfaces/general/IServerInit.js.map +1 -0
- package/dist/interfaces/general/IUuid.d.ts +4 -0
- package/dist/interfaces/general/IUuid.d.ts.map +1 -0
- package/dist/interfaces/general/IUuid.js +3 -0
- package/dist/interfaces/general/IUuid.js.map +1 -0
- package/dist/interfaces/repositories/IAudit-history.repository.d.ts +6 -0
- package/dist/interfaces/repositories/IAudit-history.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/IAudit-history.repository.js +3 -0
- package/dist/interfaces/repositories/IAudit-history.repository.js.map +1 -0
- package/dist/interfaces/repositories/INew-like.repository.d.ts +11 -0
- package/dist/interfaces/repositories/INew-like.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/INew-like.repository.js +3 -0
- package/dist/interfaces/repositories/INew-like.repository.js.map +1 -0
- package/dist/interfaces/repositories/INew.repository.d.ts +20 -0
- package/dist/interfaces/repositories/INew.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/INew.repository.js +3 -0
- package/dist/interfaces/repositories/INew.repository.js.map +1 -0
- package/dist/interfaces/repositories/INotification-history.repository.d.ts +5 -0
- package/dist/interfaces/repositories/INotification-history.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/INotification-history.repository.js +3 -0
- package/dist/interfaces/repositories/INotification-history.repository.js.map +1 -0
- package/dist/interfaces/repositories/ISnapshot-history.repository.d.ts +10 -0
- package/dist/interfaces/repositories/ISnapshot-history.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/ISnapshot-history.repository.js +3 -0
- package/dist/interfaces/repositories/ISnapshot-history.repository.js.map +1 -0
- package/dist/interfaces/repositories/ISnapshot-rate.repository.d.ts +21 -0
- package/dist/interfaces/repositories/ISnapshot-rate.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/ISnapshot-rate.repository.js +3 -0
- package/dist/interfaces/repositories/ISnapshot-rate.repository.js.map +1 -0
- package/dist/interfaces/repositories/ITreshold-subscription.repository.d.ts +17 -0
- package/dist/interfaces/repositories/ITreshold-subscription.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/ITreshold-subscription.repository.js +3 -0
- package/dist/interfaces/repositories/ITreshold-subscription.repository.js.map +1 -0
- package/dist/interfaces/repositories/ITreshold.repository.d.ts +14 -0
- package/dist/interfaces/repositories/ITreshold.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/ITreshold.repository.js +3 -0
- package/dist/interfaces/repositories/ITreshold.repository.js.map +1 -0
- package/dist/interfaces/repositories/ITrm-rate.repository.d.ts +15 -0
- package/dist/interfaces/repositories/ITrm-rate.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/ITrm-rate.repository.js +3 -0
- package/dist/interfaces/repositories/ITrm-rate.repository.js.map +1 -0
- package/dist/interfaces/repositories/IUser.repository.d.ts +11 -0
- package/dist/interfaces/repositories/IUser.repository.d.ts.map +1 -0
- package/dist/interfaces/repositories/IUser.repository.js +3 -0
- package/dist/interfaces/repositories/IUser.repository.js.map +1 -0
- package/dist/interfaces/services/IAuth.service.d.ts +18 -0
- package/dist/interfaces/services/IAuth.service.d.ts.map +1 -0
- package/dist/interfaces/services/IAuth.service.js +3 -0
- package/dist/interfaces/services/IAuth.service.js.map +1 -0
- package/dist/interfaces/services/INew.service.d.ts +32 -0
- package/dist/interfaces/services/INew.service.d.ts.map +1 -0
- package/dist/interfaces/services/INew.service.js +3 -0
- package/dist/interfaces/services/INew.service.js.map +1 -0
- package/dist/interfaces/services/ISnapshotRate.service.d.ts +8 -0
- package/dist/interfaces/services/ISnapshotRate.service.d.ts.map +1 -0
- package/dist/interfaces/services/ISnapshotRate.service.js +3 -0
- package/dist/interfaces/services/ISnapshotRate.service.js.map +1 -0
- package/dist/interfaces/services/ITreshold.service.d.ts +28 -0
- package/dist/interfaces/services/ITreshold.service.d.ts.map +1 -0
- package/dist/interfaces/services/ITreshold.service.js +3 -0
- package/dist/interfaces/services/ITreshold.service.js.map +1 -0
- package/dist/interfaces/services/ITrmRate.service.d.ts +20 -0
- package/dist/interfaces/services/ITrmRate.service.d.ts.map +1 -0
- package/dist/interfaces/services/ITrmRate.service.js +3 -0
- package/dist/interfaces/services/ITrmRate.service.js.map +1 -0
- package/dist/interfaces/services/IUser.service.d.ts +13 -0
- package/dist/interfaces/services/IUser.service.d.ts.map +1 -0
- package/dist/interfaces/services/IUser.service.js +3 -0
- package/dist/interfaces/services/IUser.service.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IThresholdSubscription.interface.js","sourceRoot":"","sources":["../../../src/interfaces/entities/IThresholdSubscription.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Currencies } from '../../enums/currencies';
|
|
2
|
+
import { RateSource } from '../../enums/rate-source';
|
|
3
|
+
export interface ITrmRate {
|
|
4
|
+
value: number;
|
|
5
|
+
timestamp: number;
|
|
6
|
+
datetime: Date;
|
|
7
|
+
datetimeUTC: Date;
|
|
8
|
+
source: RateSource;
|
|
9
|
+
localCurrency: Currencies;
|
|
10
|
+
foreignCurrency: Currencies;
|
|
11
|
+
timeZone: string;
|
|
12
|
+
syncedAt: Date;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ITrmRate.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITrmRate.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/entities/ITrmRate.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,IAAI,CAAC;IACf,WAAW,EAAE,IAAI,CAAC;IAClB,MAAM,EAAE,UAAU,CAAC;IACnB,aAAa,EAAE,UAAU,CAAC;IAC1B,eAAe,EAAE,UAAU,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,IAAI,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITrmRate.interface.js","sourceRoot":"","sources":["../../../src/interfaces/entities/ITrmRate.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IUser {
|
|
2
|
+
uuid: string;
|
|
3
|
+
email: string;
|
|
4
|
+
name: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
phone: string | null;
|
|
7
|
+
address: string | null;
|
|
8
|
+
city: string | null;
|
|
9
|
+
state: string | null;
|
|
10
|
+
zip: string | null;
|
|
11
|
+
country: string | null;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
password: string;
|
|
14
|
+
role: string | null;
|
|
15
|
+
subscription: string | null;
|
|
16
|
+
subscriptionExpiresAt: Date | null;
|
|
17
|
+
termsAccepted: boolean;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=IUser.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IUser.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/entities/IUser.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qBAAqB,EAAE,IAAI,GAAG,IAAI,CAAC;IACnC,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IUser.interface.js","sourceRoot":"","sources":["../../../src/interfaces/entities/IUser.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IApiResponse.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IApiResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,GAAG;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IApiResponse.js","sourceRoot":"","sources":["../../../src/interfaces/general/IApiResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IConfigServer {
|
|
2
|
+
port: number;
|
|
3
|
+
cors: {
|
|
4
|
+
origin: string;
|
|
5
|
+
};
|
|
6
|
+
environment: string;
|
|
7
|
+
apiVersions: string[];
|
|
8
|
+
mongodbUri: string;
|
|
9
|
+
mongodbDbName: string;
|
|
10
|
+
maxRequestRateLimit: number;
|
|
11
|
+
maxTimeoutRateLimit: number;
|
|
12
|
+
jwtSecret: string;
|
|
13
|
+
jwtExpirationTime: string;
|
|
14
|
+
saltRounds: number;
|
|
15
|
+
redisUrl: string;
|
|
16
|
+
jwtRecoveryPasswordSecret: string;
|
|
17
|
+
jwtRecoveryPasswordExpirationTime: string;
|
|
18
|
+
resendApiKey: string;
|
|
19
|
+
frontendUrl: string;
|
|
20
|
+
emailFromDomain: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=IConfigServer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IConfigServer.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IConfigServer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB,EAAE,MAAM,CAAC;IAClC,iCAAiC,EAAE,MAAM,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IConfigServer.js","sourceRoot":"","sources":["../../../src/interfaces/general/IConfigServer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICrypt.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/ICrypt.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICrypt.js","sourceRoot":"","sources":["../../../src/interfaces/general/ICrypt.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IEmailTemplateOptions } from './IEmailTemplateOptions';
|
|
2
|
+
export interface IEmail {
|
|
3
|
+
sendPlainText: ({ email, subject, text, }: {
|
|
4
|
+
email: string;
|
|
5
|
+
subject: string;
|
|
6
|
+
text: string;
|
|
7
|
+
}) => Promise<void>;
|
|
8
|
+
sendHtml: ({ email, subject, html, }: {
|
|
9
|
+
email: string;
|
|
10
|
+
subject: string;
|
|
11
|
+
html: string;
|
|
12
|
+
}) => Promise<void>;
|
|
13
|
+
generateEmailTemplate: (options: IEmailTemplateOptions) => string;
|
|
14
|
+
welcomeEmailTemplate: (userName: string, loginUrl: string) => string;
|
|
15
|
+
emailVerificationEmailTemplate: (verificationUrl: string) => string;
|
|
16
|
+
passwordResetEmailTemplate: (resetUrl: string, expiresIn: string) => string;
|
|
17
|
+
passwordChangedEmailTemplate: () => string;
|
|
18
|
+
priceAlertEmailTemplate: (alertName: string, currentPrice: number, targetPrice: number, alertUrl: string) => string;
|
|
19
|
+
accountLockedEmailTemplate: (unlockUrl: string) => string;
|
|
20
|
+
otpVerificationEmailTemplate: (otp: string) => string;
|
|
21
|
+
emailVerifiedEmailTemplate: () => string;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=IEmail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEmail.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IEmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,MAAM;IACrB,aAAa,EAAE,CAAC,EACd,KAAK,EACL,OAAO,EACP,IAAI,GACL,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,QAAQ,EAAE,CAAC,EACT,KAAK,EACL,OAAO,EACP,IAAI,GACL,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,qBAAqB,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,MAAM,CAAC;IAClE,oBAAoB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACrE,8BAA8B,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,MAAM,CAAC;IACpE,0BAA0B,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5E,4BAA4B,EAAE,MAAM,MAAM,CAAC;IAC3C,uBAAuB,EAAE,CACvB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,KACb,MAAM,CAAC;IACZ,0BAA0B,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,4BAA4B,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACtD,0BAA0B,EAAE,MAAM,MAAM,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEmail.js","sourceRoot":"","sources":["../../../src/interfaces/general/IEmail.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IEmailTemplateOptions {
|
|
2
|
+
title: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
iconIsImage?: boolean;
|
|
6
|
+
badgeText?: string;
|
|
7
|
+
badgeIcon?: string;
|
|
8
|
+
features?: string[];
|
|
9
|
+
buttonText?: string;
|
|
10
|
+
buttonUrl?: string;
|
|
11
|
+
buttonIcon?: string;
|
|
12
|
+
footerText?: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=IEmailTemplateOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEmailTemplateOptions.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IEmailTemplateOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEmailTemplateOptions.js","sourceRoot":"","sources":["../../../src/interfaces/general/IEmailTemplateOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHealthCheckResponse.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IHealthCheckResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHealthCheckResponse.js","sourceRoot":"","sources":["../../../src/interfaces/general/IHealthCheckResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOtp.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IOtp.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACnB,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOtp.js","sourceRoot":"","sources":["../../../src/interfaces/general/IOtp.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPaginatedResponse.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IPaginatedResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,UAAU,EAAE,WAAW,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPaginatedResponse.js","sourceRoot":"","sources":["../../../src/interfaces/general/IPaginatedResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPagination.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IPagination.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPagination.js","sourceRoot":"","sources":["../../../src/interfaces/general/IPagination.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Application } from 'express';
|
|
2
|
+
import { Logger } from 'winston';
|
|
3
|
+
import { IConfigServer } from './IConfigServer';
|
|
4
|
+
export interface IServerInit {
|
|
5
|
+
app: Application;
|
|
6
|
+
config: IConfigServer;
|
|
7
|
+
logger: Logger;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=IServerInit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IServerInit.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IServerInit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,WAAW,CAAC;IACjB,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IServerInit.js","sourceRoot":"","sources":["../../../src/interfaces/general/IServerInit.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IUuid.d.ts","sourceRoot":"","sources":["../../../src/interfaces/general/IUuid.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IUuid.js","sourceRoot":"","sources":["../../../src/interfaces/general/IUuid.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ClientSession } from 'mongodb';
|
|
2
|
+
import { IAuditHistory } from '../entities/IAuditHistory.interface';
|
|
3
|
+
export interface IAuditHistoryRepository {
|
|
4
|
+
create: (auditHistory: IAuditHistory, session?: ClientSession) => Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=IAudit-history.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAudit-history.repository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/repositories/IAudit-history.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAudit-history.repository.js","sourceRoot":"","sources":["../../../src/interfaces/repositories/IAudit-history.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientSession } from 'mongodb';
|
|
2
|
+
import { INewLike } from '../entities/INewLike.interface';
|
|
3
|
+
export interface INewLikeRepository {
|
|
4
|
+
findByNewId: (newId: string, session?: ClientSession) => Promise<INewLike[]>;
|
|
5
|
+
findByUserId: (userId: string, session?: ClientSession) => Promise<INewLike[]>;
|
|
6
|
+
findByNewIdAndUserId: (newId: string, userId: string, session?: ClientSession) => Promise<INewLike | null>;
|
|
7
|
+
findByNewsIdsAndUserId: (newsIds: string[], userId: string, session?: ClientSession) => Promise<INewLike[]>;
|
|
8
|
+
create: (newLike: INewLike, session?: ClientSession) => Promise<INewLike>;
|
|
9
|
+
delete: (id: string, session?: ClientSession) => Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=INew-like.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INew-like.repository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/repositories/INew-like.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC7E,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/E,oBAAoB,EAAE,CACpB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IAC9B,sBAAsB,EAAE,CACtB,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzB,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1E,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INew-like.repository.js","sourceRoot":"","sources":["../../../src/interfaces/repositories/INew-like.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ClientSession } from 'mongodb';
|
|
2
|
+
import { INew } from '../entities/INew.interface';
|
|
3
|
+
export interface INewRepository {
|
|
4
|
+
findAll: ({ page, limit, sort, filter, }: {
|
|
5
|
+
page?: number;
|
|
6
|
+
limit?: number;
|
|
7
|
+
sort?: {
|
|
8
|
+
[key: string]: 1 | -1;
|
|
9
|
+
};
|
|
10
|
+
filter?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
}, session?: ClientSession) => Promise<INew[]>;
|
|
14
|
+
count: (filter?: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}, session?: ClientSession) => Promise<number>;
|
|
17
|
+
incrementLikes: (newId: string, session?: ClientSession) => Promise<void>;
|
|
18
|
+
decrementLikes: (newId: string, session?: ClientSession) => Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=INew.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INew.repository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/repositories/INew.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,CACP,EACE,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,GACP,EAAE;QACD,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE;YACL,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SACvB,CAAC;QACF,MAAM,CAAC,EAAE;YACP,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACpB,CAAC;KACH,EACD,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACrB,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACrF,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1E,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INew.repository.js","sourceRoot":"","sources":["../../../src/interfaces/repositories/INew.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { INotificationHistory } from '../entities/INotificationHistory.interface';
|
|
2
|
+
export interface INotificationHistoryRepository {
|
|
3
|
+
findByTresholdIdsAndUserId: (tresholdIds: string[], userId: string) => Promise<INotificationHistory[]>;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=INotification-history.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INotification-history.repository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/repositories/INotification-history.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,MAAM,WAAW,8BAA8B;IAC7C,0BAA0B,EAAE,CAC1B,WAAW,EAAE,MAAM,EAAE,EACrB,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INotification-history.repository.js","sourceRoot":"","sources":["../../../src/interfaces/repositories/INotification-history.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ISnapshotHistory } from '../entities/ISnapshotHistory.interface';
|
|
2
|
+
export interface ISnapshotHistoryRepository {
|
|
3
|
+
findByDateAndSourceAndLocalCurrencyAndForeignCurrency: ({ date, source, localCurrency, foreignCurrency, }: {
|
|
4
|
+
date: string;
|
|
5
|
+
source: string;
|
|
6
|
+
localCurrency: string;
|
|
7
|
+
foreignCurrency: string;
|
|
8
|
+
}) => Promise<ISnapshotHistory | null>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ISnapshot-history.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISnapshot-history.repository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/repositories/ISnapshot-history.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,MAAM,WAAW,0BAA0B;IACzC,qDAAqD,EAAE,CAAC,EACtD,IAAI,EACJ,MAAM,EACN,aAAa,EACb,eAAe,GAChB,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;KACzB,KAAK,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISnapshot-history.repository.js","sourceRoot":"","sources":["../../../src/interfaces/repositories/ISnapshot-history.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Currencies } from '../../enums/currencies';
|
|
2
|
+
import { RateSource } from '../../enums/rate-source';
|
|
3
|
+
import { ISnapshotRate } from '../entities/ISnapshotRate.inteface';
|
|
4
|
+
export interface ISnapshotRateRepository {
|
|
5
|
+
findAll: ({ page, limit, sort, filter, }: {
|
|
6
|
+
page?: number;
|
|
7
|
+
limit?: number;
|
|
8
|
+
sort?: {
|
|
9
|
+
[key: string]: 1 | -1;
|
|
10
|
+
};
|
|
11
|
+
filter?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}) => Promise<ISnapshotRate[]>;
|
|
15
|
+
findBySourceAndLocalCurrencyAndForeignCurrency: ({ source, localCurrency, foreignCurrency, }: {
|
|
16
|
+
source: RateSource;
|
|
17
|
+
localCurrency: Currencies;
|
|
18
|
+
foreignCurrency: Currencies;
|
|
19
|
+
}) => Promise<ISnapshotRate | null>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ISnapshot-rate.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISnapshot-rate.repository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/repositories/ISnapshot-rate.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,CAAC,EACR,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,GACP,EAAE;QACD,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE;YACL,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SACvB,CAAC;QACF,MAAM,CAAC,EAAE;YACP,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACpB,CAAC;KACH,KAAK,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAC/B,8CAA8C,EAAE,CAAC,EAC/C,MAAM,EACN,aAAa,EACb,eAAe,GAChB,EAAE;QACD,MAAM,EAAE,UAAU,CAAC;QACnB,aAAa,EAAE,UAAU,CAAC;QAC1B,eAAe,EAAE,UAAU,CAAC;KAC7B,KAAK,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISnapshot-rate.repository.js","sourceRoot":"","sources":["../../../src/interfaces/repositories/ISnapshot-rate.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ClientSession } from 'mongodb';
|
|
2
|
+
import { ITresholdSubscription } from '../entities/IThresholdSubscription.interface';
|
|
3
|
+
import { ITreshold } from '../entities/IThreshold.interface';
|
|
4
|
+
import { NotificationMethod } from '../../enums/notification-method';
|
|
5
|
+
export interface ITresholdSubscriptionRepository {
|
|
6
|
+
findByUserId: (userId: string, session?: ClientSession) => Promise<ITresholdSubscription[]>;
|
|
7
|
+
findByThresholdIdAndUserId: (thresholdId: string, userId: string, session?: ClientSession) => Promise<ITresholdSubscription | null>;
|
|
8
|
+
findTresholdSubscriptionsByUserId: (userId: string, session?: ClientSession) => Promise<(ITresholdSubscription & {
|
|
9
|
+
threshold: ITreshold;
|
|
10
|
+
})[]>;
|
|
11
|
+
countTresholdSubscriptionsByUserId: (userId: string, session?: ClientSession) => Promise<number>;
|
|
12
|
+
findByUuid: (uuid: string, session?: ClientSession) => Promise<ITresholdSubscription | null>;
|
|
13
|
+
create: (tresholdSubscription: ITresholdSubscription, session?: ClientSession) => Promise<ITresholdSubscription>;
|
|
14
|
+
updateTresholdSubscriptionStatus: (uuid: string, status: boolean, session?: ClientSession) => Promise<void>;
|
|
15
|
+
updateTresholdSubscriptionNotificationMethod: (uuid: string, notificationMethod: NotificationMethod, session?: ClientSession) => Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ITreshold-subscription.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITreshold-subscription.repository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/repositories/ITreshold-subscription.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,+BAA+B;IAC9C,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC5F,0BAA0B,EAAE,CAC1B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IAC3C,iCAAiC,EAAE,CACjC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,CAAC,qBAAqB,GAAG;QAAE,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC,EAAE,CAAC,CAAC;IACnE,kCAAkC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACjG,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IAC7F,MAAM,EAAE,CACN,oBAAoB,EAAE,qBAAqB,EAC3C,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACpC,gCAAgC,EAAE,CAChC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,4CAA4C,EAAE,CAC5C,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITreshold-subscription.repository.js","sourceRoot":"","sources":["../../../src/interfaces/repositories/ITreshold-subscription.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientSession } from 'mongodb';
|
|
2
|
+
import { ITreshold } from '../entities/IThreshold.interface';
|
|
3
|
+
export interface ITresholdRepository {
|
|
4
|
+
findByUuid: (uuid: string, session?: ClientSession) => Promise<ITreshold | null>;
|
|
5
|
+
findByUuids: (uuids: string[], session?: ClientSession) => Promise<ITreshold[]>;
|
|
6
|
+
findByFilters: (filters: {
|
|
7
|
+
searchText?: string;
|
|
8
|
+
isPublic?: boolean;
|
|
9
|
+
}, session?: ClientSession) => Promise<ITreshold[]>;
|
|
10
|
+
findPopularTresholds: (limit: number, session?: ClientSession) => Promise<ITreshold[]>;
|
|
11
|
+
incrementSubscriberCount: (uuid: string, session?: ClientSession) => Promise<void>;
|
|
12
|
+
create: (treshold: ITreshold, session?: ClientSession) => Promise<ITreshold>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ITreshold.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITreshold.repository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/repositories/ITreshold.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACjF,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IAChF,aAAa,EAAE,CACb,OAAO,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,EACpD,OAAO,CAAC,EAAE,aAAa,KACpB,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IAC1B,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IACvF,wBAAwB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnF,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CAC9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITreshold.repository.js","sourceRoot":"","sources":["../../../src/interfaces/repositories/ITreshold.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ITrmRate } from '../entities/ITrmRate.interface';
|
|
2
|
+
export interface ITrmRateRepository {
|
|
3
|
+
findAll: ({ page, limit, sort, filter, }: {
|
|
4
|
+
page?: number;
|
|
5
|
+
limit?: number;
|
|
6
|
+
sort?: {
|
|
7
|
+
[key: string]: 1 | -1;
|
|
8
|
+
};
|
|
9
|
+
filter?: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}) => Promise<ITrmRate[]>;
|
|
13
|
+
findCurrent: () => Promise<ITrmRate | null>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ITrm-rate.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITrm-rate.repository.d.ts","sourceRoot":"","sources":["../../../src/interfaces/repositories/ITrm-rate.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,CAAC,EACR,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,GACP,EAAE;QACD,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE;YACL,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SACvB,CAAC;QACF,MAAM,CAAC,EAAE;YACP,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACpB,CAAC;KACH,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC1B,WAAW,EAAE,MAAM,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;CAC7C"}
|