@abyss-project/main 1.0.110 → 1.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/billing-account.admin.api.d.ts +10 -0
- package/dist/api/billing-account.admin.api.js +38 -0
- package/dist/api/billing-addon-template.admin.api.d.ts +7 -0
- package/dist/api/billing-addon-template.admin.api.js +26 -0
- package/dist/api/billing-plan.admin.api.d.ts +6 -0
- package/dist/api/billing-plan.admin.api.js +20 -0
- package/dist/api/billing-plan.api.d.ts +4 -0
- package/dist/api/billing-plan.api.js +12 -0
- package/dist/api/index.d.ts +7 -4
- package/dist/api/index.js +7 -4
- package/dist/api/organization-billing.api.d.ts +17 -0
- package/dist/api/organization-billing.api.js +64 -0
- package/dist/api/organization-member.api.d.ts +9 -6
- package/dist/api/organization-member.api.js +19 -7
- package/dist/api/organization.api.d.ts +3 -2
- package/dist/api/organization.api.js +5 -1
- package/dist/api/project-access.admin.api.d.ts +1 -3
- package/dist/api/project-access.admin.api.js +1 -9
- package/dist/api/project-access.api.d.ts +5 -3
- package/dist/api/project-access.api.js +17 -9
- package/dist/api/project-api-key.api.d.ts +8 -0
- package/dist/api/project-api-key.api.js +29 -0
- package/dist/api/project.api.d.ts +1 -5
- package/dist/api/project.api.js +1 -17
- package/dist/api/user-billing.api.d.ts +11 -0
- package/dist/api/user-billing.api.js +40 -0
- package/dist/api/user.api.d.ts +1 -4
- package/dist/api/user.api.js +1 -16
- package/dist/index.d.ts +1 -37
- package/dist/index.js +1 -37
- package/dist/permissions/ability.d.ts +12 -0
- package/dist/permissions/ability.js +134 -0
- package/dist/permissions/index.d.ts +1 -0
- package/dist/{workflow → permissions}/index.js +1 -1
- package/dist/types/enum/abyss-application-event.enum.d.ts +17 -1
- package/dist/types/enum/abyss-application-event.enum.js +16 -0
- package/dist/types/enum/index.d.ts +1 -4
- package/dist/types/enum/index.js +1 -4
- package/dist/types/enum/onboarding-steps.enum.d.ts +5 -3
- package/dist/types/enum/onboarding-steps.enum.js +5 -3
- package/dist/types/enum/organization-billing.enum.d.ts +70 -0
- package/dist/types/enum/organization-billing.enum.js +82 -0
- package/dist/types/enum/user-type.enum.d.ts +1 -0
- package/dist/types/enum/user-type.enum.js +1 -0
- package/dist/types/interface/api/index.d.ts +13 -8
- package/dist/types/interface/api/index.js +13 -8
- package/dist/types/interface/api/requests/billing-account.admin.request.d.ts +53 -0
- package/dist/types/interface/api/requests/billing-addon-template.request.d.ts +32 -0
- package/dist/types/interface/api/requests/billing-plan.request.d.ts +37 -0
- package/dist/types/interface/api/requests/organization-billing.request.d.ts +95 -0
- package/dist/types/interface/api/requests/organization-member.request.d.ts +13 -3
- package/dist/types/interface/api/requests/organization.request.d.ts +10 -0
- package/dist/types/interface/api/requests/project-access.admin.request.d.ts +1 -20
- package/dist/types/interface/api/requests/project-access.request.d.ts +16 -20
- package/dist/types/interface/api/requests/project-api-key.request.d.ts +39 -0
- package/dist/types/interface/api/requests/project.request.d.ts +2 -23
- package/dist/types/interface/api/requests/user-billing.request.d.ts +23 -0
- package/dist/types/interface/api/requests/user.request.d.ts +2 -8
- package/dist/types/interface/api/responses/billing-account.admin.response.d.ts +38 -0
- package/dist/types/interface/api/responses/billing-addon-template.response.d.ts +22 -0
- package/dist/types/interface/api/responses/billing-plan.response.d.ts +26 -0
- package/dist/types/interface/api/responses/gift-code.admin.response.d.ts +0 -1
- package/dist/types/interface/api/responses/gift-code.response.d.ts +0 -1
- package/dist/types/interface/api/responses/organization-billing.response.d.ts +82 -0
- package/dist/types/interface/api/responses/organization-member.response.d.ts +20 -8
- package/dist/types/interface/api/responses/project-access.admin.response.d.ts +0 -8
- package/dist/types/interface/api/responses/project-access.response.d.ts +16 -8
- package/dist/types/interface/api/responses/project-api-key.response.d.ts +26 -0
- package/dist/types/interface/api/responses/project.response.d.ts +0 -14
- package/dist/types/interface/api/responses/report.public.response.d.ts +0 -1
- package/dist/types/interface/api/responses/user-billing.response.d.ts +45 -0
- package/dist/types/interface/index.d.ts +13 -3
- package/dist/types/interface/index.js +13 -3
- package/dist/types/interface/models/application.model.d.ts +1 -1
- package/dist/types/interface/models/atlas-group.model.d.ts +2 -2
- package/dist/types/interface/models/atlas-page.model.d.ts +2 -2
- package/dist/types/interface/models/atlas.model.d.ts +8 -5
- package/dist/types/interface/models/billing-account.model.d.ts +40 -0
- package/dist/types/interface/models/billing-account.model.js +2 -0
- package/dist/types/interface/models/billing-addon-template.model.d.ts +15 -0
- package/dist/types/interface/models/billing-addon-template.model.js +2 -0
- package/dist/types/interface/models/board-card-checklist.model.d.ts +1 -1
- package/dist/types/interface/models/board-card.model.d.ts +6 -6
- package/dist/types/interface/models/board-column.model.d.ts +1 -1
- package/dist/types/interface/models/board.model.d.ts +7 -4
- package/dist/types/interface/models/credit-transaction.model.d.ts +22 -0
- package/dist/types/interface/models/credit-transaction.model.js +2 -0
- package/dist/types/interface/models/draw.model.d.ts +3 -0
- package/dist/types/interface/models/gift-code-activation.model.d.ts +4 -3
- package/dist/types/interface/models/gift-code.model.d.ts +1 -1
- package/dist/types/interface/models/invoice.model.d.ts +26 -0
- package/dist/types/interface/models/invoice.model.js +2 -0
- package/dist/types/interface/models/memo.model.d.ts +3 -0
- package/dist/types/interface/models/organization-billing.model.d.ts +37 -0
- package/dist/types/interface/models/organization-billing.model.js +2 -0
- package/dist/types/interface/models/organization-member.model.d.ts +0 -1
- package/dist/types/interface/models/organization-project-quota.model.d.ts +15 -0
- package/dist/types/interface/models/organization-project-quota.model.js +2 -0
- package/dist/types/interface/models/organization-quota-alert.model.d.ts +11 -0
- package/dist/types/interface/models/organization-quota-alert.model.js +2 -0
- package/dist/types/interface/models/organization-service-quota.model.d.ts +13 -0
- package/dist/types/interface/models/organization-service-quota.model.js +2 -0
- package/dist/types/interface/models/organization.model.d.ts +7 -0
- package/dist/types/interface/models/plan-template.model.d.ts +29 -0
- package/dist/types/interface/models/plan-template.model.js +2 -0
- package/dist/types/interface/models/project-access.model.d.ts +5 -6
- package/dist/types/interface/models/project-api-key-application-access.model.d.ts +13 -0
- package/dist/types/interface/models/project-api-key-application-access.model.js +2 -0
- package/dist/types/interface/models/project-api-key.model.d.ts +15 -0
- package/dist/types/interface/models/project-api-key.model.js +2 -0
- package/dist/types/interface/models/project.model.d.ts +8 -12
- package/dist/types/interface/models/quota-grant.model.d.ts +20 -0
- package/dist/types/interface/models/quota-grant.model.js +2 -0
- package/dist/types/interface/models/retrospective.model.d.ts +6 -3
- package/dist/types/interface/models/short-link.model.d.ts +4 -1
- package/dist/types/interface/models/team-project-access.model.d.ts +2 -0
- package/dist/types/interface/models/team-project-application-access.model.d.ts +13 -0
- package/dist/types/interface/models/team-project-application-access.model.js +2 -0
- package/dist/types/interface/models/team.model.d.ts +1 -1
- package/dist/types/interface/models/token-history.model.d.ts +2 -0
- package/dist/types/interface/models/usage-record.model.d.ts +24 -0
- package/dist/types/interface/models/usage-record.model.js +2 -0
- package/dist/types/interface/models/user-ticket-message.model.d.ts +1 -1
- package/dist/types/interface/models/user-ticket.model.d.ts +1 -1
- package/dist/types/interface/models/user.model.d.ts +16 -18
- package/dist/types/utils/onboarding.utils.d.ts +1 -6
- package/dist/types/utils/onboarding.utils.js +9 -5
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/package.json +2 -1
- package/dist/api/user-credit-purchase.admin.api.d.ts +0 -7
- package/dist/api/user-credit-purchase.admin.api.js +0 -28
- package/dist/api/user-credit-purchase.api.d.ts +0 -3
- package/dist/api/user-credit-purchase.api.js +0 -14
- package/dist/api/user-transaction.admin.api.d.ts +0 -5
- package/dist/api/user-transaction.admin.api.js +0 -20
- package/dist/api/user-transaction.api.d.ts +0 -3
- package/dist/api/user-transaction.api.js +0 -14
- package/dist/expressions/index.d.ts +0 -5
- package/dist/expressions/index.js +0 -16
- package/dist/expressions/mapper.d.ts +0 -9
- package/dist/expressions/mapper.js +0 -90
- package/dist/expressions/parser.d.ts +0 -3
- package/dist/expressions/parser.js +0 -97
- package/dist/expressions/resolver.d.ts +0 -12
- package/dist/expressions/resolver.js +0 -88
- package/dist/expressions/types.d.ts +0 -36
- package/dist/types/enum/integration-type.enum.d.ts +0 -4
- package/dist/types/enum/integration-type.enum.js +0 -8
- package/dist/types/enum/invoice-status.enum.d.ts +0 -7
- package/dist/types/enum/invoice-status.enum.js +0 -11
- package/dist/types/enum/organization-role.enum.d.ts +0 -6
- package/dist/types/enum/organization-role.enum.js +0 -10
- package/dist/types/enum/organization-subscription-status.enum.d.ts +0 -7
- package/dist/types/enum/organization-subscription-status.enum.js +0 -11
- package/dist/types/enum/plan-billing-period.enum.d.ts +0 -4
- package/dist/types/enum/plan-billing-period.enum.js +0 -8
- package/dist/types/enum/plan-status.enum.d.ts +0 -4
- package/dist/types/enum/plan-status.enum.js +0 -8
- package/dist/types/enum/subscription-level.enum.d.ts +0 -72
- package/dist/types/enum/subscription-level.enum.js +0 -179
- package/dist/types/enum/usage-record-type.enum.d.ts +0 -8
- package/dist/types/enum/usage-record-type.enum.js +0 -12
- package/dist/types/enum/user-credit-purchase-payment-method.enum.d.ts +0 -3
- package/dist/types/enum/user-credit-purchase-payment-method.enum.js +0 -7
- package/dist/types/enum/user-credit-purchase-platform.enum.d.ts +0 -8
- package/dist/types/enum/user-credit-purchase-platform.enum.js +0 -12
- package/dist/types/enum/user-transaction-type.enum.d.ts +0 -14
- package/dist/types/enum/user-transaction-type.enum.js +0 -18
- package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +0 -42
- package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +0 -9
- package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +0 -30
- package/dist/types/interface/api/requests/user-transaction.request.d.ts +0 -8
- package/dist/types/interface/api/responses/user-credit-purchase.admin.response.d.ts +0 -22
- package/dist/types/interface/api/responses/user-credit-purchase.response.d.ts +0 -8
- package/dist/types/interface/api/responses/user-transaction.admin.response.d.ts +0 -13
- package/dist/types/interface/api/responses/user-transaction.response.d.ts +0 -11
- package/dist/types/interface/models/subscription.model.d.ts +0 -16
- package/dist/types/interface/models/user-credit-purchase.model.d.ts +0 -22
- package/dist/types/interface/models/user-transaction.model.d.ts +0 -19
- package/dist/utils/organization-permission.utils.d.ts +0 -3
- package/dist/utils/organization-permission.utils.js +0 -36
- package/dist/utils/subscription.utils.d.ts +0 -6
- package/dist/utils/subscription.utils.js +0 -41
- package/dist/workflow/expression/expression-functions.utils.d.ts +0 -6
- package/dist/workflow/expression/expression-functions.utils.js +0 -61
- package/dist/workflow/expression/expression-mapper.d.ts +0 -11
- package/dist/workflow/expression/expression-mapper.js +0 -32
- package/dist/workflow/expression/expression-mapping.utils.d.ts +0 -4
- package/dist/workflow/expression/expression-mapping.utils.js +0 -43
- package/dist/workflow/expression/expression-resolver.utils.d.ts +0 -3
- package/dist/workflow/expression/expression-resolver.utils.js +0 -54
- package/dist/workflow/expression/expression-tokenizer.utils.d.ts +0 -4
- package/dist/workflow/expression/expression-tokenizer.utils.js +0 -123
- package/dist/workflow/expression/expression.types.d.ts +0 -33
- package/dist/workflow/expression/expression.types.js +0 -17
- package/dist/workflow/expression/index.d.ts +0 -10
- package/dist/workflow/expression/index.js +0 -40
- package/dist/workflow/expression/workflow-resolver.d.ts +0 -9
- package/dist/workflow/expression/workflow-resolver.js +0 -102
- package/dist/workflow/expressions/functions/array.d.ts +0 -2
- package/dist/workflow/expressions/functions/array.js +0 -252
- package/dist/workflow/expressions/functions/crypto.d.ts +0 -2
- package/dist/workflow/expressions/functions/crypto.js +0 -101
- package/dist/workflow/expressions/functions/datetime.d.ts +0 -2
- package/dist/workflow/expressions/functions/datetime.js +0 -256
- package/dist/workflow/expressions/functions/index.d.ts +0 -7
- package/dist/workflow/expressions/functions/index.js +0 -46
- package/dist/workflow/expressions/functions/math.d.ts +0 -2
- package/dist/workflow/expressions/functions/math.js +0 -174
- package/dist/workflow/expressions/functions/string.d.ts +0 -2
- package/dist/workflow/expressions/functions/string.js +0 -301
- package/dist/workflow/expressions/functions/utility.d.ts +0 -2
- package/dist/workflow/expressions/functions/utility.js +0 -230
- package/dist/workflow/expressions/helpers.d.ts +0 -26
- package/dist/workflow/expressions/helpers.js +0 -132
- package/dist/workflow/expressions/index.d.ts +0 -15
- package/dist/workflow/expressions/index.js +0 -61
- package/dist/workflow/expressions/parser.d.ts +0 -8
- package/dist/workflow/expressions/parser.js +0 -436
- package/dist/workflow/expressions/pipes/array-pipes.d.ts +0 -2
- package/dist/workflow/expressions/pipes/array-pipes.js +0 -248
- package/dist/workflow/expressions/pipes/index.d.ts +0 -8
- package/dist/workflow/expressions/pipes/index.js +0 -40
- package/dist/workflow/expressions/pipes/object-pipes.d.ts +0 -2
- package/dist/workflow/expressions/pipes/object-pipes.js +0 -243
- package/dist/workflow/expressions/pipes/string-pipes.d.ts +0 -9
- package/dist/workflow/expressions/pipes/string-pipes.js +0 -178
- package/dist/workflow/expressions/resolver.d.ts +0 -8
- package/dist/workflow/expressions/resolver.js +0 -263
- package/dist/workflow/expressions/types.d.ts +0 -144
- package/dist/workflow/expressions/types.js +0 -33
- package/dist/workflow/index.d.ts +0 -1
- /package/dist/{expressions/types.js → types/interface/api/requests/billing-account.admin.request.js} +0 -0
- /package/dist/types/interface/api/requests/{user-credit-purchase.admin.request.js → billing-addon-template.request.js} +0 -0
- /package/dist/types/interface/api/requests/{user-credit-purchase.request.js → billing-plan.request.js} +0 -0
- /package/dist/types/interface/api/requests/{user-transaction.admin.request.js → organization-billing.request.js} +0 -0
- /package/dist/types/interface/api/requests/{user-transaction.request.js → project-api-key.request.js} +0 -0
- /package/dist/types/interface/api/{responses/user-credit-purchase.admin.response.js → requests/user-billing.request.js} +0 -0
- /package/dist/types/interface/api/responses/{user-credit-purchase.response.js → billing-account.admin.response.js} +0 -0
- /package/dist/types/interface/api/responses/{user-transaction.admin.response.js → billing-addon-template.response.js} +0 -0
- /package/dist/types/interface/api/responses/{user-transaction.response.js → billing-plan.response.js} +0 -0
- /package/dist/types/interface/{models/subscription.model.js → api/responses/organization-billing.response.js} +0 -0
- /package/dist/types/interface/{models/user-credit-purchase.model.js → api/responses/project-api-key.response.js} +0 -0
- /package/dist/types/interface/{models/user-transaction.model.js → api/responses/user-billing.response.js} +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractPaths = exports.isDynamicExpression = exports.resolveExpression = void 0;
|
|
4
|
-
const parser_1 = require("./parser");
|
|
5
|
-
function resolveExpression(expression, context, options = {}) {
|
|
6
|
-
const opts = {
|
|
7
|
-
strict: false,
|
|
8
|
-
functions: {},
|
|
9
|
-
allowNested: true,
|
|
10
|
-
maxDepth: 10,
|
|
11
|
-
...options,
|
|
12
|
-
};
|
|
13
|
-
if (!expression) {
|
|
14
|
-
return expression;
|
|
15
|
-
}
|
|
16
|
-
const parsed = (0, parser_1.parseExpression)(expression);
|
|
17
|
-
if (!parsed.isDynamic) {
|
|
18
|
-
return expression;
|
|
19
|
-
}
|
|
20
|
-
if (parsed.tokens.length === 1 && parsed.tokens[0].type === 'expression') {
|
|
21
|
-
return evaluateExpression(parsed.tokens[0].value, context, opts);
|
|
22
|
-
}
|
|
23
|
-
return parsed.tokens
|
|
24
|
-
.map((token) => {
|
|
25
|
-
if (token.type === 'text') {
|
|
26
|
-
return token.value;
|
|
27
|
-
}
|
|
28
|
-
if (token.type === 'expression') {
|
|
29
|
-
const value = evaluateExpression(token.value, context, opts);
|
|
30
|
-
return value === undefined || value === null ? '' : String(value);
|
|
31
|
-
}
|
|
32
|
-
return '';
|
|
33
|
-
})
|
|
34
|
-
.join('');
|
|
35
|
-
}
|
|
36
|
-
exports.resolveExpression = resolveExpression;
|
|
37
|
-
function evaluateExpression(expression, context, options) {
|
|
38
|
-
try {
|
|
39
|
-
const value = resolvePath(expression, context, options);
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
if (options.strict) {
|
|
44
|
-
throw error;
|
|
45
|
-
}
|
|
46
|
-
return undefined;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function resolvePath(path, context, options, depth = 0) {
|
|
50
|
-
if (depth > options.maxDepth) {
|
|
51
|
-
throw new Error(`Maximum depth exceeded for path: ${path}`);
|
|
52
|
-
}
|
|
53
|
-
const bracketMatch = path.match(/^([^[]+)\[['"]([^'"]+)['"]\](.*)$/);
|
|
54
|
-
if (bracketMatch) {
|
|
55
|
-
const [, base, key, rest] = bracketMatch;
|
|
56
|
-
const baseValue = resolvePath(base, context, options, depth + 1);
|
|
57
|
-
if (baseValue === undefined || baseValue === null) {
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
60
|
-
const value = baseValue[key];
|
|
61
|
-
if (rest && rest.length > 0) {
|
|
62
|
-
return resolvePath(rest.replace(/^\./, ''), { _: value }, options, depth + 1);
|
|
63
|
-
}
|
|
64
|
-
return value;
|
|
65
|
-
}
|
|
66
|
-
const parts = path.split('.');
|
|
67
|
-
let current = context;
|
|
68
|
-
for (const part of parts) {
|
|
69
|
-
if (current === undefined || current === null) {
|
|
70
|
-
return undefined;
|
|
71
|
-
}
|
|
72
|
-
if (typeof current !== 'object') {
|
|
73
|
-
return undefined;
|
|
74
|
-
}
|
|
75
|
-
current = current[part];
|
|
76
|
-
}
|
|
77
|
-
return current;
|
|
78
|
-
}
|
|
79
|
-
function isDynamicExpression(expression) {
|
|
80
|
-
const parsed = (0, parser_1.parseExpression)(expression);
|
|
81
|
-
return parsed.isDynamic;
|
|
82
|
-
}
|
|
83
|
-
exports.isDynamicExpression = isDynamicExpression;
|
|
84
|
-
function extractPaths(expression) {
|
|
85
|
-
const parsed = (0, parser_1.parseExpression)(expression);
|
|
86
|
-
return parsed.references.map((ref) => `${ref.source}.${ref.path}`);
|
|
87
|
-
}
|
|
88
|
-
exports.extractPaths = extractPaths;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export interface ResourceMapping<TSource = string> {
|
|
2
|
-
source: TSource;
|
|
3
|
-
displayPath: string;
|
|
4
|
-
savePath: string;
|
|
5
|
-
resourceId: string;
|
|
6
|
-
resourceName: string;
|
|
7
|
-
}
|
|
8
|
-
export type ExpressionToken = {
|
|
9
|
-
type: 'text';
|
|
10
|
-
value: string;
|
|
11
|
-
} | {
|
|
12
|
-
type: 'expression';
|
|
13
|
-
value: string;
|
|
14
|
-
raw: string;
|
|
15
|
-
} | {
|
|
16
|
-
type: 'reference';
|
|
17
|
-
source: string;
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface ExpressionParserConfig {
|
|
21
|
-
openDelimiter?: string;
|
|
22
|
-
closeDelimiter?: string;
|
|
23
|
-
trimExpressions?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface ParsedExpression {
|
|
26
|
-
tokens: ExpressionToken[];
|
|
27
|
-
isDynamic: boolean;
|
|
28
|
-
references: Array<{
|
|
29
|
-
source: string;
|
|
30
|
-
path: string;
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
export interface ExpressionMappingOptions {
|
|
34
|
-
strict?: boolean;
|
|
35
|
-
preserveUnknown?: boolean;
|
|
36
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IntegrationType = void 0;
|
|
4
|
-
var IntegrationType;
|
|
5
|
-
(function (IntegrationType) {
|
|
6
|
-
IntegrationType["SLACK"] = "SLACK";
|
|
7
|
-
IntegrationType["DISCORD"] = "DISCORD";
|
|
8
|
-
})(IntegrationType || (exports.IntegrationType = IntegrationType = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvoiceStatus = void 0;
|
|
4
|
-
var InvoiceStatus;
|
|
5
|
-
(function (InvoiceStatus) {
|
|
6
|
-
InvoiceStatus["DRAFT"] = "DRAFT";
|
|
7
|
-
InvoiceStatus["PENDING"] = "PENDING";
|
|
8
|
-
InvoiceStatus["PAID"] = "PAID";
|
|
9
|
-
InvoiceStatus["FAILED"] = "FAILED";
|
|
10
|
-
InvoiceStatus["VOID"] = "VOID";
|
|
11
|
-
})(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationRole = void 0;
|
|
4
|
-
var OrganizationRole;
|
|
5
|
-
(function (OrganizationRole) {
|
|
6
|
-
OrganizationRole["OWNER"] = "OWNER";
|
|
7
|
-
OrganizationRole["ADMIN"] = "ADMIN";
|
|
8
|
-
OrganizationRole["MEMBER"] = "MEMBER";
|
|
9
|
-
OrganizationRole["VIEWER"] = "VIEWER";
|
|
10
|
-
})(OrganizationRole || (exports.OrganizationRole = OrganizationRole = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationSubscriptionStatus = void 0;
|
|
4
|
-
var OrganizationSubscriptionStatus;
|
|
5
|
-
(function (OrganizationSubscriptionStatus) {
|
|
6
|
-
OrganizationSubscriptionStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
-
OrganizationSubscriptionStatus["TRIALING"] = "TRIALING";
|
|
8
|
-
OrganizationSubscriptionStatus["PAST_DUE"] = "PAST_DUE";
|
|
9
|
-
OrganizationSubscriptionStatus["CANCELED"] = "CANCELED";
|
|
10
|
-
OrganizationSubscriptionStatus["DOWNGRADED"] = "DOWNGRADED";
|
|
11
|
-
})(OrganizationSubscriptionStatus || (exports.OrganizationSubscriptionStatus = OrganizationSubscriptionStatus = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlanBillingPeriod = void 0;
|
|
4
|
-
var PlanBillingPeriod;
|
|
5
|
-
(function (PlanBillingPeriod) {
|
|
6
|
-
PlanBillingPeriod["MONTHLY"] = "MONTHLY";
|
|
7
|
-
PlanBillingPeriod["YEARLY"] = "YEARLY";
|
|
8
|
-
})(PlanBillingPeriod || (exports.PlanBillingPeriod = PlanBillingPeriod = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlanStatus = void 0;
|
|
4
|
-
var PlanStatus;
|
|
5
|
-
(function (PlanStatus) {
|
|
6
|
-
PlanStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
-
PlanStatus["ARCHIVED"] = "ARCHIVED";
|
|
8
|
-
})(PlanStatus || (exports.PlanStatus = PlanStatus = {}));
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { AbyssService } from './abyss-service.enum';
|
|
2
|
-
export declare enum SubscriptionLevel {
|
|
3
|
-
BASE = "BASE",
|
|
4
|
-
ADVANCED = "ADVANCED",
|
|
5
|
-
PREMIUM = "PREMIUM"
|
|
6
|
-
}
|
|
7
|
-
export declare enum UserSubscriptionPrice {
|
|
8
|
-
BASE = 0,
|
|
9
|
-
ADVANCED = 230,
|
|
10
|
-
PREMIUM = 620
|
|
11
|
-
}
|
|
12
|
-
export declare enum ProjectSubscriptionPrice {
|
|
13
|
-
BASE = 0,
|
|
14
|
-
ADVANCED = 430,
|
|
15
|
-
PREMIUM = 880
|
|
16
|
-
}
|
|
17
|
-
export type UserConfigPerService = {
|
|
18
|
-
[AbyssService.ABYSS]: {
|
|
19
|
-
maxNumberOfProject: number;
|
|
20
|
-
};
|
|
21
|
-
[AbyssService.ABYSS_CLOUD]: {
|
|
22
|
-
maxNumberOfCloud: number;
|
|
23
|
-
maxStorageSizeGo: number;
|
|
24
|
-
maxCloudShare: number;
|
|
25
|
-
};
|
|
26
|
-
[AbyssService.ABYSS_CRYPT]: {
|
|
27
|
-
maxFileSizeMo: number;
|
|
28
|
-
};
|
|
29
|
-
[AbyssService.ABYSS_MEMORIES]: {
|
|
30
|
-
maxMemberPerEvent: number;
|
|
31
|
-
};
|
|
32
|
-
[AbyssService.ABYSS_BANKING]: {};
|
|
33
|
-
[AbyssService.ABYSS_SPOTLIGHT]: {};
|
|
34
|
-
[AbyssService.ABYSS_FORM]: {
|
|
35
|
-
maxDocumentPerForm: number;
|
|
36
|
-
maxDocumentSizeMo: number;
|
|
37
|
-
maxSubmissionPerFormPerDay: number;
|
|
38
|
-
maxSubmissionPerForm: number;
|
|
39
|
-
allowSubmissionDocument: boolean;
|
|
40
|
-
};
|
|
41
|
-
[AbyssService.ABYSS_TRAINING]: {};
|
|
42
|
-
};
|
|
43
|
-
export type UserSubscriptionConfig = Record<SubscriptionLevel, UserConfigPerService>;
|
|
44
|
-
export declare const USER_SUBSCRIPTION_CONFIG: UserSubscriptionConfig;
|
|
45
|
-
type ProjectConfigPerService = {
|
|
46
|
-
[AbyssService.ABYSS_MONITOR]: {
|
|
47
|
-
maxCronTask: number;
|
|
48
|
-
logHistoryDays: number;
|
|
49
|
-
statsHistoryDays: number;
|
|
50
|
-
eventPublishLimitPerDay: number;
|
|
51
|
-
maxSentinelCount: number;
|
|
52
|
-
};
|
|
53
|
-
[AbyssService.ABYSS_STORAGE]: {
|
|
54
|
-
maxFileSizeMo: number;
|
|
55
|
-
maxStorageSizeGo: number;
|
|
56
|
-
maxThumbnailPerFile: number;
|
|
57
|
-
maxPreSignUrlPerHour: number;
|
|
58
|
-
freeFilePerDay: number;
|
|
59
|
-
creditPerFilePerDay: number;
|
|
60
|
-
maxStoreEntry: number;
|
|
61
|
-
};
|
|
62
|
-
[AbyssService.ABYSS_FORM]: {
|
|
63
|
-
maxDocumentPerForm: number;
|
|
64
|
-
maxDocumentSizeMo: number;
|
|
65
|
-
maxSubmissionPerFormPerDay: number;
|
|
66
|
-
maxSubmissionPerForm: number;
|
|
67
|
-
allowSubmissionDocument: boolean;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export type ProjectSubscriptionConfig = Record<SubscriptionLevel, ProjectConfigPerService>;
|
|
71
|
-
export declare const PROJECT_SUBSCRIPTION_CONFIG: ProjectSubscriptionConfig;
|
|
72
|
-
export {};
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PROJECT_SUBSCRIPTION_CONFIG = exports.USER_SUBSCRIPTION_CONFIG = exports.ProjectSubscriptionPrice = exports.UserSubscriptionPrice = exports.SubscriptionLevel = void 0;
|
|
4
|
-
const abyss_service_enum_1 = require("./abyss-service.enum");
|
|
5
|
-
var SubscriptionLevel;
|
|
6
|
-
(function (SubscriptionLevel) {
|
|
7
|
-
SubscriptionLevel["BASE"] = "BASE";
|
|
8
|
-
SubscriptionLevel["ADVANCED"] = "ADVANCED";
|
|
9
|
-
SubscriptionLevel["PREMIUM"] = "PREMIUM";
|
|
10
|
-
})(SubscriptionLevel || (exports.SubscriptionLevel = SubscriptionLevel = {}));
|
|
11
|
-
var UserSubscriptionPrice;
|
|
12
|
-
(function (UserSubscriptionPrice) {
|
|
13
|
-
UserSubscriptionPrice[UserSubscriptionPrice["BASE"] = 0] = "BASE";
|
|
14
|
-
UserSubscriptionPrice[UserSubscriptionPrice["ADVANCED"] = 230] = "ADVANCED";
|
|
15
|
-
UserSubscriptionPrice[UserSubscriptionPrice["PREMIUM"] = 620] = "PREMIUM";
|
|
16
|
-
})(UserSubscriptionPrice || (exports.UserSubscriptionPrice = UserSubscriptionPrice = {}));
|
|
17
|
-
var ProjectSubscriptionPrice;
|
|
18
|
-
(function (ProjectSubscriptionPrice) {
|
|
19
|
-
ProjectSubscriptionPrice[ProjectSubscriptionPrice["BASE"] = 0] = "BASE";
|
|
20
|
-
ProjectSubscriptionPrice[ProjectSubscriptionPrice["ADVANCED"] = 430] = "ADVANCED";
|
|
21
|
-
ProjectSubscriptionPrice[ProjectSubscriptionPrice["PREMIUM"] = 880] = "PREMIUM";
|
|
22
|
-
})(ProjectSubscriptionPrice || (exports.ProjectSubscriptionPrice = ProjectSubscriptionPrice = {}));
|
|
23
|
-
exports.USER_SUBSCRIPTION_CONFIG = {
|
|
24
|
-
[SubscriptionLevel.BASE]: {
|
|
25
|
-
ABYSS: {
|
|
26
|
-
maxNumberOfProject: 2,
|
|
27
|
-
},
|
|
28
|
-
ABYSS_CLOUD: {
|
|
29
|
-
maxNumberOfCloud: 1,
|
|
30
|
-
maxStorageSizeGo: 5,
|
|
31
|
-
maxCloudShare: 1,
|
|
32
|
-
},
|
|
33
|
-
ABYSS_CRYPT: {
|
|
34
|
-
maxFileSizeMo: 20,
|
|
35
|
-
},
|
|
36
|
-
ABYSS_MEMORIES: {
|
|
37
|
-
maxMemberPerEvent: 8,
|
|
38
|
-
},
|
|
39
|
-
ABYSS_BANKING: {},
|
|
40
|
-
ABYSS_SPOTLIGHT: {},
|
|
41
|
-
ABYSS_FORM: {
|
|
42
|
-
maxDocumentPerForm: 10,
|
|
43
|
-
maxDocumentSizeMo: 10,
|
|
44
|
-
maxSubmissionPerFormPerDay: 100,
|
|
45
|
-
maxSubmissionPerForm: 2000,
|
|
46
|
-
allowSubmissionDocument: false,
|
|
47
|
-
},
|
|
48
|
-
ABYSS_TRAINING: {},
|
|
49
|
-
},
|
|
50
|
-
[SubscriptionLevel.ADVANCED]: {
|
|
51
|
-
ABYSS: {
|
|
52
|
-
maxNumberOfProject: 10,
|
|
53
|
-
},
|
|
54
|
-
ABYSS_CLOUD: {
|
|
55
|
-
maxNumberOfCloud: 3,
|
|
56
|
-
maxStorageSizeGo: 10,
|
|
57
|
-
maxCloudShare: 5,
|
|
58
|
-
},
|
|
59
|
-
ABYSS_CRYPT: {
|
|
60
|
-
maxFileSizeMo: 100,
|
|
61
|
-
},
|
|
62
|
-
ABYSS_MEMORIES: {
|
|
63
|
-
maxMemberPerEvent: Infinity,
|
|
64
|
-
},
|
|
65
|
-
ABYSS_BANKING: {},
|
|
66
|
-
ABYSS_SPOTLIGHT: {},
|
|
67
|
-
ABYSS_FORM: {
|
|
68
|
-
maxDocumentPerForm: 50,
|
|
69
|
-
maxDocumentSizeMo: 20,
|
|
70
|
-
maxSubmissionPerFormPerDay: Infinity,
|
|
71
|
-
maxSubmissionPerForm: Infinity,
|
|
72
|
-
allowSubmissionDocument: true,
|
|
73
|
-
},
|
|
74
|
-
ABYSS_TRAINING: {},
|
|
75
|
-
},
|
|
76
|
-
[SubscriptionLevel.PREMIUM]: {
|
|
77
|
-
ABYSS: {
|
|
78
|
-
maxNumberOfProject: Infinity,
|
|
79
|
-
},
|
|
80
|
-
ABYSS_CLOUD: {
|
|
81
|
-
maxNumberOfCloud: 5,
|
|
82
|
-
maxStorageSizeGo: 20,
|
|
83
|
-
maxCloudShare: Infinity,
|
|
84
|
-
},
|
|
85
|
-
ABYSS_CRYPT: {
|
|
86
|
-
maxFileSizeMo: 100,
|
|
87
|
-
},
|
|
88
|
-
ABYSS_MEMORIES: {
|
|
89
|
-
maxMemberPerEvent: Infinity,
|
|
90
|
-
},
|
|
91
|
-
ABYSS_BANKING: {},
|
|
92
|
-
ABYSS_SPOTLIGHT: {},
|
|
93
|
-
ABYSS_FORM: {
|
|
94
|
-
maxDocumentPerForm: 100,
|
|
95
|
-
maxDocumentSizeMo: 50,
|
|
96
|
-
maxSubmissionPerFormPerDay: Infinity,
|
|
97
|
-
maxSubmissionPerForm: Infinity,
|
|
98
|
-
allowSubmissionDocument: true,
|
|
99
|
-
},
|
|
100
|
-
ABYSS_TRAINING: {},
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
exports.PROJECT_SUBSCRIPTION_CONFIG = {
|
|
104
|
-
[SubscriptionLevel.BASE]: {
|
|
105
|
-
[abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
|
|
106
|
-
maxFileSizeMo: 25,
|
|
107
|
-
maxStorageSizeGo: 5,
|
|
108
|
-
maxThumbnailPerFile: 1,
|
|
109
|
-
maxPreSignUrlPerHour: 50,
|
|
110
|
-
freeFilePerDay: 3000,
|
|
111
|
-
creditPerFilePerDay: 0.003,
|
|
112
|
-
maxStoreEntry: 10,
|
|
113
|
-
},
|
|
114
|
-
[abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
|
|
115
|
-
maxCronTask: 0,
|
|
116
|
-
logHistoryDays: 3,
|
|
117
|
-
statsHistoryDays: 3,
|
|
118
|
-
eventPublishLimitPerDay: 100,
|
|
119
|
-
maxSentinelCount: 5,
|
|
120
|
-
},
|
|
121
|
-
ABYSS_FORM: {
|
|
122
|
-
maxDocumentPerForm: 10,
|
|
123
|
-
maxDocumentSizeMo: 10,
|
|
124
|
-
maxSubmissionPerFormPerDay: 100,
|
|
125
|
-
maxSubmissionPerForm: 2000,
|
|
126
|
-
allowSubmissionDocument: false,
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
[SubscriptionLevel.ADVANCED]: {
|
|
130
|
-
[abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
|
|
131
|
-
maxFileSizeMo: 50,
|
|
132
|
-
maxStorageSizeGo: 10,
|
|
133
|
-
maxThumbnailPerFile: Infinity,
|
|
134
|
-
maxPreSignUrlPerHour: Infinity,
|
|
135
|
-
freeFilePerDay: 6000,
|
|
136
|
-
creditPerFilePerDay: 0.002,
|
|
137
|
-
maxStoreEntry: 100,
|
|
138
|
-
},
|
|
139
|
-
[abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
|
|
140
|
-
maxCronTask: 5,
|
|
141
|
-
logHistoryDays: 7,
|
|
142
|
-
statsHistoryDays: 7,
|
|
143
|
-
eventPublishLimitPerDay: 1000,
|
|
144
|
-
maxSentinelCount: 30,
|
|
145
|
-
},
|
|
146
|
-
ABYSS_FORM: {
|
|
147
|
-
maxDocumentPerForm: 50,
|
|
148
|
-
maxDocumentSizeMo: 20,
|
|
149
|
-
maxSubmissionPerFormPerDay: Infinity,
|
|
150
|
-
maxSubmissionPerForm: Infinity,
|
|
151
|
-
allowSubmissionDocument: true,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
[SubscriptionLevel.PREMIUM]: {
|
|
155
|
-
[abyss_service_enum_1.AbyssService.ABYSS_STORAGE]: {
|
|
156
|
-
maxFileSizeMo: 100,
|
|
157
|
-
maxStorageSizeGo: 20,
|
|
158
|
-
maxThumbnailPerFile: Infinity,
|
|
159
|
-
maxPreSignUrlPerHour: Infinity,
|
|
160
|
-
freeFilePerDay: 20000,
|
|
161
|
-
creditPerFilePerDay: 0.001,
|
|
162
|
-
maxStoreEntry: 500,
|
|
163
|
-
},
|
|
164
|
-
[abyss_service_enum_1.AbyssService.ABYSS_MONITOR]: {
|
|
165
|
-
maxCronTask: 20,
|
|
166
|
-
logHistoryDays: Infinity,
|
|
167
|
-
statsHistoryDays: Infinity,
|
|
168
|
-
eventPublishLimitPerDay: 10000,
|
|
169
|
-
maxSentinelCount: 100,
|
|
170
|
-
},
|
|
171
|
-
ABYSS_FORM: {
|
|
172
|
-
maxDocumentPerForm: 100,
|
|
173
|
-
maxDocumentSizeMo: 50,
|
|
174
|
-
maxSubmissionPerFormPerDay: Infinity,
|
|
175
|
-
maxSubmissionPerForm: Infinity,
|
|
176
|
-
allowSubmissionDocument: true,
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare enum UsageRecordType {
|
|
2
|
-
STORAGE_FILE_COUNT = "STORAGE_FILE_COUNT",
|
|
3
|
-
STORAGE_SIZE_BYTES = "STORAGE_SIZE_BYTES",
|
|
4
|
-
MONITOR_LOG_COUNT = "MONITOR_LOG_COUNT",
|
|
5
|
-
MONITOR_EVENT_COUNT = "MONITOR_EVENT_COUNT",
|
|
6
|
-
WORKFLOW_EXECUTION_COUNT = "WORKFLOW_EXECUTION_COUNT",
|
|
7
|
-
INTERNAL_TICKET_COUNT = "INTERNAL_TICKET_COUNT"
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UsageRecordType = void 0;
|
|
4
|
-
var UsageRecordType;
|
|
5
|
-
(function (UsageRecordType) {
|
|
6
|
-
UsageRecordType["STORAGE_FILE_COUNT"] = "STORAGE_FILE_COUNT";
|
|
7
|
-
UsageRecordType["STORAGE_SIZE_BYTES"] = "STORAGE_SIZE_BYTES";
|
|
8
|
-
UsageRecordType["MONITOR_LOG_COUNT"] = "MONITOR_LOG_COUNT";
|
|
9
|
-
UsageRecordType["MONITOR_EVENT_COUNT"] = "MONITOR_EVENT_COUNT";
|
|
10
|
-
UsageRecordType["WORKFLOW_EXECUTION_COUNT"] = "WORKFLOW_EXECUTION_COUNT";
|
|
11
|
-
UsageRecordType["INTERNAL_TICKET_COUNT"] = "INTERNAL_TICKET_COUNT";
|
|
12
|
-
})(UsageRecordType || (exports.UsageRecordType = UsageRecordType = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserCreditPurchasePaymentMethod = void 0;
|
|
4
|
-
var UserCreditPurchasePaymentMethod;
|
|
5
|
-
(function (UserCreditPurchasePaymentMethod) {
|
|
6
|
-
UserCreditPurchasePaymentMethod["PAYMENT_LINK"] = "PAYMENT_LINK";
|
|
7
|
-
})(UserCreditPurchasePaymentMethod || (exports.UserCreditPurchasePaymentMethod = UserCreditPurchasePaymentMethod = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserCreditPurchasePlatform = void 0;
|
|
4
|
-
var UserCreditPurchasePlatform;
|
|
5
|
-
(function (UserCreditPurchasePlatform) {
|
|
6
|
-
UserCreditPurchasePlatform["PAYPAL"] = "PAYPAL";
|
|
7
|
-
UserCreditPurchasePlatform["LYDIA"] = "LYDIA";
|
|
8
|
-
UserCreditPurchasePlatform["SKRILL"] = "SKRILL";
|
|
9
|
-
UserCreditPurchasePlatform["CASH"] = "CASH";
|
|
10
|
-
UserCreditPurchasePlatform["STRIPE"] = "STRIPE";
|
|
11
|
-
UserCreditPurchasePlatform["OTHER"] = "OTHER";
|
|
12
|
-
})(UserCreditPurchasePlatform || (exports.UserCreditPurchasePlatform = UserCreditPurchasePlatform = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum UserTransactionType {
|
|
2
|
-
SUBSCRIPTION_CREATE = 10,
|
|
3
|
-
SUBSCRIPTION_RENEW = 11,
|
|
4
|
-
SUBSCRIPTION_UPGRADE = 12,
|
|
5
|
-
SUBSCRIPTION_DOWNGRADE = 13,
|
|
6
|
-
SUBSCRIPTION_REFUND = 14,
|
|
7
|
-
SUBSCRIPTION_STORAGE_FILE_DAILY = 20,
|
|
8
|
-
GIFT_CODE_ACTIVATION = 30,
|
|
9
|
-
USER_CREDIT_PURCHASE = 40,
|
|
10
|
-
USER_CREDIT_PURCHASE_REFUND = 41,
|
|
11
|
-
SIGNUP_SPONSOR = 50,
|
|
12
|
-
SIGNUP_SPONSORED = 51,
|
|
13
|
-
OTHER = 100
|
|
14
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserTransactionType = void 0;
|
|
4
|
-
var UserTransactionType;
|
|
5
|
-
(function (UserTransactionType) {
|
|
6
|
-
UserTransactionType[UserTransactionType["SUBSCRIPTION_CREATE"] = 10] = "SUBSCRIPTION_CREATE";
|
|
7
|
-
UserTransactionType[UserTransactionType["SUBSCRIPTION_RENEW"] = 11] = "SUBSCRIPTION_RENEW";
|
|
8
|
-
UserTransactionType[UserTransactionType["SUBSCRIPTION_UPGRADE"] = 12] = "SUBSCRIPTION_UPGRADE";
|
|
9
|
-
UserTransactionType[UserTransactionType["SUBSCRIPTION_DOWNGRADE"] = 13] = "SUBSCRIPTION_DOWNGRADE";
|
|
10
|
-
UserTransactionType[UserTransactionType["SUBSCRIPTION_REFUND"] = 14] = "SUBSCRIPTION_REFUND";
|
|
11
|
-
UserTransactionType[UserTransactionType["SUBSCRIPTION_STORAGE_FILE_DAILY"] = 20] = "SUBSCRIPTION_STORAGE_FILE_DAILY";
|
|
12
|
-
UserTransactionType[UserTransactionType["GIFT_CODE_ACTIVATION"] = 30] = "GIFT_CODE_ACTIVATION";
|
|
13
|
-
UserTransactionType[UserTransactionType["USER_CREDIT_PURCHASE"] = 40] = "USER_CREDIT_PURCHASE";
|
|
14
|
-
UserTransactionType[UserTransactionType["USER_CREDIT_PURCHASE_REFUND"] = 41] = "USER_CREDIT_PURCHASE_REFUND";
|
|
15
|
-
UserTransactionType[UserTransactionType["SIGNUP_SPONSOR"] = 50] = "SIGNUP_SPONSOR";
|
|
16
|
-
UserTransactionType[UserTransactionType["SIGNUP_SPONSORED"] = 51] = "SIGNUP_SPONSORED";
|
|
17
|
-
UserTransactionType[UserTransactionType["OTHER"] = 100] = "OTHER";
|
|
18
|
-
})(UserTransactionType || (exports.UserTransactionType = UserTransactionType = {}));
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { QueryPaginate } from '..';
|
|
2
|
-
import { UserCreditPurchaseCurrency, UserCreditPurchasePaymentMethod, UserCreditPurchasePlatform } from '../../../enum';
|
|
3
|
-
export type IPaginateUserCreditPurchaseAdminQuery = {
|
|
4
|
-
platform?: UserCreditPurchasePlatform[];
|
|
5
|
-
paymentMethod?: UserCreditPurchasePaymentMethod[];
|
|
6
|
-
currency?: UserCreditPurchaseCurrency[];
|
|
7
|
-
userId?: string[];
|
|
8
|
-
adminId?: string[];
|
|
9
|
-
} & QueryPaginate;
|
|
10
|
-
export interface IGetUserCreditPurchaseAdminParams {
|
|
11
|
-
userCreditPurchaseId: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ICreateUserCreditPurchaseAdminParams {
|
|
14
|
-
userId: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ICreateUserCreditPurchaseAdminBody {
|
|
17
|
-
commentary?: string | null;
|
|
18
|
-
paymentMethod: UserCreditPurchasePaymentMethod;
|
|
19
|
-
platform: UserCreditPurchasePlatform;
|
|
20
|
-
currency: UserCreditPurchaseCurrency;
|
|
21
|
-
amount: number;
|
|
22
|
-
creditAmount: number;
|
|
23
|
-
externalId?: string | null;
|
|
24
|
-
}
|
|
25
|
-
export interface IUpdateUserCreditPurchaseAdminParams {
|
|
26
|
-
userCreditPurchaseId: string;
|
|
27
|
-
}
|
|
28
|
-
export interface IUpdateUserCreditPurchaseAdminBody {
|
|
29
|
-
commentary?: string | null;
|
|
30
|
-
paymentMethod?: UserCreditPurchasePaymentMethod;
|
|
31
|
-
platform?: UserCreditPurchasePlatform;
|
|
32
|
-
currency?: UserCreditPurchaseCurrency;
|
|
33
|
-
amount?: number;
|
|
34
|
-
creditAmount?: number;
|
|
35
|
-
externalId?: string | null;
|
|
36
|
-
}
|
|
37
|
-
export interface IDeleteUserCreditPurchaseAdminParams {
|
|
38
|
-
userCreditPurchaseId: string;
|
|
39
|
-
}
|
|
40
|
-
export interface IRefundUserCreditPurchaseAdminParams {
|
|
41
|
-
userCreditPurchaseId: string;
|
|
42
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { QueryPaginate } from '..';
|
|
2
|
-
import { UserCreditPurchaseCurrency, UserCreditPurchasePlatform } from '../../../enum';
|
|
3
|
-
export type IPaginateUserCreditPurchaseQuery = {
|
|
4
|
-
method?: UserCreditPurchasePlatform[];
|
|
5
|
-
currency?: UserCreditPurchaseCurrency[];
|
|
6
|
-
} & QueryPaginate;
|
|
7
|
-
export interface IGetUserCreditPurchaseParams {
|
|
8
|
-
creditPurchaseId: string;
|
|
9
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { UserTransactionType } from '../../../enum';
|
|
2
|
-
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
-
export type IPaginateUserTransactionAdminQuery = {
|
|
4
|
-
minAmount?: number;
|
|
5
|
-
maxAmount?: number;
|
|
6
|
-
type?: UserTransactionType[];
|
|
7
|
-
userId?: string[];
|
|
8
|
-
projectId?: string[];
|
|
9
|
-
userTransactionId?: string[];
|
|
10
|
-
} & QueryPaginate;
|
|
11
|
-
export interface ICreateUserTransactionAdminParams {
|
|
12
|
-
userId: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ICreateUserTransactionAdminBody {
|
|
15
|
-
amount: number;
|
|
16
|
-
type: UserTransactionType;
|
|
17
|
-
description?: string;
|
|
18
|
-
projectId?: string;
|
|
19
|
-
shouldFailOnNegative?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface IDeleteUserTransactionAdminParams {
|
|
22
|
-
userTransactionId: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IUpdateUserTransactionAdminParams {
|
|
25
|
-
userTransactionId: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IUpdateUserTransactionAdminBody {
|
|
28
|
-
type?: UserTransactionType;
|
|
29
|
-
description?: string;
|
|
30
|
-
}
|