@abyss-project/main 1.0.109 → 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 +10 -4
- package/dist/api/index.js +10 -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 +12 -0
- package/dist/api/organization-member.api.js +44 -0
- 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/team.api.d.ts +14 -0
- package/dist/api/team.api.js +52 -0
- 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 +18 -1
- package/dist/types/enum/abyss-application-event.enum.js +17 -0
- package/dist/types/enum/index.d.ts +2 -4
- package/dist/types/enum/index.js +2 -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/organization-permission.enum.d.ts +13 -1
- package/dist/types/enum/organization-permission.enum.js +40 -2
- 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 +17 -8
- package/dist/types/interface/api/index.js +17 -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 +38 -0
- 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/team.request.d.ts +72 -0
- 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 +42 -0
- package/dist/types/interface/api/responses/organization-member.response.js +2 -0
- 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-api-key.response.js +2 -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/team.response.d.ts +52 -0
- package/dist/types/interface/api/responses/team.response.js +2 -0
- package/dist/types/interface/api/responses/user-billing.response.d.ts +45 -0
- package/dist/types/interface/api/responses/user-billing.response.js +2 -0
- package/dist/types/interface/index.d.ts +17 -3
- package/dist/types/interface/index.js +17 -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 +5 -4
- 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 +13 -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-member.model.d.ts +11 -0
- package/dist/types/interface/models/team-member.model.js +2 -0
- package/dist/types/interface/models/team-project-access.model.d.ts +15 -0
- package/dist/types/interface/models/team-project-access.model.js +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 +19 -0
- package/dist/types/interface/models/team.model.js +2 -0
- package/dist/types/interface/models/token-history.model.d.ts +9 -1
- 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 → organization-member.request.js} +0 -0
- /package/dist/types/interface/api/{responses/user-credit-purchase.admin.response.js → requests/project-api-key.request.js} +0 -0
- /package/dist/types/interface/api/{responses/user-credit-purchase.response.js → requests/team.request.js} +0 -0
- /package/dist/types/interface/api/{responses/user-transaction.admin.response.js → requests/user-billing.request.js} +0 -0
- /package/dist/types/interface/api/responses/{user-transaction.response.js → billing-account.admin.response.js} +0 -0
- /package/dist/types/interface/{models/subscription.model.js → api/responses/billing-addon-template.response.js} +0 -0
- /package/dist/types/interface/{models/user-credit-purchase.model.js → api/responses/billing-plan.response.js} +0 -0
- /package/dist/types/interface/{models/user-transaction.model.js → api/responses/organization-billing.response.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAdjustCreditAdminBillingBody, IAdjustCreditAdminBillingParams, IGetAccountAdminBillingParams, IListAccountsAdminBillingQuery, IListInvoicesAdminBillingParams, IOverrideQuotaAdminBillingBody, IOverrideQuotaAdminBillingParams, IRemoveQuotaOverrideAdminBillingParams, IUpdateAccountAdminBillingBody, IUpdateAccountAdminBillingParams, IUpdateInvoiceAdminBillingBody, IUpdateInvoiceAdminBillingParams } from '../types/interface/api/requests/billing-account.admin.request';
|
|
2
|
+
import type { IAdjustCreditAdminBillingResponse, IGetAccountAdminBillingResponse, IListAccountsAdminBillingResponse, IListInvoicesAdminBillingResponse, IOverrideQuotaAdminBillingResponse, IRemoveQuotaOverrideAdminBillingResponse, IUpdateAccountAdminBillingResponse, IUpdateInvoiceAdminBillingResponse } from '../types/interface/api/responses/billing-account.admin.response';
|
|
3
|
+
export declare const listAdminBillingAccounts: (query?: IListAccountsAdminBillingQuery) => Promise<IListAccountsAdminBillingResponse>;
|
|
4
|
+
export declare const getAdminBillingAccount: (params: IGetAccountAdminBillingParams) => Promise<IGetAccountAdminBillingResponse>;
|
|
5
|
+
export declare const updateAdminBillingAccount: (params: IUpdateAccountAdminBillingParams, body: IUpdateAccountAdminBillingBody) => Promise<IUpdateAccountAdminBillingResponse>;
|
|
6
|
+
export declare const overrideAdminBillingQuota: (params: IOverrideQuotaAdminBillingParams, body: IOverrideQuotaAdminBillingBody) => Promise<IOverrideQuotaAdminBillingResponse>;
|
|
7
|
+
export declare const removeAdminBillingQuotaOverride: (params: IRemoveQuotaOverrideAdminBillingParams) => Promise<IRemoveQuotaOverrideAdminBillingResponse>;
|
|
8
|
+
export declare const adjustAdminBillingCredit: (params: IAdjustCreditAdminBillingParams, body: IAdjustCreditAdminBillingBody) => Promise<IAdjustCreditAdminBillingResponse>;
|
|
9
|
+
export declare const listAdminBillingAccountInvoices: (params: IListInvoicesAdminBillingParams) => Promise<IListInvoicesAdminBillingResponse>;
|
|
10
|
+
export declare const updateAdminBillingInvoice: (params: IUpdateInvoiceAdminBillingParams, body: IUpdateInvoiceAdminBillingBody) => Promise<IUpdateInvoiceAdminBillingResponse>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateAdminBillingInvoice = exports.listAdminBillingAccountInvoices = exports.adjustAdminBillingCredit = exports.removeAdminBillingQuotaOverride = exports.overrideAdminBillingQuota = exports.updateAdminBillingAccount = exports.getAdminBillingAccount = exports.listAdminBillingAccounts = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const listAdminBillingAccounts = async (query) => {
|
|
6
|
+
return (await __1.AbyssCore.axios.get('admin/billing/account', {
|
|
7
|
+
params: query,
|
|
8
|
+
})).data;
|
|
9
|
+
};
|
|
10
|
+
exports.listAdminBillingAccounts = listAdminBillingAccounts;
|
|
11
|
+
const getAdminBillingAccount = async (params) => {
|
|
12
|
+
return (await __1.AbyssCore.axios.get(`admin/billing/account/${params.billingAccountId}`)).data;
|
|
13
|
+
};
|
|
14
|
+
exports.getAdminBillingAccount = getAdminBillingAccount;
|
|
15
|
+
const updateAdminBillingAccount = async (params, body) => {
|
|
16
|
+
return (await __1.AbyssCore.axios.put(`admin/billing/account/${params.billingAccountId}`, body)).data;
|
|
17
|
+
};
|
|
18
|
+
exports.updateAdminBillingAccount = updateAdminBillingAccount;
|
|
19
|
+
const overrideAdminBillingQuota = async (params, body) => {
|
|
20
|
+
return (await __1.AbyssCore.axios.put(`admin/billing/account/${params.billingAccountId}/quota`, body)).data;
|
|
21
|
+
};
|
|
22
|
+
exports.overrideAdminBillingQuota = overrideAdminBillingQuota;
|
|
23
|
+
const removeAdminBillingQuotaOverride = async (params) => {
|
|
24
|
+
return (await __1.AbyssCore.axios.delete(`admin/billing/account/${params.billingAccountId}/quota/${params.service}/${params.metric}`)).data;
|
|
25
|
+
};
|
|
26
|
+
exports.removeAdminBillingQuotaOverride = removeAdminBillingQuotaOverride;
|
|
27
|
+
const adjustAdminBillingCredit = async (params, body) => {
|
|
28
|
+
return (await __1.AbyssCore.axios.post(`admin/billing/account/${params.billingAccountId}/credit`, body)).data;
|
|
29
|
+
};
|
|
30
|
+
exports.adjustAdminBillingCredit = adjustAdminBillingCredit;
|
|
31
|
+
const listAdminBillingAccountInvoices = async (params) => {
|
|
32
|
+
return (await __1.AbyssCore.axios.get(`admin/billing/account/${params.billingAccountId}/invoice`)).data;
|
|
33
|
+
};
|
|
34
|
+
exports.listAdminBillingAccountInvoices = listAdminBillingAccountInvoices;
|
|
35
|
+
const updateAdminBillingInvoice = async (params, body) => {
|
|
36
|
+
return (await __1.AbyssCore.axios.put(`admin/billing/account/${params.billingAccountId}/invoice/${params.invoiceId}`, body)).data;
|
|
37
|
+
};
|
|
38
|
+
exports.updateAdminBillingInvoice = updateAdminBillingInvoice;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IListAddonTemplatesAdminBillingQuery, IGetAddonTemplateAdminBillingParams, ICreateAddonTemplateAdminBillingBody, IUpdateAddonTemplateAdminBillingParams, IUpdateAddonTemplateAdminBillingBody, IDeleteAddonTemplateAdminBillingParams } from '../types/interface/api/requests/billing-addon-template.request';
|
|
2
|
+
import type { IListAddonTemplatesAdminBillingResponse, IGetAddonTemplateAdminBillingResponse, ICreateAddonTemplateAdminBillingResponse, IUpdateAddonTemplateAdminBillingResponse, IDeleteAddonTemplateAdminBillingResponse } from '../types/interface/api/responses/billing-addon-template.response';
|
|
3
|
+
export declare const listAdminBillingAddonTemplates: (query?: IListAddonTemplatesAdminBillingQuery) => Promise<IListAddonTemplatesAdminBillingResponse>;
|
|
4
|
+
export declare const getAdminBillingAddonTemplate: (params: IGetAddonTemplateAdminBillingParams) => Promise<IGetAddonTemplateAdminBillingResponse>;
|
|
5
|
+
export declare const createAdminBillingAddonTemplate: (body: ICreateAddonTemplateAdminBillingBody) => Promise<ICreateAddonTemplateAdminBillingResponse>;
|
|
6
|
+
export declare const updateAdminBillingAddonTemplate: (params: IUpdateAddonTemplateAdminBillingParams, body: IUpdateAddonTemplateAdminBillingBody) => Promise<IUpdateAddonTemplateAdminBillingResponse>;
|
|
7
|
+
export declare const deleteAdminBillingAddonTemplate: (params: IDeleteAddonTemplateAdminBillingParams) => Promise<IDeleteAddonTemplateAdminBillingResponse>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteAdminBillingAddonTemplate = exports.updateAdminBillingAddonTemplate = exports.createAdminBillingAddonTemplate = exports.getAdminBillingAddonTemplate = exports.listAdminBillingAddonTemplates = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const listAdminBillingAddonTemplates = async (query) => {
|
|
6
|
+
return (await __1.AbyssCore.axios.get(`admin/billing/addon-template`, {
|
|
7
|
+
params: query,
|
|
8
|
+
})).data;
|
|
9
|
+
};
|
|
10
|
+
exports.listAdminBillingAddonTemplates = listAdminBillingAddonTemplates;
|
|
11
|
+
const getAdminBillingAddonTemplate = async (params) => {
|
|
12
|
+
return (await __1.AbyssCore.axios.get(`admin/billing/addon-template/${params.addonTemplateId}`)).data;
|
|
13
|
+
};
|
|
14
|
+
exports.getAdminBillingAddonTemplate = getAdminBillingAddonTemplate;
|
|
15
|
+
const createAdminBillingAddonTemplate = async (body) => {
|
|
16
|
+
return (await __1.AbyssCore.axios.post(`admin/billing/addon-template`, body)).data;
|
|
17
|
+
};
|
|
18
|
+
exports.createAdminBillingAddonTemplate = createAdminBillingAddonTemplate;
|
|
19
|
+
const updateAdminBillingAddonTemplate = async (params, body) => {
|
|
20
|
+
return (await __1.AbyssCore.axios.put(`admin/billing/addon-template/${params.addonTemplateId}`, body)).data;
|
|
21
|
+
};
|
|
22
|
+
exports.updateAdminBillingAddonTemplate = updateAdminBillingAddonTemplate;
|
|
23
|
+
const deleteAdminBillingAddonTemplate = async (params) => {
|
|
24
|
+
return (await __1.AbyssCore.axios.delete(`admin/billing/addon-template/${params.addonTemplateId}`)).data;
|
|
25
|
+
};
|
|
26
|
+
exports.deleteAdminBillingAddonTemplate = deleteAdminBillingAddonTemplate;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ICreatePlanAdminBillingBody, IDeletePlanAdminBillingParams, IUpdatePlanAdminBillingBody, IUpdatePlanAdminBillingParams } from '../types/interface/api/requests/billing-plan.request';
|
|
2
|
+
import type { ICreatePlanAdminBillingResponse, IDeletePlanAdminBillingResponse, IListPlansAdminBillingResponse, IUpdatePlanAdminBillingResponse } from '../types/interface/api/responses/billing-plan.response';
|
|
3
|
+
export declare const listAdminBillingPlans: () => Promise<IListPlansAdminBillingResponse>;
|
|
4
|
+
export declare const createAdminBillingPlan: (body: ICreatePlanAdminBillingBody) => Promise<ICreatePlanAdminBillingResponse>;
|
|
5
|
+
export declare const updateAdminBillingPlan: (params: IUpdatePlanAdminBillingParams, body: IUpdatePlanAdminBillingBody) => Promise<IUpdatePlanAdminBillingResponse>;
|
|
6
|
+
export declare const deleteAdminBillingPlan: (params: IDeletePlanAdminBillingParams) => Promise<IDeletePlanAdminBillingResponse>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteAdminBillingPlan = exports.updateAdminBillingPlan = exports.createAdminBillingPlan = exports.listAdminBillingPlans = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const listAdminBillingPlans = async () => {
|
|
6
|
+
return (await __1.AbyssCore.axios.get('admin/billing/plan')).data;
|
|
7
|
+
};
|
|
8
|
+
exports.listAdminBillingPlans = listAdminBillingPlans;
|
|
9
|
+
const createAdminBillingPlan = async (body) => {
|
|
10
|
+
return (await __1.AbyssCore.axios.post('admin/billing/plan', body)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.createAdminBillingPlan = createAdminBillingPlan;
|
|
13
|
+
const updateAdminBillingPlan = async (params, body) => {
|
|
14
|
+
return (await __1.AbyssCore.axios.put(`admin/billing/plan/${params.planTemplateId}`, body)).data;
|
|
15
|
+
};
|
|
16
|
+
exports.updateAdminBillingPlan = updateAdminBillingPlan;
|
|
17
|
+
const deleteAdminBillingPlan = async (params) => {
|
|
18
|
+
return (await __1.AbyssCore.axios.delete(`admin/billing/plan/${params.planTemplateId}`)).data;
|
|
19
|
+
};
|
|
20
|
+
exports.deleteAdminBillingPlan = deleteAdminBillingPlan;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IGetPlanBillingParams, IListPlansBillingQuery } from '../types/interface/api/requests/billing-plan.request';
|
|
2
|
+
import type { IGetPlanBillingResponse, IListPlansBillingResponse } from '../types/interface/api/responses/billing-plan.response';
|
|
3
|
+
export declare const listBillingPlans: (query?: IListPlansBillingQuery) => Promise<IListPlansBillingResponse>;
|
|
4
|
+
export declare const getBillingPlan: (params: IGetPlanBillingParams) => Promise<IGetPlanBillingResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBillingPlan = exports.listBillingPlans = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const listBillingPlans = async (query) => {
|
|
6
|
+
return (await __1.AbyssCore.axios.get('billing/plan', { params: query })).data;
|
|
7
|
+
};
|
|
8
|
+
exports.listBillingPlans = listBillingPlans;
|
|
9
|
+
const getBillingPlan = async (params) => {
|
|
10
|
+
return (await __1.AbyssCore.axios.get(`billing/plan/${params.planTemplateId}`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.getBillingPlan = getBillingPlan;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -3,12 +3,8 @@ export * from './user.api';
|
|
|
3
3
|
export * from './user.admin.api';
|
|
4
4
|
export * from './user-notification.api';
|
|
5
5
|
export * from './user-notification.admin.api';
|
|
6
|
-
export * from './user-transaction.api';
|
|
7
|
-
export * from './user-transaction.admin.api';
|
|
8
6
|
export * from './gift-code.api';
|
|
9
7
|
export * from './gift-code.admin.api';
|
|
10
|
-
export * from './user-credit-purchase.admin.api';
|
|
11
|
-
export * from './user-credit-purchase.api';
|
|
12
8
|
export * from './metrics.admin.api';
|
|
13
9
|
export * from './monitor.api';
|
|
14
10
|
export * from './user-ticket.admin.api';
|
|
@@ -49,3 +45,13 @@ export * from './report.api';
|
|
|
49
45
|
export * from './report.admin.api';
|
|
50
46
|
export * from './report.public.api';
|
|
51
47
|
export * from './config.admin.api';
|
|
48
|
+
export * from './organization.api';
|
|
49
|
+
export * from './organization-member.api';
|
|
50
|
+
export * from './organization-billing.api';
|
|
51
|
+
export * from './billing-plan.api';
|
|
52
|
+
export * from './billing-plan.admin.api';
|
|
53
|
+
export * from './billing-account.admin.api';
|
|
54
|
+
export * from './billing-addon-template.admin.api';
|
|
55
|
+
export * from './user-billing.api';
|
|
56
|
+
export * from './team.api';
|
|
57
|
+
export * from './project-api-key.api';
|
package/dist/api/index.js
CHANGED
|
@@ -19,12 +19,8 @@ __exportStar(require("./user.api"), exports);
|
|
|
19
19
|
__exportStar(require("./user.admin.api"), exports);
|
|
20
20
|
__exportStar(require("./user-notification.api"), exports);
|
|
21
21
|
__exportStar(require("./user-notification.admin.api"), exports);
|
|
22
|
-
__exportStar(require("./user-transaction.api"), exports);
|
|
23
|
-
__exportStar(require("./user-transaction.admin.api"), exports);
|
|
24
22
|
__exportStar(require("./gift-code.api"), exports);
|
|
25
23
|
__exportStar(require("./gift-code.admin.api"), exports);
|
|
26
|
-
__exportStar(require("./user-credit-purchase.admin.api"), exports);
|
|
27
|
-
__exportStar(require("./user-credit-purchase.api"), exports);
|
|
28
24
|
__exportStar(require("./metrics.admin.api"), exports);
|
|
29
25
|
__exportStar(require("./monitor.api"), exports);
|
|
30
26
|
__exportStar(require("./user-ticket.admin.api"), exports);
|
|
@@ -65,3 +61,13 @@ __exportStar(require("./report.api"), exports);
|
|
|
65
61
|
__exportStar(require("./report.admin.api"), exports);
|
|
66
62
|
__exportStar(require("./report.public.api"), exports);
|
|
67
63
|
__exportStar(require("./config.admin.api"), exports);
|
|
64
|
+
__exportStar(require("./organization.api"), exports);
|
|
65
|
+
__exportStar(require("./organization-member.api"), exports);
|
|
66
|
+
__exportStar(require("./organization-billing.api"), exports);
|
|
67
|
+
__exportStar(require("./billing-plan.api"), exports);
|
|
68
|
+
__exportStar(require("./billing-plan.admin.api"), exports);
|
|
69
|
+
__exportStar(require("./billing-account.admin.api"), exports);
|
|
70
|
+
__exportStar(require("./billing-addon-template.admin.api"), exports);
|
|
71
|
+
__exportStar(require("./user-billing.api"), exports);
|
|
72
|
+
__exportStar(require("./team.api"), exports);
|
|
73
|
+
__exportStar(require("./project-api-key.api"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IGetBillingOrganizationParams, IGetQuotaOrganizationParams, IInitBillingOrganizationParams, IUpdateBillingInfoOrganizationParams, IUpdateBillingInfoOrganizationBody, ISubscribePlanOrganizationParams, ISubscribePlanOrganizationBody, IListInvoicesOrganizationParams, IListCreditOrganizationParams, ICheckQuotaOrganizationParams, ICheckQuotaOrganizationBody, IRecordUsageOrganizationParams, IRecordUsageOrganizationBody, IGetProjectQuotaOrganizationParams, IListGrantsOrganizationParams, ICreateGrantOrganizationParams, ICreateGrantOrganizationBody, IUpdateGrantOrganizationParams, IUpdateGrantOrganizationBody, IDeleteGrantOrganizationParams, IResolveQuotaOrganizationParams, IResolveQuotaOrganizationBody } from '../types/interface/api/requests/organization-billing.request';
|
|
2
|
+
import type { IGetBillingOrganizationResponse, IGetQuotaOrganizationResponse, IInitBillingOrganizationResponse, IUpdateBillingInfoOrganizationResponse, ISubscribePlanOrganizationResponse, IListInvoicesOrganizationResponse, IListCreditOrganizationResponse, ICheckQuotaOrganizationResponse, IRecordUsageOrganizationResponse, IGetProjectQuotaOrganizationResponse, IListGrantsOrganizationResponse, ICreateGrantOrganizationResponse, IUpdateGrantOrganizationResponse, IDeleteGrantOrganizationResponse, IResolveQuotaOrganizationResponse } from '../types/interface/api/responses/organization-billing.response';
|
|
3
|
+
export declare const getOrganizationBilling: (params: IGetBillingOrganizationParams) => Promise<IGetBillingOrganizationResponse>;
|
|
4
|
+
export declare const getOrganizationQuota: (params: IGetQuotaOrganizationParams) => Promise<IGetQuotaOrganizationResponse>;
|
|
5
|
+
export declare const initOrganizationBilling: (params: IInitBillingOrganizationParams) => Promise<IInitBillingOrganizationResponse>;
|
|
6
|
+
export declare const updateOrganizationBillingInfo: (params: IUpdateBillingInfoOrganizationParams, body: IUpdateBillingInfoOrganizationBody) => Promise<IUpdateBillingInfoOrganizationResponse>;
|
|
7
|
+
export declare const subscribeOrganizationToPlan: (params: ISubscribePlanOrganizationParams, body: ISubscribePlanOrganizationBody) => Promise<ISubscribePlanOrganizationResponse>;
|
|
8
|
+
export declare const listOrganizationInvoices: (params: IListInvoicesOrganizationParams) => Promise<IListInvoicesOrganizationResponse>;
|
|
9
|
+
export declare const listOrganizationCredit: (params: IListCreditOrganizationParams) => Promise<IListCreditOrganizationResponse>;
|
|
10
|
+
export declare const checkOrganizationQuota: (params: ICheckQuotaOrganizationParams, body: ICheckQuotaOrganizationBody) => Promise<ICheckQuotaOrganizationResponse>;
|
|
11
|
+
export declare const recordOrganizationUsage: (params: IRecordUsageOrganizationParams, body: IRecordUsageOrganizationBody) => Promise<IRecordUsageOrganizationResponse>;
|
|
12
|
+
export declare const getOrganizationProjectQuota: (params: IGetProjectQuotaOrganizationParams) => Promise<IGetProjectQuotaOrganizationResponse>;
|
|
13
|
+
export declare const listOrganizationGrants: (params: IListGrantsOrganizationParams) => Promise<IListGrantsOrganizationResponse>;
|
|
14
|
+
export declare const createOrganizationGrant: (params: ICreateGrantOrganizationParams, body: ICreateGrantOrganizationBody) => Promise<ICreateGrantOrganizationResponse>;
|
|
15
|
+
export declare const updateOrganizationGrant: (params: IUpdateGrantOrganizationParams, body: IUpdateGrantOrganizationBody) => Promise<IUpdateGrantOrganizationResponse>;
|
|
16
|
+
export declare const deleteOrganizationGrant: (params: IDeleteGrantOrganizationParams) => Promise<IDeleteGrantOrganizationResponse>;
|
|
17
|
+
export declare const resolveOrganizationQuota: (params: IResolveQuotaOrganizationParams, body: IResolveQuotaOrganizationBody) => Promise<IResolveQuotaOrganizationResponse>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveOrganizationQuota = exports.deleteOrganizationGrant = exports.updateOrganizationGrant = exports.createOrganizationGrant = exports.listOrganizationGrants = exports.getOrganizationProjectQuota = exports.recordOrganizationUsage = exports.checkOrganizationQuota = exports.listOrganizationCredit = exports.listOrganizationInvoices = exports.subscribeOrganizationToPlan = exports.updateOrganizationBillingInfo = exports.initOrganizationBilling = exports.getOrganizationQuota = exports.getOrganizationBilling = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getOrganizationBilling = async (params) => {
|
|
6
|
+
return (await __1.AbyssCore.axios.get(`organization/${params.organizationId}/billing`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getOrganizationBilling = getOrganizationBilling;
|
|
9
|
+
const getOrganizationQuota = async (params) => {
|
|
10
|
+
return (await __1.AbyssCore.axios.get(`organization/${params.organizationId}/quota`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.getOrganizationQuota = getOrganizationQuota;
|
|
13
|
+
const initOrganizationBilling = async (params) => {
|
|
14
|
+
return (await __1.AbyssCore.axios.post(`organization/${params.organizationId}/billing`)).data;
|
|
15
|
+
};
|
|
16
|
+
exports.initOrganizationBilling = initOrganizationBilling;
|
|
17
|
+
const updateOrganizationBillingInfo = async (params, body) => {
|
|
18
|
+
return (await __1.AbyssCore.axios.put(`organization/${params.organizationId}/billing`, body)).data;
|
|
19
|
+
};
|
|
20
|
+
exports.updateOrganizationBillingInfo = updateOrganizationBillingInfo;
|
|
21
|
+
const subscribeOrganizationToPlan = async (params, body) => {
|
|
22
|
+
return (await __1.AbyssCore.axios.post(`organization/${params.organizationId}/billing/subscribe`, body)).data;
|
|
23
|
+
};
|
|
24
|
+
exports.subscribeOrganizationToPlan = subscribeOrganizationToPlan;
|
|
25
|
+
const listOrganizationInvoices = async (params) => {
|
|
26
|
+
return (await __1.AbyssCore.axios.get(`organization/${params.organizationId}/billing/invoice`)).data;
|
|
27
|
+
};
|
|
28
|
+
exports.listOrganizationInvoices = listOrganizationInvoices;
|
|
29
|
+
const listOrganizationCredit = async (params) => {
|
|
30
|
+
return (await __1.AbyssCore.axios.get(`organization/${params.organizationId}/billing/credit`)).data;
|
|
31
|
+
};
|
|
32
|
+
exports.listOrganizationCredit = listOrganizationCredit;
|
|
33
|
+
const checkOrganizationQuota = async (params, body) => {
|
|
34
|
+
return (await __1.AbyssCore.axios.post(`organization/${params.organizationId}/quota/check`, body)).data;
|
|
35
|
+
};
|
|
36
|
+
exports.checkOrganizationQuota = checkOrganizationQuota;
|
|
37
|
+
const recordOrganizationUsage = async (params, body) => {
|
|
38
|
+
return (await __1.AbyssCore.axios.post(`organization/${params.organizationId}/quota/usage`, body)).data;
|
|
39
|
+
};
|
|
40
|
+
exports.recordOrganizationUsage = recordOrganizationUsage;
|
|
41
|
+
const getOrganizationProjectQuota = async (params) => {
|
|
42
|
+
return (await __1.AbyssCore.axios.get(`organization/${params.organizationId}/quota/project/${params.projectId}`)).data;
|
|
43
|
+
};
|
|
44
|
+
exports.getOrganizationProjectQuota = getOrganizationProjectQuota;
|
|
45
|
+
const listOrganizationGrants = async (params) => {
|
|
46
|
+
return (await __1.AbyssCore.axios.get(`organization/${params.organizationId}/billing/grants`)).data;
|
|
47
|
+
};
|
|
48
|
+
exports.listOrganizationGrants = listOrganizationGrants;
|
|
49
|
+
const createOrganizationGrant = async (params, body) => {
|
|
50
|
+
return (await __1.AbyssCore.axios.post(`organization/${params.organizationId}/billing/grants`, body)).data;
|
|
51
|
+
};
|
|
52
|
+
exports.createOrganizationGrant = createOrganizationGrant;
|
|
53
|
+
const updateOrganizationGrant = async (params, body) => {
|
|
54
|
+
return (await __1.AbyssCore.axios.put(`organization/${params.organizationId}/billing/grants/${params.grantId}`, body)).data;
|
|
55
|
+
};
|
|
56
|
+
exports.updateOrganizationGrant = updateOrganizationGrant;
|
|
57
|
+
const deleteOrganizationGrant = async (params) => {
|
|
58
|
+
return (await __1.AbyssCore.axios.delete(`organization/${params.organizationId}/billing/grants/${params.grantId}`)).data;
|
|
59
|
+
};
|
|
60
|
+
exports.deleteOrganizationGrant = deleteOrganizationGrant;
|
|
61
|
+
const resolveOrganizationQuota = async (params, body) => {
|
|
62
|
+
return (await __1.AbyssCore.axios.post(`organization/${params.organizationId}/quota/resolve`, body)).data;
|
|
63
|
+
};
|
|
64
|
+
exports.resolveOrganizationQuota = resolveOrganizationQuota;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IInviteOrganizationMemberParams, IInviteOrganizationMemberBody, IListOrganizationMemberParams, IUpdateOrganizationMemberParams, IUpdateOrganizationMemberBody, IRemoveOrganizationMemberParams, IAcceptOrganizationMemberInvitationParams, IDeclineOrganizationMemberInvitationParams, ITransferOwnershipOrganizationMemberParams, ITransferOwnershipOrganizationMemberBody, IListMePermissionsOrganizationMemberParams } from '../types/interface/api/requests/organization-member.request';
|
|
2
|
+
import type { IInviteOrganizationMemberResponse, IListOrganizationMemberResponse, IUpdateOrganizationMemberResponse, IRemoveOrganizationMemberResponse, IAcceptOrganizationMemberInvitationResponse, IDeclineOrganizationMemberInvitationResponse, IListMeOrganizationMemberResponse, IListPendingOrganizationMemberInvitationResponse, ITransferOwnershipOrganizationMemberResponse, IListMePermissionsOrganizationMemberResponse } from '../types/interface/api/responses/organization-member.response';
|
|
3
|
+
export declare const inviteOrganizationMember: (params: IInviteOrganizationMemberParams, body: IInviteOrganizationMemberBody) => Promise<IInviteOrganizationMemberResponse>;
|
|
4
|
+
export declare const listOrganizationMembers: (params: IListOrganizationMemberParams) => Promise<IListOrganizationMemberResponse>;
|
|
5
|
+
export declare const updateOrganizationMember: (params: IUpdateOrganizationMemberParams, body: IUpdateOrganizationMemberBody) => Promise<IUpdateOrganizationMemberResponse>;
|
|
6
|
+
export declare const removeOrganizationMember: (params: IRemoveOrganizationMemberParams) => Promise<IRemoveOrganizationMemberResponse>;
|
|
7
|
+
export declare const acceptOrganizationMemberInvitation: (params: IAcceptOrganizationMemberInvitationParams) => Promise<IAcceptOrganizationMemberInvitationResponse>;
|
|
8
|
+
export declare const declineOrganizationMemberInvitation: (params: IDeclineOrganizationMemberInvitationParams) => Promise<IDeclineOrganizationMemberInvitationResponse>;
|
|
9
|
+
export declare const listMeOrganizationMember: () => Promise<IListMeOrganizationMemberResponse>;
|
|
10
|
+
export declare const listPendingOrganizationMemberInvitations: () => Promise<IListPendingOrganizationMemberInvitationResponse>;
|
|
11
|
+
export declare const transferOwnershipOrganizationMember: (params: ITransferOwnershipOrganizationMemberParams, body: ITransferOwnershipOrganizationMemberBody) => Promise<ITransferOwnershipOrganizationMemberResponse>;
|
|
12
|
+
export declare const listMePermissionsOrganizationMember: (params: IListMePermissionsOrganizationMemberParams) => Promise<IListMePermissionsOrganizationMemberResponse>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listMePermissionsOrganizationMember = exports.transferOwnershipOrganizationMember = exports.listPendingOrganizationMemberInvitations = exports.listMeOrganizationMember = exports.declineOrganizationMemberInvitation = exports.acceptOrganizationMemberInvitation = exports.removeOrganizationMember = exports.updateOrganizationMember = exports.listOrganizationMembers = exports.inviteOrganizationMember = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const inviteOrganizationMember = async (params, body) => {
|
|
6
|
+
return (await __1.AbyssCore.axios.post(`organization/${params.organizationId}/member/invite`, body)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.inviteOrganizationMember = inviteOrganizationMember;
|
|
9
|
+
const listOrganizationMembers = async (params) => {
|
|
10
|
+
return (await __1.AbyssCore.axios.get(`organization/${params.organizationId}/member`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.listOrganizationMembers = listOrganizationMembers;
|
|
13
|
+
const updateOrganizationMember = async (params, body) => {
|
|
14
|
+
return (await __1.AbyssCore.axios.put(`organization/${params.organizationId}/member/${params.memberId}/permissions`, body)).data;
|
|
15
|
+
};
|
|
16
|
+
exports.updateOrganizationMember = updateOrganizationMember;
|
|
17
|
+
const removeOrganizationMember = async (params) => {
|
|
18
|
+
return (await __1.AbyssCore.axios.delete(`organization/${params.organizationId}/member/${params.memberId}`)).data;
|
|
19
|
+
};
|
|
20
|
+
exports.removeOrganizationMember = removeOrganizationMember;
|
|
21
|
+
const acceptOrganizationMemberInvitation = async (params) => {
|
|
22
|
+
return (await __1.AbyssCore.axios.post(`organization/member/${params.memberId}/accept`)).data;
|
|
23
|
+
};
|
|
24
|
+
exports.acceptOrganizationMemberInvitation = acceptOrganizationMemberInvitation;
|
|
25
|
+
const declineOrganizationMemberInvitation = async (params) => {
|
|
26
|
+
return (await __1.AbyssCore.axios.post(`organization/member/${params.memberId}/decline`)).data;
|
|
27
|
+
};
|
|
28
|
+
exports.declineOrganizationMemberInvitation = declineOrganizationMemberInvitation;
|
|
29
|
+
const listMeOrganizationMember = async () => {
|
|
30
|
+
return (await __1.AbyssCore.axios.get(`organization/member/me`)).data;
|
|
31
|
+
};
|
|
32
|
+
exports.listMeOrganizationMember = listMeOrganizationMember;
|
|
33
|
+
const listPendingOrganizationMemberInvitations = async () => {
|
|
34
|
+
return (await __1.AbyssCore.axios.get(`organization/member/me/invitations`)).data;
|
|
35
|
+
};
|
|
36
|
+
exports.listPendingOrganizationMemberInvitations = listPendingOrganizationMemberInvitations;
|
|
37
|
+
const transferOwnershipOrganizationMember = async (params, body) => {
|
|
38
|
+
return (await __1.AbyssCore.axios.post(`organization/${params.organizationId}/member/transfer-ownership`, body)).data;
|
|
39
|
+
};
|
|
40
|
+
exports.transferOwnershipOrganizationMember = transferOwnershipOrganizationMember;
|
|
41
|
+
const listMePermissionsOrganizationMember = async (params) => {
|
|
42
|
+
return (await __1.AbyssCore.axios.get(`organization/${params.organizationId}/member/me/permissions`)).data;
|
|
43
|
+
};
|
|
44
|
+
exports.listMePermissionsOrganizationMember = listMePermissionsOrganizationMember;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { IGetSlackInstallUrlParams, ISlackCallbackParams, ISlackCallbackBody, IGetDiscordInstallUrlParams, IDiscordCallbackParams, IDiscordCallbackBody } from '../types/interface/api/requests/organization.request';
|
|
2
|
-
import type { IGetSlackInstallUrlResponse, IGetDiscordInstallUrlResponse, ICreateOrganizationIntegrationResponse, IGetOrganizationResponse, IDeleteOrganizationIntegrationResponse } from '../types/interface/api/responses/organization.response';
|
|
1
|
+
import type { ICreateOrganizationBody, IGetSlackInstallUrlParams, ISlackCallbackParams, ISlackCallbackBody, IGetDiscordInstallUrlParams, IDiscordCallbackParams, IDiscordCallbackBody } from '../types/interface/api/requests/organization.request';
|
|
2
|
+
import type { ICreateOrganizationResponse, IGetSlackInstallUrlResponse, IGetDiscordInstallUrlResponse, ICreateOrganizationIntegrationResponse, IGetOrganizationResponse, IDeleteOrganizationIntegrationResponse } from '../types/interface/api/responses/organization.response';
|
|
3
3
|
import type { IGetOrganizationParams, IDeleteOrganizationIntegrationParams } from '../types/interface/api/requests/organization.request';
|
|
4
|
+
export declare const createOrganization: (body: ICreateOrganizationBody) => Promise<ICreateOrganizationResponse>;
|
|
4
5
|
export declare const getOrganization: (params: IGetOrganizationParams) => Promise<IGetOrganizationResponse>;
|
|
5
6
|
export declare const getSlackInstallUrl: (params: IGetSlackInstallUrlParams) => Promise<IGetSlackInstallUrlResponse>;
|
|
6
7
|
export declare const slackCallback: (params: ISlackCallbackParams, body: ISlackCallbackBody) => Promise<ICreateOrganizationIntegrationResponse>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteIntegration = exports.discordCallback = exports.getDiscordInstallUrl = exports.slackCallback = exports.getSlackInstallUrl = exports.getOrganization = void 0;
|
|
3
|
+
exports.deleteIntegration = exports.discordCallback = exports.getDiscordInstallUrl = exports.slackCallback = exports.getSlackInstallUrl = exports.getOrganization = exports.createOrganization = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
|
+
const createOrganization = async (body) => {
|
|
6
|
+
return (await __1.AbyssCore.axios.post('organization', body)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.createOrganization = createOrganization;
|
|
5
9
|
const getOrganization = async (params) => {
|
|
6
10
|
return (await __1.AbyssCore.axios.get(`organization/${params.organizationId}`)).data;
|
|
7
11
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ICreateUserProjectAccessAdminResponse, ICreateUserProjectAccessAdminBody, ICreateUserProjectAccessAdminParams, IDeleteProjectAccessAdminParams, IDeleteProjectAccessAdminResponse, IGetProjectAccessAdminParams, IGetProjectAccessAdminResponse, IPaginateProjectAccessAdminQuery, IPaginateProjectAccessAdminResponse, IUpdateProjectAccessAdminBody, IUpdateProjectAccessAdminParams, IUpdateProjectAccessAdminResponse, IComputeApplicationProjectAccessAdminParams, IComputeApplicationProjectAccessAdminBody, IComputeNotificationAccessProjectAccessAdminBody, IUpsertApplicationProjectAccessAdminParams, IUpsertApplicationProjectAccessAdminBody, IUpsertApplicationProjectAccessAdminResponse, IComputeApplicationProjectAccessAdminResponse, IComputeNotificationAccessProjectAccessAdminResponse, IDeleteApplicationProjectAccessAdminParams, IDeleteApplicationProjectAccessAdminResponse, IComputeProjectAccessAdminParams, IComputeProjectAccessAdminBody, IComputeProjectAccessAdminResponse, IComputeUsersWithPermissionsProjectAccessAdminBody, IComputeUsersWithPermissionsProjectAccessAdminResponse, IListMembersProjectAccessAdminParams, IListMembersProjectAccessAdminResponse } from '../types';
|
|
2
2
|
export declare const getProjectAccessAdmin: (params: IGetProjectAccessAdminParams) => Promise<IGetProjectAccessAdminResponse>;
|
|
3
3
|
export declare const paginateProjectAccessAdmin: (query: IPaginateProjectAccessAdminQuery) => Promise<IPaginateProjectAccessAdminResponse>;
|
|
4
4
|
export declare const deleteProjectAccessAdmin: (params: IDeleteProjectAccessAdminParams) => Promise<IDeleteProjectAccessAdminResponse>;
|
|
5
5
|
export declare const updateProjectAccessAdmin: (params: IUpdateProjectAccessAdminParams, body: IUpdateProjectAccessAdminBody) => Promise<IUpdateProjectAccessAdminResponse>;
|
|
6
6
|
export declare const upsertApplicationProjectAccessAdmin: (params: IUpsertApplicationProjectAccessAdminParams, body: IUpsertApplicationProjectAccessAdminBody) => Promise<IUpsertApplicationProjectAccessAdminResponse>;
|
|
7
7
|
export declare const deleteApplicationProjectAccessAdmin: (params: IDeleteApplicationProjectAccessAdminParams) => Promise<IDeleteApplicationProjectAccessAdminResponse>;
|
|
8
|
-
export declare const createProjectAccessAdmin: (params: ICreateProjectAccessAdminParams, body: ICreateProjectAccessAdminBody) => Promise<ICreateProjectAccessAdminResponse>;
|
|
9
8
|
export declare const createUserProjectAccessAdmin: (params: ICreateUserProjectAccessAdminParams, body: ICreateUserProjectAccessAdminBody) => Promise<ICreateUserProjectAccessAdminResponse>;
|
|
10
|
-
export declare const resetApiKeyProjectAccessAdmin: (params: IResetApiKeyProjectAccessAdminParams) => Promise<IResetApiKeyProjectAccessAdminResponse>;
|
|
11
9
|
export declare const computeApplicationProjectAccessAdmin: (params: IComputeApplicationProjectAccessAdminParams, body: IComputeApplicationProjectAccessAdminBody) => Promise<IComputeApplicationProjectAccessAdminResponse>;
|
|
12
10
|
export declare const computeProjectAccessAdmin: (params: IComputeProjectAccessAdminParams, body: IComputeProjectAccessAdminBody) => Promise<IComputeProjectAccessAdminResponse>;
|
|
13
11
|
export declare const computeNotificationAccessProjectAccessAdmin: (body: IComputeNotificationAccessProjectAccessAdminBody) => Promise<IComputeNotificationAccessProjectAccessAdminResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listMembersProjectAccessAdmin = exports.computeUsersWithPermissionsProjectAccessAdmin = exports.computeNotificationAccessProjectAccessAdmin = exports.computeProjectAccessAdmin = exports.computeApplicationProjectAccessAdmin = exports.
|
|
3
|
+
exports.listMembersProjectAccessAdmin = exports.computeUsersWithPermissionsProjectAccessAdmin = exports.computeNotificationAccessProjectAccessAdmin = exports.computeProjectAccessAdmin = exports.computeApplicationProjectAccessAdmin = exports.createUserProjectAccessAdmin = exports.deleteApplicationProjectAccessAdmin = exports.upsertApplicationProjectAccessAdmin = exports.updateProjectAccessAdmin = exports.deleteProjectAccessAdmin = exports.paginateProjectAccessAdmin = exports.getProjectAccessAdmin = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getProjectAccessAdmin = async (params) => {
|
|
6
6
|
return (await __1.AbyssCore.axios.get(`project-access/admin/${params.projectAccessId}`)).data;
|
|
@@ -26,18 +26,10 @@ const deleteApplicationProjectAccessAdmin = async (params) => {
|
|
|
26
26
|
return (await __1.AbyssCore.axios.delete(`project-access/admin/${params.projectAccessId}/${params.applicationId}`)).data;
|
|
27
27
|
};
|
|
28
28
|
exports.deleteApplicationProjectAccessAdmin = deleteApplicationProjectAccessAdmin;
|
|
29
|
-
const createProjectAccessAdmin = async (params, body) => {
|
|
30
|
-
return (await __1.AbyssCore.axios.post(`project-access/admin/${params.projectId}`, body)).data;
|
|
31
|
-
};
|
|
32
|
-
exports.createProjectAccessAdmin = createProjectAccessAdmin;
|
|
33
29
|
const createUserProjectAccessAdmin = async (params, body) => {
|
|
34
30
|
return (await __1.AbyssCore.axios.post(`project-access/admin/${params.projectId}/user-access/${params.userId}`, body)).data;
|
|
35
31
|
};
|
|
36
32
|
exports.createUserProjectAccessAdmin = createUserProjectAccessAdmin;
|
|
37
|
-
const resetApiKeyProjectAccessAdmin = async (params) => {
|
|
38
|
-
return (await __1.AbyssCore.axios.post(`project-access/admin/${params.projectAccessId}/reset-api-key`)).data;
|
|
39
|
-
};
|
|
40
|
-
exports.resetApiKeyProjectAccessAdmin = resetApiKeyProjectAccessAdmin;
|
|
41
33
|
const computeApplicationProjectAccessAdmin = async (params, body) => {
|
|
42
34
|
return (await __1.AbyssCore.axios.post(`project-access/admin/compute-permission/application/${params.applicationId}/compute`, body)).data;
|
|
43
35
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ICreateUserProjectAccessResponse, ICreateUserProjectAccessBody, ICreateUserProjectAccessParams, IDeleteProjectAccessParams, IDeleteProjectAccessResponse, IGetProjectAccessParams, IGetProjectAccessResponse, IPaginateProjectAccessParams, IPaginateProjectAccessQuery, IPaginateProjectAccessResponse, IUpdateProjectAccessBody, IUpdateProjectAccessParams, IUpdateProjectAccessResponse, IConfirmUserProjectAccessParams, IConfirmUserProjectAccessResponse, IUpsertApplicationProjectAccessBody, IUpsertApplicationProjectAccessParams, IUpsertApplicationProjectAccessResponse, IPaginateUserAccessProjectAccessQuery, IListUserAccessProjectAccessResponse, IDeclineUserProjectAccessResponse, IDeclineUserProjectAccessParams, IDeleteApplicationProjectAccessParams, IDeleteApplicationProjectAccessResponse, IUpdateSettingsProjectAccessParams, IUpdateSettingsProjectAccessBody, IUpdateSettingsProjectAccessResponse, IListMembersProjectAccessParams, IListMembersProjectAccessQuery, IListMembersProjectAccessResponse, IListMePermissionsProjectAccessParams, IListMePermissionsProjectAccessResponse, IListMeApplicationPermissionsProjectAccessParams, IListMeApplicationPermissionsProjectAccessResponse, IListMeApiKeyPermissionsProjectAccessParams, IListMeApiKeyPermissionsProjectAccessResponse, IListMeApiKeyApplicationPermissionsProjectAccessParams, IListMeApiKeyApplicationPermissionsProjectAccessResponse } from '../types';
|
|
2
2
|
export declare const getProjectAccess: (params: IGetProjectAccessParams) => Promise<IGetProjectAccessResponse>;
|
|
3
3
|
export declare const paginateUserAccessProjectAccess: (query: IPaginateUserAccessProjectAccessQuery) => Promise<IPaginateProjectAccessResponse>;
|
|
4
4
|
export declare const listUserAccessProjectAccess: () => Promise<IListUserAccessProjectAccessResponse>;
|
|
@@ -7,10 +7,12 @@ export declare const deleteProjectAccess: (params: IDeleteProjectAccessParams) =
|
|
|
7
7
|
export declare const updateProjectAccess: (params: IUpdateProjectAccessParams, body: IUpdateProjectAccessBody) => Promise<IUpdateProjectAccessResponse>;
|
|
8
8
|
export declare const upsertApplicationProjectAccess: (params: IUpsertApplicationProjectAccessParams, body: IUpsertApplicationProjectAccessBody) => Promise<IUpsertApplicationProjectAccessResponse>;
|
|
9
9
|
export declare const deleteApplicationProjectAccess: (params: IDeleteApplicationProjectAccessParams) => Promise<IDeleteApplicationProjectAccessResponse>;
|
|
10
|
-
export declare const createProjectAccess: (params: ICreateProjectAccessParams, body: ICreateProjectAccessBody) => Promise<ICreateProjectAccessResponse>;
|
|
11
10
|
export declare const createUserProjectAccess: (params: ICreateUserProjectAccessParams, body: ICreateUserProjectAccessBody) => Promise<ICreateUserProjectAccessResponse>;
|
|
12
|
-
export declare const resetApiKeyProjectAccess: (params: IResetApiKeyProjectAccessParams) => Promise<IResetApiKeyProjectAccessResponse>;
|
|
13
11
|
export declare const confirmUserProjectAccess: (params: IConfirmUserProjectAccessParams) => Promise<IConfirmUserProjectAccessResponse>;
|
|
14
12
|
export declare const declineUserProjectAccess: (params: IDeclineUserProjectAccessParams) => Promise<IDeclineUserProjectAccessResponse>;
|
|
15
13
|
export declare const updateSettingsProjectAccess: (params: IUpdateSettingsProjectAccessParams, body: IUpdateSettingsProjectAccessBody) => Promise<IUpdateSettingsProjectAccessResponse>;
|
|
16
14
|
export declare const listMembersProjectAccess: (params: IListMembersProjectAccessParams, query?: IListMembersProjectAccessQuery) => Promise<IListMembersProjectAccessResponse>;
|
|
15
|
+
export declare const listMePermissionsProjectAccess: (params: IListMePermissionsProjectAccessParams) => Promise<IListMePermissionsProjectAccessResponse>;
|
|
16
|
+
export declare const listMeApplicationPermissionsProjectAccess: (params: IListMeApplicationPermissionsProjectAccessParams) => Promise<IListMeApplicationPermissionsProjectAccessResponse>;
|
|
17
|
+
export declare const listMeApiKeyPermissionsProjectAccess: (params: IListMeApiKeyPermissionsProjectAccessParams) => Promise<IListMeApiKeyPermissionsProjectAccessResponse>;
|
|
18
|
+
export declare const listMeApiKeyApplicationPermissionsProjectAccess: (params: IListMeApiKeyApplicationPermissionsProjectAccessParams) => Promise<IListMeApiKeyApplicationPermissionsProjectAccessResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.listMeApiKeyApplicationPermissionsProjectAccess = exports.listMeApiKeyPermissionsProjectAccess = exports.listMeApplicationPermissionsProjectAccess = exports.listMePermissionsProjectAccess = exports.listMembersProjectAccess = exports.updateSettingsProjectAccess = exports.declineUserProjectAccess = exports.confirmUserProjectAccess = exports.createUserProjectAccess = exports.deleteApplicationProjectAccess = exports.upsertApplicationProjectAccess = exports.updateProjectAccess = exports.deleteProjectAccess = exports.paginateProjectAccess = exports.listUserAccessProjectAccess = exports.paginateUserAccessProjectAccess = exports.getProjectAccess = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getProjectAccess = async (params) => {
|
|
6
6
|
return (await __1.AbyssCore.axios.get(`project-access/${params.projectId}/${params.projectAccessId}`)).data;
|
|
@@ -37,18 +37,10 @@ const deleteApplicationProjectAccess = async (params) => {
|
|
|
37
37
|
return (await __1.AbyssCore.axios.delete(`project-access/${params.projectId}/${params.projectAccessId}/${params.applicationId}`)).data;
|
|
38
38
|
};
|
|
39
39
|
exports.deleteApplicationProjectAccess = deleteApplicationProjectAccess;
|
|
40
|
-
const createProjectAccess = async (params, body) => {
|
|
41
|
-
return (await __1.AbyssCore.axios.post(`project-access/${params.projectId}`, body)).data;
|
|
42
|
-
};
|
|
43
|
-
exports.createProjectAccess = createProjectAccess;
|
|
44
40
|
const createUserProjectAccess = async (params, body) => {
|
|
45
41
|
return (await __1.AbyssCore.axios.post(`project-access/${params.projectId}/user-access/${params.userId}`, body)).data;
|
|
46
42
|
};
|
|
47
43
|
exports.createUserProjectAccess = createUserProjectAccess;
|
|
48
|
-
const resetApiKeyProjectAccess = async (params) => {
|
|
49
|
-
return (await __1.AbyssCore.axios.post(`project-access/${params.projectId}/reset-api-key`)).data;
|
|
50
|
-
};
|
|
51
|
-
exports.resetApiKeyProjectAccess = resetApiKeyProjectAccess;
|
|
52
44
|
const confirmUserProjectAccess = async (params) => {
|
|
53
45
|
return (await __1.AbyssCore.axios.post(`project-access/${params.projectId}/user-access/${params.projectAccessId}/confirm`)).data;
|
|
54
46
|
};
|
|
@@ -65,3 +57,19 @@ const listMembersProjectAccess = async (params, query) => {
|
|
|
65
57
|
return (await __1.AbyssCore.axios.get(`project-access/${params.projectId}/members`, { params: query })).data;
|
|
66
58
|
};
|
|
67
59
|
exports.listMembersProjectAccess = listMembersProjectAccess;
|
|
60
|
+
const listMePermissionsProjectAccess = async (params) => {
|
|
61
|
+
return (await __1.AbyssCore.axios.get(`project-access/${params.projectId}/me/permissions`)).data;
|
|
62
|
+
};
|
|
63
|
+
exports.listMePermissionsProjectAccess = listMePermissionsProjectAccess;
|
|
64
|
+
const listMeApplicationPermissionsProjectAccess = async (params) => {
|
|
65
|
+
return (await __1.AbyssCore.axios.get(`project-access/${params.projectId}/me/permissions/${params.applicationId}`)).data;
|
|
66
|
+
};
|
|
67
|
+
exports.listMeApplicationPermissionsProjectAccess = listMeApplicationPermissionsProjectAccess;
|
|
68
|
+
const listMeApiKeyPermissionsProjectAccess = async (params) => {
|
|
69
|
+
return (await __1.AbyssCore.axios.get(`project-access/${params.projectId}/api-key/permissions`)).data;
|
|
70
|
+
};
|
|
71
|
+
exports.listMeApiKeyPermissionsProjectAccess = listMeApiKeyPermissionsProjectAccess;
|
|
72
|
+
const listMeApiKeyApplicationPermissionsProjectAccess = async (params) => {
|
|
73
|
+
return (await __1.AbyssCore.axios.get(`project-access/${params.projectId}/api-key/permissions/${params.applicationId}`)).data;
|
|
74
|
+
};
|
|
75
|
+
exports.listMeApiKeyApplicationPermissionsProjectAccess = listMeApiKeyApplicationPermissionsProjectAccess;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ICreateProjectApiKeyParams, ICreateProjectApiKeyBody, IGetProjectApiKeyParams, IListProjectApiKeysParams, IUpdateProjectApiKeyParams, IUpdateProjectApiKeyBody, IDeleteProjectApiKeyParams, IResetProjectApiKeyParams } from '../types/interface/api/requests/project-api-key.request';
|
|
2
|
+
import type { ICreateProjectApiKeyResponse, IGetProjectApiKeyResponse, IListProjectApiKeysResponse, IUpdateProjectApiKeyResponse, IDeleteProjectApiKeyResponse, IResetProjectApiKeyResponse } from '../types/interface/api/responses/project-api-key.response';
|
|
3
|
+
export declare const createProjectApiKey: (params: ICreateProjectApiKeyParams, body: ICreateProjectApiKeyBody) => Promise<ICreateProjectApiKeyResponse>;
|
|
4
|
+
export declare const getProjectApiKey: (params: IGetProjectApiKeyParams) => Promise<IGetProjectApiKeyResponse>;
|
|
5
|
+
export declare const listProjectApiKeys: (params: IListProjectApiKeysParams) => Promise<IListProjectApiKeysResponse>;
|
|
6
|
+
export declare const updateProjectApiKey: (params: IUpdateProjectApiKeyParams, body: IUpdateProjectApiKeyBody) => Promise<IUpdateProjectApiKeyResponse>;
|
|
7
|
+
export declare const deleteProjectApiKey: (params: IDeleteProjectApiKeyParams) => Promise<IDeleteProjectApiKeyResponse>;
|
|
8
|
+
export declare const resetProjectApiKey: (params: IResetProjectApiKeyParams) => Promise<IResetProjectApiKeyResponse>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resetProjectApiKey = exports.deleteProjectApiKey = exports.updateProjectApiKey = exports.listProjectApiKeys = exports.getProjectApiKey = exports.createProjectApiKey = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const base = (orgId, projectId) => `organization/${orgId}/project/${projectId}/api-key`;
|
|
6
|
+
const createProjectApiKey = async (params, body) => {
|
|
7
|
+
return (await __1.AbyssCore.axios.post(base(params.organizationId, params.projectId), body)).data;
|
|
8
|
+
};
|
|
9
|
+
exports.createProjectApiKey = createProjectApiKey;
|
|
10
|
+
const getProjectApiKey = async (params) => {
|
|
11
|
+
return (await __1.AbyssCore.axios.get(`${base(params.organizationId, params.projectId)}/${params.projectApiKeyId}`)).data;
|
|
12
|
+
};
|
|
13
|
+
exports.getProjectApiKey = getProjectApiKey;
|
|
14
|
+
const listProjectApiKeys = async (params) => {
|
|
15
|
+
return (await __1.AbyssCore.axios.get(base(params.organizationId, params.projectId))).data;
|
|
16
|
+
};
|
|
17
|
+
exports.listProjectApiKeys = listProjectApiKeys;
|
|
18
|
+
const updateProjectApiKey = async (params, body) => {
|
|
19
|
+
return (await __1.AbyssCore.axios.put(`${base(params.organizationId, params.projectId)}/${params.projectApiKeyId}`, body)).data;
|
|
20
|
+
};
|
|
21
|
+
exports.updateProjectApiKey = updateProjectApiKey;
|
|
22
|
+
const deleteProjectApiKey = async (params) => {
|
|
23
|
+
return (await __1.AbyssCore.axios.delete(`${base(params.organizationId, params.projectId)}/${params.projectApiKeyId}`)).data;
|
|
24
|
+
};
|
|
25
|
+
exports.deleteProjectApiKey = deleteProjectApiKey;
|
|
26
|
+
const resetProjectApiKey = async (params) => {
|
|
27
|
+
return (await __1.AbyssCore.axios.post(`${base(params.organizationId, params.projectId)}/${params.projectApiKeyId}/reset`)).data;
|
|
28
|
+
};
|
|
29
|
+
exports.resetProjectApiKey = resetProjectApiKey;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { ICreateProjectBody, ICreateProjectResponse,
|
|
1
|
+
import { ICreateProjectBody, ICreateProjectResponse, IDeleteProjectQuery, IDeleteProjectParams, IDeleteProjectResponse, IGetMetricsProjectParams, IGetMetricsProjectResponse, IGetProjectParams, IGetProjectResponse, ILeaveProjectParams, ILeaveProjectResponse, IListProjectResponse, IPaginateProjectQuery, IPaginateProjectResponse, ISetOwnershipProjectBody, ISetOwnershipProjectParams, ISetOwnershipProjectResponse, IUpdateProjectBody, IUpdateProjectParams, IUpdateProjectResponse, IPictureProjectResponse, IPictureProjectParams, IImportPictureFromCollectionProjectResponse, IImportPictureFromCollectionProjectBody, IImportPictureFromCollectionProjectParams, IListBoardProjectResponse, IListBoardProjectParams, IGenerateReportProjectParams, IGenerateReportProjectBody, IGenerateReportProjectResponse } from '../types';
|
|
2
2
|
export declare const getProject: (params: IGetProjectParams) => Promise<IGetProjectResponse>;
|
|
3
3
|
export declare const getMetricsProject: (params: IGetMetricsProjectParams) => Promise<IGetMetricsProjectResponse>;
|
|
4
4
|
export declare const paginateProject: (query: IPaginateProjectQuery) => Promise<IPaginateProjectResponse>;
|
|
5
|
-
export declare const paginateTransactionProject: (params: IPaginateTransactionProjectParams, query: IPaginateTransactionProjectQuery) => Promise<IPaginateTransactionProjectResponse>;
|
|
6
5
|
export declare const listProject: () => Promise<IListProjectResponse>;
|
|
7
6
|
export declare const deleteProject: (params: IDeleteProjectParams, query: IDeleteProjectQuery) => Promise<IDeleteProjectResponse>;
|
|
8
7
|
export declare const updateProject: (params: IUpdateProjectParams, body: IUpdateProjectBody) => Promise<IUpdateProjectResponse>;
|
|
9
8
|
export declare const createProject: (body: ICreateProjectBody) => Promise<ICreateProjectResponse>;
|
|
10
9
|
export declare const leaveProject: (params: ILeaveProjectParams) => Promise<ILeaveProjectResponse>;
|
|
11
|
-
export declare const createSubscriptionProject: (params: ICreateSubscriptionProjectParams, body: ICreateSubscriptionProjectBody) => Promise<ICreateSubscriptionProjectResponse>;
|
|
12
|
-
export declare const renewSubscriptionProject: (params: IRenewSubscriptionProjectParams) => Promise<IRenewSubscriptionProjectResponse>;
|
|
13
|
-
export declare const updateSubscriptionProject: (params: IUpdateSubscriptionProjectParams, body: IUpdateSubscriptionProjectBody) => Promise<IUpdateSubscriptionProjectResponse>;
|
|
14
10
|
export declare const setOwnershipProject: (params: ISetOwnershipProjectParams, body: ISetOwnershipProjectBody) => Promise<ISetOwnershipProjectResponse>;
|
|
15
11
|
export declare const pictureProject: (params: IPictureProjectParams) => Promise<IPictureProjectResponse>;
|
|
16
12
|
export declare const importProfilePictureFromCollectionProject: (params: IImportPictureFromCollectionProjectParams, body: IImportPictureFromCollectionProjectBody) => Promise<IImportPictureFromCollectionProjectResponse>;
|
package/dist/api/project.api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateReportProject = exports.listBoardProject = exports.importProfilePictureFromCollectionProject = exports.pictureProject = exports.setOwnershipProject = exports.
|
|
3
|
+
exports.generateReportProject = exports.listBoardProject = exports.importProfilePictureFromCollectionProject = exports.pictureProject = exports.setOwnershipProject = exports.leaveProject = exports.createProject = exports.updateProject = exports.deleteProject = exports.listProject = exports.paginateProject = exports.getMetricsProject = exports.getProject = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getProject = async (params) => {
|
|
6
6
|
return (await __1.AbyssCore.axios.get(`project/${params.projectId}`)).data;
|
|
@@ -16,10 +16,6 @@ const paginateProject = async (query) => {
|
|
|
16
16
|
})).data;
|
|
17
17
|
};
|
|
18
18
|
exports.paginateProject = paginateProject;
|
|
19
|
-
const paginateTransactionProject = async (params, query) => {
|
|
20
|
-
return (await __1.AbyssCore.axios.get(`project/${params.projectId}/transaction/paginate`, { params: query })).data;
|
|
21
|
-
};
|
|
22
|
-
exports.paginateTransactionProject = paginateTransactionProject;
|
|
23
19
|
const listProject = async () => {
|
|
24
20
|
return (await __1.AbyssCore.axios.get(`project/list`)).data;
|
|
25
21
|
};
|
|
@@ -44,18 +40,6 @@ const leaveProject = async (params) => {
|
|
|
44
40
|
.data;
|
|
45
41
|
};
|
|
46
42
|
exports.leaveProject = leaveProject;
|
|
47
|
-
const createSubscriptionProject = async (params, body) => {
|
|
48
|
-
return (await __1.AbyssCore.axios.post(`project/${params.projectId}/subscription`, body)).data;
|
|
49
|
-
};
|
|
50
|
-
exports.createSubscriptionProject = createSubscriptionProject;
|
|
51
|
-
const renewSubscriptionProject = async (params) => {
|
|
52
|
-
return (await __1.AbyssCore.axios.post(`project/${params.projectId}/subscription/renew`)).data;
|
|
53
|
-
};
|
|
54
|
-
exports.renewSubscriptionProject = renewSubscriptionProject;
|
|
55
|
-
const updateSubscriptionProject = async (params, body) => {
|
|
56
|
-
return (await __1.AbyssCore.axios.put(`project/${params.projectId}/subscription`, body)).data;
|
|
57
|
-
};
|
|
58
|
-
exports.updateSubscriptionProject = updateSubscriptionProject;
|
|
59
43
|
const setOwnershipProject = async (params, body) => {
|
|
60
44
|
return (await __1.AbyssCore.axios.post(`project/${params.projectId}/set-ownership`, body)).data;
|
|
61
45
|
};
|