bx-rest 0.1.0 → 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.
- package/consts/part-name-metods.d.ts +9 -0
- package/esm2020/consts/part-name-metods.mjs +10 -1
- package/esm2020/map/lists.mjs +2 -2
- package/esm2020/map/task.mjs +10 -1
- package/esm2020/public-api.mjs +2 -2
- package/esm2020/request/bizproc/activity.mjs +23 -0
- package/esm2020/request/bizproc/event.mjs +19 -0
- package/esm2020/request/bizproc/robot.mjs +22 -0
- package/esm2020/request/bizproc/task.mjs +20 -0
- package/esm2020/request/bizproc/workflow/instance.mjs +19 -0
- package/esm2020/request/bizproc/workflow/template.mjs +27 -0
- package/esm2020/request/bizproc/workflow.mjs +31 -0
- package/esm2020/request/bizproc.mjs +25 -0
- package/esm2020/request/disk/file.mjs +3 -3
- package/esm2020/request/disk/folder.mjs +2 -2
- package/esm2020/request/disk/storage.mjs +3 -3
- package/esm2020/request/lists/element.mjs +5 -4
- package/esm2020/request/lists.mjs +2 -2
- package/esm2020/request/tasks/task.mjs +34 -1
- package/esm2020/request/user.mjs +40 -108
- package/esm2020/request-navvy/bizproc/workflow.mjs +22 -0
- package/esm2020/request-navvy/bizproc.mjs +60 -0
- package/esm2020/request-navvy/disk/file.mjs +12 -16
- package/esm2020/request-navvy/disk/folder.mjs +9 -10
- package/esm2020/request-navvy/disk/storage.mjs +20 -18
- package/esm2020/request-navvy/lists/element.mjs +11 -7
- package/esm2020/request-navvy/lists.mjs +2 -10
- package/esm2020/request-navvy/tasks/task.mjs +67 -19
- package/esm2020/request-navvy/user.mjs +33 -22
- package/esm2020/rest.mjs +21 -17
- package/esm2020/services/base.mjs +3 -3
- package/esm2020/services/http/HttpBX.mjs +44 -61
- package/esm2020/services/http/base/base.mjs +3 -4
- package/esm2020/services/http/base/http.mjs +6 -21
- package/esm2020/services/http/http.mjs +37 -103
- package/esm2020/services/http/sessionKey.mjs +128 -113
- package/esm2020/services/navvy.mjs +26 -0
- package/esm2020/services/vanilla/sessionStorage.mjs +23 -0
- package/esm2020/settings.mjs +2 -2
- package/esm2020/typification/auth/save.mjs +1 -1
- package/esm2020/typification/rest/base/OrderOptions.mjs +2 -0
- package/esm2020/typification/rest/base/sort.mjs +2 -0
- package/esm2020/typification/rest/bizproc/base/filedEnum.mjs +2 -0
- package/esm2020/typification/rest/bizproc/workflow/start.mjs +2 -0
- package/esm2020/typification/rest/bizproc/workflow/template/list.mjs +2 -0
- package/esm2020/typification/rest/lists/element/add.mjs +2 -0
- package/esm2020/typification/rest/task/base/fieldsName.mjs +2 -0
- package/esm2020/typification/rest/tasks/task/add.mjs +2 -0
- package/esm2020/typification/rest/tasks/task/get.mjs +2 -0
- package/esm2020/typification/rest/tasks/task/list.mjs +2 -0
- package/esm2020/typification/rest/user/get.mjs +1 -1
- package/fesm2015/bx-rest.mjs +970 -842
- package/fesm2015/bx-rest.mjs.map +1 -1
- package/fesm2020/bx-rest.mjs +973 -840
- package/fesm2020/bx-rest.mjs.map +1 -1
- package/map/lists.d.ts +1 -1
- package/map/task.d.ts +4 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/request/bizproc/activity.d.ts +12 -0
- package/request/bizproc/event.d.ts +8 -0
- package/request/bizproc/robot.d.ts +11 -0
- package/request/bizproc/task.d.ts +9 -0
- package/request/bizproc/workflow/instance.d.ts +8 -0
- package/request/bizproc/workflow/template.d.ts +16 -0
- package/request/bizproc/workflow.d.ts +20 -0
- package/request/bizproc.d.ts +16 -0
- package/request/lists/element.d.ts +2 -1
- package/request/lists.d.ts +1 -1
- package/request/tasks/task.d.ts +9 -1
- package/request/user.d.ts +7 -7
- package/request-navvy/bizproc/workflow.d.ts +12 -0
- package/request-navvy/bizproc.d.ts +24 -0
- package/request-navvy/disk/file.d.ts +7 -9
- package/request-navvy/disk/folder.d.ts +3 -1
- package/request-navvy/disk/storage.d.ts +5 -2
- package/request-navvy/lists/element.d.ts +6 -2
- package/request-navvy/lists.d.ts +1 -8
- package/request-navvy/tasks/task.d.ts +13 -3
- package/request-navvy/user.d.ts +12 -9
- package/rest.d.ts +13 -9
- package/services/http/HttpBX.d.ts +6 -6
- package/services/http/base/base.d.ts +4 -4
- package/services/http/base/http.d.ts +3 -3
- package/services/http/http.d.ts +3 -12
- package/services/http/sessionKey.d.ts +3 -23
- package/services/navvy.d.ts +11 -0
- package/services/vanilla/sessionStorage.d.ts +7 -0
- package/settings.d.ts +1 -1
- package/typification/auth/save.d.ts +1 -1
- package/typification/rest/base/OrderOptions.d.ts +1 -0
- package/typification/rest/base/sort.d.ts +1 -0
- package/typification/rest/bizproc/base/filedEnum.d.ts +1 -0
- package/typification/rest/bizproc/workflow/start.d.ts +5 -0
- package/typification/rest/bizproc/workflow/template/list.d.ts +8 -0
- package/typification/rest/lists/element/add.d.ts +9 -0
- package/typification/rest/task/base/fieldsName.d.ts +1 -0
- package/typification/rest/{task/fieldsForSend.d.ts → tasks/task/add.d.ts} +1 -1
- package/typification/rest/tasks/task/get.d.ts +5 -0
- package/typification/rest/tasks/task/list.d.ts +65 -0
- package/typification/rest/user/get.d.ts +7 -2
- package/esm2020/store/auth.mjs +0 -26
- package/esm2020/store/users.mjs +0 -67
- package/esm2020/typification/rest/task/fieldsForSend.mjs +0 -2
- package/store/auth.d.ts +0 -20
- package/store/users.d.ts +0 -34
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
|
|
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
|
-
|
|
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
package/public-api.d.ts
CHANGED
|
@@ -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,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
|
-
|
|
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
|
}
|
package/request/lists.d.ts
CHANGED
package/request/tasks/task.d.ts
CHANGED
|
@@ -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
|
}
|
package/request/user.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { iBXRestParamUserGet } from '../typification/rest/user/get';
|
|
2
2
|
import HttpBXServices from '../services/http/HttpBX';
|
|
3
3
|
import UserFilterSearch from '../typification/rest/user/UserFilterSearch';
|
|
4
|
-
import SnackBarService from '../services/snack-bar/snack-bar.service';
|
|
5
4
|
import { iBXRestUser, iBXRestUserHttp, iBXRestUserHttpField } from '../typification/rest/user/user';
|
|
6
5
|
import { iBXRestAnswer } from '../typification/rest/base/answer';
|
|
6
|
+
import { BXRestUserMap } from '../map/user';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class BXRestUser {
|
|
9
9
|
private http;
|
|
10
|
-
private
|
|
10
|
+
private BXRestUserMap;
|
|
11
11
|
url: {
|
|
12
12
|
admin: string[];
|
|
13
13
|
get: string[];
|
|
@@ -26,14 +26,14 @@ export declare class BXRestUser {
|
|
|
26
26
|
start: 0;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
constructor(http: HttpBXServices,
|
|
29
|
+
constructor(http: HttpBXServices, BXRestUserMap: BXRestUserMap);
|
|
30
30
|
admin(): import("rxjs").Observable<iBXRestAnswer<boolean> | undefined>;
|
|
31
|
-
get(params?:
|
|
31
|
+
get(params?: iBXRestParamUserGet): import("rxjs").Observable<iBXRestAnswer<iBXRestUserHttp[]> | undefined>;
|
|
32
32
|
current(): import("rxjs").Observable<iBXRestAnswer<iBXRestUserHttp> | undefined>;
|
|
33
|
-
|
|
33
|
+
update(user: iBXRestUser, fieldUpdate: string[]): import("rxjs").Observable<iBXRestAnswer<iBXRestUserHttp[]> | undefined>;
|
|
34
34
|
search(params: string | UserFilterSearch): import("rxjs").Observable<iBXRestAnswer<iBXRestAnswer<iBXRestUserHttp[]>> | undefined>;
|
|
35
|
+
access(access: string[]): import("rxjs").Observable<iBXRestAnswer<iBXRestAnswer<boolean> | undefined> | undefined>;
|
|
35
36
|
fields(): import("rxjs").Observable<iBXRestAnswer<iBXRestAnswer<iBXRestUserHttpField>> | undefined>;
|
|
36
|
-
update(user: iBXRestUser, fieldUpdate: string[]): import("rxjs").Observable<iBXRestAnswer<iBXRestUserHttp[]> | undefined> | import("rxjs").Observable<{}>;
|
|
37
37
|
private setDefParam;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestUser, never>;
|
|
39
39
|
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestUser>;
|
|
@@ -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
|
+
}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { BaseServices } from '../../services/base';
|
|
2
2
|
import { BXRestDiskFile } from '../../request/disk/file';
|
|
3
|
+
import { Navvy } from '../../services/navvy';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class BXRestNavvyDiskFile extends BaseServices {
|
|
5
6
|
private BXRestDiskFile;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
7
|
+
private Navvy;
|
|
8
|
+
constructor(BXRestDiskFile: BXRestDiskFile, Navvy: Navvy);
|
|
9
|
+
get(id: number): import("rxjs").Observable<(import("../../typification/rest/disk/file").iBXRestFileHttp & {
|
|
10
|
+
SIZE: number;
|
|
11
11
|
}) | undefined>;
|
|
12
|
-
markDel(id: number): import("rxjs").Observable<(import("../../typification/rest/
|
|
13
|
-
|
|
14
|
-
SIZE: number;
|
|
15
|
-
};
|
|
12
|
+
markDel(id: number): import("rxjs").Observable<(import("../../typification/rest/disk/file").iBXRestFileHttp & {
|
|
13
|
+
SIZE: number;
|
|
16
14
|
}) | undefined>;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyDiskFile, never>;
|
|
18
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyDiskFile>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import BXRestMapDiskFolder from '../../map/disk/folder';
|
|
2
2
|
import { BXRestDiskFolder } from '../../request/disk/folder';
|
|
3
|
+
import { Navvy } from '../../services/navvy';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class BXRestDiskNavvyFolder {
|
|
5
6
|
private BXRestDiskFolder;
|
|
6
7
|
private BXRestMapDiskFolder;
|
|
7
|
-
|
|
8
|
+
private Navvy;
|
|
9
|
+
constructor(BXRestDiskFolder: BXRestDiskFolder, BXRestMapDiskFolder: BXRestMapDiskFolder, Navvy: Navvy);
|
|
8
10
|
getchildren(id: number): import("rxjs").Observable<import("../../typification/rest/disk/map").iBXRestFileAndFolderMap>;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestDiskNavvyFolder, never>;
|
|
10
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestDiskNavvyFolder>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
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
|
+
import { Navvy } from '../../services/navvy';
|
|
5
|
+
import { iBXRestFolderInfo } from '../../typification/rest/disk/folder';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class BXRestNavvyDiskStorage {
|
|
6
8
|
private BXRestDiskStorage;
|
|
7
9
|
private BXRestMapDiskStorage;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
private Navvy;
|
|
11
|
+
constructor(BXRestDiskStorage: BXRestDiskStorage, BXRestMapDiskStorage: BXRestMapDiskStorage, Navvy: Navvy);
|
|
12
|
+
getforapp(): import("rxjs").Observable<iBXRestFolderInfo | undefined>;
|
|
10
13
|
getchildren(param: {
|
|
11
14
|
id: number;
|
|
12
15
|
filter?: any;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { iBXRestParamListsElementGet } from '../../typification/rest/lists/element/get';
|
|
2
2
|
import { BXRestListsElement } from '../../request/lists/element';
|
|
3
3
|
import BXRestListsElementMap from '../../map/lists/element';
|
|
4
|
+
import { Navvy } from '../../services/navvy';
|
|
5
|
+
import { iBXRestParamListsElementAdd } from '../../typification/rest/lists/element/add';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class BXRestNavvyListsElement {
|
|
6
8
|
private BXRestListsElement;
|
|
7
9
|
private BXRestMap;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
private Navvy;
|
|
11
|
+
constructor(BXRestListsElement: BXRestListsElement, BXRestMap: BXRestListsElementMap, Navvy: Navvy);
|
|
12
|
+
get(param: iBXRestParamListsElementGet): import("rxjs").Observable<import("../../typification/rest/lists/element/get").iBXRestListsElement[] | undefined>;
|
|
13
|
+
add(param: iBXRestParamListsElementAdd): import("rxjs").Observable<number | undefined>;
|
|
10
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyListsElement, never>;
|
|
11
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyListsElement>;
|
|
12
16
|
}
|
package/request-navvy/lists.d.ts
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { BXRestNavvyListsElement } from './lists/element';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
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
|
|
11
|
+
private BXRestTasksTask;
|
|
8
12
|
private snackBar;
|
|
9
13
|
private taskMap;
|
|
10
|
-
|
|
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
|
}
|
package/request-navvy/user.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Store } from '@ngrx/store';
|
|
3
|
-
import { storeUsers } from '../store/users';
|
|
4
1
|
import { BXRestUser } from '../request/user';
|
|
5
2
|
import { BXRestUserMap } from '../map/user';
|
|
3
|
+
import { iBXRestParamUserGet } from '../typification/rest/user/get';
|
|
4
|
+
import { Navvy } from '../services/navvy';
|
|
5
|
+
import { iBXRestUser } from '../typification/rest/user/user';
|
|
6
|
+
import UserFilterSearch from '../typification/rest/user/UserFilterSearch';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class BXRestNavvyUser {
|
|
8
9
|
private BXRestUser;
|
|
9
|
-
private store;
|
|
10
10
|
private BXRestUserMap;
|
|
11
|
-
|
|
12
|
-
constructor(BXRestUser: BXRestUser,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
private Navvy;
|
|
12
|
+
constructor(BXRestUser: BXRestUser, BXRestUserMap: BXRestUserMap, Navvy: Navvy);
|
|
13
|
+
get(params?: iBXRestParamUserGet): import("rxjs").Observable<import("../typification/rest/user/user").iBXRestUserHttp[] | undefined>;
|
|
14
|
+
current(update?: boolean): import("rxjs").Observable<iBXRestUser | undefined>;
|
|
15
|
+
update(user: iBXRestUser, fieldUpdate: string[]): import("rxjs").Observable<import("../typification/rest/user/user").iBXRestUserHttp[] | undefined>;
|
|
16
16
|
private self;
|
|
17
|
+
search(params: string | UserFilterSearch): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<import("../typification/rest/user/user").iBXRestUserHttp[]> | undefined>;
|
|
18
|
+
access(access: string[]): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<boolean> | undefined>;
|
|
19
|
+
fields(): import("rxjs").Observable<import("../typification/rest/base/answer").iBXRestAnswer<import("../typification/rest/user/user").iBXRestUserHttpField> | undefined>;
|
|
17
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestNavvyUser, never>;
|
|
18
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestNavvyUser>;
|
|
19
22
|
}
|
package/rest.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { BXRestUser } from './request/user';
|
|
2
|
-
import BXRestLists from './request/lists';
|
|
3
|
-
import
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
31
|
-
constructor(lists:
|
|
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,10 +1,10 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { iHttpParamSettings } from '../../typification/rest/settings';
|
|
3
|
-
import
|
|
3
|
+
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
|
|
7
|
+
export default class HttpBXServices extends HttpServices {
|
|
8
8
|
timeNowOnServer(): Observable<Date | undefined>;
|
|
9
9
|
/**
|
|
10
10
|
* Это пиздец а не метод
|
|
@@ -12,10 +12,10 @@ export default class HttpBXServices extends BaseHttpServices {
|
|
|
12
12
|
*/
|
|
13
13
|
branch<T, A>(param: iBatchRequestParamArr<T> | iBatchRequestParam<T>[]): Observable<iBatchRequestAnswer<A>[] | undefined>;
|
|
14
14
|
prepareBatch<T>(param: iBatchRequestParamArr<T> | iBatchRequestParam<T>[]): iBatchRequestParamHttp;
|
|
15
|
-
post<T>(name: string[], params?: any,
|
|
16
|
-
get<T>(name: string[], params?: any,
|
|
17
|
-
httpPost<T>(url: string, params?: any,
|
|
18
|
-
httpGet<T>(url: string, params?: any,
|
|
15
|
+
post<T>(name: string[], params?: any, settings?: iHttpParamSettings): Observable<iBXRestAnswer<T> | undefined>;
|
|
16
|
+
get<T>(name: string[], params?: any, settings?: iHttpParamSettings): Observable<iBXRestAnswer<T> | undefined>;
|
|
17
|
+
httpPost<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
18
|
+
httpGet<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
19
19
|
getNameMethod(arr: string[]): string;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<HttpBXServices, never>;
|
|
21
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpBXServices>;
|
|
@@ -2,15 +2,15 @@ import { iHttpParamSettings } from '../../../typification/rest/settings';
|
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import SnackBarService from '../../../services/snack-bar/snack-bar.service';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { HttpData } from '
|
|
5
|
+
import { HttpData } from '../HttpData';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare abstract class BaseHttp extends HttpData {
|
|
8
8
|
http: HttpClient;
|
|
9
9
|
snackBar: SnackBarService;
|
|
10
10
|
protected constructor(http: HttpClient, snackBar: SnackBarService);
|
|
11
|
-
abstract httpGet<T>(url: string, params: any,
|
|
12
|
-
abstract httpPost<T>(url: string, params: any,
|
|
13
|
-
handleError<T>(result?: T
|
|
11
|
+
abstract httpGet<T>(url: string, params: any, settings: iHttpParamSettings): Observable<T | undefined>;
|
|
12
|
+
abstract httpPost<T>(url: string, params: any, settings: iHttpParamSettings): Observable<T | undefined>;
|
|
13
|
+
handleError<T>(result?: T): (error: Error) => Observable<T>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseHttp, never>;
|
|
15
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<BaseHttp>;
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { iHttpParamSettings } from '../../../typification/rest/settings';
|
|
3
|
-
import { BaseHttp } from '
|
|
3
|
+
import { BaseHttp } from './base';
|
|
4
4
|
export declare class BaseHttpServices extends BaseHttp {
|
|
5
|
-
httpGet<T>(url: string, params?: {},
|
|
6
|
-
httpPost<T>(url: string, params?: any,
|
|
5
|
+
httpGet<T>(url: string, params?: {}, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
6
|
+
httpPost<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
7
7
|
}
|
package/services/http/http.d.ts
CHANGED
|
@@ -3,22 +3,13 @@ import { HttpClient } from '@angular/common/http';
|
|
|
3
3
|
import SnackBarService from '../../services/snack-bar/snack-bar.service';
|
|
4
4
|
import SessionKeyServices from '../../services/http/sessionKey';
|
|
5
5
|
import { iHttpParamSettings } from '../../typification/rest/settings';
|
|
6
|
-
import { iBatchRequestAnswer, iBatchRequestParam, iBatchRequestParamArr, iBatchRequestParamHttp } from '../../typification/rest/batch/batchRequestParam';
|
|
7
6
|
import { BaseHttpServices } from './base/http';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
|
-
export
|
|
8
|
+
export declare class HttpServices extends BaseHttpServices {
|
|
10
9
|
session: SessionKeyServices;
|
|
11
10
|
constructor(http: HttpClient, snackBar: SnackBarService, session: SessionKeyServices);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* Это пиздец а не метод
|
|
15
|
-
* @param param
|
|
16
|
-
*/
|
|
17
|
-
branch<T, A>(param: iBatchRequestParamArr<T> | iBatchRequestParam<T>[]): Observable<iBatchRequestAnswer<A>[] | undefined>;
|
|
18
|
-
prepareBatch<T>(param: iBatchRequestParamArr<T> | iBatchRequestParam<T>[]): iBatchRequestParamHttp;
|
|
19
|
-
httpPost<T>(url: string, params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
20
|
-
httpGet<T>(url: string, params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
21
|
-
getNameMethod(arr: string[]): string;
|
|
11
|
+
httpPost<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
12
|
+
httpGet<T>(url: string, params?: any, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
22
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<HttpServices, never>;
|
|
23
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpServices>;
|
|
24
15
|
}
|