@saritasa/crm-delmar-core-sdk 0.1.10 → 0.1.12

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 (44) 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/notifications-api.serviceInterface.d.ts +1 -1
  5. package/api/projects-api.service.d.ts +23 -1
  6. package/api/projects-api.serviceInterface.d.ts +20 -0
  7. package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +463 -2
  8. package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
  9. package/model/blank-enum.dto.d.ts +12 -0
  10. package/model/client-duration-data.dto.d.ts +27 -0
  11. package/model/client-margin-report.dto.d.ts +25 -0
  12. package/model/clients-margin-report-retrieve-error-response400.dto.d.ts +16 -0
  13. package/model/clients-margin-report-retrieve-error.dto.d.ts +19 -0
  14. package/model/clients-margin-report-retrieve-id-in-error-component.dto.d.ts +27 -0
  15. package/model/clients-margin-report-retrieve-ordering-error-component.dto.d.ts +26 -0
  16. package/model/clients-margin-report-retrieve-period-error-component.dto.d.ts +28 -0
  17. package/model/clients-margin-report-retrieve-task-project-billing-type-error-component.dto.d.ts +26 -0
  18. package/model/clients-margin-report-retrieve-task-project-project-managers-in-error-component.dto.d.ts +27 -0
  19. package/model/clients-margin-report-retrieve-validation-error.dto.d.ts +15 -0
  20. package/model/hosting-frequency-enum.dto.d.ts +19 -0
  21. package/model/hosting-period.dto.d.ts +16 -0
  22. package/model/job.dto.d.ts +2 -0
  23. package/model/models.d.ts +30 -0
  24. package/model/notification-data.dto.d.ts +2 -1
  25. package/model/notification-type-enum.dto.d.ts +3 -2
  26. package/model/notify-data-user-period-approver-with-period.dto.d.ts +26 -0
  27. package/model/notify-data-user-period-approver.dto.d.ts +24 -0
  28. package/model/notify-data-user-period.dto.d.ts +2 -0
  29. package/model/project-margin-report.dto.d.ts +39 -0
  30. package/model/projects-margin-report-retrieve-billing-type-error-component.dto.d.ts +26 -0
  31. package/model/projects-margin-report-retrieve-billing-type-in-error-component.dto.d.ts +26 -0
  32. package/model/projects-margin-report-retrieve-client-account-manager-error-component.dto.d.ts +26 -0
  33. package/model/projects-margin-report-retrieve-client-account-manager-in-error-component.dto.d.ts +26 -0
  34. package/model/projects-margin-report-retrieve-client-error-component.dto.d.ts +26 -0
  35. package/model/projects-margin-report-retrieve-client-in-error-component.dto.d.ts +26 -0
  36. package/model/projects-margin-report-retrieve-error-response400.dto.d.ts +16 -0
  37. package/model/projects-margin-report-retrieve-error.dto.d.ts +24 -0
  38. package/model/projects-margin-report-retrieve-id-in-error-component.dto.d.ts +27 -0
  39. package/model/projects-margin-report-retrieve-period-error-component.dto.d.ts +28 -0
  40. package/model/projects-margin-report-retrieve-project-managers-error-component.dto.d.ts +28 -0
  41. package/model/projects-margin-report-retrieve-project-managers-in-error-component.dto.d.ts +28 -0
  42. package/model/projects-margin-report-retrieve-validation-error.dto.d.ts +15 -0
  43. package/model/user-period-approver-payload.dto.d.ts +20 -0
  44. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @@saritasa/crm-delmar-core-sdk@0.1.10
1
+ # @@saritasa/crm-delmar-core-sdk@0.1.12
2
2
 
3
3
  ```bash
4
- npm install @saritasa/crm-delmar-core-sdk@0.1.10 --save
4
+ npm install @saritasa/crm-delmar-core-sdk@0.1.12 --save
5
5
  ```
@@ -1,6 +1,7 @@
1
1
  import { HttpClient, HttpResponse, HttpEvent, HttpContext } from "@angular/common/http";
2
2
  import { Observable } from "rxjs";
3
3
  import { ClientDto } from "../model/client.dto";
