bx-rest 0.0.3 → 0.0.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/package.json +137 -53
- package/src/consts/part-name-metods.ts +11 -0
- package/src/functions/isDate.ts +8 -0
- package/src/functions/isEqual.ts +17 -0
- package/src/functions/isValidDate.ts +9 -0
- package/src/functions/serializeJavascript.ts +229 -0
- package/src/rest/user/user.ts +18 -17
- package/src/services/base.ts +2 -2
- package/src/services/http/HttpBX.ts +176 -0
- package/src/services/http/HttpData.ts +3 -3
- package/src/services/http/base/HttpData.ts +5 -4
- package/src/services/http/base/base.ts +4 -3
- package/src/services/http/base/http.ts +2 -2
- package/src/services/http/http.ts +5 -5
- package/src/services/http/sessionKey.ts +18 -27
- package/src/services/map/base.ts +8 -0
- package/src/services/map/rest/user.ts +82 -0
- package/src/services/snack-bar/snack-bar.service.ts +1 -1
- package/src/services/vanilla/JSON.ts +1 -1
- package/src/services/vanilla/iframe.ts +2 -2
- package/src/services/vanilla/localStorage.ts +1 -1
- package/src/services/vanilla//321/201ookies.ts +1 -1
- package/src/store/auth.ts +1 -1
- package/src/store/users.ts +88 -0
- package/src/tsconfig.base.json +4 -10
- package/src/tsconfig.types.json +1 -1
- package/src/typification/rest/api-lib.ts +2 -2
- package/src/typification/rest/batch/batchRequestParam.ts +1 -1
- package/src/typification/rest/user/CustomUserFieldInfo.ts +2 -2
- package/src/typification/rest/user/user.ts +1 -1
- package/src/typification/rest/user/userFilter.ts +17 -0
- package/tsconfig.json +19 -6
- package/.editorconfig +0 -17
- package/src/services/snack-bar/toast-message/toast-message.component.spec.ts +0 -24
- /package/src/{const → consts}/time.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { iBXRestYesNo } from '../base/YesNo'
|
|
2
|
+
import { iBXRestBaseParam } from '../support/param'
|
|
3
|
+
|
|
4
|
+
export interface UserFilter extends iBXRestBaseParam{
|
|
5
|
+
ID?: number[] | number, // по ID
|
|
6
|
+
PERSONAL_BIRTHDAY?: string | string[]
|
|
7
|
+
order?: 'ASC' | 'DESC', // сортировка
|
|
8
|
+
UF_DEPARTMENT?: number[], // принадлежность к структуре компании
|
|
9
|
+
UF_PHONE_INNER?: string, // внутренний телефонный номер
|
|
10
|
+
IS_ONLINE?: iBXRestYesNo, // позволяет показать только авторизованных или нет пользователей
|
|
11
|
+
NAME_SEARCH?: string, // быстрый поиск по персональным данным
|
|
12
|
+
USER_TYPE?: 'employee' | 'extranet' | 'email', // Тип пользователя. Может принимать следующие значения:
|
|
13
|
+
// employee - сотрудник,
|
|
14
|
+
// extranet - пользователь экстранета,
|
|
15
|
+
// email - почтовый пользователь
|
|
16
|
+
ACTIVE?: 2 | 1 | 0 // при значении 1 исключает из запроса уволенных пользователей. 2 - если нужны и те и те
|
|
17
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"experimentalDecorators": true,
|
|
4
|
+
"incremental": true,
|
|
5
|
+
"removeComments": true,
|
|
6
|
+
"preserveConstEnums": true,
|
|
7
|
+
"sourceMap": true,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"noImplicitReturns": true,
|
|
10
|
+
"moduleResolution": "node",
|
|
11
|
+
"stripInternal": true,
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"lib": [
|
|
14
|
+
"esnext",
|
|
15
|
+
"dom"
|
|
16
|
+
],
|
|
17
|
+
"target": "esnext",
|
|
18
|
+
"baseUrl": ".",
|
|
5
19
|
"paths": {
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
20
|
+
"bx-rest": ["./"],
|
|
21
|
+
"bx-rest/*": ["./*"]
|
|
22
|
+
}
|
|
10
23
|
},
|
|
11
24
|
}
|
package/.editorconfig
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Editor configuration, see https://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 4
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
|
|
11
|
-
[*.ts]
|
|
12
|
-
quote_type = single
|
|
13
|
-
semi = false
|
|
14
|
-
|
|
15
|
-
[*.md]
|
|
16
|
-
max_line_length = off
|
|
17
|
-
trim_trailing_whitespace = false
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
2
|
-
import { ToastMessageComponent } from './toast-message.component'
|
|
3
|
-
|
|
4
|
-
describe('ToastMessageComponent', () => {
|
|
5
|
-
let component: ToastMessageComponent;
|
|
6
|
-
let fixture: ComponentFixture<ToastMessageComponent>;
|
|
7
|
-
|
|
8
|
-
beforeEach(async () => {
|
|
9
|
-
await TestBed.configureTestingModule({
|
|
10
|
-
declarations: [ ToastMessageComponent ]
|
|
11
|
-
})
|
|
12
|
-
.compileComponents();
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
beforeEach(() => {
|
|
16
|
-
fixture = TestBed.createComponent(ToastMessageComponent);
|
|
17
|
-
component = fixture.componentInstance;
|
|
18
|
-
fixture.detectChanges();
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('should create', () => {
|
|
22
|
-
expect(component).toBeTruthy();
|
|
23
|
-
});
|
|
24
|
-
});
|
|
File without changes
|