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.
Files changed (99) hide show
  1. package/esm2020/map/base.mjs +2 -2
  2. package/esm2020/map/calendar/event.mjs +54 -0
  3. package/esm2020/map/disk/attachedObject.mjs +27 -0
  4. package/esm2020/map/disk/base.mjs +2 -2
  5. package/esm2020/map/lists/element.mjs +2 -2
  6. package/esm2020/map/lists.mjs +55 -2
  7. package/esm2020/map/sonet_group.mjs +34 -0
  8. package/esm2020/map/task.mjs +2 -2
  9. package/esm2020/map/user.mjs +2 -2
  10. package/esm2020/request/bizproc/workflow/template.mjs +4 -4
  11. package/esm2020/request/bizproc/workflow.mjs +4 -4
  12. package/esm2020/request/calendar/event.mjs +28 -0
  13. package/esm2020/request/calendar.mjs +52 -0
  14. package/esm2020/request/disk/attachedObject.mjs +24 -0
  15. package/esm2020/request/disk/file.mjs +4 -4
  16. package/esm2020/request/disk/folder.mjs +4 -4
  17. package/esm2020/request/disk/storage.mjs +4 -4
  18. package/esm2020/request/disk.mjs +6 -4
  19. package/esm2020/request/lists/element.mjs +4 -4
  20. package/esm2020/request/lists.mjs +9 -4
  21. package/esm2020/request/log/blogpost.mjs +7 -4
  22. package/esm2020/request/sonet_group.mjs +57 -0
  23. package/esm2020/request/tasks/task.mjs +4 -4
  24. package/esm2020/request/user.mjs +5 -5
  25. package/esm2020/request-navvy/calendar/event.mjs +25 -0
  26. package/esm2020/request-navvy/calendar.mjs +52 -0
  27. package/esm2020/request-navvy/disk/attachedObject.mjs +25 -0
  28. package/esm2020/request-navvy/disk/folder.mjs +5 -5
  29. package/esm2020/request-navvy/disk/operation.mjs +3 -3
  30. package/esm2020/request-navvy/disk.mjs +10 -8
  31. package/esm2020/request-navvy/lists.mjs +14 -4
  32. package/esm2020/request-navvy/log/blogcomment.mjs +1 -1
  33. package/esm2020/request-navvy/log/blogpost.mjs +4 -1
  34. package/esm2020/request-navvy/sonet_group.mjs +28 -0
  35. package/esm2020/rest.mjs +24 -16
  36. package/esm2020/services/http/HttpBX.mjs +2 -2
  37. package/esm2020/services/navvy.mjs +1 -1
  38. package/esm2020/typification/base/modyfy.mjs +2 -0
  39. package/esm2020/typification/rest/base/ApiPaginationBX.mjs +2 -0
  40. package/esm2020/typification/rest/calendar/base/type.mjs +2 -0
  41. package/esm2020/typification/rest/calendar/get/answer.mjs +2 -0
  42. package/esm2020/typification/rest/calendar/get/param.mjs +2 -0
  43. package/esm2020/typification/rest/disk/AttachedObject.mjs +2 -0
  44. package/esm2020/typification/rest/lists/get.mjs +2 -0
  45. package/esm2020/typification/rest/log/blogpost/essence.mjs +2 -0
  46. package/esm2020/typification/rest/log/blogpost/get.mjs +2 -0
  47. package/esm2020/typification/rest/sonet_group/base.mjs +2 -0
  48. package/esm2020/typification/rest/sonet_group/get.mjs +2 -0
  49. package/fesm2015/bx-rest.mjs +558 -152
  50. package/fesm2015/bx-rest.mjs.map +1 -1
  51. package/fesm2020/bx-rest.mjs +588 -152
  52. package/fesm2020/bx-rest.mjs.map +1 -1
  53. package/map/base.d.ts +1 -1
  54. package/map/calendar/event.d.ts +9 -0
  55. package/map/disk/attachedObject.d.ts +9 -0
  56. package/map/disk/base.d.ts +1 -1
  57. package/map/lists/element.d.ts +1 -1
  58. package/map/lists.d.ts +4 -1
  59. package/map/sonet_group.d.ts +9 -0
  60. package/map/task.d.ts +1 -1
  61. package/map/user.d.ts +1 -1
  62. package/package.json +1 -1
  63. package/request/bizproc/workflow/template.d.ts +1 -1
  64. package/request/bizproc/workflow.d.ts +1 -1
  65. package/request/calendar/event.d.ts +18 -0
  66. package/request/calendar.d.ts +8 -0
  67. package/request/disk/attachedObject.d.ts +13 -0
  68. package/request/disk/file.d.ts +1 -1
  69. package/request/disk/folder.d.ts +1 -1
  70. package/request/disk/storage.d.ts +1 -1
  71. package/request/disk.d.ts +3 -1
  72. package/request/lists/element.d.ts +1 -1
  73. package/request/lists.d.ts +5 -1
  74. package/request/log/blogpost.d.ts +3 -1
  75. package/request/sonet_group.d.ts +17 -0
  76. package/request/tasks/task.d.ts +1 -1
  77. package/request/user.d.ts +1 -1
  78. package/request-navvy/calendar/event.d.ts +14 -0
  79. package/request-navvy/calendar.d.ts +8 -0
  80. package/request-navvy/disk/attachedObject.d.ts +13 -0
  81. package/request-navvy/disk/folder.d.ts +3 -3
  82. package/request-navvy/disk/operation.d.ts +3 -3
  83. package/request-navvy/disk.d.ts +6 -4
  84. package/request-navvy/lists.d.ts +9 -1
  85. package/request-navvy/log/blogpost.d.ts +2 -0
  86. package/request-navvy/sonet_group.d.ts +14 -0
  87. package/rest.d.ts +10 -2
  88. package/services/http/HttpBX.d.ts +1 -1
  89. package/typification/base/modyfy.d.ts +9 -0
  90. package/typification/rest/base/ApiPaginationBX.d.ts +3 -0
  91. package/typification/rest/calendar/base/type.d.ts +1 -0
  92. package/typification/rest/calendar/get/answer.d.ts +126 -0
  93. package/typification/rest/calendar/get/param.d.ts +8 -0
  94. package/typification/rest/disk/AttachedObject.d.ts +23 -0
  95. package/typification/rest/lists/get.d.ts +94 -0
  96. package/typification/rest/log/blogpost/essence.d.ts +51 -0
  97. package/typification/rest/log/blogpost/get.d.ts +71 -0
  98. package/typification/rest/sonet_group/base.d.ts +8 -0
  99. package/typification/rest/sonet_group/get.d.ts +29 -0
