bx-rest 0.2.13 → 0.2.17

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 (173) hide show
  1. package/esm2022/map/base.mjs +4 -4
  2. package/esm2022/map/calendar/event.mjs +4 -4
  3. package/esm2022/map/calendar.mjs +4 -4
  4. package/esm2022/map/department.mjs +4 -4
  5. package/esm2022/map/disk/attachedObject.mjs +4 -4
  6. package/esm2022/map/disk/base.mjs +4 -4
  7. package/esm2022/map/disk/file.mjs +4 -4
  8. package/esm2022/map/disk/folder.mjs +4 -4
  9. package/esm2022/map/disk/storage.mjs +4 -4
  10. package/esm2022/map/lists/element.mjs +4 -4
  11. package/esm2022/map/lists/field.mjs +4 -4
  12. package/esm2022/map/lists.mjs +4 -4
  13. package/esm2022/map/log/blogpost.mjs +4 -4
  14. package/esm2022/map/log.mjs +4 -4
  15. package/esm2022/map/server.mjs +4 -4
  16. package/esm2022/map/sonet_group.mjs +4 -4
  17. package/esm2022/map/task/commentitem.mjs +4 -4
  18. package/esm2022/map/task/elapseditem.mjs +4 -4
  19. package/esm2022/map/task/planner.mjs +4 -4
  20. package/esm2022/map/task/stages.mjs +4 -4
  21. package/esm2022/map/task.mjs +7 -9
  22. package/esm2022/map/tasks/task/result.mjs +27 -0
  23. package/esm2022/map/tasks/task.mjs +12 -5
  24. package/esm2022/map/tasks.mjs +4 -4
  25. package/esm2022/map/user.mjs +4 -4
  26. package/esm2022/map.mjs +4 -4
  27. package/esm2022/request/bizproc/activity.mjs +4 -4
  28. package/esm2022/request/bizproc/event.mjs +4 -4
  29. package/esm2022/request/bizproc/robot.mjs +4 -4
  30. package/esm2022/request/bizproc/task.mjs +4 -4
  31. package/esm2022/request/bizproc/workflow/instance.mjs +4 -4
  32. package/esm2022/request/bizproc/workflow/template.mjs +4 -4
  33. package/esm2022/request/bizproc/workflow.mjs +4 -4
  34. package/esm2022/request/bizproc.mjs +4 -4
  35. package/esm2022/request/bx-rest.module.mjs +5 -5
  36. package/esm2022/request/calendar/event.mjs +4 -4
  37. package/esm2022/request/calendar.mjs +5 -5
  38. package/esm2022/request/departments.mjs +4 -4
  39. package/esm2022/request/disk/attachedObject.mjs +4 -4
  40. package/esm2022/request/disk/file.mjs +4 -4
  41. package/esm2022/request/disk/folder.mjs +4 -4
  42. package/esm2022/request/disk/storage.mjs +4 -4
  43. package/esm2022/request/disk.mjs +4 -4
  44. package/esm2022/request/lists/element.mjs +4 -4
  45. package/esm2022/request/lists/field.mjs +4 -4
  46. package/esm2022/request/lists.mjs +4 -4
  47. package/esm2022/request/log/blogcomment.mjs +4 -4
  48. package/esm2022/request/log/blogpost.mjs +4 -4
  49. package/esm2022/request/log.mjs +4 -4
  50. package/esm2022/request/server.mjs +4 -4
  51. package/esm2022/request/sonet_group.mjs +5 -8
  52. package/esm2022/request/task/commentitem.mjs +4 -4
  53. package/esm2022/request/task/elapseditem.mjs +4 -4
  54. package/esm2022/request/task/planner.mjs +4 -4
  55. package/esm2022/request/task.mjs +4 -4
  56. package/esm2022/request/tasks/task/result.mjs +32 -0
  57. package/esm2022/request/tasks/task.mjs +22 -43
  58. package/esm2022/request/tasks.mjs +4 -4
  59. package/esm2022/request/user/userfield.mjs +4 -4
  60. package/esm2022/request/user.mjs +4 -4
  61. package/esm2022/request-navvy/bizproc/workflow.mjs +4 -4
  62. package/esm2022/request-navvy/bizproc.mjs +4 -4
  63. package/esm2022/request-navvy/calendar/event.mjs +4 -4
  64. package/esm2022/request-navvy/calendar.mjs +4 -4
  65. package/esm2022/request-navvy/departments.mjs +4 -4
  66. package/esm2022/request-navvy/disk/attachedObject.mjs +4 -4
  67. package/esm2022/request-navvy/disk/file.mjs +4 -4
  68. package/esm2022/request-navvy/disk/folder.mjs +4 -4
  69. package/esm2022/request-navvy/disk/interlayer/storage.mjs +4 -4
  70. package/esm2022/request-navvy/disk/operation.mjs +4 -4
  71. package/esm2022/request-navvy/disk/storage.mjs +4 -4
  72. package/esm2022/request-navvy/disk.mjs +4 -4
  73. package/esm2022/request-navvy/lists/element.mjs +4 -4
  74. package/esm2022/request-navvy/lists/field.mjs +4 -4
  75. package/esm2022/request-navvy/lists.mjs +4 -4
  76. package/esm2022/request-navvy/log/blogcomment.mjs +4 -4
  77. package/esm2022/request-navvy/log/blogpost.mjs +4 -4
  78. package/esm2022/request-navvy/log.mjs +4 -4
  79. package/esm2022/request-navvy/server.mjs +4 -4
  80. package/esm2022/request-navvy/sonet_group.mjs +5 -8
  81. package/esm2022/request-navvy/task/commentitem.mjs +4 -4
  82. package/esm2022/request-navvy/task/delegate/elapseditem.mjs +37 -0
  83. package/esm2022/request-navvy/task/elapseditem.mjs +10 -21
  84. package/esm2022/request-navvy/task/operation/elapseditem.mjs +19 -4
  85. package/esm2022/request-navvy/task/planner.mjs +4 -4
  86. package/esm2022/request-navvy/task.mjs +4 -4
  87. package/esm2022/request-navvy/tasks/task/result.mjs +30 -0
  88. package/esm2022/request-navvy/tasks/task.mjs +11 -40
  89. package/esm2022/request-navvy/tasks.mjs +4 -4
  90. package/esm2022/request-navvy/user/userfield.mjs +4 -4
  91. package/esm2022/request-navvy/user.mjs +4 -4
  92. package/esm2022/rest.mjs +10 -10
  93. package/esm2022/services/base.mjs +4 -4
  94. package/esm2022/services/http/HttpBX.mjs +4 -4
  95. package/esm2022/services/http/base/base.mjs +4 -4
  96. package/esm2022/services/http/http.mjs +4 -4
  97. package/esm2022/services/http/sessionKey.mjs +4 -4
  98. package/esm2022/services/permission.mjs +4 -4
  99. package/esm2022/services/snack-bar/snack-bar.service.mjs +4 -4
  100. package/esm2022/services/snack-bar/toast-message/toast-message.component.mjs +4 -4
  101. package/esm2022/services/vanilla/JSON.mjs +4 -4
  102. package/esm2022/services/vanilla/localStorage.mjs +4 -4
  103. package/esm2022/services/vanilla/sessionStorage.mjs +4 -4
  104. package/esm2022/services/vanilla//321/201ookies.mjs +4 -4
  105. package/esm2022/typification/rest/api-lib.mjs +4 -4
  106. package/esm2022/typification/rest/sonet_group/get.mjs +1 -1
  107. package/esm2022/typification/rest/task/commentitem/add.mjs +1 -1
  108. package/esm2022/typification/rest/task/commentitem/getlist.mjs +1 -1
  109. package/esm2022/typification/rest/tasks/base/fieldsName.mjs +53 -0
  110. package/esm2022/typification/rest/tasks/base/filterGenerator.mjs +2 -0
  111. package/esm2022/typification/rest/tasks/base/people.mjs +2 -0
  112. package/esm2022/typification/rest/tasks/result/list.mjs +2 -0
  113. package/esm2022/typification/rest/tasks/task/get.mjs +1 -1
  114. package/esm2022/typification/rest/tasks/task/list.mjs +1 -1
  115. package/esm2022/typification/rest/tasks/task/result/result.mjs +2 -0
  116. package/esm2022/typification/rest/tasks/task.mjs +2 -0
  117. package/fesm2022/bx-rest.mjs +1025 -984
  118. package/fesm2022/bx-rest.mjs.map +1 -1
  119. package/map/task.d.ts +1 -3
  120. package/map/tasks/task/result.d.ts +10 -0
  121. package/map/tasks/task.d.ts +10 -7
  122. package/package.json +1 -1
  123. package/request/bizproc/activity.d.ts +1 -1
  124. package/request/bizproc/event.d.ts +1 -1
  125. package/request/bizproc/robot.d.ts +1 -1
  126. package/request/bizproc/task.d.ts +1 -1
  127. package/request/bizproc/workflow/instance.d.ts +1 -1
  128. package/request/bizproc/workflow/template.d.ts +1 -1
  129. package/request/bizproc/workflow.d.ts +1 -1
  130. package/request/calendar/event.d.ts +1 -1
  131. package/request/departments.d.ts +1 -1
  132. package/request/disk/attachedObject.d.ts +1 -1
  133. package/request/disk/file.d.ts +1 -1
  134. package/request/disk/folder.d.ts +1 -1
  135. package/request/disk/storage.d.ts +1 -1
  136. package/request/lists/element.d.ts +1 -1
  137. package/request/lists/field.d.ts +1 -1
  138. package/request/lists.d.ts +1 -1
  139. package/request/log/blogcomment.d.ts +1 -1
  140. package/request/log/blogpost.d.ts +1 -1
  141. package/request/server.d.ts +1 -1
  142. package/request/sonet_group.d.ts +1 -1
  143. package/request/task/commentitem.d.ts +1 -1
  144. package/request/task/elapseditem.d.ts +1 -1
  145. package/request/tasks/task/result.d.ts +18 -0
  146. package/request/tasks/task.d.ts +11 -15
  147. package/request/user/userfield.d.ts +1 -1
  148. package/request/user.d.ts +1 -1
  149. package/request-navvy/task/delegate/elapseditem.d.ts +13 -0
  150. package/request-navvy/task/elapseditem.d.ts +3 -1
  151. package/request-navvy/task/operation/elapseditem.d.ts +6 -3
  152. package/request-navvy/tasks/task/result.d.ts +15 -0
  153. package/request-navvy/tasks/task.d.ts +9 -10
  154. package/request-navvy/user/userfield.d.ts +1 -2
  155. package/typification/rest/sonet_group/get.d.ts +2 -2
  156. package/typification/rest/task/commentitem/add.d.ts +1 -0
  157. package/typification/rest/task/commentitem/getlist.d.ts +1 -1
  158. package/typification/rest/tasks/base/fieldsName.d.ts +7 -0
  159. package/typification/rest/tasks/result/list.d.ts +4 -0
  160. package/typification/rest/tasks/task/get.d.ts +32 -3
  161. package/typification/rest/tasks/task/list.d.ts +15 -12
  162. package/typification/rest/tasks/task/result/result.d.ts +20 -0
  163. package/typification/rest/tasks/task.d.ts +110 -0
  164. package/esm2022/map/task/result.mjs +0 -15
  165. package/esm2022/typification/rest/task/base/fieldsName.mjs +0 -2
  166. package/esm2022/typification/rest/task/base/filterGenerator.mjs +0 -2
  167. package/esm2022/typification/rest/task/people/base.mjs +0 -2
  168. package/esm2022/typification/rest/task/task.mjs +0 -2
  169. package/map/task/result.d.ts +0 -6
  170. package/typification/rest/task/base/fieldsName.d.ts +0 -1
  171. package/typification/rest/task/task.d.ts +0 -110
  172. /package/typification/rest/{task → tasks}/base/filterGenerator.d.ts +0 -0
  173. /package/typification/rest/{task/people/base.d.ts → tasks/base/people.d.ts} +0 -0
@@ -120,15 +120,15 @@ const $server = 'server';
120
120
  const $time = 'time';
121
121
 
122
122
  class BxRestModule {
123
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
124
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
123
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
124
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
125
125
  MatButtonModule], exports: [MatButtonModule,
126
126
  MatIconModule] }); }
127
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
127
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
128
128
  MatButtonModule, MatButtonModule,
129
129
  MatIconModule] }); }
130
130
  }
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BxRestModule, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BxRestModule, decorators: [{
132
132
  type: NgModule,
133
133
  args: [{
134
134
  declarations: [],
@@ -157,10 +157,10 @@ class ToastMessageComponent {
157
157
  }
158
158
  return '';
159
159
  }
160
- 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 }); }
161
- 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\">\r\n <span matSnackBarLabel [class]=\"getClass()\">\r\n {{ data.message }}\r\n</span>\r\n <span matSnackBarActions [class]=\"getClass()\">\r\n <button mat-button matSnackBarAction (click)=\"snackBarRef.dismissWithAction()\">\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n</span>\r\n</div>\r\n\r\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
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: ToastMessageComponent, deps: [{ token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
161
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: ToastMessageComponent, isStandalone: true, selector: "app-view", ngImport: i0, template: "<div class=\"w-100 d-flex\">\r\n <span matSnackBarLabel [class]=\"getClass()\">\r\n {{ data.message }}\r\n</span>\r\n <span matSnackBarActions [class]=\"getClass()\">\r\n <button mat-button matSnackBarAction (click)=\"snackBarRef.dismissWithAction()\">\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n</span>\r\n</div>\r\n\r\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 }); }
162
162
  }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: ToastMessageComponent, decorators: [{
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: ToastMessageComponent, decorators: [{
164
164
  type: Component,
165
165
  args: [{ selector: 'app-view', encapsulation: ViewEncapsulation.None, standalone: true, imports: [BxRestModule], template: "<div class=\"w-100 d-flex\">\r\n <span matSnackBarLabel [class]=\"getClass()\">\r\n {{ data.message }}\r\n</span>\r\n <span matSnackBarActions [class]=\"getClass()\">\r\n <button mat-button matSnackBarAction (click)=\"snackBarRef.dismissWithAction()\">\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n</span>\r\n</div>\r\n\r\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"] }]
166
166
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -196,10 +196,10 @@ class SnackBarService {
196
196
  panelClass: name + '-box'
197
197
  });
198
198
  }
199
- 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 }); }
200
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SnackBarService, providedIn: 'root' }); }
199
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SnackBarService, deps: [{ token: i1$1.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable }); }
200
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SnackBarService, providedIn: 'root' }); }
201
201
  }
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SnackBarService, decorators: [{
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SnackBarService, decorators: [{
203
203
  type: Injectable,
204
204
  args: [{
205
205
  providedIn: 'root'
@@ -412,10 +412,10 @@ class JSONServices {
412
412
  static serialize(data) {
413
413
  return serialize(data);
414
414
  }
415
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: JSONServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
416
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: JSONServices, providedIn: 'root' }); }
415
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: JSONServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
416
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: JSONServices, providedIn: 'root' }); }
417
417
  }
418
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: JSONServices, decorators: [{
418
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: JSONServices, decorators: [{
419
419
  type: Injectable,
420
420
  args: [{
421
421
  providedIn: 'root'
@@ -453,10 +453,10 @@ class CookiesServices {
453
453
  }
454
454
  return false;
455
455
  }
456
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: CookiesServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
457
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: CookiesServices, providedIn: 'root' }); }
456
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: CookiesServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
457
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: CookiesServices, providedIn: 'root' }); }
458
458
  }
459
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: CookiesServices, decorators: [{
459
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: CookiesServices, decorators: [{
460
460
  type: Injectable,
461
461
  args: [{
462
462
  providedIn: 'root'
@@ -626,10 +626,10 @@ class BaseServices {
626
626
  url = (url) ? url.replace('http:', '') : '';
627
627
  return url;
628
628
  }
629
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
630
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseServices, providedIn: 'root' }); }
629
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
630
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseServices, providedIn: 'root' }); }
631
631
  }
632
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseServices, decorators: [{
632
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseServices, decorators: [{
633
633
  type: Injectable,
634
634
  args: [{
635
635
  providedIn: 'root'
@@ -658,10 +658,10 @@ class LocalStorageServices {
658
658
  static del(name) {
659
659
  localStorage.removeItem(name);
660
660
  }
661
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: LocalStorageServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
662
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: LocalStorageServices, providedIn: 'root' }); }
661
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: LocalStorageServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
662
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: LocalStorageServices, providedIn: 'root' }); }
663
663
  }
664
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: LocalStorageServices, decorators: [{
664
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: LocalStorageServices, decorators: [{
665
665
  type: Injectable,
666
666
  args: [{
667
667
  providedIn: 'root'
@@ -679,10 +679,10 @@ class SessionStorage {
679
679
  }
680
680
  return undefined;
681
681
  }
682
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
683
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionStorage, providedIn: 'root' }); }
682
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SessionStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
683
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SessionStorage, providedIn: 'root' }); }
684
684
  }
685
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionStorage, decorators: [{
685
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SessionStorage, decorators: [{
686
686
  type: Injectable,
687
687
  args: [{
688
688
  providedIn: 'root'
@@ -698,10 +698,10 @@ class RestServices {
698
698
  init(callBack) {
699
699
  return (this.BX24) ? this.BX24.init(callBack) : false;
700
700
  }
701
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: RestServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
702
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: RestServices, providedIn: 'root' }); }
701
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: RestServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
702
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: RestServices, providedIn: 'root' }); }
703
703
  }
704
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: RestServices, decorators: [{
704
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: RestServices, decorators: [{
705
705
  type: Injectable,
706
706
  args: [{
707
707
  providedIn: 'root'
@@ -903,10 +903,10 @@ class SessionKeyServices extends BaseServices {
903
903
  // map(v => (v && v.domain) ? this.prepareBaseAddress(v.domain) : undefined)
904
904
  // )
905
905
  }
906
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionKeyServices, deps: [{ token: RestServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
907
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionKeyServices, providedIn: 'root' }); }
906
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SessionKeyServices, deps: [{ token: RestServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
907
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SessionKeyServices, providedIn: 'root' }); }
908
908
  }
909
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SessionKeyServices, decorators: [{
909
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SessionKeyServices, decorators: [{
910
910
  type: Injectable,
911
911
  args: [{
912
912
  providedIn: 'root'
@@ -1041,10 +1041,10 @@ class BaseHttp extends HttpData {
1041
1041
  return of(result);
1042
1042
  };
1043
1043
  }
1044
- 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 }); }
1045
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseHttp, providedIn: 'root' }); }
1044
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseHttp, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1045
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseHttp, providedIn: 'root' }); }
1046
1046
  }
