bx-rest 0.3.2 → 0.3.4

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 (51) hide show
  1. package/consts/part-name-methods.d.ts +6 -0
  2. package/esm2022/consts/part-name-methods.mjs +7 -1
  3. package/esm2022/map/sonet_group.mjs +1 -1
  4. package/esm2022/request/im/chat.mjs +33 -0
  5. package/esm2022/request/im.mjs +17 -0
  6. package/esm2022/request/tasks/task.mjs +3 -28
  7. package/esm2022/request-navvy/im/chat.mjs +22 -0
  8. package/esm2022/request-navvy/im.mjs +17 -0
  9. package/esm2022/request-navvy/task/commentitem.mjs +4 -8
  10. package/esm2022/request-navvy/tasks/task.mjs +5 -44
  11. package/esm2022/request-navvy/user.mjs +7 -1
  12. package/esm2022/rest.mjs +25 -21
  13. package/esm2022/services/Navvy/NavvySimple.mjs +2 -2
  14. package/esm2022/services/Navvy/NavvySupport.mjs +2 -4
  15. package/esm2022/services/Navvy/extends/NavvyPagNavBase.mjs +2 -2
  16. package/esm2022/services/http/base/base.mjs +4 -6
  17. package/esm2022/services/http/http.mjs +5 -8
  18. package/esm2022/services/navvy.mjs +2 -4
  19. package/esm2022/services/vanilla/localStorage.mjs +5 -5
  20. package/esm2022/services/vanilla//321/201ookies.mjs +3 -4
  21. package/esm2022/typification/rest/api-lib.mjs +1 -1
  22. package/esm2022/typification/rest/im/chat/add.mjs +2 -0
  23. package/esm2022/typification/rest/tasks/task/getFields.mjs +2 -0
  24. package/fesm2022/bx-rest.mjs +134 -421
  25. package/fesm2022/bx-rest.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/request/im/chat.d.ts +19 -0
  28. package/request/im.d.ts +8 -0
  29. package/request/tasks/task.d.ts +2 -0
  30. package/request-navvy/im/chat.d.ts +11 -0
  31. package/request-navvy/im.d.ts +8 -0
  32. package/request-navvy/task/commentitem.d.ts +1 -3
  33. package/request-navvy/tasks/task.d.ts +3 -2
  34. package/rest.d.ts +6 -2
  35. package/services/Navvy/NavvySupport.d.ts +1 -1
  36. package/services/http/base/base.d.ts +1 -3
  37. package/services/http/http.d.ts +1 -2
  38. package/typification/rest/im/chat/add.d.ts +12 -0
  39. package/typification/rest/tasks/task/getFields.d.ts +17 -0
  40. package/consts/part-name-metods.d.ts +0 -89
  41. package/esm2022/consts/part-name-metods.mjs +0 -90
  42. package/esm2022/functions/serializeJavascript.mjs +0 -200
  43. package/esm2022/request/bx-rest.module.mjs +0 -28
  44. package/esm2022/services/snack-bar/snack-bar.service.mjs +0 -42
  45. package/esm2022/services/snack-bar/toast-message/toast-message.component.mjs +0 -31
  46. package/esm2022/services/vanilla/JSON.mjs +0 -20
  47. package/functions/serializeJavascript.d.ts +0 -2
  48. package/request/bx-rest.module.d.ts +0 -8
  49. package/services/snack-bar/snack-bar.service.d.ts +0 -12
  50. package/services/snack-bar/toast-message/toast-message.component.d.ts +0 -16
  51. package/services/vanilla/JSON.d.ts +0 -7
@@ -1,15 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { NgModule, inject, Component, ViewEncapsulation, Inject, Injectable } from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
3
  import { Subscription, of, mergeMap, throwError, forkJoin, share, ReplaySubject, last, shareReplay, concat, from, concatMap, tap } from 'rxjs';
4
4
  import clone from 'just-clone';