@@ -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 });
@@ -1442,8 +1442,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1442
1442
  }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
1443
1443
 
1444
1444
  class BXRestLists {
1445
- constructor(element) {
1445
+ constructor(element, http) {
1446
1446
  this.element = element;
1447
+ this.http = http;
1447
1448
  this.url = {
1448
1449
  add: [$lists, $add],
1449
1450
  delete: [$lists, $delete],
@@ -1452,15 +1453,18 @@ class BXRestLists {
1452
1453
  getIblockTypeId: [$lists, $get, $iblock, $type, $id], // Метод возвращает id типа инфоблока
1453
1454
  };
1454
1455
  }
1456
+ get(pram) {
1457
+ return this.http.post(this.url.get, pram);
1458
+ }
1455
1459
  }
1456
- BXRestLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, deps: [{ token: BXRestListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
1460
+ 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 });
1457
1461
  BXRestLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, providedIn: 'root' });
1458
1462
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, decorators: [{
1459
1463
  type: Injectable,
1460
1464
  args: [{
1461
1465
  providedIn: 'root'
1462
1466
  }]
1463
- }], ctorParameters: function () { return [{ type: BXRestListsElement }]; } });
1467
+ }], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: HttpBXServices }]; } });
1464
1468
 
1465
1469
  // import { AnswerApiTaskBX } from '../../typification/rest/task/answers/task';
1466
1470
  class BXRestTasksTask {
@@ -1642,20 +1646,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1642
1646
  }]
1643
1647
  }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
1644
1648
 
1649
+ class BXRestDiskAttachedObject {
1650
+ constructor(http) {
1651
+ this.http = http;
1652
+ this.url = {
1653
+ get: [$disk, 'attachedObject', $get]
1654
+ };
1655
+ }
1656
+ get(id) {
1657
+ return this.http.post(this.url.get, { id: id });
1658
+ }
1659
+ }
1660
+ BXRestDiskAttachedObject.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1661
+ BXRestDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, providedIn: 'root' });
1662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, decorators: [{
1663
+ type: Injectable,
1664
+ args: [{
1665
+ providedIn: 'root'
1666
+ }]
1667
+ }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
1668
+
1645
1669
  class BXRestDisk {
1646
- constructor(file, folder) {
1670
+ constructor(file, folder, attachedObject) {
1647
1671
  this.file = file;
1648
1672
  this.folder = folder;
1673
+ this.attachedObject = attachedObject;
1649
1674
  }
1650
1675
  }
1651
- 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 });
1676
+ 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 });
1652
1677
  BXRestDisk.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, providedIn: 'root' });
1653
1678
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, decorators: [{
1654
1679
  type: Injectable,
1655
1680
  args: [{
1656
1681
  providedIn: 'root'
1657
1682
  }]
1658
- }], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: BXRestDiskFolder }]; } });
1683
+ }], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: BXRestDiskFolder }, { type: BXRestDiskAttachedObject }]; } });
1659
1684
 
1660
1685
  class BXRestBizprocWorkflowInstance {
1661
1686
  constructor() {
@@ -1828,6 +1853,9 @@ class BXRestLogBlogPost {
1828
1853
  add(param) {
1829
1854
  return this.http.post(this.url.add, param);
1830
1855
  }
1856
+ get(param = {}) {
1857
+ return this.http.post(this.url.get, param);
1858
+ }
1831
1859
  }
1832
1860
  BXRestLogBlogPost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1833
1861
  BXRestLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' });
@@ -1869,6 +1897,132 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1869
1897
  }]
1870
1898
  }], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: BXRestLogBlogComment }]; } });
1871
1899
 
