@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.
- package/README.md +2 -2
- package/api/clients-api.service.d.ts +23 -1
- package/api/clients-api.serviceInterface.d.ts +15 -0
- package/api/projects-api.service.d.ts +23 -1
- package/api/projects-api.serviceInterface.d.ts +20 -0
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs +461 -1
- package/fesm2022/saritasa-crm-delmar-core-sdk.mjs.map +1 -1
- package/model/blank-enum.dto.d.ts +12 -0
- package/model/branch-period.dto.d.ts +1 -1
- package/model/branch.dto.d.ts +1 -1
- package/model/client-duration-data.dto.d.ts +27 -0
- package/model/client-margin-report.dto.d.ts +25 -0
- package/model/client-note.dto.d.ts +2 -2
- package/model/client-serializer-with-stats.dto.d.ts +4 -4
- package/model/client.dto.d.ts +3 -3
- package/model/clients-margin-report-retrieve-error-response400.dto.d.ts +16 -0
- package/model/clients-margin-report-retrieve-error.dto.d.ts +19 -0
- package/model/clients-margin-report-retrieve-id-in-error-component.dto.d.ts +27 -0
- package/model/clients-margin-report-retrieve-ordering-error-component.dto.d.ts +26 -0
- package/model/clients-margin-report-retrieve-period-error-component.dto.d.ts +28 -0
- package/model/clients-margin-report-retrieve-task-project-billing-type-error-component.dto.d.ts +26 -0
- package/model/clients-margin-report-retrieve-task-project-project-managers-in-error-component.dto.d.ts +27 -0
- package/model/clients-margin-report-retrieve-validation-error.dto.d.ts +15 -0
- package/model/department.dto.d.ts +3 -3
- package/model/hosting-frequency-enum.dto.d.ts +19 -0
- package/model/hosting-period.dto.d.ts +16 -0
- package/model/job-report-user.dto.d.ts +2 -2
- package/model/job.dto.d.ts +8 -6
- package/model/location.dto.d.ts +2 -2
- package/model/models.d.ts +27 -0
- package/model/period-approver.dto.d.ts +1 -1
- package/model/period-user.dto.d.ts +4 -4
- package/model/profile.dto.d.ts +11 -11
- package/model/project-margin-report.dto.d.ts +39 -0
- package/model/project-note.dto.d.ts +3 -3
- package/model/project-resource-update.dto.d.ts +5 -5
- package/model/project-resource.dto.d.ts +5 -5
- package/model/project-serializer-with-stats.dto.d.ts +9 -9
- package/model/project-status-report.dto.d.ts +9 -9
- package/model/project.dto.d.ts +8 -8
- package/model/projects-margin-report-retrieve-billing-type-error-component.dto.d.ts +26 -0
- package/model/projects-margin-report-retrieve-billing-type-in-error-component.dto.d.ts +26 -0
- package/model/projects-margin-report-retrieve-client-account-manager-error-component.dto.d.ts +26 -0
- package/model/projects-margin-report-retrieve-client-account-manager-in-error-component.dto.d.ts +26 -0
- package/model/projects-margin-report-retrieve-client-error-component.dto.d.ts +26 -0
- package/model/projects-margin-report-retrieve-client-in-error-component.dto.d.ts +26 -0
- package/model/projects-margin-report-retrieve-error-response400.dto.d.ts +16 -0
- package/model/projects-margin-report-retrieve-error.dto.d.ts +24 -0
- package/model/projects-margin-report-retrieve-id-in-error-component.dto.d.ts +27 -0
- package/model/projects-margin-report-retrieve-period-error-component.dto.d.ts +28 -0
- package/model/projects-margin-report-retrieve-project-managers-error-component.dto.d.ts +28 -0
- package/model/projects-margin-report-retrieve-project-managers-in-error-component.dto.d.ts +28 -0
- package/model/projects-margin-report-retrieve-validation-error.dto.d.ts +15 -0
- package/model/simple-project.dto.d.ts +1 -1
- package/model/simple-task.dto.d.ts +2 -2
- package/model/simple-user-period-approver.dto.d.ts +1 -1
- package/model/simple-user.dto.d.ts +1 -1
- package/model/task.dto.d.ts +7 -7
- package/model/user-login.dto.d.ts +3 -3
- package/model/user-period-update.dto.d.ts +0 -4
- package/model/user-period.dto.d.ts +1 -1
- package/model/user-score.dto.d.ts +1 -1
- package/model/user.dto.d.ts +12 -12
- package/model/work-type.dto.d.ts +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -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.
|
|
@@ -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.
|