5
- import * as i1$1 from '@angular/material/snack-bar';
6
- import { MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
7
- import * as i2 from '@angular/material/icon';
8
- import { MatIconModule } from '@angular/material/icon';
9
- import * as i1 from '@angular/material/button';
10
- import { MatButtonModule } from '@angular/material/button';
11
5
  import { DateTime } from 'luxon';
12
- import * as i1$2 from '@angular/common/http';
6
+ import * as i1 from '@angular/common/http';
13
7
  import { HttpParams, HttpHeaders } from '@angular/common/http';
14
8
  import flatten from 'just-flatten-it';
15
9
  import { map, catchError, take, mergeMap as mergeMap$1 } from 'rxjs/operators';
@@ -119,7 +113,13 @@ const $blogcomment = 'blogcomment';
119
113
  const $server = 'server';
120
114
  const $time = 'time';
121
115
  const $chat = 'chat';
122
- const $message = 'message';
116
+ const $message = 'message';
117
+ const $im = 'im';
118
+ const $updateTitle = 'updateTitle';
119
+ const $updateColor = 'updateColor';
120
+ const $updateAvatar = 'updateAvatar';
121
+ const $setOwner = 'setOwner';
122
+ const $mute = 'mute';
123
123
 
124
124
  var partNameMethods$1 = /*#__PURE__*/Object.freeze({
125
125
  __proto__: null,
@@ -166,6 +166,7 @@ var partNameMethods$1 = /*#__PURE__*/Object.freeze({
166
166
  $history: $history,
167
167
  $iblock: $iblock,
168
168
  $id: $id,
169
+ $im: $im,
169
170
  $instances: $instances,
170
171
  $isactionallowed: $isactionallowed,
171
172
  $kill: $kill,
@@ -176,6 +177,7 @@ var partNameMethods$1 = /*#__PURE__*/Object.freeze({
176
177
  $meeting: $meeting,
177
178
  $message: $message,
178
179
  $moveto: $moveto,
180
+ $mute: $mute,
179
181
  $nearest: $nearest,
180
182
  $params: $params,
181
183
  $pause: $pause,
@@ -192,6 +194,7 @@ var partNameMethods$1 = /*#__PURE__*/Object.freeze({
192
194
  $send: $send,
193
195
  $server: $server,
194
196
  $set: $set,
197
+ $setOwner: $setOwner,
195
198
  $settings: $settings,
196
199
  $share: $share,
197
200
  $socialnetwork: $socialnetwork,
@@ -207,6 +210,9 @@ var partNameMethods$1 = /*#__PURE__*/Object.freeze({
207
210
  $time: $time,
208
211
  $type: $type,
209
212
  $update: $update,
213
+ $updateAvatar: $updateAvatar,
214
+ $updateColor: $updateColor,
215
+ $updateTitle: $updateTitle,
210
216
  $uploadfile: $uploadfile,
211
217
  $url: $url,
212
218
  $user: $user,
@@ -214,309 +220,6 @@ var partNameMethods$1 = /*#__PURE__*/Object.freeze({
214
220
  $workgroup: $workgroup
215
221
  });
216
222
 
217
- class BxRestModule {
218
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BxRestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
219
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
220
- MatButtonModule], exports: [MatButtonModule,
221
- MatIconModule] }); }
222
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BxRestModule, imports: [MatIconModule,
223
- MatButtonModule, MatButtonModule,
224
- MatIconModule] }); }
225
- }
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BxRestModule, decorators: [{
227
- type: NgModule,
228
- args: [{
229
- declarations: [],
230
- imports: [
231
- MatIconModule,
232
- MatButtonModule
233
- ],
234
- exports: [
235
- MatButtonModule,
236
- MatIconModule
237
- ]
238
- }]
239
- }] });
240
-
241
- class ToastMessageComponent {
242
- constructor(data) {
243
- this.data = data;
244
- this.snackBarRef = inject(MatSnackBarRef);
245
- }
246
- getClass() {
247
- switch (this.data.type) {
248
- case 'error':
249
- case 'warning':
250
- case 'success':
251
- return this.data.type + '-message';
252
- }
253
- return '';
254
- }
255
- 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 }); }
256
- 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 }); }
257
- }
258
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: ToastMessageComponent, decorators: [{
259
- type: Component,
260
- 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"] }]
261
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
262
- type: Inject,
263
- args: [MAT_SNACK_BAR_DATA]
264
- }] }]; } });
265
-
266
- /**
267
- * Сервис для вывода сообщений пользователю
268
- * TODO: логирование
269
- */
270
- class SnackBarService {
271
- constructor(snackBar) {
272
- this.snackBar = snackBar;
273
- }
274
- error(message, sec = 12) {
275
- this.standardMessage(message, sec, 'error');
276
- }
277
- warning(message, sec = 7) {
278
- this.standardMessage(message, sec, 'warning');
279
- }
280
- success(message, sec = 7) {
281
- this.standardMessage(message, sec, 'success');
282
- }
283
- standardMessage(message, sec = 5, name = 'error') {
284
- this.snackBar.open(message);
285
- this.snackBar.openFromComponent(ToastMessageComponent, {
286
- duration: sec * 1000,
287
- data: {
288
- message: message,
289
- type: name
290
- },
291
- panelClass: name + '-box'
292
- });
293
- }
294
- 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 }); }
295
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SnackBarService, providedIn: 'root' }); }
296
- }
297
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SnackBarService, decorators: [{
298
- type: Injectable,
299
- args: [{
300
- providedIn: 'root'
301
- }]
302
- }], ctorParameters: function () { return [{ type: i1$1.MatSnackBar }]; } });
303
-
304
- // Generate an internal UID to make the regexp pattern harder to guess.
305
- const UID_LENGTH = 16;
306
- const UID = generateUID();
307
- const PLACE_HOLDER_REGEXP = new RegExp('(\\\\)?"@__(F|R|D|M|S|A|U|I|B|L)-' + UID + '-(\\d+)__@"', 'g');
308
- const IS_NATIVE_CODE_REGEXP = /\{\s*\[native code]\s*}/g;
309
- const IS_PURE_FUNCTION = /function.*?\(/;
310
- const IS_ARROW_FUNCTION = /.*?=>.*?/;
311
- const UNSAFE_CHARS_REGEXP = /[<>\/\u2028\u2029]/g;
312
- const RESERVED_SYMBOLS = ['*', 'async'];
313
- // Mapping of unsafe HTML and invalid JavaScript line terminator chars to their
314
- // Unicode char counterparts which are safe to use in JavaScript strings.
315
- const ESCAPED_CHARS = {
316
- '<': '\\u003C',
317
- '>': '\\u003E',
318
- '/': '\\u002F',
319
- '\u2028': '\\u2028',
320
- '\u2029': '\\u2029'
321
- };
322
- function escapeUnsafeChars(unsafeChar) {
323
- return (ESCAPED_CHARS.hasOwnProperty(unsafeChar)) ? ESCAPED_CHARS[unsafeChar] : '';
324
- }
325
- function generateUID() {
326
- let bytes = window.crypto.getRandomValues(new Uint32Array(UID_LENGTH));
327
- let result = '';
328
- for (let i = 0; i < UID_LENGTH; ++i) {
329
- result += bytes[i].toString(16);
330
- }
331
- return result;
332
- }
333
- function deleteFunctions(obj) {
334
- let functionKeys = [];
335
- for (let key in obj) {
336
- if (typeof obj[key] === "function") {
337
- functionKeys.push(key);
338
- }
339
- }
340
- for (let i = 0; i < functionKeys.length; i++) {
341
- delete obj[functionKeys[i]];
342
- }
343
- }
344
- function serialize(obj, options = {}) {
345
- // Backwards-compatibility for `space` as the second argument.
346
- if (typeof options === 'number' || typeof options === 'string') {
347
- options = { space: options };
348
- }
349
- let functions = [];
350
- let regexps = [];
351
- let dates = [];
352
- let maps = [];
353
- let sets = [];
354
- let arrays = [];
355
- let undefs = [];
356
- let infinities = [];
357
- let bigInts = [];
358
- let urls = [];
359
- // Returns placeholders for functions and regexps (identified by index)
360
- // which are later replaced by their string representation.
361
- function replacer(key, value) {
362
- // For nested function
363
- if (options.ignoreFunction) {
364
- deleteFunctions(value);
365
- }
366
- if (!value && value !== undefined) {
367
- return value;
368
- }
369
- // let origValue: any = this[key];
370
- let origValue = value;
371
- let type = typeof origValue;
372
- switch (type) {
373
- case 'object':
374
- if (origValue instanceof RegExp) {
375
- return '@__R-' + UID + '-' + (regexps.push(origValue) - 1) + '__@';
376
- }
377
- else if (origValue instanceof Date) {
378
- return '@__D-' + UID + '-' + (dates.push(origValue) - 1) + '__@';
379
- }
380
- else if (origValue instanceof Map) {
381
- return '@__M-' + UID + '-' + (maps.push(origValue) - 1) + '__@';
382
- }
383
- else if (origValue instanceof Set) {
384
- return '@__S-' + UID + '-' + (sets.push(origValue) - 1) + '__@';
385
- }
386
- if (origValue instanceof Array) {
387
- let isSparse = origValue.filter(function () {
388
- return true;
389
- }).length !== origValue.length;
390
- if (isSparse) {
391
- return '@__A-' + UID + '-' + (arrays.push(origValue) - 1) + '__@';
392
- }
393
- }
394
- if (origValue instanceof URL) {
395
- return '@__L-' + UID + '-' + (urls.push(origValue) - 1) + '__@';
396
- }
397
- break;
398
- case 'function':
399
- return '@__F-' + UID + '-' + (functions.push(origValue) - 1) + '__@';
400
- case 'undefined':
401
- return '@__U-' + UID + '-' + (undefs.push(origValue) - 1) + '__@';
402
- case 'number':
403
- return '@__I-' + UID + '-' + (infinities.push(origValue) - 1) + '__@';
404
- case 'bigint':
405
- return '@__B-' + UID + '-' + (bigInts.push(origValue) - 1) + '__@';
406
- }
407
- return value;
408
- }
409
- function serializeFunc(fn) {
410
- let serializedFn = fn.toString();
411
- if (IS_NATIVE_CODE_REGEXP.test(serializedFn)) {
412
- throw new TypeError('Serializing native function: ' + fn.name);
413
- }
414
- // pure functions, example: {key: function() {}}
415
- if (IS_PURE_FUNCTION.test(serializedFn)) {
416
- return serializedFn;
417
- }
418
- // arrow functions, example: arg1 => arg1+5
419
- if (IS_ARROW_FUNCTION.test(serializedFn)) {
420
- return serializedFn;
421
- }
422
- let argsStartsAt = serializedFn.indexOf('(');
423
- let def = serializedFn.slice(0, argsStartsAt)
424
- .trim()
425
- .split(' ')
426
- .filter(function (val) {
427
- return val.length > 0;
428
- });
429
- let nonReservedSymbols = def.filter(function (val) {
430
- return RESERVED_SYMBOLS.indexOf(val) === -1;
431
- });
432
- // enhanced literal objects, example: {key() {}}
433
- if (nonReservedSymbols.length > 0) {
434
- return (def.indexOf('async') > -1 ? 'async ' : '') + 'function'
435
- + (def.join('').indexOf('*') > -1 ? '*' : '')
436
- + serializedFn.slice(argsStartsAt);
437
- }
438
- // arrow functions
439
- return serializedFn;
440
- }
441
- // Check if the parameter is function
442
- if (options.ignoreFunction && typeof obj === "function") {
443
- obj = undefined;
444
- }
445
- // Protects against `JSON.stringify()` returning `undefined`, by serializing
446
- // to the literal string: "undefined".
447
- if (obj === undefined) {
448
- return String(obj);
449
- }
450
- let str = '';
451
- // Creates a JSON string representation of the value.
452
- // NOTE: Node 0.12 goes into slow mode with extra JSON.stringify() args.
453
- if (options.isJSON && !options.space) {
454
- str = JSON.stringify(obj);
455
- }
456
- else {
457
- str = JSON.stringify(obj, options.isJSON ? undefined : replacer, options.space);
458
- }
459
- // Replace unsafe HTML and invalid JavaScript line terminator chars with
460
- // their safe Unicode char counterpart. This _must_ happen before the
461
- // regexps and functions are serialized and added back to the string.
462
- if (options.unsafe !== true) {
463
- str = str.replace(UNSAFE_CHARS_REGEXP, escapeUnsafeChars);
464
- }
465
- if (functions.length === 0 && regexps.length === 0 && dates.length === 0 && maps.length === 0 && sets.length === 0 && arrays.length === 0 && undefs.length === 0 && infinities.length === 0 && bigInts.length === 0 && urls.length === 0) {
466
- return str;
467
- }
468
- // Replaces all occurrences of function, regexp, date, map and set placeholders in the
469
- // JSON string with their string representations. If the original value can
470
- // not be found, then `undefined` is used.
471
- return str.replace(PLACE_HOLDER_REGEXP, function (match, backSlash, type, valueIndex) {
472
- // The placeholder may not be preceded by a backslash. This is to prevent
473
- // replacing things like `"a\"@__R-<UID>-0__@"` and thus outputting
474
- // invalid JS.
475
- if (backSlash) {
476
- return match;
477
- }
478
- switch (type) {
479
- case 'D':
480
- return "new Date(\"" + dates[valueIndex].toISOString() + "\")";
481
- case 'R':
482
- return "new RegExp(" + serialize(regexps[valueIndex].source) + ", \"" + regexps[valueIndex].flags + "\")";
483
- case 'M':
484
- return "new Map(" + serialize(Array.from(maps[valueIndex].entries()), options) + ")";
485
- case 'S':
486
- return "new Set(" + serialize(Array.from(sets[valueIndex].values()), options) + ")";
487
- case 'A':
488
- return "Array.prototype.slice.call(" + serialize(Object.assign({ length: arrays[valueIndex].length }, arrays[valueIndex]), options) + ")";
489
- case 'U':
490
- return 'undefined';
491
- case 'I':
492
- return infinities[valueIndex];
493
- case 'B':
494
- return "BigInt(\"" + bigInts[valueIndex] + "\")";
495
- case 'L':
496
- return "new URL(\"" + urls[valueIndex].toString() + "\")";
497
- }
498
- let fn = functions[valueIndex];
499
- return serializeFunc(fn);
500
- });
501
- }
502
-
503
- class JSONServices {
504
- static deserialize(data) {
505
- return eval('(' + data + ')');
506
- }
507
- static serialize(data) {
508
- return serialize(data);
509
- }
510
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: JSONServices, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
511
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: JSONServices, providedIn: 'root' }); }
512
- }
513
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: JSONServices, decorators: [{
514
- type: Injectable,
515
- args: [{
516
- providedIn: 'root'
517
- }]
518
- }] });
519
-
520
223
  class CookiesServices {
521
224
  static get(name) {
522
225
  const results = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
@@ -534,7 +237,7 @@ class CookiesServices {
534
237
  document.cookie = string;
535
238
  }
536
239
  static setObj(name, value, age = 0) {
537
- let string = name + '=' + JSONServices.serialize(value) + ';';
240
+ let string = name + '=' + JSON.stringify(value) + ';';
538
241
  if (age) {
539
242
  string += ' max-age=' + age;
540
243
  }
@@ -544,7 +247,7 @@ class CookiesServices {
544
247
  static getObj(name) {
545
248
  const results = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
546
249
  if (results) {
547
- return JSONServices.deserialize(results[2]);
250
+ return JSON.parse(results[2]);
548
251
  }
549
252
  return false;
550
253
  }
@@ -736,7 +439,8 @@ class LocalStorageServices {
736
439
  return localStorage.getItem(name);
737
440
  }
738
441
  static getObj(name) {
739
- return JSONServices.deserialize(localStorage.getItem(name));
442
+ const localData = localStorage.getItem(name);
443
+ return (localData) ? JSON.parse(localData) : null;
740
444
  }
741
445
  static set(name, value) {
742
446
  localStorage.setItem(name, value);
@@ -744,10 +448,10 @@ class LocalStorageServices {
744
448
  static setObj(name, value) {
745
449
  let get = this.get(name);
746
450
  if (get && typeof get === 'object') {
747
- localStorage.setItem(name, JSONServices.serialize(Object.assign(get, value)));
451
+ localStorage.setItem(name, JSON.stringify(Object.assign(get, value)));
748
452
  }
749
453
  else {
750
- localStorage.setItem(name, JSONServices.serialize(value));
454
+ localStorage.setItem(name, JSON.stringify(value));
751
455
  }
752
456
  }
753
457
  static del(name) {
@@ -1125,10 +829,9 @@ class HttpData extends BaseServices {
1125
829
  }
1126
830
 
1127
831
  class BaseHttp extends HttpData {
1128
- constructor(http, snackBar) {
832
+ constructor(http) {
1129
833
  super();
1130
834
  this.http = http;
1131
- this.snackBar = snackBar;
1132
835
  }
1133
836
  handleError(result) {
1134
837
  return (error) => {
@@ -1136,7 +839,7 @@ class BaseHttp extends HttpData {
1136
839
  return of(result);
1137
840
  };
1138
841
  }
1139
- 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 }); }
842
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseHttp, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1140
843
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseHttp, providedIn: 'root' }); }
1141
844
  }
1142
845
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BaseHttp, decorators: [{
@@ -1144,7 +847,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
1144
847
  args: [{
1145
848
  providedIn: 'root'
1146
849
  }]
1147
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: SnackBarService }]; } });
850
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1148
851
 
