bx-rest 0.1.11 → 0.1.16

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 (238) hide show
  1. package/README.md +2 -3
  2. package/{esm2020 → esm2022}/map/base.mjs +4 -4
  3. package/{esm2020 → esm2022}/map/calendar/event.mjs +4 -4
  4. package/{esm2020 → esm2022}/map/disk/attachedObject.mjs +4 -4
  5. package/{esm2020 → esm2022}/map/disk/base.mjs +4 -4
  6. package/esm2022/map/disk/file.mjs +20 -0
  7. package/esm2022/map/disk/folder.mjs +17 -0
  8. package/esm2022/map/disk/storage.mjs +17 -0
  9. package/esm2022/map/lists/element.mjs +24 -0
  10. package/esm2022/map/lists/field.mjs +16 -0
  11. package/esm2022/map/lists.mjs +67 -0
  12. package/{esm2020 → esm2022}/map/sonet_group.mjs +4 -4
  13. package/esm2022/map/task/elapseditem.mjs +16 -0
  14. package/esm2022/map/tasks/task.mjs +127 -0
  15. package/esm2022/map/user.mjs +89 -0
  16. package/{esm2020 → esm2022}/public-api.mjs +2 -1
  17. package/{esm2020 → esm2022}/request/bizproc/activity.mjs +4 -4
  18. package/{esm2020 → esm2022}/request/bizproc/event.mjs +4 -4
  19. package/{esm2020 → esm2022}/request/bizproc/robot.mjs +4 -4
  20. package/{esm2020 → esm2022}/request/bizproc/task.mjs +4 -4
  21. package/{esm2020 → esm2022}/request/bizproc/workflow/instance.mjs +4 -4
  22. package/{esm2020 → esm2022}/request/bizproc/workflow/template.mjs +4 -4
  23. package/{esm2020 → esm2022}/request/bizproc/workflow.mjs +4 -4
  24. package/{esm2020 → esm2022}/request/bizproc.mjs +4 -4
  25. package/{esm2020 → esm2022}/request/bx-rest.module.mjs +9 -9
  26. package/{esm2020 → esm2022}/request/calendar/event.mjs +4 -4
  27. package/{esm2020 → esm2022}/request/calendar.mjs +4 -4
  28. package/{esm2020 → esm2022}/request/disk/attachedObject.mjs +4 -4
  29. package/{esm2020 → esm2022}/request/disk/file.mjs +5 -5
  30. package/{esm2020 → esm2022}/request/disk/folder.mjs +4 -4
  31. package/esm2022/request/disk/storage.mjs +45 -0
  32. package/{esm2020 → esm2022}/request/disk.mjs +4 -4
  33. package/{esm2020 → esm2022}/request/lists/element.mjs +4 -4
  34. package/esm2022/request/lists/field.mjs +30 -0
  35. package/esm2022/request/lists.mjs +32 -0
  36. package/{esm2020 → esm2022}/request/log/blogcomment.mjs +4 -4
  37. package/{esm2020 → esm2022}/request/log/blogpost.mjs +4 -4
  38. package/{esm2020 → esm2022}/request/log.mjs +4 -4
  39. package/{esm2020 → esm2022}/request/sonet_group.mjs +4 -4
  40. package/{esm2020 → esm2022}/request/task/elapseditem.mjs +4 -4
  41. package/{esm2020 → esm2022}/request/task.mjs +4 -4
  42. package/{esm2020 → esm2022}/request/tasks/task.mjs +4 -4
  43. package/{esm2020 → esm2022}/request/tasks.mjs +4 -4
  44. package/esm2022/request/user.mjs +109 -0
  45. package/esm2022/request-navvy/bizproc/workflow.mjs +22 -0
  46. package/esm2022/request-navvy/bizproc.mjs +61 -0
  47. package/esm2022/request-navvy/calendar/event.mjs +24 -0
  48. package/{esm2020 → esm2022}/request-navvy/calendar.mjs +4 -4
  49. package/esm2022/request-navvy/disk/attachedObject.mjs +24 -0
  50. package/esm2022/request-navvy/disk/file.mjs +27 -0
  51. package/esm2022/request-navvy/disk/folder.mjs +38 -0
  52. package/esm2022/request-navvy/disk/interlayer/storage.mjs +60 -0
  53. package/esm2022/request-navvy/disk/operation.mjs +87 -0
  54. package/esm2022/request-navvy/disk/storage.mjs +54 -0
  55. package/{esm2020 → esm2022}/request-navvy/disk.mjs +4 -4
  56. package/esm2022/request-navvy/lists/element.mjs +27 -0
  57. package/esm2022/request-navvy/lists/field.mjs +24 -0
  58. package/esm2022/request-navvy/lists.mjs +28 -0
  59. package/{esm2020 → esm2022}/request-navvy/log/blogcomment.mjs +4 -4
  60. package/esm2022/request-navvy/log/blogpost.mjs +36 -0
  61. package/{esm2020 → esm2022}/request-navvy/log.mjs +4 -4
  62. package/esm2022/request-navvy/sonet_group.mjs +27 -0
  63. package/esm2022/request-navvy/task/elapseditem.mjs +300 -0
  64. package/{esm2020 → esm2022}/request-navvy/task.mjs +4 -4
  65. package/esm2022/request-navvy/tasks/task.mjs +219 -0
  66. package/{esm2020 → esm2022}/request-navvy/tasks.mjs +4 -4
  67. package/esm2022/request-navvy/user.mjs +66 -0
  68. package/{esm2020 → esm2022}/rest.mjs +10 -10
  69. package/esm2022/services/Navvy/NavvyAlternativePaginationNavigation.mjs +65 -0
  70. package/esm2022/services/Navvy/NavvyPagNav.mjs +42 -0
  71. package/esm2022/services/Navvy/NavvyPagNavWithUselessKey.mjs +57 -0
  72. package/esm2022/services/Navvy/NavvySimple.mjs +25 -0
  73. package/esm2022/services/Navvy/NavvySupport.mjs +22 -0
  74. package/esm2022/services/Navvy/extends/NavvyPagNavBase.mjs +28 -0
  75. package/{esm2020 → esm2022}/services/base.mjs +4 -4
  76. package/{esm2020 → esm2022}/services/http/HttpBX.mjs +4 -4
  77. package/{esm2020 → esm2022}/services/http/base/base.mjs +4 -4
  78. package/{esm2020 → esm2022}/services/http/http.mjs +4 -4
  79. package/{esm2020 → esm2022}/services/http/sessionKey.mjs +4 -4
  80. package/esm2022/services/navvy.mjs +28 -0
  81. package/{esm2020 → esm2022}/services/permission.mjs +4 -4
  82. package/{esm2020 → esm2022}/services/snack-bar/snack-bar.service.mjs +4 -4
  83. package/{esm2020 → esm2022}/services/snack-bar/toast-message/toast-message.component.mjs +4 -4
  84. package/{esm2020 → esm2022}/services/vanilla/JSON.mjs +4 -4
  85. package/{esm2020 → esm2022}/services/vanilla/localStorage.mjs +4 -4
  86. package/{esm2020 → esm2022}/services/vanilla/sessionStorage.mjs +4 -4
  87. package/{esm2020 → esm2022}/services/vanilla//321/201ookies.mjs +4 -4
  88. package/{esm2020 → esm2022}/typification/rest/api-lib.mjs +4 -4
  89. package/esm2022/typification/rest/disk/storage/getchildren.mjs +2 -0
  90. package/esm2022/typification/rest/lists/element/get.mjs +2 -0
  91. package/esm2022/typification/rest/lists/field/get.mjs +2 -0
  92. package/{esm2020 → esm2022}/typification/rest/lists/get.mjs +1 -1
  93. package/{fesm2020 → fesm2022}/bx-rest.mjs +880 -494
  94. package/fesm2022/bx-rest.mjs.map +1 -0
  95. package/map/disk/file.d.ts +13 -0
  96. package/map/disk/folder.d.ts +1 -1
  97. package/map/disk/storage.d.ts +1 -1
  98. package/map/lists/element.d.ts +1 -1
  99. package/map/lists/field.d.ts +9 -0
  100. package/map/lists.d.ts +1 -4
  101. package/map/task/elapseditem.d.ts +6 -0
  102. package/map/tasks/task.d.ts +21 -0
  103. package/package.json +5 -11
  104. package/public-api.d.ts +1 -0
  105. package/request/disk/file.d.ts +1 -1
  106. package/request/disk/storage.d.ts +2 -4
  107. package/request/lists/field.d.ts +21 -0
  108. package/request/lists.d.ts +3 -1
  109. package/request/user.d.ts +1 -1
  110. package/request-navvy/bizproc/workflow.d.ts +2 -3
  111. package/request-navvy/bizproc.d.ts +1 -0
  112. package/request-navvy/calendar/event.d.ts +3 -4
  113. package/request-navvy/disk/attachedObject.d.ts +2 -3
  114. package/request-navvy/disk/file.d.ts +6 -6
  115. package/request-navvy/disk/folder.d.ts +2 -3
  116. package/request-navvy/disk/interlayer/storage.d.ts +21 -0
  117. package/request-navvy/disk/operation.d.ts +1 -1
  118. package/request-navvy/disk/storage.d.ts +8 -12
  119. package/request-navvy/lists/element.d.ts +3 -4
  120. package/request-navvy/lists/field.d.ts +13 -0
  121. package/request-navvy/lists.d.ts +7 -5
  122. package/request-navvy/log/blogpost.d.ts +4 -5
  123. package/request-navvy/sonet_group.d.ts +2 -3
  124. package/request-navvy/task/elapseditem.d.ts +12 -12
  125. package/request-navvy/tasks/task.d.ts +14 -10
  126. package/request-navvy/user.d.ts +8 -11
  127. package/services/Navvy/NavvyAlternativePaginationNavigation.d.ts +21 -0
  128. package/services/Navvy/NavvyPagNav.d.ts +8 -0
  129. package/services/Navvy/NavvyPagNavWithUselessKey.d.ts +8 -0
  130. package/services/Navvy/NavvySimple.d.ts +13 -0
  131. package/services/Navvy/NavvySupport.d.ts +14 -0
  132. package/services/Navvy/extends/NavvyPagNavBase.d.ts +16 -0
  133. package/services/base.d.ts +1 -1
  134. package/services/http/sessionKey.d.ts +1 -1
  135. package/services/navvy.d.ts +20 -8
  136. package/typification/base/modyfy.d.ts +4 -4
  137. package/typification/rest/base/OrderOptions.d.ts +1 -1
  138. package/typification/rest/base/YesNo.d.ts +1 -1
  139. package/typification/rest/base/filterGenerator.d.ts +3 -3
  140. package/typification/rest/base/sort.d.ts +1 -1
  141. package/typification/rest/batch/batchRequestParam.d.ts +3 -3
  142. package/typification/rest/bizproc/base/filedEnum.d.ts +1 -1
  143. package/typification/rest/bizproc/workflow/template/list.d.ts +1 -1
  144. package/typification/rest/calendar/base/type.d.ts +1 -1
  145. package/typification/rest/calendar/get/answer.d.ts +1 -1
  146. package/typification/rest/disk/storage/getchildren.d.ts +4 -0
  147. package/typification/rest/lists/element/get.d.ts +3 -2
  148. package/typification/rest/lists/field/get.d.ts +34 -0
  149. package/typification/rest/lists/get.d.ts +2 -1
  150. package/typification/rest/sonet_group/base.d.ts +7 -7
  151. package/typification/rest/sonet_group/get.d.ts +4 -4
  152. package/typification/rest/task/base/fieldsName.d.ts +1 -1
  153. package/typification/rest/user/user.d.ts +3 -3
  154. package/esm2020/map/disk/folder.mjs +0 -17
  155. package/esm2020/map/disk/storage.mjs +0 -17
  156. package/esm2020/map/lists/element.mjs +0 -22
  157. package/esm2020/map/lists.mjs +0 -72
  158. package/esm2020/map/task.mjs +0 -124
  159. package/esm2020/map/user.mjs +0 -89
  160. package/esm2020/request/disk/storage.mjs +0 -46
  161. package/esm2020/request/lists.mjs +0 -30
  162. package/esm2020/request/user.mjs +0 -103
  163. package/esm2020/request-navvy/bizproc/workflow.mjs +0 -22
  164. package/esm2020/request-navvy/bizproc.mjs +0 -60
  165. package/esm2020/request-navvy/calendar/event.mjs +0 -25
  166. package/esm2020/request-navvy/disk/attachedObject.mjs +0 -25
  167. package/esm2020/request-navvy/disk/file.mjs +0 -39
  168. package/esm2020/request-navvy/disk/folder.mjs +0 -44
  169. package/esm2020/request-navvy/disk/operation.mjs +0 -95
  170. package/esm2020/request-navvy/disk/storage.mjs +0 -56
  171. package/esm2020/request-navvy/lists/element.mjs +0 -28
  172. package/esm2020/request-navvy/lists.mjs +0 -27
  173. package/esm2020/request-navvy/log/blogpost.mjs +0 -36
  174. package/esm2020/request-navvy/sonet_group.mjs +0 -28
  175. package/esm2020/request-navvy/task/elapseditem.mjs +0 -261
  176. package/esm2020/request-navvy/tasks/task.mjs +0 -235
  177. package/esm2020/request-navvy/user.mjs +0 -64
  178. package/esm2020/services/navvy.mjs +0 -26
  179. package/esm2020/typification/rest/lists/element/get.mjs +0 -2
  180. package/fesm2015/bx-rest.mjs +0 -3827
  181. package/fesm2015/bx-rest.mjs.map +0 -1
  182. package/fesm2020/bx-rest.mjs.map +0 -1
  183. package/map/task.d.ts +0 -11
  184. /package/{esm2020 → esm2022}/bx-rest.mjs +0 -0
  185. /package/{esm2020 → esm2022}/consts/part-name-metods.mjs +0 -0
  186. /package/{esm2020 → esm2022}/consts/time.mjs +0 -0
  187. /package/{esm2020 → esm2022}/functions/mapResult.mjs +0 -0
  188. /package/{esm2020 → esm2022}/functions/serializeJavascript.mjs +0 -0
  189. /package/{esm2020 → esm2022}/services/http/HttpData.mjs +0 -0
  190. /package/{esm2020 → esm2022}/services/http/base/http.mjs +0 -0
  191. /package/{esm2020 → esm2022}/settings.mjs +0 -0
  192. /package/{esm2020 → esm2022}/typification/auth/save.mjs +0 -0
  193. /package/{esm2020 → esm2022}/typification/base/modyfy.mjs +0 -0
  194. /package/{esm2020 → esm2022}/typification/permission.mjs +0 -0
  195. /package/{esm2020 → esm2022}/typification/rest/base/ApiPaginationBX.mjs +0 -0
  196. /package/{esm2020 → esm2022}/typification/rest/base/OrderOptions.mjs +0 -0
  197. /package/{esm2020 → esm2022}/typification/rest/base/YesNo.mjs +0 -0
  198. /package/{esm2020 → esm2022}/typification/rest/base/answer.mjs +0 -0
  199. /package/{esm2020 → esm2022}/typification/rest/base/filterGenerator.mjs +0 -0
  200. /package/{esm2020 → esm2022}/typification/rest/base/sort.mjs +0 -0
  201. /package/{esm2020 → esm2022}/typification/rest/batch/batchRequestParam.mjs +0 -0
  202. /package/{esm2020 → esm2022}/typification/rest/bizproc/base/filedEnum.mjs +0 -0
  203. /package/{esm2020 → esm2022}/typification/rest/bizproc/workflow/start.mjs +0 -0
  204. /package/{esm2020 → esm2022}/typification/rest/bizproc/workflow/template/list.mjs +0 -0
  205. /package/{esm2020 → esm2022}/typification/rest/calendar/base/type.mjs +0 -0
  206. /package/{esm2020 → esm2022}/typification/rest/calendar/get/answer.mjs +0 -0
  207. /package/{esm2020 → esm2022}/typification/rest/calendar/get/param.mjs +0 -0
  208. /package/{esm2020 → esm2022}/typification/rest/disk/AttachedObject.mjs +0 -0
  209. /package/{esm2020 → esm2022}/typification/rest/disk/file.mjs +0 -0
  210. /package/{esm2020 → esm2022}/typification/rest/disk/folder.mjs +0 -0
  211. /package/{esm2020 → esm2022}/typification/rest/disk/map.mjs +0 -0
  212. /package/{esm2020 → esm2022}/typification/rest/disk/storage/uploadfile.mjs +0 -0
  213. /package/{esm2020 → esm2022}/typification/rest/lib.mjs +0 -0
  214. /package/{esm2020 → esm2022}/typification/rest/lists/element/add.mjs +0 -0
  215. /package/{esm2020 → esm2022}/typification/rest/log/blogpost/add.mjs +0 -0
  216. /package/{esm2020 → esm2022}/typification/rest/log/blogpost/essence.mjs +0 -0
  217. /package/{esm2020 → esm2022}/typification/rest/log/blogpost/get.mjs +0 -0
  218. /package/{esm2020 → esm2022}/typification/rest/settings.mjs +0 -0
  219. /package/{esm2020 → esm2022}/typification/rest/sonet_group/base.mjs +0 -0
  220. /package/{esm2020 → esm2022}/typification/rest/sonet_group/get.mjs +0 -0
  221. /package/{esm2020 → esm2022}/typification/rest/support/param.mjs +0 -0
  222. /package/{esm2020 → esm2022}/typification/rest/task/access/getaccess.mjs +0 -0
  223. /package/{esm2020 → esm2022}/typification/rest/task/base/fieldsName.mjs +0 -0
  224. /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/add.mjs +0 -0
  225. /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/del.mjs +0 -0
  226. /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/get.mjs +0 -0
  227. /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/isActionAllowedParam.mjs +0 -0
  228. /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/item.mjs +0 -0
  229. /package/{esm2020 → esm2022}/typification/rest/task/elapseditem/update.mjs +0 -0
  230. /package/{esm2020 → esm2022}/typification/rest/task/people/base.mjs +0 -0
  231. /package/{esm2020 → esm2022}/typification/rest/task/task.mjs +0 -0
  232. /package/{esm2020 → esm2022}/typification/rest/tasks/task/add.mjs +0 -0
  233. /package/{esm2020 → esm2022}/typification/rest/tasks/task/get.mjs +0 -0
  234. /package/{esm2020 → esm2022}/typification/rest/tasks/task/list.mjs +0 -0
  235. /package/{esm2020 → esm2022}/typification/rest/user/UserFilterSearch.mjs +0 -0
  236. /package/{esm2020 → esm2022}/typification/rest/user/get.mjs +0 -0
  237. /package/{esm2020 → esm2022}/typification/rest/user/user.mjs +0 -0
  238. /package/{esm2020 → esm2022}/typification/settings.mjs +0 -0
