@abyss-project/form 1.0.0 → 1.0.1
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.
|
@@ -7,7 +7,7 @@ const getFormAdmin = async (params) => {
|
|
|
7
7
|
};
|
|
8
8
|
exports.getFormAdmin = getFormAdmin;
|
|
9
9
|
const listByAbyssProjectIdFormAdmin = async (params) => {
|
|
10
|
-
return (await __1.AbyssFormCore.axios.get(`form/admin/list-abyss-project/${params.
|
|
10
|
+
return (await __1.AbyssFormCore.axios.get(`form/admin/list-abyss-project/${params.abyssProjectId}`)).data;
|
|
11
11
|
};
|
|
12
12
|
exports.listByAbyssProjectIdFormAdmin = listByAbyssProjectIdFormAdmin;
|
|
13
13
|
const deleteFormAdmin = async (params) => {
|
package/dist/api/form.api.js
CHANGED
|
@@ -7,7 +7,7 @@ const getForm = async (params) => {
|
|
|
7
7
|
};
|
|
8
8
|
exports.getForm = getForm;
|
|
9
9
|
const listByAbyssProjectIdForm = async (params) => {
|
|
10
|
-
return (await __1.AbyssFormCore.axios.get(`form/list-abyss-project/${params.
|
|
10
|
+
return (await __1.AbyssFormCore.axios.get(`form/list-abyss-project/${params.abyssProjectId}`)).data;
|
|
11
11
|
};
|
|
12
12
|
exports.listByAbyssProjectIdForm = listByAbyssProjectIdForm;
|
|
13
13
|
const deleteForm = async (params) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FormStatus } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '..';
|
|
3
3
|
import * as core from 'express-serve-static-core';
|
|
4
|
+
import { FormContentDTO } from '../../dto';
|
|
4
5
|
export interface IUpdateFormAdminParams {
|
|
5
6
|
formId: string;
|
|
6
7
|
}
|
|
@@ -8,7 +9,7 @@ export interface IUpdateFormAdminBody {
|
|
|
8
9
|
title?: string;
|
|
9
10
|
description?: string;
|
|
10
11
|
tags?: string[];
|
|
11
|
-
content?:
|
|
12
|
+
content?: FormContentDTO;
|
|
12
13
|
status?: FormStatus;
|
|
13
14
|
startDate?: Date | null;
|
|
14
15
|
endDate?: Date | null;
|
|
@@ -32,7 +33,7 @@ export interface ICreateFormAdminBody {
|
|
|
32
33
|
title: string;
|
|
33
34
|
description: string;
|
|
34
35
|
tags: string[];
|
|
35
|
-
content:
|
|
36
|
+
content: FormContentDTO;
|
|
36
37
|
abyssSpotlightProjectId: string | null;
|
|
37
38
|
abyssProjectId: string | null;
|
|
38
39
|
abyssProjectApplicationId: string | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FormStatus } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '..';
|
|
3
3
|
import * as core from 'express-serve-static-core';
|
|
4
|
+
import { FormContentDTO } from '../../dto';
|
|
4
5
|
export interface IUpdateFormParams {
|
|
5
6
|
formId: string;
|
|
6
7
|
}
|
|
@@ -8,7 +9,7 @@ export interface IUpdateFormBody {
|
|
|
8
9
|
title?: string;
|
|
9
10
|
description?: string;
|
|
10
11
|
tags?: string[];
|
|
11
|
-
content?:
|
|
12
|
+
content?: FormContentDTO;
|
|
12
13
|
status?: FormStatus;
|
|
13
14
|
startDate?: Date | null;
|
|
14
15
|
endDate?: Date | null;
|
|
@@ -29,7 +30,7 @@ export interface ICreateFormBody {
|
|
|
29
30
|
title: string;
|
|
30
31
|
description: string;
|
|
31
32
|
tags: string[];
|
|
32
|
-
content:
|
|
33
|
+
content: FormContentDTO;
|
|
33
34
|
abyssSpotlightProjectId: string | null;
|
|
34
35
|
abyssProjectId: string | null;
|
|
35
36
|
abyssProjectApplicationId: string | null;
|