@abyss-project/form 1.1.0 → 2.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 +0 -1
- package/README.md +1 -1
- package/dist/api/form.admin.api.js.map +1 -1
- package/dist/api/form.api.d.ts +2 -1
- package/dist/api/form.api.js +7 -1
- package/dist/api/form.api.js.map +1 -1
- package/dist/api/user.admin.api.d.ts +1 -2
- package/dist/api/user.admin.api.js +1 -5
- package/dist/api/user.admin.api.js.map +1 -1
- package/dist/api/user.api.d.ts +1 -3
- package/dist/api/user.api.js +1 -9
- package/dist/api/user.api.js.map +1 -1
- package/dist/constants/form.constant.d.ts +3 -0
- package/dist/constants/form.constant.js +4 -1
- package/dist/constants/form.constant.js.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +18 -10
- package/dist/index.js.map +1 -1
- package/dist/types/interface/api/requests/form-document.request.d.ts +1 -0
- package/dist/types/interface/api/requests/form.admin.request.d.ts +2 -0
- package/dist/types/interface/api/requests/form.public.request.d.ts +1 -0
- package/dist/types/interface/api/requests/form.request.d.ts +5 -2
- package/dist/types/interface/api/requests/user.admin.request.d.ts +0 -3
- package/dist/types/interface/api/responses/form-document.response.d.ts +2 -4
- package/dist/types/interface/api/responses/form.public.response.d.ts +2 -4
- package/dist/types/interface/api/responses/form.response.d.ts +22 -1
- package/dist/types/interface/api/responses/user.admin.response.d.ts +0 -4
- package/dist/types/interface/api/responses/user.response.d.ts +0 -17
- package/dist/types/interface/dto/form.dto.d.ts +4 -0
- package/dist/types/interface/dto/index.d.ts +1 -0
- package/dist/types/interface/dto/index.js +1 -0
- package/dist/types/interface/dto/index.js.map +1 -1
- package/dist/types/interface/dto/upload-session.dto.d.ts +8 -0
- package/dist/types/interface/dto/upload-session.dto.js +3 -0
- package/dist/types/interface/dto/upload-session.dto.js.map +1 -0
- package/dist/types/interface/models/form-configuration.model.d.ts +2 -0
- package/dist/types/interface/models/user.model.d.ts +3 -1
- package/dist/utils/form-cap.utils.d.ts +4 -0
- package/dist/utils/form-cap.utils.js +25 -0
- package/dist/utils/form-cap.utils.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +14 -18
package/.eslintrc.js
CHANGED
|
@@ -17,7 +17,6 @@ module.exports = {
|
|
|
17
17
|
},
|
|
18
18
|
ignorePatterns: ['.eslintrc.js'],
|
|
19
19
|
rules: {
|
|
20
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
20
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
21
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
22
|
'@typescript-eslint/no-explicit-any': 'off',
|
package/README.md
CHANGED
|
@@ -30,4 +30,4 @@ Voir la [documentation produit](https://docs.abyss-project.fr/form) pour les gui
|
|
|
30
30
|
|
|
31
31
|
## Support
|
|
32
32
|
|
|
33
|
-
Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/
|
|
33
|
+
Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/account/tickets/create).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.admin.api.js","sourceRoot":"","sources":["../../src/api/form.admin.api.ts"],"names":[],"mappings":";;;AAAA,0BAgCY;AAEL,MAAM,YAAY,GAAG,KAAK,EAAE,MAA2B,EAAkC,EAAE;IAChG,OAAO,CAAC,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAAwB,cAAc,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACpG,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB;AAEK,MAAM,6BAA6B,GAAG,KAAK,EAChD,MAA4C,EACK,EAAE;IACnD,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAC3B,iCAAiC,MAAM,CAAC,cAA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AC,MAAM,SAAS,EACpC,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,qBAAqB,yBAUhC;AAEK,MAAM,2BAA2B,GAAG,KAAK,EAC9C,MAA0C,EAC1C,IAAsC,EACS,EAAE;IACjD,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,KAAK,CAC7B,cAAc,MAAM,CAAC,MAAM,gBAAgB,EAC3C,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,2BAA2B,+BAUtC"}
|
package/dist/api/form.api.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { IGetFormParams, IGetFormResponse, IUpdateFormParams, IUpdateFormResponse, IUpdateFormBody, IPaginateFormResponse, IPaginateFormQuery, ICreateFormResponse, ICreateFormBody, IDeleteFormResponse, IDeleteFormParams, IListByAbyssProjectIdFormParams, IListByAbyssProjectIdFormResponse, ILinkToAbyssProjectFormParams, ILinkToAbyssProjectFormBody, ILinkToAbyssProjectFormResponse, IUpdateConfigurationFormParams, IUpdateConfigurationFormBody, IUpdateConfigurationFormResponse, IGetConfigurationFormParams, IGetConfigurationFormResponse, ILinkPresentationFormParams, ILinkPresentationFormBody, ILinkPresentationFormResponse, IGetMainMetricsFormQuery, IGetMainMetricsFormResponse, IGetMetricsFormParams, IGetMetricsFormResponse, IGetMetricsFormQuery, ISharedWithMeFormResponse } from '..';
|
|
1
|
+
import { IGetFormParams, IGetFormResponse, IUpdateFormParams, IUpdateFormResponse, IUpdateFormBody, IPaginateFormResponse, IPaginateFormQuery, ICreateFormResponse, ICreateFormBody, IDeleteFormResponse, IDeleteFormParams, IListByAbyssProjectIdFormParams, IListByAbyssProjectIdFormResponse, ILinkToAbyssProjectFormParams, ILinkToAbyssProjectFormBody, ILinkToAbyssProjectFormResponse, IUpdateConfigurationFormParams, IUpdateConfigurationFormBody, IUpdateConfigurationFormResponse, IGetConfigurationFormParams, IGetConfigurationFormResponse, ILinkPresentationFormParams, ILinkPresentationFormBody, ILinkPresentationFormResponse, IGetMainMetricsFormQuery, IGetMainMetricsFormResponse, IGetMetricsFormParams, IGetMetricsFormResponse, IGetMetricsFormQuery, ISharedWithMeFormResponse, IFacetsFormQuery, IFacetsFormResponse } from '..';
|
|
2
2
|
export declare const getForm: (params: IGetFormParams) => Promise<IGetFormResponse>;
|
|
3
3
|
export declare const getMetricsForm: (params: IGetMetricsFormParams, query: IGetMetricsFormQuery) => Promise<IGetMetricsFormResponse>;
|
|
4
4
|
export declare const listByAbyssProjectIdForm: (params: IListByAbyssProjectIdFormParams) => Promise<IListByAbyssProjectIdFormResponse>;
|
|
5
5
|
export declare const deleteForm: (params: IDeleteFormParams) => Promise<IDeleteFormResponse>;
|
|
6
6
|
export declare const paginateForm: (query: IPaginateFormQuery) => Promise<IPaginateFormResponse>;
|
|
7
|
+
export declare const facetsForm: (query: IFacetsFormQuery) => Promise<IFacetsFormResponse>;
|
|
7
8
|
export declare const updateForm: (params: IUpdateFormParams, body: IUpdateFormBody) => Promise<IUpdateFormResponse>;
|
|
8
9
|
export declare const linkToAbyssProjectForm: (params: ILinkToAbyssProjectFormParams, body: ILinkToAbyssProjectFormBody) => Promise<ILinkToAbyssProjectFormResponse>;
|
|
9
10
|
export declare const createForm: (body: ICreateFormBody) => Promise<ICreateFormResponse>;
|
package/dist/api/form.api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sharedWithMeForm = exports.getMainMetricsForm = exports.linkPresentationForm = exports.getConfigurationForm = exports.updateConfigurationForm = exports.createForm = exports.linkToAbyssProjectForm = exports.updateForm = exports.paginateForm = exports.deleteForm = exports.listByAbyssProjectIdForm = exports.getMetricsForm = exports.getForm = void 0;
|
|
3
|
+
exports.sharedWithMeForm = exports.getMainMetricsForm = exports.linkPresentationForm = exports.getConfigurationForm = exports.updateConfigurationForm = exports.createForm = exports.linkToAbyssProjectForm = exports.updateForm = exports.facetsForm = exports.paginateForm = exports.deleteForm = exports.listByAbyssProjectIdForm = exports.getMetricsForm = exports.getForm = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getForm = async (params) => {
|
|
6
6
|
return (await __1.AbyssFormCore.axios.get(`form/${params.formId}`)).data;
|
|
@@ -26,6 +26,12 @@ const paginateForm = async (query) => {
|
|
|
26
26
|
})).data;
|
|
27
27
|
};
|
|
28
28
|
exports.paginateForm = paginateForm;
|
|
29
|
+
const facetsForm = async (query) => {
|
|
30
|
+
return (await __1.AbyssFormCore.axios.get(`form/facets`, {
|
|
31
|
+
params: query,
|
|
32
|
+
})).data;
|
|
33
|
+
};
|
|
34
|
+
exports.facetsForm = facetsForm;
|
|
29
35
|
const updateForm = async (params, body) => {
|
|
30
36
|
return (await __1.AbyssFormCore.axios.put(`form/${params.formId}`, body)).data;
|
|
31
37
|
};
|
package/dist/api/form.api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.api.js","sourceRoot":"","sources":["../../src/api/form.api.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"form.api.js","sourceRoot":"","sources":["../../src/api/form.api.ts"],"names":[],"mappings":";;;AAAA,0BAkCY;AAEL,MAAM,OAAO,GAAG,KAAK,EAAE,MAAsB,EAA6B,EAAE;IACjF,OAAO,CAAC,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAAmB,QAAQ,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACzF,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB;AAEK,MAAM,cAAc,GAAG,KAAK,EACjC,MAA6B,EAC7B,KAA2B,EACO,EAAE;IACpC,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAA0B,QAAQ,MAAM,CAAC,MAAM,UAAU,EAAE;QACtF,MAAM,EAAE,KAAK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,KAA+B,EACO,EAAE;IACxC,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAA8B,mBAAmB,EAAE;QAC9E,MAAM,EAAE,KAAK;KACd,CAAC,CACH,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,kBAAkB,sBAQ7B;AAEK,MAAM,gBAAgB,GAAG,KAAK,IAAwC,EAAE;IAC7E,OAAO,CAAC,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAA4B,qBAAqB,CAAC,CAAC,CAAC,IAAI,CAAC;AAChG,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IGetUserAdminParams, IGetUserAdminResponse, IUpdateUserAdminParams, IUpdateUserAdminResponse, IUpdateUserAdminBody, IPaginateUserAdminResponse, IPaginateUserAdminQuery
|
|
1
|
+
import { IGetUserAdminParams, IGetUserAdminResponse, IUpdateUserAdminParams, IUpdateUserAdminResponse, IUpdateUserAdminBody, IPaginateUserAdminResponse, IPaginateUserAdminQuery } from '..';
|
|
2
2
|
export declare const getUserAdmin: (params: IGetUserAdminParams) => Promise<IGetUserAdminResponse>;
|
|
3
|
-
export declare const resetApiKeyUserAdmin: (params: IResetApiKeyUserAdminParams) => Promise<IResetApiKeyUserAdminResponse>;
|
|
4
3
|
export declare const paginateUserAdmin: (query: IPaginateUserAdminQuery) => Promise<IPaginateUserAdminResponse>;
|
|
5
4
|
export declare const updateUserAdmin: (params: IUpdateUserAdminParams, body: IUpdateUserAdminBody) => Promise<IUpdateUserAdminResponse>;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateUserAdmin = exports.paginateUserAdmin = exports.
|
|
3
|
+
exports.updateUserAdmin = exports.paginateUserAdmin = exports.getUserAdmin = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getUserAdmin = async (params) => {
|
|
6
6
|
return (await __1.AbyssFormCore.axios.get(`user/admin/${params.userId}`)).data;
|
|
7
7
|
};
|
|
8
8
|
exports.getUserAdmin = getUserAdmin;
|
|
9
|
-
const resetApiKeyUserAdmin = async (params) => {
|
|
10
|
-
return (await __1.AbyssFormCore.axios.post(`user/admin/${params.userId}`)).data;
|
|
11
|
-
};
|
|
12
|
-
exports.resetApiKeyUserAdmin = resetApiKeyUserAdmin;
|
|
13
9
|
const paginateUserAdmin = async (query) => {
|
|
14
10
|
return (await __1.AbyssFormCore.axios.get(`user/admin/paginate`, {
|
|
15
11
|
params: query,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.admin.api.js","sourceRoot":"","sources":["../../src/api/user.admin.api.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"user.admin.api.js","sourceRoot":"","sources":["../../src/api/user.admin.api.ts"],"names":[],"mappings":";;;AAAA,0BASY;AAEL,MAAM,YAAY,GAAG,KAAK,EAAE,MAA2B,EAAkC,EAAE;IAChG,OAAO,CAAC,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAAwB,cAAc,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACpG,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB;AAEK,MAAM,iBAAiB,GAAG,KAAK,EACpC,KAA8B,EACO,EAAE;IACvC,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAA6B,qBAAqB,EAAE;QAC/E,MAAM,EAAE,KAAK;KACd,CAAC,CACH,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B;AAEK,MAAM,eAAe,GAAG,KAAK,EAClC,MAA8B,EAC9B,IAA0B,EACS,EAAE;IACrC,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAA2B,cAAc,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,CAC7F,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAPW,QAAA,eAAe,mBAO1B"}
|
package/dist/api/user.api.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IMeUserResponse, IUpdateUserBody, IUpdateUserResponse
|
|
1
|
+
import { IMeUserResponse, IUpdateUserBody, IUpdateUserResponse } from '..';
|
|
2
2
|
export declare const meUser: () => Promise<IMeUserResponse>;
|
|
3
3
|
export declare const updateUser: (body: IUpdateUserBody) => Promise<IUpdateUserResponse>;
|
|
4
|
-
export declare const resetApiKeyUser: () => Promise<IResetApiKeyUserResponse>;
|
|
5
|
-
export declare const getDetailsUser: () => Promise<IGetDetailsUserResponse>;
|
package/dist/api/user.api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.updateUser = exports.meUser = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const meUser = async () => {
|
|
6
6
|
return (await __1.AbyssFormCore.axios.get(`user/me`)).data;
|
|
@@ -10,12 +10,4 @@ const updateUser = async (body) => {
|
|
|
10
10
|
return (await __1.AbyssFormCore.axios.put(`user/me`, body)).data;
|
|
11
11
|
};
|
|
12
12
|
exports.updateUser = updateUser;
|
|
13
|
-
const resetApiKeyUser = async () => {
|
|
14
|
-
return (await __1.AbyssFormCore.axios.post(`user/me/reset-api-key`)).data;
|
|
15
|
-
};
|
|
16
|
-
exports.resetApiKeyUser = resetApiKeyUser;
|
|
17
|
-
const getDetailsUser = async () => {
|
|
18
|
-
return (await __1.AbyssFormCore.axios.get(`user/me/details`)).data;
|
|
19
|
-
};
|
|
20
|
-
exports.getDetailsUser = getDetailsUser;
|
|
21
13
|
//# sourceMappingURL=user.api.js.map
|
package/dist/api/user.api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.api.js","sourceRoot":"","sources":["../../src/api/user.api.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"user.api.js","sourceRoot":"","sources":["../../src/api/user.api.ts"],"names":[],"mappings":";;;AAAA,0BAA0F;AAEnF,MAAM,MAAM,GAAG,KAAK,IAA8B,EAAE;IACzD,OAAO,CAAC,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAAkB,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1E,CAAC,CAAC;AAFW,QAAA,MAAM,UAEjB;AAEK,MAAM,UAAU,GAAG,KAAK,EAAE,IAAqB,EAAgC,EAAE;IACtF,OAAO,CAAC,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAAsB,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AACpF,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export declare const MAXIMUM_TAGS_PER_FORM = 10;
|
|
2
2
|
export declare const MAXIMUM_TAGS_LENGTH = 50;
|
|
3
3
|
export declare const MAX_SUBMISSION_PER_UNIQ_USER = 500;
|
|
4
|
+
export declare const MAX_SUBMISSION_PER_DAY = 100000;
|
|
5
|
+
export declare const MAX_SUBMISSION_PER_FORM = 1000000;
|
|
4
6
|
export declare const DELAY_BETWEEN_SUBMISSION_IN_MINUTES = 10000;
|
|
5
7
|
export declare const MAX_PAGE_PER_FORM = 10;
|
|
6
8
|
export declare const MAX_QUESTIONS_PER_PAGE = 20;
|
|
7
9
|
export declare const MAX_ANSWERS_PER_QUESTION = 20;
|
|
8
10
|
export declare const MAXIMUM_DOCUMENT_PER_SUBMISSION = 10;
|
|
9
11
|
export declare const MAXIMUM_DOCUMENT_PER_FORM = 50;
|
|
12
|
+
export declare const MAXIMUM_DOCUMENT_SIZE_MO = 100;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAXIMUM_DOCUMENT_PER_FORM = exports.MAXIMUM_DOCUMENT_PER_SUBMISSION = exports.MAX_ANSWERS_PER_QUESTION = exports.MAX_QUESTIONS_PER_PAGE = exports.MAX_PAGE_PER_FORM = exports.DELAY_BETWEEN_SUBMISSION_IN_MINUTES = exports.MAX_SUBMISSION_PER_UNIQ_USER = exports.MAXIMUM_TAGS_LENGTH = exports.MAXIMUM_TAGS_PER_FORM = void 0;
|
|
3
|
+
exports.MAXIMUM_DOCUMENT_SIZE_MO = exports.MAXIMUM_DOCUMENT_PER_FORM = exports.MAXIMUM_DOCUMENT_PER_SUBMISSION = exports.MAX_ANSWERS_PER_QUESTION = exports.MAX_QUESTIONS_PER_PAGE = exports.MAX_PAGE_PER_FORM = exports.DELAY_BETWEEN_SUBMISSION_IN_MINUTES = exports.MAX_SUBMISSION_PER_FORM = exports.MAX_SUBMISSION_PER_DAY = exports.MAX_SUBMISSION_PER_UNIQ_USER = exports.MAXIMUM_TAGS_LENGTH = exports.MAXIMUM_TAGS_PER_FORM = void 0;
|
|
4
4
|
exports.MAXIMUM_TAGS_PER_FORM = 10;
|
|
5
5
|
exports.MAXIMUM_TAGS_LENGTH = 50;
|
|
6
6
|
exports.MAX_SUBMISSION_PER_UNIQ_USER = 500;
|
|
7
|
+
exports.MAX_SUBMISSION_PER_DAY = 100000;
|
|
8
|
+
exports.MAX_SUBMISSION_PER_FORM = 1000000;
|
|
7
9
|
exports.DELAY_BETWEEN_SUBMISSION_IN_MINUTES = 10000;
|
|
8
10
|
exports.MAX_PAGE_PER_FORM = 10;
|
|
9
11
|
exports.MAX_QUESTIONS_PER_PAGE = 20;
|
|
10
12
|
exports.MAX_ANSWERS_PER_QUESTION = 20;
|
|
11
13
|
exports.MAXIMUM_DOCUMENT_PER_SUBMISSION = 10;
|
|
12
14
|
exports.MAXIMUM_DOCUMENT_PER_FORM = 50;
|
|
15
|
+
exports.MAXIMUM_DOCUMENT_SIZE_MO = 100;
|
|
13
16
|
//# sourceMappingURL=form.constant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.constant.js","sourceRoot":"","sources":["../../src/constants/form.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAC3B,QAAA,mBAAmB,GAAG,EAAE,CAAC;AAEzB,QAAA,4BAA4B,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"form.constant.js","sourceRoot":"","sources":["../../src/constants/form.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAC3B,QAAA,mBAAmB,GAAG,EAAE,CAAC;AAEzB,QAAA,4BAA4B,GAAG,GAAG,CAAC;AAMnC,QAAA,sBAAsB,GAAG,MAAM,CAAC;AAMhC,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAClC,QAAA,mCAAmC,GAAG,KAAK,CAAC;AAE5C,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,sBAAsB,GAAG,EAAE,CAAC;AAC5B,QAAA,wBAAwB,GAAG,EAAE,CAAC;AAC9B,QAAA,+BAA+B,GAAG,EAAE,CAAC;AAiBrC,QAAA,yBAAyB,GAAG,EAAE,CAAC;AAU/B,QAAA,wBAAwB,GAAG,GAAG,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ type AbyssFormCoreSDK = {
|
|
|
43
43
|
listByAbyssProjectId: typeof formApi.listByAbyssProjectIdForm;
|
|
44
44
|
delete: typeof formApi.deleteForm;
|
|
45
45
|
paginate: typeof formApi.paginateForm;
|
|
46
|
+
facets: typeof formApi.facetsForm;
|
|
46
47
|
sharedWithMe: typeof formApi.sharedWithMeForm;
|
|
47
48
|
update: typeof formApi.updateForm;
|
|
48
49
|
linkToAbyssProject: typeof formApi.linkToAbyssProjectForm;
|
|
@@ -148,11 +149,8 @@ type AbyssFormCoreSDK = {
|
|
|
148
149
|
user: {
|
|
149
150
|
me: typeof userApi.meUser;
|
|
150
151
|
update: typeof userApi.updateUser;
|
|
151
|
-
resetApiKey: typeof userApi.resetApiKeyUser;
|
|
152
|
-
getDetails: typeof userApi.getDetailsUser;
|
|
153
152
|
admin: {
|
|
154
153
|
get: typeof userAdminApi.getUserAdmin;
|
|
155
|
-
resetApiKey: typeof userAdminApi.resetApiKeyUserAdmin;
|
|
156
154
|
paginate: typeof userAdminApi.paginateUserAdmin;
|
|
157
155
|
update: typeof userAdminApi.updateUserAdmin;
|
|
158
156
|
};
|
package/dist/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
37
|
};
|
|
@@ -80,6 +90,7 @@ class AbyssFormCore {
|
|
|
80
90
|
listByAbyssProjectId: formApi.listByAbyssProjectIdForm,
|
|
81
91
|
delete: formApi.deleteForm,
|
|
82
92
|
paginate: formApi.paginateForm,
|
|
93
|
+
facets: formApi.facetsForm,
|
|
83
94
|
sharedWithMe: formApi.sharedWithMeForm,
|
|
84
95
|
update: formApi.updateForm,
|
|
85
96
|
linkToAbyssProject: formApi.linkToAbyssProjectForm,
|
|
@@ -185,11 +196,8 @@ class AbyssFormCore {
|
|
|
185
196
|
const userSDK = {
|
|
186
197
|
me: userApi.meUser,
|
|
187
198
|
update: userApi.updateUser,
|
|
188
|
-
resetApiKey: userApi.resetApiKeyUser,
|
|
189
|
-
getDetails: userApi.getDetailsUser,
|
|
190
199
|
admin: {
|
|
191
200
|
get: userAdminApi.getUserAdmin,
|
|
192
|
-
resetApiKey: userAdminApi.resetApiKeyUserAdmin,
|
|
193
201
|
paginate: userAdminApi.paginateUserAdmin,
|
|
194
202
|
update: userAdminApi.updateUserAdmin,
|
|
195
203
|
},
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,2DAA+F;AAC/F,qEAAuD;AACvD,wDAA0C;AAC1C,mEAAqD;AACrD,qEAAuD;AACvD,yEAA2D;AAC3D,oFAAsE;AACtE,uEAAyD;AACzD,kFAAoE;AACpE,sFAAwE;AACxE,iGAAmF;AACnF,4EAA8D;AAC9D,uFAAyE;AACzE,6EAA+D;AAC/D,wFAA0E;AAC1E,wDAA0C;AAC1C,mEAAqD;AACrD,8DAAgD;AAChD,uEAAyD;AAEzD,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AAC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AM,CAAC,MAAM,EAAE,CAAC;QACnF,CAAC;QAED,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;YACtB,EAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,0BAAkB,CAAC,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC3F,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,SAAS;QACrB,OAAO,EAAa,CAAC,MAAM,CAAC;IAC9B,CAAC;;AArNH,sCAsNC;;AArNgB,oBAAM,GAAG;IACtB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE,EAAE;IACrB,aAAa,EAAE,EAAE;IACjB,UAAU,EAAE,EAAE;IACd,OAAO,EAAE,gBAAgB;CAC1B,AAPoB,CAOnB;AACK,mBAAK,GAAG,eAAK,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,EAAI,CAAC,MAAM,CAAC,OAAO;IAC5B,eAAe,EAAE,IAAI;CACtB,CAAC,AAHU,CAGT;AAEY,kBAAI,GAA4B,IAAI,AAAhC,CAAiC"}
|
|
@@ -58,6 +58,8 @@ export interface IUpdateConfigurationFormAdminBody {
|
|
|
58
58
|
requireAbyssAuthentication?: boolean;
|
|
59
59
|
requireEmailVerification?: boolean;
|
|
60
60
|
maxSubmissionPerUniqUser?: number | null;
|
|
61
|
+
maxSubmissionPerDay?: number | null;
|
|
62
|
+
maxSubmissionPerForm?: number | null;
|
|
61
63
|
password?: string | null;
|
|
62
64
|
emailNotificationOnSubmission?: boolean;
|
|
63
65
|
delayBetweenSubmissionInMinutes?: number | null;
|
|
@@ -40,7 +40,7 @@ export interface IListByAbyssProjectIdFormParams {
|
|
|
40
40
|
export interface IDeleteFormParams {
|
|
41
41
|
formId: string;
|
|
42
42
|
}
|
|
43
|
-
export type
|
|
43
|
+
export type IFacetsFormQuery = {
|
|
44
44
|
title?: string;
|
|
45
45
|
tags?: string[];
|
|
46
46
|
status?: FormStatus[];
|
|
@@ -49,7 +49,8 @@ export type IPaginateFormQuery = {
|
|
|
49
49
|
scope?: ContentShareScope;
|
|
50
50
|
teamId?: string;
|
|
51
51
|
adminView?: boolean;
|
|
52
|
-
}
|
|
52
|
+
};
|
|
53
|
+
export type IPaginateFormQuery = IFacetsFormQuery & QueryPaginate;
|
|
53
54
|
export interface IUpdateConfigurationFormParams {
|
|
54
55
|
formId: string;
|
|
55
56
|
}
|
|
@@ -57,6 +58,8 @@ export interface IUpdateConfigurationFormBody {
|
|
|
57
58
|
requireAbyssAuthentication?: boolean;
|
|
58
59
|
requireEmailVerification?: boolean;
|
|
59
60
|
maxSubmissionPerUniqUser?: number | null;
|
|
61
|
+
maxSubmissionPerDay?: number | null;
|
|
62
|
+
maxSubmissionPerForm?: number | null;
|
|
60
63
|
password?: string | null;
|
|
61
64
|
emailNotificationOnSubmission?: boolean;
|
|
62
65
|
delayBetweenSubmissionInMinutes?: number | null;
|
|
@@ -2,9 +2,6 @@ import { QueryPaginate } from '..';
|
|
|
2
2
|
export interface IGetUserAdminParams {
|
|
3
3
|
userId: string;
|
|
4
4
|
}
|
|
5
|
-
export interface IResetApiKeyUserAdminParams {
|
|
6
|
-
userId: string;
|
|
7
|
-
}
|
|
8
5
|
export type IPaginateUserAdminQuery = QueryPaginate;
|
|
9
6
|
export interface IUpdateUserAdminParams {
|
|
10
7
|
userId: string;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { IResponse, BasePaginate, IFormDocument } from '../..';
|
|
1
|
+
import { IResponse, BasePaginate, IFormDocument, IUploadSession } from '../..';
|
|
2
2
|
export interface IGetFormDocumentData {
|
|
3
3
|
formDocument: IFormDocument;
|
|
4
4
|
}
|
|
5
5
|
export type IGetFormDocumentResponse = IResponse<IGetFormDocumentData>;
|
|
6
6
|
export type IPaginateFormDocumentResponse = IResponse<BasePaginate<IFormDocument>>;
|
|
7
|
-
export
|
|
8
|
-
preSignedUrl: string;
|
|
9
|
-
}
|
|
7
|
+
export type IGetUploadPreSignedUrlFormDocumentData = IUploadSession;
|
|
10
8
|
export type IGetUploadPreSignedUrlFormDocumentResponse = IResponse<IGetUploadPreSignedUrlFormDocumentData>;
|
|
11
9
|
export type IImportFromCloudFormDocumentData = Record<string, never>;
|
|
12
10
|
export type IImportFromCloudFormDocumentResponse = IResponse<IImportFromCloudFormDocumentData>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasePaginate, IFormCodeBlock, IFormDocument, IResponse } from '../..';
|
|
1
|
+
import { BasePaginate, IFormCodeBlock, IFormDocument, IResponse, IUploadSession } from '../..';
|
|
2
2
|
import { CannotStartSubmissionReason } from '../../../enum';
|
|
3
3
|
import { FormContentDTO, PublicFormDTO } from '../../dto/form.dto';
|
|
4
4
|
export interface IGetPublishedFormPublicData {
|
|
@@ -43,9 +43,7 @@ export type ICheckPasswordFormPublicResponse = IResponse<ICheckPasswordFormPubli
|
|
|
43
43
|
export interface ISendSubmissionPublishedFormPublicData {
|
|
44
44
|
}
|
|
45
45
|
export type ISendSubmissionPublishedFormPublicResponse = IResponse<ISendSubmissionPublishedFormPublicData>;
|
|
46
|
-
export
|
|
47
|
-
preSignedUrl: string;
|
|
48
|
-
}
|
|
46
|
+
export type IGetPreSignerUrlFormPublicData = IUploadSession;
|
|
49
47
|
export type IGetPreSignerUrlFormPublicResponse = IResponse<IGetPreSignerUrlFormPublicData>;
|
|
50
48
|
export type IImportFromCloudFormPublicData = {
|
|
51
49
|
formDocuments: IFormDocument[];
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { SharePermission } from '../../../enum';
|
|
1
|
+
import { FormStatus, SharePermission } from '../../../enum';
|
|
2
2
|
import { BasePaginate, IForm, IFormConfiguration, IResponse } from '../..';
|
|
3
|
+
export interface IQuotaUsage {
|
|
4
|
+
limit: number;
|
|
5
|
+
used: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IFormCapabilities {
|
|
8
|
+
allowSubmissionDocument: boolean;
|
|
9
|
+
submissionsPerMonth?: IQuotaUsage;
|
|
10
|
+
}
|
|
3
11
|
export interface IGetFormData {
|
|
4
12
|
form: IForm;
|
|
5
13
|
sharePermission?: SharePermission;
|
|
14
|
+
capabilities?: IFormCapabilities;
|
|
6
15
|
}
|
|
7
16
|
export type IGetFormResponse = IResponse<IGetFormData>;
|
|
8
17
|
export interface IPaginateFormItem extends IForm {
|
|
@@ -61,6 +70,18 @@ export interface IGetMainMetricsFormData {
|
|
|
61
70
|
}>;
|
|
62
71
|
}
|
|
63
72
|
export type IGetMainMetricsFormResponse = IResponse<IGetMainMetricsFormData>;
|
|
73
|
+
export interface IFacetsFormData {
|
|
74
|
+
tags: {
|
|
75
|
+
tag: string;
|
|
76
|
+
count: number;
|
|
77
|
+
}[];
|
|
78
|
+
statuses: {
|
|
79
|
+
status: FormStatus;
|
|
80
|
+
count: number;
|
|
81
|
+
}[];
|
|
82
|
+
countForms: number;
|
|
83
|
+
}
|
|
84
|
+
export type IFacetsFormResponse = IResponse<IFacetsFormData>;
|
|
64
85
|
export interface ISharedWithMeFormData {
|
|
65
86
|
forms: IForm[];
|
|
66
87
|
}
|
|
@@ -8,7 +8,3 @@ export interface IUpdateUserAdminData {
|
|
|
8
8
|
user: IUser;
|
|
9
9
|
}
|
|
10
10
|
export type IUpdateUserAdminResponse = IResponse<IUpdateUserAdminData>;
|
|
11
|
-
export interface IResetApiKeyUserAdminData {
|
|
12
|
-
user: IUser;
|
|
13
|
-
}
|
|
14
|
-
export type IResetApiKeyUserAdminResponse = IResponse<IResetApiKeyUserAdminData>;
|
|
@@ -3,24 +3,7 @@ export interface IMeUserData {
|
|
|
3
3
|
user: IUser;
|
|
4
4
|
}
|
|
5
5
|
export type IMeUserResponse = IResponse<IMeUserData>;
|
|
6
|
-
export interface IResetApiKeyUserData {
|
|
7
|
-
user: IUser;
|
|
8
|
-
}
|
|
9
|
-
export type IResetApiKeyUserResponse = IResponse<IResetApiKeyUserData>;
|
|
10
6
|
export interface IUpdateUserData {
|
|
11
7
|
user: IUser;
|
|
12
8
|
}
|
|
13
9
|
export type IUpdateUserResponse = IResponse<IUpdateUserData>;
|
|
14
|
-
export interface IGetDetailsUserData {
|
|
15
|
-
tags: {
|
|
16
|
-
tag: string;
|
|
17
|
-
count: number;
|
|
18
|
-
}[];
|
|
19
|
-
statuses: {
|
|
20
|
-
status: string;
|
|
21
|
-
count: number;
|
|
22
|
-
}[];
|
|
23
|
-
countForms: number;
|
|
24
|
-
countSubmissions: number;
|
|
25
|
-
}
|
|
26
|
-
export type IGetDetailsUserResponse = IResponse<IGetDetailsUserData>;
|
|
@@ -17,6 +17,8 @@ export interface FormDTO {
|
|
|
17
17
|
requireEmailVerification: boolean;
|
|
18
18
|
maskFormContent: boolean;
|
|
19
19
|
maxSubmissionPerUniqUser: number | null;
|
|
20
|
+
maxSubmissionPerDay: number | null;
|
|
21
|
+
maxSubmissionPerForm: number | null;
|
|
20
22
|
passwordProtection?: boolean;
|
|
21
23
|
delayBetweenSubmissionInMinutes: number | null;
|
|
22
24
|
emailNotificationOnSubmission: boolean;
|
|
@@ -42,6 +44,8 @@ export interface PublicFormDTO {
|
|
|
42
44
|
requireEmailVerification: boolean;
|
|
43
45
|
maskFormContent: boolean;
|
|
44
46
|
maxSubmissionPerUniqUser: number | null;
|
|
47
|
+
maxSubmissionPerDay: number | null;
|
|
48
|
+
maxSubmissionPerForm: number | null;
|
|
45
49
|
passwordProtection?: boolean;
|
|
46
50
|
delayBetweenSubmissionInMinutes: number | null;
|
|
47
51
|
} | null;
|
|
@@ -16,4 +16,5 @@ 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
|
+
__exportStar(require("./upload-session.dto"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,gDAA8B;AAC9B,uDAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-session.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/dto/upload-session.dto.ts"],"names":[],"mappings":""}
|
|
@@ -4,6 +4,8 @@ export interface IFormConfiguration {
|
|
|
4
4
|
requireAbyssAuthentication: boolean;
|
|
5
5
|
requireEmailVerification: boolean;
|
|
6
6
|
maxSubmissionPerUniqUser: number | null;
|
|
7
|
+
maxSubmissionPerDay: number | null;
|
|
8
|
+
maxSubmissionPerForm: number | null;
|
|
7
9
|
password: string | null;
|
|
8
10
|
emailNotificationOnSubmission: boolean;
|
|
9
11
|
delayBetweenSubmissionInMinutes: number | null;
|
|
@@ -2,7 +2,9 @@ import { IForm } from './form.model';
|
|
|
2
2
|
export interface IUser {
|
|
3
3
|
id?: string;
|
|
4
4
|
isAdmin: boolean;
|
|
5
|
-
|
|
5
|
+
personalApiKeyLookupHash?: string | null;
|
|
6
|
+
personalApiKeyRevokedAt?: Date | null;
|
|
7
|
+
accountDeletedAt?: Date | null;
|
|
6
8
|
updatedAt?: Date;
|
|
7
9
|
createdAt?: Date;
|
|
8
10
|
form?: IForm[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IQuotaUsage } from '../types';
|
|
2
|
+
export declare const ownerCap: (value: number | null | undefined) => number | null;
|
|
3
|
+
export declare const isUnlimitedQuota: (limit: number) => boolean;
|
|
4
|
+
export declare const quotaGauge: (quota: IQuotaUsage | null | undefined) => IQuotaUsage | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.quotaGauge = exports.isUnlimitedQuota = exports.ownerCap = void 0;
|
|
4
|
+
const ownerCap = (value) => typeof value === 'number' && Number.isFinite(value) && value > 0 ? value : null;
|
|
5
|
+
exports.ownerCap = ownerCap;
|
|
6
|
+
const isUnlimitedQuota = (limit) => limit < 0;
|
|
7
|
+
exports.isUnlimitedQuota = isUnlimitedQuota;
|
|
8
|
+
const quotaGauge = (quota) => {
|
|
9
|
+
if (!quota) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
const { limit, used } = quota;
|
|
13
|
+
if (typeof limit !== 'number' || !Number.isFinite(limit)) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
if ((0, exports.isUnlimitedQuota)(limit) || limit <= 0) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
if (typeof used !== 'number' || !Number.isFinite(used) || used < 0) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return { limit, used };
|
|
23
|
+
};
|
|
24
|
+
exports.quotaGauge = quotaGauge;
|
|
25
|
+
//# sourceMappingURL=form-cap.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-cap.utils.js","sourceRoot":"","sources":["../../src/utils/form-cap.utils.ts"],"names":[],"mappings":";;;AAqBO,MAAM,QAAQ,GAAG,CAAC,KAAgC,EAAiB,EAAE,CAC1E,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AADrE,QAAA,QAAQ,YAC6D;AAM3E,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAW,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC;AAAzD,QAAA,gBAAgB,oBAAyC;AAuB/D,MAAM,UAAU,GAAG,CAAC,KAAqC,EAAsB,EAAE;IACtF,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAK9B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,IAAA,wBAAgB,EAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,CAAC,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC,CAAC;AAnBW,QAAA,UAAU,cAmBrB"}
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -16,4 +16,5 @@ 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
|
+
__exportStar(require("./form-cap.utils"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B;AAC7B,mDAAiC"}
|
package/package.json
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/form",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.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
|
-
},
|
|
19
7
|
"keywords": [],
|
|
20
8
|
"author": "scylla",
|
|
21
9
|
"license": "ISC",
|
|
@@ -37,9 +25,9 @@
|
|
|
37
25
|
"@types/lodash": "^4.17.16",
|
|
38
26
|
"@types/node": "^20.11.0",
|
|
39
27
|
"@types/uuid": "^9.0.0",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "
|
|
41
|
-
"@typescript-eslint/parser": "
|
|
42
|
-
"eslint": "^
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "8.71.0",
|
|
29
|
+
"@typescript-eslint/parser": "8.71.0",
|
|
30
|
+
"eslint": "^8.57.1",
|
|
43
31
|
"eslint-config-prettier": "^8.3.0",
|
|
44
32
|
"eslint-config-standard": "^16.0.3",
|
|
45
33
|
"eslint-plugin-filenames-simple": "^0.7.0",
|
|
@@ -49,7 +37,15 @@
|
|
|
49
37
|
"eslint-plugin-promise": "^5.1.0",
|
|
50
38
|
"prettier": "2.3.1",
|
|
51
39
|
"sequelize-cli": "^6.2.0",
|
|
52
|
-
"typescript": "5.
|
|
40
|
+
"typescript": "5.9.3",
|
|
53
41
|
"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"
|
|
54
50
|
}
|
|
55
|
-
}
|
|
51
|
+
}
|