@@ -1,8 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { NgModule, inject, Component, ViewEncapsulation, Inject, Injectable } from '@angular/core';
3
- import { Subscription, of, mergeMap, throwError, forkJoin, tap } from 'rxjs';
3
+ import { Subscription, of, mergeMap, throwError, forkJoin, share, from, concatMap, last, concat, tap, shareReplay } from 'rxjs';
4
4
  import clone from 'just-clone';
5
- import { map, catchError, take, mergeMap as mergeMap$1 } from 'rxjs/operators';
5
+ import { map, catchError, mergeMap as mergeMap$1 } from 'rxjs/operators';
6
6
  import * as i1$1 from '@angular/material/snack-bar';
7
7
  import { MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
8
8
  import * as i2 from '@angular/material/icon';
@@ -117,15 +117,15 @@ const $share = 'share';
117
117
  const $blogcomment = 'blogcomment';
118
118
 
119
119
  class BxRestModule {
120
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
121
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
122
+ MatButtonModule], exports: [MatButtonModule,
123
+ MatIconModule] }); }
124
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
125
+ MatButtonModule, MatButtonModule,
126
+ MatIconModule] }); }
120
127
  }
121
- BxRestModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
122
- BxRestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
123
- MatButtonModule], exports: [MatButtonModule,
124
- MatIconModule] });
125
- BxRestModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
126
- MatButtonModule, MatButtonModule,
127
- MatIconModule] });
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestModule, decorators: [{
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, decorators: [{
129
129
  type: NgModule,
130
130
  args: [{
131
131
  declarations: [],
@@ -154,10 +154,10 @@ class ToastMessageComponent {
154
154
  }
155
155
  return '';
156
156
  }
157
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: ToastMessageComponent, deps: [{ token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
158
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: ToastMessageComponent, isStandalone: true, selector: "app-view", ngImport: i0, template: "<div class=\"w-100 d-flex\">\n <span matSnackBarLabel [class]=\"getClass()\">\n {{ data.message }}\n</span>\n <span matSnackBarActions [class]=\"getClass()\">\n <button mat-button matSnackBarAction (click)=\"snackBarRef.dismissWithAction()\">\n <mat-icon>\n close\n </mat-icon>\n </button>\n</span>\n</div>\n\n", styles: [":host{display:flex;background-color:red}:host .mdc-snackbar__surface{padding:0;margin:0}:host .error-message{color:red}:host.error-box{background-color:#eec1c1}:host.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.error-box .mdc-snackbar__surface{background-color:#eec1c1}mat-snack-bar-container.mdc-snackbar.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.warning-box .mdc-snackbar__surface{background-color:#f0f2b9}mat-snack-bar-container.mdc-snackbar.warning-box .warning-message{color:#15140f}mat-snack-bar-container.mdc-snackbar.success-box .mdc-snackbar__surface{background-color:#daf7d1}mat-snack-bar-container.mdc-snackbar.success-box .success-message{color:#423f31}\n"], dependencies: [{ kind: "ngmodule", type: BxRestModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None }); }
157
159
  }
158
- ToastMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastMessageComponent, deps: [{ token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
159
- ToastMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ToastMessageComponent, isStandalone: true, selector: "app-view", ngImport: i0, template: "<div class=\"w-100 d-flex\">\n <span matSnackBarLabel [class]=\"getClass()\">\n {{ data.message }}\n</span>\n <span matSnackBarActions [class]=\"getClass()\">\n <button mat-button matSnackBarAction (click)=\"snackBarRef.dismissWithAction()\">\n <mat-icon>\n close\n </mat-icon>\n </button>\n</span>\n</div>\n\n", styles: [":host{display:flex;background-color:red}:host .mdc-snackbar__surface{padding:0;margin:0}:host .error-message{color:red}:host.error-box{background-color:#eec1c1}:host.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.error-box .mdc-snackbar__surface{background-color:#eec1c1}mat-snack-bar-container.mdc-snackbar.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.warning-box .mdc-snackbar__surface{background-color:#f0f2b9}mat-snack-bar-container.mdc-snackbar.warning-box .warning-message{color:#15140f}mat-snack-bar-container.mdc-snackbar.success-box .mdc-snackbar__surface{background-color:#daf7d1}mat-snack-bar-container.mdc-snackbar.success-box .success-message{color:#423f31}\n"], dependencies: [{ kind: "ngmodule", type: BxRestModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None });
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastMessageComponent, decorators: [{
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: ToastMessageComponent, decorators: [{
161
161
  type: Component,
162
162
  args: [{ selector: 'app-view', encapsulation: ViewEncapsulation.None, standalone: true, imports: [BxRestModule], template: "<div class=\"w-100 d-flex\">\n <span matSnackBarLabel [class]=\"getClass()\">\n {{ data.message }}\n</span>\n <span matSnackBarActions [class]=\"getClass()\">\n <button mat-button matSnackBarAction (click)=\"snackBarRef.dismissWithAction()\">\n <mat-icon>\n close\n </mat-icon>\n </button>\n</span>\n</div>\n\n", styles: [":host{display:flex;background-color:red}:host .mdc-snackbar__surface{padding:0;margin:0}:host .error-message{color:red}:host.error-box{background-color:#eec1c1}:host.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.error-box .mdc-snackbar__surface{background-color:#eec1c1}mat-snack-bar-container.mdc-snackbar.error-box .error-message{color:red}mat-snack-bar-container.mdc-snackbar.warning-box .mdc-snackbar__surface{background-color:#f0f2b9}mat-snack-bar-container.mdc-snackbar.warning-box .warning-message{color:#15140f}mat-snack-bar-container.mdc-snackbar.success-box .mdc-snackbar__surface{background-color:#daf7d1}mat-snack-bar-container.mdc-snackbar.success-box .success-message{color:#423f31}\n"] }]
163
163
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -193,10 +193,10 @@ class SnackBarService {
193
193
  panelClass: name + '-box'
194
194
  });
195
195
  }
196
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SnackBarService, deps: [{ token: i1$1.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable }); }
197
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SnackBarService, providedIn: 'root' }); }
196
198
  }
197
- SnackBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackBarService, deps: [{ token: i1$1.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
198
- SnackBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackBarService, providedIn: 'root' });
199
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackBarService, decorators: [{
199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SnackBarService, decorators: [{
200
200
  type: Injectable,
201
201
  args: [{
202
202
  providedIn: 'root'
@@ -409,10 +409,10 @@ class JSONServices {
409
409
  static serialize(data) {
410
410
  return serialize(data);
411
411
  }
412
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: JSONServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
413
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: JSONServices, providedIn: 'root' }); }
412
414
  }
413
- JSONServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JSONServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
414
- JSONServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JSONServices, providedIn: 'root' });
415
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JSONServices, decorators: [{
415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: JSONServices, decorators: [{
416
416
  type: Injectable,
417
417
  args: [{
418
418
  providedIn: 'root'
@@ -450,10 +450,10 @@ class CookiesServices {
450
450
  }
451
451
  return false;
452
452
  }
453
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: CookiesServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
454
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: CookiesServices, providedIn: 'root' }); }
453
455
  }
454
- CookiesServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CookiesServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
455
- CookiesServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CookiesServices, providedIn: 'root' });
456
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CookiesServices, decorators: [{
456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: CookiesServices, decorators: [{
457
457
  type: Injectable,
458
458
  args: [{
459
459
  providedIn: 'root'
@@ -623,10 +623,10 @@ class BaseServices {
623
623
  url = (url) ? url.replace('http:', '') : '';
624
624
  return url;
625
625
  }
626
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
627
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseServices, providedIn: 'root' }); }
626
628
  }
627
- BaseServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
628
- BaseServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseServices, providedIn: 'root' });
629
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseServices, decorators: [{
629
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseServices, decorators: [{
630
630
  type: Injectable,
631
631
  args: [{
632
632
  providedIn: 'root'
@@ -655,10 +655,10 @@ class LocalStorageServices {
655
655
  static del(name) {
656
656
  localStorage.removeItem(name);
657
657
  }
658
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: LocalStorageServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
659
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: LocalStorageServices, providedIn: 'root' }); }
658
660
  }
659
- LocalStorageServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LocalStorageServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
660
- LocalStorageServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LocalStorageServices, providedIn: 'root' });
661
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LocalStorageServices, decorators: [{
661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: LocalStorageServices, decorators: [{
662
662
  type: Injectable,
663
663
  args: [{
664
664
  providedIn: 'root'
@@ -676,10 +676,10 @@ class SessionStorage {
676
676
  }
677
677
  return undefined;
678
678
  }
679
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
680
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionStorage, providedIn: 'root' }); }
679
681
  }
680
- SessionStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
681
- SessionStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionStorage, providedIn: 'root' });
682
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionStorage, decorators: [{
682
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionStorage, decorators: [{
683
683
  type: Injectable,
684
684
  args: [{
685
685
  providedIn: 'root'
@@ -695,10 +695,10 @@ class RestServices {
695
695
  init(callBack) {
696
696
  return (this.BX24) ? this.BX24.init(callBack) : false;
697
697
  }
698
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: RestServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
699
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: RestServices, providedIn: 'root' }); }
698
700
  }
699
- RestServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
700
- RestServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestServices, providedIn: 'root' });
701
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestServices, decorators: [{
701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: RestServices, decorators: [{
702
702
  type: Injectable,
703
703
  args: [{
704
704
  providedIn: 'root'
@@ -900,10 +900,10 @@ class SessionKeyServices extends BaseServices {
900
900
  // map(v => (v && v.domain) ? this.prepareBaseAddress(v.domain) : undefined)
901
901
  // )
902
902
  }
903
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionKeyServices, deps: [{ token: RestServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
904
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionKeyServices, providedIn: 'root' }); }
903
905
  }
904
- SessionKeyServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionKeyServices, deps: [{ token: RestServices }], target: i0.ɵɵFactoryTarget.Injectable });
905
- SessionKeyServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionKeyServices, providedIn: 'root' });
906
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SessionKeyServices, decorators: [{
906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionKeyServices, decorators: [{
907
907
  type: Injectable,
908
908
  args: [{
909
909
  providedIn: 'root'
@@ -1038,10 +1038,10 @@ class BaseHttp extends HttpData {
1038
1038
  return of(result);
1039
1039
  };
1040
1040
  }
1041
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseHttp, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1042
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseHttp, providedIn: 'root' }); }
1041
1043
  }
1042
- BaseHttp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseHttp, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable });
1043
- BaseHttp.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseHttp, providedIn: 'root' });
1044
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseHttp, decorators: [{
1044
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseHttp, decorators: [{
1045
1045
  type: Injectable,
1046
1046
  args: [{
1047
1047
  providedIn: 'root'
@@ -1104,10 +1104,10 @@ class HttpServices extends BaseHttpServices {
1104
1104
  return throwError(() => 'auth not get');
1105
1105
  }
1106
1106
  }
1107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpServices, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }, { token: SessionKeyServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1108
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpServices, providedIn: 'root' }); }
1107
1109
  }
1108
- HttpServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpServices, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }, { token: SessionKeyServices }], target: i0.ɵɵFactoryTarget.Injectable });
1109
- HttpServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpServices, providedIn: 'root' });
1110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpServices, decorators: [{
1110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpServices, decorators: [{
1111
1111
  type: Injectable,
1112
1112
  args: [{
1113
1113
  providedIn: 'root'
@@ -1212,10 +1212,10 @@ class HttpBXServices extends HttpServices {
1212
1212
  getNameMethod(arr) {
1213
1213
  return arr.join('.');
1214
1214
  }
1215
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpBXServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1216
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpBXServices, providedIn: 'root' }); }
1215
1217
  }
1216
- HttpBXServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpBXServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
1217
- HttpBXServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpBXServices, providedIn: 'root' });
1218
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpBXServices, decorators: [{
1218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpBXServices, decorators: [{
1219
1219
  type: Injectable,
1220
1220
  args: [{
1221
1221
  providedIn: 'root'
@@ -1223,10 +1223,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1223
1223
  }] });
1224
1224
 
1225
1225
  class BaseMapServices extends BaseServices {
1226
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseMapServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1227
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseMapServices, providedIn: 'root' }); }
1226
1228
  }
1227
- BaseMapServices.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
1228
- BaseMapServices.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, providedIn: 'root' });
1229
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseMapServices, decorators: [{
1229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseMapServices, decorators: [{
1230
1230
  type: Injectable,
1231
1231
  args: [{
1232
1232
  providedIn: 'root'
@@ -1308,10 +1308,10 @@ class BXRestUserMap extends BaseMapServices {
1308
1308
  }
1309
1309
  return res.trim();
1310
1310
  }
1311
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUserMap, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1312
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUserMap, providedIn: 'root' }); }
1311
1313
  }
1312
- BXRestUserMap.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUserMap, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
1313
- BXRestUserMap.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUserMap, providedIn: 'root' });
1314
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUserMap, decorators: [{
1314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUserMap, decorators: [{
1315
1315
  type: Injectable,
1316
1316
  args: [{
1317
1317
  providedIn: 'root'
@@ -1349,8 +1349,14 @@ class BXRestUser {
1349
1349
  this.setDefParam(copyParams);
1350
1350
  return this.http.post(this.url.get, copyParams);
1351
1351
  }
1352
- current() {
1353
- return this.http.get(this.url.current, {});
1352
+ current(update = false) {
1353
+ let request = this.http.get(this.url.current, {});
1354
+ if (update) {
1355
+ return request;
1356
+ }
1357
+ else {
1358
+ return request.pipe(share());
1359
+ }
1354
1360
  }
1355
1361
  update(user, fieldUpdate) {
1356
1362
  if (fieldUpdate && fieldUpdate.length) {
@@ -1404,16 +1410,42 @@ class BXRestUser {
1404
1410
  delete params.FILTER.UF_DEPARTMENT;
1405
1411
  }
1406
1412
  }
1413
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, deps: [{ token: HttpBXServices }, { token: BXRestUserMap }], target: i0.ɵɵFactoryTarget.Injectable }); }
1414
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, providedIn: 'root' }); }
1407
1415
  }
1408
- BXRestUser.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUser, deps: [{ token: HttpBXServices }, { token: BXRestUserMap }], target: i0.ɵɵFactoryTarget.Injectable });
1409
- BXRestUser.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUser, providedIn: 'root' });
1410
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestUser, decorators: [{
1416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, decorators: [{
1411
1417
  type: Injectable,
1412
1418
  args: [{
1413
1419
  providedIn: 'root'
1414
1420
  }]
1415
1421
  }], ctorParameters: function () { return [{ type: HttpBXServices }, { type: BXRestUserMap }]; } });
1416
1422
 
1423
+ class BXRestListsField {
1424
+ constructor(http) {
1425
+ this.http = http;
1426
+ this.url = {
1427
+ add: [$lists, $field, $add],
1428
+ delete: [$lists, $field, $delete],
1429
+ get: [$lists, $field, $get],
1430
+ type: {
1431
+ get: [$lists, $field, $type, $get], // Метод возвращает доступные типа полей для указанного списка
1432
+ },
1433
+ update: [$lists, $field, $update], // Метод обновляет поле списка
1434
+ };
1435
+ }
1436
+ get(param) {
1437
+ return this.http.post(this.url.get, param);
1438
+ }
1439
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsField, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1440
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsField, providedIn: 'root' }); }
1441
+ }
1442
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsField, decorators: [{
1443
+ type: Injectable,
1444
+ args: [{
1445
+ providedIn: 'root'
1446
+ }]
1447
+ }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
1448
+
1417
1449
  class BXRestListsElement {
1418
1450
  constructor(http) {
1419
1451
  this.http = http;
@@ -1431,10 +1463,10 @@ class BXRestListsElement {
1431
1463
  add(param) {
1432
1464
  return this.http.post(this.url.add, param);
1433
1465
  }
1466
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsElement, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1467
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsElement, providedIn: 'root' }); }
1434
1468
  }