1900
+ class BXRestCalendarEvent {
1901
+ constructor(http) {
1902
+ this.http = http;
1903
+ this.url = {
1904
+ add: [$calendar, $event, $add],
1905
+ delete: [$calendar, $event, $delete],
1906
+ get: [$calendar, $event, $get],
1907
+ getNearest: [$calendar, $event, $get, $nearest],
1908
+ update: [$calendar, $event, $get, $update], // Редактирует существующее событие
1909
+ };
1910
+ }
1911
+ get(param) {
1912
+ return this.http.post(this.url.get, param);
1913
+ }
1914
+ }
1915
+ BXRestCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1916
+ BXRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' });
1917
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
1918
+ type: Injectable,
1919
+ args: [{
1920
+ providedIn: 'root'
1921
+ }]
1922
+ }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
1923
+
1924
+ class BXRestCalendar {
1925
+ // TODO: эту дичь расформировать потом по классам
1926
+ /*
1927
+ url = {
1928
+ accessibility: {get: getNameMethod([$calendar, $accessibility, $get])}, // Возвращает занятость пользователей из списка.
1929
+ meeting: {
1930
+ params: {
1931
+ set: getNameMethod([$calendar, $meeting, $params, $set]), // Устанавливает параметры события для текущего пользователя
1932
+ },
1933
+ status: {
1934
+ get: getNameMethod([$calendar, $meeting, $status, $get]), // Возвращает статус участия текущего пользователя в событии
1935
+ set: getNameMethod([$calendar, $meeting, $status, $set]), // Устанавливает статус участия в событии для текущего пользователя
1936
+ },
1937
+ },
1938
+ resource: {
1939
+ list: getNameMethod([$calendar, $resource, $list]), // Возвращает список (массив) всех ресурсов
1940
+ add: getNameMethod([$calendar, $resource, $add]), // Добавляет новый ресурс
1941
+ update: getNameMethod([$calendar, $resource, $update]), // Изменяет ресурс
1942
+ delete: getNameMethod([$calendar, $resource, $delete]), // Удаляет ресурс
1943
+ booking: {
1944
+ list: getNameMethod([$calendar, $resource, $booking, $list]), // Предоставляет возможность выбрать бронирования ресурсов
1945
+ }
1946
+ },
1947
+ section: {
1948
+ add: getNameMethod([$calendar, $section, $add]), // Добавляет новый календарь
1949
+ delete: getNameMethod([$calendar, $section, $delete]), // Удаляет календарь
1950
+ get: getNameMethod([$calendar, $section, $get]), // Возвращает список календарей
1951
+ update: getNameMethod([$calendar, $section, $update]) //Обновляет календарь
1952
+ },
1953
+ settings: {
1954
+ get: getNameMethod([$calendar, $settings, $get]), // Возвращает основные настройки календаря
1955
+ set: getNameMethod([$calendar, $user, $settings, $set]), // Сохраняет пользовательские настройки календаря
1956
+ },
1957
+ getbyid: getNameMethod([$calendar, $event, 'getbyid']), // Возвращает событие календаря по идентификатору
1958
+ }
1959
+ */
1960
+ constructor(event) {
1961
+ this.event = event;
1962
+ }
1963
+ }
1964
+ BXRestCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, deps: [{ token: BXRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
1965
+ BXRestCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, providedIn: 'root' });
1966
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, decorators: [{
1967
+ type: Injectable,
1968
+ args: [{
1969
+ providedIn: 'root'
1970
+ }]
1971
+ }], ctorParameters: function () { return [{ type: BXRestCalendarEvent }]; } });
1972
+
1973
+ class BXRestSonetGroup {
1974
+ constructor(http) {
1975
+ this.http = http;
1976
+ this.url = {
1977
+ create: [$sonet_group, $create],
1978
+ delete: [$sonet_group, $delete],
1979
+ // feature: {
1980
+ // access: [$sonet_group, $feature, $access] // Проверяет, имеет ли текущий пользователь право на совершение операции в группе соцсети, осуществляя вызов функции CSocNetFeaturesPerms::CurrentUserCanPerformOperation()
1981
+ // },
1982
+ get: [$sonet_group, $get],
1983
+ setowner: [$sonet_group, 'setowner'],
1984
+ update: [$sonet_group, $update], // Изменяет параметры группы соцсети, используя метод API CSocNetGroup::Update()
1985
+ // user: {
1986
+ // add: [$sonet_group, $user, $add], // sonet_group.user.add Добавляет пользователей в качестве участников рабочей группы (без приглашения и подтверждения)
1987
+ // delete: [$sonet_group, $user, $delete], // Удаляет пользователей из рабочей группы
1988
+ // get: [$sonet_group, $user, $get], // Возвращает массив участников группы соцсети, осуществляя вызов CSocNetUserToGroup::GetList(), при этом проверяются права на доступ текущего пользователя к группе
1989
+ // groups: [$sonet_group, $user, 'groups'], // Возвращает массив групп соцсети текущего пользователя, осуществляя вызов CSocNetUserToGroup::GetList()
1990
+ // invite: [$sonet_group, $user, 'invite'], // Выполняет приглашение пользователей в группу соцсети от лица текущего пользователя, при этом проверяются права на доступ текущего пользователя к группе
1991
+ // request: [$sonet_group, $user, $request], // Отправляет запрос текущего пользователя на вступление в группу соцсети, при этом проверяются права на доступ текущего пользователя к группе.
1992
+ // update: [$sonet_group, $user, $update], // Изменяет роль пользователей в рабочей группе События при работе с группами СоцСети Список событий при добавлении, изменении и удалении группы.
1993
+ // },
1994
+ // workgroup: {
1995
+ // list: [$socialnetwork, $api, $workgroup, $list], // Метод возвращает список групп,
1996
+ // get: [$socialnetwork, $api, $workgroup, $get] // Метод возвращает данные по рабочей группе
1997
+ // }
1998
+ };
1999
+ }
2000
+ // // TODO: filter и select позже нормально описать
2001
+ // getList(filter: any = {}, select: iWorkgroupFields[] = ['ID', 'NAME']){
2002
+ // return this.httpPost<iHttpAnswerBX<{workgroups: iListWorkgroup[]}>>(
2003
+ // this.url.get,
2004
+ // {
2005
+ // order: select,
2006
+ // filter: filter
2007
+ // }
2008
+ // )
2009
+ // }
2010
+ get(param = {
2011
+ filter: {},
2012
+ order: {}
2013
+ }) {
2014
+ return this.http.post(this.url.get, param);
2015
+ }
2016
+ }
2017
+ BXRestSonetGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
2018
+ BXRestSonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, providedIn: 'root' });
2019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, decorators: [{
2020
+ type: Injectable,
2021
+ args: [{
2022
+ providedIn: 'root'
2023
+ }]
2024
+ }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
2025
+
1872
2026
  class Navvy {
1873
2027
  constructor(snackBar) {
1874
2028
  this.snackBar = snackBar;
@@ -1986,19 +2140,93 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1986
2140
  }]
1987
2141
  }], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestMapListsElement }, { type: Navvy }]; } });
