@saritasa/crm-delmar-core-sdk 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/README.md +2 -2
- package/api/roles-api.serviceInterface.d.ts +2 -0
- package/api/user-logins-api.serviceInterface.d.ts +2 -0
- package/esm2022/api/roles-api.service.mjs +9 -1
- package/esm2022/api/roles-api.serviceInterface.mjs +1 -1
- package/esm2022/api/user-logins-api.service.mjs +9 -1
- package/esm2022/api/user-logins-api.serviceInterface.mjs +1 -1
- package/esm2022/model/branch-period.dto.mjs +1 -1
- package/esm2022/model/branch-user-stats.dto.mjs +1 -1
- package/esm2022/model/branch.dto.mjs +1 -1
- package/esm2022/model/department.dto.mjs +1 -1
- package/esm2022/model/jira-instance.dto.mjs +1 -1
- package/esm2022/model/location.dto.mjs +1 -1
- package/esm2022/model/models.mjs +5 -1
- package/esm2022/model/period-user.dto.mjs +1 -1
- package/esm2022/model/period.dto.mjs +1 -1
- package/esm2022/model/profile.dto.mjs +1 -1
- package/esm2022/model/project.dto.mjs +1 -1
- package/esm2022/model/role-edit-permission.dto.mjs +1 -1
- package/esm2022/model/role.dto.mjs +1 -1
- package/esm2022/model/roles-list-error.dto.mjs +1 -1
- package/esm2022/model/roles-list-id-error-component.dto.mjs +19 -0
- package/esm2022/model/roles-list-id-in-error-component.dto.mjs +19 -0
- package/esm2022/model/simple-branch.dto.mjs +1 -1
- package/esm2022/model/simple-department.dto.mjs +1 -1
- package/esm2022/model/simple-dismissal-reason.dto.mjs +1 -1
- package/esm2022/model/simple-location.dto.mjs +1 -1
- package/esm2022/model/simple-role.dto.mjs +1 -1
- package/esm2022/model/simple-user.dto.mjs +1 -1
- package/esm2022/model/simple-vendor.dto.mjs +1 -1
- package/esm2022/model/simple-work-type.dto.mjs +1 -1
- package/esm2022/model/token-obtain-pair.dto.mjs +1 -1
- package/esm2022/model/token-refresh.dto.mjs +1 -1
- package/esm2022/model/user-capacity.dto.mjs +1 -1
- package/esm2022/model/user-login.dto.mjs +1 -1
- package/esm2022/model/user-logins-list-error.dto.mjs +1 -1
- package/esm2022/model/user-logins-list-id-error-component.dto.mjs +19 -0
- package/esm2022/model/user-logins-list-id-in-error-component.dto.mjs +19 -0
- package/esm2022/model/user-period.dto.mjs +1 -1
- package/esm2022/model/user-timezone-setting.dto.mjs +1 -1
- package/esm2022/model/user-timezone.dto.mjs +1 -1
- package/esm2022/model/user.dto.mjs +1 -1
- package/esm2022/model/who-am-i.dto.mjs +1 -1
- package/esm2022/model/work-type.dto.mjs +1 -1
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +93 -1
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/branch-period.dto.d.ts +4 -4
- package/model/branch-user-stats.dto.d.ts +5 -5
- package/model/branch.dto.d.ts +4 -4
- package/model/department.dto.d.ts +9 -9
- package/model/jira-instance.dto.d.ts +1 -1
- package/model/location.dto.d.ts +6 -6
- package/model/models.d.ts +4 -0
- package/model/period-user.dto.d.ts +10 -10
- package/model/period.dto.d.ts +2 -2
- package/model/profile.dto.d.ts +41 -41
- package/model/project.dto.d.ts +3 -3
- package/model/role-edit-permission.dto.d.ts +4 -4
- package/model/role.dto.d.ts +3 -3
- package/model/roles-list-error.dto.d.ts +3 -1
- package/model/roles-list-id-error-component.dto.d.ts +27 -0
- package/model/roles-list-id-in-error-component.dto.d.ts +27 -0
- package/model/simple-branch.dto.d.ts +3 -3
- package/model/simple-department.dto.d.ts +3 -3
- package/model/simple-dismissal-reason.dto.d.ts +3 -3
- package/model/simple-location.dto.d.ts +3 -3
- package/model/simple-role.dto.d.ts +3 -3
- package/model/simple-user.dto.d.ts +3 -3
- package/model/simple-vendor.dto.d.ts +3 -3
- package/model/simple-work-type.dto.d.ts +3 -3
- package/model/token-obtain-pair.dto.d.ts +2 -2
- package/model/token-refresh.dto.d.ts +1 -1
- package/model/user-capacity.dto.d.ts +3 -3
- package/model/user-login.dto.d.ts +13 -13
- package/model/user-logins-list-error.dto.d.ts +3 -1
- package/model/user-logins-list-id-error-component.dto.d.ts +27 -0
- package/model/user-logins-list-id-in-error-component.dto.d.ts +27 -0
- package/model/user-period.dto.d.ts +1 -1
- package/model/user-timezone-setting.dto.d.ts +4 -4
- package/model/user-timezone.dto.d.ts +4 -4
- package/model/user.dto.d.ts +18 -18
- package/model/who-am-i.dto.d.ts +3 -3
- package/model/work-type.dto.d.ts +7 -7
- package/package.json +1 -1
|
@@ -14,12 +14,12 @@ import { UserPeriodStatusEnumDto } from "./user-period-status-enum.dto";
|
|
|
14
14
|
* Serializer for UserPeriod model.
|
|
15
15
|
*/
|
|
16
16
|
export interface UserPeriodDto {
|
|
17
|
+
readonly id: number;
|
|
17
18
|
period: DateRangeFieldDto;
|
|
18
19
|
user: number;
|
|
19
20
|
type: UserPeriodTypeEnumDto;
|
|
20
21
|
status: UserPeriodStatusEnumDto;
|
|
21
22
|
description: string;
|
|
22
|
-
readonly id?: number;
|
|
23
23
|
status_updated_by?: number | null;
|
|
24
24
|
status_updated?: string | null;
|
|
25
25
|
file?: string | null;
|
|
@@ -12,10 +12,10 @@ import { OrderingEnumDto } from "./ordering-enum.dto";
|
|
|
12
12
|
* Serializer for managing user\'s timezone settings.
|
|
13
13
|
*/
|
|
14
14
|
export interface UserTimezoneSettingDto {
|
|
15
|
+
readonly id: number;
|
|
16
|
+
readonly created: string;
|
|
17
|
+
readonly modified: string;
|
|
18
|
+
readonly user: number;
|
|
15
19
|
ordering: OrderingEnumDto;
|
|
16
20
|
use_12_format: boolean;
|
|
17
|
-
readonly id?: number;
|
|
18
|
-
readonly created?: string;
|
|
19
|
-
readonly modified?: string;
|
|
20
|
-
readonly user?: number;
|
|
21
21
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* Serializer for managing user\'s timezones.
|
|
12
12
|
*/
|
|
13
13
|
export interface UserTimezoneDto {
|
|
14
|
+
readonly id: number;
|
|
15
|
+
readonly created: string;
|
|
16
|
+
readonly modified: string;
|
|
14
17
|
name: string;
|
|
15
18
|
timezone: string;
|
|
16
|
-
readonly
|
|
17
|
-
readonly created?: string;
|
|
18
|
-
readonly modified?: string;
|
|
19
|
-
readonly user?: number;
|
|
19
|
+
readonly user: number;
|
|
20
20
|
}
|
package/model/user.dto.d.ts
CHANGED
|
@@ -19,8 +19,15 @@ import { UserStatusEnumDto } from "./user-status-enum.dto";
|
|
|
19
19
|
* Serializer for representing `User`.
|
|
20
20
|
*/
|
|
21
21
|
export interface UserDto {
|
|
22
|
+
readonly id: number;
|
|
23
|
+
readonly created: string;
|
|
24
|
+
readonly modified: string;
|
|
22
25
|
first_name: string;
|
|
23
26
|
last_name: string;
|
|
27
|
+
/**
|
|
28
|
+
* Dynamic replacement for is_active field.
|
|
29
|
+
*/
|
|
30
|
+
readonly is_active: boolean;
|
|
24
31
|
email: string;
|
|
25
32
|
status: UserStatusEnumDto;
|
|
26
33
|
office_phone: string;
|
|
@@ -36,43 +43,36 @@ export interface UserDto {
|
|
|
36
43
|
is_part_time: boolean;
|
|
37
44
|
onsite: boolean;
|
|
38
45
|
branch: number;
|
|
46
|
+
readonly branch_data: SimpleBranchDto;
|
|
39
47
|
department: number;
|
|
48
|
+
readonly department_data: SimpleDepartmentDto;
|
|
40
49
|
work_type: number;
|
|
50
|
+
readonly work_type_data: SimpleWorkTypeDto;
|
|
41
51
|
location: number;
|
|
52
|
+
readonly location_data: SimpleLocationDto;
|
|
53
|
+
readonly vendor_data: SimpleVendorDto;
|
|
54
|
+
readonly recruited_by_data: SimpleUserDto;
|
|
55
|
+
readonly dismissal_reason_data: SimpleDismissalReasonDto;
|
|
42
56
|
supervisors: Array<number>;
|
|
57
|
+
readonly supervisors_data: Array<SimpleUserDto>;
|
|
43
58
|
supervisees: Array<number>;
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
59
|
+
readonly supervisees_data: Array<SimpleUserDto>;
|
|
60
|
+
readonly created_by_data: SimpleUserDto;
|
|
61
|
+
readonly updated_by_data: SimpleUserDto;
|
|
47
62
|
middle_name?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Dynamic replacement for is_active field.
|
|
50
|
-
*/
|
|
51
|
-
readonly is_active?: boolean;
|
|
52
63
|
avatar?: string | null;
|
|
53
64
|
birthday?: string | null;
|
|
54
65
|
first_working_day?: string | null;
|
|
55
66
|
first_working_day_by_contract?: string | null;
|
|
56
67
|
last_working_day?: string | null;
|
|
57
|
-
readonly branch_data?: SimpleBranchDto;
|
|
58
|
-
readonly department_data?: SimpleDepartmentDto;
|
|
59
|
-
readonly work_type_data?: SimpleWorkTypeDto;
|
|
60
|
-
readonly location_data?: SimpleLocationDto;
|
|
61
68
|
vendor?: number | null;
|
|
62
|
-
readonly vendor_data?: SimpleVendorDto;
|
|
63
69
|
recruited_by?: number | null;
|
|
64
|
-
readonly recruited_by_data?: SimpleUserDto;
|
|
65
70
|
dismissal_reason?: number | null;
|
|
66
|
-
readonly dismissal_reason_data?: SimpleDismissalReasonDto;
|
|
67
71
|
role?: number | null;
|
|
68
72
|
/**
|
|
69
73
|
* Account ID of user in Jira. User has only one id no matter the instance
|
|
70
74
|
*/
|
|
71
75
|
jira_account_id?: string | null;
|
|
72
|
-
readonly supervisors_data?: Array<SimpleUserDto>;
|
|
73
|
-
readonly supervisees_data?: Array<SimpleUserDto>;
|
|
74
76
|
created_by?: number | null;
|
|
75
|
-
readonly created_by_data?: SimpleUserDto;
|
|
76
77
|
updated_by?: number | null;
|
|
77
|
-
readonly updated_by_data?: SimpleUserDto;
|
|
78
78
|
}
|
package/model/who-am-i.dto.d.ts
CHANGED
|
@@ -12,12 +12,12 @@ import { RoleEditPermissionDto } from "./role-edit-permission.dto";
|
|
|
12
12
|
* Serializer for user to get information about themselves.
|
|
13
13
|
*/
|
|
14
14
|
export interface WhoAmIDto {
|
|
15
|
+
readonly id: number;
|
|
16
|
+
readonly created: string;
|
|
17
|
+
readonly modified: string;
|
|
15
18
|
email: string;
|
|
16
19
|
department: number;
|
|
17
20
|
branch: number;
|
|
18
21
|
permissions: Array<RoleEditPermissionDto>;
|
|
19
|
-
readonly id?: number;
|
|
20
|
-
readonly created?: string;
|
|
21
|
-
readonly modified?: string;
|
|
22
22
|
role?: number | null;
|
|
23
23
|
}
|
package/model/work-type.dto.d.ts
CHANGED
|
@@ -13,16 +13,16 @@ import { SimpleDepartmentDto } from "./simple-department.dto";
|
|
|
13
13
|
* Serializer for WorkType model.
|
|
14
14
|
*/
|
|
15
15
|
export interface WorkTypeDto {
|
|
16
|
-
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly modified?: string;
|
|
16
|
+
readonly id: number;
|
|
17
|
+
readonly created: string;
|
|
18
|
+
readonly modified: string;
|
|
20
19
|
/**
|
|
21
20
|
* Count of users per work type.
|
|
22
21
|
*/
|
|
23
|
-
readonly users_count
|
|
22
|
+
readonly users_count: number;
|
|
23
|
+
name: string;
|
|
24
|
+
readonly parent_data: SimpleWorkTypeDto;
|
|
25
|
+
readonly department_data: SimpleDepartmentDto;
|
|
24
26
|
parent?: number | null;
|
|
25
|
-
readonly parent_data?: SimpleWorkTypeDto;
|
|
26
27
|
department?: number | null;
|
|
27
|
-
readonly department_data?: SimpleDepartmentDto;
|
|
28
28
|
}
|
package/package.json
CHANGED