@abyss-project/main 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 +2 -0
- package/dist/api/application.admin.api.d.ts +8 -0
- package/dist/api/application.admin.api.js +35 -0
- package/dist/api/application.api.d.ts +7 -0
- package/dist/api/application.api.js +31 -0
- package/dist/api/auth.api.d.ts +10 -0
- package/dist/api/auth.api.js +57 -0
- package/dist/api/billing.api.d.ts +4 -0
- package/dist/api/billing.api.js +16 -0
- package/dist/api/gift-code.admin.api.d.ts +8 -0
- package/dist/api/gift-code.admin.api.js +34 -0
- package/dist/api/gift-code.api.d.ts +4 -0
- package/dist/api/gift-code.api.js +20 -0
- package/dist/api/index.d.ts +23 -0
- package/dist/api/index.js +39 -0
- package/dist/api/metrics.admin.api.d.ts +4 -0
- package/dist/api/metrics.admin.api.js +16 -0
- package/dist/api/monitor.api.d.ts +2 -0
- package/dist/api/monitor.api.js +8 -0
- package/dist/api/newsletter.admin.api.d.ts +6 -0
- package/dist/api/newsletter.admin.api.js +25 -0
- package/dist/api/project-access.admin.api.d.ts +12 -0
- package/dist/api/project-access.admin.api.js +48 -0
- package/dist/api/project-access.api.d.ts +14 -0
- package/dist/api/project-access.api.js +59 -0
- package/dist/api/project.admin.api.d.ts +6 -0
- package/dist/api/project.admin.api.js +28 -0
- package/dist/api/project.api.d.ts +14 -0
- package/dist/api/project.api.js +60 -0
- package/dist/api/user-credit-purchase.admin.api.d.ts +7 -0
- package/dist/api/user-credit-purchase.admin.api.js +28 -0
- package/dist/api/user-credit-purchase.api.d.ts +3 -0
- package/dist/api/user-credit-purchase.api.js +14 -0
- package/dist/api/user-notification.admin.api.d.ts +5 -0
- package/dist/api/user-notification.admin.api.js +20 -0
- package/dist/api/user-notification.api.d.ts +4 -0
- package/dist/api/user-notification.api.js +18 -0
- package/dist/api/user-ticket.admin.api.d.ts +11 -0
- package/dist/api/user-ticket.admin.api.js +49 -0
- package/dist/api/user-ticket.api.d.ts +10 -0
- package/dist/api/user-ticket.api.js +45 -0
- package/dist/api/user-transaction.admin.api.d.ts +5 -0
- package/dist/api/user-transaction.admin.api.js +20 -0
- package/dist/api/user-transaction.api.d.ts +3 -0
- package/dist/api/user-transaction.api.js +14 -0
- package/dist/api/user.admin.api.d.ts +10 -0
- package/dist/api/user.admin.api.js +41 -0
- package/dist/api/user.api.d.ts +19 -0
- package/dist/api/user.api.js +84 -0
- package/dist/front/index.d.ts +1 -0
- package/dist/front/index.js +17 -0
- package/dist/front/redirection.d.ts +2 -0
- package/dist/front/redirection.js +5 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +89 -0
- package/dist/translate/en.translate.d.ts +176 -0
- package/dist/translate/en.translate.js +180 -0
- package/dist/translate/fr.translate.d.ts +176 -0
- package/dist/translate/fr.translate.js +180 -0
- package/dist/translate/index.d.ts +2 -0
- package/dist/translate/index.js +18 -0
- package/dist/types/enum/abyss-service.enum.d.ts +10 -0
- package/dist/types/enum/abyss-service.enum.js +14 -0
- package/dist/types/enum/api-error.enum.d.ts +38 -0
- package/dist/types/enum/api-error.enum.js +43 -0
- package/dist/types/enum/billing-product.enum.d.ts +8 -0
- package/dist/types/enum/billing-product.enum.js +12 -0
- package/dist/types/enum/gift-code-type.enum.d.ts +3 -0
- package/dist/types/enum/gift-code-type.enum.js +7 -0
- package/dist/types/enum/index.d.ts +18 -0
- package/dist/types/enum/index.js +34 -0
- package/dist/types/enum/newsletter-type.enum.d.ts +3 -0
- package/dist/types/enum/newsletter-type.enum.js +7 -0
- package/dist/types/enum/oauth-account-type.enum.d.ts +3 -0
- package/dist/types/enum/oauth-account-type.enum.js +7 -0
- package/dist/types/enum/project-access-permission.enum.d.ts +13 -0
- package/dist/types/enum/project-access-permission.enum.js +17 -0
- package/dist/types/enum/project-application-access-permission.enum.d.ts +38 -0
- package/dist/types/enum/project-application-access-permission.enum.js +42 -0
- package/dist/types/enum/subscription-level.enum.d.ts +54 -0
- package/dist/types/enum/subscription-level.enum.js +125 -0
- package/dist/types/enum/token-type.enum.d.ts +5 -0
- package/dist/types/enum/token-type.enum.js +9 -0
- package/dist/types/enum/user-credit-purchase-currency.enum.d.ts +5 -0
- package/dist/types/enum/user-credit-purchase-currency.enum.js +9 -0
- package/dist/types/enum/user-credit-purchase-payment-method.enum.d.ts +3 -0
- package/dist/types/enum/user-credit-purchase-payment-method.enum.js +7 -0
- package/dist/types/enum/user-credit-purchase-platform.enum.d.ts +8 -0
- package/dist/types/enum/user-credit-purchase-platform.enum.js +12 -0
- package/dist/types/enum/user-language.enum.d.ts +4 -0
- package/dist/types/enum/user-language.enum.js +8 -0
- package/dist/types/enum/user-notification-content-type.enum.d.ts +279 -0
- package/dist/types/enum/user-notification-content-type.enum.js +50 -0
- package/dist/types/enum/user-notification-type.enum.d.ts +6 -0
- package/dist/types/enum/user-notification-type.enum.js +10 -0
- package/dist/types/enum/user-ticket-category.enum.d.ts +9 -0
- package/dist/types/enum/user-ticket-category.enum.js +13 -0
- package/dist/types/enum/user-transaction-type.enum.d.ts +14 -0
- package/dist/types/enum/user-transaction-type.enum.js +18 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.js +21 -0
- package/dist/types/interface/api/index.d.ts +48 -0
- package/dist/types/interface/api/index.js +64 -0
- package/dist/types/interface/api/requests/application.admin.request.d.ts +36 -0
- package/dist/types/interface/api/requests/application.admin.request.js +2 -0
- package/dist/types/interface/api/requests/application.request.d.ts +35 -0
- package/dist/types/interface/api/requests/application.request.js +2 -0
- package/dist/types/interface/api/requests/auth.request.d.ts +40 -0
- package/dist/types/interface/api/requests/auth.request.js +2 -0
- package/dist/types/interface/api/requests/billing.request.d.ts +9 -0
- package/dist/types/interface/api/requests/billing.request.js +2 -0
- package/dist/types/interface/api/requests/gift-code.admin.request.d.ts +53 -0
- package/dist/types/interface/api/requests/gift-code.admin.request.js +2 -0
- package/dist/types/interface/api/requests/gift-code.request.d.ts +12 -0
- package/dist/types/interface/api/requests/gift-code.request.js +2 -0
- package/dist/types/interface/api/requests/newsletter.admin.request.d.ts +21 -0
- package/dist/types/interface/api/requests/newsletter.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-access.admin.request.d.ts +72 -0
- package/dist/types/interface/api/requests/project-access.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-access.request.d.ts +78 -0
- package/dist/types/interface/api/requests/project-access.request.js +2 -0
- package/dist/types/interface/api/requests/project.admin.request.d.ts +26 -0
- package/dist/types/interface/api/requests/project.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project.request.d.ts +57 -0
- package/dist/types/interface/api/requests/project.request.js +2 -0
- package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +43 -0
- package/dist/types/interface/api/requests/user-credit-purchase.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +10 -0
- package/dist/types/interface/api/requests/user-credit-purchase.request.js +2 -0
- package/dist/types/interface/api/requests/user-notification.admin.request.d.ts +27 -0
- package/dist/types/interface/api/requests/user-notification.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user-notification.request.d.ts +14 -0
- package/dist/types/interface/api/requests/user-notification.request.js +2 -0
- package/dist/types/interface/api/requests/user-ticket.admin.request.d.ts +61 -0
- package/dist/types/interface/api/requests/user-ticket.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user-ticket.request.d.ts +50 -0
- package/dist/types/interface/api/requests/user-ticket.request.js +2 -0
- package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +31 -0
- package/dist/types/interface/api/requests/user-transaction.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user-transaction.request.d.ts +8 -0
- package/dist/types/interface/api/requests/user-transaction.request.js +2 -0
- package/dist/types/interface/api/requests/user.admin.request.d.ts +50 -0
- package/dist/types/interface/api/requests/user.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user.request.d.ts +85 -0
- package/dist/types/interface/api/requests/user.request.js +2 -0
- package/dist/types/interface/api/responses/application.admin.response.d.ts +28 -0
- package/dist/types/interface/api/responses/application.admin.response.js +2 -0
- package/dist/types/interface/api/responses/application.response.d.ts +25 -0
- package/dist/types/interface/api/responses/application.response.js +2 -0
- package/dist/types/interface/api/responses/auth.response.d.ts +42 -0
- package/dist/types/interface/api/responses/auth.response.js +2 -0
- package/dist/types/interface/api/responses/billing.response.d.ts +18 -0
- package/dist/types/interface/api/responses/billing.response.js +2 -0
- package/dist/types/interface/api/responses/gift-code.admin.response.d.ts +25 -0
- package/dist/types/interface/api/responses/gift-code.admin.response.js +2 -0
- package/dist/types/interface/api/responses/gift-code.response.d.ts +12 -0
- package/dist/types/interface/api/responses/gift-code.response.js +2 -0
- package/dist/types/interface/api/responses/metrics.admin.response.d.ts +40 -0
- package/dist/types/interface/api/responses/metrics.admin.response.js +2 -0
- package/dist/types/interface/api/responses/monitor.response.d.ts +7 -0
- package/dist/types/interface/api/responses/monitor.response.js +2 -0
- package/dist/types/interface/api/responses/newsletter.admin.response.d.ts +17 -0
- package/dist/types/interface/api/responses/newsletter.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-access.admin.response.d.ts +46 -0
- package/dist/types/interface/api/responses/project-access.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-access.response.d.ts +49 -0
- package/dist/types/interface/api/responses/project-access.response.js +2 -0
- package/dist/types/interface/api/responses/project.admin.response.d.ts +49 -0
- package/dist/types/interface/api/responses/project.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project.response.d.ts +94 -0
- package/dist/types/interface/api/responses/project.response.js +2 -0
- package/dist/types/interface/api/responses/user-credit-purchase.admin.response.d.ts +22 -0
- package/dist/types/interface/api/responses/user-credit-purchase.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user-credit-purchase.response.d.ts +8 -0
- package/dist/types/interface/api/responses/user-credit-purchase.response.js +2 -0
- package/dist/types/interface/api/responses/user-notification.admin.response.d.ts +19 -0
- package/dist/types/interface/api/responses/user-notification.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user-notification.response.d.ts +13 -0
- package/dist/types/interface/api/responses/user-notification.response.js +2 -0
- package/dist/types/interface/api/responses/user-ticket.admin.response.d.ts +38 -0
- package/dist/types/interface/api/responses/user-ticket.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user-ticket.response.d.ts +34 -0
- package/dist/types/interface/api/responses/user-ticket.response.js +2 -0
- package/dist/types/interface/api/responses/user-transaction.admin.response.d.ts +13 -0
- package/dist/types/interface/api/responses/user-transaction.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user-transaction.response.d.ts +11 -0
- package/dist/types/interface/api/responses/user-transaction.response.js +2 -0
- package/dist/types/interface/api/responses/user.admin.response.d.ts +33 -0
- package/dist/types/interface/api/responses/user.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user.response.d.ts +90 -0
- package/dist/types/interface/api/responses/user.response.js +2 -0
- package/dist/types/interface/api/type-message/api-error.d.ts +8 -0
- package/dist/types/interface/api/type-message/api-error.js +2 -0
- package/dist/types/interface/api/type-message/base-order.d.ts +4 -0
- package/dist/types/interface/api/type-message/base-order.js +2 -0
- package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -0
- package/dist/types/interface/api/type-message/base-paginate.js +2 -0
- package/dist/types/interface/api/type-message/response.d.ts +5 -0
- package/dist/types/interface/api/type-message/response.js +2 -0
- package/dist/types/interface/index.d.ts +21 -0
- package/dist/types/interface/index.js +37 -0
- package/dist/types/interface/models/application.model.d.ts +14 -0
- package/dist/types/interface/models/application.model.js +2 -0
- package/dist/types/interface/models/gift-code-activation.model.d.ts +13 -0
- package/dist/types/interface/models/gift-code-activation.model.js +2 -0
- package/dist/types/interface/models/gift-code.model.d.ts +18 -0
- package/dist/types/interface/models/gift-code.model.js +2 -0
- package/dist/types/interface/models/newsletter-history.model.d.ts +8 -0
- package/dist/types/interface/models/newsletter-history.model.js +2 -0
- package/dist/types/interface/models/newsletter-member.model.d.ts +7 -0
- package/dist/types/interface/models/newsletter-member.model.js +2 -0
- package/dist/types/interface/models/oauth-account.model.d.ts +17 -0
- package/dist/types/interface/models/oauth-account.model.js +2 -0
- package/dist/types/interface/models/project-access.model.d.ts +19 -0
- package/dist/types/interface/models/project-access.model.js +2 -0
- package/dist/types/interface/models/project-application-access.model.d.ts +13 -0
- package/dist/types/interface/models/project-application-access.model.js +2 -0
- package/dist/types/interface/models/project-authentication-session.model.d.ts +10 -0
- package/dist/types/interface/models/project-authentication-session.model.js +2 -0
- package/dist/types/interface/models/project-authentication.model.d.ts +10 -0
- package/dist/types/interface/models/project-authentication.model.js +2 -0
- package/dist/types/interface/models/project.model.d.ts +20 -0
- package/dist/types/interface/models/project.model.js +2 -0
- package/dist/types/interface/models/subscription.model.d.ts +16 -0
- package/dist/types/interface/models/subscription.model.js +2 -0
- package/dist/types/interface/models/token-history.model.d.ts +44 -0
- package/dist/types/interface/models/token-history.model.js +2 -0
- package/dist/types/interface/models/user-credit-purchase.model.d.ts +22 -0
- package/dist/types/interface/models/user-credit-purchase.model.js +2 -0
- package/dist/types/interface/models/user-notification.model.d.ts +14 -0
- package/dist/types/interface/models/user-notification.model.js +2 -0
- package/dist/types/interface/models/user-ticket-message-attachment.model.d.ts +14 -0
- package/dist/types/interface/models/user-ticket-message-attachment.model.js +2 -0
- package/dist/types/interface/models/user-ticket-message.model.d.ts +14 -0
- package/dist/types/interface/models/user-ticket-message.model.js +2 -0
- package/dist/types/interface/models/user-ticket.model.d.ts +15 -0
- package/dist/types/interface/models/user-ticket.model.js +2 -0
- package/dist/types/interface/models/user-transaction.model.d.ts +19 -0
- package/dist/types/interface/models/user-transaction.model.js +2 -0
- package/dist/types/interface/models/user.model.d.ts +34 -0
- package/dist/types/interface/models/user.model.js +2 -0
- package/dist/types/models/index.d.ts +1 -0
- package/dist/types/models/index.js +17 -0
- package/dist/types/models/transfer.model.d.ts +36 -0
- package/dist/types/models/transfer.model.js +73 -0
- package/dist/types/session.d.ts +26 -0
- package/dist/types/session.js +2 -0
- package/dist/types/utils/billing.util.d.ts +2 -0
- package/dist/types/utils/billing.util.js +33 -0
- package/dist/types/utils/convert-query.util.d.ts +2 -0
- package/dist/types/utils/convert-query.util.js +2 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/index.js +21 -0
- package/dist/types/utils/notifications.type-util.d.ts +8 -0
- package/dist/types/utils/notifications.type-util.js +2 -0
- package/dist/types/utils/overwrite.util.d.ts +9 -0
- package/dist/types/utils/overwrite.util.js +2 -0
- package/dist/types/utils/require-one.util.d.ts +6 -0
- package/dist/types/utils/require-one.util.js +2 -0
- package/dist/utils/array.utils.d.ts +1 -0
- package/dist/utils/array.utils.js +7 -0
- package/dist/utils/byte.utils.d.ts +2 -0
- package/dist/utils/byte.utils.js +71 -0
- package/dist/utils/duration.utils.d.ts +1 -0
- package/dist/utils/duration.utils.js +10 -0
- package/dist/utils/enum-to-array.utils.d.ts +2 -0
- package/dist/utils/enum-to-array.utils.js +14 -0
- package/dist/utils/error.utils.d.ts +15 -0
- package/dist/utils/error.utils.js +24 -0
- package/dist/utils/import.utils.d.ts +1 -0
- package/dist/utils/import.utils.js +7 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.js +25 -0
- package/dist/utils/is-valid-object.utils.d.ts +1 -0
- package/dist/utils/is-valid-object.utils.js +12 -0
- package/dist/utils/notification.utils.d.ts +3 -0
- package/dist/utils/notification.utils.js +11 -0
- package/dist/utils/sleep.utils.d.ts +1 -0
- package/dist/utils/sleep.utils.js +9 -0
- package/dist/utils/subscription.utils.d.ts +6 -0
- package/dist/utils/subscription.utils.js +41 -0
- package/package.json +57 -0
- package/tsconfig.json +105 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
import { UserCreditPurchaseCurrency, UserCreditPurchasePlatform } from '../../../enum';
|
|
4
|
+
export type IPaginateUserCreditPurchaseQuery = {
|
|
5
|
+
method?: UserCreditPurchasePlatform[];
|
|
6
|
+
currency?: UserCreditPurchaseCurrency[];
|
|
7
|
+
} & QueryPaginate;
|
|
8
|
+
export interface IGetUserCreditPurchaseParams extends core.ParamsDictionary {
|
|
9
|
+
creditPurchaseId: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { AbyssService, UserNotificationType } from '../../../enum';
|
|
3
|
+
import { NotificationDTO } from '../../../utils';
|
|
4
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
5
|
+
export interface IGetUserNotificationAdminParams extends core.ParamsDictionary {
|
|
6
|
+
userNotificationId: string;
|
|
7
|
+
}
|
|
8
|
+
export type IPaginateUserNotificationAdminQuery = {
|
|
9
|
+
type?: UserNotificationType[];
|
|
10
|
+
shouldGetOnlyNew?: boolean;
|
|
11
|
+
service?: AbyssService[];
|
|
12
|
+
userId?: string;
|
|
13
|
+
} & QueryPaginate;
|
|
14
|
+
export type ICreateUserNotificationAdminBody = ({
|
|
15
|
+
service: AbyssService;
|
|
16
|
+
userId: string;
|
|
17
|
+
type: UserNotificationType;
|
|
18
|
+
} & NotificationDTO)[];
|
|
19
|
+
export interface IDeleteUserNotificationAdminParams extends core.ParamsDictionary {
|
|
20
|
+
userNotificationId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IUpdateUserNotificationAdminParams extends core.ParamsDictionary {
|
|
23
|
+
userNotificationId: string;
|
|
24
|
+
}
|
|
25
|
+
export type IUpdateUserNotificationAdminBody = Partial<NotificationDTO> & {
|
|
26
|
+
type?: UserNotificationType;
|
|
27
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { AbyssService, UserNotificationType } from '../../../enum';
|
|
3
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
4
|
+
export interface IGetUserNotificationParams extends core.ParamsDictionary {
|
|
5
|
+
userNotificationId: string;
|
|
6
|
+
}
|
|
7
|
+
export type IPaginateUserNotificationQuery = {
|
|
8
|
+
type?: UserNotificationType[];
|
|
9
|
+
service?: AbyssService[];
|
|
10
|
+
shouldGetOnlyNew?: boolean;
|
|
11
|
+
} & QueryPaginate;
|
|
12
|
+
export interface IOpenUserNotificationParams extends core.ParamsDictionary {
|
|
13
|
+
userNotificationId: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
import { AbyssService, UserTicketCategory } from '../../../enum';
|
|
4
|
+
export interface IGetUserTicketAdminParams extends core.ParamsDictionary {
|
|
5
|
+
userTicketId: string;
|
|
6
|
+
}
|
|
7
|
+
export type IPaginateUserTicketAdminQuery = {
|
|
8
|
+
isClosed?: boolean;
|
|
9
|
+
service?: AbyssService[];
|
|
10
|
+
category?: UserTicketCategory[];
|
|
11
|
+
userId?: string[];
|
|
12
|
+
} & QueryPaginate;
|
|
13
|
+
export interface IUpdateUserTicketAdminParams extends core.ParamsDictionary {
|
|
14
|
+
userTicketId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IUpdateUserTicketAdminBody {
|
|
17
|
+
title?: string;
|
|
18
|
+
category?: UserTicketCategory;
|
|
19
|
+
service?: AbyssService;
|
|
20
|
+
}
|
|
21
|
+
export interface ICreateUserTicketAdminBody {
|
|
22
|
+
title: string;
|
|
23
|
+
category: UserTicketCategory;
|
|
24
|
+
service: AbyssService;
|
|
25
|
+
userId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ICloseUserTicketAdminParams extends core.ParamsDictionary {
|
|
28
|
+
userTicketId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IPaginateMessageUserTicketAdminParams extends core.ParamsDictionary {
|
|
31
|
+
userTicketId: string;
|
|
32
|
+
}
|
|
33
|
+
export type IPaginateMessageUserTicketAdminQuery = {
|
|
34
|
+
userTicketId?: string[];
|
|
35
|
+
userId?: string[];
|
|
36
|
+
} & QueryPaginate;
|
|
37
|
+
export interface IUpdateMessageUserTicketAdminParams extends core.ParamsDictionary {
|
|
38
|
+
userTicketId: string;
|
|
39
|
+
userTicketMessageId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface IUpdateMessageUserTicketAdminBody {
|
|
42
|
+
content?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ICreateMessageUserTicketAdminParams extends core.ParamsDictionary {
|
|
45
|
+
userTicketId: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ICreateMessageUserTicketAdminBody {
|
|
48
|
+
content: string;
|
|
49
|
+
}
|
|
50
|
+
export interface IRemoveAttachmentMessageUserTicketAdminParams extends core.ParamsDictionary {
|
|
51
|
+
userTicketId: string;
|
|
52
|
+
userTicketMessageId: string;
|
|
53
|
+
userTicketMessageAttachmentId: string;
|
|
54
|
+
}
|
|
55
|
+
export interface IAddAttachmentMessageUserTicketAdminParams extends core.ParamsDictionary {
|
|
56
|
+
userTicketId: string;
|
|
57
|
+
userTicketMessageId: string;
|
|
58
|
+
}
|
|
59
|
+
export interface IAddAttachmentMessageUserTicketAdminBody {
|
|
60
|
+
filename: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
import { AbyssService, UserTicketCategory } from '../../../enum';
|
|
4
|
+
export interface IGetUserTicketParams extends core.ParamsDictionary {
|
|
5
|
+
userTicketId: string;
|
|
6
|
+
}
|
|
7
|
+
export type IPaginateUserTicketQuery = {
|
|
8
|
+
isClosed?: boolean;
|
|
9
|
+
service?: AbyssService[];
|
|
10
|
+
category?: UserTicketCategory[];
|
|
11
|
+
} & QueryPaginate;
|
|
12
|
+
export interface IUpdateUserTicketParams extends core.ParamsDictionary {
|
|
13
|
+
userTicketId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IUpdateUserTicketBody {
|
|
16
|
+
title?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ICreateUserTicketBody {
|
|
19
|
+
title: string;
|
|
20
|
+
category: UserTicketCategory;
|
|
21
|
+
service: AbyssService;
|
|
22
|
+
}
|
|
23
|
+
export type IPaginateMessageUserTicketQuery = {
|
|
24
|
+
userTicketId?: string[];
|
|
25
|
+
} & QueryPaginate;
|
|
26
|
+
export interface IUpdateMessageUserTicketParams extends core.ParamsDictionary {
|
|
27
|
+
userTicketId: string;
|
|
28
|
+
userTicketMessageId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IUpdateMessageUserTicketBody {
|
|
31
|
+
content?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ICreateMessageUserTicketParams extends core.ParamsDictionary {
|
|
34
|
+
userTicketId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ICreateMessageUserTicketBody {
|
|
37
|
+
content: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IRemoveAttachmentMessageUserTicketParams extends core.ParamsDictionary {
|
|
40
|
+
userTicketId: string;
|
|
41
|
+
userTicketMessageId: string;
|
|
42
|
+
userTicketMessageAttachmentId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface IAddAttachmentMessageUserTicketParams extends core.ParamsDictionary {
|
|
45
|
+
userTicketId: string;
|
|
46
|
+
userTicketMessageId: string;
|
|
47
|
+
}
|
|
48
|
+
export interface IAddAttachmentMessageUserTicketBody {
|
|
49
|
+
filename: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { UserTransactionType } from '../../../enum';
|
|
3
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
4
|
+
export type IPaginateUserTransactionAdminQuery = {
|
|
5
|
+
minAmount?: number;
|
|
6
|
+
maxAmount?: number;
|
|
7
|
+
type?: UserTransactionType[];
|
|
8
|
+
userId?: string[];
|
|
9
|
+
projectId?: string[];
|
|
10
|
+
userTransactionId?: string[];
|
|
11
|
+
} & QueryPaginate;
|
|
12
|
+
export interface ICreateUserTransactionAdminParams extends core.ParamsDictionary {
|
|
13
|
+
userId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ICreateUserTransactionAdminBody {
|
|
16
|
+
amount: number;
|
|
17
|
+
type: UserTransactionType;
|
|
18
|
+
description?: string;
|
|
19
|
+
projectId?: string;
|
|
20
|
+
shouldFailOnNegative?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface IDeleteUserTransactionAdminParams extends core.ParamsDictionary {
|
|
23
|
+
userTransactionId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface IUpdateUserTransactionAdminParams extends core.ParamsDictionary {
|
|
26
|
+
userTransactionId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IUpdateUserTransactionAdminBody {
|
|
29
|
+
type?: UserTransactionType;
|
|
30
|
+
description?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserTransactionType } from '../../../enum';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
export type IPaginateUserTransactionQuery = {
|
|
4
|
+
minAmount?: number;
|
|
5
|
+
maxAmount?: number;
|
|
6
|
+
type?: UserTransactionType[];
|
|
7
|
+
userTransactionId?: string[];
|
|
8
|
+
} & QueryPaginate;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
import { AbyssService, UserLanguage } from '../../..';
|
|
4
|
+
export interface IGetUserAdminParams extends core.ParamsDictionary {
|
|
5
|
+
userId: string;
|
|
6
|
+
}
|
|
7
|
+
export type IPaginateUserAdminQuery = {
|
|
8
|
+
alias?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
partialId?: string;
|
|
11
|
+
id?: string[];
|
|
12
|
+
hasJoinedNewsletter?: boolean;
|
|
13
|
+
} & QueryPaginate;
|
|
14
|
+
export interface IUpdateUserAdminParams extends core.ParamsDictionary {
|
|
15
|
+
userId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IUpdateUserAdminBody {
|
|
18
|
+
isAdmin?: boolean;
|
|
19
|
+
name?: string;
|
|
20
|
+
familyName?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
phone?: string;
|
|
23
|
+
password?: string;
|
|
24
|
+
alias?: string;
|
|
25
|
+
emailVerifiedAt?: Date | null;
|
|
26
|
+
}
|
|
27
|
+
export interface IActivateServiceUserAdminParams extends core.ParamsDictionary {
|
|
28
|
+
userId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IActivateServiceUserAdminQuery {
|
|
31
|
+
service: Omit<AbyssService, AbyssService.ABYSS | AbyssService.ABYSS_MONITOR | AbyssService.ABYSS_STORAGE>;
|
|
32
|
+
}
|
|
33
|
+
export interface IUpdateSettingsUserAdminParams extends core.ParamsDictionary {
|
|
34
|
+
userId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IUpdateSettingsUserAdminBody {
|
|
37
|
+
language?: UserLanguage;
|
|
38
|
+
}
|
|
39
|
+
export interface IConnectAsAdminUserAdminParams extends core.ParamsDictionary {
|
|
40
|
+
userId: string;
|
|
41
|
+
}
|
|
42
|
+
export interface IJoinNewsletterUserAdminParams extends core.ParamsDictionary {
|
|
43
|
+
userId: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ILeaveNewsletterUserAdminParams extends core.ParamsDictionary {
|
|
46
|
+
userId: string;
|
|
47
|
+
}
|
|
48
|
+
export interface IUnsubscribeNewsletterUserAdminBody {
|
|
49
|
+
email: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { SubscriptionLevel, UserLanguage } from '../../../enum';
|
|
2
|
+
import { TokenHistoryMetadataUserInvitation } from '../../models/token-history.model';
|
|
3
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
4
|
+
import * as core from 'express-serve-static-core';
|
|
5
|
+
export interface ISponsorUserQuery {
|
|
6
|
+
email: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IGetPublicUserBody {
|
|
9
|
+
id: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface IInviteUserBody {
|
|
12
|
+
email: string;
|
|
13
|
+
metadata?: TokenHistoryMetadataUserInvitation;
|
|
14
|
+
}
|
|
15
|
+
export interface IUpdateUserBody {
|
|
16
|
+
name?: string;
|
|
17
|
+
familyName?: string;
|
|
18
|
+
email?: string;
|
|
19
|
+
phone?: string;
|
|
20
|
+
password?: string;
|
|
21
|
+
alias?: string;
|
|
22
|
+
}
|
|
23
|
+
export type IPaginateSponsorUserQuery = {
|
|
24
|
+
alias?: string;
|
|
25
|
+
} & QueryPaginate;
|
|
26
|
+
export interface IUpdateSettingsUserBody {
|
|
27
|
+
language?: UserLanguage;
|
|
28
|
+
}
|
|
29
|
+
export interface ICreateSubscriptionUserBody {
|
|
30
|
+
level: SubscriptionLevel;
|
|
31
|
+
isAutoRenewEnabled: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface IUpdateSubscriptionUserBody {
|
|
34
|
+
isAutoRenewEnabled?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface IImportProfilePictureFromCollectionUserBody {
|
|
37
|
+
source: string;
|
|
38
|
+
elementId: string;
|
|
39
|
+
}
|
|
40
|
+
export interface ICloudSaveUserParams extends core.ParamsDictionary {
|
|
41
|
+
cloudId: string;
|
|
42
|
+
}
|
|
43
|
+
export type ICloudSaveUserBody = {
|
|
44
|
+
folderId: string | null;
|
|
45
|
+
} & ({
|
|
46
|
+
freepik: {
|
|
47
|
+
resourceId: string;
|
|
48
|
+
};
|
|
49
|
+
} | {
|
|
50
|
+
userTicketMessageAttachment: {
|
|
51
|
+
userTicketId: string;
|
|
52
|
+
userTicketMessageId: string;
|
|
53
|
+
userTicketMessageAttachmentId: string;
|
|
54
|
+
};
|
|
55
|
+
} | {
|
|
56
|
+
applicationFile: {
|
|
57
|
+
applicationId: string;
|
|
58
|
+
applicationFileId: string;
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
export interface ICloudImportUserParams extends core.ParamsDictionary {
|
|
62
|
+
cloudId: string;
|
|
63
|
+
}
|
|
64
|
+
export type ICloudImportUserBody = {
|
|
65
|
+
fileId: string[];
|
|
66
|
+
} & ({
|
|
67
|
+
profilePicture: Record<string, never>;
|
|
68
|
+
} | {
|
|
69
|
+
userTicketMessage: {
|
|
70
|
+
userTicketId: string;
|
|
71
|
+
userTicketMessageId: string;
|
|
72
|
+
};
|
|
73
|
+
} | {
|
|
74
|
+
application: {
|
|
75
|
+
applicationId: string;
|
|
76
|
+
bucket?: string;
|
|
77
|
+
tag?: string[];
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
export interface IUnsubscribeNewsletterUserQuery {
|
|
81
|
+
token: string;
|
|
82
|
+
}
|
|
83
|
+
export interface ISubscribeNewsletterUserQuery {
|
|
84
|
+
email: string;
|
|
85
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BasePaginate } from '..';
|
|
2
|
+
import { IApplication } from '../../models/application.model';
|
|
3
|
+
import { IProject } from '../../models/project.model';
|
|
4
|
+
import { IResponse } from '../type-message/response';
|
|
5
|
+
export interface IGetApplicationAdminData {
|
|
6
|
+
application: IApplication;
|
|
7
|
+
}
|
|
8
|
+
export type IGetApplicationAdminResponse = IResponse<IGetApplicationAdminData>;
|
|
9
|
+
export interface IGetProjectApplicationAdminData {
|
|
10
|
+
project: IProject;
|
|
11
|
+
}
|
|
12
|
+
export type IGetProjectApplicationAdminResponse = IResponse<IGetProjectApplicationAdminData>;
|
|
13
|
+
export type IPaginateApplicationAdminResponse = IResponse<BasePaginate<IApplication>>;
|
|
14
|
+
export interface IDeleteApplicationAdminData {
|
|
15
|
+
}
|
|
16
|
+
export type IDeleteApplicationAdminResponse = IResponse<IDeleteApplicationAdminData>;
|
|
17
|
+
export interface ICreateApplicationAdminData {
|
|
18
|
+
application: IApplication;
|
|
19
|
+
}
|
|
20
|
+
export type ICreateApplicationAdminResponse = IResponse<ICreateApplicationAdminData>;
|
|
21
|
+
export interface IUpdateApplicationAdminData {
|
|
22
|
+
application: IApplication;
|
|
23
|
+
}
|
|
24
|
+
export type IUpdateApplicationAdminResponse = IResponse<IUpdateApplicationAdminData>;
|
|
25
|
+
export interface IActivateServiceApplicationAdminData {
|
|
26
|
+
application: IApplication;
|
|
27
|
+
}
|
|
28
|
+
export type IActivateServiceApplicationAdminResponse = IResponse<IActivateServiceApplicationAdminData>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IApplication } from '../../models/application.model';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IGetApplicationData {
|
|
4
|
+
application: IApplication;
|
|
5
|
+
}
|
|
6
|
+
export type IGetApplicationResponse = IResponse<IGetApplicationData>;
|
|
7
|
+
export interface IListApplicationData {
|
|
8
|
+
application: IApplication[];
|
|
9
|
+
}
|
|
10
|
+
export type IListApplicationResponse = IResponse<IListApplicationData>;
|
|
11
|
+
export interface IDeleteApplicationData {
|
|
12
|
+
}
|
|
13
|
+
export type IDeleteApplicationResponse = IResponse<IDeleteApplicationData>;
|
|
14
|
+
export interface ICreateApplicationData {
|
|
15
|
+
application: IApplication;
|
|
16
|
+
}
|
|
17
|
+
export type ICreateApplicationResponse = IResponse<ICreateApplicationData>;
|
|
18
|
+
export interface IUpdateApplicationData {
|
|
19
|
+
application: IApplication;
|
|
20
|
+
}
|
|
21
|
+
export type IUpdateApplicationResponse = IResponse<IUpdateApplicationData>;
|
|
22
|
+
export interface IActivateServiceApplicationData {
|
|
23
|
+
application: IApplication;
|
|
24
|
+
}
|
|
25
|
+
export type IActivateServiceApplicationResponse = IResponse<IActivateServiceApplicationData>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IUser } from '../../models/user.model';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface ILoginAuthData {
|
|
4
|
+
user: IUser;
|
|
5
|
+
sid: string;
|
|
6
|
+
adminToken?: string;
|
|
7
|
+
}
|
|
8
|
+
export type ILoginAuthResponse = IResponse<ILoginAuthData>;
|
|
9
|
+
export interface ISignupAuthData {
|
|
10
|
+
user: IUser;
|
|
11
|
+
}
|
|
12
|
+
export type ISignupAuthResponse = IResponse<ISignupAuthData>;
|
|
13
|
+
export interface IRefreshAuthData {
|
|
14
|
+
token: string;
|
|
15
|
+
user: IUser;
|
|
16
|
+
}
|
|
17
|
+
export type IRefreshAuthResponse = IResponse<IRefreshAuthData>;
|
|
18
|
+
export interface IOAuthAuthData {
|
|
19
|
+
user: IUser;
|
|
20
|
+
sid: string;
|
|
21
|
+
}
|
|
22
|
+
export type IOAuthAuthResponse = IResponse<IOAuthAuthData>;
|
|
23
|
+
export interface ISendEmailVerificationAuthData {
|
|
24
|
+
}
|
|
25
|
+
export type ISendEmailVerificationAuthResponse = IResponse<ISendEmailVerificationAuthData>;
|
|
26
|
+
export interface IVerifyEmailAuthData {
|
|
27
|
+
user: IUser;
|
|
28
|
+
token: string;
|
|
29
|
+
}
|
|
30
|
+
export type IVerifyEmailAuthResponse = IResponse<IVerifyEmailAuthData>;
|
|
31
|
+
export interface ISendEmailResetPasswordAuthData {
|
|
32
|
+
}
|
|
33
|
+
export type ISendEmailResetPasswordAuthResponse = IResponse<ISendEmailResetPasswordAuthData>;
|
|
34
|
+
export interface IResetPasswordAuthData {
|
|
35
|
+
user: IUser;
|
|
36
|
+
}
|
|
37
|
+
export type IResetPasswordAuthResponse = IResponse<IResetPasswordAuthData>;
|
|
38
|
+
export interface IActivateServiceAuthData {
|
|
39
|
+
user: IUser;
|
|
40
|
+
isNewActivation: boolean;
|
|
41
|
+
}
|
|
42
|
+
export type IActivateServiceAuthResponse = IResponse<IActivateServiceAuthData>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BillingProduct } from '../../../enum';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IBuyCreditStripeBillingData {
|
|
4
|
+
paymentLink: string;
|
|
5
|
+
}
|
|
6
|
+
export type IBuyCreditStripeBillingResponse = IResponse<IBuyCreditStripeBillingData>;
|
|
7
|
+
export interface IBuyCreditFreePickStripeBillingData {
|
|
8
|
+
paymentLink: string;
|
|
9
|
+
}
|
|
10
|
+
export type IBuyCreditFreePickStripeBillingResponse = IResponse<IBuyCreditFreePickStripeBillingData>;
|
|
11
|
+
export interface IListProductCreditBillingData {
|
|
12
|
+
product: {
|
|
13
|
+
id: BillingProduct;
|
|
14
|
+
price: number;
|
|
15
|
+
amount: number;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
18
|
+
export type IListProductCreditBillingResponse = IResponse<IListProductCreditBillingData>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IGiftCodeActivation } from '../../models/gift-code-activation.model';
|
|
2
|
+
import { IGiftCode } from '../../models/gift-code.model';
|
|
3
|
+
import { BasePaginate } from '../type-message/base-paginate';
|
|
4
|
+
import { IResponse } from '../type-message/response';
|
|
5
|
+
export type IPaginateGiftCodeAdminResponse = IResponse<BasePaginate<IGiftCode>>;
|
|
6
|
+
export type IPaginateGiftCodeActivationAdminResponse = IResponse<BasePaginate<IGiftCodeActivation>>;
|
|
7
|
+
export interface IUseGiftCodeAdminData {
|
|
8
|
+
giftCodeActivation: IGiftCodeActivation;
|
|
9
|
+
balance: number;
|
|
10
|
+
}
|
|
11
|
+
export type IUseGiftCodeAdminResponse = IResponse<IUseGiftCodeAdminData>;
|
|
12
|
+
export interface IGetGiftCodeAdminData {
|
|
13
|
+
giftCode: IGiftCode;
|
|
14
|
+
}
|
|
15
|
+
export type IGetGiftCodeAdminResponse = IResponse<IGetGiftCodeAdminData>;
|
|
16
|
+
export interface ICreateGiftCodeAdminData {
|
|
17
|
+
giftCode: IGiftCode;
|
|
18
|
+
}
|
|
19
|
+
export type ICreateGiftCodeAdminResponse = IResponse<ICreateGiftCodeAdminData>;
|
|
20
|
+
export type IDeleteGiftCodeAdminData = Record<string, never>;
|
|
21
|
+
export type IDeleteGiftCodeAdminResponse = IResponse<IDeleteGiftCodeAdminData>;
|
|
22
|
+
export interface IUpdateGiftCodeAdminData {
|
|
23
|
+
giftCode: IGiftCode;
|
|
24
|
+
}
|
|
25
|
+
export type IUpdateGiftCodeAdminResponse = IResponse<IUpdateGiftCodeAdminData>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BasePaginate, IResponse } from '..';
|
|
2
|
+
import { IGiftCodeActivation } from '../../models/gift-code-activation.model';
|
|
3
|
+
export interface ICheckGiftCodeData {
|
|
4
|
+
isValid: boolean;
|
|
5
|
+
}
|
|
6
|
+
export type ICheckGiftCodeResponse = IResponse<ICheckGiftCodeData>;
|
|
7
|
+
export interface IUseGiftCodeData {
|
|
8
|
+
giftCodeActivation: IGiftCodeActivation;
|
|
9
|
+
balance: number;
|
|
10
|
+
}
|
|
11
|
+
export type IUseGiftCodeResponse = IResponse<IUseGiftCodeData>;
|
|
12
|
+
export type IPaginateGiftCodeActivationResponse = IResponse<BasePaginate<IGiftCodeActivation>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IResponse } from '../type-message/response';
|
|
2
|
+
export interface IGetUserTransactionMetricsData {
|
|
3
|
+
debit: {
|
|
4
|
+
count: number;
|
|
5
|
+
average: number;
|
|
6
|
+
};
|
|
7
|
+
credit: {
|
|
8
|
+
count: number;
|
|
9
|
+
average: number;
|
|
10
|
+
};
|
|
11
|
+
average: number;
|
|
12
|
+
graph: {
|
|
13
|
+
count: number;
|
|
14
|
+
date: Date;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
17
|
+
export type IGetUserTransactionMetricsResponse = IResponse<IGetUserTransactionMetricsData>;
|
|
18
|
+
export interface IGetUserCreditPurchaseMetricsData {
|
|
19
|
+
counter: {
|
|
20
|
+
payment: number;
|
|
21
|
+
};
|
|
22
|
+
average: number;
|
|
23
|
+
graph: {
|
|
24
|
+
count: number;
|
|
25
|
+
date: Date;
|
|
26
|
+
}[];
|
|
27
|
+
}
|
|
28
|
+
export type IGetUserCreditPurchaseMetricsResponse = IResponse<IGetUserCreditPurchaseMetricsData>;
|
|
29
|
+
export interface IGetGiftCodeMetricsData {
|
|
30
|
+
counter: {
|
|
31
|
+
giftCode: number;
|
|
32
|
+
giftCodeDisabled: number;
|
|
33
|
+
giftCodeEnabled: number;
|
|
34
|
+
};
|
|
35
|
+
graph: {
|
|
36
|
+
count: number;
|
|
37
|
+
date: Date;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
|
40
|
+
export type IGetGiftCodeMetricsResponse = IResponse<IGetGiftCodeMetricsData>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { INewsletterHistory } from '../../models/newsletter-history.model';
|
|
2
|
+
import { INewsletterMember } from '../../models/newsletter-member.model';
|
|
3
|
+
import { BasePaginate } from '../type-message/base-paginate';
|
|
4
|
+
import { IResponse } from '../type-message/response';
|
|
5
|
+
export type IPaginateHistoryNewsletterAdminResponse = IResponse<BasePaginate<INewsletterHistory>>;
|
|
6
|
+
export interface IGetHistoryNewsletterAdminData {
|
|
7
|
+
newsletterHistory: INewsletterHistory;
|
|
8
|
+
}
|
|
9
|
+
export type IGetHistoryNewsletterAdminResponse = IResponse<IGetHistoryNewsletterAdminData>;
|
|
10
|
+
export type IPaginateMemberNewsletterAdminResponse = IResponse<BasePaginate<INewsletterMember>>;
|
|
11
|
+
export interface IGetMemberNewsletterAdminData {
|
|
12
|
+
newsletterMember: INewsletterMember;
|
|
13
|
+
}
|
|
14
|
+
export type IGetMemberNewsletterAdminResponse = IResponse<IGetMemberNewsletterAdminData>;
|
|
15
|
+
export interface ISendNewsletterAdminData {
|
|
16
|
+
}
|
|
17
|
+
export type ISendNewsletterAdminResponse = IResponse<ISendNewsletterAdminData>;
|