1435
- BXRestListsElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestListsElement, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1436
- BXRestListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestListsElement, providedIn: 'root' });
1437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestListsElement, decorators: [{
1469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsElement, decorators: [{
1438
1470
  type: Injectable,
1439
1471
  args: [{
1440
1472
  providedIn: 'root'
@@ -1442,8 +1474,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1442
1474
  }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
1443
1475
 
1444
1476
  class BXRestLists {
1445
- constructor(element, http) {
1477
+ constructor(element, field, http) {
1446
1478
  this.element = element;
1479
+ this.field = field;
1447
1480
  this.http = http;
1448
1481
  this.url = {
1449
1482
  add: [$lists, $add],
@@ -1456,15 +1489,15 @@ class BXRestLists {
1456
1489
  get(pram) {
1457
1490
  return this.http.post(this.url.get, pram);
1458
1491
  }
1492
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLists, deps: [{ token: BXRestListsElement }, { token: BXRestListsField }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1493
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLists, providedIn: 'root' }); }
1459
1494
  }
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 });
1461
- BXRestLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, providedIn: 'root' });
1462
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLists, decorators: [{
1495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLists, decorators: [{
1463
1496
  type: Injectable,
1464
1497
  args: [{
1465
1498
  providedIn: 'root'
1466
1499
  }]
1467
- }], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: HttpBXServices }]; } });
1500
+ }], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestListsField }, { type: HttpBXServices }]; } });
1468
1501
 
1469
1502
  class BXRestElapseditem {
1470
1503
  constructor(http) {
@@ -1514,10 +1547,10 @@ class BXRestElapseditem {
1514
1547
  isActionAllowed(param) {
1515
1548
  return this.http.post(this.url.isactionallowed, param);
1516
1549
  }
1550
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestElapseditem, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1551
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestElapseditem, providedIn: 'root' }); }
1517
1552
  }
