@saritasa/crm-delmar-core-sdk 0.1.11 → 0.1.13

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 (65) hide show
  1. package/README.md +2 -2
  2. package/api/clients-api.service.d.ts +23 -1
  3. package/api/clients-api.serviceInterface.d.ts +15 -0
  4. package/api/projects-api.service.d.ts +23 -1
  5. package/api/projects-api.serviceInterface.d.ts +20 -0
  6. package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +461 -1
  7. package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
  8. package/model/blank-enum.dto.d.ts +12 -0
  9. package/model/branch-period.dto.d.ts +1 -1
  10. package/model/branch.dto.d.ts +1 -1
  11. package/model/client-duration-data.dto.d.ts +27 -0
  12. package/model/client-margin-report.dto.d.ts +25 -0
  13. package/model/client-note.dto.d.ts +2 -2
  14. package/model/client-serializer-with-stats.dto.d.ts +4 -4
  15. package/model/client.dto.d.ts +3 -3
  16. package/model/clients-margin-report-retrieve-error-response400.dto.d.ts +16 -0
  17. package/model/clients-margin-report-retrieve-error.dto.d.ts +19 -0
  18. package/model/clients-margin-report-retrieve-id-in-error-component.dto.d.ts +27 -0
  19. package/model/clients-margin-report-retrieve-ordering-error-component.dto.d.ts +26 -0
  20. package/model/clients-margin-report-retrieve-period-error-component.dto.d.ts +28 -0
  21. package/model/clients-margin-report-retrieve-task-project-billing-type-error-component.dto.d.ts +26 -0
  22. package/model/clients-margin-report-retrieve-task-project-project-managers-in-error-component.dto.d.ts +27 -0
  23. package/model/clients-margin-report-retrieve-validation-error.dto.d.ts +15 -0
  24. package/model/department.dto.d.ts +3 -3
  25. package/model/hosting-frequency-enum.dto.d.ts +19 -0
  26. package/model/hosting-period.dto.d.ts +16 -0
  27. package/model/job-report-user.dto.d.ts +2 -2
  28. package/model/job.dto.d.ts +8 -6
  29. package/model/location.dto.d.ts +2 -2
  30. package/model/models.d.ts +27 -0
  31. package/model/period-approver.dto.d.ts +1 -1
  32. package/model/period-user.dto.d.ts +4 -4
  33. package/model/profile.dto.d.ts +11 -11
  34. package/model/project-margin-report.dto.d.ts +39 -0
  35. package/model/project-note.dto.d.ts +3 -3
  36. package/model/project-resource-update.dto.d.ts +5 -5
  37. package/model/project-resource.dto.d.ts +5 -5
  38. package/model/project-serializer-with-stats.dto.d.ts +9 -9
  39. package/model/project-status-report.dto.d.ts +9 -9
  40. package/model/project.dto.d.ts +8 -8
  41. package/model/projects-margin-report-retrieve-billing-type-error-component.dto.d.ts +26 -0
  42. package/model/projects-margin-report-retrieve-billing-type-in-error-component.dto.d.ts +26 -0
  43. package/model/projects-margin-report-retrieve-client-account-manager-error-component.dto.d.ts +26 -0
  44. package/model/projects-margin-report-retrieve-client-account-manager-in-error-component.dto.d.ts +26 -0
  45. package/model/projects-margin-report-retrieve-client-error-component.dto.d.ts +26 -0
  46. package/model/projects-margin-report-retrieve-client-in-error-component.dto.d.ts +26 -0
  47. package/model/projects-margin-report-retrieve-error-response400.dto.d.ts +16 -0
  48. package/model/projects-margin-report-retrieve-error.dto.d.ts +24 -0
  49. package/model/projects-margin-report-retrieve-id-in-error-component.dto.d.ts +27 -0
  50. package/model/projects-margin-report-retrieve-period-error-component.dto.d.ts +28 -0
  51. package/model/projects-margin-report-retrieve-project-managers-error-component.dto.d.ts +28 -0
  52. package/model/projects-margin-report-retrieve-project-managers-in-error-component.dto.d.ts +28 -0
  53. package/model/projects-margin-report-retrieve-validation-error.dto.d.ts +15 -0
  54. package/model/simple-project.dto.d.ts +1 -1
  55. package/model/simple-task.dto.d.ts +2 -2
  56. package/model/simple-user-period-approver.dto.d.ts +1 -1
  57. package/model/simple-user.dto.d.ts +1 -1
  58. package/model/task.dto.d.ts +7 -7
  59. package/model/user-login.dto.d.ts +3 -3
  60. package/model/user-period-update.dto.d.ts +0 -4
  61. package/model/user-period.dto.d.ts +1 -1
  62. package/model/user-score.dto.d.ts +1 -1
  63. package/model/user.dto.d.ts +12 -12
  64. package/model/work-type.dto.d.ts +4 -4
  65. package/package.json +2 -2
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ export declare enum BlankEnumDto {
11
+ Empty = ""
12
+ }
@@ -18,9 +18,9 @@ export interface BranchPeriodDto {
18
18
  readonly created: string;
19
19
  readonly modified: string;
20
20
  branch: number;
21
- readonly branch_data: SimpleBranchDto;
22
21
  title: string;
23
22
  period: DateRangeFieldDto;
24
23
  type: BranchPeriodTypeEnumDto;
24
+ readonly branch_data: SimpleBranchDto;
25
25
  description?: string;
26
26
  }
