law-common 14.0.1-beta.0 → 14.0.1-beta.2
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/dist/src/api/interface/bank.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/bank.update.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/billing.create.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/billing.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/billing_particular_line_item.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/billing_timesheet.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/billing_transaction.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/client.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/client.update.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/client_affiliate.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/client_affiliate.update.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/configuration.create.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/configuration.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/country.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/country.update.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/cron_jobs.create.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/cron_jobs.update.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/expense_type.update.dto.interface.d.ts +6 -1
- package/dist/src/api/interface/holiday.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/holiday.update.dto.interface.d.ts +8 -3
- package/dist/src/api/interface/holiday_list.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/holiday_list.update.dto.interface.d.ts +8 -3
- package/dist/src/api/interface/intermediary_bank.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/leave.create.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/leave.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/moving_timesheet.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/moving_timesheet.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/office_location.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/office_location.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/project.create.dto.interface.d.ts +3 -5
- package/dist/src/api/interface/project.update.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/project_revenue_split.create.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/reimbursement.create.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/reimbursement.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/reimbursement_expense.create.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/reimbursement_expense.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/role_permission_mapping.create.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/role_permission_mapping.delete.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/timesheet.create.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/timesheet.entity.response.interface.d.ts +2 -2
- package/dist/src/api/interface/timesheet.update.dto.interface.d.ts +5 -5
- package/dist/src/api/interface/to_do_list.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/to_do_list.update.dto.interface.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BankStatusEnum, IBankEntity, IEntityCreateDto } from "../../entities";
|
|
2
2
|
import { IIntermediaryBankCreateDto } from "./intermediary_bank.create.dto.interface";
|
|
3
|
-
export interface IBankCreateDto extends Omit<IEntityCreateDto<IBankEntity>,
|
|
3
|
+
export interface IBankCreateDto extends Omit<IEntityCreateDto<IBankEntity>, IBankCreateExclude> {
|
|
4
4
|
status?: BankStatusEnum;
|
|
5
5
|
intermediaryBankDetails?: IIntermediaryBankCreateDto[];
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type IBankCreateExclude = "status";
|
|
@@ -4,7 +4,7 @@ export interface IBankActionDataDto {
|
|
|
4
4
|
action: BankActionEnum;
|
|
5
5
|
remark?: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface IBankUpdateDtoValidationData {
|
|
8
8
|
bankEntity: IBankEntity;
|
|
9
9
|
}
|
|
10
10
|
export interface IBankUpdateDto extends IEntityUpdateDto<IBankEntity> {
|
|
@@ -44,7 +44,7 @@ export interface IBillingTimesheetsDto {
|
|
|
44
44
|
updateDetails: IBillingTimesheetUpdateDeleteDetailDto[];
|
|
45
45
|
deleteDetails: IBillingTimesheetUpdateDeleteDetailDto[];
|
|
46
46
|
}
|
|
47
|
-
export interface
|
|
47
|
+
export interface IBillingCreateDtoValidationData {
|
|
48
48
|
projectEntity: IProjectEntity;
|
|
49
49
|
billingTimesheetEntities: IBillingTimesheetEntity[];
|
|
50
50
|
timesheetEntities: ITimesheetEntity[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BillingActionsEnum, IBillingEntity, IBillingProfileEntity, IEntityUpdateDto } from "../../entities";
|
|
2
|
-
import {
|
|
2
|
+
import { IBillingCreateDtoValidationData, IBillingParticulars } from "./billing.create.dto.interface";
|
|
3
3
|
import { IBillingParticularLineItemUpdateDto } from "./billing_particular_line_item.update.dto.interface";
|
|
4
4
|
import { IBillingReimbursementExpenseUpdateDto } from "./billing_reimbursement_expense.update.dto.interface";
|
|
5
5
|
import { IBillingTimesheetUpdateDto } from "./billing_timesheet.update.dto.interface";
|
|
@@ -17,7 +17,7 @@ export interface IUpdateBillingDto extends Omit<IBillingUpdateDto, "particulars"
|
|
|
17
17
|
particulars?: IBillingParticulars;
|
|
18
18
|
billingParticularLineItems?: IBillingParticularLineItemUpdateDto[];
|
|
19
19
|
}
|
|
20
|
-
export interface IBillingUpdateDtoValidationData extends
|
|
20
|
+
export interface IBillingUpdateDtoValidationData extends IBillingCreateDtoValidationData {
|
|
21
21
|
billingEntity: IBillingEntity;
|
|
22
22
|
billingProfileEntity: IBillingProfileEntity;
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IBillingParticularLineItemEntity, IEntityCreateDto } from "../../entities";
|
|
2
|
-
export type
|
|
3
|
-
export interface IBillingParticularLineItemCreateDto extends Omit<IEntityCreateDto<IBillingParticularLineItemEntity>,
|
|
2
|
+
export type IBillingParticularLineItemCreateExclude = "billingId";
|
|
3
|
+
export interface IBillingParticularLineItemCreateDto extends Omit<IEntityCreateDto<IBillingParticularLineItemEntity>, IBillingParticularLineItemCreateExclude> {
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IBillingTimesheetEntity, IEntityCreateDto, ITimesheetEntity } from "../../entities";
|
|
2
|
-
export interface
|
|
2
|
+
export interface IBillingTimesheetCreateDto extends IEntityCreateDto<IBillingTimesheetEntity> {
|
|
3
3
|
}
|
|
4
|
-
export interface
|
|
4
|
+
export interface IBillingTimesheetCreateDtoValidationData {
|
|
5
5
|
billingTimesheetEntities: IBillingTimesheetEntity[];
|
|
6
6
|
timesheetEntities: ITimesheetEntity[];
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BillingTransactionStatusEnum, IBillingEntity, IBillingTransactionEntity, IEntityCreateDto } from "../../entities";
|
|
2
|
-
export type
|
|
3
|
-
export interface IBillingTransactionCreateDto extends Omit<IEntityCreateDto<IBillingTransactionEntity>,
|
|
2
|
+
export type IBillingTransactionCreateExclude = "status";
|
|
3
|
+
export interface IBillingTransactionCreateDto extends Omit<IEntityCreateDto<IBillingTransactionEntity>, IBillingTransactionCreateExclude> {
|
|
4
4
|
status?: BillingTransactionStatusEnum;
|
|
5
5
|
}
|
|
6
6
|
export interface IBillingTransactionCreateDtoValidationData {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IClientEntity, IClientEntityDependent, IEntityCreateDto } from "../../entities";
|
|
2
2
|
import { IAppFileConfig } from "../../misc";
|
|
3
|
-
export type
|
|
4
|
-
export interface
|
|
3
|
+
export type IClientCreateExclude = "panDocument" | "gstDocument" | "tanDocument" | "organizationId" | "status";
|
|
4
|
+
export interface IClientCreateDto extends Omit<IEntityCreateDto<IClientEntity>, IClientCreateExclude>, IClientEntityDependent {
|
|
5
5
|
}
|
|
6
6
|
export declare const clientDocumentFileUploadConfig: IAppFileConfig[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientActionEnum, EntityEnum, EnumEntityType, IClientEntity, IClientEntityDependent, IClientIntroducingMappingEntity, IClientUserMappingEntity, IEntityUpdateDto } from "../../entities";
|
|
2
2
|
import { IDeleteDocumentDetails } from "../../misc";
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
3
|
+
import { IClientCreateExclude } from "./client.create.dto.interface";
|
|
4
|
+
export interface IClientUpdateDto extends Omit<IEntityUpdateDto<IClientEntity>, IClientCreateExclude>, Partial<IClientEntityDependent> {
|
|
5
5
|
deleteDocumentDetails?: IDeleteDocumentDetails<EnumEntityType<EntityEnum.CLIENT>>;
|
|
6
6
|
actionData: IClientActionDataDto;
|
|
7
7
|
}
|
|
@@ -9,7 +9,7 @@ export interface IClientActionDataDto {
|
|
|
9
9
|
action: ClientActionEnum;
|
|
10
10
|
remark?: string;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface IClientUpdateDtoValidationData {
|
|
13
13
|
clientEntity: IClientEntity;
|
|
14
14
|
clientUserMappingEntities: IClientUserMappingEntity[];
|
|
15
15
|
clientIntroducingMappingEntities: IClientIntroducingMappingEntity[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IClientAffiliateEntity, IEntityCreateDto } from "../../entities";
|
|
2
2
|
import { IAppFileConfig } from "../../misc";
|
|
3
|
-
export type
|
|
4
|
-
export interface IClientAffiliateCreateDto extends Omit<IEntityCreateDto<IClientAffiliateEntity>,
|
|
3
|
+
export type IClientAffiliateCreateExclude = "panDocument" | "gstDocument" | "tanDocument" | "status";
|
|
4
|
+
export interface IClientAffiliateCreateDto extends Omit<IEntityCreateDto<IClientAffiliateEntity>, IClientAffiliateCreateExclude> {
|
|
5
5
|
}
|
|
6
6
|
export declare const clientAffiliateDocumentFileUploadConfig: IAppFileConfig[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientAffiliateActionEnum, EntityEnum, EnumEntityType, IClientAffiliateEntity, IEntityUpdateDto } from "../../entities";
|
|
2
2
|
import { IDeleteDocumentDetails } from "../../misc";
|
|
3
|
-
import {
|
|
4
|
-
export interface IClientAffiliateUpdateDto extends Omit<IEntityUpdateDto<IClientAffiliateEntity>,
|
|
3
|
+
import { IClientAffiliateCreateExclude } from "./client_affiliate.create.dto.interface";
|
|
4
|
+
export interface IClientAffiliateUpdateDto extends Omit<IEntityUpdateDto<IClientAffiliateEntity>, IClientAffiliateCreateExclude> {
|
|
5
5
|
deleteDocumentDetails?: IDeleteDocumentDetails<EnumEntityType<EntityEnum.CLIENT_AFFILIATE>>;
|
|
6
6
|
actionData: IClientAffiliateActionDataDto;
|
|
7
7
|
}
|
|
@@ -9,6 +9,6 @@ export interface IClientAffiliateActionDataDto {
|
|
|
9
9
|
action: ClientAffiliateActionEnum;
|
|
10
10
|
remark?: string;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface IClientAffiliateUpdateDtoValidationData {
|
|
13
13
|
clientAffiliateEntity: IClientAffiliateEntity;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IEntityCreateDto } from "../../entities";
|
|
2
2
|
import { IConfigurationEntity, IConfigurationExclude } from "../../entities/interface/configuration.entity.interface";
|
|
3
|
-
export interface
|
|
3
|
+
export interface IConfigurationCreateDto extends Omit<IEntityCreateDto<IConfigurationEntity>, IConfigurationExclude> {
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IEntityUpdateDto } from "../../entities";
|
|
2
2
|
import { IConfigurationEntity } from "../../entities/interface/configuration.entity.interface";
|
|
3
|
-
export interface
|
|
3
|
+
export interface IConfigurationUpdateDto extends IEntityUpdateDto<IConfigurationEntity> {
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface IConfigurationUpdateDtoValidationData {
|
|
6
6
|
configurationEntity: IConfigurationEntity;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IEntityCreateDto, ICountryEntity } from "../../entities";
|
|
2
|
-
export type
|
|
3
|
-
export interface ICountryCreateDto extends Omit<IEntityCreateDto<ICountryEntity>,
|
|
2
|
+
export type ICountryCreateExclude = "status";
|
|
3
|
+
export interface ICountryCreateDto extends Omit<IEntityCreateDto<ICountryEntity>, ICountryCreateExclude> {
|
|
4
4
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CountryActionEnum } from "../../entities";
|
|
2
2
|
import { DeepPartialButRequired } from "./api.utils.interface";
|
|
3
|
-
import { ICountryCreateDto,
|
|
4
|
-
export type
|
|
3
|
+
import { ICountryCreateDto, ICountryCreateExclude } from "./country.create.dto.interface";
|
|
4
|
+
export type ICountryUpdateDto = Omit<DeepPartialButRequired<ICountryCreateDto, never> & {
|
|
5
5
|
actionData: ICountryActionDataDto;
|
|
6
|
-
},
|
|
6
|
+
}, ICountryCreateExclude>;
|
|
7
7
|
export interface ICountryActionDataDto {
|
|
8
8
|
action: CountryActionEnum;
|
|
9
9
|
remark?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IEntityCreateDto } from "../../entities";
|
|
2
2
|
import { ICronJobsEntity } from "../../entities/interface/cron_jobs.entity.interface";
|
|
3
|
-
export interface
|
|
3
|
+
export interface ICronJobsCreateDto extends IEntityCreateDto<ICronJobsEntity> {
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IEntityUpdateDto } from "../../entities";
|
|
2
2
|
import { ICronJobsEntity } from "../../entities/interface/cron_jobs.entity.interface";
|
|
3
|
-
export interface
|
|
3
|
+
export interface ICronJobsUpdateDto extends IEntityUpdateDto<ICronJobsEntity> {
|
|
4
4
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { ExpenseTypeEnum, IExpenseTypeEntity } from "../../entities";
|
|
1
|
+
import { ExpenseTypeActionEnum, ExpenseTypeEnum, IExpenseTypeEntity } from "../../entities";
|
|
2
2
|
export interface IExpenseTypeUpdateDto {
|
|
3
3
|
name?: string;
|
|
4
4
|
description?: string;
|
|
5
5
|
type?: ExpenseTypeEnum;
|
|
6
|
+
actionData: IExpenseTypeActionDataDto;
|
|
7
|
+
}
|
|
8
|
+
export interface IExpenseTypeActionDataDto {
|
|
9
|
+
action: ExpenseTypeActionEnum;
|
|
10
|
+
remark?: string;
|
|
6
11
|
}
|
|
7
12
|
export interface IExpenseTypeUpdateDtoValidationData {
|
|
8
13
|
existingEntity: IExpenseTypeEntity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEntityCreateDto } from "../../entities";
|
|
2
2
|
import { IHolidayEntity } from "../../entities/interface/holiday.entity.interface";
|
|
3
3
|
/** status is set by the entity flow, never by the client */
|
|
4
|
-
export type
|
|
5
|
-
export interface IHolidayCreateDto extends Omit<IEntityCreateDto<IHolidayEntity>,
|
|
4
|
+
export type IHolidayCreateExclude = "status";
|
|
5
|
+
export interface IHolidayCreateDto extends Omit<IEntityCreateDto<IHolidayEntity>, IHolidayCreateExclude> {
|
|
6
6
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { IEntityUpdateDto } from "../../entities";
|
|
1
|
+
import { IEntityUpdateDto, HolidayActionEnum } from "../../entities";
|
|
2
2
|
import { IHolidayEntity } from "../../entities/interface/holiday.entity.interface";
|
|
3
|
-
import {
|
|
4
|
-
export interface IHolidayUpdateDto extends Omit<IEntityUpdateDto<IHolidayEntity>,
|
|
3
|
+
import { IHolidayCreateExclude } from "./holiday.create.dto.interface";
|
|
4
|
+
export interface IHolidayUpdateDto extends Omit<IEntityUpdateDto<IHolidayEntity>, IHolidayCreateExclude> {
|
|
5
|
+
actionData: IHolidayActionDataDto;
|
|
6
|
+
}
|
|
7
|
+
export interface IHolidayActionDataDto {
|
|
8
|
+
action: HolidayActionEnum;
|
|
9
|
+
remark?: string;
|
|
5
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEntityCreateDto } from "../../entities";
|
|
2
2
|
import { IHolidayListEntity } from "../../entities/interface/holiday_list.entity.interface";
|
|
3
3
|
/** status is set by the entity flow, never by the client */
|
|
4
|
-
export type
|
|
5
|
-
export interface IHolidayListCreateDto extends Omit<IEntityCreateDto<IHolidayListEntity>,
|
|
4
|
+
export type IHolidayListCreateExclude = "status";
|
|
5
|
+
export interface IHolidayListCreateDto extends Omit<IEntityCreateDto<IHolidayListEntity>, IHolidayListCreateExclude> {
|
|
6
6
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { IEntityUpdateDto } from "../../entities";
|
|
1
|
+
import { IEntityUpdateDto, HolidayListActionEnum } from "../../entities";
|
|
2
2
|
import { IHolidayListEntity } from "../../entities/interface/holiday_list.entity.interface";
|
|
3
|
-
import {
|
|
4
|
-
export interface IHolidayListUpdateDto extends Omit<IEntityUpdateDto<IHolidayListEntity>,
|
|
3
|
+
import { IHolidayListCreateExclude } from "./holiday_list.create.dto.interface";
|
|
4
|
+
export interface IHolidayListUpdateDto extends Omit<IEntityUpdateDto<IHolidayListEntity>, IHolidayListCreateExclude> {
|
|
5
|
+
actionData: IHolidayListActionDataDto;
|
|
6
|
+
}
|
|
7
|
+
export interface IHolidayListActionDataDto {
|
|
8
|
+
action: HolidayListActionEnum;
|
|
9
|
+
remark?: string;
|
|
5
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEntityCreateDto, IIntermediaryBankEntity } from "../../entities";
|
|
2
2
|
/** status is set by the entity flow, never by the client */
|
|
3
|
-
export type
|
|
4
|
-
export interface IIntermediaryBankCreateDto extends Omit<IEntityCreateDto<IIntermediaryBankEntity>,
|
|
3
|
+
export type IIntermediaryBankCreateExclude = "bankId" | "status";
|
|
4
|
+
export interface IIntermediaryBankCreateDto extends Omit<IEntityCreateDto<IIntermediaryBankEntity>, IIntermediaryBankCreateExclude> {
|
|
5
5
|
bankId?: number;
|
|
6
6
|
}
|
|
@@ -3,10 +3,10 @@ export interface ILeaveDtoInclude {
|
|
|
3
3
|
fromType: DurationTypeEnum;
|
|
4
4
|
toType?: DurationTypeEnum;
|
|
5
5
|
}
|
|
6
|
-
export type
|
|
7
|
-
export interface ILeaveCreateDto extends Omit<IEntityCreateDto<ILeaveEntity>,
|
|
6
|
+
export type ILeaveCreateExclude = "status";
|
|
7
|
+
export interface ILeaveCreateDto extends Omit<IEntityCreateDto<ILeaveEntity>, ILeaveCreateExclude>, ILeaveDtoInclude {
|
|
8
8
|
status?: LeaveStatusEnum;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ILeaveCreateDtoValidationData {
|
|
11
11
|
userEntity: IUserEntity;
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IEntityUpdateDto, ILeaveEntity, LeaveActionEnum } from "../../entities";
|
|
2
|
-
import { ILeaveDtoInclude,
|
|
2
|
+
import { ILeaveDtoInclude, ILeaveCreateDtoValidationData } from "./leave.create.dto.interface";
|
|
3
3
|
export interface ILeaveActionDataDto {
|
|
4
4
|
action: LeaveActionEnum;
|
|
5
5
|
remark?: string;
|
|
@@ -7,6 +7,6 @@ export interface ILeaveActionDataDto {
|
|
|
7
7
|
export interface ILeaveUpdateDto extends IEntityUpdateDto<ILeaveEntity>, Partial<ILeaveDtoInclude> {
|
|
8
8
|
actionData: ILeaveActionDataDto;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ILeaveUpdateDtoValidationData extends ILeaveCreateDtoValidationData {
|
|
11
11
|
leaveEntity: ILeaveEntity;
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEntityCreateDto, IMovingTimesheetEntity } from "../../entities";
|
|
2
2
|
import { MovingTimesheetStatusEnum } from "../../entities/enums/moving_timesheet_status_enum";
|
|
3
|
-
export type
|
|
4
|
-
export interface IMovingTimesheetCreateDto extends Omit<IEntityCreateDto<IMovingTimesheetEntity>,
|
|
3
|
+
export type IMovingTimesheetCreateExclude = "status" | "sourceProjectId";
|
|
4
|
+
export interface IMovingTimesheetCreateDto extends Omit<IEntityCreateDto<IMovingTimesheetEntity>, IMovingTimesheetCreateExclude> {
|
|
5
5
|
status?: MovingTimesheetStatusEnum;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IEntityUpdateDto, IMovingTimesheetEntity, MovingTimesheetActionEnum } from "../../entities";
|
|
2
|
-
import {
|
|
2
|
+
import { IMovingTimesheetCreateExclude } from "./moving_timesheet.create.dto.interface";
|
|
3
3
|
export interface IMovingTimesheetActionDataDto {
|
|
4
4
|
action: MovingTimesheetActionEnum;
|
|
5
5
|
}
|
|
6
|
-
export interface IMovingTimesheetUpdateDto extends Omit<IEntityUpdateDto<IMovingTimesheetEntity>,
|
|
6
|
+
export interface IMovingTimesheetUpdateDto extends Omit<IEntityUpdateDto<IMovingTimesheetEntity>, IMovingTimesheetCreateExclude> {
|
|
7
7
|
actionData: IMovingTimesheetActionDataDto;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IEntityCreateDto, IOfficeLocationEntity } from "../../entities";
|
|
2
2
|
/** status is set by the entity flow, never by the client */
|
|
3
|
-
export type
|
|
4
|
-
export interface IOfficeLocationCreateDto extends Omit<IEntityCreateDto<IOfficeLocationEntity>,
|
|
3
|
+
export type IOfficeLocationCreateExclude = "status";
|
|
4
|
+
export interface IOfficeLocationCreateDto extends Omit<IEntityCreateDto<IOfficeLocationEntity>, IOfficeLocationCreateExclude> {
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEntityUpdateDto, IOfficeLocationEntity, OfficeLocationActionEnum } from "../../entities";
|
|
2
|
-
import {
|
|
3
|
-
export interface IOfficeLocationUpdateDto extends Omit<IEntityUpdateDto<IOfficeLocationEntity>,
|
|
2
|
+
import { IOfficeLocationCreateExclude } from "./office_location.create.dto.interface";
|
|
3
|
+
export interface IOfficeLocationUpdateDto extends Omit<IEntityUpdateDto<IOfficeLocationEntity>, IOfficeLocationCreateExclude> {
|
|
4
4
|
actionData: IOfficeLocationActionDataDto;
|
|
5
5
|
}
|
|
6
6
|
export interface IOfficeLocationActionDataDto {
|
|
@@ -10,9 +10,7 @@ export interface IProjectEntityDependent {
|
|
|
10
10
|
users: IProjectUserDto[];
|
|
11
11
|
revenueSplitData: IProjectRevenueSplitData[];
|
|
12
12
|
}
|
|
13
|
-
export type
|
|
14
|
-
export interface IProjectExcludeT extends Pick<IProjectEntity, IProjectExclude> {
|
|
15
|
-
}
|
|
13
|
+
export type IProjectCreateExclude = "organizationId" | "billingRate" | "usageNotificationSentPercentage";
|
|
16
14
|
export interface IProjectHourlyRate {
|
|
17
15
|
id: number;
|
|
18
16
|
rate: number;
|
|
@@ -32,9 +30,9 @@ export interface IProjectAdhocRate {
|
|
|
32
30
|
export interface IProjectCreateDtoExtra {
|
|
33
31
|
projectBillingRate: IProjectHourlyRate[] | IProjectFixedTypeRate | IProjectAdhocRate;
|
|
34
32
|
}
|
|
35
|
-
export interface
|
|
33
|
+
export interface IProjectCreateDto extends Omit<IEntityCreateDto<IProjectEntity>, IProjectCreateExclude>, IProjectEntityDependent, IProjectCreateDtoExtra {
|
|
36
34
|
}
|
|
37
|
-
export interface
|
|
35
|
+
export interface IProjectCreateDtoValidationData {
|
|
38
36
|
clientEntity: IClientEntity;
|
|
39
37
|
userEntities: IUserEntity[];
|
|
40
38
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { IEntityUpdateDto, IProjectEntity, IProjectRevenueSplitMappingEntity, IProjectUserMappingEntity, ProjectActionEnum } from "../../entities";
|
|
2
|
-
import { IProjectCreateDtoExtra,
|
|
3
|
-
export interface
|
|
2
|
+
import { IProjectCreateDtoExtra, IProjectCreateDtoValidationData, IProjectEntityDependent, IProjectCreateExclude } from "./project.create.dto.interface";
|
|
3
|
+
export interface IProjectUpdateDto extends Omit<IEntityUpdateDto<IProjectEntity>, IProjectCreateExclude>, Partial<IProjectEntityDependent>, Partial<IProjectCreateDtoExtra> {
|
|
4
4
|
actionData: IProjectActionDataDto;
|
|
5
5
|
}
|
|
6
6
|
export interface IProjectActionDataDto {
|
|
7
7
|
action: ProjectActionEnum;
|
|
8
8
|
remark?: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface IProjectUpdateDtoValidationData extends IProjectCreateDtoValidationData {
|
|
11
11
|
projectEntity: IProjectEntity;
|
|
12
12
|
projectUserMappingEntities: IProjectUserMappingEntity[];
|
|
13
13
|
projectRevenueSplitMappingEntities: IProjectRevenueSplitMappingEntity[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityEnum, EnumEntityType, IEntityCreateDto } from "../../entities";
|
|
2
|
-
export interface
|
|
2
|
+
export interface IProjectRevenueSplitCreateDto extends IEntityCreateDto<EnumEntityType<EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING>> {
|
|
3
3
|
}
|
|
4
4
|
export interface IProjectRevenueSplitData {
|
|
5
5
|
userId: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IEntityCreateDto, IProjectUserMappingEntity, IReimbursementEntity, IReimbursementExpenseAllocation, IUserEntity } from "../../entities";
|
|
2
|
-
export type
|
|
2
|
+
export type IReimbursementCreateExclude = "billingType" | "attachmentUrlsCsv" | "amountReimbursed" | "processedBy" | "processedDate";
|
|
3
3
|
export interface IReimbursementCreateDtoExtra {
|
|
4
4
|
expenseDetails: IReimbursementExpenseAllocation[];
|
|
5
5
|
attachmentDocumentUrls?: string[];
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface IReimbursementCreateDto extends Omit<IEntityCreateDto<IReimbursementEntity>, IReimbursementCreateExclude>, IReimbursementCreateDtoExtra {
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface IReimbursementCreateDtoValidationData {
|
|
10
10
|
incurredByUser: IUserEntity;
|
|
11
11
|
projectUserMappingEntities: IProjectUserMappingEntity[];
|
|
12
12
|
}
|
|
@@ -5,8 +5,8 @@ export interface IReimbursementActionDataDto {
|
|
|
5
5
|
}
|
|
6
6
|
export interface IReimbursementUpdateDto extends IEntityUpdateDto<IReimbursementEntity> {
|
|
7
7
|
expenseDetails?: IReimbursementExpenseAllocation[];
|
|
8
|
-
actionData
|
|
8
|
+
actionData: IReimbursementActionDataDto;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface IReimbursementUpdateDtoValidationData {
|
|
11
11
|
projectUserMappingEntities: IProjectUserMappingEntity[];
|
|
12
12
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IEntityCreateDto, IProjectUserMappingEntity, IReimbursementExpenseEntity, ReimbursementExpenseState } from "../../entities";
|
|
2
|
-
export type
|
|
3
|
-
export interface
|
|
2
|
+
export type IReimbursementExpenseCreateExclude = "state";
|
|
3
|
+
export interface IReimbursementExpenseCreateDto extends Omit<IEntityCreateDto<IReimbursementExpenseEntity>, IReimbursementExpenseCreateExclude> {
|
|
4
4
|
id?: number;
|
|
5
5
|
state?: ReimbursementExpenseState;
|
|
6
6
|
billingId?: number;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface IReimbursementExpenseCreateDtoValidationData {
|
|
9
9
|
projectUserMappingEntities: IProjectUserMappingEntity[];
|
|
10
10
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IEntityUpdateDto, IProjectUserMappingEntity, IReimbursementExpenseEntity, ReimbursementExpenseActionEnum } from "../../entities";
|
|
2
|
-
export interface
|
|
2
|
+
export interface IReimbursementExpenseUpdateDto extends IEntityUpdateDto<IReimbursementExpenseEntity> {
|
|
3
3
|
id?: number;
|
|
4
4
|
action?: ReimbursementExpenseActionEnum;
|
|
5
5
|
billingId?: number;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface IReimbursementExpenseUpdateDtoValidationData {
|
|
8
8
|
projectUserMappingEntities: IProjectUserMappingEntity[];
|
|
9
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface IRolePermissionMappingDeleteDto extends
|
|
1
|
+
import { IRolePermissionMappingCreateDto } from "./role_permission_mapping.create.dto.interface";
|
|
2
|
+
export interface IRolePermissionMappingDeleteDto extends IRolePermissionMappingCreateDto {
|
|
3
3
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IEntityCreateDto, ITimesheetEntity, IUserEntity, ProjectUserMappingEntityModel, TimesheetClassificationStatusEnum, TimesheetEntityModel, TimesheetStatusEnum } from "../../entities";
|
|
2
|
-
export type
|
|
3
|
-
export interface
|
|
2
|
+
export type ITimesheetCreateExclude = "status" | "billedDuration" | "notBilledDuration" | "classificationStatus" | "classifiedBy";
|
|
3
|
+
export interface ITimesheetCreateDto extends Omit<IEntityCreateDto<ITimesheetEntity>, ITimesheetCreateExclude> {
|
|
4
4
|
status?: TimesheetStatusEnum;
|
|
5
5
|
classificationStatus?: TimesheetClassificationStatusEnum;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface ITimesheetCreateDtoValidationData {
|
|
8
8
|
projectUserMappingEntities: ProjectUserMappingEntityModel[];
|
|
9
9
|
userEntity: IUserEntity;
|
|
10
10
|
existingTimesheet: TimesheetEntityModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlowConfig, IProjectUserMappingEntity, ITimesheetEntity, IUserEntity, TimesheetActionEnum, TimesheetEntityModel, TimesheetStatusEnum } from "../../entities";
|
|
2
2
|
import { IClientApiEntityDependent } from "./client.entity.response";
|
|
3
3
|
import { IProjectApiEntityDependent } from "./project.entity.response";
|
|
4
|
-
import {
|
|
4
|
+
import { ITimesheetUpdateDto } from "./timesheet.update.dto.interface";
|
|
5
5
|
export type ITimesheetEntityGet = {
|
|
6
6
|
timesheets: ITimesheetEntity[];
|
|
7
7
|
clients: {
|
|
@@ -25,6 +25,6 @@ export type ITimesheetFlowContextData = {
|
|
|
25
25
|
currentTimesheet?: TimesheetEntityModel;
|
|
26
26
|
projectUserMapping?: IProjectUserMappingEntity;
|
|
27
27
|
buffer?: number;
|
|
28
|
-
dto?:
|
|
28
|
+
dto?: ITimesheetUpdateDto;
|
|
29
29
|
timesheetEnterThresholdValue?: number;
|
|
30
30
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IEntityUpdateDto, ITimesheetEntity, TimesheetActionEnum } from "../../entities";
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { ITimesheetCreateDtoValidationData } from "./timesheet.create.dto.interface";
|
|
3
|
+
export interface ITimesheetActionDataDto {
|
|
4
4
|
action: TimesheetActionEnum;
|
|
5
5
|
remark?: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
8
|
-
actionData:
|
|
7
|
+
export interface ITimesheetUpdateDto extends IEntityUpdateDto<ITimesheetEntity> {
|
|
8
|
+
actionData: ITimesheetActionDataDto;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ITimesheetUpdateDtoValidationData extends ITimesheetCreateDtoValidationData {
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IEntityCreateDto, IToDoListEntity } from "../../entities";
|
|
2
2
|
/** status is set by the entity flow, never by the client */
|
|
3
|
-
export type
|
|
4
|
-
export interface IToDoListCreateDto extends Omit<IEntityCreateDto<IToDoListEntity>,
|
|
3
|
+
export type IToDoListCreateExclude = "status";
|
|
4
|
+
export interface IToDoListCreateDto extends Omit<IEntityCreateDto<IToDoListEntity>, IToDoListCreateExclude> {
|
|
5
5
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IEntityUpdateDto, IToDoListEntity, ToDoListActionEnum } from "../../entities";
|
|
2
|
-
import {
|
|
3
|
-
export interface IToDoListUpdateDto extends Omit<IEntityUpdateDto<IToDoListEntity>,
|
|
2
|
+
import { IToDoListCreateExclude } from "./to_do_list.create.dto.interface";
|
|
3
|
+
export interface IToDoListUpdateDto extends Omit<IEntityUpdateDto<IToDoListEntity>, IToDoListCreateExclude> {
|
|
4
4
|
actionData: IToDoListActionDataDto;
|
|
5
5
|
}
|
|
6
6
|
export interface IToDoListActionDataDto {
|
|
7
7
|
action: ToDoListActionEnum;
|
|
8
8
|
remark?: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface IToDoListUpdateDtoValidationData {
|
|
11
11
|
toDoListEntity: IToDoListEntity;
|
|
12
12
|
}
|