bx-rest 0.1.6 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/esm2020/map/base.mjs +2 -2
  2. package/esm2020/map/calendar/event.mjs +54 -0
  3. package/esm2020/map/disk/attachedObject.mjs +27 -0
  4. package/esm2020/map/disk/base.mjs +2 -2
  5. package/esm2020/map/lists/element.mjs +2 -2
  6. package/esm2020/map/lists.mjs +55 -2
  7. package/esm2020/map/sonet_group.mjs +34 -0
  8. package/esm2020/map/task.mjs +2 -2
  9. package/esm2020/map/user.mjs +2 -2
  10. package/esm2020/request/bizproc/workflow/template.mjs +4 -4
  11. package/esm2020/request/bizproc/workflow.mjs +4 -4
  12. package/esm2020/request/calendar/event.mjs +28 -0
  13. package/esm2020/request/calendar.mjs +52 -0
  14. package/esm2020/request/disk/attachedObject.mjs +24 -0
  15. package/esm2020/request/disk/file.mjs +4 -4
  16. package/esm2020/request/disk/folder.mjs +4 -4
  17. package/esm2020/request/disk/storage.mjs +4 -4
  18. package/esm2020/request/disk.mjs +6 -4
  19. package/esm2020/request/lists/element.mjs +4 -4
  20. package/esm2020/request/lists.mjs +9 -4
  21. package/esm2020/request/log/blogpost.mjs +7 -4
  22. package/esm2020/request/sonet_group.mjs +57 -0
  23. package/esm2020/request/tasks/task.mjs +4 -4
  24. package/esm2020/request/user.mjs +5 -5
  25. package/esm2020/request-navvy/calendar/event.mjs +25 -0
  26. package/esm2020/request-navvy/calendar.mjs +52 -0
  27. package/esm2020/request-navvy/disk/attachedObject.mjs +25 -0
  28. package/esm2020/request-navvy/disk/folder.mjs +5 -5
  29. package/esm2020/request-navvy/disk/operation.mjs +3 -3
  30. package/esm2020/request-navvy/disk.mjs +10 -8
  31. package/esm2020/request-navvy/lists.mjs +14 -4
  32. package/esm2020/request-navvy/log/blogcomment.mjs +1 -1
  33. package/esm2020/request-navvy/log/blogpost.mjs +4 -1
  34. package/esm2020/request-navvy/sonet_group.mjs +28 -0
  35. package/esm2020/rest.mjs +24 -16
  36. package/esm2020/services/http/HttpBX.mjs +2 -2
  37. package/esm2020/services/navvy.mjs +1 -1
  38. package/esm2020/typification/base/modyfy.mjs +2 -0
  39. package/esm2020/typification/rest/base/ApiPaginationBX.mjs +2 -0
  40. package/esm2020/typification/rest/calendar/base/type.mjs +2 -0
  41. package/esm2020/typification/rest/calendar/get/answer.mjs +2 -0
  42. package/esm2020/typification/rest/calendar/get/param.mjs +2 -0
  43. package/esm2020/typification/rest/disk/AttachedObject.mjs +2 -0
  44. package/esm2020/typification/rest/lists/get.mjs +2 -0
  45. package/esm2020/typification/rest/log/blogpost/essence.mjs +2 -0
  46. package/esm2020/typification/rest/log/blogpost/get.mjs +2 -0
  47. package/esm2020/typification/rest/sonet_group/base.mjs +2 -0
  48. package/esm2020/typification/rest/sonet_group/get.mjs +2 -0
  49. package/fesm2015/bx-rest.mjs +558 -152
  50. package/fesm2015/bx-rest.mjs.map +1 -1
  51. package/fesm2020/bx-rest.mjs +588 -152
  52. package/fesm2020/bx-rest.mjs.map +1 -1
  53. package/map/base.d.ts +1 -1
  54. package/map/calendar/event.d.ts +9 -0
  55. package/map/disk/attachedObject.d.ts +9 -0
  56. package/map/disk/base.d.ts +1 -1
  57. package/map/lists/element.d.ts +1 -1
  58. package/map/lists.d.ts +4 -1
  59. package/map/sonet_group.d.ts +9 -0
  60. package/map/task.d.ts +1 -1
  61. package/map/user.d.ts +1 -1
  62. package/package.json +1 -1
  63. package/request/bizproc/workflow/template.d.ts +1 -1
  64. package/request/bizproc/workflow.d.ts +1 -1
  65. package/request/calendar/event.d.ts +18 -0
  66. package/request/calendar.d.ts +8 -0
  67. package/request/disk/attachedObject.d.ts +13 -0
  68. package/request/disk/file.d.ts +1 -1
  69. package/request/disk/folder.d.ts +1 -1
  70. package/request/disk/storage.d.ts +1 -1
  71. package/request/disk.d.ts +3 -1
  72. package/request/lists/element.d.ts +1 -1
  73. package/request/lists.d.ts +5 -1
  74. package/request/log/blogpost.d.ts +3 -1
  75. package/request/sonet_group.d.ts +17 -0
  76. package/request/tasks/task.d.ts +1 -1
  77. package/request/user.d.ts +1 -1
  78. package/request-navvy/calendar/event.d.ts +14 -0
  79. package/request-navvy/calendar.d.ts +8 -0
  80. package/request-navvy/disk/attachedObject.d.ts +13 -0
  81. package/request-navvy/disk/folder.d.ts +3 -3
  82. package/request-navvy/disk/operation.d.ts +3 -3
  83. package/request-navvy/disk.d.ts +6 -4
  84. package/request-navvy/lists.d.ts +9 -1
  85. package/request-navvy/log/blogpost.d.ts +2 -0
  86. package/request-navvy/sonet_group.d.ts +14 -0
  87. package/rest.d.ts +10 -2
  88. package/services/http/HttpBX.d.ts +1 -1
  89. package/typification/base/modyfy.d.ts +9 -0
  90. package/typification/rest/base/ApiPaginationBX.d.ts +3 -0
  91. package/typification/rest/calendar/base/type.d.ts +1 -0
  92. package/typification/rest/calendar/get/answer.d.ts +126 -0
  93. package/typification/rest/calendar/get/param.d.ts +8 -0
  94. package/typification/rest/disk/AttachedObject.d.ts +23 -0
  95. package/typification/rest/lists/get.d.ts +94 -0
  96. package/typification/rest/log/blogpost/essence.d.ts +51 -0
  97. package/typification/rest/log/blogpost/get.d.ts +71 -0
  98. package/typification/rest/sonet_group/base.d.ts +8 -0
  99. package/typification/rest/sonet_group/get.d.ts +29 -0