1047
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseHttp, decorators: [{
1047
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseHttp, decorators: [{
1048
1048
  type: Injectable,
1049
1049
  args: [{
1050
1050
  providedIn: 'root'
@@ -1107,10 +1107,10 @@ class HttpServices extends BaseHttpServices {
1107
1107
  return throwError(() => 'auth not get');
1108
1108
  }
1109
1109
  }
1110
- 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 }); }
1111
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpServices, providedIn: 'root' }); }
1110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HttpServices, deps: [{ token: i1$2.HttpClient }, { token: SnackBarService }, { token: SessionKeyServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1111
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HttpServices, providedIn: 'root' }); }
1112
1112
  }
1113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpServices, decorators: [{
1113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HttpServices, decorators: [{
1114
1114
  type: Injectable,
1115
1115
  args: [{
1116
1116
  providedIn: 'root'
@@ -1221,10 +1221,10 @@ class HttpBXServices extends HttpServices {
1221
1221
  getNameMethod(arr) {
1222
1222
  return arr.join('.');
1223
1223
  }
1224
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpBXServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1225
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpBXServices, providedIn: 'root' }); }
1224
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HttpBXServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1225
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HttpBXServices, providedIn: 'root' }); }
1226
1226
  }
1227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: HttpBXServices, decorators: [{
1227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HttpBXServices, decorators: [{
1228
1228
  type: Injectable,
1229
1229
  args: [{
1230
1230
  providedIn: 'root'
@@ -1241,10 +1241,10 @@ class BXRestUserUserfield {
1241
1241
  list() {
1242
1242
  return this.http.post(this.url.list);
1243
1243
  }
1244
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUserUserfield, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1245
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUserUserfield, providedIn: 'root' }); }
1244
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestUserUserfield, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1245
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestUserUserfield, providedIn: 'root' }); }
1246
1246
  }
1247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUserUserfield, decorators: [{
1247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestUserUserfield, decorators: [{
1248
1248
  type: Injectable,
1249
1249
  args: [{
1250
1250
  providedIn: 'root'
@@ -1295,10 +1295,10 @@ class BXRestUser {
1295
1295
  fields() {
1296
1296
  return this.http.post(this.url.fields);
1297
1297
  }
1298
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, deps: [{ token: HttpBXServices }, { token: BXRestUserUserfield }], target: i0.ɵɵFactoryTarget.Injectable }); }
1299
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, providedIn: 'root' }); }
1298
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestUser, deps: [{ token: HttpBXServices }, { token: BXRestUserUserfield }], target: i0.ɵɵFactoryTarget.Injectable }); }
1299
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestUser, providedIn: 'root' }); }
1300
1300
  }
1301
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestUser, decorators: [{
1301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestUser, decorators: [{
1302
1302
  type: Injectable,
1303
1303
  args: [{
1304
1304
  providedIn: 'root'
@@ -1321,10 +1321,10 @@ class BXRestListsField {
1321
1321
  get(param) {
1322
1322
  return this.http.post(this.url.get, param);
1323
1323
  }
1324
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsField, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1325
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsField, providedIn: 'root' }); }
1324
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestListsField, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1325
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestListsField, providedIn: 'root' }); }
1326
1326
  }
1327
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsField, decorators: [{
1327
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestListsField, decorators: [{
1328
1328
  type: Injectable,
1329
1329
  args: [{
1330
1330
  providedIn: 'root'
@@ -1348,10 +1348,10 @@ class BXRestListsElement {
1348
1348
  add(param) {
1349
1349
  return this.http.post(this.url.add, param);
1350
1350
  }
1351
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsElement, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1352
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsElement, providedIn: 'root' }); }
1351
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestListsElement, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1352
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestListsElement, providedIn: 'root' }); }
1353
1353
  }
1354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestListsElement, decorators: [{
1354
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestListsElement, decorators: [{
1355
1355
  type: Injectable,
1356
1356
  args: [{
1357
1357
  providedIn: 'root'
@@ -1374,10 +1374,10 @@ class BXRestLists {
1374
1374
  get(pram) {
1375
1375
  return this.http.post(this.url.get, pram);
1376
1376
  }
1377
- 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 }); }
1378
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLists, providedIn: 'root' }); }
1377
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLists, deps: [{ token: BXRestListsElement }, { token: BXRestListsField }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1378
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLists, providedIn: 'root' }); }
1379
1379
  }
1380
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLists, decorators: [{
1380
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLists, decorators: [{
1381
1381
  type: Injectable,
1382
1382
  args: [{
1383
1383
  providedIn: 'root'
@@ -1432,10 +1432,10 @@ class BXRestTaskElapseditem {
1432
1432
  isActionAllowed(param) {
1433
1433
  return this.http.post(this.url.isactionallowed, param);
1434
1434
  }
1435
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTaskElapseditem, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1436
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTaskElapseditem, providedIn: 'root' }); }
1435
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTaskElapseditem, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1436
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTaskElapseditem, providedIn: 'root' }); }
1437
1437
  }
1438
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTaskElapseditem, decorators: [{
1438
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTaskElapseditem, decorators: [{
1439
1439
  type: Injectable,
1440
1440
  args: [{
1441
1441
  providedIn: 'root'
@@ -1470,10 +1470,10 @@ class BXRestTaskCommentItem {
1470
1470
  del(param) {
1471
1471
  return this.http.post(this.url.delete, param);
1472
1472
  }
1473
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTaskCommentItem, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1474
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTaskCommentItem, providedIn: 'root' }); }
1473
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTaskCommentItem, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1474
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTaskCommentItem, providedIn: 'root' }); }
1475
1475
  }
1476
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTaskCommentItem, decorators: [{
1476
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTaskCommentItem, decorators: [{
1477
1477
  type: Injectable,
1478
1478
  args: [{
1479
1479
  providedIn: 'root'
@@ -1487,10 +1487,10 @@ class BXRestTaskPlanner {
1487
1487
  getList() {
1488
1488
  return this.http.post([$task, $planner, $getlist]);
1489
1489
  }
1490
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTaskPlanner, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1491
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTaskPlanner, providedIn: 'root' }); }
1490
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTaskPlanner, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1491
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTaskPlanner, providedIn: 'root' }); }
1492
1492
  }
1493
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTaskPlanner, decorators: [{
1493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTaskPlanner, decorators: [{
1494
1494
  type: Injectable,
1495
1495
  args: [{
1496
1496
  providedIn: 'root'
@@ -1503,18 +1503,55 @@ class BXRestTask {
1503
1503
  this.commentitem = commentitem;
1504
1504
  this.planner = planner;
1505
1505
  }
1506
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTask, deps: [{ token: BXRestTaskElapseditem }, { token: BXRestTaskCommentItem }, { token: BXRestTaskPlanner }], target: i0.ɵɵFactoryTarget.Injectable }); }
1507
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTask, providedIn: 'root' }); }
1506
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTask, deps: [{ token: BXRestTaskElapseditem }, { token: BXRestTaskCommentItem }, { token: BXRestTaskPlanner }], target: i0.ɵɵFactoryTarget.Injectable }); }
1507
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTask, providedIn: 'root' }); }
1508
1508
  }
1509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTask, decorators: [{
1509
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTask, decorators: [{
1510
1510
  type: Injectable,
1511
1511
  args: [{
1512
1512
  providedIn: 'root'
1513
1513
  }]
1514
1514
  }], ctorParameters: function () { return [{ type: BXRestTaskElapseditem }, { type: BXRestTaskCommentItem }, { type: BXRestTaskPlanner }]; } });
1515
1515
 
1516
- class BXRestTasksTask {
1516
+ class BXRestTasksTaskResult {
1517
1517
  constructor(http) {
1518
+ this.http = http;
1519
+ this.url = {
1520
+ list: [$tasks, $task, $result, $list],
1521
+ addFromComment: [$tasks, $task, $result, 'addFromComment'],
1522
+ deleteFromComment: [$tasks, $task, $result, 'deleteFromComment'], // Удаление результата задачи по комментарию из которого он был создан
1523
+ };
1524
+ }
1525
+ deleteFromComment(commentID) {
1526
+ return this.http.post(this.url.deleteFromComment, { commentId: commentID });
1527
+ }
1528
+ addFromComment(commentID) {
1529
+ return this.http.post(this.url.addFromComment, { commentId: commentID });
1530
+ }
1531
+ list(param) {
1532
+ return this.http.post(this.url.list, param);
1533
+ }
1534
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTasksTaskResult, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1535
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTasksTaskResult, providedIn: 'root' }); }
1536
+ }
1537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTasksTaskResult, decorators: [{
1538
+ type: Injectable,
1539
+ args: [{
1540
+ providedIn: 'root'
1541
+ }]
1542
+ }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
1543
+
1544
+ // interface iBXRestParamTasksListWithSelect<S extends iBXRestTaskFieldsName> extends iBXRestParamTasksList<S> {
1545
+ // select: iBXRestFilterGenerator<iBXRestTaskFieldsName>[]
1546
+ // }
1547
+ // interface iBXRestParamTasksGetWithSelect extends iBXRestParamTasksList {
1548
+ // select: iBXRestFilterGenerator<iBXRestTaskFieldsName>[]
1549
+ // }
1550
+ // type SelectInterfaceListType<T> = T extends iBXRestParamTasksListWithSelect ? iBXRestTasksTaskListHttpDefault : iBXRestHttpTasksTaskList
1551
+ // type SelectInterfaceGetType<T> = T extends iBXRestParamTasksGetWithSelect ? iBXRestTasksTaskGetHttpDefault : iBXRestHttpTasksTaskGet
1552
+ class BXRestTasksTask {
1553
+ constructor(result, http) {
1554
+ this.result = result;
1518
1555
  this.http = http;
1519
1556
  this.url = {
1520
1557
  add: [$tasks, $task, $add],
@@ -1546,12 +1583,7 @@ class BXRestTasksTask {
1546
1583
  start: [$tasks, $task, $start],
1547
1584
  startwatch: [$tasks, $task, 'startwatch'],
1548
1585
  stopwatch: [$tasks, $task, 'stopwatch'],
1549
- update: [$tasks, $task, $update],
1550
- result: {
1551
- list: [$tasks, $task, $result, $list],
1552
- addFromComment: [$tasks, $task, $result, 'addFromComment'],
1553
- deleteFromComment: [$tasks, $task, $result, 'deleteFromComment'], // Удаление результата задачи по комментарию из которого он был создан
1554
- }
1586
+ update: [$tasks, $task, $update], // Обновляет задачу
1555
1587
  };
1556
1588
  }
1557
1589
  add(param) {
@@ -1592,10 +1624,10 @@ class BXRestTasksTask {
1592
1624
  return of(undefined)
1593
1625
  }
1594
1626
  */
1595
- get(requestArray) {
1596
- return this.http.post(this.url.get, requestArray);
1627
+ get(param) {
1628
+ return this.http.post(this.url.get, param);
1597
1629
  }
1598
- list(param = {}) {
1630
+ list(param) {
1599
1631
  return this.http.post(this.url.list, param);
1600
1632
  }
1601
1633
  /*
@@ -1687,54 +1719,28 @@ class BXRestTasksTask {
1687
1719
  })
1688
1720
  )
1689
1721
  }
1690
-
1691
- deleteResultFromComment(commentID: number) {
1692
- return this.http.post<iHttpAnswerBX<any>>(this.url.result.deleteFromComment, {commentId: commentID})
1693
- }
1694
-
1695
- addResultFromComment(commentID: number) {
1696
- return this.http.post<iHttpAnswerBX<iTaskResultHttp>>(this.url.result.addFromComment, {commentId: commentID})
1697
- .pipe(
1698
- map(v => {
1699
- if (v && v.result) {
1700
- this.taskResultMap.iTaskResultHttpToiTaskResult(v.result)
1701
- }
1702
- return undefined
1703
- }))
1704
- }
1705
-
1706
- getResulList(taskId: number): Observable<iTaskResult[] | undefined> {
1707
- return this.http.post<iHttpAnswerBX<iTaskResultHttp[]>>(this.url.result.list, {taskId: taskId})
1708
- .pipe(
1709
- map(v => {
1710
- if (v && v.result) {
1711
- return v.result.map(i => this.taskResultMap.iTaskResultHttpToiTaskResult(i))
1712
- }
1713
- return undefined
1714
- }))
1715
- }
1716
1722
  */
1717
1723
  getaccess(param) {
1718
1724
  return this.http.post(this.url.getaccess, param);
1719
1725
  }
1720
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasksTask, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1721
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasksTask, providedIn: 'root' }); }
1726
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTasksTask, deps: [{ token: BXRestTasksTaskResult }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1727
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTasksTask, providedIn: 'root' }); }
1722
1728
  }
1723
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasksTask, decorators: [{
1729
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTasksTask, decorators: [{
1724
1730
  type: Injectable,
1725
1731
  args: [{
1726
1732
  providedIn: 'root'
1727
1733
  }]
1728
- }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
1734
+ }], ctorParameters: function () { return [{ type: BXRestTasksTaskResult }, { type: HttpBXServices }]; } });
1729
1735
 
1730
1736
  class BXRestTasks {
1731
1737
  constructor(task) {
1732
1738
  this.task = task;
1733
1739
  }
1734
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasks, deps: [{ token: BXRestTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
1735
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasks, providedIn: 'root' }); }
1740
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTasks, deps: [{ token: BXRestTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
1741
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTasks, providedIn: 'root' }); }
1736
1742
  }
1737
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestTasks, decorators: [{
1743
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestTasks, decorators: [{
1738
1744
  type: Injectable,
1739
1745
  args: [{
1740
1746
  providedIn: 'root'
@@ -1765,10 +1771,10 @@ class BXRestDiskFile {
1765
1771
  markdeleted(id) {
1766
1772
  return this.http.post(this.url.markdeleted, { id: id });
1767
1773
  }
1768
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFile, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1769
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFile, providedIn: 'root' }); }
1774
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskFile, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1775
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskFile, providedIn: 'root' }); }
1770
1776
  }
1771
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFile, decorators: [{
1777
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskFile, decorators: [{
1772
1778
  type: Injectable,
1773
1779
  args: [{
1774
1780
  providedIn: 'root'
@@ -1807,10 +1813,10 @@ class BXRestDiskFolder {
1807
1813
  getchildren(id) {
1808
1814
  return this.http.post(this.url.getchildren, { id: id });
1809
1815
  }
1810
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFolder, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1811
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFolder, providedIn: 'root' }); }
1816
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskFolder, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1817
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskFolder, providedIn: 'root' }); }
1812
1818
  }
1813
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskFolder, decorators: [{
1819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskFolder, decorators: [{
1814
1820
  type: Injectable,
1815
1821
  args: [{
1816
1822
  providedIn: 'root'
@@ -1827,10 +1833,10 @@ class BXRestDiskAttachedObject {
1827
1833
  get(id) {
1828
1834
  return this.http.post(this.url.get, { id: id });
1829
1835
  }
1830
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskAttachedObject, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1831
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskAttachedObject, providedIn: 'root' }); }
1836
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskAttachedObject, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1837
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskAttachedObject, providedIn: 'root' }); }
1832
1838
  }
1833
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskAttachedObject, decorators: [{
1839
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskAttachedObject, decorators: [{
1834
1840
  type: Injectable,
1835
1841
  args: [{
1836
1842
  providedIn: 'root'
@@ -1843,10 +1849,10 @@ class BXRestDisk {
1843
1849
  this.folder = folder;
1844
1850
  this.attachedObject = attachedObject;
1845
1851
  }
1846
- 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 }); }
1847
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDisk, providedIn: 'root' }); }
1852
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDisk, deps: [{ token: BXRestDiskFile }, { token: BXRestDiskFolder }, { token: BXRestDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable }); }
1853
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDisk, providedIn: 'root' }); }
1848
1854
  }
1849
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDisk, decorators: [{
1855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDisk, decorators: [{
1850
1856
  type: Injectable,
1851
1857
  args: [{
1852
1858
  providedIn: 'root'
@@ -1859,10 +1865,10 @@ class BXRestBizprocWorkflowInstance {
1859
1865
  list: [$bizproc, $workflow, $instances, $list], // Возвращает список запущенных бизнес-процессов. Алиас bizproc.workflow.instances
1860
1866
  };
1861
1867
  }
1862
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowInstance, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1863
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowInstance, providedIn: 'root' }); }
1868
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocWorkflowInstance, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1869
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocWorkflowInstance, providedIn: 'root' }); }
1864
1870
  }
1865
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowInstance, decorators: [{
1871
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocWorkflowInstance, decorators: [{
1866
1872
  type: Injectable,
1867
1873
  args: [{
1868
1874
  providedIn: 'root'
@@ -1882,10 +1888,10 @@ class BXRestBizprocWorkflowTemplate {
1882
1888
  list(param = { select: [], filter: {} }) {
1883
1889
  return this.http.post(this.url.list, param);
1884
1890
  }
1885
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowTemplate, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1886
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowTemplate, providedIn: 'root' }); }
1891
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocWorkflowTemplate, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1892
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocWorkflowTemplate, providedIn: 'root' }); }
1887
1893
  }
1888
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflowTemplate, decorators: [{
1894
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocWorkflowTemplate, decorators: [{
1889
1895
  type: Injectable,
1890
1896
  args: [{
1891
1897
  providedIn: 'root'
@@ -1907,10 +1913,10 @@ class BXRestBizprocWorkflow {
1907
1913
  start(param) {
1908
1914
  return this.http.post(this.url.start, param);
1909
1915
  }
1910
- 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 }); }
1911
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflow, providedIn: 'root' }); }
1916
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflowInstance }, { token: BXRestBizprocWorkflowTemplate }, { token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1917
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocWorkflow, providedIn: 'root' }); }
1912
1918
  }