1149
852
  class BaseHttpServices extends BaseHttp {
1150
853
  httpGet(url, params = {}, settings = this.defSettings) {
@@ -1158,8 +861,8 @@ class BaseHttpServices extends BaseHttp {
1158
861
  }
1159
862
 
1160
863
  class HttpServices extends BaseHttpServices {
1161
- constructor(http, snackBar, session) {
1162
- super(http, snackBar);
864
+ constructor(http, session) {
865
+ super(http);
1163
866
  this.session = session;
1164
867
  }
1165
868
  httpPost(url, params = {}, settings = this.defSettings) {
@@ -1175,7 +878,6 @@ class HttpServices extends BaseHttpServices {
1175
878
  }));
1176
879
  }
1177
880
  else {
1178
- this.snackBar.error('Error: Auth not get');
1179
881
  return throwError(() => 'auth not get');
1180
882
  }
1181
883
  }
@@ -1198,11 +900,10 @@ class HttpServices extends BaseHttpServices {
1198
900
  }));
1199
901
  }
1200
902
  else {
1201
- this.snackBar.error('Error: Auth not get');
1202
903
  return throwError(() => 'auth not get');
1203
904
  }
1204
905
  }
1205
- 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 }); }
906
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HttpServices, deps: [{ token: i1.HttpClient }, { token: SessionKeyServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
1206
907
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HttpServices, providedIn: 'root' }); }
1207
908
  }
