bx-rest 0.3.1 → 0.3.3

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 (44) 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/public-api.mjs +2 -1
  5. package/esm2022/request/im/chat.mjs +33 -0
  6. package/esm2022/request/im.mjs +17 -0
  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 +2 -5
  11. package/esm2022/request-navvy/user.mjs +7 -1
  12. package/esm2022/rest.mjs +25 -21
  13. package/esm2022/services/http/base/base.mjs +4 -6
  14. package/esm2022/services/http/http.mjs +5 -8
  15. package/esm2022/services/navvy.mjs +2 -4
  16. package/esm2022/services/vanilla/localStorage.mjs +5 -5
  17. package/esm2022/services/vanilla//321/201ookies.mjs +3 -4
  18. package/esm2022/typification/rest/api-lib.mjs +1 -1
  19. package/esm2022/typification/rest/im/chat/add.mjs +2 -0
  20. package/fesm2022/bx-rest.mjs +126 -350
  21. package/fesm2022/bx-rest.mjs.map +1 -1
  22. package/package.json +1 -1
  23. package/public-api.d.ts +1 -0
  24. package/request/im/chat.d.ts +19 -0
  25. package/request/im.d.ts +8 -0
  26. package/request-navvy/im/chat.d.ts +11 -0
  27. package/request-navvy/im.d.ts +8 -0
  28. package/request-navvy/task/commentitem.d.ts +1 -3
  29. package/rest.d.ts +6 -2
  30. package/services/http/base/base.d.ts +1 -3
  31. package/services/http/http.d.ts +1 -2
  32. package/typification/rest/im/chat/add.d.ts +12 -0
  33. package/consts/part-name-metods.d.ts +0 -89
  34. package/esm2022/consts/part-name-metods.mjs +0 -90
  35. package/esm2022/functions/serializeJavascript.mjs +0 -200
  36. package/esm2022/request/bx-rest.module.mjs +0 -28
  37. package/esm2022/services/snack-bar/snack-bar.service.mjs +0 -42
  38. package/esm2022/services/snack-bar/toast-message/toast-message.component.mjs +0 -31
  39. package/esm2022/services/vanilla/JSON.mjs +0 -20
  40. package/functions/serializeJavascript.d.ts +0 -2
  41. package/request/bx-rest.module.d.ts +0 -8
  42. package/services/snack-bar/snack-bar.service.d.ts +0 -12
  43. package/services/snack-bar/toast-message/toast-message.component.d.ts +0 -16
  44. 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 {
@@ -2344,6 +2045,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
2344
2045
  }]
2345
2046
  }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
2346
2047
 
