@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,48 @@
|
|
|
1
|
+
export * from './type-message/api-error';
|
|
2
|
+
export * from './type-message/response';
|
|
3
|
+
export * from './type-message/base-order';
|
|
4
|
+
export * from './type-message/base-paginate';
|
|
5
|
+
export * from './requests/auth.request';
|
|
6
|
+
export * from './requests/user.request';
|
|
7
|
+
export * from './requests/user.admin.request';
|
|
8
|
+
export * from './requests/user-notification.request';
|
|
9
|
+
export * from './requests/user-notification.admin.request';
|
|
10
|
+
export * from './requests/gift-code.request';
|
|
11
|
+
export * from './requests/gift-code.admin.request';
|
|
12
|
+
export * from './requests/user-transaction.request';
|
|
13
|
+
export * from './requests/user-transaction.admin.request';
|
|
14
|
+
export * from './requests/user-credit-purchase.request';
|
|
15
|
+
export * from './requests/user-credit-purchase.admin.request';
|
|
16
|
+
export * from './requests/user-ticket.admin.request';
|
|
17
|
+
export * from './requests/user-ticket.request';
|
|
18
|
+
export * from './requests/application.request';
|
|
19
|
+
export * from './requests/application.admin.request';
|
|
20
|
+
export * from './requests/project.admin.request';
|
|
21
|
+
export * from './requests/project.request';
|
|
22
|
+
export * from './requests/project-access.admin.request';
|
|
23
|
+
export * from './requests/project-access.request';
|
|
24
|
+
export * from './requests/billing.request';
|
|
25
|
+
export * from './requests/newsletter.admin.request';
|
|
26
|
+
export * from './responses/auth.response';
|
|
27
|
+
export * from './responses/user.response';
|
|
28
|
+
export * from './responses/user.admin.response';
|
|
29
|
+
export * from './responses/user-notification.response';
|
|
30
|
+
export * from './responses/user-notification.admin.response';
|
|
31
|
+
export * from './responses/user-transaction.response';
|
|
32
|
+
export * from './responses/user-transaction.admin.response';
|
|
33
|
+
export * from './responses/gift-code.response';
|
|
34
|
+
export * from './responses/gift-code.admin.response';
|
|
35
|
+
export * from './responses/user-credit-purchase.response';
|
|
36
|
+
export * from './responses/user-credit-purchase.admin.response';
|
|
37
|
+
export * from './responses/metrics.admin.response';
|
|
38
|
+
export * from './responses/monitor.response';
|
|
39
|
+
export * from './responses/user-ticket.admin.response';
|
|
40
|
+
export * from './responses/user-ticket.response';
|
|
41
|
+
export * from './responses/application.response';
|
|
42
|
+
export * from './responses/application.admin.response';
|
|
43
|
+
export * from './responses/project.admin.response';
|
|
44
|
+
export * from './responses/project.response';
|
|
45
|
+
export * from './responses/project-access.admin.response';
|
|
46
|
+
export * from './responses/project-access.response';
|
|
47
|
+
export * from './responses/billing.response';
|
|
48
|
+
export * from './responses/newsletter.admin.response';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./type-message/api-error"), exports);
|
|
18
|
+
__exportStar(require("./type-message/response"), exports);
|
|
19
|
+
__exportStar(require("./type-message/base-order"), exports);
|
|
20
|
+
__exportStar(require("./type-message/base-paginate"), exports);
|
|
21
|
+
__exportStar(require("./requests/auth.request"), exports);
|
|
22
|
+
__exportStar(require("./requests/user.request"), exports);
|
|
23
|
+
__exportStar(require("./requests/user.admin.request"), exports);
|
|
24
|
+
__exportStar(require("./requests/user-notification.request"), exports);
|
|
25
|
+
__exportStar(require("./requests/user-notification.admin.request"), exports);
|
|
26
|
+
__exportStar(require("./requests/gift-code.request"), exports);
|
|
27
|
+
__exportStar(require("./requests/gift-code.admin.request"), exports);
|
|
28
|
+
__exportStar(require("./requests/user-transaction.request"), exports);
|
|
29
|
+
__exportStar(require("./requests/user-transaction.admin.request"), exports);
|
|
30
|
+
__exportStar(require("./requests/user-credit-purchase.request"), exports);
|
|
31
|
+
__exportStar(require("./requests/user-credit-purchase.admin.request"), exports);
|
|
32
|
+
__exportStar(require("./requests/user-ticket.admin.request"), exports);
|
|
33
|
+
__exportStar(require("./requests/user-ticket.request"), exports);
|
|
34
|
+
__exportStar(require("./requests/application.request"), exports);
|
|
35
|
+
__exportStar(require("./requests/application.admin.request"), exports);
|
|
36
|
+
__exportStar(require("./requests/project.admin.request"), exports);
|
|
37
|
+
__exportStar(require("./requests/project.request"), exports);
|
|
38
|
+
__exportStar(require("./requests/project-access.admin.request"), exports);
|
|
39
|
+
__exportStar(require("./requests/project-access.request"), exports);
|
|
40
|
+
__exportStar(require("./requests/billing.request"), exports);
|
|
41
|
+
__exportStar(require("./requests/newsletter.admin.request"), exports);
|
|
42
|
+
__exportStar(require("./responses/auth.response"), exports);
|
|
43
|
+
__exportStar(require("./responses/user.response"), exports);
|
|
44
|
+
__exportStar(require("./responses/user.admin.response"), exports);
|
|
45
|
+
__exportStar(require("./responses/user-notification.response"), exports);
|
|
46
|
+
__exportStar(require("./responses/user-notification.admin.response"), exports);
|
|
47
|
+
__exportStar(require("./responses/user-transaction.response"), exports);
|
|
48
|
+
__exportStar(require("./responses/user-transaction.admin.response"), exports);
|
|
49
|
+
__exportStar(require("./responses/gift-code.response"), exports);
|
|
50
|
+
__exportStar(require("./responses/gift-code.admin.response"), exports);
|
|
51
|
+
__exportStar(require("./responses/user-credit-purchase.response"), exports);
|
|
52
|
+
__exportStar(require("./responses/user-credit-purchase.admin.response"), exports);
|
|
53
|
+
__exportStar(require("./responses/metrics.admin.response"), exports);
|
|
54
|
+
__exportStar(require("./responses/monitor.response"), exports);
|
|
55
|
+
__exportStar(require("./responses/user-ticket.admin.response"), exports);
|
|
56
|
+
__exportStar(require("./responses/user-ticket.response"), exports);
|
|
57
|
+
__exportStar(require("./responses/application.response"), exports);
|
|
58
|
+
__exportStar(require("./responses/application.admin.response"), exports);
|
|
59
|
+
__exportStar(require("./responses/project.admin.response"), exports);
|
|
60
|
+
__exportStar(require("./responses/project.response"), exports);
|
|
61
|
+
__exportStar(require("./responses/project-access.admin.response"), exports);
|
|
62
|
+
__exportStar(require("./responses/project-access.response"), exports);
|
|
63
|
+
__exportStar(require("./responses/billing.response"), exports);
|
|
64
|
+
__exportStar(require("./responses/newsletter.admin.response"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { AbyssService } from '../../../enum';
|
|
4
|
+
export interface IGetApplicationAdminParams extends core.ParamsDictionary {
|
|
5
|
+
applicationId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IGetProjectApplicationAdminParams extends core.ParamsDictionary {
|
|
8
|
+
applicationId: string;
|
|
9
|
+
}
|
|
10
|
+
export type IPaginateApplicationAdminQuery = {
|
|
11
|
+
projectId?: string[];
|
|
12
|
+
service?: AbyssService[];
|
|
13
|
+
} & QueryPaginate;
|
|
14
|
+
export interface ICreateApplicationAdminParams extends core.ParamsDictionary {
|
|
15
|
+
projectId: string;
|
|
16
|
+
}
|
|
17
|
+
export type ICreateApplicationAdminBody = {
|
|
18
|
+
name: string;
|
|
19
|
+
description?: string | null;
|
|
20
|
+
};
|
|
21
|
+
export interface IDeleteApplicationAdminParams extends core.ParamsDictionary {
|
|
22
|
+
applicationId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IUpdateApplicationAdminParams extends core.ParamsDictionary {
|
|
25
|
+
applicationId: string;
|
|
26
|
+
}
|
|
27
|
+
export type IUpdateApplicationAdminBody = {
|
|
28
|
+
name?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
};
|
|
31
|
+
export interface IActivateServiceApplicationAdminParams extends core.ParamsDictionary {
|
|
32
|
+
applicationId: string;
|
|
33
|
+
}
|
|
34
|
+
export type IActivateServiceApplicationAdminBody = {
|
|
35
|
+
service: AbyssService;
|
|
36
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { AbyssService } from '../../../enum';
|
|
4
|
+
export interface IGetApplicationParams extends core.ParamsDictionary {
|
|
5
|
+
applicationId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IListApplicationParams extends core.ParamsDictionary {
|
|
8
|
+
projectId: string;
|
|
9
|
+
}
|
|
10
|
+
export type IListApplicationQuery = {
|
|
11
|
+
service?: AbyssService[];
|
|
12
|
+
} & QueryPaginate;
|
|
13
|
+
export interface ICreateApplicationParams extends core.ParamsDictionary {
|
|
14
|
+
projectId: string;
|
|
15
|
+
}
|
|
16
|
+
export type ICreateApplicationBody = {
|
|
17
|
+
name: string;
|
|
18
|
+
description?: string | null;
|
|
19
|
+
};
|
|
20
|
+
export interface IDeleteApplicationParams extends core.ParamsDictionary {
|
|
21
|
+
applicationId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IUpdateApplicationParams extends core.ParamsDictionary {
|
|
24
|
+
applicationId: string;
|
|
25
|
+
}
|
|
26
|
+
export type IUpdateApplicationBody = {
|
|
27
|
+
name?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
};
|
|
30
|
+
export interface IActivateServiceApplicationParams extends core.ParamsDictionary {
|
|
31
|
+
applicationId: string;
|
|
32
|
+
}
|
|
33
|
+
export type IActivateServiceApplicationBody = {
|
|
34
|
+
service: AbyssService;
|
|
35
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AbyssService, UserLanguage } from '../../../enum';
|
|
2
|
+
import { OAuthAccountType } from '../../../enum/oauth-account-type.enum';
|
|
3
|
+
export interface ILoginAuthBody {
|
|
4
|
+
email: string;
|
|
5
|
+
password: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ISignupAuthBody {
|
|
8
|
+
email: string;
|
|
9
|
+
password: string;
|
|
10
|
+
alias?: string;
|
|
11
|
+
sponsorId?: string;
|
|
12
|
+
language?: UserLanguage;
|
|
13
|
+
invitationTokenId?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IOAuthAuthBody {
|
|
16
|
+
code: string;
|
|
17
|
+
type: OAuthAccountType;
|
|
18
|
+
sponsorId?: string;
|
|
19
|
+
invitationTokenId?: string;
|
|
20
|
+
language?: UserLanguage;
|
|
21
|
+
}
|
|
22
|
+
export interface ISendEmailVerificationAuthBody {
|
|
23
|
+
email: string;
|
|
24
|
+
password: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IVerifyEmailAuthQuery {
|
|
27
|
+
token: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ISendEmailResetPasswordAuthBody {
|
|
30
|
+
email: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IResetPasswordAuthQuery {
|
|
33
|
+
token: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IResetPasswordAuthBody {
|
|
36
|
+
password: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IActivateServiceAuthQuery {
|
|
39
|
+
service: Omit<AbyssService, AbyssService.ABYSS | AbyssService.ABYSS_MONITOR | AbyssService.ABYSS_STORAGE>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { GiftCodeType } from '../../../enum';
|
|
3
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
4
|
+
export type IPaginateGiftCodeAdminQuery = {
|
|
5
|
+
code?: string;
|
|
6
|
+
type?: GiftCodeType[];
|
|
7
|
+
isActivated?: boolean;
|
|
8
|
+
} & QueryPaginate;
|
|
9
|
+
export type IPaginateGiftCodeActivationAdminQuery = {
|
|
10
|
+
codeId?: string;
|
|
11
|
+
code?: string;
|
|
12
|
+
type?: GiftCodeType[];
|
|
13
|
+
userId?: string;
|
|
14
|
+
} & QueryPaginate;
|
|
15
|
+
export interface IGetGiftCodeAdminParams extends core.ParamsDictionary {
|
|
16
|
+
giftCodeId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IUseGiftCodeAdminParams extends core.ParamsDictionary {
|
|
19
|
+
userId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IUseGiftCodeAdminQuery {
|
|
22
|
+
code: string;
|
|
23
|
+
}
|
|
24
|
+
export type ICreateGiftCodeAdminBody = {
|
|
25
|
+
code: string;
|
|
26
|
+
amount: number;
|
|
27
|
+
type: GiftCodeType;
|
|
28
|
+
startDate: Date | null;
|
|
29
|
+
endDate: Date | null;
|
|
30
|
+
isActivated: boolean;
|
|
31
|
+
maxUsage: number | null;
|
|
32
|
+
maxUsagePerUser: number | null;
|
|
33
|
+
activationIntervalInSecond: number | null;
|
|
34
|
+
description?: string | null;
|
|
35
|
+
};
|
|
36
|
+
export interface IDeleteGiftCodeAdminParams extends core.ParamsDictionary {
|
|
37
|
+
giftCodeId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IUpdateGiftCodeAdminParams extends core.ParamsDictionary {
|
|
40
|
+
giftCodeId: string;
|
|
41
|
+
}
|
|
42
|
+
export type IUpdateGiftCodeAdminBody = {
|
|
43
|
+
code?: string;
|
|
44
|
+
amount?: number;
|
|
45
|
+
type?: GiftCodeType;
|
|
46
|
+
startDate?: Date | null;
|
|
47
|
+
endDate?: Date | null;
|
|
48
|
+
isActivated?: boolean;
|
|
49
|
+
maxUsage?: number | null;
|
|
50
|
+
maxUsagePerUser?: number | null;
|
|
51
|
+
activationIntervalInSecond?: number | null;
|
|
52
|
+
description?: string | null;
|
|
53
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GiftCodeType } from '../../../enum';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
export interface ICheckGiftCodeQuery {
|
|
4
|
+
code: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IUseGiftCodeBody {
|
|
7
|
+
code: string;
|
|
8
|
+
}
|
|
9
|
+
export type IPaginateGiftCodeActivationQuery = {
|
|
10
|
+
code?: string;
|
|
11
|
+
type?: GiftCodeType[];
|
|
12
|
+
} & QueryPaginate;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NewsletterType } from '../../../enum';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
export type IPaginateHistoryNewsletterAdminQuery = {
|
|
4
|
+
email?: string;
|
|
5
|
+
newsletterType?: NewsletterType[];
|
|
6
|
+
} & QueryPaginate;
|
|
7
|
+
export type IGetHistoryNewsletterAdminParams = {
|
|
8
|
+
newsletterHistoryId: string;
|
|
9
|
+
};
|
|
10
|
+
export type IPaginateMemberNewsletterAdminQuery = {
|
|
11
|
+
email?: string;
|
|
12
|
+
} & QueryPaginate;
|
|
13
|
+
export type IGetMemberNewsletterAdminParams = {
|
|
14
|
+
newsletterMemberId: string;
|
|
15
|
+
};
|
|
16
|
+
export type ISendNewsletterAdminBody = {
|
|
17
|
+
newsletterType: NewsletterType;
|
|
18
|
+
includeUsers: boolean;
|
|
19
|
+
includePublicNewsletter: boolean;
|
|
20
|
+
emails?: string[];
|
|
21
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { ProjectAccessPermission, ProjectApplicationAccessPermission } from '../../../enum';
|
|
4
|
+
export interface ICreateUserProjectAccessAdminParams extends core.ParamsDictionary {
|
|
5
|
+
projectId: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
}
|
|
8
|
+
export type ICreateUserProjectAccessAdminBody = {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
permission: ProjectAccessPermission[];
|
|
12
|
+
projectApplicationAccess: {
|
|
13
|
+
applicationId: string;
|
|
14
|
+
permission: ProjectApplicationAccessPermission[];
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
export interface ICreateProjectAccessAdminParams extends core.ParamsDictionary {
|
|
18
|
+
projectId: string;
|
|
19
|
+
}
|
|
20
|
+
export type ICreateProjectAccessAdminBody = {
|
|
21
|
+
name: string;
|
|
22
|
+
description?: string | null;
|
|
23
|
+
permission: ProjectAccessPermission[];
|
|
24
|
+
projectApplicationAccess: {
|
|
25
|
+
applicationId: string;
|
|
26
|
+
permission: ProjectApplicationAccessPermission[];
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
export interface IUpdateProjectAccessAdminParams extends core.ParamsDictionary {
|
|
30
|
+
projectAccessId: string;
|
|
31
|
+
}
|
|
32
|
+
export type IUpdateProjectAccessAdminBody = {
|
|
33
|
+
name?: string;
|
|
34
|
+
description?: string | null;
|
|
35
|
+
permission?: ProjectAccessPermission[];
|
|
36
|
+
};
|
|
37
|
+
export interface IUpsertApplicationProjectAccessAdminParams extends core.ParamsDictionary {
|
|
38
|
+
projectAccessId: string;
|
|
39
|
+
applicationId: string;
|
|
40
|
+
}
|
|
41
|
+
export type IUpsertApplicationProjectAccessAdminBody = {
|
|
42
|
+
permission?: ProjectApplicationAccessPermission[];
|
|
43
|
+
};
|
|
44
|
+
export interface IDeleteApplicationProjectAccessAdminParams extends core.ParamsDictionary {
|
|
45
|
+
projectAccessId: string;
|
|
46
|
+
applicationId: string;
|
|
47
|
+
}
|
|
48
|
+
export interface IResetApiKeyProjectAccessAdminParams extends core.ParamsDictionary {
|
|
49
|
+
projectAccessId: string;
|
|
50
|
+
}
|
|
51
|
+
export interface IDeleteProjectAccessAdminParams extends core.ParamsDictionary {
|
|
52
|
+
projectAccessId: string;
|
|
53
|
+
}
|
|
54
|
+
export interface IGetProjectAccessAdminParams extends core.ParamsDictionary {
|
|
55
|
+
projectAccessId: string;
|
|
56
|
+
}
|
|
57
|
+
export type IPaginateProjectAccessAdminQuery = {
|
|
58
|
+
userId?: string[];
|
|
59
|
+
projectId?: string[];
|
|
60
|
+
} & QueryPaginate;
|
|
61
|
+
export interface IComputeApplicationProjectAccessAdminParams extends core.ParamsDictionary {
|
|
62
|
+
applicationId: string;
|
|
63
|
+
}
|
|
64
|
+
export type IComputeApplicationProjectAccessAdminBody = {
|
|
65
|
+
apiKey: string;
|
|
66
|
+
} | {
|
|
67
|
+
userId: string;
|
|
68
|
+
};
|
|
69
|
+
export type IComputeNotificationAccessProjectAccessAdminBody = {
|
|
70
|
+
applicationId?: string;
|
|
71
|
+
projectId?: string;
|
|
72
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { ProjectAccessPermission, ProjectApplicationAccessPermission } from '../../../enum';
|
|
4
|
+
export interface IGetProjectAccessParams extends core.ParamsDictionary {
|
|
5
|
+
projectId: string;
|
|
6
|
+
projectAccessId: string;
|
|
7
|
+
}
|
|
8
|
+
export type IPaginateUserAccessProjectAccessQuery = QueryPaginate;
|
|
9
|
+
export interface IPaginateProjectAccessParams extends core.ParamsDictionary {
|
|
10
|
+
projectId: string;
|
|
11
|
+
}
|
|
12
|
+
export type IPaginateProjectAccessQuery = {
|
|
13
|
+
onlyUserAccess?: boolean;
|
|
14
|
+
onlyApiKeyAccess?: boolean;
|
|
15
|
+
} & QueryPaginate;
|
|
16
|
+
export interface ICreateUserProjectAccessParams extends core.ParamsDictionary {
|
|
17
|
+
projectId: string;
|
|
18
|
+
userId: string;
|
|
19
|
+
}
|
|
20
|
+
export type ICreateUserProjectAccessBody = {
|
|
21
|
+
name: string;
|
|
22
|
+
description?: string | null;
|
|
23
|
+
permission: ProjectAccessPermission[];
|
|
24
|
+
projectApplicationAccess: {
|
|
25
|
+
applicationId: string;
|
|
26
|
+
permission: ProjectApplicationAccessPermission[];
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
export interface ICreateProjectAccessParams extends core.ParamsDictionary {
|
|
30
|
+
projectId: string;
|
|
31
|
+
}
|
|
32
|
+
export type ICreateProjectAccessBody = {
|
|
33
|
+
name: string;
|
|
34
|
+
description?: string | null;
|
|
35
|
+
permission: ProjectAccessPermission[];
|
|
36
|
+
projectApplicationAccess: {
|
|
37
|
+
applicationId: string;
|
|
38
|
+
permission: ProjectApplicationAccessPermission[];
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
export interface IUpdateProjectAccessParams extends core.ParamsDictionary {
|
|
42
|
+
projectId: string;
|
|
43
|
+
projectAccessId: string;
|
|
44
|
+
}
|
|
45
|
+
export type IUpdateProjectAccessBody = {
|
|
46
|
+
name?: string;
|
|
47
|
+
description?: string | null;
|
|
48
|
+
permission?: ProjectAccessPermission[];
|
|
49
|
+
};
|
|
50
|
+
export interface IUpsertApplicationProjectAccessParams extends core.ParamsDictionary {
|
|
51
|
+
projectId: string;
|
|
52
|
+
projectAccessId: string;
|
|
53
|
+
applicationId: string;
|
|
54
|
+
}
|
|
55
|
+
export type IUpsertApplicationProjectAccessBody = {
|
|
56
|
+
permission?: ProjectApplicationAccessPermission[];
|
|
57
|
+
};
|
|
58
|
+
export interface IDeleteApplicationProjectAccessParams extends core.ParamsDictionary {
|
|
59
|
+
projectId: string;
|
|
60
|
+
projectAccessId: string;
|
|
61
|
+
applicationId: string;
|
|
62
|
+
}
|
|
63
|
+
export interface IResetApiKeyProjectAccessParams extends core.ParamsDictionary {
|
|
64
|
+
projectId: string;
|
|
65
|
+
projectAccessId: string;
|
|
66
|
+
}
|
|
67
|
+
export interface IDeleteProjectAccessParams extends core.ParamsDictionary {
|
|
68
|
+
projectId: string;
|
|
69
|
+
projectAccessId: string;
|
|
70
|
+
}
|
|
71
|
+
export interface IConfirmUserProjectAccessParams extends core.ParamsDictionary {
|
|
72
|
+
projectId: string;
|
|
73
|
+
projectAccessId: string;
|
|
74
|
+
}
|
|
75
|
+
export interface IDeclineUserProjectAccessParams extends core.ParamsDictionary {
|
|
76
|
+
projectId: string;
|
|
77
|
+
projectAccessId: string;
|
|
78
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
export interface IGetProjectAdminParams extends core.ParamsDictionary {
|
|
4
|
+
projectId: string;
|
|
5
|
+
}
|
|
6
|
+
export type IPaginateProjectAdminQuery = {
|
|
7
|
+
name?: string;
|
|
8
|
+
userId?: string[];
|
|
9
|
+
} & QueryPaginate;
|
|
10
|
+
export type ICreateProjectAdminBody = {
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string | null;
|
|
13
|
+
};
|
|
14
|
+
export interface ICreateProjectAdminParams extends core.ParamsDictionary {
|
|
15
|
+
userId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IDeleteProjectAdminParams extends core.ParamsDictionary {
|
|
18
|
+
projectId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IUpdateProjectAdminParams extends core.ParamsDictionary {
|
|
21
|
+
projectId: string;
|
|
22
|
+
}
|
|
23
|
+
export type IUpdateProjectAdminBody = {
|
|
24
|
+
name?: string;
|
|
25
|
+
description?: string | null;
|
|
26
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { SubscriptionLevel, UserTransactionType } from '../../../enum';
|
|
4
|
+
export interface IGetProjectParams extends core.ParamsDictionary {
|
|
5
|
+
projectId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IGetMetricsProjectParams extends core.ParamsDictionary {
|
|
8
|
+
projectId: string;
|
|
9
|
+
}
|
|
10
|
+
export type IPaginateProjectQuery = {
|
|
11
|
+
name?: string;
|
|
12
|
+
} & QueryPaginate;
|
|
13
|
+
export interface IPaginateTransactionProjectParams extends core.ParamsDictionary {
|
|
14
|
+
projectId: string;
|
|
15
|
+
}
|
|
16
|
+
export type IPaginateTransactionProjectQuery = {
|
|
17
|
+
type?: UserTransactionType[];
|
|
18
|
+
} & QueryPaginate;
|
|
19
|
+
export type ICreateProjectBody = {
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string | null;
|
|
22
|
+
};
|
|
23
|
+
export interface IDeleteProjectParams extends core.ParamsDictionary {
|
|
24
|
+
projectId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IUpdateProjectParams extends core.ParamsDictionary {
|
|
27
|
+
projectId: string;
|
|
28
|
+
}
|
|
29
|
+
export type IUpdateProjectBody = {
|
|
30
|
+
name?: string;
|
|
31
|
+
description?: string | null;
|
|
32
|
+
};
|
|
33
|
+
export interface ILeaveProjectParams extends core.ParamsDictionary {
|
|
34
|
+
projectId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ICreateSubscriptionProjectParams extends core.ParamsDictionary {
|
|
37
|
+
projectId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface ICreateSubscriptionProjectBody {
|
|
40
|
+
level: SubscriptionLevel;
|
|
41
|
+
isAutoRenewEnabled: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface IUpdateSubscriptionProjectParams extends core.ParamsDictionary {
|
|
44
|
+
projectId: string;
|
|
45
|
+
}
|
|
46
|
+
export interface IUpdateSubscriptionProjectBody {
|
|
47
|
+
isAutoRenewEnabled?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface IRenewSubscriptionProjectParams extends core.ParamsDictionary {
|
|
50
|
+
projectId: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ISetOwnershipProjectParams extends core.ParamsDictionary {
|
|
53
|
+
projectId: string;
|
|
54
|
+
}
|
|
55
|
+
export interface ISetOwnershipProjectBody {
|
|
56
|
+
userId: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as core from 'express-serve-static-core';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
import { UserCreditPurchaseCurrency, UserCreditPurchasePaymentMethod, UserCreditPurchasePlatform } from '../../../enum';
|
|
4
|
+
export type IPaginateUserCreditPurchaseAdminQuery = {
|
|
5
|
+
platform?: UserCreditPurchasePlatform[];
|
|
6
|
+
paymentMethod?: UserCreditPurchasePaymentMethod[];
|
|
7
|
+
currency?: UserCreditPurchaseCurrency[];
|
|
8
|
+
userId?: string[];
|
|
9
|
+
adminId?: string[];
|
|
10
|
+
} & QueryPaginate;
|
|
11
|
+
export interface IGetUserCreditPurchaseAdminParams extends core.ParamsDictionary {
|
|
12
|
+
userCreditPurchaseId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ICreateUserCreditPurchaseAdminParams extends core.ParamsDictionary {
|
|
15
|
+
userId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ICreateUserCreditPurchaseAdminBody {
|
|
18
|
+
commentary?: string | null;
|
|
19
|
+
paymentMethod: UserCreditPurchasePaymentMethod;
|
|
20
|
+
platform: UserCreditPurchasePlatform;
|
|
21
|
+
currency: UserCreditPurchaseCurrency;
|
|
22
|
+
amount: number;
|
|
23
|
+
creditAmount: number;
|
|
24
|
+
externalId?: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface IUpdateUserCreditPurchaseAdminParams extends core.ParamsDictionary {
|
|
27
|
+
userCreditPurchaseId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IUpdateUserCreditPurchaseAdminBody {
|
|
30
|
+
commentary?: string | null;
|
|
31
|
+
paymentMethod?: UserCreditPurchasePaymentMethod;
|
|
32
|
+
platform?: UserCreditPurchasePlatform;
|
|
33
|
+
currency?: UserCreditPurchaseCurrency;
|
|
34
|
+
amount?: number;
|
|
35
|
+
creditAmount?: number;
|
|
36
|
+
externalId?: string | null;
|
|
37
|
+
}
|
|
38
|
+
export interface IDeleteUserCreditPurchaseAdminParams extends core.ParamsDictionary {
|
|
39
|
+
userCreditPurchaseId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface IRefundUserCreditPurchaseAdminParams extends core.ParamsDictionary {
|
|
42
|
+
userCreditPurchaseId: string;
|
|
43
|
+
}
|