1208
909
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HttpServices, decorators: [{
@@ -1210,7 +911,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
1210
911
  args: [{
1211
912
  providedIn: 'root'
1212
913
  }]
1213
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: SnackBarService }, { type: SessionKeyServices }]; } });
914
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: SessionKeyServices }]; } });
1214
915
 
1215
916
  // type TransformFunction<T, R> = (input: T) => R;
1216
917
  class HttpBXServices extends HttpServices {
@@ -1786,35 +1487,10 @@ class BXRestTasksTask {
1786
1487
  })
1787
1488
  )
1788
1489
  }
1789
-
1490
+ */
1790
1491
  getFields() {
1791
- return this.storeTask$.pipe(
1792
- mergeMap(v => {
1793
- if (v && !v.data.fields) {
1794
- return this.http.post<iHttpAnswerBX<{ fields: iGetFieldsDescription }>>(this.url.getFields).pipe(
1795
- tap(v => {
1796
- if (v && v.result) {
1797
- this.store.dispatch(saveFields(v.result))
1798
- }
1799
- }),
1800
- map(v => {
1801
- if (v && v.result && v.result.fields) {
1802
- return {result: v.result.fields}
1803
- }
1804
-
1805
- return undefined
1806
- })
1807
- )
1808
- }
1809
- if (v.data.fields) {
1810
- return of({result: clone<iGetFieldsDescription>(v.data.fields)})
1811
- } else {
1812
- return of(undefined)
1813
- }
1814
- })
1815
- )
1492
+ return this.http.post(this.url.list);
1816
1493
  }