1988
2142
 
1989
- class BXRestNavvyLists {
2143
+ class BXRestMapLists extends BaseMapServices {
1990
2144
  constructor(element) {
2145
+ super();
1991
2146
  this.element = element;
1992
2147
  }
2148
+ get(value) {
2149
+ return (value) ? value.map(i => this.iBXRestListItemHttpToiBXRestListItem(i)) : undefined;
2150
+ }
2151
+ iBXRestListItemHttpToiBXRestListItem(itemLists) {
2152
+ return {
2153
+ ACTIVE: itemLists.ACTIVE === 'Y',
2154
+ API_CODE: this.toStr(itemLists.API_CODE),
2155
+ BIZPROC: itemLists.BIZPROC === 'Y',
2156
+ CANONICAL_PAGE_URL: this.toStr(itemLists.CANONICAL_PAGE_URL),
2157
+ CODE: itemLists.CODE,
2158
+ DESCRIPTION: this.toStr(itemLists.DESCRIPTION),
2159
+ DESCRIPTION_TYPE: itemLists.DESCRIPTION_TYPE,
2160
+ DETAIL_PAGE_URL: this.toStr(itemLists.DETAIL_PAGE_URL),
2161
+ EDIT_FILE_AFTER: this.toStr(itemLists.EDIT_FILE_AFTER),
2162
+ EDIT_FILE_BEFORE: this.toStr(itemLists.EDIT_FILE_BEFORE),
2163
+ ELEMENTS_NAME: this.toStr(itemLists.ELEMENTS_NAME),
2164
+ ELEMENT_NAME: this.toStr(itemLists.ELEMENT_NAME),
2165
+ EXTERNAL_ID: this.toStr(itemLists.EXTERNAL_ID),
2166
+ IBLOCK_TYPE_ID: this.toStr(itemLists.IBLOCK_TYPE_ID),
2167
+ ID: Number(itemLists.ID),
2168
+ INDEX_ELEMENT: itemLists.INDEX_ELEMENT === 'Y',
2169
+ INDEX_SECTION: itemLists.INDEX_SECTION === 'Y',
2170
+ LANG_DIR: this.toStr(itemLists.LANG_DIR),
2171
+ LAST_CONV_ELEMENT: this.toNum(itemLists.LAST_CONV_ELEMENT),
2172
+ LID: this.toStr(itemLists.LID),
2173
+ LIST_MODE: this.toStr(itemLists.LIST_MODE),
2174
+ LIST_PAGE_URL: this.toStr(itemLists.LIST_PAGE_URL),
2175
+ NAME: this.toStr(itemLists.NAME),
2176
+ PICTURE: this.toStr(itemLists.PICTURE),
2177
+ PROPERTY_INDEX: this.toStr(itemLists.PROPERTY_INDEX),
2178
+ REST_ON: itemLists.REST_ON === 'Y',
2179
+ RIGHTS_MODE: this.toStr(itemLists.RIGHTS_MODE),
2180
+ RSS_ACTIVE: itemLists.RSS_ACTIVE === 'Y',
2181
+ RSS_FILE_ACTIVE: itemLists.RSS_FILE_ACTIVE === 'Y',
2182
+ RSS_FILE_DAYS: this.toStr(itemLists.RSS_FILE_DAYS),
2183
+ RSS_FILE_LIMIT: this.toStr(itemLists.RSS_FILE_LIMIT),
2184
+ RSS_TTL: Number(itemLists.RSS_TTL),
2185
+ RSS_YANDEX_ACTIVE: itemLists.RSS_YANDEX_ACTIVE === 'Y',
2186
+ SECTIONS_NAME: this.toStr(itemLists.SECTIONS_NAME),
2187
+ SECTION_CHOOSER: this.toStr(itemLists.SECTION_CHOOSER),
2188
+ SECTION_NAME: this.toStr(itemLists.SECTION_NAME),
2189
+ SECTION_PAGE_URL: this.toStr(itemLists.SECTION_PAGE_URL),
2190
+ SECTION_PROPERTY: this.toStr(itemLists.SECTION_PROPERTY),
2191
+ SERVER_NAME: this.toStr(itemLists.SERVER_NAME),
2192
+ SOCNET_GROUP_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
2193
+ SORT: this.toStr(itemLists.SOCNET_GROUP_ID),
2194
+ TIMESTAMP_X: new Date(itemLists.TIMESTAMP_X),
2195
+ TMP_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
2196
+ VERSION: Number(itemLists.VERSION),
2197
+ WORKFLOW: itemLists.WORKFLOW === 'Y',
2198
+ XML_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
2199
+ };
2200
+ }
1993
2201
  }
1994
- BXRestNavvyLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, deps: [{ token: BXRestNavvyListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
2202
+ BXRestMapLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, deps: [{ token: BXRestMapListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
2203
+ BXRestMapLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, providedIn: 'root' });
2204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, decorators: [{
2205
+ type: Injectable,
2206
+ args: [{
2207
+ providedIn: 'root'
2208
+ }]
2209
+ }], ctorParameters: function () { return [{ type: BXRestMapListsElement }]; } });
2210
+
2211
+ class BXRestNavvyLists {
2212
+ constructor(element, BXRestLists, Navvy, mapList) {
2213
+ this.element = element;
2214
+ this.BXRestLists = BXRestLists;
2215
+ this.Navvy = Navvy;
2216
+ this.mapList = mapList;
2217
+ }
2218
+ get(param) {
2219
+ return this.Navvy.mapAndSnackBarError(this.BXRestLists.get(param), 'Не удалось получить список').pipe(map(v => this.mapList.get(v)));
2220
+ }
2221
+ }
2222
+ 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 });
1995
2223
  BXRestNavvyLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, providedIn: 'root' });
