@saritasa/crm-delmar-core-sdk 0.0.14 → 0.0.15

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 (63) hide show
  1. package/README.md +2 -2
  2. package/esm2022/model/branch-period.dto.mjs +1 -1
  3. package/esm2022/model/branch-user-stats.dto.mjs +1 -1
  4. package/esm2022/model/branch.dto.mjs +1 -1
  5. package/esm2022/model/department.dto.mjs +1 -1
  6. package/esm2022/model/jira-instance.dto.mjs +1 -1
  7. package/esm2022/model/location.dto.mjs +1 -1
  8. package/esm2022/model/period-user.dto.mjs +1 -1
  9. package/esm2022/model/period.dto.mjs +1 -1
  10. package/esm2022/model/profile.dto.mjs +1 -1
  11. package/esm2022/model/project.dto.mjs +1 -1
  12. package/esm2022/model/role-edit-permission.dto.mjs +1 -1
  13. package/esm2022/model/role.dto.mjs +1 -1
  14. package/esm2022/model/simple-branch.dto.mjs +1 -1
  15. package/esm2022/model/simple-department.dto.mjs +1 -1
  16. package/esm2022/model/simple-dismissal-reason.dto.mjs +1 -1
  17. package/esm2022/model/simple-location.dto.mjs +1 -1
  18. package/esm2022/model/simple-role.dto.mjs +1 -1
  19. package/esm2022/model/simple-user.dto.mjs +1 -1
  20. package/esm2022/model/simple-vendor.dto.mjs +1 -1
  21. package/esm2022/model/simple-work-type.dto.mjs +1 -1
  22. package/esm2022/model/token-obtain-pair.dto.mjs +1 -1
  23. package/esm2022/model/token-refresh.dto.mjs +1 -1
  24. package/esm2022/model/user-capacity.dto.mjs +1 -1
  25. package/esm2022/model/user-login.dto.mjs +1 -1
  26. package/esm2022/model/user-period.dto.mjs +1 -1
  27. package/esm2022/model/user-timezone-setting.dto.mjs +1 -1
  28. package/esm2022/model/user-timezone.dto.mjs +1 -1
  29. package/esm2022/model/user.dto.mjs +1 -1
  30. package/esm2022/model/who-am-i.dto.mjs +1 -1
  31. package/esm2022/model/work-type.dto.mjs +1 -1
  32. package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
  33. package/model/branch-period.dto.d.ts +4 -4
  34. package/model/branch-user-stats.dto.d.ts +5 -5
  35. package/model/branch.dto.d.ts +4 -4
  36. package/model/department.dto.d.ts +9 -9
  37. package/model/jira-instance.dto.d.ts +1 -1
  38. package/model/location.dto.d.ts +6 -6
  39. package/model/period-user.dto.d.ts +10 -10
  40. package/model/period.dto.d.ts +2 -2
  41. package/model/profile.dto.d.ts +41 -41
  42. package/model/project.dto.d.ts +3 -3
  43. package/model/role-edit-permission.dto.d.ts +4 -4
  44. package/model/role.dto.d.ts +3 -3
  45. package/model/simple-branch.dto.d.ts +3 -3
  46. package/model/simple-department.dto.d.ts +3 -3
  47. package/model/simple-dismissal-reason.dto.d.ts +3 -3
  48. package/model/simple-location.dto.d.ts +3 -3
  49. package/model/simple-role.dto.d.ts +3 -3
  50. package/model/simple-user.dto.d.ts +3 -3
  51. package/model/simple-vendor.dto.d.ts +3 -3
  52. package/model/simple-work-type.dto.d.ts +3 -3
  53. package/model/token-obtain-pair.dto.d.ts +2 -2
  54. package/model/token-refresh.dto.d.ts +1 -1
  55. package/model/user-capacity.dto.d.ts +3 -3
  56. package/model/user-login.dto.d.ts +13 -13
  57. package/model/user-period.dto.d.ts +1 -1
  58. package/model/user-timezone-setting.dto.d.ts +4 -4
  59. package/model/user-timezone.dto.d.ts +4 -4
  60. package/model/user.dto.d.ts +18 -18
  61. package/model/who-am-i.dto.d.ts +3 -3
  62. package/model/work-type.dto.d.ts +7 -7
  63. package/package.json +1 -1
@@ -14,13 +14,13 @@ import { BranchPeriodTypeEnumDto } from "./branch-period-type-enum.dto";
14
14
  * Serializer for BranchPeriod model.