1817
- */
1818
1494
  getaccess(param) {
1819
1495
  return this.http.post(this.url.getaccess, param);
1820
1496
  }
@@ -2344,15 +2020,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
2344
2020
  }]
2345
2021
  }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
2346
2022
 
2023
+ class BXRestImChat {
2024
+ constructor(http) {
2025
+ this.http = http;
2026
+ this.url = {
2027
+ add: [$im, $chat, $add],
2028
+ // list: [$im, $chat, $user, $list],
2029
+ // add: [$im, $chat, $user, $add],
2030
+ // delete: [$im, $chat, $user, $delete],
2031
+ updateTitle: [$im, $chat, $updateTitle],
2032
+ updateColor: [$im, $chat, $updateColor],
2033
+ updateAvatar: [$im, $chat, $updateAvatar],
2034
+ setOwner: [$im, $chat, $setOwner],
2035
+ get: [$im, $chat, $get],
2036
+ mute: [$im, $chat, $mute],
2037
+ };
2038
+ }
2039
+ add(param) {
2040
+ return this.http.post(this.url.add, param);
2041
+ }
2042
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestImChat, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2043
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestImChat, providedIn: 'root' }); }
2044
+ }
2045
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestImChat, decorators: [{
2046
+ type: Injectable,
2047
+ args: [{
2048
+ providedIn: 'root'
2049
+ }]
2050
+ }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
2051
+
2052
+ class BXRestIm {
2053
+ constructor(chat) {
2054
+ this.chat = chat;
2055
+ }
2056
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestIm, deps: [{ token: BXRestImChat }], target: i0.ɵɵFactoryTarget.Injectable }); }
2057
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestIm, providedIn: 'root' }); }
2058
+ }
2059
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestIm, decorators: [{
2060
+ type: Injectable,
2061
+ args: [{
2062
+ providedIn: 'root'
2063
+ }]
2064
+ }], ctorParameters: function () { return [{ type: BXRestImChat }]; } });
2065
+
2347
2066
  class NavvySupport {
2348
2067
  constructor(requestClass, mapClass) {
2349
2068
  this.requestClass = requestClass;
2350
2069
  this.mapClass = mapClass;
2351
2070
  this.pageSize = 50; // больше всё равно не дас
2352
2071
  }
2353
- mapAndSnackBarError(request
2354
- // errorText: string
2355
- ) {
2072
+ mapAndError(request) {
2356
2073
  return request.pipe(map(v => BXRestMapResult(v)), catchError(err => {
2357
2074
  // this.snackBar.error(errorText)
2358
2075
  return throwError(() => err);
@@ -2378,7 +2095,7 @@ class NavvySimple extends NavvySupport {
2378
2095
  return this.func.pipe(map(v => (v && v.result && this.map) ? Object.assign(v, { result: this.map.call(this.mapClass, v.result) }) : v));
2379
2096
  }
2380
2097
  result() {
2381
- return this.mapAndSnackBarError(this.func).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v));
2098
+ return this.mapAndError(this.func).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v));
2382
2099
  }
2383
2100
  }
2384
2101
 
@@ -2405,7 +2122,7 @@ class NavvyPagNavBase extends NavvySupport {
2405
2122
  return this.resultEnd(this.func, this.param);
2406
2123
  }
2407
2124
  resultEnd(func, param) {
2408
- return this.mapAndSnackBarError(func.call(this.requestClass, param)).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v));
2125
+ return this.mapAndError(func.call(this.requestClass, param)).pipe(map(v => (v && this.map) ? this.map.call(this.mapClass, v) : v));
2409
2126
  }
