bx-rest 0.2.4 → 0.2.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.
- package/README.md +97 -97
- package/esm2022/functions/serializeJavascript.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/esm2022/request/bx-rest.module.mjs +1 -1
- package/esm2022/request/tasks/task.mjs +1 -1
- package/esm2022/request/tasks.mjs +1 -1
- package/esm2022/request/user.mjs +1 -1
- package/esm2022/request-navvy/tasks/task.mjs +1 -1
- package/esm2022/request-navvy/tasks.mjs +1 -1
- package/esm2022/request-navvy/user.mjs +1 -1
- package/esm2022/services/http/HttpBX.mjs +1 -1
- package/esm2022/services/http/sessionKey.mjs +1 -1
- package/esm2022/services/snack-bar/snack-bar.service.mjs +1 -1
- package/esm2022/services/snack-bar/toast-message/toast-message.component.mjs +3 -3
- package/esm2022/services/vanilla/JSON.mjs +1 -1
- package/esm2022/services/vanilla/localStorage.mjs +1 -1
- package/esm2022/services/vanilla//321/201ookies.mjs +1 -1
- package/esm2022/typification/auth/save.mjs +1 -1
- package/esm2022/typification/rest/base/YesNo.mjs +1 -1
- package/esm2022/typification/rest/base/filterGenerator.mjs +1 -1
- package/esm2022/typification/rest/base/sort.mjs +1 -1
- package/esm2022/typification/rest/lists/element/get.mjs +1 -1
- package/esm2022/typification/rest/task/base/fieldsName.mjs +1 -1
- package/esm2022/typification/rest/task/elapseditem/get.mjs +1 -1
- package/esm2022/typification/rest/task/elapseditem/item.mjs +1 -1
- package/esm2022/typification/rest/task/task.mjs +1 -1
- package/esm2022/typification/rest/tasks/task/approve.mjs +1 -1
- package/esm2022/typification/rest/tasks/task/complete.mjs +1 -1
- package/esm2022/typification/rest/tasks/task/defer.mjs +1 -1
- package/esm2022/typification/rest/tasks/task/list.mjs +1 -1
- package/esm2022/typification/rest/user/get.mjs +1 -1
- package/esm2022/typification/rest/user/search.mjs +1 -1
- package/esm2022/typification/rest/user/user.mjs +1 -1
- package/fesm2022/bx-rest.mjs +2 -2
- package/fesm2022/bx-rest.mjs.map +1 -1
- package/package.json +1 -1
- package/request/tasks/task.d.ts +6 -6
- package/typification/rest/base/filterGenerator.d.ts +4 -4
- package/typification/rest/lists/element/get.d.ts +2 -2
- package/typification/rest/task/elapseditem/get.d.ts +2 -2
- package/typification/rest/tasks/task/approve.d.ts +1 -1
- package/typification/rest/tasks/task/complete.d.ts +2 -2
- package/typification/rest/tasks/task/defer.d.ts +2 -2
- package/typification/rest/tasks/task/list.d.ts +2 -2
package/package.json
CHANGED
package/request/tasks/task.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { iBXRestParamTaskAdd } from '../../typification/rest/tasks/task/add';
|
|
|
4
4
|
import iBXRestParamTaskGet from '../../typification/rest/tasks/task/get';
|
|
5
5
|
import { iBXRestParamTasksList, iBXRestParamTasksListHttp } from '../../typification/rest/tasks/task/list';
|
|
6
6
|
import { iBXRestParamTaskGetAccess, iBXRestTaskGetAccess } from '../../typification/rest/task/access/getaccess';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { iBXRestTasksTaskApproveHttp } from '../../typification/rest/tasks/task/approve';
|
|
8
|
+
import { iBXRestTasksTaskCompleteHttp } from '../../typification/rest/tasks/task/complete';
|
|
9
|
+
import { iBXRestTasksTaskDeferHttp } from '../../typification/rest/tasks/task/defer';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class BXRestTasksTask {
|
|
12
12
|
private http;
|
|
@@ -57,13 +57,13 @@ export declare class BXRestTasksTask {
|
|
|
57
57
|
task: iBXRestHttpTask;
|
|
58
58
|
}> | undefined>;
|
|
59
59
|
approve(id: number): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
|
|
60
|
-
task:
|
|
60
|
+
task: iBXRestTasksTaskApproveHttp;
|
|
61
61
|
}> | undefined>;
|
|
62
62
|
complete(id: number): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
|
|
63
|
-
task:
|
|
63
|
+
task: iBXRestTasksTaskCompleteHttp;
|
|
64
64
|
}> | undefined>;
|
|
65
65
|
defer(id: number): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
|
|
66
|
-
task:
|
|
66
|
+
task: iBXRestTasksTaskDeferHttp;
|
|
67
67
|
}> | undefined>;
|
|
68
68
|
get(requestArray: iBXRestParamTaskGet): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
|
|
69
69
|
task: iBXRestHttpTask | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type
|
|
2
|
-
[Property in keyof Type as `${
|
|
1
|
+
export type iBXRestFilterGenerator<Type> = {
|
|
2
|
+
[Property in keyof Type as `${iBXRestFilterGeneratorKey<Property & string>}`]?: Type[Property];
|
|
3
3
|
};
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
4
|
+
export type iBXRestFilterGeneratorKey<T extends string> = `${iBXRestFilterKeys}${T}`;
|
|
5
|
+
export type iBXRestFilterKeys = '' | '<' | '>' | '!' | '<=' | '>=';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { iBXRestYesNo } from '../../base/YesNo';
|
|
2
|
-
import {
|
|
2
|
+
import { iBXRestFilterKeys } from '../../base/filterGenerator';
|
|
3
3
|
import { iBXRestPagination } from '../../base/ApiPaginationBX';
|
|
4
4
|
export interface iBXRestParamListsElementGet extends iBXRestPagination {
|
|
5
5
|
IBLOCK_TYPE_ID: 'lists' | 'bitrix_processes' | 'lists_socnet';
|
|
@@ -27,7 +27,7 @@ export interface iBXRestBaseListsElement {
|
|
|
27
27
|
CODE: string | null;
|
|
28
28
|
IBLOCK_SECTION_ID: string | null;
|
|
29
29
|
NAME: string;
|
|
30
|
-
[key: `${
|
|
30
|
+
[key: `${iBXRestFilterKeys}PROPERTY_${string}`]: {
|
|
31
31
|
[key: string]: string | iBXRestParamListsElementGetHtml;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { iBXRestParamSort } from '../../base/sort';
|
|
2
|
-
import {
|
|
2
|
+
import { iBXRestFilterGenerator } from '../../base/filterGenerator';
|
|
3
3
|
import { iBXRestAlternativePagination } from '../../base/ApiPaginationBX';
|
|
4
4
|
export interface iBXRestParamElapseditemGet extends iBXRestAlternativePagination {
|
|
5
5
|
TASKID?: number;
|
|
@@ -12,7 +12,7 @@ export interface iBXRestParamElapseditemGet extends iBXRestAlternativePagination
|
|
|
12
12
|
DATE_START?: iBXRestParamSort;
|
|
13
13
|
DATE_STOP?: iBXRestParamSort;
|
|
14
14
|
};
|
|
15
|
-
FILTER?:
|
|
15
|
+
FILTER?: iBXRestFilterGenerator<iBXRestParamElapseditemGetFilter>;
|
|
16
16
|
SELECT?: string[];
|
|
17
17
|
}
|
|
18
18
|
interface iBXRestParamElapseditemGetFilter {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { iBXRestTasksTaskApproveHttp } from './approve';
|
|
2
|
+
export interface iBXRestTasksTaskCompleteHttp extends iBXRestTasksTaskApproveHttp {
|
|
3
3
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { iBXRestTasksTaskApproveHttp } from './approve';
|
|
2
|
+
export interface iBXRestTasksTaskDeferHttp extends iBXRestTasksTaskApproveHttp {
|
|
3
3
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { iBXRestParamSort } from '../../base/sort';
|
|
2
2
|
import { iBXRestYesNo } from '../../base/YesNo';
|
|
3
3
|
import { iBXRestTaskFieldsName } from '../../task/base/fieldsName';
|
|
4
|
-
import {
|
|
4
|
+
import { iBXRestFilterGenerator } from '../../base/filterGenerator';
|
|
5
5
|
import { iBXRestPagination } from '../../base/ApiPaginationBX';
|
|
6
6
|
import { iBXRestHttpTask } from '../../task/task';
|
|
7
7
|
export interface iBXRestParamTasksListHttp {
|
|
@@ -10,7 +10,7 @@ export interface iBXRestParamTasksListHttp {
|
|
|
10
10
|
export interface iBXRestParamTasksList extends iBXRestPagination {
|
|
11
11
|
order?: iBXRestParamTaskListOrder;
|
|
12
12
|
filter?: iBXRestParamTaskListFilter;
|
|
13
|
-
select?:
|
|
13
|
+
select?: iBXRestFilterGenerator<iBXRestTaskFieldsName>[];
|
|
14
14
|
}
|
|
15
15
|
export interface iBXRestParamTaskListOrder {
|
|
16
16
|
ID?: iBXRestParamSort;
|