2048
+ class BXRestImChat {
2049
+ constructor(http) {
2050
+ this.http = http;
2051
+ this.url = {
2052
+ add: [$im, $chat, $add],
2053
+ // list: [$im, $chat, $user, $list],
2054
+ // add: [$im, $chat, $user, $add],
2055
+ // delete: [$im, $chat, $user, $delete],
2056
+ updateTitle: [$im, $chat, $updateTitle],
2057
+ updateColor: [$im, $chat, $updateColor],
2058
+ updateAvatar: [$im, $chat, $updateAvatar],
2059
+ setOwner: [$im, $chat, $setOwner],
2060
+ get: [$im, $chat, $get],
2061
+ mute: [$im, $chat, $mute],
2062
+ };
2063
+ }
2064
+ add(param) {
2065
+ return this.http.post(this.url.add, param);
2066
+ }
2067
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestImChat, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable }); }
2068
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestImChat, providedIn: 'root' }); }
2069
+ }
2070
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestImChat, decorators: [{
2071
+ type: Injectable,
2072
+ args: [{
2073
+ providedIn: 'root'
2074
+ }]
2075
+ }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
2076
+
2077
+ class BXRestIm {
2078
+ constructor(chat) {
2079
+ this.chat = chat;
2080
+ }
2081
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestIm, deps: [{ token: BXRestImChat }], target: i0.ɵɵFactoryTarget.Injectable }); }
2082
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestIm, providedIn: 'root' }); }
2083
+ }
2084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestIm, decorators: [{
2085
+ type: Injectable,
2086
+ args: [{
2087
+ providedIn: 'root'
2088
+ }]
2089
+ }], ctorParameters: function () { return [{ type: BXRestImChat }]; } });
2090
+
2347
2091
  class NavvySupport {
2348
2092
  constructor(requestClass, mapClass) {
2349
2093
  this.requestClass = requestClass;
@@ -2591,9 +2335,7 @@ class NavvyPagNavTasks extends NavvyPagNavBase {
2591
2335
  }
2592
2336
 
2593
2337
  class Navvy {
2594
- constructor(requestClass, mapClass
2595
- // private snackBar: SnackBarService,
2596
- ) {
2338
+ constructor(requestClass, mapClass) {
2597
2339
  this.requestClass = requestClass;
2598
2340
  this.mapClass = mapClass;
2599
2341
  }
@@ -2761,6 +2503,12 @@ class BXRestNavvyUser {
2761
2503
  current(update = false) {
2762
2504
  const navvy = new Navvy(this, this.BXRestUserMap);
2763
2505
  return navvy.simpleWithArg(this.self, update, this.BXRestUserMap.current);
2506
+ // TODO: разобраться зачем код выше вместо кода ниже и написать коммент
2507
+ // return this.Navvy.simpleWithArg(
2508
+ // this.self,
2509
+ // update,
2510
+ // this.BXRestUserMap.current
2511
+ // )
2764
2512
  }
2765
2513
  /*
2766
2514
  update(user: iBXRestUser, fieldUpdate: string[]) {
@@ -3369,10 +3117,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
3369
3117
  // next: number
3370
3118
  // }
3371
3119
  class BXRestNavvyTasksTask {
3372
- constructor(result, BXRestTasksTask,
3373
- // private snackBar: SnackBarService,
3374
- // private store: Store<{ tasks: IStoreTask }>,
3375
- BXRestMapTasksTask) {
3120
+ constructor(result, BXRestTasksTask, BXRestMapTasksTask) {
3376
3121
  this.result = result;
3377
3122
  this.BXRestTasksTask = BXRestTasksTask;
3378
3123
  this.BXRestMapTasksTask = BXRestMapTasksTask;
@@ -3949,10 +3694,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
3949
3694
  }] });
3950
3695
 
3951
3696
  class BXRestNavvyTaskCommentItem {
3952
- constructor(BXRestTaskCommentItem, mapTaskCommentItem, snackBar) {
3697
+ constructor(BXRestTaskCommentItem, mapTaskCommentItem) {
3953
3698
  this.BXRestTaskCommentItem = BXRestTaskCommentItem;
3954
3699
  this.mapTaskCommentItem = mapTaskCommentItem;
3955
- this.snackBar = snackBar;
3956
3700
  this.Navvy = new Navvy(this.BXRestTaskCommentItem, this.mapTaskCommentItem);
3957
3701
  }
3958
3702
  add(param) {
@@ -3978,16 +3722,14 @@ class BXRestNavvyTaskCommentItem {
3978
3722
  if (v) {
3979
3723
  return this.Navvy.simpleWithArg(this.BXRestTaskCommentItem.del, param).result();
3980
3724
  }
3981
- this.snackBar.warning('comment not exist');
3982
3725
  return of(false);
3983
3726
  }));
3984
3727
  }
3985
3728
  else {
3986
- this.snackBar.warning('comment not exist');
3987
3729
  return of(false);
3988
3730
  }
3989
3731
  }
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 }); }
3732
+ 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
3733
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskCommentItem, providedIn: 'root' }); }
3992
3734
  }
3993
3735
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyTaskCommentItem, decorators: [{
@@ -3995,7 +3737,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
3995
3737
  args: [{
3996
3738
  providedIn: 'root'
3997
3739
  }]
3998
- }], ctorParameters: function () { return [{ type: BXRestTaskCommentItem }, { type: BXRestMapTaskCommentItem }, { type: SnackBarService }]; } });
3740
+ }], ctorParameters: function () { return [{ type: BXRestTaskCommentItem }, { type: BXRestMapTaskCommentItem }]; } });
3999
3741
 
4000
3742
  class BXRestMapTaskPlaner extends BaseMapServices {
4001
3743
  getList(v) {
@@ -4884,8 +4626,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
4884
4626
  }]
4885
4627
  }], ctorParameters: function () { return [{ type: BXRestDepartment }, { type: BXRestMapDepartment }]; } });
4886
4628
 
4629
+ class BXRestNavvyImChat {
4630
+ constructor(BXRestImChat) {
4631
+ this.BXRestImChat = BXRestImChat;
4632
+ this.Navvy = new Navvy(this.BXRestImChat, null);
4633
+ }
4634
+ add(param) {
4635
+ return this.Navvy.simpleWithArg(this.BXRestImChat.add, param);
4636
+ }
4637
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyImChat, deps: [{ token: BXRestImChat }], target: i0.ɵɵFactoryTarget.Injectable }); }
4638
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyImChat, providedIn: 'root' }); }
4639
+ }
4640
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyImChat, decorators: [{
4641
+ type: Injectable,
4642
+ args: [{
4643
+ providedIn: 'root'
4644
+ }]
4645
+ }], ctorParameters: function () { return [{ type: BXRestImChat }]; } });
4646
+
4647
+ class BXRestNavvyIm {
4648
+ constructor(chat) {
4649
+ this.chat = chat;
4650
+ }
4651
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyIm, deps: [{ token: BXRestNavvyImChat }], target: i0.ɵɵFactoryTarget.Injectable }); }
4652
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyIm, providedIn: 'root' }); }
4653
+ }
4654
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvyIm, decorators: [{
4655
+ type: Injectable,
4656
+ args: [{
4657
+ providedIn: 'root'
4658
+ }]
4659
+ }], ctorParameters: function () { return [{ type: BXRestNavvyImChat }]; } });
4660
+
4887
4661
  class BXRest {
4888
- constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server, department) {
4662
+ constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server, department, im) {
4889
4663
  this.user = user;
4890
4664
  this.lists = lists;
4891
4665
  this.task = task;
@@ -4897,8 +4671,9 @@ class BXRest {
4897
4671
  this.sonet_group = sonet_group;
4898
4672
  this.server = server;
4899
4673
  this.department = department;
4674
+ this.im = im;
4900
4675
  }
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 }); }
4676
+ 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
4677
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRest, providedIn: 'root' }); }
4903
4678
  }
4904
4679
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRest, decorators: [{
@@ -4906,9 +4681,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
4906
4681
  args: [{
4907
4682
  providedIn: 'root'
4908
4683
  }]
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 }]; } });
4684
+ }], 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
4685
  class BXRestNavvy {
4911
- constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server, department) {
4686
+ constructor(user, lists, task, tasks, disk, bizproc, log, calendar, sonet_group, server, department, im) {
4912
4687
  this.user = user;
4913
4688
  this.lists = lists;
4914
4689
  this.task = task;
@@ -4920,8 +4695,9 @@ class BXRestNavvy {
4920
4695
  this.sonet_group = sonet_group;
4921
4696
  this.server = server;
4922
4697
  this.department = department;
4698
+ this.im = im;
4923
4699
  }
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 }); }
4700
+ 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
4701
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvy, providedIn: 'root' }); }
4926
4702
  }
4927
4703
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BXRestNavvy, decorators: [{
@@ -4929,7 +4705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
4929
4705
  args: [{
4930
4706
  providedIn: 'root'
4931
4707
  }]
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 }]; } });
4708
+ }], 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
4709
  class BXRestMap {
4934
4710
  constructor(lists) {
4935
4711
  this.lists = lists;
@@ -5099,7 +4875,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
5099
4875
  }]
5100
4876
  }], ctorParameters: function () { return [{ type: BXRestMapTasksTask }]; } });
5101
4877
 
5102
- let Map$1 = class Map {
4878
+ class Map {
5103
4879
  constructor(user, sonet_group, server, lists, disk, calendar, log, task, tasks) {
5104
4880
  this.user = user;
5105
4881
  this.sonet_group = sonet_group;
@@ -5113,8 +4889,8 @@ let Map$1 = class Map {
5113
4889
  }
5114
4890
  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
4891
  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: [{
4892
+ }
4893
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: Map, decorators: [{
5118
4894
  type: Injectable,
5119
4895
  args: [{
5120
4896
  providedIn: 'root'
@@ -5129,5 +4905,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
5129
4905
  * Generated bundle index. Do not edit.
5130
4906
  */
5131
4907
 
5132
- export { Map$1 as BXMap, BXRest, BXRestMap, BXRestMapResult, BXRestNavvy, HttpBXServices as BXRestRequest, BX_REST_SETTINGS, Navvy, partNameMethods$1 as partNameMethods };
4908
+ export { Map as BXMap, BXRest, BXRestMap, BaseMapServices as BXRestMapBase, BXRestMapResult, BXRestNavvy, HttpBXServices as BXRestRequest, BX_REST_SETTINGS, Navvy, partNameMethods$1 as partNameMethods };
5133
4909
  //# sourceMappingURL=bx-rest.mjs.map