bx-rest 0.4.16 → 0.4.18
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/index.mjs +13 -0
- package/esm2022/public-api.mjs +6 -4
- package/esm2022/request-navvy/user.mjs +3 -6
- package/esm2022/rest/base.mjs +51 -0
- package/esm2022/rest/map.mjs +17 -0
- package/esm2022/rest/navvy.mjs +62 -0
- package/esm2022/rest.mjs +1 -1
- package/esm2022/services/Navvy/NavvySupport.mjs +3 -4
- package/esm2022/typification/rest/user/get.mjs +1 -1
- package/fesm2022/bx-rest.mjs +456 -457
- package/fesm2022/bx-rest.mjs.map +1 -1
- package/package.json +8 -7
- package/public-api.d.ts +7 -2
- package/request-navvy/user.d.ts +1 -1
- package/rest/base.d.ts +40 -0
- package/rest/map.d.ts +8 -0
- package/rest/navvy.d.ts +45 -0
- package/typification/rest/user/get.d.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bx-rest",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.18",
|
|
4
4
|
"description": "bitrix rest api",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bitrix",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
"api"
|
|
10
10
|
],
|
|
11
11
|
"author": "Aricatofuka",
|
|
12
|
-
"main": "./src/public-api.ts",
|
|
13
12
|
"license": "MIT",
|
|
14
13
|
"bugs": {
|
|
15
14
|
"url": "https://github.com/Aricatofuka/bx-rest/issues"
|
|
@@ -28,16 +27,18 @@
|
|
|
28
27
|
"tslib": "^2.3.0"
|
|
29
28
|
},
|
|
30
29
|
"module": "fesm2022/bx-rest.mjs",
|
|
30
|
+
"types": "index.d.ts",
|
|
31
31
|
"typings": "index.d.ts",
|
|
32
32
|
"exports": {
|
|
33
|
-
"./package.json": {
|
|
34
|
-
"default": "./package.json"
|
|
35
|
-
},
|
|
36
33
|
".": {
|
|
37
34
|
"types": "./index.d.ts",
|
|
38
35
|
"esm2022": "./esm2022/bx-rest.mjs",
|
|
39
|
-
"
|
|
40
|
-
"default": "./fesm2022/bx-rest.mjs"
|
|
36
|
+
"import": "./esm2022/bx-rest.mjs",
|
|
37
|
+
"default": "./fesm2022/bx-rest.mjs",
|
|
38
|
+
"esm": "./esm2022/bx-rest.mjs"
|
|
39
|
+
},
|
|
40
|
+
"./package.json": {
|
|
41
|
+
"default": "./package.json"
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
"sideEffects": false
|
package/public-api.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API Surface of bx-rest
|
|
3
|
+
*/
|
|
1
4
|
export { BX_REST_SETTINGS } from './settings';
|
|
2
5
|
export { BXRestMapResult } from './functions/mapResult';
|
|
3
|
-
export { BXRest
|
|
6
|
+
export { BXRest } from './rest/base';
|
|
7
|
+
export { BXRestNavvy } from './rest/navvy';
|
|
8
|
+
export { BXRestMap } from './rest/map';
|
|
4
9
|
export { Navvy } from './services/navvy';
|
|
5
10
|
export { Map as BXMap } from './map';
|
|
6
|
-
export * as partNameMethods from './consts/part-name-methods';
|
|
7
11
|
export { HttpBXServices as BXRestRequest } from './services/http/HttpBX';
|
|
8
12
|
export { BaseMapServices as BXRestMapBase } from './map/base';
|
|
9
13
|
export { instanceOfiBXRestAnswerSuccess as isBXRestAnswerSuccess } from './functions/mapResult';
|
|
14
|
+
export * as partNameMethods from './consts/part-name-methods';
|
package/request-navvy/user.d.ts
CHANGED
package/rest/base.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BXRestUser } from '../request/user';
|
|
2
|
+
import { BXRestLists } from '../request/lists';
|
|
3
|
+
import { BXRestTask } from '../request/task';
|
|
4
|
+
import { BXRestTasks } from '../request/tasks';
|
|
5
|
+
import { BXRestDisk } from '../request/disk';
|
|
6
|
+
import { BXRestBizProc } from '../request/bizproc';
|
|
7
|
+
import { BXRestLog } from '../request/log';
|
|
8
|
+
import { BXRestCalendar } from '../request/calendar';
|
|
9
|
+
import { BXRestSonetGroup } from '../request/sonet_group';
|
|
10
|
+
import { BXRestServer } from '../request/server';
|
|
11
|
+
import { BXRestDepartment } from '../request/department';
|
|
12
|
+
import { BXRestIm } from '../request/im';
|
|
13
|
+
import { BXRestApp } from '../request/app';
|
|
14
|
+
import { BXRestTimeMan } from '../request/timeman';
|
|
15
|
+
import { HttpBXServices } from '../services/http/HttpBX';
|
|
16
|
+
import { iBXRestProfileHttp } from '../typification/rest/profile';
|
|
17
|
+
import { iBXRestBatch, iBXRestParamBatch } from '../typification/rest/batch';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
export declare class BXRest {
|
|
20
|
+
user: BXRestUser;
|
|
21
|
+
lists: BXRestLists;
|
|
22
|
+
task: BXRestTask;
|
|
23
|
+
tasks: BXRestTasks;
|
|
24
|
+
disk: BXRestDisk;
|
|
25
|
+
bizProc: BXRestBizProc;
|
|
26
|
+
log: BXRestLog;
|
|
27
|
+
calendar: BXRestCalendar;
|
|
28
|
+
sonet_group: BXRestSonetGroup;
|
|
29
|
+
server: BXRestServer;
|
|
30
|
+
department: BXRestDepartment;
|
|
31
|
+
im: BXRestIm;
|
|
32
|
+
app: BXRestApp;
|
|
33
|
+
timeMan: BXRestTimeMan;
|
|
34
|
+
private http;
|
|
35
|
+
constructor(user: BXRestUser, lists: BXRestLists, task: BXRestTask, tasks: BXRestTasks, disk: BXRestDisk, bizProc: BXRestBizProc, log: BXRestLog, calendar: BXRestCalendar, sonet_group: BXRestSonetGroup, server: BXRestServer, department: BXRestDepartment, im: BXRestIm, app: BXRestApp, timeMan: BXRestTimeMan, http: HttpBXServices);
|
|
36
|
+
profile(): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestProfileHttp> | undefined>;
|
|
37
|
+
batch<T>(param: iBXRestParamBatch<T>): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestBatch<T>> | undefined>;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BXRest, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BXRest>;
|
|
40
|
+
}
|
package/rest/map.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BXRestMapLists } from '../map/lists';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BXRestMap {
|
|
4
|
+
lists: BXRestMapLists;
|
|
5
|
+
constructor(lists: BXRestMapLists);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestMap, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestMap>;
|
|
8
|
+
}
|
package/rest/navvy.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BXRestMaps } from '../map/rest';
|
|
2
|
+
import { BXRestNavvyUser } from '../request-navvy/user';
|
|
3
|
+
import { BXRestNavvyLists } from '../request-navvy/lists';
|
|
4
|
+
import { BXRestNavvyTask } from '../request-navvy/task';
|
|
5
|
+
import { BXRestNavvyTasks } from '../request-navvy/tasks';
|
|
6
|
+
import { BXRestNavvyDisk } from '../request-navvy/disk';
|
|
7
|
+
import { BXRestNavvyBizProc } from '../request-navvy/bizproc';
|
|
8
|
+
import { BXRestNavvyLog } from '../request-navvy/log';
|
|
9
|
+
import { BXRestNavvyCalendar } from '../request-navvy/calendar';
|
|
10
|
+
import { BXRestNavvySonetGroup } from '../request-navvy/sonet_group';
|
|
11
|
+
import { BXRestNavvyServer } from '../request-navvy/server';
|
|
12
|
+
import { BXRestNavvyDepartment } from '../request-navvy/department';
|
|
13
|
+
import { BXRestNavvyIm } from '../request-navvy/im';
|
|
14
|
+
import { BXRestNavvyApp } from '../request-navvy/app';
|
|
15
|
+
import { BXRestNavvyTimeMan } from '../request-navvy/timeman';
|
|
16
|
+
import { iBXRestNavvyParamBatch } from '../typification/rest/batch';
|
|
17
|
+
import { Navvy } from '../services/navvy';
|
|
18
|
+
import { BXRest } from './base';
|
|
19
|
+
import * as i0 from "@angular/core";
|
|
20
|
+
export declare class BXRestNavvy {
|
|
21
|
+
user: BXRestNavvyUser;
|
|
22
|
+
lists: BXRestNavvyLists;
|
|
23
|
+
task: BXRestNavvyTask;
|
|
24
|
+
tasks: BXRestNavvyTasks;
|
|
25
|
+
disk: BXRestNavvyDisk;
|
|
26
|
+
bizProc: BXRestNavvyBizProc;
|
|
27
|
+
log: BXRestNavvyLog;
|
|
28
|
+
calendar: BXRestNavvyCalendar;
|
|
29
|
+
sonet_group: BXRestNavvySonetGroup;
|
|
30
|
+
server: BXRestNavvyServer;
|
|
31
|
+
department: BXRestNavvyDepartment;
|
|
32
|
+
im: BXRestNavvyIm;
|
|
33
|
+
app: BXRestNavvyApp;
|
|
34
|
+
timeMan: BXRestNavvyTimeMan;
|
|
35
|
+
private BXRest;
|
|
36
|
+
private BXRestMap;
|
|
37
|
+
protected Navvy: Navvy<BXRest, BXRestMaps>;
|
|
38
|
+
constructor(user: BXRestNavvyUser, lists: BXRestNavvyLists, task: BXRestNavvyTask, tasks: BXRestNavvyTasks, disk: BXRestNavvyDisk, bizProc: BXRestNavvyBizProc, log: BXRestNavvyLog, calendar: BXRestNavvyCalendar, sonet_group: BXRestNavvySonetGroup, server: BXRestNavvyServer, department: BXRestNavvyDepartment, im: BXRestNavvyIm, app: BXRestNavvyApp, timeMan: BXRestNavvyTimeMan, BXRest: BXRest, BXRestMap: BXRestMaps);
|
|
39
|
+
profile(): import("../services/Navvy/NavvySimple").NavvySimple<BXRest, BXRestMaps, import("../typification/rest/profile").iBXRestProfileHttp, import("../typification/rest/profile").iBXRestProfile | undefined>;
|
|
40
|
+
batch<T, C, M>(param: iBXRestNavvyParamBatch<T, C, M>): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<import("../typification/rest/batch").iBXRestBatch<{
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
}>> | undefined>;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvy, never>;
|
|
44
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvy>;
|
|
45
|
+
}
|
|
@@ -34,9 +34,11 @@ export interface iBXRestParamUserGetFilter {
|
|
|
34
34
|
*/
|
|
35
35
|
USER_TYPE?: 'employee' | 'extranet' | 'email';
|
|
36
36
|
/**
|
|
37
|
-
* При значении
|
|
37
|
+
* При значении true исключает из запроса уволенных пользователей.
|
|
38
|
+
* False показывает только уволенных
|
|
39
|
+
* Отсутствие указателя показывает и тех и других
|
|
38
40
|
*/
|
|
39
|
-
ACTIVE?:
|
|
41
|
+
ACTIVE?: boolean;
|
|
40
42
|
EMAIL?: string;
|
|
41
43
|
NAME?: string;
|
|
42
44
|
LAST_NAME?: string;
|