bx-rest 0.4.12 → 0.4.15

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 (94) hide show
  1. package/README.md +2 -1
  2. package/esm2022/request/app.mjs +2 -2
  3. package/esm2022/request/bizproc/activity.mjs +1 -5
  4. package/esm2022/request/bizproc/event.mjs +1 -5
  5. package/esm2022/request/bizproc/robot.mjs +1 -5
  6. package/esm2022/request/bizproc/task.mjs +1 -5
  7. package/esm2022/request/bizproc/workflow/instance.mjs +1 -5
  8. package/esm2022/request/bizproc/workflow/template.mjs +4 -9
  9. package/esm2022/request/bizproc/workflow.mjs +2 -2
  10. package/esm2022/request/calendar/event.mjs +2 -2
  11. package/esm2022/request/disk/attachedObject.mjs +2 -2
  12. package/esm2022/request/disk/file.mjs +2 -2
  13. package/esm2022/request/disk/folder.mjs +2 -2
  14. package/esm2022/request/im/chat.mjs +2 -2
  15. package/esm2022/request/lists/element.mjs +2 -2
  16. package/esm2022/request/lists/field.mjs +2 -2
  17. package/esm2022/request/lists.mjs +2 -2
  18. package/esm2022/request/log/blogcomment.mjs +1 -5
  19. package/esm2022/request/log/blogpost.mjs +2 -2
  20. package/esm2022/request/server.mjs +2 -2
  21. package/esm2022/request/sonet_group.mjs +2 -2
  22. package/esm2022/request/task/elapseditem.mjs +4 -14
  23. package/esm2022/request/task/item/userfield.mjs +2 -2
  24. package/esm2022/request/task/planner.mjs +2 -2
  25. package/esm2022/request/tasks/task/result.mjs +2 -2
  26. package/esm2022/request/tasks/task.mjs +2 -2
  27. package/esm2022/request/timeman.mjs +2 -2
  28. package/esm2022/request/user/userfield.mjs +3 -5
  29. package/esm2022/request/user.mjs +2 -2
  30. package/esm2022/request-navvy/tasks/task.mjs +3 -2
  31. package/esm2022/rest.mjs +12 -2
  32. package/esm2022/services/Navvy/NavvySupport.mjs +2 -1
  33. package/esm2022/services/base.mjs +1 -4
  34. package/esm2022/services/http/HttpBX.mjs +7 -10
  35. package/esm2022/services/http/http.mjs +3 -3
  36. package/esm2022/services/http/sessionKey.mjs +6 -2
  37. package/esm2022/settings.mjs +3 -16
  38. package/esm2022/typification/base/methods.mjs +656 -0
  39. package/esm2022/typification/base/workpiece/methods-list.mjs +2 -0
  40. package/esm2022/typification/base/workpiece/methods.mjs +2 -0
  41. package/esm2022/typification/rest/calendar/get/answer.mjs +1 -1
  42. package/esm2022/typification/rest/task/commentitem/add.mjs +1 -1
  43. package/esm2022/typification/rest/tasks/task/add.mjs +1 -1
  44. package/esm2022/typification/rest/tasks/task/list.mjs +1 -1
  45. package/esm2022/typification/settings.mjs +1 -1
  46. package/fesm2022/bx-rest.mjs +498 -521
  47. package/fesm2022/bx-rest.mjs.map +1 -1
  48. package/package.json +1 -1
  49. package/request/bizproc/activity.d.ts +0 -7
  50. package/request/bizproc/event.d.ts +0 -3
  51. package/request/bizproc/robot.d.ts +0 -6
  52. package/request/bizproc/task.d.ts +0 -4
  53. package/request/bizproc/workflow/instance.d.ts +0 -3
  54. package/request/bizproc/workflow/template.d.ts +0 -9
  55. package/request/bizproc/workflow.d.ts +1 -13
  56. package/request/calendar/event.d.ts +1 -7
  57. package/request/disk/attachedObject.d.ts +1 -3
  58. package/request/disk/file.d.ts +1 -14
  59. package/request/disk/folder.d.ts +1 -14
  60. package/request/im/chat.d.ts +1 -9
  61. package/request/lists/element.d.ts +1 -7
  62. package/request/lists/field.d.ts +1 -9
  63. package/request/lists.d.ts +1 -23
  64. package/request/log/blogcomment.d.ts +0 -3
  65. package/request/log/blogpost.d.ts +1 -7
  66. package/request/server.d.ts +1 -3
  67. package/request/sonet_group.d.ts +1 -7
  68. package/request/task/elapseditem.d.ts +1 -9
  69. package/request/tasks/task/result.d.ts +1 -5
  70. package/request/tasks/task.d.ts +2 -38
  71. package/request/timeman.d.ts +1 -7
  72. package/request/user/userfield.d.ts +1 -3
  73. package/request/user.d.ts +1 -9
  74. package/request-navvy/tasks/task.d.ts +1 -1
  75. package/rest.d.ts +4 -1
  76. package/services/base.d.ts +0 -1
  77. package/services/http/HttpBX.d.ts +4 -7
  78. package/services/http/http.d.ts +2 -2
  79. package/settings.d.ts +2 -1
  80. package/typification/base/methods.d.ts +2 -0
  81. package/typification/base/workpiece/methods-list.d.ts +209 -0
  82. package/typification/base/workpiece/methods.d.ts +19 -0
  83. package/typification/rest/calendar/get/answer.d.ts +3 -3
  84. package/typification/rest/tasks/task/add.d.ts +6 -4
  85. package/typification/rest/tasks/task/list.d.ts +2 -2
  86. package/typification/settings.d.ts +1 -0
  87. package/esm2022/methods.mjs +0 -632
  88. package/esm2022/services/http/base/http.mjs +0 -13
  89. package/esm2022/typification/rest/bizproc/base/filedEnum.mjs +0 -2
  90. package/esm2022/typification/rest/bizproc/workflow/template/list.mjs +0 -2
  91. package/methods.d.ts +0 -581
  92. package/services/http/base/http.d.ts +0 -7
  93. package/typification/rest/bizproc/base/filedEnum.d.ts +0 -1
  94. package/typification/rest/bizproc/workflow/template/list.d.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bx-rest",
3
- "version": "0.4.12",
3
+ "version": "0.4.15",
4
4
  "description": "bitrix rest api",
5
5
  "keywords": [
6
6
  "bitrix",
@@ -1,12 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class BXRestBizProcActivity {
3
- protected url: {
4
- add: string[];
5
- delete: string[];
6
- list: string[];
7
- update: string[];
8
- log: string[];
9
- };
10
3
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizProcActivity, never>;
11
4
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizProcActivity>;
12
5
  }
@@ -1,8 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class BXRestBizProcEvent {
3
- protected url: {
4
- send: string[];
5
- };
6
3
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizProcEvent, never>;
7
4
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizProcEvent>;
8
5
  }
@@ -1,11 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class BXRestBizProcRobot {
3
- protected url: {
4
- add: string[];
5
- delete: string[];
6
- list: string[];
7
- update: string[];
8
- };
9
3
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizProcRobot, never>;
10
4
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizProcRobot>;
11
5
  }
@@ -1,9 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class BXRestBizProcTask {
3
- protected url: {
4
- complete: string[];
5
- list: string[];
6
- };
7
3
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizProcTask, never>;
8
4
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizProcTask>;
9
5
  }
@@ -1,8 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class BXRestBizProcWorkflowInstance {
3
- protected url: {
4
- list: string[];
5
- };
6
3
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizProcWorkflowInstance, never>;
7
4
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizProcWorkflowInstance>;
8
5
  }
@@ -1,14 +1,5 @@
1
- import { HttpBXServices } from '../../../services/http/HttpBX';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class BXRestBizProcWorkflowTemplate {
4
- private http;
5
- protected url: {
6
- add: string[];
7
- delete: string[];
8
- update: string[];
9
- list: string[];
10
- };
11
- constructor(http: HttpBXServices);
12
3
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizProcWorkflowTemplate, never>;
13
4
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestBizProcWorkflowTemplate>;
14
5
  }
@@ -7,19 +7,7 @@ export declare class BXRestBizProcWorkflow {
7
7
  instances: BXRestBizProcWorkflowInstance;
8
8
  template: BXRestBizProcWorkflowTemplate;
9
9
  private http;
10
- protected url: {
11
- instances: {
12
- list: string[];
13
- };
14
- terminate: {
15
- add: string[];
16
- delete: string[];
17
- update: string[];
18
- list: string[];
19
- };
20
- start: string[];
21
- kill: string[];
22
- };
10
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsBizProcWorkflow<string[]>;
23
11
  constructor(instances: BXRestBizProcWorkflowInstance, template: BXRestBizProcWorkflowTemplate, http: HttpBXServices);
24
12
  start(param: iBXRestParamBizprocWorkflowStart): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<string> | undefined>;
25
13
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestBizProcWorkflow, never>;
@@ -4,13 +4,7 @@ import { iBXRestCalendarEventGetAnswerHttp } from '../../typification/rest/calen
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class BXRestCalendarEvent {
6
6
  private http;
7
- protected url: {
8
- add: string[];
9
- delete: string[];
10
- get: string[];
11
- getNearest: string[];
12
- update: string[];
13
- };
7
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsCalendarEvent<string[]>;
14
8
  constructor(http: HttpBXServices);
15
9
  get(param: iBXRestCalendarEventGetParam): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestCalendarEventGetAnswerHttp[]> | undefined>;
16
10
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestCalendarEvent, never>;
@@ -3,9 +3,7 @@ import { iBXRestDiskAttachedObjectHttp, iBXRestParamRestDiskAttachedObject } fro
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestDiskAttachedObject {
5
5
  private http;
6
- protected url: {
7
- get: string[];
8
- };
6
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsDiskAttachedObject<string[]>;
9
7
  constructor(http: HttpBXServices);
10
8
  get(param: iBXRestParamRestDiskAttachedObject): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestDiskAttachedObjectHttp> | undefined>;
11
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestDiskAttachedObject, never>;
@@ -3,20 +3,7 @@ import { iBXRestDiskFileHttp, iBXRestParamDiskFileGet, iBXRestParamDiskFileMarkD
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestDiskFile {
5
5
  private http;
6
- protected url: {
7
- getFields: string[];
8
- get: string[];
9
- rename: string[];
10
- copyTo: string[];
11
- moveto: string[];
12
- delete: string[];
13
- markDeleted: string[];
14
- restore: string[];
15
- uploadVersion: string[];
16
- getVersions: string[];
17
- restoreFromVersion: string[];
18
- getExternalLink: string[];
19
- };
6
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsDiskFile<string[], string[]>;
20
7
  constructor(http: HttpBXServices);
21
8
  get(param: iBXRestParamDiskFileGet): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestDiskFileHttp> | undefined>;
22
9
  markDeleted(param: iBXRestParamDiskFileMarkDeleted): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestDiskFileHttp> | undefined>;
@@ -10,20 +10,7 @@ import { iBXRestDiskFolderRenameParam } from '../../typification/rest/disk/folde
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class BXRestDiskFolder {
12
12
  private http;
13
- protected url: {
14
- getFields: string[];
15
- get: string[];
16
- getChildren: string[];
17
- addSubFolder: string[];
18
- copyTo: string[];
19
- moveTo: string[];
20
- rename: string[];
21
- deleteTree: string[];
22
- markDeleted: string[];
23
- restore: string[];
24
- uploadFile: string[];
25
- getExternalLink: string[];
26
- };
13
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsDiskFolder<string[], string[], string[], string[], string[], string[], string[], string[], string[], string[], string[], string[]>;
27
14
  constructor(http: HttpBXServices);
28
15
  /**
29
16
  * Возвращает папку по идентификатору
@@ -3,15 +3,7 @@ import { HttpBXServices } from '../../services/http/HttpBX';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestImChat {
5
5
  private http;
6
- url: {
7
- add: string[];
8
- updateTitle: string[];
9
- updateColor: string[];
10
- updateAvatar: string[];
11
- setOwner: string[];
12
- get: string[];
13
- mute: string[];
14
- };
6
+ url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsImChat<string[]>;
15
7
  constructor(http: HttpBXServices);
16
8
  add(param: iBXRestParamImChatAdd): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<number> | undefined>;
17
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestImChat, never>;
@@ -4,13 +4,7 @@ import { iBXRestParamListsElementAdd } from '../../typification/rest/lists/eleme
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class BXRestListsElement {
6
6
  private http;
7
- protected url: {
8
- add: string[];
9
- delete: string[];
10
- get: string[];
11
- update: string[];
12
- getFileUrl: string[];
13
- };
7
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsListsElement<string[], string[]>;
14
8
  constructor(http: HttpBXServices);
15
9
  get(pram: iBXRestParamListsElementGet): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestHttpListsElement[]> | undefined>;
16
10
  add(param: iBXRestParamListsElementAdd): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<number> | undefined>;
@@ -3,15 +3,7 @@ import { HttpBXServices } from '../../services/http/HttpBX';
3
3
  import * as i0 from "@angular/core";
4
4
  export default class BXRestListsField {
5
5
  private http;
6
- protected url: {
7
- add: string[];
8
- delete: string[];
9
- get: string[];
10
- type: {
11
- get: string[];
12
- };
13
- update: string[];
14
- };
6
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsListsField<string[]>;
15
7
  constructor(http: HttpBXServices);
16
8
  get(param: iBXRestParamListField): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<BXRestHttpListsFieldGet> | undefined>;
17
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestListsField, never>;
@@ -7,29 +7,7 @@ export declare class BXRestLists {
7
7
  element: BXRestListsElement;
8
8
  field: BXRestListsField;
9
9
  private http;
10
- protected url: {
11
- add: string[];
12
- delete: string[];
13
- get: string[];
14
- update: string[];
15
- getIBlockTypeId: string[];
16
- element: {
17
- add: string[];
18
- delete: string[];
19
- get: string[];
20
- update: string[];
21
- getFileUrl: string[];
22
- };
23
- field: {
24
- add: string[];
25
- delete: string[];
26
- get: string[];
27
- type: {
28
- get: string[];
29
- };
30
- update: string[];
31
- };
32
- };
10
+ protected url: import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsLists<string[], import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsListsElement<string[], string[]>, import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsListsField<string[]>>;
33
11
  constructor(element: BXRestListsElement, field: BXRestListsField, http: HttpBXServices);
34
12
  get(param: iBXRestParamListGet): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestListItemHttp[]> | undefined>;
35
13
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestLists, never>;
@@ -1,8 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class BXRestLogBlogComment {
3
- protected url: {
4
- add: string[];
5
- };
6
3
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestLogBlogComment, never>;
7
4
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestLogBlogComment>;
8
5
  }
@@ -4,13 +4,7 @@ import { iBXRestBlogPostHttp, iBXRestParamBlogPostGet } from '../../typification
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class BXRestLogBlogPost {
6
6
  private http;
7
- protected url: {
8
- add: string[];
9
- get: string[];
10
- delete: string[];
11
- share: string[];
12
- update: string[];
13
- };
7
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsLogBlogpost<string[], string[]>;
14
8
  constructor(http: HttpBXServices);
15
9
  add(param: iBXRestParamLogBlogPostAdd): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<boolean> | undefined>;
16
10
  get(param?: iBXRestParamBlogPostGet): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestBlogPostHttp[]> | undefined>;
@@ -2,9 +2,7 @@ import { HttpBXServices } from '../services/http/HttpBX';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class BXRestServer {
4
4
  private http;
5
- protected url: {
6
- time: string[];
7
- };
5
+ protected url: import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsServer<string[]>;
8
6
  constructor(http: HttpBXServices);
9
7
  time(): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<string> | undefined>;
10
8
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestServer, never>;
@@ -3,13 +3,7 @@ import { iBXRestParamSonetGroupGet, iBXRestSonetGroupGetHttp } from '../typifica
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestSonetGroup {
5
5
  private http;
6
- protected url: {
7
- create: string[];
8
- delete: string[];
9
- get: string[];
10
- setOwner: string[];
11
- update: string[];
12
- };
6
+ protected url: import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsSonetGroup<string[]>;
13
7
  constructor(http: HttpBXServices);
14
8
  get(param?: iBXRestParamSonetGroupGet): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestSonetGroupGetHttp[]> | undefined>;
15
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestSonetGroup, never>;
@@ -8,15 +8,7 @@ import { iIsActionAllowedParam } from '../../typification/rest/task/elapseditem/
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class BXRestTaskElapsedItem {
10
10
  private http;
11
- protected url: {
12
- getManifest: string[];
13
- getList: string[];
14
- get: string[];
15
- add: string[];
16
- delete: string[];
17
- isActionAllowed: string[];
18
- update: string[];
19
- };
11
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsTaskElapsedItem<string[], string[], string[], string[], string[]>;
20
12
  constructor(http: HttpBXServices);
21
13
  getList(param?: iBXRestParamElapseditemGet): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTaskElapsedItemHttp[]> | undefined>;
22
14
  add(param: iBXRestParamAddElapseditem): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<number> | undefined>;
@@ -4,11 +4,7 @@ import { iBXRestParamTasksTaskResultList } from '../../../typification/rest/task
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class BXRestTasksTaskResult {
6
6
  private http;
7
- protected url: {
8
- list: string[];
9
- addFromComment: string[];
10
- deleteFromComment: string[];
11
- };
7
+ protected url: import("../../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsTasksTaskResult<string[], string[], string[]>;
12
8
  constructor(http: HttpBXServices);
13
9
  deleteFromComment(commentID: number): import("rxjs").Observable<import("../../../typification/rest/base/answer").iBXRestAnswer<null> | undefined>;
14
10
  addFromComment(param: iBXParamRestTasksTaskResultAdd): import("rxjs").Observable<import("../../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskResultHttp> | undefined>;
@@ -16,45 +16,9 @@ import * as i0 from "@angular/core";
16
16
  export declare class BXRestTasksTask {
17
17
  result: BXRestTasksTaskResult;
18
18
  private http;
19
- protected url: {
20
- add: string[];
21
- approve: string[];
22
- complete: string[];
23
- counters: {
24
- get: string[];
25
- };
26
- defer: string[];
27
- delegate: string[];
28
- delete: string[];
29
- disapprove: string[];
30
- favorite: {
31
- add: string[];
32
- delete: string[];
33
- };
34
- files: {
35
- attach: string[];
36
- };
37
- get: string[];
38
- getFields: string[];
39
- getAccess: string[];
40
- history: {
41
- list: string[];
42
- };
43
- list: string[];
44
- pause: string[];
45
- renew: string[];
46
- start: string[];
47
- startWatch: string[];
48
- stopwatch: string[];
49
- update: string[];
50
- result: {
51
- list: string[];
52
- addFromComment: string[];
53
- deleteFromComment: string[];
54
- };
55
- };
19
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsTasksTask<string[], string[], string[], string[], string[], string[], string[], string[], string[], string[], import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsTasksTaskResult<string[], string[], string[]>>;
56
20
  constructor(result: BXRestTasksTaskResult, http: HttpBXServices);
57
- add(param: iBXRestParamTaskAdd): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskGetHttpDefault>> | undefined>;
21
+ add<CustomFields extends object = {}>(param: iBXRestParamTaskAdd<CustomFields>): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskGetHttpDefault>> | undefined>;
58
22
  approve(param: iBXRestParamTasksTaskApprove): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskApproveHttp>> | undefined>;
59
23
  complete(param: iBXRestParamTasksTaskComplete): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskCompleteHttp>> | undefined>;
60
24
  defer(param: iBXRestParamTasksTaskDefer): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestTasksTaskBaseAnswer<iBXRestTasksTaskDeferHttp>> | undefined>;
@@ -3,13 +3,7 @@ import { HttpBXServices } from '../services/http/HttpBX';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestTimeMan {
5
5
  private http;
6
- protected url: {
7
- settings: string[];
8
- status: string[];
9
- open: string[];
10
- close: string[];
11
- pause: string[];
12
- };
6
+ protected url: import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsTimeman<string[]>;
13
7
  constructor(http: HttpBXServices);
14
8
  status(param?: iBXRestParamTimeManStatus | undefined): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestTimeManStatusHttp> | undefined>;
15
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestTimeMan, never>;
@@ -3,9 +3,7 @@ import { iBXRestUserUserField } from '../../typification/rest/user/userfield/lis
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestUserUserfield {
5
5
  private http;
6
- protected url: {
7
- list: string[];
8
- };
6
+ protected url: import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUserField<string[], string[], string[], string[], import("../../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUserFieldList<string[]>>;
9
7
  constructor(http: HttpBXServices);
10
8
  list(): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<iBXRestUserUserField[]> | undefined>;
11
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestUserUserfield, never>;
package/request/user.d.ts CHANGED
@@ -7,15 +7,7 @@ import * as i0 from "@angular/core";
7
7
  export declare class BXRestUser {
8
8
  private http;
9
9
  userfield: BXRestUserUserfield;
10
- protected url: {
11
- admin: string[];
12
- get: string[];
13
- current: string[];
14
- update: string[];
15
- search: string[];
16
- access: string[];
17
- fields: string[];
18
- };
10
+ protected url: import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUser<string[], string[], string[], string[], string[], string[], string[], import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUserField<string[], string[], string[], string[], import("../typification/base/workpiece/methods-list").iBXRestWorkpieceMethodsUserFieldList<string[]>>>;
19
11
  constructor(http: HttpBXServices, userfield: BXRestUserUserfield);
20
12
  admin(): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<boolean> | undefined>;
21
13
  get(params?: iBXRestParamUserGet): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestUserHttp[]> | undefined>;
@@ -18,7 +18,7 @@ export declare class BXRestNavvyTasksTask {
18
18
  private BXRestMapTasksTask;
19
19
  private Navvy;
20
20
  constructor(result: BXRestNavvyTasksTaskResult, BXRestTasksTask: BXRestTasksTask, BXRestMapTasksTask: BXRestMapTasksTask);
21
- add(param: iBXRestParamTaskAdd): NavvySimple<BXRestTasksTask, BXRestMapTasksTask, import("../../typification/rest/tasks/task/base").iBXRestTasksTaskBaseAnswer<import("../../typification/rest/tasks/task/get").iBXRestTasksTaskGetHttpDefault>, import("../../typification/rest/tasks/task").iBXRestTask | undefined>;
21
+ add<CustomFields extends object = {}>(param: iBXRestParamTaskAdd<CustomFields>): NavvySimple<BXRestTasksTask, BXRestMapTasksTask, import("../../typification/rest/tasks/task/base").iBXRestTasksTaskBaseAnswer<import("../../typification/rest/tasks/task/get").iBXRestTasksTaskGetHttpDefault>, import("../../typification/rest/tasks/task").iBXRestTask | undefined>;
22
22
  update<CustomFields extends object>(task: AllKeyFree<iBXRestTasksTaskGet<iBXRestTaskFieldsName[], CustomFields>>, updateFields: (iBXRestTasksTaskFieldsCanUpdate | keyof ToUpperCaseKeys<ObjectToSnake<CustomFields>>)[]): NavvySimple<this, BXRestMapTasksTask, import("../../typification/rest/tasks/task/base").iBXRestTasksTaskBaseAnswer<import("../../typification/rest/tasks/task/defer").iBXRestTasksTaskDeferHttp>, unknown>;
23
23
  get<S extends iBXRestTaskFieldsName[], CustomFields extends object = {}>(param: iBXRestParamTasksTaskGet<CustomFields>): NavvySimple<BXRestTasksTask, BXRestMapTasksTask, import("../../typification/rest/tasks/task/get").iBXRestTasksTaskGetHttp<S, CustomFields>, unknown>;
24
24
  list<S extends iBXRestTaskFieldsName[], CustomFields extends object = {}>(param?: iBXRestParamTasksList<CustomFields>): import("../../services/Navvy/NavvyPagNavTasks").NavvyPagNavTasks<BXRestTasksTask, BXRestMapTasksTask, import("../../typification/rest/tasks/task/list").iBXRestHttpTasksTaskList<S, CustomFields>, import("../../typification/rest/tasks/task/list").iBXRestTasksTaskList<S, CustomFields>, iBXRestParamTasksList<CustomFields>>;
package/rest.d.ts CHANGED
@@ -16,7 +16,7 @@ import { iBXRestProfileHttp } from './typification/rest/profile';
16
16
  import { BXRestMaps } from './map/rest';
17
17
  import { BXRestTimeMan } from './request/timeman';
18
18
  import { BXRestNavvyTimeMan } from './request-navvy/timeman';
19
- import { iBXRestBatch, iBXRestParamBatch } from './typification/rest/batch';
19
+ import { iBXRestBatch, iBXRestNavvyParamBatch, iBXRestParamBatch } from './typification/rest/batch';
20
20
  import { BXRestNavvyLists } from './request-navvy/lists';
21
21
  import { BXRestNavvyTasks } from './request-navvy/tasks';
22
22
  import { BXRestNavvyUser } from './request-navvy/user';
@@ -75,6 +75,9 @@ export declare class BXRestNavvy {
75
75
  protected Navvy: Navvy<BXRest, BXRestMaps>;
76
76
  constructor(user: BXRestNavvyUser, lists: BXRestNavvyLists, task: BXRestNavvyTask, tasks: BXRestNavvyTasks, disk: BXRestNavvyDisk, bizProc: BXRestNavvyBizProc, log: BXRestNavvyLog, calendar: BXRestNavvyCalendar, sonet_group: BXRestNavvySonetGroup, server: BXRestNavvyServer, department: BXRestNavvyDepartment, im: BXRestNavvyIm, app: BXRestNavvyApp, timeMan: BXRestNavvyTimeMan, BXRest: BXRest, BXRestMap: BXRestMaps);
77
77
  profile(): import("./services/Navvy/NavvySimple").NavvySimple<BXRest, BXRestMaps, iBXRestProfileHttp, import("./typification/rest/profile").iBXRestProfile | undefined>;
78
+ batch<T, C, M>(param: iBXRestNavvyParamBatch<T, C, M>): import("rxjs").Observable<import("./typification/rest/base/answer").iBXRestAnswer<iBXRestBatch<{
79
+ [x: string]: any;
80
+ }>> | undefined>;
78
81
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvy, never>;
79
82
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvy>;
80
83
  }
@@ -16,7 +16,6 @@ export declare class BaseServices {
16
16
  toJSON(val: object): string;
17
17
  fromJSON<T>(val: string): T | undefined;
18
18
  prepareBaseAddress(url: string, add?: string): string;
19
- getHomeAddress(): string;
20
19
  dateDiff(a: Date, b: Date): Date;
21
20
  dateDiffInDays(a: Date, b: Date): number;
22
21
  getBase64File(file: File): Promise<unknown>;
@@ -1,5 +1,4 @@
1
1
  import { Observable } from 'rxjs';
2
- import { iHttpParamSettings } from '../../typification/rest/settings';
3
2
  import { HttpServices } from './http';
4
3
  import { iBatchRequestAnswer, iBatchRequestParam, iBatchRequestParamArr, iBatchRequestParamHttp } from '../../typification/rest/batch/batchRequestParam';
5
4
  import { iBXRestAnswer } from '../../typification/rest/base/answer';
@@ -22,19 +21,17 @@ export declare class HttpBXServices extends HttpServices {
22
21
  *
23
22
  * @param name
24
23
  * @param params
25
- * @param settings
26
24
  */
27
- post<T>(name: string[], params?: any, settings?: iHttpParamSettings): Observable<iBXRestAnswer<T> | undefined>;
25
+ post<T>(name: string[], params?: any): Observable<iBXRestAnswer<T> | undefined>;
28
26
  /**
29
27
  * Второстепенный метод для запросов. По возможности лучше не использовать
30
28
  *
31
29
  * @param name
32
30
  * @param params
33
- * @param settings
34
31
  */
35
- get<T>(name: string[], params?: any, settings?: iHttpParamSettings): Observable<iBXRestAnswer<T> | undefined>;
36
- httpPost<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
37
- httpGet<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
32
+ get<T>(name: string[], params?: any): Observable<iBXRestAnswer<T> | undefined>;
33
+ httpPost<T>(url: string, params?: any): Observable<T | undefined>;
34
+ httpGet<T>(url: string, params?: any): Observable<T | undefined>;
38
35
  getNameMethod(arr: string[]): string;
39
36
  static ɵfac: i0.ɵɵFactoryDeclaration<HttpBXServices, never>;
40
37
  static ɵprov: i0.ɵɵInjectableDeclaration<HttpBXServices>;
@@ -2,10 +2,10 @@ import { Observable } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import SessionKeyServices from '../../services/http/sessionKey';
4
4
  import { iHttpParamSettings } from '../../typification/rest/settings';
5
- import { BaseHttpServices } from './base/http';
6
5
  import { BX_REST_SETTINGS } from '../../settings';
6
+ import { BaseHttp } from './base/base';
7
7
  import * as i0 from "@angular/core";
8
- export declare class HttpServices extends BaseHttpServices {
8
+ export declare class HttpServices extends BaseHttp {
9
9
  session: SessionKeyServices;
10
10
  constructor(BX_REST_SETTINGS: BX_REST_SETTINGS, http: HttpClient, session: SessionKeyServices);
11
11
  httpPost<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
package/settings.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare class BX_REST_SETTINGS extends InjectionToken<iRestSettings> {
6
6
  key: string;
7
7
  };
8
8
  urls: {
9
- home: string;
9
+ source: string;
10
+ key: string;
10
11
  };
11
12
  }
@@ -0,0 +1,2 @@
1
+ import { iBXRestWorkpieceMethodsFullOneArgument } from './workpiece/methods';
2
+ export declare const methods: iBXRestWorkpieceMethodsFullOneArgument<string[]>;