2410
2127
  }
2411
2128
 
@@ -2591,9 +2308,7 @@ class NavvyPagNavTasks extends NavvyPagNavBase {
2591
2308
  }
2592
2309
 
2593
2310
  class Navvy {
2594
- constructor(requestClass, mapClass
2595
- // private snackBar: SnackBarService,
2596
- ) {
2311
+ constructor(requestClass, mapClass) {
2597
2312
  this.requestClass = requestClass;
2598
2313
  this.mapClass = mapClass;
2599
2314
  }
@@ -2761,6 +2476,12 @@ class BXRestNavvyUser {
2761
2476
  current(update = false) {
2762
2477
  const navvy = new Navvy(this, this.BXRestUserMap);
2763
2478
  return navvy.simpleWithArg(this.self, update, this.BXRestUserMap.current);
2479
+ // TODO: разобраться зачем код выше вместо кода ниже и написать коммент
2480
+ // return this.Navvy.simpleWithArg(
2481
+ // this.self,
2482
+ // update,
2483
+ // this.BXRestUserMap.current
2484
+ // )
2764
2485
  }
2765
2486
  /*
2766
2487
  update(user: iBXRestUser, fieldUpdate: string[]) {
@@ -3369,10 +3090,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
3369
3090
  // next: number
3370
3091
  // }
3371
3092
  class BXRestNavvyTasksTask {
3372
- constructor(result, BXRestTasksTask,
3373
- // private snackBar: SnackBarService,
3374
- // private store: Store<{ tasks: IStoreTask }>,
3375
- BXRestMapTasksTask) {
3093
+ constructor(result, BXRestTasksTask, BXRestMapTasksTask) {
3376
3094
  this.result = result;
3377
3095
  this.BXRestTasksTask = BXRestTasksTask;
3378
3096
  this.BXRestMapTasksTask = BXRestMapTasksTask;
@@ -3395,18 +3113,6 @@ class BXRestNavvyTasksTask {
3395
3113
  }
3396
3114
  add(param) {
3397
3115
  return this.Navvy.simpleWithArg(this.BXRestTasksTask.add, param, this.BXRestMapTasksTask.add);
3398
- // return this.http.post<{ task: TaskBXHttp }>(this.url.add, {fields: param}).pipe(
3399
- // map(v => {
3400
- // if (v && v.result && v.result.task) {
3401
- // return Object.assign(
3402
- // v,
3403
- // {
3404
- // result: this.taskBXMap.TaskBXHttpToTaskBX(v.result.task)
3405
- // })
3406
- // }
3407
- // return undefined
3408
- // }
3409
- // ))
3410
3116
  }
3411
3117
  /*
3412
3118
  update(taskId: number, updateFields: iBXRestTaskFieldsName[], task: iBXRestTask) {
@@ -3507,34 +3213,10 @@ class BXRestNavvyTasksTask {
3507
3213
  })
3508
3214
  )
3509
3215
  }
3510
-
3216
+ */
3511
3217
  getFields() {
3512
- return this.storeTask$.pipe(
3513
- mergeMap(v => {
3514
- if (v && !v.data.fields) {
3515
- return this.http.post<iHttpAnswerBX<{ fields: iGetFieldsDescription }>>(this.url.getFields).pipe(
3516
- tap(v => {
3517
- if (v && v.result) {
3518
- this.store.dispatch(saveFields(v.result))
3519
- }
3520
- }),
3521
- map(v => {
3522
- if (v && v.result && v.result.fields) {
3523
- return {result: v.result.fields}
3524
- }
3525
-
3526
- return undefined
3527
- })
3528
- )
3529
- }
3530
- if (v.data.fields) {
3531
- return of({result: clone<iGetFieldsDescription>(v.data.fields)})
3532
- } else {
3533
- return of(undefined)
3534
- }
3535
- })
3536
- )
3537
- } */
3218
+ return this.Navvy.simple(this.BXRestTasksTask.getFields);
3219
+ }
3538
3220
  getaccess(param) {
3539
3221
  return this.Navvy.simpleWithArg(this.BXRestTasksTask.getaccess, param, this.BXRestMapTasksTask.getaccess);
3540
3222
  }
@@ -3949,10 +3631,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
3949
3631
  }] });
