bx-rest 0.1.6 → 0.1.7
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/base.mjs +2 -2
- package/esm2020/map/lists/element.mjs +2 -2
- package/esm2020/map/lists.mjs +2 -2
- 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/file.mjs +4 -4
- package/esm2020/request/disk/folder.mjs +4 -4
- package/esm2020/request/disk/storage.mjs +4 -4
- package/esm2020/request/lists/element.mjs +4 -4
- package/esm2020/request/log/blogpost.mjs +4 -4
- 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/log/blogcomment.mjs +1 -1
- package/esm2020/rest.mjs +20 -16
- package/esm2020/services/http/HttpBX.mjs +2 -2
- package/esm2020/services/navvy.mjs +1 -1
- 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/fesm2015/bx-rest.mjs +256 -92
- package/fesm2015/bx-rest.mjs.map +1 -1
- package/fesm2020/bx-rest.mjs +286 -92
- 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/base.d.ts +1 -1
- package/map/lists/element.d.ts +1 -1
- package/map/lists.d.ts +1 -1
- 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/file.d.ts +1 -1
- package/request/disk/folder.d.ts +1 -1
- package/request/disk/storage.d.ts +1 -1
- package/request/lists/element.d.ts +1 -1
- package/request/log/blogpost.d.ts +1 -1
- 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/rest.d.ts +6 -2
- package/services/http/HttpBX.d.ts +1 -1
- 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/fesm2020/bx-rest.mjs
CHANGED
|
@@ -30,6 +30,92 @@ function BXRestMapResult(v) {
|
|
|
30
30
|
return undefined;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
const $get = 'get';
|
|
34
|
+
const $add = 'add';
|
|
35
|
+
const $set = 'set';
|
|
36
|
+
const $event = 'event';
|
|
37
|
+
const $update = 'update';
|
|
38
|
+
const $user = 'user';
|
|
39
|
+
const $task = 'task';
|
|
40
|
+
const $calendar = 'calendar';
|
|
41
|
+
const $meeting = 'meeting';
|
|
42
|
+
const $list = 'list';
|
|
43
|
+
const $search = 'search';
|
|
44
|
+
const $accessibility = 'accessibility';
|
|
45
|
+
const $delete = 'delete';
|
|
46
|
+
const $nearest = 'nearest';
|
|
47
|
+
const $params = 'params';
|
|
48
|
+
const $status = 'status';
|
|
49
|
+
const $resource = 'resource';
|
|
50
|
+
const $booking = 'booking';
|
|
51
|
+
const $section = 'section';
|
|
52
|
+
const $settings = 'settings';
|
|
53
|
+
const $tasks = 'tasks';
|
|
54
|
+
const $elapseditem = 'elapseditem';
|
|
55
|
+
const $getlist = 'getlist';
|
|
56
|
+
const $approve = 'approve';
|
|
57
|
+
const $complete = 'complete';
|
|
58
|
+
const $counters = 'counters';
|
|
59
|
+
const $deger = 'deger';
|
|
60
|
+
const $delegate = 'delegate';
|
|
61
|
+
const $disapprove = 'disapprove';
|
|
62
|
+
const $favorite = 'favorite';
|
|
63
|
+
const $files = 'files';
|
|
64
|
+
const $file = 'file';
|
|
65
|
+
const $attach = 'attach';
|
|
66
|
+
const $field = 'field';
|
|
67
|
+
const $getFields = 'get' + $field + 's';
|
|
68
|
+
const $getaccess = 'getaccess';
|
|
69
|
+
const $history = 'history';
|
|
70
|
+
const $pause = 'pause';
|
|
71
|
+
const $renew = 'renew';
|
|
72
|
+
const $start = 'start';
|
|
73
|
+
const $result = 'result';
|
|
74
|
+
const $planner = 'planner';
|
|
75
|
+
const $disk = 'disk';
|
|
76
|
+
const $rename = 'rename';
|
|
77
|
+
const $markdeleted = 'markdeleted';
|
|
78
|
+
const $restore = 'restore';
|
|
79
|
+
const $folder = 'folder';
|
|
80
|
+
const $getchildren = 'getchildren';
|
|
81
|
+
const $copyto = 'copyto';
|
|
82
|
+
const $moveto = 'moveto';
|
|
83
|
+
const $uploadfile = 'uploadfile';
|
|
84
|
+
const $storage = 'storage';
|
|
85
|
+
const $getTypes = 'getTypes';
|
|
86
|
+
const $stages = 'stages';
|
|
87
|
+
const $getmanifest = 'getmanifest';
|
|
88
|
+
const $isactionallowed = 'isactionallowed';
|
|
89
|
+
const $commentitem = 'commentitem';
|
|
90
|
+
const $department = 'department';
|
|
91
|
+
const $sonet_group = 'sonet_group';
|
|
92
|
+
const $create = 'create';
|
|
93
|
+
const $feature = 'feature';
|
|
94
|
+
const $access = 'access';
|
|
95
|
+
const $request = 'request';
|
|
96
|
+
const $socialnetwork = 'socialnetwork';
|
|
97
|
+
const $api = 'api';
|
|
98
|
+
const $workgroup = 'workgroup';
|
|
99
|
+
const $log = 'log';
|
|
100
|
+
const $blogpost = 'blogpost';
|
|
101
|
+
const $lists = 'lists';
|
|
102
|
+
const $iblock = 'iblock';
|
|
103
|
+
const $type = 'type';
|
|
104
|
+
const $id = 'id';
|
|
105
|
+
const $element = 'element';
|
|
106
|
+
const $url = 'url';
|
|
107
|
+
const $bizproc = 'bizproc';
|
|
108
|
+
const $workflow = 'workflow';
|
|
109
|
+
const $instances = 'instances';
|
|
110
|
+
const $terminate = '$terminate';
|
|
111
|
+
const $kill = 'kill';
|
|
112
|
+
const $template = 'template';
|
|
113
|
+
const $activity = 'activity';
|
|
114
|
+
const $robot = 'robot';
|
|
115
|
+
const $send = 'send';
|
|
116
|
+
const $share = 'share';
|
|
117
|
+
const $blogcomment = 'blogcomment';
|
|
118
|
+
|
|
33
119
|
class BxRestModule {
|
|
34
120
|
}
|
|
35
121
|
BxRestModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1136,92 +1222,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1136
1222
|
}]
|
|
1137
1223
|
}] });
|
|
1138
1224
|
|
|
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';
|
|
1224
|
-
|
|
1225
1225
|
class BaseMapServices extends BaseServices {
|
|
1226
1226
|
}
|
|
1227
1227
|
BaseMapServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -1869,6 +1869,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1869
1869
|
}]
|
|
1870
1870
|
}], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: BXRestLogBlogComment }]; } });
|
|
1871
1871
|
|
|
1872
|
+
class BXRestCalendarEvent {
|
|
1873
|
+
constructor(http) {
|
|
1874
|
+
this.http = http;
|
|
1875
|
+
this.url = {
|
|
1876
|
+
add: [$calendar, $event, $add],
|
|
1877
|
+
delete: [$calendar, $event, $delete],
|
|
1878
|
+
get: [$calendar, $event, $get],
|
|
1879
|
+
getNearest: [$calendar, $event, $get, $nearest],
|
|
1880
|
+
update: [$calendar, $event, $get, $update], // Редактирует существующее событие
|
|
1881
|
+
};
|
|
1882
|
+
}
|
|
1883
|
+
get(param) {
|
|
1884
|
+
return this.http.post(this.url.get, param);
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
BXRestCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1888
|
+
BXRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' });
|
|
1889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
|
|
1890
|
+
type: Injectable,
|
|
1891
|
+
args: [{
|
|
1892
|
+
providedIn: 'root'
|
|
1893
|
+
}]
|
|
1894
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1895
|
+
|
|
1896
|
+
class BXRestCalendar {
|
|
1897
|
+
// TODO: эту дичь расформировать потом по классам
|
|
1898
|
+
/*
|
|
1899
|
+
url = {
|
|
1900
|
+
accessibility: {get: getNameMethod([$calendar, $accessibility, $get])}, // Возвращает занятость пользователей из списка.
|
|
1901
|
+
meeting: {
|
|
1902
|
+
params: {
|
|
1903
|
+
set: getNameMethod([$calendar, $meeting, $params, $set]), // Устанавливает параметры события для текущего пользователя
|
|
1904
|
+
},
|
|
1905
|
+
status: {
|
|
1906
|
+
get: getNameMethod([$calendar, $meeting, $status, $get]), // Возвращает статус участия текущего пользователя в событии
|
|
1907
|
+
set: getNameMethod([$calendar, $meeting, $status, $set]), // Устанавливает статус участия в событии для текущего пользователя
|
|
1908
|
+
},
|
|
1909
|
+
},
|
|
1910
|
+
resource: {
|
|
1911
|
+
list: getNameMethod([$calendar, $resource, $list]), // Возвращает список (массив) всех ресурсов
|
|
1912
|
+
add: getNameMethod([$calendar, $resource, $add]), // Добавляет новый ресурс
|
|
1913
|
+
update: getNameMethod([$calendar, $resource, $update]), // Изменяет ресурс
|
|
1914
|
+
delete: getNameMethod([$calendar, $resource, $delete]), // Удаляет ресурс
|
|
1915
|
+
booking: {
|
|
1916
|
+
list: getNameMethod([$calendar, $resource, $booking, $list]), // Предоставляет возможность выбрать бронирования ресурсов
|
|
1917
|
+
}
|
|
1918
|
+
},
|
|
1919
|
+
section: {
|
|
1920
|
+
add: getNameMethod([$calendar, $section, $add]), // Добавляет новый календарь
|
|
1921
|
+
delete: getNameMethod([$calendar, $section, $delete]), // Удаляет календарь
|
|
1922
|
+
get: getNameMethod([$calendar, $section, $get]), // Возвращает список календарей
|
|
1923
|
+
update: getNameMethod([$calendar, $section, $update]) //Обновляет календарь
|
|
1924
|
+
},
|
|
1925
|
+
settings: {
|
|
1926
|
+
get: getNameMethod([$calendar, $settings, $get]), // Возвращает основные настройки календаря
|
|
1927
|
+
set: getNameMethod([$calendar, $user, $settings, $set]), // Сохраняет пользовательские настройки календаря
|
|
1928
|
+
},
|
|
1929
|
+
getbyid: getNameMethod([$calendar, $event, 'getbyid']), // Возвращает событие календаря по идентификатору
|
|
1930
|
+
}
|
|
1931
|
+
*/
|
|
1932
|
+
constructor(event) {
|
|
1933
|
+
this.event = event;
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
BXRestCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, deps: [{ token: BXRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1937
|
+
BXRestCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, providedIn: 'root' });
|
|
1938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, decorators: [{
|
|
1939
|
+
type: Injectable,
|
|
1940
|
+
args: [{
|
|
1941
|
+
providedIn: 'root'
|
|
1942
|
+
}]
|
|
1943
|
+
}], ctorParameters: function () { return [{ type: BXRestCalendarEvent }]; } });
|
|
1944
|
+
|
|
1872
1945
|
class Navvy {
|
|
1873
1946
|
constructor(snackBar) {
|
|
1874
1947
|
this.snackBar = snackBar;
|
|
@@ -2715,6 +2788,125 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2715
2788
|
}]
|
|
2716
2789
|
}], ctorParameters: function () { return [{ type: BXRestNavvyLogBlogPost }, { type: BXRestNavvyLogBlogComment }]; } });
|
|
2717
2790
|
|
|
2791
|
+
class BXRestMapCalendarEvent extends BaseMapServices {
|
|
2792
|
+
get(item) {
|
|
2793
|
+
return (item) ? item.map(i => this.CalendarEventGetAnswerHttpToCalendarEventGetAnswer(i)) : undefined;
|
|
2794
|
+
}
|
|
2795
|
+
CalendarEventGetAnswerHttpToCalendarEventGetAnswer(item) {
|
|
2796
|
+
return {
|
|
2797
|
+
...item,
|
|
2798
|
+
ID: this.toNum(item.ID),
|
|
2799
|
+
MEETING_HOST: this.toNum(item.MEETING_HOST),
|
|
2800
|
+
OWNER_ID: this.toNum(item.OWNER_ID),
|
|
2801
|
+
PARENT_ID: this.toNum(item.PARENT_ID),
|
|
2802
|
+
RECURRENCE_ID: this.toNum(item.RECURRENCE_ID),
|
|
2803
|
+
SECT_ID: this.toNum(item.SECT_ID),
|
|
2804
|
+
SECTION_ID: this.toNum(item.SECTION_ID),
|
|
2805
|
+
TZ_OFFSET_FROM: this.toNum(item.TZ_OFFSET_FROM),
|
|
2806
|
+
TZ_OFFSET_TO: this.toNum(item.TZ_OFFSET_TO),
|
|
2807
|
+
VERSION: this.toNum(item.VERSION),
|
|
2808
|
+
DATE_CREATE: this.toDate(item.DATE_CREATE, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_FROM }),
|
|
2809
|
+
DATE_FROM: this.toDate(item.DATE_FROM, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_FROM }),
|
|
2810
|
+
ORIGINAL_DATE_FROM: (item.ORIGINAL_DATE_FROM)
|
|
2811
|
+
? this.toDate(item.ORIGINAL_DATE_FROM, 'dd.MM.yyyy HH:mm:ss')
|
|
2812
|
+
: null,
|
|
2813
|
+
DATE_TO: this.toDate(item.DATE_TO, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_TO }),
|
|
2814
|
+
TIMESTAMP_X: this.toDate(item.TIMESTAMP_X, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_FROM }),
|
|
2815
|
+
DATE_FROM_TS_UTC: this.toNum(item.DATE_FROM_TS_UTC),
|
|
2816
|
+
DATE_TO_TS_UTC: this.toNum(item.DATE_TO_TS_UTC),
|
|
2817
|
+
DELETED: item.DELETED === 'Y',
|
|
2818
|
+
DT_LENGTH: this.toNum(item.DT_LENGTH),
|
|
2819
|
+
DT_SKIP_TIME: item.DT_SKIP_TIME === 'Y',
|
|
2820
|
+
MEETING_STATUS: item.MEETING_STATUS === 'Y',
|
|
2821
|
+
EXDATE: item.EXDATE.split(';').map(dateStr => this.toDate(dateStr, 'dd.MM.yyyy')),
|
|
2822
|
+
RRULE: (item.RRULE && typeof item.RRULE !== 'string') ? {
|
|
2823
|
+
...item.RRULE,
|
|
2824
|
+
UNTIL: this.toDate(item.RRULE.UNTIL, 'dd.MM.yyyy'),
|
|
2825
|
+
'~UNTIL': this.toDate(item.RRULE['~UNTIL'], 'dd.MM.yyyy')
|
|
2826
|
+
} : null,
|
|
2827
|
+
ATTENDEE_LIST: (item.ATTENDEE_LIST) ? item.ATTENDEE_LIST.map(i => {
|
|
2828
|
+
return { id: i.id, entryId: this.toNum(i.entryId), status: i.status };
|
|
2829
|
+
}) : []
|
|
2830
|
+
};
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
BXRestMapCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
2834
|
+
BXRestMapCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' });
|
|
2835
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
|
|
2836
|
+
type: Injectable,
|
|
2837
|
+
args: [{
|
|
2838
|
+
providedIn: 'root'
|
|
2839
|
+
}]
|
|
2840
|
+
}] });
|
|
2841
|
+
|
|
2842
|
+
class BXRestRestCalendarEvent {
|
|
2843
|
+
constructor(BXRestCalendarEvent, Navvy, eventMap) {
|
|
2844
|
+
this.BXRestCalendarEvent = BXRestCalendarEvent;
|
|
2845
|
+
this.Navvy = Navvy;
|
|
2846
|
+
this.eventMap = eventMap;
|
|
2847
|
+
}
|
|
2848
|
+
get(param) {
|
|
2849
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestCalendarEvent.get(param), 'Не удалось получить информацию о событии из календаря').pipe(map(v => this.eventMap.get(v)));
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
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 });
|
|
2853
|
+
BXRestRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' });
|
|
2854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
|
|
2855
|
+
type: Injectable,
|
|
2856
|
+
args: [{
|
|
2857
|
+
providedIn: 'root'
|
|
2858
|
+
}]
|
|
2859
|
+
}], ctorParameters: function () { return [{ type: BXRestCalendarEvent }, { type: Navvy }, { type: BXRestMapCalendarEvent }]; } });
|
|
2860
|
+
|
|
2861
|
+
class BXRestNavvyCalendar {
|
|
2862
|
+
// TODO: эту дичь расформировать потом по классам
|
|
2863
|
+
/*
|
|
2864
|
+
url = {
|
|
2865
|
+
accessibility: {get: getNameMethod([$calendar, $accessibility, $get])}, // Возвращает занятость пользователей из списка.
|
|
2866
|
+
meeting: {
|
|
2867
|
+
params: {
|
|
2868
|
+
set: getNameMethod([$calendar, $meeting, $params, $set]), // Устанавливает параметры события для текущего пользователя
|
|
2869
|
+
},
|
|
2870
|
+
status: {
|
|
2871
|
+
get: getNameMethod([$calendar, $meeting, $status, $get]), // Возвращает статус участия текущего пользователя в событии
|
|
2872
|
+
set: getNameMethod([$calendar, $meeting, $status, $set]), // Устанавливает статус участия в событии для текущего пользователя
|
|
2873
|
+
},
|
|
2874
|
+
},
|
|
2875
|
+
resource: {
|
|
2876
|
+
list: getNameMethod([$calendar, $resource, $list]), // Возвращает список (массив) всех ресурсов
|
|
2877
|
+
add: getNameMethod([$calendar, $resource, $add]), // Добавляет новый ресурс
|
|
2878
|
+
update: getNameMethod([$calendar, $resource, $update]), // Изменяет ресурс
|
|
2879
|
+
delete: getNameMethod([$calendar, $resource, $delete]), // Удаляет ресурс
|
|
2880
|
+
booking: {
|
|
2881
|
+
list: getNameMethod([$calendar, $resource, $booking, $list]), // Предоставляет возможность выбрать бронирования ресурсов
|
|
2882
|
+
}
|
|
2883
|
+
},
|
|
2884
|
+
section: {
|
|
2885
|
+
add: getNameMethod([$calendar, $section, $add]), // Добавляет новый календарь
|
|
2886
|
+
delete: getNameMethod([$calendar, $section, $delete]), // Удаляет календарь
|
|
2887
|
+
get: getNameMethod([$calendar, $section, $get]), // Возвращает список календарей
|
|
2888
|
+
update: getNameMethod([$calendar, $section, $update]) //Обновляет календарь
|
|
2889
|
+
},
|
|
2890
|
+
settings: {
|
|
2891
|
+
get: getNameMethod([$calendar, $settings, $get]), // Возвращает основные настройки календаря
|
|
2892
|
+
set: getNameMethod([$calendar, $user, $settings, $set]), // Сохраняет пользовательские настройки календаря
|
|
2893
|
+
},
|
|
2894
|
+
getbyid: getNameMethod([$calendar, $event, 'getbyid']), // Возвращает событие календаря по идентификатору
|
|
2895
|
+
}
|
|
2896
|
+
*/
|
|
2897
|
+
constructor(event) {
|
|
2898
|
+
this.event = event;
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2901
|
+
BXRestNavvyCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, deps: [{ token: BXRestRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2902
|
+
BXRestNavvyCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' });
|
|
2903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
|
|
2904
|
+
type: Injectable,
|
|
2905
|
+
args: [{
|
|
2906
|
+
providedIn: 'root'
|
|
2907
|
+
}]
|
|
2908
|
+
}], ctorParameters: function () { return [{ type: BXRestRestCalendarEvent }]; } });
|
|
2909
|
+
|
|
2718
2910
|
class BXRestMapLists extends BaseMapServices {
|
|
2719
2911
|
constructor(element) {
|
|
2720
2912
|
super();
|
|
@@ -2731,41 +2923,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2731
2923
|
}], ctorParameters: function () { return [{ type: BXRestMapListsElement }]; } });
|
|
2732
2924
|
|
|
2733
2925
|
class BXRest {
|
|
2734
|
-
constructor(user, lists, tasks, disk, bizproc, log) {
|
|
2926
|
+
constructor(user, lists, tasks, disk, bizproc, log, calendar) {
|
|
2735
2927
|
this.user = user;
|
|
2736
2928
|
this.lists = lists;
|
|
2737
2929
|
this.tasks = tasks;
|
|
2738
2930
|
this.disk = disk;
|
|
2739
2931
|
this.bizproc = bizproc;
|
|
2740
2932
|
this.log = log;
|
|
2933
|
+
this.calendar = calendar;
|
|
2741
2934
|
}
|
|
2742
2935
|
}
|
|
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 });
|
|
2936
|
+
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 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2744
2937
|
BXRest.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, providedIn: 'root' });
|
|
2745
2938
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, decorators: [{
|
|
2746
2939
|
type: Injectable,
|
|
2747
2940
|
args: [{
|
|
2748
2941
|
providedIn: 'root'
|
|
2749
2942
|
}]
|
|
2750
|
-
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }]; } });
|
|
2943
|
+
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }, { type: BXRestCalendar }]; } });
|
|
2751
2944
|
class BXRestNavvy {
|
|
2752
|
-
constructor(user, lists, tasks, disk, bizproc, log) {
|
|
2945
|
+
constructor(user, lists, tasks, disk, bizproc, log, calendar) {
|
|
2753
2946
|
this.user = user;
|
|
2754
2947
|
this.lists = lists;
|
|
2755
2948
|
this.tasks = tasks;
|
|
2756
2949
|
this.disk = disk;
|
|
2757
2950
|
this.bizproc = bizproc;
|
|
2758
2951
|
this.log = log;
|
|
2952
|
+
this.calendar = calendar;
|
|
2759
2953
|
}
|
|
2760
2954
|
}
|
|
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 });
|
|
2955
|
+
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 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2762
2956
|
BXRestNavvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, providedIn: 'root' });
|
|
2763
2957
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, decorators: [{
|
|
2764
2958
|
type: Injectable,
|
|
2765
2959
|
args: [{
|
|
2766
2960
|
providedIn: 'root'
|
|
2767
2961
|
}]
|
|
2768
|
-
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }]; } });
|
|
2962
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }, { type: BXRestNavvyCalendar }]; } });
|
|
2769
2963
|
class BXRestMap {
|
|
2770
2964
|
constructor(lists) {
|
|
2771
2965
|
this.lists = lists;
|