@antelopejs/dms-saas 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -86
- package/dist/config/runtime.d.ts +0 -1
- package/dist/config/runtime.js +0 -7
- package/dist/config/runtime.js.map +1 -1
- package/dist/data-api/platformOwner/index.d.ts +0 -1
- package/dist/data-api/platformOwner/index.js +0 -1
- package/dist/data-api/platformOwner/index.js.map +1 -1
- package/dist/data-api/tenant/index.d.ts +0 -1
- package/dist/data-api/tenant/index.js +0 -1
- package/dist/data-api/tenant/index.js.map +1 -1
- package/dist/notifications/subjects.d.ts +0 -2
- package/dist/notifications/subjects.js +1 -13
- package/dist/notifications/subjects.js.map +1 -1
- package/dist/pages/platform/categories.d.ts +0 -1
- package/dist/pages/platform/categories.js +1 -8
- package/dist/pages/platform/categories.js.map +1 -1
- package/dist/pages/platform/index.d.ts +0 -1
- package/dist/pages/platform/index.js +0 -1
- package/dist/pages/platform/index.js.map +1 -1
- package/dist/pages/tenant/index.d.ts +0 -1
- package/dist/pages/tenant/index.js +0 -1
- package/dist/pages/tenant/index.js.map +1 -1
- package/dist/routes/platformOwner/index.d.ts +0 -1
- package/dist/routes/platformOwner/index.js +0 -1
- package/dist/routes/platformOwner/index.js.map +1 -1
- package/dist/routes/public/register.js +1 -3
- package/dist/routes/public/register.js.map +1 -1
- package/dist/routes/tenant/index.d.ts +0 -1
- package/dist/routes/tenant/index.js +0 -1
- package/dist/routes/tenant/index.js.map +1 -1
- package/dist/routes/tenant/tenant-billing.d.ts +2 -1
- package/dist/routes/tenant/tenant-billing.js +14 -11
- package/dist/routes/tenant/tenant-billing.js.map +1 -1
- package/dist/stripe/webhook-handlers.js +19 -20
- package/dist/stripe/webhook-handlers.js.map +1 -1
- package/dist/stripe/webhook-shared.js +9 -11
- package/dist/stripe/webhook-shared.js.map +1 -1
- package/dist/types/config.d.ts +0 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/keyed-insert.d.ts +7 -0
- package/dist/utils/keyed-insert.js +14 -0
- package/dist/utils/keyed-insert.js.map +1 -0
- package/dist/workspaces/provisioning.js +22 -27
- package/dist/workspaces/provisioning.js.map +1 -1
- package/frontend-vue/i18n/locales/saas-en-GB.json +1 -142
- package/frontend-vue/i18n/locales/saas-fr-FR.json +1 -142
- package/package.json +7 -9
- package/dist/data-api/platformOwner/support.d.ts +0 -58
- package/dist/data-api/platformOwner/support.js +0 -111
- package/dist/data-api/platformOwner/support.js.map +0 -1
- package/dist/data-api/support-fields.d.ts +0 -49
- package/dist/data-api/support-fields.js +0 -166
- package/dist/data-api/support-fields.js.map +0 -1
- package/dist/data-api/support-routes.d.ts +0 -10
- package/dist/data-api/support-routes.js +0 -71
- package/dist/data-api/support-routes.js.map +0 -1
- package/dist/data-api/tenant/support.d.ts +0 -39
- package/dist/data-api/tenant/support.js +0 -53
- package/dist/data-api/tenant/support.js.map +0 -1
- package/dist/pages/platform/support.d.ts +0 -9
- package/dist/pages/platform/support.js +0 -29
- package/dist/pages/platform/support.js.map +0 -1
- package/dist/pages/tenant/support.d.ts +0 -9
- package/dist/pages/tenant/support.js +0 -27
- package/dist/pages/tenant/support.js.map +0 -1
- package/dist/routes/platformOwner/support.d.ts +0 -21
- package/dist/routes/platformOwner/support.js +0 -180
- package/dist/routes/platformOwner/support.js.map +0 -1
- package/dist/routes/tenant/support.d.ts +0 -27
- package/dist/routes/tenant/support.js +0 -185
- package/dist/routes/tenant/support.js.map +0 -1
- package/dist/support/admissions.d.ts +0 -36
- package/dist/support/admissions.js +0 -136
- package/dist/support/admissions.js.map +0 -1
- package/dist/support/attachments.d.ts +0 -12
- package/dist/support/attachments.js +0 -56
- package/dist/support/attachments.js.map +0 -1
- package/dist/support/config.d.ts +0 -19
- package/dist/support/config.js +0 -75
- package/dist/support/config.js.map +0 -1
- package/dist/support/index.d.ts +0 -6
- package/dist/support/index.js +0 -23
- package/dist/support/index.js.map +0 -1
- package/dist/support/operations.d.ts +0 -51
- package/dist/support/operations.js +0 -109
- package/dist/support/operations.js.map +0 -1
- package/dist/support/plans.d.ts +0 -6
- package/dist/support/plans.js +0 -130
- package/dist/support/plans.js.map +0 -1
- package/dist/support/publications.d.ts +0 -8
- package/dist/support/publications.js +0 -106
- package/dist/support/publications.js.map +0 -1
- package/dist/support/recovery.d.ts +0 -7
- package/dist/support/recovery.js +0 -43
- package/dist/support/recovery.js.map +0 -1
- package/dist/support/service.d.ts +0 -51
- package/dist/support/service.js +0 -143
- package/dist/support/service.js.map +0 -1
- package/dist/support/transitions.d.ts +0 -4
- package/dist/support/transitions.js +0 -29
- package/dist/support/transitions.js.map +0 -1
- package/dist/support/uploads.d.ts +0 -39
- package/dist/support/uploads.js +0 -115
- package/dist/support/uploads.js.map +0 -1
- package/dist/support/validation.d.ts +0 -15
- package/dist/support/validation.js +0 -54
- package/dist/support/validation.js.map +0 -1
- package/frontend-vue/app/components/PlatformSupport.vue +0 -461
- package/frontend-vue/app/components/SupportAttachmentUpload.vue +0 -140
- package/frontend-vue/app/components/SupportThreadHistory.vue +0 -139
- package/frontend-vue/app/components/TenantSupport.vue +0 -415
- package/frontend-vue/app/composables/useSupportRequest.ts +0 -74
- package/frontend-vue/app/types/support.ts +0 -123
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.SaasPlatformSupportPageController = void 0;
|
|
10
|
-
const page_1 = require("@antelopejs/interface-dms/page");
|
|
11
|
-
const custom_1 = require("@antelopejs/interface-dms/base/custom");
|
|
12
|
-
const layouts_1 = require("@antelopejs/interface-dms/base/layouts");
|
|
13
|
-
const module_1 = require("../module");
|
|
14
|
-
const categories_1 = require("./categories");
|
|
15
|
-
let SaasPlatformSupportPageController = class SaasPlatformSupportPageController extends (0, page_1.PageController)("support", {
|
|
16
|
-
displayName: "$saas.support.platform.title",
|
|
17
|
-
description: "$saas.support.platform.description",
|
|
18
|
-
module: module_1.SAAS_MODULE_ID,
|
|
19
|
-
category: categories_1.supportCategory,
|
|
20
|
-
icon: "i-ph-lifebuoy",
|
|
21
|
-
order: 0,
|
|
22
|
-
}, (0, layouts_1.DefaultLayout)({ fullWidth: true })) {
|
|
23
|
-
static content = (0, custom_1.CustomComponent)("DmsSaasPlatformSupport");
|
|
24
|
-
};
|
|
25
|
-
exports.SaasPlatformSupportPageController = SaasPlatformSupportPageController;
|
|
26
|
-
exports.SaasPlatformSupportPageController = SaasPlatformSupportPageController = __decorate([
|
|
27
|
-
(0, page_1.RegisterPage)()
|
|
28
|
-
], SaasPlatformSupportPageController);
|
|
29
|
-
//# sourceMappingURL=support.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"support.js","sourceRoot":"","sources":["../../../src/pages/platform/support.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yDAA8E;AAC9E,kEAAwE;AACxE,oEAAuE;AACvE,sCAA2C;AAC3C,6CAA+C;AAGxC,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,IAAA,qBAAc,EACnE,SAAS,EACT;IACE,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE,oCAAoC;IACjD,MAAM,EAAE,uBAAc;IACtB,QAAQ,EAAE,4BAAe;IACzB,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,CAAC;CACT,EACD,IAAA,uBAAa,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CACnC;IACC,MAAM,CAAC,OAAO,GAAG,IAAA,wBAAe,EAAC,wBAAwB,CAAC,CAAC;;AAZhD,8EAAiC;4CAAjC,iCAAiC;IAD7C,IAAA,mBAAY,GAAE;GACF,iCAAiC,CAa7C"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const SaasTenantSupportPageController_base: {
|
|
2
|
-
new (...args: any[]): {};
|
|
3
|
-
extend: <T extends import("@antelopejs/interface-api").ControllerClass>(this: T, location: string) => T;
|
|
4
|
-
location: string;
|
|
5
|
-
};
|
|
6
|
-
export declare class SaasTenantSupportPageController extends SaasTenantSupportPageController_base {
|
|
7
|
-
static content: import("@antelopejs/interface-dms").ComponentBuilder<unknown>;
|
|
8
|
-
}
|
|
9
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.SaasTenantSupportPageController = void 0;
|
|
10
|
-
const page_1 = require("@antelopejs/interface-dms/page");
|
|
11
|
-
const custom_1 = require("@antelopejs/interface-dms/base/custom");
|
|
12
|
-
const layouts_1 = require("@antelopejs/interface-dms/base/layouts");
|
|
13
|
-
const module_1 = require("../module");
|
|
14
|
-
let SaasTenantSupportPageController = class SaasTenantSupportPageController extends (0, page_1.PageController)("support", {
|
|
15
|
-
displayName: "$saas.support.tenant.title",
|
|
16
|
-
description: "$saas.support.tenant.description",
|
|
17
|
-
category: module_1.workspaceSettingsCategory,
|
|
18
|
-
icon: "i-ph-lifebuoy",
|
|
19
|
-
order: 90,
|
|
20
|
-
}, (0, layouts_1.DefaultLayout)({ fullWidth: true })) {
|
|
21
|
-
static content = (0, custom_1.CustomComponent)("DmsSaasTenantSupport");
|
|
22
|
-
};
|
|
23
|
-
exports.SaasTenantSupportPageController = SaasTenantSupportPageController;
|
|
24
|
-
exports.SaasTenantSupportPageController = SaasTenantSupportPageController = __decorate([
|
|
25
|
-
(0, page_1.RegisterPage)()
|
|
26
|
-
], SaasTenantSupportPageController);
|
|
27
|
-
//# sourceMappingURL=support.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"support.js","sourceRoot":"","sources":["../../../src/pages/tenant/support.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yDAA8E;AAC9E,kEAAwE;AACxE,oEAAuE;AACvE,sCAAsD;AAG/C,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,IAAA,qBAAc,EACjE,SAAS,EACT;IACE,WAAW,EAAE,4BAA4B;IACzC,WAAW,EAAE,kCAAkC;IAC/C,QAAQ,EAAE,kCAAyB;IACnC,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,EAAE;CACV,EACD,IAAA,uBAAa,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CACnC;IACC,MAAM,CAAC,OAAO,GAAG,IAAA,wBAAe,EAAC,sBAAsB,CAAC,CAAC;;AAX9C,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,mBAAY,GAAE;GACF,+BAA+B,CAY3C"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TenantModel } from "@antelopejs/interface-dms/db";
|
|
2
|
-
import { type User, UserModel } from "@antelopejs/interface-dms/auth/db";
|
|
3
|
-
import { type SupportMessage, type SupportTicket } from "../../db";
|
|
4
|
-
import { type SupportAttachmentMetadata } from "../../support";
|
|
5
|
-
import { type SupportRecoveryPage } from "../../support/recovery";
|
|
6
|
-
interface PlatformSupportDetail {
|
|
7
|
-
ticket: SupportTicket;
|
|
8
|
-
tenantId: string;
|
|
9
|
-
tenantName: string;
|
|
10
|
-
}
|
|
11
|
-
declare const SaasPlatformSupportController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
12
|
-
export declare class SaasPlatformSupportController extends SaasPlatformSupportController_base {
|
|
13
|
-
tenantModel: TenantModel;
|
|
14
|
-
userModel: UserModel;
|
|
15
|
-
reconcile(_user: User, tenantId: string, after?: string): Promise<SupportRecoveryPage>;
|
|
16
|
-
detail(_user: User, tenantId: string, ticketId: string): Promise<PlatformSupportDetail>;
|
|
17
|
-
reply(user: User, tenantId: string, ticketId: string, body: unknown): Promise<SupportMessage>;
|
|
18
|
-
update(user: User, tenantId: string, ticketId: string, body: unknown): Promise<SupportTicket>;
|
|
19
|
-
attachment(_user: User, tenantId: string, ticketId: string, resourceKey: string): Promise<SupportAttachmentMetadata>;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SaasPlatformSupportController = void 0;
|
|
16
|
-
const interface_api_1 = require("@antelopejs/interface-api");
|
|
17
|
-
const interface_api_util_1 = require("@antelopejs/interface-api-util");
|
|
18
|
-
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
19
|
-
const interface_file_storage_1 = require("@antelopejs/interface-file-storage");
|
|
20
|
-
const db_1 = require("@antelopejs/interface-dms/db");
|
|
21
|
-
const auth_1 = require("@antelopejs/interface-dms/auth");
|
|
22
|
-
const db_2 = require("@antelopejs/interface-dms/auth/db");
|
|
23
|
-
const db_3 = require("../../db");
|
|
24
|
-
const notifications_1 = require("../../notifications");
|
|
25
|
-
const support_1 = require("../../support");
|
|
26
|
-
const recovery_1 = require("../../support/recovery");
|
|
27
|
-
const uploads_1 = require("../../support/uploads");
|
|
28
|
-
const HTTP_BAD_REQUEST = 400;
|
|
29
|
-
const HTTP_NOT_FOUND = 404;
|
|
30
|
-
const TENANT_SUPPORT_PATH = "/settings/workspace/support";
|
|
31
|
-
async function requireOwnerAssignment(users, value) {
|
|
32
|
-
if (value === null)
|
|
33
|
-
return null;
|
|
34
|
-
(0, interface_api_util_1.assert)(typeof value === "string" && value.length > 0, HTTP_BAD_REQUEST, "saas.errors.support.invalid_assignee");
|
|
35
|
-
const assignee = await users.get(value);
|
|
36
|
-
(0, interface_api_util_1.assert)(assignee?.owner, HTTP_BAD_REQUEST, "saas.errors.support.invalid_assignee");
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
function resolveTicketUpdate(body) {
|
|
40
|
-
const value = body && typeof body === "object" ? body : {};
|
|
41
|
-
const patch = {};
|
|
42
|
-
if (value.status !== undefined)
|
|
43
|
-
patch.status = (0, support_1.parseSupportStatus)(value.status);
|
|
44
|
-
if (value.assignedTo !== undefined) {
|
|
45
|
-
(0, interface_api_util_1.assert)(value.assignedTo === null ||
|
|
46
|
-
(typeof value.assignedTo === "string" && value.assignedTo.length > 0), HTTP_BAD_REQUEST, "saas.errors.support.invalid_assignee");
|
|
47
|
-
patch.assignedTo = value.assignedTo;
|
|
48
|
-
}
|
|
49
|
-
return patch;
|
|
50
|
-
}
|
|
51
|
-
function tenantModels(tenantId) {
|
|
52
|
-
(0, interface_api_util_1.assert)(tenantId.length > 0, HTTP_BAD_REQUEST, "saas.errors.workspace.not_found");
|
|
53
|
-
return {
|
|
54
|
-
tickets: (0, interface_database_decorators_1.GetModel)(db_3.SupportTicketModel, tenantId),
|
|
55
|
-
messages: (0, interface_database_decorators_1.GetModel)(db_3.SupportMessageModel, tenantId),
|
|
56
|
-
events: (0, interface_database_decorators_1.GetModel)(db_3.SupportTicketEventModel, tenantId),
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
class SaasPlatformSupportController extends (0, interface_api_1.Controller)("/api/saas/support/platform") {
|
|
60
|
-
async reconcile(_user, tenantId, after = "") {
|
|
61
|
-
return (0, recovery_1.recoverSupportOperations)(tenantId, tenantModels(tenantId), after);
|
|
62
|
-
}
|
|
63
|
-
async detail(_user, tenantId, ticketId) {
|
|
64
|
-
const ticket = await (0, support_1.reconcileSupportTicket)(tenantModels(tenantId).tickets, ticketId);
|
|
65
|
-
const tenant = await this.tenantModel.get(tenantId);
|
|
66
|
-
return { ticket, tenantId, tenantName: tenant?.name ?? tenantId };
|
|
67
|
-
}
|
|
68
|
-
async reply(user, tenantId, ticketId, body) {
|
|
69
|
-
const input = (0, support_1.parseSupportMessage)(body);
|
|
70
|
-
(0, interface_api_util_1.assert)(input.attachments.length === 0, HTTP_BAD_REQUEST, "saas.errors.support.platform_attachments_not_available");
|
|
71
|
-
const message = await (0, support_1.addSupportMessage)({
|
|
72
|
-
tenantId,
|
|
73
|
-
ticketId,
|
|
74
|
-
authorId: user._id,
|
|
75
|
-
authorName: user.name,
|
|
76
|
-
authorType: "platform",
|
|
77
|
-
requestId: (0, support_1.parseSupportRequestId)(body),
|
|
78
|
-
input,
|
|
79
|
-
models: tenantModels(tenantId),
|
|
80
|
-
});
|
|
81
|
-
await (0, notifications_1.notifyTenantMembers)(tenantId, notifications_1.supportNewMessageSubject, {
|
|
82
|
-
icon: "i-ph-chat-circle-text",
|
|
83
|
-
title: "$saas.notifications.payload.support_platform_reply.title",
|
|
84
|
-
description: "$saas.notifications.payload.support_platform_reply.description",
|
|
85
|
-
linkTo: TENANT_SUPPORT_PATH,
|
|
86
|
-
});
|
|
87
|
-
return message;
|
|
88
|
-
}
|
|
89
|
-
async update(user, tenantId, ticketId, body) {
|
|
90
|
-
const models = tenantModels(tenantId);
|
|
91
|
-
const input = resolveTicketUpdate(body);
|
|
92
|
-
const previous = await (0, support_1.reconcileSupportTicket)(models.tickets, ticketId);
|
|
93
|
-
const updated = await (0, support_1.updateSupportTicket)({
|
|
94
|
-
tenantId,
|
|
95
|
-
ticketId,
|
|
96
|
-
requestId: (0, support_1.parseSupportRequestId)(body),
|
|
97
|
-
input,
|
|
98
|
-
models,
|
|
99
|
-
actorId: user._id,
|
|
100
|
-
actorName: user.name || user._id,
|
|
101
|
-
validateNewRequest: async () => {
|
|
102
|
-
if (input.assignedTo)
|
|
103
|
-
await requireOwnerAssignment(this.userModel, input.assignedTo);
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
if (previous.status !== updated.status)
|
|
107
|
-
await (0, notifications_1.notifyTenantMembers)(tenantId, notifications_1.supportStatusChangedSubject, {
|
|
108
|
-
icon: "i-ph-arrows-clockwise",
|
|
109
|
-
title: "$saas.notifications.payload.support_status_changed.title",
|
|
110
|
-
description: `$saas.support.status.${updated.status}`,
|
|
111
|
-
linkTo: TENANT_SUPPORT_PATH,
|
|
112
|
-
});
|
|
113
|
-
return updated;
|
|
114
|
-
}
|
|
115
|
-
async attachment(_user, tenantId, ticketId, resourceKey) {
|
|
116
|
-
const models = tenantModels(tenantId);
|
|
117
|
-
await (0, support_1.reconcileSupportTicket)(models.tickets, ticketId);
|
|
118
|
-
(0, interface_api_util_1.assert)(await models.messages.hasAttachment(ticketId, resourceKey), HTTP_NOT_FOUND, "saas.errors.support.attachment_not_found");
|
|
119
|
-
const upload = await (0, uploads_1.getSupportUpload)(tenantId, (0, interface_file_storage_1.toStagedKey)(resourceKey));
|
|
120
|
-
return (0, support_1.getSupportAttachmentMetadata)(resourceKey, upload.storage);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
exports.SaasPlatformSupportController = SaasPlatformSupportController;
|
|
124
|
-
__decorate([
|
|
125
|
-
(0, interface_database_decorators_1.Model)(db_1.TenantModel),
|
|
126
|
-
__metadata("design:type", db_1.TenantModel)
|
|
127
|
-
], SaasPlatformSupportController.prototype, "tenantModel", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, interface_database_decorators_1.Model)(db_2.UserModel),
|
|
130
|
-
__metadata("design:type", db_2.UserModel)
|
|
131
|
-
], SaasPlatformSupportController.prototype, "userModel", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, interface_api_1.Post)("/:tenantId/reconcile"),
|
|
134
|
-
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
135
|
-
__param(1, (0, interface_api_1.Parameter)("tenantId")),
|
|
136
|
-
__param(2, (0, interface_api_1.Parameter)("after", "query")),
|
|
137
|
-
__metadata("design:type", Function),
|
|
138
|
-
__metadata("design:paramtypes", [Function, String, Object]),
|
|
139
|
-
__metadata("design:returntype", Promise)
|
|
140
|
-
], SaasPlatformSupportController.prototype, "reconcile", null);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, interface_api_1.Get)("/:tenantId/:ticketId"),
|
|
143
|
-
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
144
|
-
__param(1, (0, interface_api_1.Parameter)("tenantId")),
|
|
145
|
-
__param(2, (0, interface_api_1.Parameter)("ticketId")),
|
|
146
|
-
__metadata("design:type", Function),
|
|
147
|
-
__metadata("design:paramtypes", [Function, String, String]),
|
|
148
|
-
__metadata("design:returntype", Promise)
|
|
149
|
-
], SaasPlatformSupportController.prototype, "detail", null);
|
|
150
|
-
__decorate([
|
|
151
|
-
(0, interface_api_1.Post)("/:tenantId/:ticketId/messages"),
|
|
152
|
-
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
153
|
-
__param(1, (0, interface_api_1.Parameter)("tenantId")),
|
|
154
|
-
__param(2, (0, interface_api_1.Parameter)("ticketId")),
|
|
155
|
-
__param(3, (0, interface_api_1.JSONBody)()),
|
|
156
|
-
__metadata("design:type", Function),
|
|
157
|
-
__metadata("design:paramtypes", [Function, String, String, Object]),
|
|
158
|
-
__metadata("design:returntype", Promise)
|
|
159
|
-
], SaasPlatformSupportController.prototype, "reply", null);
|
|
160
|
-
__decorate([
|
|
161
|
-
(0, interface_api_1.Put)("/:tenantId/:ticketId"),
|
|
162
|
-
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
163
|
-
__param(1, (0, interface_api_1.Parameter)("tenantId")),
|
|
164
|
-
__param(2, (0, interface_api_1.Parameter)("ticketId")),
|
|
165
|
-
__param(3, (0, interface_api_1.JSONBody)()),
|
|
166
|
-
__metadata("design:type", Function),
|
|
167
|
-
__metadata("design:paramtypes", [Function, String, String, Object]),
|
|
168
|
-
__metadata("design:returntype", Promise)
|
|
169
|
-
], SaasPlatformSupportController.prototype, "update", null);
|
|
170
|
-
__decorate([
|
|
171
|
-
(0, interface_api_1.Get)("/:tenantId/:ticketId/attachment"),
|
|
172
|
-
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
173
|
-
__param(1, (0, interface_api_1.Parameter)("tenantId")),
|
|
174
|
-
__param(2, (0, interface_api_1.Parameter)("ticketId")),
|
|
175
|
-
__param(3, (0, interface_api_1.Parameter)("resourceKey", "query")),
|
|
176
|
-
__metadata("design:type", Function),
|
|
177
|
-
__metadata("design:paramtypes", [Function, String, String, String]),
|
|
178
|
-
__metadata("design:returntype", Promise)
|
|
179
|
-
], SaasPlatformSupportController.prototype, "attachment", null);
|
|
180
|
-
//# sourceMappingURL=support.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"support.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/support.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAOmC;AACnC,uEAAwD;AACxD,6FAA4E;AAC5E,+EAAiE;AACjE,qDAA2D;AAC3D,yDAA+D;AAC/D,0DAAyE;AACzE,iCAMkB;AAClB,uDAI6B;AAC7B,2CAWuB;AACvB,qDAGgC;AAChC,mDAAyD;AAEzD,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,mBAAmB,GAAG,6BAA6B,CAAC;AAa1D,KAAK,UAAU,sBAAsB,CACnC,KAAgB,EAChB,KAAc;IAEd,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAChC,IAAA,2BAAM,EACJ,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAC7C,gBAAgB,EAChB,sCAAsC,CACvC,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxC,IAAA,2BAAM,EACJ,QAAQ,EAAE,KAAK,EACf,gBAAgB,EAChB,sCAAsC,CACvC,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,mBAAmB,CAAC,IAAa;IACxC,MAAM,KAAK,GACT,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,MAAM,KAAK,GAAuB,EAAE,CAAC;IACrC,IAAI,KAAK,CAAC,MAAM,KA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AU,CAAC,CAAA;IACrB,WAAA,IAAA,yBAAS,EAAC,aAAa,EAAE,OAAO,CAAC,CAAA;;;;+DAWnC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type RequestContext } from "@antelopejs/interface-api";
|
|
2
|
-
import { type PresignedUploadResponse } from "@antelopejs/interface-file-storage";
|
|
3
|
-
import { TenantModel } from "@antelopejs/interface-dms/db";
|
|
4
|
-
import type { User } from "@antelopejs/interface-dms/auth/db";
|
|
5
|
-
import { PlanModel, type SupportMessage, SupportMessageModel, type SupportTicket, SupportTicketEventModel, SupportTicketModel, TenantSubscriptionModel } from "../../db";
|
|
6
|
-
import { type SupportAttachmentMetadata, type SupportSlaPolicy } from "../../support";
|
|
7
|
-
export interface SupportPageConfig {
|
|
8
|
-
policy: SupportSlaPolicy;
|
|
9
|
-
uploadPath: string;
|
|
10
|
-
maxAttachmentSize: number;
|
|
11
|
-
allowedMimetypes: readonly string[];
|
|
12
|
-
}
|
|
13
|
-
interface TenantSupportDetail {
|
|
14
|
-
ticket: SupportTicket;
|
|
15
|
-
}
|
|
16
|
-
declare const SaasTenantSupportController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
17
|
-
export declare class SaasTenantSupportController extends SaasTenantSupportController_base {
|
|
18
|
-
tenantModel: TenantModel;
|
|
19
|
-
planModel: PlanModel;
|
|
20
|
-
config(_user: User, ctx: RequestContext, subscriptions: TenantSubscriptionModel): Promise<SupportPageConfig>;
|
|
21
|
-
upload(_user: User, ctx: RequestContext, body: unknown): Promise<PresignedUploadResponse>;
|
|
22
|
-
create(user: User, ctx: RequestContext, body: unknown, tickets: SupportTicketModel, messages: SupportMessageModel, subscriptions: TenantSubscriptionModel, events: SupportTicketEventModel): Promise<SupportTicket>;
|
|
23
|
-
detail(_user: User, ticketId: string, tickets: SupportTicketModel): Promise<TenantSupportDetail>;
|
|
24
|
-
reply(user: User, ctx: RequestContext, ticketId: string, body: unknown, tickets: SupportTicketModel, messages: SupportMessageModel, events: SupportTicketEventModel): Promise<SupportMessage>;
|
|
25
|
-
attachment(_user: User, ctx: RequestContext, ticketId: string, resourceKey: string, tickets: SupportTicketModel, messages: SupportMessageModel): Promise<SupportAttachmentMetadata>;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SaasTenantSupportController = void 0;
|
|
16
|
-
const interface_api_1 = require("@antelopejs/interface-api");
|
|
17
|
-
const interface_api_util_1 = require("@antelopejs/interface-api-util");
|
|
18
|
-
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
19
|
-
const interface_file_storage_1 = require("@antelopejs/interface-file-storage");
|
|
20
|
-
const db_1 = require("@antelopejs/interface-dms/db");
|
|
21
|
-
const guards_1 = require("@antelopejs/interface-dms/guards");
|
|
22
|
-
const request_tenant_1 = require("@antelopejs/interface-dms/request-tenant");
|
|
23
|
-
const tenant_scoped_model_1 = require("@antelopejs/interface-dms/tenant-scoped-model");
|
|
24
|
-
const db_2 = require("../../db");
|
|
25
|
-
const notifications_1 = require("../../notifications");
|
|
26
|
-
const support_1 = require("../../support");
|
|
27
|
-
const uploads_1 = require("../../support/uploads");
|
|
28
|
-
const HTTP_NOT_FOUND = 404;
|
|
29
|
-
const PLATFORM_SUPPORT_PATH = "/modules/saas/support/support";
|
|
30
|
-
function supportModels(tickets, messages, events) {
|
|
31
|
-
return { tickets, messages, events };
|
|
32
|
-
}
|
|
33
|
-
async function requireTenant(model, tenantId) {
|
|
34
|
-
const tenant = await model.get(tenantId);
|
|
35
|
-
(0, interface_api_util_1.assert)(tenant, HTTP_NOT_FOUND, "saas.errors.workspace.not_found");
|
|
36
|
-
return tenant;
|
|
37
|
-
}
|
|
38
|
-
class SaasTenantSupportController extends (0, interface_api_1.Controller)("/api/saas/support") {
|
|
39
|
-
async config(_user, ctx, subscriptions) {
|
|
40
|
-
const uploadPath = (0, support_1.tenantSupportAttachmentPath)((0, request_tenant_1.getRequestTenantId)(ctx));
|
|
41
|
-
return {
|
|
42
|
-
policy: await (0, support_1.resolveTenantSupportPolicy)(subscriptions, this.planModel),
|
|
43
|
-
uploadPath,
|
|
44
|
-
maxAttachmentSize: support_1.SUPPORT_ATTACHMENT_MAX_SIZE,
|
|
45
|
-
allowedMimetypes: support_1.SUPPORT_ATTACHMENT_MIMETYPES,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
async upload(_user, ctx, body) {
|
|
49
|
-
return (0, uploads_1.createSupportUpload)((0, request_tenant_1.getRequestTenantId)(ctx), (0, uploads_1.parseSupportUpload)(body));
|
|
50
|
-
}
|
|
51
|
-
async create(user, ctx, body, tickets, messages, subscriptions, events) {
|
|
52
|
-
const tenantId = (0, request_tenant_1.getRequestTenantId)(ctx);
|
|
53
|
-
const input = (0, support_1.parseSupportTicket)(body);
|
|
54
|
-
const tenant = await requireTenant(this.tenantModel, tenantId);
|
|
55
|
-
const ticket = await (0, support_1.createSupportTicket)({
|
|
56
|
-
tenant,
|
|
57
|
-
authorId: user._id,
|
|
58
|
-
requestId: (0, support_1.parseSupportRequestId)(body),
|
|
59
|
-
input,
|
|
60
|
-
models: supportModels(tickets, messages, events),
|
|
61
|
-
validateNewRequest: async () => {
|
|
62
|
-
const policy = await (0, support_1.resolveTenantSupportPolicy)(subscriptions, this.planModel);
|
|
63
|
-
(0, support_1.assertPriorityAllowed)(input.priority, policy);
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
await (0, notifications_1.notifyAllPlatformOwners)(notifications_1.supportNewMessageSubject, {
|
|
67
|
-
icon: "i-ph-lifebuoy",
|
|
68
|
-
title: "$saas.notifications.payload.support_new_ticket.title",
|
|
69
|
-
description: input.subject,
|
|
70
|
-
linkTo: PLATFORM_SUPPORT_PATH,
|
|
71
|
-
});
|
|
72
|
-
return ticket;
|
|
73
|
-
}
|
|
74
|
-
async detail(_user, ticketId, tickets) {
|
|
75
|
-
const ticket = await (0, support_1.reconcileSupportTicket)(tickets, ticketId);
|
|
76
|
-
return { ticket };
|
|
77
|
-
}
|
|
78
|
-
async reply(user, ctx, ticketId, body, tickets, messages, events) {
|
|
79
|
-
const tenantId = (0, request_tenant_1.getRequestTenantId)(ctx);
|
|
80
|
-
const message = await (0, support_1.addSupportMessage)({
|
|
81
|
-
tenantId,
|
|
82
|
-
ticketId,
|
|
83
|
-
authorId: user._id,
|
|
84
|
-
authorName: user.name,
|
|
85
|
-
authorType: "tenant",
|
|
86
|
-
requestId: (0, support_1.parseSupportRequestId)(body),
|
|
87
|
-
input: (0, support_1.parseSupportMessage)(body),
|
|
88
|
-
models: supportModels(tickets, messages, events),
|
|
89
|
-
});
|
|
90
|
-
await (0, notifications_1.notifyAllPlatformOwners)(notifications_1.supportNewMessageSubject, {
|
|
91
|
-
icon: "i-ph-chat-circle-text",
|
|
92
|
-
title: "$saas.notifications.payload.support_tenant_reply.title",
|
|
93
|
-
description: "$saas.notifications.payload.support_tenant_reply.description",
|
|
94
|
-
linkTo: PLATFORM_SUPPORT_PATH,
|
|
95
|
-
}, user._id);
|
|
96
|
-
return message;
|
|
97
|
-
}
|
|
98
|
-
async attachment(_user, ctx, ticketId, resourceKey, tickets, messages) {
|
|
99
|
-
await (0, support_1.reconcileSupportTicket)(tickets, ticketId);
|
|
100
|
-
(0, interface_api_util_1.assert)(await messages.hasAttachment(ticketId, resourceKey), HTTP_NOT_FOUND, "saas.errors.support.attachment_not_found");
|
|
101
|
-
const upload = await (0, uploads_1.getSupportUpload)((0, request_tenant_1.getRequestTenantId)(ctx), (0, interface_file_storage_1.toStagedKey)(resourceKey));
|
|
102
|
-
return (0, support_1.getSupportAttachmentMetadata)(resourceKey, upload.storage);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
exports.SaasTenantSupportController = SaasTenantSupportController;
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, interface_database_decorators_1.Model)(db_1.TenantModel),
|
|
108
|
-
__metadata("design:type", db_1.TenantModel)
|
|
109
|
-
], SaasTenantSupportController.prototype, "tenantModel", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, interface_database_decorators_1.Model)(db_2.PlanModel),
|
|
112
|
-
__metadata("design:type", db_2.PlanModel)
|
|
113
|
-
], SaasTenantSupportController.prototype, "planModel", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
(0, interface_api_1.Get)("/config"),
|
|
116
|
-
__param(0, (0, guards_1.AuthTenantMember)()),
|
|
117
|
-
__param(1, (0, interface_api_1.Context)()),
|
|
118
|
-
__param(2, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.TenantSubscriptionModel)),
|
|
119
|
-
__metadata("design:type", Function),
|
|
120
|
-
__metadata("design:paramtypes", [Function, Object, db_2.TenantSubscriptionModel]),
|
|
121
|
-
__metadata("design:returntype", Promise)
|
|
122
|
-
], SaasTenantSupportController.prototype, "config", null);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, interface_api_1.Post)("/uploads"),
|
|
125
|
-
__param(0, (0, guards_1.AuthTenantMember)()),
|
|
126
|
-
__param(1, (0, interface_api_1.Context)()),
|
|
127
|
-
__param(2, (0, interface_api_1.JSONBody)()),
|
|
128
|
-
__metadata("design:type", Function),
|
|
129
|
-
__metadata("design:paramtypes", [Function, Object, Object]),
|
|
130
|
-
__metadata("design:returntype", Promise)
|
|
131
|
-
], SaasTenantSupportController.prototype, "upload", null);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, interface_api_1.Post)("/"),
|
|
134
|
-
__param(0, (0, guards_1.AuthTenantMember)()),
|
|
135
|
-
__param(1, (0, interface_api_1.Context)()),
|
|
136
|
-
__param(2, (0, interface_api_1.JSONBody)()),
|
|
137
|
-
__param(3, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.SupportTicketModel)),
|
|
138
|
-
__param(4, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.SupportMessageModel)),
|
|
139
|
-
__param(5, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.TenantSubscriptionModel)),
|
|
140
|
-
__param(6, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.SupportTicketEventModel)),
|
|
141
|
-
__metadata("design:type", Function),
|
|
142
|
-
__metadata("design:paramtypes", [Function, Object, Object, db_2.SupportTicketModel,
|
|
143
|
-
db_2.SupportMessageModel,
|
|
144
|
-
db_2.TenantSubscriptionModel,
|
|
145
|
-
db_2.SupportTicketEventModel]),
|
|
146
|
-
__metadata("design:returntype", Promise)
|
|
147
|
-
], SaasTenantSupportController.prototype, "create", null);
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, interface_api_1.Get)("/:ticketId"),
|
|
150
|
-
__param(0, (0, guards_1.AuthTenantMember)()),
|
|
151
|
-
__param(1, (0, interface_api_1.Parameter)("ticketId")),
|
|
152
|
-
__param(2, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.SupportTicketModel)),
|
|
153
|
-
__metadata("design:type", Function),
|
|
154
|
-
__metadata("design:paramtypes", [Function, String, db_2.SupportTicketModel]),
|
|
155
|
-
__metadata("design:returntype", Promise)
|
|
156
|
-
], SaasTenantSupportController.prototype, "detail", null);
|
|
157
|
-
__decorate([
|
|
158
|
-
(0, interface_api_1.Post)("/:ticketId/messages"),
|
|
159
|
-
__param(0, (0, guards_1.AuthTenantMember)()),
|
|
160
|
-
__param(1, (0, interface_api_1.Context)()),
|
|
161
|
-
__param(2, (0, interface_api_1.Parameter)("ticketId")),
|
|
162
|
-
__param(3, (0, interface_api_1.JSONBody)()),
|
|
163
|
-
__param(4, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.SupportTicketModel)),
|
|
164
|
-
__param(5, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.SupportMessageModel)),
|
|
165
|
-
__param(6, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.SupportTicketEventModel)),
|
|
166
|
-
__metadata("design:type", Function),
|
|
167
|
-
__metadata("design:paramtypes", [Function, Object, String, Object, db_2.SupportTicketModel,
|
|
168
|
-
db_2.SupportMessageModel,
|
|
169
|
-
db_2.SupportTicketEventModel]),
|
|
170
|
-
__metadata("design:returntype", Promise)
|
|
171
|
-
], SaasTenantSupportController.prototype, "reply", null);
|
|
172
|
-
__decorate([
|
|
173
|
-
(0, interface_api_1.Get)("/:ticketId/attachment"),
|
|
174
|
-
__param(0, (0, guards_1.AuthTenantMember)()),
|
|
175
|
-
__param(1, (0, interface_api_1.Context)()),
|
|
176
|
-
__param(2, (0, interface_api_1.Parameter)("ticketId")),
|
|
177
|
-
__param(3, (0, interface_api_1.Parameter)("resourceKey", "query")),
|
|
178
|
-
__param(4, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.SupportTicketModel)),
|
|
179
|
-
__param(5, (0, tenant_scoped_model_1.TenantScopedModel)(db_2.SupportMessageModel)),
|
|
180
|
-
__metadata("design:type", Function),
|
|
181
|
-
__metadata("design:paramtypes", [Function, Object, String, String, db_2.SupportTicketModel,
|
|
182
|
-
db_2.SupportMessageModel]),
|
|
183
|
-
__metadata("design:returntype", Promise)
|
|
184
|
-
], SaasTenantSupportController.prototype, "attachment", null);
|
|
185
|
-
//# sourceMappingURL=support.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"support.js","sourceRoot":"","sources":["../../../src/routes/tenant/support.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAQmC;AACnC,uEAAwD;AACxD,6FAAkE;AAClE,+EAG4C;AAC5C,qDAA2D;AAC3D,6DAAoE;AACpE,6EAA8E;AAC9E,uFAAkF;AAElF,iCAQkB;AAClB,uDAG6B;AAC7B,2CAgBuB;AACvB,mDAI+B;AAE/B,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,qBAAqB,GAAG,+BAA+B,CAAC;AAa9D,SAAS,aAAa,CACpB,OAA2B,EAC3B,QAA6B,EAC7B,MAA+B;IAE/B,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACvC,CAAC;AAED,KAAK,UAAU,aAAa,CAC1B,KAAkB,EAClB,QAAgB;IAEhB,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACzC,IAAA,2BAAM,EAAC,MAAM,EAAE,cAAc,EAAE,iCAAiC,CAAC,CAAC;IAClE,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAa,2BAA4B,SAAQ,IAAA,0BAAU,EACzD,mBAAmB,CACpB;IAQO,AAAN,KAAK,CAAC,MAAM,CACU,KAAW,EACpB,GAAmB,EAE9B,aAAsC;QAEtC,MAAM,UAAU,GAAG,IAAA,qCAA2B,EAAC,IAAA,mCAAkB,EAAC,GAAG,CAAC,CAAC,CAAC;QACxE,OAAO;YACL,MAAM,EAAE,MAAM,IAAA,oCAA0B,EAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC;YACvE,UAAU;YACV,iBAAiB,EAAE,qCAA2B;YAC9C,gBAAgB,EAAE,sCAA4B;SAC/C,CAAC;IACJ,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AAgB,GAAE,CAAA;IAClB,WAAA,IAAA,yBAAS,EAAC,UAAU,CAAC,CAAA;IACrB,WAAA,IAAA,uCAAiB,EAAC,uBAAkB,CAAC,CAAA;;uDAAU,uBAAkB;;yDAInE;AAOK;IALL,IAAA,oBAAI,EAAC,qBAAqB,CAAC;IAMzB,WAAA,IAAA,yBAAgB,GAAE,CAAA;IAClB,WAAA,IAAA,uBAAO,GAAE,CAAA;IACT,WAAA,IAAA,yBAAS,EAAC,UAAU,CAAC,CAAA;IACrB,WAAA,IAAA,wBAAQ,GAAE,CAAA;IACV,WAAA,IAAA,uCAAiB,EAAC,uBAAkB,CAAC,CAAA;IACrC,WAAA,IAAA,uCAAiB,EAAC,wBAAmB,CAAC,CAAA;IACtC,WAAA,IAAA,uCAAiB,EAAC,4BAAuB,CAAC,CAAA;;uEAFK,uBAAkB;QAChB,wBAAmB;QACjB,4BAAuB;;wDAyB5E;AAKK;IAHL,IAAA,mBAAG,EAAC,uBAAuB,CAAC;IAI1B,WAAA,IAAA,yBAAgB,GAAE,CAAA;IAClB,WAAA,IAAA,uBAAO,GAAE,CAAA;IACT,WAAA,IAAA,yBAAS,EAAC,UAAU,CAAC,CAAA;IACrB,WAAA,IAAA,yBAAS,EAAC,aAAa,EAAE,OAAO,CAAC,CAAA;IACjC,WAAA,IAAA,uCAAiB,EAAC,uBAAkB,CAAC,CAAA;IACrC,WAAA,IAAA,uCAAiB,EAAC,wBAAmB,CAAC,CAAA;;uEADS,uBAAkB;QAChB,wBAAmB;;6DAatE"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Table } from "@antelopejs/interface-database-decorators";
|
|
2
|
-
import { type SupportOperation, SupportOperationModel } from "./operations";
|
|
3
|
-
export declare class SupportAttachmentAdmission extends Table {
|
|
4
|
-
_id: string;
|
|
5
|
-
operationId: string;
|
|
6
|
-
stagedKey: string;
|
|
7
|
-
storage: string;
|
|
8
|
-
finalKey: string;
|
|
9
|
-
revision: string;
|
|
10
|
-
promotionConfirmed: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const SupportAttachmentAdmissionModel_base: {
|
|
13
|
-
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
14
|
-
readonly table: import("@antelopejs/interface-database").Table<SupportAttachmentAdmission>;
|
|
15
|
-
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
16
|
-
get(id: string): PromiseLike<SupportAttachmentAdmission | undefined>;
|
|
17
|
-
getBy(index: keyof SupportAttachmentAdmission, ...keys: any[]): PromiseLike<SupportAttachmentAdmission[]>;
|
|
18
|
-
getAll(): PromiseLike<SupportAttachmentAdmission[]>;
|
|
19
|
-
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SupportAttachmentAdmission> | import("@antelopejs/interface-database-decorators").DeepPartial<SupportAttachmentAdmission>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
20
|
-
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<SupportAttachmentAdmission>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
21
|
-
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<SupportAttachmentAdmission>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
22
|
-
delete(id: string): Promise<number>;
|
|
23
|
-
};
|
|
24
|
-
readonly schemaName: string;
|
|
25
|
-
fromPlainData(obj: any): SupportAttachmentAdmission;
|
|
26
|
-
fromDatabase(obj: any): SupportAttachmentAdmission | undefined;
|
|
27
|
-
toDatabase(obj: any): Record<string, any>;
|
|
28
|
-
validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
|
|
29
|
-
};
|
|
30
|
-
export declare class SupportAttachmentAdmissionModel extends SupportAttachmentAdmissionModel_base {
|
|
31
|
-
admit(candidate: SupportAttachmentAdmission): Promise<SupportAttachmentAdmission>;
|
|
32
|
-
confirmPromotion(admission: SupportAttachmentAdmission): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
export declare function prepareSupportAttachments(operations: SupportOperationModel, operation: SupportOperation, tenantId: string): Promise<void>;
|
|
35
|
-
export declare function cancelSupportAttachments(operation: SupportOperation): Promise<void>;
|
|
36
|
-
export {};
|