bx-rest 0.1.18 → 0.1.20
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/consts/part-name-metods.d.ts +2 -0
- package/esm2022/consts/part-name-metods.mjs +3 -1
- package/esm2022/map/server.mjs +17 -0
- package/esm2022/map/user.mjs +8 -2
- package/esm2022/request/server.mjs +24 -0
- package/esm2022/request/user.mjs +2 -31
- package/esm2022/request-navvy/server.mjs +24 -0
- package/esm2022/request-navvy/user.mjs +100 -2
- package/esm2022/rest.mjs +23 -19
- package/esm2022/services/Navvy/NavvySimple.mjs +1 -4
- package/esm2022/typification/rest/user/search.mjs +2 -0
- package/fesm2022/bx-rest.mjs +171 -42
- package/fesm2022/bx-rest.mjs.map +1 -1
- package/map/server.d.ts +7 -0
- package/map/user.d.ts +3 -1
- package/package.json +1 -1
- package/request/server.d.ts +12 -0
- package/request/user.d.ts +2 -9
- package/request-navvy/server.d.ts +13 -0
- package/request-navvy/user.d.ts +12 -2
- package/rest.d.ts +6 -2
- package/services/Navvy/NavvySimple.d.ts +0 -1
- package/typification/rest/user/{UserFilterSearch.d.ts → search.d.ts} +2 -1
- package/esm2022/typification/rest/user/UserFilterSearch.mjs +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYngtcmVzdC9zcmMvdHlwaWZpY2F0aW9uL3Jlc3QvdXNlci9zZWFyY2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGlCWFJlc3RQYWdpbmF0aW9uIH0gZnJvbSAnLi4vYmFzZS9BcGlQYWdpbmF0aW9uQlgnXG5cbmV4cG9ydCBpbnRlcmZhY2UgaUJYUmVzdFBhcmFtVXNlclNlYXJjaCBleHRlbmRzIGlCWFJlc3RQYWdpbmF0aW9uIHtcbiAgTkFNRT86IHN0cmluZyAvLyDQuNC80Y9cbiAgTEFTVF9OQU1FPzogc3RyaW5nLCAvLyDRhNCw0LzQuNC70LjRj1xuICBTRUNPTkRfTkFNRT86IHN0cmluZywgLy8g0L7RgtGH0LXRgdGC0LLQvlxuICBXT1JLX1BPU0lUSU9OPzogc3RyaW5nLCAvLyDQtNC+0LvQttC90L7RgdGC0YxcbiAgVUZfREVQQVJUTUVOVF9OQU1FPzogc3RyaW5nLCAvL9C90LDQt9Cy0LDQvdC40LUg0L/QvtC00YDQsNC30LTQtdC70LXQvdC40Y9cbiAgVVNFUl9UWVBFPzogJ2VtcGxveWVlJyB8ICdleHRyYW5ldCcgfCAnZW1haWwnLFxuICBGSU5EPzogc3RyaW5nIC8vINC/0L7QuNGB0Log0L/QviDQstGB0LXQvCDQstGL0YjQtSDQv9C10YDQtdGH0LjRgdC70LXQvdC90YvQvCDQv9C+0LvRj9C8XG4gIEFDVElWRT86IGJvb2xlYW5cbiAgRU1BSUw/OiBzdHJpbmcsXG4gIExBU1RfTE9HSU4/OiBzdHJpbmcsXG4gIERBVEVfUkVHSVNURVI/OiBzdHJpbmcsXG4gIElTX09OTElORT86ICdZJyB8ICdOJywgLy8gd3RmIEJYP1xuICBQRVJTT05BTF9HRU5ERVI/OiAnTScgfCAnRicsIC8vIHd0ZiBCWD8gV2hlcmUgaXMgb3RoZXJzIDQ4IGdlbmRlcj9cbiAgUEVSU09OQUxfUFJPRkVTU0lPTj86IHN0cmluZyxcbiAgUEVSU09OQUxfV1dXPzogc3RyaW5nLFxuICBQRVJTT05BTF9CSVJUSERBWT86IHN0cmluZyxcbiAgUEVSU09OQUxfUEhPVE8/OiBzdHJpbmcsXG4gIFBFUlNPTkFMX0lDUT86IHN0cmluZyxcbiAgUEVSU09OQUxfUEhPTkU/OiBzdHJpbmcsXG4gIFBFUlNPTkFMX0ZBWD86IHN0cmluZyxcbiAgUEVSU09OQUxfTU9CSUxFPzogc3RyaW5nLFxuICBQRVJTT05BTF9QQUdFUj86IHN0cmluZyxcbiAgUEVSU09OQUxfU1RSRUVUPzogc3RyaW5nLFxuICBQRVJTT05BTF9DSVRZPzogc3RyaW5nLFxuICBQRVJTT05BTF9TVEFURT86IHN0cmluZyxcbiAgUEVSU09OQUxfWklQPzogc3RyaW5nLFxuICBQRVJTT05BTF9DT1VOVFJZPzogc3RyaW5nLFxuICBUSU1FX1pPTkVfT0ZGU0VUPzogc3RyaW5nLFxuICBXT1JLX0NPTVBBTlk/OiBzdHJpbmcsXG4gIFdPUktfUEhPTkU/OiBzdHJpbmcsXG4gIFVGX0RFUEFSVE1FTlQ/OiBudW1iZXJbXVxuICBVRl9JTlRFUkVTVFM/OiBzdHJpbmcsXG4gIFVGX1NLSUxMUz86IHN0cmluZyxcbiAgVUZfV0VCX1NJVEVTPzogc3RyaW5nLFxuICBVRl9YSU5HPzogc3RyaW5nLFxuICBVRl9MSU5LRURJTj86IHN0cmluZyxcbiAgVUZfRkFDRUJPT0s/OiBzdHJpbmcsXG4gIFVGX1RXSVRURVI/OiBzdHJpbmcsXG4gIFVGX1NLWVBFPzogc3RyaW5nLFxuICBVRl9ESVNUUklDVD86IHN0cmluZyxcbiAgVUZfUEhPTkVfSU5ORVI/OiBzdHJpbmdcbn1cbiJdfQ==
|
package/fesm2022/bx-rest.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, inject, Component, ViewEncapsulation, Inject, Injectable } from '@angular/core';
|
|
3
3
|
import { Subscription, of, mergeMap, throwError, forkJoin, share, from, concatMap, last, concat, tap, shareReplay } from 'rxjs';
|
|
4
|
-
import clone from 'just-clone';
|
|
5
4
|
import { map, catchError, mergeMap as mergeMap$1 } from 'rxjs/operators';
|
|
5
|
+
import clone from 'just-clone';
|
|
6
6
|
import * as i1$1 from '@angular/material/snack-bar';
|
|
7
7
|
import { MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
|
|
8
8
|
import * as i2 from '@angular/material/icon';
|
|
@@ -114,7 +114,9 @@ const $activity = 'activity';
|
|
|
114
114
|
const $robot = 'robot';
|
|
115
115
|
const $send = 'send';
|
|
116
116
|
const $share = 'share';
|
|
117
|
-
const $blogcomment = 'blogcomment';
|
|
117
|
+
const $blogcomment = 'blogcomment';
|
|
118
|
+
const $server = 'server';
|
|
119
|
+
const $time = 'time';
|
|
118
120
|
|
|
119
121
|
class BxRestModule {
|
|
120
122
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -1234,7 +1236,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
1234
1236
|
}] });
|
|
1235
1237
|
|
|
1236
1238
|
class BXRestUserMap extends BaseMapServices {
|
|
1237
|
-
|
|
1239
|
+
get(v) {
|
|
1240
|
+
return (v) ? v.map(i => this.userHttpToTrace(i)) : undefined;
|
|
1241
|
+
}
|
|
1242
|
+
current(v) {
|
|
1243
|
+
return this.userHttpToTrace(v);
|
|
1244
|
+
}
|
|
1245
|
+
userHttpToTrace(user) {
|
|
1238
1246
|
let res = Object.assign(clone(user), {
|
|
1239
1247
|
ID: this.toNum(user.ID),
|
|
1240
1248
|
IS_ONLINE: this.toBool(user.IS_ONLINE),
|
|
@@ -1337,17 +1345,12 @@ class BXRestUser {
|
|
|
1337
1345
|
list: [$user, 'userfield', $list]
|
|
1338
1346
|
}
|
|
1339
1347
|
};
|
|
1340
|
-
this.def = {
|
|
1341
|
-
params: { ACTIVE: 1, start: 0 }
|
|
1342
|
-
};
|
|
1343
1348
|
}
|
|
1344
1349
|
admin() {
|
|
1345
1350
|
return this.http.get(this.url.admin);
|
|
1346
1351
|
}
|
|
1347
1352
|
get(params = {}) {
|
|
1348
|
-
|
|
1349
|
-
this.setDefParam(copyParams);
|
|
1350
|
-
return this.http.post(this.url.get, copyParams);
|
|
1353
|
+
return this.http.post(this.url.get, params);
|
|
1351
1354
|
}
|
|
1352
1355
|
current(update = false) {
|
|
1353
1356
|
let request = this.http.get(this.url.current, {});
|
|
@@ -1379,12 +1382,6 @@ class BXRestUser {
|
|
|
1379
1382
|
}
|
|
1380
1383
|
}
|
|
1381
1384
|
search(params) {
|
|
1382
|
-
if (typeof params === 'string') {
|
|
1383
|
-
params = { FIND: params };
|
|
1384
|
-
}
|
|
1385
|
-
if (typeof params.ACTIVE !== 'boolean') {
|
|
1386
|
-
params.ACTIVE = true;
|
|
1387
|
-
}
|
|
1388
1385
|
return this.http.get(this.url.search, params);
|
|
1389
1386
|
}
|
|
1390
1387
|
access(access) {
|
|
@@ -1393,23 +1390,6 @@ class BXRestUser {
|
|
|
1393
1390
|
fields() {
|
|
1394
1391
|
return this.http.get(this.url.fields);
|
|
1395
1392
|
}
|
|
1396
|
-
setDefParam(params) {
|
|
1397
|
-
if (!params.FILTER) {
|
|
1398
|
-
params.FILTER = {};
|
|
1399
|
-
}
|
|
1400
|
-
if (!params.hasOwnProperty('ACTIVE')) {
|
|
1401
|
-
params.FILTER.ACTIVE = this.def.params.ACTIVE;
|
|
1402
|
-
}
|
|
1403
|
-
if (params.FILTER.ACTIVE && params.FILTER.ACTIVE === 2) {
|
|
1404
|
-
delete params.FILTER.ACTIVE;
|
|
1405
|
-
}
|
|
1406
|
-
if (!params.hasOwnProperty('start')) {
|
|
1407
|
-
params.start = this.def.params.start;
|
|
1408
|
-
}
|
|
1409
|
-
if (params.FILTER.UF_DEPARTMENT && !params.FILTER.UF_DEPARTMENT.length) {
|
|
1410
|
-
delete params.FILTER.UF_DEPARTMENT;
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
1393
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, deps: [{ token: HttpBXServices }, { token: BXRestUserMap }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1414
1394
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, providedIn: 'root' }); }
|
|
1415
1395
|
}
|
|
@@ -2251,6 +2231,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
2251
2231
|
}]
|
|
2252
2232
|
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
2253
2233
|
|
|
2234
|
+
class BXRestServer {
|
|
2235
|
+
constructor(http) {
|
|
2236
|
+
this.http = http;
|
|
2237
|
+
this.url = {
|
|
2238
|
+
time: [$server, $time]
|
|
2239
|
+
};
|
|
2240
|
+
}
|
|
2241
|
+
time() {
|
|
2242
|
+
return this.http.post(this.url.time);
|
|
2243
|
+
}
|
|
2244
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestServer, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2245
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestServer, providedIn: 'root' }); }
|
|
2246
|
+
}
|
|
2247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestServer, decorators: [{
|
|
2248
|
+
type: Injectable,
|
|
2249
|
+
args: [{
|
|
2250
|
+
providedIn: 'root'
|
|
2251
|
+
}]
|
|
2252
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
2253
|
+
|
|
2254
2254
|
class NavvySupport {
|
|
2255
2255
|
constructor(requestClass, mapClass) {
|
|
2256
2256
|
this.requestClass = requestClass;
|
|
@@ -2288,9 +2288,6 @@ class NavvySimple extends NavvySupport {
|
|
|
2288
2288
|
result() {
|
|
2289
2289
|
return this.mapAndSnackBarError(this.func).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v));
|
|
2290
2290
|
}
|
|
2291
|
-
// TODO: реализовать
|
|
2292
|
-
resultAll() {
|
|
2293
|
-
}
|
|
2294
2291
|
}
|
|
2295
2292
|
|
|
2296
2293
|
class NavvyPagNavBase extends NavvySupport {
|
|
@@ -2499,8 +2496,19 @@ class BXRestNavvyUser {
|
|
|
2499
2496
|
constructor(BXRestUserMap, BXRestUser) {
|
|
2500
2497
|
this.BXRestUserMap = BXRestUserMap;
|
|
2501
2498
|
this.BXRestUser = BXRestUser;
|
|
2499
|
+
this.def = {
|
|
2500
|
+
params: { ACTIVE: 1, start: 0 }
|
|
2501
|
+
};
|
|
2502
2502
|
this.Navvy = new Navvy(this.BXRestUser, this.BXRestUserMap);
|
|
2503
2503
|
}
|
|
2504
|
+
admin() {
|
|
2505
|
+
return this.Navvy.simple(this.BXRestUser.admin, 'Информация о возможных принадлежности человека к администратору не получена');
|
|
2506
|
+
}
|
|
2507
|
+
get(params = {}) {
|
|
2508
|
+
let copyParams = clone(params);
|
|
2509
|
+
this.setDefParam(copyParams);
|
|
2510
|
+
return this.Navvy.PagNav(this.BXRestUser.get, copyParams, 'Не удалось получить пользователей', this.BXRestUserMap.get);
|
|
2511
|
+
}
|
|
2504
2512
|
current(update = false) {
|
|
2505
2513
|
return this.Navvy.simpleWithArg(this.self, update, '', this.BXRestUserMap.current);
|
|
2506
2514
|
}
|
|
@@ -2513,7 +2521,13 @@ class BXRestNavvyUser {
|
|
|
2513
2521
|
}
|
|
2514
2522
|
*/
|
|
2515
2523
|
search(params) {
|
|
2516
|
-
|
|
2524
|
+
if (typeof params === 'string') {
|
|
2525
|
+
params = { FIND: params };
|
|
2526
|
+
}
|
|
2527
|
+
if (typeof params.ACTIVE !== 'boolean') {
|
|
2528
|
+
params.ACTIVE = true;
|
|
2529
|
+
}
|
|
2530
|
+
return this.Navvy.PagNav(this.BXRestUser.search, params, 'Сервер не отвечает на запрос поиска', this.BXRestUserMap.get);
|
|
2517
2531
|
}
|
|
2518
2532
|
access(params) {
|
|
2519
2533
|
return this.Navvy.simpleWithArg(this.BXRestUser.access, params, 'Не удалось получить права');
|
|
@@ -2543,6 +2557,86 @@ class BXRestNavvyUser {
|
|
|
2543
2557
|
}));
|
|
2544
2558
|
}
|
|
2545
2559
|
}
|
|
2560
|
+
// getAll(params: iBXGetParam = {}): Observable<iBXRestUser [] | undefined> {
|
|
2561
|
+
// if (!Object.keys(params).length) {
|
|
2562
|
+
// params = clone(this.def.params)
|
|
2563
|
+
// }
|
|
2564
|
+
//
|
|
2565
|
+
// const saveAllUser = compare(params, this.def.params)
|
|
2566
|
+
// return this.user$.pipe(
|
|
2567
|
+
// take(1),
|
|
2568
|
+
// mergeMap(v => {
|
|
2569
|
+
// if (v.load.all) {
|
|
2570
|
+
// if (compare(this.def.params, params)) {
|
|
2571
|
+
// return of(clone(v.data))
|
|
2572
|
+
// }
|
|
2573
|
+
// }
|
|
2574
|
+
//
|
|
2575
|
+
// return this.getEndArray(params).pipe(
|
|
2576
|
+
// take(1),
|
|
2577
|
+
// map(v => {
|
|
2578
|
+
// if (v && v.result) {
|
|
2579
|
+
// let cl = clone(v.result)
|
|
2580
|
+
// return this.saveArrUser(cl)
|
|
2581
|
+
// }
|
|
2582
|
+
// return undefined
|
|
2583
|
+
// }),
|
|
2584
|
+
// )
|
|
2585
|
+
// }),
|
|
2586
|
+
// tap(v => {
|
|
2587
|
+
// if (v && v.length && saveAllUser) {
|
|
2588
|
+
// this.store.dispatch(loadAll({load: true}))
|
|
2589
|
+
// }
|
|
2590
|
+
// params.start = this.def.params.start
|
|
2591
|
+
// })
|
|
2592
|
+
// )
|
|
2593
|
+
// }
|
|
2594
|
+
// private saveArrUser(users: iBXRestUserHttp[]) {
|
|
2595
|
+
// let result: iBXRestUser [] = []
|
|
2596
|
+
// for (const user of users) {
|
|
2597
|
+
// result.push(this.userMap.HttpToBX(user))
|
|
2598
|
+
// }
|
|
2599
|
+
// this.store.dispatch(saveArr({arr: result}))
|
|
2600
|
+
//
|
|
2601
|
+
// return result
|
|
2602
|
+
// }
|
|
2603
|
+
// getEndArray(params: UserFilter = {}): Observable<iHttpAnswerBX<iBXRestUserHttp[]> | undefined> {
|
|
2604
|
+
// return this.get(params).pipe(
|
|
2605
|
+
// mergeMap(items => {
|
|
2606
|
+
// if (items && items.result && typeof items.result === 'object') {
|
|
2607
|
+
// if (items.next) {
|
|
2608
|
+
// params.start = items.next
|
|
2609
|
+
// return this.getEndArray(params).pipe(map(vEnd => {
|
|
2610
|
+
// if (vEnd && items.result && vEnd.result) {
|
|
2611
|
+
// return {result: [...items.result, ...vEnd.result]}
|
|
2612
|
+
// }
|
|
2613
|
+
// return (items) ? items : undefined
|
|
2614
|
+
// }))
|
|
2615
|
+
// }
|
|
2616
|
+
// return of(items)
|
|
2617
|
+
// } else {
|
|
2618
|
+
// return of(undefined)
|
|
2619
|
+
// }
|
|
2620
|
+
// }),
|
|
2621
|
+
// )
|
|
2622
|
+
// }
|
|
2623
|
+
setDefParam(params) {
|
|
2624
|
+
if (!params.FILTER) {
|
|
2625
|
+
params.FILTER = {};
|
|
2626
|
+
}
|
|
2627
|
+
if (!params.hasOwnProperty('ACTIVE')) {
|
|
2628
|
+
params.FILTER.ACTIVE = this.def.params.ACTIVE;
|
|
2629
|
+
}
|
|
2630
|
+
if (params.FILTER.ACTIVE && params.FILTER.ACTIVE === 2) {
|
|
2631
|
+
delete params.FILTER.ACTIVE;
|
|
2632
|
+
}
|
|
2633
|
+
if (!params.hasOwnProperty('start')) {
|
|
2634
|
+
params.start = this.def.params.start;
|
|
2635
|
+
}
|
|
2636
|
+
if (params.FILTER.UF_DEPARTMENT && !params.FILTER.UF_DEPARTMENT.length) {
|
|
2637
|
+
delete params.FILTER.UF_DEPARTMENT;
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2546
2640
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, deps: [{ token: BXRestUserMap }, { token: BXRestUser }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2547
2641
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, providedIn: 'root' }); }
|
|
2548
2642
|
}
|
|
@@ -4168,8 +4262,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
4168
4262
|
}]
|
|
4169
4263
|
}], ctorParameters: function () { return [{ type: BXRestSonetGroup }, { type: BXRestMapSonetGroup }]; } });
|
|
4170
4264
|
|
|
4265
|
+
class BXRestMapServer extends BaseMapServices {
|
|
4266
|
+
time(v) {
|
|
4267
|
+
return (v) ? this.toDate(v) : undefined;
|
|
4268
|
+
}
|
|
4269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapServer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4270
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapServer, providedIn: 'root' }); }
|
|
4271
|
+
}
|
|
4272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapServer, decorators: [{
|
|
4273
|
+
type: Injectable,
|
|
4274
|
+
args: [{
|
|
4275
|
+
providedIn: 'root'
|
|
4276
|
+
}]
|
|
4277
|
+
}] });
|
|
4278
|
+
|
|
4279
|
+
class BXRestNavvyServer {
|
|
4280
|
+
constructor(BXRestServer, BXRestMapServer) {
|
|
4281
|
+
this.BXRestServer = BXRestServer;
|
|
4282
|
+
this.BXRestMapServer = BXRestMapServer;
|
|
4283
|
+
this.Navvy = new Navvy(this.BXRestServer, BXRestMapServer);
|
|
4284
|
+
}
|
|
4285
|
+
time() {
|
|
4286
|
+
return this.Navvy.simple(this.BXRestServer.time, 'Не удалось получить время сервера', this.BXRestMapServer.time);
|
|
4287
|
+
}
|
|
4288
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyServer, deps: [{ token: BXRestServer }, { token: BXRestMapServer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4289
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyServer, providedIn: 'root' }); }
|
|
4290
|
+
}
|
|
4291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyServer, decorators: [{
|
|
4292
|
+
type: Injectable,
|
|
4293
|
+
args: [{
|
|
4294
|
+
providedIn: 'root'
|
|
4295
|
+
}]
|
|
4296
|
+
}], ctorParameters: function () { return [{ type: BXRestServer }, { type: BXRestMapServer }]; } });
|
|
4297
|
+
|
|
4171
4298
|
class BXRest {
|
|
4172
|
-
constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group) {
|
|
4299
|
+
constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server) {
|
|
4173
4300
|
this.user = user;
|
|
4174
4301
|
this.lists = lists;
|
|
4175
4302
|
this.task = task;
|
|
@@ -4179,8 +4306,9 @@ class BXRest {
|
|
|
4179
4306
|
this.log = log;
|
|
4180
4307
|
this.calendar = calendar;
|
|
4181
4308
|
this.sonet_group = sonet_group;
|
|
4309
|
+
this.server = server;
|
|
4182
4310
|
}
|
|
4183
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTask }, { token: BXRestTasks }, { token: BXRestDisk }, { token: BXRestBizproc }, { token: BXRestLog }, { token: BXRestCalendar }, { token: BXRestSonetGroup }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTask }, { token: BXRestTasks }, { token: BXRestDisk }, { token: BXRestBizproc }, { token: BXRestLog }, { token: BXRestCalendar }, { token: BXRestSonetGroup }, { token: BXRestServer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4184
4312
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, providedIn: 'root' }); }
|
|
4185
4313
|
}
|
|
4186
4314
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, decorators: [{
|
|
@@ -4188,9 +4316,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
4188
4316
|
args: [{
|
|
4189
4317
|
providedIn: 'root'
|
|
4190
4318
|
}]
|
|
4191
|
-
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTask }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }, { type: BXRestCalendar }, { type: BXRestSonetGroup }]; } });
|
|
4319
|
+
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTask }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }, { type: BXRestCalendar }, { type: BXRestSonetGroup }, { type: BXRestServer }]; } });
|
|
4192
4320
|
class BXRestNavvy {
|
|
4193
|
-
constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group) {
|
|
4321
|
+
constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server) {
|
|
4194
4322
|
this.user = user;
|
|
4195
4323
|
this.lists = lists;
|
|
4196
4324
|
this.task = task;
|
|
@@ -4200,8 +4328,9 @@ class BXRestNavvy {
|
|
|
4200
4328
|
this.log = log;
|
|
4201
4329
|
this.calendar = calendar;
|
|
4202
4330
|
this.sonet_group = sonet_group;
|
|
4331
|
+
this.server = server;
|
|
4203
4332
|
}
|
|
4204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTask }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }, { token: BXRestNavvyBizproc }, { token: BXRestNavvyLog }, { token: BXRestNavvyCalendar }, { token: BXRestNavvySonetGroup }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4333
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTask }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }, { token: BXRestNavvyBizproc }, { token: BXRestNavvyLog }, { token: BXRestNavvyCalendar }, { token: BXRestNavvySonetGroup }, { token: BXRestNavvyServer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4205
4334
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, providedIn: 'root' }); }
|
|
4206
4335
|
}
|
|
4207
4336
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, decorators: [{
|
|
@@ -4209,7 +4338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
4209
4338
|
args: [{
|
|
4210
4339
|
providedIn: 'root'
|
|
4211
4340
|
}]
|
|
4212
|
-
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTask }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }, { type: BXRestNavvyCalendar }, { type: BXRestNavvySonetGroup }]; } });
|
|
4341
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTask }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }, { type: BXRestNavvyCalendar }, { type: BXRestNavvySonetGroup }, { type: BXRestNavvyServer }]; } });
|
|
4213
4342
|
class BXRestMap {
|
|
4214
4343
|
constructor(lists) {
|
|
4215
4344
|
this.lists = lists;
|