3950
3632
 
3951
3633
  class BXRestNavvyTaskCommentItem {
3952
- constructor(BXRestTaskCommentItem, mapTaskCommentItem, snackBar) {
3634
+ constructor(BXRestTaskCommentItem, mapTaskCommentItem) {
3953
3635
  this.BXRestTaskCommentItem = BXRestTaskCommentItem;
3954
3636
  this.mapTaskCommentItem = mapTaskCommentItem;
3955
- this.snackBar = snackBar;
3956
3637
  this.Navvy = new Navvy(this.BXRestTaskCommentItem, this.mapTaskCommentItem);
3957
3638
  }
3958
3639
  add(param) {
@@ -3978,16 +3659,14 @@ class BXRestNavvyTaskCommentItem {
3978
3659
  if (v) {
3979
3660
  return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.del, param).result();
3980
3661
  }
3981
- this.snackBar.warning('comment not exist');
3982
3662
  return of(false);
3983
3663
  }));
3984
3664
  }
3985
3665
  else {
3986
- this.snackBar.warning('comment not exist');
3987
3666
  return of(false);
3988
3667
  }
3989
3668
  }
3990
- 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 }); }
3669
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskCommentItem, deps: [{ token: BXRestTaskCommentItem }, { token: BXRestMapTaskCommentItem }], target: i0.ɵɵFactoryTarget.Injectable }); }
3991
3670
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskCommentItem, providedIn: 'root' }); }
3992
3671
  }
3993
3672
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskCommentItem, decorators: [{
@@ -3995,7 +3674,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
3995
3674
  args: [{
3996
3675
  providedIn: 'root'
3997
3676
  }]
3998
- }], ctorParameters: function () { return [{ type: BXRestTaskCommentItem }, { type: BXRestMapTaskCommentItem }, { type: SnackBarService }]; } });
3677
+ }], ctorParameters: function () { return [{ type: BXRestTaskCommentItem }, { type: BXRestMapTaskCommentItem }]; } });
3999
3678
 
4000
3679
  class BXRestMapTaskPlaner extends BaseMapServices {
4001
3680
  getList(v) {
@@ -4884,8 +4563,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
4884
4563
  }]
4885
4564
  }], ctorParameters: function () { return [{ type: BXRestDepartment }, { type: BXRestMapDepartment }]; } });
4886
4565
 
