feat: assignment of employees to deals
This commit is contained in:
@@ -61,8 +61,11 @@ import type { DealUpdateServiceQuantityRequest } from '../models/DealUpdateServi
|
||||
import type { DealUpdateServiceQuantityResponse } from '../models/DealUpdateServiceQuantityResponse';
|
||||
import type { DealUpdateServiceRequest } from '../models/DealUpdateServiceRequest';
|
||||
import type { DealUpdateServiceResponse } from '../models/DealUpdateServiceResponse';
|
||||
import type { GetAvailableEmployeesToAssignResponse } from '../models/GetAvailableEmployeesToAssignResponse';
|
||||
import type { GetDealProductsBarcodesPdfRequest } from '../models/GetDealProductsBarcodesPdfRequest';
|
||||
import type { GetDealProductsBarcodesPdfResponse } from '../models/GetDealProductsBarcodesPdfResponse';
|
||||
import type { ManageEmployeeRequest } from '../models/ManageEmployeeRequest';
|
||||
import type { ManageEmployeeResponse } from '../models/ManageEmployeeResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
@@ -382,6 +385,47 @@ export class DealService {
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Manage Employee
|
||||
* @returns ManageEmployeeResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static manageEmployee({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: ManageEmployeeRequest,
|
||||
}): CancelablePromise<ManageEmployeeResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal/employee',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get Available Employees To Assign
|
||||
* @returns GetAvailableEmployeesToAssignResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getAvailableEmployeesToAssign({
|
||||
dealId,
|
||||
}: {
|
||||
dealId: number,
|
||||
}): CancelablePromise<GetAvailableEmployeesToAssignResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/deal/employee/available/{deal_id}',
|
||||
path: {
|
||||
'deal_id': dealId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Services Add
|
||||
* @returns DealAddServicesResponse Successful Response
|
||||
|
||||
Reference in New Issue
Block a user