1518
- BXRestElapseditem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestElapseditem, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1519
- BXRestElapseditem.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestElapseditem, providedIn: 'root' });
1520
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestElapseditem, decorators: [{
1553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestElapseditem, decorators: [{
1521
1554
  type: Injectable,
1522
1555
  args: [{
1523
1556
  providedIn: 'root'
@@ -1528,10 +1561,10 @@ class BXRestTask {
1528
1561
  constructor(elapseditem) {
1529
1562
  this.elapseditem = elapseditem;
1530
1563
  }
1564
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTask, deps: [{ token: BXRestElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
1565
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTask, providedIn: 'root' }); }
1531
1566
  }
1532
- BXRestTask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTask, deps: [{ token: BXRestElapseditem }], target: i0.ɵɵFactoryTarget.Injectable });
1533
- BXRestTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTask, providedIn: 'root' });
1534
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTask, decorators: [{
1567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTask, decorators: [{
1535
1568
  type: Injectable,
1536
1569
  args: [{
1537
1570
  providedIn: 'root'
@@ -1741,10 +1774,10 @@ class BXRestTasksTask {
1741
1774
  getaccess(param) {
1742
1775
  return this.http.post(this.url.getaccess, param);
1743
1776
  }
1777
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasksTask, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1778
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasksTask, providedIn: 'root' }); }
1744
1779
  }
1745
- BXRestTasksTask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasksTask, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1746
- BXRestTasksTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasksTask, providedIn: 'root' });
1747
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasksTask, decorators: [{
1780
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasksTask, decorators: [{
1748
1781
  type: Injectable,
1749
1782
  args: [{
1750
1783
  providedIn: 'root'
@@ -1755,10 +1788,10 @@ class BXRestTasks {
1755
1788
  constructor(task) {
1756
1789
  this.task = task;
1757
1790
  }
1791
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasks, deps: [{ token: BXRestTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
1792
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasks, providedIn: 'root' }); }
1758
1793
  }
1759
- BXRestTasks.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasks, deps: [{ token: BXRestTasksTask }], target: i0.ɵɵFactoryTarget.Injectable });
1760
- BXRestTasks.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasks, providedIn: 'root' });
1761
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTasks, decorators: [{
1794
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasks, decorators: [{
1762
1795
  type: Injectable,
1763
1796
  args: [{
1764
1797
  providedIn: 'root'
@@ -1786,13 +1819,13 @@ class BXRestDiskFile {
1786
1819
  get(id) {
1787
1820
  return this.http.post(this.url.get, { id: id });
1788
1821
  }
1789
- markDel(id) {
1822
+ markdeleted(id) {
1790
1823
  return this.http.post(this.url.markdeleted, { id: id });
1791
1824
  }
1825
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFile, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1826
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFile, providedIn: 'root' }); }
1792
1827
  }
1793
- BXRestDiskFile.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFile, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1794
- BXRestDiskFile.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFile, providedIn: 'root' });
1795
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFile, decorators: [{
1828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFile, decorators: [{
1796
1829
  type: Injectable,
1797
1830
  args: [{
1798
1831
  providedIn: 'root'
@@ -1831,10 +1864,10 @@ class BXRestDiskFolder {
1831
1864
  getchildren(id) {
1832
1865
  return this.http.post(this.url.getchildren, { id: id });
1833
1866
  }
1867
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFolder, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1868
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFolder, providedIn: 'root' }); }
1834
1869
  }
1835
- BXRestDiskFolder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFolder, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1836
- BXRestDiskFolder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFolder, providedIn: 'root' });
1837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskFolder, decorators: [{
1870
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFolder, decorators: [{
1838
1871
  type: Injectable,
1839
1872
  args: [{
1840
1873
  providedIn: 'root'
@@ -1851,10 +1884,10 @@ class BXRestDiskAttachedObject {
1851
1884
  get(id) {
1852
1885
  return this.http.post(this.url.get, { id: id });
1853
1886
  }
1887
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskAttachedObject, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1888
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskAttachedObject, providedIn: 'root' }); }
1854
1889
  }
1855
- BXRestDiskAttachedObject.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1856
- BXRestDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, providedIn: 'root' });
1857
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskAttachedObject, decorators: [{
1890
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskAttachedObject, decorators: [{
1858
1891
  type: Injectable,
1859
1892
  args: [{
1860
1893
  providedIn: 'root'
@@ -1867,10 +1900,10 @@ class BXRestDisk {
1867
1900
  this.folder = folder;
1868
1901
  this.attachedObject = attachedObject;
1869
1902
  }
1903
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDisk, deps: [{ token: BXRestDiskFile }, { token: BXRestDiskFolder }, { token: BXRestDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable }); }
1904
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDisk, providedIn: 'root' }); }
1870
1905
  }
1871
- 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 });
1872
- BXRestDisk.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, providedIn: 'root' });
1873
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDisk, decorators: [{
1906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDisk, decorators: [{
1874
1907
  type: Injectable,
1875
1908
  args: [{
1876
1909
  providedIn: 'root'
@@ -1883,10 +1916,10 @@ class BXRestBizprocWorkflowInstance {
1883
1916
  list: [$bizproc, $workflow, $instances, $list], // Возвращает список запущенных бизнес-процессов. Алиас bizproc.workflow.instances
1884
1917
  };
1885
1918
  }
1919
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowInstance, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1920
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowInstance, providedIn: 'root' }); }
1886
1921
  }
1887
- BXRestBizprocWorkflowInstance.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowInstance, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1888
- BXRestBizprocWorkflowInstance.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowInstance, providedIn: 'root' });
1889
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowInstance, decorators: [{
1922
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowInstance, decorators: [{
1890
1923
  type: Injectable,
1891
1924
  args: [{
1892
1925
  providedIn: 'root'
@@ -1906,10 +1939,10 @@ class BXRestBizprocWorkflowTemplate {
1906
1939
  list(param = { select: [], filter: {} }) {
1907
1940
  return this.http.post(this.url.list, param);
1908
1941
  }
1942
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowTemplate, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1943
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowTemplate, providedIn: 'root' }); }
1909
1944
  }
1910
- BXRestBizprocWorkflowTemplate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowTemplate, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1911
- BXRestBizprocWorkflowTemplate.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowTemplate, providedIn: 'root' });
1912
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflowTemplate, decorators: [{
1945
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowTemplate, decorators: [{
1913
1946
  type: Injectable,
1914
1947
  args: [{
1915
1948
  providedIn: 'root'
@@ -1931,10 +1964,10 @@ class BXRestBizprocWorkflow {
1931
1964
  start(param) {
1932
1965
  return this.http.post(this.url.start, param);
1933
1966
  }
1967
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflowInstance }, { token: BXRestBizprocWorkflowTemplate }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1968
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflow, providedIn: 'root' }); }
1934
1969
  }
1935
- BXRestBizprocWorkflow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflowInstance }, { token: BXRestBizprocWorkflowTemplate }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1936
- BXRestBizprocWorkflow.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflow, providedIn: 'root' });
1937
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocWorkflow, decorators: [{
1970
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflow, decorators: [{
1938
1971
  type: Injectable,
1939
1972
  args: [{
1940
1973
  providedIn: 'root'
@@ -1951,10 +1984,10 @@ class BXRestBizprocActivity {
1951
1984
  log: [$bizproc, $activity, $log] // Записывает информацию в лог бизнес-процесса
1952
1985
  };
1953
1986
  }
1987
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocActivity, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1988
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocActivity, providedIn: 'root' }); }
1954
1989
  }
1955
- BXRestBizprocActivity.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocActivity, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1956
- BXRestBizprocActivity.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocActivity, providedIn: 'root' });
1957
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocActivity, decorators: [{
1990
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocActivity, decorators: [{
1958
1991
  type: Injectable,
1959
1992
  args: [{
1960
1993
  providedIn: 'root'
@@ -1968,10 +2001,10 @@ class BXRestBizprocTask {
1968
2001
  list: [$bizproc, $task, $list], // Возвращает список заданий бизнес-процессов
1969
2002
  };
1970
2003
  }
2004
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocTask, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2005
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocTask, providedIn: 'root' }); }
1971
2006
  }
1972
- BXRestBizprocTask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocTask, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1973
- BXRestBizprocTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocTask, providedIn: 'root' });
1974
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocTask, decorators: [{
2007
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocTask, decorators: [{
1975
2008
  type: Injectable,
1976
2009
  args: [{
1977
2010
  providedIn: 'root'
@@ -1987,10 +2020,10 @@ class BXRestBizprocRobot {
1987
2020
  update: [$bizproc, $robot, $update] // Обновляет поля робота
1988
2021
  };
1989
2022
  }
2023
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocRobot, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2024
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocRobot, providedIn: 'root' }); }
1990
2025
  }
1991
- BXRestBizprocRobot.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocRobot, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1992
- BXRestBizprocRobot.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocRobot, providedIn: 'root' });
1993
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocRobot, decorators: [{
2026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocRobot, decorators: [{
1994
2027
  type: Injectable,
1995
2028
  args: [{
1996
2029
  providedIn: 'root'
@@ -2003,10 +2036,10 @@ class BXRestBizprocEvent {
2003
2036
  send: [$bizproc, $event, $send], // Возвращает действию выходные параметры, заданные в описании действия
2004
2037
  };
2005
2038
  }
2039
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocEvent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2040
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocEvent, providedIn: 'root' }); }
2006
2041
  }
2007
- BXRestBizprocEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocEvent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2008
- BXRestBizprocEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocEvent, providedIn: 'root' });
2009
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizprocEvent, decorators: [{
2042
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocEvent, decorators: [{
2010
2043
  type: Injectable,
2011
2044
  args: [{
2012
2045
  providedIn: 'root'
@@ -2021,10 +2054,10 @@ class BXRestBizproc {
2021
2054
  this.robot = robot;
2022
2055
  this.event = event;
2023
2056
  }
2057
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizproc, deps: [{ token: BXRestBizprocWorkflow }, { token: BXRestBizprocActivity }, { token: BXRestBizprocTask }, { token: BXRestBizprocRobot }, { token: BXRestBizprocEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
2058
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizproc, providedIn: 'root' }); }
2024
2059
  }
2025
- BXRestBizproc.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizproc, deps: [{ token: BXRestBizprocWorkflow }, { token: BXRestBizprocActivity }, { token: BXRestBizprocTask }, { token: BXRestBizprocRobot }, { token: BXRestBizprocEvent }], target: i0.ɵɵFactoryTarget.Injectable });
2026
- BXRestBizproc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizproc, providedIn: 'root' });
2027
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestBizproc, decorators: [{
2060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizproc, decorators: [{
2028
2061
  type: Injectable,
2029
2062
  args: [{
2030
2063
  providedIn: 'root'
@@ -2051,10 +2084,10 @@ class BXRestLogBlogPost {
2051
2084
  get(param = {}) {
2052
2085
  return this.http.post(this.url.get, param);
2053
2086
  }
2087
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2088
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' }); }
2054
2089
  }
2055
- BXRestLogBlogPost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
2056
- BXRestLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' });
2057
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, decorators: [{
2090
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogPost, decorators: [{
2058
2091
  type: Injectable,
2059
2092
  args: [{
2060
2093
  providedIn: 'root'
@@ -2067,10 +2100,10 @@ class BXRestLogBlogComment {
2067
2100
  add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
2068
2101
  };
2069
2102
  }
2103
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2104
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogComment, providedIn: 'root' }); }
2070
2105
  }
2071
- BXRestLogBlogComment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2072
- BXRestLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, providedIn: 'root' });
2073
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, decorators: [{
2106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogComment, decorators: [{
2074
2107
  type: Injectable,
2075
2108
  args: [{
2076
2109
  providedIn: 'root'
@@ -2082,10 +2115,10 @@ class BXRestLog {
2082
2115
  this.blogPost = blogPost;
2083
2116
  this.blogComment = blogComment;
2084
2117
  }
2118
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLog, deps: [{ token: BXRestLogBlogPost }, { token: BXRestLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable }); }
2119
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLog, providedIn: 'root' }); }
2085
2120
  }
2086
- 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 });
2087
- BXRestLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, providedIn: 'root' });
2088
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, decorators: [{
2121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLog, decorators: [{
2089
2122
  type: Injectable,
2090
2123
  args: [{
2091
2124
  providedIn: 'root'
@@ -2106,10 +2139,10 @@ class BXRestCalendarEvent {
2106
2139
  get(param) {
2107
2140
  return this.http.post(this.url.get, param);
2108
2141
  }
2142
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendarEvent, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2143
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' }); }
2109
2144
  }
2110
- BXRestCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
2111
- BXRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' });
2112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
2145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
2113
2146
  type: Injectable,
2114
2147
  args: [{
2115
2148
  providedIn: 'root'
@@ -2155,10 +2188,10 @@ class BXRestCalendar {
2155
2188
  constructor(event) {
2156
2189
  this.event = event;
2157
2190
  }
2191
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendar, deps: [{ token: BXRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
2192
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendar, providedIn: 'root' }); }
2158
2193
  }
2159
- BXRestCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, deps: [{ token: BXRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
2160
- BXRestCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, providedIn: 'root' });
2161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestCalendar, decorators: [{
2194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendar, decorators: [{
2162
2195
  type: Injectable,
2163
2196
  args: [{
2164
2197
  providedIn: 'root'
@@ -2208,105 +2241,366 @@ class BXRestSonetGroup {
2208
2241
  }) {
2209
2242
  return this.http.post(this.url.get, param);
2210
2243
  }
2244
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestSonetGroup, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2245
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestSonetGroup, providedIn: 'root' }); }
2211
2246
  }
2212
- BXRestSonetGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
2213
- BXRestSonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, providedIn: 'root' });
2214
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestSonetGroup, decorators: [{
2247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestSonetGroup, decorators: [{
2215
2248
  type: Injectable,
2216
2249
  args: [{
2217
2250
  providedIn: 'root'
2218
2251
  }]
2219
2252
  }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
2220
2253
 
2221
- class Navvy {
2222
- constructor(snackBar) {
2223
- this.snackBar = snackBar;
2224
- }
2225
- mapAndSnackBarError(request, errorText) {
2254
+ class NavvySupport {
2255
+ constructor(requestClass, mapClass) {
2256
+ this.requestClass = requestClass;
2257
+ this.mapClass = mapClass;
2258
+ this.pageSize = 50; // больше всё равно не дас
2259
+ }
2260
+ mapAndSnackBarError(request
2261
+ // errorText: string
2262
+ ) {
2226
2263
  return request.pipe(map(v => BXRestMapResult(v)), catchError(err => {
2227
- this.snackBar.error(errorText);
2264
+ // this.snackBar.error(errorText)
2228
2265
  return throwError(() => err);
2229
2266
  }));
2230
2267
  }
2231
- }
2232
- Navvy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Navvy, deps: [{ token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable });
2233
- Navvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Navvy, providedIn: 'root' });
2234
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Navvy, decorators: [{
2235
- type: Injectable,
2236
- args: [{
2237
- providedIn: 'root'
2238
- }]
2239
- }], ctorParameters: function () { return [{ type: SnackBarService }]; } });
2268
+ mapResult(param, map) {
2269
+ return (param && param.result) ? Object.assign(param, { result: map(param.result) }) : undefined;
2270
+ }
2271
+ }
2240
2272
 
2241
- class BXRestNavvyUser {
2242
- constructor(BXRestUser, BXRestUserMap, Navvy) {
2243
- this.BXRestUser = BXRestUser;
2244
- this.BXRestUserMap = BXRestUserMap;
2245
- this.Navvy = Navvy;
2273
+ class NavvySimple extends NavvySupport {
2274
+ constructor(requestClass, mapClass, func, testError = '', map = undefined
2275
+ // private snackBar: SnackBarService,
2276
+ ) {
2277
+ super(requestClass, mapClass);
2278
+ this.func = func;
2279
+ this.testError = testError;
2280
+ this.map = map;
2246
2281
  }
2247
- get(params = {}) {
2248
- return this.Navvy.mapAndSnackBarError(this.BXRestUser.get(params), 'Не удалось получить пользователей');
2282
+ resultVanilla() {
2283
+ return this.func;
2249
2284
  }
2250
- current(update = false) {
2251
- if (update) {
2252
- return this.self();
2253
- }
2254
- else {
2255
- let self = SessionStorage.getItem(this.constructor.name + this.self.name);
2256
- if (self) {
2257
- return of(self);
2258
- }
2259
- return this.self();
2260
- }
2285
+ mapForVanilla() {
2286
+ return this.func.pipe(map(v => (v && v.result && this.map) ? Object.assign(v, { result: this.map.call(this.mapClass, v.result) }) : v));
2261
2287
  }
2262
- update(user, fieldUpdate) {
2263
- return this.Navvy.mapAndSnackBarError(this.BXRestUser.update(user, fieldUpdate), 'Не удалось обновить пользователя с ID' + user.ID);
2288
+ result() {
2289
+ return this.mapAndSnackBarError(this.func).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v));
2290
+ }
2291
+ // TODO: реализовать
2292
+ resultAll() {
2264
2293
  }
2265
- self() {
2266
- return this.Navvy.mapAndSnackBarError(this.BXRestUser.current(), 'Не удалось получить пользователя')
2294
+ }
2295
+
2296
+ class NavvyPagNavBase extends NavvySupport {
2297
+ // load: number = 0
2298
+ constructor(requestClass, mapClass, func, param, testError = '', map = undefined) {
2299
+ super(requestClass, mapClass);
2300
+ this.func = func;
2301
+ this.param = param;
2302
+ this.testError = testError;
2303
+ this.map = map;
2304
+ }
2305
+ resultVanilla() {
2306
+ return this.func.call(this.requestClass, this.param);
2307
+ }
2308
+ mapForVanilla() {
2309
+ return this.mapForVanillaEnd(this.func, this.param);
2310
+ }
2311
+ mapForVanillaEnd(func, param) {
2312
+ return func.call(this.requestClass, param).pipe(map(v => (v && v.result && this.map) ? Object.assign(v, { result: this.map.call(this.mapClass, v.result) }) : v));
2313
+ }
2314
+ result() {
2315
+ return this.resultEnd(this.func, this.param);
2316
+ }
2317
+ resultEnd(func, param) {
2318
+ return this.mapAndSnackBarError(func.call(this.requestClass, param)).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v));
2319
+ }
2320
+ }
2321
+
2322
+ /**
2323
+ * Класс-прослойка-обработчик для методов работающих на альтернативной постраничной навигации тика как методы по
2324
+ * затраченному времени на задачи https://dev.1c-bitrix.ru/rest_help/tasks/task/elapseditem/index.php
2325
+ *
2326
+ * не завершенный класс, работаем от частного к общему
2327
+ */
2328
+ class NavvyAlterPagNav extends NavvyPagNavBase {
2329
+ resultAll() {
2330
+ return this.mapAndSnackBarError(this.getAllTaskElapsedItem(this.func.call, this.param));
2331
+ }
2332
+ /**
2333
+ * Метод в котором все должно крутиться, не конечный вариант
2334
+ * работаем от частного к общему
2335
+ *
2336
+ * @param func
2337
+ * @param param
2338
+ */
2339
+ getAllTaskElapsedItem(func, param = undefined) {
2340
+ return func.call(this.requestClass, param).pipe(mergeMap(items => {
2341
+ if (items && items.result) {
2342
+ if (items.next) {
2343
+ param = (param) ? param : {};
2344
+ param.PARAMS = {
2345
+ NAV_PARAMS: {
2346
+ nPageSize: this.pageSize,
2347
+ iNumPage: items.next / this.pageSize + 1
2348
+ }
2349
+ };
2350
+ let requests = [];
2351
+ for (let i = 0; i < this.pageSize; i + this.pageSize) {
2352
+ let paramClone = clone(param);
2353
+ paramClone.PARAMS = {
2354
+ NAV_PARAMS: {
2355
+ nPageSize: this.pageSize,
2356
+ iNumPage: (items.next + i) / this.pageSize + 1
2357
+ }
2358
+ };
2359
+ requests.push(paramClone);
2360
+ }
2361
+ return from(requests).pipe(concatMap(param => func.call(this.requestClass, param)));
2362
+ /*
2363
+ return this.getAllTaskElapsedItem(func, param).pipe(
2364
+ map(vEnd => {
2365
+ if (vEnd && vEnd.result && items.result) {
2366
+ return merge(clone(vEnd), {result: [...items.result, ...vEnd.result]})
2367
+ }
2368
+ return items
2369
+ })
2370
+ )
2371
+ */
2372
+ }
2373
+ }
2374
+ return from([items]);
2375
+ }), catchError(err => {
2376
+ // this.snackBar.error("Проблемы с поточным получение затреканого времени")
2377
+ console.error(err);
2378
+ return throwError(() => err);
2379
+ }));
2380
+ }
2381
+ }
2382
+
2383
+ // TODO: реализовать загрузку всего в очереди
2384
+ class NavvyPagNav extends NavvyPagNavBase {
2385
+ resultAll() {
2386
+ let save = [];
2387
+ return this.resultAllEnd()
2267
2388
  .pipe(map(v => {
2268
2389
  if (v) {
2269
- return this.BXRestUserMap.current(v);
2390
+ save.push(...v);
2270
2391
  }
2271
- return undefined;
2272
- }), tap(v => {
2392
+ return save;
2393
+ }), last());
2394
+ }
2395
+ resultAllEnd() {
2396
+ // return this.mapForVanillaEnd(this.func, this.param)
2397
+ return this.resultVanilla().pipe(mergeMap(items => {
2398
+ if (items && items.result) {
2399
+ if (items.total && items.next) {
2400
+ let requests = [];
2401
+ for (let i = items.next; i < items.total; i = i + this.pageSize) {
2402
+ let paramClone = clone(this.param);
2403
+ paramClone.start = i;
2404
+ requests.push(paramClone);
2405
+ }
2406
+ return concat(this.mapResultForGetAll(items), from(requests).pipe(concatMap(param => this.resultEnd(this.func, param))));
2407
+ }
2408
+ }
2409
+ return this.mapResultForGetAll(items);
2410
+ }), catchError(err => {
2411
+ // this.snackBar.error("Проблемы с поточным получение затреканого времени")
2412
+ console.error(err);
2413
+ return throwError(() => err);
2414
+ }));
2415
+ }
2416
+ mapResultForGetAll(items) {
2417
+ return (items?.result) ? from([items.result]).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v)) : from([]);
2418
+ }
2419
+ }
2420
+
2421
+ class NavvyPagNavWithUselessKey extends NavvyPagNavBase {
2422
+ resultAll() {
2423
+ let save = [];
2424
+ return this.resultAllEnd()
2425
+ .pipe(map(v => {
2273
2426
  if (v) {
2274
- SessionStorage.setItem(this.constructor.name + this.self.name, v);
2427
+ save.push(...v);
2428
+ }
2429
+ return save;
2430
+ }), last());
2431
+ }
2432
+ resultAllEnd() {
2433
+ return this.mapForVanillaEnd(this.func, this.param).pipe(mergeMap(items => {
2434
+ if (items && items.result) {
2435
+ if (items.total && items.next) {
2436
+ let requests = [];
2437
+ for (let i = 0; i < items.total; i = i + this.pageSize) {
2438
+ let paramClone = clone(this.param);
2439
+ paramClone.start = i;
2440
+ requests.push(paramClone);
2441
+ }
2442
+ /*
2443
+ return from(requests.map(param => this.resultEnd(this.func, param))).pipe(
2444
+ // toArray(),
2445
+ mergeMap(v => {
2446
+ return v
2447
+ })
2448
+ )
2449
+ */
2450
+ return from(requests).pipe(concatMap(param => this.resultEnd(this.func, param)));
2451
+ /*
2452
+ return this.getAllTaskElapsedItem(func, param).pipe(
2453
+ map(vEnd => {
2454
+ if (vEnd && vEnd.result && items.result) {
2455
+ return merge(clone(vEnd), {result: [...items.result, ...vEnd.result]})
2456
+ }
2457
+ return items
2458
+ })
2459
+ )
2460
+ */
2461
+ }
2275
2462
  }
2463
+ return from([1]).pipe(concatMap(_ => this.resultEnd(this.func, this.param)));
2464
+ // return from([BXRestMapResult(items)])
2465
+ // as ReturnType<Observable<T | undefined>, Observable<R | undefined>>
2466
+ }), catchError(err => {
2467
+ // this.snackBar.error("Проблемы с поточным получение затреканого времени")
2468
+ console.error(err);
2469
+ return throwError(() => err);
2276
2470
  }));
2277
2471
  }
2472
+ }
2473
+
2474
+ class Navvy {
2475
+ constructor(requestClass, mapClass
2476
+ // private snackBar: SnackBarService,
2477
+ ) {
2478
+ this.requestClass = requestClass;
2479
+ this.mapClass = mapClass;
2480
+ }
2481
+ simple(func, testError = '', map = undefined) {
2482
+ return new NavvySimple(this.requestClass, this.mapClass, func.call(this.requestClass), testError, map);
2483
+ }
2484
+ simpleWithArg(func, arg, testError = '', map = undefined) {
2485
+ return new NavvySimple(this.requestClass, this.mapClass, func.call(this.requestClass, arg), testError, map);
2486
+ }
2487
+ PagNav(func, arg, testError = '', map = undefined) {
2488
+ return new NavvyPagNav(this.requestClass, this.mapClass, func, arg, testError, map);
2489
+ }
2490
+ PagNavWithUselessKey(func, arg, testError = '', map = undefined) {
2491
+ return new NavvyPagNavWithUselessKey(this.requestClass, this.mapClass, func, arg, testError, map);
2492
+ }
2493
+ alterPagNav(func, arg = undefined, testError = '', map = undefined) {
2494
+ return new NavvyAlterPagNav(this.requestClass, this.mapClass, func, arg, testError, map);
2495
+ }
2496
+ }
2497
+
2498
+ class BXRestNavvyUser {
2499
+ constructor(BXRestUserMap, BXRestUser) {
2500
+ this.BXRestUserMap = BXRestUserMap;
2501
+ this.BXRestUser = BXRestUser;
2502
+ this.Navvy = new Navvy(this.BXRestUser, this.BXRestUserMap);
2503
+ }
2504
+ current(update = false) {
2505
+ return this.Navvy.simpleWithArg(this.self, update, '', this.BXRestUserMap.current);
2506
+ }
2507
+ /*
2508
+ update(user: iBXRestUser, fieldUpdate: string[]) {
2509
+ return this.Navvy.simple(
2510
+ this.BXRestUser.update(user, fieldUpdate),
2511
+ 'Не удалось обновить пользователя с ID' + user.ID
2512
+ )
2513
+ }
2514
+ */
2278
2515
  search(params) {
2279
- return this.Navvy.mapAndSnackBarError(this.BXRestUser.search(params), 'Сервер не отвечает на запрос поиска');
2516
+ return this.Navvy.simpleWithArg(this.BXRestUser.search, params, 'Сервер не отвечает на запрос поиска');
2280
2517
  }
2281
- access(access) {
2282
- return this.Navvy.mapAndSnackBarError(this.BXRestUser.access(access), 'Не удалось получить права');
2518
+ access(params) {
2519
+ return this.Navvy.simpleWithArg(this.BXRestUser.access, params, 'Не удалось получить права');
2283
2520
  }
2284
2521
  fields() {
2285
- return this.Navvy.mapAndSnackBarError(this.BXRestUser.fields(), 'Не удалось поля');
2522
+ return this.Navvy.simple(this.BXRestUser.fields, 'Не удалось поля');
2286
2523
  }
2524
+ self(update = false) {
2525
+ if (update) {
2526
+ return this.BXRestUser.current(update);
2527
+ }
2528
+ else {
2529
+ let self = SessionStorage.getItem(this.constructor.name + this.self.name);
2530
+ if (self) {
2531
+ return of({ result: self });
2532
+ }
2533
+ return this.BXRestUser.current(update)
2534
+ .pipe(map(v => {
2535
+ if (v) {
2536
+ return v;
2537
+ }
2538
+ return undefined;
2539
+ }), tap(v => {
2540
+ if (v) {
2541
+ SessionStorage.setItem(this.constructor.name + this.self.name, v);
2542
+ }
2543
+ }));
2544
+ }
2545
+ }
2546
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, deps: [{ token: BXRestUserMap }, { token: BXRestUser }], target: i0.ɵɵFactoryTarget.Injectable }); }
2547
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, providedIn: 'root' }); }
2287
2548
  }
2288
- BXRestNavvyUser.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyUser, deps: [{ token: BXRestUser }, { token: BXRestUserMap }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
2289
- BXRestNavvyUser.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyUser, providedIn: 'root' });
2290
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyUser, decorators: [{
2549
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, decorators: [{
2291
2550
  type: Injectable,
2292
2551
  args: [{
2293
2552
  providedIn: 'root'
2294
2553
  }]
2295
- }], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestUserMap }, { type: Navvy }]; } });
2554
+ }], ctorParameters: function () { return [{ type: BXRestUserMap }, { type: BXRestUser }]; } });
2555
+
2556
+ class BXRestMapListsField {
2557
+ get(v) {
2558
+ return (v) ? Object.values(v) : undefined;
2559
+ }
2560
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsField, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2561
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsField, providedIn: 'root' }); }
2562
+ }
2563
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsField, decorators: [{
2564
+ type: Injectable,
2565
+ args: [{
2566
+ providedIn: 'root'
2567
+ }]
2568
+ }] });
2569
+
2570
+ class BXRestNavvyListsField {
2571
+ constructor(BXRestListsField, BXRestMapListsField) {
2572
+ this.BXRestListsField = BXRestListsField;
2573
+ this.BXRestMapListsField = BXRestMapListsField;
2574
+ this.Navvy = new Navvy(this.BXRestListsField, this.BXRestMapListsField);
2575
+ }
2576
+ get(param) {
2577
+ return this.Navvy.PagNavWithUselessKey(this.BXRestListsField.get, param, 'Не удалось получить поля списка', this.BXRestMapListsField.get);
2578
+ }
2579
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsField, deps: [{ token: BXRestListsField }, { token: BXRestMapListsField }], target: i0.ɵɵFactoryTarget.Injectable }); }
2580
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsField, providedIn: 'root' }); }
2581
+ }
2582
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsField, decorators: [{
2583
+ type: Injectable,
2584
+ args: [{
2585
+ providedIn: 'root'
2586
+ }]
2587
+ }], ctorParameters: function () { return [{ type: BXRestListsField }, { type: BXRestMapListsField }]; } });
2296
2588
 
2297
2589
  class BXRestMapListsElement extends BaseMapServices {
2298
2590
  get(items) {
2299
- return items.map(item => Object.assign(item, {
2300
- BP_PUBLISHED: item.BP_PUBLISHED === 'Y',
2301
- CREATED_BY: this.toNum(item.CREATED_BY),
2302
- IBLOCK_ID: this.toNum(item.IBLOCK_ID),
2303
- ID: this.toNum(item.ID)
2304
- }));
2305
- }
2591
+ return (items)
2592
+ ? items.map(item => Object.assign(item, {
2593
+ BP_PUBLISHED: item.BP_PUBLISHED === 'Y',
2594
+ CREATED_BY: this.toNum(item.CREATED_BY),
2595
+ IBLOCK_ID: this.toNum(item.IBLOCK_ID),
2596
+ ID: this.toNum(item.ID)
2597
+ }))
2598
+ : undefined;
2599
+ }
2600
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsElement, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2601
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsElement, providedIn: 'root' }); }
2306
2602
  }
