bx-rest 0.0.14 → 0.0.16
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/esm2020/public-api.mjs +2 -5
- package/fesm2015/bx-rest.mjs +1 -1784
- package/fesm2015/bx-rest.mjs.map +1 -1
- package/fesm2020/bx-rest.mjs +1 -1779
- package/fesm2020/bx-rest.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -3
- package/consts/part-name-metods.d.ts +0 -74
- package/consts/time.d.ts +0 -3
- package/esm2020/consts/part-name-metods.mjs +0 -75
- package/esm2020/consts/time.mjs +0 -4
- package/esm2020/functions/mapResult.mjs +0 -7
- package/esm2020/functions/serializeJavascript.mjs +0 -200
- package/esm2020/map/base.mjs +0 -14
- package/esm2020/map/lists/element.mjs +0 -22
- package/esm2020/request/bx-rest.module.mjs +0 -28
- package/esm2020/request/lists/element.mjs +0 -64
- package/esm2020/request/lists.mjs +0 -46
- package/esm2020/request/user.mjs +0 -227
- package/esm2020/services/base.mjs +0 -174
- package/esm2020/services/http/HttpBX.mjs +0 -128
- package/esm2020/services/http/HttpData.mjs +0 -124
- package/esm2020/services/http/base/base.mjs +0 -29
- package/esm2020/services/http/base/http.mjs +0 -28
- package/esm2020/services/http/http.mjs +0 -135
- package/esm2020/services/http/sessionKey.mjs +0 -180
- package/esm2020/services/map/base.mjs +0 -14
- package/esm2020/services/map/rest/user.mjs +0 -89
- package/esm2020/services/snack-bar/snack-bar.service.mjs +0 -42
- package/esm2020/services/snack-bar/toast-message/toast-message.component.mjs +0 -31
- package/esm2020/services/vanilla/JSON.mjs +0 -20
- package/esm2020/services/vanilla/localStorage.mjs +0 -35
- package/esm2020/services/vanilla//321/201ookies.mjs +0 -44
- package/esm2020/store/auth.mjs +0 -26
- package/esm2020/store/users.mjs +0 -67
- package/esm2020/typification/auth/save.mjs +0 -2
- package/esm2020/typification/rest/api-lib.mjs +0 -21
- package/esm2020/typification/rest/base/YesNo.mjs +0 -2
- package/esm2020/typification/rest/base/httpAnswerBX.mjs +0 -2
- package/esm2020/typification/rest/batch/batchRequestParam.mjs +0 -2
- package/esm2020/typification/rest/lib.mjs +0 -2
- package/esm2020/typification/rest/lists/element/get.mjs +0 -2
- package/esm2020/typification/rest/settings.mjs +0 -2
- package/esm2020/typification/rest/support/param.mjs +0 -2
- package/esm2020/typification/rest/user/UserFilterSearch.mjs +0 -2
- package/esm2020/typification/rest/user/get.mjs +0 -2
- package/esm2020/typification/rest/user/user.mjs +0 -2
- package/functions/mapResult.d.ts +0 -2
- package/functions/serializeJavascript.d.ts +0 -2
- package/map/base.d.ts +0 -6
- package/map/lists/element.d.ts +0 -8
- package/request/bx-rest.module.d.ts +0 -8
- package/request/lists/element.d.ts +0 -29
- package/request/lists.d.ts +0 -18
- package/request/user.d.ts +0 -59
- package/services/base.d.ts +0 -32
- package/services/http/HttpBX.d.ts +0 -26
- package/services/http/HttpData.d.ts +0 -13
- package/services/http/base/base.d.ts +0 -16
- package/services/http/base/http.d.ts +0 -7
- package/services/http/http.d.ts +0 -31
- package/services/http/sessionKey.d.ts +0 -34
- package/services/map/base.d.ts +0 -6
- package/services/map/rest/user.d.ts +0 -12
- package/services/snack-bar/snack-bar.service.d.ts +0 -12
- package/services/snack-bar/toast-message/toast-message.component.d.ts +0 -16
- package/services/vanilla/JSON.d.ts +0 -7
- package/services/vanilla/localStorage.d.ts +0 -10
- package/services/vanilla//321/201ookies.d.ts +0 -9
- package/store/auth.d.ts +0 -20
- package/store/users.d.ts +0 -34
- package/typification/auth/save.d.ts +0 -14
- package/typification/rest/api-lib.d.ts +0 -9
- package/typification/rest/base/YesNo.d.ts +0 -1
- package/typification/rest/base/httpAnswerBX.d.ts +0 -15
- package/typification/rest/batch/batchRequestParam.d.ts +0 -16
- package/typification/rest/lib.d.ts +0 -18
- package/typification/rest/lists/element/get.d.ts +0 -28
- package/typification/rest/settings.d.ts +0 -6
- package/typification/rest/support/param.d.ts +0 -5
- package/typification/rest/user/UserFilterSearch.d.ts +0 -43
- package/typification/rest/user/get.d.ts +0 -13
- package/typification/rest/user/user.d.ts +0 -62
package/request/user.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { iBXGetParam } from '../typification/rest/user/get';
|
|
3
|
-
import HttpBXServices from '../services/http/HttpBX';
|
|
4
|
-
import UserFilterSearch from '../typification/rest/user/UserFilterSearch';
|
|
5
|
-
import { Store } from '@ngrx/store';
|
|
6
|
-
import { storeUsers } from '../store/users';
|
|
7
|
-
import { DatePipe } from '@angular/common';
|
|
8
|
-
import { BitrixApiUserMapServices } from '../services/map/rest/user';
|
|
9
|
-
import SnackBarService from '../services/snack-bar/snack-bar.service';
|
|
10
|
-
import iHttpAnswerBX from '../typification/rest/base/httpAnswerBX';
|
|
11
|
-
import { iBXRestUser, iBXRestUserHttp, iBXRestUserHttpField } from '../typification/rest/user/user';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class BXRestUser {
|
|
14
|
-
private http;
|
|
15
|
-
private snackBar;
|
|
16
|
-
private store;
|
|
17
|
-
private userMap;
|
|
18
|
-
private datePipe;
|
|
19
|
-
url: {
|
|
20
|
-
admin: string[];
|
|
21
|
-
get: string[];
|
|
22
|
-
current: string[];
|
|
23
|
-
update: string[];
|
|
24
|
-
search: string[];
|
|
25
|
-
access: string[];
|
|
26
|
-
fields: string[];
|
|
27
|
-
userfield: {
|
|
28
|
-
list: string[];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
def: {
|
|
32
|
-
params: {
|
|
33
|
-
ACTIVE: 1;
|
|
34
|
-
start: 0;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
user$: Observable<storeUsers>;
|
|
38
|
-
constructor(http: HttpBXServices, snackBar: SnackBarService, store: Store<{
|
|
39
|
-
users: storeUsers;
|
|
40
|
-
}>, userMap: BitrixApiUserMapServices, datePipe: DatePipe);
|
|
41
|
-
admin(): Observable<iHttpAnswerBX<boolean> | undefined>;
|
|
42
|
-
get(params?: iBXGetParam): Observable<iHttpAnswerBX<iBXRestUserHttp[]> | undefined>;
|
|
43
|
-
current(update?: boolean): Observable<iBXRestUser | undefined>;
|
|
44
|
-
private getSelfHttp;
|
|
45
|
-
access(access: string[], textError?: string): Observable<iHttpAnswerBX<boolean> | undefined>;
|
|
46
|
-
private saveArrUser;
|
|
47
|
-
search(params: string | UserFilterSearch): Observable<iHttpAnswerBX<iBXRestUserHttp[]> | undefined>;
|
|
48
|
-
fields(): Observable<iHttpAnswerBX<iBXRestUserHttpField> | undefined>;
|
|
49
|
-
update(user: iBXRestUser, fieldUpdate: string[]): Observable<iHttpAnswerBX<iBXRestUserHttp[]> | undefined> | Observable<{}>;
|
|
50
|
-
private setDefParam;
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestUser, never>;
|
|
52
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestUser>;
|
|
53
|
-
}
|
|
54
|
-
declare const BXRestUserRes_base: typeof BXRestUser;
|
|
55
|
-
export declare class BXRestUserRes extends BXRestUserRes_base {
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BXRestUserRes, never>;
|
|
57
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BXRestUserRes>;
|
|
58
|
-
}
|
|
59
|
-
export {};
|
package/services/base.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DateTimeOptions } from 'luxon/src/datetime';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BaseServices {
|
|
4
|
-
toStr(val: any): string;
|
|
5
|
-
toNum(val: any): number;
|
|
6
|
-
toDate(val: number | string | Date, format?: string, opt?: DateTimeOptions): Date;
|
|
7
|
-
getBXStrTime(date: Date): string;
|
|
8
|
-
toISOStringWithTimezone(date: Date): string;
|
|
9
|
-
toBool(val: any): boolean;
|
|
10
|
-
toBXYorN(val: boolean): "N" | "Y";
|
|
11
|
-
typeof(val: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
|
12
|
-
typeDefClass(val: object): undefined | null | 'date';
|
|
13
|
-
toJSON(val: object): string;
|
|
14
|
-
fromJSON<T>(val: string): T | undefined;
|
|
15
|
-
prepareBaseAddress(url: string, add?: string): string;
|
|
16
|
-
getHomeAddress(): string;
|
|
17
|
-
dateDiff(a: Date, b: Date): Date;
|
|
18
|
-
dateDiffInDays(a: Date, b: Date): number;
|
|
19
|
-
getBase64File(file: File): Promise<unknown>;
|
|
20
|
-
getBase64FileLikeStr(file: File): Promise<{
|
|
21
|
-
header: string;
|
|
22
|
-
val: string;
|
|
23
|
-
} | undefined>;
|
|
24
|
-
sumArray(numbers: number[]): number;
|
|
25
|
-
isItTheSameDate(date1: Date, date2: Date): boolean;
|
|
26
|
-
toUnix(date: Date): number;
|
|
27
|
-
arrSum(x: number[]): number;
|
|
28
|
-
getBaseUrlHttps(url: string, component?: boolean): string;
|
|
29
|
-
cropUrl(url: string): string;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseServices, never>;
|
|
31
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BaseServices>;
|
|
32
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { iHttpParamSettings } from '../../typification/rest/settings';
|
|
3
|
-
import BaseHttpServices from '../../services/http/http';
|
|
4
|
-
import { iBatchRequestAnswer, iBatchRequestParam, iBatchRequestParamArr, iBatchRequestParamHttp } from '../../typification/rest/batch/batchRequestParam';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export default class HttpBXServices extends BaseHttpServices {
|
|
7
|
-
timeNowOnServer(): Observable<Date | undefined>;
|
|
8
|
-
/**
|
|
9
|
-
* Это пиздец а не метод
|
|
10
|
-
* @param param
|
|
11
|
-
*/
|
|
12
|
-
branch<T, A>(param: iBatchRequestParamArr<T> | iBatchRequestParam<T>[]): Observable<iBatchRequestAnswer<A>[] | undefined>;
|
|
13
|
-
prepareBatch<T>(param: iBatchRequestParamArr<T> | iBatchRequestParam<T>[]): iBatchRequestParamHttp;
|
|
14
|
-
mapBranchResult<T>(res: iBatchRequestAnswer<T>[]): {
|
|
15
|
-
[key: string]: T;
|
|
16
|
-
[key: number]: T;
|
|
17
|
-
};
|
|
18
|
-
mapBranchResultWithoutKey<T>(res: iBatchRequestAnswer<T>[]): T[];
|
|
19
|
-
post<T>(name: string[], params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
20
|
-
get<T>(name: string[], params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
21
|
-
httpPost<T>(url: string, params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
22
|
-
httpGet<T>(url: string, params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
23
|
-
getNameMethod(arr: string[]): string;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HttpBXServices, never>;
|
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HttpBXServices>;
|
|
26
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseServices } from '../../services/base';
|
|
2
|
-
import { HttpParams } from '@angular/common/http';
|
|
3
|
-
import { iHttpParamSettings } from '../../typification/rest/settings';
|
|
4
|
-
import iHttpAnswerBX from '../../typification/rest/base/httpAnswerBX';
|
|
5
|
-
export declare class HttpData extends BaseServices {
|
|
6
|
-
defSettings: iHttpParamSettings;
|
|
7
|
-
getHttpParamsGet(// не так уж и сложно сделать сложенный HttpParams, да гугл?
|
|
8
|
-
obj: any, sendHttpParams?: HttpParams, thisArray?: boolean, nesting?: string[], _?: iHttpParamSettings): any;
|
|
9
|
-
getHttpParamsPost(obj: any, sendHttpParams?: FormData, thisArray?: boolean, nesting?: string[], settings?: iHttpParamSettings): any;
|
|
10
|
-
mapResult<T>(v: iHttpAnswerBX<T> | undefined): T | undefined;
|
|
11
|
-
sliceArrayIntoChunks(arr: any[], chunkSize: number): any[][];
|
|
12
|
-
removingMultipleSlashes(str: string): string;
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { iHttpParamSettings } from '../../../typification/rest/settings';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import SnackBarService from '../../../services/snack-bar/snack-bar.service';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { HttpData } from '../../../services/http/HttpData';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare abstract class BaseHttp extends HttpData {
|
|
8
|
-
http: HttpClient;
|
|
9
|
-
snackBar: SnackBarService;
|
|
10
|
-
protected constructor(http: HttpClient, snackBar: SnackBarService);
|
|
11
|
-
abstract httpGet<T>(url: string, params: any, textError: string, settings: iHttpParamSettings): Observable<T | undefined>;
|
|
12
|
-
abstract httpPost<T>(url: string, params: any, textError: string, settings: iHttpParamSettings): Observable<T | undefined>;
|
|
13
|
-
handleError<T>(result?: T, textError?: string): (error: Error) => Observable<T>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseHttp, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BaseHttp>;
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { iHttpParamSettings } from '../../../typification/rest/settings';
|
|
3
|
-
import { BaseHttp } from '../../../services/http/base/base';
|
|
4
|
-
export declare class BaseHttpServices extends BaseHttp {
|
|
5
|
-
httpGet<T>(url: string, params?: {}, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
6
|
-
httpPost<T>(url: string, params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
7
|
-
}
|
package/services/http/http.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import SnackBarService from '../../services/snack-bar/snack-bar.service';
|
|
4
|
-
import SessionKeyServices from '../../services/http/sessionKey';
|
|
5
|
-
import { iHttpParamSettings } from '../../typification/rest/settings';
|
|
6
|
-
import { iBatchRequestAnswer, iBatchRequestParam, iBatchRequestParamArr, iBatchRequestParamHttp } from '../../typification/rest/batch/batchRequestParam';
|
|
7
|
-
import { BaseHttpServices } from './base/http';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export default class HttpServices extends BaseHttpServices {
|
|
10
|
-
session: SessionKeyServices;
|
|
11
|
-
constructor(http: HttpClient, snackBar: SnackBarService, session: SessionKeyServices);
|
|
12
|
-
timeNowOnServer(): Observable<Date | undefined>;
|
|
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
|
-
mapBranchResult<T>(res: iBatchRequestAnswer<T>[]): {
|
|
20
|
-
[key: string]: T;
|
|
21
|
-
[key: number]: T;
|
|
22
|
-
};
|
|
23
|
-
mapBranchResultWithoutKey<T>(res: iBatchRequestAnswer<T>[]): T[];
|
|
24
|
-
post<T>(name: string[], params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
25
|
-
get<T>(name: string[], params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
26
|
-
httpPost<T>(url: string, params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
27
|
-
httpGet<T>(url: string, params?: any, textError?: string, settings?: iHttpParamSettings): Observable<T | undefined>;
|
|
28
|
-
getNameMethod(arr: string[]): string;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HttpServices, never>;
|
|
30
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HttpServices>;
|
|
31
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Store } from '@ngrx/store';
|
|
2
|
-
import saveApplicationAuth from '../../typification/auth/save';
|
|
3
|
-
import { Observable, Subscription } from 'rxjs';
|
|
4
|
-
import { ActivatedRoute } from '@angular/router';
|
|
5
|
-
import { BaseServices } from '../../services/base';
|
|
6
|
-
import { RestServices } from '../../typification/rest/api-lib';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
declare type IKeyAuth = 'sessid' | 'auth' | string;
|
|
9
|
-
export default class SessionKeyServices extends BaseServices {
|
|
10
|
-
store: Store<{
|
|
11
|
-
auth: saveApplicationAuth;
|
|
12
|
-
}>;
|
|
13
|
-
private route;
|
|
14
|
-
BxApiLib: RestServices;
|
|
15
|
-
authHave: boolean;
|
|
16
|
-
authData$: Observable<saveApplicationAuth>;
|
|
17
|
-
authData: saveApplicationAuth | undefined;
|
|
18
|
-
subscribe: {
|
|
19
|
-
authData: Subscription;
|
|
20
|
-
};
|
|
21
|
-
constructor(store: Store<{
|
|
22
|
-
auth: saveApplicationAuth;
|
|
23
|
-
}>, route: ActivatedRoute, BxApiLib: RestServices);
|
|
24
|
-
subscribeAll(): void;
|
|
25
|
-
getAuth(): string;
|
|
26
|
-
getKeyAuth(): IKeyAuth;
|
|
27
|
-
getSessid(): any;
|
|
28
|
-
setAuthParams<T>(params: any): boolean;
|
|
29
|
-
getAuthParams(): Observable<string | undefined>;
|
|
30
|
-
getBaseUrl(): Observable<string | undefined>;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SessionKeyServices, never>;
|
|
32
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SessionKeyServices>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
package/services/map/base.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import BaseMapServices from '../base';
|
|
2
|
-
import { iBXRestUser, iBXRestUserHttp } from '../../../typification/rest/user/user';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BitrixApiUserMapServices extends BaseMapServices {
|
|
5
|
-
HttpToBX(user: iBXRestUserHttp): iBXRestUser;
|
|
6
|
-
BXtoHttp(user: iBXRestUser): iBXRestUserHttp;
|
|
7
|
-
getFIO(user: iBXRestUser): string;
|
|
8
|
-
getFI(user: iBXRestUser): string;
|
|
9
|
-
getFIOShort(user: iBXRestUser): string;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BitrixApiUserMapServices, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BitrixApiUserMapServices>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export default class SnackBarService {
|
|
4
|
-
private snackBar;
|
|
5
|
-
constructor(snackBar: MatSnackBar);
|
|
6
|
-
error(message: string, sec?: number): void;
|
|
7
|
-
warning(message: string, sec?: number): void;
|
|
8
|
-
success(message: string, sec?: number): void;
|
|
9
|
-
standardMessage(message: string, sec?: number, name?: string): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SnackBarService>;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MatSnackBarRef } from '@angular/material/snack-bar';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ToastMessageComponent {
|
|
4
|
-
data: {
|
|
5
|
-
message: string;
|
|
6
|
-
type: 'error' | 'warning' | 'success';
|
|
7
|
-
};
|
|
8
|
-
snackBarRef: MatSnackBarRef<any>;
|
|
9
|
-
constructor(data: {
|
|
10
|
-
message: string;
|
|
11
|
-
type: 'error' | 'warning' | 'success';
|
|
12
|
-
});
|
|
13
|
-
getClass(): string;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastMessageComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToastMessageComponent, "app-view", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export default class JSONServices {
|
|
3
|
-
static deserialize(data: any): any;
|
|
4
|
-
static serialize(data: any): any;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JSONServices, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<JSONServices>;
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class LocalStorageServices {
|
|
3
|
-
static get(name: string): any;
|
|
4
|
-
static getObj<T>(name: string): T | null;
|
|
5
|
-
static set(name: string, value: string): void;
|
|
6
|
-
static setObj(name: string, value: any): void;
|
|
7
|
-
static del(name: string): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageServices, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageServices>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export default class CookiesServices {
|
|
3
|
-
static get(name: string): string;
|
|
4
|
-
static set(name: string, value: string, age?: number): void;
|
|
5
|
-
static setObj(name: string, value: any, age?: number): void;
|
|
6
|
-
static getObj<T>(name: string): T | false;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CookiesServices, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CookiesServices>;
|
|
9
|
-
}
|
package/store/auth.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import saveApplicationAuth from '../typification/auth/save';
|
|
3
|
-
export interface saveApplicationAuthPath {
|
|
4
|
-
access_token?: string;
|
|
5
|
-
client_endpoint?: string;
|
|
6
|
-
domain?: string;
|
|
7
|
-
expires?: number;
|
|
8
|
-
expires_in?: number;
|
|
9
|
-
member_id?: string;
|
|
10
|
-
refresh_token?: string;
|
|
11
|
-
scope?: string;
|
|
12
|
-
server_endpoint?: string;
|
|
13
|
-
status?: string;
|
|
14
|
-
user_id?: number;
|
|
15
|
-
type?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const save: import("@ngrx/store").ActionCreator<"[Auth Component] Save", (props: saveApplicationAuth | saveApplicationAuthPath) => (saveApplicationAuth | saveApplicationAuthPath) & import("@ngrx/store/src/models").TypedAction<"[Auth Component] Save">>;
|
|
18
|
-
export declare const saveAccessToken: import("@ngrx/store").ActionCreator<"[Auth Component] SaveAccessToken", (props: saveApplicationAuthPath) => saveApplicationAuthPath & import("@ngrx/store/src/models").TypedAction<"[Auth Component] SaveAccessToken">>;
|
|
19
|
-
export declare const initialState: saveApplicationAuth;
|
|
20
|
-
export declare function authReducer(state: saveApplicationAuth | undefined, action: Action): saveApplicationAuth;
|
package/store/users.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { iBXRestUser } from '../typification/rest/user/user';
|
|
3
|
-
export interface storeUsers {
|
|
4
|
-
load: {
|
|
5
|
-
all: boolean;
|
|
6
|
-
department: number[];
|
|
7
|
-
};
|
|
8
|
-
self: iBXRestUser | undefined;
|
|
9
|
-
data: iBXRestUser[];
|
|
10
|
-
}
|
|
11
|
-
export declare const save: import("@ngrx/store").ActionCreator<"[Users Component] Save", (props: iBXRestUser) => iBXRestUser & import("@ngrx/store/src/models").TypedAction<"[Users Component] Save">>;
|
|
12
|
-
export declare const saveArr: import("@ngrx/store").ActionCreator<"[Users Component] Save Arr", (props: {
|
|
13
|
-
arr: iBXRestUser[];
|
|
14
|
-
}) => {
|
|
15
|
-
arr: iBXRestUser[];
|
|
16
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Users Component] Save Arr">>;
|
|
17
|
-
export declare const update: import("@ngrx/store").ActionCreator<"[Users Component] Update", (props: iBXRestUser) => iBXRestUser & import("@ngrx/store/src/models").TypedAction<"[Users Component] Update">>;
|
|
18
|
-
export declare const loadAll: import("@ngrx/store").ActionCreator<"[Users Component] loadAll", (props: {
|
|
19
|
-
load: true;
|
|
20
|
-
}) => {
|
|
21
|
-
load: true;
|
|
22
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Users Component] loadAll">>;
|
|
23
|
-
export declare const saveSelf: import("@ngrx/store").ActionCreator<"[Users Component] saveSelf", (props: {
|
|
24
|
-
self: iBXRestUser;
|
|
25
|
-
}) => {
|
|
26
|
-
self: iBXRestUser;
|
|
27
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Users Component] saveSelf">>;
|
|
28
|
-
export declare const saveIDLoadedDepartment: import("@ngrx/store").ActionCreator<"[Users Component] saveIDLoadedDepartment", (props: {
|
|
29
|
-
id: number[];
|
|
30
|
-
}) => {
|
|
31
|
-
id: number[];
|
|
32
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Users Component] saveIDLoadedDepartment">>;
|
|
33
|
-
export declare const initialState: storeUsers;
|
|
34
|
-
export declare function usersReducer(state: storeUsers | undefined, action: Action): storeUsers;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default interface saveApplicationAuth {
|
|
2
|
-
access_token: string;
|
|
3
|
-
client_endpoint: string;
|
|
4
|
-
domain: string;
|
|
5
|
-
expires: number;
|
|
6
|
-
expires_in: number;
|
|
7
|
-
member_id: string;
|
|
8
|
-
refresh_token: string;
|
|
9
|
-
scope: string;
|
|
10
|
-
server_endpoint: string;
|
|
11
|
-
status: string;
|
|
12
|
-
user_id: number;
|
|
13
|
-
state?: any;
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { iRestLib } from './lib';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class RestServices {
|
|
4
|
-
BX24: iRestLib | false;
|
|
5
|
-
constructor();
|
|
6
|
-
init(callBack: Function): any;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RestServices, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RestServices>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type iBXRestYesNo = 'Y' | 'N';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default interface iHttpAnswerBX<T> {
|
|
2
|
-
result?: T | undefined;
|
|
3
|
-
next?: number;
|
|
4
|
-
total?: number;
|
|
5
|
-
time?: {
|
|
6
|
-
start: number;
|
|
7
|
-
finish: number;
|
|
8
|
-
duration: number;
|
|
9
|
-
processing: number;
|
|
10
|
-
date_start: string;
|
|
11
|
-
date_finish: string;
|
|
12
|
-
};
|
|
13
|
-
error?: string;
|
|
14
|
-
error_description?: string;
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import iHttpAnswerBX from '../../../typification/rest/base/httpAnswerBX';
|
|
2
|
-
export declare type keyBatch = string | number;
|
|
3
|
-
export interface iBatchRequestParam<T> {
|
|
4
|
-
name: string;
|
|
5
|
-
param: T;
|
|
6
|
-
}
|
|
7
|
-
export declare type iBatchRequestParamHttp = {
|
|
8
|
-
[key: keyBatch]: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type iBatchRequestParamArr<T> = {
|
|
11
|
-
[key: keyBatch]: iBatchRequestParam<T>;
|
|
12
|
-
};
|
|
13
|
-
export interface iBatchRequestAnswer<T> extends iHttpAnswerBX<iHttpAnswerBX<{
|
|
14
|
-
[key: keyBatch]: T;
|
|
15
|
-
}>> {
|
|
16
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface iRestLib {
|
|
2
|
-
init: Function;
|
|
3
|
-
getAuth: () => iRestLibGetAuth;
|
|
4
|
-
placement: {
|
|
5
|
-
info: () => {
|
|
6
|
-
options: any;
|
|
7
|
-
placement: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
fitWindow: (func?: () => void) => void;
|
|
11
|
-
}
|
|
12
|
-
export interface iRestLibGetAuth {
|
|
13
|
-
access_token: string;
|
|
14
|
-
domain: string;
|
|
15
|
-
expires_in: number;
|
|
16
|
-
member_id: string;
|
|
17
|
-
refresh_token: string;
|
|
18
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { iBXRestYesNo } from '../../base/YesNo';
|
|
2
|
-
export interface iBXRestParamListsElementGet {
|
|
3
|
-
IBLOCK_TYPE_ID: 'lists' | 'bitrix_processes' | 'lists_socnet';
|
|
4
|
-
IBLOCK_ID: number;
|
|
5
|
-
SOCNET_GROUP_ID?: number;
|
|
6
|
-
ELEMENT_ID?: number;
|
|
7
|
-
FILTER?: {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface iBXRestListsElement extends iBXRestBaseListsElement {
|
|
12
|
-
BP_PUBLISHED: boolean;
|
|
13
|
-
CREATED_BY: number;
|
|
14
|
-
IBLOCK_ID: number;
|
|
15
|
-
ID: number;
|
|
16
|
-
}
|
|
17
|
-
export interface iBXRestHttpListsElement extends iBXRestBaseListsElement {
|
|
18
|
-
BP_PUBLISHED: iBXRestYesNo;
|
|
19
|
-
CREATED_BY: string;
|
|
20
|
-
IBLOCK_ID: string;
|
|
21
|
-
ID: string;
|
|
22
|
-
}
|
|
23
|
-
export interface iBXRestBaseListsElement {
|
|
24
|
-
CODE: string | null;
|
|
25
|
-
IBLOCK_SECTION_ID: string | null;
|
|
26
|
-
NAME: string;
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export default interface UserFilterSearch {
|
|
2
|
-
NAME?: string;
|
|
3
|
-
LAST_NAME?: string;
|
|
4
|
-
SECOND_NAME?: string;
|
|
5
|
-
WORK_POSITION?: string;
|
|
6
|
-
UF_DEPARTMENT_NAME?: string;
|
|
7
|
-
USER_TYPE?: 'employee' | 'extranet' | 'email';
|
|
8
|
-
FIND?: string;
|
|
9
|
-
ACTIVE?: boolean;
|
|
10
|
-
EMAIL?: string;
|
|
11
|
-
LAST_LOGIN?: string;
|
|
12
|
-
DATE_REGISTER?: string;
|
|
13
|
-
IS_ONLINE?: 'Y' | 'N';
|
|
14
|
-
PERSONAL_GENDER?: 'M' | 'F';
|
|
15
|
-
PERSONAL_PROFESSION?: string;
|
|
16
|
-
PERSONAL_WWW?: string;
|
|
17
|
-
PERSONAL_BIRTHDAY?: string;
|
|
18
|
-
PERSONAL_PHOTO?: string;
|
|
19
|
-
PERSONAL_ICQ?: string;
|
|
20
|
-
PERSONAL_PHONE?: string;
|
|
21
|
-
PERSONAL_FAX?: string;
|
|
22
|
-
PERSONAL_MOBILE?: string;
|
|
23
|
-
PERSONAL_PAGER?: string;
|
|
24
|
-
PERSONAL_STREET?: string;
|
|
25
|
-
PERSONAL_CITY?: string;
|
|
26
|
-
PERSONAL_STATE?: string;
|
|
27
|
-
PERSONAL_ZIP?: string;
|
|
28
|
-
PERSONAL_COUNTRY?: string;
|
|
29
|
-
TIME_ZONE_OFFSET?: string;
|
|
30
|
-
WORK_COMPANY?: string;
|
|
31
|
-
WORK_PHONE?: string;
|
|
32
|
-
UF_DEPARTMENT?: number[];
|
|
33
|
-
UF_INTERESTS?: string;
|
|
34
|
-
UF_SKILLS?: string;
|
|
35
|
-
UF_WEB_SITES?: string;
|
|
36
|
-
UF_XING?: string;
|
|
37
|
-
UF_LINKEDIN?: string;
|
|
38
|
-
UF_FACEBOOK?: string;
|
|
39
|
-
UF_TWITTER?: string;
|
|
40
|
-
UF_SKYPE?: string;
|
|
41
|
-
UF_DISTRICT?: string;
|
|
42
|
-
UF_PHONE_INNER?: string;
|
|
43
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { iBXRestYesNo } from '../base/YesNo';
|
|
2
|
-
import { iBXRestBaseParam } from '../support/param';
|
|
3
|
-
export interface iBXGetParam extends iBXRestBaseParam {
|
|
4
|
-
ID?: number[] | number;
|
|
5
|
-
PERSONAL_BIRTHDAY?: string | string[];
|
|
6
|
-
order?: 'ASC' | 'DESC';
|
|
7
|
-
UF_DEPARTMENT?: number[];
|
|
8
|
-
UF_PHONE_INNER?: string;
|
|
9
|
-
IS_ONLINE?: iBXRestYesNo;
|
|
10
|
-
NAME_SEARCH?: string;
|
|
11
|
-
USER_TYPE?: 'employee' | 'extranet' | 'email';
|
|
12
|
-
ACTIVE?: 2 | 1 | 0;
|
|
13
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { iBXRestYesNo } from '../../../typification/rest/base/YesNo';
|
|
2
|
-
export interface iBXRestUser extends iBXRestUserBase {
|
|
3
|
-
ID: number;
|
|
4
|
-
IS_ONLINE: boolean;
|
|
5
|
-
DATE_REGISTER: Date;
|
|
6
|
-
PERSONAL_BIRTHDAY: Date;
|
|
7
|
-
LAST_LOGIN?: Date;
|
|
8
|
-
}
|
|
9
|
-
export interface iBXRestUserHttp extends iBXRestUserBase {
|
|
10
|
-
ID: string;
|
|
11
|
-
IS_ONLINE: iBXRestYesNo;
|
|
12
|
-
DATE_REGISTER: string;
|
|
13
|
-
PERSONAL_BIRTHDAY: string;
|
|
14
|
-
LAST_LOGIN?: string;
|
|
15
|
-
}
|
|
16
|
-
interface iBXRestUserBase {
|
|
17
|
-
ACTIVE: boolean;
|
|
18
|
-
EMAIL: string;
|
|
19
|
-
NAME: string;
|
|
20
|
-
LAST_NAME: string;
|
|
21
|
-
SECOND_NAME: string;
|
|
22
|
-
PERSONAL_GENDER: iAllBXGender;
|
|
23
|
-
PERSONAL_PROFESSION: string;
|
|
24
|
-
PERSONAL_WWW: string;
|
|
25
|
-
PERSONAL_BIRTHDAY: string | Date;
|
|
26
|
-
PERSONAL_PHOTO: string;
|
|
27
|
-
PERSONAL_ICQ: string;
|
|
28
|
-
PERSONAL_PHONE: string;
|
|
29
|
-
PERSONAL_FAX: string;
|
|
30
|
-
PERSONAL_MOBILE: string;
|
|
31
|
-
PERSONAL_PAGER: string;
|
|
32
|
-
PERSONAL_STREET: string;
|
|
33
|
-
PERSONAL_CITY: string;
|
|
34
|
-
PERSONAL_STATE: string;
|
|
35
|
-
PERSONAL_ZIP: string;
|
|
36
|
-
PERSONAL_COUNTRY: string;
|
|
37
|
-
TIME_ZONE: string;
|
|
38
|
-
TIME_ZONE_OFFSET: string;
|
|
39
|
-
WORK_COMPANY: string;
|
|
40
|
-
WORK_POSITION: string;
|
|
41
|
-
WORK_PHONE: string;
|
|
42
|
-
UF_DEPARTMENT: number[];
|
|
43
|
-
UF_INTERESTS: string;
|
|
44
|
-
UF_SKILLS: string;
|
|
45
|
-
UF_WEB_SITES: string;
|
|
46
|
-
UF_XING: string;
|
|
47
|
-
UF_LINKEDIN: string;
|
|
48
|
-
UF_FACEBOOK: string;
|
|
49
|
-
UF_TWITTER: string;
|
|
50
|
-
UF_SKYPE: string;
|
|
51
|
-
UF_DISTRICT: string;
|
|
52
|
-
UF_PHONE_INNER: string;
|
|
53
|
-
[keys: string]: any;
|
|
54
|
-
}
|
|
55
|
-
export declare type iAllBXGender = 'M' | 'F' | '';
|
|
56
|
-
export declare type iBXRestUserKey = keyof iBXRestUser;
|
|
57
|
-
export declare type MapKeyBx<Type> = {
|
|
58
|
-
[Property in keyof Type]: string;
|
|
59
|
-
};
|
|
60
|
-
export interface iBXRestUserHttpField extends MapKeyBx<iBXRestUserBase> {
|
|
61
|
-
}
|
|
62
|
-
export {};
|