4566
+ class BXRestNavvyImChat {
4567
+ constructor(BXRestImChat) {
4568
+ this.BXRestImChat = BXRestImChat;
4569
+ this.Navvy = new Navvy(this.BXRestImChat, null);
4570
+ }
4571
+ add(param) {
4572
+ return this.Navvy.simpleWithArg(this.BXRestImChat.add, param);
4573
+ }
4574
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyImChat, deps: [{ token: BXRestImChat }], target: i0.ɵɵFactoryTarget.Injectable }); }
4575
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyImChat, providedIn: 'root' }); }
4576
+ }
4577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyImChat, decorators: [{
4578
+ type: Injectable,
4579
+ args: [{
4580
+ providedIn: 'root'
4581
+ }]
4582
+ }], ctorParameters: function () { return [{ type: BXRestImChat }]; } });
4583
+
4584
+ class BXRestNavvyIm {
4585
+ constructor(chat) {
4586
+ this.chat = chat;
4587
+ }
4588
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyIm, deps: [{ token: BXRestNavvyImChat }], target: i0.ɵɵFactoryTarget.Injectable }); }
4589
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyIm, providedIn: 'root' }); }
4590
+ }
4591
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyIm, decorators: [{
4592
+ type: Injectable,
4593
+ args: [{
4594
+ providedIn: 'root'
4595
+ }]
4596
+ }], ctorParameters: function () { return [{ type: BXRestNavvyImChat }]; } });
4597
+
4887
4598
  class BXRest {
4888
- constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server, department) {
4599
+ constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server, department, im) {
4889
4600
  this.user = user;
4890
4601
  this.lists = lists;
4891
4602
  this.task = task;
@@ -4897,8 +4608,9 @@ class BXRest {
4897
4608
  this.sonet_group = sonet_group;
4898
4609
  this.server = server;
4899
4610
  this.department = department;
4611
+ this.im = im;
4900
4612
  }
4901
- 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 }); }
4613
+ 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 }, { token: BXRestIm }], target: i0.ɵɵFactoryTarget.Injectable }); }
4902
4614
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRest, providedIn: 'root' }); }
4903
4615
  }
4904
4616
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRest, decorators: [{
@@ -4906,9 +4618,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
4906
4618
  args: [{
4907
4619
  providedIn: 'root'
4908
4620
  }]
4909
- }], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTask }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }, { type: BXRestCalendar }, { type: BXRestSonetGroup }, { type: BXRestServer }, { type: BXRestDepartment }]; } });
4621
+ }], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTask }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }, { type: BXRestCalendar }, { type: BXRestSonetGroup }, { type: BXRestServer }, { type: BXRestDepartment }, { type: BXRestIm }]; } });
4910
4622
  class BXRestNavvy {
4911
- constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server, department) {
4623
+ constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server, department, im) {
4912
4624
  this.user = user;
4913
4625
  this.lists = lists;
4914
4626
  this.task = task;
@@ -4920,8 +4632,9 @@ class BXRestNavvy {
4920
4632
  this.sonet_group = sonet_group;
4921
4633
  this.server = server;
4922
4634
  this.department = department;
4635
+ this.im = im;
4923
4636
  }
4924
- 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 }); }
4637
+ 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 }, { token: BXRestNavvyIm }], target: i0.ɵɵFactoryTarget.Injectable }); }
4925
4638
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvy, providedIn: 'root' }); }
4926
4639
  }
4927
4640
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvy, decorators: [{
@@ -4929,7 +4642,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
4929
4642
  args: [{
4930
4643
  providedIn: 'root'
4931
4644
  }]
4932
- }], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTask }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }, { type: BXRestNavvyCalendar }, { type: BXRestNavvySonetGroup }, { type: BXRestNavvyServer }, { type: BXRestNavvyDepartment }]; } });
4645
+ }], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTask }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }, { type: BXRestNavvyCalendar }, { type: BXRestNavvySonetGroup }, { type: BXRestNavvyServer }, { type: BXRestNavvyDepartment }, { type: BXRestNavvyIm }]; } });
4933
4646
  class BXRestMap {
4934
4647
  constructor(lists) {
4935
4648
  this.lists = lists;
@@ -5099,7 +4812,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
5099
4812
  }]
5100
4813
  }], ctorParameters: function () { return [{ type: BXRestMapTasksTask }]; } });
5101
4814
 
5102
- let Map$1 = class Map {
4815
+ class Map {
5103
4816
  constructor(user, sonet_group, server, lists, disk, calendar, log, task, tasks) {
5104
4817
  this.user = user;
5105
4818
  this.sonet_group = sonet_group;
@@ -5113,8 +4826,8 @@ let Map$1 = class Map {
5113
4826
  }
5114
4827
  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 }); }
5115
4828
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Map, providedIn: 'root' }); }
5116
- };
5117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Map$1, decorators: [{
4829
+ }
4830
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Map, decorators: [{
5118
4831
  type: Injectable,
5119
4832
  args: [{
5120
4833
  providedIn: 'root'
@@ -5129,5 +4842,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
5129
4842
  * Generated bundle index. Do not edit.
5130
4843
  */
5131
4844
 
5132
- export { Map$1 as BXMap, BXRest, BXRestMap, BaseMapServices as BXRestMapBase, BXRestMapResult, BXRestNavvy, HttpBXServices as BXRestRequest, BX_REST_SETTINGS, Navvy, partNameMethods$1 as partNameMethods };
4845
+ export { Map as BXMap, BXRest, BXRestMap, BaseMapServices as BXRestMapBase, BXRestMapResult, BXRestNavvy, HttpBXServices as BXRestRequest, BX_REST_SETTINGS, Navvy, partNameMethods$1 as partNameMethods };
5133
4846
  //# sourceMappingURL=bx-rest.mjs.map