2307
- BXRestMapListsElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapListsElement, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
2308
- BXRestMapListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapListsElement, providedIn: 'root' });
2309
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapListsElement, decorators: [{
2603
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsElement, decorators: [{
2310
2604
  type: Injectable,
2311
2605
  args: [{
2312
2606
  providedIn: 'root'
@@ -2314,32 +2608,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2314
2608
  }] });
2315
2609
 
2316
2610
  class BXRestNavvyListsElement {
2317
- constructor(BXRestListsElement, BXRestMap, Navvy) {
2611
+ constructor(BXRestListsElement, BXRestMap) {
2318
2612
  this.BXRestListsElement = BXRestListsElement;
2319
2613
  this.BXRestMap = BXRestMap;
2320
- this.Navvy = Navvy;
2614
+ this.Navvy = new Navvy(this.BXRestListsElement, this.BXRestMap);
2321
2615
  }
2322
2616
  get(param) {
2323
- return this.Navvy.mapAndSnackBarError(this.BXRestListsElement.get(param), 'Не удалось получить элемент списка').pipe(map(v => (v) ? this.BXRestMap.get(v) : undefined));
2617
+ return this.Navvy.PagNav(this.BXRestListsElement.get, param, 'Не удалось получить элемент списка', this.BXRestMap.get);
2324
2618
  }
2325
2619
  add(param) {
2326
- return this.Navvy.mapAndSnackBarError(this.BXRestListsElement.add(param), 'Не удалось получить элемент списка');
2620
+ return this.Navvy.simpleWithArg(this.BXRestListsElement.add, param, 'Не удалось добавить элемент списка');
2327
2621
  }
2622
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsElement, deps: [{ token: BXRestListsElement }, { token: BXRestMapListsElement }], target: i0.ɵɵFactoryTarget.Injectable }); }
2623
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsElement, providedIn: 'root' }); }
2328
2624
  }
2329
- BXRestNavvyListsElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, deps: [{ token: BXRestListsElement }, { token: BXRestMapListsElement }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
2330
- BXRestNavvyListsElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, providedIn: 'root' });
2331
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyListsElement, decorators: [{
2625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsElement, decorators: [{
2332
2626
  type: Injectable,
2333
2627
  args: [{
2334
2628
  providedIn: 'root'
2335
2629
  }]
2336
- }], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestMapListsElement }, { type: Navvy }]; } });
2630
+ }], ctorParameters: function () { return [{ type: BXRestListsElement }, { type: BXRestMapListsElement }]; } });
2337
2631
 
2338
2632
  class BXRestMapLists extends BaseMapServices {
2339
- constructor(element) {
2340
- super();
2341
- this.element = element;
2342
- }
2343
2633
  get(value) {
2344
2634
  return (value) ? value.map(i => this.iBXRestListItemHttpToiBXRestListItem(i)) : undefined;
2345
2635
  }
@@ -2359,7 +2649,7 @@ class BXRestMapLists extends BaseMapServices {
2359
2649
  ELEMENT_NAME: this.toStr(itemLists.ELEMENT_NAME),
2360
2650
  EXTERNAL_ID: this.toStr(itemLists.EXTERNAL_ID),
2361
2651
  IBLOCK_TYPE_ID: this.toStr(itemLists.IBLOCK_TYPE_ID),
2362
- ID: Number(itemLists.ID),
2652
+ ID: this.toNum(itemLists.ID),
2363
2653
  INDEX_ELEMENT: itemLists.INDEX_ELEMENT === 'Y',
2364
2654
  INDEX_SECTION: itemLists.INDEX_SECTION === 'Y',
2365
2655
  LANG_DIR: this.toStr(itemLists.LANG_DIR),
@@ -2385,7 +2675,7 @@ class BXRestMapLists extends BaseMapServices {
2385
2675
  SECTION_PROPERTY: this.toStr(itemLists.SECTION_PROPERTY),
2386
2676
  SERVER_NAME: this.toStr(itemLists.SERVER_NAME),
2387
2677
  SOCNET_GROUP_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
2388
- SORT: this.toStr(itemLists.SOCNET_GROUP_ID),
2678
+ SORT: this.toNum(itemLists.SOCNET_GROUP_ID),
2389
2679
  TIMESTAMP_X: new Date(itemLists.TIMESTAMP_X),
2390
2680
  TMP_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
2391
2681
  VERSION: Number(itemLists.VERSION),
@@ -2393,35 +2683,36 @@ class BXRestMapLists extends BaseMapServices {
2393
2683
  XML_ID: this.toStr(itemLists.SOCNET_GROUP_ID),
2394
2684
  };
2395
2685
  }
2686
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2687
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, providedIn: 'root' }); }
2396
2688
  }
2397
- BXRestMapLists.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, deps: [{ token: BXRestMapListsElement }], target: i0.ɵɵFactoryTarget.Injectable });
2398
- BXRestMapLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, providedIn: 'root' });
2399
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapLists, decorators: [{
2689
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, decorators: [{
2400
2690
  type: Injectable,
2401
2691
  args: [{
2402
2692
  providedIn: 'root'
2403
2693
  }]
2404
- }], ctorParameters: function () { return [{ type: BXRestMapListsElement }]; } });
2694
+ }] });
2405
2695
 
2406
2696
  class BXRestNavvyLists {
2407
- constructor(element, BXRestLists, Navvy, mapList) {
2697
+ constructor(element, field, mapList, BXRestLists) {
2408
2698
  this.element = element;
2409
- this.BXRestLists = BXRestLists;
2410
- this.Navvy = Navvy;
2699
+ this.field = field;
2411
2700
  this.mapList = mapList;
2701
+ this.BXRestLists = BXRestLists;
2702
+ this.Navvy = new Navvy(this.BXRestLists, this.mapList);
2412
2703
  }
2413
2704
  get(param) {
2414
- return this.Navvy.mapAndSnackBarError(this.BXRestLists.get(param), 'Не удалось получить список').pipe(map(v => this.mapList.get(v)));
2705
+ return this.Navvy.PagNav(this.BXRestLists.get, param, 'Не удалось получить список', this.mapList.get);
2415
2706
  }
2707
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLists, deps: [{ token: BXRestNavvyListsElement }, { token: BXRestNavvyListsField }, { token: BXRestMapLists }, { token: BXRestLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
2708
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLists, providedIn: 'root' }); }
2416
2709
  }
2417
- 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 });
2418
- BXRestNavvyLists.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, providedIn: 'root' });
2419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLists, decorators: [{
2710
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLists, decorators: [{
2420
2711
  type: Injectable,
2421
2712
  args: [{
2422
2713
  providedIn: 'root'
2423
2714
  }]
2424
- }], ctorParameters: function () { return [{ type: BXRestNavvyListsElement }, { type: BXRestLists }, { type: Navvy }, { type: BXRestMapLists }]; } });
2715
+ }], ctorParameters: function () { return [{ type: BXRestNavvyListsElement }, { type: BXRestNavvyListsField }, { type: BXRestMapLists }, { type: BXRestLists }]; } });
2425
2716
 
2426
2717
  class Permission {
2427
2718
  static get() {
@@ -2453,25 +2744,28 @@ class Permission {
2453
2744
  SessionStorage.setItem('permission', permission);
2454
2745
  }
2455
2746
  }
2747
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Permission, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2748
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Permission, providedIn: 'root' }); }
2456
2749
  }
2457
- Permission.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Permission, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2458
- Permission.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Permission, providedIn: 'root' });
2459
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Permission, decorators: [{
2750
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Permission, decorators: [{
2460
2751
  type: Injectable,
2461
2752
  args: [{
2462
2753
  providedIn: 'root'
2463
2754
  }]
2464
2755
  }] });
2465
2756
 
2466
- class BXRestTaskMap extends BaseMapServices {
2757
+ class BXRestMapTasksTask extends BaseMapServices {
2758
+ getaccess(v) {
2759
+ return (v && v.allowedActions) ? v.allowedActions : undefined;
2760
+ }
2467
2761
  add(item) {
2468
- return this.TaskBXHttpToTaskBX(item);
2762
+ return (item) ? this.TaskBXHttpToTaskBX(item.task) : undefined;
2469
2763
  }
2470
2764
  get(item) {
2471
- return this.TaskBXHttpToTaskBX(item);
2765
+ return (item && item.task) ? this.TaskBXHttpToTaskBX(item.task) : undefined;
2472
2766
  }
2473
2767
  list(item) {
2474
- return item.map(i => this.TaskBXHttpToTaskBX(i));
2768
+ return (item && item.tasks) ? item.tasks.map(i => this.TaskBXHttpToTaskBX(i)) : undefined;
2475
2769
  }
2476
2770
  TaskBXHttpToTaskBX(item) {
2477
2771
  let result = {};
@@ -2574,10 +2868,10 @@ class BXRestTaskMap extends BaseMapServices {
2574
2868
  }
2575
2869
  return Object.assign(item, result);
2576
2870
  }
2871
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasksTask, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2872
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasksTask, providedIn: 'root' }); }
2577
2873
  }
2578
- BXRestTaskMap.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTaskMap, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
2579
- BXRestTaskMap.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTaskMap, providedIn: 'root' });
2580
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestTaskMap, decorators: [{
2874
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasksTask, decorators: [{
2581
2875
  type: Injectable,
2582
2876
  args: [{
2583
2877
  providedIn: 'root'
@@ -2589,16 +2883,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2589
2883
  // next: number
2590
2884
  // }
2591
2885
  class BXRestNavvyTasksTask {
2592
- // storeTask$: Observable<iStoreTask>
2593
- constructor(BXRestTasksTask, snackBar,
2886
+ constructor(BXRestTasksTask,
2887
+ // private snackBar: SnackBarService,
2594
2888
  // private store: Store<{ tasks: IStoreTask }>,
2595
- taskMap,
2596
- // private taskResultMap: BitrixApiTaskResultMapServices
2597
- Navvy) {
2889
+ BXRestMapTasksTask) {
2598
2890
  this.BXRestTasksTask = BXRestTasksTask;
2599
- this.snackBar = snackBar;
2600
- this.taskMap = taskMap;
2601
- this.Navvy = Navvy;
2891
+ this.BXRestMapTasksTask = BXRestMapTasksTask;
2602
2892
  // pageSize = 50
2603
2893
  // nowLoad$ = new ReplaySubject<TimeProcess>(1)
2604
2894
  this.def = {
@@ -2609,6 +2899,7 @@ class BXRestNavvyTasksTask {
2609
2899
  'TAGS', 'ALLOW_TIME_TRACKING'
2610
2900
  ]
2611
2901
  };
2902
+ this.Navvy = new Navvy(this.BXRestTasksTask, this.BXRestMapTasksTask);
2612
2903
  // this.storeTask$ = this.store.select('tasks')
2613
2904
  // this.nowLoad$.next({
2614
2905
  // total: 0,
@@ -2616,12 +2907,7 @@ class BXRestNavvyTasksTask {
2616
2907
  // })
2617
2908
  }
2618
2909
  add(param) {
2619
- return this.Navvy.mapAndSnackBarError(this.BXRestTasksTask.add(param), 'Не удалось получить задачу').pipe(map(v => {
2620
- if (v && v.task) {
2621
- return this.taskMap.add(v.task);
2622
- }
2623
- return undefined;
2624
- }));
2910
+ return this.Navvy.simpleWithArg(this.BXRestTasksTask.add, param, 'Не удалось добавить задачу', this.BXRestMapTasksTask.add);
2625
2911
  // return this.http.post<{ task: TaskBXHttp }>(this.url.add, {fields: param}).pipe(
2626
2912
  // map(v => {
2627
2913
  // if (v && v.result && v.result.task) {
@@ -2661,21 +2947,17 @@ class BXRestNavvyTasksTask {
2661
2947
  return of(undefined)
2662
2948
  }
2663
2949
  */
2664
- get(requestArray) {
2665
- if (!requestArray.select) {
2666
- requestArray.select = this.def.select;
2950
+ get(param) {
2951
+ if (!param.select) {
2952
+ param.select = this.def.select;
2667
2953
  }
2668
- return this.Navvy.mapAndSnackBarError(this.BXRestTasksTask.get(requestArray), 'Не удалось получить задачу').pipe(map(v => (v && v.task) ? v.task : undefined), map(v => (v) ? this.taskMap.get(v) : undefined));
2954
+ return this.Navvy.simpleWithArg(this.BXRestTasksTask.get, param, 'Не удалось получить задачу', this.BXRestMapTasksTask.get);
2669
2955
  }
2670
2956
  list(param = {}) {
2671
2957
  if (!param.select) {
2672
2958
  param.select = this.def.select;
2673
2959
  }
2674
- return this.Navvy.mapAndSnackBarError(this.BXRestTasksTask.list(param), 'Не удалось получить задачи').pipe(map(v => (v && v.tasks) ? v.tasks : undefined), map(v => (v) ? this.taskMap.list(v) : undefined), tap(v => {
2675
- if (v) {
2676
- SessionStorage.setItem(this.constructor.name + this.list.name, v);
2677
- }
2678
- }));
2960
+ return this.Navvy.simpleWithArg(this.BXRestTasksTask.list, param, 'Не удалось получить список задач', this.BXRestMapTasksTask.list);
2679
2961
  }
2680
2962
  /*
2681
2963
  listArray(requestArray: RequestApiTaskListBX = {}) {
@@ -2798,40 +3080,62 @@ class BXRestNavvyTasksTask {
2798
3080
  }
2799
3081
  */
2800
3082
  getaccess(param) {
2801
- return this.Navvy.mapAndSnackBarError(this.BXRestTasksTask.getaccess(param), 'Не удалось получить права на указанных пользователей').pipe(map(v => (v && v.allowedActions) ? v.allowedActions : undefined));
3083
+ return this.Navvy.simpleWithArg(this.BXRestTasksTask.getaccess, param, 'Не удалось получить права на указанных пользователей', this.BXRestMapTasksTask.getaccess);
2802
3084
  }
3085
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasksTask, deps: [{ token: BXRestTasksTask }, { token: BXRestMapTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
3086
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasksTask, providedIn: 'root' }); }
2803
3087
  }
2804
- BXRestNavvyTasksTask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasksTask, deps: [{ token: BXRestTasksTask }, { token: SnackBarService }, { token: BXRestTaskMap }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
2805
- BXRestNavvyTasksTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasksTask, providedIn: 'root' });
2806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasksTask, decorators: [{
3088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasksTask, decorators: [{
2807
3089
  type: Injectable,
2808
3090
  args: [{
2809
3091
  providedIn: 'root'
2810
3092
  }]
2811
- }], ctorParameters: function () { return [{ type: BXRestTasksTask }, { type: SnackBarService }, { type: BXRestTaskMap }, { type: Navvy }]; } });
3093
+ }], ctorParameters: function () { return [{ type: BXRestTasksTask }, { type: BXRestMapTasksTask }]; } });
2812
3094
 
2813
3095
  class BXRestNavvyTasks {
2814
3096
  constructor(task) {
2815
3097
  this.task = task;
2816
3098
  }
3099
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasks, deps: [{ token: BXRestNavvyTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
3100
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasks, providedIn: 'root' }); }
2817
3101
  }
2818
- BXRestNavvyTasks.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasks, deps: [{ token: BXRestNavvyTasksTask }], target: i0.ɵɵFactoryTarget.Injectable });
2819
- BXRestNavvyTasks.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasks, providedIn: 'root' });
2820
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTasks, decorators: [{
3102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasks, decorators: [{
2821
3103
  type: Injectable,
2822
3104
  args: [{
2823
3105
  providedIn: 'root'
2824
3106
  }]
2825
3107
  }], ctorParameters: function () { return [{ type: BXRestNavvyTasksTask }]; } });
2826
3108
 
3109
+ class BXRestMapTaskElapseditem {
3110
+ update(p) {
3111
+ return (p == null);
3112
+ }
3113
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskElapseditem, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3114
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskElapseditem, providedIn: 'root' }); }
3115
+ }
3116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskElapseditem, decorators: [{
3117
+ type: Injectable,
3118
+ args: [{
3119
+ providedIn: 'root'
3120
+ }]
3121
+ }] });
3122
+
2827
3123
  class BXRestNavvyElapseditem {
2828
- constructor(BXRestElapseditem, BXRestNavvyUser, BXRestNavvyTasks, Navvy, snackBar) {
3124
+ constructor(BXRestElapseditem, BXRestNavvyUser, BXRestNavvyTasks, BXRestMapElapseditem) {
2829
3125
  this.BXRestElapseditem = BXRestElapseditem;
2830
3126
  this.BXRestNavvyUser = BXRestNavvyUser;
2831
3127
  this.BXRestNavvyTasks = BXRestNavvyTasks;
2832
- this.Navvy = Navvy;
2833
- this.snackBar = snackBar;
3128
+ this.BXRestMapElapseditem = BXRestMapElapseditem;
3129
+ this.Navvy = new Navvy(this.BXRestElapseditem, this.BXRestMapElapseditem);
2834
3130
  }
3131
+ /*
3132
+ call(methodName: string, ...args: any[]){
3133
+ if (typeof this[methodName] === 'function') {
3134
+ return this[methodName](...args);
3135
+ }
3136
+ return this[methodName](...args);
3137
+ }
3138
+ */
2835
3139
  getList(param = undefined) {
2836
3140
  if (param) {
2837
3141
  if (!param.TASKID && !param.SELECT) {
@@ -2846,45 +3150,41 @@ class BXRestNavvyElapseditem {
2846
3150
  };
2847
3151
  }
2848
3152
  }
2849
- return this.Navvy.mapAndSnackBarError(this.BXRestElapseditem.getList(param), 'не удалось получить время по задачам');
3153
+ return this.Navvy.alterPagNav(this.BXRestElapseditem.getList, param);
2850
3154
  }
2851
3155
  add(param) {
2852
3156
  return this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
2853
3157
  if (allowedReadTask) {
2854
- return this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowed => {
3158
+ return this.checkPermissionAddTask(param.TASKID).pipe(mergeMap(allowed => {
2855
3159
  if (allowed) {
2856
- return this.Navvy.mapAndSnackBarError(this.BXRestElapseditem.add(param), 'Не удалось добавить запись о времени');
3160
+ return this.BXRestElapseditem.add(param);
2857
3161
  }
2858
3162
  else {
2859
- this.snackBar.error('Отсутствуют права добавление записи затраченного времени');
2860
- return of(false);
3163
+ return throwError(() => new Error('Отсутствуют права добавление записи затраченного времени'));
2861
3164
  }
2862
3165
  }));
2863
3166
  }
2864
3167
  else {
2865
- this.snackBar.error('Отсутствуют права на чтение задачи');
2866
- return of(false);
3168
+ return throwError(() => new Error('Отсутствуют права на чтение задачи'));
2867
3169
  }
2868
3170
  }));
2869
3171
  }
