@wshcmx/types 11.0.0-beta1 → 11.0.9
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 +1 -1
- package/README.md +15 -27
- package/VERSIONING.md +12 -0
- package/lib/Lock/index.d.ts +22 -0
- package/lib/SmtpClient/index.d.ts +61 -0
- package/lib/arguments/index.d.ts +1 -1
- package/lib/array/index.d.ts +2 -3
- package/lib/binary/index.d.ts +3 -3
- package/lib/boolean/index.d.ts +1 -1
- package/lib/bufstream/index.d.ts +3 -2
- package/lib/core/index.d.ts +3881 -2081
- package/lib/database/index.d.ts +58 -0
- package/lib/date/index.d.ts +4 -2
- package/lib/env/index.d.ts +3 -0
- package/lib/error/index.d.ts +1 -3
- package/lib/eslint.config.js +48 -0
- package/lib/filestream/index.d.ts +1 -1
- package/lib/function/index.d.ts +3 -2
- package/lib/global_settings/index.d.ts +65 -65
- package/lib/http_request/index.d.ts +8 -2
- package/lib/http_response/index.d.ts +11 -12
- package/lib/listitem/index.d.ts +1 -1
- package/lib/math/index.d.ts +5 -5
- package/lib/ms_tools/index.d.ts +1 -1
- package/lib/number/index.d.ts +1 -1
- package/lib/object/index.d.ts +12 -19
- package/lib/other/index.d.ts +1 -1
- package/lib/regexp/index.d.ts +1 -1
- package/lib/screen/index.d.ts +14 -13
- package/lib/screenitem/index.d.ts +194 -1
- package/lib/server_agent_env/index.d.ts +8 -8
- package/lib/spxml_unibridge_provider/index.d.ts +0 -6
- package/lib/stream/index.d.ts +0 -1
- package/lib/string/index.d.ts +1 -3
- package/lib/tagreader/index.d.ts +0 -2
- package/lib/thread/index.d.ts +11 -1
- package/lib/tools/index.d.ts +1121 -461
- package/lib/tools_app/index.d.ts +1 -1
- package/lib/tools_ass/index.d.ts +60 -31
- package/lib/tools_i18n/index.d.ts +1 -1
- package/lib/tools_web/index.d.ts +415 -139
- package/lib/tools_xshell/index.d.ts +4 -0
- package/lib/tsconfig.json +3 -3
- package/lib/ui_tools/index.d.ts +5 -0
- package/lib/utility/index.d.ts +5 -2
- package/lib/xml/absence_reserve/index.d.ts +3 -0
- package/lib/xml/assessment_catalog/index.d.ts +22 -4
- package/lib/xml/bonus_profile/index.d.ts +1 -1
- package/lib/xml/career_reserve/index.d.ts +93 -11
- package/lib/xml/chatbot_chat/index.d.ts +1 -1
- package/lib/xml/cl_course/index.d.ts +2 -0
- package/lib/xml/collaborator/index.d.ts +180 -20
- package/lib/xml/component_package/index.d.ts +2 -0
- package/lib/xml/compound_program/index.d.ts +1 -1
- package/lib/xml/contract/index.d.ts +2 -0
- package/lib/xml/digital_signature/index.d.ts +6 -1
- package/lib/xml/dn_academ_debt/index.d.ts +11 -1
- package/lib/xml/dn_auditorium/index.d.ts +7 -0
- package/lib/xml/dn_block_discipline/index.d.ts +7 -0
- package/lib/xml/dn_control_event/index.d.ts +8 -0
- package/lib/xml/dn_control_form/index.d.ts +10 -0
- package/lib/xml/dn_discipline/index.d.ts +7 -0
- package/lib/xml/dn_discipline_block/index.d.ts +7 -0
- package/lib/xml/dn_edu_condition/index.d.ts +10 -0
- package/lib/xml/dn_educat_event/index.d.ts +10 -0
- package/lib/xml/dn_educat_form/index.d.ts +10 -0
- package/lib/xml/dn_ind_educat_plan/index.d.ts +7 -0
- package/lib/xml/dn_lesson/index.d.ts +12 -1
- package/lib/xml/dn_program_discipl/index.d.ts +11 -1
- package/lib/xml/dn_register/index.d.ts +17 -1
- package/lib/xml/education_plan/index.d.ts +1 -1
- package/lib/xml/event/index.d.ts +3 -3
- package/lib/xml/exchange_server/index.d.ts +50 -27
- package/lib/xml/forum_entry/index.d.ts +1 -1
- package/lib/xml/general/index.d.ts +1 -1
- package/lib/xml/item_catalog/index.d.ts +30 -14
- package/lib/xml/pa/index.d.ts +2 -2
- package/lib/xml/remote_action/index.d.ts +6 -1
- package/lib/xml/resource/index.d.ts +5 -5
- package/lib/xml/role_catalog/index.d.ts +25 -7
- package/lib/xml/statistic_rec/index.d.ts +2 -2
- package/lib/xml/testing_system_catalog/index.d.ts +17 -7
- package/lib/xml/workflow/index.d.ts +2 -0
- package/lib/xml/wscon_general/index.d.ts +78 -0
- package/lib/xmldocument/index.d.ts +7 -12
- package/lib/xmlelem/index.d.ts +9 -13
- package/lib/xmlformelem/index.d.ts +3 -3
- package/package.json +13 -16
- package/lib/.eslintrc.json +0 -54
- package/lib/defaultdb/index.d.ts +0 -27
package/lib/tools_web/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace tools_web {
|
|
2
|
-
function put_query_string(str: string, pageName:
|
|
2
|
+
function put_query_string(str: string, pageName: string): string;
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Путь до wt/web директории сервера.
|
|
@@ -12,18 +12,22 @@ declare namespace tools_web {
|
|
|
12
12
|
* @param {object} attributes - Параметры.
|
|
13
13
|
* @returns {string} Ссылка на документ.
|
|
14
14
|
*/
|
|
15
|
-
function doc_link(attributes:
|
|
16
|
-
|
|
15
|
+
function doc_link(attributes: DocumentDocumentTopElem["attributes"]): string;
|
|
16
|
+
|
|
17
|
+
function get_object_link(objectName: string, objectId: number, objectTopElem: XmlTopElem, docId: number): string;
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* Получение текстового значения языкового параметра из curLngWeb.
|
|
20
21
|
* @param {string} name - Название параметра.
|
|
21
22
|
* @returns {string} Значение языкового параметра.
|
|
22
23
|
*/
|
|
23
|
-
function get_web_str(name: string):
|
|
24
|
-
|
|
24
|
+
function get_web_str(name: string): string;
|
|
25
|
+
|
|
26
|
+
function get_web_const(name: string, fldLng: unknown): string;
|
|
27
|
+
|
|
25
28
|
function eval_web_column_const(name: string, fldLng: unknown): unknown;
|
|
26
|
-
|
|
29
|
+
|
|
30
|
+
function get_web_desc(sourceHtml: string, url: Object, path?: unknown, env?: unknown): string;
|
|
27
31
|
|
|
28
32
|
/**
|
|
29
33
|
* Складывает два `id`.
|
|
@@ -31,44 +35,98 @@ declare namespace tools_web {
|
|
|
31
35
|
* @param {number} sessionId - Id сессии.
|
|
32
36
|
* @returns {number} Сумма Id объекта и Id сессии.
|
|
33
37
|
*/
|
|
34
|
-
function get_sum_sid(id: string, sessionId: number):
|
|
35
|
-
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
function get_sum_sid(id: string, sessionId: number): number;
|
|
39
|
+
|
|
40
|
+
function check_sum_sid(id: string, sum: string, sessionId: number): boolean;
|
|
41
|
+
|
|
42
|
+
function custom_elems_filling(fldTarget: unknown, source: Object, arrCustomElems: null | unknown[], params: Object): {
|
|
43
|
+
error: 0 | 1;
|
|
44
|
+
error_text: string;
|
|
45
|
+
title: string;
|
|
46
|
+
mandatory_fields: unknown[];
|
|
47
|
+
condition_fields: unknown[]
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
function web_custom_elems_filling(catalog: string, topId: number, source: unknown, requestForm: unknown, valueFlag?: boolean, charset?: string, arrFields?: null | unknown[]): true | ReturnType<typeof custom_elems_filling>;
|
|
51
|
+
|
|
52
|
+
function update_object_from_context(object: XmlDocument, context: Object, arrFieldNames: unknown[], prefix: string): void;
|
|
53
|
+
|
|
54
|
+
function get_query_string_from_url(url: string, flag: boolean, params: string | string[]): string;
|
|
55
|
+
|
|
56
|
+
function get_query_string(flag: boolean, params: unknown): ReturnType<typeof get_query_string_from_url>;
|
|
57
|
+
|
|
58
|
+
function get_url_protocol(url: string): string;
|
|
59
|
+
|
|
60
|
+
function set_url_protocol(url: string): string;
|
|
61
|
+
|
|
43
62
|
function get_cur_lng_name(text: string, shortId: string): string;
|
|
44
|
-
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
function
|
|
52
|
-
|
|
53
|
-
function
|
|
54
|
-
|
|
55
|
-
function
|
|
56
|
-
|
|
57
|
-
function
|
|
58
|
-
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
-
function
|
|
62
|
-
|
|
63
|
-
function
|
|
64
|
-
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
function
|
|
68
|
-
|
|
69
|
-
function
|
|
70
|
-
|
|
71
|
-
function
|
|
63
|
+
|
|
64
|
+
function check_access(source: XmlTopElem, personDocId: number, personDoc?: CollaboratorDocumentTopElem, session?: Session): boolean;
|
|
65
|
+
|
|
66
|
+
function get_web_param(listParamsTarget: unknown, paramName: string, defaultValue: string, emptyFlag: boolean, overrideWebTemplateId: string): string;
|
|
67
|
+
|
|
68
|
+
function set_web_params(listParamsTarget: unknown, listWvars: unknown, rewriteFlag: boolean, overrideWebTemplateId: number): void;
|
|
69
|
+
|
|
70
|
+
function write_custom_web_template(customWebTemplate: Object): true;
|
|
71
|
+
|
|
72
|
+
function get_override_web_template(overrideWebTemplateId: number, session: Session, curUserId: number, curUser: CurUser, curAnonymousAccess: unknown, activeWebTemplateTopElem: XmlTopElem, adding: boolean): OverrideWebTemplateDocument | undefined;
|
|
73
|
+
|
|
74
|
+
function get_override_web_templates(session: Session, zone: Object, curActiveWebTemplate: unknown, addWebTemplate: boolean, envObj: Object): OverrideWebTemplateDocument[];
|
|
75
|
+
|
|
76
|
+
function place_zone(zone: string, createFCache?: boolean, lpePreview?: boolean): string;
|
|
77
|
+
|
|
78
|
+
function place_override_web_template(overrideWebTemplateId: number, insertCustomCodeParams?: Object): ReturnType<typeof insert_custom_code>;
|
|
79
|
+
|
|
80
|
+
function get_operation_script(operationId: number, scriptType: string, params?: Object): string;
|
|
81
|
+
|
|
82
|
+
function eval_operation_script(operationId: number, scriptType: string, params: Object): unknown;
|
|
83
|
+
|
|
84
|
+
function is_moderator_forum(forumId: number, userId: number, forumTopElem?: ForumDocumentTopElem): boolean;
|
|
85
|
+
|
|
86
|
+
function is_privilege_collaborator(forumEntryId: number, userTopElem: CollaboratorDocumentTopElem, userId: number, forumEntryTopElem?: ForumEntryDocumentTopElem): boolean;
|
|
87
|
+
|
|
88
|
+
function is_forum_readed(forumId: number, userId: number): boolean;
|
|
89
|
+
|
|
90
|
+
function check_forum_entry_access(formEntryTopElem: ForumEntryDocumentTopElem, userTopElem: CollaboratorDocumentTopElem, userId: number, forumTopElem?: ForumDocumentTopElem): ReturnType<typeof is_moderator_forum>;
|
|
91
|
+
|
|
92
|
+
function remove_forum_entry(forumEntryId: number): boolean;
|
|
93
|
+
|
|
94
|
+
function close_forum_entry(forumEntryId: number, forumEntryTopElem?: ForumEntryDocumentTopElem): boolean;
|
|
95
|
+
|
|
96
|
+
function draw_calendar(objectName: string, objectValue: unknown, format: string): string;
|
|
97
|
+
|
|
98
|
+
function web_files_process(sourceFiles?: XmlDocument): void;
|
|
99
|
+
|
|
100
|
+
function convert_xhttp_res(textArea: string, sourceDesc: string): string;
|
|
101
|
+
|
|
102
|
+
function get_my_person_object_link_card(catalog?: string, userId?: number, docHimself?: boolean, makeNewOnAbsence?: boolean): undefined | PersonObjectLinkDocument | PersonObjectLinkDocumentTopElem;
|
|
103
|
+
|
|
104
|
+
function get_person_object_info(catalog: string, userId: number, userTopElem?: CollaboratorDocumentTopElem): {
|
|
105
|
+
can_create: boolean;
|
|
106
|
+
can_edit: boolean;
|
|
107
|
+
can_delete: boolean;
|
|
108
|
+
max_amount: null | number;
|
|
109
|
+
max_total_size: null | number;
|
|
110
|
+
max_object_size: null | number;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
function set_person_object_info(catalog: string, userId: number, userTopElem: CollaboratorDocumentTopElem | null, objectsMeta: unknown[]): void;
|
|
114
|
+
|
|
115
|
+
function get_object_owners(objectId: number, catalog: string): {
|
|
116
|
+
person_id: number;
|
|
117
|
+
can_edit: boolean;
|
|
118
|
+
can_delete: boolean;
|
|
119
|
+
}[];
|
|
120
|
+
|
|
121
|
+
function insert_custom_code(customWebTemplateId: number, customWebTemplateTopElem: CustomWebTemplateDocumentTopElem | null, eval: boolean, naked: boolean, depth: number, ofFldNativeParamsArr: unknown[] | undefined, externalEnvelope: boolean): string;
|
|
122
|
+
|
|
123
|
+
function place_xaml(customWebTemplateId: number, customWebTemplateTopElem?: CustomWebTemplateDocumentTopElem, placeXamlParams?: Object): ReturnType<typeof insert_custom_code>;
|
|
124
|
+
|
|
125
|
+
function place_xaml_player(customWebTemplate: number, curWebDesign: WebDesignDocumentTopElem, request: Request, placeXamlParams: Object): unknown;
|
|
126
|
+
|
|
127
|
+
function convert_xss(text: string, type?: string): string;
|
|
128
|
+
|
|
129
|
+
function xss_neutralize(text: string): string;
|
|
72
130
|
|
|
73
131
|
/**
|
|
74
132
|
* Возврат экземпляра библиотеки regexp
|
|
@@ -78,36 +136,100 @@ declare namespace tools_web {
|
|
|
78
136
|
* @returns {Websoft.RegExp.RegExp} Экземпляр библиотеки.
|
|
79
137
|
*/
|
|
80
138
|
function reg_exp_init(): Websoft.RegExp.RegExp;
|
|
81
|
-
|
|
82
|
-
function
|
|
83
|
-
|
|
84
|
-
function
|
|
85
|
-
|
|
86
|
-
function
|
|
87
|
-
|
|
88
|
-
function
|
|
89
|
-
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
function
|
|
139
|
+
|
|
140
|
+
function convert_bbcode_to_html(messageSource: string, objRegExp?: Websoft.RegExp.RegExp): string;
|
|
141
|
+
|
|
142
|
+
function convert_html_to_bbcode(messageSource: string, objRegExp?: Websoft.RegExp.RegExp): string;
|
|
143
|
+
|
|
144
|
+
function convert_bbtags_to_html(messageSource: string, objRegExp?: Websoft.RegExp.RegExp): string;
|
|
145
|
+
|
|
146
|
+
function get_bbcode_tag_ids(messageSource: string, objRegExp?: Websoft.RegExp.RegExp): Object;
|
|
147
|
+
|
|
148
|
+
function clear_bbcode_from_html(messageSource: string, objRegExp?: Websoft.RegExp.RegExp): string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Cоздание новой заявки на основе входных параметров объекта Request.
|
|
152
|
+
* @returns {RequestDocumentTopElem} Новый объект заявки.
|
|
153
|
+
*/
|
|
154
|
+
function get_new_request_by_query(): RequestDocumentTopElem;
|
|
155
|
+
|
|
156
|
+
function update_community_authors(objectId: number, vAuthors: number | number[], nbDelete?: boolean): true;
|
|
157
|
+
|
|
158
|
+
function evaluate_remote_action(vRemoteActionDoc: number | RemoteActionCatalogDocumentTopElem, request: Request): ReturnType<RemoteActionDocumentTopElem["evaluate"]>;
|
|
159
|
+
|
|
160
|
+
function Unsqueeze(txt: string, idx: number): string;
|
|
161
|
+
|
|
162
|
+
function get_collection_param(): {
|
|
163
|
+
catalog_name: string;
|
|
164
|
+
xquery_qual: string;
|
|
165
|
+
view_type: string;
|
|
166
|
+
external_eval: string;
|
|
167
|
+
check_access: boolean;
|
|
168
|
+
open_doc : boolean;
|
|
169
|
+
disp_array: boolean;
|
|
170
|
+
array: string;
|
|
171
|
+
array_selected: string;
|
|
172
|
+
list_columns: string;
|
|
173
|
+
list_headers: string;
|
|
174
|
+
col_headers: string;
|
|
175
|
+
col_cells: string;
|
|
176
|
+
disp_sort: boolean;
|
|
177
|
+
sort_index: null;
|
|
178
|
+
sort_direct: string;
|
|
179
|
+
disp_link: string;
|
|
180
|
+
link_field_index: number;
|
|
181
|
+
link_object_field: string;
|
|
182
|
+
link_action: string;
|
|
183
|
+
link_mode: string;
|
|
184
|
+
link_prop: string;
|
|
185
|
+
disp_check_box: boolean;
|
|
186
|
+
is_data_grid: boolean;
|
|
187
|
+
filter_id: string;
|
|
188
|
+
filter_conditions: string;
|
|
189
|
+
search: string;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
function external_eval(command: string, params: Object, env: Env): unknown;
|
|
193
|
+
|
|
194
|
+
function env_to_script(env: Env): string;
|
|
195
|
+
|
|
196
|
+
function object_init(sessionTarget: Request["Session"], query: Request["Query"], objectEnvSave: boolean): Env;
|
|
197
|
+
|
|
198
|
+
function get_column_width(type: string, mode: string): string;
|
|
199
|
+
|
|
200
|
+
function get_catalog_list_arrays(collection: ReturnType<typeof get_collection_param>, env: Env, envLngCommon: Env["curLngWeb"]): {
|
|
201
|
+
arrData: unknown[];
|
|
202
|
+
arrColumns: unknown[];
|
|
203
|
+
arrHeaders: unknown[];
|
|
204
|
+
iDataTotalCount: number;
|
|
205
|
+
iDispFieldIndex: number;
|
|
206
|
+
iLinkFieldIndex: number;
|
|
207
|
+
sSortDataFieldName: string;
|
|
208
|
+
sQuery: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
function check_session_user(request: Request, userId: number): boolean;
|
|
97
212
|
|
|
98
213
|
/**
|
|
99
214
|
* Возвращает значение true/false в завимости от передаваемого параметра.
|
|
100
|
-
* @param {
|
|
215
|
+
* @param {unknown} o - Параметр.
|
|
101
216
|
* @returns {boolean} Значение аргумента в булевом представлении.
|
|
102
217
|
*/
|
|
103
|
-
function is_true(o:
|
|
104
|
-
|
|
105
|
-
function
|
|
106
|
-
|
|
218
|
+
function is_true(o: unknown): boolean;
|
|
219
|
+
|
|
220
|
+
function init_cur_active_web_template(env: Env, create: boolean): ActiveWebTemplateDocument;
|
|
221
|
+
|
|
222
|
+
function save_cur_active_web_template(activeWebTemplateDocTopElem: ActiveWebTemplateDocument, finishSave: boolean): boolean;
|
|
223
|
+
|
|
224
|
+
function drop_active_web_templates(): number;
|
|
225
|
+
|
|
107
226
|
function get_session_lng(session: Session): unknown;
|
|
108
|
-
|
|
109
|
-
function
|
|
110
|
-
|
|
227
|
+
|
|
228
|
+
function check_site_access(personTopElem: CollaboratorDocument, site: SiteDocumentTopElem | number): boolean;
|
|
229
|
+
|
|
230
|
+
function get_resource_url(objectId: number, session: Session): ReturnType<typeof get_object_source_url>;
|
|
231
|
+
|
|
232
|
+
function get_custom_web_template_url(templateId: number): ReturnType<typeof get_object_source_url>;
|
|
111
233
|
|
|
112
234
|
/**
|
|
113
235
|
* Получение url ссылки объекта по Id.
|
|
@@ -116,56 +238,97 @@ declare namespace tools_web {
|
|
|
116
238
|
* @param {unknown} params - Параметры для определения хоста/сессии/etc.
|
|
117
239
|
* @returns {string} Url.
|
|
118
240
|
*/
|
|
119
|
-
function get_object_source_url(catalogType: string, objectId: number, params
|
|
120
|
-
|
|
121
|
-
function
|
|
122
|
-
|
|
241
|
+
function get_object_source_url(catalogType: string, objectId: number, params?: Object | string): string;
|
|
242
|
+
|
|
243
|
+
function GetTalentPoolObjectsList(personId: number, addFuncSubordinates: boolean, hideDissmissed: boolean, vBossType: unknown, careerReserveType: number): PersonnelReserveCatalogDocumentTopElem[];
|
|
244
|
+
|
|
245
|
+
function GetRequiredQualificationsList(personId: number, searchList: string, catalogList?: boolean): {
|
|
246
|
+
id: number;
|
|
247
|
+
name: string;
|
|
248
|
+
status: string;
|
|
249
|
+
expiration_date: Date;
|
|
250
|
+
base: string;
|
|
251
|
+
}[];
|
|
252
|
+
|
|
253
|
+
function get_recommended_materials(personId: number, searchList: string, catalogList?: boolean, rootId?: number): {
|
|
254
|
+
id: number;
|
|
255
|
+
name: string;
|
|
256
|
+
status: string;
|
|
257
|
+
section_id: string;
|
|
258
|
+
last_viewing_date: Date;
|
|
259
|
+
base: string;
|
|
260
|
+
}[];
|
|
261
|
+
|
|
123
262
|
function set_var_eval(varNama: string, curVars: unknown, eval: Object, evalType: string): unknown;
|
|
124
|
-
|
|
125
|
-
function
|
|
126
|
-
|
|
263
|
+
|
|
264
|
+
function get_var_eval(varNama: string, curVars: unknown, eval: Object, evalType: string): ReturnType<typeof set_var_eval>;
|
|
265
|
+
|
|
266
|
+
function convert_desc_to_html(desc: string): string;
|
|
267
|
+
|
|
268
|
+
function get_user_recommended_learning(userId: number, userTopElem?: CollaboratorDocumentTopElem): unknown;
|
|
127
269
|
|
|
128
270
|
/**
|
|
129
271
|
* Создание кэша по коду.
|
|
130
272
|
* @param {string} conditions - Код кэша.
|
|
131
|
-
* @param {
|
|
273
|
+
* @param {unknown} value - Payload.
|
|
132
274
|
* @param {number} duration - Время жизни кэша.
|
|
133
275
|
* @param {string} listName - Данные.
|
|
134
|
-
* @returns {unknown}
|
|
276
|
+
* @returns {unknown} -
|
|
135
277
|
*/
|
|
136
|
-
function set_user_data
|
|
278
|
+
function set_user_data(conditions: string, value: unknown, duration: number, listName?: string): true;
|
|
137
279
|
|
|
138
280
|
/**
|
|
139
281
|
* Получение кэша по коду.
|
|
140
282
|
* @param {string} conditions - Код кэша.
|
|
141
|
-
* @returns {
|
|
283
|
+
* @returns {T | null} Значение кэша.
|
|
142
284
|
*/
|
|
143
|
-
function get_user_data(conditions:
|
|
144
|
-
|
|
145
|
-
function
|
|
146
|
-
|
|
285
|
+
function get_user_data<T>(conditions: unknown[] | string): T | null;
|
|
286
|
+
|
|
287
|
+
function remove_user_data(key: string, listName?: string): boolean;
|
|
288
|
+
|
|
289
|
+
function remove_user_data_by_prefix(key: string): true;
|
|
290
|
+
|
|
291
|
+
function obtain_text_area(docId: number, docTargetTopElem: XmlTopElem): XmlTopElem;
|
|
292
|
+
|
|
147
293
|
function get_host_name(url: string): string;
|
|
148
|
-
|
|
149
|
-
function
|
|
150
|
-
|
|
151
|
-
function
|
|
152
|
-
|
|
153
|
-
function
|
|
154
|
-
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
-
function
|
|
158
|
-
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
function
|
|
294
|
+
|
|
295
|
+
function get_cur_host_name(hostTopElem: XmlTopElem, request: Request): string;
|
|
296
|
+
|
|
297
|
+
function get_cur_host_path(hostTopElem: XmlTopElem, request: Request): ReturnType<typeof get_cur_host_path_by_url>;
|
|
298
|
+
|
|
299
|
+
function get_cur_host_path_by_url(hostTopElem: XmlTopElem, url: string): string;
|
|
300
|
+
|
|
301
|
+
function get_cur_hosts(request: Object): HostCatalogDocumentTopElem[];
|
|
302
|
+
|
|
303
|
+
function get_cur_host(request: Object): HostDocumentTopElem | null;
|
|
304
|
+
|
|
305
|
+
function is_correct_question(fldquestion: unknown, itemTopElem: XmlTopElem): number | boolean | null;
|
|
306
|
+
|
|
307
|
+
function save_cur_object_doc(object: XmlDocument, env: Env): void;
|
|
308
|
+
|
|
309
|
+
function build_query_url(url: string, hostAndPath: string): string;
|
|
310
|
+
|
|
311
|
+
function build_relative_url(url: string): string;
|
|
312
|
+
|
|
313
|
+
function set_modified_response_status(requestTarget: Request, url: string, dtLastModified?: Date): {
|
|
314
|
+
FilePathExists: boolean | null;
|
|
315
|
+
ResponseStatus: number;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
function str_utc_mime_date(date: Date): string;
|
|
319
|
+
|
|
320
|
+
function get_tracking_url(fldLocation: ExchangeListsBase["locations"], curHostPath: string): string;
|
|
321
|
+
|
|
322
|
+
function create_resource_from_attacment(attachment: Object, personId: number, personTopElem: XmlTopElem): ResourceDocument;
|
|
323
|
+
|
|
324
|
+
function get_key_positions_list(personId: number, struct: Object): unknown[];
|
|
162
325
|
|
|
163
326
|
/**
|
|
164
327
|
* Формирует content-type из Url файла.
|
|
165
328
|
* @param {string} url - Url файла.
|
|
166
329
|
* @returns {string} Content-Type значение.
|
|
167
330
|
*/
|
|
168
|
-
function url_std_content_type(url: string):
|
|
331
|
+
function url_std_content_type(url: string): string;
|
|
169
332
|
|
|
170
333
|
/**
|
|
171
334
|
* Возвращает DOTNETCORE-VFS=='1' из AppConfig.
|
|
@@ -177,9 +340,8 @@ declare namespace tools_web {
|
|
|
177
340
|
* Отправка файла в response stream.
|
|
178
341
|
* @param {string} url - Url файла.
|
|
179
342
|
* @param {Request} request - Объект запроса Request.
|
|
180
|
-
* @returns {unknown}.
|
|
181
343
|
*/
|
|
182
|
-
function write_url_to_response(url: string, request: Object):
|
|
344
|
+
function write_url_to_response(url: string, request: Object): void;
|
|
183
345
|
|
|
184
346
|
/**
|
|
185
347
|
* Декоратор для простого шифрования функцией StrSimpleEncrypt({objectId}_{date}).
|
|
@@ -188,105 +350,219 @@ declare namespace tools_web {
|
|
|
188
350
|
* @returns {string} Значение StrSimpleEncrypt({objectId}_{date}).
|
|
189
351
|
*/
|
|
190
352
|
function encrypt_launch_id(launchId: string, endDate: Date): string;
|
|
353
|
+
|
|
191
354
|
function decrypt_launch_id(launchId: string): unknown;
|
|
192
|
-
|
|
193
|
-
function
|
|
355
|
+
|
|
356
|
+
function get_valid_url(url: string): string;
|
|
357
|
+
|
|
358
|
+
function get_active_web_template_hash(mode: string, accessLevel: string, accessRole: string, siteId: string, webDesignId: string): string;
|
|
359
|
+
|
|
194
360
|
function build_submatched_string(sourceString: string, realString: string, destString: string): unknown;
|
|
361
|
+
|
|
195
362
|
function get_auth_hash(source: string): unknown;
|
|
363
|
+
|
|
196
364
|
function get_user_id_by_login(authLogin: string, authParams: Object): unknown;
|
|
365
|
+
|
|
197
366
|
function set_cookie_auth(request: unknown, curHost: unknown, auth: Object): unknown;
|
|
367
|
+
|
|
198
368
|
function set_x_auth_id(request: unknown, curUser: CurUser, curHost: unknown): unknown;
|
|
369
|
+
|
|
199
370
|
function get_portal_auth_type_obj(request: unknown, curHost: unknown, arrIdmClaims: unknown[]): unknown;
|
|
200
371
|
|
|
201
372
|
/**
|
|
202
373
|
* Инициализаяция пользователя.
|
|
203
|
-
* @param {Request}
|
|
204
|
-
* @param {object}
|
|
205
|
-
* @returns {
|
|
374
|
+
* @param {Request} req - Объект Request.
|
|
375
|
+
* @param {object} query - Параметры.
|
|
376
|
+
* @returns {object} Результат инициализации пользователя из запроса.
|
|
206
377
|
*/
|
|
207
|
-
function user_init(
|
|
378
|
+
function user_init(req: Request, query: Object): {
|
|
379
|
+
auth_type: string | undefined;
|
|
380
|
+
anonymous: boolean;
|
|
381
|
+
auth_login: string | null | undefined;
|
|
382
|
+
access_time_start: number;
|
|
383
|
+
access_time_end: number;
|
|
384
|
+
error_code: string;
|
|
385
|
+
error_text: string;
|
|
386
|
+
redirect: string;
|
|
387
|
+
access: boolean;
|
|
388
|
+
};
|
|
389
|
+
|
|
208
390
|
function GetProjectManagementObjectsList(personId: number, arrCurLng: unknown[], addFuncSubordinates: boolean, hIdeDissmissed: boolean, showProjectManagers: boolean, overdue: boolean, projectTree: boolean, checkTaskSeeRights: boolean, vBossType: unknown, struct: Object): unknown;
|
|
391
|
+
|
|
209
392
|
function CheckRelativeFileVisibility(fldFile: unknown, userId: number, objectId: number, objectTopElem: XmlTopElem): unknown;
|
|
393
|
+
|
|
210
394
|
function get_date_passed_string(date: Date, curLngId: string): unknown;
|
|
395
|
+
|
|
211
396
|
function get_date_remain_string(date: Date, curLngId: string): unknown;
|
|
397
|
+
|
|
212
398
|
function get_host_obj(request: unknown): unknown;
|
|
399
|
+
|
|
213
400
|
function get_cur_lng_obj(id: Object): unknown;
|
|
401
|
+
|
|
214
402
|
function get_cur_object_by_field(env: unknown, field: string): unknown;
|
|
403
|
+
|
|
215
404
|
function get_cur_web_design(env: unknown): unknown;
|
|
405
|
+
|
|
216
406
|
function get_cur_site(env: unknown): unknown;
|
|
407
|
+
|
|
217
408
|
function get_cur_web_mode(env: unknown): unknown;
|
|
409
|
+
|
|
218
410
|
function get_cur_env(request: unknown): unknown;
|
|
411
|
+
|
|
219
412
|
function get_cur_env_url(env: unknown): unknown;
|
|
413
|
+
|
|
220
414
|
function get_default_lng_web(user: Object): unknown;
|
|
415
|
+
|
|
221
416
|
function get_profiling_statistic_rec_id(): unknown;
|
|
417
|
+
|
|
222
418
|
function start_profiling_record(params: Object): unknown;
|
|
419
|
+
|
|
223
420
|
function finish_profiling_record(id: string): unknown;
|
|
421
|
+
|
|
224
422
|
function GetVacancyResponseStatus(obVacancyResponse: unknown, vacancyResponseId: number, curLngCommon: unknown): unknown;
|
|
423
|
+
|
|
225
424
|
function html_decode(s: string): string;
|
|
425
|
+
|
|
226
426
|
function html_to_imput_value(s: string): unknown;
|
|
427
|
+
|
|
227
428
|
let content_types: XmlElem<ToolsWebContentTypes>;
|
|
429
|
+
|
|
228
430
|
function get_app_ui(): unknown;
|
|
431
|
+
|
|
229
432
|
function set_st_category(curUser: CurUser): unknown;
|
|
433
|
+
|
|
230
434
|
function get_child_by_key_value(fldSource: unknown, key: string, defaultValue: string): unknown;
|
|
435
|
+
|
|
231
436
|
function get_object_image_url(object: Object, dispDefault: boolean): unknown;
|
|
437
|
+
|
|
232
438
|
function str_file_size(size: number, dispDefault: boolean): unknown;
|
|
439
|
+
|
|
233
440
|
function get_base_url_path(env: Object): unknown;
|
|
441
|
+
|
|
234
442
|
function set_base_url_path(url: string, env: Object): unknown;
|
|
443
|
+
|
|
235
444
|
function get_menu_items(menuCode: string, levelsToShow: number, showDesc: boolean, cacheTime: number): unknown;
|
|
445
|
+
|
|
236
446
|
function get_secid(sessionId: number): unknown;
|
|
447
|
+
|
|
237
448
|
function check_secid(sum: string, sessionId: number): unknown;
|
|
449
|
+
|
|
238
450
|
function clear_person_pict_cache(personId: number): unknown;
|
|
451
|
+
|
|
239
452
|
function get_item_objectives_value(fldItem: unknown): unknown;
|
|
453
|
+
|
|
240
454
|
function obtain_item_objectives_value(fldTarget: unknown, rValue: unknown, action: string): unknown;
|
|
455
|
+
|
|
241
456
|
function send_message(vApplication: unknown, message: string, domain: string, aUser: unknown, options: Object): unknown;
|
|
457
|
+
|
|
242
458
|
function wtmobile_get_auth_inner_codename(url: string): string;
|
|
459
|
+
|
|
243
460
|
function wtmobile_get_config(entry: unknown): unknown;
|
|
461
|
+
|
|
244
462
|
function replace_condition_operators(conditions: Object, value: number): unknown;
|
|
463
|
+
|
|
245
464
|
function get_header_obj(header: string): unknown;
|
|
465
|
+
|
|
246
466
|
function get_multipart_array(request: unknown): unknown;
|
|
467
|
+
|
|
247
468
|
function get_game_rating(curUser: CurUser, checkLevel: boolean, currencyTypeId: string, allLevel: boolean, dispSub: boolean, subDepth: number, grpColl: number, paging: Object, curUserId: number, range: boolean, amntCollsRating: number, gap: string, samePlace: boolean, showTopRating: boolean, orgId: number): unknown;
|
|
469
|
+
|
|
248
470
|
function get_game_rating_awards_or_badges(personTopElem: XmlTopElem, allLevel: boolean, checkLevel: boolean, levelId: number, amntCollsRating: number, dispSub: boolean, subdivId: number, subdivNum: number, currencyTypeId: string, grpColl: number, paging: Object, range: boolean): unknown;
|
|
471
|
+
|
|
249
472
|
function get_game_rating_all(allLevel: boolean, checkLevel: boolean, levelId: number, dispSub: boolean, subdivId: number, subdivNum: number, currencyTypeId: string, grpColl: number, paging: Object, range: boolean, amntCollsRating: number, samePlace: boolean, showTopRating: boolean, orgId: number): unknown;
|
|
473
|
+
|
|
250
474
|
function get_timezone(objectId: number, catObject: unknown, returnNull: boolean): unknown;
|
|
475
|
+
|
|
251
476
|
function get_timezone_date(date: Date, catTimeZone1: unknown, catTimeZone2: unknown): unknown;
|
|
477
|
+
|
|
252
478
|
function get_class_for_status(status: string): unknown;
|
|
479
|
+
|
|
253
480
|
function get_url_query(url: string): unknown;
|
|
481
|
+
|
|
254
482
|
function transform_fancy_url(source: unknown): unknown;
|
|
483
|
+
|
|
255
484
|
function get_lng_fullname(personTopElem: XmlTopElem, fldLng: unknown): string;
|
|
485
|
+
|
|
256
486
|
function get_language_desc(desc: string, env: Object): string;
|
|
257
|
-
|
|
258
|
-
function
|
|
259
|
-
|
|
487
|
+
|
|
488
|
+
function set_override_web_params(curParamsTarget: unknown, catOverrIdeWebTemplate: unknown): boolean;
|
|
489
|
+
|
|
490
|
+
function access_exists(fldAccess: unknown): boolean;
|
|
491
|
+
|
|
492
|
+
function str_period_date(date: Date, curLngWeb: Env["curLngWeb"]): string;
|
|
493
|
+
|
|
260
494
|
let web_rules_obj: XmlElem<unknown | null>;
|
|
261
|
-
|
|
262
|
-
function
|
|
263
|
-
|
|
264
|
-
function
|
|
265
|
-
|
|
266
|
-
function
|
|
267
|
-
|
|
268
|
-
function
|
|
269
|
-
|
|
270
|
-
function
|
|
271
|
-
|
|
272
|
-
function
|
|
273
|
-
|
|
274
|
-
function
|
|
275
|
-
|
|
276
|
-
function
|
|
277
|
-
|
|
278
|
-
function
|
|
279
|
-
|
|
280
|
-
function
|
|
281
|
-
|
|
282
|
-
function
|
|
283
|
-
|
|
284
|
-
function
|
|
285
|
-
|
|
286
|
-
function
|
|
287
|
-
|
|
288
|
-
function
|
|
289
|
-
|
|
290
|
-
function
|
|
291
|
-
|
|
495
|
+
|
|
496
|
+
function get_enabled_web_rules(): WebRuleCatalogDocumentTopElem[];
|
|
497
|
+
|
|
498
|
+
function get_std_web_rules(): ReturnType<typeof get_enabled_web_rules>;
|
|
499
|
+
|
|
500
|
+
function clear_std_web_rules(): true;
|
|
501
|
+
|
|
502
|
+
function get_mode_clean_url(mode: string, objectId?: number, params?: Object): string;
|
|
503
|
+
|
|
504
|
+
function get_web_mode_clean_url(webMode: Object, objectId?: number, params?: Object): ReturnType<typeof get_mode_clean_url>;
|
|
505
|
+
|
|
506
|
+
function convert_mode_clean_url(url: string): ReturnType<typeof get_mode_clean_url>;
|
|
507
|
+
|
|
508
|
+
function get_clean_url_exc_query(url: string, excParams: string, params: Object): ReturnType<typeof get_mode_clean_url>;
|
|
509
|
+
|
|
510
|
+
function obtain_shared_temp_file(suffix: string): string;
|
|
511
|
+
|
|
512
|
+
function encode_url_reserved(url: string): string;
|
|
513
|
+
|
|
514
|
+
function decode_url_reserved(url: string): string;
|
|
515
|
+
|
|
516
|
+
function get_remote_action_param(paramNames: string[], topElem: RemoteActionDocumentTopElem): unknown;
|
|
517
|
+
|
|
518
|
+
function check_collection_access(curUser: Object, object: Object, personAccessType: string): boolean;
|
|
519
|
+
|
|
520
|
+
function get_empty_env(): Env;
|
|
521
|
+
|
|
522
|
+
function get_empty_request(): Session;
|
|
523
|
+
|
|
524
|
+
function get_admin_request(): Request;
|
|
525
|
+
|
|
526
|
+
function parse_multiple_parameter(param: Object | unknown[] | string): unknown[];
|
|
527
|
+
|
|
528
|
+
function get_md5_id(hashStr: string): string;
|
|
529
|
+
|
|
530
|
+
function check_object(xmCurObject: XmlElem<unknown>, type: string): boolean;
|
|
531
|
+
|
|
532
|
+
function check_redirect_url(url: string, requestUrl: string): boolean;
|
|
533
|
+
|
|
534
|
+
function check_web_rule_by_url(url: string, request: Request): boolean;
|
|
535
|
+
|
|
536
|
+
function check_learning_schedule(learning: number | XmlTopElem, objectTopElem?: XmlTopElem): {
|
|
537
|
+
error: 0 | 1;
|
|
538
|
+
error_text: string;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
function set_user_status<T>(curUserId: number, status: T): ReturnType<typeof get_user_data> | T;
|
|
542
|
+
|
|
543
|
+
function get_user_status(curUserId: number): ReturnType<typeof get_user_data>;
|
|
544
|
+
|
|
545
|
+
function terminate_learning_connection(objectId: number): boolean;
|
|
546
|
+
|
|
547
|
+
function create_learning_connection(objectTopElem: XmlTopElem, userTopElem: XmlTopElem, partCode: string | null | undefined): number;
|
|
548
|
+
|
|
549
|
+
function log_learning_connection(type: string, connection: {
|
|
550
|
+
id: unknown;
|
|
551
|
+
active_learning_id: unknown;
|
|
552
|
+
course_id: unknown;
|
|
553
|
+
user_id: unknown;
|
|
554
|
+
user_code: unknown;
|
|
555
|
+
user_fullname: unknown;
|
|
556
|
+
part_code: unknown;
|
|
557
|
+
}): void;
|
|
558
|
+
|
|
559
|
+
function set_data_cache(key: string, value: Object, duration: number): boolean;
|
|
560
|
+
|
|
561
|
+
function get_data_cache<T>(key: string): T | null;
|
|
562
|
+
|
|
563
|
+
function get_data_cache_by_pattern(pattern: string): unknown | null | [];
|
|
564
|
+
|
|
565
|
+
function remove_data_cache(key: string): unknown | null;
|
|
566
|
+
|
|
567
|
+
function is_json(text: string): boolean;
|
|
292
568
|
}
|