bx-rest 0.1.5 → 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/consts/part-name-metods.d.ts +2 -0
- package/esm2020/consts/part-name-metods.mjs +3 -1
- 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/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 +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 +19 -0
- package/esm2020/request-navvy/log/blogpost.mjs +33 -0
- package/esm2020/request-navvy/log.mjs +19 -0
- package/esm2020/rest.mjs +23 -15
- package/esm2020/services/http/HttpBX.mjs +2 -2
- package/esm2020/services/http/sessionKey.mjs +1 -3
- 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/esm2020/typification/rest/log/blogpost/add.mjs +2 -0
- package/fesm2015/bx-rest.mjs +375 -92
- package/fesm2015/bx-rest.mjs.map +1 -1
- package/fesm2020/bx-rest.mjs +405 -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/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 +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/log/blogcomment.d.ts +8 -0
- package/request-navvy/log/blogpost.d.ts +19 -0
- package/request-navvy/log.d.ts +10 -0
- package/rest.d.ts +10 -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/typification/rest/log/blogpost/add.d.ts +12 -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 });
|
|
@@ -754,7 +840,6 @@ class SessionKeyServices extends BaseServices {
|
|
|
754
840
|
getAuth() {
|
|
755
841
|
switch (BX_REST_SETTINGS.auth.key) {
|
|
756
842
|
case 'auth':
|
|
757
|
-
console.log('Cookies.get(\'auth\')', CookiesServices.get('auth'));
|
|
758
843
|
return CookiesServices.get('auth');
|
|
759
844
|
default:
|
|
760
845
|
if (window.BX && window.BX.bitrix_sessid()) {
|
|
@@ -806,7 +891,6 @@ class SessionKeyServices extends BaseServices {
|
|
|
806
891
|
return false;
|
|
807
892
|
}
|
|
808
893
|
getAuthParams() {
|
|
809
|
-
console.log('BX_REST_SETTINGS', BX_REST_SETTINGS);
|
|
810
894
|
switch (BX_REST_SETTINGS.auth.source) {
|
|
811
895
|
case 'cookies':
|
|
812
896
|
return this.getAuth();
|
|
@@ -1143,90 +1227,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1143
1227
|
}]
|
|
1144
1228
|
}] });
|
|
1145
1229
|
|
|
1146
|
-
const $get = 'get';
|
|
1147
|
-
const $add = 'add';
|
|
1148
|
-
const $set = 'set';
|
|
1149
|
-
const $event = 'event';
|
|
1150
|
-
const $update = 'update';
|
|
1151
|
-
const $user = 'user';
|
|
1152
|
-
const $task = 'task';
|
|
1153
|
-
const $calendar = 'calendar';
|
|
1154
|
-
const $meeting = 'meeting';
|
|
1155
|
-
const $list = 'list';
|
|
1156
|
-
const $search = 'search';
|
|
1157
|
-
const $accessibility = 'accessibility';
|
|
1158
|
-
const $delete = 'delete';
|
|
1159
|
-
const $nearest = 'nearest';
|
|
1160
|
-
const $params = 'params';
|
|
1161
|
-
const $status = 'status';
|
|
1162
|
-
const $resource = 'resource';
|
|
1163
|
-
const $booking = 'booking';
|
|
1164
|
-
const $section = 'section';
|
|
1165
|
-
const $settings = 'settings';
|
|
1166
|
-
const $tasks = 'tasks';
|
|
1167
|
-
const $elapseditem = 'elapseditem';
|
|
1168
|
-
const $getlist = 'getlist';
|
|
1169
|
-
const $approve = 'approve';
|
|
1170
|
-
const $complete = 'complete';
|
|
1171
|
-
const $counters = 'counters';
|
|
1172
|
-
const $deger = 'deger';
|
|
1173
|
-
const $delegate = 'delegate';
|
|
1174
|
-
const $disapprove = 'disapprove';
|
|
1175
|
-
const $favorite = 'favorite';
|
|
1176
|
-
const $files = 'files';
|
|
1177
|
-
const $file = 'file';
|
|
1178
|
-
const $attach = 'attach';
|
|
1179
|
-
const $field = 'field';
|
|
1180
|
-
const $getFields = 'get' + $field + 's';
|
|
1181
|
-
const $getaccess = 'getaccess';
|
|
1182
|
-
const $history = 'history';
|
|
1183
|
-
const $pause = 'pause';
|
|
1184
|
-
const $renew = 'renew';
|
|
1185
|
-
const $start = 'start';
|
|
1186
|
-
const $result = 'result';
|
|
1187
|
-
const $planner = 'planner';
|
|
1188
|
-
const $disk = 'disk';
|
|
1189
|
-
const $rename = 'rename';
|
|
1190
|
-
const $markdeleted = 'markdeleted';
|
|
1191
|
-
const $restore = 'restore';
|
|
1192
|
-
const $folder = 'folder';
|
|
1193
|
-
const $getchildren = 'getchildren';
|
|
1194
|
-
const $copyto = 'copyto';
|
|
1195
|
-
const $moveto = 'moveto';
|
|
1196
|
-
const $uploadfile = 'uploadfile';
|
|
1197
|
-
const $storage = 'storage';
|
|
1198
|
-
const $getTypes = 'getTypes';
|
|
1199
|
-
const $stages = 'stages';
|
|
1200
|
-
const $getmanifest = 'getmanifest';
|
|
1201
|
-
const $isactionallowed = 'isactionallowed';
|
|
1202
|
-
const $commentitem = 'commentitem';
|
|
1203
|
-
const $department = 'department';
|
|
1204
|
-
const $sonet_group = 'sonet_group';
|
|
1205
|
-
const $create = 'create';
|
|
1206
|
-
const $feature = 'feature';
|
|
1207
|
-
const $access = 'access';
|
|
1208
|
-
const $request = 'request';
|
|
1209
|
-
const $socialnetwork = 'socialnetwork';
|
|
1210
|
-
const $api = 'api';
|
|
1211
|
-
const $workgroup = 'workgroup';
|
|
1212
|
-
const $log = 'log';
|
|
1213
|
-
const $blogpost = 'blogpost';
|
|
1214
|
-
const $lists = 'lists';
|
|
1215
|
-
const $iblock = 'iblock';
|
|
1216
|
-
const $type = 'type';
|
|
1217
|
-
const $id = 'id';
|
|
1218
|
-
const $element = 'element';
|
|
1219
|
-
const $url = 'url';
|
|
1220
|
-
const $bizproc = 'bizproc';
|
|
1221
|
-
const $workflow = 'workflow';
|
|
1222
|
-
const $instances = 'instances';
|
|
1223
|
-
const $terminate = '$terminate';
|
|
1224
|
-
const $kill = 'kill';
|
|
1225
|
-
const $template = 'template';
|
|
1226
|
-
const $activity = 'activity';
|
|
1227
|
-
const $robot = 'robot';
|
|
1228
|
-
const $send = 'send';
|
|
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 });
|
|
@@ -1816,6 +1816,137 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1816
1816
|
}]
|
|
1817
1817
|
}], ctorParameters: function () { return [{ type: BXRestBizprocWorkflow }, { type: BXRestBizprocActivity }, { type: BXRestBizprocTask }, { type: BXRestBizprocRobot }, { type: BXRestBizprocEvent }]; } });
|
|
1818
1818
|
|
|
1819
|
+
class BXRestLogBlogPost {
|
|
1820
|
+
constructor(http) {
|
|
1821
|
+
this.http = http;
|
|
1822
|
+
this.url = {
|
|
1823
|
+
add: [$log, $blogpost, $add],
|
|
1824
|
+
// getusers: {
|
|
1825
|
+
// important: 'log.blogpost.getusers.important' // Отдает массив ID пользователей, прочитавших Важное сообщение
|
|
1826
|
+
// },
|
|
1827
|
+
get: [$log, $blogpost, $get],
|
|
1828
|
+
delete: [$log, $blogpost, $delete],
|
|
1829
|
+
share: [$log, $blogpost, $share],
|
|
1830
|
+
update: [$log, $blogpost, $update], // Изменяет сообщение Живой Ленты
|
|
1831
|
+
};
|
|
1832
|
+
}
|
|
1833
|
+
add(param) {
|
|
1834
|
+
return this.http.post(this.url.add, param);
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
BXRestLogBlogPost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1838
|
+
BXRestLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' });
|
|
1839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, decorators: [{
|
|
1840
|
+
type: Injectable,
|
|
1841
|
+
args: [{
|
|
1842
|
+
providedIn: 'root'
|
|
1843
|
+
}]
|
|
1844
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1845
|
+
|
|
1846
|
+
class BXRestLogBlogComment {
|
|
1847
|
+
constructor() {
|
|
1848
|
+
this.url = {
|
|
1849
|
+
add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
|
|
1850
|
+
};
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
BXRestLogBlogComment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1854
|
+
BXRestLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, providedIn: 'root' });
|
|
1855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, decorators: [{
|
|
1856
|
+
type: Injectable,
|
|
1857
|
+
args: [{
|
|
1858
|
+
providedIn: 'root'
|
|
1859
|
+
}]
|
|
1860
|
+
}] });
|
|
1861
|
+
|
|
1862
|
+
class BXRestLog {
|
|
1863
|
+
constructor(blogPost, blogComment) {
|
|
1864
|
+
this.blogPost = blogPost;
|
|
1865
|
+
this.blogComment = blogComment;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
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 });
|
|
1869
|
+
BXRestLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, providedIn: 'root' });
|
|
1870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, decorators: [{
|
|
1871
|
+
type: Injectable,
|
|
1872
|
+
args: [{
|
|
1873
|
+
providedIn: 'root'
|
|
1874
|
+
}]
|
|
1875
|
+
}], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: BXRestLogBlogComment }]; } });
|
|
1876
|
+
|
|
1877
|
+
class BXRestCalendarEvent {
|
|
1878
|
+
constructor(http) {
|
|
1879
|
+
this.http = http;
|
|
1880
|
+
this.url = {
|
|
1881
|
+
add: [$calendar, $event, $add],
|
|
1882
|
+
delete: [$calendar, $event, $delete],
|
|
1883
|
+
get: [$calendar, $event, $get],
|
|
1884
|
+
getNearest: [$calendar, $event, $get, $nearest],
|
|
1885
|
+
update: [$calendar, $event, $get, $update], // Редактирует существующее событие
|
|
1886
|
+
};
|
|
1887
|
+
}
|
|
1888
|
+
get(param) {
|
|
1889
|
+
return this.http.post(this.url.get, param);
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
BXRestCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1893
|
+
BXRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' });
|
|
1894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
|
|
1895
|
+
type: Injectable,
|
|
1896
|
+
args: [{
|
|
1897
|
+
providedIn: 'root'
|
|
1898
|
+
}]
|
|
1899
|
+
}], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
|
|
1900
|
+
|
|
1901
|
+
class BXRestCalendar {
|
|
1902
|
+
// TODO: эту дичь расформировать потом по классам
|
|
1903
|
+
/*
|
|
1904
|
+
url = {
|
|
1905
|
+
accessibility: {get: getNameMethod([$calendar, $accessibility, $get])}, // Возвращает занятость пользователей из списка.
|
|
1906
|
+
meeting: {
|
|
1907
|
+
params: {
|
|
1908
|
+
set: getNameMethod([$calendar, $meeting, $params, $set]), // Устанавливает параметры события для текущего пользователя
|
|
1909
|
+
},
|
|
1910
|
+
status: {
|
|
1911
|
+
get: getNameMethod([$calendar, $meeting, $status, $get]), // Возвращает статус участия текущего пользователя в событии
|
|
1912
|
+
set: getNameMethod([$calendar, $meeting, $status, $set]), // Устанавливает статус участия в событии для текущего пользователя
|
|
1913
|
+
},
|
|
1914
|
+
},
|
|
1915
|
+
resource: {
|
|
1916
|
+
list: getNameMethod([$calendar, $resource, $list]), // Возвращает список (массив) всех ресурсов
|
|
1917
|
+
add: getNameMethod([$calendar, $resource, $add]), // Добавляет новый ресурс
|
|
1918
|
+
update: getNameMethod([$calendar, $resource, $update]), // Изменяет ресурс
|
|
1919
|
+
delete: getNameMethod([$calendar, $resource, $delete]), // Удаляет ресурс
|
|
1920
|
+
booking: {
|
|
1921
|
+
list: getNameMethod([$calendar, $resource, $booking, $list]), // Предоставляет возможность выбрать бронирования ресурсов
|
|
1922
|
+
}
|
|
1923
|
+
},
|
|
1924
|
+
section: {
|
|
1925
|
+
add: getNameMethod([$calendar, $section, $add]), // Добавляет новый календарь
|
|
1926
|
+
delete: getNameMethod([$calendar, $section, $delete]), // Удаляет календарь
|
|
1927
|
+
get: getNameMethod([$calendar, $section, $get]), // Возвращает список календарей
|
|
1928
|
+
update: getNameMethod([$calendar, $section, $update]) //Обновляет календарь
|
|
1929
|
+
},
|
|
1930
|
+
settings: {
|
|
1931
|
+
get: getNameMethod([$calendar, $settings, $get]), // Возвращает основные настройки календаря
|
|
1932
|
+
set: getNameMethod([$calendar, $user, $settings, $set]), // Сохраняет пользовательские настройки календаря
|
|
1933
|
+
},
|
|
1934
|
+
getbyid: getNameMethod([$calendar, $event, 'getbyid']), // Возвращает событие календаря по идентификатору
|
|
1935
|
+
}
|
|
1936
|
+
*/
|
|
1937
|
+
constructor(event) {
|
|
1938
|
+
this.event = event;
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
BXRestCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, deps: [{ token: BXRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1942
|
+
BXRestCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, providedIn: 'root' });
|
|
1943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, decorators: [{
|
|
1944
|
+
type: Injectable,
|
|
1945
|
+
args: [{
|
|
1946
|
+
providedIn: 'root'
|
|
1947
|
+
}]
|
|
1948
|
+
}], ctorParameters: function () { return [{ type: BXRestCalendarEvent }]; } });
|
|
1949
|
+
|
|
1819
1950
|
class Navvy {
|
|
1820
1951
|
constructor(snackBar) {
|
|
1821
1952
|
this.snackBar = snackBar;
|
|
@@ -2600,6 +2731,154 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2600
2731
|
}]
|
|
2601
2732
|
}], ctorParameters: function () { return [{ type: BXRestNavvyBizprocWorkflow }, { type: BXRestNavvyLists }]; } });
|
|
2602
2733
|
|
|
2734
|
+
class BXRestNavvyLogBlogPost {
|
|
2735
|
+
constructor(BXRestLogBlogPost, Navvy) {
|
|
2736
|
+
this.BXRestLogBlogPost = BXRestLogBlogPost;
|
|
2737
|
+
this.Navvy = Navvy;
|
|
2738
|
+
this.url = {
|
|
2739
|
+
add: [$log, $blogpost, $add],
|
|
2740
|
+
// getusers: {
|
|
2741
|
+
// important: 'log.blogpost.getusers.important' // Отдает массив ID пользователей, прочитавших Важное сообщение
|
|
2742
|
+
// },
|
|
2743
|
+
get: [$log, $blogpost, $get],
|
|
2744
|
+
delete: [$log, $blogpost, $delete],
|
|
2745
|
+
share: [$log, $blogpost, $share],
|
|
2746
|
+
update: [$log, $blogpost, $update], // Изменяет сообщение Живой Ленты
|
|
2747
|
+
};
|
|
2748
|
+
}
|
|
2749
|
+
add(param) {
|
|
2750
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestLogBlogPost.add(param), 'При добавлении поста');
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
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 });
|
|
2754
|
+
BXRestNavvyLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' });
|
|
2755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, decorators: [{
|
|
2756
|
+
type: Injectable,
|
|
2757
|
+
args: [{
|
|
2758
|
+
providedIn: 'root'
|
|
2759
|
+
}]
|
|
2760
|
+
}], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: Navvy }]; } });
|
|
2761
|
+
|
|
2762
|
+
class BXRestNavvyLogBlogComment {
|
|
2763
|
+
constructor() {
|
|
2764
|
+
this.url = {
|
|
2765
|
+
add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
|
|
2766
|
+
};
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
BXRestNavvyLogBlogComment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2770
|
+
BXRestNavvyLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, providedIn: 'root' });
|
|
2771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, decorators: [{
|
|
2772
|
+
type: Injectable,
|
|
2773
|
+
args: [{
|
|
2774
|
+
providedIn: 'root'
|
|
2775
|
+
}]
|
|
2776
|
+
}] });
|
|
2777
|
+
|
|
2778
|
+
class BXRestNavvyLog {
|
|
2779
|
+
constructor(blogPost, blogComment) {
|
|
2780
|
+
this.blogPost = blogPost;
|
|
2781
|
+
this.blogComment = blogComment;
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
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 });
|
|
2785
|
+
BXRestNavvyLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, providedIn: 'root' });
|
|
2786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, decorators: [{
|
|
2787
|
+
type: Injectable,
|
|
2788
|
+
args: [{
|
|
2789
|
+
providedIn: 'root'
|
|
2790
|
+
}]
|
|
2791
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyLogBlogPost }, { type: BXRestNavvyLogBlogComment }]; } });
|
|
2792
|
+
|
|
2793
|
+
class BXRestMapCalendarEvent extends BaseMapServices {
|
|
2794
|
+
get(item) {
|
|
2795
|
+
return (item) ? item.map(i => this.CalendarEventGetAnswerHttpToCalendarEventGetAnswer(i)) : undefined;
|
|
2796
|
+
}
|
|
2797
|
+
CalendarEventGetAnswerHttpToCalendarEventGetAnswer(item) {
|
|
2798
|
+
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)
|
|
2799
|
+
? this.toDate(item.ORIGINAL_DATE_FROM, 'dd.MM.yyyy HH:mm:ss')
|
|
2800
|
+
: 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 => {
|
|
2801
|
+
return { id: i.id, entryId: this.toNum(i.entryId), status: i.status };
|
|
2802
|
+
}) : [] });
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
BXRestMapCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
2806
|
+
BXRestMapCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' });
|
|
2807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
|
|
2808
|
+
type: Injectable,
|
|
2809
|
+
args: [{
|
|
2810
|
+
providedIn: 'root'
|
|
2811
|
+
}]
|
|
2812
|
+
}] });
|
|
2813
|
+
|
|
2814
|
+
class BXRestRestCalendarEvent {
|
|
2815
|
+
constructor(BXRestCalendarEvent, Navvy, eventMap) {
|
|
2816
|
+
this.BXRestCalendarEvent = BXRestCalendarEvent;
|
|
2817
|
+
this.Navvy = Navvy;
|
|
2818
|
+
this.eventMap = eventMap;
|
|
2819
|
+
}
|
|
2820
|
+
get(param) {
|
|
2821
|
+
return this.Navvy.mapAndSnackBarError(this.BXRestCalendarEvent.get(param), 'Не удалось получить информацию о событии из календаря').pipe(map(v => this.eventMap.get(v)));
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
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 });
|
|
2825
|
+
BXRestRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' });
|
|
2826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
|
|
2827
|
+
type: Injectable,
|
|
2828
|
+
args: [{
|
|
2829
|
+
providedIn: 'root'
|
|
2830
|
+
}]
|
|
2831
|
+
}], ctorParameters: function () { return [{ type: BXRestCalendarEvent }, { type: Navvy }, { type: BXRestMapCalendarEvent }]; } });
|
|
2832
|
+
|
|
2833
|
+
class BXRestNavvyCalendar {
|
|
2834
|
+
// TODO: эту дичь расформировать потом по классам
|
|
2835
|
+
/*
|
|
2836
|
+
url = {
|
|
2837
|
+
accessibility: {get: getNameMethod([$calendar, $accessibility, $get])}, // Возвращает занятость пользователей из списка.
|
|
2838
|
+
meeting: {
|
|
2839
|
+
params: {
|
|
2840
|
+
set: getNameMethod([$calendar, $meeting, $params, $set]), // Устанавливает параметры события для текущего пользователя
|
|
2841
|
+
},
|
|
2842
|
+
status: {
|
|
2843
|
+
get: getNameMethod([$calendar, $meeting, $status, $get]), // Возвращает статус участия текущего пользователя в событии
|
|
2844
|
+
set: getNameMethod([$calendar, $meeting, $status, $set]), // Устанавливает статус участия в событии для текущего пользователя
|
|
2845
|
+
},
|
|
2846
|
+
},
|
|
2847
|
+
resource: {
|
|
2848
|
+
list: getNameMethod([$calendar, $resource, $list]), // Возвращает список (массив) всех ресурсов
|
|
2849
|
+
add: getNameMethod([$calendar, $resource, $add]), // Добавляет новый ресурс
|
|
2850
|
+
update: getNameMethod([$calendar, $resource, $update]), // Изменяет ресурс
|
|
2851
|
+
delete: getNameMethod([$calendar, $resource, $delete]), // Удаляет ресурс
|
|
2852
|
+
booking: {
|
|
2853
|
+
list: getNameMethod([$calendar, $resource, $booking, $list]), // Предоставляет возможность выбрать бронирования ресурсов
|
|
2854
|
+
}
|
|
2855
|
+
},
|
|
2856
|
+
section: {
|
|
2857
|
+
add: getNameMethod([$calendar, $section, $add]), // Добавляет новый календарь
|
|
2858
|
+
delete: getNameMethod([$calendar, $section, $delete]), // Удаляет календарь
|
|
2859
|
+
get: getNameMethod([$calendar, $section, $get]), // Возвращает список календарей
|
|
2860
|
+
update: getNameMethod([$calendar, $section, $update]) //Обновляет календарь
|
|
2861
|
+
},
|
|
2862
|
+
settings: {
|
|
2863
|
+
get: getNameMethod([$calendar, $settings, $get]), // Возвращает основные настройки календаря
|
|
2864
|
+
set: getNameMethod([$calendar, $user, $settings, $set]), // Сохраняет пользовательские настройки календаря
|
|
2865
|
+
},
|
|
2866
|
+
getbyid: getNameMethod([$calendar, $event, 'getbyid']), // Возвращает событие календаря по идентификатору
|
|
2867
|
+
}
|
|
2868
|
+
*/
|
|
2869
|
+
constructor(event) {
|
|
2870
|
+
this.event = event;
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
BXRestNavvyCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, deps: [{ token: BXRestRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2874
|
+
BXRestNavvyCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' });
|
|
2875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
|
|
2876
|
+
type: Injectable,
|
|
2877
|
+
args: [{
|
|
2878
|
+
providedIn: 'root'
|
|
2879
|
+
}]
|
|
2880
|
+
}], ctorParameters: function () { return [{ type: BXRestRestCalendarEvent }]; } });
|
|
2881
|
+
|
|
2603
2882
|
class BXRestMapLists extends BaseMapServices {
|
|
2604
2883
|
constructor(element) {
|
|
2605
2884
|
super();
|
|
@@ -2616,39 +2895,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2616
2895
|
}], ctorParameters: function () { return [{ type: BXRestMapListsElement }]; } });
|
|
2617
2896
|
|
|
2618
2897
|
class BXRest {
|
|
2619
|
-
constructor(user, lists, tasks, disk, bizproc) {
|
|
2898
|
+
constructor(user, lists, tasks, disk, bizproc, log, calendar) {
|
|
2620
2899
|
this.user = user;
|
|
2621
2900
|
this.lists = lists;
|
|
2622
2901
|
this.tasks = tasks;
|
|
2623
2902
|
this.disk = disk;
|
|
2624
2903
|
this.bizproc = bizproc;
|
|
2904
|
+
this.log = log;
|
|
2905
|
+
this.calendar = calendar;
|
|
2625
2906
|
}
|
|
2626
2907
|
}
|
|
2627
|
-
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 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2908
|
+
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 });
|
|
2628
2909
|
BXRest.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, providedIn: 'root' });
|
|
2629
2910
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, decorators: [{
|
|
2630
2911
|
type: Injectable,
|
|
2631
2912
|
args: [{
|
|
2632
2913
|
providedIn: 'root'
|
|
2633
2914
|
}]
|
|
2634
|
-
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }]; } });
|
|
2915
|
+
}], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }, { type: BXRestCalendar }]; } });
|
|
2635
2916
|
class BXRestNavvy {
|
|
2636
|
-
constructor(user, lists, tasks, disk, bizproc) {
|
|
2917
|
+
constructor(user, lists, tasks, disk, bizproc, log, calendar) {
|
|
2637
2918
|
this.user = user;
|
|
2638
2919
|
this.lists = lists;
|
|
2639
2920
|
this.tasks = tasks;
|
|
2640
2921
|
this.disk = disk;
|
|
2641
2922
|
this.bizproc = bizproc;
|
|
2923
|
+
this.log = log;
|
|
2924
|
+
this.calendar = calendar;
|
|
2642
2925
|
}
|
|
2643
2926
|
}
|
|
2644
|
-
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 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2927
|
+
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 });
|
|
2645
2928
|
BXRestNavvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, providedIn: 'root' });
|
|
2646
2929
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, decorators: [{
|
|
2647
2930
|
type: Injectable,
|
|
2648
2931
|
args: [{
|
|
2649
2932
|
providedIn: 'root'
|
|
2650
2933
|
}]
|
|
2651
|
-
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }]; } });
|
|
2934
|
+
}], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }, { type: BXRestNavvyCalendar }]; } });
|
|
2652
2935
|
class BXRestMap {
|
|
2653
2936
|
constructor(lists) {
|
|
2654
2937
|
this.lists = lists;
|