2870
3172
  update(param) {
2871
- return this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
3173
+ return this.Navvy.simple(() => this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
2872
3174
  if (allowedReadTask) {
2873
3175
  return this.isAllowedModify(param.TASKID, param.ITEMID).pipe(mergeMap(allowed => {
2874
3176
  if (allowed) {
2875
- return this.Navvy.mapAndSnackBarError(this.BXRestElapseditem.update(param), 'Не удалось обновить запись о времени');
3177
+ return this.BXRestElapseditem.update(param);
2876
3178
  }
2877
3179
  else {
2878
- this.snackBar.error('Отсутствуют права на изменение записи затраченного времени');
2879
- return of(false);
3180
+ return throwError(() => new Error('Отсутствуют права на изменение записи затраченного времени'));
2880
3181
  }
2881
3182
  }));
2882
3183
  }
2883
3184
  else {
2884
- this.snackBar.error('Отсутствуют права на чтение задачи');
2885
- return of(false);
3185
+ return throwError(() => new Error('Отсутствуют права на чтение задачи'));
2886
3186
  }
2887
- }));
3187
+ })), 'Не удалось обновить элемент списка', this.BXRestMapElapseditem.update);
2888
3188
  }
2889
3189
  /*
2890
3190
  getAll(
@@ -2921,8 +3221,22 @@ class BXRestNavvyElapseditem {
2921
3221
  }
2922
3222
  */
2923
3223
  /*
2924
- getByInterval(idsUsers: number[], dateStart: Date, dateEnd: Date, cache = false) {
2925
- return this.getAll({
3224
+ getByInterval(idsUsers: number[], dateStart: Date, dateEnd: Date) {
3225
+ return new Navvy(
3226
+ this.BXRestElapseditem.getList(
3227
+ {
3228
+ ORDER: {
3229
+ ID: 'DESC'
3230
+ },
3231
+ FILTER: {
3232
+ USER_ID: idsUsers,
3233
+ '>=CREATED_DATE': dateStart.toLocaleString('ru-Ru'),
3234
+ '<=CREATED_DATE': dateEnd.toLocaleString('ru-Ru'),
3235
+ }
3236
+ }
3237
+ ))
3238
+ /*
3239
+ return this.BXRestElapseditem.getList({
2926
3240
  ORDER: {
2927
3241
  ID: 'DESC'
2928
3242
  },
@@ -2931,39 +3245,39 @@ class BXRestNavvyElapseditem {
2931
3245
  '>=CREATED_DATE': dateStart.toLocaleString('ru-Ru'),
2932
3246
  '<=CREATED_DATE': dateEnd.toLocaleString('ru-Ru'),
2933
3247
  }
2934
- },
2935
- cache
2936
- ).pipe(
2937
- map(v => this.http.mapResult(v))
3248
+ }
2938
3249
  )
2939
- }
2940
3250
  */
2941
3251
  /*
2942
- getCacheOff(params: RequestParamsElapsedGetList | undefined = undefined) {
2943
- return this.http.post<iHttpAnswerBX<BXRestElapsedHttp[]> | undefined>
2944
- (this.url.getlist, params, 'не удалось получить время по задачам')
2945
- .pipe(
2946
- map(v => {
2947
- if (v && v.result) {
2948
- const newResult: BXRestElapsed[] = []
2949
- for (let task of v.result) {
2950
- newResult.push(this.elapsedBXMap.AnswerElapsedGetHttpToAnswerElapsedGet(task))
3252
+ }
3253
+
3254
+
3255
+ /*
3256
+ getCacheOff(params: RequestParamsElapsedGetList | undefined = undefined) {
3257
+ return this.http.post<iHttpAnswerBX<BXRestElapsedHttp[]> | undefined>
3258
+ (this.url.getlist, params, 'не удалось получить время по задачам')
3259
+ .pipe(
3260
+ map(v => {
3261
+ if (v && v.result) {
3262
+ const newResult: BXRestElapsed[] = []
3263
+ for (let task of v.result) {
3264
+ newResult.push(this.elapsedBXMap.AnswerElapsedGetHttpToAnswerElapsedGet(task))
3265
+ }
3266
+ return extend(v, {result: newResult}) as iHttpAnswerBX<BXRestElapsed[]>
2951
3267
  }
2952
- return extend(v, {result: newResult}) as iHttpAnswerBX<BXRestElapsed[]>
2953
- }
2954
- return undefined
2955
- }),
2956
- tap(v => {
2957
- if (v && params) {
2958
- this.store.dispatch(saveHttpTaskTime({
2959
- filter: clone(params),
2960
- time: v
2961
- }))
2962
- }
2963
- })
2964
- )
2965
- }
2966
- */
3268
+ return undefined
3269
+ }),
3270
+ tap(v => {
3271
+ if (v && params) {
3272
+ this.store.dispatch(saveHttpTaskTime({
3273
+ filter: clone(params),
3274
+ time: v
3275
+ }))
3276
+ }
3277
+ })
3278
+ )
3279
+ }
3280
+ */
2967
3281
  isAllowedModify(idTask, idItem) {
2968
3282
  let permission = Permission.get();
2969
3283
  if (permission?.tasks?.length) {
@@ -2979,7 +3293,7 @@ class BXRestNavvyElapseditem {
2979
3293
  TASKID: idTask,
2980
3294
  ITEMID: 2,
2981
3295
  ACTIONID: idItem
2982
- }).pipe(tap(v => {
3296
+ }).result().pipe(tap(v => {
2983
3297
  if (v !== undefined) {
2984
3298
  Permission.setTaskElapsedItem(idTask, {
2985
3299
  id: idItem,
@@ -2998,7 +3312,7 @@ class BXRestNavvyElapseditem {
2998
3312
  TASKID: idTask,
2999
3313
  ITEMID: 3,
3000
3314
  ACTIONID: idItem
3001
- });
3315
+ }).result();
3002
3316
  }
3003
3317
  /**
3004
3318
  * idAction:
@@ -3008,15 +3322,39 @@ class BXRestNavvyElapseditem {
3008
3322
  * @param param
3009
3323
  */
3010
3324
  isActionAllowed(param) {
3011
- return this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(canRead => {
3325
+ return this.Navvy.simple(() => this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(canRead => {
3012
3326
  if (canRead) {
3013
- this.Navvy.mapAndSnackBarError(this.BXRestElapseditem.isActionAllowed(param), '').pipe(catchError(v => {
3014
- console.error(v);
3015
- return of(false);
3016
- }));
3327
+ return this.BXRestElapseditem.isActionAllowed(param);
3017
3328
  }
3018
- return of(false);
3019
- }));
3329
+ return throwError(() => new Error('Отсутствуют права на чтение задачи'));
3330
+ })));
3331
+ }
3332
+ checkPermissionAddTask(idTask) {
3333
+ let permission = Permission.get();
3334
+ if (permission?.tasks?.length) {
3335
+ let findTask = permission.tasks.find(i => i.id === idTask);
3336
+ if (findTask?.permission) {
3337
+ return of(findTask.permission['ELAPSEDTIME.ADD']);
3338
+ }
3339
+ return this.BXRestNavvyUser.current().result().pipe(mergeMap(self => {
3340
+ if (self) {
3341
+ return this.BXRestNavvyTasks.task.getaccess({
3342
+ id: idTask,
3343
+ users: [self.ID]
3344
+ }).result().pipe(tap(v => {
3345
+ if (v && v[self.ID]) {
3346
+ Permission.set({
3347
+ tasks: [{ id: idTask, permission: v[self.ID], elapsedItem: [] }]
3348
+ });
3349
+ }
3350
+ }), map(v => {
3351
+ return (v && v[self.ID]) ? v[self.ID]['ELAPSEDTIME.ADD'] : false;
3352
+ }));
3353
+ }
3354
+ return of(undefined);
3355
+ }));
3356
+ }
3357
+ return of(undefined);
3020
3358
  }
3021
3359
  checkPermissionReadTask(idTask) {
3022
3360
  let permission = Permission.get();
@@ -3025,12 +3363,12 @@ class BXRestNavvyElapseditem {
3025
3363
  if (findTask?.permission) {
3026
3364
  return of(findTask.permission.ACCEPT);
3027
3365
  }
3028
- return this.BXRestNavvyUser.current().pipe(mergeMap(self => {
3366
+ return this.BXRestNavvyUser.current().result().pipe(mergeMap(self => {
3029
3367
  if (self) {
3030
3368
  return this.BXRestNavvyTasks.task.getaccess({
3031
3369
  id: idTask,
3032
3370
  users: [self.ID]
3033
- }).pipe(tap(v => {
3371
+ }).result().pipe(tap(v => {
3034
3372
  if (v && v[self.ID]) {
3035
3373
  Permission.set({
3036
3374
  tasks: [{ id: idTask, permission: v[self.ID], elapsedItem: [] }]
@@ -3046,43 +3384,40 @@ class BXRestNavvyElapseditem {
3046
3384
  return of(undefined);
3047
3385
  }
3048
3386
  del(param) {
3049
- return this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
3387
+ return this.Navvy.simple(() => this.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
3050
3388
  if (allowedReadTask) {
3051
3389
  return this.isAllowedRemove(param.TASKID, param.ITEMID).pipe(mergeMap(allowed => {
3052
3390
  if (allowed) {
3053
- return this.Navvy.mapAndSnackBarError(this.BXRestElapseditem.del(param), 'Не удалось удалить запись')
3054
- .pipe(map(v => (v === null)));
3391
+ return this.BXRestElapseditem.del(param);
3055
3392
  }
3056
3393
  else {
3057
- this.snackBar.error('Отсутствуют права на удаление записи затраченного времени');
3058
- return of(false);
3394
+ return throwError(() => new Error('Отсутствуют права на удаление записи затраченного времени'));
3059
3395
  }
3060
3396
  }));
3061
3397
  }
3062
3398
  else {
3063
- this.snackBar.error('Отсутствуют права на чтение задачи');
3064
- return of(false);
3399
+ return throwError(() => new Error('Отсутствуют права на чтение задачи'));
3065
3400
  }
3066
- }));
3401
+ })), 'Не удалось удалить элемент списка', v => (v === null));
3067
3402
  }
3403
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, deps: [{ token: BXRestElapseditem }, { token: BXRestNavvyUser }, { token: BXRestNavvyTasks }, { token: BXRestMapTaskElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
3404
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, providedIn: 'root' }); }
3068
3405
  }
3069
- BXRestNavvyElapseditem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyElapseditem, deps: [{ token: BXRestElapseditem }, { token: BXRestNavvyUser }, { token: BXRestNavvyTasks }, { token: Navvy }, { token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable });
3070
- BXRestNavvyElapseditem.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyElapseditem, providedIn: 'root' });
3071
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyElapseditem, decorators: [{
3406
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, decorators: [{
3072
3407
  type: Injectable,
3073
3408
  args: [{
3074
3409
  providedIn: 'root'
3075
3410
  }]
3076
- }], ctorParameters: function () { return [{ type: BXRestElapseditem }, { type: BXRestNavvyUser }, { type: BXRestNavvyTasks }, { type: Navvy }, { type: SnackBarService }]; } });
3411
+ }], ctorParameters: function () { return [{ type: BXRestElapseditem }, { type: BXRestNavvyUser }, { type: BXRestNavvyTasks }, { type: BXRestMapTaskElapseditem }]; } });
3077
3412
 
3078
3413
  class BXRestNavvyTask {
3079
3414
  constructor(elapseditem) {
3080
3415
  this.elapseditem = elapseditem;
3081
3416
  }
3417
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTask, deps: [{ token: BXRestNavvyElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
3418
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTask, providedIn: 'root' }); }
3082
3419
  }
3083
- BXRestNavvyTask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTask, deps: [{ token: BXRestNavvyElapseditem }], target: i0.ɵɵFactoryTarget.Injectable });
3084
- BXRestNavvyTask.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTask, providedIn: 'root' });
3085
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyTask, decorators: [{
3420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTask, decorators: [{
3086
3421
  type: Injectable,
3087
3422
  args: [{
3088
3423
  providedIn: 'root'
@@ -3133,10 +3468,10 @@ class BXRestMapDiskBase extends BaseMapServices {
3133
3468
  instanceOfiFolder(object) {
3134
3469
  return object && object.TYPE && object.TYPE === 'folder';
3135
3470
  }
3471
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskBase, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3472
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskBase, providedIn: 'root' }); }
3136
3473
  }
3137
- BXRestMapDiskBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskBase, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3138
- BXRestMapDiskBase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskBase, providedIn: 'root' });
3139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskBase, decorators: [{
3474
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskBase, decorators: [{
3140
3475
  type: Injectable,
3141
3476
  args: [{
3142
3477
  providedIn: 'root'
@@ -3145,12 +3480,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3145
3480
 
3146
3481
  class BXRestMapDiskFolder extends BXRestMapDiskBase {
3147
3482
  getContent(arr) {
3148
- return this.separationFoldersAndFiles(arr);
3483
+ return (arr) ? this.separationFoldersAndFiles(arr) : { file: [], folder: [] };
3149
3484
  }
3485
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFolder, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3486
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFolder, providedIn: 'root' }); }
3150
3487
  }
3151
- BXRestMapDiskFolder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskFolder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3152
- BXRestMapDiskFolder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskFolder, providedIn: 'root' });
3153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskFolder, decorators: [{
3488
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFolder, decorators: [{
3154
3489
  type: Injectable,
3155
3490
  args: [{
3156
3491
  providedIn: 'root'
@@ -3158,10 +3493,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3158
3493
  }] });
3159
3494
 
3160
3495
  class BXRestNavvyDiskFolder {
3161
- constructor(BXRestDiskFolder, BXRestMapDiskFolder, Navvy) {
3496
+ constructor(BXRestDiskFolder, BXRestMapDiskFolder) {
3162
3497
  this.BXRestDiskFolder = BXRestDiskFolder;
3163
3498
  this.BXRestMapDiskFolder = BXRestMapDiskFolder;
3164
- this.Navvy = Navvy;
3499
+ this.Navvy = new Navvy(this.BXRestDiskFolder, this.BXRestMapDiskFolder);
3165
3500
  }
3166
3501
  // uploadfile(id: number, fileContent: string[]) {
3167
3502
  // return this.httpPost(
@@ -3178,64 +3513,65 @@ class BXRestNavvyDiskFolder {
3178
3513
  // )
3179
3514
  // }
3180
3515
  getchildren(id) {
3181
- return this.Navvy.mapAndSnackBarError(this.BXRestDiskFolder.getchildren(id), 'get folders and files').pipe(map(v => {
3182
- if (v) {
3183
- return this.BXRestMapDiskFolder.getContent(v);
3184
- }
3185
- return { file: [], folder: [] };
3186
- }));
3516
+ return this.Navvy.simpleWithArg(this.BXRestDiskFolder.getchildren, id, 'get folders and files', this.BXRestMapDiskFolder.getContent);
3187
3517
  }
3518
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFolder, deps: [{ token: BXRestDiskFolder }, { token: BXRestMapDiskFolder }], target: i0.ɵɵFactoryTarget.Injectable }); }
3519
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFolder, providedIn: 'root' }); }
3188
3520
  }
3189
- 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 });
3190
- BXRestNavvyDiskFolder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFolder, providedIn: 'root' });
3191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFolder, decorators: [{
3521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFolder, decorators: [{
3192
3522
  type: Injectable,
3193
3523
  args: [{
3194
3524
  providedIn: 'root'
3195
3525
  }]
3196
- }], ctorParameters: function () { return [{ type: BXRestDiskFolder }, { type: BXRestMapDiskFolder }, { type: Navvy }]; } });
3526
+ }], ctorParameters: function () { return [{ type: BXRestDiskFolder }, { type: BXRestMapDiskFolder }]; } });
3197
3527
 
3198
- class BXRestNavvyDiskFile extends BaseServices {
3199
- constructor(BXRestDiskFile, Navvy) {
3200
- super();
3528
+ class BXRestMapDiskFile extends BaseMapServices {
3529
+ get(v) {
3530
+ return (v) ? Object.assign(v, { SIZE: this.toNum(v.SIZE) }) : undefined;
3531
+ }
3532
+ markdeleted(v) {
3533
+ return (v) ? Object.assign(v, { SIZE: this.toNum(v.SIZE) }) : undefined;
3534
+ }
3535
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFile, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3536
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFile, providedIn: 'root' }); }
3537
+ }
3538
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFile, decorators: [{
3539
+ type: Injectable,
3540
+ args: [{
3541
+ providedIn: 'root'
3542
+ }]
3543
+ }] });
3544
+
3545
+ class BXRestNavvyDiskFile {
3546
+ constructor(BXRestDiskFile, BXRestMapDiskFile) {
3201
3547
  this.BXRestDiskFile = BXRestDiskFile;
3202
- this.Navvy = Navvy;
3548
+ this.BXRestMapDiskFile = BXRestMapDiskFile;
3549
+ this.Navvy = new Navvy(this.BXRestDiskFile, this.BXRestMapDiskFile);
3203
3550
  }
3204
3551
  get(id) {
3205
- return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.get(id), 'Не удалось получить файл').pipe(map(v => {
3206
- if (v) {
3207
- return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
3208
- }
3209
- return undefined;
3210
- }));
3552
+ return this.Navvy.simpleWithArg(this.BXRestDiskFile.get, id, 'Не удалось получить файл', this.BXRestMapDiskFile.get);
3211
3553
  }