@@ -18,10 +18,10 @@ export interface BranchDto {
18
18
  name: string;
19
19
  readonly is_active: boolean;
20
20
  code: string;
21
- readonly ceo_data: SimpleUserDto;
22
21
  is_vacation_file_required: boolean;
23
22
  is_oversea: boolean;
24
23
  vacation_days_count: number;
24
+ readonly ceo_data: SimpleUserDto | null;
25
25
  ceo?: number | null;
26
26
  icon?: string | null;
27
27
  timezone?: string;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * Serializer to present margin report for `Client` instance.
12
+ */
13
+ export interface ClientDurationDataDto {
14
+ readonly id: number;
15
+ readonly created: string;
16
+ readonly modified: string;
17
+ name: string;
18
+ readonly billable_duration: number;
19
+ readonly billable_duration_round_half: number;
20
+ readonly billable_duration_round_zero: number;
21
+ readonly unbillable_duration: number;
22
+ readonly unbillable_duration_round_half: number;
23
+ readonly unbillable_duration_round_zero: number;
24
+ readonly total_duration: number;
25
+ readonly total_duration_round_half: number;
26
+ readonly total_duration_round_zero: number;
27
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { ClientDurationDataDto } from "./client-duration-data.dto";
11
+ /**
12
+ * Serializer to present total margin report for `Client` instances.
13
+ */
14
+ export interface ClientMarginReportDto {
15
+ readonly billable_duration: number;
16
+ readonly billable_duration_round_half: number;
17
+ readonly billable_duration_round_zero: number;
18
+ readonly unbillable_duration: number;
19
+ readonly unbillable_duration_round_half: number;
20
+ readonly unbillable_duration_round_zero: number;
21
+ readonly total_duration: number;
22
+ readonly total_duration_round_half: number;
23
+ readonly total_duration_round_zero: number;
24
+ readonly clients: Array<ClientDurationDataDto>;
25
+ }
@@ -22,11 +22,11 @@ export interface ClientNoteDto {
22
22
  description: string;
23
23
  files: Array<ClientProjectNoteFileDto>;
24
24
  readonly created_by: number | null;
25
- readonly created_by_data: SimpleUserDto;
26
25
  readonly updated_by: number | null;
27
- readonly updated_by_data: SimpleUserDto;
28
26
  readonly client_data: SimpleClientDto;
29
27
  readonly project_data: SimpleProjectDto | null;
28
+ readonly created_by_data: SimpleUserDto | null;
29
+ readonly updated_by_data: SimpleUserDto | null;
30
30
  client?: number | null;
31
31
  project?: number | null;
32
32
  }
@@ -24,7 +24,6 @@ export interface ClientSerializerWithStatsDto {
24
24
  is_billable: boolean;
25
25
  billing_method: BillingMethodEnumDto;
26
26
  account_manager: number;
27
- readonly account_manager_data: SimpleUserDto;
28
27
  payment_recipient_name: string;
29
28
  time_limit_per_month: number;
30
29
  /**
@@ -51,10 +50,7 @@ export interface ClientSerializerWithStatsDto {
51
50
  billing_country: string;
52
51
  billing_notes: string;
53
52
  readonly created_by: number | null;
54
- readonly created_by_data: SimpleUserDto;
55
53
  readonly updated_by: number | null;
56
- readonly updated_by_data: SimpleUserDto;
57
- contacts_data: Array<WritableClientContactDto>;
58
54
  readonly billable_jobs_count: number;
59
55
  readonly unbillable_jobs_count: number;
60
56
  readonly billable_tasks_count: number;
@@ -65,5 +61,9 @@ export interface ClientSerializerWithStatsDto {
65
61
  readonly unbillable_time_limit: number;
66
62
  readonly billable_avg_day_duration: number;
67
63
  readonly unbillable_avg_day_duration: number;
64
+ contacts_data: Array<WritableClientContactDto>;
65
+ readonly account_manager_data: SimpleUserDto;
66
+ readonly created_by_data: SimpleUserDto | null;
67
+ readonly updated_by_data: SimpleUserDto | null;
68
68
  contract_until?: string | null;
69
69
  }
@@ -24,7 +24,6 @@ export interface ClientDto {
24
24
  is_billable: boolean;
25
25
  billing_method: BillingMethodEnumDto;
26
26
  account_manager: number;
27
- readonly account_manager_data: SimpleUserDto;
28
27
  payment_recipient_name: string;
29
28
  time_limit_per_month: number;
30
29
  /**
@@ -51,9 +50,10 @@ export interface ClientDto {
51
50
  billing_country: string;
52
51
  billing_notes: string;
53
52
  readonly created_by: number | null;
54
- readonly created_by_data: SimpleUserDto;
55
53
  readonly updated_by: number | null;
56
- readonly updated_by_data: SimpleUserDto;
57
54
  contacts_data: Array<WritableClientContactDto>;
55
+ readonly account_manager_data: SimpleUserDto;
56
+ readonly created_by_data: SimpleUserDto | null;
57
+ readonly updated_by_data: SimpleUserDto | null;
58
58
  contract_until?: string | null;
59
59
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { ParseErrorResponseDto } from "./parse-error-response.dto";
11
+ import { ClientsMarginReportRetrieveValidationErrorDto } from "./clients-margin-report-retrieve-validation-error.dto";
12
+ /**
13
+ * @type ClientsMarginReportRetrieveErrorResponse400Dto
14
+ * @export
15
+ */
16
+ export type ClientsMarginReportRetrieveErrorResponse400Dto = ClientsMarginReportRetrieveValidationErrorDto | ParseErrorResponseDto;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { ClientsMarginReportRetrievePeriodErrorComponentDto } from "./clients-margin-report-retrieve-period-error-component.dto";
11
+ import { ClientsMarginReportRetrieveTaskProjectBillingTypeErrorComponentDto } from "./clients-margin-report-retrieve-task-project-billing-type-error-component.dto";
12
+ import { ClientsMarginReportRetrieveTaskProjectProjectManagersInErrorComponentDto } from "./clients-margin-report-retrieve-task-project-project-managers-in-error-component.dto";
13
+ import { ClientsMarginReportRetrieveIdInErrorComponentDto } from "./clients-margin-report-retrieve-id-in-error-component.dto";
14
+ import { ClientsMarginReportRetrieveOrderingErrorComponentDto } from "./clients-margin-report-retrieve-ordering-error-component.dto";
15
+ /**
16
+ * @type ClientsMarginReportRetrieveErrorDto
17
+ * @export
18
+ */
19
+ export type ClientsMarginReportRetrieveErrorDto = ClientsMarginReportRetrieveIdInErrorComponentDto | ClientsMarginReportRetrieveOrderingErrorComponentDto | ClientsMarginReportRetrievePeriodErrorComponentDto | ClientsMarginReportRetrieveTaskProjectBillingTypeErrorComponentDto | ClientsMarginReportRetrieveTaskProjectProjectManagersInErrorComponentDto;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ export interface ClientsMarginReportRetrieveIdInErrorComponentDto {
11
+ /**
12
+ * * `id__in` - id__in
13
+ */
14
+ attr: ClientsMarginReportRetrieveIdInErrorComponentDtoAttrEnum;
15
+ /**
16
+ * * `invalid` - invalid * `max_value` - max_value
17
+ */
18
+ code: ClientsMarginReportRetrieveIdInErrorComponentDtoCodeEnum;
19
+ detail: string;
20
+ }
21
+ export declare enum ClientsMarginReportRetrieveIdInErrorComponentDtoAttrEnum {
22
+ IdIn = "id__in"
23
+ }
24
+ export declare enum ClientsMarginReportRetrieveIdInErrorComponentDtoCodeEnum {
25
+ Invalid = "invalid",
26
+ MaxValue = "max_value"
27
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ export interface ClientsMarginReportRetrieveOrderingErrorComponentDto {
11
+ /**
12
+ * * `ordering` - ordering
13
+ */
14
+ attr: ClientsMarginReportRetrieveOrderingErrorComponentDtoAttrEnum;
15
+ /**
16
+ * * `null_characters_not_allowed` - null_characters_not_allowed
17
+ */
18
+ code: ClientsMarginReportRetrieveOrderingErrorComponentDtoCodeEnum;
19
+ detail: string;
20
+ }
21
+ export declare enum ClientsMarginReportRetrieveOrderingErrorComponentDtoAttrEnum {
22
+ Ordering = "ordering"
23
+ }
24
+ export declare enum ClientsMarginReportRetrieveOrderingErrorComponentDtoCodeEnum {
25
+ NullCharactersNotAllowed = "null_characters_not_allowed"
26
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ export interface ClientsMarginReportRetrievePeriodErrorComponentDto {
11
+ /**
12
+ * * `period` - period
13
+ */
14
+ attr: ClientsMarginReportRetrievePeriodErrorComponentDtoAttrEnum;
15
+ /**
16
+ * * `invalid` - invalid * `null_characters_not_allowed` - null_characters_not_allowed * `required` - required
17
+ */
18
+ code: ClientsMarginReportRetrievePeriodErrorComponentDtoCodeEnum;
19
+ detail: string;
20
+ }
21
+ export declare enum ClientsMarginReportRetrievePeriodErrorComponentDtoAttrEnum {
22
+ Period = "period"
23
+ }
24
+ export declare enum ClientsMarginReportRetrievePeriodErrorComponentDtoCodeEnum {
25
+ Invalid = "invalid",
26
+ NullCharactersNotAllowed = "null_characters_not_allowed",
27
+ Required = "required"
28
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ export interface ClientsMarginReportRetrieveTaskProjectBillingTypeErrorComponentDto {
11
+ /**
12
+ * * `task__project__billing_type` - task__project__billing_type
13
+ */
14
+ attr: ClientsMarginReportRetrieveTaskProjectBillingTypeErrorComponentDtoAttrEnum;
15
+ /**
16
+ * * `invalid_choice` - invalid_choice
17
+ */
18
+ code: ClientsMarginReportRetrieveTaskProjectBillingTypeErrorComponentDtoCodeEnum;
19
+ detail: string;
20
+ }
21
+ export declare enum ClientsMarginReportRetrieveTaskProjectBillingTypeErrorComponentDtoAttrEnum {
22
+ TaskProjectBillingType = "task__project__billing_type"
23
+ }
24
+ export declare enum ClientsMarginReportRetrieveTaskProjectBillingTypeErrorComponentDtoCodeEnum {
25
+ InvalidChoice = "invalid_choice"
26
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ export interface ClientsMarginReportRetrieveTaskProjectProjectManagersInErrorComponentDto {
11
+ /**
12
+ * * `task__project__project_managers__in` - task__project__project_managers__in
13
+ */
14
+ attr: ClientsMarginReportRetrieveTaskProjectProjectManagersInErrorComponentDtoAttrEnum;
15
+ /**
16
+ * * `invalid` - invalid * `max_value` - max_value
17
+ */
18
+ code: ClientsMarginReportRetrieveTaskProjectProjectManagersInErrorComponentDtoCodeEnum;
19
+ detail: string;
20
+ }
21
+ export declare enum ClientsMarginReportRetrieveTaskProjectProjectManagersInErrorComponentDtoAttrEnum {
22
+ TaskProjectProjectManagersIn = "task__project__project_managers__in"
23
+ }
24
+ export declare enum ClientsMarginReportRetrieveTaskProjectProjectManagersInErrorComponentDtoCodeEnum {
25
+ Invalid = "invalid",
26
+ MaxValue = "max_value"
27
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { ClientsMarginReportRetrieveErrorDto } from "./clients-margin-report-retrieve-error.dto";
11
+ import { ValidationErrorEnumDto } from "./validation-error-enum.dto";
12
+ export interface ClientsMarginReportRetrieveValidationErrorDto {
13
+ type: ValidationErrorEnumDto;
14
+ errors: Array<ClientsMarginReportRetrieveErrorDto>;
15
+ }
@@ -15,6 +15,9 @@ export interface DepartmentDto {
15
15
  readonly id: number;
16
16
  readonly created: string;
17
17
  readonly modified: string;
18
+ name: string;
19
+ readonly is_active: boolean;
20
+ work_types: Array<number>;
18
21
  /**
19
22
  * Count of users in department
20
23
  */
@@ -23,9 +26,6 @@ export interface DepartmentDto {
23
26
  * Count of work types in department
24
27
  */
25
28
  readonly work_types_count: number;
26
- name: string;
27
- readonly is_active: boolean;
28
- work_types: Array<number>;
29
29
  readonly work_types_data: Array<SimpleWorkTypeDto>;
30
30
  color?: string;
31
31
  }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * * `monthly` - Monthly * `quarterly` - Quarterly * `semi_annual` - Semi-Annual * `annual` - Annual * `unknown` - Unknown
12
+ */
13
+ export declare enum HostingFrequencyEnumDto {
14
+ Monthly = "monthly",
15
+ Quarterly = "quarterly",
16
+ SemiAnnual = "semi_annual",
17
+ Annual = "annual",
18
+ Unknown = "unknown"
19
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { HostingFrequencyEnumDto } from "./hosting-frequency-enum.dto";
11
+ import { BlankEnumDto } from "./blank-enum.dto";
12
+ /**
13
+ * @type HostingPeriodDto
14
+ * @export
15
+ */
16
+ export type HostingPeriodDto = BlankEnumDto | HostingFrequencyEnumDto;
@@ -17,9 +17,9 @@ export interface JobReportUserDto {
17
17
  billable: number;
18
18
  unbillable: number;
19
19
  total: number;
20
- readonly work_type_data: SimpleWorkTypeDto;
21
20
  readonly billed_by: number | null;
22
- readonly billed_by_data: SimpleUserDto;
23
21
  readonly report_data: Array<JobReportDataDto>;
22
+ readonly billed_by_data: SimpleUserDto | null;
23
+ readonly work_type_data: SimpleWorkTypeDto | null;
24
24
  work_type?: number | null;
25
25
  }
@@ -25,15 +25,17 @@ export interface JobDto {
25
25
  is_billable: boolean;
26
26
  duration: number;
27
27
  task: number;
28
- readonly task_data: SimpleTaskDto;
29
- readonly work_type_data: SimpleWorkTypeDto;
30
- readonly branch_data: SimpleBranchDto;
31
28
  readonly billed_by: number | null;
32
- readonly billed_by_data: SimpleUserDto;
33
29
  readonly created_by: number | null;
34
- readonly created_by_data: SimpleUserDto;
35
30
  readonly updated_by: number | null;
36
- readonly updated_by_data: SimpleUserDto;
31
+ readonly department_name: string;
32
+ readonly department_color: string;
33
+ readonly billed_by_data: SimpleUserDto | null;
34
+ readonly task_data: SimpleTaskDto;
35
+ readonly branch_data: SimpleBranchDto | null;
36
+ readonly work_type_data: SimpleWorkTypeDto | null;
37
+ readonly created_by_data: SimpleUserDto | null;
38
+ readonly updated_by_data: SimpleUserDto | null;
37
39
  work_type?: number | null;
38
40
  branch?: number | null;
39
41
  }
@@ -14,11 +14,11 @@ export interface LocationDto {
14
14
  readonly id: number;
15
15
  readonly created: string;
16
16
  readonly modified: string;
17
+ name: string;
18
+ timezone: string;
17
19
  /**
18
20
  * Count of users in location
19
21
  */
20
22
  readonly users_count: number;
21
- name: string;
22
- timezone: string;
23
23
  icon?: string | null;
24
24
  }
package/model/models.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./billable-chart.dto";
2
2
  export * from "./billing-frequency-enum.dto";
3
3
  export * from "./billing-method-enum.dto";
4
4
  export * from "./billing-type-enum.dto";
5
+ export * from "./blank-enum.dto";
5
6
  export * from "./branch-change-state-request.dto";
6
7
  export * from "./branch.dto";
7
8
  export * from "./branch-period.dto";
@@ -104,7 +105,9 @@ export * from "./branches-users-stats-list-id-in-error-component.dto";
104
105
  export * from "./branches-users-stats-list-users-search-error-component.dto";
105
106
  export * from "./branches-users-stats-list-validation-error.dto";
106
107
  export * from "./client.dto";
108
+ export * from "./client-duration-data.dto";
107
109
  export * from "./client-error-enum.dto";
110
+ export * from "./client-margin-report.dto";
108
111
  export * from "./client-note.dto";
109
112
  export * from "./client-note-request.dto";
110
113
  export * from "./client-note-resource-create-export-job-request.dto";
@@ -252,6 +255,14 @@ export * from "./clients-list-zip-error-component.dto";
252
255
  export * from "./clients-list-zip-in-error-component.dto";
253
256
  export * from "./clients-list-zoho-account-id-error-component.dto";
254
257
  export * from "./clients-list-zoho-account-id-in-error-component.dto";
258
+ export * from "./clients-margin-report-retrieve-error.dto";
259
+ export * from "./clients-margin-report-retrieve-error-response400.dto";
260
+ export * from "./clients-margin-report-retrieve-id-in-error-component.dto";
261
+ export * from "./clients-margin-report-retrieve-ordering-error-component.dto";
262
+ export * from "./clients-margin-report-retrieve-period-error-component.dto";
263
+ export * from "./clients-margin-report-retrieve-task-project-billing-type-error-component.dto";
264
+ export * from "./clients-margin-report-retrieve-task-project-project-managers-in-error-component.dto";
265
+ export * from "./clients-margin-report-retrieve-validation-error.dto";
255
266
  export * from "./clients-search-list-account-manager-error-component.dto";
256
267
  export * from "./clients-search-list-account-manager-in-error-component.dto";
257
268
  export * from "./clients-search-list-address1-error-component.dto";
@@ -666,6 +677,8 @@ export * from "./export-users-start-create-file-format-error-component.dto";
666
677
  export * from "./export-users-start-create-non-field-errors-error-component.dto";
667
678
  export * from "./export-users-start-create-validation-error.dto";
668
679
  export * from "./file-format-enum.dto";
680
+ export * from "./hosting-frequency-enum.dto";
681
+ export * from "./hosting-period.dto";
669
682
  export * from "./jira-client-create-project-create-error.dto";
670
683
  export * from "./jira-client-create-project-create-error-response400.dto";
671
684
  export * from "./jira-client-create-project-create-instance-error-component.dto";
@@ -1024,6 +1037,7 @@ export * from "./profile-update-updated-by-error-component.dto";
1024
1037
  export * from "./profile-update-validation-error.dto";
1025
1038
  export * from "./progress-info.dto";
1026
1039
  export * from "./project.dto";
1040
+ export * from "./project-margin-report.dto";
1027
1041
  export * from "./project-note.dto";
1028
1042
  export * from "./project-note-request.dto";
1029
1043
  export * from "./project-note-resource-create-export-job-request.dto";
@@ -1171,6 +1185,19 @@ export * from "./projects-list-project-managers-id-in-error-component.dto";
1171
1185
  export * from "./projects-list-status-error-component.dto";
1172
1186
  export * from "./projects-list-status-in-error-component.dto";
1173
1187
  export * from "./projects-list-validation-error.dto";
1188
+ export * from "./projects-margin-report-retrieve-billing-type-error-component.dto";
1189
+ export * from "./projects-margin-report-retrieve-billing-type-in-error-component.dto";
1190
+ export * from "./projects-margin-report-retrieve-client-account-manager-error-component.dto";
1191
+ export * from "./projects-margin-report-retrieve-client-account-manager-in-error-component.dto";
1192
+ export * from "./projects-margin-report-retrieve-client-error-component.dto";
1193
+ export * from "./projects-margin-report-retrieve-client-in-error-component.dto";
1194
+ export * from "./projects-margin-report-retrieve-error.dto";
1195
+ export * from "./projects-margin-report-retrieve-error-response400.dto";
1196
+ export * from "./projects-margin-report-retrieve-id-in-error-component.dto";
1197
+ export * from "./projects-margin-report-retrieve-period-error-component.dto";
1198
+ export * from "./projects-margin-report-retrieve-project-managers-error-component.dto";
1199
+ export * from "./projects-margin-report-retrieve-project-managers-in-error-component.dto";
1200
+ export * from "./projects-margin-report-retrieve-validation-error.dto";
1174
1201
  export * from "./projects-status-report-list-billing-type-error-component.dto";
1175
1202
  export * from "./projects-status-report-list-billing-type-in-error-component.dto";
1176
1203
  export * from "./projects-status-report-list-client-account-manager-error-component.dto";
@@ -17,8 +17,8 @@ export interface PeriodApproverDto {
17
17
  readonly created: string;
18
18
  readonly modified: string;
19
19
  approver: number;
20
- readonly approver_data: PeriodUserDto;
21
20
  status: UserPeriodStatusEnumDto;
21
+ readonly approver_data: PeriodUserDto;
22
22
  status_updated?: string | null;
23
23
  comment?: string;
24
24
  }
@@ -26,14 +26,14 @@ export interface PeriodUserDto {
26
26
  email: string;
27
27
  status: UserStatusEnumDto;
28
28
  branch: number;
29
- readonly branch_data: SimpleBranchDto;
30
29
  department: number;
31
- readonly department_data: SimpleDepartmentDto;
32
30
  work_type: number;
33
- readonly work_type_data: SimpleWorkTypeDto;
34
- readonly location_data: LocationDto;
35
31
  readonly created: string;
36
32
  readonly modified: string;
33
+ readonly department_data: SimpleDepartmentDto;
34
+ readonly branch_data: SimpleBranchDto;
35
+ readonly work_type_data: SimpleWorkTypeDto;
36
+ readonly location_data: LocationDto | null;
37
37
  middle_name?: string;
38
38
  avatar?: string | null;
39
39
  timezone?: string;
@@ -39,31 +39,31 @@ export interface ProfileDto {
39
39
  readonly first_working_day_by_contract: string | null;
40
40
  readonly last_working_day: string | null;
41
41
  readonly branch: number;
42
- readonly branch_data: SimpleBranchDto;
43
42
  readonly department: number;
44
- readonly department_data: SimpleDepartmentDto;
45
43
  readonly work_type: number;
46
- readonly work_type_data: SimpleWorkTypeDto;
47
- readonly location_data: SimpleLocationDto;
48
44
  readonly vendor: number | null;
49
- readonly vendor_data: SimpleVendorDto;
50
45
  readonly recruited_by: number | null;
51
- readonly recruited_by_data: SimpleUserDto;
52
46
  readonly dismissal_reasons: Array<number>;
53
- readonly dismissal_reasons_data: Array<DismissalReasonDto>;
54
47
  readonly role: number | null;
55
48
  /**
56
49
  * Account ID of user in Jira. User has only one id no matter the instance
57
50
  */
58
51
  readonly jira_account_id: string | null;
59
52
  readonly supervisors: Array<number>;
60
- readonly supervisors_data: Array<SimpleUserDto>;
61
53
  readonly supervisees: Array<number>;
62
- readonly supervisees_data: Array<SimpleUserDto>;
63
- readonly created_by_data: SimpleUserDto;
64
- readonly updated_by_data: SimpleUserDto;
65
54
  readonly utilization: string;
66
55
  readonly billable_utilization: string;
56
+ readonly branch_data: SimpleBranchDto;
57
+ readonly department_data: SimpleDepartmentDto;
58
+ readonly work_type_data: SimpleWorkTypeDto;
59
+ readonly vendor_data: SimpleVendorDto | null;
60
+ readonly location_data: SimpleLocationDto | null;
61
+ readonly dismissal_reasons_data: Array<DismissalReasonDto>;
62
+ readonly recruited_by_data: SimpleUserDto | null;
63
+ readonly supervisors_data: Array<SimpleUserDto>;
64
+ readonly supervisees_data: Array<SimpleUserDto>;
65
+ readonly created_by_data: SimpleUserDto | null;
66
+ readonly updated_by_data: SimpleUserDto | null;
67
67
  middle_name?: string;
68
68
  avatar?: string | null;
69
69
  office_phone?: string;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Delmar Api
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { BillingFrequencyEnumDto } from "./billing-frequency-enum.dto";
11
+ import { SimpleProjectPriorityDto } from "./simple-project-priority.dto";
12
+ import { BillingTypeEnumDto } from "./billing-type-enum.dto";
13
+ import { HostingPeriodDto } from "./hosting-period.dto";
14
+ /**
15
+ * Serializer to present margin report for `Project` instances.
16
+ */
17
+ export interface ProjectMarginReportDto {
18
+ readonly id: number;
19
+ readonly created: string;
20
+ readonly modified: string;
21
+ name: string;
22
+ billing_type: BillingTypeEnumDto;
23
+ billing_frequency: BillingFrequencyEnumDto;
24
+ readonly billable_duration: number;
25
+ readonly billable_duration_round_half: number;
26
+ readonly billable_duration_round_zero: number;
27
+ readonly unbillable_duration: number;
28
+ readonly unbillable_duration_round_half: number;
29
+ readonly unbillable_duration_round_zero: number;
30
+ readonly total_duration: number;
31
+ readonly total_duration_round_half: number;
32
+ readonly total_duration_round_zero: number;
33
+ readonly priority_data: SimpleProjectPriorityDto | null;
34
+ priority?: number | null;
35
+ has_hosting?: boolean;
36
+ hosting_fee?: string | null;
37
+ hosting_frequency?: HostingPeriodDto;
38
+ hosting_start?: string | null;
39
+ }
@@ -22,10 +22,10 @@ export interface ProjectNoteDto {
22
22
  description: string;
23
23
  files: Array<ClientProjectNoteFileDto>;
24
24
  readonly created_by: number | null;
25
- readonly created_by_data: SimpleUserDto;
26
25
  readonly updated_by: number | null;
27
- readonly updated_by_data: SimpleUserDto;
28
- readonly project_data: SimpleProjectDto;
29
26
  readonly client_data: SimpleClientDto;
27
+ readonly project_data: SimpleProjectDto;
28
+ readonly created_by_data: SimpleUserDto | null;
29
+ readonly updated_by_data: SimpleUserDto | null;
30
30
  project?: number;
31
31
  }