bx-rest 0.1.1 → 0.1.5

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 (88) hide show
  1. package/consts/part-name-metods.d.ts +9 -0
  2. package/esm2020/consts/part-name-metods.mjs +10 -1
  3. package/esm2020/map/lists.mjs +2 -2
  4. package/esm2020/map/task.mjs +10 -1
  5. package/esm2020/public-api.mjs +2 -2
  6. package/esm2020/request/bizproc/activity.mjs +23 -0
  7. package/esm2020/request/bizproc/event.mjs +19 -0
  8. package/esm2020/request/bizproc/robot.mjs +22 -0
  9. package/esm2020/request/bizproc/task.mjs +20 -0
  10. package/esm2020/request/bizproc/workflow/instance.mjs +19 -0
  11. package/esm2020/request/bizproc/workflow/template.mjs +27 -0
  12. package/esm2020/request/bizproc/workflow.mjs +31 -0
  13. package/esm2020/request/bizproc.mjs +25 -0
  14. package/esm2020/request/lists/element.mjs +4 -3
  15. package/esm2020/request/lists.mjs +2 -2
  16. package/esm2020/request/tasks/task.mjs +34 -1
  17. package/esm2020/request/user.mjs +9 -6
  18. package/esm2020/request-navvy/bizproc/workflow.mjs +22 -0
  19. package/esm2020/request-navvy/bizproc.mjs +60 -0
  20. package/esm2020/request-navvy/disk/storage.mjs +7 -10
  21. package/esm2020/request-navvy/lists/element.mjs +6 -3
  22. package/esm2020/request-navvy/lists.mjs +2 -10
  23. package/esm2020/request-navvy/tasks/task.mjs +67 -19
  24. package/esm2020/request-navvy/user.mjs +7 -8
  25. package/esm2020/rest.mjs +21 -17
  26. package/esm2020/services/base.mjs +3 -3
  27. package/esm2020/services/http/HttpBX.mjs +34 -36
  28. package/esm2020/services/http/http.mjs +36 -38
  29. package/esm2020/services/http/sessionKey.mjs +128 -113
  30. package/esm2020/services/vanilla/sessionStorage.mjs +7 -7
  31. package/esm2020/settings.mjs +2 -2
  32. package/esm2020/typification/auth/save.mjs +1 -1
  33. package/esm2020/typification/rest/base/OrderOptions.mjs +2 -0
  34. package/esm2020/typification/rest/base/sort.mjs +2 -0
  35. package/esm2020/typification/rest/bizproc/base/filedEnum.mjs +2 -0
  36. package/esm2020/typification/rest/bizproc/workflow/start.mjs +2 -0
  37. package/esm2020/typification/rest/bizproc/workflow/template/list.mjs +2 -0
  38. package/esm2020/typification/rest/lists/element/add.mjs +2 -0
  39. package/esm2020/typification/rest/task/base/fieldsName.mjs +2 -0
  40. package/esm2020/typification/rest/tasks/task/add.mjs +2 -0
  41. package/esm2020/typification/rest/tasks/task/get.mjs +2 -0
  42. package/esm2020/typification/rest/tasks/task/list.mjs +2 -0
  43. package/esm2020/typification/rest/user/get.mjs +1 -1
  44. package/fesm2015/bx-rest.mjs +794 -490
  45. package/fesm2015/bx-rest.mjs.map +1 -1
  46. package/fesm2020/bx-rest.mjs +797 -488
  47. package/fesm2020/bx-rest.mjs.map +1 -1
  48. package/map/lists.d.ts +1 -1
  49. package/map/task.d.ts +4 -1
  50. package/package.json +1 -1
  51. package/public-api.d.ts +1 -1
  52. package/request/bizproc/activity.d.ts +12 -0
  53. package/request/bizproc/event.d.ts +8 -0
  54. package/request/bizproc/robot.d.ts +11 -0
  55. package/request/bizproc/task.d.ts +9 -0
  56. package/request/bizproc/workflow/instance.d.ts +8 -0
  57. package/request/bizproc/workflow/template.d.ts +16 -0
  58. package/request/bizproc/workflow.d.ts +20 -0
  59. package/request/bizproc.d.ts +16 -0
  60. package/request/lists/element.d.ts +2 -1
  61. package/request/lists.d.ts +1 -1
  62. package/request/tasks/task.d.ts +9 -1
  63. package/request-navvy/bizproc/workflow.d.ts +12 -0
  64. package/request-navvy/bizproc.d.ts +24 -0
  65. package/request-navvy/disk/storage.d.ts +1 -3
  66. package/request-navvy/lists/element.d.ts +3 -1
  67. package/request-navvy/lists.d.ts +1 -8
  68. package/request-navvy/tasks/task.d.ts +13 -3
  69. package/request-navvy/user.d.ts +1 -3
  70. package/rest.d.ts +13 -9
  71. package/services/http/sessionKey.d.ts +3 -23
  72. package/services/vanilla/sessionStorage.d.ts +5 -5
  73. package/settings.d.ts +1 -1
  74. package/typification/auth/save.d.ts +1 -1
  75. package/typification/rest/base/OrderOptions.d.ts +1 -0
  76. package/typification/rest/base/sort.d.ts +1 -0
  77. package/typification/rest/bizproc/base/filedEnum.d.ts +1 -0
  78. package/typification/rest/bizproc/workflow/start.d.ts +5 -0
  79. package/typification/rest/bizproc/workflow/template/list.d.ts +8 -0
  80. package/typification/rest/lists/element/add.d.ts +9 -0
  81. package/typification/rest/task/base/fieldsName.d.ts +1 -0
  82. package/typification/rest/{task/fieldsForSend.d.ts → tasks/task/add.d.ts} +1 -1
  83. package/typification/rest/tasks/task/get.d.ts +5 -0
  84. package/typification/rest/tasks/task/list.d.ts +65 -0
  85. package/typification/rest/user/get.d.ts +6 -1
  86. package/esm2020/store/auth.mjs +0 -26
  87. package/esm2020/typification/rest/task/fieldsForSend.mjs +0 -2
  88. package/store/auth.d.ts +0 -20