4
+ import { ClientMarginReportDto } from "../model/client-margin-report.dto";
4
5
  import { ClientSerializerWithMonthStatsDto } from "../model/client-serializer-with-month-stats.dto";
5
6
  import { ClientSerializerWithStatsDto } from "../model/client-serializer-with-stats.dto";
6
7
  import { PaginatedClientListDto } from "../model/paginated-client-list.dto";
@@ -8,7 +9,7 @@ import { PaginatedClientSerializerWithStatsListDto } from "../model/paginated-cl
8
9
  import { PaginatedSimpleClientListDto } from "../model/paginated-simple-client-list.dto";
9
10
  import { Configuration } from "../configuration";
10
11
  import { BaseService } from "../api.base.service";
11
- import { ClientsApiServiceInterface, ClientsCreateRequestParams, ClientsListRequestParams, ClientsRetrieveRequestParams, ClientsSearchListRequestParams, ClientsUpdateRequestParams, ClientsWithMonthStatsRetrieveRequestParams, ClientsWithStatsListRequestParams, ClientsWithStatsRetrieveRequestParams } from "./clients-api.serviceInterface";
12
+ import { ClientsApiServiceInterface, ClientsCreateRequestParams, ClientsListRequestParams, ClientsMarginReportRetrieveRequestParams, ClientsRetrieveRequestParams, ClientsSearchListRequestParams, ClientsUpdateRequestParams, ClientsWithMonthStatsRetrieveRequestParams, ClientsWithStatsListRequestParams, ClientsWithStatsRetrieveRequestParams } from "./clients-api.serviceInterface";
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class ClientsApiService extends BaseService implements ClientsApiServiceInterface {
14
15
  protected httpClient: HttpClient;
@@ -55,6 +56,27 @@ export declare class ClientsApiService extends BaseService implements ClientsApi
55
56
  context?: HttpContext;
56
57
  transferCache?: boolean;
57
58
  }): Observable<HttpEvent<PaginatedClientListDto>>;
59
+ /**
60
+ * Get margin report.
61
+ * @param requestParameters
62
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
63
+ * @param reportProgress flag to report request and response progress.
64
+ */
65
+ clientsMarginReportRetrieve(requestParameters: ClientsMarginReportRetrieveRequestParams, observe?: "body", reportProgress?: boolean, options?: {
66
+ httpHeaderAccept?: "application/json";
67
+ context?: HttpContext;
68
+ transferCache?: boolean;
69
+ }): Observable<ClientMarginReportDto>;
70
+ clientsMarginReportRetrieve(requestParameters: ClientsMarginReportRetrieveRequestParams, observe?: "response", reportProgress?: boolean, options?: {
71
+ httpHeaderAccept?: "application/json";
72
+ context?: HttpContext;
73
+ transferCache?: boolean;
74
+ }): Observable<HttpResponse<ClientMarginReportDto>>;
75
+ clientsMarginReportRetrieve(requestParameters: ClientsMarginReportRetrieveRequestParams, observe?: "events", reportProgress?: boolean, options?: {
76
+ httpHeaderAccept?: "application/json";
77
+ context?: HttpContext;
78
+ transferCache?: boolean;
79
+ }): Observable<HttpEvent<ClientMarginReportDto>>;
58
80
  /**
59
81
  * View set API for Client model.
60
82
  * @param requestParameters
@@ -10,6 +10,7 @@
10
10
  import { HttpHeaders } from "@angular/common/http";
11
11
  import { Observable } from "rxjs";
12
12
  import { ClientDto } from "../model/models";
13
+ import { ClientMarginReportDto } from "../model/models";
13
14
  import { ClientRequestDto } from "../model/models";
14
15
  import { ClientSerializerWithMonthStatsDto } from "../model/models";
15
16
  import { ClientSerializerWithStatsDto } from "../model/models";
@@ -85,6 +86,14 @@ export interface ClientsListRequestParams {
85
86
  zohoAccountId?: string;
86
87
  zohoAccountIdIn?: Array<string>;
87
88
  }
89
+ export interface ClientsMarginReportRetrieveRequestParams {
90
+ period: string;
91
+ idIn?: Array<number>;
92
+ ordering?: string;
93
+ taskProjectBillingType?: "fixed" | "hourly" | "investment" | "sla";
94
+ taskProjectIsUtilized?: boolean;
95
+ taskProjectProjectManagersIn?: Array<number>;
96
+ }
88
97
  export interface ClientsRetrieveRequestParams {
89
98
  id: number;
90
99
  }
@@ -243,6 +252,12 @@ export interface ClientsApiServiceInterface {
243
252
  * @param requestParameters
244
253
  */