1996
2224
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, decorators: [{
1997
2225
  type: Injectable,
1998
2226
  args: [{
1999
2227
  providedIn: 'root'
2000
2228
  }]
2001
- }], ctorParameters: function () { return [{ type: BXRestNavvyListsElement }]; } });
2229
+ }], ctorParameters: function () { return [{ type: BXRestNavvyListsElement }, { type: BXRestLists }, { type: Navvy }, { type: BXRestMapLists }]; } });
2002
2230
 
2003
2231
  class BXRestTaskMap extends BaseMapServices {
2004
2232
  add(item) {
@@ -2238,39 +2466,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2238
2466
  }]
2239
2467
  }], ctorParameters: function () { return [{ type: BXRestNavvyTasksTask }]; } });
2240
2468
 
2241
- class BXRestNavvyDiskFile extends BaseServices {
2242
- constructor(BXRestDiskFile, Navvy) {
2243
- super();
2244
- this.BXRestDiskFile = BXRestDiskFile;
2245
- this.Navvy = Navvy;
2246
- }
2247
- get(id) {
2248
- return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.get(id), 'Не удалось получить файл').pipe(map(v => {
2249
- if (v) {
2250
- return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
2251
- }
2252
- return undefined;
2253
- }));
2254
- }
2255
- markDel(id) {
2256
- return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.markDel(id), 'Не удалось переместить файл в корзину')
2257
- .pipe(map(v => {
2258
- if (v) {
2259
- return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
2260
- }
2261
- return undefined;
2262
- }));
2263
- }
2264
- }
2265
- 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 });
2266
- BXRestNavvyDiskFile.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' });
2267
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
2268
- type: Injectable,
2269
- args: [{
2270
- providedIn: 'root'
2271
- }]
2272
- }], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: Navvy }]; } });
2273
-
2274
2469
  class BXRestMapDiskBase extends BaseMapServices {
2275
2470
  separationFoldersAndFiles(arr) {
2276
2471
  let result = { file: [], folder: [] };
@@ -2339,7 +2534,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2339
2534
  }]
2340
2535
  }] });
2341
2536
 
2342
- class BXRestDiskNavvyFolder {
2537
+ class BXRestNavvyDiskFolder {
2343
2538
  constructor(BXRestDiskFolder, BXRestMapDiskFolder, Navvy) {
2344
2539
  this.BXRestDiskFolder = BXRestDiskFolder;
2345
2540
  this.BXRestMapDiskFolder = BXRestMapDiskFolder;
@@ -2368,15 +2563,48 @@ class BXRestDiskNavvyFolder {
2368
2563
  }));
2369
2564
  }
2370
2565
  }
2371
- BXRestDiskNavvyFolder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskNavvyFolder, deps: [{ token: BXRestDiskFolder }, { token: BXRestMapDiskFolder }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
2372
- BXRestDiskNavvyFolder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskNavvyFolder, providedIn: 'root' });
2373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskNavvyFolder, decorators: [{
2566
+ 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 });
2567
+ BXRestNavvyDiskFolder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFolder, providedIn: 'root' });
2568
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFolder, decorators: [{
2374
2569
  type: Injectable,
2375
2570
  args: [{
2376
2571
  providedIn: 'root'
2377
2572
  }]
2378
2573
  }], ctorParameters: function () { return [{ type: BXRestDiskFolder }, { type: BXRestMapDiskFolder }, { type: Navvy }]; } });
2379
2574
 
2575
+ class BXRestNavvyDiskFile extends BaseServices {
2576
+ constructor(BXRestDiskFile, Navvy) {
2577
+ super();
2578
+ this.BXRestDiskFile = BXRestDiskFile;
2579
+ this.Navvy = Navvy;
2580
+ }
2581
+ get(id) {
2582
+ return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.get(id), 'Не удалось получить файл').pipe(map(v => {
2583
+ if (v) {
2584
+ return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
2585
+ }
2586
+ return undefined;
2587
+ }));
2588
+ }
2589
+ markDel(id) {
2590
+ return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.markDel(id), 'Не удалось переместить файл в корзину')
2591
+ .pipe(map(v => {
2592
+ if (v) {
2593
+ return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
2594
+ }
2595
+ return undefined;
2596
+ }));
2597
+ }
2598
+ }
2599
+ 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 });
2600
+ BXRestNavvyDiskFile.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' });
2601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
2602
+ type: Injectable,
2603
+ args: [{
2604
+ providedIn: 'root'
2605
+ }]
2606
+ }], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: Navvy }]; } });
2607
+
2380
2608
  class BXRestMapDiskStorage extends BXRestMapDiskBase {
2381
2609
  getchildren(arr) {
2382
2610
  return this.separationFoldersAndFiles(arr);
@@ -2558,30 +2786,74 @@ class BXRestNavvyDiskOperation {
2558
2786
  }));
2559
2787
  }
2560
2788
  }
2561
- BXRestNavvyDiskOperation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, deps: [{ token: BXRestDiskNavvyFolder }, { token: BXRestNavvyDiskFile }, { token: BXRestNavvyDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable });
2789
+ 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 });
2562
2790
  BXRestNavvyDiskOperation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, providedIn: 'root' });