3212
- markDel(id) {
3213
- return this.Navvy.mapAndSnackBarError(this.BXRestDiskFile.markDel(id), 'Не удалось переместить файл в корзину')
3214
- .pipe(map(v => {
3215
- if (v) {
3216
- return Object.assign(v, { SIZE: this.toNum(v.SIZE) });
3217
- }
3218
- return undefined;
3219
- }));
3554
+ markdeleted(id) {
3555
+ return this.Navvy.simpleWithArg(this.BXRestDiskFile.markdeleted, id, 'Не удалось переместить файл в корзину', this.BXRestMapDiskFile.markdeleted);
3220
3556
  }
3557
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFile, deps: [{ token: BXRestDiskFile }, { token: BXRestMapDiskFile }], target: i0.ɵɵFactoryTarget.Injectable }); }
3558
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' }); }
3221
3559
  }
3222
- 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 });
3223
- BXRestNavvyDiskFile.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' });
3224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
3560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
3225
3561
  type: Injectable,
3226
3562
  args: [{
3227
3563
  providedIn: 'root'
3228
3564
  }]
3229
- }], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: Navvy }]; } });
3565
+ }], ctorParameters: function () { return [{ type: BXRestDiskFile }, { type: BXRestMapDiskFile }]; } });
3230
3566
 
3231
3567
  class BXRestMapDiskStorage extends BXRestMapDiskBase {
3232
3568
  getchildren(arr) {
3233
- return this.separationFoldersAndFiles(arr);
3569
+ return (arr) ? this.separationFoldersAndFiles(arr) : { file: [], folder: [] };
3234
3570
  }
3571
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskStorage, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3572
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskStorage, providedIn: 'root' }); }
3235
3573
  }
3236
- BXRestMapDiskStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskStorage, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3237
- BXRestMapDiskStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskStorage, providedIn: 'root' });
3238
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskStorage, decorators: [{
3574
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskStorage, decorators: [{
3239
3575
  type: Injectable,
3240
3576
  args: [{
3241
3577
  providedIn: 'root'
@@ -3263,7 +3599,6 @@ class BXRestDiskStorage {
3263
3599
  getforapp() {
3264
3600
  return this.http.post(this.url.getforapp, {});
3265
3601
  }
3266
- // TODO: разобраться с фильтром
3267
3602
  getchildren(param) {
3268
3603
  return this.http.post(this.url.getchildren, param);
3269
3604
  }
@@ -3274,23 +3609,19 @@ class BXRestDiskStorage {
3274
3609
  uploadfile(param) {
3275
3610
  return this.http.post(this.url.uploadfile, param);
3276
3611
  }
3612
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskStorage, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
3613
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskStorage, providedIn: 'root' }); }
3277
3614
  }
3278
- BXRestDiskStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskStorage, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
3279
- BXRestDiskStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskStorage, providedIn: 'root' });
3280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestDiskStorage, decorators: [{
3615
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskStorage, decorators: [{
3281
3616
  type: Injectable,
3282
3617
  args: [{
3283
3618
  providedIn: 'root'
3284
3619
  }]
3285
3620
  }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
3286
3621
 
3287
- class BXRestNavvyDiskStorage {
3288
- // BXDiskFolder$ = new Observable<BXDiskFolderStore>()
3289
- constructor(BXRestDiskStorage, BXRestMapDiskStorage, Navvy) {
3622
+ class BXRestNavvyInterlayerDiskStorage {
3623
+ constructor(BXRestDiskStorage) {
3290
3624
  this.BXRestDiskStorage = BXRestDiskStorage;
3291
- this.BXRestMapDiskStorage = BXRestMapDiskStorage;
3292
- this.Navvy = Navvy;
3293
- // this.BXDiskFolder$ = this.store.select('BXDiskFolder')
3294
3625
  }
3295
3626
  getforapp() {
3296
3627
  let res = SessionStorage.getItem(this.constructor.name + this.getforapp.name);
@@ -3298,38 +3629,99 @@ class BXRestNavvyDiskStorage {
3298
3629
  return of(res);
3299
3630
  }
3300
3631
  else {
3301
- return this.Navvy.mapAndSnackBarError(this.BXRestDiskStorage.getforapp(), 'get root app folder').pipe(tap(v => {
3632
+ return this.BXRestDiskStorage.getforapp().pipe(tap(v => {
3302
3633
  if (v) {
3303
3634
  SessionStorage.setItem(this.constructor.name + this.getforapp.name, v);
3304
3635
  }
3305
- }));
3636
+ }), shareReplay(1));
3306
3637
  }
3307
3638
  }
3308
- // TODO: разобраться с фильтром позже
3309
- getchildren(param) {
3310
- return this.Navvy.mapAndSnackBarError(this.BXRestDiskStorage.getchildren(param), 'get root app folders and files').pipe(map(v => {
3311
- if (v && v.length) {
3312
- return this.BXRestMapDiskStorage.getchildren(v);
3639
+ /*
3640
+ private getforappEnd(){
3641
+ console.log('this.BXRestDiskStorage.getforapp()', this.BXRestDiskStorage.getforapp())
3642
+ let res = SessionStorage.getItem<iBXRestFolderInfo>(this.constructor.name + this.getforapp.name)
3643
+ if(res){
3644
+ return of({result: res})
3645
+ } else {
3646
+ console.log('this.BXRestDiskStorage.getforapp()', this.BXRestDiskStorage, this.BXRestDiskStorage.getforapp())
3647
+ return this.BXRestDiskStorage.getforapp().pipe(
3648
+ tap(v => {
3649
+ if(v){
3650
+ SessionStorage.setItem(this.constructor.name + this.getforapp.name, v)
3313
3651
  }
3314
- return { file: [], folder: [] };
3315
- }));
3652
+ })
3653
+ )
3654
+ }
3655
+ }
3656
+ */
3657
+ getchildren(param) {
3658
+ return this.BXRestDiskStorage.getchildren(param);
3316
3659
  }
3317
3660
  // TODO: разобраться что возвращает и что вставлять
3318
3661
  addfolder(param) {
3319
- return this.BXRestDiskStorage.addfolder(param).pipe(map(v => BXRestMapResult(v)));
3662
+ return this.BXRestDiskStorage.addfolder(param);
3320
3663
  }
3321
3664
  uploadfile(param) {
3322
3665
  return this.BXRestDiskStorage.uploadfile(param);
3323
3666
  }
3667
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyInterlayerDiskStorage, deps: [{ token: BXRestDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable }); }
3668
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyInterlayerDiskStorage, providedIn: 'root' }); }
3324
3669
  }
3325
- BXRestNavvyDiskStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskStorage, deps: [{ token: BXRestDiskStorage }, { token: BXRestMapDiskStorage }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
3326
- BXRestNavvyDiskStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskStorage, providedIn: 'root' });
3327
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskStorage, decorators: [{
3670
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyInterlayerDiskStorage, decorators: [{
3328
3671
  type: Injectable,
3329
3672
  args: [{
3330
3673
  providedIn: 'root'
3331
3674
  }]
3332
- }], ctorParameters: function () { return [{ type: BXRestDiskStorage }, { type: BXRestMapDiskStorage }, { type: Navvy }]; } });
3675
+ }], ctorParameters: function () { return [{ type: BXRestDiskStorage }]; } });
3676
+
3677
+ class BXRestNavvyDiskStorage {
3678
+ constructor(BXRestNavvyInterlayerDiskStorage, BXRestMapDiskStorage) {
3679
+ this.BXRestNavvyInterlayerDiskStorage = BXRestNavvyInterlayerDiskStorage;
3680
+ this.BXRestMapDiskStorage = BXRestMapDiskStorage;
3681
+ this.Navvy = new Navvy(this.BXRestNavvyInterlayerDiskStorage, this.BXRestMapDiskStorage);
3682
+ // this.BXDiskFolder$ = this.store.select('BXDiskFolder')
3683
+ }
3684
+ getforapp() {
3685
+ // console.log('this.getforappEnd', this.getforappEnd)
3686
+ return this.Navvy.simple(this.BXRestNavvyInterlayerDiskStorage.getforapp, 'get root app folder');
3687
+ }
3688
+ /*
3689
+ private getforappEnd(){
3690
+ console.log('this.BXRestDiskStorage.getforapp()', this.BXRestDiskStorage.getforapp())
3691
+ let res = SessionStorage.getItem<iBXRestFolderInfo>(this.constructor.name + this.getforapp.name)
3692
+ if(res){
3693
+ return of({result: res})
3694
+ } else {
3695
+ console.log('this.BXRestDiskStorage.getforapp()', this.BXRestDiskStorage, this.BXRestDiskStorage.getforapp())
3696
+ return this.BXRestDiskStorage.getforapp().pipe(
3697
+ tap(v => {
3698
+ if(v){
3699
+ SessionStorage.setItem(this.constructor.name + this.getforapp.name, v)
3700
+ }
3701
+ })
3702
+ )
3703
+ }
3704
+ }
3705
+ */
3706
+ getchildren(param) {
3707
+ return this.Navvy.simpleWithArg(this.BXRestNavvyInterlayerDiskStorage.getchildren, param, 'get root app folders and files', this.BXRestMapDiskStorage.getchildren);
3708
+ }
3709
+ // TODO: разобраться что возвращает и что вставлять
3710
+ addfolder(param) {
3711
+ return this.Navvy.simpleWithArg(this.BXRestNavvyInterlayerDiskStorage.addfolder, param);
3712
+ }
3713
+ uploadfile(param) {
3714
+ return this.Navvy.simpleWithArg(this.BXRestNavvyInterlayerDiskStorage.uploadfile, param);
3715
+ }
3716
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskStorage, deps: [{ token: BXRestNavvyInterlayerDiskStorage }, { token: BXRestMapDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable }); }
3717
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskStorage, providedIn: 'root' }); }
3718
+ }
3719
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskStorage, decorators: [{
3720
+ type: Injectable,
3721
+ args: [{
3722
+ providedIn: 'root'
3723
+ }]
3724
+ }], ctorParameters: function () { return [{ type: BXRestNavvyInterlayerDiskStorage }, { type: BXRestMapDiskStorage }]; } });
3333
3725
 
3334
3726
  class BXRestNavvyDiskOperation {
3335
3727
  constructor(folder, disk, storage) {
@@ -3339,7 +3731,7 @@ class BXRestNavvyDiskOperation {
3339
3731
  }
3340
3732
  // данные файла в base64
3341
3733
  loadFileInAppFolder(file) {
3342
- return this.storage.getforapp().pipe(take(1), mergeMap$1(infoFolder => {
3734
+ return this.storage.getforapp().result().pipe(mergeMap$1(infoFolder => {
3343
3735
  if (infoFolder) {
3344
3736
  return this.storage.uploadfile({
3345
3737
  id: infoFolder.ID,
@@ -3348,15 +3740,15 @@ class BXRestNavvyDiskOperation {
3348
3740
  NAME: file.name
3349
3741
  },
3350
3742
  generateUniqueName: true
3351
- }).pipe(map(v => BXRestMapResult(v)));
3743
+ }).result();
3352
3744
  }
3353
- return of(undefined);
3745
+ return throwError(() => new Error('Отсутствует общее хранилище для приложения'));
3354
3746
  }));
3355
3747
  }
3356
3748
  getOfCreateRootContentFolderApp(folderName) {
3357
3749
  return this.getOfCreateRootFolderApp(folderName).pipe(mergeMap$1(v => {
3358
3750
  if (v) {
3359
- return this.folder.getchildren(v.ID);
3751
+ return this.folder.getchildren(v.ID).mapForVanilla();
3360
3752
  }
3361
3753
  return of(undefined);
3362
3754
  }));
@@ -3369,16 +3761,9 @@ class BXRestNavvyDiskOperation {
3369
3761
  // if (saveData.content.root.app) {
3370
3762
  // return of(saveData.content.root.app)
3371
3763
  // }
3372
- return this.storage.getforapp().pipe(mergeMap$1(v => {
3764
+ return this.storage.getforapp().result().pipe(mergeMap$1(v => {
3373
3765
  if (v && v.ID) {
3374
- return this.storage.getchildren({ id: v.ID });
3375
- // .pipe(
3376
- // tap(v => {
3377
- // if (v) {
3378
- // this.store.dispatch(saveContentRootAppInfo({value: v}))
3379
- // }
3380
- // })
3381
- // )
3766
+ return this.storage.getchildren({ id: v.ID }).result();
3382
3767
  }
3383
3768
  return of(undefined);
3384
3769
  }));
@@ -3396,22 +3781,22 @@ class BXRestNavvyDiskOperation {
3396
3781
  if (v.folder.length) {
3397
3782
  let find = v.folder.find(i => i.NAME === folderName);
3398
3783
  if (find) {
3399
- return of(find);
3784
+ return of({ result: find });
3400
3785
  }
3401
3786
  }
3402
3787
  }
3403
- return this.storage.getforapp().pipe(mergeMap$1(v => {
3788
+ return this.storage.getforapp().result().pipe(mergeMap$1(v => {
3404
3789
  if (v && v.ID) {
3405
- return this.storage.addfolder({ id: v.ID, data: { NAME: folderName } });
3790
+ return this.storage.addfolder({ id: v.ID, data: { NAME: folderName } }).result();
3406
3791
  }
3407
- return of(undefined);
3792
+ return throwError(() => new Error('Отсутствуют права добавление записи затраченного времени'));
3408
3793
  }));
3409
3794
  }));
3410
3795
  }
3796
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskOperation, deps: [{ token: BXRestNavvyDiskFolder }, { token: BXRestNavvyDiskFile }, { token: BXRestNavvyDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable }); }
3797
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskOperation, providedIn: 'root' }); }
3411
3798
  }
3412
- 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 });
3413
- BXRestNavvyDiskOperation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, providedIn: 'root' });
3414
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskOperation, decorators: [{
3799
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskOperation, decorators: [{
3415
3800
  type: Injectable,
3416
3801
  args: [{
3417
3802
  providedIn: 'root'
@@ -3432,10 +3817,10 @@ class BXRestMapDiskAttachedObject extends BXRestMapDiskBase {
3432
3817
  SIZE: this.toNum(v.SIZE)
3433
3818
  });
3434
3819
  }
3820
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskAttachedObject, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3821
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskAttachedObject, providedIn: 'root' }); }
3435
3822
  }
3436
- BXRestMapDiskAttachedObject.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3437
- BXRestMapDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, providedIn: 'root' });
3438
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapDiskAttachedObject, decorators: [{
3823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskAttachedObject, decorators: [{
3439
3824
  type: Injectable,
3440
3825
  args: [{
3441
3826
  providedIn: 'root'
@@ -3443,23 +3828,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3443
3828
  }] });
3444
3829
 
3445
3830
  class BXRestNavvyDiskAttachedObject {
3446
- constructor(BXRestDiskAttachedObject, mapAttachedObject, Navvy) {
3831
+ constructor(BXRestDiskAttachedObject, mapAttachedObject) {
3447
3832
  this.BXRestDiskAttachedObject = BXRestDiskAttachedObject;
3448
3833
  this.mapAttachedObject = mapAttachedObject;
3449
- this.Navvy = Navvy;
3834
+ this.Navvy = new Navvy(this.BXRestDiskAttachedObject, this.mapAttachedObject);
3450
3835
  }
3451
3836
  get(id) {
3452
- return this.Navvy.mapAndSnackBarError(this.BXRestDiskAttachedObject.get(id), 'Не удалось получить прикреплённый файл').pipe(map(v => this.mapAttachedObject.get(v)));
3837
+ return this.Navvy.simpleWithArg(this.BXRestDiskAttachedObject.get, id, 'Не удалось получить прикрепленные файлы', this.mapAttachedObject.get);
3453
3838
  }
3839
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskAttachedObject, deps: [{ token: BXRestDiskAttachedObject }, { token: BXRestMapDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable }); }
3840
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskAttachedObject, providedIn: 'root' }); }
3454
3841
  }
3455
- 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 });
3456
- BXRestNavvyDiskAttachedObject.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskAttachedObject, providedIn: 'root' });
3457
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDiskAttachedObject, decorators: [{
3842
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskAttachedObject, decorators: [{
3458
3843
  type: Injectable,
3459
3844
  args: [{
3460
3845
  providedIn: 'root'
3461
3846
  }]
3462
- }], ctorParameters: function () { return [{ type: BXRestDiskAttachedObject }, { type: BXRestMapDiskAttachedObject }, { type: Navvy }]; } });
3847
+ }], ctorParameters: function () { return [{ type: BXRestDiskAttachedObject }, { type: BXRestMapDiskAttachedObject }]; } });
3463
3848
 
