bx-rest 0.0.8 → 0.0.10

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 (74) hide show
  1. package/consts/part-name-metods.d.ts +11 -0
  2. package/esm2020/consts/part-name-metods.mjs +12 -0
  3. package/esm2020/functions/serializeJavascript.mjs +200 -0
  4. package/esm2020/public-api.mjs +3 -3
  5. package/esm2020/{rest → request}/bx-rest.module.mjs +1 -1
  6. package/esm2020/request/user/user.mjs +263 -0
  7. package/esm2020/services/base.mjs +3 -3
  8. package/esm2020/services/http/HttpBX.mjs +128 -0
  9. package/esm2020/services/http/HttpData.mjs +124 -0
  10. package/esm2020/services/http/base/base.mjs +29 -0
  11. package/esm2020/services/http/base/http.mjs +28 -0
  12. package/esm2020/services/http/http.mjs +135 -0
  13. package/esm2020/services/http/sessionKey.mjs +180 -0
  14. package/esm2020/services/map/base.mjs +14 -0
  15. package/esm2020/services/map/rest/user.mjs +89 -0
  16. package/esm2020/services/snack-bar/snack-bar.service.mjs +42 -0
  17. package/esm2020/services/snack-bar/toast-message/toast-message.component.mjs +31 -0
  18. package/esm2020/services/vanilla/JSON.mjs +20 -0
  19. package/esm2020/services/vanilla/localStorage.mjs +35 -0
  20. package/esm2020/services/vanilla//321/201ookies.mjs +44 -0
  21. package/esm2020/store/auth.mjs +26 -0
  22. package/esm2020/store/users.mjs +67 -0
  23. package/esm2020/typification/auth/save.mjs +2 -0
  24. package/esm2020/typification/rest/api-lib.mjs +21 -0
  25. package/esm2020/typification/rest/base/YesNo.mjs +2 -0
  26. package/esm2020/typification/rest/base/httpAnswerBX.mjs +2 -0
  27. package/esm2020/typification/rest/batch/batchRequestParam.mjs +2 -0
  28. package/esm2020/typification/rest/lib.mjs +2 -0
  29. package/esm2020/typification/rest/settings.mjs +2 -0
  30. package/esm2020/typification/rest/support/param.mjs +2 -0
  31. package/esm2020/typification/rest/user/CustomUserFieldInfo.mjs +2 -0
  32. package/esm2020/typification/rest/user/UserFilterSearch.mjs +2 -0
  33. package/esm2020/typification/rest/user/get.mjs +2 -0
  34. package/esm2020/typification/rest/user/user.mjs +2 -0
  35. package/esm2020/typification/rest/user/userFilter.mjs +2 -0
  36. package/fesm2015/bx-rest.mjs +344 -15
  37. package/fesm2015/bx-rest.mjs.map +1 -1
  38. package/fesm2020/bx-rest.mjs +344 -15
  39. package/fesm2020/bx-rest.mjs.map +1 -1
  40. package/functions/serializeJavascript.d.ts +2 -0
  41. package/package.json +1 -1
  42. package/public-api.d.ts +2 -2
  43. package/request/user/user.d.ts +60 -0
  44. package/services/http/HttpBX.d.ts +26 -0
  45. package/services/http/HttpData.d.ts +13 -0
  46. package/services/http/base/base.d.ts +16 -0
  47. package/services/http/base/http.d.ts +7 -0
  48. package/services/http/http.d.ts +31 -0
  49. package/services/http/sessionKey.d.ts +34 -0
  50. package/services/map/base.d.ts +6 -0
  51. package/services/map/rest/user.d.ts +12 -0
  52. package/services/snack-bar/snack-bar.service.d.ts +12 -0
  53. package/services/snack-bar/toast-message/toast-message.component.d.ts +16 -0
  54. package/services/vanilla/JSON.d.ts +7 -0
  55. package/services/vanilla/localStorage.d.ts +10 -0
  56. package/services/vanilla//321/201ookies.d.ts +9 -0
  57. package/store/auth.d.ts +20 -0
  58. package/store/users.d.ts +34 -0
  59. package/typification/auth/save.d.ts +14 -0
  60. package/typification/rest/api-lib.d.ts +9 -0
  61. package/typification/rest/base/YesNo.d.ts +1 -0
  62. package/typification/rest/base/httpAnswerBX.d.ts +15 -0
  63. package/typification/rest/batch/batchRequestParam.d.ts +16 -0
  64. package/typification/rest/lib.d.ts +18 -0
  65. package/typification/rest/settings.d.ts +6 -0
  66. package/typification/rest/support/param.d.ts +5 -0
  67. package/typification/rest/user/CustomUserFieldInfo.d.ts +56 -0
  68. package/typification/rest/user/UserFilterSearch.d.ts +43 -0
  69. package/typification/rest/user/get.d.ts +13 -0
  70. package/typification/rest/user/user.d.ts +62 -0
  71. package/typification/rest/user/userFilter.d.ts +13 -0
  72. package/bx-rest.service.d.ts +0 -6
  73. package/esm2020/bx-rest.service.mjs +0 -14
  74. /package/{rest → request}/bx-rest.module.d.ts +0 -0
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,31 @@
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
+ }
@@ -0,0 +1,34 @@
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 {};
@@ -0,0 +1,6 @@
1
+ import { BaseServices } from '../base';
2
+ import * as i0 from "@angular/core";
3
+ export default class BaseMapServices extends BaseServices {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseMapServices, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseMapServices>;
6
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,10 @@
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
+ }
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,20 @@
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;
@@ -0,0 +1,34 @@
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;
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1 @@
1
+ export declare type iBXRestYesNo = 'Y' | 'N';
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,18 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ export interface iHttpParamSettings {
2
+ timeZone: {
3
+ calc: boolean;
4
+ levelOut: boolean;
5
+ };
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface iBXRestBaseParam {
2
+ start?: number;
3
+ }
4
+ export interface iBXRestBaseParamFactor<T extends iBXRestBaseParam> {
5
+ }
@@ -0,0 +1,56 @@
1
+ import { iBXRestUserKey } from '../../../typification/rest/user/user';
2
+ import { iBXRestYesNo } from '../../../typification/rest/base/YesNo';
3
+ export interface iCustomUserFieldInfo {
4
+ ID: string;
5
+ ENTITY_ID: "USER";
6
+ FIELD_NAME: iBXRestUserKey;
7
+ USER_TYPE_ID: iCustomUserFieldInfoType;
8
+ XML_ID: string | null;
9
+ SORT: string;
10
+ MULTIPLE: iBXRestYesNo;
11
+ MANDATORY: iBXRestYesNo;
12
+ SHOW_FILTER: 'E' | 'N';
13
+ SHOW_IN_LIST: iBXRestYesNo;
14
+ EDIT_IN_LIST: iBXRestYesNo;
15
+ IS_SEARCHABLE: iBXRestYesNo;
16
+ SETTINGS: iCustomUserFieldInfoSETTINGSTypeString | iCustomUserFieldInfoSETTINGSTypeFile | iCustomUserFieldInfoSETTINGSTypeEnumeration | iCustomUserFieldInfoSETTINGSTypeDatetime;
17
+ LIST?: iCustomUserFieldInfoSETTINGSTypeEnumerationLIST[];
18
+ }
19
+ export interface iCustomUserFieldInfoSETTINGSTypeString {
20
+ SIZE: number;
21
+ ROWS: number;
22
+ REGEXP: string | null;
23
+ MIN_LENGTH: number;
24
+ MAX_LENGTH: number;
25
+ DEFAULT_VALUE: string | null;
26
+ }
27
+ export interface iCustomUserFieldInfoSETTINGSTypeFile {
28
+ SIZE: number;
29
+ LIST_WIDTH: number;
30
+ LIST_HEIGHT: number;
31
+ MAX_SHOW_SIZE: number;
32
+ MAX_ALLOWED_SIZE: number;
33
+ EXTENSIONS: any[];
34
+ TARGET_BLANK: iBXRestYesNo;
35
+ }
36
+ export interface iCustomUserFieldInfoSETTINGSTypeEnumeration {
37
+ DISPLAY: 'UI' | 'DIALOG';
38
+ LIST_HEIGHT: number;
39
+ CAPTION_NO_VALUE: string;
40
+ SHOW_NO_VALUE: iBXRestYesNo;
41
+ }
42
+ export interface iCustomUserFieldInfoSETTINGSTypeEnumerationLIST {
43
+ ID: string;
44
+ SORT: string;
45
+ VALUE: string;
46
+ DEF: iBXRestYesNo;
47
+ }
48
+ export interface iCustomUserFieldInfoSETTINGSTypeDatetime {
49
+ DEFAULT_VALUE: {
50
+ TYPE: 'NONE';
51
+ VALUE: string;
52
+ };
53
+ "USE_SECOND": iBXRestYesNo;
54
+ "USE_TIMEZONE": iBXRestYesNo;
55
+ }
56
+ export declare type iCustomUserFieldInfoType = 'string' | 'file' | 'enumeration' | 'datetime';
@@ -0,0 +1,43 @@
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
+ }
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,62 @@
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 {};
@@ -0,0 +1,13 @@
1
+ import { iBXRestYesNo } from '../base/YesNo';
2
+ import { iBXRestBaseParam } from '../support/param';
3
+ export interface UserFilter 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,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BxRestService {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<BxRestService, never>;
5
- static ɵprov: i0.ɵɵInjectableDeclaration<BxRestService>;
6
- }
@@ -1,14 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class BxRestService {
4
- constructor() { }
5
- }
6
- BxRestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7
- BxRestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestService, providedIn: 'root' });
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BxRestService, decorators: [{
9
- type: Injectable,
10
- args: [{
11
- providedIn: 'root'
12
- }]
13
- }], ctorParameters: function () { return []; } });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYngtcmVzdC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvYngtcmVzdC9zcmMvYngtcmVzdC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUE7O0FBSzFDLE1BQU0sT0FBTyxhQUFhO0lBRXhCLGdCQUFnQixDQUFDOzswR0FGTixhQUFhOzhHQUFiLGFBQWEsY0FGWixNQUFNOzJGQUVQLGFBQWE7a0JBSHpCLFVBQVU7bUJBQUM7b0JBQ1YsVUFBVSxFQUFFLE1BQU07aUJBQ25CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0YWJsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnXG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXG59KVxuZXhwb3J0IGNsYXNzIEJ4UmVzdFNlcnZpY2Uge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG59XG4iXX0=
File without changes