bx-rest 0.4.14 → 0.4.16
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/esm2022/request/bizproc/workflow/template.mjs +4 -8
- package/esm2022/request/task/elapseditem.mjs +3 -13
- package/esm2022/request/tasks/task.mjs +1 -1
- package/esm2022/request/user/userfield.mjs +3 -5
- package/esm2022/request-navvy/tasks/task.mjs +3 -2
- package/esm2022/request-navvy/user.mjs +1 -4
- package/esm2022/rest.mjs +1 -2
- package/esm2022/services/Navvy/NavvySupport.mjs +2 -1
- package/esm2022/services/http/HttpBX.mjs +7 -9
- package/esm2022/services/http/http.mjs +3 -3
- package/esm2022/settings.mjs +1 -15
- package/esm2022/typification/base/methods.mjs +25 -1
- package/esm2022/typification/base/workpiece/methods-list.mjs +1 -1
- package/esm2022/typification/base/workpiece/methods.mjs +1 -1
- package/esm2022/typification/rest/calendar/get/answer.mjs +1 -1
- package/esm2022/typification/rest/task/commentitem/add.mjs +1 -1
- package/esm2022/typification/rest/tasks/task/add.mjs +1 -1
- package/esm2022/typification/rest/tasks/task/list.mjs +1 -1
- package/esm2022/typification/rest/user/get.mjs +1 -1
- package/esm2022/typification/rest/user/search.mjs +1 -1
- package/fesm2022/bx-rest.mjs +140 -160
- package/fesm2022/bx-rest.mjs.map +1 -1
- package/package.json +1 -1
- package/request/bizproc/workflow/template.d.ts +0 -3
- package/request/tasks/task.d.ts +1 -1
- package/request/user/userfield.d.ts +1 -3
- package/request/user.d.ts +1 -1
- package/request-navvy/tasks/task.d.ts +1 -1
- package/services/http/HttpBX.d.ts +4 -7
- package/services/http/http.d.ts +2 -2
- package/typification/base/workpiece/methods-list.d.ts +24 -1
- package/typification/base/workpiece/methods.d.ts +3 -3
- package/typification/rest/calendar/get/answer.d.ts +3 -3
- package/typification/rest/tasks/task/add.d.ts +6 -4
- package/typification/rest/tasks/task/list.d.ts +4 -4
- package/typification/rest/user/get.d.ts +21 -0
- package/typification/rest/user/search.d.ts +24 -2
- package/esm2022/services/http/base/http.mjs +0 -13
- package/services/http/base/http.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { HttpBXServices } from '../../../services/http/HttpBX';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class BXRestBizProcWorkflowTemplate {
|
|
4
|
-
private http;
|
|
5
|
-
constructor(http: HttpBXServices);
|
|
6
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizProcWorkflowTemplate, never>;
|
|
7
4
|
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizProcWorkflowTemplate>;
|
|
8
5
|
}
|
package/request/tasks/task.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare class BXRestTasksTask {
|
|
|
18
18
|
private http;
|
|
19
19
|
protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsTasksTask<string[], string[], string[], string[], string[], string[], string[], string[], string[], string[], import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsTasksTaskResult<string[], string[], string[]>>;
|
|
20
20
|
constructor(result: BXRestTasksTaskResult, http: HttpBXServices);
|
|
21
|
-
add(param: iBXRestParamTaskAdd): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskGetHttpDefault>> | undefined>;
|
|
21
|
+
add<CustomFields extends object = {}>(param: iBXRestParamTaskAdd<CustomFields>): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskGetHttpDefault>> | undefined>;
|
|
22
22
|
approve(param: iBXRestParamTasksTaskApprove): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskApproveHttp>> | undefined>;
|
|
23
23
|
complete(param: iBXRestParamTasksTaskComplete): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskCompleteHttp>> | undefined>;
|
|
24
24
|
defer(param: iBXRestParamTasksTaskDefer): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskDeferHttp>> | undefined>;
|
|
@@ -3,9 +3,7 @@ import { iBXRestUserUserField } from '../../typification/rest/user/userfield/lis
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BXRestUserUserfield {
|
|
5
5
|
private http;
|
|
6
|
-
protected url:
|
|
7
|
-
list: string[];
|
|
8
|
-
};
|
|
6
|
+
protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUserField<string[], string[], string[], string[], import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUserFieldList<string[]>>;
|
|
9
7
|
constructor(http: HttpBXServices);
|
|
10
8
|
list(): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestUserUserField[]> | undefined>;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestUserUserfield, never>;
|
package/request/user.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class BXRestUser {
|
|
8
8
|
private http;
|
|
9
9
|
userfield: BXRestUserUserfield;
|
|
10
|
-
protected url: import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUser<string[], string[], string[], string[], string[], string[], string[]
|
|
10
|
+
protected url: import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUser<string[], string[], string[], string[], string[], string[], string[], import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUserField<string[], string[], string[], string[], import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUserFieldList<string[]>>>;
|
|
11
11
|
constructor(http: HttpBXServices, userfield: BXRestUserUserfield);
|
|
12
12
|
admin(): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<boolean> | undefined>;
|
|
13
13
|
get(params?: iBXRestParamUserGet): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestUserHttp[]> | undefined>;
|
|
@@ -18,7 +18,7 @@ export declare class BXRestNavvyTasksTask {
|
|
|
18
18
|
private BXRestMapTasksTask;
|
|
19
19
|
private Navvy;
|
|
20
20
|
constructor(result: BXRestNavvyTasksTaskResult, BXRestTasksTask: BXRestTasksTask, BXRestMapTasksTask: BXRestMapTasksTask);
|
|
21
|
-
add(param: iBXRestParamTaskAdd): NavvySimple<BXRestTasksTask, BXRestMapTasksTask, import("../../typification/rest/tasks/task/base").iBXRestTasksTaskBaseAnswer<import("../../typification/rest/tasks/task/get").iBXRestTasksTaskGetHttpDefault>, import("../../typification/rest/tasks/task").iBXRestTask | undefined>;
|
|
21
|
+
add<CustomFields extends object = {}>(param: iBXRestParamTaskAdd<CustomFields>): NavvySimple<BXRestTasksTask, BXRestMapTasksTask, import("../../typification/rest/tasks/task/base").iBXRestTasksTaskBaseAnswer<import("../../typification/rest/tasks/task/get").iBXRestTasksTaskGetHttpDefault>, import("../../typification/rest/tasks/task").iBXRestTask | undefined>;
|
|
22
22
|
update<CustomFields extends object>(task: AllKeyFree<iBXRestTasksTaskGet<iBXRestTaskFieldsName[], CustomFields>>, updateFields: (iBXRestTasksTaskFieldsCanUpdate | keyof ToUpperCaseKeys<ObjectToSnake<CustomFields>>)[]): NavvySimple<this, BXRestMapTasksTask, import("../../typification/rest/tasks/task/base").iBXRestTasksTaskBaseAnswer<import("../../typification/rest/tasks/task/defer").iBXRestTasksTaskDeferHttp>, unknown>;
|
|
23
23
|
get<S extends iBXRestTaskFieldsName[], CustomFields extends object = {}>(param: iBXRestParamTasksTaskGet<CustomFields>): NavvySimple<BXRestTasksTask, BXRestMapTasksTask, import("../../typification/rest/tasks/task/get").iBXRestTasksTaskGetHttp<S, CustomFields>, unknown>;
|
|
24
24
|
list<S extends iBXRestTaskFieldsName[], CustomFields extends object = {}>(param?: iBXRestParamTasksList<CustomFields>): import("../../services/Navvy/NavvyPagNavTasks").NavvyPagNavTasks<BXRestTasksTask, BXRestMapTasksTask, import("../../typification/rest/tasks/task/list").iBXRestHttpTasksTaskList<S, CustomFields>, import("../../typification/rest/tasks/task/list").iBXRestTasksTaskList<S, CustomFields>, iBXRestParamTasksList<CustomFields>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { iHttpParamSettings } from '../../typification/rest/settings';
|
|
3
2
|
import { HttpServices } from './http';
|
|
4
3
|
import { iBatchRequestAnswer, iBatchRequestParam, iBatchRequestParamArr, iBatchRequestParamHttp } from '../../typification/rest/batch/batchRequestParam';
|
|
5
4
|
import { iBXRestAnswer } from '../../typification/rest/base/answer';
|
|
@@ -22,19 +21,17 @@ export declare class HttpBXServices extends HttpServices {
|
|
|
22
21
|
*
|
|
23
22
|
* @param name
|
|
24
23
|
* @param params
|
|
25
|
-
* @param settings
|
|
26
24
|
*/
|
|
27
|
-
post<T>(name: string[], params?: any
|
|
25
|
+
post<T>(name: string[], params?: any): Observable<iBXRestAnswer<T> | undefined>;
|
|
28
26
|
/**
|
|
29
27
|
* Второстепенный метод для запросов. По возможности лучше не использовать
|
|
30
28
|
*
|
|
31
29
|
* @param name
|
|
32
30
|
* @param params
|
|
33
|
-
* @param settings
|
|
34
31
|
*/
|
|
35
|
-
get<T>(name: string[], params?: any
|
|
36
|
-
httpPost<T>(url: string, params?: any
|
|
37
|
-
httpGet<T>(url: string, params?: any
|
|
32
|
+
get<T>(name: string[], params?: any): Observable<iBXRestAnswer<T> | undefined>;
|
|
33
|
+
httpPost<T>(url: string, params?: any): Observable<T | undefined>;
|
|
34
|
+
httpGet<T>(url: string, params?: any): Observable<T | undefined>;
|
|
38
35
|
getNameMethod(arr: string[]): string;
|
|
39
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<HttpBXServices, never>;
|
|
40
37
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpBXServices>;
|
package/services/http/http.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import SessionKeyServices from '../../services/http/sessionKey';
|
|
4
4
|
import { iHttpParamSettings } from '../../typification/rest/settings';
|
|
5
|
-
import { BaseHttpServices } from './base/http';
|
|
6
5
|
import { BX_REST_SETTINGS } from '../../settings';
|
|
6
|
+
import { BaseHttp } from './base/base';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class HttpServices extends
|
|
8
|
+
export declare class HttpServices extends BaseHttp {
|
|
9
9
|
session: SessionKeyServices;
|
|
10
10
|
constructor(BX_REST_SETTINGS: BX_REST_SETTINGS, http: HttpClient, session: SessionKeyServices);
|
|
11
11
|
httpPost<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface iBXRestWorkpieceMethodsUser<admin, _get, current, update, search, access, fields> {
|
|
1
|
+
export interface iBXRestWorkpieceMethodsUser<admin, _get, current, update, search, access, fields, userfield> {
|
|
2
2
|
admin: admin;
|
|
3
3
|
get: _get;
|
|
4
4
|
current: current;
|
|
@@ -6,6 +6,29 @@ export interface iBXRestWorkpieceMethodsUser<admin, _get, current, update, searc
|
|
|
6
6
|
search: search;
|
|
7
7
|
access: access;
|
|
8
8
|
fields: fields;
|
|
9
|
+
userfield: userfield;
|
|
10
|
+
}
|
|
11
|
+
export interface iBXRestWorkpieceMethodsUserField<add, update, _delete, list, file extends iBXRestWorkpieceMethodsUserFieldList<file['get']>> {
|
|
12
|
+
/**
|
|
13
|
+
* Добавляет пользовательское поле
|
|
14
|
+
*/
|
|
15
|
+
add: add;
|
|
16
|
+
/**
|
|
17
|
+
* Обновляет пользовательское поле
|
|
18
|
+
*/
|
|
19
|
+
update: update;
|
|
20
|
+
/**
|
|
21
|
+
* Удаляет пользовательское поле
|
|
22
|
+
*/
|
|
23
|
+
delete: _delete;
|
|
24
|
+
/**
|
|
25
|
+
* Получает список пользовательских полей
|
|
26
|
+
*/
|
|
27
|
+
list: list;
|
|
28
|
+
file: file;
|
|
29
|
+
}
|
|
30
|
+
export interface iBXRestWorkpieceMethodsUserFieldList<get> {
|
|
31
|
+
get: get;
|
|
9
32
|
}
|
|
10
33
|
export interface iBXRestWorkpieceMethodsTasks<task extends iBXRestWorkpieceMethodsTasksTask<task['add'], task['approve'], task['complete'], task['defer'], task['delegate'], task['get'], task['getFields'], task['getAccess'], task['list'], task['update'], iBXRestWorkpieceMethodsTasksTaskResult<task['result']['list'], task['result']['addFromComment'], task['result']['deleteFromComment']>>> {
|
|
11
34
|
task: task;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { iBXRestWorkpieceMethodsApp, iBXRestWorkpieceMethodsBizProc, iBXRestWorkpieceMethodsBizProcWorkflow, iBXRestWorkpieceMethodsCalendar, iBXRestWorkpieceMethodsCalendarEvent, iBXRestWorkpieceMethodsDepartment, iBXRestWorkpieceMethodsDisk, iBXRestWorkpieceMethodsDiskAttachedObject, iBXRestWorkpieceMethodsDiskFile, iBXRestWorkpieceMethodsDiskFolder, iBXRestWorkpieceMethodsIm, iBXRestWorkpieceMethodsImChat, iBXRestWorkpieceMethodsLists, iBXRestWorkpieceMethodsListsElement, iBXRestWorkpieceMethodsListsField, iBXRestWorkpieceMethodsLog, iBXRestWorkpieceMethodsLogBlogpost, iBXRestWorkpieceMethodsServer, iBXRestWorkpieceMethodsSonetGroup, iBXRestWorkpieceMethodsTask, iBXRestWorkpieceMethodsTaskCommentItem, iBXRestWorkpieceMethodsTaskElapsedItem, iBXRestWorkpieceMethodsTaskItem, iBXRestWorkpieceMethodsTaskItemUserField, iBXRestWorkpieceMethodsTaskPlanner, iBXRestWorkpieceMethodsTasks, iBXRestWorkpieceMethodsTasksTask, iBXRestWorkpieceMethodsTasksTaskResult, iBXRestWorkpieceMethodsTimeman, iBXRestWorkpieceMethodsUser } from './methods-list';
|
|
2
|
-
export interface iBXRestWorkpieceMethodsFullOneArgument<T> extends iBXRestWorkpieceMethodsFull<iBXRestWorkpieceMethodsUser<T, T, T, T, T, T, T
|
|
1
|
+
import { iBXRestWorkpieceMethodsApp, iBXRestWorkpieceMethodsBizProc, iBXRestWorkpieceMethodsBizProcWorkflow, iBXRestWorkpieceMethodsCalendar, iBXRestWorkpieceMethodsCalendarEvent, iBXRestWorkpieceMethodsDepartment, iBXRestWorkpieceMethodsDisk, iBXRestWorkpieceMethodsDiskAttachedObject, iBXRestWorkpieceMethodsDiskFile, iBXRestWorkpieceMethodsDiskFolder, iBXRestWorkpieceMethodsIm, iBXRestWorkpieceMethodsImChat, iBXRestWorkpieceMethodsLists, iBXRestWorkpieceMethodsListsElement, iBXRestWorkpieceMethodsListsField, iBXRestWorkpieceMethodsLog, iBXRestWorkpieceMethodsLogBlogpost, iBXRestWorkpieceMethodsServer, iBXRestWorkpieceMethodsSonetGroup, iBXRestWorkpieceMethodsTask, iBXRestWorkpieceMethodsTaskCommentItem, iBXRestWorkpieceMethodsTaskElapsedItem, iBXRestWorkpieceMethodsTaskItem, iBXRestWorkpieceMethodsTaskItemUserField, iBXRestWorkpieceMethodsTaskPlanner, iBXRestWorkpieceMethodsTasks, iBXRestWorkpieceMethodsTasksTask, iBXRestWorkpieceMethodsTasksTaskResult, iBXRestWorkpieceMethodsTimeman, iBXRestWorkpieceMethodsUser, iBXRestWorkpieceMethodsUserField, iBXRestWorkpieceMethodsUserFieldList } from './methods-list';
|
|
2
|
+
export interface iBXRestWorkpieceMethodsFullOneArgument<T> extends iBXRestWorkpieceMethodsFull<iBXRestWorkpieceMethodsUser<T, T, T, T, T, T, T, iBXRestWorkpieceMethodsUserField<T, T, T, T, iBXRestWorkpieceMethodsUserFieldList<T>>>, iBXRestWorkpieceMethodsTasks<iBXRestWorkpieceMethodsTasksTask<T, T, T, T, T, T, T, T, T, T, iBXRestWorkpieceMethodsTasksTaskResult<T, T, T>>>, iBXRestWorkpieceMethodsTask<iBXRestWorkpieceMethodsTaskElapsedItem<T, T, T, T, T>, iBXRestWorkpieceMethodsTaskCommentItem<T, T, T, T, T>, iBXRestWorkpieceMethodsTaskPlanner<T>, iBXRestWorkpieceMethodsTaskItem<iBXRestWorkpieceMethodsTaskItemUserField<T, T>>>, iBXRestWorkpieceMethodsTimeman<T>, iBXRestWorkpieceMethodsSonetGroup<T>, iBXRestWorkpieceMethodsServer<T>, iBXRestWorkpieceMethodsLog<iBXRestWorkpieceMethodsLogBlogpost<T, T>>, iBXRestWorkpieceMethodsLists<T, iBXRestWorkpieceMethodsListsElement<T, T>, iBXRestWorkpieceMethodsListsField<T>>, iBXRestWorkpieceMethodsIm<iBXRestWorkpieceMethodsImChat<T>>, iBXRestWorkpieceMethodsDisk<iBXRestWorkpieceMethodsDiskFile<T, T>, iBXRestWorkpieceMethodsDiskFolder<T, T, T, T, T, T, T, T, T, T, T, T>, iBXRestWorkpieceMethodsDiskAttachedObject<T>>, iBXRestWorkpieceMethodsDepartment<T, T, T, T>, iBXRestWorkpieceMethodsCalendar<iBXRestWorkpieceMethodsCalendarEvent<T>>, iBXRestWorkpieceMethodsBizProc<iBXRestWorkpieceMethodsBizProcWorkflow<T>>, iBXRestWorkpieceMethodsApp<T>> {
|
|
3
3
|
}
|
|
4
|
-
export interface iBXRestWorkpieceMethodsFull<user extends iBXRestWorkpieceMethodsUser<user['admin'], user['get'], user['current'], user['update'], user['search'], user['access'], user['fields']
|
|
4
|
+
export interface iBXRestWorkpieceMethodsFull<user extends iBXRestWorkpieceMethodsUser<user['admin'], user['get'], user['current'], user['update'], user['search'], user['access'], user['fields'], iBXRestWorkpieceMethodsUserField<user['userfield']['add'], user['userfield']['update'], user['userfield']['delete'], user['userfield']['list'], iBXRestWorkpieceMethodsUserFieldList<user['userfield']['file']['get']>>>, tasks extends iBXRestWorkpieceMethodsTasks<iBXRestWorkpieceMethodsTasksTask<tasks['task']['add'], tasks['task']['approve'], tasks['task']['complete'], tasks['task']['defer'], tasks['task']['delegate'], tasks['task']['get'], tasks['task']['getFields'], tasks['task']['getAccess'], tasks['task']['list'], tasks['task']['update'], iBXRestWorkpieceMethodsTasksTaskResult<tasks['task']['result']['list'], tasks['task']['result']['addFromComment'], tasks['task']['result']['deleteFromComment']>>>, task extends iBXRestWorkpieceMethodsTask<iBXRestWorkpieceMethodsTaskElapsedItem<task['elapsedItem']['getList'], task['elapsedItem']['add'], task['elapsedItem']['delete'], task['elapsedItem']['isActionAllowed'], task['elapsedItem']['update']>, iBXRestWorkpieceMethodsTaskCommentItem<task['commentItem']['getList'], task['commentItem']['get'], task['commentItem']['add'], task['commentItem']['update'], task['commentItem']['delete']>, iBXRestWorkpieceMethodsTaskPlanner<task['planner']['getList']>, iBXRestWorkpieceMethodsTaskItem<iBXRestWorkpieceMethodsTaskItemUserField<task['item']['userField']['getFields'], task['item']['userField']['getList']>>>, timeman extends iBXRestWorkpieceMethodsTimeman<timeman['status']>, sonet_group extends iBXRestWorkpieceMethodsSonetGroup<sonet_group['get']>, server extends iBXRestWorkpieceMethodsServer<server['time']>, log extends iBXRestWorkpieceMethodsLog<iBXRestWorkpieceMethodsLogBlogpost<log['blogpost']['add'], log['blogpost']['get']>>, lists extends iBXRestWorkpieceMethodsLists<lists['get'], iBXRestWorkpieceMethodsListsElement<lists['element']['add'], lists['element']['get']>, iBXRestWorkpieceMethodsListsField<lists['field']['get']>>, im extends iBXRestWorkpieceMethodsIm<iBXRestWorkpieceMethodsImChat<im['chat']['add']>>, disk extends iBXRestWorkpieceMethodsDisk<iBXRestWorkpieceMethodsDiskFile<disk['file']['get'], disk['file']['markDeleted']>, iBXRestWorkpieceMethodsDiskFolder<disk['folder']['getFields'], disk['folder']['get'], disk['folder']['getChildren'], disk['folder']['addSubFolder'], disk['folder']['copyTo'], disk['folder']['moveTo'], disk['folder']['rename'], disk['folder']['deleteTree'], disk['folder']['markDeleted'], disk['folder']['restore'], disk['folder']['uploadFile'], disk['folder']['getExternalLink']>, iBXRestWorkpieceMethodsDiskAttachedObject<disk['attachedObject']['get']>>, department extends iBXRestWorkpieceMethodsDepartment<department['get'], department['del'], department['add'], department['update']>, calendar extends iBXRestWorkpieceMethodsCalendar<iBXRestWorkpieceMethodsCalendarEvent<calendar['event']['get']>>, bizProc extends iBXRestWorkpieceMethodsBizProc<iBXRestWorkpieceMethodsBizProcWorkflow<bizProc['workflow']['start']>>, app extends iBXRestWorkpieceMethodsApp<app['info']>> {
|
|
5
5
|
user: user;
|
|
6
6
|
tasks: tasks;
|
|
7
7
|
task: task;
|
|
@@ -86,7 +86,7 @@ export interface iBXRestCalendarEventGetAnswerBase {
|
|
|
86
86
|
MEETING_CREATOR: number;
|
|
87
87
|
NOTIFY: boolean;
|
|
88
88
|
REINVITE: boolean;
|
|
89
|
-
};
|
|
89
|
+
} | null;
|
|
90
90
|
NAME: string;
|
|
91
91
|
PRIVATE_EVENT: "";
|
|
92
92
|
RELATIONS: {
|
|
@@ -101,10 +101,10 @@ export interface iBXRestCalendarEventGetAnswerBase {
|
|
|
101
101
|
TZ_TO: TimezoneName;
|
|
102
102
|
UF_CRM_CAL_EVENT: boolean;
|
|
103
103
|
UF_WEBDAV_CAL_EVENT: boolean;
|
|
104
|
-
attendeesEntityList
|
|
104
|
+
attendeesEntityList?: {
|
|
105
105
|
entityId: iBXRestCalendarType;
|
|
106
106
|
id: number;
|
|
107
|
-
}[];
|
|
107
|
+
}[] | null;
|
|
108
108
|
'~USER_OFFSET_FROM': number;
|
|
109
109
|
'~USER_OFFSET_TO': number;
|
|
110
110
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { iBXRestYesNo } from '../../base/YesNo';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { ObjectToSnake } from 'ts-case-convert/lib/caseConvert';
|
|
3
|
+
import { ToUpperCaseKeys } from '../../../base/upper-case-keys';
|
|
4
|
+
export interface iBXRestParamTaskAdd<CustomFields extends object> {
|
|
5
|
+
fields: iBXRestParamTaskAddFields<CustomFields>;
|
|
4
6
|
}
|
|
5
|
-
export
|
|
7
|
+
export type iBXRestParamTaskAddFields<CustomFields extends object> = iBXRestParamTaskAddFieldsBase & ToUpperCaseKeys<ObjectToSnake<CustomFields>>;
|
|
8
|
+
export interface iBXRestParamTaskAddFieldsBase {
|
|
6
9
|
/**
|
|
7
10
|
* Идентификатор задачи
|
|
8
11
|
*/
|
|
9
12
|
ID?: number;
|
|
10
13
|
/**
|
|
11
14
|
* ID родительской задачи
|
|
12
|
-
*
|
|
13
15
|
* По умолчанию - отсутствует
|
|
14
16
|
*/
|
|
15
17
|
PARENT_ID?: number;
|
|
@@ -10,10 +10,10 @@ import { ObjectToSnake } from 'ts-case-convert/lib/caseConvert';
|
|
|
10
10
|
export interface iBXRestTasksTaskListHttp<S extends iBXRestTaskFieldsName[], CustomFields = {}> {
|
|
11
11
|
tasks: iBXRestHttpTasksTaskList<S, CustomFields>[] | undefined;
|
|
12
12
|
}
|
|
13
|
-
export type iBXRestHttpTasksTaskList<S extends iBXRestTaskFieldsName[], CustomFields> = {
|
|
13
|
+
export type iBXRestHttpTasksTaskList<S extends iBXRestTaskFieldsName[], CustomFields = {}> = {
|
|
14
14
|
[K in SnakeToCamelCase<Lowercase<S[number]>>]: iBXRestHttpTask[K];
|
|
15
15
|
} & CustomFields;
|
|
16
|
-
export type iBXRestTasksTaskList<S extends iBXRestTaskFieldsName[], CustomFields> = {
|
|
16
|
+
export type iBXRestTasksTaskList<S extends iBXRestTaskFieldsName[], CustomFields = {}> = {
|
|
17
17
|
[K in SnakeToCamelCase<Lowercase<S[number]>>]: iBXRestTask[K];
|
|
18
18
|
} & CustomFields;
|
|
19
19
|
/**
|
|
@@ -103,8 +103,8 @@ export interface iBXRestParamTaskListFilter {
|
|
|
103
103
|
STATUS?: number | number[];
|
|
104
104
|
MARK?: number;
|
|
105
105
|
SITE_ID?: number;
|
|
106
|
-
ADD_IN_REPORT?:
|
|
107
|
-
ALLOW_TIME_TRACKING?:
|
|
106
|
+
ADD_IN_REPORT?: iBXRestYesNo;
|
|
107
|
+
ALLOW_TIME_TRACKING?: iBXRestYesNo;
|
|
108
108
|
DATE_START?: Date | string;
|
|
109
109
|
DEADLINE?: Date | string;
|
|
110
110
|
CREATED_DATE?: Date | string;
|
|
@@ -10,11 +10,32 @@ export interface iBXRestParamUserGet extends iBXRestBaseParam {
|
|
|
10
10
|
export interface iBXRestParamUserGetFilter {
|
|
11
11
|
ID?: number[] | number;
|
|
12
12
|
PERSONAL_BIRTHDAY?: string | string[];
|
|
13
|
+
/**
|
|
14
|
+
* Принадлежность к структуре компании
|
|
15
|
+
*/
|
|
13
16
|
UF_DEPARTMENT?: number[];
|
|
17
|
+
/**
|
|
18
|
+
* Внутренний телефонный номер
|
|
19
|
+
*/
|
|
14
20
|
UF_PHONE_INNER?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Позволяет показать только авторизованных или нет пользователей
|
|
23
|
+
*/
|
|
15
24
|
IS_ONLINE?: iBXRestYesNo;
|
|
25
|
+
/**
|
|
26
|
+
* Быстрый поиск по персональным данны
|
|
27
|
+
*/
|
|
16
28
|
NAME_SEARCH?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Тип пользователя. Может принимать следующие значения:
|
|
31
|
+
* employee - сотрудник,
|
|
32
|
+
* extranet - пользователь экстранета,
|
|
33
|
+
* email - почтовый пользователь
|
|
34
|
+
*/
|
|
17
35
|
USER_TYPE?: 'employee' | 'extranet' | 'email';
|
|
36
|
+
/**
|
|
37
|
+
* При значении 1 исключает из запроса уволенных пользователей. 2 - если нужны и те и те
|
|
38
|
+
*/
|
|
18
39
|
ACTIVE?: 2 | 1 | 0;
|
|
19
40
|
EMAIL?: string;
|
|
20
41
|
NAME?: string;
|
|
@@ -1,17 +1,39 @@
|
|
|
1
1
|
import { iBXRestPagination } from '../base/ApiPaginationBX';
|
|
2
|
+
import { iBXRestYesNo } from '../base/YesNo';
|
|
2
3
|
export interface iBXRestParamUserSearch extends iBXRestPagination {
|
|
4
|
+
/**
|
|
5
|
+
* Имя
|
|
6
|
+
*/
|
|
3
7
|
NAME?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Фамилия
|
|
10
|
+
*/
|
|
4
11
|
LAST_NAME?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Отчество
|
|
14
|
+
*/
|
|
5
15
|
SECOND_NAME?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Должность
|
|
18
|
+
*/
|
|
6
19
|
WORK_POSITION?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Название подразделения
|
|
22
|
+
*/
|
|
7
23
|
UF_DEPARTMENT_NAME?: string;
|
|
8
24
|
USER_TYPE?: 'employee' | 'extranet' | 'email';
|
|
25
|
+
/**
|
|
26
|
+
* Поиск по всем выше перечисленным полям
|
|
27
|
+
*/
|
|
9
28
|
FIND?: string;
|
|
10
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Уволен или нет сотрудник
|
|
31
|
+
*/
|
|
32
|
+
ACTIVE?: iBXRestYesNo;
|
|
11
33
|
EMAIL?: string;
|
|
12
34
|
LAST_LOGIN?: string;
|
|
13
35
|
DATE_REGISTER?: string;
|
|
14
|
-
IS_ONLINE?:
|
|
36
|
+
IS_ONLINE?: iBXRestYesNo;
|
|
15
37
|
PERSONAL_GENDER?: 'M' | 'F';
|
|
16
38
|
PERSONAL_PROFESSION?: string;
|
|
17
39
|
PERSONAL_WWW?: string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HttpParams } from '@angular/common/http';
|
|
2
|
-
import { BaseHttp } from './base';
|
|
3
|
-
export class BaseHttpServices extends BaseHttp {
|
|
4
|
-
httpGet(url, params = {}, settings = this.defSettings) {
|
|
5
|
-
return this.http.get(url, {
|
|
6
|
-
params: this.getHttpParamsGet(params, new HttpParams(), false, [], settings)
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
httpPost(url, params = {}, settings = this.defSettings) {
|
|
10
|
-
return this.http.post(url, this.getHttpParamsPost(params,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pbmVkPiB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cC5wb3N0PFQgfCB1bmRlZmluZWQ+KFxyXG4gICAgICAgICAgICB1cmwsXHJcbiAgICAgICAgICAgIHRoaXMuZ2V0SHR0cFBhcmFtc1Bvc3QocGFyYW1zLCBuZXcgRm9ybURhdGEoKSwgZmFsc2UsIFtdLCBzZXR0aW5ncylcclxuICAgICAgICApXHJcbiAgICB9XHJcbn1cclxuIl19
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { iHttpParamSettings } from '../../../typification/rest/settings';
|
|
3
|
-
import { BaseHttp } from './base';
|
|
4
|
-
export declare class BaseHttpServices extends BaseHttp {
|
|
5
|
-
httpGet<T>(url: string, params?: {}, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
6
|
-
httpPost<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
7
|
-
}
|