@abyss-project/form 1.2.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 +32 -33
- 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.api.d.ts +1 -2
- package/dist/api/user.api.js +1 -5
- package/dist/api/user.api.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -8
- package/dist/index.js.map +1 -1
- package/dist/types/interface/api/requests/form.request.d.ts +3 -2
- package/dist/types/interface/api/responses/form.response.d.ts +13 -1
- package/dist/types/interface/api/responses/user.response.d.ts +0 -13
- package/package.json +5 -5
- package/tsconfig.json +35 -35
package/.eslintrc.js
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: 'tsconfig.json',
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
},
|
|
8
|
-
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
-
extends: [
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'plugin:prettier/recommended',
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
jest: true,
|
|
17
|
-
},
|
|
18
|
-
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
-
rules: {
|
|
20
|
-
'@typescript-eslint/
|
|
21
|
-
'@typescript-eslint/explicit-
|
|
22
|
-
'@typescript-eslint/explicit-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
overrides: [],
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'plugin:prettier/recommended',
|
|
12
|
+
],
|
|
13
|
+
root: true,
|
|
14
|
+
env: {
|
|
15
|
+
node: true,
|
|
16
|
+
jest: true,
|
|
17
|
+
},
|
|
18
|
+
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
21
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
22
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
23
|
+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
24
|
+
'filenames-simple/naming-convention': [
|
|
25
|
+
'error',
|
|
26
|
+
{
|
|
27
|
+
// Use custom regexp to match migration file
|
|
28
|
+
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
overrides: [],
|
|
34
33
|
};
|
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
|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B,GAAG,KAAK,EACvC,MAAmC,EACK,EAAE;IAC1C,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAC3B,QAAQ,MAAM,CAAC,MAAM,gBAAgB,CACtC,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,oBAAoB,wBAQ/B;AAEK,MAAM,oBAAoB,GAAG,KAAK,EACvC,MAAmC,EACnC,IAA+B,EACS,EAAE;IAC1C,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,IAAI,CAC5B,QAAQ,MAAM,CAAC,MAAM,oBAAoB,EACzC,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,oBAAoB,wBAU/B;AAEK,MAAM,kBAAkB,GAAG,KAAK,EACrC,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"}
|
package/dist/api/user.api.d.ts
CHANGED
|
@@ -1,4 +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 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,8 +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 getDetailsUser = async () => {
|
|
14
|
-
return (await __1.AbyssFormCore.axios.get(`user/me/details`)).data;
|
|
15
|
-
};
|
|
16
|
-
exports.getDetailsUser = getDetailsUser;
|
|
17
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"}
|
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,7 +149,6 @@ type AbyssFormCoreSDK = {
|
|
|
148
149
|
user: {
|
|
149
150
|
me: typeof userApi.meUser;
|
|
150
151
|
update: typeof userApi.updateUser;
|
|
151
|
-
getDetails: typeof userApi.getDetailsUser;
|
|
152
152
|
admin: {
|
|
153
153
|
get: typeof userAdminApi.getUserAdmin;
|
|
154
154
|
paginate: typeof userAdminApi.paginateUserAdmin;
|
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,7 +196,6 @@ class AbyssFormCore {
|
|
|
185
196
|
const userSDK = {
|
|
186
197
|
me: userApi.meUser,
|
|
187
198
|
update: userApi.updateUser,
|
|
188
|
-
getDetails: userApi.getDetailsUser,
|
|
189
199
|
admin: {
|
|
190
200
|
get: userAdminApi.getUserAdmin,
|
|
191
201
|
paginate: userAdminApi.paginateUserAdmin,
|
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,8D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C,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,sBAAc,CAAC,GAAG,GAAG,MAAM,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"}
|
|
@@ -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
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SharePermission } from '../../../enum';
|
|
1
|
+
import { FormStatus, SharePermission } from '../../../enum';
|
|
2
2
|
import { BasePaginate, IForm, IFormConfiguration, IResponse } from '../..';
|
|
3
3
|
export interface IQuotaUsage {
|
|
4
4
|
limit: number;
|
|
@@ -70,6 +70,18 @@ export interface IGetMainMetricsFormData {
|
|
|
70
70
|
}>;
|
|
71
71
|
}
|
|
72
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>;
|
|
73
85
|
export interface ISharedWithMeFormData {
|
|
74
86
|
forms: IForm[];
|
|
75
87
|
}
|
|
@@ -7,16 +7,3 @@ export interface IUpdateUserData {
|
|
|
7
7
|
user: IUser;
|
|
8
8
|
}
|
|
9
9
|
export type IUpdateUserResponse = IResponse<IUpdateUserData>;
|
|
10
|
-
export interface IGetDetailsUserData {
|
|
11
|
-
tags: {
|
|
12
|
-
tag: string;
|
|
13
|
-
count: number;
|
|
14
|
-
}[];
|
|
15
|
-
statuses: {
|
|
16
|
-
status: string;
|
|
17
|
-
count: number;
|
|
18
|
-
}[];
|
|
19
|
-
countForms: number;
|
|
20
|
-
countSubmissions: number;
|
|
21
|
-
}
|
|
22
|
-
export type IGetDetailsUserResponse = IResponse<IGetDetailsUserData>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@types/lodash": "^4.17.16",
|
|
26
26
|
"@types/node": "^20.11.0",
|
|
27
27
|
"@types/uuid": "^9.0.0",
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "
|
|
29
|
-
"@typescript-eslint/parser": "
|
|
30
|
-
"eslint": "^
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "8.71.0",
|
|
29
|
+
"@typescript-eslint/parser": "8.71.0",
|
|
30
|
+
"eslint": "^8.57.1",
|
|
31
31
|
"eslint-config-prettier": "^8.3.0",
|
|
32
32
|
"eslint-config-standard": "^16.0.3",
|
|
33
33
|
"eslint-plugin-filenames-simple": "^0.7.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"eslint-plugin-promise": "^5.1.0",
|
|
38
38
|
"prettier": "2.3.1",
|
|
39
39
|
"sequelize-cli": "^6.2.0",
|
|
40
|
-
"typescript": "5.
|
|
40
|
+
"typescript": "5.9.3",
|
|
41
41
|
"tsc-watch": "^4.6.2"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
package/tsconfig.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"incremental": false,
|
|
4
|
-
"target": "es2021",
|
|
5
|
-
"lib": [
|
|
6
|
-
"dom",
|
|
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
|
|
28
|
-
},
|
|
29
|
-
"include": [
|
|
30
|
-
"./src"
|
|
31
|
-
],
|
|
32
|
-
"exclude": [
|
|
33
|
-
"./dist/**/*"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": false,
|
|
4
|
+
"target": "es2021",
|
|
5
|
+
"lib": [
|
|
6
|
+
"dom",
|
|
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
|
|
28
|
+
},
|
|
29
|
+
"include": [
|
|
30
|
+
"./src"
|
|
31
|
+
],
|
|
32
|
+
"exclude": [
|
|
33
|
+
"./dist/**/*"
|
|
34
|
+
]
|
|
35
|
+
}
|