2563
2791
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, decorators: [{
2564
2792
  type: Injectable,
2565
2793
  args: [{
2566
2794
  providedIn: 'root'
2567
2795
  }]
2568
- }], ctorParameters: function () { return [{ type: BXRestDiskNavvyFolder }, { type: BXRestNavvyDiskFile }, { type: BXRestNavvyDiskStorage }]; } });
2796
+ }], ctorParameters: function () { return [{ type: BXRestNavvyDiskFolder }, { type: BXRestNavvyDiskFile }, { type: BXRestNavvyDiskStorage }]; } });
2797
+
2798
+ class BXRestMapDiskAttachedObject extends BXRestMapDiskBase {
2799
+ get(v) {
2800
+ return (v) ? this.iBXRestDiskAttachedObjectHttpToiBXRestDiskAttachedObject(v) : undefined;
2801
+ }
2802
+ iBXRestDiskAttachedObjectHttpToiBXRestDiskAttachedObject(v) {
2803
+ return Object.assign(v, {
2804
+ ID: this.toNum(v.ID),
2805
+ OBJECT_ID: this.toNum(v.OBJECT_ID),
2806
+ ENTITY_ID: this.toNum(v.ENTITY_ID),
2807
+ CREATE_TIME: this.toDate(v.CREATE_TIME),
2808
+ CREATED_BY: this.toNum(v.CREATED_BY),
2809
+ SIZE: this.toNum(v.SIZE)
2810
+ });
2811
+ }
2812
+ }
2813
+ BXRestMapDiskAttachedObject.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
2814
+ BXRestMapDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, providedIn: 'root' });
2815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, decorators: [{
2816
+ type: Injectable,
2817
+ args: [{
2818
+ providedIn: 'root'
2819
+ }]
2820
+ }] });
2821
+
2822
+ class BXRestNavvyDiskAttachedObject {
2823
+ constructor(BXRestDiskAttachedObject, mapAttachedObject, Navvy) {
2824
+ this.BXRestDiskAttachedObject = BXRestDiskAttachedObject;
2825
+ this.mapAttachedObject = mapAttachedObject;
2826
+ this.Navvy = Navvy;
2827
+ }
2828
+ get(id) {
2829
+ return this.Navvy.mapAndSnackBarError(this.BXRestDiskAttachedObject.get(id), 'Не удалось получить прикреплённый файл').pipe(map(v => this.mapAttachedObject.get(v)));
2830
+ }
2831
+ }
2832
+ 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 });
2833
+ BXRestNavvyDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskAttachedObject, providedIn: 'root' });
2834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskAttachedObject, decorators: [{
2835
+ type: Injectable,
2836
+ args: [{
2837
+ providedIn: 'root'
2838
+ }]
2839
+ }], ctorParameters: function () { return [{ type: BXRestDiskAttachedObject }, { type: BXRestMapDiskAttachedObject }, { type: Navvy }]; } });
2569
2840
 
2570
2841
  class BXRestNavvyDisk {
2571
- constructor(file, folder, operation) {
2842
+ constructor(operation, file, folder, attachedObject) {
2843
+ this.operation = operation;
2572
2844
  this.file = file;
2573
2845
  this.folder = folder;
2574
- this.operation = operation;
2846
+ this.attachedObject = attachedObject;
2575
2847
  }
2576
2848
  }
2577
- BXRestNavvyDisk.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, deps: [{ token: BXRestNavvyDiskFile }, { token: BXRestDiskNavvyFolder }, { token: BXRestNavvyDiskOperation }], target: i0.ɵɵFactoryTarget.Injectable });
2849
+ 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 });
2578
2850
  BXRestNavvyDisk.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, providedIn: 'root' });
2579
2851
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, decorators: [{
2580
2852
  type: Injectable,
2581
2853
  args: [{
2582
2854
  providedIn: 'root'
2583
2855
  }]
2584
- }], ctorParameters: function () { return [{ type: BXRestNavvyDiskFile }, { type: BXRestDiskNavvyFolder }, { type: BXRestNavvyDiskOperation }]; } });
2856
+ }], ctorParameters: function () { return [{ type: BXRestNavvyDiskOperation }, { type: BXRestNavvyDiskFile }, { type: BXRestNavvyDiskFolder }, { type: BXRestNavvyDiskAttachedObject }]; } });
2585
2857
 
2586
2858
  class BXRestNavvyBizprocWorkflow {
2587
2859
  constructor(BXRestBizprocWorkflow, Navvy) {
@@ -2674,6 +2946,9 @@ class BXRestNavvyLogBlogPost {
2674
2946
  add(param) {
2675
2947
  return this.Navvy.mapAndSnackBarError(this.BXRestLogBlogPost.add(param), 'При добавлении поста');
2676
2948
  }
2949
+ get(param = {}) {
2950
+ return this.Navvy.mapAndSnackBarError(this.BXRestLogBlogPost.get(param), 'Не удалось получить почты');
2951
+ }
2677
2952
  }
2678
2953
  BXRestNavvyLogBlogPost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, deps: [{ token: BXRestLogBlogPost }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
2679
2954
  BXRestNavvyLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' });
@@ -2715,57 +2990,218 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2715
2990
  }]
2716
2991
  }], ctorParameters: function () { return [{ type: BXRestNavvyLogBlogPost }, { type: BXRestNavvyLogBlogComment }]; } });
2717
2992
 