15
15
  */
16
16
  export interface BranchPeriodDto {
17
+ readonly id: number;
18
+ readonly created: string;
19
+ readonly modified: string;
17
20
  branch: number;
21
+ readonly branch_data: SimpleBranchDto;
18
22
  title: string;
19
23
  description: string;
20
24
  period: DateRangeFieldDto;
21
25
  type: BranchPeriodTypeEnumDto;
22
- readonly id?: number;
23
- readonly created?: string;
24
- readonly modified?: string;
25
- readonly branch_data?: SimpleBranchDto;
26
26
  }
@@ -11,12 +11,12 @@
11
11
  * Serializer for Branch model. Contains less information and also the number of users.
12
12
  */
13
13
  export interface BranchUserStatsDto {
14
- name: string;
15
- readonly id?: number;
16
- readonly created?: string;
17
- readonly modified?: string;
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
18
17
  /**
19
18
  * Count of users per branch.
20
19
  */
21
- readonly users_count?: number;
20
+ readonly users_count: number;
21
+ name: string;
22
22
  }
@@ -12,8 +12,12 @@ import { SimpleUserDto } from "./simple-user.dto";
12
12
  * Serializer for representing `Branch`.
13
13
  */
14
14
  export interface BranchDto {
15
+ readonly id: number;
16
+ readonly created: string;
17
+ readonly modified: string;
15
18
  name: string;
16
19
  code: string;
20
+ readonly ceo_data: SimpleUserDto;
17
21
  timezone: string;
18
22
  hr_email: string;
19
23
  is_vacation_file_required: boolean;
@@ -25,10 +29,6 @@ export interface BranchDto {
25
29
  country: string;
26
30
  state: string;
27
31
  postal_code: string;
28
- readonly id?: number;
29
- readonly created?: string;
30
- readonly modified?: string;
31
32
  ceo?: number | null;
32
- readonly ceo_data?: SimpleUserDto;
33
33
  icon?: string | null;
34
34
  }
@@ -12,19 +12,19 @@ import { SimpleWorkTypeDto } from "./simple-work-type.dto";
12
12
  * Serializer for Department model. Contains all information about one and its work types for DepartmentViewSet.
13
13
  */
14
14
  export interface DepartmentDto {
15
- name: string;
16
- utilization: boolean;
17
- work_types: Array<number>;
18
- readonly id?: number;
19
- readonly created?: string;
20
- readonly modified?: string;
15
+ readonly id: number;
16
+ readonly created: string;
17
+ readonly modified: string;
21
18
  /**
22
19
  * Count of users in department
23
20
  */
24
- readonly users_count?: number;
21
+ readonly users_count: number;
25
22
  /**
26
23
  * Count of work types in department
27
24
  */
28
- readonly work_types_count?: number;
29
- readonly work_types_data?: Array<SimpleWorkTypeDto>;
25
+ readonly work_types_count: number;
26
+ name: string;
27
+ utilization: boolean;
28
+ work_types: Array<number>;
29
+ readonly work_types_data: Array<SimpleWorkTypeDto>;
30
30
  }
@@ -11,6 +11,6 @@
11
11
  * Serializer for JiraInstance model.
12
12
  */
13
13
  export interface JiraInstanceDto {
14
+ readonly id: number;
14
15
  name: string;
15
- readonly id?: number;
16
16
  }
@@ -11,14 +11,14 @@
11
11
  * Serializer for Location model.
12
12
  */
13
13
  export interface LocationDto {
14
- name: string;
15
- timezone: string;
16
- readonly id?: number;
17
- readonly created?: string;
18
- readonly modified?: string;
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
19
17
  /**
20
18
  * Count of users in location
21
19
  */
22
- readonly users_count?: number;
20
+ readonly users_count: number;
21
+ name: string;
22
+ timezone: string;
23
23
  icon?: string | null;
24
24
  }
@@ -15,23 +15,23 @@ import { UserStatusEnumDto } from "./user-status-enum.dto";
15
15
  * User representation in period.
16
16
  */
17
17
  export interface PeriodUserDto {
18
+ readonly id: number;
18
19
  first_name: string;
19
20
  last_name: string;
21
+ /**
22
+ * Dynamic replacement for is_active field.
23
+ */
24
+ readonly is_active: boolean;
20
25
  email: string;
21
26
  status: UserStatusEnumDto;
22
27
  branch: number;
28
+ readonly branch_data: SimpleBranchDto;
23
29
  department: number;
30
+ readonly department_data: SimpleDepartmentDto;
24
31
  work_type: number;
25
- readonly id?: number;
32
+ readonly work_type_data: SimpleWorkTypeDto;
33
+ readonly created: string;
34
+ readonly modified: string;
26
35
  middle_name?: string;
27
- /**
28
- * Dynamic replacement for is_active field.
29
- */
30
- readonly is_active?: boolean;
31
36
  avatar?: string | null;
32
- readonly branch_data?: SimpleBranchDto;
33
- readonly department_data?: SimpleDepartmentDto;
34
- readonly work_type_data?: SimpleWorkTypeDto;
35
- readonly created?: string;
36
- readonly modified?: string;
37
37
  }
@@ -21,12 +21,12 @@ export interface PeriodDto {
21
21
  id: number;
22
22
  period: DateRangeFieldDto;
23
23
  model: PeriodModelEnumDto;
24
+ readonly user: PeriodUserDto | null;
25
+ readonly branch: SimpleBranchDto | null;
24
26
  file: string | null;
25
27
  type: PeriodTypeEnumDto;
26
28
  status_updated_by: SimpleUserDto | null;
27
29
  status_updated: string | null;
28
- readonly user?: PeriodUserDto | null;
29
- readonly branch?: SimpleBranchDto | null;
30
30
  title?: string;
31
31
  description?: string;
32
32
  status?: UserPeriodStatusEnumDto;
@@ -19,60 +19,60 @@ import { UserStatusEnumDto } from "./user-status-enum.dto";
19
19
  * Serializer for managing user\'s profile.
20
20
  */
21
21
  export interface ProfileDto {
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;
31
+ readonly email: string;
32
+ readonly status: UserStatusEnumDto;
33
+ readonly office_phone: string;
34
+ readonly personal_email: string;
35
+ readonly personal_phone: string;
36
+ readonly home_phone: string;
37
+ readonly skype: string;
38
+ readonly slack_id: string;
39
+ readonly github_username: string;
40
+ readonly birthday: string | null;
41
+ readonly timezone: string;
42
+ readonly utilization_percent: number;
43
+ readonly is_intern: boolean;
44
+ readonly is_part_time: boolean;
45
+ readonly onsite: boolean;
46
+ readonly first_working_day: string | null;
47
+ readonly first_working_day_by_contract: string | null;
48
+ readonly last_working_day: string | null;
24
49
  branch: number;
50
+ readonly branch_data: SimpleBranchDto;
25
51
  department: number;
52
+ readonly department_data: SimpleDepartmentDto;
26
53
  work_type: number;
54
+ readonly work_type_data: SimpleWorkTypeDto;
27
55
  location: number;
28
- readonly id?: number;
29
- readonly created?: string;
30
- readonly modified?: string;
31
- middle_name?: string;
56
+ readonly location_data: SimpleLocationDto;
57
+ readonly vendor_data: SimpleVendorDto;
58
+ readonly recruited_by_data: SimpleUserDto;
59
+ readonly dismissal_reason_data: SimpleDismissalReasonDto;
32
60
  /**
33
- * Dynamic replacement for is_active field.
61
+ * Account ID of user in Jira. User has only one id no matter the instance
34
62
  */
35
- readonly is_active?: boolean;
36
- readonly email?: string;
63
+ readonly jira_account_id: string | null;
64
+ readonly supervisors: Array<number>;
65
+ readonly supervisors_data: Array<SimpleUserDto>;
66
+ readonly supervisees: Array<number>;
67
+ readonly supervisees_data: Array<SimpleUserDto>;
68
+ readonly created_by_data: SimpleUserDto;
69
+ readonly updated_by_data: SimpleUserDto;
70
+ middle_name?: string;
37
71
  avatar?: string | null;
38
- readonly status?: UserStatusEnumDto;
39
- readonly office_phone?: string;
40
- readonly personal_email?: string;
41
- readonly personal_phone?: string;
42
- readonly home_phone?: string;
43
- readonly skype?: string;
44
- readonly slack_id?: string;
45
- readonly github_username?: string;
46
- readonly birthday?: string | null;
47
- readonly timezone?: string;
48
- readonly utilization_percent?: number;
49
- readonly is_intern?: boolean;
50
- readonly is_part_time?: boolean;
51
- readonly onsite?: boolean;
52
- readonly first_working_day?: string | null;
53
- readonly first_working_day_by_contract?: string | null;
54
- readonly last_working_day?: string | null;
55
- readonly branch_data?: SimpleBranchDto;
56
- readonly department_data?: SimpleDepartmentDto;
57
- readonly work_type_data?: SimpleWorkTypeDto;
58
- readonly location_data?: SimpleLocationDto;
59
72
  vendor?: number | null;
60
- readonly vendor_data?: SimpleVendorDto;
61
73
  recruited_by?: number | null;
62
- readonly recruited_by_data?: SimpleUserDto;
63
74
  dismissal_reason?: number | null;
64
- readonly dismissal_reason_data?: SimpleDismissalReasonDto;
65
75
  role?: number | null;
66
- /**
67
- * Account ID of user in Jira. User has only one id no matter the instance
68
- */
69
- readonly jira_account_id?: string | null;
70
- readonly supervisors?: Array<number>;
71
- readonly supervisors_data?: Array<SimpleUserDto>;
72
- readonly supervisees?: Array<number>;
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
  }
@@ -11,7 +11,7 @@
11
11
  * Serializer for Project model.
12
12
  */
13
13
  export interface ProjectDto {
14
- readonly id?: number;
15
- readonly created?: string;
16
- readonly modified?: string;
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
17
17
  }
@@ -14,10 +14,10 @@ import { PermissionEnumDto } from "./permission-enum.dto";
14
14
  * Serializer for editing permissions for role.
15
15
  */
16
16
  export interface RoleEditPermissionDto {
17
+ readonly id: number;
18
+ readonly created: string;
19
+ readonly modified: string;
17
20
  scope: ScopeEnumDto;
18
21
  permission: PermissionEnumDto;
19
- readonly id?: number;
20
- readonly created?: string;
21
- readonly modified?: string;
22
- readonly permission_data?: PermissionDataDto;
22
+ readonly permission_data: PermissionDataDto;
23
23
  }
@@ -12,9 +12,9 @@ import { RoleEditPermissionDto } from "./role-edit-permission.dto";
12
12
  * Serializer for Role model.
13
13
  */
14
14
  export interface RoleDto {
15
+ readonly id: number;
16
+ readonly created: string;
17
+ readonly modified: string;
15
18
  name: string;
16
19
  permissions: Array<RoleEditPermissionDto>;
17
- readonly id?: number;
18
- readonly created?: string;
19
- readonly modified?: string;
20
20
  }
@@ -11,8 +11,8 @@
11
11
  * Serializer for Branch model. Contains less information for representing in others APIs.
12
12
  */
13
13
  export interface SimpleBranchDto {
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
14
17
  name: string;
15
- readonly id?: number;
16
- readonly created?: string;
17
- readonly modified?: string;
18
18
  }
@@ -11,8 +11,8 @@
11
11
  * Serializer for Department model. Contains less information for representing in others APIs.
12
12
  */
13
13
  export interface SimpleDepartmentDto {
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
14
17
  name: string;
15
- readonly id?: number;
16
- readonly created?: string;
17
- readonly modified?: string;
18
18
  }
@@ -12,9 +12,9 @@ import { SimpleDismissalReasonTypeEnumDto } from "./simple-dismissal-reason-type
12
12
  * Serializer for DismissalReason model. Contains less information for representing in others APIs.
13
13
  */
14
14
  export interface SimpleDismissalReasonDto {
15
+ readonly id: number;
16
+ readonly created: string;
17
+ readonly modified: string;
15
18
  name: string;
16
19
  type: SimpleDismissalReasonTypeEnumDto;
17
- readonly id?: number;
18
- readonly created?: string;
19
- readonly modified?: string;
20
20
  }
@@ -11,8 +11,8 @@
11
11
  * Serializer for Location model. Contains less information for representing in others APIs.
12
12
  */
13
13
  export interface SimpleLocationDto {
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
14
17
  name: string;
15
- readonly id?: number;
16
- readonly created?: string;
17
- readonly modified?: string;
18
18
  }
@@ -11,8 +11,8 @@
11
11
  * Serializer for Role model. Contains less information for representing in others APIs.
12
12
  */
13
13
  export interface SimpleRoleDto {
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
14
17
  name: string;
15
- readonly id?: number;
16
- readonly created?: string;
17
- readonly modified?: string;
18
18
  }
@@ -11,12 +11,12 @@
11
11
  * Serializer for User model. Contains less information for representing in others APIs.
12
12
  */
13
13
  export interface SimpleUserDto {
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
14
17
  first_name: string;
15
18
  last_name: string;
16
19
  email: string;
17
- readonly id?: number;
18
- readonly created?: string;
19
- readonly modified?: string;
20
20
  middle_name?: string;
21
21
  avatar?: string | null;
22
22
  }
@@ -11,8 +11,8 @@
11
11
  * Serializer for Vendor model. Contains less information for representing in others APIs.
12
12
  */
13
13
  export interface SimpleVendorDto {
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
14
17
  name: string;
15
- readonly id?: number;
16
- readonly created?: string;
17
- readonly modified?: string;
18
18
  }
@@ -11,8 +11,8 @@
11
11
  * Serializer for WorkType model. Contains less information for representing in others APIs.
12
12
  */
13
13
  export interface SimpleWorkTypeDto {
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
14
17
  name: string;
15
- readonly id?: number;
16
- readonly created?: string;
17
- readonly modified?: string;
18
18
  }
@@ -8,6 +8,6 @@
8
8
  * Do not edit the class manually.
9
9
  */
10
10
  export interface TokenObtainPairDto {
11
- readonly access?: string;
12
- readonly refresh?: string;
11
+ readonly access: string;
12
+ readonly refresh: string;
13
13
  }
@@ -8,6 +8,6 @@
8
8
  * Do not edit the class manually.
9
9
  */
10
10
  export interface TokenRefreshDto {
11
+ readonly access: string;
11
12
  refresh: string;
12
- readonly access?: string;
13
13
  }
@@ -11,6 +11,9 @@
11
11
  * Serializer class for UserCapacity model.
12
12
  */
13
13
  export interface UserCapacityDto {
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
14
17
  date: string;
15
18
  billable_capacity: number;
16
19
  total_capacity: number;
@@ -18,7 +21,4 @@ export interface UserCapacityDto {
18
21
  branch: number;
19
22
  work_type: number;
20
23
  department: number;
21
- readonly id?: number;
22
- readonly created?: string;
23
- readonly modified?: string;
24
24
  }
@@ -15,19 +15,19 @@ import { SimpleRoleDto } from "./simple-role.dto";
15
15
  * Serializer for representing User\'s data.
16
16
  */
17
17
  export interface UserLoginDto {
18
+ readonly id: number;
19
+ readonly created: string;
20
+ readonly modified: string;
18
21
  email: string;
19
- readonly id?: number;
20
- readonly created?: string;
21
- readonly modified?: string;
22
- readonly first_name?: string;
23
- readonly middle_name?: string;
24
- readonly last_name?: string;
22
+ readonly first_name: string;
23
+ readonly middle_name: string;
24
+ readonly last_name: string;
25
+ readonly role_data: SimpleRoleDto;
26
+ readonly department: number;
27
+ readonly department_data: SimpleDepartmentDto;
28
+ readonly branch: number;
29
+ readonly branch_data: SimpleBranchDto;
30
+ readonly work_type: number;
31
+ readonly work_type_data: SimpleWorkTypeDto;
25
32
  role?: number | null;
26
- readonly role_data?: SimpleRoleDto;
27
- readonly department?: number;
28
- readonly department_data?: SimpleDepartmentDto;
29
- readonly branch?: number;
30
- readonly branch_data?: SimpleBranchDto;
31
- readonly work_type?: number;
32
- readonly work_type_data?: SimpleWorkTypeDto;
33
33
  }
@@ -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 id?: number;
17
- readonly created?: string;
18
- readonly modified?: string;
19
- readonly user?: number;
19
+ readonly user: number;
20
20
  }
@@ -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 id?: number;
45
- readonly created?: string;
46
- readonly modified?: string;
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
  }
@@ -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
  }
@@ -13,16 +13,16 @@ import { SimpleDepartmentDto } from "./simple-department.dto";
13
13
  * Serializer for WorkType model.
14
14
  */
15
15
  export interface WorkTypeDto {
16
- name: string;
17
- readonly id?: number;
18
- readonly created?: string;
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?: number;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saritasa/crm-delmar-core-sdk",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "OpenAPI client for @saritasa/crm-delmar-core-sdk(for version 0.0.32)",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {