bx-rest 0.4.9 → 0.4.11

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.
@@ -1,8 +1,8 @@
1
1
  import { BaseMapServices } from './base';
2
- import { iBXRestParamSonet, iBXRestParamSonetHttp } from '../typification/rest/sonet_group/get';
2
+ import { iBXRestSonetGroupGet, iBXRestSonetGroupGetHttp } from '../typification/rest/sonet_group/get';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestMapSonetGroup extends BaseMapServices {
5
- get(items: iBXRestParamSonetHttp[] | undefined): iBXRestParamSonet[] | undefined;
5
+ get(items: iBXRestSonetGroupGetHttp[] | undefined): iBXRestSonetGroupGet[] | undefined;
6
6
  private iBXRestParamSonetHttpToiBXRestParamSonet;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestMapSonetGroup, never>;
8
8
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestMapSonetGroup>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bx-rest",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "description": "bitrix rest api",
5
5
  "keywords": [
6
6
  "bitrix",
@@ -16,7 +16,12 @@
16
16
  "homepage": "https://github.com/Aricatofuka/bx-rest#readme",
17
17
  "peerDependencies": {
18
18
  "@angular/common": "^17.1.2",
19
- "@angular/core": "^17.1.2"
19
+ "@angular/core": "^17.1.2",
20
+ "just-clone": "^6.2.0",
21
+ "just-camel-case": "^6.2.0",
22
+ "just-flatten-it": "^5.2.0",
23
+ "just-values": "^2.2.0",
24
+ "luxon": "^3.4.4"
20
25
  },
21
26
  "dependencies": {
22
27
  "tslib": "^2.3.0"
@@ -1,5 +1,5 @@
1
1
  import { HttpBXServices } from '../services/http/HttpBX';
2
- import { iBXRestParamSonetGroupGet, iBXRestParamSonetHttp } from '../typification/rest/sonet_group/get';
2
+ import { iBXRestParamSonetGroupGet, iBXRestSonetGroupGetHttp } from '../typification/rest/sonet_group/get';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BXRestSonetGroup {
5
5
  private http;
@@ -11,7 +11,7 @@ export declare class BXRestSonetGroup {
11
11
  update: string[];
12
12
  };
13
13
  constructor(http: HttpBXServices);
14
- get(param?: iBXRestParamSonetGroupGet): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestParamSonetHttp[]> | undefined>;
14
+ get(param?: iBXRestParamSonetGroupGet): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<iBXRestSonetGroupGetHttp[]> | undefined>;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestSonetGroup, never>;
16
16
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestSonetGroup>;
17
17
  }
@@ -7,7 +7,7 @@ export declare class BXRestNavvySonetGroup {
7
7
  private mapSonetGroup;
8
8
  private Navvy;
9
9
  constructor(BXRestSonetGroup: BXRestSonetGroup, mapSonetGroup: BXRestMapSonetGroup);
10
- get(param?: iBXRestParamSonetGroupGet): import("../services/Navvy/NavvySimple").NavvySimple<BXRestSonetGroup, BXRestMapSonetGroup, import("../typification/rest/sonet_group/get").iBXRestParamSonetHttp[], import("../typification/rest/sonet_group/get").iBXRestParamSonet[] | undefined>;
10
+ get(param?: iBXRestParamSonetGroupGet): import("../services/Navvy/NavvySimple").NavvySimple<BXRestSonetGroup, BXRestMapSonetGroup, import("../typification/rest/sonet_group/get").iBXRestSonetGroupGetHttp[], import("../typification/rest/sonet_group/get").iBXRestSonetGroupGet[] | undefined>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvySonetGroup, never>;
12
12
  static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvySonetGroup>;
13
13
  }
@@ -17,8 +17,8 @@ export type iBXRestParamSonetFilerWorkgroup = {
17
17
  export type iBXRestParamSonetOrderWorkgroup = {
18
18
  [key in iBXRestSonetGroupFieldsOrder]?: iBXRestParamSort;
19
19
  };
20
- export type iBXRestParamSonetHttp = Record<iBXRestSonetGroupFieldsSelect, string>;
21
- export type iBXRestParamSonet = Modify<iBXRestParamSonetHttp, {
20
+ export type iBXRestSonetGroupGetHttp = Record<iBXRestSonetGroupFieldsSelect, string>;
21
+ export type iBXRestSonetGroupGet = Modify<iBXRestSonetGroupGetHttp, {
22
22
  ID: number;
23
23
  DATE_CREATE: Date;
24
24
  DATE_UPDATE: Date;
@@ -10,6 +10,8 @@ export interface iGetFieldsDescriptionBody {
10
10
  default?: any;
11
11
  values?: {
12
12
  [Property in keyof iBXRestYesNo]: string;
13
+ } | {
14
+ [Property in keyof number]: string;
13
15
  };
14
16
  }
15
17
  export interface iBXRestTasksTaskGetFields {
@@ -56,11 +56,6 @@ export interface iBXRestTasksTaskListDefault extends Partial<iBXRestTask> {
56
56
  timeSpentInLogs: string;
57
57
  title: string;
58
58
  }
59
- export interface iBXRestParamTasksListBase extends iBXRestPagination {
60
- order?: iBXRestParamTaskListOrder;
61
- filter?: iBXRestFilterGenerator<iBXRestParamTaskListFilter>;
62
- select?: (iBXRestTaskFieldsName | '*' | 'UF_*')[];
63
- }
64
59
  export interface iBXRestParamTasksList<CustomFields extends object> extends iBXRestPagination {
65
60
  order?: iBXRestParamTaskListOrder;
66
61
  filter?: iBXRestFilterGenerator<iBXRestParamTaskListFilter>;
@@ -96,7 +91,7 @@ export interface iBXRestParamTaskListFilter {
96
91
  ID?: number | number[];
97
92
  ACTIVITY_DATE?: string;
98
93
  PARENT_ID?: number;
99
- GROUP_ID?: number;
94
+ GROUP_ID?: number | number[];
100
95
  CREATED_BY?: number | number[];
101
96
  STATUS_CHANGED_BY?: number;
102
97
  PRIORITY?: number;
@@ -110,11 +105,11 @@ export interface iBXRestParamTaskListFilter {
110
105
  SITE_ID?: number;
111
106
  ADD_IN_REPORT?: 'Y' | 'N';
112
107
  ALLOW_TIME_TRACKING?: 'Y' | 'N';
113
- DATE_START?: string;
114
- DEADLINE?: string;
115
- CREATED_DATE?: string;
116
- CLOSED_DATE?: string;
117
- CHANGED_DATE?: string;
108
+ DATE_START?: Date | string;
109
+ DEADLINE?: Date | string;
110
+ CREATED_DATE?: Date | string;
111
+ CLOSED_DATE?: Date | string;
112
+ CHANGED_DATE?: Date | string;
118
113
  ACCOMPLICE?: number | number[];
119
114
  AUDITOR?: number | number[];
120
115
  DEPENDS_ON?: number;
@@ -16,7 +16,7 @@ export interface iBXRestTask extends iBXRestBaseTask {
16
16
  statusChangedBy: number;
17
17
  statusChangedDate: Date;
18
18
  closedBy: number;
19
- closedDate: Date;
19
+ closedDate: Date | null;
20
20
  dateStart: Date;
21
21
  deadline: Date;
22
22
  startDatePlan: Date;
@@ -33,6 +33,7 @@ export interface iBXRestTask extends iBXRestBaseTask {
33
33
  responsible: iBXRestTaskPeople;
34
34
  accomplicesData: iBXRestTaskPeople[];
35
35
  allowTimeTracking: boolean;
36
+ tags: iBXRestTaskTag[];
36
37
  }
37
38
  export interface iBXRestHttpTask extends iBXRestBaseTask {
38
39
  id: string;
@@ -71,6 +72,17 @@ export interface iBXRestHttpTask extends iBXRestBaseTask {
71
72
  [key: number]: iBXRestHttpTaskPeople;
72
73
  };
73
74
  allowTimeTracking: iBXRestYesNo;
75
+ tags: iBXRestTaskHttpTag;
76
+ }
77
+ export interface iBXRestTaskTag {
78
+ id: number;
79
+ title: string;
80
+ }
81
+ export interface iBXRestTaskHttpTag {
82
+ [key: string]: {
83
+ id: string;
84
+ title: string;
85
+ };
74
86
  }
75
87
  export interface iBXRestHttpTaskGroupHttp {
76
88
  id: string;
@@ -99,12 +111,11 @@ export interface iBXRestBaseTask {
99
111
  exchangeModified: string;
100
112
  exchangeId: string;
101
113
  outlookVersion: string;
102
- durationFact: string;
114
+ durationFact: string | null;
103
115
  durationType: string;
104
116
  ufCrmTask: number[];
105
117
  ufTaskWebdavFiles: number[];
106
118
  ufMailMessage: string;
107
119
  auditors: number[];
108
120
  newCommentsCount: number;
109
- tags: string[];
110
121
  }