2718
- class BXRestMapLists extends BaseMapServices {
2719
- constructor(element) {
2720
- super();
2721
- this.element = element;
2993
+ class BXRestMapCalendarEvent extends BaseMapServices {
2994
+ get(item) {
2995
+ return (item) ? item.map(i => this.CalendarEventGetAnswerHttpToCalendarEventGetAnswer(i)) : undefined;
2996
+ }
2997
+ CalendarEventGetAnswerHttpToCalendarEventGetAnswer(item) {
2998
+ return {
2999
+ ...item,
3000
+ ID: this.toNum(item.ID),
3001
+ MEETING_HOST: this.toNum(item.MEETING_HOST),
3002
+ OWNER_ID: this.toNum(item.OWNER_ID),
3003
+ PARENT_ID: this.toNum(item.PARENT_ID),
3004
+ RECURRENCE_ID: this.toNum(item.RECURRENCE_ID),
3005
+ SECT_ID: this.toNum(item.SECT_ID),
3006
+ SECTION_ID: this.toNum(item.SECTION_ID),
3007
+ TZ_OFFSET_FROM: this.toNum(item.TZ_OFFSET_FROM),
3008
+ TZ_OFFSET_TO: this.toNum(item.TZ_OFFSET_TO),
3009
+ VERSION: this.toNum(item.VERSION),
3010
+ DATE_CREATE: this.toDate(item.DATE_CREATE, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_FROM }),
3011
+ DATE_FROM: this.toDate(item.DATE_FROM, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_FROM }),
3012
+ ORIGINAL_DATE_FROM: (item.ORIGINAL_DATE_FROM)
3013
+ ? this.toDate(item.ORIGINAL_DATE_FROM, 'dd.MM.yyyy HH:mm:ss')
3014
+ : null,
3015
+ DATE_TO: this.toDate(item.DATE_TO, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_TO }),
3016
+ TIMESTAMP_X: this.toDate(item.TIMESTAMP_X, 'dd.MM.yyyy HH:mm:ss', { zone: item.TZ_FROM }),
3017
+ DATE_FROM_TS_UTC: this.toNum(item.DATE_FROM_TS_UTC),
3018
+ DATE_TO_TS_UTC: this.toNum(item.DATE_TO_TS_UTC),
3019
+ DELETED: item.DELETED === 'Y',
3020
+ DT_LENGTH: this.toNum(item.DT_LENGTH),
3021
+ DT_SKIP_TIME: item.DT_SKIP_TIME === 'Y',
3022
+ MEETING_STATUS: item.MEETING_STATUS === 'Y',
3023
+ EXDATE: item.EXDATE.split(';').map(dateStr => this.toDate(dateStr, 'dd.MM.yyyy')),
3024
+ RRULE: (item.RRULE && typeof item.RRULE !== 'string') ? {
3025
+ ...item.RRULE,
3026
+ UNTIL: this.toDate(item.RRULE.UNTIL, 'dd.MM.yyyy'),
3027
+ '~UNTIL': this.toDate(item.RRULE['~UNTIL'], 'dd.MM.yyyy')
3028
+ } : null,
3029
+ ATTENDEE_LIST: (item.ATTENDEE_LIST) ? item.ATTENDEE_LIST.map(i => {
3030
+ return { id: i.id, entryId: this.toNum(i.entryId), status: i.status };
3031
+ }) : []
3032
+ };
2722
3033
  }
2723
3034
  }
