@abyss-project/form 1.0.12 → 1.1.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/README.md +33 -2
- package/dist/api/abyss.admin.api.js +1 -0
- package/dist/api/abyss.admin.api.js.map +1 -0
- package/dist/api/form-code-block.admin.api.js +1 -0
- package/dist/api/form-code-block.admin.api.js.map +1 -0
- package/dist/api/form-code-block.api.js +1 -0
- package/dist/api/form-code-block.api.js.map +1 -0
- package/dist/api/form-document.admin.api.js +1 -0
- package/dist/api/form-document.admin.api.js.map +1 -0
- package/dist/api/form-document.api.d.ts +1 -2
- package/dist/api/form-document.api.js +2 -5
- package/dist/api/form-document.api.js.map +1 -0
- package/dist/api/form-submission.admin.api.js +1 -0
- package/dist/api/form-submission.admin.api.js.map +1 -0
- package/dist/api/form-submission.api.js +1 -0
- package/dist/api/form-submission.api.js.map +1 -0
- package/dist/api/form-webhook-history.admin.api.js +1 -0
- package/dist/api/form-webhook-history.admin.api.js.map +1 -0
- package/dist/api/form-webhook-history.api.js +1 -0
- package/dist/api/form-webhook-history.api.js.map +1 -0
- package/dist/api/form-webhook.admin.api.js +1 -0
- package/dist/api/form-webhook.admin.api.js.map +1 -0
- package/dist/api/form-webhook.api.js +1 -0
- package/dist/api/form-webhook.api.js.map +1 -0
- package/dist/api/form.admin.api.d.ts +4 -4
- package/dist/api/form.admin.api.js +12 -11
- package/dist/api/form.admin.api.js.map +1 -0
- package/dist/api/form.api.d.ts +2 -3
- package/dist/api/form.api.js +6 -9
- package/dist/api/form.api.js.map +1 -0
- package/dist/api/form.public.api.js +1 -0
- package/dist/api/form.public.api.js.map +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/monitor.api.js +1 -0
- package/dist/api/monitor.api.js.map +1 -0
- package/dist/api/report.admin.api.js +1 -0
- package/dist/api/report.admin.api.js.map +1 -0
- package/dist/api/user.admin.api.js +1 -0
- package/dist/api/user.admin.api.js.map +1 -0
- package/dist/api/user.api.js +1 -0
- package/dist/api/user.api.js.map +1 -0
- package/dist/constants/form.constant.d.ts +1 -0
- package/dist/constants/form.constant.js +3 -1
- package/dist/constants/form.constant.js.map +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/index.d.ts +6 -8
- package/dist/index.js +9 -13
- package/dist/index.js.map +1 -0
- package/dist/types/enum/api-error.enum.d.ts +3 -1
- package/dist/types/enum/api-error.enum.js +3 -0
- package/dist/types/enum/api-error.enum.js.map +1 -0
- package/dist/types/enum/cannot-start-submission-reason.enum.js +1 -0
- package/dist/types/enum/cannot-start-submission-reason.enum.js.map +1 -0
- package/dist/types/enum/form-content-question-type.enum.js +1 -0
- package/dist/types/enum/form-content-question-type.enum.js.map +1 -0
- package/dist/types/enum/form-document-source.enum.js +1 -0
- package/dist/types/enum/form-document-source.enum.js.map +1 -0
- package/dist/types/enum/form-status.enum.js +1 -0
- package/dist/types/enum/form-status.enum.js.map +1 -0
- package/dist/types/enum/form-webhook-type.enum.js +1 -0
- package/dist/types/enum/form-webhook-type.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +1 -0
- package/dist/types/enum/index.js +2 -0
- package/dist/types/enum/index.js.map +1 -0
- package/dist/types/enum/share-permission.enum.d.ts +11 -0
- package/dist/types/enum/share-permission.enum.js +17 -0
- package/dist/types/enum/share-permission.enum.js.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/interface/api/index.js +1 -0
- package/dist/types/interface/api/index.js.map +1 -0
- package/dist/types/interface/api/requests/abyss.admin.request.js +1 -0
- package/dist/types/interface/api/requests/abyss.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-code-block.admin.request.js +1 -0
- package/dist/types/interface/api/requests/form-code-block.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-code-block.request.js +1 -0
- package/dist/types/interface/api/requests/form-code-block.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-document.admin.request.js +1 -0
- package/dist/types/interface/api/requests/form-document.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-document.request.d.ts +0 -10
- package/dist/types/interface/api/requests/form-document.request.js +1 -0
- package/dist/types/interface/api/requests/form-document.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-submission.admin.request.js +1 -0
- package/dist/types/interface/api/requests/form-submission.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-submission.request.js +1 -0
- package/dist/types/interface/api/requests/form-submission.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-webhook-history.admin.request.js +1 -0
- package/dist/types/interface/api/requests/form-webhook-history.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-webhook-history.request.js +1 -0
- package/dist/types/interface/api/requests/form-webhook-history.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-webhook.admin.request.js +1 -0
- package/dist/types/interface/api/requests/form-webhook.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/form-webhook.request.js +1 -0
- package/dist/types/interface/api/requests/form-webhook.request.js.map +1 -0
- package/dist/types/interface/api/requests/form.admin.request.d.ts +20 -19
- package/dist/types/interface/api/requests/form.admin.request.js +1 -0
- package/dist/types/interface/api/requests/form.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/form.public.request.js +1 -0
- package/dist/types/interface/api/requests/form.public.request.js.map +1 -0
- package/dist/types/interface/api/requests/form.request.d.ts +8 -16
- package/dist/types/interface/api/requests/form.request.js +1 -0
- package/dist/types/interface/api/requests/form.request.js.map +1 -0
- package/dist/types/interface/api/requests/report.admin.request.js +1 -0
- package/dist/types/interface/api/requests/report.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/storage.admin.request.js +1 -0
- package/dist/types/interface/api/requests/storage.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/user.admin.request.js +1 -0
- package/dist/types/interface/api/requests/user.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/user.request.js +1 -0
- package/dist/types/interface/api/requests/user.request.js.map +1 -0
- package/dist/types/interface/api/responses/abyss.admin.response.js +1 -0
- package/dist/types/interface/api/responses/abyss.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-code-block.admin.response.js +1 -0
- package/dist/types/interface/api/responses/form-code-block.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-code-block.response.js +1 -0
- package/dist/types/interface/api/responses/form-code-block.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-document.admin.response.js +1 -0
- package/dist/types/interface/api/responses/form-document.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-document.response.d.ts +0 -2
- package/dist/types/interface/api/responses/form-document.response.js +1 -0
- package/dist/types/interface/api/responses/form-document.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-submission.admin.response.js +1 -0
- package/dist/types/interface/api/responses/form-submission.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-submission.response.js +1 -0
- package/dist/types/interface/api/responses/form-submission.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-webhook-history.admin.response.js +1 -0
- package/dist/types/interface/api/responses/form-webhook-history.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-webhook-history.response.js +1 -0
- package/dist/types/interface/api/responses/form-webhook-history.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-webhook.admin.response.js +1 -0
- package/dist/types/interface/api/responses/form-webhook.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/form-webhook.response.js +1 -0
- package/dist/types/interface/api/responses/form-webhook.response.js.map +1 -0
- package/dist/types/interface/api/responses/form.admin.response.d.ts +8 -8
- package/dist/types/interface/api/responses/form.admin.response.js +1 -0
- package/dist/types/interface/api/responses/form.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/form.public.response.js +1 -0
- package/dist/types/interface/api/responses/form.public.response.js.map +1 -0
- package/dist/types/interface/api/responses/form.response.d.ts +13 -9
- package/dist/types/interface/api/responses/form.response.js +1 -0
- package/dist/types/interface/api/responses/form.response.js.map +1 -0
- package/dist/types/interface/api/responses/monitor.response.js +1 -0
- package/dist/types/interface/api/responses/monitor.response.js.map +1 -0
- package/dist/types/interface/api/responses/report.admin.response.js +1 -0
- package/dist/types/interface/api/responses/report.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/storage.admin.response.js +1 -0
- package/dist/types/interface/api/responses/storage.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/user.admin.response.js +1 -0
- package/dist/types/interface/api/responses/user.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/user.response.js +1 -0
- package/dist/types/interface/api/responses/user.response.js.map +1 -0
- package/dist/types/interface/api/type-message/api-error.js +1 -0
- package/dist/types/interface/api/type-message/api-error.js.map +1 -0
- package/dist/types/interface/api/type-message/base-order.js +1 -0
- package/dist/types/interface/api/type-message/base-order.js.map +1 -0
- package/dist/types/interface/api/type-message/base-paginate.js +1 -0
- package/dist/types/interface/api/type-message/base-paginate.js.map +1 -0
- package/dist/types/interface/api/type-message/response.js +1 -0
- package/dist/types/interface/api/type-message/response.js.map +1 -0
- package/dist/types/interface/dto/form.dto.js +1 -0
- package/dist/types/interface/dto/form.dto.js.map +1 -0
- package/dist/types/interface/dto/index.js +1 -0
- package/dist/types/interface/dto/index.js.map +1 -0
- package/dist/types/interface/dto/webhook.dto.d.ts +0 -1
- package/dist/types/interface/dto/webhook.dto.js +1 -0
- package/dist/types/interface/dto/webhook.dto.js.map +1 -0
- package/dist/types/interface/index.js +1 -0
- package/dist/types/interface/index.js.map +1 -0
- package/dist/types/interface/models/form-code-block.model.js +1 -0
- package/dist/types/interface/models/form-code-block.model.js.map +1 -0
- package/dist/types/interface/models/form-configuration.model.js +1 -0
- package/dist/types/interface/models/form-configuration.model.js.map +1 -0
- package/dist/types/interface/models/form-document.model.js +1 -0
- package/dist/types/interface/models/form-document.model.js.map +1 -0
- package/dist/types/interface/models/form-submission.model.js +1 -0
- package/dist/types/interface/models/form-submission.model.js.map +1 -0
- package/dist/types/interface/models/form-webhook-history.model.js +1 -0
- package/dist/types/interface/models/form-webhook-history.model.js.map +1 -0
- package/dist/types/interface/models/form-webhook.model.js +1 -0
- package/dist/types/interface/models/form-webhook.model.js.map +1 -0
- package/dist/types/interface/models/form.model.d.ts +4 -3
- package/dist/types/interface/models/form.model.js +1 -0
- package/dist/types/interface/models/form.model.js.map +1 -0
- package/dist/types/interface/models/user.model.js +1 -0
- package/dist/types/interface/models/user.model.js.map +1 -0
- package/dist/utils/error.utils.js +1 -0
- package/dist/utils/error.utils.js.map +1 -0
- package/dist/utils/form.utils.js +3 -3
- package/dist/utils/form.utils.js.map +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +16 -12
- package/tsconfig.json +29 -99
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.public.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/form.public.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import { SharePermission } from '../../../enum';
|
|
1
2
|
import { BasePaginate, IForm, IFormConfiguration, IResponse } from '../..';
|
|
2
3
|
export interface IGetFormData {
|
|
3
4
|
form: IForm;
|
|
5
|
+
sharePermission?: SharePermission;
|
|
4
6
|
}
|
|
5
7
|
export type IGetFormResponse = IResponse<IGetFormData>;
|
|
6
|
-
export
|
|
8
|
+
export interface IPaginateFormItem extends IForm {
|
|
9
|
+
sharePermission?: SharePermission;
|
|
10
|
+
}
|
|
11
|
+
export type IPaginateFormResponse = IResponse<BasePaginate<IPaginateFormItem>>;
|
|
7
12
|
export interface IUpdateFormData {
|
|
8
13
|
form: IForm;
|
|
14
|
+
sharePermission?: SharePermission;
|
|
9
15
|
}
|
|
10
16
|
export type IUpdateFormResponse = IResponse<IUpdateFormData>;
|
|
11
17
|
export interface ICreateFormData {
|
|
@@ -17,20 +23,13 @@ export interface IDeleteFormData {
|
|
|
17
23
|
export type IDeleteFormResponse = IResponse<IDeleteFormData>;
|
|
18
24
|
export interface ILinkToAbyssProjectFormData {
|
|
19
25
|
form: IForm;
|
|
26
|
+
sharePermission?: SharePermission;
|
|
20
27
|
}
|
|
21
28
|
export type ILinkToAbyssProjectFormResponse = IResponse<ILinkToAbyssProjectFormData>;
|
|
22
|
-
export interface ILinkToAbyssProjectApplicationFormData {
|
|
23
|
-
form: IForm;
|
|
24
|
-
}
|
|
25
|
-
export type ILinkToAbyssProjectApplicationFormResponse = IResponse<ILinkToAbyssProjectFormData>;
|
|
26
29
|
export interface IListByAbyssProjectIdFormData {
|
|
27
30
|
forms: IForm[];
|
|
28
31
|
}
|
|
29
32
|
export type IListByAbyssProjectIdFormResponse = IResponse<IListByAbyssProjectIdFormData>;
|
|
30
|
-
export interface ITransferFormData {
|
|
31
|
-
form: IForm;
|
|
32
|
-
}
|
|
33
|
-
export type ITransferFormResponse = IResponse<ITransferFormData>;
|
|
34
33
|
export interface IUpdateConfigurationFormData {
|
|
35
34
|
formConfiguration: IFormConfiguration;
|
|
36
35
|
}
|
|
@@ -41,6 +40,7 @@ export interface IGetConfigurationFormData {
|
|
|
41
40
|
export type IGetConfigurationFormResponse = IResponse<IGetConfigurationFormData>;
|
|
42
41
|
export interface ILinkPresentationFormData {
|
|
43
42
|
form: IForm;
|
|
43
|
+
sharePermission?: SharePermission;
|
|
44
44
|
}
|
|
45
45
|
export type ILinkPresentationFormResponse = IResponse<ILinkPresentationFormData>;
|
|
46
46
|
export interface IGetMainMetricsFormData {
|
|
@@ -61,6 +61,10 @@ export interface IGetMainMetricsFormData {
|
|
|
61
61
|
}>;
|
|
62
62
|
}
|
|
63
63
|
export type IGetMainMetricsFormResponse = IResponse<IGetMainMetricsFormData>;
|
|
64
|
+
export interface ISharedWithMeFormData {
|
|
65
|
+
forms: IForm[];
|
|
66
|
+
}
|
|
67
|
+
export type ISharedWithMeFormResponse = IResponse<ISharedWithMeFormData>;
|
|
64
68
|
export interface IGetMetricsFormData {
|
|
65
69
|
submissionPerDay: {
|
|
66
70
|
date: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/form.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/monitor.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.admin.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/report.admin.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.admin.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/storage.admin.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.admin.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/user.admin.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/user.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-error.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/type-message/api-error.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-order.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/type-message/base-order.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-paginate.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/type-message/base-paginate.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/type-message/response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/form.dto.ts"],"names":[],"mappings":""}
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./form.dto"), exports);
|
|
18
18
|
__exportStar(require("./webhook.dto"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,gDAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/webhook.dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interface/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC;AACpC,oEAAkD;AAClD,iEAA+C;AAC/C,+DAA6C;AAC7C,8DAA4C;AAC5C,sEAAoD;AACpD,iEAA+C;AAG/C,wCAAsB;AACtB,wCAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-code-block.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/form-code-block.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-configuration.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/form-configuration.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-document.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/form-document.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-submission.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/form-submission.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-webhook-history.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/form-webhook-history.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-webhook.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/form-webhook.model.ts"],"names":[],"mappings":""}
|
|
@@ -5,7 +5,6 @@ import { IFormConfiguration } from './form-configuration.model';
|
|
|
5
5
|
import { IFormDocument } from './form-document.model';
|
|
6
6
|
import { IFormSubmission } from './form-submission.model';
|
|
7
7
|
import { IFormWebhook } from './form-webhook.model';
|
|
8
|
-
import { IUser } from './user.model';
|
|
9
8
|
export interface IForm {
|
|
10
9
|
id?: string;
|
|
11
10
|
title: string;
|
|
@@ -14,15 +13,17 @@ export interface IForm {
|
|
|
14
13
|
content: FormContentDTO;
|
|
15
14
|
abyssSpotlightProjectId: string | null;
|
|
16
15
|
abyssProjectId: string | null;
|
|
17
|
-
abyssProjectApplicationId: string | null;
|
|
18
16
|
status: FormStatus;
|
|
19
17
|
startDate: Date | null;
|
|
20
18
|
endDate: Date | null;
|
|
21
19
|
lastSubscriptionLimitNotificationDate: Date | null;
|
|
22
20
|
userId: string | null;
|
|
21
|
+
organizationId: string | null;
|
|
22
|
+
createdByUserId?: string;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
requireAuth: boolean;
|
|
23
25
|
updatedAt?: Date;
|
|
24
26
|
createdAt?: Date;
|
|
25
|
-
user?: IUser | null;
|
|
26
27
|
formConfiguration?: IFormConfiguration | null;
|
|
27
28
|
formDocuments?: IFormDocument[];
|
|
28
29
|
formWebhooks?: IFormWebhook[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/form.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/user.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.utils.js","sourceRoot":"","sources":["../../src/utils/error.utils.ts"],"names":[],"mappings":";;;AAIA,MAAa,gBAAiB,SAAQ,KAAK;IAKzC,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,YAAY,MAAmB;QAC7B,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAC1B,CAAC;CACF;AAlBD,4CAkBC;AAEM,MAAM,WAAW,GAAG,CAAC,KAA0B,EAAE,OAAqB,EAAS,EAAE;IACtF,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAC;AALW,QAAA,WAAW,eAKtB"}
|
package/dist/utils/form.utils.js
CHANGED
|
@@ -23,12 +23,11 @@ const formContentPageMapper = (formContentPage, allQuestions) => {
|
|
|
23
23
|
};
|
|
24
24
|
exports.formContentPageMapper = formContentPageMapper;
|
|
25
25
|
const formContentQuestionMapper = (question, allQuestions) => {
|
|
26
|
-
var _a;
|
|
27
26
|
const { id, ask, description, isRequired, allowFileUpload, formDocumentIds, formCodeBlockIds, displayCondition, } = question;
|
|
28
27
|
const cleanedDisplayCondition = {
|
|
29
28
|
...displayCondition,
|
|
30
|
-
shouldDisplay:
|
|
31
|
-
conditions:
|
|
29
|
+
shouldDisplay: displayCondition?.shouldDisplay || false,
|
|
30
|
+
conditions: displayCondition?.conditions?.map((condition) => {
|
|
32
31
|
return {
|
|
33
32
|
operator: condition.operator,
|
|
34
33
|
filters: (0, lodash_1.compact)(condition.filters.map((filter) => {
|
|
@@ -251,3 +250,4 @@ const computeFiler = (question, responseQuestion, filter) => {
|
|
|
251
250
|
}
|
|
252
251
|
return false;
|
|
253
252
|
};
|
|
253
|
+
//# sourceMappingURL=form.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.utils.js","sourceRoot":"","sources":["../../src/utils/form.utils.ts"],"names":[],"mappings":";;;AAAA,oCASkB;AAClB,mCAAiC;AAE1B,MAAM,iBAAiB,GAAG,CAAC,WAA2B,EAAkB,EAAE;IAC/E,OAAO;QACL,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACpC,IAAA,6BAAqB,EACnB,IAAI,EACJ,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAC9C,CACF;QACD,eAAe,EAAE,WAAW,CAAC,eAAe,IAAI,IAAI;QACpD,gBAAgB,EAAE,WAAW,CAAC,gBAAgB,IAAI,IAAI;KACvD,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,iBAAiB,qBAW5B;AAEK,MAAM,qBAAqB,GAAG,CACnC,eAAmC,EACnC,YAAsC,EAClB,EAAE;IACtB,OAAO;QACL,EAAE,EAAE,eAAe,CAAC,EAAE;QACtB,KAAK,EAAE,eAAe,CAAC,KAAK;QAC5B,WAAW,EAAE,eAAe,CAAC,WAAW;QACxC,SAAS,EAAE,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CACpD,IAAA,yBAAiB,EAAC,QAAQ,EAAE,YAAY,CAAC,CAC1C;QACD,eAAe,EAAE,eAAe,CAAC,eAAe,IAAI,IAAI;QACxD,gBAAgB,EAAE,eAAe,CA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M,CAAC,KAAK,CAAC;YACvC,KAAK,KAAK;gBACR,OAAO,KAAK,KAAK,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;YACvC,KAAK,IAAI;gBACP,OAAO,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;YACrC,KAAK,IAAI;gBACP,OAAO,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;YACrC,KAAK,KAAK;gBACR,OAAO,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;YACtC,KAAK,KAAK;gBACR,OAAO,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;YACtC;gBACE,OAAO,KAAK,CAAC;QACjB,CAAC;IACH,CAAC;IACD,IAAI,QAAQ,CAAC,IAAI,KAAK,+BAAuB,CAAC,SAAS,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC3E,OAAO,CAAC,CAAC,CACP,gBAAgB,CAAC,QAAQ;YACzB,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,IAAI,EAAE,CAAC,CACnE,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./error.utils"), exports);
|
|
18
18
|
__exportStar(require("./form.utils"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/form",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Core package to interact with AbyssForm",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
13
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
14
|
+
"tsc": "tsc",
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"prepublish": "tsc",
|
|
17
|
+
"dev": "tsc --watch"
|
|
18
|
+
},
|
|
7
19
|
"keywords": [],
|
|
8
20
|
"author": "scylla",
|
|
9
21
|
"license": "ISC",
|
|
@@ -12,8 +24,8 @@
|
|
|
12
24
|
},
|
|
13
25
|
"homepage": "https://gitlab.com/abyss-group/abyss-form",
|
|
14
26
|
"dependencies": {
|
|
15
|
-
"axios": "^1.
|
|
16
|
-
"axios-retry": "^
|
|
27
|
+
"axios": "^1.6.0",
|
|
28
|
+
"axios-retry": "^4.5.0",
|
|
17
29
|
"core-js": "^3.37.1",
|
|
18
30
|
"dayjs": "^1.10.8",
|
|
19
31
|
"form-data": "^4.0.0",
|
|
@@ -39,13 +51,5 @@
|
|
|
39
51
|
"sequelize-cli": "^6.2.0",
|
|
40
52
|
"typescript": "5.4.2",
|
|
41
53
|
"tsc-watch": "^4.6.2"
|
|
42
|
-
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
45
|
-
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
46
|
-
"tsc": "tsc",
|
|
47
|
-
"build": "tsc",
|
|
48
|
-
"prepublish": "tsc",
|
|
49
|
-
"dev": "tsc-watch --onSuccess 'yalc push'"
|
|
50
54
|
}
|
|
51
|
-
}
|
|
55
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,105 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/* Projects */
|
|
6
|
-
"incremental": false /* Enable incremental compilation */,
|
|
7
|
-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
8
|
-
// "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
|
|
9
|
-
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */
|
|
10
|
-
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
11
|
-
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
|
-
|
|
13
|
-
/* Language and Environment */
|
|
14
|
-
"target": "es2019" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
3
|
+
"incremental": false,
|
|
4
|
+
"target": "es2021",
|
|
15
5
|
"lib": [
|
|
16
6
|
"dom",
|
|
17
|
-
"
|
|
18
|
-
]
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
39
|
-
"resolveJsonModule": true /* Enable importing .json files */,
|
|
40
|
-
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
|
|
41
|
-
|
|
42
|
-
/* JavaScript Support */
|
|
43
|
-
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */,
|
|
44
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
45
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
|
|
46
|
-
|
|
47
|
-
/* Emit */
|
|
48
|
-
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
|
|
49
|
-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
50
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
51
|
-
// "sourceMap": true /* Create source map files for emitted JavaScript files. */,
|
|
52
|
-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
|
|
53
|
-
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
|
54
|
-
"removeComments": true /* Disable emitting comments. */,
|
|
55
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
56
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
57
|
-
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */
|
|
58
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
59
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
60
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
61
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
62
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
63
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
64
|
-
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
65
|
-
// "smemoriesInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */
|
|
66
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
|
|
67
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
68
|
-
// "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
|
|
69
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
70
|
-
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
71
|
-
|
|
72
|
-
/* Interop Constraints */
|
|
73
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
74
|
-
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
|
|
75
|
-
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
|
|
76
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
77
|
-
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
78
|
-
|
|
79
|
-
/* Type Checking */
|
|
80
|
-
"strict": true /* Enable all strict type-checking options. */,
|
|
81
|
-
// "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied `any` type.. */,
|
|
82
|
-
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
|
|
83
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
84
|
-
// "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
|
|
85
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
86
|
-
// "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
|
|
87
|
-
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
|
|
88
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
89
|
-
// "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
|
|
90
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
|
|
91
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
92
|
-
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
93
|
-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
94
|
-
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
|
|
95
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
96
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
|
|
97
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
98
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
99
|
-
|
|
100
|
-
/* Completeness */
|
|
101
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
102
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
7
|
+
"es2021"
|
|
8
|
+
],
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"emitDecoratorMetadata": true,
|
|
11
|
+
"module": "commonjs",
|
|
12
|
+
"rootDir": "src",
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"declaration": true,
|
|
17
|
+
"sourceMap": true,
|
|
18
|
+
"outDir": "./dist",
|
|
19
|
+
"removeComments": true,
|
|
20
|
+
"allowSyntheticDefaultImports": true,
|
|
21
|
+
"esModuleInterop": true,
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"strict": true,
|
|
24
|
+
"strictNullChecks": true,
|
|
25
|
+
"strictFunctionTypes": true,
|
|
26
|
+
"strictPropertyInitialization": false,
|
|
27
|
+
"skipLibCheck": true
|
|
103
28
|
},
|
|
104
|
-
"
|
|
29
|
+
"include": [
|
|
30
|
+
"./src"
|
|
31
|
+
],
|
|
32
|
+
"exclude": [
|
|
33
|
+
"./dist/**/*"
|
|
34
|
+
]
|
|
105
35
|
}
|