3464
3849
  class BXRestNavvyDisk {
3465
3850
  constructor(operation, file, folder, attachedObject) {
@@ -3468,10 +3853,10 @@ class BXRestNavvyDisk {
3468
3853
  this.folder = folder;
3469
3854
  this.attachedObject = attachedObject;
3470
3855
  }
3856
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDisk, deps: [{ token: BXRestNavvyDiskOperation }, { token: BXRestNavvyDiskFile }, { token: BXRestNavvyDiskFolder }, { token: BXRestNavvyDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable }); }
3857
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDisk, providedIn: 'root' }); }
3471
3858
  }
3472
- 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 });
3473
- BXRestNavvyDisk.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, providedIn: 'root' });
3474
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyDisk, decorators: [{
3859
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDisk, decorators: [{
3475
3860
  type: Injectable,
3476
3861
  args: [{
3477
3862
  providedIn: 'root'
@@ -3479,22 +3864,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3479
3864
  }], ctorParameters: function () { return [{ type: BXRestNavvyDiskOperation }, { type: BXRestNavvyDiskFile }, { type: BXRestNavvyDiskFolder }, { type: BXRestNavvyDiskAttachedObject }]; } });
3480
3865
 
3481
3866
  class BXRestNavvyBizprocWorkflow {
3482
- constructor(BXRestBizprocWorkflow, Navvy) {
3867
+ constructor(BXRestBizprocWorkflow) {
3483
3868
  this.BXRestBizprocWorkflow = BXRestBizprocWorkflow;
3484
- this.Navvy = Navvy;
3869
+ this.Navvy = new Navvy(this.BXRestBizprocWorkflow, undefined);
3485
3870
  }
3486
3871
  start(param) {
3487
- return this.Navvy.mapAndSnackBarError(this.BXRestBizprocWorkflow.start(param), 'Не удалось запустить бизнес процесс');
3872
+ return this.Navvy.simpleWithArg(this.BXRestBizprocWorkflow.start, param, 'Не удалось запустить бизнес процесс');
3488
3873
  }
3874
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflow }], target: i0.ɵɵFactoryTarget.Injectable }); }
3875
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizprocWorkflow, providedIn: 'root' }); }
3489
3876
  }
3490
- BXRestNavvyBizprocWorkflow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflow }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
3491
- BXRestNavvyBizprocWorkflow.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizprocWorkflow, providedIn: 'root' });
3492
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizprocWorkflow, decorators: [{
3877
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizprocWorkflow, decorators: [{
3493
3878
  type: Injectable,
3494
3879
  args: [{
3495
3880
  providedIn: 'root'
3496
3881
  }]
3497
- }], ctorParameters: function () { return [{ type: BXRestBizprocWorkflow }, { type: Navvy }]; } });
3882
+ }], ctorParameters: function () { return [{ type: BXRestBizprocWorkflow }]; } });
3498
3883
 
3499
3884
  class BXRestNavvyBizproc {
3500
3885
  constructor(workflow, BXRestNavvyLists) {
@@ -3503,6 +3888,7 @@ class BXRestNavvyBizproc {
3503
3888
  }
3504
3889
  /**
3505
3890
  * Метод по запуску бизнес процессов из ленты
3891
+ * TODO: продумать работу с такими методами-исключениями
3506
3892
  *
3507
3893
  * @param id
3508
3894
  * @param parametersElement
@@ -3521,7 +3907,7 @@ class BXRestNavvyBizproc {
3521
3907
  NAME: parametersElement['NAME'],
3522
3908
  ...parametersElement
3523
3909
  }
3524
- }).pipe(mergeMap(v => {
3910
+ }).result().pipe(mergeMap(v => {
3525
3911
  if (v) {
3526
3912
  if (Object.keys(parametersBizproc).length) {
3527
3913
  let reques = [];
@@ -3530,7 +3916,7 @@ class BXRestNavvyBizproc {
3530
3916
  TEMPLATE_ID: templateID,
3531
3917
  DOCUMENT_ID: ['lists', 'BizprocDocument', String(v)],
3532
3918
  PARAMETERS: parametersBizproc
3533
- }));
3919
+ }).result());
3534
3920
  }
3535
3921
  return forkJoin(reques);
3536
3922
  }
@@ -3538,13 +3924,13 @@ class BXRestNavvyBizproc {
3538
3924
  return of(true);
3539
3925
  }
3540
3926
  }
3541
- return of(false);
3927
+ return throwError(() => new Error('Не удалось запустить бизнес процесс'));
3542
3928
  }));
3543
3929
  }
3930
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizproc, deps: [{ token: BXRestNavvyBizprocWorkflow }, { token: BXRestNavvyLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
3931
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizproc, providedIn: 'root' }); }
3544
3932
  }
3545
- BXRestNavvyBizproc.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizproc, deps: [{ token: BXRestNavvyBizprocWorkflow }, { token: BXRestNavvyLists }], target: i0.ɵɵFactoryTarget.Injectable });
3546
- BXRestNavvyBizproc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizproc, providedIn: 'root' });
3547
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyBizproc, decorators: [{
3933
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizproc, decorators: [{
3548
3934
  type: Injectable,
3549
3935
  args: [{
3550
3936
  providedIn: 'root'
@@ -3552,9 +3938,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3552
3938
  }], ctorParameters: function () { return [{ type: BXRestNavvyBizprocWorkflow }, { type: BXRestNavvyLists }]; } });
3553
3939
 
3554
3940
  class BXRestNavvyLogBlogPost {
3555
- constructor(BXRestLogBlogPost, Navvy) {
3941
+ constructor(BXRestLogBlogPost) {
3556
3942
  this.BXRestLogBlogPost = BXRestLogBlogPost;
3557
- this.Navvy = Navvy;
3558
3943
  this.url = {
3559
3944
  add: [$log, $blogpost, $add],
3560
3945
  // getusers: {
@@ -3565,22 +3950,23 @@ class BXRestNavvyLogBlogPost {
3565
3950
  share: [$log, $blogpost, $share],
3566
3951
  update: [$log, $blogpost, $update], // Изменяет сообщение Живой Ленты
3567
3952
  };
3953
+ this.Navvy = new Navvy(this.BXRestLogBlogPost, undefined);
3568
3954
  }
3569
3955
  add(param) {
3570
- return this.Navvy.mapAndSnackBarError(this.BXRestLogBlogPost.add(param), 'При добавлении поста');
3956
+ return this.Navvy.simpleWithArg(this.BXRestLogBlogPost.add, param);
3571
3957
  }
3572
3958
  get(param = {}) {
3573
- return this.Navvy.mapAndSnackBarError(this.BXRestLogBlogPost.get(param), 'Не удалось получить почты');
3959
+ return this.Navvy.simpleWithArg(this.BXRestLogBlogPost.get, param);
3574
3960
  }
3961
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogPost, deps: [{ token: BXRestLogBlogPost }], target: i0.ɵɵFactoryTarget.Injectable }); }
3962
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' }); }
3575
3963
  }
3576
- 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 });
3577
- BXRestNavvyLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' });
3578
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, decorators: [{
3964
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogPost, decorators: [{
3579
3965
  type: Injectable,
3580
3966
  args: [{
3581
3967
  providedIn: 'root'
3582
3968
  }]
3583
- }], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: Navvy }]; } });
3969
+ }], ctorParameters: function () { return [{ type: BXRestLogBlogPost }]; } });
3584
3970
 
3585
3971
  class BXRestNavvyLogBlogComment {
3586
3972
  constructor() {
@@ -3588,10 +3974,10 @@ class BXRestNavvyLogBlogComment {
3588
3974
  add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
3589
3975
  };
3590
3976
  }
3977
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3978
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogComment, providedIn: 'root' }); }
3591
3979
  }
3592
- BXRestNavvyLogBlogComment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3593
- BXRestNavvyLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, providedIn: 'root' });
3594
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, decorators: [{
3980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogComment, decorators: [{
3595
3981
  type: Injectable,
3596
3982
  args: [{
3597
3983
  providedIn: 'root'
@@ -3603,10 +3989,10 @@ class BXRestNavvyLog {
3603
3989
  this.blogPost = blogPost;
3604
3990
  this.blogComment = blogComment;
3605
3991
  }
3992
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLog, deps: [{ token: BXRestNavvyLogBlogPost }, { token: BXRestNavvyLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable }); }
3993
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLog, providedIn: 'root' }); }
3606
3994
  }
3607
- 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 });
3608
- BXRestNavvyLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, providedIn: 'root' });
3609
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, decorators: [{
3995
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLog, decorators: [{
3610
3996
  type: Injectable,
3611
3997
  args: [{
3612
3998
  providedIn: 'root'
@@ -3654,10 +4040,10 @@ class BXRestMapCalendarEvent extends BaseMapServices {
3654
4040
  }) : []
3655
4041
  };
3656
4042
  }
4043
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendarEvent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4044
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' }); }
3657
4045
  }
3658
- BXRestMapCalendarEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3659
- BXRestMapCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' });
3660
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
4046
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
3661
4047
  type: Injectable,
3662
4048
  args: [{
3663
4049
  providedIn: 'root'
@@ -3665,23 +4051,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3665
4051
  }] });
3666
4052
 
3667
4053
  class BXRestRestCalendarEvent {
3668
- constructor(BXRestCalendarEvent, Navvy, eventMap) {
4054
+ constructor(BXRestCalendarEvent, eventMap) {
3669
4055
  this.BXRestCalendarEvent = BXRestCalendarEvent;
3670
- this.Navvy = Navvy;
3671
4056
  this.eventMap = eventMap;
4057
+ this.Navvy = new Navvy(this.eventMap, undefined);
3672
4058
  }
3673
4059
  get(param) {
3674
- return this.Navvy.mapAndSnackBarError(this.BXRestCalendarEvent.get(param), 'Не удалось получить информацию о событии из календаря').pipe(map(v => this.eventMap.get(v)));
4060
+ return this.Navvy.simpleWithArg(this.BXRestCalendarEvent.get, param, 'Не удалось получить календарь', this.eventMap.get);
3675
4061
  }
4062
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestRestCalendarEvent, deps: [{ token: BXRestCalendarEvent }, { token: BXRestMapCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
4063
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' }); }
3676
4064
  }
3677
- 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 });
3678
- BXRestRestCalendarEvent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' });
3679
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
4065
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
3680
4066
  type: Injectable,
3681
4067
  args: [{
3682
4068
  providedIn: 'root'
3683
4069
  }]
3684
- }], ctorParameters: function () { return [{ type: BXRestCalendarEvent }, { type: Navvy }, { type: BXRestMapCalendarEvent }]; } });
4070
+ }], ctorParameters: function () { return [{ type: BXRestCalendarEvent }, { type: BXRestMapCalendarEvent }]; } });
3685
4071
 
3686
4072
  class BXRestNavvyCalendar {
3687
4073
  // TODO: эту дичь расформировать потом по классам
@@ -3722,10 +4108,10 @@ class BXRestNavvyCalendar {
3722
4108
  constructor(event) {
3723
4109
  this.event = event;
3724
4110
  }
4111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyCalendar, deps: [{ token: BXRestRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
4112
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' }); }
3725
4113
  }
3726
- BXRestNavvyCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, deps: [{ token: BXRestRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable });
3727
- BXRestNavvyCalendar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' });
3728
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
4114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
3729
4115
  type: Injectable,
3730
4116
  args: [{
3731
4117
  providedIn: 'root'
@@ -3753,10 +4139,10 @@ class BXRestMapSonetGroup extends BaseMapServices {
3753
4139
  IS_EXTRANET: items.OPENED == 'Y',
3754
4140
  });
3755
4141
  }
4142
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapSonetGroup, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4143
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapSonetGroup, providedIn: 'root' }); }
3756
4144
  }
3757
- BXRestMapSonetGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
3758
- BXRestMapSonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, providedIn: 'root' });
3759
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMapSonetGroup, decorators: [{
4145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapSonetGroup, decorators: [{
3760
4146
  type: Injectable,
3761
4147
  args: [{
3762
4148
  providedIn: 'root'
@@ -3764,26 +4150,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3764
4150
  }] });
3765
4151
 
3766
4152
  class BXRestNavvySonetGroup {
3767
- constructor(BXRestSonetGroup, mapSonetGroup, Navvy) {
4153
+ constructor(BXRestSonetGroup, mapSonetGroup) {
3768
4154
  this.BXRestSonetGroup = BXRestSonetGroup;
3769
4155
  this.mapSonetGroup = mapSonetGroup;
3770
- this.Navvy = Navvy;
4156
+ this.Navvy = new Navvy(this.BXRestSonetGroup, this.mapSonetGroup);
3771
4157
  }
3772
4158
  get(param = {
3773
4159
  filter: {},
3774
4160
  order: {}
3775
4161
  }) {
3776
- return this.Navvy.mapAndSnackBarError(this.BXRestSonetGroup.get(param), 'Не удалось список групп').pipe(map(v => this.mapSonetGroup.get(v)));
4162
+ return this.Navvy.simpleWithArg(this.BXRestSonetGroup.get, param, 'Не удалось получить рабочую группу', this.mapSonetGroup.get);
3777
4163
  }
4164
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvySonetGroup, deps: [{ token: BXRestSonetGroup }, { token: BXRestMapSonetGroup }], target: i0.ɵɵFactoryTarget.Injectable }); }
4165
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvySonetGroup, providedIn: 'root' }); }
3778
4166
  }
3779
- 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 });
3780
- BXRestNavvySonetGroup.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvySonetGroup, providedIn: 'root' });
3781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvySonetGroup, decorators: [{
4167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvySonetGroup, decorators: [{
3782
4168
  type: Injectable,
3783
4169
  args: [{
3784
4170
  providedIn: 'root'
3785
4171
  }]
3786
- }], ctorParameters: function () { return [{ type: BXRestSonetGroup }, { type: BXRestMapSonetGroup }, { type: Navvy }]; } });
4172
+ }], ctorParameters: function () { return [{ type: BXRestSonetGroup }, { type: BXRestMapSonetGroup }]; } });
3787
4173
 
3788
4174
  class BXRest {
3789
4175
  constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group) {
@@ -3797,10 +4183,10 @@ class BXRest {
3797
4183
  this.calendar = calendar;
3798
4184
  this.sonet_group = sonet_group;
3799
4185
  }
4186
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTask }, { token: BXRestTasks }, { token: BXRestDisk }, { token: BXRestBizproc }, { token: BXRestLog }, { token: BXRestCalendar }, { token: BXRestSonetGroup }], target: i0.ɵɵFactoryTarget.Injectable }); }
4187
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, providedIn: 'root' }); }
3800
4188
  }
3801
- BXRest.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTask }, { token: BXRestTasks }, { token: BXRestDisk }, { token: BXRestBizproc }, { token: BXRestLog }, { token: BXRestCalendar }, { token: BXRestSonetGroup }], target: i0.ɵɵFactoryTarget.Injectable });
3802
- BXRest.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, providedIn: 'root' });
3803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, decorators: [{
4189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, decorators: [{
3804
4190
  type: Injectable,
3805
4191
  args: [{
3806
4192
  providedIn: 'root'
@@ -3818,10 +4204,10 @@ class BXRestNavvy {
3818
4204
  this.calendar = calendar;
3819
4205
  this.sonet_group = sonet_group;
3820
4206
  }
4207
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTask }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }, { token: BXRestNavvyBizproc }, { token: BXRestNavvyLog }, { token: BXRestNavvyCalendar }, { token: BXRestNavvySonetGroup }], target: i0.ɵɵFactoryTarget.Injectable }); }
4208
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, providedIn: 'root' }); }
3821
4209
  }
3822
- BXRestNavvy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTask }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }, { token: BXRestNavvyBizproc }, { token: BXRestNavvyLog }, { token: BXRestNavvyCalendar }, { token: BXRestNavvySonetGroup }], target: i0.ɵɵFactoryTarget.Injectable });
3823
- BXRestNavvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, providedIn: 'root' });
3824
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, decorators: [{
4210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, decorators: [{
3825
4211
  type: Injectable,
3826
4212
  args: [{
3827
4213
  providedIn: 'root'
@@ -3831,10 +4217,10 @@ class BXRestMap {
3831
4217
  constructor(lists) {
3832
4218
  this.lists = lists;
3833
4219
  }
4220
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMap, deps: [{ token: BXRestMapLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
4221
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMap, providedIn: 'root' }); }
3834
4222
  }
3835
- BXRestMap.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMap, deps: [{ token: BXRestMapLists }], target: i0.ɵɵFactoryTarget.Injectable });
3836
- BXRestMap.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMap, providedIn: 'root' });
3837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestMap, decorators: [{
4223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMap, decorators: [{
3838
4224
  type: Injectable,
3839
4225
  args: [{
3840
4226
  providedIn: 'root'
@@ -3849,5 +4235,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3849
4235
  * Generated bundle index. Do not edit.
3850
4236
  */
3851
4237
 
3852
- export { BXRest, BXRestMap, BXRestMapResult, BXRestNavvy, BX_REST_SETTINGS };
4238
+ export { BXRest, BXRestMap, BXRestMapResult, BXRestNavvy, BX_REST_SETTINGS, Navvy };
3853
4239
  //# sourceMappingURL=bx-rest.mjs.map