wjx-api-sdk 0.1.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.
- package/LICENSE +21 -0
- package/README.md +300 -0
- package/dist/core/api-client.d.ts +13 -0
- package/dist/core/api-client.js +141 -0
- package/dist/core/api-client.js.map +1 -0
- package/dist/core/constants.d.ts +61 -0
- package/dist/core/constants.js +82 -0
- package/dist/core/constants.js.map +1 -0
- package/dist/core/types.d.ts +26 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/analytics/compute.d.ts +14 -0
- package/dist/modules/analytics/compute.js +205 -0
- package/dist/modules/analytics/compute.js.map +1 -0
- package/dist/modules/analytics/push-decode.d.ts +12 -0
- package/dist/modules/analytics/push-decode.js +46 -0
- package/dist/modules/analytics/push-decode.js.map +1 -0
- package/dist/modules/analytics/types.d.ts +61 -0
- package/dist/modules/analytics/types.js +3 -0
- package/dist/modules/analytics/types.js.map +1 -0
- package/dist/modules/contacts/client.d.ts +16 -0
- package/dist/modules/contacts/client.js +129 -0
- package/dist/modules/contacts/client.js.map +1 -0
- package/dist/modules/contacts/types.d.ts +62 -0
- package/dist/modules/contacts/types.js +2 -0
- package/dist/modules/contacts/types.js.map +1 -0
- package/dist/modules/multi-user/client.d.ts +7 -0
- package/dist/modules/multi-user/client.js +70 -0
- package/dist/modules/multi-user/client.js.map +1 -0
- package/dist/modules/multi-user/types.d.ts +31 -0
- package/dist/modules/multi-user/types.js +2 -0
- package/dist/modules/multi-user/types.js.map +1 -0
- package/dist/modules/response/client.d.ts +12 -0
- package/dist/modules/response/client.js +169 -0
- package/dist/modules/response/client.js.map +1 -0
- package/dist/modules/response/types.d.ts +83 -0
- package/dist/modules/response/types.js +2 -0
- package/dist/modules/response/types.js.map +1 -0
- package/dist/modules/sso/client.d.ts +22 -0
- package/dist/modules/sso/client.js +101 -0
- package/dist/modules/sso/client.js.map +1 -0
- package/dist/modules/sso/types.d.ts +75 -0
- package/dist/modules/sso/types.js +2 -0
- package/dist/modules/sso/types.js.map +1 -0
- package/dist/modules/survey/client.d.ts +13 -0
- package/dist/modules/survey/client.js +140 -0
- package/dist/modules/survey/client.js.map +1 -0
- package/dist/modules/survey/survey-to-text.d.ts +17 -0
- package/dist/modules/survey/survey-to-text.js +237 -0
- package/dist/modules/survey/survey-to-text.js.map +1 -0
- package/dist/modules/survey/text-to-survey.d.ts +9 -0
- package/dist/modules/survey/text-to-survey.js +175 -0
- package/dist/modules/survey/text-to-survey.js.map +1 -0
- package/dist/modules/survey/types.d.ts +170 -0
- package/dist/modules/survey/types.js +2 -0
- package/dist/modules/survey/types.js.map +1 -0
- package/dist/modules/user-system/client.d.ts +8 -0
- package/dist/modules/user-system/client.js +76 -0
- package/dist/modules/user-system/client.js.map +1 -0
- package/dist/modules/user-system/types.d.ts +41 -0
- package/dist/modules/user-system/types.js +2 -0
- package/dist/modules/user-system/types.js.map +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/modules/contacts/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WjxApiResponse, WjxCredentials, FetchLike } from "../../core/types.js";
|
|
2
|
+
import type { AddSubAccountInput, ModifySubAccountInput, DeleteSubAccountInput, RestoreSubAccountInput, QuerySubAccountsInput } from "./types.js";
|
|
3
|
+
export declare function addSubAccount<T = unknown>(input: AddSubAccountInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
4
|
+
export declare function modifySubAccount<T = unknown>(input: ModifySubAccountInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
5
|
+
export declare function deleteSubAccount<T = unknown>(input: DeleteSubAccountInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
6
|
+
export declare function restoreSubAccount<T = unknown>(input: RestoreSubAccountInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
7
|
+
export declare function querySubAccounts<T = unknown>(input: QuerySubAccountsInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Action } from "../../core/constants.js";
|
|
2
|
+
import { callWjxSubuserApi, getWjxCredentials } from "../../core/api-client.js";
|
|
3
|
+
export async function addSubAccount(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
4
|
+
const params = {
|
|
5
|
+
action: Action.ADD_SUB_ACCOUNT,
|
|
6
|
+
subuser: input.subuser,
|
|
7
|
+
};
|
|
8
|
+
if (input.password !== undefined)
|
|
9
|
+
params.password = input.password;
|
|
10
|
+
if (input.mobile !== undefined)
|
|
11
|
+
params.mobile = input.mobile;
|
|
12
|
+
if (input.email !== undefined)
|
|
13
|
+
params.email = input.email;
|
|
14
|
+
if (input.role !== undefined)
|
|
15
|
+
params.role = input.role;
|
|
16
|
+
if (input.group !== undefined)
|
|
17
|
+
params.group = input.group;
|
|
18
|
+
return callWjxSubuserApi(params, { credentials, fetchImpl, maxRetries: 0 });
|
|
19
|
+
}
|
|
20
|
+
export async function modifySubAccount(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
21
|
+
const params = {
|
|
22
|
+
action: Action.MODIFY_SUB_ACCOUNT,
|
|
23
|
+
subuser: input.subuser,
|
|
24
|
+
};
|
|
25
|
+
if (input.mobile !== undefined)
|
|
26
|
+
params.mobile = input.mobile;
|
|
27
|
+
if (input.email !== undefined)
|
|
28
|
+
params.email = input.email;
|
|
29
|
+
if (input.role !== undefined)
|
|
30
|
+
params.role = input.role;
|
|
31
|
+
if (input.group !== undefined)
|
|
32
|
+
params.group = input.group;
|
|
33
|
+
return callWjxSubuserApi(params, { credentials, fetchImpl, maxRetries: 0 });
|
|
34
|
+
}
|
|
35
|
+
export async function deleteSubAccount(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
36
|
+
return callWjxSubuserApi({
|
|
37
|
+
action: Action.DELETE_SUB_ACCOUNT,
|
|
38
|
+
subuser: input.subuser,
|
|
39
|
+
}, { credentials, fetchImpl, maxRetries: 0 });
|
|
40
|
+
}
|
|
41
|
+
export async function restoreSubAccount(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
42
|
+
const params = {
|
|
43
|
+
action: Action.RESTORE_SUB_ACCOUNT,
|
|
44
|
+
subuser: input.subuser,
|
|
45
|
+
};
|
|
46
|
+
if (input.mobile !== undefined)
|
|
47
|
+
params.mobile = input.mobile;
|
|
48
|
+
if (input.email !== undefined)
|
|
49
|
+
params.email = input.email;
|
|
50
|
+
return callWjxSubuserApi(params, { credentials, fetchImpl, maxRetries: 0 });
|
|
51
|
+
}
|
|
52
|
+
export async function querySubAccounts(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
53
|
+
const params = {
|
|
54
|
+
action: Action.QUERY_SUB_ACCOUNTS,
|
|
55
|
+
};
|
|
56
|
+
if (input.subuser !== undefined)
|
|
57
|
+
params.subuser = input.subuser;
|
|
58
|
+
if (input.name_like !== undefined)
|
|
59
|
+
params.name_like = input.name_like;
|
|
60
|
+
if (input.role !== undefined)
|
|
61
|
+
params.role = input.role;
|
|
62
|
+
if (input.group !== undefined)
|
|
63
|
+
params.group = input.group;
|
|
64
|
+
if (input.status !== undefined)
|
|
65
|
+
params.status = input.status;
|
|
66
|
+
if (input.mobile !== undefined)
|
|
67
|
+
params.mobile = input.mobile;
|
|
68
|
+
return callWjxSubuserApi(params, { credentials, fetchImpl });
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/modules/multi-user/client.ts"],"names":[],"mappings":"AACA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CAAC,KAAK,UAAU,gBAAgB,CACpC,KAA4B,EAC5B,cAA8B,iBAAiB,EAAE,EACjD,YAAuB,KAAK;IAE5B,MAAM,MAAM,GAA4B;QACtC,MAAM,EAAE,MAAM,CAAC,kBAAkB;KAClC,CAAC;IACF,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS;QAAE,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IAChE,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS;QAAE,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;IACtE,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS;QAAE,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACvD,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;QAAE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1D,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS;QAAE,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC7D,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS;QAAE,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAE7D,OAAO,iBAAiB,CAAI,MAAM,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface AddSubAccountInput {
|
|
2
|
+
subuser: string;
|
|
3
|
+
password?: string;
|
|
4
|
+
mobile?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
role?: number;
|
|
7
|
+
group?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ModifySubAccountInput {
|
|
10
|
+
subuser: string;
|
|
11
|
+
mobile?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
role?: number;
|
|
14
|
+
group?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface DeleteSubAccountInput {
|
|
17
|
+
subuser: string;
|
|
18
|
+
}
|
|
19
|
+
export interface RestoreSubAccountInput {
|
|
20
|
+
subuser: string;
|
|
21
|
+
mobile?: string;
|
|
22
|
+
email?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface QuerySubAccountsInput {
|
|
25
|
+
subuser?: string;
|
|
26
|
+
name_like?: string;
|
|
27
|
+
role?: number;
|
|
28
|
+
group?: number;
|
|
29
|
+
status?: boolean;
|
|
30
|
+
mobile?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/modules/multi-user/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WjxApiResponse, WjxCredentials, FetchLike } from "../../core/types.js";
|
|
2
|
+
import type { QueryResponsesInput, QueryResponsesRealtimeInput, DownloadResponsesInput, GetReportInput, SubmitResponseInput, GetFileLinksInput, GetWinnersInput, ModifyResponseInput, Get360ReportInput, ClearResponsesInput } from "./types.js";
|
|
3
|
+
export declare function queryResponses<T = unknown>(input: QueryResponsesInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
4
|
+
export declare function queryResponsesRealtime<T = unknown>(input: QueryResponsesRealtimeInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
5
|
+
export declare function downloadResponses<T = unknown>(input: DownloadResponsesInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
6
|
+
export declare function getReport<T = unknown>(input: GetReportInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
7
|
+
export declare function submitResponse<T = unknown>(input: SubmitResponseInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
8
|
+
export declare function getFileLinks<T = unknown>(input: GetFileLinksInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
9
|
+
export declare function getWinners<T = unknown>(input: GetWinnersInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
10
|
+
export declare function modifyResponse<T = unknown>(input: ModifyResponseInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
11
|
+
export declare function get360Report<T = unknown>(input: Get360ReportInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
12
|
+
export declare function clearResponses<T = unknown>(input: ClearResponsesInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { Action } from "../../core/constants.js";
|
|
2
|
+
import { callWjxApi, getWjxCredentials } from "../../core/api-client.js";
|
|
3
|
+
export async function queryResponses(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
4
|
+
const params = {
|
|
5
|
+
action: Action.QUERY_RESPONSES,
|
|
6
|
+
vid: input.vid,
|
|
7
|
+
};
|
|
8
|
+
if (input.valid !== undefined)
|
|
9
|
+
params.valid = input.valid;
|
|
10
|
+
if (input.page_index !== undefined)
|
|
11
|
+
params.page_index = input.page_index;
|
|
12
|
+
if (input.page_size !== undefined)
|
|
13
|
+
params.page_size = input.page_size;
|
|
14
|
+
if (input.sort !== undefined)
|
|
15
|
+
params.sort = input.sort;
|
|
16
|
+
if (input.min_index !== undefined)
|
|
17
|
+
params.min_index = input.min_index;
|
|
18
|
+
if (input.jid !== undefined)
|
|
19
|
+
params.jid = input.jid;
|
|
20
|
+
if (input.sojumpparm !== undefined)
|
|
21
|
+
params.sojumpparm = input.sojumpparm;
|
|
22
|
+
if (input.qid !== undefined)
|
|
23
|
+
params.qid = input.qid;
|
|
24
|
+
if (input.begin_time !== undefined)
|
|
25
|
+
params.begin_time = input.begin_time;
|
|
26
|
+
if (input.end_time !== undefined)
|
|
27
|
+
params.end_time = input.end_time;
|
|
28
|
+
if (input.file_view_expires !== undefined)
|
|
29
|
+
params.file_view_expires = input.file_view_expires;
|
|
30
|
+
if (input.query_note !== undefined)
|
|
31
|
+
params.query_note = input.query_note;
|
|
32
|
+
if (input.distinct_user !== undefined)
|
|
33
|
+
params.distinct_user = input.distinct_user;
|
|
34
|
+
if (input.distinct_sojumpparm !== undefined)
|
|
35
|
+
params.distinct_sojumpparm = input.distinct_sojumpparm;
|
|
36
|
+
if (input.conds !== undefined)
|
|
37
|
+
params.conds = input.conds;
|
|
38
|
+
return callWjxApi(params, { credentials, fetchImpl });
|
|
39
|
+
}
|
|
40
|
+
export async function queryResponsesRealtime(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
41
|
+
const params = {
|
|
42
|
+
action: Action.QUERY_RESPONSES_REALTIME,
|
|
43
|
+
vid: input.vid,
|
|
44
|
+
};
|
|
45
|
+
if (input.count !== undefined)
|
|
46
|
+
params.count = input.count;
|
|
47
|
+
return callWjxApi(params, { credentials, fetchImpl, maxRetries: 0 });
|
|
48
|
+
}
|
|
49
|
+
export async function downloadResponses(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
50
|
+
const params = {
|
|
51
|
+
action: Action.DOWNLOAD_RESPONSES,
|
|
52
|
+
vid: input.vid,
|
|
53
|
+
};
|
|
54
|
+
if (input.taskid !== undefined)
|
|
55
|
+
params.taskid = input.taskid;
|
|
56
|
+
if (input.valid !== undefined)
|
|
57
|
+
params.valid = input.valid;
|
|
58
|
+
if (input.query_count !== undefined)
|
|
59
|
+
params.query_count = input.query_count;
|
|
60
|
+
if (input.begin_time !== undefined)
|
|
61
|
+
params.begin_time = input.begin_time;
|
|
62
|
+
if (input.end_time !== undefined)
|
|
63
|
+
params.end_time = input.end_time;
|
|
64
|
+
if (input.min_index !== undefined)
|
|
65
|
+
params.min_index = input.min_index;
|
|
66
|
+
if (input.qid !== undefined)
|
|
67
|
+
params.qid = input.qid;
|
|
68
|
+
if (input.sort !== undefined)
|
|
69
|
+
params.sort = input.sort;
|
|
70
|
+
if (input.query_type !== undefined)
|
|
71
|
+
params.query_type = input.query_type;
|
|
72
|
+
if (input.suffix !== undefined)
|
|
73
|
+
params.suffix = input.suffix;
|
|
74
|
+
if (input.query_record !== undefined)
|
|
75
|
+
params.query_record = input.query_record;
|
|
76
|
+
return callWjxApi(params, { credentials, fetchImpl });
|
|
77
|
+
}
|
|
78
|
+
export async function getReport(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
79
|
+
const params = {
|
|
80
|
+
action: Action.GET_REPORT,
|
|
81
|
+
vid: input.vid,
|
|
82
|
+
};
|
|
83
|
+
if (input.valid !== undefined)
|
|
84
|
+
params.valid = input.valid;
|
|
85
|
+
if (input.min_index !== undefined)
|
|
86
|
+
params.min_index = input.min_index;
|
|
87
|
+
if (input.jid !== undefined)
|
|
88
|
+
params.jid = input.jid;
|
|
89
|
+
if (input.sojumpparm !== undefined)
|
|
90
|
+
params.sojumpparm = input.sojumpparm;
|
|
91
|
+
if (input.begin_time !== undefined)
|
|
92
|
+
params.begin_time = input.begin_time;
|
|
93
|
+
if (input.end_time !== undefined)
|
|
94
|
+
params.end_time = input.end_time;
|
|
95
|
+
if (input.distinct_user !== undefined)
|
|
96
|
+
params.distinct_user = input.distinct_user;
|
|
97
|
+
if (input.distinct_sojumpparm !== undefined)
|
|
98
|
+
params.distinct_sojumpparm = input.distinct_sojumpparm;
|
|
99
|
+
if (input.conds !== undefined)
|
|
100
|
+
params.conds = input.conds;
|
|
101
|
+
return callWjxApi(params, { credentials, fetchImpl });
|
|
102
|
+
}
|
|
103
|
+
export async function submitResponse(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
104
|
+
const params = {
|
|
105
|
+
action: Action.SUBMIT_RESPONSE,
|
|
106
|
+
vid: input.vid,
|
|
107
|
+
inputcosttime: input.inputcosttime,
|
|
108
|
+
submitdata: input.submitdata,
|
|
109
|
+
};
|
|
110
|
+
if (input.udsid !== undefined)
|
|
111
|
+
params.udsid = input.udsid;
|
|
112
|
+
if (input.sojumpparm !== undefined)
|
|
113
|
+
params.sojumpparm = input.sojumpparm;
|
|
114
|
+
if (input.submittime !== undefined)
|
|
115
|
+
params.submittime = input.submittime;
|
|
116
|
+
return callWjxApi(params, { credentials, fetchImpl, maxRetries: 0 });
|
|
117
|
+
}
|
|
118
|
+
export async function getFileLinks(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
119
|
+
const params = {
|
|
120
|
+
action: Action.GET_FILE_LINKS,
|
|
121
|
+
vid: input.vid,
|
|
122
|
+
file_keys: input.file_keys,
|
|
123
|
+
};
|
|
124
|
+
if (input.file_view_expires !== undefined)
|
|
125
|
+
params.file_view_expires = input.file_view_expires;
|
|
126
|
+
return callWjxApi(params, { credentials, fetchImpl });
|
|
127
|
+
}
|
|
128
|
+
export async function getWinners(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
129
|
+
const params = {
|
|
130
|
+
action: Action.GET_WINNERS,
|
|
131
|
+
vid: input.vid,
|
|
132
|
+
};
|
|
133
|
+
if (input.atype !== undefined)
|
|
134
|
+
params.atype = input.atype;
|
|
135
|
+
if (input.awardstatus !== undefined)
|
|
136
|
+
params.awardstatus = input.awardstatus;
|
|
137
|
+
if (input.page_index !== undefined)
|
|
138
|
+
params.page_index = input.page_index;
|
|
139
|
+
if (input.page_size !== undefined)
|
|
140
|
+
params.page_size = input.page_size;
|
|
141
|
+
return callWjxApi(params, { credentials, fetchImpl });
|
|
142
|
+
}
|
|
143
|
+
export async function modifyResponse(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
144
|
+
return callWjxApi({
|
|
145
|
+
action: Action.MODIFY_RESPONSE,
|
|
146
|
+
vid: input.vid,
|
|
147
|
+
jid: input.jid,
|
|
148
|
+
type: input.type,
|
|
149
|
+
answers: input.answers,
|
|
150
|
+
}, { credentials, fetchImpl, maxRetries: 0 });
|
|
151
|
+
}
|
|
152
|
+
export async function get360Report(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
153
|
+
const params = {
|
|
154
|
+
action: Action.GET_360_REPORT,
|
|
155
|
+
vid: input.vid,
|
|
156
|
+
};
|
|
157
|
+
if (input.taskid !== undefined)
|
|
158
|
+
params.taskid = input.taskid;
|
|
159
|
+
return callWjxApi(params, { credentials, fetchImpl, maxRetries: 0 });
|
|
160
|
+
}
|
|
161
|
+
export async function clearResponses(input, credentials = getWjxCredentials(), fetchImpl = fetch) {
|
|
162
|
+
return callWjxApi({
|
|
163
|
+
action: Action.CLEAR_RESPONSES,
|
|
164
|
+
username: input.username,
|
|
165
|
+
vid: input.vid,
|
|
166
|
+
reset_to_zero: input.reset_to_zero,
|
|
167
|
+
}, { credentials, fetchImpl, maxRetries: 0 });
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/modules/response/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAczE,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,KAA0B,EAC1B,cAA8B,iBAAiB,EAAE,EACjD,YAAuB,KAAK;IAE5B,MAAM,MAAM,GAA4B;QACtC,MAAM,EAAE,MAAM,CAAC,eAAe;QAC9B,GAAG,EAAE,KAAK,CAAC,GAAG;KACf,CAAC;IACF,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;QAAE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1D,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS;QAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;IACzE,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS;QAAE,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;IACtE,IAAI,KAAK,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E,MAAM,CAAC,eAAe;QAC9B,GAAG,EAAE,KAAK,CAAC,GAAG;QACd,GAAG,EAAE,KAAK,CAAC,GAAG;QACd,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,EACD,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,EAAE,CAC1C,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,KAAwB,EACxB,cAA8B,iBAAiB,EAAE,EACjD,YAAuB,KAAK;IAE5B,MAAM,MAAM,GAA4B;QACtC,MAAM,EAAE,MAAM,CAAC,cAAc;QAC7B,GAAG,EAAE,KAAK,CAAC,GAAG;KACf,CAAC;IACF,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS;QAAE,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAE7D,OAAO,UAAU,CAAI,MAAM,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,KAA0B,EAC1B,cAA8B,iBAAiB,EAAE,EACjD,YAAuB,KAAK;IAE5B,OAAO,UAAU,CACf;QACE,MAAM,EAAE,MAAM,CAAC,eAAe;QAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,GAAG,EAAE,KAAK,CAAC,GAAG;QACd,aAAa,EAAE,KAAK,CAAC,aAAa;KACnC,EACD,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,EAAE,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export interface QueryResponsesInput {
|
|
2
|
+
vid: number;
|
|
3
|
+
valid?: boolean;
|
|
4
|
+
page_index?: number;
|
|
5
|
+
page_size?: number;
|
|
6
|
+
sort?: number;
|
|
7
|
+
min_index?: number;
|
|
8
|
+
jid?: string;
|
|
9
|
+
sojumpparm?: string;
|
|
10
|
+
qid?: string;
|
|
11
|
+
begin_time?: number;
|
|
12
|
+
end_time?: number;
|
|
13
|
+
file_view_expires?: number;
|
|
14
|
+
query_note?: boolean;
|
|
15
|
+
distinct_user?: boolean;
|
|
16
|
+
distinct_sojumpparm?: boolean;
|
|
17
|
+
conds?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface QueryResponsesRealtimeInput {
|
|
20
|
+
vid: number;
|
|
21
|
+
count?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface DownloadResponsesInput {
|
|
24
|
+
vid: number;
|
|
25
|
+
taskid?: string;
|
|
26
|
+
valid?: boolean;
|
|
27
|
+
query_count?: number;
|
|
28
|
+
begin_time?: number;
|
|
29
|
+
end_time?: number;
|
|
30
|
+
min_index?: number;
|
|
31
|
+
qid?: string;
|
|
32
|
+
sort?: number;
|
|
33
|
+
query_type?: number;
|
|
34
|
+
suffix?: number;
|
|
35
|
+
query_record?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface GetReportInput {
|
|
38
|
+
vid: number;
|
|
39
|
+
valid?: boolean;
|
|
40
|
+
min_index?: number;
|
|
41
|
+
jid?: string;
|
|
42
|
+
sojumpparm?: string;
|
|
43
|
+
begin_time?: number;
|
|
44
|
+
end_time?: number;
|
|
45
|
+
distinct_user?: boolean;
|
|
46
|
+
distinct_sojumpparm?: boolean;
|
|
47
|
+
conds?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SubmitResponseInput {
|
|
50
|
+
vid: number;
|
|
51
|
+
inputcosttime: number;
|
|
52
|
+
submitdata: string;
|
|
53
|
+
udsid?: number;
|
|
54
|
+
sojumpparm?: string;
|
|
55
|
+
submittime?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface GetFileLinksInput {
|
|
58
|
+
vid: number;
|
|
59
|
+
file_keys: string;
|
|
60
|
+
file_view_expires?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface GetWinnersInput {
|
|
63
|
+
vid: number;
|
|
64
|
+
atype?: number;
|
|
65
|
+
awardstatus?: number;
|
|
66
|
+
page_index?: number;
|
|
67
|
+
page_size?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface ModifyResponseInput {
|
|
70
|
+
vid: number;
|
|
71
|
+
jid: number;
|
|
72
|
+
type: 1;
|
|
73
|
+
answers: string;
|
|
74
|
+
}
|
|
75
|
+
export interface Get360ReportInput {
|
|
76
|
+
vid: number;
|
|
77
|
+
taskid?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface ClearResponsesInput {
|
|
80
|
+
username: string;
|
|
81
|
+
vid: number;
|
|
82
|
+
reset_to_zero: boolean;
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/modules/response/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SsoSubaccountInput, SsoUserSystemInput, SsoPartnerInput, BuildSurveyUrlInput, BuildPreviewUrlInput } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Build sub-account SSO login/create URL.
|
|
4
|
+
*/
|
|
5
|
+
export declare function buildSsoSubaccountUrl(input: SsoSubaccountInput): string;
|
|
6
|
+
/**
|
|
7
|
+
* Build user system participant SSO URL.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildSsoUserSystemUrl(input: SsoUserSystemInput): string;
|
|
10
|
+
/**
|
|
11
|
+
* Build partner/agent SSO login URL.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildSsoPartnerUrl(input: SsoPartnerInput): string;
|
|
14
|
+
/**
|
|
15
|
+
* Build quick create/edit survey URL (no signing needed).
|
|
16
|
+
*/
|
|
17
|
+
export declare function buildSurveyUrl(input: BuildSurveyUrlInput): string;
|
|
18
|
+
/**
|
|
19
|
+
* Build a survey preview/fill URL (the respondent-facing page).
|
|
20
|
+
* Pattern: {baseUrl}/vm/{vid}.aspx
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildPreviewUrl(input: BuildPreviewUrlInput): string;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { getWjxBaseUrl, getWjxSsoSubaccountUrl, getWjxSsoUserSystemUrl, getWjxSsoPartnerUrl, getWjxSurveyCreateUrl, getWjxSurveyEditUrl, } from "../../core/constants.js";
|
|
2
|
+
/**
|
|
3
|
+
* Build sub-account SSO login/create URL.
|
|
4
|
+
*/
|
|
5
|
+
export function buildSsoSubaccountUrl(input) {
|
|
6
|
+
const params = new URLSearchParams();
|
|
7
|
+
params.set("subuser", input.subuser);
|
|
8
|
+
if (input.mobile)
|
|
9
|
+
params.set("mobile", input.mobile);
|
|
10
|
+
if (input.email)
|
|
11
|
+
params.set("email", input.email);
|
|
12
|
+
if (input.role_id !== undefined)
|
|
13
|
+
params.set("roleId", input.role_id.toString());
|
|
14
|
+
if (input.url !== undefined)
|
|
15
|
+
params.set("url", input.url);
|
|
16
|
+
if (input.admin !== undefined)
|
|
17
|
+
params.set("admin", input.admin.toString());
|
|
18
|
+
return `${getWjxSsoSubaccountUrl()}?${params.toString()}`;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Build user system participant SSO URL.
|
|
22
|
+
*/
|
|
23
|
+
export function buildSsoUserSystemUrl(input) {
|
|
24
|
+
const userSystem = input.user_system ?? 1;
|
|
25
|
+
const params = new URLSearchParams();
|
|
26
|
+
params.set("u", input.u);
|
|
27
|
+
params.set("usersystem", userSystem.toString());
|
|
28
|
+
params.set("systemid", input.system_id.toString());
|
|
29
|
+
params.set("uid", input.uid);
|
|
30
|
+
if (input.uname !== undefined)
|
|
31
|
+
params.set("uname", input.uname);
|
|
32
|
+
if (input.udept !== undefined)
|
|
33
|
+
params.set("udept", input.udept);
|
|
34
|
+
if (input.uextf !== undefined)
|
|
35
|
+
params.set("uextf", input.uextf);
|
|
36
|
+
if (input.upass !== undefined)
|
|
37
|
+
params.set("upass", input.upass);
|
|
38
|
+
if (input.is_login !== undefined)
|
|
39
|
+
params.set("islogin", input.is_login.toString());
|
|
40
|
+
if (input.activity !== undefined)
|
|
41
|
+
params.set("activity", input.activity.toString());
|
|
42
|
+
if (input.return_url !== undefined)
|
|
43
|
+
params.set("returnurl", input.return_url);
|
|
44
|
+
return `${getWjxSsoUserSystemUrl()}?${params.toString()}`;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Build partner/agent SSO login URL.
|
|
48
|
+
*/
|
|
49
|
+
export function buildSsoPartnerUrl(input) {
|
|
50
|
+
const params = new URLSearchParams();
|
|
51
|
+
params.set("username", input.username);
|
|
52
|
+
if (input.mobile)
|
|
53
|
+
params.set("mobile", input.mobile);
|
|
54
|
+
if (input.subuser)
|
|
55
|
+
params.set("subuser", input.subuser);
|
|
56
|
+
return `${getWjxSsoPartnerUrl()}?${params.toString()}`;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Build quick create/edit survey URL (no signing needed).
|
|
60
|
+
*/
|
|
61
|
+
export function buildSurveyUrl(input) {
|
|
62
|
+
if (input.mode === "create") {
|
|
63
|
+
const params = new URLSearchParams();
|
|
64
|
+
if (input.name !== undefined)
|
|
65
|
+
params.set("name", input.name);
|
|
66
|
+
if (input.qt !== undefined)
|
|
67
|
+
params.set("qt", input.qt.toString());
|
|
68
|
+
if (input.osa !== undefined)
|
|
69
|
+
params.set("osa", input.osa.toString());
|
|
70
|
+
if (input.redirect_url !== undefined)
|
|
71
|
+
params.set("redirecturl", input.redirect_url);
|
|
72
|
+
const qs = params.toString();
|
|
73
|
+
const base = getWjxSurveyCreateUrl();
|
|
74
|
+
return qs ? `${base}?${qs}` : base;
|
|
75
|
+
}
|
|
76
|
+
// edit mode
|
|
77
|
+
if (input.activity === undefined) {
|
|
78
|
+
throw new Error("edit 模式需要提供 activity(问卷编号)");
|
|
79
|
+
}
|
|
80
|
+
const params = new URLSearchParams();
|
|
81
|
+
params.set("activity", input.activity.toString());
|
|
82
|
+
if (input.editmode !== undefined)
|
|
83
|
+
params.set("editmode", input.editmode.toString());
|
|
84
|
+
if (input.runprotect !== undefined)
|
|
85
|
+
params.set("runprotect", input.runprotect.toString());
|
|
86
|
+
if (input.redirect_url !== undefined)
|
|
87
|
+
params.set("redirecturl", input.redirect_url);
|
|
88
|
+
return `${getWjxSurveyEditUrl()}?${params.toString()}`;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Build a survey preview/fill URL (the respondent-facing page).
|
|
92
|
+
* Pattern: {baseUrl}/vm/{vid}.aspx
|
|
93
|
+
*/
|
|
94
|
+
export function buildPreviewUrl(input) {
|
|
95
|
+
const base = `${getWjxBaseUrl()}/vm/${input.vid}.aspx`;
|
|
96
|
+
if (input.source) {
|
|
97
|
+
return `${base}?source=${encodeURIComponent(input.source)}`;
|
|
98
|
+
}
|
|
99
|
+
return base;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/modules/sso/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AASjC;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACnC,KAAyB;IAEzB,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IACrC,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC,IAAI,KAAK,CAAC,MAAM;QAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrD,IAAI,KAAK,CAAC,KAAK;QAAE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClD,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS;QAAE,MAAM,CAAC,GAAG,CAAC,QA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AAC,YAAY,KAAK,SAAS;QAAE,MAAM,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAEpF,OAAO,GAAG,mBAAmB,EAAE,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;AACzD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,KAA2B;IACzD,MAAM,IAAI,GAAG,GAAG,aAAa,EAAE,OAAO,KAAK,CAAC,GAAG,OAAO,CAAC;IACvD,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,GAAG,IAAI,WAAW,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAC9D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/** Input for generating a sub-account SSO login/create URL. */
|
|
2
|
+
export interface SsoSubaccountInput {
|
|
3
|
+
/** Sub-account username (required). */
|
|
4
|
+
subuser: string;
|
|
5
|
+
/** Mobile number. */
|
|
6
|
+
mobile?: string;
|
|
7
|
+
/** Email address. */
|
|
8
|
+
email?: string;
|
|
9
|
+
/** Role ID (1-4). */
|
|
10
|
+
role_id?: number;
|
|
11
|
+
/** Redirect URL after login. */
|
|
12
|
+
url?: string;
|
|
13
|
+
/** Set to 1 for master account login. */
|
|
14
|
+
admin?: number;
|
|
15
|
+
}
|
|
16
|
+
/** Input for generating a user system participant SSO URL. */
|
|
17
|
+
export interface SsoUserSystemInput {
|
|
18
|
+
/** Account username (fixed). */
|
|
19
|
+
u: string;
|
|
20
|
+
/** User system flag (defaults to 1). */
|
|
21
|
+
user_system?: number;
|
|
22
|
+
/** User system ID. */
|
|
23
|
+
system_id: number;
|
|
24
|
+
/** Participant ID. */
|
|
25
|
+
uid: string;
|
|
26
|
+
/** Participant name. */
|
|
27
|
+
uname?: string;
|
|
28
|
+
/** Participant department. */
|
|
29
|
+
udept?: string;
|
|
30
|
+
/** Extended field. */
|
|
31
|
+
uextf?: string;
|
|
32
|
+
/** Password. */
|
|
33
|
+
upass?: string;
|
|
34
|
+
/** Whether to login (0 or 1). */
|
|
35
|
+
is_login?: number;
|
|
36
|
+
/** Survey vid to jump to. */
|
|
37
|
+
activity?: number;
|
|
38
|
+
/** Return URL. */
|
|
39
|
+
return_url?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Input for generating a partner/agent SSO login URL. */
|
|
42
|
+
export interface SsoPartnerInput {
|
|
43
|
+
/** Partner account username (required). */
|
|
44
|
+
username: string;
|
|
45
|
+
/** Mobile number. */
|
|
46
|
+
mobile?: string;
|
|
47
|
+
/** Sub-account username. */
|
|
48
|
+
subuser?: string;
|
|
49
|
+
}
|
|
50
|
+
/** Input for generating quick create/edit survey URL. */
|
|
51
|
+
export interface BuildSurveyUrlInput {
|
|
52
|
+
/** Mode: "create" or "edit". */
|
|
53
|
+
mode: "create" | "edit";
|
|
54
|
+
/** Survey name (create mode). */
|
|
55
|
+
name?: string;
|
|
56
|
+
/** Survey type (create mode). */
|
|
57
|
+
qt?: number;
|
|
58
|
+
/** Set to 1 to auto-publish (create mode). */
|
|
59
|
+
osa?: number;
|
|
60
|
+
/** Redirect URL after operation. */
|
|
61
|
+
redirect_url?: string;
|
|
62
|
+
/** Survey vid (required for edit mode). */
|
|
63
|
+
activity?: number;
|
|
64
|
+
/** Edit mode (edit mode). */
|
|
65
|
+
editmode?: number;
|
|
66
|
+
/** Run protect flag (edit mode). */
|
|
67
|
+
runprotect?: number;
|
|
68
|
+
}
|
|
69
|
+
/** Input for generating a survey preview/fill URL. */
|
|
70
|
+
export interface BuildPreviewUrlInput {
|
|
71
|
+
/** Survey vid (required). */
|
|
72
|
+
vid: number;
|
|
73
|
+
/** Optional source tracking parameter. */
|
|
74
|
+
source?: string;
|
|
75
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/modules/sso/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WjxApiResponse, WjxCredentials, FetchLike } from "../../core/types.js";
|
|
2
|
+
import type { CreateSurveyInput, GetSurveyInput, ListSurveysInput, UpdateSurveyStatusInput, GetSurveySettingsInput, UpdateSurveySettingsInput, DeleteSurveyInput, GetQuestionTagsInput, GetTagDetailsInput, ClearRecycleBinInput, UploadFileInput } from "./types.js";
|
|
3
|
+
export declare function createSurvey<T = unknown>(input: CreateSurveyInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
4
|
+
export declare function getSurvey<T = unknown>(input: GetSurveyInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
5
|
+
export declare function listSurveys<T = unknown>(input?: ListSurveysInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
6
|
+
export declare function updateSurveyStatus<T = unknown>(input: UpdateSurveyStatusInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
7
|
+
export declare function getSurveySettings<T = unknown>(input: GetSurveySettingsInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
8
|
+
export declare function updateSurveySettings<T = unknown>(input: UpdateSurveySettingsInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
9
|
+
export declare function deleteSurvey<T = unknown>(input: DeleteSurveyInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
10
|
+
export declare function getQuestionTags<T = unknown>(input: GetQuestionTagsInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
11
|
+
export declare function getTagDetails<T = unknown>(input: GetTagDetailsInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
12
|
+
export declare function clearRecycleBin<T = unknown>(input: ClearRecycleBinInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|
|
13
|
+
export declare function uploadFile<T = unknown>(input: UploadFileInput, credentials?: WjxCredentials, fetchImpl?: FetchLike): Promise<WjxApiResponse<T>>;
|