1913
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocWorkflow, decorators: [{
1919
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocWorkflow, decorators: [{
1914
1920
  type: Injectable,
1915
1921
  args: [{
1916
1922
  providedIn: 'root'
@@ -1927,10 +1933,10 @@ class BXRestBizprocActivity {
1927
1933
  log: [$bizproc, $activity, $log] // Записывает информацию в лог бизнес-процесса
1928
1934
  };
1929
1935
  }
1930
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocActivity, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1931
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocActivity, providedIn: 'root' }); }
1936
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocActivity, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1937
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocActivity, providedIn: 'root' }); }
1932
1938
  }
1933
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocActivity, decorators: [{
1939
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocActivity, decorators: [{
1934
1940
  type: Injectable,
1935
1941
  args: [{
1936
1942
  providedIn: 'root'
@@ -1944,10 +1950,10 @@ class BXRestBizprocTask {
1944
1950
  list: [$bizproc, $task, $list], // Возвращает список заданий бизнес-процессов
1945
1951
  };
1946
1952
  }
1947
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocTask, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1948
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocTask, providedIn: 'root' }); }
1953
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocTask, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1954
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocTask, providedIn: 'root' }); }
1949
1955
  }
1950
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocTask, decorators: [{
1956
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocTask, decorators: [{
1951
1957
  type: Injectable,
1952
1958
  args: [{
1953
1959
  providedIn: 'root'
@@ -1963,10 +1969,10 @@ class BXRestBizprocRobot {
1963
1969
  update: [$bizproc, $robot, $update] // Обновляет поля робота
1964
1970
  };
1965
1971
  }
1966
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocRobot, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1967
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocRobot, providedIn: 'root' }); }
1972
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocRobot, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1973
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocRobot, providedIn: 'root' }); }
1968
1974
  }
1969
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocRobot, decorators: [{
1975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocRobot, decorators: [{
1970
1976
  type: Injectable,
1971
1977
  args: [{
1972
1978
  providedIn: 'root'
@@ -1979,10 +1985,10 @@ class BXRestBizprocEvent {
1979
1985
  send: [$bizproc, $event, $send], // Возвращает действию выходные параметры, заданные в описании действия
1980
1986
  };
1981
1987
  }
1982
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocEvent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1983
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocEvent, providedIn: 'root' }); }
1988
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocEvent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1989
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocEvent, providedIn: 'root' }); }
1984
1990
  }
1985
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizprocEvent, decorators: [{
1991
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizprocEvent, decorators: [{
1986
1992
  type: Injectable,
1987
1993
  args: [{
1988
1994
  providedIn: 'root'
@@ -1997,10 +2003,10 @@ class BXRestBizproc {
1997
2003
  this.robot = robot;
1998
2004
  this.event = event;
1999
2005
  }
2000
- 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 }); }
2001
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizproc, providedIn: 'root' }); }
2006
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizproc, deps: [{ token: BXRestBizprocWorkflow }, { token: BXRestBizprocActivity }, { token: BXRestBizprocTask }, { token: BXRestBizprocRobot }, { token: BXRestBizprocEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
2007
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizproc, providedIn: 'root' }); }
2002
2008
  }
2003
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestBizproc, decorators: [{
2009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestBizproc, decorators: [{
2004
2010
  type: Injectable,
2005
2011
  args: [{
2006
2012
  providedIn: 'root'
@@ -2027,10 +2033,10 @@ class BXRestLogBlogPost {
2027
2033
  get(param = {}) {
2028
2034
  return this.http.post(this.url.get, param);
2029
2035
  }
2030
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2031
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' }); }
2036
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2037
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' }); }
2032
2038
  }
2033
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogPost, decorators: [{
2039
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLogBlogPost, decorators: [{
2034
2040
  type: Injectable,
2035
2041
  args: [{
2036
2042
  providedIn: 'root'
@@ -2043,10 +2049,10 @@ class BXRestLogBlogComment {
2043
2049
  add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
2044
2050
  };
2045
2051
  }
2046
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2047
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogComment, providedIn: 'root' }); }
2052
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2053
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLogBlogComment, providedIn: 'root' }); }
2048
2054
  }
2049
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLogBlogComment, decorators: [{
2055
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLogBlogComment, decorators: [{
2050
2056
  type: Injectable,
2051
2057
  args: [{
2052
2058
  providedIn: 'root'
@@ -2058,10 +2064,10 @@ class BXRestLog {
2058
2064
  this.blogPost = blogPost;
2059
2065
  this.blogComment = blogComment;
2060
2066
  }
2061
- 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 }); }
2062
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLog, providedIn: 'root' }); }
2067
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLog, deps: [{ token: BXRestLogBlogPost }, { token: BXRestLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable }); }
2068
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLog, providedIn: 'root' }); }
2063
2069
  }