245
254
  clientsList(requestParameters: ClientsListRequestParams, extraHttpRequestParams?: any): Observable<PaginatedClientListDto>;
255
+ /**
256
+ *
257
+ * Get margin report.
258
+ * @param requestParameters
259
+ */
260
+ clientsMarginReportRetrieve(requestParameters: ClientsMarginReportRetrieveRequestParams, extraHttpRequestParams?: any): Observable<ClientMarginReportDto>;
246
261
  /**
247
262
  *
248
263
  * View set API for Client model.
@@ -31,7 +31,7 @@ export interface NotificationsListRequestParams {
31
31
  limit?: number;
32
32
  offset?: number;
33
33
  ordering?: string;
34
- type?: "deleted_personal_holiday" | "deleted_personal_workday" | "deleted_sick" | "new_compensation" | "new_personal_holiday" | "new_personal_workday" | "new_sick" | "new_user_score" | "new_user_score_for_supervisee" | "new_vacation" | "updated_personal_holiday" | "updated_personal_workday" | "updated_sick" | "updated_vacation" | "vacation_approval_reminder" | "vacation_approved" | "vacation_rejected";
34
+ type?: "deleted_personal_holiday" | "deleted_personal_workday" | "deleted_sick" | "new_compensation" | "new_personal_holiday" | "new_personal_workday" | "new_sick" | "new_user_score" | "new_user_score_for_supervisee" | "new_vacation" | "updated_personal_holiday" | "updated_personal_workday" | "updated_sick" | "updated_vacation" | "user_period_approver_approved" | "vacation_approval_reminder" | "vacation_approved" | "vacation_rejected";
35
35
  typeIn?: Array<string>;
36
36
  }
37
37
  export interface NotificationsReadCreateRequestParams {
@@ -5,11 +5,12 @@ import { PaginatedProjectSerializerWithStatsListDto } from "../model/paginated-p
5
5
  import { PaginatedProjectStatusReportListDto } from "../model/paginated-project-status-report-list.dto";
6
6
  import { PaginatedSimpleProjectListDto } from "../model/paginated-simple-project-list.dto";
7
7
  import { ProjectDto } from "../model/project.dto";
8
+ import { ProjectMarginReportDto } from "../model/project-margin-report.dto";
8
9
  import { ProjectSerializerWithMonthStatsDto } from "../model/project-serializer-with-month-stats.dto";
9
10
  import { ProjectSerializerWithStatsDto } from "../model/project-serializer-with-stats.dto";
10
11
  import { Configuration } from "../configuration";
11
12
  import { BaseService } from "../api.base.service";
12
- import { ProjectsApiServiceInterface, ProjectsCreateRequestParams, ProjectsListRequestParams, ProjectsRetrieveRequestParams, ProjectsStatusReportListRequestParams, ProjectsUpdateRequestParams, ProjectsWithMonthStatsRetrieveRequestParams, ProjectsWithStatsListRequestParams, ProjectsWithStatsRetrieveRequestParams, ProjectsWorkedOnListRequestParams } from "./projects-api.serviceInterface";
13
+ import { ProjectsApiServiceInterface, ProjectsCreateRequestParams, ProjectsListRequestParams, ProjectsMarginReportRetrieveRequestParams, ProjectsRetrieveRequestParams, ProjectsStatusReportListRequestParams, ProjectsUpdateRequestParams, ProjectsWithMonthStatsRetrieveRequestParams, ProjectsWithStatsListRequestParams, ProjectsWithStatsRetrieveRequestParams, ProjectsWorkedOnListRequestParams } from "./projects-api.serviceInterface";
13
14
  import * as i0 from "@angular/core";
14
15
  export declare class ProjectsApiService extends BaseService implements ProjectsApiServiceInterface {
15
16
  protected httpClient: HttpClient;
@@ -56,6 +57,27 @@ export declare class ProjectsApiService extends BaseService implements ProjectsA
56
57
  context?: HttpContext;
57
58
  transferCache?: boolean;
58
59
  }): Observable<HttpEvent<PaginatedProjectListDto>>;
60
+ /**
61
+ * Get margin report.
62
+ * @param requestParameters
63
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
64
+ * @param reportProgress flag to report request and response progress.
65
+ */
66
+ projectsMarginReportRetrieve(requestParameters: ProjectsMarginReportRetrieveRequestParams, observe?: "body", reportProgress?: boolean, options?: {
67
+ httpHeaderAccept?: "application/json";
68
+ context?: HttpContext;
69
+ transferCache?: boolean;
70
+ }): Observable<ProjectMarginReportDto>;
71
+ projectsMarginReportRetrieve(requestParameters: ProjectsMarginReportRetrieveRequestParams, observe?: "response", reportProgress?: boolean, options?: {
72
+ httpHeaderAccept?: "application/json";
73
+ context?: HttpContext;
74
+ transferCache?: boolean;
75
+ }): Observable<HttpResponse<ProjectMarginReportDto>>;
76
+ projectsMarginReportRetrieve(requestParameters: ProjectsMarginReportRetrieveRequestParams, observe?: "events", reportProgress?: boolean, options?: {
77
+ httpHeaderAccept?: "application/json";
78
+ context?: HttpContext;
79
+ transferCache?: boolean;
80
+ }): Observable<HttpEvent<ProjectMarginReportDto>>;
59
81
  /**
60
82
  * Api viewset for Project model.
61
83
  * @param requestParameters
@@ -14,6 +14,7 @@ import { PaginatedProjectSerializerWithStatsListDto } from "../model/models";
14
14
  import { PaginatedProjectStatusReportListDto } from "../model/models";
15
15
  import { PaginatedSimpleProjectListDto } from "../model/models";
16
16
  import { ProjectDto } from "../model/models";
17
+ import { ProjectMarginReportDto } from "../model/models";
17
18
  import { ProjectRequestDto } from "../model/models";
18
19
  import { ProjectSerializerWithMonthStatsDto } from "../model/models";
19
20
  import { ProjectSerializerWithStatsDto } from "../model/models";
@@ -43,6 +44,19 @@ export interface ProjectsListRequestParams {
43
44
  status?: "active" | "bug_fixing" | "cancelled" | "completed" | "maintenance" | "on_hold" | "pre_sale";
44
45
  statusIn?: Array<string>;
45
46
  }
47
+ export interface ProjectsMarginReportRetrieveRequestParams {
48
+ period: string;
49
+ billingType?: "fixed" | "hourly" | "investment" | "sla";
50
+ billingTypeIn?: Array<string>;
51
+ client?: number;
52
+ clientAccountManager?: number;
53
+ clientAccountManagerIn?: Array<number>;
54
+ clientIn?: Array<number>;
55
+ idIn?: Array<number>;
56
+ isUtilized?: boolean;
57
+ projectManagers?: Array<number>;
58
+ projectManagersIn?: Array<number>;
59
+ }
46
60
  export interface ProjectsRetrieveRequestParams {
47
61
  id: number;
48
62
  }
@@ -144,6 +158,12 @@ export interface ProjectsApiServiceInterface {
144
158
  * @param requestParameters
145
159
  */
146
160
  projectsList(requestParameters: ProjectsListRequestParams, extraHttpRequestParams?: any): Observable<PaginatedProjectListDto>;
161
+ /**
162
+ *
163
+ * Get margin report.
164
+ * @param requestParameters
165
+ */
166
+ projectsMarginReportRetrieve(requestParameters: ProjectsMarginReportRetrieveRequestParams, extraHttpRequestParams?: any): Observable<ProjectMarginReportDto>;
147
167
  /**
148
168
  *
149
169
  * Api viewset for Project model.