2724
- BXRestMapLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, deps: [{ token: BXRestMapListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
2725
- BXRestMapLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, providedIn: 'root' });
2726
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, decorators: [{
3035
+ BXRestMapCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3036
+ BXRestMapCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' });
3037
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
2727
3038
  type: Injectable,
2728
3039
  args: [{
2729
3040
  providedIn: 'root'
2730
3041
  }]
2731
- }], ctorParameters: function () { return [{ type: BXRestMapListsElement }]; } });
3042
+ }] });
3043
+
3044
+ class BXRestRestCalendarEvent {
3045
+ constructor(BXRestCalendarEvent, Navvy, eventMap) {
3046
+ this.BXRestCalendarEvent = BXRestCalendarEvent;
3047
+ this.Navvy = Navvy;
3048
+ this.eventMap = eventMap;
3049
+ }
3050
+ get(param) {
3051
+ return this.Navvy.mapAndSnackBarError(this.BXRestCalendarEvent.get(param), 'Не удалось получить информацию о событии из календаря').pipe(map(v => this.eventMap.get(v)));
3052
+ }
3053
+ }
3054
+ 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 });
3055
+ BXRestRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' });
3056
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
3057
+ type: Injectable,
3058
+ args: [{
3059
+ providedIn: 'root'
3060
+ }]
3061
+ }], ctorParameters: function () { return [{ type: BXRestCalendarEvent }, { type: Navvy }, { type: BXRestMapCalendarEvent }]; } });
3062
+
3063
+ class BXRestNavvyCalendar {
3064
+ // TODO: эту дичь расформировать потом по классам
3065
+ /*
3066
+ url = {
3067
+ accessibility: {get: getNameMethod([$calendar, $accessibility, $get])}, // Возвращает занятость пользователей из списка.
3068
+ meeting: {
3069
+ params: {
3070
+ set: getNameMethod([$calendar, $meeting, $params, $set]), // Устанавливает параметры события для текущего пользователя
3071
+ },
3072
+ status: {
3073
+ get: getNameMethod([$calendar, $meeting, $status, $get]), // Возвращает статус участия текущего пользователя в событии
3074
+ set: getNameMethod([$calendar, $meeting, $status, $set]), // Устанавливает статус участия в событии для текущего пользователя
3075
+ },
3076
+ },
3077
+ resource: {
3078
+ list: getNameMethod([$calendar, $resource, $list]), // Возвращает список (массив) всех ресурсов
3079
+ add: getNameMethod([$calendar, $resource, $add]), // Добавляет новый ресурс
3080
+ update: getNameMethod([$calendar, $resource, $update]), // Изменяет ресурс
3081
+ delete: getNameMethod([$calendar, $resource, $delete]), // Удаляет ресурс
3082
+ booking: {
3083
+ list: getNameMethod([$calendar, $resource, $booking, $list]), // Предоставляет возможность выбрать бронирования ресурсов
3084
+ }
3085
+ },
3086
+ section: {
3087
+ add: getNameMethod([$calendar, $section, $add]), // Добавляет новый календарь
3088
+ delete: getNameMethod([$calendar, $section, $delete]), // Удаляет календарь
3089
+ get: getNameMethod([$calendar, $section, $get]), // Возвращает список календарей
3090
+ update: getNameMethod([$calendar, $section, $update]) //Обновляет календарь
3091
+ },
3092
+ settings: {
3093
+ get: getNameMethod([$calendar, $settings, $get]), // Возвращает основные настройки календаря
3094
+ set: getNameMethod([$calendar, $user, $settings, $set]), // Сохраняет пользовательские настройки календаря
3095
+ },
3096
+ getbyid: getNameMethod([$calendar, $event, 'getbyid']), // Возвращает событие календаря по идентификатору
3097
+ }
3098
+ */
3099
+ constructor(event) {
3100
+ this.event = event;
3101
+ }
3102
+ }
3103
+ BXRestNavvyCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, deps: [{ token: BXRestRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
3104
+ BXRestNavvyCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' });
3105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
3106
+ type: Injectable,
3107
+ args: [{
3108
+ providedIn: 'root'
3109
+ }]
3110
+ }], ctorParameters: function () { return [{ type: BXRestRestCalendarEvent }]; } });
3111
+
3112
+ class BXRestMapSonetGroup extends BaseMapServices {
3113
+ get(items) {
3114
+ return (items) ? items.map(i => this.iBXRestParamSonetHttpToiBXRestParamSonet(i)) : undefined;
3115
+ }
3116
+ iBXRestParamSonetHttpToiBXRestParamSonet(items) {
3117
+ return Object.assign(items, {
3118
+ ID: this.toNum(items.ID),
3119
+ DATE_CREATE: this.toDate(items.DATE_CREATE),
3120
+ DATE_UPDATE: this.toDate(items.DATE_UPDATE),
3121
+ ACTIVE: items.ACTIVE == 'Y',
3122
+ VISIBLE: items.VISIBLE == 'Y',
3123
+ OPENED: items.OPENED == 'Y',
3124
+ CLOSED: items.CLOSED == 'Y',
3125
+ SUBJECT_ID: this.toNum(items.SUBJECT_ID),
3126
+ OWNER_ID: this.toNum(items.OWNER_ID),
3127
+ NUMBER_OF_MEMBERS: this.toNum(items.OWNER_ID),
3128
+ DATE_ACTIVITY: this.toDate(items.DATE_ACTIVITY),
3129
+ PROJECT: items.OPENED == 'Y',
3130
+ IS_EXTRANET: items.OPENED == 'Y',
3131
+ });
3132
+ }
3133
+ }
3134
+ BXRestMapSonetGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3135
+ BXRestMapSonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, providedIn: 'root' });
3136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, decorators: [{
3137
+ type: Injectable,
3138
+ args: [{
3139
+ providedIn: 'root'
3140
+ }]
3141
+ }] });
3142
+
3143
+ class BXRestNavvySonetGroup {
3144
+ constructor(BXRestSonetGroup, mapSonetGroup, Navvy) {
3145
+ this.BXRestSonetGroup = BXRestSonetGroup;
3146
+ this.mapSonetGroup = mapSonetGroup;
3147
+ this.Navvy = Navvy;
3148
+ }
3149
+ get(param = {
3150
+ filter: {},
3151
+ order: {}
3152
+ }) {
3153
+ return this.Navvy.mapAndSnackBarError(this.BXRestSonetGroup.get(param), 'Не удалось список групп').pipe(map(v => this.mapSonetGroup.get(v)));
3154
+ }
3155
+ }
3156
+ 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 });
3157
+ BXRestNavvySonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvySonetGroup, providedIn: 'root' });
3158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvySonetGroup, decorators: [{
3159
+ type: Injectable,
3160
+ args: [{
3161
+ providedIn: 'root'
3162
+ }]
3163
+ }], ctorParameters: function () { return [{ type: BXRestSonetGroup }, { type: BXRestMapSonetGroup }, { type: Navvy }]; } });
2732
3164
 
2733
3165
  class BXRest {
2734
- constructor(user, lists, tasks, disk, bizproc, log) {
3166
+ constructor(user, lists, tasks, disk, bizproc, log, calendar, sonet_group) {
2735
3167
  this.user = user;
2736
3168
  this.lists = lists;
2737
3169
  this.tasks = tasks;
2738
3170
  this.disk = disk;
2739
3171
  this.bizproc = bizproc;
2740
3172
  this.log = log;
3173
+ this.calendar = calendar;
3174
+ this.sonet_group = sonet_group;
2741
3175
  }
2742
3176
  }
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 });
3177
+ 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 });
2744
3178
  BXRest.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, providedIn: 'root' });
2745
3179
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, decorators: [{
2746
3180
  type: Injectable,
2747
3181
  args: [{
2748
3182
  providedIn: 'root'
2749
3183
  }]
2750
- }], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }]; } });
3184
+ }], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }, { type: BXRestCalendar }, { type: BXRestSonetGroup }]; } });
2751
3185
  class BXRestNavvy {
2752
- constructor(user, lists, tasks, disk, bizproc, log) {
3186
+ constructor(user, lists, tasks, disk, bizproc, log, calendar, sonet_group) {
2753
3187
  this.user = user;
2754
3188
  this.lists = lists;
2755
3189
  this.tasks = tasks;
2756
3190
  this.disk = disk;
2757
3191
  this.bizproc = bizproc;
2758
3192
  this.log = log;
3193
+ this.calendar = calendar;
3194
+ this.sonet_group = sonet_group;
2759
3195
  }
2760
3196
  }
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 });
3197
+ 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 });
2762
3198
  BXRestNavvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, providedIn: 'root' });
2763
3199
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, decorators: [{
2764
3200
  type: Injectable,
2765
3201
  args: [{
2766
3202
  providedIn: 'root'
2767
3203
  }]
2768
- }], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }]; } });
3204
+ }], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }, { type: BXRestNavvyCalendar }, { type: BXRestNavvySonetGroup }]; } });
2769
3205
  class BXRestMap {
2770
3206
  constructor(lists) {
2771
3207
  this.lists = lists;