bx-rest 0.1.1 → 0.1.6
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 +11 -0
- package/esm2020/consts/part-name-metods.mjs +12 -1
- package/esm2020/map/lists.mjs +2 -2
- package/esm2020/map/task.mjs +10 -1
- package/esm2020/public-api.mjs +2 -2
- package/esm2020/request/bizproc/activity.mjs +23 -0
- package/esm2020/request/bizproc/event.mjs +19 -0
- package/esm2020/request/bizproc/robot.mjs +22 -0
- package/esm2020/request/bizproc/task.mjs +20 -0
- package/esm2020/request/bizproc/workflow/instance.mjs +19 -0
- package/esm2020/request/bizproc/workflow/template.mjs +27 -0
- package/esm2020/request/bizproc/workflow.mjs +31 -0
- package/esm2020/request/bizproc.mjs +25 -0
- package/esm2020/request/lists/element.mjs +4 -3
- package/esm2020/request/lists.mjs +2 -2
- package/esm2020/request/log/blogcomment.mjs +19 -0
- package/esm2020/request/log/blogpost.mjs +31 -0
- package/esm2020/request/log.mjs +19 -0
- package/esm2020/request/tasks/task.mjs +34 -1
- package/esm2020/request/user.mjs +9 -6
- package/esm2020/request-navvy/bizproc/workflow.mjs +22 -0
- package/esm2020/request-navvy/bizproc.mjs +60 -0
- package/esm2020/request-navvy/disk/storage.mjs +7 -10
- package/esm2020/request-navvy/lists/element.mjs +6 -3
- package/esm2020/request-navvy/lists.mjs +2 -10
- package/esm2020/request-navvy/log/blogcomment.mjs +19 -0
- package/esm2020/request-navvy/log/blogpost.mjs +33 -0
- package/esm2020/request-navvy/log.mjs +19 -0
- package/esm2020/request-navvy/tasks/task.mjs +67 -19
- package/esm2020/request-navvy/user.mjs +7 -8
- package/esm2020/rest.mjs +25 -17
- package/esm2020/services/base.mjs +3 -3
- package/esm2020/services/http/HttpBX.mjs +34 -36
- package/esm2020/services/http/http.mjs +36 -38
- package/esm2020/services/http/sessionKey.mjs +126 -113
- package/esm2020/services/vanilla/sessionStorage.mjs +7 -7
- package/esm2020/settings.mjs +2 -2
- package/esm2020/typification/auth/save.mjs +1 -1
- package/esm2020/typification/rest/base/OrderOptions.mjs +2 -0
- package/esm2020/typification/rest/base/sort.mjs +2 -0
- package/esm2020/typification/rest/bizproc/base/filedEnum.mjs +2 -0
- package/esm2020/typification/rest/bizproc/workflow/start.mjs +2 -0
- package/esm2020/typification/rest/bizproc/workflow/template/list.mjs +2 -0
- package/esm2020/typification/rest/lists/element/add.mjs +2 -0
- package/esm2020/typification/rest/log/blogpost/add.mjs +2 -0
- package/esm2020/typification/rest/task/base/fieldsName.mjs +2 -0
- package/esm2020/typification/rest/tasks/task/add.mjs +2 -0
- package/esm2020/typification/rest/tasks/task/get.mjs +2 -0
- package/esm2020/typification/rest/tasks/task/list.mjs +2 -0
- package/esm2020/typification/rest/user/get.mjs +1 -1
- package/fesm2015/bx-rest.mjs +913 -490
- package/fesm2015/bx-rest.mjs.map +1 -1
- package/fesm2020/bx-rest.mjs +916 -488
- package/fesm2020/bx-rest.mjs.map +1 -1
- package/map/lists.d.ts +1 -1
- package/map/task.d.ts +4 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/request/bizproc/activity.d.ts +12 -0
- package/request/bizproc/event.d.ts +8 -0
- package/request/bizproc/robot.d.ts +11 -0
- package/request/bizproc/task.d.ts +9 -0
- package/request/bizproc/workflow/instance.d.ts +8 -0
- package/request/bizproc/workflow/template.d.ts +16 -0
- package/request/bizproc/workflow.d.ts +20 -0
- package/request/bizproc.d.ts +16 -0
- package/request/lists/element.d.ts +2 -1
- package/request/lists.d.ts +1 -1
- package/request/log/blogcomment.d.ts +8 -0
- package/request/log/blogpost.d.ts +17 -0
- package/request/log.d.ts +10 -0
- package/request/tasks/task.d.ts +9 -1
- package/request-navvy/bizproc/workflow.d.ts +12 -0
- package/request-navvy/bizproc.d.ts +24 -0
- package/request-navvy/disk/storage.d.ts +1 -3
- package/request-navvy/lists/element.d.ts +3 -1
- package/request-navvy/lists.d.ts +1 -8
- package/request-navvy/log/blogcomment.d.ts +8 -0
- package/request-navvy/log/blogpost.d.ts +19 -0
- package/request-navvy/log.d.ts +10 -0
- package/request-navvy/tasks/task.d.ts +13 -3
- package/request-navvy/user.d.ts +1 -3
- package/rest.d.ts +17 -9
- package/services/http/sessionKey.d.ts +3 -23
- package/services/vanilla/sessionStorage.d.ts +5 -5
- package/settings.d.ts +1 -1
- package/typification/auth/save.d.ts +1 -1
- package/typification/rest/base/OrderOptions.d.ts +1 -0
- package/typification/rest/base/sort.d.ts +1 -0
- package/typification/rest/bizproc/base/filedEnum.d.ts +1 -0
- package/typification/rest/bizproc/workflow/start.d.ts +5 -0
- package/typification/rest/bizproc/workflow/template/list.d.ts +8 -0
- package/typification/rest/lists/element/add.d.ts +9 -0
- package/typification/rest/log/blogpost/add.d.ts +12 -0
- package/typification/rest/task/base/fieldsName.d.ts +1 -0
- package/typification/rest/{task/fieldsForSend.d.ts → tasks/task/add.d.ts} +1 -1
- package/typification/rest/tasks/task/get.d.ts +5 -0
- package/typification/rest/tasks/task/list.d.ts +65 -0
- package/typification/rest/user/get.d.ts +6 -1
- package/esm2020/store/auth.mjs +0 -26
- package/esm2020/typification/rest/task/fieldsForSend.mjs +0 -2
- package/store/auth.d.ts +0 -20
package/fesm2020/bx-rest.mjs
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { NgModule, inject, Component, ViewEncapsulation, Inject, Injectable
|
|
3
|
-
import { Subscription,
|
|
4
|
-
import { map, catchError, take as take$1, mergeMap as mergeMap$1 } from 'rxjs/operators';
|
|
2
|
+
import { NgModule, inject, Component, ViewEncapsulation, Inject, Injectable } from '@angular/core';
|
|
3
|
+
import { Subscription, of, mergeMap, throwError, forkJoin, tap } from 'rxjs';
|
|
5
4
|
import clone from 'just-clone';
|
|
5
|
+
import { map, catchError, take, mergeMap as mergeMap$1 } from 'rxjs/operators';
|
|
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';
|
|
9
9
|
import { MatIconModule } from '@angular/material/icon';
|
|
10
10
|
import * as i1 from '@angular/material/button';
|
|
11
11
|
import { MatButtonModule } from '@angular/material/button';
|
|
12
|
-
import * as i1$2 from '@ngrx/store';
|
|
13
|
-
import { createAction, props, createReducer, on } from '@ngrx/store';
|
|
14
12
|
import { DateTime } from 'luxon';
|
|
15
|
-
import * as
|
|
16
|
-
import * as i1$3 from '@angular/common/http';
|
|
13
|
+
import * as i1$2 from '@angular/common/http';
|
|
17
14
|
import { HttpParams } from '@angular/common/http';
|
|
18
15
|
|
|
19
|
-
const
|
|
16
|
+
const BX_REST_SETTINGS = {
|
|
20
17
|
auth: {
|
|
21
18
|
source: 'cookies',
|
|
22
19
|
key: 'auth'
|
|
@@ -33,81 +30,6 @@ function BXRestMapResult(v) {
|
|
|
33
30
|
return undefined;
|
|
34
31
|
}
|
|
35
32
|
|
|
36
|
-
const $get = 'get';
|
|
37
|
-
const $add = 'add';
|
|
38
|
-
const $set = 'set';
|
|
39
|
-
const $event = 'event';
|
|
40
|
-
const $update = 'update';
|
|
41
|
-
const $user = 'user';
|
|
42
|
-
const $task = 'task';
|
|
43
|
-
const $calendar = 'calendar';
|
|
44
|
-
const $meeting = 'meeting';
|
|
45
|
-
const $list = 'list';
|
|
46
|
-
const $search = 'search';
|
|
47
|
-
const $accessibility = 'accessibility';
|
|
48
|
-
const $delete = 'delete';
|
|
49
|
-
const $nearest = 'nearest';
|
|
50
|
-
const $params = 'params';
|
|
51
|
-
const $status = 'status';
|
|
52
|
-
const $resource = 'resource';
|
|
53
|
-
const $booking = 'booking';
|
|
54
|
-
const $section = 'section';
|
|
55
|
-
const $settings = 'settings';
|
|
56
|
-
const $tasks = 'tasks';
|
|
57
|
-
const $elapseditem = 'elapseditem';
|
|
58
|
-
const $getlist = 'getlist';
|
|
59
|
-
const $approve = 'approve';
|
|
60
|
-
const $complete = 'complete';
|
|
61
|
-
const $counters = 'counters';
|
|
62
|
-
const $deger = 'deger';
|
|
63
|
-
const $delegate = 'delegate';
|
|
64
|
-
const $disapprove = 'disapprove';
|
|
65
|
-
const $favorite = 'favorite';
|
|
66
|
-
const $files = 'files';
|
|
67
|
-
const $file = 'file';
|
|
68
|
-
const $attach = 'attach';
|
|
69
|
-
const $field = 'field';
|
|
70
|
-
const $getFields = 'get' + $field + 's';
|
|
71
|
-
const $getaccess = 'getaccess';
|
|
72
|
-
const $history = 'history';
|
|
73
|
-
const $pause = 'pause';
|
|
74
|
-
const $renew = 'renew';
|
|
75
|
-
const $start = 'start';
|
|
76
|
-
const $result = 'result';
|
|
77
|
-
const $planner = 'planner';
|
|
78
|
-
const $disk = 'disk';
|
|
79
|
-
const $rename = 'rename';
|
|
80
|
-
const $markdeleted = 'markdeleted';
|
|
81
|
-
const $restore = 'restore';
|
|
82
|
-
const $folder = 'folder';
|
|
83
|
-
const $getchildren = 'getchildren';
|
|
84
|
-
const $copyto = 'copyto';
|
|
85
|
-
const $moveto = 'moveto';
|
|
86
|
-
const $uploadfile = 'uploadfile';
|
|
87
|
-
const $storage = 'storage';
|
|
88
|
-
const $getTypes = 'getTypes';
|
|
89
|
-
const $stages = 'stages';
|
|
90
|
-
const $getmanifest = 'getmanifest';
|
|
91
|
-
const $isactionallowed = 'isactionallowed';
|
|
92
|
-
const $commentitem = 'commentitem';
|
|
93
|
-
const $department = 'department';
|
|
94
|
-
const $sonet_group = 'sonet_group';
|
|
95
|
-
const $create = 'create';
|
|
96
|
-
const $feature = 'feature';
|
|
97
|
-
const $access = 'access';
|
|
98
|
-
const $request = 'request';
|
|
99
|
-
const $socialnetwork = 'socialnetwork';
|
|
100
|
-
const $api = 'api';
|
|
101
|
-
const $workgroup = 'workgroup';
|
|
102
|
-
const $log = 'log';
|
|
103
|
-
const $blogpost = 'blogpost';
|
|
104
|
-
const $lists = 'lists';
|
|
105
|
-
const $iblock = 'iblock';
|
|
106
|
-
const $type = 'type';
|
|
107
|
-
const $id = 'id';
|
|
108
|
-
const $element = 'element';
|
|
109
|
-
const $url = 'url';
|
|
110
|
-
|
|
111
33
|
class BxRestModule {
|
|
112
34
|
}
|
|
113
35
|
BxRestModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -452,29 +374,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
452
374
|
}]
|
|
453
375
|
}] });
|
|
454
376
|
|
|
455
|
-
const save = createAction('[Auth Component] Save', props());
|
|
456
|
-
const saveAccessToken = createAction('[Auth Component] SaveAccessToken', props());
|
|
457
|
-
const initialState = {
|
|
458
|
-
access_token: '',
|
|
459
|
-
client_endpoint: '',
|
|
460
|
-
domain: '',
|
|
461
|
-
expires: 0,
|
|
462
|
-
expires_in: 0,
|
|
463
|
-
member_id: '',
|
|
464
|
-
refresh_token: '',
|
|
465
|
-
scope: '',
|
|
466
|
-
server_endpoint: '',
|
|
467
|
-
status: '',
|
|
468
|
-
user_id: 0
|
|
469
|
-
};
|
|
470
|
-
const _authReducer = createReducer(initialState, on(saveAccessToken, (s, data) => {
|
|
471
|
-
let copy = clone(s);
|
|
472
|
-
return Object.assign(copy, data);
|
|
473
|
-
}));
|
|
474
|
-
function authReducer(state = initialState, action) {
|
|
475
|
-
return _authReducer(state, action);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
377
|
const time = {
|
|
479
378
|
oneDayMilliseconds: 1000 * 60 * 60 * 24
|
|
480
379
|
};
|
|
@@ -576,7 +475,7 @@ class BaseServices {
|
|
|
576
475
|
}
|
|
577
476
|
getHomeAddress() {
|
|
578
477
|
// return this.prepareBaseAddress(environment.urls.home)
|
|
579
|
-
return this.prepareBaseAddress(
|
|
478
|
+
return this.prepareBaseAddress(BX_REST_SETTINGS.urls.home);
|
|
580
479
|
}
|
|
581
480
|
dateDiff(a, b) {
|
|
582
481
|
return new Date(a.valueOf() - b.valueOf());
|
|
@@ -680,6 +579,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
680
579
|
}]
|
|
681
580
|
}] });
|
|
682
581
|
|
|
582
|
+
class SessionStorage {
|
|
583
|
+
static setItem(name, value) {
|
|
584
|
+
sessionStorage.setItem(name, JSON.stringify(value));
|
|
585
|
+
}
|
|
586
|
+
static getItem(name) {
|
|
587
|
+
const res = sessionStorage.getItem(name);
|
|
588
|
+
if (res) {
|
|
589
|
+
return JSON.parse(res);
|
|
590
|
+
}
|
|
591
|
+
return undefined;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
SessionStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
595
|
+
SessionStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionStorage, providedIn: 'root' });
|
|
596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionStorage, decorators: [{
|
|
597
|
+
type: Injectable,
|
|
598
|
+
args: [{
|
|
599
|
+
providedIn: 'root'
|
|
600
|
+
}]
|
|
601
|
+
}] });
|
|
602
|
+
|
|
683
603
|
class RestServices {
|
|
684
604
|
constructor() {
|
|
685
605
|
this.BX24 = false;
|
|
@@ -700,113 +620,134 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
700
620
|
}], ctorParameters: function () { return []; } });
|
|
701
621
|
|
|
702
622
|
class SessionKeyServices extends BaseServices {
|
|
703
|
-
constructor(
|
|
623
|
+
constructor(
|
|
624
|
+
// private route: ActivatedRoute,
|
|
625
|
+
BxApiLib) {
|
|
704
626
|
super();
|
|
705
|
-
this.store = store;
|
|
706
|
-
this.route = route;
|
|
707
627
|
this.BxApiLib = BxApiLib;
|
|
708
628
|
this.authHave = false;
|
|
709
629
|
this.subscribe = {
|
|
710
630
|
authData: new Subscription()
|
|
711
631
|
};
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
//
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
let save = {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
status: (param.status) ? param.status : undefined,
|
|
738
|
-
user_id: (param.user_id) ? param.user_id : undefined,
|
|
739
|
-
type: (param.type) ? param.type : undefined,
|
|
740
|
-
};
|
|
741
|
-
}
|
|
632
|
+
let authData = SessionStorage.getItem(this.constructor.name);
|
|
633
|
+
if ((authData && !authData.access_token.length) || !authData) {
|
|
634
|
+
// получаем токен по собственным каналом (в битриксе приложение trace:apps.trace)
|
|
635
|
+
window.addEventListener('message', (event) => {
|
|
636
|
+
if (event.origin !== window.origin) { // проверяем что это не наше сообщение (с текущего приложения)
|
|
637
|
+
if (event.data && event.data.param) {
|
|
638
|
+
if (typeof event.data.param === 'string') {
|
|
639
|
+
event.data.param = JSON.parse(event.data.param);
|
|
640
|
+
}
|
|
641
|
+
if (event.data.param.access_token) {
|
|
642
|
+
let param = event.data.param;
|
|
643
|
+
let save = {
|
|
644
|
+
access_token: (param.access_token) ? param.access_token : undefined,
|
|
645
|
+
client_endpoint: (param.client_endpoint) ? param.client_endpoint : undefined,
|
|
646
|
+
domain: (param.domain) ? param.domain : undefined,
|
|
647
|
+
expires: (param.expires) ? param.expires : undefined,
|
|
648
|
+
expires_in: (param.expires_in) ? param.expires_in : undefined,
|
|
649
|
+
member_id: (param.member_id) ? param.member_id : undefined,
|
|
650
|
+
refresh_token: (param.refresh_token) ? param.refresh_token : undefined,
|
|
651
|
+
scope: (param.scope) ? param.scope : undefined,
|
|
652
|
+
server_endpoint: (param.server_endpoint) ? param.server_endpoint : undefined,
|
|
653
|
+
status: (param.status) ? param.status : undefined,
|
|
654
|
+
user_id: (param.user_id) ? param.user_id : undefined,
|
|
655
|
+
type: (param.type) ? param.type : undefined,
|
|
656
|
+
};
|
|
742
657
|
if (Object.keys(save).length && save.access_token) {
|
|
743
|
-
this.
|
|
658
|
+
SessionStorage.setItem(this.constructor.name, save);
|
|
744
659
|
this.subscribeAll();
|
|
745
660
|
}
|
|
746
661
|
}
|
|
747
662
|
}
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
/*
|
|
666
|
+
this.subscribe.authData = this.route.queryParamMap
|
|
667
|
+
.pipe(
|
|
668
|
+
filter(param =>
|
|
669
|
+
param.has('AUTH_ID')
|
|
670
|
+
|| param.has('access_token')
|
|
671
|
+
|| param.has('REFRESH_ID')
|
|
672
|
+
|| param.has('DOMAIN')
|
|
673
|
+
)
|
|
674
|
+
)
|
|
675
|
+
.subscribe((param: ParamMap) => {
|
|
676
|
+
if(!save) {
|
|
677
|
+
let save = {
|
|
678
|
+
access_token: undefined,
|
|
679
|
+
client_endpoint: (param.client_endpoint) ? param.client_endpoint : undefined,
|
|
680
|
+
domain: (param.domain) ? param.domain : undefined,
|
|
681
|
+
expires: (param.expires) ? param.expires : undefined,
|
|
682
|
+
expires_in: (param.expires_in) ? param.expires_in : undefined,
|
|
683
|
+
member_id: (param.member_id) ? param.member_id : undefined,
|
|
684
|
+
refresh_token: (param.refresh_token) ? param.refresh_token : undefined,
|
|
685
|
+
scope: (param.scope) ? param.scope : undefined,
|
|
686
|
+
server_endpoint: (param.server_endpoint) ? param.server_endpoint : undefined,
|
|
687
|
+
status: (param.status) ? param.status : undefined,
|
|
688
|
+
user_id: (param.user_id) ? param.user_id : undefined,
|
|
689
|
+
type: (param.type) ? param.type : undefined,
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
if (param.has('AUTH_ID') && !authData?.access_token.length) {
|
|
694
|
+
const get = param.get('AUTH_ID')
|
|
695
|
+
if (get) {
|
|
696
|
+
Cookies.set('auth', get) //TODO: потом убрать
|
|
697
|
+
save.access_token = get
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
if (param.has('access_token') && !authData.access_token.length) {
|
|
702
|
+
const get = param.get('access_token')
|
|
703
|
+
if (get) {
|
|
704
|
+
Cookies.set('auth', get) // TODO: потом убрать
|
|
705
|
+
save.access_token = get
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
if (param.has('REFRESH_ID') && !authData.refresh_token.length) {
|
|
710
|
+
const get = param.get('REFRESH_ID')
|
|
711
|
+
if (get) {
|
|
712
|
+
save.refresh_token = get
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
if (param.has('DOMAIN') && !authData.domain.length) {
|
|
717
|
+
const get = param.get('DOMAIN')
|
|
718
|
+
if (get) {
|
|
719
|
+
save.domain = get
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
if (Object.keys(save).length && save.access_token) {
|
|
723
|
+
SessionStorage.setItem(this.constructor.name, save)
|
|
724
|
+
this.subscribeAll()
|
|
725
|
+
} else {
|
|
726
|
+
// если битрикс не шлёт нужные мне параметры на прямую
|
|
727
|
+
// просим их мне отдать так как описано это в документации
|
|
728
|
+
let f = () => {
|
|
729
|
+
if (this.BxApiLib.BX24) {
|
|
730
|
+
const initDate = this.BxApiLib.BX24.getAuth()
|
|
731
|
+
SessionStorage.setItem(this.constructor.name, save)
|
|
796
732
|
}
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
this.BxApiLib.init(f)
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
})
|
|
739
|
+
*/
|
|
740
|
+
}
|
|
741
|
+
else if (this.getAuth().length) {
|
|
742
|
+
this.authHave = true;
|
|
743
|
+
}
|
|
744
|
+
this.authData = authData;
|
|
804
745
|
}
|
|
805
746
|
subscribeAll() {
|
|
806
747
|
this.subscribe.authData.unsubscribe();
|
|
807
748
|
}
|
|
808
749
|
getAuth() {
|
|
809
|
-
switch (
|
|
750
|
+
switch (BX_REST_SETTINGS.auth.key) {
|
|
810
751
|
case 'auth':
|
|
811
752
|
return CookiesServices.get('auth');
|
|
812
753
|
default:
|
|
@@ -823,8 +764,8 @@ class SessionKeyServices extends BaseServices {
|
|
|
823
764
|
}
|
|
824
765
|
}
|
|
825
766
|
getKeyAuth() {
|
|
826
|
-
if (
|
|
827
|
-
return
|
|
767
|
+
if (BX_REST_SETTINGS.auth.key.length) {
|
|
768
|
+
return BX_REST_SETTINGS.auth.key;
|
|
828
769
|
}
|
|
829
770
|
else {
|
|
830
771
|
if (window.BX && window.BX.bitrix_sessid()
|
|
@@ -859,34 +800,29 @@ class SessionKeyServices extends BaseServices {
|
|
|
859
800
|
return false;
|
|
860
801
|
}
|
|
861
802
|
getAuthParams() {
|
|
862
|
-
switch (
|
|
803
|
+
switch (BX_REST_SETTINGS.auth.source) {
|
|
863
804
|
case 'cookies':
|
|
864
|
-
return
|
|
805
|
+
return this.getAuth();
|
|
865
806
|
default:
|
|
866
|
-
return this.authData
|
|
807
|
+
return (this.authData) ? this.authData.access_token : undefined;
|
|
867
808
|
}
|
|
868
809
|
}
|
|
869
810
|
getBaseUrl() {
|
|
870
|
-
return of(this.prepareBaseAddress(
|
|
811
|
+
return of(this.prepareBaseAddress(BX_REST_SETTINGS.urls.home, 'rest'));
|
|
871
812
|
// return this.authData$.pipe( // TODO: разобраться позже
|
|
872
813
|
// take(1),
|
|
873
814
|
// map(v => (v && v.domain) ? this.prepareBaseAddress(v.domain) : undefined)
|
|
874
815
|
// )
|
|
875
816
|
}
|
|
876
817
|
}
|
|
877
|
-
SessionKeyServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionKeyServices, deps: [{ token:
|
|
818
|
+
SessionKeyServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionKeyServices, deps: [{ token: RestServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
878
819
|
SessionKeyServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionKeyServices, providedIn: 'root' });
|
|
879
820
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionKeyServices, decorators: [{
|
|
880
821
|
type: Injectable,
|
|
881
822
|
args: [{
|
|
882
823
|
providedIn: 'root'
|
|
883
824
|
}]
|
|
884
|
-
}], ctorParameters: function () { return [{ type:
|
|
885
|
-
type: Optional
|
|
886
|
-
}, {
|
|
887
|
-
type: Inject,
|
|
888
|
-
args: [REST_SETTINGS]
|
|
889
|
-
}] }]; } });
|
|
825
|
+
}], ctorParameters: function () { return [{ type: RestServices }]; } });
|
|
890
826
|
|
|
891
827
|
class HttpData extends BaseServices {
|
|
892
828
|
constructor() {
|
|
@@ -1017,14 +953,14 @@ class BaseHttp extends HttpData {
|
|
|
1017
953
|
};
|
|
1018
954
|
}
|
|
1019
955
|
}
|
|
1020
|
-
BaseHttp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseHttp, deps: [{ token: i1$
|
|
956
|
+
BaseHttp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseHttp, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1021
957
|
BaseHttp.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseHttp, providedIn: 'root' });
|
|
1022
958
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseHttp, decorators: [{
|
|
1023
959
|
type: Injectable,
|
|
1024
960
|
args: [{
|
|
1025
961
|
providedIn: 'root'
|
|
1026
962
|
}]
|
|
1027
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
963
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: SnackBarService }]; } });
|
|
1028
964
|
|
|
1029
965
|
class BaseHttpServices extends BaseHttp {
|
|
1030
966
|
httpGet(url, params = {}, settings = this.defSettings) {
|
|
@@ -1043,56 +979,54 @@ class HttpServices extends BaseHttpServices {
|
|
|
1043
979
|
this.session = session;
|
|
1044
980
|
}
|
|
1045
981
|
httpPost(url, params = {}, settings = this.defSettings) {
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
}));
|
|
982
|
+
let auth = this.session.getAuthParams();
|
|
983
|
+
if (auth) {
|
|
984
|
+
const paramsClone = clone(params);
|
|
985
|
+
paramsClone[this.session.getKeyAuth()] = auth;
|
|
986
|
+
return this.session.getBaseUrl().pipe(mergeMap(v => {
|
|
987
|
+
if (v) {
|
|
988
|
+
return this.http.post(this.prepareBaseAddress(v) + url, this.getHttpParamsPost(paramsClone, new FormData(), false, [], settings));
|
|
989
|
+
}
|
|
990
|
+
return throwError(() => 'get base url error');
|
|
991
|
+
}));
|
|
992
|
+
}
|
|
993
|
+
else {
|
|
994
|
+
this.snackBar.error('Error: Auth not get');
|
|
995
|
+
return throwError(() => 'auth not get');
|
|
996
|
+
}
|
|
1062
997
|
}
|
|
1063
998
|
httpGet(url, params = {}, settings = this.defSettings) {
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
}
|
|
1069
|
-
const paramsClone = clone(params);
|
|
1070
|
-
paramsClone[this.session.getKeyAuth()] = auth;
|
|
1071
|
-
let options = {
|
|
1072
|
-
params: this.getHttpParamsGet(paramsClone)
|
|
1073
|
-
};
|
|
1074
|
-
return this.session.getBaseUrl().pipe(mergeMap(v => {
|
|
1075
|
-
if (v) {
|
|
1076
|
-
return this.http.get(this.prepareBaseAddress(v) + url, options);
|
|
1077
|
-
}
|
|
1078
|
-
return throwError(() => 'get base url error');
|
|
1079
|
-
}));
|
|
1080
|
-
}
|
|
1081
|
-
else {
|
|
1082
|
-
this.snackBar.error('Error: Auth not get');
|
|
1083
|
-
return throwError(() => 'auth not get');
|
|
999
|
+
let auth = this.session.getAuthParams();
|
|
1000
|
+
if (auth) {
|
|
1001
|
+
if (params === null) {
|
|
1002
|
+
params = {};
|
|
1084
1003
|
}
|
|
1085
|
-
|
|
1004
|
+
const paramsClone = clone(params);
|
|
1005
|
+
paramsClone[this.session.getKeyAuth()] = auth;
|
|
1006
|
+
let options = {
|
|
1007
|
+
params: this.getHttpParamsGet(paramsClone)
|
|
1008
|
+
};
|
|
1009
|
+
return this.session.getBaseUrl().pipe(mergeMap(v => {
|
|
1010
|
+
if (v) {
|
|
1011
|
+
return this.http.get(this.prepareBaseAddress(v) + url, options);
|
|
1012
|
+
}
|
|
1013
|
+
return throwError(() => 'get base url error');
|
|
1014
|
+
}));
|
|
1015
|
+
}
|
|
1016
|
+
else {
|
|
1017
|
+
this.snackBar.error('Error: Auth not get');
|
|
1018
|
+
return throwError(() => 'auth not get');
|
|
1019
|
+
}
|
|
1086
1020
|
}
|
|
1087
1021
|
}
|
|
1088
|
-
HttpServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpServices, deps: [{ token: i1$
|
|
1022
|
+
HttpServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpServices, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }, { token: SessionKeyServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1089
1023
|
HttpServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpServices, providedIn: 'root' });
|
|
1090
1024
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpServices, decorators: [{
|
|
1091
1025
|
type: Injectable,
|
|
1092
1026
|
args: [{
|
|
1093
1027
|
providedIn: 'root'
|
|
1094
1028
|
}]
|
|
1095
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1029
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: SnackBarService }, { type: SessionKeyServices }]; } });
|
|
1096
1030
|
|
|
1097
1031
|
// type TransformFunction<T, R> = (input: T) => R;
|
|
1098
1032
|
class HttpBXServices extends HttpServices {
|
|
@@ -1152,44 +1086,42 @@ class HttpBXServices extends HttpServices {
|
|
|
1152
1086
|
return this.httpGet(this.getNameMethod(name), params, settings);
|
|
1153
1087
|
}
|
|
1154
1088
|
httpPost(url, params = {}, settings = this.defSettings) {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
}));
|
|
1089
|
+
let auth = this.session.getAuthParams();
|
|
1090
|
+
if (auth) {
|
|
1091
|
+
const paramsClone = clone(params);
|
|
1092
|
+
paramsClone[this.session.getKeyAuth()] = auth;
|
|
1093
|
+
return this.session.getBaseUrl().pipe(mergeMap(v => {
|
|
1094
|
+
if (v) {
|
|
1095
|
+
return this.http.post(this.prepareBaseAddress(v) + url, this.getHttpParamsPost(paramsClone, new FormData(), false, [], settings));
|
|
1096
|
+
}
|
|
1097
|
+
return throwError(() => 'get base url error');
|
|
1098
|
+
}));
|
|
1099
|
+
}
|
|
1100
|
+
else {
|
|
1101
|
+
return throwError(() => 'auth not get');
|
|
1102
|
+
}
|
|
1170
1103
|
}
|
|
1171
1104
|
httpGet(url, params = {}, settings = this.defSettings) {
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
}
|
|
1177
|
-
const paramsClone = clone(params);
|
|
1178
|
-
paramsClone[this.session.getKeyAuth()] = auth;
|
|
1179
|
-
let options = {
|
|
1180
|
-
params: this.getHttpParamsGet(paramsClone)
|
|
1181
|
-
};
|
|
1182
|
-
return this.session.getBaseUrl().pipe(mergeMap(v => {
|
|
1183
|
-
if (v) {
|
|
1184
|
-
return this.http.get(this.prepareBaseAddress(v) + url, options);
|
|
1185
|
-
}
|
|
1186
|
-
return throwError(() => 'get base url error');
|
|
1187
|
-
}));
|
|
1105
|
+
let auth = this.session.getAuthParams();
|
|
1106
|
+
if (auth) {
|
|
1107
|
+
if (params === null) {
|
|
1108
|
+
params = {};
|
|
1188
1109
|
}
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1110
|
+
const paramsClone = clone(params);
|
|
1111
|
+
paramsClone[this.session.getKeyAuth()] = auth;
|
|
1112
|
+
let options = {
|
|
1113
|
+
params: this.getHttpParamsGet(paramsClone)
|
|
1114
|
+
};
|
|
1115
|
+
return this.session.getBaseUrl().pipe(mergeMap(v => {
|
|
1116
|
+
if (v) {
|
|
1117
|
+
return this.http.get(this.prepareBaseAddress(v) + url, options);
|
|
1118
|
+
}
|
|
1119
|
+
return throwError(() => 'get base url error');
|
|
1120
|
+
}));
|
|
1121
|
+
}
|
|
1122
|
+
else {
|
|
1123
|
+
return throwError(() => 'auth not get');
|
|
1124
|
+
}
|
|
1193
1125
|
}
|
|
1194
1126
|
getNameMethod(arr) {
|
|
1195
1127
|
return arr.join('.');
|
|
@@ -1204,157 +1136,102 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1204
1136
|
}]
|
|
1205
1137
|
}] });
|
|
1206
1138
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, decorators: [{
|
|
1293
|
-
type: Injectable,
|
|
1294
|
-
args: [{
|
|
1295
|
-
providedIn: 'root'
|
|
1296
|
-
}]
|
|
1297
|
-
}], ctorParameters: function () { return [{ type: BXRestMapListsElement }]; } });
|
|
1298
|
-
|
|
1299
|
-
class Navvy {
|
|
1300
|
-
constructor(snackBar) {
|
|
1301
|
-
this.snackBar = snackBar;
|
|
1302
|
-
}
|
|
1303
|
-
mapAndSnackBarError(request, errorText) {
|
|
1304
|
-
return request.pipe(map(v => BXRestMapResult(v)), catchError(err => {
|
|
1305
|
-
this.snackBar.error(errorText);
|
|
1306
|
-
return throwError(() => err);
|
|
1307
|
-
}));
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
Navvy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Navvy, deps: [{ token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1311
|
-
Navvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Navvy, providedIn: 'root' });
|
|
1312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Navvy, decorators: [{
|
|
1313
|
-
type: Injectable,
|
|
1314
|
-
args: [{
|
|
1315
|
-
providedIn: 'root'
|
|
1316
|
-
}]
|
|
1317
|
-
}], ctorParameters: function () { return [{ type: SnackBarService }]; } });
|
|
1318
|
-
|
|
1319
|
-
class BXRestNavvyListsElement {
|
|
1320
|
-
constructor(BXRestListsElement, BXRestMap, Navvy) {
|
|
1321
|
-
this.BXRestListsElement = BXRestListsElement;
|
|
1322
|
-
this.BXRestMap = BXRestMap;
|
|
1323
|
-
this.Navvy = Navvy;
|
|
1324
|
-
}
|
|
1325
|
-
get(pram) {
|
|
1326
|
-
return this.Navvy.mapAndSnackBarError(this.BXRestListsElement.get(pram), 'Не удалось получить элемент списка').pipe(map(v => (v) ? this.BXRestMap.get(v) : undefined));
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
BXRestNavvyListsElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, deps: [{ token: BXRestListsElement }, { token: BXRestMapListsElement }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1330
|
-
BXRestNavvyListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, providedIn: 'root' });
|
|
1331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, decorators: [{
|
|
1332
|
-
type: Injectable,
|
|
1333
|
-
args: [{
|
|
1334
|
-
providedIn: 'root'
|
|
1335
|
-
}]
|
|
1336
|
-
}], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestMapListsElement }, { type: Navvy }]; } });
|
|
1139
|
+
const $get = 'get';
|
|
1140
|
+
const $add = 'add';
|
|
1141
|
+
const $set = 'set';
|
|
1142
|
+
const $event = 'event';
|
|
1143
|
+
const $update = 'update';
|
|
1144
|
+
const $user = 'user';
|
|
1145
|
+
const $task = 'task';
|
|
1146
|
+
const $calendar = 'calendar';
|
|
1147
|
+
const $meeting = 'meeting';
|
|
1148
|
+
const $list = 'list';
|
|
1149
|
+
const $search = 'search';
|
|
1150
|
+
const $accessibility = 'accessibility';
|
|
1151
|
+
const $delete = 'delete';
|
|
1152
|
+
const $nearest = 'nearest';
|
|
1153
|
+
const $params = 'params';
|
|
1154
|
+
const $status = 'status';
|
|
1155
|
+
const $resource = 'resource';
|
|
1156
|
+
const $booking = 'booking';
|
|
1157
|
+
const $section = 'section';
|
|
1158
|
+
const $settings = 'settings';
|
|
1159
|
+
const $tasks = 'tasks';
|
|
1160
|
+
const $elapseditem = 'elapseditem';
|
|
1161
|
+
const $getlist = 'getlist';
|
|
1162
|
+
const $approve = 'approve';
|
|
1163
|
+
const $complete = 'complete';
|
|
1164
|
+
const $counters = 'counters';
|
|
1165
|
+
const $deger = 'deger';
|
|
1166
|
+
const $delegate = 'delegate';
|
|
1167
|
+
const $disapprove = 'disapprove';
|
|
1168
|
+
const $favorite = 'favorite';
|
|
1169
|
+
const $files = 'files';
|
|
1170
|
+
const $file = 'file';
|
|
1171
|
+
const $attach = 'attach';
|
|
1172
|
+
const $field = 'field';
|
|
1173
|
+
const $getFields = 'get' + $field + 's';
|
|
1174
|
+
const $getaccess = 'getaccess';
|
|
1175
|
+
const $history = 'history';
|
|
1176
|
+
const $pause = 'pause';
|
|
1177
|
+
const $renew = 'renew';
|
|
1178
|
+
const $start = 'start';
|
|
1179
|
+
const $result = 'result';
|
|
1180
|
+
const $planner = 'planner';
|
|
1181
|
+
const $disk = 'disk';
|
|
1182
|
+
const $rename = 'rename';
|
|
1183
|
+
const $markdeleted = 'markdeleted';
|
|
1184
|
+
const $restore = 'restore';
|
|
1185
|
+
const $folder = 'folder';
|
|
1186
|
+
const $getchildren = 'getchildren';
|
|
1187
|
+
const $copyto = 'copyto';
|
|
1188
|
+
const $moveto = 'moveto';
|
|
1189
|
+
const $uploadfile = 'uploadfile';
|
|
1190
|
+
const $storage = 'storage';
|
|
1191
|
+
const $getTypes = 'getTypes';
|
|
1192
|
+
const $stages = 'stages';
|
|
1193
|
+
const $getmanifest = 'getmanifest';
|
|
1194
|
+
const $isactionallowed = 'isactionallowed';
|
|
1195
|
+
const $commentitem = 'commentitem';
|
|
1196
|
+
const $department = 'department';
|
|
1197
|
+
const $sonet_group = 'sonet_group';
|
|
1198
|
+
const $create = 'create';
|
|
1199
|
+
const $feature = 'feature';
|
|
1200
|
+
const $access = 'access';
|
|
1201
|
+
const $request = 'request';
|
|
1202
|
+
const $socialnetwork = 'socialnetwork';
|
|
1203
|
+
const $api = 'api';
|
|
1204
|
+
const $workgroup = 'workgroup';
|
|
1205
|
+
const $log = 'log';
|
|
1206
|
+
const $blogpost = 'blogpost';
|
|
1207
|
+
const $lists = 'lists';
|
|
1208
|
+
const $iblock = 'iblock';
|
|
1209
|
+
const $type = 'type';
|
|
1210
|
+
const $id = 'id';
|
|
1211
|
+
const $element = 'element';
|
|
1212
|
+
const $url = 'url';
|
|
1213
|
+
const $bizproc = 'bizproc';
|
|
1214
|
+
const $workflow = 'workflow';
|
|
1215
|
+
const $instances = 'instances';
|
|
1216
|
+
const $terminate = '$terminate';
|
|
1217
|
+
const $kill = 'kill';
|
|
1218
|
+
const $template = 'template';
|
|
1219
|
+
const $activity = 'activity';
|
|
1220
|
+
const $robot = 'robot';
|
|
1221
|
+
const $send = 'send';
|
|
1222
|
+
const $share = 'share';
|
|
1223
|
+
const $blogcomment = 'blogcomment';
|
|
1337
1224
|
|
|
1338
|
-
class
|
|
1339
|
-
constructor(element) {
|
|
1340
|
-
this.element = element;
|
|
1341
|
-
this.url = {
|
|
1342
|
-
add: [$lists, $add],
|
|
1343
|
-
delete: [$lists, $delete],
|
|
1344
|
-
get: [$lists, $get],
|
|
1345
|
-
update: [$lists, $update],
|
|
1346
|
-
getIblockTypeId: [$lists, $get, $iblock, $type, $id], // Метод возвращает id типа инфоблока
|
|
1347
|
-
};
|
|
1348
|
-
}
|
|
1225
|
+
class BaseMapServices extends BaseServices {
|
|
1349
1226
|
}
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type:
|
|
1227
|
+
BaseMapServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1228
|
+
BaseMapServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, providedIn: 'root' });
|
|
1229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, decorators: [{
|
|
1353
1230
|
type: Injectable,
|
|
1354
1231
|
args: [{
|
|
1355
1232
|
providedIn: 'root'
|
|
1356
1233
|
}]
|
|
1357
|
-
}]
|
|
1234
|
+
}] });
|
|
1358
1235
|
|
|
1359
1236
|
class BXRestUserMap extends BaseMapServices {
|
|
1360
1237
|
current(user) {
|
|
@@ -1511,17 +1388,20 @@ class BXRestUser {
|
|
|
1511
1388
|
return this.http.get(this.url.fields);
|
|
1512
1389
|
}
|
|
1513
1390
|
setDefParam(params) {
|
|
1391
|
+
if (!params.FILTER) {
|
|
1392
|
+
params.FILTER = {};
|
|
1393
|
+
}
|
|
1514
1394
|
if (!params.hasOwnProperty('ACTIVE')) {
|
|
1515
|
-
params.ACTIVE = this.def.params.ACTIVE;
|
|
1395
|
+
params.FILTER.ACTIVE = this.def.params.ACTIVE;
|
|
1516
1396
|
}
|
|
1517
|
-
if (params.ACTIVE && params.ACTIVE === 2) {
|
|
1518
|
-
delete params.ACTIVE;
|
|
1397
|
+
if (params.FILTER.ACTIVE && params.FILTER.ACTIVE === 2) {
|
|
1398
|
+
delete params.FILTER.ACTIVE;
|
|
1519
1399
|
}
|
|
1520
1400
|
if (!params.hasOwnProperty('start')) {
|
|
1521
1401
|
params.start = this.def.params.start;
|
|
1522
1402
|
}
|
|
1523
|
-
if (params.UF_DEPARTMENT && !params.UF_DEPARTMENT.length) {
|
|
1524
|
-
delete params.UF_DEPARTMENT;
|
|
1403
|
+
if (params.FILTER.UF_DEPARTMENT && !params.FILTER.UF_DEPARTMENT.length) {
|
|
1404
|
+
delete params.FILTER.UF_DEPARTMENT;
|
|
1525
1405
|
}
|
|
1526
1406
|
}
|
|
1527
1407
|
}
|
|
@@ -1534,6 +1414,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1534
1414
|
}]
|
|
1535
1415
|
}], ctorParameters: function () { return [{ type: HttpBXServices }, { type: BXRestUserMap }]; } });
|
|
1536
1416
|
|
|
1417
|
+
class BXRestListsElement {
|
|
1418
|
+
constructor(http) {
|
|
1419
|
+
this.http = http;
|
|
1420
|
+
this.url = {
|
|
1421
|
+
add: [$lists, $element, $add],
|
|
1422
|
+
delete: [$lists, $element, $delete],
|
|
1423
|
+
get: [$lists, $element, $get],
|
|
1424
|
+
update: [$lists, $element, $update],
|
|
1425
|
+
getFileUrl: [$lists, $element, $get, $file, $url] // Метод возвращает путь к файлу // TODO: Реализовать
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
get(pram) {
|
|
1429
|
+
return this.http.post(this.url.get, pram);
|
|
1430
|
+
}
|
|
1431
|
+
add(param) {
|
|
1432
|
+
return this.http.post(this.url.add, param);
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
BXRestListsElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestListsElement, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1436
|
+
BXRestListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestListsElement, providedIn: 'root' });
|
|
1437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestListsElement, decorators: [{
|
|
1438
|
+
type: Injectable,
|
|
1439
|
+
args: [{
|
|
1440
|
+
providedIn: 'root'
|
|
1441
|
+
}]
|
|
1442
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1443
|
+
|
|
1444
|
+
class BXRestLists {
|
|
1445
|
+
constructor(element) {
|
|
1446
|
+
this.element = element;
|
|
1447
|
+
this.url = {
|
|
1448
|
+
add: [$lists, $add],
|
|
1449
|
+
delete: [$lists, $delete],
|
|
1450
|
+
get: [$lists, $get],
|
|
1451
|
+
update: [$lists, $update],
|
|
1452
|
+
getIblockTypeId: [$lists, $get, $iblock, $type, $id], // Метод возвращает id типа инфоблока
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
BXRestLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, deps: [{ token: BXRestListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1457
|
+
BXRestLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, providedIn: 'root' });
|
|
1458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, decorators: [{
|
|
1459
|
+
type: Injectable,
|
|
1460
|
+
args: [{
|
|
1461
|
+
providedIn: 'root'
|
|
1462
|
+
}]
|
|
1463
|
+
}], ctorParameters: function () { return [{ type: BXRestListsElement }]; } });
|
|
1464
|
+
|
|
1465
|
+
// import { AnswerApiTaskBX } from '../../typification/rest/task/answers/task';
|
|
1537
1466
|
class BXRestTasksTask {
|
|
1538
1467
|
constructor(http) {
|
|
1539
1468
|
this.http = http;
|
|
@@ -1581,6 +1510,38 @@ class BXRestTasksTask {
|
|
|
1581
1510
|
add(param) {
|
|
1582
1511
|
return this.http.post(this.url.add, param);
|
|
1583
1512
|
}
|
|
1513
|
+
/*
|
|
1514
|
+
update(taskId: number, updateFields: iBXRestTaskFieldsName[], task: iBXRestTask) {
|
|
1515
|
+
let sendTask: Record<string, any> = {}
|
|
1516
|
+
let taskTS: Record<string, any> = task
|
|
1517
|
+
if (updateFields.length) {
|
|
1518
|
+
for (let updateField of updateFields) {
|
|
1519
|
+
if (taskTS[camelCase(updateField)]) {
|
|
1520
|
+
sendTask[updateField] = taskTS[camelCase(updateField)]
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
if (Object.values(sendTask).length) {
|
|
1524
|
+
return this.http.post(
|
|
1525
|
+
this.url.update,
|
|
1526
|
+
{taskId: taskId, fields: sendTask},
|
|
1527
|
+
'error to update task')
|
|
1528
|
+
} else {
|
|
1529
|
+
this.snackBar.error('not valid send data task')
|
|
1530
|
+
console.error('not valid send data task', sendTask, task)
|
|
1531
|
+
return of(undefined)
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
this.snackBar.warning('not have field for update')
|
|
1536
|
+
return of(undefined)
|
|
1537
|
+
}
|
|
1538
|
+
*/
|
|
1539
|
+
get(requestArray) {
|
|
1540
|
+
return this.http.post(this.url.get, requestArray);
|
|
1541
|
+
}
|
|
1542
|
+
list(param = {}) {
|
|
1543
|
+
return this.http.post(this.url.list, param);
|
|
1544
|
+
}
|
|
1584
1545
|
}
|
|
1585
1546
|
BXRestTasksTask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasksTask, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1586
1547
|
BXRestTasksTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasksTask, providedIn: 'root' });
|
|
@@ -1696,33 +1657,243 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1696
1657
|
}]
|
|
1697
1658
|
}], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: BXRestDiskFolder }]; } });
|
|
1698
1659
|
|
|
1699
|
-
class
|
|
1700
|
-
|
|
1701
|
-
|
|
1660
|
+
class BXRestBizprocWorkflowInstance {
|
|
1661
|
+
constructor() {
|
|
1662
|
+
this.url = {
|
|
1663
|
+
list: [$bizproc, $workflow, $instances, $list], // Возвращает список запущенных бизнес-процессов. Алиас bizproc.workflow.instances
|
|
1664
|
+
};
|
|
1702
1665
|
}
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1666
|
+
}
|
|
1667
|
+
BXRestBizprocWorkflowInstance.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowInstance, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1668
|
+
BXRestBizprocWorkflowInstance.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowInstance, providedIn: 'root' });
|
|
1669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowInstance, decorators: [{
|
|
1670
|
+
type: Injectable,
|
|
1671
|
+
args: [{
|
|
1672
|
+
providedIn: 'root'
|
|
1673
|
+
}]
|
|
1674
|
+
}] });
|
|
1675
|
+
|
|
1676
|
+
class BXRestBizprocWorkflowTemplate {
|
|
1677
|
+
constructor(http) {
|
|
1678
|
+
this.http = http;
|
|
1679
|
+
this.url = {
|
|
1680
|
+
add: [$bizproc, $workflow, $template, $add],
|
|
1681
|
+
delete: [$bizproc, $workflow, $template, $delete],
|
|
1682
|
+
update: [$bizproc, $workflow, $template, $update],
|
|
1683
|
+
list: [$bizproc, $workflow, $template, $list] // Возвращает список шаблонов Бизнес-процессов, установленных на сайте
|
|
1684
|
+
};
|
|
1685
|
+
}
|
|
1686
|
+
list(param = { select: [], filter: {} }) {
|
|
1687
|
+
return this.http.post(this.url.list, param);
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
BXRestBizprocWorkflowTemplate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowTemplate, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1691
|
+
BXRestBizprocWorkflowTemplate.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowTemplate, providedIn: 'root' });
|
|
1692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowTemplate, decorators: [{
|
|
1693
|
+
type: Injectable,
|
|
1694
|
+
args: [{
|
|
1695
|
+
providedIn: 'root'
|
|
1696
|
+
}]
|
|
1697
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1698
|
+
|
|
1699
|
+
class BXRestBizprocWorkflow {
|
|
1700
|
+
constructor(instances, template, http) {
|
|
1701
|
+
this.instances = instances;
|
|
1702
|
+
this.template = template;
|
|
1703
|
+
this.http = http;
|
|
1704
|
+
this.url = {
|
|
1705
|
+
instances: [$bizproc, $workflow, $instances],
|
|
1706
|
+
terminate: [$bizproc, $workflow, $terminate],
|
|
1707
|
+
start: [$bizproc, $workflow, $start],
|
|
1708
|
+
kill: [$bizproc, $workflow, $kill], // Удаляет запущенный бизнес-процесс // TODO: реализовать
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
start(param) {
|
|
1712
|
+
return this.http.post(this.url.start, param);
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
BXRestBizprocWorkflow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflowInstance }, { token: BXRestBizprocWorkflowTemplate }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1716
|
+
BXRestBizprocWorkflow.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflow, providedIn: 'root' });
|
|
1717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflow, decorators: [{
|
|
1718
|
+
type: Injectable,
|
|
1719
|
+
args: [{
|
|
1720
|
+
providedIn: 'root'
|
|
1721
|
+
}]
|
|
1722
|
+
}], ctorParameters: function () { return [{ type: BXRestBizprocWorkflowInstance }, { type: BXRestBizprocWorkflowTemplate }, { type: HttpBXServices }]; } });
|
|
1723
|
+
|
|
1724
|
+
class BXRestBizprocActivity {
|
|
1725
|
+
constructor() {
|
|
1726
|
+
this.url = {
|
|
1727
|
+
add: [$bizproc, $activity, $add],
|
|
1728
|
+
delete: [$bizproc, $activity, $delete],
|
|
1729
|
+
list: [$bizproc, $activity, $list],
|
|
1730
|
+
update: [$bizproc, $activity, $update],
|
|
1731
|
+
log: [$bizproc, $activity, $log] // Записывает информацию в лог бизнес-процесса
|
|
1732
|
+
};
|
|
1709
1733
|
}
|
|
1710
1734
|
}
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type:
|
|
1735
|
+
BXRestBizprocActivity.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocActivity, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1736
|
+
BXRestBizprocActivity.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocActivity, providedIn: 'root' });
|
|
1737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocActivity, decorators: [{
|
|
1714
1738
|
type: Injectable,
|
|
1715
1739
|
args: [{
|
|
1716
1740
|
providedIn: 'root'
|
|
1717
1741
|
}]
|
|
1718
1742
|
}] });
|
|
1719
1743
|
|
|
1744
|
+
class BXRestBizprocTask {
|
|
1745
|
+
constructor() {
|
|
1746
|
+
this.url = {
|
|
1747
|
+
complete: [$bizproc, $task, $complete],
|
|
1748
|
+
list: [$bizproc, $task, $list], // Возвращает список заданий бизнес-процессов
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
BXRestBizprocTask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocTask, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1753
|
+
BXRestBizprocTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocTask, providedIn: 'root' });
|
|
1754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocTask, decorators: [{
|
|
1755
|
+
type: Injectable,
|
|
1756
|
+
args: [{
|
|
1757
|
+
providedIn: 'root'
|
|
1758
|
+
}]
|
|
1759
|
+
}] });
|
|
1760
|
+
|
|
1761
|
+
class BXRestBizprocRobot {
|
|
1762
|
+
constructor() {
|
|
1763
|
+
this.url = {
|
|
1764
|
+
add: [$bizproc, $robot, $add],
|
|
1765
|
+
delete: [$bizproc, $robot, $delete],
|
|
1766
|
+
list: [$bizproc, $robot, $list],
|
|
1767
|
+
update: [$bizproc, $robot, $update] // Обновляет поля робота
|
|
1768
|
+
};
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
BXRestBizprocRobot.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocRobot, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1772
|
+
BXRestBizprocRobot.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocRobot, providedIn: 'root' });
|
|
1773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocRobot, decorators: [{
|
|
1774
|
+
type: Injectable,
|
|
1775
|
+
args: [{
|
|
1776
|
+
providedIn: 'root'
|
|
1777
|
+
}]
|
|
1778
|
+
}] });
|
|
1779
|
+
|
|
1780
|
+
class BXRestBizprocEvent {
|
|
1781
|
+
constructor() {
|
|
1782
|
+
this.url = {
|
|
1783
|
+
send: [$bizproc, $event, $send], // Возвращает действию выходные параметры, заданные в описании действия
|
|
1784
|
+
};
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
BXRestBizprocEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocEvent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1788
|
+
BXRestBizprocEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocEvent, providedIn: 'root' });
|
|
1789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocEvent, decorators: [{
|
|
1790
|
+
type: Injectable,
|
|
1791
|
+
args: [{
|
|
1792
|
+
providedIn: 'root'
|
|
1793
|
+
}]
|
|
1794
|
+
}] });
|
|
1795
|
+
|
|
1796
|
+
class BXRestBizproc {
|
|
1797
|
+
constructor(workflow, activity, task, robot, event) {
|
|
1798
|
+
this.workflow = workflow;
|
|
1799
|
+
this.activity = activity;
|
|
1800
|
+
this.task = task;
|
|
1801
|
+
this.robot = robot;
|
|
1802
|
+
this.event = event;
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
BXRestBizproc.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizproc, deps: [{ token: BXRestBizprocWorkflow }, { token: BXRestBizprocActivity }, { token: BXRestBizprocTask }, { token: BXRestBizprocRobot }, { token: BXRestBizprocEvent }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1806
|
+
BXRestBizproc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizproc, providedIn: 'root' });
|
|
1807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizproc, decorators: [{
|
|
1808
|
+
type: Injectable,
|
|
1809
|
+
args: [{
|
|
1810
|
+
providedIn: 'root'
|
|
1811
|
+
}]
|
|
1812
|
+
}], ctorParameters: function () { return [{ type: BXRestBizprocWorkflow }, { type: BXRestBizprocActivity }, { type: BXRestBizprocTask }, { type: BXRestBizprocRobot }, { type: BXRestBizprocEvent }]; } });
|
|
1813
|
+
|
|
1814
|
+
class BXRestLogBlogPost {
|
|
1815
|
+
constructor(http) {
|
|
1816
|
+
this.http = http;
|
|
1817
|
+
this.url = {
|
|
1818
|
+
add: [$log, $blogpost, $add],
|
|
1819
|
+
// getusers: {
|
|
1820
|
+
// important: 'log.blogpost.getusers.important' // Отдает массив ID пользователей, прочитавших Важное сообщение
|
|
1821
|
+
// },
|
|
1822
|
+
get: [$log, $blogpost, $get],
|
|
1823
|
+
delete: [$log, $blogpost, $delete],
|
|
1824
|
+
share: [$log, $blogpost, $share],
|
|
1825
|
+
update: [$log, $blogpost, $update], // Изменяет сообщение Живой Ленты
|
|
1826
|
+
};
|
|
1827
|
+
}
|
|
1828
|
+
add(param) {
|
|
1829
|
+
return this.http.post(this.url.add, param);
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
BXRestLogBlogPost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1833
|
+
BXRestLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' });
|
|
1834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, decorators: [{
|
|
1835
|
+
type: Injectable,
|
|
1836
|
+
args: [{
|
|
1837
|
+
providedIn: 'root'
|
|
1838
|
+
}]
|
|
1839
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1840
|
+
|
|
1841
|
+
class BXRestLogBlogComment {
|
|
1842
|
+
constructor() {
|
|
1843
|
+
this.url = {
|
|
1844
|
+
add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
|
|
1845
|
+
};
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
BXRestLogBlogComment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1849
|
+
BXRestLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, providedIn: 'root' });
|
|
1850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, decorators: [{
|
|
1851
|
+
type: Injectable,
|
|
1852
|
+
args: [{
|
|
1853
|
+
providedIn: 'root'
|
|
1854
|
+
}]
|
|
1855
|
+
}] });
|
|
1856
|
+
|
|
1857
|
+
class BXRestLog {
|
|
1858
|
+
constructor(blogPost, blogComment) {
|
|
1859
|
+
this.blogPost = blogPost;
|
|
1860
|
+
this.blogComment = blogComment;
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
BXRestLog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, deps: [{ token: BXRestLogBlogPost }, { token: BXRestLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1864
|
+
BXRestLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, providedIn: 'root' });
|
|
1865
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, decorators: [{
|
|
1866
|
+
type: Injectable,
|
|
1867
|
+
args: [{
|
|
1868
|
+
providedIn: 'root'
|
|
1869
|
+
}]
|
|
1870
|
+
}], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: BXRestLogBlogComment }]; } });
|
|
1871
|
+
|
|
1872
|
+
class Navvy {
|
|
1873
|
+
constructor(snackBar) {
|
|
1874
|
+
this.snackBar = snackBar;
|
|
1875
|
+
}
|
|
1876
|
+
mapAndSnackBarError(request, errorText) {
|
|
1877
|
+
return request.pipe(map(v => BXRestMapResult(v)), catchError(err => {
|
|
1878
|
+
this.snackBar.error(errorText);
|
|
1879
|
+
return throwError(() => err);
|
|
1880
|
+
}));
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
Navvy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Navvy, deps: [{ token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1884
|
+
Navvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Navvy, providedIn: 'root' });
|
|
1885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Navvy, decorators: [{
|
|
1886
|
+
type: Injectable,
|
|
1887
|
+
args: [{
|
|
1888
|
+
providedIn: 'root'
|
|
1889
|
+
}]
|
|
1890
|
+
}], ctorParameters: function () { return [{ type: SnackBarService }]; } });
|
|
1891
|
+
|
|
1720
1892
|
class BXRestNavvyUser {
|
|
1721
|
-
constructor(BXRestUser, BXRestUserMap, Navvy
|
|
1893
|
+
constructor(BXRestUser, BXRestUserMap, Navvy) {
|
|
1722
1894
|
this.BXRestUser = BXRestUser;
|
|
1723
1895
|
this.BXRestUserMap = BXRestUserMap;
|
|
1724
1896
|
this.Navvy = Navvy;
|
|
1725
|
-
this.SessionStorage = SessionStorage;
|
|
1726
1897
|
}
|
|
1727
1898
|
get(params = {}) {
|
|
1728
1899
|
return this.Navvy.mapAndSnackBarError(this.BXRestUser.get(params), 'Не удалось получить пользователей');
|
|
@@ -1732,7 +1903,7 @@ class BXRestNavvyUser {
|
|
|
1732
1903
|
return this.self();
|
|
1733
1904
|
}
|
|
1734
1905
|
else {
|
|
1735
|
-
let self =
|
|
1906
|
+
let self = SessionStorage.getItem(this.constructor.name + this.self.name);
|
|
1736
1907
|
if (self) {
|
|
1737
1908
|
return of(self);
|
|
1738
1909
|
}
|
|
@@ -1751,7 +1922,7 @@ class BXRestNavvyUser {
|
|
|
1751
1922
|
return undefined;
|
|
1752
1923
|
}), tap(v => {
|
|
1753
1924
|
if (v) {
|
|
1754
|
-
|
|
1925
|
+
SessionStorage.setItem(this.constructor.name + this.self.name, v);
|
|
1755
1926
|
}
|
|
1756
1927
|
}));
|
|
1757
1928
|
}
|
|
@@ -1765,16 +1936,80 @@ class BXRestNavvyUser {
|
|
|
1765
1936
|
return this.Navvy.mapAndSnackBarError(this.BXRestUser.fields(), 'Не удалось поля');
|
|
1766
1937
|
}
|
|
1767
1938
|
}
|
|
1768
|
-
BXRestNavvyUser.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyUser, deps: [{ token: BXRestUser }, { token: BXRestUserMap }, { token: Navvy }
|
|
1939
|
+
BXRestNavvyUser.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyUser, deps: [{ token: BXRestUser }, { token: BXRestUserMap }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1769
1940
|
BXRestNavvyUser.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyUser, providedIn: 'root' });
|
|
1770
1941
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyUser, decorators: [{
|
|
1771
1942
|
type: Injectable,
|
|
1772
1943
|
args: [{
|
|
1773
1944
|
providedIn: 'root'
|
|
1774
1945
|
}]
|
|
1775
|
-
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestUserMap }, { type: Navvy }
|
|
1946
|
+
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestUserMap }, { type: Navvy }]; } });
|
|
1947
|
+
|
|
1948
|
+
class BXRestMapListsElement extends BaseMapServices {
|
|
1949
|
+
get(items) {
|
|
1950
|
+
return items.map(item => Object.assign(item, {
|
|
1951
|
+
BP_PUBLISHED: item.BP_PUBLISHED === 'Y',
|
|
1952
|
+
CREATED_BY: this.toNum(item.CREATED_BY),
|
|
1953
|
+
IBLOCK_ID: this.toNum(item.IBLOCK_ID),
|
|
1954
|
+
ID: this.toNum(item.ID)
|
|
1955
|
+
}));
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
BXRestMapListsElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapListsElement, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1959
|
+
BXRestMapListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapListsElement, providedIn: 'root' });
|
|
1960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapListsElement, decorators: [{
|
|
1961
|
+
type: Injectable,
|
|
1962
|
+
args: [{
|
|
1963
|
+
providedIn: 'root'
|
|
1964
|
+
}]
|
|
1965
|
+
}] });
|
|
1966
|
+
|
|
1967
|
+
class BXRestNavvyListsElement {
|
|
1968
|
+
constructor(BXRestListsElement, BXRestMap, Navvy) {
|
|
1969
|
+
this.BXRestListsElement = BXRestListsElement;
|
|
1970
|
+
this.BXRestMap = BXRestMap;
|
|
1971
|
+
this.Navvy = Navvy;
|
|
1972
|
+
}
|
|
1973
|
+
get(param) {
|
|
1974
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestListsElement.get(param), 'Не удалось получить элемент списка').pipe(map(v => (v) ? this.BXRestMap.get(v) : undefined));
|
|
1975
|
+
}
|
|
1976
|
+
add(param) {
|
|
1977
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestListsElement.add(param), 'Не удалось получить элемент списка');
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
BXRestNavvyListsElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, deps: [{ token: BXRestListsElement }, { token: BXRestMapListsElement }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1981
|
+
BXRestNavvyListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, providedIn: 'root' });
|
|
1982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, decorators: [{
|
|
1983
|
+
type: Injectable,
|
|
1984
|
+
args: [{
|
|
1985
|
+
providedIn: 'root'
|
|
1986
|
+
}]
|
|
1987
|
+
}], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestMapListsElement }, { type: Navvy }]; } });
|
|
1988
|
+
|
|
1989
|
+
class BXRestNavvyLists {
|
|
1990
|
+
constructor(element) {
|
|
1991
|
+
this.element = element;
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
BXRestNavvyLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, deps: [{ token: BXRestNavvyListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1995
|
+
BXRestNavvyLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, providedIn: 'root' });
|
|
1996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, decorators: [{
|
|
1997
|
+
type: Injectable,
|
|
1998
|
+
args: [{
|
|
1999
|
+
providedIn: 'root'
|
|
2000
|
+
}]
|
|
2001
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyListsElement }]; } });
|
|
1776
2002
|
|
|
1777
2003
|
class BXRestTaskMap extends BaseMapServices {
|
|
2004
|
+
add(item) {
|
|
2005
|
+
return this.TaskBXHttpToTaskBX(item);
|
|
2006
|
+
}
|
|
2007
|
+
get(item) {
|
|
2008
|
+
return this.TaskBXHttpToTaskBX(item);
|
|
2009
|
+
}
|
|
2010
|
+
list(item) {
|
|
2011
|
+
return item.map(i => this.TaskBXHttpToTaskBX(i));
|
|
2012
|
+
}
|
|
1778
2013
|
TaskBXHttpToTaskBX(item) {
|
|
1779
2014
|
let result = {};
|
|
1780
2015
|
if (item.id) {
|
|
@@ -1891,23 +2126,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1891
2126
|
// next: number
|
|
1892
2127
|
// }
|
|
1893
2128
|
class BXRestNavvyTasksTask {
|
|
1894
|
-
// pageSize = 50
|
|
1895
|
-
// nowLoad$ = new ReplaySubject<TimeProcess>(1)
|
|
1896
|
-
// def: { select: iBXRestTaskFieldsName[] } = {
|
|
1897
|
-
// select: ['ID', 'PARENT_ID', 'TITLE', 'DESCRIPTION', 'MARK', 'PRIORITY', 'STATUS', 'MULTITASK',
|
|
1898
|
-
// 'GROUP_ID', 'STAGE_ID', 'CREATED_BY', 'CREATED_DATE', 'RESPONSIBLE_ID', 'ACCOMPLICES', 'AUDITORS',
|
|
1899
|
-
// 'CHANGED_BY', 'CHANGED_DATE', 'STATUS_CHANGED_DATE', 'CLOSED_BY', 'CLOSED_DATE', 'DATE_START', 'VIEWED_DATE',
|
|
1900
|
-
// 'DEADLINE', 'START_DATE_PLAN', 'END_DATE_PLAN', 'FORKED_BY_TEMPLATE_ID', 'TIME_ESTIMATE', 'TIME_SPENT_IN_LOGS',
|
|
1901
|
-
// 'TAGS', 'ALLOW_TIME_TRACKING'
|
|
1902
|
-
// ]
|
|
1903
|
-
// }
|
|
1904
2129
|
// storeTask$: Observable<iStoreTask>
|
|
1905
|
-
constructor(
|
|
2130
|
+
constructor(BXRestTasksTask, snackBar,
|
|
1906
2131
|
// private store: Store<{ tasks: IStoreTask }>,
|
|
1907
|
-
taskMap
|
|
1908
|
-
|
|
2132
|
+
taskMap,
|
|
2133
|
+
// private taskResultMap: BitrixApiTaskResultMapServices
|
|
2134
|
+
Navvy) {
|
|
2135
|
+
this.BXRestTasksTask = BXRestTasksTask;
|
|
1909
2136
|
this.snackBar = snackBar;
|
|
1910
2137
|
this.taskMap = taskMap;
|
|
2138
|
+
this.Navvy = Navvy;
|
|
2139
|
+
// pageSize = 50
|
|
2140
|
+
// nowLoad$ = new ReplaySubject<TimeProcess>(1)
|
|
2141
|
+
this.def = {
|
|
2142
|
+
select: ['ID', 'PARENT_ID', 'TITLE', 'DESCRIPTION', 'MARK', 'PRIORITY', 'STATUS', 'MULTITASK',
|
|
2143
|
+
'GROUP_ID', 'STAGE_ID', 'CREATED_BY', 'CREATED_DATE', 'RESPONSIBLE_ID', 'ACCOMPLICES', 'AUDITORS',
|
|
2144
|
+
'CHANGED_BY', 'CHANGED_DATE', 'STATUS_CHANGED_DATE', 'CLOSED_BY', 'CLOSED_DATE', 'DATE_START', 'VIEWED_DATE',
|
|
2145
|
+
'DEADLINE', 'START_DATE_PLAN', 'END_DATE_PLAN', 'FORKED_BY_TEMPLATE_ID', 'TIME_ESTIMATE', 'TIME_SPENT_IN_LOGS',
|
|
2146
|
+
'TAGS', 'ALLOW_TIME_TRACKING'
|
|
2147
|
+
]
|
|
2148
|
+
};
|
|
1911
2149
|
// this.storeTask$ = this.store.select('tasks')
|
|
1912
2150
|
// this.nowLoad$.next({
|
|
1913
2151
|
// total: 0,
|
|
@@ -1915,9 +2153,9 @@ class BXRestNavvyTasksTask {
|
|
|
1915
2153
|
// })
|
|
1916
2154
|
}
|
|
1917
2155
|
add(param) {
|
|
1918
|
-
return this.
|
|
1919
|
-
if (v && v.
|
|
1920
|
-
return this.taskMap.
|
|
2156
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestTasksTask.add(param), 'Не удалось получить задачу').pipe(map(v => {
|
|
2157
|
+
if (v && v.task) {
|
|
2158
|
+
return this.taskMap.add(v.task);
|
|
1921
2159
|
}
|
|
1922
2160
|
return undefined;
|
|
1923
2161
|
}));
|
|
@@ -1934,15 +2172,57 @@ class BXRestNavvyTasksTask {
|
|
|
1934
2172
|
// }
|
|
1935
2173
|
// ))
|
|
1936
2174
|
}
|
|
2175
|
+
/*
|
|
2176
|
+
update(taskId: number, updateFields: iBXRestTaskFieldsName[], task: iBXRestTask) {
|
|
2177
|
+
let sendTask: Record<string, any> = {}
|
|
2178
|
+
let taskTS: Record<string, any> = task
|
|
2179
|
+
if (updateFields.length) {
|
|
2180
|
+
for (let updateField of updateFields) {
|
|
2181
|
+
if (taskTS[camelCase(updateField)]) {
|
|
2182
|
+
sendTask[updateField] = taskTS[camelCase(updateField)]
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
if (Object.values(sendTask).length) {
|
|
2186
|
+
return this.http.post(
|
|
2187
|
+
this.url.update,
|
|
2188
|
+
{taskId: taskId, fields: sendTask},
|
|
2189
|
+
'error to update task')
|
|
2190
|
+
} else {
|
|
2191
|
+
this.snackBar.error('not valid send data task')
|
|
2192
|
+
console.error('not valid send data task', sendTask, task)
|
|
2193
|
+
return of(undefined)
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
this.snackBar.warning('not have field for update')
|
|
2198
|
+
return of(undefined)
|
|
2199
|
+
}
|
|
2200
|
+
*/
|
|
2201
|
+
get(requestArray) {
|
|
2202
|
+
if (!requestArray.select) {
|
|
2203
|
+
requestArray.select = this.def.select;
|
|
2204
|
+
}
|
|
2205
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestTasksTask.get(requestArray), 'Не удалось получить задачу').pipe(map(v => (v && v.task) ? v.task : undefined), map(v => (v) ? this.taskMap.get(v) : undefined));
|
|
2206
|
+
}
|
|
2207
|
+
list(param = {}) {
|
|
2208
|
+
if (!param.select) {
|
|
2209
|
+
param.select = this.def.select;
|
|
2210
|
+
}
|
|
2211
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestTasksTask.list(param), 'Не удалось получить задачи').pipe(map(v => (v && v.tasks) ? v.tasks : undefined), map(v => (v) ? this.taskMap.list(v) : undefined), tap(v => {
|
|
2212
|
+
if (v) {
|
|
2213
|
+
SessionStorage.setItem(this.constructor.name + this.list.name, v);
|
|
2214
|
+
}
|
|
2215
|
+
}));
|
|
2216
|
+
}
|
|
1937
2217
|
}
|
|
1938
|
-
BXRestNavvyTasksTask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasksTask, deps: [{ token: BXRestTasksTask }, { token: SnackBarService }, { token: BXRestTaskMap }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2218
|
+
BXRestNavvyTasksTask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasksTask, deps: [{ token: BXRestTasksTask }, { token: SnackBarService }, { token: BXRestTaskMap }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1939
2219
|
BXRestNavvyTasksTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasksTask, providedIn: 'root' });
|
|
1940
2220
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasksTask, decorators: [{
|
|
1941
2221
|
type: Injectable,
|
|
1942
2222
|
args: [{
|
|
1943
2223
|
providedIn: 'root'
|
|
1944
2224
|
}]
|
|
1945
|
-
}], ctorParameters: function () { return [{ type: BXRestTasksTask }, { type: SnackBarService }, { type: BXRestTaskMap }]; } });
|
|
2225
|
+
}], ctorParameters: function () { return [{ type: BXRestTasksTask }, { type: SnackBarService }, { type: BXRestTaskMap }, { type: Navvy }]; } });
|
|
1946
2226
|
|
|
1947
2227
|
class BXRestNavvyTasks {
|
|
1948
2228
|
constructor(task) {
|
|
@@ -2155,24 +2435,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2155
2435
|
|
|
2156
2436
|
class BXRestNavvyDiskStorage {
|
|
2157
2437
|
// BXDiskFolder$ = new Observable<BXDiskFolderStore>()
|
|
2158
|
-
constructor(BXRestDiskStorage, BXRestMapDiskStorage, Navvy
|
|
2159
|
-
// private store: Store<{ BXDiskFolder: BXDiskFolderStore }>,
|
|
2160
|
-
) {
|
|
2438
|
+
constructor(BXRestDiskStorage, BXRestMapDiskStorage, Navvy) {
|
|
2161
2439
|
this.BXRestDiskStorage = BXRestDiskStorage;
|
|
2162
2440
|
this.BXRestMapDiskStorage = BXRestMapDiskStorage;
|
|
2163
2441
|
this.Navvy = Navvy;
|
|
2164
|
-
this.SessionStorage = SessionStorage;
|
|
2165
2442
|
// this.BXDiskFolder$ = this.store.select('BXDiskFolder')
|
|
2166
2443
|
}
|
|
2167
2444
|
getforapp() {
|
|
2168
|
-
let res =
|
|
2445
|
+
let res = SessionStorage.getItem(this.constructor.name + this.getforapp.name);
|
|
2169
2446
|
if (res) {
|
|
2170
2447
|
return of(res);
|
|
2171
2448
|
}
|
|
2172
2449
|
else {
|
|
2173
2450
|
return this.Navvy.mapAndSnackBarError(this.BXRestDiskStorage.getforapp(), 'get root app folder').pipe(tap(v => {
|
|
2174
2451
|
if (v) {
|
|
2175
|
-
|
|
2452
|
+
SessionStorage.setItem(this.constructor.name + this.getforapp.name, v);
|
|
2176
2453
|
}
|
|
2177
2454
|
}));
|
|
2178
2455
|
}
|
|
@@ -2194,14 +2471,14 @@ class BXRestNavvyDiskStorage {
|
|
|
2194
2471
|
return this.BXRestDiskStorage.uploadfile(param);
|
|
2195
2472
|
}
|
|
2196
2473
|
}
|
|
2197
|
-
BXRestNavvyDiskStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskStorage, deps: [{ token: BXRestDiskStorage }, { token: BXRestMapDiskStorage }, { token: Navvy }
|
|
2474
|
+
BXRestNavvyDiskStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskStorage, deps: [{ token: BXRestDiskStorage }, { token: BXRestMapDiskStorage }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2198
2475
|
BXRestNavvyDiskStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskStorage, providedIn: 'root' });
|
|
2199
2476
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskStorage, decorators: [{
|
|
2200
2477
|
type: Injectable,
|
|
2201
2478
|
args: [{
|
|
2202
2479
|
providedIn: 'root'
|
|
2203
2480
|
}]
|
|
2204
|
-
}], ctorParameters: function () { return [{ type: BXRestDiskStorage }, { type: BXRestMapDiskStorage }, { type: Navvy }
|
|
2481
|
+
}], ctorParameters: function () { return [{ type: BXRestDiskStorage }, { type: BXRestMapDiskStorage }, { type: Navvy }]; } });
|
|
2205
2482
|
|
|
2206
2483
|
class BXRestNavvyDiskOperation {
|
|
2207
2484
|
constructor(folder, disk, storage) {
|
|
@@ -2211,7 +2488,7 @@ class BXRestNavvyDiskOperation {
|
|
|
2211
2488
|
}
|
|
2212
2489
|
// данные файла в base64
|
|
2213
2490
|
loadFileInAppFolder(file) {
|
|
2214
|
-
return this.storage.getforapp().pipe(take
|
|
2491
|
+
return this.storage.getforapp().pipe(take(1), mergeMap$1(infoFolder => {
|
|
2215
2492
|
if (infoFolder) {
|
|
2216
2493
|
return this.storage.uploadfile({
|
|
2217
2494
|
id: infoFolder.ID,
|
|
@@ -2306,38 +2583,189 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2306
2583
|
}]
|
|
2307
2584
|
}], ctorParameters: function () { return [{ type: BXRestNavvyDiskFile }, { type: BXRestDiskNavvyFolder }, { type: BXRestNavvyDiskOperation }]; } });
|
|
2308
2585
|
|
|
2586
|
+
class BXRestNavvyBizprocWorkflow {
|
|
2587
|
+
constructor(BXRestBizprocWorkflow, Navvy) {
|
|
2588
|
+
this.BXRestBizprocWorkflow = BXRestBizprocWorkflow;
|
|
2589
|
+
this.Navvy = Navvy;
|
|
2590
|
+
}
|
|
2591
|
+
start(param) {
|
|
2592
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestBizprocWorkflow.start(param), 'Не удалось запустить бизнес процесс');
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
BXRestNavvyBizprocWorkflow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflow }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2596
|
+
BXRestNavvyBizprocWorkflow.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizprocWorkflow, providedIn: 'root' });
|
|
2597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizprocWorkflow, decorators: [{
|
|
2598
|
+
type: Injectable,
|
|
2599
|
+
args: [{
|
|
2600
|
+
providedIn: 'root'
|
|
2601
|
+
}]
|
|
2602
|
+
}], ctorParameters: function () { return [{ type: BXRestBizprocWorkflow }, { type: Navvy }]; } });
|
|
2603
|
+
|
|
2604
|
+
class BXRestNavvyBizproc {
|
|
2605
|
+
constructor(workflow, BXRestNavvyLists) {
|
|
2606
|
+
this.workflow = workflow;
|
|
2607
|
+
this.BXRestNavvyLists = BXRestNavvyLists;
|
|
2608
|
+
}
|
|
2609
|
+
/**
|
|
2610
|
+
* Метод по запуску бизнес процессов из ленты
|
|
2611
|
+
*
|
|
2612
|
+
* @param id
|
|
2613
|
+
* @param parametersElement
|
|
2614
|
+
* @param parametersBizproc
|
|
2615
|
+
* @param templateIDs
|
|
2616
|
+
*/
|
|
2617
|
+
startProcFormNewsFeed(id, parametersElement, parametersBizproc, templateIDs) {
|
|
2618
|
+
return this.BXRestNavvyLists.element.add({
|
|
2619
|
+
IBLOCK_TYPE_ID: 'bitrix_processes',
|
|
2620
|
+
IBLOCK_ID: id,
|
|
2621
|
+
ELEMENT_CODE: 'trace_studio_' + Date.now() + '_' + Math.random(),
|
|
2622
|
+
// тут должно быть уникально значение (генерация уникальных значений на фронте лол),
|
|
2623
|
+
// как ещё уникальнее сделать я просто не знаю
|
|
2624
|
+
// это поле обязательно без него не работает
|
|
2625
|
+
FIELDS: {
|
|
2626
|
+
NAME: parametersElement['NAME'],
|
|
2627
|
+
...parametersElement
|
|
2628
|
+
}
|
|
2629
|
+
}).pipe(mergeMap(v => {
|
|
2630
|
+
if (v) {
|
|
2631
|
+
if (Object.keys(parametersBizproc).length) {
|
|
2632
|
+
let reques = [];
|
|
2633
|
+
for (let templateID of templateIDs) {
|
|
2634
|
+
reques.push(this.workflow.start({
|
|
2635
|
+
TEMPLATE_ID: templateID,
|
|
2636
|
+
DOCUMENT_ID: ['lists', 'BizprocDocument', String(v)],
|
|
2637
|
+
PARAMETERS: parametersBizproc
|
|
2638
|
+
}));
|
|
2639
|
+
}
|
|
2640
|
+
return forkJoin(reques);
|
|
2641
|
+
}
|
|
2642
|
+
else {
|
|
2643
|
+
return of(true);
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
return of(false);
|
|
2647
|
+
}));
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
BXRestNavvyBizproc.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizproc, deps: [{ token: BXRestNavvyBizprocWorkflow }, { token: BXRestNavvyLists }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2651
|
+
BXRestNavvyBizproc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizproc, providedIn: 'root' });
|
|
2652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizproc, decorators: [{
|
|
2653
|
+
type: Injectable,
|
|
2654
|
+
args: [{
|
|
2655
|
+
providedIn: 'root'
|
|
2656
|
+
}]
|
|
2657
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyBizprocWorkflow }, { type: BXRestNavvyLists }]; } });
|
|
2658
|
+
|
|
2659
|
+
class BXRestNavvyLogBlogPost {
|
|
2660
|
+
constructor(BXRestLogBlogPost, Navvy) {
|
|
2661
|
+
this.BXRestLogBlogPost = BXRestLogBlogPost;
|
|
2662
|
+
this.Navvy = Navvy;
|
|
2663
|
+
this.url = {
|
|
2664
|
+
add: [$log, $blogpost, $add],
|
|
2665
|
+
// getusers: {
|
|
2666
|
+
// important: 'log.blogpost.getusers.important' // Отдает массив ID пользователей, прочитавших Важное сообщение
|
|
2667
|
+
// },
|
|
2668
|
+
get: [$log, $blogpost, $get],
|
|
2669
|
+
delete: [$log, $blogpost, $delete],
|
|
2670
|
+
share: [$log, $blogpost, $share],
|
|
2671
|
+
update: [$log, $blogpost, $update], // Изменяет сообщение Живой Ленты
|
|
2672
|
+
};
|
|
2673
|
+
}
|
|
2674
|
+
add(param) {
|
|
2675
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestLogBlogPost.add(param), 'При добавлении поста');
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
BXRestNavvyLogBlogPost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, deps: [{ token: BXRestLogBlogPost }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2679
|
+
BXRestNavvyLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' });
|
|
2680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, decorators: [{
|
|
2681
|
+
type: Injectable,
|
|
2682
|
+
args: [{
|
|
2683
|
+
providedIn: 'root'
|
|
2684
|
+
}]
|
|
2685
|
+
}], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: Navvy }]; } });
|
|
2686
|
+
|
|
2687
|
+
class BXRestNavvyLogBlogComment {
|
|
2688
|
+
constructor() {
|
|
2689
|
+
this.url = {
|
|
2690
|
+
add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
|
|
2691
|
+
};
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
BXRestNavvyLogBlogComment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2695
|
+
BXRestNavvyLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, providedIn: 'root' });
|
|
2696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, decorators: [{
|
|
2697
|
+
type: Injectable,
|
|
2698
|
+
args: [{
|
|
2699
|
+
providedIn: 'root'
|
|
2700
|
+
}]
|
|
2701
|
+
}] });
|
|
2702
|
+
|
|
2703
|
+
class BXRestNavvyLog {
|
|
2704
|
+
constructor(blogPost, blogComment) {
|
|
2705
|
+
this.blogPost = blogPost;
|
|
2706
|
+
this.blogComment = blogComment;
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
BXRestNavvyLog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, deps: [{ token: BXRestNavvyLogBlogPost }, { token: BXRestNavvyLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2710
|
+
BXRestNavvyLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, providedIn: 'root' });
|
|
2711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, decorators: [{
|
|
2712
|
+
type: Injectable,
|
|
2713
|
+
args: [{
|
|
2714
|
+
providedIn: 'root'
|
|
2715
|
+
}]
|
|
2716
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyLogBlogPost }, { type: BXRestNavvyLogBlogComment }]; } });
|
|
2717
|
+
|
|
2718
|
+
class BXRestMapLists extends BaseMapServices {
|
|
2719
|
+
constructor(element) {
|
|
2720
|
+
super();
|
|
2721
|
+
this.element = element;
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
BXRestMapLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, deps: [{ token: BXRestMapListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2725
|
+
BXRestMapLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, providedIn: 'root' });
|
|
2726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, decorators: [{
|
|
2727
|
+
type: Injectable,
|
|
2728
|
+
args: [{
|
|
2729
|
+
providedIn: 'root'
|
|
2730
|
+
}]
|
|
2731
|
+
}], ctorParameters: function () { return [{ type: BXRestMapListsElement }]; } });
|
|
2732
|
+
|
|
2309
2733
|
class BXRest {
|
|
2310
|
-
constructor(user, lists, tasks, disk) {
|
|
2734
|
+
constructor(user, lists, tasks, disk, bizproc, log) {
|
|
2311
2735
|
this.user = user;
|
|
2312
2736
|
this.lists = lists;
|
|
2313
2737
|
this.tasks = tasks;
|
|
2314
2738
|
this.disk = disk;
|
|
2739
|
+
this.bizproc = bizproc;
|
|
2740
|
+
this.log = log;
|
|
2315
2741
|
}
|
|
2316
2742
|
}
|
|
2317
|
-
BXRest.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTasks }, { token: BXRestDisk }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2743
|
+
BXRest.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTasks }, { token: BXRestDisk }, { token: BXRestBizproc }, { token: BXRestLog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2318
2744
|
BXRest.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, providedIn: 'root' });
|
|
2319
2745
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, decorators: [{
|
|
2320
2746
|
type: Injectable,
|
|
2321
2747
|
args: [{
|
|
2322
2748
|
providedIn: 'root'
|
|
2323
2749
|
}]
|
|
2324
|
-
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }]; } });
|
|
2750
|
+
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }]; } });
|
|
2325
2751
|
class BXRestNavvy {
|
|
2326
|
-
constructor(user, lists, tasks, disk) {
|
|
2752
|
+
constructor(user, lists, tasks, disk, bizproc, log) {
|
|
2327
2753
|
this.user = user;
|
|
2328
2754
|
this.lists = lists;
|
|
2329
2755
|
this.tasks = tasks;
|
|
2330
2756
|
this.disk = disk;
|
|
2757
|
+
this.bizproc = bizproc;
|
|
2758
|
+
this.log = log;
|
|
2331
2759
|
}
|
|
2332
2760
|
}
|
|
2333
|
-
BXRestNavvy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2761
|
+
BXRestNavvy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }, { token: BXRestNavvyBizproc }, { token: BXRestNavvyLog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2334
2762
|
BXRestNavvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, providedIn: 'root' });
|
|
2335
2763
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, decorators: [{
|
|
2336
2764
|
type: Injectable,
|
|
2337
2765
|
args: [{
|
|
2338
2766
|
providedIn: 'root'
|
|
2339
2767
|
}]
|
|
2340
|
-
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }]; } });
|
|
2768
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }]; } });
|
|
2341
2769
|
class BXRestMap {
|
|
2342
2770
|
constructor(lists) {
|
|
2343
2771
|
this.lists = lists;
|
|
@@ -2360,5 +2788,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2360
2788
|
* Generated bundle index. Do not edit.
|
|
2361
2789
|
*/
|
|
2362
2790
|
|
|
2363
|
-
export { BXRest, BXRestMap, BXRestMapResult, BXRestNavvy,
|
|
2791
|
+
export { BXRest, BXRestMap, BXRestMapResult, BXRestNavvy, BX_REST_SETTINGS };
|
|
2364
2792
|
//# sourceMappingURL=bx-rest.mjs.map
|