@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.
Files changed (245) hide show
  1. package/dist/api/billing-account.admin.api.d.ts +10 -0
  2. package/dist/api/billing-account.admin.api.js +38 -0
  3. package/dist/api/billing-addon-template.admin.api.d.ts +7 -0
  4. package/dist/api/billing-addon-template.admin.api.js +26 -0
  5. package/dist/api/billing-plan.admin.api.d.ts +6 -0
  6. package/dist/api/billing-plan.admin.api.js +20 -0
  7. package/dist/api/billing-plan.api.d.ts +4 -0
  8. package/dist/api/billing-plan.api.js +12 -0
  9. package/dist/api/index.d.ts +7 -4
  10. package/dist/api/index.js +7 -4
  11. package/dist/api/organization-billing.api.d.ts +17 -0
  12. package/dist/api/organization-billing.api.js +64 -0
  13. package/dist/api/organization-member.api.d.ts +9 -6
  14. package/dist/api/organization-member.api.js +19 -7
  15. package/dist/api/organization.api.d.ts +3 -2
  16. package/dist/api/organization.api.js +5 -1
  17. package/dist/api/project-access.admin.api.d.ts +1 -3
  18. package/dist/api/project-access.admin.api.js +1 -9
  19. package/dist/api/project-access.api.d.ts +5 -3
  20. package/dist/api/project-access.api.js +17 -9
  21. package/dist/api/project-api-key.api.d.ts +8 -0
  22. package/dist/api/project-api-key.api.js +29 -0
  23. package/dist/api/project.api.d.ts +1 -5
  24. package/dist/api/project.api.js +1 -17
  25. package/dist/api/user-billing.api.d.ts +11 -0
  26. package/dist/api/user-billing.api.js +40 -0
  27. package/dist/api/user.api.d.ts +1 -4
  28. package/dist/api/user.api.js +1 -16
  29. package/dist/index.d.ts +1 -37
  30. package/dist/index.js +1 -37
  31. package/dist/permissions/ability.d.ts +12 -0
  32. package/dist/permissions/ability.js +134 -0
  33. package/dist/permissions/index.d.ts +1 -0
  34. package/dist/{workflow → permissions}/index.js +1 -1
  35. package/dist/types/enum/abyss-application-event.enum.d.ts +17 -1
  36. package/dist/types/enum/abyss-application-event.enum.js +16 -0
  37. package/dist/types/enum/index.d.ts +1 -4
  38. package/dist/types/enum/index.js +1 -4
  39. package/dist/types/enum/onboarding-steps.enum.d.ts +5 -3
  40. package/dist/types/enum/onboarding-steps.enum.js +5 -3
  41. package/dist/types/enum/organization-billing.enum.d.ts +70 -0
  42. package/dist/types/enum/organization-billing.enum.js +82 -0
  43. package/dist/types/enum/user-type.enum.d.ts +1 -0
  44. package/dist/types/enum/user-type.enum.js +1 -0
  45. package/dist/types/interface/api/index.d.ts +13 -8
  46. package/dist/types/interface/api/index.js +13 -8
  47. package/dist/types/interface/api/requests/billing-account.admin.request.d.ts +53 -0
  48. package/dist/types/interface/api/requests/billing-addon-template.request.d.ts +32 -0
  49. package/dist/types/interface/api/requests/billing-plan.request.d.ts +37 -0
  50. package/dist/types/interface/api/requests/organization-billing.request.d.ts +95 -0
  51. package/dist/types/interface/api/requests/organization-member.request.d.ts +13 -3
  52. package/dist/types/interface/api/requests/organization.request.d.ts +10 -0
  53. package/dist/types/interface/api/requests/project-access.admin.request.d.ts +1 -20
  54. package/dist/types/interface/api/requests/project-access.request.d.ts +16 -20
  55. package/dist/types/interface/api/requests/project-api-key.request.d.ts +39 -0
  56. package/dist/types/interface/api/requests/project.request.d.ts +2 -23
  57. package/dist/types/interface/api/requests/user-billing.request.d.ts +23 -0
  58. package/dist/types/interface/api/requests/user.request.d.ts +2 -8
  59. package/dist/types/interface/api/responses/billing-account.admin.response.d.ts +38 -0
  60. package/dist/types/interface/api/responses/billing-addon-template.response.d.ts +22 -0
  61. package/dist/types/interface/api/responses/billing-plan.response.d.ts +26 -0
  62. package/dist/types/interface/api/responses/gift-code.admin.response.d.ts +0 -1
  63. package/dist/types/interface/api/responses/gift-code.response.d.ts +0 -1
  64. package/dist/types/interface/api/responses/organization-billing.response.d.ts +82 -0
  65. package/dist/types/interface/api/responses/organization-member.response.d.ts +20 -8
  66. package/dist/types/interface/api/responses/project-access.admin.response.d.ts +0 -8
  67. package/dist/types/interface/api/responses/project-access.response.d.ts +16 -8
  68. package/dist/types/interface/api/responses/project-api-key.response.d.ts +26 -0
  69. package/dist/types/interface/api/responses/project.response.d.ts +0 -14
  70. package/dist/types/interface/api/responses/report.public.response.d.ts +0 -1
  71. package/dist/types/interface/api/responses/user-billing.response.d.ts +45 -0
  72. package/dist/types/interface/index.d.ts +13 -3
  73. package/dist/types/interface/index.js +13 -3
  74. package/dist/types/interface/models/application.model.d.ts +1 -1
  75. package/dist/types/interface/models/atlas-group.model.d.ts +2 -2
  76. package/dist/types/interface/models/atlas-page.model.d.ts +2 -2
  77. package/dist/types/interface/models/atlas.model.d.ts +8 -5
  78. package/dist/types/interface/models/billing-account.model.d.ts +40 -0
  79. package/dist/types/interface/models/billing-account.model.js +2 -0
  80. package/dist/types/interface/models/billing-addon-template.model.d.ts +15 -0
  81. package/dist/types/interface/models/billing-addon-template.model.js +2 -0
  82. package/dist/types/interface/models/board-card-checklist.model.d.ts +1 -1
  83. package/dist/types/interface/models/board-card.model.d.ts +6 -6
  84. package/dist/types/interface/models/board-column.model.d.ts +1 -1
  85. package/dist/types/interface/models/board.model.d.ts +7 -4
  86. package/dist/types/interface/models/credit-transaction.model.d.ts +22 -0
  87. package/dist/types/interface/models/credit-transaction.model.js +2 -0
  88. package/dist/types/interface/models/draw.model.d.ts +3 -0
  89. package/dist/types/interface/models/gift-code-activation.model.d.ts +4 -3
  90. package/dist/types/interface/models/gift-code.model.d.ts +1 -1
  91. package/dist/types/interface/models/invoice.model.d.ts +26 -0
  92. package/dist/types/interface/models/invoice.model.js +2 -0
  93. package/dist/types/interface/models/memo.model.d.ts +3 -0
  94. package/dist/types/interface/models/organization-billing.model.d.ts +37 -0
  95. package/dist/types/interface/models/organization-billing.model.js +2 -0
  96. package/dist/types/interface/models/organization-member.model.d.ts +0 -1
  97. package/dist/types/interface/models/organization-project-quota.model.d.ts +15 -0
  98. package/dist/types/interface/models/organization-project-quota.model.js +2 -0
  99. package/dist/types/interface/models/organization-quota-alert.model.d.ts +11 -0
  100. package/dist/types/interface/models/organization-quota-alert.model.js +2 -0
  101. package/dist/types/interface/models/organization-service-quota.model.d.ts +13 -0
  102. package/dist/types/interface/models/organization-service-quota.model.js +2 -0
  103. package/dist/types/interface/models/organization.model.d.ts +7 -0
  104. package/dist/types/interface/models/plan-template.model.d.ts +29 -0
  105. package/dist/types/interface/models/plan-template.model.js +2 -0
  106. package/dist/types/interface/models/project-access.model.d.ts +5 -6
  107. package/dist/types/interface/models/project-api-key-application-access.model.d.ts +13 -0
  108. package/dist/types/interface/models/project-api-key-application-access.model.js +2 -0
  109. package/dist/types/interface/models/project-api-key.model.d.ts +15 -0
  110. package/dist/types/interface/models/project-api-key.model.js +2 -0
  111. package/dist/types/interface/models/project.model.d.ts +8 -12
  112. package/dist/types/interface/models/quota-grant.model.d.ts +20 -0
  113. package/dist/types/interface/models/quota-grant.model.js +2 -0
  114. package/dist/types/interface/models/retrospective.model.d.ts +6 -3
  115. package/dist/types/interface/models/short-link.model.d.ts +4 -1
  116. package/dist/types/interface/models/team-project-access.model.d.ts +2 -0
  117. package/dist/types/interface/models/team-project-application-access.model.d.ts +13 -0
  118. package/dist/types/interface/models/team-project-application-access.model.js +2 -0
  119. package/dist/types/interface/models/team.model.d.ts +1 -1
  120. package/dist/types/interface/models/token-history.model.d.ts +2 -0
  121. package/dist/types/interface/models/usage-record.model.d.ts +24 -0
  122. package/dist/types/interface/models/usage-record.model.js +2 -0
  123. package/dist/types/interface/models/user-ticket-message.model.d.ts +1 -1
  124. package/dist/types/interface/models/user-ticket.model.d.ts +1 -1
  125. package/dist/types/interface/models/user.model.d.ts +16 -18
  126. package/dist/types/utils/onboarding.utils.d.ts +1 -6
  127. package/dist/types/utils/onboarding.utils.js +9 -5
  128. package/dist/utils/index.d.ts +0 -1
  129. package/dist/utils/index.js +0 -1
  130. package/package.json +2 -1
  131. package/dist/api/user-credit-purchase.admin.api.d.ts +0 -7
  132. package/dist/api/user-credit-purchase.admin.api.js +0 -28
  133. package/dist/api/user-credit-purchase.api.d.ts +0 -3
  134. package/dist/api/user-credit-purchase.api.js +0 -14
  135. package/dist/api/user-transaction.admin.api.d.ts +0 -5
  136. package/dist/api/user-transaction.admin.api.js +0 -20
  137. package/dist/api/user-transaction.api.d.ts +0 -3
  138. package/dist/api/user-transaction.api.js +0 -14
  139. package/dist/expressions/index.d.ts +0 -5
  140. package/dist/expressions/index.js +0 -16
  141. package/dist/expressions/mapper.d.ts +0 -9
  142. package/dist/expressions/mapper.js +0 -90
  143. package/dist/expressions/parser.d.ts +0 -3
  144. package/dist/expressions/parser.js +0 -97
  145. package/dist/expressions/resolver.d.ts +0 -12
  146. package/dist/expressions/resolver.js +0 -88
  147. package/dist/expressions/types.d.ts +0 -36
  148. package/dist/types/enum/integration-type.enum.d.ts +0 -4
  149. package/dist/types/enum/integration-type.enum.js +0 -8
  150. package/dist/types/enum/invoice-status.enum.d.ts +0 -7
  151. package/dist/types/enum/invoice-status.enum.js +0 -11
  152. package/dist/types/enum/organization-role.enum.d.ts +0 -6
  153. package/dist/types/enum/organization-role.enum.js +0 -10
  154. package/dist/types/enum/organization-subscription-status.enum.d.ts +0 -7
  155. package/dist/types/enum/organization-subscription-status.enum.js +0 -11
  156. package/dist/types/enum/plan-billing-period.enum.d.ts +0 -4
  157. package/dist/types/enum/plan-billing-period.enum.js +0 -8
  158. package/dist/types/enum/plan-status.enum.d.ts +0 -4
  159. package/dist/types/enum/plan-status.enum.js +0 -8
  160. package/dist/types/enum/subscription-level.enum.d.ts +0 -72
  161. package/dist/types/enum/subscription-level.enum.js +0 -179
  162. package/dist/types/enum/usage-record-type.enum.d.ts +0 -8
  163. package/dist/types/enum/usage-record-type.enum.js +0 -12
  164. package/dist/types/enum/user-credit-purchase-payment-method.enum.d.ts +0 -3
  165. package/dist/types/enum/user-credit-purchase-payment-method.enum.js +0 -7
  166. package/dist/types/enum/user-credit-purchase-platform.enum.d.ts +0 -8
  167. package/dist/types/enum/user-credit-purchase-platform.enum.js +0 -12
  168. package/dist/types/enum/user-transaction-type.enum.d.ts +0 -14
  169. package/dist/types/enum/user-transaction-type.enum.js +0 -18
  170. package/dist/types/interface/api/requests/user-credit-purchase.admin.request.d.ts +0 -42
  171. package/dist/types/interface/api/requests/user-credit-purchase.request.d.ts +0 -9
  172. package/dist/types/interface/api/requests/user-transaction.admin.request.d.ts +0 -30
  173. package/dist/types/interface/api/requests/user-transaction.request.d.ts +0 -8
  174. package/dist/types/interface/api/responses/user-credit-purchase.admin.response.d.ts +0 -22
  175. package/dist/types/interface/api/responses/user-credit-purchase.response.d.ts +0 -8
  176. package/dist/types/interface/api/responses/user-transaction.admin.response.d.ts +0 -13
  177. package/dist/types/interface/api/responses/user-transaction.response.d.ts +0 -11
  178. package/dist/types/interface/models/subscription.model.d.ts +0 -16
  179. package/dist/types/interface/models/user-credit-purchase.model.d.ts +0 -22
  180. package/dist/types/interface/models/user-transaction.model.d.ts +0 -19
  181. package/dist/utils/organization-permission.utils.d.ts +0 -3
  182. package/dist/utils/organization-permission.utils.js +0 -36
  183. package/dist/utils/subscription.utils.d.ts +0 -6
  184. package/dist/utils/subscription.utils.js +0 -41
  185. package/dist/workflow/expression/expression-functions.utils.d.ts +0 -6
  186. package/dist/workflow/expression/expression-functions.utils.js +0 -61
  187. package/dist/workflow/expression/expression-mapper.d.ts +0 -11
  188. package/dist/workflow/expression/expression-mapper.js +0 -32
  189. package/dist/workflow/expression/expression-mapping.utils.d.ts +0 -4
  190. package/dist/workflow/expression/expression-mapping.utils.js +0 -43
  191. package/dist/workflow/expression/expression-resolver.utils.d.ts +0 -3
  192. package/dist/workflow/expression/expression-resolver.utils.js +0 -54
  193. package/dist/workflow/expression/expression-tokenizer.utils.d.ts +0 -4
  194. package/dist/workflow/expression/expression-tokenizer.utils.js +0 -123
  195. package/dist/workflow/expression/expression.types.d.ts +0 -33
  196. package/dist/workflow/expression/expression.types.js +0 -17
  197. package/dist/workflow/expression/index.d.ts +0 -10
  198. package/dist/workflow/expression/index.js +0 -40
  199. package/dist/workflow/expression/workflow-resolver.d.ts +0 -9
  200. package/dist/workflow/expression/workflow-resolver.js +0 -102
  201. package/dist/workflow/expressions/functions/array.d.ts +0 -2
  202. package/dist/workflow/expressions/functions/array.js +0 -252
  203. package/dist/workflow/expressions/functions/crypto.d.ts +0 -2
  204. package/dist/workflow/expressions/functions/crypto.js +0 -101
  205. package/dist/workflow/expressions/functions/datetime.d.ts +0 -2
  206. package/dist/workflow/expressions/functions/datetime.js +0 -256
  207. package/dist/workflow/expressions/functions/index.d.ts +0 -7
  208. package/dist/workflow/expressions/functions/index.js +0 -46
  209. package/dist/workflow/expressions/functions/math.d.ts +0 -2
  210. package/dist/workflow/expressions/functions/math.js +0 -174
  211. package/dist/workflow/expressions/functions/string.d.ts +0 -2
  212. package/dist/workflow/expressions/functions/string.js +0 -301
  213. package/dist/workflow/expressions/functions/utility.d.ts +0 -2
  214. package/dist/workflow/expressions/functions/utility.js +0 -230
  215. package/dist/workflow/expressions/helpers.d.ts +0 -26
  216. package/dist/workflow/expressions/helpers.js +0 -132
  217. package/dist/workflow/expressions/index.d.ts +0 -15
  218. package/dist/workflow/expressions/index.js +0 -61
  219. package/dist/workflow/expressions/parser.d.ts +0 -8
  220. package/dist/workflow/expressions/parser.js +0 -436
  221. package/dist/workflow/expressions/pipes/array-pipes.d.ts +0 -2
  222. package/dist/workflow/expressions/pipes/array-pipes.js +0 -248
  223. package/dist/workflow/expressions/pipes/index.d.ts +0 -8
  224. package/dist/workflow/expressions/pipes/index.js +0 -40
  225. package/dist/workflow/expressions/pipes/object-pipes.d.ts +0 -2
  226. package/dist/workflow/expressions/pipes/object-pipes.js +0 -243
  227. package/dist/workflow/expressions/pipes/string-pipes.d.ts +0 -9
  228. package/dist/workflow/expressions/pipes/string-pipes.js +0 -178
  229. package/dist/workflow/expressions/resolver.d.ts +0 -8
  230. package/dist/workflow/expressions/resolver.js +0 -263
  231. package/dist/workflow/expressions/types.d.ts +0 -144
  232. package/dist/workflow/expressions/types.js +0 -33
  233. package/dist/workflow/index.d.ts +0 -1
  234. /package/dist/{expressions/types.js → types/interface/api/requests/billing-account.admin.request.js} +0 -0
  235. /package/dist/types/interface/api/requests/{user-credit-purchase.admin.request.js → billing-addon-template.request.js} +0 -0
  236. /package/dist/types/interface/api/requests/{user-credit-purchase.request.js → billing-plan.request.js} +0 -0
  237. /package/dist/types/interface/api/requests/{user-transaction.admin.request.js → organization-billing.request.js} +0 -0
  238. /package/dist/types/interface/api/requests/{user-transaction.request.js → project-api-key.request.js} +0 -0
  239. /package/dist/types/interface/api/{responses/user-credit-purchase.admin.response.js → requests/user-billing.request.js} +0 -0
  240. /package/dist/types/interface/api/responses/{user-credit-purchase.response.js → billing-account.admin.response.js} +0 -0
  241. /package/dist/types/interface/api/responses/{user-transaction.admin.response.js → billing-addon-template.response.js} +0 -0
  242. /package/dist/types/interface/api/responses/{user-transaction.response.js → billing-plan.response.js} +0 -0
  243. /package/dist/types/interface/{models/subscription.model.js → api/responses/organization-billing.response.js} +0 -0
  244. /package/dist/types/interface/{models/user-credit-purchase.model.js → api/responses/project-api-key.response.js} +0 -0
  245. /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,4 +0,0 @@
