law-common 14.0.1-beta.2 → 14.0.1-beta.4
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 +1 -1
- package/dist/src/api/interface/address_book.update.dto.interface.d.ts +1 -8
- package/dist/src/api/interface/bank.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/bank.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/billing.create.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/billing.flow.update.dto.d.ts +0 -4
- package/dist/src/api/interface/billing.update.dto.interface.d.ts +3 -7
- 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/billing_transaction.update.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/client.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/client.update.dto.interface.d.ts +4 -9
- 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 +4 -9
- package/dist/src/api/interface/client_quote.update.dto.interface.d.ts +1 -8
- 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/document_upload.update.dto.interface.d.ts +0 -6
- package/dist/src/api/interface/expense_head.update.dto.interface.d.ts +1 -8
- package/dist/src/api/interface/expense_type.update.dto.interface.d.ts +1 -6
- package/dist/src/api/interface/gst_rate.update.dto.interface.d.ts +1 -8
- package/dist/src/api/interface/holiday.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/holiday.update.dto.interface.d.ts +3 -8
- 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 +3 -8
- 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 +3 -3
- 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 +3 -3
- 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 +3 -8
- package/dist/src/api/interface/organization_type.update.dto.interface.d.ts +1 -8
- package/dist/src/api/interface/project.create.dto.interface.d.ts +5 -3
- package/dist/src/api/interface/project.update.dto.interface.d.ts +4 -9
- 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/tds_rate.update.dto.interface.d.ts +1 -8
- 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 +4 -9
- package/dist/src/api/interface/voucher_type.update.dto.interface.d.ts +1 -8
- package/dist/src/entities/enums/leave_action_enum.d.ts +0 -1
- package/dist/src/entities/enums/leave_action_enum.js +1 -2
- package/dist/src/entities/flow-configs/leave_flow.config.js +0 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# law-common
|
|
1
|
+
# law-common
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { AddressBookActionEnum } from "../../entities";
|
|
2
1
|
import { IAddressBookCreateDto } from "./address_book.create.dto.interface";
|
|
3
2
|
import { DeepPartialButRequired } from "./api.utils.interface";
|
|
4
|
-
export type IAddressBookUpdateDto = DeepPartialButRequired<IAddressBookCreateDto, never
|
|
5
|
-
actionData: IAddressBookActionDataDto;
|
|
6
|
-
};
|
|
7
|
-
export interface IAddressBookActionDataDto {
|
|
8
|
-
action: AddressBookActionEnum;
|
|
9
|
-
remark?: string;
|
|
10
|
-
}
|
|
3
|
+
export type IAddressBookUpdateDto = DeepPartialButRequired<IAddressBookCreateDto, never>;
|
|
@@ -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>, IBankExclude> {
|
|
4
4
|
status?: BankStatusEnum;
|
|
5
5
|
intermediaryBankDetails?: IIntermediaryBankCreateDto[];
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type IBankExclude = "status";
|
|
@@ -4,10 +4,10 @@ export interface IBankActionDataDto {
|
|
|
4
4
|
action: BankActionEnum;
|
|
5
5
|
remark?: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface IBankEntityUpdateDtoValidationData {
|
|
8
8
|
bankEntity: IBankEntity;
|
|
9
9
|
}
|
|
10
10
|
export interface IBankUpdateDto extends IEntityUpdateDto<IBankEntity> {
|
|
11
|
-
actionData
|
|
11
|
+
actionData?: IBankActionDataDto;
|
|
12
12
|
intermediaryBankDetails?: IIntermediaryBankUpdateDto[];
|
|
13
13
|
}
|
|
@@ -44,7 +44,7 @@ export interface IBillingTimesheetsDto {
|
|
|
44
44
|
updateDetails: IBillingTimesheetUpdateDeleteDetailDto[];
|
|
45
45
|
deleteDetails: IBillingTimesheetUpdateDeleteDetailDto[];
|
|
46
46
|
}
|
|
47
|
-
export interface
|
|
47
|
+
export interface IBillingEntityCreateDtoValidationData {
|
|
48
48
|
projectEntity: IProjectEntity;
|
|
49
49
|
billingTimesheetEntities: IBillingTimesheetEntity[];
|
|
50
50
|
timesheetEntities: ITimesheetEntity[];
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { BillingActionsEnum, IBillingEntity, IBillingProfileEntity, IEntityUpdateDto } from "../../entities";
|
|
2
|
-
import {
|
|
2
|
+
import { IBillingEntityCreateDtoValidationData, 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";
|
|
6
|
-
export interface IBillingActionDataDto {
|
|
7
|
-
action: BillingActionsEnum;
|
|
8
|
-
remark?: string;
|
|
9
|
-
}
|
|
10
6
|
export type IBillingUpdateDtoExclude = "draftInvoiceNumber" | "invoiceNumber";
|
|
11
7
|
export interface IBillingUpdateDto extends Omit<IEntityUpdateDto<IBillingEntity>, IBillingUpdateDtoExclude> {
|
|
12
8
|
}
|
|
13
9
|
export interface IUpdateBillingDto extends Omit<IBillingUpdateDto, "particulars"> {
|
|
14
|
-
|
|
10
|
+
action?: BillingActionsEnum;
|
|
15
11
|
timesheets?: IBillingTimesheetUpdateDto[];
|
|
16
12
|
reimbursementExpenses?: IBillingReimbursementExpenseUpdateDto[];
|
|
17
13
|
particulars?: IBillingParticulars;
|
|
18
14
|
billingParticularLineItems?: IBillingParticularLineItemUpdateDto[];
|
|
19
15
|
}
|
|
20
|
-
export interface IBillingUpdateDtoValidationData extends
|
|
16
|
+
export interface IBillingUpdateDtoValidationData extends IBillingEntityCreateDtoValidationData {
|
|
21
17
|
billingEntity: IBillingEntity;
|
|
22
18
|
billingProfileEntity: IBillingProfileEntity;
|
|
23
19
|
}
|
|
@@ -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 IBillingParticularsLineItemsExclude = "billingId";
|
|
3
|
+
export interface IBillingParticularLineItemCreateDto extends Omit<IEntityCreateDto<IBillingParticularLineItemEntity>, IBillingParticularsLineItemsExclude> {
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IBillingTimesheetEntity, IEntityCreateDto, ITimesheetEntity } from "../../entities";
|
|
2
|
-
export interface
|
|
2
|
+
export interface IBillingTimesheetEntityCreateDto extends IEntityCreateDto<IBillingTimesheetEntity> {
|
|
3
3
|
}
|
|
4
|
-
export interface
|
|
4
|
+
export interface IBillingTimesheetEntityCreateDtoValidationResult {
|
|
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 IBillingTransactionExclude = "status";
|
|
3
|
+
export interface IBillingTransactionCreateDto extends Omit<IEntityCreateDto<IBillingTransactionEntity>, IBillingTransactionExclude> {
|
|
4
4
|
status?: BillingTransactionStatusEnum;
|
|
5
5
|
}
|
|
6
6
|
export interface IBillingTransactionCreateDtoValidationData {
|
|
@@ -6,7 +6,7 @@ export interface IBillingTransactionActionDataDto {
|
|
|
6
6
|
action: BillingTransactionActionEnum;
|
|
7
7
|
}
|
|
8
8
|
export interface IBillingTransactionUpdateDto extends IEntityUpdateDto<IBillingTransactionEntity>, IBillingTransactionSupportingDocsDetails {
|
|
9
|
-
actionData
|
|
9
|
+
actionData?: IBillingTransactionActionDataDto;
|
|
10
10
|
}
|
|
11
11
|
export interface IBillingTransactionUpdateDtoValidationResult {
|
|
12
12
|
billingTransactionEntity: IBillingTransactionEntity;
|
|
@@ -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 IClientExclude = "panDocument" | "gstDocument" | "tanDocument" | "organizationId" | "status";
|
|
4
|
+
export interface IClientEntityCreateDto extends Omit<IEntityCreateDto<IClientEntity>, IClientExclude>, IClientEntityDependent {
|
|
5
5
|
}
|
|
6
6
|
export declare const clientDocumentFileUploadConfig: IAppFileConfig[];
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityEnum, EnumEntityType, IClientEntity, IClientEntityDependent, IClientIntroducingMappingEntity, IClientUserMappingEntity, IEntityUpdateDto } from "../../entities";
|
|
2
2
|
import { IDeleteDocumentDetails } from "../../misc";
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
3
|
+
import { IClientExclude } from "./client.create.dto.interface";
|
|
4
|
+
export interface IClientEntityUpdateDto extends Omit<IEntityUpdateDto<IClientEntity>, IClientExclude>, Partial<IClientEntityDependent> {
|
|
5
5
|
deleteDocumentDetails?: IDeleteDocumentDetails<EnumEntityType<EntityEnum.CLIENT>>;
|
|
6
|
-
actionData: IClientActionDataDto;
|
|
7
6
|
}
|
|
8
|
-
export interface
|
|
9
|
-
action: ClientActionEnum;
|
|
10
|
-
remark?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IClientUpdateDtoValidationData {
|
|
7
|
+
export interface IClientEntityUpdateDtoValidationData {
|
|
13
8
|
clientEntity: IClientEntity;
|
|
14
9
|
clientUserMappingEntities: IClientUserMappingEntity[];
|
|
15
10
|
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 IClientAffiliateExclude = "panDocument" | "gstDocument" | "tanDocument" | "status";
|
|
4
|
+
export interface IClientAffiliateCreateDto extends Omit<IEntityCreateDto<IClientAffiliateEntity>, IClientAffiliateExclude> {
|
|
5
5
|
}
|
|
6
6
|
export declare const clientAffiliateDocumentFileUploadConfig: IAppFileConfig[];
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityEnum, EnumEntityType, IClientAffiliateEntity, IEntityUpdateDto } from "../../entities";
|
|
2
2
|
import { IDeleteDocumentDetails } from "../../misc";
|
|
3
|
-
import {
|
|
4
|
-
export interface IClientAffiliateUpdateDto extends Omit<IEntityUpdateDto<IClientAffiliateEntity>,
|
|
3
|
+
import { IClientAffiliateExclude } from "./client_affiliate.create.dto.interface";
|
|
4
|
+
export interface IClientAffiliateUpdateDto extends Omit<IEntityUpdateDto<IClientAffiliateEntity>, IClientAffiliateExclude> {
|
|
5
5
|
deleteDocumentDetails?: IDeleteDocumentDetails<EnumEntityType<EntityEnum.CLIENT_AFFILIATE>>;
|
|
6
|
-
actionData: IClientAffiliateActionDataDto;
|
|
7
6
|
}
|
|
8
|
-
export interface
|
|
9
|
-
action: ClientAffiliateActionEnum;
|
|
10
|
-
remark?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IClientAffiliateUpdateDtoValidationData {
|
|
7
|
+
export interface IClientAffiliateEntityUpdateDtoValidationData {
|
|
13
8
|
clientAffiliateEntity: IClientAffiliateEntity;
|
|
14
9
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { ClientQuoteActionEnum } from "../../entities";
|
|
2
1
|
import { DeepPartialButRequired } from "./api.utils.interface";
|
|
3
2
|
import { IClientQuoteCreateDto } from "./client_quote.create.dto.interface";
|
|
4
|
-
export type IClientQuoteUpdateDto = DeepPartialButRequired<IClientQuoteCreateDto, never
|
|
5
|
-
actionData: IClientQuoteActionDataDto;
|
|
6
|
-
};
|
|
7
|
-
export interface IClientQuoteActionDataDto {
|
|
8
|
-
action: ClientQuoteActionEnum;
|
|
9
|
-
remark?: string;
|
|
10
|
-
}
|
|
3
|
+
export type IClientQuoteUpdateDto = DeepPartialButRequired<IClientQuoteCreateDto, never>;
|
|
@@ -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 IConfigurationEntityCreateDto 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 IConfigurationEntityBulkUpdateDto extends IEntityUpdateDto<IConfigurationEntity> {
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface IConfigurationEntityUpdateDtoValidationData {
|
|
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 ICountryCreateDtoExclude = "status";
|
|
3
|
+
export interface ICountryCreateDto extends Omit<IEntityCreateDto<ICountryEntity>, ICountryCreateDtoExclude> {
|
|
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, ICountryCreateDtoExclude } from "./country.create.dto.interface";
|
|
4
|
+
export type ICountryEntityUpdateDto = Omit<DeepPartialButRequired<ICountryCreateDto, never> & {
|
|
5
5
|
actionData: ICountryActionDataDto;
|
|
6
|
-
},
|
|
6
|
+
}, ICountryCreateDtoExclude>;
|
|
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 ICronJobCreateDto 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 ICronJobUpdateDto extends IEntityUpdateDto<ICronJobsEntity> {
|
|
4
4
|
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { DocumentUploadActionEnum } from "../../entities";
|
|
2
1
|
import { DeepPartialButRequired } from "./api.utils.interface";
|
|
3
2
|
import { IDeleteDocumentDetails } from "../../misc";
|
|
4
3
|
import { EntityEnum, EnumEntityType } from "../../entities";
|
|
5
4
|
import { IDocumentUploadCreateDto } from "./document_upload.create.dto.interface";
|
|
6
5
|
export type IDocumentUploadUpdateDto = DeepPartialButRequired<IDocumentUploadCreateDto, never> & {
|
|
7
6
|
deleteDocumentDetails?: IDeleteDocumentDetails<EnumEntityType<EntityEnum.DOCUMENT_UPLOAD>>;
|
|
8
|
-
actionData: IDocumentUploadActionDataDto;
|
|
9
7
|
};
|
|
10
|
-
export interface IDocumentUploadActionDataDto {
|
|
11
|
-
action: DocumentUploadActionEnum;
|
|
12
|
-
remark?: string;
|
|
13
|
-
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { ExpenseHeadActionEnum } from "../../entities";
|
|
2
1
|
import { DeepPartialButRequired } from "./api.utils.interface";
|
|
3
2
|
import { IExpenseHeadCreateDto } from "./expense_head.create.dto.interface";
|
|
4
|
-
export type IExpenseHeadUpdateDto = DeepPartialButRequired<IExpenseHeadCreateDto, never
|
|
5
|
-
actionData: IExpenseHeadActionDataDto;
|
|
6
|
-
};
|
|
7
|
-
export interface IExpenseHeadActionDataDto {
|
|
8
|
-
action: ExpenseHeadActionEnum;
|
|
9
|
-
remark?: string;
|
|
10
|
-
}
|
|
3
|
+
export type IExpenseHeadUpdateDto = DeepPartialButRequired<IExpenseHeadCreateDto, never>;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { 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;
|
|
11
6
|
}
|
|
12
7
|
export interface IExpenseTypeUpdateDtoValidationData {
|
|
13
8
|
existingEntity: IExpenseTypeEntity;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { GstRateActionEnum } from "../../entities";
|
|
2
1
|
import { DeepPartialButRequired } from "./api.utils.interface";
|
|
3
2
|
import { IGstRateCreateDto } from "./gst_rate.create.dto.interface";
|
|
4
|
-
export type IGstRateUpdateDto = DeepPartialButRequired<IGstRateCreateDto, never
|
|
5
|
-
actionData: IGstRateActionDataDto;
|
|
6
|
-
};
|
|
7
|
-
export interface IGstRateActionDataDto {
|
|
8
|
-
action: GstRateActionEnum;
|
|
9
|
-
remark?: string;
|
|
10
|
-
}
|
|
3
|
+
export type IGstRateUpdateDto = DeepPartialButRequired<IGstRateCreateDto, never>;
|
|
@@ -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 IHolidayExclude = "status";
|
|
5
|
+
export interface IHolidayCreateDto extends Omit<IEntityCreateDto<IHolidayEntity>, IHolidayExclude> {
|
|
6
6
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { IEntityUpdateDto
|
|
1
|
+
import { IEntityUpdateDto } from "../../entities";
|
|
2
2
|
import { IHolidayEntity } from "../../entities/interface/holiday.entity.interface";
|
|
3
|
-
import {
|
|
4
|
-
export interface IHolidayUpdateDto extends Omit<IEntityUpdateDto<IHolidayEntity>,
|
|
5
|
-
actionData: IHolidayActionDataDto;
|
|
6
|
-
}
|
|
7
|
-
export interface IHolidayActionDataDto {
|
|
8
|
-
action: HolidayActionEnum;
|
|
9
|
-
remark?: string;
|
|
3
|
+
import { IHolidayExclude } from "./holiday.create.dto.interface";
|
|
4
|
+
export interface IHolidayUpdateDto extends Omit<IEntityUpdateDto<IHolidayEntity>, IHolidayExclude> {
|
|
10
5
|
}
|
|
@@ -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 IHolidayListExclude = "status";
|
|
5
|
+
export interface IHolidayListCreateDto extends Omit<IEntityCreateDto<IHolidayListEntity>, IHolidayListExclude> {
|
|
6
6
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { IEntityUpdateDto
|
|
1
|
+
import { IEntityUpdateDto } from "../../entities";
|
|
2
2
|
import { IHolidayListEntity } from "../../entities/interface/holiday_list.entity.interface";
|
|
3
|
-
import {
|
|
4
|
-
export interface IHolidayListUpdateDto extends Omit<IEntityUpdateDto<IHolidayListEntity>,
|
|
5
|
-
actionData: IHolidayListActionDataDto;
|
|
6
|
-
}
|
|
7
|
-
export interface IHolidayListActionDataDto {
|
|
8
|
-
action: HolidayListActionEnum;
|
|
9
|
-
remark?: string;
|
|
3
|
+
import { IHolidayListExclude } from "./holiday_list.create.dto.interface";
|
|
4
|
+
export interface IHolidayListUpdateDto extends Omit<IEntityUpdateDto<IHolidayListEntity>, IHolidayListExclude> {
|
|
10
5
|
}
|
|
@@ -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 IIntermediaryBankCreateDtoExclude = "bankId" | "status";
|
|
4
|
+
export interface IIntermediaryBankCreateDto extends Omit<IEntityCreateDto<IIntermediaryBankEntity>, IIntermediaryBankCreateDtoExclude> {
|
|
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 ILeaveExclude = "status";
|
|
7
|
+
export interface ILeaveCreateDto extends Omit<IEntityCreateDto<ILeaveEntity>, ILeaveExclude>, ILeaveDtoInclude {
|
|
8
8
|
status?: LeaveStatusEnum;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ILeaveEntityCreateDtoValidationData {
|
|
11
11
|
userEntity: IUserEntity;
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IEntityUpdateDto, ILeaveEntity, LeaveActionEnum } from "../../entities";
|
|
2
|
-
import { ILeaveDtoInclude,
|
|
2
|
+
import { ILeaveDtoInclude, ILeaveEntityCreateDtoValidationData } from "./leave.create.dto.interface";
|
|
3
3
|
export interface ILeaveActionDataDto {
|
|
4
4
|
action: LeaveActionEnum;
|
|
5
5
|
remark?: string;
|
|
6
6
|
}
|
|
7
7
|
export interface ILeaveUpdateDto extends IEntityUpdateDto<ILeaveEntity>, Partial<ILeaveDtoInclude> {
|
|
8
|
-
actionData
|
|
8
|
+
actionData?: ILeaveActionDataDto;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ILeaveEntityUpdateDtoValidationData extends ILeaveEntityCreateDtoValidationData {
|
|
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 IMovingTimesheetDtoExclude = "status" | "sourceProjectId";
|
|
4
|
+
export interface IMovingTimesheetCreateDto extends Omit<IEntityCreateDto<IMovingTimesheetEntity>, IMovingTimesheetDtoExclude> {
|
|
5
5
|
status?: MovingTimesheetStatusEnum;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IEntityUpdateDto, IMovingTimesheetEntity, MovingTimesheetActionEnum } from "../../entities";
|
|
2
|
-
import {
|
|
2
|
+
import { IMovingTimesheetDtoExclude } 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>,
|
|
7
|
-
actionData
|
|
6
|
+
export interface IMovingTimesheetUpdateDto extends Omit<IEntityUpdateDto<IMovingTimesheetEntity>, IMovingTimesheetDtoExclude> {
|
|
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 IOfficeLocationExclude = "status";
|
|
4
|
+
export interface IOfficeLocationCreateDto extends Omit<IEntityCreateDto<IOfficeLocationEntity>, IOfficeLocationExclude> {
|
|
5
5
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { IEntityUpdateDto, IOfficeLocationEntity
|
|
2
|
-
import {
|
|
3
|
-
export interface IOfficeLocationUpdateDto extends Omit<IEntityUpdateDto<IOfficeLocationEntity>,
|
|
4
|
-
actionData: IOfficeLocationActionDataDto;
|
|
5
|
-
}
|
|
6
|
-
export interface IOfficeLocationActionDataDto {
|
|
7
|
-
action: OfficeLocationActionEnum;
|
|
8
|
-
remark?: string;
|
|
1
|
+
import { IEntityUpdateDto, IOfficeLocationEntity } from "../../entities";
|
|
2
|
+
import { IOfficeLocationExclude } from "./office_location.create.dto.interface";
|
|
3
|
+
export interface IOfficeLocationUpdateDto extends Omit<IEntityUpdateDto<IOfficeLocationEntity>, IOfficeLocationExclude> {
|
|
9
4
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { OrganizationTypeActionEnum } from "../../entities";
|
|
2
1
|
import { DeepPartialButRequired } from "./api.utils.interface";
|
|
3
2
|
import { IOrganizationTypeCreateDto } from "./organization_type.create.dto.interface";
|
|
4
|
-
export type IOrganizationTypeUpdateDto = DeepPartialButRequired<IOrganizationTypeCreateDto, never
|
|
5
|
-
actionData: IOrganizationTypeActionDataDto;
|
|
6
|
-
};
|
|
7
|
-
export interface IOrganizationTypeActionDataDto {
|
|
8
|
-
action: OrganizationTypeActionEnum;
|
|
9
|
-
remark?: string;
|
|
10
|
-
}
|
|
3
|
+
export type IOrganizationTypeUpdateDto = DeepPartialButRequired<IOrganizationTypeCreateDto, never>;
|
|
@@ -10,7 +10,9 @@ export interface IProjectEntityDependent {
|
|
|
10
10
|
users: IProjectUserDto[];
|
|
11
11
|
revenueSplitData: IProjectRevenueSplitData[];
|
|
12
12
|
}
|
|
13
|
-
export type
|
|
13
|
+
export type IProjectExclude = "organizationId" | "billingRate" | "usageNotificationSentPercentage";
|
|
14
|
+
export interface IProjectExcludeT extends Pick<IProjectEntity, IProjectExclude> {
|
|
15
|
+
}
|
|
14
16
|
export interface IProjectHourlyRate {
|
|
15
17
|
id: number;
|
|
16
18
|
rate: number;
|
|
@@ -30,9 +32,9 @@ export interface IProjectAdhocRate {
|
|
|
30
32
|
export interface IProjectCreateDtoExtra {
|
|
31
33
|
projectBillingRate: IProjectHourlyRate[] | IProjectFixedTypeRate | IProjectAdhocRate;
|
|
32
34
|
}
|
|
33
|
-
export interface
|
|
35
|
+
export interface IProjectEntityCreateDto extends Omit<IEntityCreateDto<IProjectEntity>, IProjectExclude>, IProjectEntityDependent, IProjectCreateDtoExtra {
|
|
34
36
|
}
|
|
35
|
-
export interface
|
|
37
|
+
export interface IProjectEntityCreateDtoValidationData {
|
|
36
38
|
clientEntity: IClientEntity;
|
|
37
39
|
userEntities: IUserEntity[];
|
|
38
40
|
}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { IEntityUpdateDto, IProjectEntity, IProjectRevenueSplitMappingEntity, IProjectUserMappingEntity
|
|
2
|
-
import { IProjectCreateDtoExtra,
|
|
3
|
-
export interface
|
|
4
|
-
actionData: IProjectActionDataDto;
|
|
1
|
+
import { IEntityUpdateDto, IProjectEntity, IProjectRevenueSplitMappingEntity, IProjectUserMappingEntity } from "../../entities";
|
|
2
|
+
import { IProjectCreateDtoExtra, IProjectEntityCreateDtoValidationData, IProjectEntityDependent, IProjectExclude } from "./project.create.dto.interface";
|
|
3
|
+
export interface IProjectEntityUpdateDto extends Omit<IEntityUpdateDto<IProjectEntity>, IProjectExclude>, Partial<IProjectEntityDependent>, Partial<IProjectCreateDtoExtra> {
|
|
5
4
|
}
|
|
6
|
-
export interface
|
|
7
|
-
action: ProjectActionEnum;
|
|
8
|
-
remark?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IProjectUpdateDtoValidationData extends IProjectCreateDtoValidationData {
|
|
5
|
+
export interface IProjectEntityUpdateDtoValidationData extends IProjectEntityCreateDtoValidationData {
|
|
11
6
|
projectEntity: IProjectEntity;
|
|
12
7
|
projectUserMappingEntities: IProjectUserMappingEntity[];
|
|
13
8
|
projectRevenueSplitMappingEntities: IProjectRevenueSplitMappingEntity[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityEnum, EnumEntityType, IEntityCreateDto } from "../../entities";
|
|
2
|
-
export interface
|
|
2
|
+
export interface IProjectRevenueSplitMappingCreateDto 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 IReimbursementExclude = "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 IReimbursementEntityCreateDto extends Omit<IEntityCreateDto<IReimbursementEntity>, IReimbursementExclude>, IReimbursementCreateDtoExtra {
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface IReimbursementEntityCreateDtoValidationData {
|
|
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 IReimbursementEntityUpdateDtoValidationData {
|
|
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 IReimbursementExpenseExclude = "state";
|
|
3
|
+
export interface IReimbursementExpenseEntityCreateDto extends Omit<IEntityCreateDto<IReimbursementExpenseEntity>, IReimbursementExpenseExclude> {
|
|
4
4
|
id?: number;
|
|
5
5
|
state?: ReimbursementExpenseState;
|
|
6
6
|
billingId?: number;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface IReimbursementExpenseEntityCreateDtoValidationData {
|
|
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 IReimbursementExpenseEntityUpdateDto extends IEntityUpdateDto<IReimbursementExpenseEntity> {
|
|
3
3
|
id?: number;
|
|
4
4
|
action?: ReimbursementExpenseActionEnum;
|
|
5
5
|
billingId?: number;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface IReimbursementExpenseEntityUpdateDtoValidationData {
|
|
8
8
|
projectUserMappingEntities: IProjectUserMappingEntity[];
|
|
9
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface IRolePermissionMappingDeleteDto extends
|
|
1
|
+
import { IRolePermissionsMappingCreateDto } from "./role_permission_mapping.create.dto.interface";
|
|
2
|
+
export interface IRolePermissionMappingDeleteDto extends IRolePermissionsMappingCreateDto {
|
|
3
3
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { TdsRateActionEnum } from "../../entities";
|
|
2
1
|
import { DeepPartialButRequired } from "./api.utils.interface";
|
|
3
2
|
import { ITdsRateCreateDto } from "./tds_rate.create.dto.interface";
|
|
4
|
-
export type ITdsRateUpdateDto = DeepPartialButRequired<ITdsRateCreateDto, never
|
|
5
|
-
actionData: ITdsRateActionDataDto;
|
|
6
|
-
};
|
|
7
|
-
export interface ITdsRateActionDataDto {
|
|
8
|
-
action: TdsRateActionEnum;
|
|
9
|
-
remark?: string;
|
|
10
|
-
}
|
|
3
|
+
export type ITdsRateUpdateDto = DeepPartialButRequired<ITdsRateCreateDto, never>;
|
|
@@ -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 ITimesheetEntityExclude = "status" | "billedDuration" | "notBilledDuration" | "classificationStatus" | "classifiedBy";
|
|
3
|
+
export interface ITimesheetEntityCreateDto extends Omit<IEntityCreateDto<ITimesheetEntity>, ITimesheetEntityExclude> {
|
|
4
4
|
status?: TimesheetStatusEnum;
|
|
5
5
|
classificationStatus?: TimesheetClassificationStatusEnum;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface ITimesheetEntityCreateDtoValidationData {
|
|
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 { ITimesheetEntityUpdateDto } 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?: ITimesheetEntityUpdateDto;
|
|
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 { ITimesheetEntityCreateDtoValidationData } from "./timesheet.create.dto.interface";
|
|
3
|
+
export interface IActionDataDto {
|
|
4
4
|
action: TimesheetActionEnum;
|
|
5
5
|
remark?: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
8
|
-
actionData
|
|
7
|
+
export interface ITimesheetEntityUpdateDto extends IEntityUpdateDto<ITimesheetEntity> {
|
|
8
|
+
actionData?: IActionDataDto;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ITimesheetEntityUpdateDtoValidationData extends ITimesheetEntityCreateDtoValidationData {
|
|
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 IToDoListExclude = "status";
|
|
4
|
+
export interface IToDoListCreateDto extends Omit<IEntityCreateDto<IToDoListEntity>, IToDoListExclude> {
|
|
5
5
|
}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { IEntityUpdateDto, IToDoListEntity
|
|
2
|
-
import {
|
|
3
|
-
export interface IToDoListUpdateDto extends Omit<IEntityUpdateDto<IToDoListEntity>,
|
|
4
|
-
actionData: IToDoListActionDataDto;
|
|
1
|
+
import { IEntityUpdateDto, IToDoListEntity } from "../../entities";
|
|
2
|
+
import { IToDoListExclude } from "./to_do_list.create.dto.interface";
|
|
3
|
+
export interface IToDoListUpdateDto extends Omit<IEntityUpdateDto<IToDoListEntity>, IToDoListExclude> {
|
|
5
4
|
}
|
|
6
|
-
export interface
|
|
7
|
-
action: ToDoListActionEnum;
|
|
8
|
-
remark?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IToDoListUpdateDtoValidationData {
|
|
5
|
+
export interface IToDoListEntityUpdateDtoValidationData {
|
|
11
6
|
toDoListEntity: IToDoListEntity;
|
|
12
7
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { VoucherTypeActionEnum } from "../../entities";
|
|
2
1
|
import { DeepPartialButRequired } from "./api.utils.interface";
|
|
3
2
|
import { IVoucherTypeCreateDto } from "./voucher_type.create.dto.interface";
|
|
4
|
-
export type IVoucherTypeUpdateDto = DeepPartialButRequired<IVoucherTypeCreateDto, never
|
|
5
|
-
actionData: IVoucherTypeActionDataDto;
|
|
6
|
-
};
|
|
7
|
-
export interface IVoucherTypeActionDataDto {
|
|
8
|
-
action: VoucherTypeActionEnum;
|
|
9
|
-
remark?: string;
|
|
10
|
-
}
|
|
3
|
+
export type IVoucherTypeUpdateDto = DeepPartialButRequired<IVoucherTypeCreateDto, never>;
|
|
@@ -5,7 +5,6 @@ const error_key_enum_1 = require("../../enums/error.key.enum");
|
|
|
5
5
|
const exceptions_1 = require("../../exceptions");
|
|
6
6
|
var LeaveActionEnum;
|
|
7
7
|
(function (LeaveActionEnum) {
|
|
8
|
-
LeaveActionEnum["UPDATE"] = "UPDATE";
|
|
9
8
|
LeaveActionEnum["READ"] = "READ";
|
|
10
9
|
// EDIT = "edit",
|
|
11
10
|
LeaveActionEnum["APPROVE"] = "APPROVE";
|
|
@@ -18,7 +17,7 @@ var LeaveActionEnum;
|
|
|
18
17
|
(function (LeaveActionEnum) {
|
|
19
18
|
const actionLabelMap = {
|
|
20
19
|
[LeaveActionEnum.READ]: "Read",
|
|
21
|
-
[LeaveActionEnum.
|
|
20
|
+
// [LeaveActionEnum.EDIT]: "Edit",
|
|
22
21
|
[LeaveActionEnum.APPROVE]: "Approve",
|
|
23
22
|
[LeaveActionEnum.REJECT]: "Reject",
|
|
24
23
|
[LeaveActionEnum.DELETE]: "Delete",
|
|
@@ -31,13 +31,6 @@ const ACTION_MAP = {
|
|
|
31
31
|
reachableStatues: [],
|
|
32
32
|
permissions: [],
|
|
33
33
|
},
|
|
34
|
-
// UPDATE is declared on the enum so every entity accepts a default actionData.action, but it
|
|
35
|
-
// carries no transition here: the empty reachable set and empty permission list make a plain
|
|
36
|
-
// update on this approval-only entity fail at runtime by design (LW-833).
|
|
37
|
-
[leave_action_enum_1.LeaveActionEnum.UPDATE]: {
|
|
38
|
-
reachableStatues: [],
|
|
39
|
-
permissions: [],
|
|
40
|
-
},
|
|
41
34
|
[leave_action_enum_1.LeaveActionEnum.APPROVE]: {
|
|
42
35
|
reachableStatues: [leave_status_enum_1.LeaveStatusEnum.APPROVED, leave_status_enum_1.LeaveStatusEnum.DELETED],
|
|
43
36
|
permissions: LEAVE_APPROVER_PERMISSION,
|