2064
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestLog, decorators: [{
2070
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestLog, decorators: [{
2065
2071
  type: Injectable,
2066
2072
  args: [{
2067
2073
  providedIn: 'root'
@@ -2082,10 +2088,10 @@ class BXRestCalendarEvent {
2082
2088
  get(param) {
2083
2089
  return this.http.post(this.url.get, param);
2084
2090
  }
2085
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendarEvent, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2086
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' }); }
2091
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestCalendarEvent, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2092
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestCalendarEvent, providedIn: 'root' }); }
2087
2093
  }
2088
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
2094
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestCalendarEvent, decorators: [{
2089
2095
  type: Injectable,
2090
2096
  args: [{
2091
2097
  providedIn: 'root'
@@ -2095,7 +2101,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
2095
2101
  class BXRestCalendar {
2096
2102
  // TODO: эту дичь расформировать потом по классам
2097
2103
  /*
2098
- url = {
2104
+ protected url = {
2099
2105
  accessibility: {get: getNameMethod([$calendar, $accessibility, $get])}, // Возвращает занятость пользователей из списка.
2100
2106
  meeting: {
2101
2107
  params: {
@@ -2131,10 +2137,10 @@ class BXRestCalendar {
2131
2137
  constructor(event) {
2132
2138
  this.event = event;
2133
2139
  }
2134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendar, deps: [{ token: BXRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
2135
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendar, providedIn: 'root' }); }
2140
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestCalendar, deps: [{ token: BXRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
2141
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestCalendar, providedIn: 'root' }); }
2136
2142
  }
2137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestCalendar, decorators: [{
2143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestCalendar, decorators: [{
2138
2144
  type: Injectable,
2139
2145
  args: [{
2140
2146
  providedIn: 'root'
@@ -2178,16 +2184,13 @@ class BXRestSonetGroup {
2178
2184
  // }
2179
2185
  // )
2180
2186
  // }
2181
- get(param = {
2182
- filter: {},
2183
- order: {}
2184
- }) {
2187
+ get(param = {}) {
2185
2188
  return this.http.post(this.url.get, param);
2186
2189
  }
2187
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestSonetGroup, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2188
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestSonetGroup, providedIn: 'root' }); }
2190
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestSonetGroup, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2191
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestSonetGroup, providedIn: 'root' }); }
2189
2192
  }
2190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestSonetGroup, decorators: [{
2193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestSonetGroup, decorators: [{
2191
2194
  type: Injectable,
2192
2195
  args: [{
2193
2196
  providedIn: 'root'
@@ -2204,10 +2207,10 @@ class BXRestServer {
2204
2207
  time() {
2205
2208
  return this.http.post(this.url.time);
2206
2209
  }
2207
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestServer, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2208
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestServer, providedIn: 'root' }); }
2210
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestServer, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2211
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestServer, providedIn: 'root' }); }
2209
2212
  }
2210
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestServer, decorators: [{
2213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestServer, decorators: [{
2211
2214
  type: Injectable,
2212
2215
  args: [{
2213
2216
  providedIn: 'root'
@@ -2236,10 +2239,10 @@ class BXRestDepartment {
2236
2239
  update(param) {
2237
2240
  return this.http.post(this.url.update, param);
2238
2241
  }
2239
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDepartment, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2240
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDepartment, providedIn: 'root' }); }
2242
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDepartment, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2243
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDepartment, providedIn: 'root' }); }
2241
2244
  }
2242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDepartment, decorators: [{
2245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDepartment, decorators: [{
2243
2246
  type: Injectable,
2244
2247
  args: [{
2245
2248
  providedIn: 'root'
@@ -2522,10 +2525,10 @@ class Navvy {
2522
2525
  }
2523
2526
 
2524
2527
  class BaseMapServices extends BaseServices {
2525
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseMapServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2526
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseMapServices, providedIn: 'root' }); }
2528
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseMapServices, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2529
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseMapServices, providedIn: 'root' }); }
2527
2530
  }
2528
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BaseMapServices, decorators: [{
2531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseMapServices, decorators: [{
2529
2532
  type: Injectable,
2530
2533
  args: [{
2531
2534
  providedIn: 'root'
@@ -2616,10 +2619,10 @@ class BXRestMapUser extends BaseMapServices {
2616
2619
  }
2617
2620
  return res.trim();
2618
2621
  }
2619
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapUser, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2620
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapUser, providedIn: 'root' }); }
2622
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapUser, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2623
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapUser, providedIn: 'root' }); }
2621
2624
  }
2622
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapUser, decorators: [{
2625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapUser, decorators: [{
2623
2626
  type: Injectable,
2624
2627
  args: [{
2625
2628
  providedIn: 'root'
@@ -2634,10 +2637,10 @@ class BXRestNavvyUserUserfield {
2634
2637
  list() {
2635
2638
  return this.Navvy.simple(this.BXRestUserUserfield.list, 'Не удалось получить список кастомных полей');
2636
2639
  }
2637
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUserUserfield, deps: [{ token: BXRestUserUserfield }], target: i0.ɵɵFactoryTarget.Injectable }); }
2638
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUserUserfield, providedIn: 'root' }); }
2640
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyUserUserfield, deps: [{ token: BXRestUserUserfield }], target: i0.ɵɵFactoryTarget.Injectable }); }
2641
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyUserUserfield, providedIn: 'root' }); }
2639
2642
  }
2640
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUserUserfield, decorators: [{
2643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyUserUserfield, decorators: [{
2641
2644
  type: Injectable,
2642
2645
  args: [{
2643
2646
  providedIn: 'root'
@@ -2811,10 +2814,10 @@ class BXRestNavvyUser {
2811
2814
  delete params.FILTER.UF_DEPARTMENT;
2812
2815
  }
2813
2816
  }
2814
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, deps: [{ token: BXRestMapUser }, { token: BXRestUser }, { token: BXRestNavvyUserUserfield }], target: i0.ɵɵFactoryTarget.Injectable }); }
2815
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, providedIn: 'root' }); }
2817
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyUser, deps: [{ token: BXRestMapUser }, { token: BXRestUser }, { token: BXRestNavvyUserUserfield }], target: i0.ɵɵFactoryTarget.Injectable }); }
2818
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyUser, providedIn: 'root' }); }
2816
2819
  }
2817
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyUser, decorators: [{
2820
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyUser, decorators: [{
2818
2821
  type: Injectable,
2819
2822
  args: [{
2820
2823
  providedIn: 'root'
@@ -2825,10 +2828,10 @@ class BXRestMapListsField {
2825
2828
  get(v) {
2826
2829
  return (v) ? Object.values(v) : undefined;
2827
2830
  }
2828
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsField, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2829
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsField, providedIn: 'root' }); }
2831
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapListsField, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2832
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapListsField, providedIn: 'root' }); }
2830
2833
  }
2831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsField, decorators: [{
2834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapListsField, decorators: [{
2832
2835
  type: Injectable,
2833
2836
  args: [{
2834
2837
  providedIn: 'root'
@@ -2844,10 +2847,10 @@ class BXRestNavvyListsField {
2844
2847
  get(param) {
2845
2848
  return this.Navvy.PagNavWithUselessKey(this.BXRestListsField.get, param, 'Не удалось получить поля списка', this.BXRestMapListsField.get);
2846
2849
  }
2847
- 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 }); }
2848
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsField, providedIn: 'root' }); }
2850
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyListsField, deps: [{ token: BXRestListsField }, { token: BXRestMapListsField }], target: i0.ɵɵFactoryTarget.Injectable }); }
2851
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyListsField, providedIn: 'root' }); }
2849
2852
  }
2850
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsField, decorators: [{
2853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyListsField, decorators: [{
2851
2854
  type: Injectable,
2852
2855
  args: [{
2853
2856
  providedIn: 'root'
@@ -2865,10 +2868,10 @@ class BXRestMapListsElement extends BaseMapServices {
2865
2868
  }))
2866
2869
  : undefined;
2867
2870
  }
2868
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsElement, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2869
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsElement, providedIn: 'root' }); }
2871
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapListsElement, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2872
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapListsElement, providedIn: 'root' }); }
2870
2873
  }
2871
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapListsElement, decorators: [{
2874
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapListsElement, decorators: [{
2872
2875
  type: Injectable,
2873
2876
  args: [{
2874
2877
  providedIn: 'root'
@@ -2887,10 +2890,10 @@ class BXRestNavvyListsElement {
2887
2890
  add(param) {
2888
2891
  return this.Navvy.simpleWithArg(this.BXRestListsElement.add, param, 'Не удалось добавить элемент списка');
2889
2892
  }
2890
- 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 }); }
2891
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsElement, providedIn: 'root' }); }
2893
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyListsElement, deps: [{ token: BXRestListsElement }, { token: BXRestMapListsElement }], target: i0.ɵɵFactoryTarget.Injectable }); }
2894
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyListsElement, providedIn: 'root' }); }
2892
2895
  }
2893
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyListsElement, decorators: [{
2896
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyListsElement, decorators: [{
2894
2897
  type: Injectable,
2895
2898
  args: [{
2896
2899
  providedIn: 'root'
@@ -2956,10 +2959,10 @@ class BXRestMapLists extends BaseMapServices {
2956
2959
  XML_ID: this.toStr(itemLists.XML_ID),
2957
2960
  };
2958
2961
  }
2959
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, deps: [{ token: BXRestMapListsElement }, { token: BXRestMapListsField }], target: i0.ɵɵFactoryTarget.Injectable }); }
2960
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, providedIn: 'root' }); }
2962
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapLists, deps: [{ token: BXRestMapListsElement }, { token: BXRestMapListsField }], target: i0.ɵɵFactoryTarget.Injectable }); }
2963
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapLists, providedIn: 'root' }); }
2961
2964
  }
2962
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLists, decorators: [{
2965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapLists, decorators: [{
2963
2966
  type: Injectable,
2964
2967
  args: [{
2965
2968
  providedIn: 'root'
@@ -2977,10 +2980,10 @@ class BXRestNavvyLists {
2977
2980
  get(param) {
2978
2981
  return this.Navvy.PagNav(this.BXRestLists.get, param, 'Не удалось получить список', this.mapList.get);
2979
2982
  }
2980
- 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 }); }
2981
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLists, providedIn: 'root' }); }
2983
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLists, deps: [{ token: BXRestNavvyListsElement }, { token: BXRestNavvyListsField }, { token: BXRestMapLists }, { token: BXRestLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
2984
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLists, providedIn: 'root' }); }
2982
2985
  }
2983
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLists, decorators: [{
2986
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLists, decorators: [{
2984
2987
  type: Injectable,
2985
2988
  args: [{
2986
2989
  providedIn: 'root'
@@ -3017,10 +3020,10 @@ class Permission {
3017
3020
  SessionStorage.setItem('permission', permission);
3018
3021
  }
3019
3022
  }
3020
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Permission, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3021
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Permission, providedIn: 'root' }); }
3023
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Permission, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3024
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Permission, providedIn: 'root' }); }
3022
3025
  }
3023
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Permission, decorators: [{
3026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Permission, decorators: [{
3024
3027
  type: Injectable,
3025
3028
  args: [{
3026
3029
  providedIn: 'root'
@@ -3047,162 +3050,22 @@ class BXRestMapTaskElapseditem extends BaseMapServices {
3047
3050
  DATE_STOP: this.toDate(item.DATE_STOP),
3048
3051
  });
3049
3052
  }
3050
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskElapseditem, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3051
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskElapseditem, providedIn: 'root' }); }
3053
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskElapseditem, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3054
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskElapseditem, providedIn: 'root' }); }
3052
3055
  }
3053
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskElapseditem, decorators: [{
3056
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskElapseditem, decorators: [{
3054
3057
  type: Injectable,
3055
3058
  args: [{
3056
3059
  providedIn: 'root'
3057
3060
  }]
3058
3061
  }] });
3059
3062
 
3060
- class BXRestNavvyOperationElapseditem {
3061
- constructor(http, BXRestNavvyElapseditem, BXRestMapElapseditem, BXRestNavvyUser, BXRestNavvyTasks) {
3062
- this.http = http;
3063
- this.BXRestNavvyElapseditem = BXRestNavvyElapseditem;
3064
- this.BXRestMapElapseditem = BXRestMapElapseditem;
3065
- this.BXRestNavvyUser = BXRestNavvyUser;
3066
- this.BXRestNavvyTasks = BXRestNavvyTasks;
3067
- }
3068
- getByInterval(idsUsers, dateStart, dateEnd) {
3069
- const param = {
3070
- ORDER: {
3071
- ID: 'DESC'
3072
- },
3073
- FILTER: {
3074
- USER_ID: idsUsers,
3075
- '>=CREATED_DATE': dateStart.toLocaleString('ru-Ru'),
3076
- '<=CREATED_DATE': dateEnd.toLocaleString('ru-Ru'),
3077
- }
3078
- };
3079
- return this.BXRestNavvyElapseditem.getList(param);
3080
- }
3081
- getListByIDTask(ids) {
3082
- return this.http.branch(ids.map(i => {
3083
- return {
3084
- name: this.http.getNameMethod([$task, $elapseditem, $getlist]),
3085
- param: {
3086
- TASKID: i
3087
- }
3088
- };
3089
- })).pipe(map(v => {
3090
- if (v && v.length) {
3091
- return this.http.mapBranchResultWithoutKey(v).map(i => this.BXRestMapElapseditem.getList(i)).filter((i) => i !== undefined).flat();
3092
- }
3093
- return undefined;
3094
- }));
3095
- }
3096
- checkPermissionAddElapsedtimeToTaskArr(tasks) {
3097
- let request = Object.assign({}, ...tasks.map(i => {
3098
- return { [i]: this.checkPermissionAddElapsedtimeToTask(i) };
3099
- }));
3100
- return forkJoin(request)
3101
- .pipe(take(1), mergeMap(v => {
3102
- let forForeach = Object.entries(v).map(([key, value]) => {
3103
- return { id: Number(key), value: value };
3104
- });
3105
- if (forForeach.find(i => i.value === undefined) !== undefined) {
3106
- let forForeachHave = forForeach.filter(i => i.value !== undefined);
3107
- let forForeachNotHave = forForeach.filter(i => i.value === undefined); // тут получаем все id не сохраненных у нас прав
3108
- return this.http.branch(Object.assign({}, ...forForeachNotHave
3109
- .map(i => i.id)
3110
- .map(i => {
3111
- return {
3112
- [i]: {
3113
- name: this.http.getNameMethod([$tasks, $task, $getaccess]),
3114
- param: {
3115
- TASKID: i,
3116
- ITEMID: 1,
3117
- ACTIONID: 1
3118
- }
3119
- }
3120
- };
3121
- }))).pipe(map(v => {
3122
- if (v && v.length) {
3123
- const res = this.http.mapBranchResult(v);
3124
- forForeachNotHave = Object.entries(res).map(([key, value]) => {
3125
- return { id: Number(key), value: value };
3126
- });
3127
- return Object.assign(forForeachHave, forForeachNotHave);
3128
- }
3129
- return undefined;
3130
- }));
3131
- }
3132
- return of(forForeach);
3133
- }));
3134
- }
3135
- checkPermissionAddElapsedtimeToTask(idTask) {
3136
- let permission = Permission.get();
3137
- if (permission?.tasks?.length) {
3138
- let findTask = permission.tasks.find(i => i.id === idTask);
3139
- if (findTask?.permission) {
3140
- return of(findTask.permission['ELAPSEDTIME.ADD']);
3141
- }
3142
- return this.BXRestNavvyUser.current().result().pipe(mergeMap(self => {
3143
- if (self) {
3144
- return this.BXRestNavvyTasks.task.getaccess({
3145
- id: idTask,
3146
- users: [self.ID]
3147
- }).result().pipe(tap(v => {
3148
- if (v && v[self.ID]) {
3149
- Permission.set({
3150
- tasks: [{ id: idTask, permission: v[self.ID], elapsedItem: [] }]
3151
- });
3152
- }
3153
- }), map(v => {
3154
- return (v && v[self.ID]) ? v[self.ID]['ELAPSEDTIME.ADD'] : false;
3155
- }));
3156
- }
3157
- return of(undefined);
3158
- }));
3159
- }
3160
- return of(undefined);
3161
- }
3162
- checkPermissionReadTask(idTask) {
3163
- let permission = Permission.get();
3164
- if (permission?.tasks?.length) {
3165
- let findTask = permission.tasks.find(i => i.id === idTask);
3166
- if (findTask?.permission) {
3167
- return of(findTask.permission.ACCEPT);
3168
- }
3169
- return this.BXRestNavvyUser.current().result().pipe(mergeMap(self => {
3170
- if (self) {
3171
- return this.BXRestNavvyTasks.task.getaccess({
3172
- id: idTask,
3173
- users: [self.ID]
3174
- }).result().pipe(tap(v => {
3175
- if (v && v[self.ID]) {
3176
- Permission.set({
3177
- tasks: [{ id: idTask, permission: v[self.ID], elapsedItem: [] }]
3178
- });
3179
- }
3180
- }), map(v => {
3181
- return (v && v[self.ID]) ? v[self.ID].ACCEPT : false;
3182
- }));
3183
- }
3184
- return of(undefined);
3185
- }));
3186
- }
3187
- return of(undefined);
3188
- }
3189
- }
3190
-
3191
- class BXRestNavvyElapseditem {
3192
- constructor(BXRestElapseditem, BXRestMapElapseditem, operation) {
3063
+ class BXRestNavvyDelegateElapseditem {
3064
+ constructor(BXRestElapseditem, BXRestMapElapseditem) {
3193
3065
  this.BXRestElapseditem = BXRestElapseditem;
3194
3066
  this.BXRestMapElapseditem = BXRestMapElapseditem;
3195
- this.operation = operation;
3196
3067
  this.Navvy = new Navvy(this.BXRestElapseditem, this.BXRestMapElapseditem);
3197
3068
  }
3198
- /*
3199
- call(methodName: string, ...args: any[]){
3200
- if (typeof this[methodName] === 'function') {
3201
- return this[methodName](...args);
3202
- }
3203
- return this[methodName](...args);
3204
- }
3205
- */
3206
3069
  getList(param = {}) {
3207
3070
  if (param) {
3208
3071
  if (!param.TASKID && !param.SELECT) {
@@ -3219,75 +3082,620 @@ class BXRestNavvyElapseditem {
3219
3082
  }
3220
3083
  return this.Navvy.alterPagNav(this.BXRestElapseditem.getList, param, 'Не удалось получить список затраченного на задачу(-и) времени', this.BXRestMapElapseditem.getList);
3221
3084
  }
3222
- add(param) {
3223
- return this.operation.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
3224
- if (allowedReadTask) {
3225
- return this.operation.checkPermissionAddElapsedtimeToTask(param.TASKID).pipe(mergeMap(allowed => {
3226
- if (allowed) {
3227
- return this.BXRestElapseditem.add(param);
3228
- }
3229
- else {
3230
- return throwError(() => new Error('Отсутствуют права добавление записи затраченного времени'));
3231
- }
3232
- }));
3233
- }
3234
- else {
3235
- return throwError(() => new Error('Отсутствуют права на чтение задачи'));
3236
- }
3237
- }));
3085
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDelegateElapseditem, deps: [{ token: BXRestTaskElapseditem }, { token: BXRestMapTaskElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
3086
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDelegateElapseditem, providedIn: 'root' }); }
3087
+ }
3088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDelegateElapseditem, decorators: [{
3089
+ type: Injectable,
3090
+ args: [{
3091
+ providedIn: 'root'
3092
+ }]
3093
+ }], ctorParameters: function () { return [{ type: BXRestTaskElapseditem }, { type: BXRestMapTaskElapseditem }]; } });
3094
+
3095
+ // import { iTaskResult, iTaskResultHttp } from '@/lib/typification/bitrix/api/rest/task/result/result'
3096
+ class BXRestMapTasksTaskResult extends BaseMapServices {
3097
+ list(item) {
3098
+ return (item) ? item.map(i => this.iTaskResultHttpToiTaskResult(i)) : undefined;
3238
3099
  }
3239
- /**
3240
- * Обновление записи рабочего времени
3241
- *
3242
- * @param param
3243
- */
3244
- update(param) {
3245
- return this.Navvy.simple(() => this.operation.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
3246
- if (allowedReadTask) {
3247
- return this.isAllowedModify(param.TASKID, param.ITEMID).pipe(mergeMap(allowed => {
3248
- if (allowed) {
3249
- return this.BXRestElapseditem.update(param);
3250
- }
3251
- else {
3252
- return throwError(() => new Error('Отсутствуют права на изменение записи затраченного времени'));
3253
- }
3254
- }));
3255
- }
3256
- else {
3257
- return throwError(() => new Error('Отсутствуют права на чтение задачи'));
3258
- }
3259
- })), 'Не удалось обновить элемент списка', this.BXRestMapElapseditem.update);
3100
+ addFromComment(item) {
3101
+ return (item) ? this.iTaskResultHttpToiTaskResult(item) : undefined;
3260
3102
  }
3261
- /*
3262
- getAll(
3263
- params: RequestParamsElapsedGetList | undefined = undefined,
3264
- cache = false
3265
- ): Observable<iHttpAnswerBX<BXRestElapsed[]> | undefined> {
3266
- return this.get(params, cache)
3267
- .pipe(
3268
- mergeMap(items => {
3269
- if (items && items.result) {
3270
- if (items.next) {
3271
- params = (params) ? params : {}
3272
- params.PARAMS = {
3273
- NAV_PARAMS: {
3274
- nPageSize: this.pageSize,
3275
- iNumPage: items.next / this.pageSize + 1
3276
- }
3277
- }
3278
- return this.getAll(params, cache).pipe(
3279
- map(vEnd => {
3280
- if (vEnd && vEnd.result && items.result) {
3281
- return merge(clone(vEnd), {result: [...items.result, ...vEnd.result]})
3282
- }
3283
- return items
3284
- })
3285
- )
3286
- }
3287
- return of(items)
3288
- } else {
3289
- return of(undefined)
3290
- }
3103
+ iTaskResultHttpToiTaskResult(item) {
3104
+ return Object.assign(item, {
3105
+ createdAt: this.toDate(item.createdAt),
3106
+ updatedAt: this.toDate(item.updatedAt)
3107
+ });
3108
+ }
3109
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTasksTaskResult, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3110
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTasksTaskResult, providedIn: 'root' }); }
3111
+ }
3112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTasksTaskResult, decorators: [{
3113
+ type: Injectable,
3114
+ args: [{
3115
+ providedIn: 'root'
3116
+ }]
3117
+ }] });
3118
+
3119
+ class BXRestNavvyTasksTaskResult {
3120
+ constructor(BXRestTasksTaskResult, BXRestMapTasksTaskResult) {
3121
+ this.BXRestTasksTaskResult = BXRestTasksTaskResult;
3122
+ this.BXRestMapTasksTaskResult = BXRestMapTasksTaskResult;
3123
+ this.Navvy = new Navvy(this.BXRestTasksTaskResult, this.BXRestMapTasksTaskResult);
3124
+ }
3125
+ deleteFromComment(commentID) {
3126
+ return this.Navvy.simpleWithArg(this.BXRestTasksTaskResult.deleteFromComment, commentID, 'Не удалось удалить комментарий');
3127
+ }
3128
+ addFromComment(commentID) {
3129
+ return this.Navvy.simpleWithArg(this.BXRestTasksTaskResult.addFromComment, commentID, 'Не удалось добавить комментарий', this.BXRestMapTasksTaskResult.addFromComment);
3130
+ }
3131
+ list(param) {
3132
+ return this.Navvy.PagNav(this.BXRestTasksTaskResult.list, param, 'Не удалось добавить комментарий', this.BXRestMapTasksTaskResult.list);
3133
+ }
3134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTasksTaskResult, deps: [{ token: BXRestTasksTaskResult }, { token: BXRestMapTasksTaskResult }], target: i0.ɵɵFactoryTarget.Injectable }); }
3135
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTasksTaskResult, providedIn: 'root' }); }
3136
+ }
3137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTasksTaskResult, decorators: [{
3138
+ type: Injectable,
3139
+ args: [{
3140
+ providedIn: 'root'
3141
+ }]
3142
+ }], ctorParameters: function () { return [{ type: BXRestTasksTaskResult }, { type: BXRestMapTasksTaskResult }]; } });
3143
+
3144
+ /// type SelectInterfaceTypeTasksTaskList<T> = T extends iBXRestHttpTasksTaskList ? iBXRestTasksTaskList : iBXRestTasksTaskListDefault
3145
+ class BXRestMapTasksTask extends BaseMapServices {
3146
+ constructor(result) {
3147
+ super();
3148
+ this.result = result;
3149
+ }
3150
+ getaccess(v) {
3151
+ return (v && v.allowedActions) ? v.allowedActions : undefined;
3152
+ }
3153
+ add(item) {
3154
+ return (item) ? this.TaskBXHttpToTaskBX(item.task) : undefined;
3155
+ }
3156
+ get(item) {
3157
+ return (item && item.task) ? this.TaskBXHttpToTaskBX(item.task) : undefined;
3158
+ }
3159
+ list(item) {
3160
+ // @ts-ignore
3161
+ return (item && item.tasks) ? item.tasks.map(i => this.TaskBXHttpToTaskBX(i)) : undefined;
3162
+ }
3163
+ TaskBXHttpToTaskBX(item) {
3164
+ let result = {};
3165
+ if (item.id) {
3166
+ result.id = this.toNum(item.id);
3167
+ }
3168
+ if (item.parentId) {
3169
+ result.parentId = this.toNum(item.parentId);
3170
+ }
3171
+ if (item.priority) {
3172
+ result.priority = this.toNum(item.priority);
3173
+ }
3174
+ if (item.status) {
3175
+ result.status = this.toNum(item.status);
3176
+ }
3177
+ if (item.multitask) {
3178
+ result.multitask = item.multitask === 'Y';
3179
+ }
3180
+ if (item.groupId) {
3181
+ result.groupId = this.toNum(item.groupId);
3182
+ }
3183
+ if (item.stageId) {
3184
+ result.stageId = this.toNum(item.stageId);
3185
+ }
3186
+ if (item.createdBy) {
3187
+ result.createdBy = this.toNum(item.createdBy);
3188
+ }
3189
+ if (item.createdDate) {
3190
+ result.createdDate = this.toDate(item.createdDate);
3191
+ }
3192
+ if (item.responsibleId) {
3193
+ result.responsibleId = this.toNum(item.responsibleId);
3194
+ }
3195
+ if (item.changedBy) {
3196
+ result.changedBy = this.toNum(item.changedBy);
3197
+ }
3198
+ if (item.changedDate) {
3199
+ result.changedDate = this.toDate(item.changedDate);
3200
+ }
3201
+ if (item.statusChangedBy) {
3202
+ result.statusChangedBy = this.toNum(item.statusChangedBy);
3203
+ }
3204
+ if (item.statusChangedDate) {
3205
+ result.statusChangedDate = this.toDate(item.statusChangedDate);
3206
+ }
3207
+ if (item.closedBy) {
3208
+ result.closedBy = this.toNum(item.closedBy);
3209
+ }
3210
+ if (item.closedDate) {
3211
+ result.closedDate = this.toDate(item.closedDate);
3212
+ }
3213
+ if (item.dateStart) {
3214
+ result.dateStart = this.toDate(item.dateStart);
3215
+ }
3216
+ if (item.deadline) {
3217
+ result.deadline = this.toDate(item.deadline);
3218
+ }
3219
+ if (item.startDatePlan) {
3220
+ result.startDatePlan = this.toDate(item.startDatePlan);
3221
+ }
3222
+ if (item.endDatePlan) {
3223
+ result.endDatePlan = this.toDate(item.endDatePlan);
3224
+ }
3225
+ if (item.forumTopicId) {
3226
+ result.forumTopicId = this.toNum(item.forumTopicId);
3227
+ }
3228
+ if (item.forumId) {
3229
+ result.forumId = this.toNum(item.forumId);
3230
+ }
3231
+ if (item.viewedDate) {
3232
+ result.viewedDate = this.toDate(item.viewedDate);
3233
+ }
3234
+ if (item.sorting) {
3235
+ result.sorting = this.toNum(item.sorting);
3236
+ }
3237
+ if (item.durationPlan) {
3238
+ result.durationPlan = this.toNum(item.durationPlan);
3239
+ }
3240
+ if (item.descriptionInBbcode) {
3241
+ result.descriptionInBbcode = item.descriptionInBbcode === 'Y';
3242
+ }
3243
+ if (item.accomplices) {
3244
+ result.accomplices = item.accomplices.map(i => this.toNum(i));
3245
+ }
3246
+ if (item.subStatus) {
3247
+ result.subStatus = this.toNum(item.subStatus);
3248
+ }
3249
+ if (item.creator) {
3250
+ result.creator = Object.assign(item.creator, { id: this.toNum(item.creator.id) });
3251
+ }
3252
+ if (item.responsible) {
3253
+ result.responsible = Object.assign(item.responsible, { id: this.toNum(item.responsible.id) });
3254
+ }
3255
+ if (item.accomplicesData) {
3256
+ result.accomplicesData =
3257
+ Object.values(item.accomplicesData).map(i => Object.assign(i, { id: this.toNum(i.id) }));
3258
+ }
3259
+ if (item.allowTimeTracking) {
3260
+ result.allowTimeTracking = item.allowTimeTracking === 'Y';
3261
+ }
3262
+ return Object.assign(item, result);
3263
+ }
3264
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTasksTask, deps: [{ token: BXRestMapTasksTaskResult }], target: i0.ɵɵFactoryTarget.Injectable }); }
3265
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTasksTask, providedIn: 'root' }); }
3266
+ }
3267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTasksTask, decorators: [{
3268
+ type: Injectable,
3269
+ args: [{
3270
+ providedIn: 'root'
3271
+ }]
3272
+ }], ctorParameters: function () { return [{ type: BXRestMapTasksTaskResult }]; } });
3273
+
3274
+ // export interface TimeProcess {
3275
+ // total: number,
3276
+ // next: number
3277
+ // }
3278
+ class BXRestNavvyTasksTask {
3279
+ constructor(result, BXRestTasksTask,
3280
+ // private snackBar: SnackBarService,
3281
+ // private store: Store<{ tasks: IStoreTask }>,
3282
+ BXRestMapTasksTask) {
3283
+ this.result = result;
3284
+ this.BXRestTasksTask = BXRestTasksTask;
3285
+ this.BXRestMapTasksTask = BXRestMapTasksTask;
3286
+ // pageSize = 50
3287
+ // nowLoad$ = new ReplaySubject<TimeProcess>(1)
3288
+ this.def = {
3289
+ select: ['ID', 'PARENT_ID', 'TITLE', 'DESCRIPTION', 'MARK', 'PRIORITY', 'STATUS', 'MULTITASK',
3290
+ 'GROUP_ID', 'STAGE_ID', 'CREATED_BY', 'CREATED_DATE', 'RESPONSIBLE_ID', 'ACCOMPLICES', 'AUDITORS',
3291
+ 'CHANGED_BY', 'CHANGED_DATE', 'STATUS_CHANGED_DATE', 'CLOSED_BY', 'CLOSED_DATE', 'DATE_START', 'VIEWED_DATE',
3292
+ 'DEADLINE', 'START_DATE_PLAN', 'END_DATE_PLAN', 'FORKED_BY_TEMPLATE_ID', 'TIME_ESTIMATE', 'TIME_SPENT_IN_LOGS',
3293
+ 'TAGS', 'ALLOW_TIME_TRACKING'
3294
+ ]
3295
+ };
3296
+ this.Navvy = new Navvy(this.BXRestTasksTask, this.BXRestMapTasksTask);
3297
+ // this.storeTask$ = this.store.select('tasks')
3298
+ // this.nowLoad$.next({
3299
+ // total: 0,
3300
+ // next: 0
3301
+ // })
3302
+ }
3303
+ add(param) {
3304
+ return this.Navvy.simpleWithArg(this.BXRestTasksTask.add, param, 'Не удалось добавить задачу', this.BXRestMapTasksTask.add);
3305
+ // return this.http.post<{ task: TaskBXHttp }>(this.url.add, {fields: param}).pipe(
3306
+ // map(v => {
3307
+ // if (v && v.result && v.result.task) {
3308
+ // return Object.assign(
3309
+ // v,
3310
+ // {
3311
+ // result: this.taskBXMap.TaskBXHttpToTaskBX(v.result.task)
3312
+ // })
3313
+ // }
3314
+ // return undefined
3315
+ // }
3316
+ // ))
3317
+ }
3318
+ /*
3319
+ update(taskId: number, updateFields: iBXRestTaskFieldsName[], task: iBXRestTask) {
3320
+ let sendTask: Record<string, any> = {}
3321
+ let taskTS: Record<string, any> = task
3322
+ if (updateFields.length) {
3323
+ for (let updateField of updateFields) {
3324
+ if (taskTS[camelCase(updateField)]) {
3325
+ sendTask[updateField] = taskTS[camelCase(updateField)]
3326
+ }
3327
+ }
3328
+ if (Object.values(sendTask).length) {
3329
+ return this.http.post(
3330
+ this.url.update,
3331
+ {taskId: taskId, fields: sendTask},
3332
+ 'error to update task')
3333
+ } else {
3334
+ this.snackBar.error('not valid send data task')
3335
+ console.error('not valid send data task', sendTask, task)
3336
+ return of(undefined)
3337
+ }
3338
+ }
3339
+
3340
+ this.snackBar.warning('not have field for update')
3341
+ return of(undefined)
3342
+ }
3343
+ */
3344
+ get(param) {
3345
+ if (!param.select) {
3346
+ param.select = this.def.select;
3347
+ }
3348
+ return this.Navvy.simpleWithArg(this.BXRestTasksTask.get, param, 'Не удалось получить задачу', this.BXRestMapTasksTask.get);
3349
+ }
3350
+ list(param = {}) {
3351
+ if (!param.select) {
3352
+ param.select = this.def.select;
3353
+ }
3354
+ return this.Navvy.PagNavTasks(this.BXRestTasksTask.list, param, 'Не удалось получить список задач', this.BXRestMapTasksTask.list);
3355
+ }
3356
+ /*
3357
+ listArray(requestArray: RequestApiTaskListBX = {}) {
3358
+ return this.list(requestArray).pipe(
3359
+ map(v => this.http.mapResult(v)),
3360
+ map(v => (v && v.tasks) ? v.tasks : [])
3361
+ )
3362
+ }
3363
+
3364
+ listAll(requestArray: RequestApiTaskListBX = {}, cache = false): Observable<TaskBX[]> {
3365
+ if (!requestArray.select) {
3366
+ requestArray.select = this.def.select
3367
+ if (cache) {
3368
+ return this.storeTask$.pipe(
3369
+ take(1),
3370
+ mergeMap(tasks => {
3371
+ if (tasks && tasks.data.http.list && requestArray.filter && requestArray.filter.ID) {
3372
+ const ids = (typeof requestArray.filter.ID === 'number') ? [requestArray.filter.ID] : requestArray.filter.ID
3373
+ let filter = tasks.data.http.list.filter(i => (i.id) ? ids.includes(i.id) : false)
3374
+ if (filter.length === ids.length) {
3375
+ return of(filter)
3376
+ }
3377
+ }
3378
+ return this.getEndListArray(requestArray)
3379
+ })
3380
+ )
3381
+ }
3382
+ return this.getEndListArray(requestArray)
3383
+ }
3384
+ return this.getEndListArray(requestArray)
3385
+ }
3386
+
3387
+ getEndListArray(requestArray: RequestApiTaskListBX): Observable<TaskBX[]> {
3388
+ return this.list(requestArray).pipe(
3389
+ mergeMap((items: AnswerApiTaskBX | undefined): ObservableInput<any> | Observable<AnswerApiTaskBX[]> => {
3390
+ if (items && items.result && typeof items.result.tasks === 'object') {
3391
+ const items$ = of(items.result.tasks)
3392
+ if (items.next) {
3393
+ this.nowLoad$.next({
3394
+ total: (items.total) ? items.total : 0,
3395
+ next: items.next
3396
+ })
3397
+ requestArray.start = items.next
3398
+ return this.getEndListArray(requestArray).pipe(
3399
+ map(vEnd => {
3400
+ if (vEnd && items.result.tasks) {
3401
+ return [...items.result.tasks, ...vEnd]
3402
+ }
3403
+ return (items.result.tasks) ? items.result.tasks : []
3404
+ }))
3405
+ }
3406
+ this.nowLoad$.next({
3407
+ total: 0,
3408
+ next: 0
3409
+ })
3410
+ return items$
3411
+ } else {
3412
+ return of([])
3413
+ }
3414
+ })
3415
+ )
3416
+ }
3417
+
3418
+ getFields() {
3419
+ return this.storeTask$.pipe(
3420
+ mergeMap(v => {
3421
+ if (v && !v.data.fields) {
3422
+ return this.http.post<iHttpAnswerBX<{ fields: iGetFieldsDescription }>>(this.url.getFields).pipe(
3423
+ tap(v => {
3424
+ if (v && v.result) {
3425
+ this.store.dispatch(saveFields(v.result))
3426
+ }
3427
+ }),
3428
+ map(v => {
3429
+ if (v && v.result && v.result.fields) {
3430
+ return {result: v.result.fields}
3431
+ }
3432
+
3433
+ return undefined
3434
+ })
3435
+ )
3436
+ }
3437
+ if (v.data.fields) {
3438
+ return of({result: clone<iGetFieldsDescription>(v.data.fields)})
3439
+ } else {
3440
+ return of(undefined)
3441
+ }
3442
+ })
3443
+ )
3444
+ } */
3445
+ getaccess(param) {
3446
+ return this.Navvy.simpleWithArg(this.BXRestTasksTask.getaccess, param, 'Не удалось получить права на указанных пользователей', this.BXRestMapTasksTask.getaccess);
3447
+ }
3448
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTasksTask, deps: [{ token: BXRestNavvyTasksTaskResult }, { token: BXRestTasksTask }, { token: BXRestMapTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
3449
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTasksTask, providedIn: 'root' }); }
3450
+ }
3451
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTasksTask, decorators: [{
3452
+ type: Injectable,
3453
+ args: [{
3454
+ providedIn: 'root'
3455
+ }]
3456
+ }], ctorParameters: function () { return [{ type: BXRestNavvyTasksTaskResult }, { type: BXRestTasksTask }, { type: BXRestMapTasksTask }]; } });
3457
+
3458
+ class BXRestNavvyTasks {
3459
+ constructor(task) {
3460
+ this.task = task;
3461
+ }
3462
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTasks, deps: [{ token: BXRestNavvyTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
3463
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTasks, providedIn: 'root' }); }
3464
+ }
3465
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTasks, decorators: [{
3466
+ type: Injectable,
3467
+ args: [{
3468
+ providedIn: 'root'
3469
+ }]
3470
+ }], ctorParameters: function () { return [{ type: BXRestNavvyTasksTask }]; } });
3471
+
3472
+ class BXRestNavvyOperationElapseditem {
3473
+ constructor(http, delegate, BXRestMapElapseditem, BXRestNavvyUser, BXRestNavvyTasks) {
3474
+ this.http = http;
3475
+ this.delegate = delegate;
3476
+ this.BXRestMapElapseditem = BXRestMapElapseditem;
3477
+ this.BXRestNavvyUser = BXRestNavvyUser;
3478
+ this.BXRestNavvyTasks = BXRestNavvyTasks;
3479
+ }
3480
+ getByInterval(idsUsers, dateStart, dateEnd) {
3481
+ const param = {
3482
+ ORDER: {
3483
+ ID: 'DESC'
3484
+ },
3485
+ FILTER: {
3486
+ USER_ID: idsUsers,
3487
+ '>=CREATED_DATE': dateStart.toLocaleString('ru-Ru'),
3488
+ '<=CREATED_DATE': dateEnd.toLocaleString('ru-Ru'),
3489
+ }
3490
+ };
3491
+ return this.delegate.getList(param);
3492
+ }
3493
+ getListByIDTask(ids) {
3494
+ return this.http.branch(ids.map(i => {
3495
+ return {
3496
+ name: this.http.getNameMethod([$task, $elapseditem, $getlist]),
3497
+ param: {
3498
+ TASKID: i
3499
+ }
3500
+ };
3501
+ })).pipe(map(v => {
3502
+ if (v && v.length) {
3503
+ return this.http.mapBranchResultWithoutKey(v).map(i => this.BXRestMapElapseditem.getList(i)).filter((i) => i !== undefined).flat();
3504
+ }
3505
+ return undefined;
3506
+ }));
3507
+ }
3508
+ checkPermissionAddElapsedtimeToTaskArr(tasks) {
3509
+ let request = Object.assign({}, ...tasks.map(i => {
3510
+ return { [i]: this.checkPermissionAddElapsedtimeToTask(i) };
3511
+ }));
3512
+ return forkJoin(request)
3513
+ .pipe(take(1), mergeMap(v => {
3514
+ let forForeach = Object.entries(v).map(([key, value]) => {
3515
+ return { id: Number(key), value: value };
3516
+ });
3517
+ if (forForeach.find(i => i.value === undefined) !== undefined) {
3518
+ let forForeachHave = forForeach.filter(i => i.value !== undefined);
3519
+ let forForeachNotHave = forForeach.filter(i => i.value === undefined); // тут получаем все id не сохраненных у нас прав
3520
+ return this.http.branch(Object.assign({}, ...forForeachNotHave
3521
+ .map(i => i.id)
3522
+ .map(i => {
3523
+ return {
3524
+ [i]: {
3525
+ name: this.http.getNameMethod([$tasks, $task, $getaccess]),
3526
+ param: {
3527
+ TASKID: i,
3528
+ ITEMID: 1,
3529
+ ACTIONID: 1
3530
+ }
3531
+ }
3532
+ };
3533
+ }))).pipe(map(v => {
3534
+ if (v && v.length) {
3535
+ const res = this.http.mapBranchResult(v);
3536
+ forForeachNotHave = Object.entries(res).map(([key, value]) => {
3537
+ return { id: Number(key), value: value };
3538
+ });
3539
+ return Object.assign(forForeachHave, forForeachNotHave);
3540
+ }
3541
+ return undefined;
3542
+ }));
3543
+ }
3544
+ return of(forForeach);
3545
+ }));
3546
+ }
3547
+ checkPermissionAddElapsedtimeToTask(idTask) {
3548
+ let permission = Permission.get();
3549
+ if (permission?.tasks?.length) {
3550
+ let findTask = permission.tasks.find(i => i.id === idTask);
3551
+ if (findTask?.permission) {
3552
+ return of(findTask.permission['ELAPSEDTIME.ADD']);
3553
+ }
3554
+ return this.BXRestNavvyUser.current().result().pipe(mergeMap(self => {
3555
+ if (self) {
3556
+ return this.BXRestNavvyTasks.task.getaccess({
3557
+ id: idTask,
3558
+ users: [self.ID]
3559
+ }).result().pipe(tap(v => {
3560
+ if (v && v[self.ID]) {
3561
+ Permission.set({
3562
+ tasks: [{ id: idTask, permission: v[self.ID], elapsedItem: [] }]
3563
+ });
3564
+ }
3565
+ }), map(v => {
3566
+ return (v && v[self.ID]) ? v[self.ID]['ELAPSEDTIME.ADD'] : false;
3567
+ }));
3568
+ }
3569
+ return of(undefined);
3570
+ }));
3571
+ }
3572
+ return of(undefined);
3573
+ }
3574
+ checkPermissionReadTask(idTask) {
3575
+ let permission = Permission.get();
3576
+ if (permission?.tasks?.length) {
3577
+ let findTask = permission.tasks.find(i => i.id === idTask);
3578
+ if (findTask?.permission) {
3579
+ return of(findTask.permission.ACCEPT);
3580
+ }
3581
+ return this.BXRestNavvyUser.current().result().pipe(mergeMap(self => {
3582
+ if (self) {
3583
+ return this.BXRestNavvyTasks.task.getaccess({
3584
+ id: idTask,
3585
+ users: [self.ID]
3586
+ }).result().pipe(tap(v => {
3587
+ if (v && v[self.ID]) {
3588
+ Permission.set({
3589
+ tasks: [{ id: idTask, permission: v[self.ID], elapsedItem: [] }]
3590
+ });
3591
+ }
3592
+ }), map(v => {
3593
+ return (v && v[self.ID]) ? v[self.ID].ACCEPT : false;
3594
+ }));
3595
+ }
3596
+ return of(undefined);
3597
+ }));
3598
+ }
3599
+ return of(undefined);
3600
+ }
3601
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyOperationElapseditem, deps: [{ token: HttpBXServices }, { token: BXRestNavvyDelegateElapseditem }, { token: BXRestMapTaskElapseditem }, { token: BXRestNavvyUser }, { token: BXRestNavvyTasks }], target: i0.ɵɵFactoryTarget.Injectable }); }
3602
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyOperationElapseditem, providedIn: 'root' }); }
3603
+ }
3604
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyOperationElapseditem, decorators: [{
3605
+ type: Injectable,
3606
+ args: [{
3607
+ providedIn: 'root'
3608
+ }]
3609
+ }], ctorParameters: function () { return [{ type: HttpBXServices }, { type: BXRestNavvyDelegateElapseditem }, { type: BXRestMapTaskElapseditem }, { type: BXRestNavvyUser }, { type: BXRestNavvyTasks }]; } });
3610
+
3611
+ class BXRestNavvyElapseditem {
3612
+ constructor(BXRestElapseditem, BXRestMapElapseditem, delegate, operation) {
3613
+ this.BXRestElapseditem = BXRestElapseditem;
3614
+ this.BXRestMapElapseditem = BXRestMapElapseditem;
3615
+ this.delegate = delegate;
3616
+ this.operation = operation;
3617
+ this.Navvy = new Navvy(this.BXRestElapseditem, this.BXRestMapElapseditem);
3618
+ }
3619
+ /*
3620
+ call(methodName: string, ...args: any[]){
3621
+ if (typeof this[methodName] === 'function') {
3622
+ return this[methodName](...args);
3623
+ }
3624
+ return this[methodName](...args);
3625
+ }
3626
+ */
3627
+ getList(param = {}) {
3628
+ return this.delegate.getList(param);
3629
+ }
3630
+ add(param) {
3631
+ return this.operation.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
3632
+ if (allowedReadTask) {
3633
+ return this.operation.checkPermissionAddElapsedtimeToTask(param.TASKID).pipe(mergeMap(allowed => {
3634
+ if (allowed) {
3635
+ return this.BXRestElapseditem.add(param);
3636
+ }
3637
+ else {
3638
+ return throwError(() => new Error('Отсутствуют права добавление записи затраченного времени'));
3639
+ }
3640
+ }));
3641
+ }
3642
+ else {
3643
+ return throwError(() => new Error('Отсутствуют права на чтение задачи'));
3644
+ }
3645
+ }));
3646
+ }
3647
+ /**
3648
+ * Обновление записи рабочего времени
3649
+ *
3650
+ * @param param
3651
+ */
3652
+ update(param) {
3653
+ return this.Navvy.simple(() => this.operation.checkPermissionReadTask(param.TASKID).pipe(mergeMap(allowedReadTask => {
3654
+ if (allowedReadTask) {
3655
+ return this.isAllowedModify(param.TASKID, param.ITEMID).pipe(mergeMap(allowed => {
3656
+ if (allowed) {
3657
+ return this.BXRestElapseditem.update(param);
3658
+ }
3659
+ else {
3660
+ return throwError(() => new Error('Отсутствуют права на изменение записи затраченного времени'));
3661
+ }
3662
+ }));
3663
+ }
3664
+ else {
3665
+ return throwError(() => new Error('Отсутствуют права на чтение задачи'));
3666
+ }
3667
+ })), 'Не удалось обновить элемент списка', this.BXRestMapElapseditem.update);
3668
+ }
3669
+ /*
3670
+ getAll(
3671
+ params: RequestParamsElapsedGetList | undefined = undefined,
3672
+ cache = false
3673
+ ): Observable<iHttpAnswerBX<BXRestElapsed[]> | undefined> {
3674
+ return this.get(params, cache)
3675
+ .pipe(
3676
+ mergeMap(items => {
3677
+ if (items && items.result) {
3678
+ if (items.next) {
3679
+ params = (params) ? params : {}
3680
+ params.PARAMS = {
3681
+ NAV_PARAMS: {
3682
+ nPageSize: this.pageSize,
3683
+ iNumPage: items.next / this.pageSize + 1
3684
+ }
3685
+ }
3686
+ return this.getAll(params, cache).pipe(
3687
+ map(vEnd => {
3688
+ if (vEnd && vEnd.result && items.result) {
3689
+ return merge(clone(vEnd), {result: [...items.result, ...vEnd.result]})
3690
+ }
3691
+ return items
3692
+ })
3693
+ )
3694
+ }
3695
+ return of(items)
3696
+ } else {
3697
+ return of(undefined)
3698
+ }
3291
3699
  })
3292
3700
  )
3293
3701
  }
@@ -3386,15 +3794,15 @@ class BXRestNavvyElapseditem {
3386
3794
  }
3387
3795
  })), 'Не удалось удалить элемент списка', v => (v === null));
3388
3796
  }
3389
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, deps: [{ token: BXRestTaskElapseditem }, { token: BXRestMapTaskElapseditem }, { token: BXRestNavvyOperationElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
3390
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, providedIn: 'root' }); }
3797
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyElapseditem, deps: [{ token: BXRestTaskElapseditem }, { token: BXRestMapTaskElapseditem }, { token: BXRestNavvyDelegateElapseditem }, { token: BXRestNavvyOperationElapseditem }], target: i0.ɵɵFactoryTarget.Injectable }); }
3798
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyElapseditem, providedIn: 'root' }); }
3391
3799
  }
3392
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyElapseditem, decorators: [{
3800
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyElapseditem, decorators: [{
3393
3801
  type: Injectable,
3394
3802
  args: [{
3395
3803
  providedIn: 'root'
3396
3804
  }]
3397
- }], ctorParameters: function () { return [{ type: BXRestTaskElapseditem }, { type: BXRestMapTaskElapseditem }, { type: BXRestNavvyOperationElapseditem }]; } });
3805
+ }], ctorParameters: function () { return [{ type: BXRestTaskElapseditem }, { type: BXRestMapTaskElapseditem }, { type: BXRestNavvyDelegateElapseditem }, { type: BXRestNavvyOperationElapseditem }]; } });
3398
3806
 
3399
3807
  class BXRestMapTaskCommentItem extends BaseMapServices {
3400
3808
  getlist(value) {
@@ -3430,472 +3838,120 @@ class BXRestMapTaskCommentItem extends BaseMapServices {
3430
3838
  AUTHOR_ID: this.toNum(item.AUTHOR_ID),
3431
3839
  ID: this.toNum(item.ID),
3432
3840
  POST_DATE: this.toDate(item.POST_DATE),
3433
- AUTHOR_EMAIL: item.AUTHOR_EMAIL,
3434
- AUTHOR_NAME: item.AUTHOR_NAME,
3435
- POST_MESSAGE: item.POST_MESSAGE,
3436
- POST_MESSAGE_HTML: item.POST_MESSAGE_HTML
3437
- };
3438
- }
3439
- }
3440
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskCommentItem, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3441
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskCommentItem, providedIn: 'root' }); }
3442
- }
3443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskCommentItem, decorators: [{
3444
- type: Injectable,
3445
- args: [{
3446
- providedIn: 'root'
3447
- }]
3448
- }] });
3449
-
3450
- class BXRestNavvyTaskCommentItem {
3451
- constructor(BXRestTaskCommentItem, mapTaskCommentItem, snackBar) {
3452
- this.BXRestTaskCommentItem = BXRestTaskCommentItem;
3453
- this.mapTaskCommentItem = mapTaskCommentItem;
3454
- this.snackBar = snackBar;
3455
- this.Navvy = new Navvy(this.BXRestTaskCommentItem, this.mapTaskCommentItem);
3456
- }
3457
- add(param) {
3458
- return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.add, param, 'Не удалось добавить комментарий к задаче');
3459
- }
3460
- update(param) {
3461
- return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.update, param, 'Не удалось обновить комментарий к задаче');
3462
- }
3463
- get(param) {
3464
- return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.get, param, 'Не удалось получить комментарий к задаче', this.mapTaskCommentItem.get);
3465
- }
3466
- getlist(param = {
3467
- FILTER: {},
3468
- ORDER: {
3469
- POST_DATE: 'asc'
3470
- }
3471
- }) {
3472
- return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.getlist, param, 'Не удалось получить комментарии к задаче', this.mapTaskCommentItem.getlist);
3473
- }
3474
- del(param) {
3475
- if (param.ITEMID > 0) {
3476
- return this.get(param).result().pipe(mergeMap(v => {
3477
- if (v) {
3478
- return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.del, param, 'Не удалось удалить комментарий').result();
3479
- }
3480
- this.snackBar.warning('comment not exist');
3481
- return of(false);
3482
- }));
3483
- }
3484
- else {
3485
- this.snackBar.warning('comment not exist');
3486
- return of(false);
3487
- }
3488
- }
3489
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTaskCommentItem, deps: [{ token: BXRestTaskCommentItem }, { token: BXRestMapTaskCommentItem }, { token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3490
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTaskCommentItem, providedIn: 'root' }); }
3491
- }
3492
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTaskCommentItem, decorators: [{
3493
- type: Injectable,
3494
- args: [{
3495
- providedIn: 'root'
3496
- }]
3497
- }], ctorParameters: function () { return [{ type: BXRestTaskCommentItem }, { type: BXRestMapTaskCommentItem }, { type: SnackBarService }]; } });
3498
-
3499
- class BXRestMapTaskPlaner extends BaseMapServices {
3500
- getList(v) {
3501
- return (v) ? v.map(i => this.toNum(i)) : undefined;
3502
- }
3503
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskPlaner, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3504
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskPlaner, providedIn: 'root' }); }
3505
- }
3506
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskPlaner, decorators: [{
3507
- type: Injectable,
3508
- args: [{
3509
- providedIn: 'root'
3510
- }]
3511
- }] });
3512
-
3513
- class BXRestNavvyTaskPlanner {
3514
- constructor(BXRestTaskPlanner, BXRestMapTaskPlaner) {
3515
- this.BXRestTaskPlanner = BXRestTaskPlanner;
3516
- this.BXRestMapTaskPlaner = BXRestMapTaskPlaner;
3517
- this.Navvy = new Navvy(this.BXRestTaskPlanner, this.BXRestMapTaskPlaner);
3518
- }
3519
- getList() {
3520
- return this.Navvy.simple(this.BXRestTaskPlanner.getList, 'Не удалось получить текущий клан на день', this.BXRestMapTaskPlaner.getList);
3521
- }
3522
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTaskPlanner, deps: [{ token: BXRestTaskPlanner }, { token: BXRestMapTaskPlaner }], target: i0.ɵɵFactoryTarget.Injectable }); }
3523
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTaskPlanner, providedIn: 'root' }); }
3524
- }
3525
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTaskPlanner, decorators: [{
3526
- type: Injectable,
3527
- args: [{
3528
- providedIn: 'root'
3529
- }]
3530
- }], ctorParameters: function () { return [{ type: BXRestTaskPlanner }, { type: BXRestMapTaskPlaner }]; } });
3531
-
3532
- class BXRestNavvyTask {
3533
- constructor(elapseditem, commentitem, planner) {
3534
- this.elapseditem = elapseditem;
3535
- this.commentitem = commentitem;
3536
- this.planner = planner;
3537
- }
3538
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTask, deps: [{ token: BXRestNavvyElapseditem }, { token: BXRestNavvyTaskCommentItem }, { token: BXRestNavvyTaskPlanner }], target: i0.ɵɵFactoryTarget.Injectable }); }
3539
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTask, providedIn: 'root' }); }
3540
- }
3541
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTask, decorators: [{
3542
- type: Injectable,
3543
- args: [{
3544
- providedIn: 'root'
3545
- }]
3546
- }], ctorParameters: function () { return [{ type: BXRestNavvyElapseditem }, { type: BXRestNavvyTaskCommentItem }, { type: BXRestNavvyTaskPlanner }]; } });
3547
-
3548
- class BXRestMapTasksTask extends BaseMapServices {
3549
- getaccess(v) {
3550
- return (v && v.allowedActions) ? v.allowedActions : undefined;
3551
- }
3552
- add(item) {
3553
- return (item) ? this.TaskBXHttpToTaskBX(item.task) : undefined;
3554
- }
3555
- get(item) {
3556
- return (item && item.task) ? this.TaskBXHttpToTaskBX(item.task) : undefined;
3557
- }
3558
- list(item) {
3559
- return (item && item.tasks) ? item.tasks.map(i => this.TaskBXHttpToTaskBX(i)) : undefined;
3560
- }
3561
- TaskBXHttpToTaskBX(item) {
3562
- let result = {};
3563
- if (item.id) {
3564
- result.id = this.toNum(item.id);
3565
- }
3566
- if (item.parentId) {
3567
- result.parentId = this.toNum(item.parentId);
3568
- }
3569
- if (item.priority) {
3570
- result.priority = this.toNum(item.priority);
3571
- }
3572
- if (item.status) {
3573
- result.status = this.toNum(item.status);
3574
- }
3575
- if (item.multitask) {
3576
- result.multitask = item.multitask === 'Y';
3577
- }
3578
- if (item.groupId) {
3579
- result.groupId = this.toNum(item.groupId);
3580
- }
3581
- if (item.stageId) {
3582
- result.stageId = this.toNum(item.stageId);
3583
- }
3584
- if (item.createdBy) {
3585
- result.createdBy = this.toNum(item.createdBy);
3586
- }
3587
- if (item.createdDate) {
3588
- result.createdDate = this.toDate(item.createdDate);
3589
- }
3590
- if (item.responsibleId) {
3591
- result.responsibleId = this.toNum(item.responsibleId);
3592
- }
3593
- if (item.changedBy) {
3594
- result.changedBy = this.toNum(item.changedBy);
3595
- }
3596
- if (item.changedDate) {
3597
- result.changedDate = this.toDate(item.changedDate);
3598
- }
3599
- if (item.statusChangedBy) {
3600
- result.statusChangedBy = this.toNum(item.statusChangedBy);
3601
- }
3602
- if (item.statusChangedDate) {
3603
- result.statusChangedDate = this.toDate(item.statusChangedDate);
3604
- }
3605
- if (item.closedBy) {
3606
- result.closedBy = this.toNum(item.closedBy);
3607
- }
3608
- if (item.closedDate) {
3609
- result.closedDate = this.toDate(item.closedDate);
3610
- }
3611
- if (item.dateStart) {
3612
- result.dateStart = this.toDate(item.dateStart);
3613
- }
3614
- if (item.deadline) {
3615
- result.deadline = this.toDate(item.deadline);
3616
- }
3617
- if (item.startDatePlan) {
3618
- result.startDatePlan = this.toDate(item.startDatePlan);
3619
- }
3620
- if (item.endDatePlan) {
3621
- result.endDatePlan = this.toDate(item.endDatePlan);
3622
- }
3623
- if (item.forumTopicId) {
3624
- result.forumTopicId = this.toNum(item.forumTopicId);
3625
- }
3626
- if (item.forumId) {
3627
- result.forumId = this.toNum(item.forumId);
3628
- }
3629
- if (item.viewedDate) {
3630
- result.viewedDate = this.toDate(item.viewedDate);
3631
- }
3632
- if (item.sorting) {
3633
- result.sorting = this.toNum(item.sorting);
3634
- }
3635
- if (item.durationPlan) {
3636
- result.durationPlan = this.toNum(item.durationPlan);
3637
- }
3638
- if (item.descriptionInBbcode) {
3639
- result.descriptionInBbcode = item.descriptionInBbcode === 'Y';
3640
- }
3641
- if (item.accomplices) {
3642
- result.accomplices = item.accomplices.map(i => this.toNum(i));
3643
- }
3644
- if (item.subStatus) {
3645
- result.subStatus = this.toNum(item.subStatus);
3646
- }
3647
- if (item.creator) {
3648
- result.creator = Object.assign(item.creator, { id: this.toNum(item.creator.id) });
3649
- }
3650
- if (item.responsible) {
3651
- result.responsible = Object.assign(item.responsible, { id: this.toNum(item.responsible.id) });
3652
- }
3653
- if (item.accomplicesData) {
3654
- result.accomplicesData =
3655
- Object.values(item.accomplicesData).map(i => Object.assign(i, { id: this.toNum(i.id) }));
3656
- }
3657
- if (item.allowTimeTracking) {
3658
- result.allowTimeTracking = item.allowTimeTracking === 'Y';
3841
+ AUTHOR_EMAIL: item.AUTHOR_EMAIL,
3842
+ AUTHOR_NAME: item.AUTHOR_NAME,
3843
+ POST_MESSAGE: item.POST_MESSAGE,
3844
+ POST_MESSAGE_HTML: item.POST_MESSAGE_HTML
3845
+ };
3659
3846
  }
3660
- return Object.assign(item, result);
3661
3847
  }
3662
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasksTask, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3663
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasksTask, providedIn: 'root' }); }
3848
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskCommentItem, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3849
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskCommentItem, providedIn: 'root' }); }
3664
3850
  }
3665
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasksTask, decorators: [{
3851
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskCommentItem, decorators: [{
3666
3852
  type: Injectable,
3667
3853
  args: [{
3668
3854
  providedIn: 'root'
3669
3855
  }]
3670
3856
  }] });
3671
3857
 
3672
- // export interface TimeProcess {
3673
- // total: number,
3674
- // next: number
3675
- // }
3676
- class BXRestNavvyTasksTask {
3677
- constructor(BXRestTasksTask,
3678
- // private snackBar: SnackBarService,
3679
- // private store: Store<{ tasks: IStoreTask }>,
3680
- BXRestMapTasksTask) {
3681
- this.BXRestTasksTask = BXRestTasksTask;
3682
- this.BXRestMapTasksTask = BXRestMapTasksTask;
3683
- // pageSize = 50
3684
- // nowLoad$ = new ReplaySubject<TimeProcess>(1)
3685
- this.def = {
3686
- select: ['ID', 'PARENT_ID', 'TITLE', 'DESCRIPTION', 'MARK', 'PRIORITY', 'STATUS', 'MULTITASK',
3687
- 'GROUP_ID', 'STAGE_ID', 'CREATED_BY', 'CREATED_DATE', 'RESPONSIBLE_ID', 'ACCOMPLICES', 'AUDITORS',
3688
- 'CHANGED_BY', 'CHANGED_DATE', 'STATUS_CHANGED_DATE', 'CLOSED_BY', 'CLOSED_DATE', 'DATE_START', 'VIEWED_DATE',
3689
- 'DEADLINE', 'START_DATE_PLAN', 'END_DATE_PLAN', 'FORKED_BY_TEMPLATE_ID', 'TIME_ESTIMATE', 'TIME_SPENT_IN_LOGS',
3690
- 'TAGS', 'ALLOW_TIME_TRACKING'
3691
- ]
3692
- };
3693
- this.Navvy = new Navvy(this.BXRestTasksTask, this.BXRestMapTasksTask);
3694
- // this.storeTask$ = this.store.select('tasks')
3695
- // this.nowLoad$.next({
3696
- // total: 0,
3697
- // next: 0
3698
- // })
3858
+ class BXRestNavvyTaskCommentItem {
3859
+ constructor(BXRestTaskCommentItem, mapTaskCommentItem, snackBar) {
3860
+ this.BXRestTaskCommentItem = BXRestTaskCommentItem;
3861
+ this.mapTaskCommentItem = mapTaskCommentItem;
3862
+ this.snackBar = snackBar;
3863
+ this.Navvy = new Navvy(this.BXRestTaskCommentItem, this.mapTaskCommentItem);
3699
3864
  }
3700
3865
  add(param) {
3701
- return this.Navvy.simpleWithArg(this.BXRestTasksTask.add, param, 'Не удалось добавить задачу', this.BXRestMapTasksTask.add);
3702
- // return this.http.post<{ task: TaskBXHttp }>(this.url.add, {fields: param}).pipe(
3703
- // map(v => {
3704
- // if (v && v.result && v.result.task) {
3705
- // return Object.assign(
3706
- // v,
3707
- // {
3708
- // result: this.taskBXMap.TaskBXHttpToTaskBX(v.result.task)
3709
- // })
3710
- // }
3711
- // return undefined
3712
- // }
3713
- // ))
3866
+ return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.add, param, 'Не удалось добавить комментарий к задаче');
3714
3867
  }
3715
- /*
3716
- update(taskId: number, updateFields: iBXRestTaskFieldsName[], task: iBXRestTask) {
3717
- let sendTask: Record<string, any> = {}
3718
- let taskTS: Record<string, any> = task
3719
- if (updateFields.length) {
3720
- for (let updateField of updateFields) {
3721
- if (taskTS[camelCase(updateField)]) {
3722
- sendTask[updateField] = taskTS[camelCase(updateField)]
3723
- }
3724
- }
3725
- if (Object.values(sendTask).length) {
3726
- return this.http.post(
3727
- this.url.update,
3728
- {taskId: taskId, fields: sendTask},
3729
- 'error to update task')
3730
- } else {
3731
- this.snackBar.error('not valid send data task')
3732
- console.error('not valid send data task', sendTask, task)
3733
- return of(undefined)
3734
- }
3735
- }
3736
-
3737
- this.snackBar.warning('not have field for update')
3738
- return of(undefined)
3868
+ update(param) {
3869
+ return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.update, param, 'Не удалось обновить комментарий к задаче');
3739
3870
  }
3740
- */
3741
3871
  get(param) {
3742
- if (!param.select) {
3743
- param.select = this.def.select;
3744
- }
3745
- return this.Navvy.simpleWithArg(this.BXRestTasksTask.get, param, 'Не удалось получить задачу', this.BXRestMapTasksTask.get);
3872
+ return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.get, param, 'Не удалось получить комментарий к задаче', this.mapTaskCommentItem.get);
3746
3873
  }
