@wshcmx/types 11.0.0-beta1 → 11.0.0-rc.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 +1 -1
- package/README.md +15 -27
- 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 +3873 -2079
- package/lib/database/index.d.ts +58 -0
- package/lib/date/index.d.ts +4 -2
- package/lib/error/index.d.ts +1 -3
- package/lib/eslint.config.js +47 -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 +2 -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 +0 -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 +219 -28
- 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/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/scripts/check-version.sh +3 -0
- package/lib/.eslintrc.json +0 -54
- package/lib/defaultdb/index.d.ts +0 -27
package/lib/tools_app/index.d.ts
CHANGED
|
@@ -28,5 +28,5 @@ declare namespace tools_app {
|
|
|
28
28
|
function save_cur_application_settings(lastApplication: unknown, newSettings: unknown): unknown;
|
|
29
29
|
function save_application_settings(applicationId: number, settingsTopElem: XmlTopElem): unknown;
|
|
30
30
|
function save_application_agents(aAgents: unknown, noWvars: boolean): unknown;
|
|
31
|
-
function save_application_object(object:
|
|
31
|
+
function save_application_object(object: XmlDocument, codeWvar: unknown, applicationId: number): unknown;
|
|
32
32
|
}
|
package/lib/tools_ass/index.d.ts
CHANGED
|
@@ -1,32 +1,61 @@
|
|
|
1
1
|
declare namespace tools_ass {
|
|
2
|
-
function assessment_person_filling(source:
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
function assessment_person_filling<T>(source: T, personId: number, personDoc?: CollaboratorDocumentTopElem | SubdivisionDocumentTopElem | OrgCatalogDocumentTopElem): void;
|
|
3
|
+
|
|
4
|
+
function is_dismissed_by_id(personId: CollaboratorDocumentTopElem): boolean | null;
|
|
5
|
+
|
|
6
|
+
function pick_experts(assessmentId: number, personId: number, participant: AssessmentAppraiseDocumentParticipant, isHuman: boolean, log: string | null, isClean: boolean, notDismissed: boolean): number[];
|
|
7
|
+
|
|
8
|
+
function strip_workflow_from_assessment(curStatus: unknown, curType: unknown): number | null;
|
|
9
|
+
|
|
10
|
+
function generate_participant_by_plan(assessmentId: number, participantCode: unknown, assessmentPlanId: number, expertId: number, newPa: boolean): boolean;
|
|
11
|
+
|
|
12
|
+
function generate_participant(assessmentId: number, participant: AssessmentAppraiseDocumentParticipant, auditory: AssessmentPlanDocumentTopElem, auditoryPersonDoc: AssessmentPlanDocumentTopElem | null, assessmentPlan: AssessmentPlanDocumentTopElem, expertId: number, isHuman: boolean, log: string | null, newPa: boolean): void;
|
|
13
|
+
|
|
14
|
+
function get_assessment_parameter(assessmentDoc: AssessmentAppraiseDocumentTopElem, status: string, parameter: string): boolean;
|
|
15
|
+
|
|
16
|
+
function log_log(log: string, t: string): string;
|
|
17
|
+
|
|
18
|
+
function steal_competence_mark_from_tests(personId: number, competence: CompetenceDocumentTopElem): null | number;
|
|
19
|
+
|
|
20
|
+
function development_2_education(developmentPlanId: string, budgetPeriodId: string): boolean;
|
|
21
|
+
|
|
22
|
+
function check_access_matrix(accessMatrixId: number, personId: number): undefined | AssessmentAppraiseMatrixDocumentTimeTableScheduleTarget;
|
|
23
|
+
|
|
24
|
+
function change_pa_values(assessmentPlan: AssessmentPlanDocumentTopElem, status: unknown, fields: string, fVals: string): boolean;
|
|
25
|
+
|
|
26
|
+
function place_pa_comment(paId: number, userId: number, phase: undefined | string, comment: string): boolean;
|
|
27
|
+
|
|
28
|
+
function custom_expert_approval(expertPersonId: number, curAssessmentPlan: AssessmentPlanDocumentTopElem, status: string, flagApprove: boolean | "flush", paId?: number | undefined): boolean;
|
|
29
|
+
|
|
30
|
+
function lock_period(assessmentPlan: AssessmentPlanDocument, periodPersonId: number, isDone: 1 | 0): boolean;
|
|
31
|
+
|
|
32
|
+
function spawn_new_version(assessmentPlan: AssessmentPlanDocument, fields: string, fVals: string, status: string | undefined): void;
|
|
33
|
+
|
|
34
|
+
function generate_bonuses(assessmentId: number, bonusProfileId: number): void;
|
|
35
|
+
|
|
36
|
+
function get_workflow_state_parameter(curState: WorkflowFieldsStatesBaseState, paramName: string): string | undefined;
|
|
37
|
+
|
|
38
|
+
function readParametersV2(paramStr: string, curPa?: unknown): object;
|
|
39
|
+
|
|
40
|
+
function generate_position_assessment_form(assessmentId: number): void;
|
|
41
|
+
|
|
42
|
+
function generate_assessment_plan(assessmentId: number, planOnly: boolean, isClean: boolean, kill: boolean, floorBound: number | undefined, account: number | undefined, groupId: number | null, auditoriesIds: undefined | null | string | number): void;
|
|
43
|
+
|
|
44
|
+
function link_plans_and_pas(assessmentId: number): void;
|
|
45
|
+
|
|
46
|
+
function create_event_assessment_plans(eventId: number): void;
|
|
47
|
+
|
|
48
|
+
function generate_poll_procedure_result_card(pollProcedureId: number, pollProcedureDoc: PollProcedureDocument, personId: number, pollId: number, poll: PollDocumentTopElem, doNotify: boolean): number;
|
|
49
|
+
|
|
50
|
+
function generate_procedure_plan(assessmentAppraiseId: number, docAssessmentAppraise: AssessmentAppraiseDocument, addOnlyNew: boolean): boolean;
|
|
51
|
+
|
|
52
|
+
function generate_kpi_values(budgetPeriodId: number, budgetPeriodTopElem: BudgetPeriodDocumentTopElem, kpiId: number, kpiTopElem: KpiDocumentTopElem): null | number;
|
|
53
|
+
|
|
54
|
+
function manual_run_bonus_calc(): void;
|
|
55
|
+
|
|
56
|
+
function run_bonus_calc(assessmentId: number, budgetPeriodId: number): null | number;
|
|
57
|
+
|
|
58
|
+
function ui_set_competence_plan<T>(selRows: T[], flagMark: boolean): boolean;
|
|
59
|
+
|
|
60
|
+
function ass_create_notification(typeParam: number | string, objectIdParam: number | string): void;
|
|
61
|
+
}
|
|
@@ -16,7 +16,7 @@ declare namespace tools_i18n {
|
|
|
16
16
|
code: string;
|
|
17
17
|
load_path: unknown[];
|
|
18
18
|
};
|
|
19
|
-
function get_const_key(locale: string, code: string,
|
|
19
|
+
function get_const_key(locale: string, code: string, param: string): unknown;
|
|
20
20
|
function get_locale_cache_field(fieldName: string): unknown;
|
|
21
21
|
function put_locale_cache_field(fieldName: string, fieldValue: string): unknown;
|
|
22
22
|
function get_const_ids_from_func_text(sourceCode: string): unknown;
|
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,43 +35,80 @@ 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):
|
|
38
|
+
function get_sum_sid(id: string, sessionId: number): number;
|
|
39
|
+
|
|
35
40
|
function check_sum_sid(id: string, sum: string, sessionId: number): unknown;
|
|
41
|
+
|
|
36
42
|
function custom_elems_filling(fldTarget: unknown, source: Object, arrCustomElems: unknown[], params: Object): unknown;
|
|
43
|
+
|
|
37
44
|
function web_custom_elems_filling(catalog: unknown, topId: number, source: unknown, requestForm: unknown, valueFlag: unknown, charset: string, arrFields: unknown[]): unknown;
|
|
45
|
+
|
|
38
46
|
function update_object_from_context(object: unknown, context: Object, arrFieldNames: unknown[], prefix: string): unknown;
|
|
47
|
+
|
|
39
48
|
function get_query_string_from_url(url: string, flag: unknown, params: unknown): unknown;
|
|
49
|
+
|
|
40
50
|
function get_query_string(flag: unknown, params: unknown): unknown;
|
|
51
|
+
|
|
41
52
|
function get_url_protocol(url: string): unknown;
|
|
53
|
+
|
|
42
54
|
function set_url_protocol(url: string): unknown;
|
|
55
|
+
|
|
43
56
|
function get_cur_lng_name(text: string, shortId: string): string;
|
|
44
|
-
|
|
45
|
-
function
|
|
46
|
-
|
|
57
|
+
|
|
58
|
+
function check_access(source: unknown, personDocId: number, personDoc: CollaboratorDocument, session: Session): boolean;
|
|
59
|
+
|
|
60
|
+
function get_web_param(listParamsTarget: unknown, paramName: string, defaultValue: string, emptyFlag: boolean, overrideWebTemplateId: string): unknown;
|
|
61
|
+
|
|
62
|
+
function set_web_params(listParamsTarget: unknown, listWvars: unknown, rewriteFlag: boolean, overrideWebTemplateId: number): unknown;
|
|
63
|
+
|
|
47
64
|
function write_custom_web_template(customWebTemplate: Object): unknown;
|
|
48
|
-
|
|
65
|
+
|
|
66
|
+
function get_override_web_template(overrideWebTemplateId: number, session: Session, curUserId: number, curUser: CurUser, curAnonymousAccess: unknown, activeWebTemplateTopElem: XmlTopElem, adding: boolean): unknown;
|
|
67
|
+
|
|
49
68
|
function get_override_web_templates(session: Session, zone: Object, curActiveWebTemplate: unknown, addWebTemplate: boolean, envObj: Object): unknown;
|
|
69
|
+
|
|
50
70
|
function place_zone(zone: string, createFCache: boolean, lPEPreview: boolean): unknown;
|
|
51
|
-
|
|
71
|
+
|
|
72
|
+
function place_override_web_template(overrideWebTemplateId: number, insertCustomCodeParams: Object): unknown;
|
|
73
|
+
|
|
52
74
|
function get_operation_script(oPERATIONId: number, sSCRIPTTYPE: unknown, oPARAMS: unknown): unknown;
|
|
75
|
+
|
|
53
76
|
function eval_operation_script(oPERATIONId: number, sSCRIPTTYPE: unknown, oPARAMS: unknown): unknown;
|
|
77
|
+
|
|
54
78
|
function is_moderator_forum(forumId: number, userId: number, forumTopElem: XmlTopElem): unknown;
|
|
79
|
+
|
|
55
80
|
function is_privilege_collaborator(forumEntryId: number, userTopElem: XmlTopElem, userId: number, forumEntryTopElem: XmlTopElem): unknown;
|
|
81
|
+
|
|
56
82
|
function is_forum_readed(forumId: number, userId: number): unknown;
|
|
83
|
+
|
|
57
84
|
function check_forum_entry_access(catForumEntry: unknown, userTopElem: XmlTopElem, userId: number, forumTopElem: XmlTopElem): unknown;
|
|
85
|
+
|
|
58
86
|
function remove_forum_entry(forumEntryId: number): unknown;
|
|
87
|
+
|
|
59
88
|
function close_forum_entry(forumEntryId: number, forumEntry: unknown): unknown;
|
|
89
|
+
|
|
60
90
|
function draw_calendar(objectName: unknown, objectValue: unknown, format: unknown): unknown;
|
|
91
|
+
|
|
61
92
|
function web_files_process(sourceFiles: unknown): unknown;
|
|
93
|
+
|
|
62
94
|
function convert_xhttp_res(textArea: unknown, sourceDesc: unknown): unknown;
|
|
95
|
+
|
|
63
96
|
function get_my_person_object_link_card(cATALOG: unknown, uSERId: number, dOCHIMSELF: XmlDocument, mAKENEWONABSENCE: unknown): unknown;
|
|
97
|
+
|
|
64
98
|
function get_person_object_info(catalog: string, userId: number, userTopElem: XmlTopElem): unknown;
|
|
99
|
+
|
|
65
100
|
function set_person_object_info(catalog: string, userId: number, userTopElem: XmlTopElem, aObjectsMeta: unknown): unknown;
|
|
101
|
+
|
|
66
102
|
function get_object_owners(objectId: number, catalog: string): unknown;
|
|
103
|
+
|
|
67
104
|
function insert_custom_code(customWebTemplateId: number, customWebTemplateTopElem: XmlTopElem, eval: boolean, naked: boolean, depth: number, aOfFldNativeParamsArr: unknown, externalEnvelope: boolean): string;
|
|
105
|
+
|
|
68
106
|
function place_xaml(customWebTemplateId: number, cWebTemplateTopElem: XmlTopElem, placeXamlParams: Object): unknown;
|
|
107
|
+
|
|
69
108
|
function place_xaml_player(customWebTemplate: number, curWebDesign: unknown, request: unknown, placeXamlParams: Object): unknown;
|
|
70
|
-
|
|
109
|
+
|
|
110
|
+
function convert_xss(text: string, type?: string): string;
|
|
111
|
+
|
|
71
112
|
function xss_neutralize(text: string): unknown;
|
|
72
113
|
|
|
73
114
|
/**
|
|
@@ -78,35 +119,58 @@ declare namespace tools_web {
|
|
|
78
119
|
* @returns {Websoft.RegExp.RegExp} Экземпляр библиотеки.
|
|
79
120
|
*/
|
|
80
121
|
function reg_exp_init(): Websoft.RegExp.RegExp;
|
|
122
|
+
|
|
81
123
|
function convert_bbcode_to_html(messageSource: string, objRegExp: unknown): unknown;
|
|
124
|
+
|
|
82
125
|
function convert_html_to_bbcode(messageSource: string, objRegExp: unknown): string;
|
|
126
|
+
|
|
83
127
|
function convert_bbtags_to_html(messageSource: string, objRegExp: unknown): unknown;
|
|
128
|
+
|
|
84
129
|
function get_bbcode_tag_ids(messageSource: string, objRegExp: unknown): unknown;
|
|
130
|
+
|
|
85
131
|
function clear_bbcode_from_html(messageSource: string, objRegExp: unknown): unknown;
|
|
132
|
+
|
|
86
133
|
function get_new_request_by_query(): unknown;
|
|
134
|
+
|
|
87
135
|
function update_community_authors(objectId: number, vAuthors: unknown, nbDelete: unknown): unknown;
|
|
136
|
+
|
|
88
137
|
function evaluate_remote_action(vRemoteActionDoc: unknown, request: unknown): unknown;
|
|
138
|
+
|
|
89
139
|
function Unsqueeze(txt: string, idx: number): unknown;
|
|
140
|
+
|
|
90
141
|
function get_collection_param(): unknown;
|
|
142
|
+
|
|
91
143
|
function external_eval(command: string, params: Object, env: unknown): unknown;
|
|
144
|
+
|
|
92
145
|
function env_to_script(env: Object): unknown;
|
|
146
|
+
|
|
93
147
|
function object_init(sessionTarget: Object, query: Object, objectEnvSave: boolean): unknown;
|
|
148
|
+
|
|
94
149
|
function get_column_width(type: string, mode: string): unknown;
|
|
150
|
+
|
|
95
151
|
function get_catalog_list_arrays(collection: Object, env: unknown, envLngCommon: unknown): unknown;
|
|
152
|
+
|
|
96
153
|
function check_session_user(request: unknown, userId: number): unknown;
|
|
97
154
|
|
|
98
155
|
/**
|
|
99
156
|
* Возвращает значение true/false в завимости от передаваемого параметра.
|
|
100
|
-
* @param {
|
|
157
|
+
* @param {unknown} o - Параметр.
|
|
101
158
|
* @returns {boolean} Значение аргумента в булевом представлении.
|
|
102
159
|
*/
|
|
103
|
-
function is_true(o:
|
|
160
|
+
function is_true(o: unknown): boolean;
|
|
161
|
+
|
|
104
162
|
function init_cur_active_web_template(env: unknown, create: boolean): unknown;
|
|
163
|
+
|
|
105
164
|
function save_cur_active_web_template(activeWebTemplateDocTopElem: XmlTopElem, finishSave: boolean): unknown;
|
|
165
|
+
|
|
106
166
|
function drop_active_web_templates(): unknown;
|
|
167
|
+
|
|
107
168
|
function get_session_lng(session: Session): unknown;
|
|
169
|
+
|
|
108
170
|
function check_site_access(personTopElem: XmlTopElem, site: Object): unknown;
|
|
171
|
+
|
|
109
172
|
function get_resource_url(objectId: number, session: Session): unknown;
|
|
173
|
+
|
|
110
174
|
function get_custom_web_template_url(templateId: number): unknown;
|
|
111
175
|
|
|
112
176
|
/**
|
|
@@ -116,48 +180,73 @@ declare namespace tools_web {
|
|
|
116
180
|
* @param {unknown} params - Параметры для определения хоста/сессии/etc.
|
|
117
181
|
* @returns {string} Url.
|
|
118
182
|
*/
|
|
119
|
-
function get_object_source_url(catalogType: string, objectId: number, params: Object):
|
|
183
|
+
function get_object_source_url(catalogType: string, objectId: number, params: Object): string;
|
|
184
|
+
|
|
120
185
|
function GetTalentPoolObjectsList(personId: number, addFuncSubordinates: boolean, hIdeDissmissed: boolean, vBossType: unknown, careerReserveType: number): unknown;
|
|
186
|
+
|
|
121
187
|
function GetRequiredQualificationsList(personId: number, searchList: string, catalogList: boolean): unknown;
|
|
188
|
+
|
|
122
189
|
function get_recommended_materials(personId: number, searchList: string, catalogList: boolean, rootId: number): unknown;
|
|
190
|
+
|
|
123
191
|
function set_var_eval(varNama: string, curVars: unknown, eval: Object, evalType: string): unknown;
|
|
192
|
+
|
|
124
193
|
function get_var_eval(varNama: string, curVars: unknown, eval: Object, evalType: string): unknown;
|
|
194
|
+
|
|
125
195
|
function convert_desc_to_html(desc: string): unknown;
|
|
196
|
+
|
|
126
197
|
function get_user_recommended_learning(userId: number, userTopElem: XmlTopElem): unknown;
|
|
127
198
|
|
|
128
199
|
/**
|
|
129
200
|
* Создание кэша по коду.
|
|
130
201
|
* @param {string} conditions - Код кэша.
|
|
131
|
-
* @param {
|
|
202
|
+
* @param {unknown} value - Payload.
|
|
132
203
|
* @param {number} duration - Время жизни кэша.
|
|
133
204
|
* @param {string} listName - Данные.
|
|
134
|
-
* @returns {unknown}
|
|
205
|
+
* @returns {unknown} -
|
|
135
206
|
*/
|
|
136
|
-
function set_user_data
|
|
207
|
+
function set_user_data(conditions: string, value: unknown, duration: number, listName?: string): unknown;
|
|
137
208
|
|
|
138
209
|
/**
|
|
139
210
|
* Получение кэша по коду.
|
|
140
211
|
* @param {string} conditions - Код кэша.
|
|
141
|
-
* @returns {
|
|
212
|
+
* @returns {T | null} Значение кэша.
|
|
142
213
|
*/
|
|
143
|
-
function get_user_data(conditions:
|
|
214
|
+
function get_user_data<T>(conditions: string): T | null;
|
|
215
|
+
|
|
144
216
|
function remove_user_data(key: string, listName: string): unknown;
|
|
217
|
+
|
|
145
218
|
function remove_user_data_by_prefix(key: string): unknown;
|
|
219
|
+
|
|
146
220
|
function obtain_text_area(docId: number, docTargetTopElem: XmlTopElem): unknown;
|
|
221
|
+
|
|
147
222
|
function get_host_name(url: string): string;
|
|
223
|
+
|
|
148
224
|
function get_cur_host_name(hostTopElem: XmlTopElem, request: Object): string;
|
|
225
|
+
|
|
149
226
|
function get_cur_host_path(hostTopElem: XmlTopElem, request: Object): unknown;
|
|
227
|
+
|
|
150
228
|
function get_cur_host_path_by_url(hostTopElem: XmlTopElem, url: string): unknown;
|
|
229
|
+
|
|
151
230
|
function get_cur_hosts(request: Object): unknown;
|
|
231
|
+
|
|
152
232
|
function get_cur_host(request: Object): unknown;
|
|
233
|
+
|
|
153
234
|
function is_correct_question(fldquestion: unknown, itemTopElem: XmlTopElem): unknown;
|
|
235
|
+
|
|
154
236
|
function save_cur_object_doc(object: unknown, env: Object): unknown;
|
|
237
|
+
|
|
155
238
|
function build_query_url(url: string, hostAndPath: string): unknown;
|
|
239
|
+
|
|
156
240
|
function build_relative_url(url: string): unknown;
|
|
241
|
+
|
|
157
242
|
function set_modified_response_status(requestTarget: Object, url: string, dtLastModified: unknown): unknown;
|
|
243
|
+
|
|
158
244
|
function str_utc_mime_date(dtDate: unknown): unknown;
|
|
245
|
+
|
|
159
246
|
function get_tracking_url(fldLocation: unknown, curHostPath: unknown): unknown;
|
|
247
|
+
|
|
160
248
|
function create_resource_from_attacment(attachment: Object, personId: number, personTopElem: XmlTopElem): unknown;
|
|
249
|
+
|
|
161
250
|
function get_key_positions_list(personId: number, struct: Object): unknown;
|
|
162
251
|
|
|
163
252
|
/**
|
|
@@ -165,7 +254,7 @@ declare namespace tools_web {
|
|
|
165
254
|
* @param {string} url - Url файла.
|
|
166
255
|
* @returns {string} Content-Type значение.
|
|
167
256
|
*/
|
|
168
|
-
function url_std_content_type(url: string):
|
|
257
|
+
function url_std_content_type(url: string): string;
|
|
169
258
|
|
|
170
259
|
/**
|
|
171
260
|
* Возвращает DOTNETCORE-VFS=='1' из AppConfig.
|
|
@@ -177,9 +266,8 @@ declare namespace tools_web {
|
|
|
177
266
|
* Отправка файла в response stream.
|
|
178
267
|
* @param {string} url - Url файла.
|
|
179
268
|
* @param {Request} request - Объект запроса Request.
|
|
180
|
-
* @returns {unknown}.
|
|
181
269
|
*/
|
|
182
|
-
function write_url_to_response(url: string, request: Object):
|
|
270
|
+
function write_url_to_response(url: string, request: Object): void;
|
|
183
271
|
|
|
184
272
|
/**
|
|
185
273
|
* Декоратор для простого шифрования функцией StrSimpleEncrypt({objectId}_{date}).
|
|
@@ -188,105 +276,208 @@ declare namespace tools_web {
|
|
|
188
276
|
* @returns {string} Значение StrSimpleEncrypt({objectId}_{date}).
|
|
189
277
|
*/
|
|
190
278
|
function encrypt_launch_id(launchId: string, endDate: Date): string;
|
|
279
|
+
|
|
191
280
|
function decrypt_launch_id(launchId: string): unknown;
|
|
281
|
+
|
|
192
282
|
function get_valid_url(url: string): unknown;
|
|
283
|
+
|
|
193
284
|
function get_active_web_template_hash(mode: string, accessLevel: string, accessRole: string, siteId: string, webDesignId: string): unknown;
|
|
285
|
+
|
|
194
286
|
function build_submatched_string(sourceString: string, realString: string, destString: string): unknown;
|
|
287
|
+
|
|
195
288
|
function get_auth_hash(source: string): unknown;
|
|
289
|
+
|
|
196
290
|
function get_user_id_by_login(authLogin: string, authParams: Object): unknown;
|
|
291
|
+
|
|
197
292
|
function set_cookie_auth(request: unknown, curHost: unknown, auth: Object): unknown;
|
|
293
|
+
|
|
198
294
|
function set_x_auth_id(request: unknown, curUser: CurUser, curHost: unknown): unknown;
|
|
295
|
+
|
|
199
296
|
function get_portal_auth_type_obj(request: unknown, curHost: unknown, arrIdmClaims: unknown[]): unknown;
|
|
200
297
|
|
|
201
298
|
/**
|
|
202
299
|
* Инициализаяция пользователя.
|
|
203
|
-
* @param {Request}
|
|
204
|
-
* @param {object}
|
|
205
|
-
* @returns {
|
|
300
|
+
* @param {Request} req - Объект Request.
|
|
301
|
+
* @param {object} query - Параметры.
|
|
302
|
+
* @returns {object} Результат инициализации пользователя из запроса.
|
|
206
303
|
*/
|
|
207
|
-
function user_init(
|
|
304
|
+
function user_init(req: Request, query: Object): {
|
|
305
|
+
auth_type: string | undefined;
|
|
306
|
+
anonymous: boolean;
|
|
307
|
+
auth_login: string | null | undefined;
|
|
308
|
+
access_time_start: number;
|
|
309
|
+
access_time_end: number;
|
|
310
|
+
error_code: string;
|
|
311
|
+
error_text: string;
|
|
312
|
+
redirect: string;
|
|
313
|
+
access: boolean;
|
|
314
|
+
};
|
|
315
|
+
|
|
208
316
|
function GetProjectManagementObjectsList(personId: number, arrCurLng: unknown[], addFuncSubordinates: boolean, hIdeDissmissed: boolean, showProjectManagers: boolean, overdue: boolean, projectTree: boolean, checkTaskSeeRights: boolean, vBossType: unknown, struct: Object): unknown;
|
|
317
|
+
|
|
209
318
|
function CheckRelativeFileVisibility(fldFile: unknown, userId: number, objectId: number, objectTopElem: XmlTopElem): unknown;
|
|
319
|
+
|
|
210
320
|
function get_date_passed_string(date: Date, curLngId: string): unknown;
|
|
321
|
+
|
|
211
322
|
function get_date_remain_string(date: Date, curLngId: string): unknown;
|
|
323
|
+
|
|
212
324
|
function get_host_obj(request: unknown): unknown;
|
|
325
|
+
|
|
213
326
|
function get_cur_lng_obj(id: Object): unknown;
|
|
327
|
+
|
|
214
328
|
function get_cur_object_by_field(env: unknown, field: string): unknown;
|
|
329
|
+
|
|
215
330
|
function get_cur_web_design(env: unknown): unknown;
|
|
331
|
+
|
|
216
332
|
function get_cur_site(env: unknown): unknown;
|
|
333
|
+
|
|
217
334
|
function get_cur_web_mode(env: unknown): unknown;
|
|
335
|
+
|
|
218
336
|
function get_cur_env(request: unknown): unknown;
|
|
337
|
+
|
|
219
338
|
function get_cur_env_url(env: unknown): unknown;
|
|
339
|
+
|
|
220
340
|
function get_default_lng_web(user: Object): unknown;
|
|
341
|
+
|
|
221
342
|
function get_profiling_statistic_rec_id(): unknown;
|
|
343
|
+
|
|
222
344
|
function start_profiling_record(params: Object): unknown;
|
|
345
|
+
|
|
223
346
|
function finish_profiling_record(id: string): unknown;
|
|
347
|
+
|
|
224
348
|
function GetVacancyResponseStatus(obVacancyResponse: unknown, vacancyResponseId: number, curLngCommon: unknown): unknown;
|
|
349
|
+
|
|
225
350
|
function html_decode(s: string): string;
|
|
351
|
+
|
|
226
352
|
function html_to_imput_value(s: string): unknown;
|
|
353
|
+
|
|
227
354
|
let content_types: XmlElem<ToolsWebContentTypes>;
|
|
355
|
+
|
|
228
356
|
function get_app_ui(): unknown;
|
|
357
|
+
|
|
229
358
|
function set_st_category(curUser: CurUser): unknown;
|
|
359
|
+
|
|
230
360
|
function get_child_by_key_value(fldSource: unknown, key: string, defaultValue: string): unknown;
|
|
361
|
+
|
|
231
362
|
function get_object_image_url(object: Object, dispDefault: boolean): unknown;
|
|
363
|
+
|
|
232
364
|
function str_file_size(size: number, dispDefault: boolean): unknown;
|
|
365
|
+
|
|
233
366
|
function get_base_url_path(env: Object): unknown;
|
|
367
|
+
|
|
234
368
|
function set_base_url_path(url: string, env: Object): unknown;
|
|
369
|
+
|
|
235
370
|
function get_menu_items(menuCode: string, levelsToShow: number, showDesc: boolean, cacheTime: number): unknown;
|
|
371
|
+
|
|
236
372
|
function get_secid(sessionId: number): unknown;
|
|
373
|
+
|
|
237
374
|
function check_secid(sum: string, sessionId: number): unknown;
|
|
375
|
+
|
|
238
376
|
function clear_person_pict_cache(personId: number): unknown;
|
|
377
|
+
|
|
239
378
|
function get_item_objectives_value(fldItem: unknown): unknown;
|
|
379
|
+
|
|
240
380
|
function obtain_item_objectives_value(fldTarget: unknown, rValue: unknown, action: string): unknown;
|
|
381
|
+
|
|
241
382
|
function send_message(vApplication: unknown, message: string, domain: string, aUser: unknown, options: Object): unknown;
|
|
383
|
+
|
|
242
384
|
function wtmobile_get_auth_inner_codename(url: string): string;
|
|
385
|
+
|
|
243
386
|
function wtmobile_get_config(entry: unknown): unknown;
|
|
387
|
+
|
|
244
388
|
function replace_condition_operators(conditions: Object, value: number): unknown;
|
|
389
|
+
|
|
245
390
|
function get_header_obj(header: string): unknown;
|
|
391
|
+
|
|
246
392
|
function get_multipart_array(request: unknown): unknown;
|
|
393
|
+
|
|
247
394
|
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;
|
|
395
|
+
|
|
248
396
|
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;
|
|
397
|
+
|
|
249
398
|
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;
|
|
399
|
+
|
|
250
400
|
function get_timezone(objectId: number, catObject: unknown, returnNull: boolean): unknown;
|
|
401
|
+
|
|
251
402
|
function get_timezone_date(date: Date, catTimeZone1: unknown, catTimeZone2: unknown): unknown;
|
|
403
|
+
|
|
252
404
|
function get_class_for_status(status: string): unknown;
|
|
405
|
+
|
|
253
406
|
function get_url_query(url: string): unknown;
|
|
407
|
+
|
|
254
408
|
function transform_fancy_url(source: unknown): unknown;
|
|
409
|
+
|
|
255
410
|
function get_lng_fullname(personTopElem: XmlTopElem, fldLng: unknown): string;
|
|
411
|
+
|
|
256
412
|
function get_language_desc(desc: string, env: Object): string;
|
|
413
|
+
|
|
257
414
|
function set_override_web_params(curParamsTarget: unknown, catOverrIdeWebTemplate: unknown): unknown;
|
|
415
|
+
|
|
258
416
|
function access_exists(fldAccess: unknown): unknown;
|
|
417
|
+
|
|
259
418
|
function str_period_date(dt: unknown, curLngWeb: unknown): unknown;
|
|
419
|
+
|
|
260
420
|
let web_rules_obj: XmlElem<unknown | null>;
|
|
421
|
+
|
|
261
422
|
function get_enabled_web_rules(): unknown;
|
|
423
|
+
|
|
262
424
|
function get_std_web_rules(): unknown;
|
|
425
|
+
|
|
263
426
|
function clear_std_web_rules(): unknown;
|
|
427
|
+
|
|
264
428
|
function get_mode_clean_url(mode: string, objectId: number, params: Object): unknown;
|
|
429
|
+
|
|
265
430
|
function get_web_mode_clean_url(webMode: Object, objectId: number, params: Object): unknown;
|
|
431
|
+
|
|
266
432
|
function convert_mode_clean_url(url: string): unknown;
|
|
433
|
+
|
|
267
434
|
function get_clean_url_exc_query(url: string, excParams: string, params: Object): unknown;
|
|
435
|
+
|
|
268
436
|
function obtain_shared_temp_file(suffix: string): unknown;
|
|
437
|
+
|
|
269
438
|
function encode_url_reserved(url: string): unknown;
|
|
439
|
+
|
|
270
440
|
function decode_url_reserved(url: string): unknown;
|
|
441
|
+
|
|
271
442
|
function get_remote_action_param(aNames: unknown, tOPELEM: unknown): unknown;
|
|
443
|
+
|
|
272
444
|
function check_collection_access(curUser: Object, object: Object, personAccessType: string): unknown;
|
|
445
|
+
|
|
273
446
|
function get_empty_env(): unknown;
|
|
447
|
+
|
|
274
448
|
function get_empty_request(): unknown;
|
|
449
|
+
|
|
275
450
|
function get_admin_request(): unknown;
|
|
451
|
+
|
|
276
452
|
function parse_multiple_parameter(param: unknown): unknown;
|
|
453
|
+
|
|
277
454
|
function get_md5_id(hashStr: string): unknown;
|
|
455
|
+
|
|
278
456
|
function check_object(xmCurObject: unknown, type: string): unknown;
|
|
457
|
+
|
|
279
458
|
function check_redirect_url(url: string, requestUrl: string): unknown;
|
|
459
|
+
|
|
280
460
|
function check_web_rule_by_url(url: string, request: unknown): unknown;
|
|
461
|
+
|
|
281
462
|
function check_learning_schedule(learning: Object, objectTopElem: XmlTopElem): unknown;
|
|
463
|
+
|
|
282
464
|
function set_user_status(curUserId: number, status: Object): unknown;
|
|
465
|
+
|
|
283
466
|
function get_user_status(curUserId: number): unknown;
|
|
467
|
+
|
|
284
468
|
function terminate_learning_connection(objectId: number): unknown;
|
|
469
|
+
|
|
285
470
|
function create_learning_connection(objectTopElem: XmlTopElem, userTopElem: XmlTopElem, partCode: string): unknown;
|
|
471
|
+
|
|
286
472
|
function log_learning_connection(type: string, connection: Object): unknown;
|
|
473
|
+
|
|
287
474
|
function set_data_cache(key: string, value: Object, duration: number): unknown;
|
|
475
|
+
|
|
288
476
|
function get_data_cache(key: string): unknown;
|
|
477
|
+
|
|
289
478
|
function get_data_cache_by_pattern(pattern: string): unknown;
|
|
479
|
+
|
|
290
480
|
function remove_data_cache(key: string): unknown;
|
|
481
|
+
|
|
291
482
|
function is_json(text: string): unknown;
|
|
292
483
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
declare namespace tools_xshell {
|
|
2
2
|
let uni_settings: XmlElem<unknown | null>;
|
|
3
|
+
|
|
3
4
|
let dotnet_console: XmlElem<unknown | null>;
|
|
5
|
+
|
|
4
6
|
let dotnet_env_ext: XmlElem<unknown | null>;
|
|
7
|
+
|
|
5
8
|
let dotnet_auth: XmlElem<unknown | null>;
|
|
9
|
+
|
|
6
10
|
let dotnet_utils: XmlElem<unknown | null>;
|
|
7
11
|
}
|
package/lib/tsconfig.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"target": "ES5",
|
|
4
|
+
"module": "Preserve",
|
|
5
5
|
"noImplicitAny": true,
|
|
6
6
|
"noImplicitThis": true,
|
|
7
7
|
"strictNullChecks": true,
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
},
|
|
16
16
|
"include": [
|
|
17
17
|
"**/*.d.ts",
|
|
18
|
-
".
|
|
18
|
+
"eslint.config.js"
|
|
19
19
|
]
|
|
20
20
|
}
|
package/lib/ui_tools/index.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
declare namespace ui_tools {
|
|
2
2
|
function eval_entry_action(entry: Object): unknown;
|
|
3
|
+
|
|
3
4
|
function set_clipboard(value: string, title: string, showMessage: boolean): unknown;
|
|
5
|
+
|
|
4
6
|
function get_richtext_editor_source(item: Object): unknown;
|
|
7
|
+
|
|
5
8
|
function list_elem_delete_action(screen: unknown, listElem: unknown, topElem: unknown): unknown;
|
|
9
|
+
|
|
6
10
|
function list_elem_open_action(screen: unknown): unknown;
|
|
11
|
+
|
|
7
12
|
function generate_qr(screen: unknown, objectId: number, forWhat: unknown): unknown;
|
|
8
13
|
}
|