1
- export declare enum IntegrationType {
2
- SLACK = "SLACK",
3
- DISCORD = "DISCORD"
4
- }
@@ -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,7 +0,0 @@
1
- export declare enum InvoiceStatus {
2
- DRAFT = "DRAFT",
3
- PENDING = "PENDING",
4
- PAID = "PAID",
5
- FAILED = "FAILED",
6
- VOID = "VOID"
7
- }
@@ -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,6 +0,0 @@
1
- export declare enum OrganizationRole {
2
- OWNER = "OWNER",
3
- ADMIN = "ADMIN",
4
- MEMBER = "MEMBER",
5
- VIEWER = "VIEWER"
6
- }
@@ -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,7 +0,0 @@
1
- export declare enum OrganizationSubscriptionStatus {
2
- ACTIVE = "ACTIVE",
3
- TRIALING = "TRIALING",
4
- PAST_DUE = "PAST_DUE",
5
- CANCELED = "CANCELED",
6
- DOWNGRADED = "DOWNGRADED"
7
- }
@@ -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,4 +0,0 @@
1
- export declare enum PlanBillingPeriod {
2
- MONTHLY = "MONTHLY",
3
- YEARLY = "YEARLY"
4
- }
@@ -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,4 +0,0 @@
1
- export declare enum PlanStatus {
2
- ACTIVE = "ACTIVE",
3
- ARCHIVED = "ARCHIVED"
4
- }
@@ -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,3 +0,0 @@
1
- export declare enum UserCreditPurchasePaymentMethod {
2
- PAYMENT_LINK = "PAYMENT_LINK"
3
- }
@@ -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,8 +0,0 @@
1
- export declare enum UserCreditPurchasePlatform {
2
- PAYPAL = "PAYPAL",
3
- LYDIA = "LYDIA",
4
- SKRILL = "SKRILL",
5
- CASH = "CASH",
6
- STRIPE = "STRIPE",
7
- OTHER = "OTHER"
8
- }
@@ -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
- }