3747
- list(param = {}) {
3748
- if (!param.select) {
3749
- param.select = this.def.select;
3874
+ getlist(param = {
3875
+ FILTER: {},
3876
+ ORDER: {
3877
+ POST_DATE: 'asc'
3750
3878
  }
3751
- return this.Navvy.PagNavTasks(this.BXRestTasksTask.list, param, 'Не удалось получить список задач', this.BXRestMapTasksTask.list);
3752
- }
3753
- /*
3754
- listArray(requestArray: RequestApiTaskListBX = {}) {
3755
- return this.list(requestArray).pipe(
3756
- map(v => this.http.mapResult(v)),
3757
- map(v => (v && v.tasks) ? v.tasks : [])
3758
- )
3879
+ }) {
3880
+ return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.getlist, param, 'Не удалось получить комментарии к задаче', this.mapTaskCommentItem.getlist);
3759
3881
  }
3760
-
3761
- listAll(requestArray: RequestApiTaskListBX = {}, cache = false): Observable<TaskBX[]> {
3762
- if (!requestArray.select) {
3763
- requestArray.select = this.def.select
3764
- if (cache) {
3765
- return this.storeTask$.pipe(
3766
- take(1),
3767
- mergeMap(tasks => {
3768
- if (tasks && tasks.data.http.list && requestArray.filter && requestArray.filter.ID) {
3769
- const ids = (typeof requestArray.filter.ID === 'number') ? [requestArray.filter.ID] : requestArray.filter.ID
3770
- let filter = tasks.data.http.list.filter(i => (i.id) ? ids.includes(i.id) : false)
3771
- if (filter.length === ids.length) {
3772
- return of(filter)
3882
+ del(param) {
3883
+ if (param.ITEMID > 0) {
3884
+ return this.get(param).result().pipe(mergeMap(v => {
3885
+ if (v) {
3886
+ return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.del, param, 'Не удалось удалить комментарий').result();
3773
3887
  }
3774
- }
3775
- return this.getEndListArray(requestArray)
3776
- })
3777
- )
3888
+ this.snackBar.warning('comment not exist');
3889
+ return of(false);
3890
+ }));
3891
+ }
3892
+ else {
3893
+ this.snackBar.warning('comment not exist');
3894
+ return of(false);
3778
3895
  }
3779
- return this.getEndListArray(requestArray)
3780
- }
3781
- return this.getEndListArray(requestArray)
3782
- }
3783
-
3784
- getEndListArray(requestArray: RequestApiTaskListBX): Observable<TaskBX[]> {
3785
- return this.list(requestArray).pipe(
3786
- mergeMap((items: AnswerApiTaskBX | undefined): ObservableInput<any> | Observable<AnswerApiTaskBX[]> => {
3787
- if (items && items.result && typeof items.result.tasks === 'object') {
3788
- const items$ = of(items.result.tasks)
3789
- if (items.next) {
3790
- this.nowLoad$.next({
3791
- total: (items.total) ? items.total : 0,
3792
- next: items.next
3793
- })
3794
- requestArray.start = items.next
3795
- return this.getEndListArray(requestArray).pipe(
3796
- map(vEnd => {
3797
- if (vEnd && items.result.tasks) {
3798
- return [...items.result.tasks, ...vEnd]
3799
- }
3800
- return (items.result.tasks) ? items.result.tasks : []
3801
- }))
3802
- }
3803
- this.nowLoad$.next({
3804
- total: 0,
3805
- next: 0
3806
- })
3807
- return items$
3808
- } else {
3809
- return of([])
3810
- }
3811
- })
3812
- )
3813
- }
3814
-
3815
- getFields() {
3816
- return this.storeTask$.pipe(
3817
- mergeMap(v => {
3818
- if (v && !v.data.fields) {
3819
- return this.http.post<iHttpAnswerBX<{ fields: iGetFieldsDescription }>>(this.url.getFields).pipe(
3820
- tap(v => {
3821
- if (v && v.result) {
3822
- this.store.dispatch(saveFields(v.result))
3823
- }
3824
- }),
3825
- map(v => {
3826
- if (v && v.result && v.result.fields) {
3827
- return {result: v.result.fields}
3828
- }
3829
-
3830
- return undefined
3831
- })
3832
- )
3833
- }
3834
- if (v.data.fields) {
3835
- return of({result: clone<iGetFieldsDescription>(v.data.fields)})
3836
- } else {
3837
- return of(undefined)
3838
- }
3839
- })
3840
- )
3841
- }
3842
-
3843
- deleteResultFromComment(commentID: number) {
3844
- return this.http.post<iHttpAnswerBX<any>>(this.url.result.deleteFromComment, {commentId: commentID})
3845
- }
3846
-
3847
- addResultFromComment(commentID: number) {
3848
- return this.http.post<iHttpAnswerBX<iTaskResultHttp>>(this.url.result.addFromComment, {commentId: commentID})
3849
- .pipe(
3850
- map(v => {
3851
- if (v && v.result) {
3852
- this.taskResultMap.iTaskResultHttpToiTaskResult(v.result)
3853
- }
3854
- return undefined
3855
- }))
3856
3896
  }
3857
-
3858
- getResulList(taskId: number): Observable<iTaskResult[] | undefined> {
3859
- return this.http.post<iHttpAnswerBX<iTaskResultHttp[]>>(this.url.result.list, {taskId: taskId})
3860
- .pipe(
3861
- map(v => {
3862
- if (v && v.result) {
3863
- return v.result.map(i => this.taskResultMap.iTaskResultHttpToiTaskResult(i))
3864
- }
3865
- return undefined
3866
- }))
3897
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskCommentItem, deps: [{ token: BXRestTaskCommentItem }, { token: BXRestMapTaskCommentItem }, { token: SnackBarService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3898
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskCommentItem, providedIn: 'root' }); }
3899
+ }
3900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskCommentItem, decorators: [{
3901
+ type: Injectable,
3902
+ args: [{
3903
+ providedIn: 'root'
3904
+ }]
3905
+ }], ctorParameters: function () { return [{ type: BXRestTaskCommentItem }, { type: BXRestMapTaskCommentItem }, { type: SnackBarService }]; } });
3906
+
3907
+ class BXRestMapTaskPlaner extends BaseMapServices {
3908
+ getList(v) {
3909
+ return (v) ? v.map(i => this.toNum(i)) : undefined;
3867
3910
  }
3868
-
3869
- getPlannerList() {
3870
- return this.http.post<iHttpAnswerBX<(string | number)[]>>(this.url.planner.getlist)
3911
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskPlaner, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3912
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskPlaner, providedIn: 'root' }); }
3913
+ }
3914
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskPlaner, decorators: [{
3915
+ type: Injectable,
3916
+ args: [{
3917
+ providedIn: 'root'
3918
+ }]
3919
+ }] });
3920
+
3921
+ class BXRestNavvyTaskPlanner {
3922
+ constructor(BXRestTaskPlanner, BXRestMapTaskPlaner) {
3923
+ this.BXRestTaskPlanner = BXRestTaskPlanner;
3924
+ this.BXRestMapTaskPlaner = BXRestMapTaskPlaner;
3925
+ this.Navvy = new Navvy(this.BXRestTaskPlanner, this.BXRestMapTaskPlaner);
3871
3926
  }
3872
- */
3873
- getaccess(param) {
3874
- return this.Navvy.simpleWithArg(this.BXRestTasksTask.getaccess, param, 'Не удалось получить права на указанных пользователей', this.BXRestMapTasksTask.getaccess);
3927
+ getList() {
3928
+ return this.Navvy.simple(this.BXRestTaskPlanner.getList, 'Не удалось получить текущий клан на день', this.BXRestMapTaskPlaner.getList);
3875
3929
  }
3876
- 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 }); }
3877
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasksTask, providedIn: 'root' }); }
3930
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskPlanner, deps: [{ token: BXRestTaskPlanner }, { token: BXRestMapTaskPlaner }], target: i0.ɵɵFactoryTarget.Injectable }); }
3931
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskPlanner, providedIn: 'root' }); }
3878
3932
  }
