@abyss-project/main 37.2.0 → 37.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/mailing.admin.api.d.ts +2 -1
- package/dist/api/mailing.admin.api.js +3 -1
- package/dist/api/mailing.admin.api.js.map +1 -1
- package/dist/api/organization-billing.api.d.ts +2 -3
- package/dist/api/organization-billing.api.js +1 -5
- package/dist/api/organization-billing.api.js.map +1 -1
- package/dist/billing-metric-label/billing-metric-label.labels.d.ts +0 -6
- package/dist/billing-metric-label/billing-metric-label.labels.js +0 -6
- package/dist/billing-metric-label/billing-metric-label.labels.js.map +1 -1
- package/dist/constants/billing-catalog.constants.js +0 -28
- package/dist/constants/billing-catalog.constants.js.map +1 -1
- package/dist/constants/catalog-plan-quotas.constants.js +0 -9
- package/dist/constants/catalog-plan-quotas.constants.js.map +1 -1
- package/dist/constants/enforcement-registry.constants.js +0 -18
- package/dist/constants/enforcement-registry.constants.js.map +1 -1
- package/dist/constants/metric-price-scale.constants.js +0 -8
- package/dist/constants/metric-price-scale.constants.js.map +1 -1
- package/dist/constants/module-catalog.constants.d.ts +0 -2
- package/dist/constants/module-catalog.constants.js +0 -24
- package/dist/constants/module-catalog.constants.js.map +1 -1
- package/dist/constants/overage-base-rates.constants.js +0 -1
- package/dist/constants/overage-base-rates.constants.js.map +1 -1
- package/dist/constants/public-plans.constants.js +0 -81
- package/dist/constants/public-plans.constants.js.map +1 -1
- package/dist/constants/quota-metric-kind.constants.js +0 -3
- package/dist/constants/quota-metric-kind.constants.js.map +1 -1
- package/dist/constants/tests/billing-catalog.constants.spec.js +1 -114
- package/dist/constants/tests/billing-catalog.constants.spec.js.map +1 -1
- package/dist/constants/tests/catalog-plan-quotas.coherence.spec.js +0 -16
- package/dist/constants/tests/catalog-plan-quotas.coherence.spec.js.map +1 -1
- package/dist/constants/tests/metric-price-scale.constants.spec.js +1 -5
- package/dist/constants/tests/metric-price-scale.constants.spec.js.map +1 -1
- package/dist/constants/tests/module-calibration.constants.spec.js +0 -1
- package/dist/constants/tests/module-calibration.constants.spec.js.map +1 -1
- package/dist/constants/tests/module-catalog.constants.spec.js +2 -58
- package/dist/constants/tests/module-catalog.constants.spec.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/enum/email-send.enum.d.ts +3 -0
- package/dist/types/enum/email-send.enum.js +3 -0
- package/dist/types/enum/email-send.enum.js.map +1 -1
- package/dist/types/enum/email-type.enum.d.ts +2 -1
- package/dist/types/enum/email-type.enum.js +2 -1
- package/dist/types/enum/email-type.enum.js.map +1 -1
- package/dist/types/enum/index.d.ts +1 -0
- package/dist/types/enum/index.js +1 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/monitor-channel-mail.enum.d.ts +12 -0
- package/dist/types/enum/monitor-channel-mail.enum.js +18 -0
- package/dist/types/enum/monitor-channel-mail.enum.js.map +1 -0
- package/dist/types/enum/organization-billing.enum.d.ts +0 -3
- package/dist/types/enum/organization-billing.enum.js +0 -3
- package/dist/types/enum/organization-billing.enum.js.map +1 -1
- package/dist/types/enum/user-notification-category.enum.js +0 -1
- package/dist/types/enum/user-notification-category.enum.js.map +1 -1
- package/dist/types/enum/user-notification-content-type.enum.d.ts +0 -9
- package/dist/types/enum/user-notification-content-type.enum.js +1 -2
- package/dist/types/enum/user-notification-content-type.enum.js.map +1 -1
- package/dist/types/interface/api/index.d.ts +2 -0
- package/dist/types/interface/api/index.js +2 -0
- package/dist/types/interface/api/index.js.map +1 -1
- package/dist/types/interface/api/requests/mailing-monitor-channel.request.d.ts +30 -0
- package/dist/types/interface/api/requests/mailing-monitor-channel.request.js +3 -0
- package/dist/types/interface/api/requests/mailing-monitor-channel.request.js.map +1 -0
- package/dist/types/interface/api/requests/organization-billing.request.d.ts +0 -15
- package/dist/types/interface/api/responses/mailing-monitor-channel.response.d.ts +12 -0
- package/dist/types/interface/api/responses/mailing-monitor-channel.response.js +3 -0
- package/dist/types/interface/api/responses/mailing-monitor-channel.response.js.map +1 -0
- package/dist/types/interface/api/responses/organization-billing.response.d.ts +0 -4
- package/package.json +1 -1
- package/dist/api/tests/sdk-resource-alert.spec.d.ts +0 -1
- package/dist/api/tests/sdk-resource-alert.spec.js +0 -28
- package/dist/api/tests/sdk-resource-alert.spec.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailing-monitor-channel.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/mailing-monitor-channel.request.ts"],"names":[],"mappings":""}
|
|
@@ -244,18 +244,3 @@ export interface IListOrgDailySnapshotsQuery {
|
|
|
244
244
|
from: string;
|
|
245
245
|
to: string;
|
|
246
246
|
}
|
|
247
|
-
export interface IReportResourceAlertOrganizationParams {
|
|
248
|
-
organizationId: string;
|
|
249
|
-
}
|
|
250
|
-
export interface IReportResourceAlertOrganizationBody {
|
|
251
|
-
metric: BillingMetric;
|
|
252
|
-
resourceId: string;
|
|
253
|
-
resourceLabel: string;
|
|
254
|
-
threshold: number;
|
|
255
|
-
period: string;
|
|
256
|
-
actionUrl: string;
|
|
257
|
-
channels: {
|
|
258
|
-
email: boolean;
|
|
259
|
-
inApp: boolean;
|
|
260
|
-
};
|
|
261
|
-
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MonitorChannelMailOutcome } from '../../../enum';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IMonitorChannelMailResult {
|
|
4
|
+
idempotencyKey: string;
|
|
5
|
+
outcome: MonitorChannelMailOutcome;
|
|
6
|
+
retryAfterSeconds?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ISendMonitorChannelMailAdminData {
|
|
9
|
+
available: boolean;
|
|
10
|
+
result: IMonitorChannelMailResult;
|
|
11
|
+
}
|
|
12
|
+
export type ISendMonitorChannelMailAdminResponse = IResponse<ISendMonitorChannelMailAdminData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailing-monitor-channel.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/mailing-monitor-channel.response.ts"],"names":[],"mappings":""}
|
|
@@ -115,10 +115,6 @@ export interface IImportQuotaOrganizationData {
|
|
|
115
115
|
swept: number;
|
|
116
116
|
}
|
|
117
117
|
export type IImportQuotaOrganizationResponse = IResponse<IImportQuotaOrganizationData>;
|
|
118
|
-
export interface IReportResourceAlertOrganizationData {
|
|
119
|
-
sent: boolean;
|
|
120
|
-
}
|
|
121
|
-
export type IReportResourceAlertOrganizationResponse = IResponse<IReportResourceAlertOrganizationData>;
|
|
122
118
|
export interface ISetStorageSubtotalOrganizationData {
|
|
123
119
|
poolBytes: number;
|
|
124
120
|
limitBytes: number;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const __1 = require("../..");
|
|
4
|
-
describe('SDK — per-resource alerts (#844)', () => {
|
|
5
|
-
it('posts the alert to the admin resource-alert route of the organization', async () => {
|
|
6
|
-
const post = jest
|
|
7
|
-
.spyOn(__1.AbyssCore.axios, 'post')
|
|
8
|
-
.mockResolvedValue({ data: { data: { sent: true } } });
|
|
9
|
-
const body = {
|
|
10
|
-
metric: __1.BillingMetric.REFLEX_BOT_EVENTS_PER_MINUTE,
|
|
11
|
-
resourceId: 'bot-1',
|
|
12
|
-
resourceLabel: 'My bot',
|
|
13
|
-
threshold: 80,
|
|
14
|
-
period: '2026-11-21',
|
|
15
|
-
actionUrl: 'https://abyss.example/reflex/bot-1',
|
|
16
|
-
channels: { email: true, inApp: false },
|
|
17
|
-
};
|
|
18
|
-
const res = await __1.AbyssCore.sdk.organizationBilling.reportResourceAlertAdmin({ organizationId: 'org-1' }, body);
|
|
19
|
-
expect(post).toHaveBeenCalledWith('admin/organization/org-1/quota/resource-alert', body);
|
|
20
|
-
expect(res.data.sent).toBe(true);
|
|
21
|
-
});
|
|
22
|
-
it('declares the notification type, its category and the e-mail type', () => {
|
|
23
|
-
expect(__1.UserNotificationContentType.BILLING_RESOURCE_THRESHOLD).toBe('billing-resource-threshold');
|
|
24
|
-
expect(__1.USER_NOTIFICATION_CONTENT_TYPE_CATEGORY[__1.UserNotificationContentType.BILLING_RESOURCE_THRESHOLD]).toBe(__1.UserNotificationCategory.OPERATIONAL);
|
|
25
|
-
expect(__1.EmailType.BILLING_RESOURCE_WARNING).toBe('BILLING_RESOURCE_WARNING');
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=sdk-resource-alert.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-resource-alert.spec.js","sourceRoot":"","sources":["../../../src/api/tests/sdk-resource-alert.spec.ts"],"names":[],"mappings":";;AAAA,6BAOe;AAEf,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IAChD,EAAE,CAAC,uEAAuE,EAAE,KAAK,IAAI,EAAE;QACrF,MAAM,IAAI,GAAG,IAAI;aACd,KAAK,CAAC,aAAS,CAAC,KAAK,EAAE,MAAM,CAAC;aAC9B,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACzD,MAAM,IAAI,GAAG;YACX,MAAM,EAAE,iBAAa,CAAC,4BAA4B;YAClD,UAAU,EAAE,OAAO;YACnB,aAAa,EAAE,QAAQ;YACvB,SAAS,EAAE,EAAE;YACb,MAAM,EAAE,YAAY;YACpB,SAAS,EAAE,oCAAoC;YAC/C,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE;SACxC,CAAC;QACF,MAAM,GAAG,GAAG,MAAM,aAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,wBAAwB,CAC1E,EAAE,cAAc,EAAE,OAAO,EAAE,EAC3B,IAAI,CACL,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,+CAA+C,EAAE,IAAI,CAAC,CAAC;QACzF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kEAAkE,EAAE,GAAG,EAAE;QAC1E,MAAM,CAAC,+BAA2B,CAAC,0BAA0B,CAAC,CAAC,IAAI,CACjE,4BAA4B,CAC7B,CAAC;QACF,MAAM,CACJ,2CAAuC,CACrC,+BAA2B,CAAC,0BAA0B,CACvD,CACF,CAAC,IAAI,CAAC,4BAAwB,CAAC,WAAW,CAAC,CAAC;QAC7C,MAAM,CAAC,aAAS,CAAC,wBAAwB,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|