package/map/base.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BaseServices } from '../services/base';
2
2
  import * as i0 from "@angular/core";
3
- export default class BaseMapServices extends BaseServices {
3
+ export declare class BaseMapServices extends BaseServices {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseMapServices, never>;
5
5
  static ɵprov: i0.ɵɵInjectableDeclaration<BaseMapServices>;
6
6
  }
@@ -0,0 +1,9 @@
1
+ import { BaseMapServices } from '../base';
2
+ import { iBXRestCalendarEventGetAnswer, iBXRestCalendarEventGetAnswerHttp } from '../../typification/rest/calendar/get/answer';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BXRestMapCalendarEvent extends BaseMapServices {
5
+ get(item: iBXRestCalendarEventGetAnswerHttp[] | undefined): iBXRestCalendarEventGetAnswer[] | undefined;
6
+ private CalendarEventGetAnswerHttpToCalendarEventGetAnswer;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestMapCalendarEvent, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestMapCalendarEvent>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import BXRestMapDiskBase from './base';
2
+ import { iBXRestDiskAttachedObject, iBXRestDiskAttachedObjectHttp } from '../../typification/rest/disk/AttachedObject';
3
+ import * as i0 from "@angular/core";
4
+ export default class BXRestMapDiskAttachedObject extends BXRestMapDiskBase {
5
+ get(v: iBXRestDiskAttachedObjectHttp | undefined): iBXRestDiskAttachedObject | undefined;
6
+ private iBXRestDiskAttachedObjectHttpToiBXRestDiskAttachedObject;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestMapDiskAttachedObject, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestMapDiskAttachedObject>;
9
+ }
@@ -1,4 +1,4 @@
1
- import BaseMapServices from '../base';
1
+ import { BaseMapServices } from '../base';
2
2
  import { iBXRestFile, iBXRestFileHttp } from '../../typification/rest/disk/file';
3
3
  import { iBXRestFolder, iBXRestFolderHttp } from '../../typification/rest/disk/folder';
4
4
  import { iBXRestFileAndFolderMap } from '../../typification/rest/disk/map';
@@ -1,4 +1,4 @@
1
- import BaseMapServices from '../base';
1
+ import { BaseMapServices } from '../base';
2
2
  import { iBXRestHttpListsElement, iBXRestListsElement } from '../../typification/rest/lists/element/get';
3
3
  import * as i0 from "@angular/core";
4
4
  export default class BXRestMapListsElement extends BaseMapServices {
package/map/lists.d.ts CHANGED
@@ -1,9 +1,12 @@
1
- import BaseMapServices from './base';
1
+ import { BaseMapServices } from './base';
2
2
  import BXRestListsElementMap from './lists/element';
3
+ import { iBXRestListItem, iBXRestListItemHttp } from '../typification/rest/lists/get';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class BXRestMapLists extends BaseMapServices {
5
6
  element: BXRestListsElementMap;
6
7
  constructor(element: BXRestListsElementMap);
8
+ get(value: iBXRestListItemHttp[] | undefined): iBXRestListItem[] | undefined;
9
+ private iBXRestListItemHttpToiBXRestListItem;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestMapLists, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestMapLists>;
9
12
  }
@@ -0,0 +1,9 @@
1
+ import { BaseMapServices } from './base';
2
+ import { iBXRestParamSonet, iBXRestParamSonetHttp } from '../typification/rest/sonet_group/get';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BXRestMapSonetGroup extends BaseMapServices {
5
+ get(items: iBXRestParamSonetHttp[] | undefined): iBXRestParamSonet[] | undefined;
6
+ private iBXRestParamSonetHttpToiBXRestParamSonet;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestMapSonetGroup, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestMapSonetGroup>;
9
+ }
package/map/task.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import BaseMapServices from './base';
1
+ import { BaseMapServices } from './base';
2
2
  import { iBXRestHttpTask, iBXRestTask } from '../typification/rest/task/task';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestTaskMap extends BaseMapServices {
package/map/user.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import BaseMapServices from './base';
1
+ import { BaseMapServices } from './base';
2
2
  import { iBXRestUser, iBXRestUserHttp } from '../typification/rest/user/user';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestUserMap extends BaseMapServices {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bx-rest",
3
- "version": "0.1.6",
3
+ "version": "0.1.9",
4
4
  "description": "bitrix rest api",
5
5
  "keywords": [
6
6
  "bitrxi",
@@ -1,5 +1,5 @@
1
1
  import { iBXRestParamBizprocWorkflowTemplateList } from '../../../typification/rest/bizproc/workflow/template/list';
2
- import HttpBXServices from '../../../services/http/HttpBX';
2
+ import { HttpBXServices } from '../../../services/http/HttpBX';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestBizprocWorkflowTemplate {
5
5
  private http;
@@ -1,6 +1,6 @@
1
1
  import { BXRestBizprocWorkflowInstance } from './workflow/instance';
2
2
  import { BXRestBizprocWorkflowTemplate } from './workflow/template';
3
- import HttpBXServices from '../../services/http/HttpBX';
3
+ import { HttpBXServices } from '../../services/http/HttpBX';
4
4
  import { iBXRestParamBizprocWorkflowStart } from '../../typification/rest/bizproc/workflow/start';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class BXRestBizprocWorkflow {
@@ -0,0 +1,18 @@
1
+ import { HttpBXServices } from '../../services/http/HttpBX';
2
+ import { iBXRestCalendarEventGetParam } from '../../typification/rest/calendar/get/param';
3
+ import { iBXRestCalendarEventGetAnswerHttp } from '../../typification/rest/calendar/get/answer';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BXRestCalendarEvent {
6
+ private http;
7
+ url: {
8
+ add: string[];
9
+ delete: string[];
10
+ get: string[];
11
+ getNearest: string[];
12
+ update: string[];
13
+ };
14
+ constructor(http: HttpBXServices);
15
+ get(param: iBXRestCalendarEventGetParam): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestCalendarEventGetAnswerHttp[]> | undefined>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestCalendarEvent, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestCalendarEvent>;
18
+ }
@@ -0,0 +1,8 @@
1
+ import { BXRestCalendarEvent } from './calendar/event';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BXRestCalendar {
4
+ event: BXRestCalendarEvent;
5
+ constructor(event: BXRestCalendarEvent);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestCalendar, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestCalendar>;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { HttpBXServices } from '../../services/http/HttpBX';
2
+ import { iBXRestDiskAttachedObjectHttp } from '../../typification/rest/disk/AttachedObject';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BXRestDiskAttachedObject {
5
+ private http;
6
+ url: {
7
+ get: string[];
8
+ };
9
+ constructor(http: HttpBXServices);
10
+ get(id: number): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestDiskAttachedObjectHttp> | undefined>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestDiskAttachedObject, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestDiskAttachedObject>;
13
+ }
@@ -1,4 +1,4 @@
1
- import HttpBXServices from '../../services/http/HttpBX';
1
+ import { HttpBXServices } from '../../services/http/HttpBX';
2
2
  import { iBXRestFileHttp } from '../../typification/rest/disk/file';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestDiskFile {
@@ -1,4 +1,4 @@
1
- import HttpBXServices from '../../services/http/HttpBX';
1
+ import { HttpBXServices } from '../../services/http/HttpBX';
2
2
  import { iBXRestFolderHttp } from '../../typification/rest/disk/folder';
3
3
  import { iBXRestFileHttp } from '../../typification/rest/disk/file';
4
4
  import * as i0 from "@angular/core";
@@ -1,4 +1,4 @@
1
- import HttpBXServices from '../../services/http/HttpBX';
1
+ import { HttpBXServices } from '../../services/http/HttpBX';
2
2
  import { iBXRestFile, iBXRestFileHttp } from '../../typification/rest/disk/file';
3
3
  import { iBXRestFolderHttp, iBXRestFolderInfo } from '../../typification/rest/disk/folder';
4
4
  import { iBXRestParamUploadFile } from '../../typification/rest/disk/storage/uploadfile';
package/request/disk.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  import { BXRestDiskFile } from './disk/file';
2
2
  import { BXRestDiskFolder } from './disk/folder';
3
+ import { BXRestDiskAttachedObject } from './disk/attachedObject';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class BXRestDisk {
5
6
  file: BXRestDiskFile;
6
7
  folder: BXRestDiskFolder;
7
- constructor(file: BXRestDiskFile, folder: BXRestDiskFolder);
8
+ attachedObject: BXRestDiskAttachedObject;
9
+ constructor(file: BXRestDiskFile, folder: BXRestDiskFolder, attachedObject: BXRestDiskAttachedObject);
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestDisk, never>;
9
11
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestDisk>;
10
12
  }
@@ -1,4 +1,4 @@
1
- import HttpBXServices from '../../services/http/HttpBX';
1
+ import { HttpBXServices } from '../../services/http/HttpBX';
2
2
  import { iBXRestHttpListsElement, iBXRestParamListsElementGet } from '../../typification/rest/lists/element/get';
3
3
  import { iBXRestParamListsElementAdd } from '../../typification/rest/lists/element/add';
4
4
  import * as i0 from "@angular/core";
@@ -1,7 +1,10 @@
1
1
  import { BXRestListsElement } from './lists/element';
2
+ import { HttpBXServices } from '../services/http/HttpBX';
3
+ import { iBXRestListItemHttp, iBXRestParamListGet } from '../typification/rest/lists/get';
2
4
  import * as i0 from "@angular/core";
3
5
  export declare class BXRestLists {
4
6
  element: BXRestListsElement;
7
+ private http;
5
8
  url: {
6
9
  add: string[];
7
10
  delete: string[];
@@ -9,7 +12,8 @@ export declare class BXRestLists {
9
12
  update: string[];
10
13
  getIblockTypeId: string[];
11
14
  };
12
- constructor(element: BXRestListsElement);
15
+ constructor(element: BXRestListsElement, http: HttpBXServices);
16
+ get(pram: iBXRestParamListGet): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestListItemHttp[]> | undefined>;
13
17
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestLists, never>;
14
18
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestLists>;
15
19
  }
@@ -1,5 +1,6 @@
1
- import HttpBXServices from '../../services/http/HttpBX';
1
+ import { HttpBXServices } from '../../services/http/HttpBX';
2
2
  import { iBXRestParamLogBlogPostAdd } from '../../typification/rest/log/blogpost/add';
3
+ import { iBXRestBlogPostHttp, iBXRestParamBlogPostGet } from '../../typification/rest/log/blogpost/get';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class BXRestLogBlogPost {
5
6
  private http;
@@ -12,6 +13,7 @@ export declare class BXRestLogBlogPost {
12
13
  };
13
14
  constructor(http: HttpBXServices);
14
15
  add(param: iBXRestParamLogBlogPostAdd): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<boolean> | undefined>;
16
+ get(param?: iBXRestParamBlogPostGet): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestBlogPostHttp[]> | undefined>;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestLogBlogPost, never>;
16
18
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestLogBlogPost>;
17
19
  }
@@ -0,0 +1,17 @@
1
+ import { HttpBXServices } from '../services/http/HttpBX';
2
+ import { iBXRestParamSonetGroupGet, iBXRestParamSonetHttp } from '../typification/rest/sonet_group/get';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BXRestSonetGroup {
5
+ private http;
6
+ url: {
7
+ create: string[];
8
+ delete: string[];
9
+ get: string[];
10
+ setowner: string[];
11
+ update: string[];
12
+ };
13
+ constructor(http: HttpBXServices);
14
+ get(param?: iBXRestParamSonetGroupGet): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestParamSonetHttp[]> | undefined>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestSonetGroup, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestSonetGroup>;
17
+ }
@@ -1,4 +1,4 @@
1
- import HttpBXServices from '../../services/http/HttpBX';
1
+ import { HttpBXServices } from '../../services/http/HttpBX';
2
2
  import { iBXRestHttpTask } from '../../typification/rest/task/task';
3
3
  import { iBXRestParamTaskAdd } from '../../typification/rest/tasks/task/add';
4
4
  import iBXRestParamTaskGet from '../../typification/rest/tasks/task/get';
package/request/user.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { iBXRestParamUserGet } from '../typification/rest/user/get';
2
- import HttpBXServices from '../services/http/HttpBX';
2
+ import { HttpBXServices } from '../services/http/HttpBX';
3
3
  import UserFilterSearch from '../typification/rest/user/UserFilterSearch';
4
4
  import { iBXRestUser, iBXRestUserHttp, iBXRestUserHttpField } from '../typification/rest/user/user';
5
5
  import { iBXRestAnswer } from '../typification/rest/base/answer';
@@ -0,0 +1,14 @@
1
+ import { iBXRestCalendarEventGetParam } from '../../typification/rest/calendar/get/param';
2
+ import { BXRestCalendarEvent } from '../../request/calendar/event';
3
+ import { Navvy } from '../../services/navvy';
4
+ import { BXRestMapCalendarEvent } from '../../map/calendar/event';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BXRestRestCalendarEvent {
7
+ private BXRestCalendarEvent;
8
+ private Navvy;
9
+ private eventMap;
10
+ constructor(BXRestCalendarEvent: BXRestCalendarEvent, Navvy: Navvy, eventMap: BXRestMapCalendarEvent);
11
+ get(param: iBXRestCalendarEventGetParam): import("rxjs").Observable<import("../../typification/rest/calendar/get/answer").iBXRestCalendarEventGetAnswer[] | undefined>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestRestCalendarEvent, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestRestCalendarEvent>;
14
+ }
@@ -0,0 +1,8 @@
1
+ import { BXRestRestCalendarEvent } from './calendar/event';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BXRestNavvyCalendar {
4
+ event: BXRestRestCalendarEvent;
5
+ constructor(event: BXRestRestCalendarEvent);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyCalendar, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyCalendar>;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { BXRestDiskAttachedObject } from '../../request/disk/attachedObject';
2
+ import { Navvy } from '../../services/navvy';
3
+ import BXRestMapDiskAttachedObject from '../../map/disk/attachedObject';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BXRestNavvyDiskAttachedObject {
6
+ private BXRestDiskAttachedObject;
7
+ private mapAttachedObject;
8
+ private Navvy;
9
+ constructor(BXRestDiskAttachedObject: BXRestDiskAttachedObject, mapAttachedObject: BXRestMapDiskAttachedObject, Navvy: Navvy);
10
+ get(id: number): import("rxjs").Observable<import("../../typification/rest/disk/AttachedObject").iBXRestDiskAttachedObject | undefined>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyDiskAttachedObject, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyDiskAttachedObject>;
13
+ }
@@ -2,12 +2,12 @@ import BXRestMapDiskFolder from '../../map/disk/folder';
2
2
  import { BXRestDiskFolder } from '../../request/disk/folder';
3
3
  import { Navvy } from '../../services/navvy';
4
4
  import * as i0 from "@angular/core";
5
- export declare class BXRestDiskNavvyFolder {
5
+ export declare class BXRestNavvyDiskFolder {
6
6
  private BXRestDiskFolder;
7
7
  private BXRestMapDiskFolder;
8
8
  private Navvy;
9
9
  constructor(BXRestDiskFolder: BXRestDiskFolder, BXRestMapDiskFolder: BXRestMapDiskFolder, Navvy: Navvy);
10
10
  getchildren(id: number): import("rxjs").Observable<import("../../typification/rest/disk/map").iBXRestFileAndFolderMap>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<BXRestDiskNavvyFolder, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<BXRestDiskNavvyFolder>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyDiskFolder, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyDiskFolder>;
13
13
  }
@@ -1,12 +1,12 @@
1
- import { BXRestDiskNavvyFolder } from './folder';
1
+ import { BXRestNavvyDiskFolder } from './folder';
2
2
  import { BXRestNavvyDiskFile } from './file';
3
3
  import { BXRestNavvyDiskStorage } from './storage';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class BXRestNavvyDiskOperation {
6
- folder: BXRestDiskNavvyFolder;
6
+ folder: BXRestNavvyDiskFolder;
7
7
  disk: BXRestNavvyDiskFile;
8
8
  private storage;
9
- constructor(folder: BXRestDiskNavvyFolder, disk: BXRestNavvyDiskFile, storage: BXRestNavvyDiskStorage);
9
+ constructor(folder: BXRestNavvyDiskFolder, disk: BXRestNavvyDiskFile, storage: BXRestNavvyDiskStorage);
10
10
  loadFileInAppFolder(file: {
11
11
  name: string;
12
12
  val: string;
@@ -1,12 +1,14 @@
1
1
  import { BXRestNavvyDiskFile } from './disk/file';
2
- import { BXRestDiskNavvyFolder } from './disk/folder';
2
+ import { BXRestNavvyDiskFolder } from './disk/folder';
3
3
  import { BXRestNavvyDiskOperation } from './disk/operation';
4
+ import { BXRestNavvyDiskAttachedObject } from './disk/attachedObject';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class BXRestNavvyDisk {
6
- file: BXRestNavvyDiskFile;
7
- folder: BXRestDiskNavvyFolder;
8
7
  operation: BXRestNavvyDiskOperation;
9
- constructor(file: BXRestNavvyDiskFile, folder: BXRestDiskNavvyFolder, operation: BXRestNavvyDiskOperation);
8
+ file: BXRestNavvyDiskFile;
9
+ folder: BXRestNavvyDiskFolder;
10
+ attachedObject: BXRestNavvyDiskAttachedObject;
11
+ constructor(operation: BXRestNavvyDiskOperation, file: BXRestNavvyDiskFile, folder: BXRestNavvyDiskFolder, attachedObject: BXRestNavvyDiskAttachedObject);
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyDisk, never>;
11
13
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyDisk>;
12
14
  }
@@ -1,8 +1,16 @@
1
1
  import { BXRestNavvyListsElement } from './lists/element';
2
+ import { BXRestLists } from '../request/lists';
3
+ import { iBXRestParamListGet } from '../typification/rest/lists/get';
4
+ import { Navvy } from '../services/navvy';
5
+ import { BXRestMapLists } from '../map/lists';
2
6
  import * as i0 from "@angular/core";
3
7
  export declare class BXRestNavvyLists {
4
8
  element: BXRestNavvyListsElement;
5
- constructor(element: BXRestNavvyListsElement);
9
+ private BXRestLists;
10
+ private Navvy;
11
+ private mapList;
12
+ constructor(element: BXRestNavvyListsElement, BXRestLists: BXRestLists, Navvy: Navvy, mapList: BXRestMapLists);
13
+ get(param: iBXRestParamListGet): import("rxjs").Observable<import("../typification/rest/lists/get").iBXRestListItem[] | undefined>;
6
14
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyLists, never>;
7
15
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyLists>;
8
16
  }
@@ -1,6 +1,7 @@
1
1
  import { iBXRestParamLogBlogPostAdd } from '../../typification/rest/log/blogpost/add';
2
2
  import { BXRestLogBlogPost } from '../../request/log/blogpost';
3
3
  import { Navvy } from '../../services/navvy';
4
+ import { iBXRestParamBlogPostGet } from '../../typification/rest/log/blogpost/get';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class BXRestNavvyLogBlogPost {
6
7
  private BXRestLogBlogPost;
@@ -14,6 +15,7 @@ export declare class BXRestNavvyLogBlogPost {
14
15
  };
15
16
  constructor(BXRestLogBlogPost: BXRestLogBlogPost, Navvy: Navvy);
16
17
  add(param: iBXRestParamLogBlogPostAdd): import("rxjs").Observable<boolean | undefined>;
18
+ get(param?: iBXRestParamBlogPostGet): import("rxjs").Observable<import("../../typification/rest/log/blogpost/get").iBXRestBlogPostHttp[] | undefined>;
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyLogBlogPost, never>;
18
20
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyLogBlogPost>;
19
21
  }
@@ -0,0 +1,14 @@
1
+ import { iBXRestParamSonetGroupGet } from '../typification/rest/sonet_group/get';
2
+ import { BXRestMapSonetGroup } from '../map/sonet_group';
3
+ import { Navvy } from '../services/navvy';
4
+ import { BXRestSonetGroup } from '../request/sonet_group';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BXRestNavvySonetGroup {
7
+ private BXRestSonetGroup;
8
+ private mapSonetGroup;
9
+ private Navvy;
10
+ constructor(BXRestSonetGroup: BXRestSonetGroup, mapSonetGroup: BXRestMapSonetGroup, Navvy: Navvy);
11
+ get(param?: iBXRestParamSonetGroupGet): import("rxjs").Observable<import("../typification/rest/sonet_group/get").iBXRestParamSonet[] | undefined>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvySonetGroup, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvySonetGroup>;
14
+ }
package/rest.d.ts CHANGED
@@ -5,12 +5,16 @@ import { BXRestTasks } from './request/tasks';
5
5
  import { BXRestDisk } from './request/disk';
6
6
  import { BXRestBizproc } from './request/bizproc';
7
7
  import { BXRestLog } from './request/log';
8
+ import { BXRestCalendar } from './request/calendar';
9
+ import { BXRestSonetGroup } from './request/sonet_group';
8
10
  import { BXRestNavvyLists } from './request-navvy/lists';
9
11
  import { BXRestNavvyTasks } from './request-navvy/tasks';
10
12
  import { BXRestNavvyUser } from './request-navvy/user';
11
13
  import { BXRestNavvyDisk } from './request-navvy/disk';
12
14
  import { BXRestNavvyBizproc } from './request-navvy/bizproc';
13
15
  import { BXRestNavvyLog } from './request-navvy/log';
16
+ import { BXRestNavvyCalendar } from './request-navvy/calendar';
17
+ import { BXRestNavvySonetGroup } from './request-navvy/sonet_group';
14
18
  import * as i0 from "@angular/core";
15
19
  export declare class BXRest {
16
20
  user: BXRestUser;
@@ -19,7 +23,9 @@ export declare class BXRest {
19
23
  disk: BXRestDisk;
20
24
  bizproc: BXRestBizproc;
21
25
  log: BXRestLog;
22
- constructor(user: BXRestUser, lists: BXRestLists, tasks: BXRestTasks, disk: BXRestDisk, bizproc: BXRestBizproc, log: BXRestLog);
26
+ calendar: BXRestCalendar;
27
+ sonet_group: BXRestSonetGroup;
28
+ constructor(user: BXRestUser, lists: BXRestLists, tasks: BXRestTasks, disk: BXRestDisk, bizproc: BXRestBizproc, log: BXRestLog, calendar: BXRestCalendar, sonet_group: BXRestSonetGroup);
23
29
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRest, never>;
24
30
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRest>;
25
31
  }
@@ -30,7 +36,9 @@ export declare class BXRestNavvy {
30
36
  disk: BXRestNavvyDisk;
31
37
  bizproc: BXRestNavvyBizproc;
32
38
  log: BXRestNavvyLog;
33
- constructor(user: BXRestNavvyUser, lists: BXRestNavvyLists, tasks: BXRestNavvyTasks, disk: BXRestNavvyDisk, bizproc: BXRestNavvyBizproc, log: BXRestNavvyLog);
39
+ calendar: BXRestNavvyCalendar;
40
+ sonet_group: BXRestNavvySonetGroup;
41
+ constructor(user: BXRestNavvyUser, lists: BXRestNavvyLists, tasks: BXRestNavvyTasks, disk: BXRestNavvyDisk, bizproc: BXRestNavvyBizproc, log: BXRestNavvyLog, calendar: BXRestNavvyCalendar, sonet_group: BXRestNavvySonetGroup);
34
42
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvy, never>;
35
43
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvy>;
36
44
  }
@@ -4,7 +4,7 @@ import { HttpServices } from './http';
4
4
  import { iBatchRequestAnswer, iBatchRequestParam, iBatchRequestParamArr, iBatchRequestParamHttp } from '../../typification/rest/batch/batchRequestParam';
5
5
  import { iBXRestAnswer } from '../../typification/rest/base/answer';
6
6
  import * as i0 from "@angular/core";
7
- export default class HttpBXServices extends HttpServices {
7
+ export declare class HttpBXServices extends HttpServices {
8
8
  timeNowOnServer(): Observable<Date | undefined>;
9
9
  /**
10
10
  * Это пиздец а не метод
@@ -0,0 +1,9 @@
1
+ export declare type Modify<T, R> = Omit<T, keyof R> & R;
2
+ export declare type ModifyDeep<A, B extends DeepPartialAny<A>> = {
3
+ [K in keyof A | keyof B]: K extends keyof A ? K extends keyof B ? A[K] extends AnyObject ? B[K] extends AnyObject ? ModifyDeep<A[K], B[K]> : B[K] : B[K] : A[K] : B[K];
4
+ };
5
+ declare type AnyObject = Record<string, any>;
6
+ declare type DeepPartialAny<T> = {
7
+ [P in keyof T]?: T[P] extends AnyObject ? DeepPartialAny<T[P]> : any;
8
+ };
9
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface iBXRestPagination {
2
+ start?: number;
3
+ }
@@ -0,0 +1 @@
1
+ export declare type iBXRestCalendarType = 'user' | 'group';
@@ -0,0 +1,126 @@
1
+ import { CountryCode, TimezoneName } from 'countries-and-timezones';
2
+ import { iBXRestYesNo } from '../../base/YesNo';
3
+ import { iBXRestCalendarType } from '../base/type';
4
+ export interface iBXRestCalendarEventGetAnswer extends iBXRestCalendarEventGetAnswerBase {
5
+ ATTENDEE_LIST: {
6
+ id: number;
7
+ entryId: number;
8
+ status: 'Y' | 'N' | 'H';
9
+ }[];
10
+ CREATED_BY: string;
11
+ DATE_CREATE: Date;
12
+ DATE_FROM: Date;
13
+ DATE_FROM_TS_UTC: number;
14
+ DATE_TO: Date;
15
+ DATE_TO_TS_UTC: number;
16
+ DELETED: boolean;
17
+ DT_LENGTH: number;
18
+ DT_SKIP_TIME: boolean;
19
+ MEETING_STATUS: boolean;
20
+ EXDATE: Date[];
21
+ ID: number;
22
+ MEETING_HOST: number;
23
+ ORIGINAL_DATE_FROM: Date | null;
24
+ OWNER_ID: number;
25
+ PARENT_ID: number;
26
+ RECURRENCE_ID: number;
27
+ SECTION_ID: number;
28
+ SECT_ID: number;
29
+ TIMESTAMP_X: Date;
30
+ TZ_OFFSET_FROM: number;
31
+ TZ_OFFSET_TO: number;
32
+ VERSION: number;
33
+ RRULE: null | iBXRestCalendarEventGetAnswerRule;
34
+ }
35
+ export interface iBXRestCalendarEventGetAnswerHttp extends iBXRestCalendarEventGetAnswerBase {
36
+ ATTENDEE_LIST?: {
37
+ id: number;
38
+ entryId: string;
39
+ status: 'Y' | 'N' | 'H';
40
+ }[];
41
+ CREATED_BY: string;
42
+ DATE_CREATE: string;
43
+ DATE_FROM: string;
44
+ DATE_FROM_TS_UTC: string;
45
+ DATE_TO: string;
46
+ DATE_TO_TS_UTC: string;
47
+ DELETED: iBXRestYesNo;
48
+ DT_LENGTH: string;
49
+ DT_SKIP_TIME: iBXRestYesNo;
50
+ MEETING_STATUS: iBXRestYesNo;
51
+ EXDATE: string;
52
+ ID: string;
53
+ MEETING_HOST: string;
54
+ ORIGINAL_DATE_FROM: string | null;
55
+ OWNER_ID: string;
56
+ PARENT_ID: string;
57
+ RECURRENCE_ID: string;
58
+ RRULE: "" | iBXRestCalendarEventGetAnswerRuleHttp;
59
+ SECTION_ID: string;
60
+ SECT_ID: string;
61
+ TIMESTAMP_X: string;
62
+ TZ_OFFSET_FROM: string;
63
+ TZ_OFFSET_TO: string;
64
+ VERSION: string;
65
+ }
66
+ export interface iBXRestCalendarEventGetAnswerBase {
67
+ ACCESSIBILITY: 'busy';
68
+ ATTENDEES_CODES: string[];
69
+ CAL_DAV_LABEL: null;
70
+ CAL_TYPE: iBXRestCalendarType;
71
+ COLOR: string;
72
+ DAV_EXCH_LABEL: null;
73
+ DAV_XML_ID: string;
74
+ EVENT_TYPE: null;
75
+ G_EVENT_ID: null;
76
+ IMPORTANCE: 'normal';
77
+ IS_MEETING: boolean;
78
+ LOCATION: string;
79
+ RINDEX?: number;
80
+ MEETING: {
81
+ ALLOW_INVITE: boolean;
82
+ HIDE_GUESTS: boolean;
83
+ HOST_NAME: string;
84
+ LANGUAGE_ID: Lowercase<CountryCode>;
85
+ MAIL_FROM: string;
86
+ MEETING_CREATOR: number;
87
+ NOTIFY: boolean;
88
+ REINVITE: boolean;
89
+ };
90
+ NAME: string;
91
+ PRIVATE_EVENT: "";
92
+ RELATIONS: {
93
+ COMMENT_XML_ID: string;
94
+ };
95
+ REMIND: {
96
+ type: 'min';
97
+ count: number;
98
+ }[];
99
+ SYNC_STATUS: null;
100
+ TZ_FROM: TimezoneName;
101
+ TZ_TO: TimezoneName;
102
+ UF_CRM_CAL_EVENT: boolean;
103
+ UF_WEBDAV_CAL_EVENT: boolean;
104
+ attendeesEntityList: {
105
+ entityId: iBXRestCalendarType;
106
+ id: number;
107
+ }[];
108
+ '~USER_OFFSET_FROM': number;
109
+ '~USER_OFFSET_TO': number;
110
+ }
111
+ interface iBXRestCalendarEventGetAnswerRuleHttp extends iBXRestCalendarEventGetAnswerRuleBase {
112
+ UNTIL: string;
113
+ '~UNTIL': string;
114
+ }
115
+ interface iBXRestCalendarEventGetAnswerRule extends iBXRestCalendarEventGetAnswerRuleBase {
116
+ UNTIL: Date;
117
+ '~UNTIL': Date;
118
+ }
119
+ declare type iBXRestCalendarEventGetAnswerRuleBase = {
120
+ FR?: 'FR';
121
+ MO?: 'MO';
122
+ WE?: 'WE';
123
+ FREQ: 'WEEKLY';
124
+ INTERVAL: number;
125
+ };
126
+ export {};
@@ -0,0 +1,8 @@
1
+ import { iBXRestCalendarType } from '../base/type';
2
+ export interface iBXRestCalendarEventGetParam {
3
+ type: iBXRestCalendarType;
4
+ ownerId?: number;
5
+ from?: Date;
6
+ to?: Date;
7
+ section?: any;
8
+ }