3879
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasksTask, decorators: [{
3933
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskPlanner, decorators: [{
3880
3934
  type: Injectable,
3881
3935
  args: [{
3882
3936
  providedIn: 'root'
3883
3937
  }]
3884
- }], ctorParameters: function () { return [{ type: BXRestTasksTask }, { type: BXRestMapTasksTask }]; } });
3938
+ }], ctorParameters: function () { return [{ type: BXRestTaskPlanner }, { type: BXRestMapTaskPlaner }]; } });
3885
3939
 
3886
- class BXRestNavvyTasks {
3887
- constructor(task) {
3888
- this.task = task;
3940
+ class BXRestNavvyTask {
3941
+ constructor(elapseditem, commentitem, planner) {
3942
+ this.elapseditem = elapseditem;
3943
+ this.commentitem = commentitem;
3944
+ this.planner = planner;
3889
3945
  }
3890
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasks, deps: [{ token: BXRestNavvyTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
3891
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasks, providedIn: 'root' }); }
3946
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTask, deps: [{ token: BXRestNavvyElapseditem }, { token: BXRestNavvyTaskCommentItem }, { token: BXRestNavvyTaskPlanner }], target: i0.ɵɵFactoryTarget.Injectable }); }
3947
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTask, providedIn: 'root' }); }
3892
3948
  }
