bx-rest 0.1.6 → 0.1.9
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/esm2020/map/base.mjs +2 -2
- package/esm2020/map/calendar/event.mjs +54 -0
- package/esm2020/map/disk/attachedObject.mjs +27 -0
- package/esm2020/map/disk/base.mjs +2 -2
- package/esm2020/map/lists/element.mjs +2 -2
- package/esm2020/map/lists.mjs +55 -2
- package/esm2020/map/sonet_group.mjs +34 -0
- package/esm2020/map/task.mjs +2 -2
- package/esm2020/map/user.mjs +2 -2
- package/esm2020/request/bizproc/workflow/template.mjs +4 -4
- package/esm2020/request/bizproc/workflow.mjs +4 -4
- package/esm2020/request/calendar/event.mjs +28 -0
- package/esm2020/request/calendar.mjs +52 -0
- package/esm2020/request/disk/attachedObject.mjs +24 -0
- package/esm2020/request/disk/file.mjs +4 -4
- package/esm2020/request/disk/folder.mjs +4 -4
- package/esm2020/request/disk/storage.mjs +4 -4
- package/esm2020/request/disk.mjs +6 -4
- package/esm2020/request/lists/element.mjs +4 -4
- package/esm2020/request/lists.mjs +9 -4
- package/esm2020/request/log/blogpost.mjs +7 -4
- package/esm2020/request/sonet_group.mjs +57 -0
- package/esm2020/request/tasks/task.mjs +4 -4
- package/esm2020/request/user.mjs +5 -5
- package/esm2020/request-navvy/calendar/event.mjs +25 -0
- package/esm2020/request-navvy/calendar.mjs +52 -0
- package/esm2020/request-navvy/disk/attachedObject.mjs +25 -0
- package/esm2020/request-navvy/disk/folder.mjs +5 -5
- package/esm2020/request-navvy/disk/operation.mjs +3 -3
- package/esm2020/request-navvy/disk.mjs +10 -8
- package/esm2020/request-navvy/lists.mjs +14 -4
- package/esm2020/request-navvy/log/blogcomment.mjs +1 -1
- package/esm2020/request-navvy/log/blogpost.mjs +4 -1
- package/esm2020/request-navvy/sonet_group.mjs +28 -0
- package/esm2020/rest.mjs +24 -16
- package/esm2020/services/http/HttpBX.mjs +2 -2
- package/esm2020/services/navvy.mjs +1 -1
- package/esm2020/typification/base/modyfy.mjs +2 -0
- package/esm2020/typification/rest/base/ApiPaginationBX.mjs +2 -0
- package/esm2020/typification/rest/calendar/base/type.mjs +2 -0
- package/esm2020/typification/rest/calendar/get/answer.mjs +2 -0
- package/esm2020/typification/rest/calendar/get/param.mjs +2 -0
- package/esm2020/typification/rest/disk/AttachedObject.mjs +2 -0
- package/esm2020/typification/rest/lists/get.mjs +2 -0
- package/esm2020/typification/rest/log/blogpost/essence.mjs +2 -0
- package/esm2020/typification/rest/log/blogpost/get.mjs +2 -0
- package/esm2020/typification/rest/sonet_group/base.mjs +2 -0
- package/esm2020/typification/rest/sonet_group/get.mjs +2 -0
- package/fesm2015/bx-rest.mjs +558 -152
- package/fesm2015/bx-rest.mjs.map +1 -1
- package/fesm2020/bx-rest.mjs +588 -152
- package/fesm2020/bx-rest.mjs.map +1 -1
- package/map/base.d.ts +1 -1
- package/map/calendar/event.d.ts +9 -0
- package/map/disk/attachedObject.d.ts +9 -0
- package/map/disk/base.d.ts +1 -1
- package/map/lists/element.d.ts +1 -1
- package/map/lists.d.ts +4 -1
- package/map/sonet_group.d.ts +9 -0
- package/map/task.d.ts +1 -1
- package/map/user.d.ts +1 -1
- package/package.json +1 -1
- package/request/bizproc/workflow/template.d.ts +1 -1
- package/request/bizproc/workflow.d.ts +1 -1
- package/request/calendar/event.d.ts +18 -0
- package/request/calendar.d.ts +8 -0
- package/request/disk/attachedObject.d.ts +13 -0
- package/request/disk/file.d.ts +1 -1
- package/request/disk/folder.d.ts +1 -1
- package/request/disk/storage.d.ts +1 -1
- package/request/disk.d.ts +3 -1
- package/request/lists/element.d.ts +1 -1
- package/request/lists.d.ts +5 -1
- package/request/log/blogpost.d.ts +3 -1
- package/request/sonet_group.d.ts +17 -0
- package/request/tasks/task.d.ts +1 -1
- package/request/user.d.ts +1 -1
- package/request-navvy/calendar/event.d.ts +14 -0
- package/request-navvy/calendar.d.ts +8 -0
- package/request-navvy/disk/attachedObject.d.ts +13 -0
- package/request-navvy/disk/folder.d.ts +3 -3
- package/request-navvy/disk/operation.d.ts +3 -3
- package/request-navvy/disk.d.ts +6 -4
- package/request-navvy/lists.d.ts +9 -1
- package/request-navvy/log/blogpost.d.ts +2 -0
- package/request-navvy/sonet_group.d.ts +14 -0
- package/rest.d.ts +10 -2
- package/services/http/HttpBX.d.ts +1 -1
- package/typification/base/modyfy.d.ts +9 -0
- package/typification/rest/base/ApiPaginationBX.d.ts +3 -0
- package/typification/rest/calendar/base/type.d.ts +1 -0
- package/typification/rest/calendar/get/answer.d.ts +126 -0
- package/typification/rest/calendar/get/param.d.ts +8 -0
- package/typification/rest/disk/AttachedObject.d.ts +23 -0
- package/typification/rest/lists/get.d.ts +94 -0
- package/typification/rest/log/blogpost/essence.d.ts +51 -0
- package/typification/rest/log/blogpost/get.d.ts +71 -0
- package/typification/rest/sonet_group/base.d.ts +8 -0
- package/typification/rest/sonet_group/get.d.ts +29 -0
package/fesm2015/bx-rest.mjs
CHANGED
|
@@ -31,6 +31,92 @@ function BXRestMapResult(v) {
|
|
|
31
31
|
return undefined;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
const $get = 'get';
|
|
35
|
+
const $add = 'add';
|
|
36
|
+
const $set = 'set';
|
|
37
|
+
const $event = 'event';
|
|
38
|
+
const $update = 'update';
|
|
39
|
+
const $user = 'user';
|
|
40
|
+
const $task = 'task';
|
|
41
|
+
const $calendar = 'calendar';
|
|
42
|
+
const $meeting = 'meeting';
|
|
43
|
+
const $list = 'list';
|
|
44
|
+
const $search = 'search';
|
|
45
|
+
const $accessibility = 'accessibility';
|
|
46
|
+
const $delete = 'delete';
|
|
47
|
+
const $nearest = 'nearest';
|
|
48
|
+
const $params = 'params';
|
|
49
|
+
const $status = 'status';
|
|
50
|
+
const $resource = 'resource';
|
|
51
|
+
const $booking = 'booking';
|
|
52
|
+
const $section = 'section';
|
|
53
|
+
const $settings = 'settings';
|
|
54
|
+
const $tasks = 'tasks';
|
|
55
|
+
const $elapseditem = 'elapseditem';
|
|
56
|
+
const $getlist = 'getlist';
|
|
57
|
+
const $approve = 'approve';
|
|
58
|
+
const $complete = 'complete';
|
|
59
|
+
const $counters = 'counters';
|
|
60
|
+
const $deger = 'deger';
|
|
61
|
+
const $delegate = 'delegate';
|
|
62
|
+
const $disapprove = 'disapprove';
|
|
63
|
+
const $favorite = 'favorite';
|
|
64
|
+
const $files = 'files';
|
|
65
|
+
const $file = 'file';
|
|
66
|
+
const $attach = 'attach';
|
|
67
|
+
const $field = 'field';
|
|
68
|
+
const $getFields = 'get' + $field + 's';
|
|
69
|
+
const $getaccess = 'getaccess';
|
|
70
|
+
const $history = 'history';
|
|
71
|
+
const $pause = 'pause';
|
|
72
|
+
const $renew = 'renew';
|
|
73
|
+
const $start = 'start';
|
|
74
|
+
const $result = 'result';
|
|
75
|
+
const $planner = 'planner';
|
|
76
|
+
const $disk = 'disk';
|
|
77
|
+
const $rename = 'rename';
|
|
78
|
+
const $markdeleted = 'markdeleted';
|
|
79
|
+
const $restore = 'restore';
|
|
80
|
+
const $folder = 'folder';
|
|
81
|
+
const $getchildren = 'getchildren';
|
|
82
|
+
const $copyto = 'copyto';
|
|
83
|
+
const $moveto = 'moveto';
|
|
84
|
+
const $uploadfile = 'uploadfile';
|
|
85
|
+
const $storage = 'storage';
|
|
86
|
+
const $getTypes = 'getTypes';
|
|
87
|
+
const $stages = 'stages';
|
|
88
|
+
const $getmanifest = 'getmanifest';
|
|
89
|
+
const $isactionallowed = 'isactionallowed';
|
|
90
|
+
const $commentitem = 'commentitem';
|
|
91
|
+
const $department = 'department';
|
|
92
|
+
const $sonet_group = 'sonet_group';
|
|
93
|
+
const $create = 'create';
|
|
94
|
+
const $feature = 'feature';
|
|
95
|
+
const $access = 'access';
|
|
96
|
+
const $request = 'request';
|
|
97
|
+
const $socialnetwork = 'socialnetwork';
|
|
98
|
+
const $api = 'api';
|
|
99
|
+
const $workgroup = 'workgroup';
|
|
100
|
+
const $log = 'log';
|
|
101
|
+
const $blogpost = 'blogpost';
|
|
102
|
+
const $lists = 'lists';
|
|
103
|
+
const $iblock = 'iblock';
|
|
104
|
+
const $type = 'type';
|
|
105
|
+
const $id = 'id';
|
|
106
|
+
const $element = 'element';
|
|
107
|
+
const $url = 'url';
|
|
108
|
+
const $bizproc = 'bizproc';
|
|
109
|
+
const $workflow = 'workflow';
|
|
110
|
+
const $instances = 'instances';
|
|
111
|
+
const $terminate = '$terminate';
|
|
112
|
+
const $kill = 'kill';
|
|
113
|
+
const $template = 'template';
|
|
114
|
+
const $activity = 'activity';
|
|
115
|
+
const $robot = 'robot';
|
|
116
|
+
const $send = 'send';
|
|
117
|
+
const $share = 'share';
|
|
118
|
+
const $blogcomment = 'blogcomment';
|
|
119
|
+
|
|
34
120
|
class BxRestModule {
|
|
35
121
|
}
|
|
36
122
|
BxRestModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1141,92 +1227,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1141
1227
|
}]
|
|
1142
1228
|
}] });
|
|
1143
1229
|
|
|
1144
|
-
const $get = 'get';
|
|
1145
|
-
const $add = 'add';
|
|
1146
|
-
const $set = 'set';
|
|
1147
|
-
const $event = 'event';
|
|
1148
|
-
const $update = 'update';
|
|
1149
|
-
const $user = 'user';
|
|
1150
|
-
const $task = 'task';
|
|
1151
|
-
const $calendar = 'calendar';
|
|
1152
|
-
const $meeting = 'meeting';
|
|
1153
|
-
const $list = 'list';
|
|
1154
|
-
const $search = 'search';
|
|
1155
|
-
const $accessibility = 'accessibility';
|
|
1156
|
-
const $delete = 'delete';
|
|
1157
|
-
const $nearest = 'nearest';
|
|
1158
|
-
const $params = 'params';
|
|
1159
|
-
const $status = 'status';
|
|
1160
|
-
const $resource = 'resource';
|
|
1161
|
-
const $booking = 'booking';
|
|
1162
|
-
const $section = 'section';
|
|
1163
|
-
const $settings = 'settings';
|
|
1164
|
-
const $tasks = 'tasks';
|
|
1165
|
-
const $elapseditem = 'elapseditem';
|
|
1166
|
-
const $getlist = 'getlist';
|
|
1167
|
-
const $approve = 'approve';
|
|
1168
|
-
const $complete = 'complete';
|
|
1169
|
-
const $counters = 'counters';
|
|
1170
|
-
const $deger = 'deger';
|
|
1171
|
-
const $delegate = 'delegate';
|
|
1172
|
-
const $disapprove = 'disapprove';
|
|
1173
|
-
const $favorite = 'favorite';
|
|
1174
|
-
const $files = 'files';
|
|
1175
|
-
const $file = 'file';
|
|
1176
|
-
const $attach = 'attach';
|
|
1177
|
-
const $field = 'field';
|
|
1178
|
-
const $getFields = 'get' + $field + 's';
|
|
1179
|
-
const $getaccess = 'getaccess';
|
|
1180
|
-
const $history = 'history';
|
|
1181
|
-
const $pause = 'pause';
|
|
1182
|
-
const $renew = 'renew';
|
|
1183
|
-
const $start = 'start';
|
|
1184
|
-
const $result = 'result';
|
|
1185
|
-
const $planner = 'planner';
|
|
1186
|
-
const $disk = 'disk';
|
|
1187
|
-
const $rename = 'rename';
|
|
1188
|
-
const $markdeleted = 'markdeleted';
|
|
1189
|
-
const $restore = 'restore';
|
|
1190
|
-
const $folder = 'folder';
|
|
1191
|
-
const $getchildren = 'getchildren';
|
|
1192
|
-
const $copyto = 'copyto';
|
|
1193
|
-
const $moveto = 'moveto';
|
|
1194
|
-
const $uploadfile = 'uploadfile';
|
|
1195
|
-
const $storage = 'storage';
|
|
1196
|
-
const $getTypes = 'getTypes';
|
|
1197
|
-
const $stages = 'stages';
|
|
1198
|
-
const $getmanifest = 'getmanifest';
|
|
1199
|
-
const $isactionallowed = 'isactionallowed';
|
|
1200
|
-
const $commentitem = 'commentitem';
|
|
1201
|
-
const $department = 'department';
|
|
1202
|
-
const $sonet_group = 'sonet_group';
|
|
1203
|
-
const $create = 'create';
|
|
1204
|
-
const $feature = 'feature';
|
|
1205
|
-
const $access = 'access';
|
|
1206
|
-
const $request = 'request';
|
|
1207
|
-
const $socialnetwork = 'socialnetwork';
|
|
1208
|
-
const $api = 'api';
|
|
1209
|
-
const $workgroup = 'workgroup';
|
|
1210
|
-
const $log = 'log';
|
|
1211
|
-
const $blogpost = 'blogpost';
|
|
1212
|
-
const $lists = 'lists';
|
|
1213
|
-
const $iblock = 'iblock';
|
|
1214
|
-
const $type = 'type';
|
|
1215
|
-
const $id = 'id';
|
|
1216
|
-
const $element = 'element';
|
|
1217
|
-
const $url = 'url';
|
|
1218
|
-
const $bizproc = 'bizproc';
|
|
1219
|
-
const $workflow = 'workflow';
|
|
1220
|
-
const $instances = 'instances';
|
|
1221
|
-
const $terminate = '$terminate';
|
|
1222
|
-
const $kill = 'kill';
|
|
1223
|
-
const $template = 'template';
|
|
1224
|
-
const $activity = 'activity';
|
|
1225
|
-
const $robot = 'robot';
|
|
1226
|
-
const $send = 'send';
|
|
1227
|
-
const $share = 'share';
|
|
1228
|
-
const $blogcomment = 'blogcomment';
|
|
1229
|
-
|
|
1230
1230
|
class BaseMapServices extends BaseServices {
|
|
1231
1231
|
}
|
|
1232
1232
|
BaseMapServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -1447,8 +1447,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1447
1447
|
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1448
1448
|
|
|
1449
1449
|
class BXRestLists {
|
|
1450
|
-
constructor(element) {
|
|
1450
|
+
constructor(element, http) {
|
|
1451
1451
|
this.element = element;
|
|
1452
|
+
this.http = http;
|
|
1452
1453
|
this.url = {
|
|
1453
1454
|
add: [$lists, $add],
|
|
1454
1455
|
delete: [$lists, $delete],
|
|
@@ -1457,15 +1458,18 @@ class BXRestLists {
|
|
|
1457
1458
|
getIblockTypeId: [$lists, $get, $iblock, $type, $id], // Метод возвращает id типа инфоблока
|
|
1458
1459
|
};
|
|
1459
1460
|
}
|
|
1461
|
+
get(pram) {
|
|
1462
|
+
return this.http.post(this.url.get, pram);
|
|
1463
|
+
}
|
|
1460
1464
|
}
|
|
1461
|
-
BXRestLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, deps: [{ token: BXRestListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1465
|
+
BXRestLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, deps: [{ token: BXRestListsElement }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1462
1466
|
BXRestLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, providedIn: 'root' });
|
|
1463
1467
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, decorators: [{
|
|
1464
1468
|
type: Injectable,
|
|
1465
1469
|
args: [{
|
|
1466
1470
|
providedIn: 'root'
|
|
1467
1471
|
}]
|
|
1468
|
-
}], ctorParameters: function () { return [{ type: BXRestListsElement }]; } });
|
|
1472
|
+
}], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: HttpBXServices }]; } });
|
|
1469
1473
|
|
|
1470
1474
|
// import { AnswerApiTaskBX } from '../../typification/rest/task/answers/task';
|
|
1471
1475
|
class BXRestTasksTask {
|
|
@@ -1647,20 +1651,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1647
1651
|
}]
|
|
1648
1652
|
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1649
1653
|
|
|
1654
|
+
class BXRestDiskAttachedObject {
|
|
1655
|
+
constructor(http) {
|
|
1656
|
+
this.http = http;
|
|
1657
|
+
this.url = {
|
|
1658
|
+
get: [$disk, 'attachedObject', $get]
|
|
1659
|
+
};
|
|
1660
|
+
}
|
|
1661
|
+
get(id) {
|
|
1662
|
+
return this.http.post(this.url.get, { id: id });
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
BXRestDiskAttachedObject.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1666
|
+
BXRestDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, providedIn: 'root' });
|
|
1667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, decorators: [{
|
|
1668
|
+
type: Injectable,
|
|
1669
|
+
args: [{
|
|
1670
|
+
providedIn: 'root'
|
|
1671
|
+
}]
|
|
1672
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1673
|
+
|
|
1650
1674
|
class BXRestDisk {
|
|
1651
|
-
constructor(file, folder) {
|
|
1675
|
+
constructor(file, folder, attachedObject) {
|
|
1652
1676
|
this.file = file;
|
|
1653
1677
|
this.folder = folder;
|
|
1678
|
+
this.attachedObject = attachedObject;
|
|
1654
1679
|
}
|
|
1655
1680
|
}
|
|
1656
|
-
BXRestDisk.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, deps: [{ token: BXRestDiskFile }, { token: BXRestDiskFolder }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1681
|
+
BXRestDisk.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, deps: [{ token: BXRestDiskFile }, { token: BXRestDiskFolder }, { token: BXRestDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1657
1682
|
BXRestDisk.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, providedIn: 'root' });
|
|
1658
1683
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, decorators: [{
|
|
1659
1684
|
type: Injectable,
|
|
1660
1685
|
args: [{
|
|
1661
1686
|
providedIn: 'root'
|
|
1662
1687
|
}]
|
|
1663
|
-
}], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: BXRestDiskFolder }]; } });
|
|
1688
|
+
}], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: BXRestDiskFolder }, { type: BXRestDiskAttachedObject }]; } });
|
|
1664
1689
|
|
|
1665
1690
|
class BXRestBizprocWorkflowInstance {
|
|
1666
1691
|
constructor() {
|
|
@@ -1833,6 +1858,9 @@ class BXRestLogBlogPost {
|
|
|
1833
1858
|
add(param) {
|
|
1834
1859
|
return this.http.post(this.url.add, param);
|
|
1835
1860
|
}
|
|
1861
|
+
get(param = {}) {
|
|
1862
|
+
return this.http.post(this.url.get, param);
|
|
1863
|
+
}
|
|
1836
1864
|
}
|
|
1837
1865
|
BXRestLogBlogPost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1838
1866
|
BXRestLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' });
|
|
@@ -1874,6 +1902,132 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1874
1902
|
}]
|
|
1875
1903
|
}], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: BXRestLogBlogComment }]; } });
|
|
1876
1904
|
|
|
1905
|
+
class BXRestCalendarEvent {
|
|
1906
|
+
constructor(http) {
|
|
1907
|
+
this.http = http;
|
|
1908
|
+
this.url = {
|
|
1909
|
+
add: [$calendar, $event, $add],
|
|
1910
|
+
delete: [$calendar, $event, $delete],
|
|
1911
|
+
get: [$calendar, $event, $get],
|
|
1912
|
+
getNearest: [$calendar, $event, $get, $nearest],
|
|
1913
|
+
update: [$calendar, $event, $get, $update], // Редактирует существующее событие
|
|
1914
|
+
};
|
|
1915
|
+
}
|
|
1916
|
+
get(param) {
|
|
1917
|
+
return this.http.post(this.url.get, param);
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
BXRestCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1921
|
+
BXRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' });
|
|
1922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
|
|
1923
|
+
type: Injectable,
|
|
1924
|
+
args: [{
|
|
1925
|
+
providedIn: 'root'
|
|
1926
|
+
}]
|
|
1927
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1928
|
+
|
|
1929
|
+
class BXRestCalendar {
|
|
1930
|
+
// TODO: эту дичь расформировать потом по классам
|
|
1931
|
+
/*
|
|
1932
|
+
url = {
|
|
1933
|
+
accessibility: {get: getNameMethod([$calendar, $accessibility, $get])}, // Возвращает занятость пользователей из списка.
|
|
1934
|
+
meeting: {
|
|
1935
|
+
params: {
|
|
1936
|
+
set: getNameMethod([$calendar, $meeting, $params, $set]), // Устанавливает параметры события для текущего пользователя
|
|
1937
|
+
},
|
|
1938
|
+
status: {
|
|
1939
|
+
get: getNameMethod([$calendar, $meeting, $status, $get]), // Возвращает статус участия текущего пользователя в событии
|
|
1940
|
+
set: getNameMethod([$calendar, $meeting, $status, $set]), // Устанавливает статус участия в событии для текущего пользователя
|
|
1941
|
+
},
|
|
1942
|
+
},
|
|
1943
|
+
resource: {
|
|
1944
|
+
list: getNameMethod([$calendar, $resource, $list]), // Возвращает список (массив) всех ресурсов
|
|
1945
|
+
add: getNameMethod([$calendar, $resource, $add]), // Добавляет новый ресурс
|
|
1946
|
+
update: getNameMethod([$calendar, $resource, $update]), // Изменяет ресурс
|
|
1947
|
+
delete: getNameMethod([$calendar, $resource, $delete]), // Удаляет ресурс
|
|
1948
|
+
booking: {
|
|
1949
|
+
list: getNameMethod([$calendar, $resource, $booking, $list]), // Предоставляет возможность выбрать бронирования ресурсов
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1952
|
+
section: {
|
|
1953
|
+
add: getNameMethod([$calendar, $section, $add]), // Добавляет новый календарь
|
|
1954
|
+
delete: getNameMethod([$calendar, $section, $delete]), // Удаляет календарь
|
|
1955
|
+
get: getNameMethod([$calendar, $section, $get]), // Возвращает список календарей
|
|
1956
|
+
update: getNameMethod([$calendar, $section, $update]) //Обновляет календарь
|
|
1957
|
+
},
|
|
1958
|
+
settings: {
|
|
1959
|
+
get: getNameMethod([$calendar, $settings, $get]), // Возвращает основные настройки календаря
|
|
1960
|
+
set: getNameMethod([$calendar, $user, $settings, $set]), // Сохраняет пользовательские настройки календаря
|
|
1961
|
+
},
|
|
1962
|
+
getbyid: getNameMethod([$calendar, $event, 'getbyid']), // Возвращает событие календаря по идентификатору
|
|
1963
|
+
}
|
|
1964
|
+
*/
|
|
1965
|
+
constructor(event) {
|
|
1966
|
+
this.event = event;
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
BXRestCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, deps: [{ token: BXRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1970
|
+
BXRestCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, providedIn: 'root' });
|
|
1971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, decorators: [{
|
|
1972
|
+
type: Injectable,
|
|
1973
|
+
args: [{
|
|
1974
|
+
providedIn: 'root'
|
|
1975
|
+
}]
|
|
1976
|
+
}], ctorParameters: function () { return [{ type: BXRestCalendarEvent }]; } });
|
|
1977
|
+
|
|
1978
|
+
class BXRestSonetGroup {
|
|
1979
|
+
constructor(http) {
|
|
1980
|
+
this.http = http;
|
|
1981
|
+
this.url = {
|
|
1982
|
+
create: [$sonet_group, $create],
|
|
1983
|
+
delete: [$sonet_group, $delete],
|
|
1984
|
+
// feature: {
|
|
1985
|
+
// access: [$sonet_group, $feature, $access] // Проверяет, имеет ли текущий пользователь право на совершение операции в группе соцсети, осуществляя вызов функции CSocNetFeaturesPerms::CurrentUserCanPerformOperation()
|
|
1986
|
+
// },
|
|
1987
|
+
get: [$sonet_group, $get],
|
|
1988
|
+
setowner: [$sonet_group, 'setowner'],
|
|
1989
|
+
update: [$sonet_group, $update], // Изменяет параметры группы соцсети, используя метод API CSocNetGroup::Update()
|
|
1990
|
+
// user: {
|
|
1991
|
+
// add: [$sonet_group, $user, $add], // sonet_group.user.add Добавляет пользователей в качестве участников рабочей группы (без приглашения и подтверждения)
|
|
1992
|
+
// delete: [$sonet_group, $user, $delete], // Удаляет пользователей из рабочей группы
|
|
1993
|
+
// get: [$sonet_group, $user, $get], // Возвращает массив участников группы соцсети, осуществляя вызов CSocNetUserToGroup::GetList(), при этом проверяются права на доступ текущего пользователя к группе
|
|
1994
|
+
// groups: [$sonet_group, $user, 'groups'], // Возвращает массив групп соцсети текущего пользователя, осуществляя вызов CSocNetUserToGroup::GetList()
|
|
1995
|
+
// invite: [$sonet_group, $user, 'invite'], // Выполняет приглашение пользователей в группу соцсети от лица текущего пользователя, при этом проверяются права на доступ текущего пользователя к группе
|
|
1996
|
+
// request: [$sonet_group, $user, $request], // Отправляет запрос текущего пользователя на вступление в группу соцсети, при этом проверяются права на доступ текущего пользователя к группе.
|
|
1997
|
+
// update: [$sonet_group, $user, $update], // Изменяет роль пользователей в рабочей группе События при работе с группами СоцСети Список событий при добавлении, изменении и удалении группы.
|
|
1998
|
+
// },
|
|
1999
|
+
// workgroup: {
|
|
2000
|
+
// list: [$socialnetwork, $api, $workgroup, $list], // Метод возвращает список групп,
|
|
2001
|
+
// get: [$socialnetwork, $api, $workgroup, $get] // Метод возвращает данные по рабочей группе
|
|
2002
|
+
// }
|
|
2003
|
+
};
|
|
2004
|
+
}
|
|
2005
|
+
// // TODO: filter и select позже нормально описать
|
|
2006
|
+
// getList(filter: any = {}, select: iWorkgroupFields[] = ['ID', 'NAME']){
|
|
2007
|
+
// return this.httpPost<iHttpAnswerBX<{workgroups: iListWorkgroup[]}>>(
|
|
2008
|
+
// this.url.get,
|
|
2009
|
+
// {
|
|
2010
|
+
// order: select,
|
|
2011
|
+
// filter: filter
|
|
2012
|
+
// }
|
|
2013
|
+
// )
|
|
2014
|
+
// }
|
|
2015
|
+
get(param = {
|
|
2016
|
+
filter: {},
|
|
2017
|
+
order: {}
|
|
2018
|
+
}) {
|
|
2019
|
+
return this.http.post(this.url.get, param);
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
BXRestSonetGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2023
|
+
BXRestSonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, providedIn: 'root' });
|
|
2024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, decorators: [{
|
|
2025
|
+
type: Injectable,
|
|
2026
|
+
args: [{
|
|
2027
|
+
providedIn: 'root'
|
|
2028
|
+
}]
|
|
2029
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
2030
|
+
|
|
1877
2031
|
class Navvy {
|
|
1878
2032
|
constructor(snackBar) {
|
|
1879
2033
|
this.snackBar = snackBar;
|
|
@@ -1991,19 +2145,93 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1991
2145
|
}]
|
|
1992
2146
|
}], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestMapListsElement }, { type: Navvy }]; } });
|
|
1993
2147
|
|
|
1994
|
-
class
|
|
2148
|
+
class BXRestMapLists extends BaseMapServices {
|
|
1995
2149
|
constructor(element) {
|
|
2150
|
+
super();
|
|
1996
2151
|
this.element = element;
|
|
1997
2152
|
}
|
|
2153
|
+
get(value) {
|
|
2154
|
+
return (value) ? value.map(i => this.iBXRestListItemHttpToiBXRestListItem(i)) : undefined;
|
|
2155
|
+
}
|
|
2156
|
+
iBXRestListItemHttpToiBXRestListItem(itemLists) {
|
|
2157
|
+
return {
|
|
2158
|
+
ACTIVE: itemLists.ACTIVE === 'Y',
|
|
2159
|
+
API_CODE: this.toStr(itemLists.API_CODE),
|
|
2160
|
+
BIZPROC: itemLists.BIZPROC === 'Y',
|
|
2161
|
+
CANONICAL_PAGE_URL: this.toStr(itemLists.CANONICAL_PAGE_URL),
|
|
2162
|
+
CODE: itemLists.CODE,
|
|
2163
|
+
DESCRIPTION: this.toStr(itemLists.DESCRIPTION),
|
|
2164
|
+
DESCRIPTION_TYPE: itemLists.DESCRIPTION_TYPE,
|
|
2165
|
+
DETAIL_PAGE_URL: this.toStr(itemLists.DETAIL_PAGE_URL),
|
|
2166
|
+
EDIT_FILE_AFTER: this.toStr(itemLists.EDIT_FILE_AFTER),
|
|
2167
|
+
EDIT_FILE_BEFORE: this.toStr(itemLists.EDIT_FILE_BEFORE),
|
|
2168
|
+
ELEMENTS_NAME: this.toStr(itemLists.ELEMENTS_NAME),
|
|
2169
|
+
ELEMENT_NAME: this.toStr(itemLists.ELEMENT_NAME),
|
|
2170
|
+
EXTERNAL_ID: this.toStr(itemLists.EXTERNAL_ID),
|
|
2171
|
+
IBLOCK_TYPE_ID: this.toStr(itemLists.IBLOCK_TYPE_ID),
|
|
2172
|
+
ID: Number(itemLists.ID),
|
|
2173
|
+
INDEX_ELEMENT: itemLists.INDEX_ELEMENT === 'Y',
|
|
2174
|
+
INDEX_SECTION: itemLists.INDEX_SECTION === 'Y',
|
|
2175
|
+
LANG_DIR: this.toStr(itemLists.LANG_DIR),
|
|
2176
|
+
LAST_CONV_ELEMENT: this.toNum(itemLists.LAST_CONV_ELEMENT),
|
|
2177
|
+
LID: this.toStr(itemLists.LID),
|
|
2178
|
+
LIST_MODE: this.toStr(itemLists.LIST_MODE),
|
|
2179
|
+
LIST_PAGE_URL: this.toStr(itemLists.LIST_PAGE_URL),
|
|
2180
|
+
NAME: this.toStr(itemLists.NAME),
|
|
2181
|
+
PICTURE: this.toStr(itemLists.PICTURE),
|
|
2182
|
+
PROPERTY_INDEX: this.toStr(itemLists.PROPERTY_INDEX),
|
|
2183
|
+
REST_ON: itemLists.REST_ON === 'Y',
|
|
2184
|
+
RIGHTS_MODE: this.toStr(itemLists.RIGHTS_MODE),
|
|
2185
|
+
RSS_ACTIVE: itemLists.RSS_ACTIVE === 'Y',
|
|
2186
|
+
RSS_FILE_ACTIVE: itemLists.RSS_FILE_ACTIVE === 'Y',
|
|
2187
|
+
RSS_FILE_DAYS: this.toStr(itemLists.RSS_FILE_DAYS),
|
|
2188
|
+
RSS_FILE_LIMIT: this.toStr(itemLists.RSS_FILE_LIMIT),
|
|
2189
|
+
RSS_TTL: Number(itemLists.RSS_TTL),
|
|
2190
|
+
RSS_YANDEX_ACTIVE: itemLists.RSS_YANDEX_ACTIVE === 'Y',
|
|
2191
|
+
SECTIONS_NAME: this.toStr(itemLists.SECTIONS_NAME),
|
|
2192
|
+
SECTION_CHOOSER: this.toStr(itemLists.SECTION_CHOOSER),
|
|
2193
|
+
SECTION_NAME: this.toStr(itemLists.SECTION_NAME),
|
|
2194
|
+
SECTION_PAGE_URL: this.toStr(itemLists.SECTION_PAGE_URL),
|
|
2195
|
+
SECTION_PROPERTY: this.toStr(itemLists.SECTION_PROPERTY),
|
|
2196
|
+
SERVER_NAME: this.toStr(itemLists.SERVER_NAME),
|
|
2197
|
+
SOCNET_GROUP_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
|
|
2198
|
+
SORT: this.toStr(itemLists.SOCNET_GROUP_ID),
|
|
2199
|
+
TIMESTAMP_X: new Date(itemLists.TIMESTAMP_X),
|
|
2200
|
+
TMP_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
|
|
2201
|
+
VERSION: Number(itemLists.VERSION),
|
|
2202
|
+
WORKFLOW: itemLists.WORKFLOW === 'Y',
|
|
2203
|
+
XML_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
|
|
2204
|
+
};
|
|
2205
|
+
}
|
|
1998
2206
|
}
|
|
1999
|
-
|
|
2207
|
+
BXRestMapLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, deps: [{ token: BXRestMapListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2208
|
+
BXRestMapLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, providedIn: 'root' });
|
|
2209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, decorators: [{
|
|
2210
|
+
type: Injectable,
|
|
2211
|
+
args: [{
|
|
2212
|
+
providedIn: 'root'
|
|
2213
|
+
}]
|
|
2214
|
+
}], ctorParameters: function () { return [{ type: BXRestMapListsElement }]; } });
|
|
2215
|
+
|
|
2216
|
+
class BXRestNavvyLists {
|
|
2217
|
+
constructor(element, BXRestLists, Navvy, mapList) {
|
|
2218
|
+
this.element = element;
|
|
2219
|
+
this.BXRestLists = BXRestLists;
|
|
2220
|
+
this.Navvy = Navvy;
|
|
2221
|
+
this.mapList = mapList;
|
|
2222
|
+
}
|
|
2223
|
+
get(param) {
|
|
2224
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestLists.get(param), 'Не удалось получить список').pipe(map(v => this.mapList.get(v)));
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
BXRestNavvyLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, deps: [{ token: BXRestNavvyListsElement }, { token: BXRestLists }, { token: Navvy }, { token: BXRestMapLists }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2000
2228
|
BXRestNavvyLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, providedIn: 'root' });
|
|
2001
2229
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, decorators: [{
|
|
2002
2230
|
type: Injectable,
|
|
2003
2231
|
args: [{
|
|
2004
2232
|
providedIn: 'root'
|
|
2005
2233
|
}]
|
|
2006
|
-
}], ctorParameters: function () { return [{ type: BXRestNavvyListsElement }]; } });
|
|
2234
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyListsElement }, { type: BXRestLists }, { type: Navvy }, { type: BXRestMapLists }]; } });
|
|
2007
2235
|
|
|
2008
2236
|
class BXRestTaskMap extends BaseMapServices {
|
|
2009
2237
|
add(item) {
|
|
@@ -2243,39 +2471,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2243
2471
|
}]
|
|
2244
2472
|
}], ctorParameters: function () { return [{ type: BXRestNavvyTasksTask }]; } });
|
|
2245
2473
|
|
|
2246
|
-
class BXRestNavvyDiskFile extends BaseServices {
|
|
2247
|
-
constructor(BXRestDiskFile, Navvy) {
|
|
2248
|
-
super();
|
|
2249
|
-
this.BXRestDiskFile = BXRestDiskFile;
|
|
2250
|
-
this.Navvy = Navvy;
|
|
2251
|
-
}
|
|
2252
|
-
get(id) {
|
|
2253
|
-
return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.get(id), 'Не удалось получить файл').pipe(map(v => {
|
|
2254
|
-
if (v) {
|
|
2255
|
-
return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
|
|
2256
|
-
}
|
|
2257
|
-
return undefined;
|
|
2258
|
-
}));
|
|
2259
|
-
}
|
|
2260
|
-
markDel(id) {
|
|
2261
|
-
return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.markDel(id), 'Не удалось переместить файл в корзину')
|
|
2262
|
-
.pipe(map(v => {
|
|
2263
|
-
if (v) {
|
|
2264
|
-
return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
|
|
2265
|
-
}
|
|
2266
|
-
return undefined;
|
|
2267
|
-
}));
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
BXRestNavvyDiskFile.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, deps: [{ token: BXRestDiskFile }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2271
|
-
BXRestNavvyDiskFile.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' });
|
|
2272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
|
|
2273
|
-
type: Injectable,
|
|
2274
|
-
args: [{
|
|
2275
|
-
providedIn: 'root'
|
|
2276
|
-
}]
|
|
2277
|
-
}], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: Navvy }]; } });
|
|
2278
|
-
|
|
2279
2474
|
class BXRestMapDiskBase extends BaseMapServices {
|
|
2280
2475
|
separationFoldersAndFiles(arr) {
|
|
2281
2476
|
let result = { file: [], folder: [] };
|
|
@@ -2344,7 +2539,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2344
2539
|
}]
|
|
2345
2540
|
}] });
|
|
2346
2541
|
|
|
2347
|
-
class
|
|
2542
|
+
class BXRestNavvyDiskFolder {
|
|
2348
2543
|
constructor(BXRestDiskFolder, BXRestMapDiskFolder, Navvy) {
|
|
2349
2544
|
this.BXRestDiskFolder = BXRestDiskFolder;
|
|
2350
2545
|
this.BXRestMapDiskFolder = BXRestMapDiskFolder;
|
|
@@ -2373,15 +2568,48 @@ class BXRestDiskNavvyFolder {
|
|
|
2373
2568
|
}));
|
|
2374
2569
|
}
|
|
2375
2570
|
}
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type:
|
|
2571
|
+
BXRestNavvyDiskFolder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFolder, deps: [{ token: BXRestDiskFolder }, { token: BXRestMapDiskFolder }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2572
|
+
BXRestNavvyDiskFolder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFolder, providedIn: 'root' });
|
|
2573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFolder, decorators: [{
|
|
2379
2574
|
type: Injectable,
|
|
2380
2575
|
args: [{
|
|
2381
2576
|
providedIn: 'root'
|
|
2382
2577
|
}]
|
|
2383
2578
|
}], ctorParameters: function () { return [{ type: BXRestDiskFolder }, { type: BXRestMapDiskFolder }, { type: Navvy }]; } });
|
|
2384
2579
|
|
|
2580
|
+
class BXRestNavvyDiskFile extends BaseServices {
|
|
2581
|
+
constructor(BXRestDiskFile, Navvy) {
|
|
2582
|
+
super();
|
|
2583
|
+
this.BXRestDiskFile = BXRestDiskFile;
|
|
2584
|
+
this.Navvy = Navvy;
|
|
2585
|
+
}
|
|
2586
|
+
get(id) {
|
|
2587
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.get(id), 'Не удалось получить файл').pipe(map(v => {
|
|
2588
|
+
if (v) {
|
|
2589
|
+
return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
|
|
2590
|
+
}
|
|
2591
|
+
return undefined;
|
|
2592
|
+
}));
|
|
2593
|
+
}
|
|
2594
|
+
markDel(id) {
|
|
2595
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.markDel(id), 'Не удалось переместить файл в корзину')
|
|
2596
|
+
.pipe(map(v => {
|
|
2597
|
+
if (v) {
|
|
2598
|
+
return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
|
|
2599
|
+
}
|
|
2600
|
+
return undefined;
|
|
2601
|
+
}));
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
BXRestNavvyDiskFile.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, deps: [{ token: BXRestDiskFile }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2605
|
+
BXRestNavvyDiskFile.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' });
|
|
2606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
|
|
2607
|
+
type: Injectable,
|
|
2608
|
+
args: [{
|
|
2609
|
+
providedIn: 'root'
|
|
2610
|
+
}]
|
|
2611
|
+
}], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: Navvy }]; } });
|
|
2612
|
+
|
|
2385
2613
|
class BXRestMapDiskStorage extends BXRestMapDiskBase {
|
|
2386
2614
|
getchildren(arr) {
|
|
2387
2615
|
return this.separationFoldersAndFiles(arr);
|
|
@@ -2563,30 +2791,74 @@ class BXRestNavvyDiskOperation {
|
|
|
2563
2791
|
}));
|
|
2564
2792
|
}
|
|
2565
2793
|
}
|
|
2566
|
-
BXRestNavvyDiskOperation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, deps: [{ token:
|
|
2794
|
+
BXRestNavvyDiskOperation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, deps: [{ token: BXRestNavvyDiskFolder }, { token: BXRestNavvyDiskFile }, { token: BXRestNavvyDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2567
2795
|
BXRestNavvyDiskOperation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, providedIn: 'root' });
|
|
2568
2796
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, decorators: [{
|
|
2569
2797
|
type: Injectable,
|
|
2570
2798
|
args: [{
|
|
2571
2799
|
providedIn: 'root'
|
|
2572
2800
|
}]
|
|
2573
|
-
}], ctorParameters: function () { return [{ type:
|
|
2801
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyDiskFolder }, { type: BXRestNavvyDiskFile }, { type: BXRestNavvyDiskStorage }]; } });
|
|
2802
|
+
|
|
2803
|
+
class BXRestMapDiskAttachedObject extends BXRestMapDiskBase {
|
|
2804
|
+
get(v) {
|
|
2805
|
+
return (v) ? this.iBXRestDiskAttachedObjectHttpToiBXRestDiskAttachedObject(v) : undefined;
|
|
2806
|
+
}
|
|
2807
|
+
iBXRestDiskAttachedObjectHttpToiBXRestDiskAttachedObject(v) {
|
|
2808
|
+
return Object.assign(v, {
|
|
2809
|
+
ID: this.toNum(v.ID),
|
|
2810
|
+
OBJECT_ID: this.toNum(v.OBJECT_ID),
|
|
2811
|
+
ENTITY_ID: this.toNum(v.ENTITY_ID),
|
|
2812
|
+
CREATE_TIME: this.toDate(v.CREATE_TIME),
|
|
2813
|
+
CREATED_BY: this.toNum(v.CREATED_BY),
|
|
2814
|
+
SIZE: this.toNum(v.SIZE)
|
|
2815
|
+
});
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
BXRestMapDiskAttachedObject.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
2819
|
+
BXRestMapDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, providedIn: 'root' });
|
|
2820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, decorators: [{
|
|
2821
|
+
type: Injectable,
|
|
2822
|
+
args: [{
|
|
2823
|
+
providedIn: 'root'
|
|
2824
|
+
}]
|
|
2825
|
+
}] });
|
|
2826
|
+
|
|
2827
|
+
class BXRestNavvyDiskAttachedObject {
|
|
2828
|
+
constructor(BXRestDiskAttachedObject, mapAttachedObject, Navvy) {
|
|
2829
|
+
this.BXRestDiskAttachedObject = BXRestDiskAttachedObject;
|
|
2830
|
+
this.mapAttachedObject = mapAttachedObject;
|
|
2831
|
+
this.Navvy = Navvy;
|
|
2832
|
+
}
|
|
2833
|
+
get(id) {
|
|
2834
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestDiskAttachedObject.get(id), 'Не удалось получить прикреплённый файл').pipe(map(v => this.mapAttachedObject.get(v)));
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
BXRestNavvyDiskAttachedObject.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskAttachedObject, deps: [{ token: BXRestDiskAttachedObject }, { token: BXRestMapDiskAttachedObject }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2838
|
+
BXRestNavvyDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskAttachedObject, providedIn: 'root' });
|
|
2839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskAttachedObject, decorators: [{
|
|
2840
|
+
type: Injectable,
|
|
2841
|
+
args: [{
|
|
2842
|
+
providedIn: 'root'
|
|
2843
|
+
}]
|
|
2844
|
+
}], ctorParameters: function () { return [{ type: BXRestDiskAttachedObject }, { type: BXRestMapDiskAttachedObject }, { type: Navvy }]; } });
|
|
2574
2845
|
|
|
2575
2846
|
class BXRestNavvyDisk {
|
|
2576
|
-
constructor(file, folder,
|
|
2847
|
+
constructor(operation, file, folder, attachedObject) {
|
|
2848
|
+
this.operation = operation;
|
|
2577
2849
|
this.file = file;
|
|
2578
2850
|
this.folder = folder;
|
|
2579
|
-
this.
|
|
2851
|
+
this.attachedObject = attachedObject;
|
|
2580
2852
|
}
|
|
2581
2853
|
}
|
|
2582
|
-
BXRestNavvyDisk.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, deps: [{ token: BXRestNavvyDiskFile }, { token:
|
|
2854
|
+
BXRestNavvyDisk.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, deps: [{ token: BXRestNavvyDiskOperation }, { token: BXRestNavvyDiskFile }, { token: BXRestNavvyDiskFolder }, { token: BXRestNavvyDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2583
2855
|
BXRestNavvyDisk.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, providedIn: 'root' });
|
|
2584
2856
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, decorators: [{
|
|
2585
2857
|
type: Injectable,
|
|
2586
2858
|
args: [{
|
|
2587
2859
|
providedIn: 'root'
|
|
2588
2860
|
}]
|
|
2589
|
-
}], ctorParameters: function () { return [{ type: BXRestNavvyDiskFile }, { type:
|
|
2861
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyDiskOperation }, { type: BXRestNavvyDiskFile }, { type: BXRestNavvyDiskFolder }, { type: BXRestNavvyDiskAttachedObject }]; } });
|
|
2590
2862
|
|
|
2591
2863
|
class BXRestNavvyBizprocWorkflow {
|
|
2592
2864
|
constructor(BXRestBizprocWorkflow, Navvy) {
|
|
@@ -2676,6 +2948,9 @@ class BXRestNavvyLogBlogPost {
|
|
|
2676
2948
|
add(param) {
|
|
2677
2949
|
return this.Navvy.mapAndSnackBarError(this.BXRestLogBlogPost.add(param), 'При добавлении поста');
|
|
2678
2950
|
}
|
|
2951
|
+
get(param = {}) {
|
|
2952
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestLogBlogPost.get(param), 'Не удалось получить почты');
|
|
2953
|
+
}
|
|
2679
2954
|
}
|
|
2680
2955
|
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 });
|
|
2681
2956
|
BXRestNavvyLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' });
|
|
@@ -2717,57 +2992,188 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2717
2992
|
}]
|
|
2718
2993
|
}], ctorParameters: function () { return [{ type: BXRestNavvyLogBlogPost }, { type: BXRestNavvyLogBlogComment }]; } });
|
|
2719
2994
|
|
|
2720
|
-
class
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2995
|
+
class BXRestMapCalendarEvent extends BaseMapServices {
|
|
2996
|
+
get(item) {
|
|
2997
|
+
return (item) ? item.map(i => this.CalendarEventGetAnswerHttpToCalendarEventGetAnswer(i)) : undefined;
|
|
2998
|
+
}
|
|
2999
|
+
CalendarEventGetAnswerHttpToCalendarEventGetAnswer(item) {
|
|
3000
|
+
return Object.assign(Object.assign({}, item), { ID: this.toNum(item.ID), MEETING_HOST: this.toNum(item.MEETING_HOST), OWNER_ID: this.toNum(item.OWNER_ID), PARENT_ID: this.toNum(item.PARENT_ID), RECURRENCE_ID: this.toNum(item.RECURRENCE_ID), SECT_ID: this.toNum(item.SECT_ID), SECTION_ID: this.toNum(item.SECTION_ID), TZ_OFFSET_FROM: this.toNum(item.TZ_OFFSET_FROM), TZ_OFFSET_TO: this.toNum(item.TZ_OFFSET_TO), VERSION: this.toNum(item.VERSION), DATE_CREATE: this.toDate(item.DATE_CREATE, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_FROM }), DATE_FROM: this.toDate(item.DATE_FROM, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_FROM }), ORIGINAL_DATE_FROM: (item.ORIGINAL_DATE_FROM)
|
|
3001
|
+
? this.toDate(item.ORIGINAL_DATE_FROM, 'dd.MM.yyyy HH:mm:ss')
|
|
3002
|
+
: null, DATE_TO: this.toDate(item.DATE_TO, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_TO }), TIMESTAMP_X: this.toDate(item.TIMESTAMP_X, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_FROM }), DATE_FROM_TS_UTC: this.toNum(item.DATE_FROM_TS_UTC), DATE_TO_TS_UTC: this.toNum(item.DATE_TO_TS_UTC), DELETED: item.DELETED === 'Y', DT_LENGTH: this.toNum(item.DT_LENGTH), DT_SKIP_TIME: item.DT_SKIP_TIME === 'Y', MEETING_STATUS: item.MEETING_STATUS === 'Y', EXDATE: item.EXDATE.split(';').map(dateStr => this.toDate(dateStr, 'dd.MM.yyyy')), RRULE: (item.RRULE && typeof item.RRULE !== 'string') ? Object.assign(Object.assign({}, item.RRULE), { UNTIL: this.toDate(item.RRULE.UNTIL, 'dd.MM.yyyy'), '~UNTIL': this.toDate(item.RRULE['~UNTIL'], 'dd.MM.yyyy') }) : null, ATTENDEE_LIST: (item.ATTENDEE_LIST) ? item.ATTENDEE_LIST.map(i => {
|
|
3003
|
+
return { id: i.id, entryId: this.toNum(i.entryId), status: i.status };
|
|
3004
|
+
}) : [] });
|
|
2724
3005
|
}
|
|
2725
3006
|
}
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type:
|
|
3007
|
+
BXRestMapCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
3008
|
+
BXRestMapCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' });
|
|
3009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
|
|
2729
3010
|
type: Injectable,
|
|
2730
3011
|
args: [{
|
|
2731
3012
|
providedIn: 'root'
|
|
2732
3013
|
}]
|
|
2733
|
-
}]
|
|
3014
|
+
}] });
|
|
3015
|
+
|
|
3016
|
+
class BXRestRestCalendarEvent {
|
|
3017
|
+
constructor(BXRestCalendarEvent, Navvy, eventMap) {
|
|
3018
|
+
this.BXRestCalendarEvent = BXRestCalendarEvent;
|
|
3019
|
+
this.Navvy = Navvy;
|
|
3020
|
+
this.eventMap = eventMap;
|
|
3021
|
+
}
|
|
3022
|
+
get(param) {
|
|
3023
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestCalendarEvent.get(param), 'Не удалось получить информацию о событии из календаря').pipe(map(v => this.eventMap.get(v)));
|
|
3024
|
+
}
|
|
3025
|
+
}
|
|
3026
|
+
BXRestRestCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, deps: [{ token: BXRestCalendarEvent }, { token: Navvy }, { token: BXRestMapCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3027
|
+
BXRestRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' });
|
|
3028
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
|
|
3029
|
+
type: Injectable,
|
|
3030
|
+
args: [{
|
|
3031
|
+
providedIn: 'root'
|
|
3032
|
+
}]
|
|
3033
|
+
}], ctorParameters: function () { return [{ type: BXRestCalendarEvent }, { type: Navvy }, { type: BXRestMapCalendarEvent }]; } });
|
|
3034
|
+
|
|
3035
|
+
class BXRestNavvyCalendar {
|
|
3036
|
+
// TODO: эту дичь расформировать потом по классам
|
|
3037
|
+
/*
|
|
3038
|
+
url = {
|
|
3039
|
+
accessibility: {get: getNameMethod([$calendar, $accessibility, $get])}, // Возвращает занятость пользователей из списка.
|
|
3040
|
+
meeting: {
|
|
3041
|
+
params: {
|
|
3042
|
+
set: getNameMethod([$calendar, $meeting, $params, $set]), // Устанавливает параметры события для текущего пользователя
|
|
3043
|
+
},
|
|
3044
|
+
status: {
|
|
3045
|
+
get: getNameMethod([$calendar, $meeting, $status, $get]), // Возвращает статус участия текущего пользователя в событии
|
|
3046
|
+
set: getNameMethod([$calendar, $meeting, $status, $set]), // Устанавливает статус участия в событии для текущего пользователя
|
|
3047
|
+
},
|
|
3048
|
+
},
|
|
3049
|
+
resource: {
|
|
3050
|
+
list: getNameMethod([$calendar, $resource, $list]), // Возвращает список (массив) всех ресурсов
|
|
3051
|
+
add: getNameMethod([$calendar, $resource, $add]), // Добавляет новый ресурс
|
|
3052
|
+
update: getNameMethod([$calendar, $resource, $update]), // Изменяет ресурс
|
|
3053
|
+
delete: getNameMethod([$calendar, $resource, $delete]), // Удаляет ресурс
|
|
3054
|
+
booking: {
|
|
3055
|
+
list: getNameMethod([$calendar, $resource, $booking, $list]), // Предоставляет возможность выбрать бронирования ресурсов
|
|
3056
|
+
}
|
|
3057
|
+
},
|
|
3058
|
+
section: {
|
|
3059
|
+
add: getNameMethod([$calendar, $section, $add]), // Добавляет новый календарь
|
|
3060
|
+
delete: getNameMethod([$calendar, $section, $delete]), // Удаляет календарь
|
|
3061
|
+
get: getNameMethod([$calendar, $section, $get]), // Возвращает список календарей
|
|
3062
|
+
update: getNameMethod([$calendar, $section, $update]) //Обновляет календарь
|
|
3063
|
+
},
|
|
3064
|
+
settings: {
|
|
3065
|
+
get: getNameMethod([$calendar, $settings, $get]), // Возвращает основные настройки календаря
|
|
3066
|
+
set: getNameMethod([$calendar, $user, $settings, $set]), // Сохраняет пользовательские настройки календаря
|
|
3067
|
+
},
|
|
3068
|
+
getbyid: getNameMethod([$calendar, $event, 'getbyid']), // Возвращает событие календаря по идентификатору
|
|
3069
|
+
}
|
|
3070
|
+
*/
|
|
3071
|
+
constructor(event) {
|
|
3072
|
+
this.event = event;
|
|
3073
|
+
}
|
|
3074
|
+
}
|
|
3075
|
+
BXRestNavvyCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, deps: [{ token: BXRestRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3076
|
+
BXRestNavvyCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' });
|
|
3077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
|
|
3078
|
+
type: Injectable,
|
|
3079
|
+
args: [{
|
|
3080
|
+
providedIn: 'root'
|
|
3081
|
+
}]
|
|
3082
|
+
}], ctorParameters: function () { return [{ type: BXRestRestCalendarEvent }]; } });
|
|
3083
|
+
|
|
3084
|
+
class BXRestMapSonetGroup extends BaseMapServices {
|
|
3085
|
+
get(items) {
|
|
3086
|
+
return (items) ? items.map(i => this.iBXRestParamSonetHttpToiBXRestParamSonet(i)) : undefined;
|
|
3087
|
+
}
|
|
3088
|
+
iBXRestParamSonetHttpToiBXRestParamSonet(items) {
|
|
3089
|
+
return Object.assign(items, {
|
|
3090
|
+
ID: this.toNum(items.ID),
|
|
3091
|
+
DATE_CREATE: this.toDate(items.DATE_CREATE),
|
|
3092
|
+
DATE_UPDATE: this.toDate(items.DATE_UPDATE),
|
|
3093
|
+
ACTIVE: items.ACTIVE == 'Y',
|
|
3094
|
+
VISIBLE: items.VISIBLE == 'Y',
|
|
3095
|
+
OPENED: items.OPENED == 'Y',
|
|
3096
|
+
CLOSED: items.CLOSED == 'Y',
|
|
3097
|
+
SUBJECT_ID: this.toNum(items.SUBJECT_ID),
|
|
3098
|
+
OWNER_ID: this.toNum(items.OWNER_ID),
|
|
3099
|
+
NUMBER_OF_MEMBERS: this.toNum(items.OWNER_ID),
|
|
3100
|
+
DATE_ACTIVITY: this.toDate(items.DATE_ACTIVITY),
|
|
3101
|
+
PROJECT: items.OPENED == 'Y',
|
|
3102
|
+
IS_EXTRANET: items.OPENED == 'Y',
|
|
3103
|
+
});
|
|
3104
|
+
}
|
|
3105
|
+
}
|
|
3106
|
+
BXRestMapSonetGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
3107
|
+
BXRestMapSonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, providedIn: 'root' });
|
|
3108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, decorators: [{
|
|
3109
|
+
type: Injectable,
|
|
3110
|
+
args: [{
|
|
3111
|
+
providedIn: 'root'
|
|
3112
|
+
}]
|
|
3113
|
+
}] });
|
|
3114
|
+
|
|
3115
|
+
class BXRestNavvySonetGroup {
|
|
3116
|
+
constructor(BXRestSonetGroup, mapSonetGroup, Navvy) {
|
|
3117
|
+
this.BXRestSonetGroup = BXRestSonetGroup;
|
|
3118
|
+
this.mapSonetGroup = mapSonetGroup;
|
|
3119
|
+
this.Navvy = Navvy;
|
|
3120
|
+
}
|
|
3121
|
+
get(param = {
|
|
3122
|
+
filter: {},
|
|
3123
|
+
order: {}
|
|
3124
|
+
}) {
|
|
3125
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestSonetGroup.get(param), 'Не удалось список групп').pipe(map(v => this.mapSonetGroup.get(v)));
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
BXRestNavvySonetGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvySonetGroup, deps: [{ token: BXRestSonetGroup }, { token: BXRestMapSonetGroup }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3129
|
+
BXRestNavvySonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvySonetGroup, providedIn: 'root' });
|
|
3130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvySonetGroup, decorators: [{
|
|
3131
|
+
type: Injectable,
|
|
3132
|
+
args: [{
|
|
3133
|
+
providedIn: 'root'
|
|
3134
|
+
}]
|
|
3135
|
+
}], ctorParameters: function () { return [{ type: BXRestSonetGroup }, { type: BXRestMapSonetGroup }, { type: Navvy }]; } });
|
|
2734
3136
|
|
|
2735
3137
|
class BXRest {
|
|
2736
|
-
constructor(user, lists, tasks, disk, bizproc, log) {
|
|
3138
|
+
constructor(user, lists, tasks, disk, bizproc, log, calendar, sonet_group) {
|
|
2737
3139
|
this.user = user;
|
|
2738
3140
|
this.lists = lists;
|
|
2739
3141
|
this.tasks = tasks;
|
|
2740
3142
|
this.disk = disk;
|
|
2741
3143
|
this.bizproc = bizproc;
|
|
2742
3144
|
this.log = log;
|
|
3145
|
+
this.calendar = calendar;
|
|
3146
|
+
this.sonet_group = sonet_group;
|
|
2743
3147
|
}
|
|
2744
3148
|
}
|
|
2745
|
-
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 });
|
|
3149
|
+
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 }, { token: BXRestCalendar }, { token: BXRestSonetGroup }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2746
3150
|
BXRest.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, providedIn: 'root' });
|
|
2747
3151
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, decorators: [{
|
|
2748
3152
|
type: Injectable,
|
|
2749
3153
|
args: [{
|
|
2750
3154
|
providedIn: 'root'
|
|
2751
3155
|
}]
|
|
2752
|
-
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }]; } });
|
|
3156
|
+
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }, { type: BXRestCalendar }, { type: BXRestSonetGroup }]; } });
|
|
2753
3157
|
class BXRestNavvy {
|
|
2754
|
-
constructor(user, lists, tasks, disk, bizproc, log) {
|
|
3158
|
+
constructor(user, lists, tasks, disk, bizproc, log, calendar, sonet_group) {
|
|
2755
3159
|
this.user = user;
|
|
2756
3160
|
this.lists = lists;
|
|
2757
3161
|
this.tasks = tasks;
|
|
2758
3162
|
this.disk = disk;
|
|
2759
3163
|
this.bizproc = bizproc;
|
|
2760
3164
|
this.log = log;
|
|
3165
|
+
this.calendar = calendar;
|
|
3166
|
+
this.sonet_group = sonet_group;
|
|
2761
3167
|
}
|
|
2762
3168
|
}
|
|
2763
|
-
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 });
|
|
3169
|
+
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 }, { token: BXRestNavvyCalendar }, { token: BXRestNavvySonetGroup }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2764
3170
|
BXRestNavvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, providedIn: 'root' });
|
|
2765
3171
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, decorators: [{
|
|
2766
3172
|
type: Injectable,
|
|
2767
3173
|
args: [{
|
|
2768
3174
|
providedIn: 'root'
|
|
2769
3175
|
}]
|
|
2770
|
-
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }]; } });
|
|
3176
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }, { type: BXRestNavvyCalendar }, { type: BXRestNavvySonetGroup }]; } });
|
|
2771
3177
|
class BXRestMap {
|
|
2772
3178
|
constructor(lists) {
|
|
2773
3179
|
this.lists = lists;
|