package/map/lists.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import BaseMapServices from './base';
2
2
  import BXRestListsElementMap from './lists/element';
3
3
  import * as i0 from "@angular/core";
4
- export default class BXRestMapLists extends BaseMapServices {
4
+ export declare class BXRestMapLists extends BaseMapServices {
5
5
  element: BXRestListsElementMap;
6
6
  constructor(element: BXRestListsElementMap);
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestMapLists, never>;
package/map/task.d.ts CHANGED
@@ -2,7 +2,10 @@ 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 {
5
- TaskBXHttpToTaskBX(item: iBXRestHttpTask): iBXRestTask;
5
+ add(item: iBXRestHttpTask): iBXRestTask;
6
+ get(item: iBXRestHttpTask): iBXRestTask;
7
+ list(item: iBXRestHttpTask[]): iBXRestTask[];
8
+ private TaskBXHttpToTaskBX;
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestTaskMap, never>;
7
10
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestTaskMap>;
8
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bx-rest",
3
- "version": "0.1.1",
3
+ "version": "0.1.5",
4
4
  "description": "bitrix rest api",
5
5
  "keywords": [
6
6
  "bitrxi",
package/public-api.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { REST_SETTINGS } from './settings';
1
+ export { BX_REST_SETTINGS } from './settings';
2
2
  export { BXRestMapResult } from './functions/mapResult';
3
3
  export { BXRest, BXRestNavvy, BXRestMap } from './rest';
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BXRestBizprocActivity {
3
+ url: {
4
+ add: string[];
5
+ delete: string[];
6
+ list: string[];
7
+ update: string[];
8
+ log: string[];
9
+ };
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizprocActivity, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizprocActivity>;
12
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BXRestBizprocEvent {
3
+ url: {
4
+ send: string[];
5
+ };
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizprocEvent, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizprocEvent>;
8
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BXRestBizprocRobot {
3
+ url: {
4
+ add: string[];
5
+ delete: string[];
6
+ list: string[];
7
+ update: string[];
8
+ };
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizprocRobot, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizprocRobot>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BXRestBizprocTask {
3
+ url: {
4
+ complete: string[];
5
+ list: string[];
6
+ };
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizprocTask, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizprocTask>;
9
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BXRestBizprocWorkflowInstance {
3
+ url: {
4
+ list: string[];
5
+ };
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizprocWorkflowInstance, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizprocWorkflowInstance>;
8
+ }
@@ -0,0 +1,16 @@
1
+ import { iBXRestParamBizprocWorkflowTemplateList } from '../../../typification/rest/bizproc/workflow/template/list';
2
+ import HttpBXServices from '../../../services/http/HttpBX';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BXRestBizprocWorkflowTemplate {
5
+ private http;
6
+ url: {
7
+ add: string[];
8
+ delete: string[];
9
+ update: string[];
10
+ list: string[];
11
+ };
12
+ constructor(http: HttpBXServices);
13
+ list(param?: iBXRestParamBizprocWorkflowTemplateList): import("rxjs").Observable<import("../../../typification/rest/base/answer").iBXRestAnswer<unknown> | undefined>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizprocWorkflowTemplate, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizprocWorkflowTemplate>;
16
+ }
@@ -0,0 +1,20 @@
1
+ import { BXRestBizprocWorkflowInstance } from './workflow/instance';
2
+ import { BXRestBizprocWorkflowTemplate } from './workflow/template';
3
+ import HttpBXServices from '../../services/http/HttpBX';
4
+ import { iBXRestParamBizprocWorkflowStart } from '../../typification/rest/bizproc/workflow/start';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BXRestBizprocWorkflow {
7
+ instances: BXRestBizprocWorkflowInstance;
8
+ template: BXRestBizprocWorkflowTemplate;
9
+ private http;
10
+ url: {
11
+ instances: string[];
12
+ terminate: string[];
13
+ start: string[];
14
+ kill: string[];
15
+ };
16
+ constructor(instances: BXRestBizprocWorkflowInstance, template: BXRestBizprocWorkflowTemplate, http: HttpBXServices);
17
+ start(param: iBXRestParamBizprocWorkflowStart): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<string> | undefined>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizprocWorkflow, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizprocWorkflow>;
20
+ }
@@ -0,0 +1,16 @@
1
+ import { BXRestBizprocWorkflow } from './bizproc/workflow';
2
+ import { BXRestBizprocActivity } from './bizproc/activity';
3
+ import { BXRestBizprocTask } from './bizproc/task';
4
+ import { BXRestBizprocRobot } from './bizproc/robot';
5
+ import { BXRestBizprocEvent } from './bizproc/event';
6
+ import * as i0 from "@angular/core";
7
+ export declare class BXRestBizproc {
8
+ workflow: BXRestBizprocWorkflow;
9
+ activity: BXRestBizprocActivity;
10
+ task: BXRestBizprocTask;
11
+ robot: BXRestBizprocRobot;
12
+ event: BXRestBizprocEvent;
13
+ constructor(workflow: BXRestBizprocWorkflow, activity: BXRestBizprocActivity, task: BXRestBizprocTask, robot: BXRestBizprocRobot, event: BXRestBizprocEvent);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizproc, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizproc>;
16
+ }
@@ -1,5 +1,6 @@
1
1
  import HttpBXServices from '../../services/http/HttpBX';
2
2
  import { iBXRestHttpListsElement, iBXRestParamListsElementGet } from '../../typification/rest/lists/element/get';
3
+ import { iBXRestParamListsElementAdd } from '../../typification/rest/lists/element/add';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class BXRestListsElement {
5
6
  private http;
@@ -12,7 +13,7 @@ export declare class BXRestListsElement {
12
13
  };
13
14
  constructor(http: HttpBXServices);
14
15
  get(pram: iBXRestParamListsElementGet): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestHttpListsElement[]> | undefined>;
15
- customPipe(): void;
16
+ add(param: iBXRestParamListsElementAdd): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<number> | undefined>;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestListsElement, never>;
17
18
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestListsElement>;
18
19
  }
@@ -1,6 +1,6 @@
1
1
  import { BXRestListsElement } from './lists/element';
2
2
  import * as i0 from "@angular/core";
3
- export default class BXRestLists {
3
+ export declare class BXRestLists {
4
4
  element: BXRestListsElement;
5
5
  url: {
6
6
  add: string[];
@@ -1,6 +1,8 @@
1
1
  import HttpBXServices from '../../services/http/HttpBX';
2
- import { iBXRestParamTaskAdd } from '../../typification/rest/task/fieldsForSend';
3
2
  import { iBXRestHttpTask } from '../../typification/rest/task/task';
3
+ import { iBXRestParamTaskAdd } from '../../typification/rest/tasks/task/add';
4
+ import iBXRestParamTaskGet from '../../typification/rest/tasks/task/get';
5
+ import { iBXRestParamTasksList } from '../../typification/rest/tasks/task/list';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class BXRestTasksTask {
6
8
  private http;
@@ -50,6 +52,12 @@ export declare class BXRestTasksTask {
50
52
  }): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
51
53
  task: iBXRestHttpTask;
52
54
  }> | undefined>;
55
+ get(requestArray: iBXRestParamTaskGet): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
56
+ task: iBXRestHttpTask | undefined;
57
+ }> | undefined>;
58
+ list(param?: iBXRestParamTasksList): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
59
+ tasks: iBXRestHttpTask[] | undefined;
60
+ }> | undefined>;
53
61
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestTasksTask, never>;
54
62
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestTasksTask>;
55
63
  }
@@ -0,0 +1,12 @@
1
+ import { iBXRestParamBizprocWorkflowStart } from '../../typification/rest/bizproc/workflow/start';
2
+ import { BXRestBizprocWorkflow } from '../../request/bizproc/workflow';
3
+ import { Navvy } from '../../services/navvy';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BXRestNavvyBizprocWorkflow {
6
+ private BXRestBizprocWorkflow;
7
+ private Navvy;
8
+ constructor(BXRestBizprocWorkflow: BXRestBizprocWorkflow, Navvy: Navvy);
9
+ start(param: iBXRestParamBizprocWorkflowStart): import("rxjs").Observable<string | undefined>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyBizprocWorkflow, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyBizprocWorkflow>;
12
+ }
@@ -0,0 +1,24 @@
1
+ import { BXRestNavvyLists } from './lists';
2
+ import { Observable } from 'rxjs';
3
+ import { BXRestNavvyBizprocWorkflow } from './bizproc/workflow';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BXRestNavvyBizproc {
6
+ workflow: BXRestNavvyBizprocWorkflow;
7
+ private BXRestNavvyLists;
8
+ constructor(workflow: BXRestNavvyBizprocWorkflow, BXRestNavvyLists: BXRestNavvyLists);
9
+ /**
10
+ * Метод по запуску бизнес процессов из ленты
11
+ *
12
+ * @param id
13
+ * @param parametersElement
14
+ * @param parametersBizproc
15
+ * @param templateIDs
16
+ */
17
+ startProcFormNewsFeed(id: number, parametersElement: {
18
+ [key: string]: string;
19
+ }, parametersBizproc: {
20
+ [key: string]: string;
21
+ }, templateIDs: number[]): Observable<boolean | (string | undefined)[]>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyBizproc, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyBizproc>;
24
+ }
@@ -2,15 +2,13 @@ import { BXRestDiskStorage } from '../../request/disk/storage';
2
2
  import BXRestMapDiskStorage from '../../map/disk/storage';
3
3
  import { iBXRestParamUploadFile } from '../../typification/rest/disk/storage/uploadfile';
4
4
  import { Navvy } from '../../services/navvy';
5
- import { SessionStorageServices } from '../../services/vanilla/sessionStorage';
6
5
  import { iBXRestFolderInfo } from '../../typification/rest/disk/folder';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class BXRestNavvyDiskStorage {
9
8
  private BXRestDiskStorage;
10
9
  private BXRestMapDiskStorage;
11
10
  private Navvy;
12
- private SessionStorage;
13
- constructor(BXRestDiskStorage: BXRestDiskStorage, BXRestMapDiskStorage: BXRestMapDiskStorage, Navvy: Navvy, SessionStorage: SessionStorageServices);
11
+ constructor(BXRestDiskStorage: BXRestDiskStorage, BXRestMapDiskStorage: BXRestMapDiskStorage, Navvy: Navvy);
14
12
  getforapp(): import("rxjs").Observable<iBXRestFolderInfo | undefined>;
15
13
  getchildren(param: {
16
14
  id: number;
@@ -2,13 +2,15 @@ import { iBXRestParamListsElementGet } from '../../typification/rest/lists/eleme
2
2
  import { BXRestListsElement } from '../../request/lists/element';
3
3
  import BXRestListsElementMap from '../../map/lists/element';
4
4
  import { Navvy } from '../../services/navvy';
5
+ import { iBXRestParamListsElementAdd } from '../../typification/rest/lists/element/add';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class BXRestNavvyListsElement {
7
8
  private BXRestListsElement;
8
9
  private BXRestMap;
9
10
  private Navvy;
10
11
  constructor(BXRestListsElement: BXRestListsElement, BXRestMap: BXRestListsElementMap, Navvy: Navvy);
11
- get(pram: iBXRestParamListsElementGet): import("rxjs").Observable<import("../../typification/rest/lists/element/get").iBXRestListsElement[] | undefined>;
12
+ get(param: iBXRestParamListsElementGet): import("rxjs").Observable<import("../../typification/rest/lists/element/get").iBXRestListsElement[] | undefined>;
13
+ add(param: iBXRestParamListsElementAdd): import("rxjs").Observable<number | undefined>;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyListsElement, never>;
13
15
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyListsElement>;
14
16
  }
@@ -1,14 +1,7 @@
1
1
  import { BXRestNavvyListsElement } from './lists/element';
2
2
  import * as i0 from "@angular/core";
3
- export default class BXRestNavvyLists {
3
+ export declare class BXRestNavvyLists {
4
4
  element: BXRestNavvyListsElement;
5
- url: {
6
- add: string[];
7
- delete: string[];
8
- get: string[];
9
- update: string[];
10
- getIblockTypeId: string[];
11
- };
12
5
  constructor(element: BXRestNavvyListsElement);
13
6
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyLists, never>;
14
7
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyLists>;
@@ -1,16 +1,26 @@
1
1
  import SnackBarService from '../../services/snack-bar/snack-bar.service';
2
- import { iBXRestParamTaskAdd } from '../../typification/rest/task/fieldsForSend';
3
2
  import { BXRestTaskMap } from '../../map/task';
4
3
  import { BXRestTasksTask } from '../../request/tasks/task';
4
+ import { iBXRestTaskFieldsName } from '../../typification/rest/task/base/fieldsName';
5
+ import { iBXRestParamTaskAdd } from '../../typification/rest/tasks/task/add';
6
+ import iBXRestParamTaskGet from '../../typification/rest/tasks/task/get';
7
+ import { Navvy } from '../../services/navvy';
8
+ import { iBXRestParamTasksList } from '../../typification/rest/tasks/task/list';
5
9
  import * as i0 from "@angular/core";
6
10
  export declare class BXRestNavvyTasksTask {
7
- private BXRestTasks;
11
+ private BXRestTasksTask;
8
12
  private snackBar;
9
13
  private taskMap;
10
- constructor(BXRestTasks: BXRestTasksTask, snackBar: SnackBarService, taskMap: BXRestTaskMap);
14
+ private Navvy;
15
+ def: {
16
+ select: iBXRestTaskFieldsName[];
17
+ };
18
+ constructor(BXRestTasksTask: BXRestTasksTask, snackBar: SnackBarService, taskMap: BXRestTaskMap, Navvy: Navvy);
11
19
  add(param: {
12
20
  fields: iBXRestParamTaskAdd;
13
21
  }): import("rxjs").Observable<import("../../typification/rest/task/task").iBXRestTask | undefined>;
22
+ get(requestArray: iBXRestParamTaskGet): import("rxjs").Observable<import("../../typification/rest/task/task").iBXRestTask | undefined>;
23
+ list(param?: iBXRestParamTasksList): import("rxjs").Observable<import("../../typification/rest/task/task").iBXRestTask[] | undefined>;
14
24
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyTasksTask, never>;
15
25
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyTasksTask>;
16
26
  }
@@ -2,7 +2,6 @@ import { BXRestUser } from '../request/user';
2
2
  import { BXRestUserMap } from '../map/user';
3
3
  import { iBXRestParamUserGet } from '../typification/rest/user/get';
4
4
  import { Navvy } from '../services/navvy';
5
- import { SessionStorageServices } from '../services/vanilla/sessionStorage';
6
5
  import { iBXRestUser } from '../typification/rest/user/user';
7
6
  import UserFilterSearch from '../typification/rest/user/UserFilterSearch';
8
7
  import * as i0 from "@angular/core";
@@ -10,8 +9,7 @@ export declare class BXRestNavvyUser {
10
9
  private BXRestUser;
11
10
  private BXRestUserMap;
12
11
  private Navvy;
13
- private SessionStorage;
14
- constructor(BXRestUser: BXRestUser, BXRestUserMap: BXRestUserMap, Navvy: Navvy, SessionStorage: SessionStorageServices);
12
+ constructor(BXRestUser: BXRestUser, BXRestUserMap: BXRestUserMap, Navvy: Navvy);
15
13
  get(params?: iBXRestParamUserGet): import("rxjs").Observable<import("../typification/rest/user/user").iBXRestUserHttp[] | undefined>;
16
14
  current(update?: boolean): import("rxjs").Observable<iBXRestUser | undefined>;
17
15
  update(user: iBXRestUser, fieldUpdate: string[]): import("rxjs").Observable<import("../typification/rest/user/user").iBXRestUserHttp[] | undefined>;
package/rest.d.ts CHANGED
@@ -1,19 +1,22 @@
1
1
  import { BXRestUser } from './request/user';
2
- import BXRestLists from './request/lists';
3
- import BXRestListsMap from './map/lists';
4
- import BXRestNavvyLists from './request-navvy/lists';
5
- import { BXRestNavvyTasks } from './request-navvy/tasks';
2
+ import { BXRestLists } from './request/lists';
3
+ import { BXRestMapLists } from './map/lists';
6
4
  import { BXRestTasks } from './request/tasks';
7
- import { BXRestNavvyUser } from './request-navvy/user';
8
5
  import { BXRestDisk } from './request/disk';
6
+ import { BXRestBizproc } from './request/bizproc';
7
+ import { BXRestNavvyLists } from './request-navvy/lists';
8
+ import { BXRestNavvyTasks } from './request-navvy/tasks';
9
+ import { BXRestNavvyUser } from './request-navvy/user';
9
10
  import { BXRestNavvyDisk } from './request-navvy/disk';
11
+ import { BXRestNavvyBizproc } from './request-navvy/bizproc';
10
12
  import * as i0 from "@angular/core";
11
13
  export declare class BXRest {
12
14
  user: BXRestUser;
13
15
  lists: BXRestLists;
14
16
  tasks: BXRestTasks;
15
17
  disk: BXRestDisk;
16
- constructor(user: BXRestUser, lists: BXRestLists, tasks: BXRestTasks, disk: BXRestDisk);
18
+ bizproc: BXRestBizproc;
19
+ constructor(user: BXRestUser, lists: BXRestLists, tasks: BXRestTasks, disk: BXRestDisk, bizproc: BXRestBizproc);
17
20
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRest, never>;
18
21
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRest>;
19
22
  }
@@ -22,13 +25,14 @@ export declare class BXRestNavvy {
22
25
  lists: BXRestNavvyLists;
23
26
  tasks: BXRestNavvyTasks;
24
27
  disk: BXRestNavvyDisk;
25
- constructor(user: BXRestNavvyUser, lists: BXRestNavvyLists, tasks: BXRestNavvyTasks, disk: BXRestNavvyDisk);
28
+ bizproc: BXRestNavvyBizproc;
29
+ constructor(user: BXRestNavvyUser, lists: BXRestNavvyLists, tasks: BXRestNavvyTasks, disk: BXRestNavvyDisk, bizproc: BXRestNavvyBizproc);
26
30
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvy, never>;
27
31
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvy>;
28
32
  }
29
33
  export declare class BXRestMap {
30
- lists: BXRestListsMap;
31
- constructor(lists: BXRestListsMap);
34
+ lists: BXRestMapLists;
35
+ constructor(lists: BXRestMapLists);
32
36
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestMap, never>;
33
37
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestMap>;
34
38
  }
@@ -1,45 +1,25 @@
1
- import { Store } from '@ngrx/store';
2
1
  import saveApplicationAuth from '../../typification/auth/save';
3
2
  import { Observable, Subscription } from 'rxjs';
4
- import { ActivatedRoute } from '@angular/router';
5
3
  import { BaseServices } from '../base';
6
4
  import { RestServices } from '../../typification/rest/api-lib';
7
5
  import * as i0 from "@angular/core";
8
6
  declare type IKeyAuth = 'sessid' | 'auth' | string;
9
7
  export default class SessionKeyServices extends BaseServices {
10
- store: Store<{
11
- auth: saveApplicationAuth;
12
- }>;
13
- private route;
14
8
  BxApiLib: RestServices;
15
9
  authHave: boolean;
16
- authData$: Observable<saveApplicationAuth>;
17
10
  authData: saveApplicationAuth | undefined;
18
11
  subscribe: {
19
12
  authData: Subscription;
20
13
  };
21
- REST_SETTINGS: {
22
- auth: 'cookies';
23
- urls: {
24
- home: '';
25
- };
26
- };
27
- constructor(store: Store<{
28
- auth: saveApplicationAuth;
29
- }>, route: ActivatedRoute, BxApiLib: RestServices, REST_SETTINGS: {
30
- auth: 'cookies';
31
- urls: {
32
- home: '';
33
- };
34
- });
14
+ constructor(BxApiLib: RestServices);
35
15
  subscribeAll(): void;
36
16
  getAuth(): string;
37
17
  getKeyAuth(): IKeyAuth;
38
18
  getSessid(): any;
39
19
  setAuthParams<T>(params: any): boolean;
40
- getAuthParams(): Observable<string | undefined>;
20
+ getAuthParams(): string | undefined;
41
21
  getBaseUrl(): Observable<string | undefined>;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<SessionKeyServices, [null, null, null, { optional: true; }]>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<SessionKeyServices, never>;
43
23
  static ɵprov: i0.ɵɵInjectableDeclaration<SessionKeyServices>;
44
24
  }
45
25
  export {};
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class SessionStorageServices {
3
- setItem(name: string, value: any): void;
4
- getItem<T>(name: string): T | undefined;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageServices, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorageServices>;
2
+ export declare class SessionStorage {
3
+ static setItem(name: string, value: any): void;
4
+ static getItem<T>(name: string): T | undefined;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorage, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorage>;
7
7
  }
package/settings.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import { iRestSettings } from './typification/settings';
2
- export declare const REST_SETTINGS: iRestSettings;
2
+ export declare const BX_REST_SETTINGS: iRestSettings;
@@ -1,4 +1,4 @@
1
- export default interface saveApplicationAuth {
1
+ export default interface iBXRestAuth {
2
2
  access_token: string;
3
3
  client_endpoint: string;
4
4
  domain: string;
@@ -0,0 +1 @@
1
+ export declare type iBXRestOrderOption = 'asc' | 'desc';
@@ -0,0 +1 @@
1
+ export declare type iBXRestParamSort = 'ASC' | 'DESC';
@@ -0,0 +1 @@
1
+ export declare type iRestBXBizprocWorkflowTemplateFieldEnum = 'ID' | 'MODULE_ID' | 'ENTITY' | 'DOCUMENT_TYPE' | 'AUTO_EXECUTE' | 'NAME' | 'TEMPLATE' | 'PARAMETERS' | 'VARIABLES' | 'CONSTANTS' | 'MODIFIED' | 'IS_MODIFIED' | 'USER_ID' | 'SYSTEM_CODE';
@@ -0,0 +1,5 @@
1
+ export interface iBXRestParamBizprocWorkflowStart {
2
+ TEMPLATE_ID: number;
3
+ DOCUMENT_ID: string[];
4
+ PARAMETERS: any;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { iRestBXBizprocWorkflowTemplateFieldEnum } from '../../base/filedEnum';
2
+ export interface iBXRestParamBizprocWorkflowTemplateList {
3
+ select: iRestBXBizprocWorkflowTemplateFieldEnum[];
4
+ filter: iBXRestParamBizprocWorkflowTemplateListFilter;
5
+ }
6
+ export declare type iBXRestParamBizprocWorkflowTemplateListFilter = {
7
+ [Property in iRestBXBizprocWorkflowTemplateFieldEnum]?: any;
8
+ };
@@ -0,0 +1,9 @@
1
+ export interface iBXRestParamListsElementAdd {
2
+ IBLOCK_TYPE_ID: 'lists' | 'bitrix_processes';
3
+ IBLOCK_ID: number | any;
4
+ ELEMENT_CODE: string;
5
+ FIELDS: {
6
+ NAME: string;
7
+ [key: string]: any;
8
+ };
9
+ }
@@ -0,0 +1 @@
1
+ export declare type iBXRestTaskFieldsName = 'ID' | 'PARENT_ID' | 'TITLE' | 'DESCRIPTION' | 'MARK' | 'PRIORITY' | 'STATUS' | 'MULTITASK' | 'NOT_VIEWED' | 'REPLICATE' | 'GROUP_ID' | 'STAGE_ID' | 'CREATED_BY' | 'CREATED_DATE' | 'RESPONSIBLE_ID' | 'ACCOMPLICES' | 'AUDITORS' | 'CHANGED_BY' | 'CHANGED_DATE' | 'STATUS_CHANGED_DATE' | 'CLOSED_BY' | 'CLOSED_DATE' | 'DATE_START' | 'DEADLINE' | 'START_DATE_PLAN' | 'END_DATE_PLAN' | 'GUID' | 'XML_ID' | 'COMMENTS_COUNT' | 'NEW_COMMENTS_COUNT' | 'TASK_CONTROL' | 'ADD_IN_REPORT' | 'FORKED_BY_TEMPLATE_ID' | 'TIME_ESTIMATE' | 'TIME_SPENT_IN_LOGS' | 'MATCH_WORK_TIME' | 'FORUM_TOPIC_ID' | 'FORUM_ID' | 'SITE_ID' | 'SUBORDINATE' | 'FAVORITE' | 'VIEWED_DATE' | 'SORTING' | 'DURATION_PLAN' | 'DURATION_FACT' | 'DURATION_TYPE' | 'ACTIVITY_DATE' | 'TAGS' | 'ALLOW_TIME_TRACKING';
@@ -1,4 +1,4 @@
1
- import { iBXRestYesNo } from '../base/YesNo';
1
+ import { iBXRestYesNo } from '../../base/YesNo';
2
2
  export interface iBXRestParamTaskAdd {
3
3
  ID?: number;
4
4
  PARENT_ID?: number;
@@ -0,0 +1,5 @@
1
+ import { iBXRestTaskFieldsName } from '../../task/base/fieldsName';
2
+ export default interface iBXRestParamTasksGet {
3
+ taskId: number;
4
+ select?: iBXRestTaskFieldsName[];
5
+ }
@@ -0,0 +1,65 @@
1
+ import { iBXRestParamSort } from '../../base/sort';
2
+ import { iBXRestYesNo } from '../../base/YesNo';
3
+ import { iBXRestTaskFieldsName } from '../../task/base/fieldsName';
4
+ import { BXRestFilterGenerator } from '../../base/filterGenerator';
5
+ export interface iBXRestParamTasksList {
6
+ order?: iBXRestParamTaskListOrder;
7
+ filter?: iBXRestParamTaskListFilter;
8
+ select?: BXRestFilterGenerator<iBXRestTaskFieldsName[]>;
9
+ }
10
+ export interface iBXRestParamTaskListOrder {
11
+ ID?: iBXRestParamSort;
12
+ TITLE?: iBXRestParamSort;
13
+ TIME_SPENT_IN_LOGS?: iBXRestParamSort;
14
+ DATE_START?: iBXRestParamSort;
15
+ CREATED_DATE?: iBXRestParamSort;
16
+ CHANGED_DATE?: iBXRestParamSort;
17
+ CLOSED_DATE?: iBXRestParamSort;
18
+ START_DATE_PLAN?: iBXRestParamSort;
19
+ END_DATE_PLAN?: iBXRestParamSort;
20
+ DEADLINE?: iBXRestParamSort;
21
+ REAL_STATUS?: iBXRestParamSort;
22
+ STATUS_COMPLETE?: iBXRestParamSort;
23
+ PRIORITY?: iBXRestParamSort;
24
+ MARK?: iBXRestParamSort;
25
+ CREATED_BY_LAST_NAME?: iBXRestParamSort;
26
+ RESPONSIBLE_LAST_NAME?: iBXRestParamSort;
27
+ GROUP_ID?: iBXRestParamSort;
28
+ TIME_ESTIMATE?: iBXRestParamSort;
29
+ ALLOW_CHANGE_DEADLINE?: iBXRestParamSort;
30
+ ALLOW_TIME_TRACKING?: iBXRestParamSort;
31
+ MATCH_WORK_TIME?: iBXRestParamSort;
32
+ FAVORITE?: iBXRestParamSort;
33
+ SORTING?: iBXRestParamSort;
34
+ MESSAGE_ID?: iBXRestParamSort;
35
+ }
36
+ export interface iBXRestParamTaskListFilter {
37
+ ID?: number | number[];
38
+ ACTIVITY_DATE?: string;
39
+ PARENT_ID?: number;
40
+ GROUP_ID?: number;
41
+ CREATED_BY?: number;
42
+ STATUS_CHANGED_BY?: number;
43
+ PRIORITY?: number;
44
+ FORUM_TOPIC_ID?: number;
45
+ RESPONSIBLE_ID?: number;
46
+ TITLE?: string;
47
+ TAG?: string;
48
+ REAL_STATUS?: number | number[];
49
+ STATUS?: number | number[];
50
+ MARK?: number;
51
+ SITE_ID?: number;
52
+ ADD_IN_REPORT?: 'Y' | 'N';
53
+ ALLOW_TIME_TRACKING?: 'Y' | 'N';
54
+ DATE_START?: string;
55
+ DEADLINE?: string;
56
+ CREATED_DATE?: string;
57
+ CLOSED_DATE?: string;
58
+ CHANGED_DATE?: string;
59
+ ACCOMPLICE?: number;
60
+ AUDITOR?: number;
61
+ DEPENDS_ON?: number;
62
+ ONLY_ROOT_TASKS?: iBXRestYesNo;
63
+ STAGE_ID?: number | number[] | string | string[];
64
+ UF_CRM_TASK?: number | number[] | string | string[] | any;
65
+ }
@@ -1,9 +1,14 @@
1
1
  import { iBXRestYesNo } from '../base/YesNo';
2
2
  import { iBXRestBaseParam } from '../support/param';
3
+ import { iBXRestOrderOption } from '../base/OrderOptions';
3
4
  export interface iBXRestParamUserGet extends iBXRestBaseParam {
4
5
  ID?: number[] | number;
6
+ FILTER?: iBXRestParamUserGetFilter;
7
+ order?: iBXRestOrderOption;
8
+ ADMIN_MODE?: string;
9
+ }
10
+ export interface iBXRestParamUserGetFilter {
5
11
  PERSONAL_BIRTHDAY?: string | string[];
6
- order?: 'ASC' | 'DESC';
7
12
  UF_DEPARTMENT?: number[];
8
13
  UF_PHONE_INNER?: string;
9
14
  IS_ONLINE?: iBXRestYesNo;