3893
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyTasks, decorators: [{
3949
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTask, decorators: [{
3894
3950
  type: Injectable,
3895
3951
  args: [{
3896
3952
  providedIn: 'root'
3897
3953
  }]
3898
- }], ctorParameters: function () { return [{ type: BXRestNavvyTasksTask }]; } });
3954
+ }], ctorParameters: function () { return [{ type: BXRestNavvyElapseditem }, { type: BXRestNavvyTaskCommentItem }, { type: BXRestNavvyTaskPlanner }]; } });
3899
3955
 
3900
3956
  class BXRestMapDiskBase extends BaseMapServices {
3901
3957
  separationFoldersAndFiles(arr) {
@@ -3941,10 +3997,10 @@ class BXRestMapDiskBase extends BaseMapServices {
3941
3997
  instanceOfiFolder(object) {
3942
3998
  return object && object.TYPE && object.TYPE === 'folder';
3943
3999
  }
3944
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskBase, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3945
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskBase, providedIn: 'root' }); }
4000
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskBase, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4001
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskBase, providedIn: 'root' }); }
3946
4002
  }
3947
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskBase, decorators: [{
4003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskBase, decorators: [{
3948
4004
  type: Injectable,
3949
4005
  args: [{
3950
4006
  providedIn: 'root'
@@ -3955,10 +4011,10 @@ class BXRestMapDiskFolder extends BXRestMapDiskBase {
3955
4011
  getContent(arr) {
3956
4012
  return (arr) ? this.separationFoldersAndFiles(arr) : { file: [], folder: [] };
3957
4013
  }
3958
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFolder, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
3959
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFolder, providedIn: 'root' }); }
4014
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskFolder, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4015
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskFolder, providedIn: 'root' }); }
3960
4016
  }
3961
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFolder, decorators: [{
4017
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskFolder, decorators: [{
3962
4018
  type: Injectable,
3963
4019
  args: [{
3964
4020
  providedIn: 'root'
@@ -3988,10 +4044,10 @@ class BXRestNavvyDiskFolder {
3988
4044
  getchildren(id) {
3989
4045
  return this.Navvy.simpleWithArg(this.BXRestDiskFolder.getchildren, id, 'get folders and files', this.BXRestMapDiskFolder.getContent);
3990
4046
  }
3991
- 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 }); }
3992
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFolder, providedIn: 'root' }); }
4047
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskFolder, deps: [{ token: BXRestDiskFolder }, { token: BXRestMapDiskFolder }], target: i0.ɵɵFactoryTarget.Injectable }); }
4048
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskFolder, providedIn: 'root' }); }
3993
4049
  }
3994
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFolder, decorators: [{
4050
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskFolder, decorators: [{
3995
4051
  type: Injectable,
3996
4052
  args: [{
3997
4053
  providedIn: 'root'
@@ -4005,10 +4061,10 @@ class BXRestMapDiskFile extends BaseMapServices {
4005
4061
  markdeleted(v) {
4006
4062
  return (v) ? Object.assign(v, { SIZE: this.toNum(v.SIZE) }) : undefined;
4007
4063
  }
4008
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFile, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4009
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFile, providedIn: 'root' }); }
4064
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskFile, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4065
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskFile, providedIn: 'root' }); }
4010
4066
  }
4011
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskFile, decorators: [{
4067
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskFile, decorators: [{
4012
4068
  type: Injectable,
4013
4069
  args: [{
4014
4070
  providedIn: 'root'
@@ -4027,10 +4083,10 @@ class BXRestNavvyDiskFile {
4027
4083
  markdeleted(id) {
4028
4084
  return this.Navvy.simpleWithArg(this.BXRestDiskFile.markdeleted, id, 'Не удалось переместить файл в корзину', this.BXRestMapDiskFile.markdeleted);
4029
4085
  }
4030
- 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 }); }
4031
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' }); }
4086
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskFile, deps: [{ token: BXRestDiskFile }, { token: BXRestMapDiskFile }], target: i0.ɵɵFactoryTarget.Injectable }); }
4087
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskFile, providedIn: 'root' }); }
4032
4088
  }
4033
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
4089
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskFile, decorators: [{
4034
4090
  type: Injectable,
4035
4091
  args: [{
4036
4092
  providedIn: 'root'
@@ -4041,10 +4097,10 @@ class BXRestMapDiskStorage extends BXRestMapDiskBase {
4041
4097
  getchildren(arr) {
4042
4098
  return (arr) ? this.separationFoldersAndFiles(arr) : { file: [], folder: [] };
4043
4099
  }
4044
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskStorage, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4045
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskStorage, providedIn: 'root' }); }
4100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskStorage, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4101
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskStorage, providedIn: 'root' }); }
4046
4102
  }
4047
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskStorage, decorators: [{
4103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskStorage, decorators: [{
4048
4104
  type: Injectable,
4049
4105
  args: [{
4050
4106
  providedIn: 'root'
@@ -4082,10 +4138,10 @@ class BXRestDiskStorage {
4082
4138
  uploadfile(param) {
4083
4139
  return this.http.post(this.url.uploadfile, param);
4084
4140
  }
4085
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskStorage, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
4086
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskStorage, providedIn: 'root' }); }
4141
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskStorage, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
4142
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskStorage, providedIn: 'root' }); }
4087
4143
  }
4088
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestDiskStorage, decorators: [{
4144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestDiskStorage, decorators: [{
4089
4145
  type: Injectable,
4090
4146
  args: [{
4091
4147
  providedIn: 'root'
@@ -4137,10 +4193,10 @@ class BXRestNavvyInterlayerDiskStorage {
4137
4193
  uploadfile(param) {
4138
4194
  return this.BXRestDiskStorage.uploadfile(param);
4139
4195
  }
4140
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyInterlayerDiskStorage, deps: [{ token: BXRestDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable }); }
4141
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyInterlayerDiskStorage, providedIn: 'root' }); }
4196
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyInterlayerDiskStorage, deps: [{ token: BXRestDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable }); }
4197
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyInterlayerDiskStorage, providedIn: 'root' }); }
4142
4198
  }
4143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyInterlayerDiskStorage, decorators: [{
4199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyInterlayerDiskStorage, decorators: [{
4144
4200
  type: Injectable,
4145
4201
  args: [{
4146
4202
  providedIn: 'root'
@@ -4186,10 +4242,10 @@ class BXRestNavvyDiskStorage {
4186
4242
  uploadfile(param) {
4187
4243
  return this.Navvy.simpleWithArg(this.BXRestNavvyInterlayerDiskStorage.uploadfile, param);
4188
4244
  }
4189
- 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 }); }
4190
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskStorage, providedIn: 'root' }); }
4245
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskStorage, deps: [{ token: BXRestNavvyInterlayerDiskStorage }, { token: BXRestMapDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable }); }
4246
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskStorage, providedIn: 'root' }); }
4191
4247
  }
4192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskStorage, decorators: [{
4248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskStorage, decorators: [{
4193
4249
  type: Injectable,
4194
4250
  args: [{
4195
4251
  providedIn: 'root'
@@ -4266,10 +4322,10 @@ class BXRestNavvyDiskOperation {
4266
4322
  }));
4267
4323
  }));
4268
4324
  }
4269
- 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 }); }
4270
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskOperation, providedIn: 'root' }); }
4325
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskOperation, deps: [{ token: BXRestNavvyDiskFolder }, { token: BXRestNavvyDiskFile }, { token: BXRestNavvyDiskStorage }], target: i0.ɵɵFactoryTarget.Injectable }); }
4326
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskOperation, providedIn: 'root' }); }
4271
4327
  }
4272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskOperation, decorators: [{
4328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskOperation, decorators: [{
4273
4329
  type: Injectable,
4274
4330
  args: [{
4275
4331
  providedIn: 'root'
@@ -4290,10 +4346,10 @@ class BXRestMapDiskAttachedObject extends BXRestMapDiskBase {
4290
4346
  SIZE: this.toNum(v.SIZE)
4291
4347
  });
4292
4348
  }
4293
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskAttachedObject, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4294
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskAttachedObject, providedIn: 'root' }); }
4349
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskAttachedObject, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4350
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskAttachedObject, providedIn: 'root' }); }
4295
4351
  }
4296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDiskAttachedObject, decorators: [{
4352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDiskAttachedObject, decorators: [{
4297
4353
  type: Injectable,
4298
4354
  args: [{
4299
4355
  providedIn: 'root'
@@ -4309,10 +4365,10 @@ class BXRestNavvyDiskAttachedObject {
4309
4365
  get(id) {
4310
4366
  return this.Navvy.simpleWithArg(this.BXRestDiskAttachedObject.get, id, 'Не удалось получить прикрепленные файлы', this.mapAttachedObject.get);
4311
4367
  }
4312
- 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 }); }
4313
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskAttachedObject, providedIn: 'root' }); }
4368
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskAttachedObject, deps: [{ token: BXRestDiskAttachedObject }, { token: BXRestMapDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable }); }
4369
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskAttachedObject, providedIn: 'root' }); }
4314
4370
  }
4315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDiskAttachedObject, decorators: [{
4371
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDiskAttachedObject, decorators: [{
4316
4372
  type: Injectable,
4317
4373
  args: [{
4318
4374
  providedIn: 'root'
@@ -4326,10 +4382,10 @@ class BXRestNavvyDisk {
4326
4382
  this.folder = folder;
4327
4383
  this.attachedObject = attachedObject;
4328
4384
  }
4329
- 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 }); }
4330
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDisk, providedIn: 'root' }); }
4385
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDisk, deps: [{ token: BXRestNavvyDiskOperation }, { token: BXRestNavvyDiskFile }, { token: BXRestNavvyDiskFolder }, { token: BXRestNavvyDiskAttachedObject }], target: i0.ɵɵFactoryTarget.Injectable }); }
4386
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDisk, providedIn: 'root' }); }
4331
4387
  }
4332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDisk, decorators: [{
4388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDisk, decorators: [{
4333
4389
  type: Injectable,
4334
4390
  args: [{
4335
4391
  providedIn: 'root'
@@ -4344,10 +4400,10 @@ class BXRestNavvyBizprocWorkflow {
4344
4400
  start(param) {
4345
4401
  return this.Navvy.simpleWithArg(this.BXRestBizprocWorkflow.start, param, 'Не удалось запустить бизнес процесс');
4346
4402
  }
4347
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflow }], target: i0.ɵɵFactoryTarget.Injectable }); }
4348
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizprocWorkflow, providedIn: 'root' }); }
4403
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyBizprocWorkflow, deps: [{ token: BXRestBizprocWorkflow }], target: i0.ɵɵFactoryTarget.Injectable }); }
4404
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyBizprocWorkflow, providedIn: 'root' }); }
4349
4405
  }
4350
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizprocWorkflow, decorators: [{
4406
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyBizprocWorkflow, decorators: [{
4351
4407
  type: Injectable,
4352
4408
  args: [{
4353
4409
  providedIn: 'root'
@@ -4400,10 +4456,10 @@ class BXRestNavvyBizproc {
4400
4456
  return throwError(() => new Error('Не удалось запустить бизнес процесс'));
4401
4457
  }));
4402
4458
  }
4403
- 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 }); }
4404
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizproc, providedIn: 'root' }); }
4459
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyBizproc, deps: [{ token: BXRestNavvyBizprocWorkflow }, { token: BXRestNavvyLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
4460
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyBizproc, providedIn: 'root' }); }
4405
4461
  }
