bx-rest 0.1.6 → 0.1.7

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 (57) hide show
  1. package/esm2020/map/base.mjs +2 -2
  2. package/esm2020/map/calendar/event.mjs +54 -0
  3. package/esm2020/map/disk/base.mjs +2 -2
  4. package/esm2020/map/lists/element.mjs +2 -2
  5. package/esm2020/map/lists.mjs +2 -2
  6. package/esm2020/map/task.mjs +2 -2
  7. package/esm2020/map/user.mjs +2 -2
  8. package/esm2020/request/bizproc/workflow/template.mjs +4 -4
  9. package/esm2020/request/bizproc/workflow.mjs +4 -4
  10. package/esm2020/request/calendar/event.mjs +28 -0
  11. package/esm2020/request/calendar.mjs +52 -0
  12. package/esm2020/request/disk/file.mjs +4 -4
  13. package/esm2020/request/disk/folder.mjs +4 -4
  14. package/esm2020/request/disk/storage.mjs +4 -4
  15. package/esm2020/request/lists/element.mjs +4 -4
  16. package/esm2020/request/log/blogpost.mjs +4 -4
  17. package/esm2020/request/tasks/task.mjs +4 -4
  18. package/esm2020/request/user.mjs +5 -5
  19. package/esm2020/request-navvy/calendar/event.mjs +25 -0
  20. package/esm2020/request-navvy/calendar.mjs +52 -0
  21. package/esm2020/request-navvy/log/blogcomment.mjs +1 -1
  22. package/esm2020/rest.mjs +20 -16
  23. package/esm2020/services/http/HttpBX.mjs +2 -2
  24. package/esm2020/services/navvy.mjs +1 -1
  25. package/esm2020/typification/rest/calendar/base/type.mjs +2 -0
  26. package/esm2020/typification/rest/calendar/get/answer.mjs +2 -0
  27. package/esm2020/typification/rest/calendar/get/param.mjs +2 -0
  28. package/fesm2015/bx-rest.mjs +256 -92
  29. package/fesm2015/bx-rest.mjs.map +1 -1
  30. package/fesm2020/bx-rest.mjs +286 -92
  31. package/fesm2020/bx-rest.mjs.map +1 -1
  32. package/map/base.d.ts +1 -1
  33. package/map/calendar/event.d.ts +9 -0
  34. package/map/disk/base.d.ts +1 -1
  35. package/map/lists/element.d.ts +1 -1
  36. package/map/lists.d.ts +1 -1
  37. package/map/task.d.ts +1 -1
  38. package/map/user.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/request/bizproc/workflow/template.d.ts +1 -1
  41. package/request/bizproc/workflow.d.ts +1 -1
  42. package/request/calendar/event.d.ts +18 -0
  43. package/request/calendar.d.ts +8 -0
  44. package/request/disk/file.d.ts +1 -1
  45. package/request/disk/folder.d.ts +1 -1
  46. package/request/disk/storage.d.ts +1 -1
  47. package/request/lists/element.d.ts +1 -1
  48. package/request/log/blogpost.d.ts +1 -1
  49. package/request/tasks/task.d.ts +1 -1
  50. package/request/user.d.ts +1 -1
  51. package/request-navvy/calendar/event.d.ts +14 -0
  52. package/request-navvy/calendar.d.ts +8 -0
  53. package/rest.d.ts +6 -2
  54. package/services/http/HttpBX.d.ts +1 -1
  55. package/typification/rest/calendar/base/type.d.ts +1 -0
  56. package/typification/rest/calendar/get/answer.d.ts +126 -0
  57. package/typification/rest/calendar/get/param.d.ts +8 -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
+ }
@@ -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,4 +1,4 @@
1
- import BaseMapServices from './base';
1
+ import { BaseMapServices } from './base';
2
2
  import BXRestListsElementMap from './lists/element';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestMapLists extends BaseMapServices {
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.7",
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
+ }
@@ -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';
@@ -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,4 +1,4 @@
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
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestLogBlogPost {
@@ -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
+ }
package/rest.d.ts CHANGED
@@ -5,12 +5,14 @@ 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';
8
9
  import { BXRestNavvyLists } from './request-navvy/lists';
9
10
  import { BXRestNavvyTasks } from './request-navvy/tasks';
10
11
  import { BXRestNavvyUser } from './request-navvy/user';
11
12
  import { BXRestNavvyDisk } from './request-navvy/disk';
12
13
  import { BXRestNavvyBizproc } from './request-navvy/bizproc';
13
14
  import { BXRestNavvyLog } from './request-navvy/log';
15
+ import { BXRestNavvyCalendar } from './request-navvy/calendar';
14
16
  import * as i0 from "@angular/core";
15
17
  export declare class BXRest {
16
18
  user: BXRestUser;
@@ -19,7 +21,8 @@ export declare class BXRest {
19
21
  disk: BXRestDisk;
20
22
  bizproc: BXRestBizproc;
21
23
  log: BXRestLog;
22
- constructor(user: BXRestUser, lists: BXRestLists, tasks: BXRestTasks, disk: BXRestDisk, bizproc: BXRestBizproc, log: BXRestLog);
24
+ calendar: BXRestCalendar;
25
+ constructor(user: BXRestUser, lists: BXRestLists, tasks: BXRestTasks, disk: BXRestDisk, bizproc: BXRestBizproc, log: BXRestLog, calendar: BXRestCalendar);
23
26
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRest, never>;
24
27
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRest>;
25
28
  }
@@ -30,7 +33,8 @@ export declare class BXRestNavvy {
30
33
  disk: BXRestNavvyDisk;
31
34
  bizproc: BXRestNavvyBizproc;
32
35
  log: BXRestNavvyLog;
33
- constructor(user: BXRestNavvyUser, lists: BXRestNavvyLists, tasks: BXRestNavvyTasks, disk: BXRestNavvyDisk, bizproc: BXRestNavvyBizproc, log: BXRestNavvyLog);
36
+ calendar: BXRestNavvyCalendar;
37
+ constructor(user: BXRestNavvyUser, lists: BXRestNavvyLists, tasks: BXRestNavvyTasks, disk: BXRestNavvyDisk, bizproc: BXRestNavvyBizproc, log: BXRestNavvyLog, calendar: BXRestNavvyCalendar);
34
38
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvy, never>;
35
39
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvy>;
36
40
  }
@@ -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 @@
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
+ }