@abyss-project/form 1.0.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/.eslintrc.js +34 -0
- package/README.md +2 -0
- package/dist/api/abyss.admin.api.d.ts +2 -0
- package/dist/api/abyss.admin.api.js +8 -0
- package/dist/api/form-document.admin.api.d.ts +4 -0
- package/dist/api/form-document.admin.api.js +16 -0
- package/dist/api/form-document.api.d.ts +7 -0
- package/dist/api/form-document.api.js +30 -0
- package/dist/api/form.admin.api.d.ts +12 -0
- package/dist/api/form.admin.api.js +51 -0
- package/dist/api/form.api.d.ts +12 -0
- package/dist/api/form.api.js +50 -0
- package/dist/api/form.public.api.d.ts +3 -0
- package/dist/api/form.public.api.js +12 -0
- package/dist/api/index.d.ts +9 -0
- package/dist/api/index.js +25 -0
- package/dist/api/monitor.api.d.ts +2 -0
- package/dist/api/monitor.api.js +8 -0
- package/dist/api/user.admin.api.d.ts +5 -0
- package/dist/api/user.admin.api.js +23 -0
- package/dist/api/user.api.d.ts +4 -0
- package/dist/api/user.api.js +17 -0
- package/dist/constants/form.constant.d.ts +4 -0
- package/dist/constants/form.constant.js +7 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +17 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +93 -0
- package/dist/types/enum/api-error.enum.d.ts +19 -0
- package/dist/types/enum/api-error.enum.js +24 -0
- package/dist/types/enum/form-status.enum.d.ts +5 -0
- package/dist/types/enum/form-status.enum.js +9 -0
- package/dist/types/enum/form-webhook-type.enum.d.ts +4 -0
- package/dist/types/enum/form-webhook-type.enum.js +8 -0
- package/dist/types/enum/index.d.ts +3 -0
- package/dist/types/enum/index.js +19 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +18 -0
- package/dist/types/interface/api/index.d.ts +23 -0
- package/dist/types/interface/api/index.js +39 -0
- package/dist/types/interface/api/requests/abyss.admin.request.d.ts +3 -0
- package/dist/types/interface/api/requests/abyss.admin.request.js +2 -0
- package/dist/types/interface/api/requests/form-document.admin.request.d.ts +12 -0
- package/dist/types/interface/api/requests/form-document.admin.request.js +2 -0
- package/dist/types/interface/api/requests/form-document.request.d.ts +44 -0
- package/dist/types/interface/api/requests/form-document.request.js +2 -0
- package/dist/types/interface/api/requests/form.admin.request.d.ts +78 -0
- package/dist/types/interface/api/requests/form.admin.request.js +2 -0
- package/dist/types/interface/api/requests/form.request.d.ts +74 -0
- package/dist/types/interface/api/requests/form.request.js +2 -0
- package/dist/types/interface/api/requests/project.public.request.d.ts +25 -0
- package/dist/types/interface/api/requests/project.public.request.js +2 -0
- package/dist/types/interface/api/requests/storage.admin.request.d.ts +3 -0
- package/dist/types/interface/api/requests/storage.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user.admin.request.d.ts +15 -0
- package/dist/types/interface/api/requests/user.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user.request.d.ts +2 -0
- package/dist/types/interface/api/requests/user.request.js +2 -0
- package/dist/types/interface/api/responses/abyss.admin.response.d.ts +6 -0
- package/dist/types/interface/api/responses/abyss.admin.response.js +2 -0
- package/dist/types/interface/api/responses/form-document.admin.response.d.ts +9 -0
- package/dist/types/interface/api/responses/form-document.admin.response.js +2 -0
- package/dist/types/interface/api/responses/form-document.response.d.ts +17 -0
- package/dist/types/interface/api/responses/form-document.response.js +2 -0
- package/dist/types/interface/api/responses/form.admin.response.d.ts +41 -0
- package/dist/types/interface/api/responses/form.admin.response.js +2 -0
- package/dist/types/interface/api/responses/form.response.d.ts +41 -0
- package/dist/types/interface/api/responses/form.response.js +2 -0
- package/dist/types/interface/api/responses/monitor.response.d.ts +7 -0
- package/dist/types/interface/api/responses/monitor.response.js +2 -0
- package/dist/types/interface/api/responses/project.public.response.d.ts +15 -0
- package/dist/types/interface/api/responses/project.public.response.js +2 -0
- package/dist/types/interface/api/responses/storage.admin.response.d.ts +3 -0
- package/dist/types/interface/api/responses/storage.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user.admin.response.d.ts +14 -0
- package/dist/types/interface/api/responses/user.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user.response.d.ts +13 -0
- package/dist/types/interface/api/responses/user.response.js +2 -0
- package/dist/types/interface/api/type-message/api-error.d.ts +8 -0
- package/dist/types/interface/api/type-message/api-error.js +2 -0
- package/dist/types/interface/api/type-message/base-order.d.ts +4 -0
- package/dist/types/interface/api/type-message/base-order.js +2 -0
- package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -0
- package/dist/types/interface/api/type-message/base-paginate.js +2 -0
- package/dist/types/interface/api/type-message/response.d.ts +5 -0
- package/dist/types/interface/api/type-message/response.js +2 -0
- package/dist/types/interface/dto/form.dto.d.ts +52 -0
- package/dist/types/interface/dto/form.dto.js +2 -0
- package/dist/types/interface/dto/index.d.ts +2 -0
- package/dist/types/interface/dto/index.js +18 -0
- package/dist/types/interface/dto/webhook.dto.d.ts +10 -0
- package/dist/types/interface/dto/webhook.dto.js +2 -0
- package/dist/types/interface/index.d.ts +9 -0
- package/dist/types/interface/index.js +25 -0
- package/dist/types/interface/models/form-configuration.model.d.ts +15 -0
- package/dist/types/interface/models/form-configuration.model.js +2 -0
- package/dist/types/interface/models/form-document.model.d.ts +16 -0
- package/dist/types/interface/models/form-document.model.js +2 -0
- package/dist/types/interface/models/form-submission.model.d.ts +16 -0
- package/dist/types/interface/models/form-submission.model.js +2 -0
- package/dist/types/interface/models/form-webhook-history.model.d.ts +16 -0
- package/dist/types/interface/models/form-webhook-history.model.js +2 -0
- package/dist/types/interface/models/form-webhook.model.d.ts +17 -0
- package/dist/types/interface/models/form-webhook.model.js +2 -0
- package/dist/types/interface/models/form.model.d.ts +29 -0
- package/dist/types/interface/models/form.model.js +2 -0
- package/dist/types/interface/models/user.model.d.ts +9 -0
- package/dist/types/interface/models/user.model.js +2 -0
- package/dist/utils/error.utils.d.ts +15 -0
- package/dist/utils/error.utils.js +24 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/package.json +47 -0
- package/tsconfig.json +105 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api-error.enum"), exports);
|
|
18
|
+
__exportStar(require("./form-status.enum"), exports);
|
|
19
|
+
__exportStar(require("./form-webhook-type.enum"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enum"), exports);
|
|
18
|
+
__exportStar(require("./interface"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './type-message/api-error';
|
|
2
|
+
export * from './type-message/response';
|
|
3
|
+
export * from './type-message/base-order';
|
|
4
|
+
export * from './type-message/base-paginate';
|
|
5
|
+
export * from './requests/abyss.admin.request';
|
|
6
|
+
export * from './requests/storage.admin.request';
|
|
7
|
+
export * from './requests/user.admin.request';
|
|
8
|
+
export * from './requests/user.request';
|
|
9
|
+
export * from './requests/form.admin.request';
|
|
10
|
+
export * from './requests/project.public.request';
|
|
11
|
+
export * from './requests/form.request';
|
|
12
|
+
export * from './requests/form-document.admin.request';
|
|
13
|
+
export * from './requests/form-document.request';
|
|
14
|
+
export * from './responses/abyss.admin.response';
|
|
15
|
+
export * from './responses/monitor.response';
|
|
16
|
+
export * from './responses/storage.admin.response';
|
|
17
|
+
export * from './responses/user.admin.response';
|
|
18
|
+
export * from './responses/user.response';
|
|
19
|
+
export * from './responses/form.admin.response';
|
|
20
|
+
export * from './responses/project.public.response';
|
|
21
|
+
export * from './responses/form.response';
|
|
22
|
+
export * from './responses/form-document.admin.response';
|
|
23
|
+
export * from './responses/form-document.response';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./type-message/api-error"), exports);
|
|
18
|
+
__exportStar(require("./type-message/response"), exports);
|
|
19
|
+
__exportStar(require("./type-message/base-order"), exports);
|
|
20
|
+
__exportStar(require("./type-message/base-paginate"), exports);
|
|
21
|
+
__exportStar(require("./requests/abyss.admin.request"), exports);
|
|
22
|
+
__exportStar(require("./requests/storage.admin.request"), exports);
|
|
23
|
+
__exportStar(require("./requests/user.admin.request"), exports);
|
|
24
|
+
__exportStar(require("./requests/user.request"), exports);
|
|
25
|
+
__exportStar(require("./requests/form.admin.request"), exports);
|
|
26
|
+
__exportStar(require("./requests/project.public.request"), exports);
|
|
27
|
+
__exportStar(require("./requests/form.request"), exports);
|
|
28
|
+
__exportStar(require("./requests/form-document.admin.request"), exports);
|
|
29
|
+
__exportStar(require("./requests/form-document.request"), exports);
|
|
30
|
+
__exportStar(require("./responses/abyss.admin.response"), exports);
|
|
31
|
+
__exportStar(require("./responses/monitor.response"), exports);
|
|
32
|
+
__exportStar(require("./responses/storage.admin.response"), exports);
|
|
33
|
+
__exportStar(require("./responses/user.admin.response"), exports);
|
|
34
|
+
__exportStar(require("./responses/user.response"), exports);
|
|
35
|
+
__exportStar(require("./responses/form.admin.response"), exports);
|
|
36
|
+
__exportStar(require("./responses/project.public.response"), exports);
|
|
37
|
+
__exportStar(require("./responses/form.response"), exports);
|
|
38
|
+
__exportStar(require("./responses/form-document.admin.response"), exports);
|
|
39
|
+
__exportStar(require("./responses/form-document.response"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
import * as core from 'express-serve-static-core';
|
|
3
|
+
export interface IGetFormDocumentAdminParams extends core.ParamsDictionary {
|
|
4
|
+
formDocumentId: string;
|
|
5
|
+
}
|
|
6
|
+
export type IPaginateFormDocumentAdminQuery = {
|
|
7
|
+
formId?: string;
|
|
8
|
+
formQuestionIdentifier?: string | null;
|
|
9
|
+
} & QueryPaginate;
|
|
10
|
+
export interface IDeleteFormDocumentAdminParams extends core.ParamsDictionary {
|
|
11
|
+
formDocumentId: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
import * as core from 'express-serve-static-core';
|
|
3
|
+
export interface IGetFormDocumentParams extends core.ParamsDictionary {
|
|
4
|
+
formId: string;
|
|
5
|
+
formDocumentId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IPaginateFormDocumentParams extends core.ParamsDictionary {
|
|
8
|
+
formId: string;
|
|
9
|
+
}
|
|
10
|
+
export type IPaginateFormDocumentQuery = {
|
|
11
|
+
formQuestionIdentifier?: string | null;
|
|
12
|
+
} & QueryPaginate;
|
|
13
|
+
export interface IGetUploadPreSignedUrlFormDocumentParams extends core.ParamsDictionary {
|
|
14
|
+
formId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IGetUploadPreSignedUrlFormDocumentBody {
|
|
17
|
+
name: string;
|
|
18
|
+
formQuestionIdentifier: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface IImportFromCloudFormDocumentParams extends core.ParamsDictionary {
|
|
21
|
+
formId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IImportFromCloudFormDocumentBody {
|
|
24
|
+
formDocument: {
|
|
25
|
+
fileId: string;
|
|
26
|
+
name: string;
|
|
27
|
+
formQuestionIdentifier: string | null;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
30
|
+
export interface IImportFromCollectionFormDocumentParams extends core.ParamsDictionary {
|
|
31
|
+
formId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IImportFromCollectionFormDocumentBody {
|
|
34
|
+
formDocument: {
|
|
35
|
+
source: string;
|
|
36
|
+
elementId: string;
|
|
37
|
+
name: string;
|
|
38
|
+
formQuestionIdentifier: string | null;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export interface IDeleteFormDocumentParams extends core.ParamsDictionary {
|
|
42
|
+
formId: string;
|
|
43
|
+
formDocumentId: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { FormStatus } from '../../../enum';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
import * as core from 'express-serve-static-core';
|
|
4
|
+
export interface IUpdateFormAdminParams {
|
|
5
|
+
formId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IUpdateFormAdminBody {
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
content?: Record<string, any>;
|
|
12
|
+
status?: FormStatus;
|
|
13
|
+
startDate?: Date | null;
|
|
14
|
+
endDate?: Date | null;
|
|
15
|
+
}
|
|
16
|
+
export interface ILinkToAbyssProjectFormAdminParams {
|
|
17
|
+
formId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ILinkToAbyssProjectFormAdminBody {
|
|
20
|
+
abyssProjectId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ILinkToAbyssProjectApplicationFormAdminParams {
|
|
23
|
+
formId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ILinkToAbyssProjectApplicationFormAdminBody {
|
|
26
|
+
abyssProjectApplicationId: string | null;
|
|
27
|
+
}
|
|
28
|
+
export interface ICreateFormAdminParams {
|
|
29
|
+
userId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ICreateFormAdminBody {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
tags: string[];
|
|
35
|
+
content: Record<string, any>;
|
|
36
|
+
abyssSpotlightProjectId: string | null;
|
|
37
|
+
abyssProjectId: string | null;
|
|
38
|
+
abyssProjectApplicationId: string | null;
|
|
39
|
+
status: FormStatus;
|
|
40
|
+
startDate: Date | null;
|
|
41
|
+
endDate: Date | null;
|
|
42
|
+
}
|
|
43
|
+
export interface IGetFormAdminParams extends core.ParamsDictionary {
|
|
44
|
+
formId: string;
|
|
45
|
+
}
|
|
46
|
+
export interface IDeleteFormAdminParams extends core.ParamsDictionary {
|
|
47
|
+
formId: string;
|
|
48
|
+
}
|
|
49
|
+
export type IPaginateFormAdminQuery = {
|
|
50
|
+
title?: string;
|
|
51
|
+
tags?: string[];
|
|
52
|
+
userId?: string;
|
|
53
|
+
status?: FormStatus[];
|
|
54
|
+
userIdHasPermission?: string;
|
|
55
|
+
} & QueryPaginate;
|
|
56
|
+
export interface IListByAbyssProjectIdFormAdminParams extends core.ParamsDictionary {
|
|
57
|
+
abyssProjectId: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ITransferFormAdminParams extends core.ParamsDictionary {
|
|
60
|
+
formId: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ITransferFormAdminBody {
|
|
63
|
+
userId: string;
|
|
64
|
+
}
|
|
65
|
+
export interface IUpdateConfigurationFormAdminParams {
|
|
66
|
+
formId: string;
|
|
67
|
+
}
|
|
68
|
+
export interface IUpdateConfigurationFormAdminBody {
|
|
69
|
+
requireAbyssAuthentication?: boolean;
|
|
70
|
+
requireEmailVerification?: boolean;
|
|
71
|
+
singleSubmissionPerUniqUser?: boolean;
|
|
72
|
+
password?: string | null;
|
|
73
|
+
discordWebhookUrl?: string | null;
|
|
74
|
+
webhookUrl?: string | null;
|
|
75
|
+
}
|
|
76
|
+
export interface IGetConfigurationFormAdminParams extends core.ParamsDictionary {
|
|
77
|
+
formId: string;
|
|
78
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { FormStatus } from '../../../enum';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
import * as core from 'express-serve-static-core';
|
|
4
|
+
export interface IUpdateFormParams {
|
|
5
|
+
formId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IUpdateFormBody {
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
content?: Record<string, any>;
|
|
12
|
+
status?: FormStatus;
|
|
13
|
+
startDate?: Date | null;
|
|
14
|
+
endDate?: Date | null;
|
|
15
|
+
}
|
|
16
|
+
export interface ILinkToAbyssProjectFormParams {
|
|
17
|
+
formId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ILinkToAbyssProjectFormBody {
|
|
20
|
+
abyssProjectId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ILinkToAbyssProjectApplicationFormParams {
|
|
23
|
+
formId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ILinkToAbyssProjectApplicationFormBody {
|
|
26
|
+
abyssProjectApplicationId: string | null;
|
|
27
|
+
}
|
|
28
|
+
export interface ICreateFormBody {
|
|
29
|
+
title: string;
|
|
30
|
+
description: string;
|
|
31
|
+
tags: string[];
|
|
32
|
+
content: Record<string, any>;
|
|
33
|
+
abyssSpotlightProjectId: string | null;
|
|
34
|
+
abyssProjectId: string | null;
|
|
35
|
+
abyssProjectApplicationId: string | null;
|
|
36
|
+
status: FormStatus;
|
|
37
|
+
startDate: Date | null;
|
|
38
|
+
endDate: Date | null;
|
|
39
|
+
}
|
|
40
|
+
export interface IGetFormParams extends core.ParamsDictionary {
|
|
41
|
+
formId: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IListByAbyssProjectIdFormParams extends core.ParamsDictionary {
|
|
44
|
+
abyssProjectId: string;
|
|
45
|
+
}
|
|
46
|
+
export interface IDeleteFormParams extends core.ParamsDictionary {
|
|
47
|
+
formId: string;
|
|
48
|
+
}
|
|
49
|
+
export type IPaginateFormQuery = {
|
|
50
|
+
title?: string;
|
|
51
|
+
tags?: string[];
|
|
52
|
+
status?: FormStatus[];
|
|
53
|
+
} & QueryPaginate;
|
|
54
|
+
export interface ITransferFormParams extends core.ParamsDictionary {
|
|
55
|
+
formId: string;
|
|
56
|
+
}
|
|
57
|
+
export interface ITransferFormBody {
|
|
58
|
+
userId: string;
|
|
59
|
+
}
|
|
60
|
+
export interface IUpdateConfigurationFormParams {
|
|
61
|
+
formId: string;
|
|
62
|
+
}
|
|
63
|
+
export interface IUpdateConfigurationFormBody {
|
|
64
|
+
requireAbyssAuthentication?: boolean;
|
|
65
|
+
requireEmailVerification?: boolean;
|
|
66
|
+
singleSubmissionPerUniqUser?: boolean;
|
|
67
|
+
maskFormContent?: boolean;
|
|
68
|
+
password?: string | null;
|
|
69
|
+
discordWebhookUrl?: string | null;
|
|
70
|
+
webhookUrl?: string | null;
|
|
71
|
+
}
|
|
72
|
+
export interface IGetConfigurationFormParams extends core.ParamsDictionary {
|
|
73
|
+
formId: string;
|
|
74
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FormStatus } from '../../../enum';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
import * as core from 'express-serve-static-core';
|
|
4
|
+
export interface IGetPublishedFormPublicParams extends core.ParamsDictionary {
|
|
5
|
+
publicAccessIdentifier: string;
|
|
6
|
+
}
|
|
7
|
+
export type IPaginatePublishedFormPublicQuery = {
|
|
8
|
+
title?: string;
|
|
9
|
+
tags?: string[];
|
|
10
|
+
userId?: string;
|
|
11
|
+
status?: FormStatus[];
|
|
12
|
+
} & QueryPaginate;
|
|
13
|
+
export interface ICheckCanStartSubmissionPublishedFormPublicParams extends core.ParamsDictionary {
|
|
14
|
+
publicAccessIdentifier: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ICheckCanStartSubmissionPublishedFormPublicQuery {
|
|
17
|
+
emailVerificationToken?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IStartSubmissionPublishedFormPublicParams extends core.ParamsDictionary {
|
|
20
|
+
publicAccessIdentifier: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IStartSubmissionPublishedFormPublicBody {
|
|
23
|
+
password?: string;
|
|
24
|
+
emailVerificationToken?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
import * as core from 'express-serve-static-core';
|
|
3
|
+
export interface IGetUserAdminParams extends core.ParamsDictionary {
|
|
4
|
+
userId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IResetApiKeyUserAdminParams extends core.ParamsDictionary {
|
|
7
|
+
userId: string;
|
|
8
|
+
}
|
|
9
|
+
export type IPaginateUserAdminQuery = QueryPaginate;
|
|
10
|
+
export interface IUpdateUserAdminParams extends core.ParamsDictionary {
|
|
11
|
+
userId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IUpdateUserAdminBody {
|
|
14
|
+
isAdmin?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IUser } from '../../models/user.model';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IActivateUserServiceAbyssAdminData {
|
|
4
|
+
user: IUser;
|
|
5
|
+
}
|
|
6
|
+
export type IActivateUserServiceAbyssAdminResponse = IResponse<IActivateUserServiceAbyssAdminData>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IResponse, BasePaginate, IFormDocument } from '../..';
|
|
2
|
+
export interface IGetFormDocumentAdminData {
|
|
3
|
+
formDocument: IFormDocument;
|
|
4
|
+
}
|
|
5
|
+
export type IGetFormDocumentAdminResponse = IResponse<IGetFormDocumentAdminData>;
|
|
6
|
+
export type IPaginateFormDocumentAdminResponse = IResponse<BasePaginate<IFormDocument>>;
|
|
7
|
+
export interface IDeleteFormDocumentAdminData {
|
|
8
|
+
}
|
|
9
|
+
export type IDeleteFormDocumentAdminResponse = IResponse<IDeleteFormDocumentAdminData>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IResponse, BasePaginate, IFormDocument } from '../..';
|
|
2
|
+
export interface IGetFormDocumentData {
|
|
3
|
+
formDocument: IFormDocument;
|
|
4
|
+
}
|
|
5
|
+
export type IGetFormDocumentResponse = IResponse<IGetFormDocumentData>;
|
|
6
|
+
export type IPaginateFormDocumentResponse = IResponse<BasePaginate<IFormDocument>>;
|
|
7
|
+
export interface IGetUploadPreSignedUrlFormDocumentData {
|
|
8
|
+
preSignedUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export type IGetUploadPreSignedUrlFormDocumentResponse = IResponse<IGetUploadPreSignedUrlFormDocumentData>;
|
|
11
|
+
export type IImportFromCloudFormDocumentData = Record<string, never>;
|
|
12
|
+
export type IImportFromCloudFormDocumentResponse = IResponse<IImportFromCloudFormDocumentData>;
|
|
13
|
+
export type IImportFromCollectionFormDocumentData = Record<string, never>;
|
|
14
|
+
export type IImportFromCollectionFormDocumentResponse = IResponse<IImportFromCollectionFormDocumentData>;
|
|
15
|
+
export interface IDeleteFormDocumentData {
|
|
16
|
+
}
|
|
17
|
+
export type IDeleteFormDocumentResponse = IResponse<IDeleteFormDocumentData>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BasePaginate, IForm, IFormConfiguration, IResponse } from '../..';
|
|
2
|
+
export interface IGetFormAdminData {
|
|
3
|
+
form: IForm;
|
|
4
|
+
}
|
|
5
|
+
export type IGetFormAdminResponse = IResponse<IGetFormAdminData>;
|
|
6
|
+
export type IPaginateFormAdminResponse = IResponse<BasePaginate<IForm>>;
|
|
7
|
+
export interface IUpdateFormAdminData {
|
|
8
|
+
form: IForm;
|
|
9
|
+
}
|
|
10
|
+
export type IUpdateFormAdminResponse = IResponse<IUpdateFormAdminData>;
|
|
11
|
+
export interface ICreateFormAdminData {
|
|
12
|
+
form: IForm;
|
|
13
|
+
}
|
|
14
|
+
export type ICreateFormAdminResponse = IResponse<ICreateFormAdminData>;
|
|
15
|
+
export interface IDeleteFormAdminData {
|
|
16
|
+
}
|
|
17
|
+
export type IDeleteFormAdminResponse = IResponse<IDeleteFormAdminData>;
|
|
18
|
+
export interface ILinkToAbyssProjectFormAdminData {
|
|
19
|
+
form: IForm;
|
|
20
|
+
}
|
|
21
|
+
export type ILinkToAbyssProjectFormAdminResponse = IResponse<ILinkToAbyssProjectFormAdminData>;
|
|
22
|
+
export interface ILinkToAbyssProjectApplicationFormAdminData {
|
|
23
|
+
form: IForm;
|
|
24
|
+
}
|
|
25
|
+
export type ILinkToAbyssProjectApplicationFormAdminResponse = IResponse<ILinkToAbyssProjectApplicationFormAdminData>;
|
|
26
|
+
export interface IListByAbyssProjectIdFormAdminData {
|
|
27
|
+
forms: IForm[];
|
|
28
|
+
}
|
|
29
|
+
export type IListByAbyssProjectIdFormAdminResponse = IResponse<IListByAbyssProjectIdFormAdminData>;
|
|
30
|
+
export interface ITransferFormAdminData {
|
|
31
|
+
form: IForm;
|
|
32
|
+
}
|
|
33
|
+
export type ITransferFormAdminResponse = IResponse<ITransferFormAdminData>;
|
|
34
|
+
export interface IUpdateConfigurationFormAdminData {
|
|
35
|
+
formConfiguration: IFormConfiguration;
|
|
36
|
+
}
|
|
37
|
+
export type IUpdateConfigurationFormAdminResponse = IResponse<IUpdateConfigurationFormAdminData>;
|
|
38
|
+
export interface IGetConfigurationFormAdminData {
|
|
39
|
+
formConfiguration: IFormConfiguration;
|
|
40
|
+
}
|
|
41
|
+
export type IGetConfigurationFormAdminResponse = IResponse<IGetConfigurationFormAdminData>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BasePaginate, IForm, IFormConfiguration, IResponse } from '../..';
|
|
2
|
+
export interface IGetFormData {
|
|
3
|
+
form: IForm;
|
|
4
|
+
}
|
|
5
|
+
export type IGetFormResponse = IResponse<IGetFormData>;
|
|
6
|
+
export type IPaginateFormResponse = IResponse<BasePaginate<IForm>>;
|
|
7
|
+
export interface IUpdateFormData {
|
|
8
|
+
form: IForm;
|
|
9
|
+
}
|
|
10
|
+
export type IUpdateFormResponse = IResponse<IUpdateFormData>;
|
|
11
|
+
export interface ICreateFormData {
|
|
12
|
+
form: IForm;
|
|
13
|
+
}
|
|
14
|
+
export type ICreateFormResponse = IResponse<ICreateFormData>;
|
|
15
|
+
export interface IDeleteFormData {
|
|
16
|
+
}
|
|
17
|
+
export type IDeleteFormResponse = IResponse<IDeleteFormData>;
|
|
18
|
+
export interface ILinkToAbyssProjectFormData {
|
|
19
|
+
form: IForm;
|
|
20
|
+
}
|
|
21
|
+
export type ILinkToAbyssProjectFormResponse = IResponse<ILinkToAbyssProjectFormData>;
|
|
22
|
+
export interface ILinkToAbyssProjectApplicationFormData {
|
|
23
|
+
form: IForm;
|
|
24
|
+
}
|
|
25
|
+
export type ILinkToAbyssProjectApplicationFormResponse = IResponse<ILinkToAbyssProjectFormData>;
|
|
26
|
+
export interface IListByAbyssProjectIdFormData {
|
|
27
|
+
forms: IForm[];
|
|
28
|
+
}
|
|
29
|
+
export type IListByAbyssProjectIdFormResponse = IResponse<IListByAbyssProjectIdFormData>;
|
|
30
|
+
export interface ITransferFormData {
|
|
31
|
+
form: IForm;
|
|
32
|
+
}
|
|
33
|
+
export type ITransferFormResponse = IResponse<ITransferFormData>;
|
|
34
|
+
export interface IUpdateConfigurationFormData {
|
|
35
|
+
formConfiguration: IFormConfiguration;
|
|
36
|
+
}
|
|
37
|
+
export type IUpdateConfigurationFormResponse = IResponse<IUpdateConfigurationFormData>;
|
|
38
|
+
export interface IGetConfigurationFormData {
|
|
39
|
+
formConfiguration: IFormConfiguration;
|
|
40
|
+
}
|
|
41
|
+
export type IGetConfigurationFormResponse = IResponse<IGetConfigurationFormData>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BasePaginate, IResponse } from '../..';
|
|
2
|
+
import { PublicFormDTO } from '../../dto/form.dto';
|
|
3
|
+
export interface IGetPublishedFormPublicData {
|
|
4
|
+
form: PublicFormDTO;
|
|
5
|
+
}
|
|
6
|
+
export type IGetPublishedFormPublicResponse = IResponse<IGetPublishedFormPublicData>;
|
|
7
|
+
export interface ICheckCanStartSubmissionPublishedFormPublicData {
|
|
8
|
+
form: PublicFormDTO;
|
|
9
|
+
}
|
|
10
|
+
export type ICheckCanStartSubmissionPublishedFormPublicResponse = IResponse<ICheckCanStartSubmissionPublishedFormPublicData>;
|
|
11
|
+
export interface IStartSubmissionPublishedFormPublicData {
|
|
12
|
+
form: PublicFormDTO;
|
|
13
|
+
}
|
|
14
|
+
export type IStartSubmissionPublishedFormPublicResponse = IResponse<IStartSubmissionPublishedFormPublicData>;
|
|
15
|
+
export type IPaginatePublishedFormPublicResponse = IResponse<BasePaginate<PublicFormDTO>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BasePaginate, IResponse, IUser } from '../..';
|
|
2
|
+
export interface IGetUserAdminData {
|
|
3
|
+
user: IUser;
|
|
4
|
+
}
|
|
5
|
+
export type IGetUserAdminResponse = IResponse<IGetUserAdminData>;
|
|
6
|
+
export type IPaginateUserAdminResponse = IResponse<BasePaginate<IUser>>;
|
|
7
|
+
export interface IUpdateUserAdminData {
|
|
8
|
+
user: IUser;
|
|
9
|
+
}
|
|
10
|
+
export type IUpdateUserAdminResponse = IResponse<IUpdateUserAdminData>;
|
|
11
|
+
export interface IResetApiKeyUserAdminData {
|
|
12
|
+
user: IUser;
|
|
13
|
+
}
|
|
14
|
+
export type IResetApiKeyUserAdminResponse = IResponse<IResetApiKeyUserAdminData>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IResponse, IUser } from '../..';
|
|
2
|
+
export interface IMeUserData {
|
|
3
|
+
user: IUser;
|
|
4
|
+
}
|
|
5
|
+
export type IMeUserResponse = IResponse<IMeUserData>;
|
|
6
|
+
export interface IResetApiKeyUserData {
|
|
7
|
+
user: IUser;
|
|
8
|
+
}
|
|
9
|
+
export type IResetApiKeyUserResponse = IResponse<IResetApiKeyUserData>;
|
|
10
|
+
export interface IUpdateUserData {
|
|
11
|
+
user: IUser;
|
|
12
|
+
}
|
|
13
|
+
export type IUpdateUserResponse = IResponse<IUpdateUserData>;
|