4406
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyBizproc, decorators: [{
4462
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyBizproc, decorators: [{
4407
4463
  type: Injectable,
4408
4464
  args: [{
4409
4465
  providedIn: 'root'
@@ -4431,10 +4487,10 @@ class BXRestNavvyLogBlogPost {
4431
4487
  get(param = {}) {
4432
4488
  return this.Navvy.simpleWithArg(this.BXRestLogBlogPost.get, param);
4433
4489
  }
4434
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogPost, deps: [{ token: BXRestLogBlogPost }], target: i0.ɵɵFactoryTarget.Injectable }); }
4435
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' }); }
4490
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLogBlogPost, deps: [{ token: BXRestLogBlogPost }], target: i0.ɵɵFactoryTarget.Injectable }); }
4491
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' }); }
4436
4492
  }
4437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogPost, decorators: [{
4493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLogBlogPost, decorators: [{
4438
4494
  type: Injectable,
4439
4495
  args: [{
4440
4496
  providedIn: 'root'
@@ -4447,10 +4503,10 @@ class BXRestNavvyLogBlogComment {
4447
4503
  add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
4448
4504
  };
4449
4505
  }
4450
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4451
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogComment, providedIn: 'root' }); }
4506
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4507
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLogBlogComment, providedIn: 'root' }); }
4452
4508
  }
4453
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLogBlogComment, decorators: [{
4509
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLogBlogComment, decorators: [{
4454
4510
  type: Injectable,
4455
4511
  args: [{
4456
4512
  providedIn: 'root'
@@ -4462,10 +4518,10 @@ class BXRestNavvyLog {
4462
4518
  this.blogPost = blogPost;
4463
4519
  this.blogComment = blogComment;
4464
4520
  }
4465
- 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 }); }
4466
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLog, providedIn: 'root' }); }
4521
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLog, deps: [{ token: BXRestNavvyLogBlogPost }, { token: BXRestNavvyLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable }); }
4522
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLog, providedIn: 'root' }); }
4467
4523
  }
4468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyLog, decorators: [{
4524
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyLog, decorators: [{
4469
4525
  type: Injectable,
4470
4526
  args: [{
4471
4527
  providedIn: 'root'
@@ -4513,10 +4569,10 @@ class BXRestMapCalendarEvent extends BaseMapServices {
4513
4569
  }) : []
4514
4570
  };
4515
4571
  }
4516
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendarEvent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4517
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' }); }
4572
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapCalendarEvent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4573
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapCalendarEvent, providedIn: 'root' }); }
4518
4574
  }
4519
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
4575
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapCalendarEvent, decorators: [{
4520
4576
  type: Injectable,
4521
4577
  args: [{
4522
4578
  providedIn: 'root'
@@ -4532,10 +4588,10 @@ class BXRestRestCalendarEvent {
4532
4588
  get(param) {
4533
4589
  return this.Navvy.simpleWithArg(this.BXRestCalendarEvent.get, param, 'Не удалось получить календарь', this.eventMap.get);
4534
4590
  }
4535
- 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 }); }
4536
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' }); }
4591
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestRestCalendarEvent, deps: [{ token: BXRestCalendarEvent }, { token: BXRestMapCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
4592
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestRestCalendarEvent, providedIn: 'root' }); }
4537
4593
  }
4538
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
4594
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestRestCalendarEvent, decorators: [{
4539
4595
  type: Injectable,
4540
4596
  args: [{
4541
4597
  providedIn: 'root'
@@ -4581,10 +4637,10 @@ class BXRestNavvyCalendar {
4581
4637
  constructor(event) {
4582
4638
  this.event = event;
4583
4639
  }
4584
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyCalendar, deps: [{ token: BXRestRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
4585
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' }); }
4640
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyCalendar, deps: [{ token: BXRestRestCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
4641
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyCalendar, providedIn: 'root' }); }
4586
4642
  }
4587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
4643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyCalendar, decorators: [{
4588
4644
  type: Injectable,
4589
4645
  args: [{
4590
4646
  providedIn: 'root'
@@ -4612,10 +4668,10 @@ class BXRestMapSonetGroup extends BaseMapServices {
4612
4668
  IS_EXTRANET: items.OPENED == 'Y',
4613
4669
  });
4614
4670
  }
4615
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapSonetGroup, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4616
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapSonetGroup, providedIn: 'root' }); }
4671
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapSonetGroup, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4672
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapSonetGroup, providedIn: 'root' }); }
4617
4673
  }
4618
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapSonetGroup, decorators: [{
4674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapSonetGroup, decorators: [{
4619
4675
  type: Injectable,
4620
4676
  args: [{
4621
4677
  providedIn: 'root'
@@ -4628,16 +4684,13 @@ class BXRestNavvySonetGroup {
4628
4684
  this.mapSonetGroup = mapSonetGroup;
4629
4685
  this.Navvy = new Navvy(this.BXRestSonetGroup, this.mapSonetGroup);
4630
4686
  }
4631
- get(param = {
4632
- filter: {},
4633
- order: {}
4634
- }) {
4687
+ get(param = {}) {
4635
4688
  return this.Navvy.simpleWithArg(this.BXRestSonetGroup.get, param, 'Не удалось получить рабочую группу', this.mapSonetGroup.get);
4636
4689
  }
4637
- 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 }); }
4638
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvySonetGroup, providedIn: 'root' }); }
4690
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvySonetGroup, deps: [{ token: BXRestSonetGroup }, { token: BXRestMapSonetGroup }], target: i0.ɵɵFactoryTarget.Injectable }); }
4691
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvySonetGroup, providedIn: 'root' }); }
4639
4692
  }
4640
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvySonetGroup, decorators: [{
4693
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvySonetGroup, decorators: [{
4641
4694
  type: Injectable,
4642
4695
  args: [{
4643
4696
  providedIn: 'root'
@@ -4648,10 +4701,10 @@ class BXRestMapServer extends BaseMapServices {
4648
4701
  time(v) {
4649
4702
  return (v) ? this.toDate(v) : undefined;
4650
4703
  }
4651
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapServer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4652
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapServer, providedIn: 'root' }); }
4704
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapServer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4705
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapServer, providedIn: 'root' }); }
4653
4706
  }
4654
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapServer, decorators: [{
4707
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapServer, decorators: [{
4655
4708
  type: Injectable,
4656
4709
  args: [{
4657
4710
  providedIn: 'root'
@@ -4667,10 +4720,10 @@ class BXRestNavvyServer {
4667
4720
  time() {
4668
4721
  return this.Navvy.simple(this.BXRestServer.time, 'Не удалось получить время сервера', this.BXRestMapServer.time);
4669
4722
  }
4670
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyServer, deps: [{ token: BXRestServer }, { token: BXRestMapServer }], target: i0.ɵɵFactoryTarget.Injectable }); }
4671
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyServer, providedIn: 'root' }); }
4723
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyServer, deps: [{ token: BXRestServer }, { token: BXRestMapServer }], target: i0.ɵɵFactoryTarget.Injectable }); }
4724
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyServer, providedIn: 'root' }); }
4672
4725
  }
4673
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyServer, decorators: [{
4726
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyServer, decorators: [{
4674
4727
  type: Injectable,
4675
4728
  args: [{
4676
4729
  providedIn: 'root'
@@ -4699,10 +4752,10 @@ class BXRestMapDepartment {
4699
4752
  }
4700
4753
  }) : undefined;
4701
4754
  }
4702
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDepartment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4703
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDepartment, providedIn: 'root' }); }
4755
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDepartment, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4756
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDepartment, providedIn: 'root' }); }
4704
4757
  }
4705
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapDepartment, decorators: [{
4758
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapDepartment, decorators: [{
4706
4759
  type: Injectable,
4707
4760
  args: [{
4708
4761
  providedIn: 'root'
@@ -4728,10 +4781,10 @@ class BXRestNavvyDepartment {
4728
4781
  param.NAME = param.NAME.trim();
4729
4782
  return this.Navvy.simpleWithArg(this.BXRestDepartment.update, param, 'Не удалось обновить подразделение');
4730
4783
  }
4731
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDepartment, deps: [{ token: BXRestDepartment }, { token: BXRestMapDepartment }], target: i0.ɵɵFactoryTarget.Injectable }); }
4732
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDepartment, providedIn: 'root' }); }
4784
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDepartment, deps: [{ token: BXRestDepartment }, { token: BXRestMapDepartment }], target: i0.ɵɵFactoryTarget.Injectable }); }
4785
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDepartment, providedIn: 'root' }); }
4733
4786
  }
4734
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvyDepartment, decorators: [{
4787
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyDepartment, decorators: [{
4735
4788
  type: Injectable,
4736
4789
  args: [{
4737
4790
  providedIn: 'root'
@@ -4752,10 +4805,10 @@ class BXRest {
4752
4805
  this.server = server;
4753
4806
  this.department = department;
4754
4807
  }
4755
- 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 }, { token: BXRestServer }, { token: BXRestDepartment }], target: i0.ɵɵFactoryTarget.Injectable }); }
4756
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, providedIn: 'root' }); }
4808
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTask }, { token: BXRestTasks }, { token: BXRestDisk }, { token: BXRestBizproc }, { token: BXRestLog }, { token: BXRestCalendar }, { token: BXRestSonetGroup }, { token: BXRestServer }, { token: BXRestDepartment }], target: i0.ɵɵFactoryTarget.Injectable }); }
4809
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRest, providedIn: 'root' }); }
4757
4810
  }
4758
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRest, decorators: [{
4811
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRest, decorators: [{
4759
4812
  type: Injectable,
4760
4813
  args: [{
4761
4814
  providedIn: 'root'
@@ -4775,10 +4828,10 @@ class BXRestNavvy {
4775
4828
  this.server = server;
4776
4829
  this.department = department;
4777
4830
  }
4778
- 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 }, { token: BXRestNavvyServer }, { token: BXRestNavvyDepartment }], target: i0.ɵɵFactoryTarget.Injectable }); }
4779
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, providedIn: 'root' }); }
4831
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTask }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }, { token: BXRestNavvyBizproc }, { token: BXRestNavvyLog }, { token: BXRestNavvyCalendar }, { token: BXRestNavvySonetGroup }, { token: BXRestNavvyServer }, { token: BXRestNavvyDepartment }], target: i0.ɵɵFactoryTarget.Injectable }); }
4832
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvy, providedIn: 'root' }); }
4780
4833
  }
4781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestNavvy, decorators: [{
4834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvy, decorators: [{
4782
4835
  type: Injectable,
4783
4836
  args: [{
4784
4837
  providedIn: 'root'
@@ -4788,10 +4841,10 @@ class BXRestMap {
4788
4841
  constructor(lists) {
4789
4842
  this.lists = lists;
4790
4843
  }
4791
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMap, deps: [{ token: BXRestMapLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
4792
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMap, providedIn: 'root' }); }
4844
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMap, deps: [{ token: BXRestMapLists }], target: i0.ɵɵFactoryTarget.Injectable }); }
4845
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMap, providedIn: 'root' }); }
4793
4846
  }
4794
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMap, decorators: [{
4847
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMap, decorators: [{
4795
4848
  type: Injectable,
4796
4849
  args: [{
4797
4850
  providedIn: 'root'
@@ -4802,10 +4855,10 @@ class BXRestMapCalendar {
4802
4855
  constructor(event) {
4803
4856
  this.event = event;
4804
4857
  }
4805
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendar, deps: [{ token: BXRestMapCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
4806
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendar, providedIn: 'root' }); }
4858
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapCalendar, deps: [{ token: BXRestMapCalendarEvent }], target: i0.ɵɵFactoryTarget.Injectable }); }
4859
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapCalendar, providedIn: 'root' }); }
4807
4860
  }
4808
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapCalendar, decorators: [{
4861
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapCalendar, decorators: [{
4809
4862
  type: Injectable,
4810
4863
  args: [{
4811
4864
  providedIn: 'root'
@@ -4881,10 +4934,10 @@ class BXRestMapLogBlogPost extends BaseMapServices {
4881
4934
  return undefined;
4882
4935
  }
4883
4936
  }
4884
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLogBlogPost, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4885
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLogBlogPost, providedIn: 'root' }); }
4937
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapLogBlogPost, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4938
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapLogBlogPost, providedIn: 'root' }); }
4886
4939
  }
4887
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLogBlogPost, decorators: [{
4940
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapLogBlogPost, decorators: [{
4888
4941
  type: Injectable,
4889
4942
  args: [{
4890
4943
  providedIn: 'root'
@@ -4895,27 +4948,16 @@ class BXRestMapLog {
4895
4948
  constructor(blogpost) {
4896
4949
  this.blogpost = blogpost;
4897
4950
  }
4898
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLog, deps: [{ token: BXRestMapLogBlogPost }], target: i0.ɵɵFactoryTarget.Injectable }); }
4899
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLog, providedIn: 'root' }); }
4951
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapLog, deps: [{ token: BXRestMapLogBlogPost }], target: i0.ɵɵFactoryTarget.Injectable }); }
4952
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapLog, providedIn: 'root' }); }
4900
4953
  }
4901
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapLog, decorators: [{
4954
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapLog, decorators: [{
4902
4955
  type: Injectable,
4903
4956
  args: [{
4904
4957
  providedIn: 'root'
4905
4958
  }]
4906
4959
  }], ctorParameters: function () { return [{ type: BXRestMapLogBlogPost }]; } });
4907
4960
 
4908
- class BXRestMapTaskResult extends BaseMapServices {
4909
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskResult, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4910
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskResult, providedIn: 'root' }); }
4911
- }
4912
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskResult, decorators: [{
4913
- type: Injectable,
4914
- args: [{
4915
- providedIn: 'root'
4916
- }]
4917
- }] });
4918
-
4919
4961
  class BXRestMapTaskStage extends BaseMapServices {
4920
4962
  get(value) {
4921
4963
  return (value) ? value.map(i => Object.assign(i, {
@@ -4924,10 +4966,10 @@ class BXRestMapTaskStage extends BaseMapServices {
4924
4966
  ENTITY_ID: this.toNum(i.ENTITY_ID)
4925
4967
  })) : undefined;
4926
4968
  }
4927
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskStage, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4928
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskStage, providedIn: 'root' }); }
4969
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskStage, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4970
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskStage, providedIn: 'root' }); }
4929
4971
  }
4930
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTaskStage, decorators: [{
4972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTaskStage, decorators: [{
4931
4973
  type: Injectable,
4932
4974
  args: [{
4933
4975
  providedIn: 'root'
@@ -4935,30 +4977,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
4935
4977
  }] });
4936
4978
 
4937
4979
  class BXRestMapTask {
4938
- constructor(commentItem, elapsedItem, result, stages) {
4980
+ constructor(commentItem, elapsedItem, stages) {
4939
4981
  this.commentItem = commentItem;
4940
4982
  this.elapsedItem = elapsedItem;
4941
- this.result = result;
4942
4983
  this.stages = stages;
4943
4984
  }
4944
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTask, deps: [{ token: BXRestMapTaskCommentItem }, { token: BXRestMapTaskElapseditem }, { token: BXRestMapTaskResult }, { token: BXRestMapTaskStage }], target: i0.ɵɵFactoryTarget.Injectable }); }
4945
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTask, providedIn: 'root' }); }
4985
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTask, deps: [{ token: BXRestMapTaskCommentItem }, { token: BXRestMapTaskElapseditem }, { token: BXRestMapTaskStage }], target: i0.ɵɵFactoryTarget.Injectable }); }
4986
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTask, providedIn: 'root' }); }
4946
4987
  }
4947
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTask, decorators: [{
4988
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTask, decorators: [{
4948
4989
  type: Injectable,
4949
4990
  args: [{
4950
4991
  providedIn: 'root'
4951
4992
  }]
4952
- }], ctorParameters: function () { return [{ type: BXRestMapTaskCommentItem }, { type: BXRestMapTaskElapseditem }, { type: BXRestMapTaskResult }, { type: BXRestMapTaskStage }]; } });
4993
+ }], ctorParameters: function () { return [{ type: BXRestMapTaskCommentItem }, { type: BXRestMapTaskElapseditem }, { type: BXRestMapTaskStage }]; } });
4953
4994
 
4954
4995
  class BXRestMapTasks {
4955
4996
  constructor(task) {
4956
4997
  this.task = task;
4957
4998
  }
4958
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasks, deps: [{ token: BXRestMapTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
4959
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasks, providedIn: 'root' }); }
4999
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTasks, deps: [{ token: BXRestMapTasksTask }], target: i0.ɵɵFactoryTarget.Injectable }); }
5000
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTasks, providedIn: 'root' }); }
4960
5001
  }
4961
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: BXRestMapTasks, decorators: [{
5002
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestMapTasks, decorators: [{
4962
5003
  type: Injectable,
4963
5004
  args: [{
4964
5005
  providedIn: 'root'
@@ -4977,10 +5018,10 @@ let Map$1 = class Map {
4977
5018
  this.task = task;
4978
5019
  this.tasks = tasks;
4979
5020
  }
4980
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Map, deps: [{ token: BXRestMapUser }, { token: BXRestMapSonetGroup }, { token: BXRestMapServer }, { token: BXRestMapLists }, { token: BXRestDisk }, { token: BXRestMapCalendar }, { token: BXRestMapLog }, { token: BXRestMapTask }, { token: BXRestMapTasks }], target: i0.ɵɵFactoryTarget.Injectable }); }
4981
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Map, providedIn: 'root' }); }
5021
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Map, deps: [{ token: BXRestMapUser }, { token: BXRestMapSonetGroup }, { token: BXRestMapServer }, { token: BXRestMapLists }, { token: BXRestDisk }, { token: BXRestMapCalendar }, { token: BXRestMapLog }, { token: BXRestMapTask }, { token: BXRestMapTasks }], target: i0.ɵɵFactoryTarget.Injectable }); }
5022
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Map, providedIn: 'root' }); }
4982
5023
  };
4983
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: Map$1, decorators: [{
5024
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Map$1, decorators: [{
4984
5025
  type: Injectable,
4985
5026
  args: [{
4986
5027
  providedIn: 'root'