law-common 14.3.1-beta.0 → 14.3.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/index.d.ts +101 -2
- package/dist/src/api/index.js +101 -2
- package/dist/src/api/{v1/interface → interface}/address_book.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/address_book.update.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/bank.entity.response.d.ts +4 -4
- package/dist/src/api/{v1/interface → interface}/billing.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/billing.create.dto.interface.js +1 -1
- package/dist/src/api/interface/billing.entity.response.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/billing.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/billing_particular_line_item.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/billing_particular_line_item.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/billing_reimbursement_expense.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/billing_reimbursement_expense.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/billing_timesheet.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/billing_timesheet.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/billing_transaction.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/billing_transaction.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/client.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/client.create.dto.interface.js +1 -1
- package/dist/src/api/{v1/interface → interface}/client.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/client_affiliate.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/client_affiliate.create.dto.interface.js +1 -1
- package/dist/src/api/{v1/interface → interface}/client_affiliate.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/client_debit_note.create.dto.interface.d.ts +3 -3
- package/dist/src/api/{v1/interface → interface}/client_debit_note.update.dto.interface.d.ts +3 -3
- package/dist/src/api/{v1/interface → interface}/client_debit_note_particulars.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/client_debit_note_particulars.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/client_introducing_mapping.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/client_introducing_mapping.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/client_quote.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/client_quote.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/client_quote_rate.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/client_quote_rate.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/client_user_mapping.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/client_user_mapping.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/configuration.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/configuration.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/cron_jobs.create.dto.interface.d.ts +4 -0
- package/dist/src/api/interface/cron_jobs.update.dto.interface.d.ts +4 -0
- package/dist/src/api/{v1/interface → interface}/document_upload.create.dto.interface.d.ts +3 -3
- package/dist/src/api/{v1/interface → interface}/document_upload.update.dto.interface.d.ts +3 -3
- package/dist/src/api/{v1/interface → interface}/entity_history.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/entity_history.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/expense_head.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/expense_head.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/gst_rate.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/gst_rate.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/holiday.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/holiday.filter.dto.interface.d.ts +0 -3
- package/dist/src/api/{v1/interface → interface}/holiday.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/holiday_list.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/holiday_list.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/leave.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/leave.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/leave_approval.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/leave_approval.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/moving_timesheet.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/moving_timesheet.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/organization_type.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/organization_type.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/permission.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/permission.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/project.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/project.entity.response.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/project.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/project_revenue_split.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/project_user_mapping.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/project_user_mapping.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/reimbursement.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/reimbursement.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/reimbursement_expense.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/reimbursement_expense.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/role.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/role.update.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/role_permission_mapping.delete.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/role_permission_mapping.update.dto.interface.d.ts +4 -0
- package/dist/src/api/{v1/interface → interface}/state.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/state.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/tds_rate.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/tds_rate.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/tds_rate_voucher_type_mapping.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/tds_rate_voucher_type_mapping.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/timesheet.create.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/timesheet.entity.response.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/timesheet.update.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/user.create.dto.interface.d.ts +7 -0
- package/dist/src/api/interface/user.update.dto.interface.d.ts +7 -0
- package/dist/src/api/{v1/interface → interface}/vendor.create.dto.interface.d.ts +3 -3
- package/dist/src/api/{v1/interface → interface}/vendor.update.dto.interface.d.ts +3 -3
- package/dist/src/api/{v1/interface → interface}/vendor_advance.create.dto.interface.d.ts +3 -3
- package/dist/src/api/{v1/interface → interface}/vendor_advance.update.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/vendor_advance.update.dto.interface.js +3 -0
- package/dist/src/api/{v1/interface → interface}/vendor_invoice.create.dto.interface.d.ts +3 -3
- package/dist/src/api/{v1/interface → interface}/vendor_invoice.update.dto.interface.d.ts +3 -3
- package/dist/src/api/interface/vendor_invoice.update.dto.interface.js +3 -0
- package/dist/src/api/{v1/interface → interface}/vendor_invoice_advance.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/vendor_invoice_advance.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/vendor_invoice_item.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/vendor_invoice_item.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/vendor_invoice_payment.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/vendor_invoice_payment.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/vendor_tds_challan.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/vendor_tds_challan.update.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/vendor_tds_liability.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/vendor_tds_liability.update.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/vendor_tds_liability.update.dto.interface.js +3 -0
- package/dist/src/api/{v1/interface → interface}/voucher_type.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/voucher_type.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/website_lead.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/website_lead.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/website_newsletter_subscription.create.dto.interface.d.ts +2 -2
- package/dist/src/api/{v1/interface → interface}/website_newsletter_subscription.update.dto.interface.d.ts +1 -1
- package/dist/src/api/v1/index.d.ts +4 -103
- package/dist/src/api/v1/index.js +4 -103
- package/dist/src/api/v2/index.d.ts +4 -6
- package/dist/src/api/v2/index.js +4 -6
- package/dist/src/api/v2/interface/bank.create.dto.interface.d.ts +7 -0
- package/dist/src/api/v2/interface/bank.update.dto.interface.d.ts +16 -0
- package/dist/src/api/v2/interface/intermediary_bank.create.dto.interface.d.ts +6 -0
- package/dist/src/api/v2/interface/intermediary_bank.update.dto.interface.d.ts +12 -0
- package/dist/src/entities/enums/bank_action_enum.d.ts +6 -2
- package/dist/src/entities/enums/bank_action_enum.js +10 -2
- package/dist/src/entities/enums/bank_status_enum.d.ts +3 -1
- package/dist/src/entities/enums/bank_status_enum.js +2 -0
- package/dist/src/entities/flow-configs/address_book_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/address_book_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/bank_flow.config.d.ts +35 -5
- package/dist/src/entities/flow-configs/bank_flow.config.js +41 -14
- package/dist/src/entities/flow-configs/billing_flow.config.d.ts +0 -72
- package/dist/src/entities/flow-configs/billing_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/billing_transaction_flow.config.d.ts +1 -21
- package/dist/src/entities/flow-configs/billing_transaction_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/client_affiliate_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/client_affiliate_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/client_debit_note_flow.config.d.ts +0 -50
- package/dist/src/entities/flow-configs/client_debit_note_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/client_debit_note_particulars_flow.config.d.ts +0 -46
- package/dist/src/entities/flow-configs/client_debit_note_particulars_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/client_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/client_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/client_quote_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/client_quote_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/client_quote_rate_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/client_quote_rate_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/document_upload_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/document_upload_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/expense_head_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/expense_head_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/gst_rate_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/gst_rate_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/holiday_flow.config.d.ts +0 -33
- package/dist/src/entities/flow-configs/holiday_flow.config.js +11 -10
- package/dist/src/entities/flow-configs/holiday_list_flow.config.d.ts +0 -33
- package/dist/src/entities/flow-configs/holiday_list_flow.config.js +3 -10
- package/dist/src/entities/flow-configs/intermediary_bank_flow.config.d.ts +7 -0
- package/dist/src/entities/flow-configs/intermediary_bank_flow.config.js +10 -6
- package/dist/src/entities/flow-configs/leave_approval_flow.config.d.ts +0 -30
- package/dist/src/entities/flow-configs/leave_approval_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/leave_flow.config.d.ts +1 -31
- package/dist/src/entities/flow-configs/leave_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/moving_timesheet_flow.config.d.ts +0 -10
- package/dist/src/entities/flow-configs/moving_timesheet_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/organization_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/organization_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/organization_type_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/organization_type_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/project_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/project_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/reimbursement_expense_flow.config.d.ts +0 -18
- package/dist/src/entities/flow-configs/reimbursement_expense_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/reimbursement_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/reimbursement_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/state_flow.config.d.ts +0 -30
- package/dist/src/entities/flow-configs/state_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/tds_rate_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/tds_rate_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/timesheet_flow.config.d.ts +0 -46
- package/dist/src/entities/flow-configs/timesheet_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/utils/flow-config.utils.d.ts +89 -1063
- package/dist/src/entities/flow-configs/utils/flow-config.utils.js +4 -72
- package/dist/src/entities/flow-configs/vendor_advance_flow.config.d.ts +0 -30
- package/dist/src/entities/flow-configs/vendor_advance_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/vendor_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/vendor_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/vendor_invoice_advance_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/vendor_invoice_advance_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/vendor_invoice_flow.config.d.ts +0 -34
- package/dist/src/entities/flow-configs/vendor_invoice_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/vendor_invoice_payment_flow.config.d.ts +0 -30
- package/dist/src/entities/flow-configs/vendor_invoice_payment_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/vendor_tds_challan_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/vendor_tds_challan_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/vendor_tds_liability_flow.config.d.ts +0 -34
- package/dist/src/entities/flow-configs/vendor_tds_liability_flow.config.js +3 -3
- package/dist/src/entities/flow-configs/voucher_type_flow.config.d.ts +0 -26
- package/dist/src/entities/flow-configs/voucher_type_flow.config.js +3 -3
- package/dist/src/entities/index.d.ts +35 -37
- package/dist/src/entities/index.js +34 -106
- package/dist/src/entities/interface/bank.entity.interface.d.ts +5 -4
- package/dist/src/entities/interface/field-constraint/bank_field_constraints.interface.d.ts +1 -1
- package/dist/src/entities/interface/field-constraint/bank_field_constraints.interface.js +7 -1
- package/dist/src/entities/interface/field-constraint/holiday_field_constraints.interface.d.ts +9 -0
- package/dist/src/entities/interface/field-constraint/holiday_field_constraints.interface.js +6 -2
- package/dist/src/entities/interface/field-constraint/holiday_list_field_constraints.interface.d.ts +9 -0
- package/dist/src/entities/interface/field-constraint/holiday_list_field_constraints.interface.js +1 -0
- package/dist/src/entities/interface/field-constraint/user_field_constraints.interface.d.ts +6 -2
- package/dist/src/entities/interface/field-constraint/user_field_constraints.interface.js +1 -19
- package/dist/src/entities/interface/holiday.entity.interface.d.ts +1 -1
- package/dist/src/entities/interface/user.entity.interface.d.ts +11 -11
- package/dist/src/entities/model/bank.entity.model.d.ts +86 -7
- package/dist/src/entities/model/bank.entity.model.js +449 -8
- package/dist/src/entities/model/billing.entity.model.d.ts +1 -2
- package/dist/src/entities/model/entity_history.entity.model.js +1 -12
- package/dist/src/entities/model/holiday.entity.model.d.ts +8 -12
- package/dist/src/entities/model/holiday.entity.model.js +8 -20
- package/dist/src/entities/model/holiday_list.entity.model.d.ts +6 -6
- package/dist/src/entities/model/holiday_list.entity.model.js +4 -4
- package/dist/src/entities/model/intermediary_bank.entity.model.d.ts +62 -6
- package/dist/src/entities/model/intermediary_bank.entity.model.js +370 -10
- package/dist/src/entities/model/leave.entity.model.d.ts +1 -1
- package/dist/src/entities/model/moving_timesheet.entity.model.d.ts +1 -1
- package/dist/src/entities/model/permission.entity.model.d.ts +1 -0
- package/dist/src/entities/model/permission.entity.model.js +3 -0
- package/dist/src/entities/model/project.entity.model.d.ts +1 -1
- package/dist/src/entities/model/timesheet.entity.model.d.ts +1 -2
- package/dist/src/entities/model/timesheet.entity.model.js +1 -1
- package/dist/src/entities/model/to_do_list.entity.model.js +2 -2
- package/dist/src/entities/model/user.entity.model.d.ts +25 -87
- package/dist/src/entities/model/user.entity.model.js +34 -305
- package/dist/src/misc/interface/optional.interface.js +8 -8
- package/package.json +1 -1
- package/dist/src/api/v1/interface/cron_jobs.create.dto.interface.d.ts +0 -4
- package/dist/src/api/v1/interface/cron_jobs.update.dto.interface.d.ts +0 -4
- package/dist/src/api/v1/interface/role_permission_mapping.update.dto.interface.d.ts +0 -4
- package/dist/src/api/v1/interface/user.create.dto.interface.d.ts +0 -8
- package/dist/src/api/v1/interface/user.update.dto.interface.d.ts +0 -10
- package/dist/src/api/v1/interface/vendor_advance.update.dto.interface.js +0 -3
- package/dist/src/api/v1/interface/vendor_invoice.update.dto.interface.js +0 -3
- package/dist/src/api/v1/interface/vendor_tds_liability.update.dto.interface.js +0 -3
- package/dist/src/api/v2/interface/holiday.create.dto.interface.d.ts +0 -5
- package/dist/src/api/v2/interface/holiday.update.dto.interface.d.ts +0 -12
- package/dist/src/api/v2/interface/holiday_list.create.dto.interface.d.ts +0 -5
- package/dist/src/api/v2/interface/holiday_list.update.dto.interface.d.ts +0 -12
- package/dist/src/api/v2/interface/user.create.dto.interface.d.ts +0 -13
- package/dist/src/api/v2/interface/user.create.dto.interface.js +0 -33
- package/dist/src/api/v2/interface/user.update.dto.interface.d.ts +0 -19
- package/dist/src/api/v2/interface/user.update.dto.interface.js +0 -2
- package/dist/src/entities/enums/user_action_enum.d.ts +0 -9
- package/dist/src/entities/enums/user_action_enum.js +0 -20
- package/dist/src/entities/flow-configs/user_flow.config.d.ts +0 -44
- package/dist/src/entities/flow-configs/user_flow.config.js +0 -122
- /package/dist/src/api/{v1/interface → interface}/address_book.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/address_book.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/billing.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/billing_particular_line_item.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/billing_particular_line_item.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/billing_reimbursement_expense.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/billing_reimbursement_expense.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/billing_timesheet.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/billing_timesheet.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/billing_transaction.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/billing_transaction.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_affiliate.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_debit_note.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_debit_note.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_debit_note_particulars.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_debit_note_particulars.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_introducing_mapping.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_introducing_mapping.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_quote.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_quote.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_quote_rate.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_quote_rate.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_user_mapping.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/client_user_mapping.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/configuration.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/configuration.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/cron_jobs.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/cron_jobs.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/document_upload.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/document_upload.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/entity_history.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/entity_history.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/expense_head.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/expense_head.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/gst_rate.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/gst_rate.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/holiday.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/holiday.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/holiday_list.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/holiday_list.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/leave.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/leave.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/leave_approval.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/leave_approval.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/moving_timesheet.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/moving_timesheet.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/organization_type.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/organization_type.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/permission.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/permission.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/project.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/project.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/project_revenue_split.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/project_user_mapping.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/project_user_mapping.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/reimbursement.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/reimbursement.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/reimbursement_expense.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/reimbursement_expense.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/role.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/role.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/role_permission_mapping.create.dto.interface.d.ts +0 -0
- /package/dist/src/api/{v1/interface → interface}/role_permission_mapping.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/role_permission_mapping.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/state.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/state.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/tds_rate.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/tds_rate.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/tds_rate_voucher_type_mapping.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/tds_rate_voucher_type_mapping.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/timesheet.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/timesheet.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/user.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/user.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_advance.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_invoice.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_invoice_advance.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_invoice_advance.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_invoice_item.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_invoice_item.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_invoice_payment.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_invoice_payment.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_tds_challan.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_tds_challan.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/vendor_tds_liability.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/voucher_type.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/voucher_type.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/website_lead.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/website_lead.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/website_newsletter_subscription.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/website_newsletter_subscription.update.dto.interface.js +0 -0
- /package/dist/src/api/v2/interface/{holiday.create.dto.interface.js → bank.create.dto.interface.js} +0 -0
- /package/dist/src/api/v2/interface/{holiday.update.dto.interface.js → bank.update.dto.interface.js} +0 -0
- /package/dist/src/api/v2/interface/{holiday_list.create.dto.interface.js → intermediary_bank.create.dto.interface.js} +0 -0
- /package/dist/src/api/v2/interface/{holiday_list.update.dto.interface.js → intermediary_bank.update.dto.interface.js} +0 -0
|
@@ -1,127 +1,65 @@
|
|
|
1
|
-
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
2
|
-
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
3
|
-
import { IUserEntity } from "../interface/user.entity.interface";
|
|
4
|
-
import { BaseEntityModel } from "./base.entity.model";
|
|
5
|
-
import { IRowActions } from "./interface/row-actions.interface";
|
|
6
|
-
import { UserActionEnum } from "../../entities";
|
|
7
1
|
import { ProjectUserStatusEnum } from "../enums/project_user_status.enum";
|
|
8
2
|
import { UserRoleEnum } from "../enums/user_role_enum";
|
|
9
3
|
import { UserStatusEnum } from "../enums/user_status_enum";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { ClientIntroducingMappingEntityModel } from "./client_introducing_mapping.entity.model";
|
|
15
|
-
import { ClientUserMappingEntityModel } from "./client_user_mapping.entity.model";
|
|
4
|
+
import { EntityEnum, Nullable } from "../interface/entity.utils.interface";
|
|
5
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
6
|
+
import { IUserEntity } from "../interface/user.entity.interface";
|
|
7
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
16
8
|
import { DesignationEntityModel } from "./designation.entity.model";
|
|
17
|
-
import { LeaveEntityModel } from "./leave.entity.model";
|
|
18
|
-
import { LeaveApprovalEntityModel } from "./leave_approval.entity.model";
|
|
19
|
-
import { OfficeLocationEntityModel } from "./office_location.entity.model";
|
|
20
|
-
import { OrganizationEntityModel } from "./organization.entity.model";
|
|
21
9
|
import { ProjectEntityModel } from "./project.entity.model";
|
|
22
10
|
import { ProjectUserMappingEntityModel } from "./project_user_mapping.entity.model";
|
|
23
|
-
import { RateEntityModel } from "./rate.entity.model";
|
|
24
11
|
import { RoleEntityModel } from "./role.entity.model";
|
|
25
|
-
import { ToDoListEntityModel } from "./to_do_list.entity.model";
|
|
26
|
-
import { VendorEntityModel } from "./vendor.entity.model";
|
|
27
|
-
import { VendorAdvanceEntityModel } from "./vendor_advance.entity.model";
|
|
28
|
-
import { VendorInvoiceEntityModel } from "./vendor_invoice.entity.model";
|
|
29
|
-
import { VendorInvoiceAdvanceEntityModel } from "./vendor_invoice_advance.entity.model";
|
|
30
|
-
import { VendorInvoiceItemEntityModel } from "./vendor_invoice_item.entity.model";
|
|
31
|
-
import { VendorInvoicePaymentEntityModel } from "./vendor_invoice_payment.entity.model";
|
|
32
|
-
import { WorkFromHomeEntityModel } from "./work_from_home.entity.model";
|
|
33
12
|
export declare class UserEntityModel extends BaseEntityModel<EntityEnum.USER> implements IUserEntity {
|
|
34
13
|
id: number;
|
|
35
14
|
name: string;
|
|
36
15
|
email: string;
|
|
37
16
|
contactNo: string;
|
|
38
17
|
secondaryContactNo?: string;
|
|
18
|
+
password?: string;
|
|
39
19
|
userCode?: string;
|
|
40
|
-
joiningDate?:
|
|
41
|
-
endDate?:
|
|
20
|
+
joiningDate?: string;
|
|
21
|
+
endDate?: string;
|
|
42
22
|
address?: string;
|
|
43
23
|
zipCode?: number;
|
|
44
24
|
country?: string;
|
|
45
25
|
designation: string;
|
|
46
26
|
panNo?: string;
|
|
47
|
-
|
|
27
|
+
panDocumentUrl?: string;
|
|
48
28
|
aadharNo?: string;
|
|
49
|
-
|
|
29
|
+
aadharDocumentUrl?: string;
|
|
50
30
|
role: UserRoleEnum;
|
|
51
|
-
|
|
52
|
-
|
|
31
|
+
status?: UserStatusEnum;
|
|
32
|
+
organizationId: number;
|
|
33
|
+
reportingManagerId?: Nullable<number>;
|
|
34
|
+
passportDocumentUrl?: string;
|
|
35
|
+
academicQualificationDocumentUrl?: string;
|
|
36
|
+
officeAllocation: number;
|
|
53
37
|
tempAddress?: string;
|
|
54
38
|
tempZipCode?: number;
|
|
55
39
|
tempCountry?: string;
|
|
40
|
+
tempAddressSameAsPrimary: boolean;
|
|
56
41
|
emergencyContactName: string;
|
|
57
42
|
emergencyContactNo: string;
|
|
58
|
-
tempAddressSameAsPrimary: boolean;
|
|
59
43
|
emergencyContactRelation: string;
|
|
60
44
|
secondEmergencyContactName?: string;
|
|
61
45
|
secondaryEmergencyContactNo?: string;
|
|
62
46
|
secondaryEmergencyContactRelation?: string;
|
|
63
|
-
|
|
64
|
-
reportingManagerId?: number;
|
|
65
|
-
password?: string;
|
|
66
|
-
status: UserStatusEnum;
|
|
67
|
-
organizationId: number;
|
|
68
|
-
officeLocationId: number;
|
|
69
|
-
createdOn: number;
|
|
70
|
-
updatedOn: number;
|
|
47
|
+
permissions?: string[];
|
|
71
48
|
createdBy: number;
|
|
72
49
|
updatedBy: number;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
officeLocation?: OfficeLocationEntityModel;
|
|
50
|
+
createdOn: number;
|
|
51
|
+
updatedOn: number;
|
|
52
|
+
roleModel: RoleEntityModel;
|
|
53
|
+
projecUserMappings: ProjectUserMappingEntityModel[];
|
|
78
54
|
designationModel?: DesignationEntityModel;
|
|
79
|
-
|
|
80
|
-
leaveApprovals?: LeaveApprovalEntityModel[];
|
|
81
|
-
workFromHomes?: WorkFromHomeEntityModel[];
|
|
82
|
-
toDoLists?: ToDoListEntityModel[];
|
|
83
|
-
leaves?: LeaveEntityModel[];
|
|
84
|
-
static relationConfigs: RelationConfigs<[
|
|
85
|
-
EntityEnum.CLIENT_INTRODUCING_MAPPING,
|
|
86
|
-
EntityEnum.CLIENT_USER_MAPPING,
|
|
87
|
-
EntityEnum.PROJECT_USER_MAPPING,
|
|
88
|
-
EntityEnum.OFFICE_LOCATION,
|
|
89
|
-
EntityEnum.DESIGNATION,
|
|
90
|
-
EntityEnum.ROLE,
|
|
91
|
-
EntityEnum.LEAVE_APPROVAL,
|
|
92
|
-
EntityEnum.WORK_FROM_HOME,
|
|
93
|
-
EntityEnum.TO_DO_LIST,
|
|
94
|
-
EntityEnum.LEAVE
|
|
95
|
-
], EntityEnum.USER>;
|
|
96
|
-
static fromEntity(entity: IUserEntity): UserEntityModel;
|
|
55
|
+
static relationConfigs: RelationConfigs<[EntityEnum.ROLE, EntityEnum.DESIGNATION, EntityEnum.PROJECT_USER_MAPPING], EntityEnum.USER>;
|
|
97
56
|
getRelationConfigs(): any[];
|
|
98
|
-
|
|
99
|
-
get projects(): ProjectEntityModel[];
|
|
57
|
+
static fromEntity(entity: IUserEntity): UserEntityModel;
|
|
100
58
|
get roleEntityModel(): RoleEntityModel;
|
|
101
59
|
hasPermission(permissionName: string): boolean;
|
|
102
|
-
|
|
103
|
-
get vendorInvoices(): VendorInvoiceEntityModel[] | undefined;
|
|
104
|
-
get organization(): OrganizationEntityModel | undefined;
|
|
105
|
-
get clientDebitNotes(): ClientDebitNoteEntityModel[] | undefined;
|
|
106
|
-
get rates(): RateEntityModel[] | undefined;
|
|
107
|
-
get vendors(): VendorEntityModel[] | undefined;
|
|
108
|
-
get vendorInvoiceItems(): VendorInvoiceItemEntityModel[] | undefined;
|
|
109
|
-
get vendorInvoicePayments(): VendorInvoicePaymentEntityModel[] | undefined;
|
|
110
|
-
get vendorInvoiceAdvances(): VendorInvoiceAdvanceEntityModel[] | undefined;
|
|
111
|
-
get clientDebitNoteParticularss(): ClientDebitNoteParticularsEntityModel[] | undefined;
|
|
112
|
-
get vendorAdvances(): VendorAdvanceEntityModel[] | undefined;
|
|
113
|
-
getNextStatus(currentUser: IUserEntity, action: UserActionEnum, userFlowConfigContextData: IUserFlowConfigContextData): UserStatusEnum;
|
|
114
|
-
getAvailableActions(currentUser: UserEntityModel, config?: {
|
|
115
|
-
combinedActions?: Record<string, {
|
|
116
|
-
combineActions: UserActionEnum[];
|
|
117
|
-
label: string;
|
|
118
|
-
}>;
|
|
119
|
-
customLabels?: Partial<Record<UserActionEnum, string>>;
|
|
120
|
-
}): IRowActions<EntityEnum.USER>[];
|
|
121
|
-
getUpdateActionVisibility(currentUser: UserEntityModel): {
|
|
122
|
-
[key: string]: () => boolean;
|
|
123
|
-
};
|
|
60
|
+
get projects(): ProjectEntityModel[];
|
|
124
61
|
get activeProjects(): ProjectEntityModel[];
|
|
125
62
|
get inactiveProjects(): ProjectEntityModel[];
|
|
63
|
+
getProjectUserStatus(projectId: number): ProjectUserStatusEnum | null;
|
|
126
64
|
get isOwnerPartnerRoleUser(): boolean;
|
|
127
65
|
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserEntityModel = void 0;
|
|
4
|
-
const error_key_enum_1 = require("../../enums/error.key.enum");
|
|
5
|
-
const exceptions_1 = require("../../exceptions");
|
|
6
|
-
const utils_1 = require("../../utils");
|
|
7
|
-
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
8
|
-
const base_entity_model_1 = require("./base.entity.model");
|
|
9
|
-
const entities_1 = require("../../entities");
|
|
10
4
|
const project_user_status_enum_1 = require("../enums/project_user_status.enum");
|
|
5
|
+
const relation_type_enum_1 = require("../enums/relation_type_enum");
|
|
11
6
|
const user_role_enum_1 = require("../enums/user_role_enum");
|
|
12
|
-
const
|
|
13
|
-
const
|
|
7
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
8
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
14
9
|
class UserEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
15
10
|
constructor() {
|
|
16
11
|
super(...arguments);
|
|
@@ -20,48 +15,32 @@ class UserEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
20
15
|
this.contactNo = "";
|
|
21
16
|
this.designation = "";
|
|
22
17
|
this.role = user_role_enum_1.UserRoleEnum.EMPLOYEE;
|
|
18
|
+
this.organizationId = 0;
|
|
19
|
+
this.reportingManagerId = 0;
|
|
20
|
+
this.officeAllocation = 0;
|
|
21
|
+
this.tempAddressSameAsPrimary = true;
|
|
23
22
|
this.emergencyContactName = "";
|
|
24
23
|
this.emergencyContactNo = "";
|
|
25
|
-
this.tempAddressSameAsPrimary = true;
|
|
26
24
|
this.emergencyContactRelation = "";
|
|
27
|
-
this.status = user_status_enum_1.UserStatusEnum.PENDING;
|
|
28
|
-
this.organizationId = 0;
|
|
29
|
-
this.officeLocationId = 0;
|
|
30
|
-
this.createdOn = 0;
|
|
31
|
-
this.updatedOn = 0;
|
|
32
25
|
this.createdBy = 0;
|
|
33
26
|
this.updatedBy = 0;
|
|
27
|
+
this.createdOn = 0;
|
|
28
|
+
this.updatedOn = 0;
|
|
29
|
+
// role key already exists on user entity
|
|
30
|
+
// hence, name written as role model
|
|
31
|
+
this.roleModel = {};
|
|
32
|
+
this.projecUserMappings = [];
|
|
33
|
+
}
|
|
34
|
+
getRelationConfigs() {
|
|
35
|
+
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
34
36
|
}
|
|
35
37
|
static fromEntity(entity) {
|
|
36
38
|
const result = new UserEntityModel(entity_utils_interface_1.EntityEnum.USER);
|
|
37
39
|
Object.assign(result, entity);
|
|
38
40
|
return result;
|
|
39
41
|
}
|
|
40
|
-
getRelationConfigs() {
|
|
41
|
-
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
42
|
-
}
|
|
43
|
-
get clients() {
|
|
44
|
-
if (this.clientIntroducingMappings) {
|
|
45
|
-
return this.clientIntroducingMappings.filter((mapping) => mapping.client).map((mapping) => mapping.client);
|
|
46
|
-
}
|
|
47
|
-
return [];
|
|
48
|
-
}
|
|
49
|
-
// get clients(): ClientEntityModel[] {
|
|
50
|
-
// if (this.clientUserMappings) {
|
|
51
|
-
// return this.clientUserMappings.filter((mapping) => mapping.client).map((mapping) => mapping.client!);
|
|
52
|
-
// }
|
|
53
|
-
// return [];
|
|
54
|
-
// }
|
|
55
|
-
get projects() {
|
|
56
|
-
if (this.projectUserMappings) {
|
|
57
|
-
return this.projectUserMappings.filter((mapping) => mapping.project).map((mapping) => mapping.project);
|
|
58
|
-
}
|
|
59
|
-
return [];
|
|
60
|
-
}
|
|
61
|
-
// Hand-written, kept on regeneration (audit user 13.f)
|
|
62
42
|
get roleEntityModel() {
|
|
63
|
-
|
|
64
|
-
return (_a = this.roleModel) !== null && _a !== void 0 ? _a : {};
|
|
43
|
+
return this.roleModel;
|
|
65
44
|
}
|
|
66
45
|
hasPermission(permissionName) {
|
|
67
46
|
var _a;
|
|
@@ -70,266 +49,34 @@ class UserEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
70
49
|
}
|
|
71
50
|
return this.roleEntityModel.rolePermissionEntityModels.some((model) => { var _a; return ((_a = model.permission) === null || _a === void 0 ? void 0 : _a.name) === permissionName; });
|
|
72
51
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return (_c = (_b = (_a = this.projectUserMappings) === null || _a === void 0 ? void 0 : _a.find((mapping) => mapping.projectId === projectId)) === null || _b === void 0 ? void 0 : _b.status) !== null && _c !== void 0 ? _c : null;
|
|
76
|
-
}
|
|
77
|
-
get vendorInvoices() {
|
|
78
|
-
// many_to_many -> many_to_many verified
|
|
79
|
-
// {'user->office_location': 'many_to_one', 'office_location->vendor_invoice': 'one_to_many'}
|
|
80
|
-
// ['user', 'office_location'] -> many_to_one
|
|
81
|
-
// ['office_location', 'vendor_invoice'] -> one_to_many
|
|
82
|
-
var _a;
|
|
83
|
-
return (_a = this.officeLocation) === null || _a === void 0 ? void 0 : _a.vendorInvoices;
|
|
84
|
-
}
|
|
85
|
-
get organization() {
|
|
86
|
-
// many_to_one -> many_to_one verified
|
|
87
|
-
// {'user->office_location': 'many_to_one', 'office_location->organization': 'many_to_one'}
|
|
88
|
-
// ['user', 'office_location'] -> many_to_one
|
|
89
|
-
// ['office_location', 'organization'] -> many_to_one
|
|
90
|
-
var _a;
|
|
91
|
-
return (_a = this.officeLocation) === null || _a === void 0 ? void 0 : _a.organization;
|
|
92
|
-
}
|
|
93
|
-
// get country(): CountryEntityModel | undefined {
|
|
94
|
-
// // many_to_one -> many_to_one verified
|
|
95
|
-
// // {'user->office_location': 'many_to_one', 'office_location->country': 'many_to_one'}
|
|
96
|
-
// // ['user', 'office_location'] -> many_to_one
|
|
97
|
-
// // ['office_location', 'country'] -> many_to_one
|
|
98
|
-
// return this.officeLocation?.countryModel;
|
|
99
|
-
// }
|
|
100
|
-
get clientDebitNotes() {
|
|
101
|
-
// many_to_many -> many_to_many verified
|
|
102
|
-
// {'user->client': 'many_to_many', 'client->client_debit_note': 'one_to_many'}
|
|
103
|
-
// ['user', 'client'] -> many_to_many
|
|
104
|
-
// ['client', 'client_debit_note'] -> one_to_many
|
|
105
|
-
// return this.clients
|
|
106
|
-
// ?.flatMap((client) => client.clientDebitNotes)
|
|
107
|
-
// .filter((clientDebitNote): clientDebitNote is ClientDebitNoteEntityModel => !!clientDebitNote)
|
|
108
|
-
// .reduce((accumulator: ClientDebitNoteEntityModel[], current) => {
|
|
109
|
-
// if (!accumulator.some((clientDebitNote) => clientDebitNote.id === current.id)) {
|
|
110
|
-
// accumulator.push(current);
|
|
111
|
-
// }
|
|
112
|
-
// return accumulator;
|
|
113
|
-
// }, []);
|
|
114
|
-
return undefined;
|
|
115
|
-
}
|
|
116
|
-
get rates() {
|
|
117
|
-
// many_to_many -> many_to_many verified
|
|
118
|
-
// {'user->designation': 'many_to_one', 'designation->rate': 'one_to_many'}
|
|
119
|
-
// ['user', 'designation'] -> many_to_one
|
|
120
|
-
// ['designation', 'rate'] -> one_to_many
|
|
121
|
-
var _a;
|
|
122
|
-
return (_a = this.designationModel) === null || _a === void 0 ? void 0 : _a.rates;
|
|
123
|
-
}
|
|
124
|
-
get vendors() {
|
|
125
|
-
// many_to_many -> many_to_many verified
|
|
126
|
-
// {'user->office_location': 'many_to_one', 'office_location->vendor_invoice': 'one_to_many', 'vendor_invoice->vendor': 'many_to_one'}
|
|
127
|
-
// ['office_location', 'vendor_invoice'] -> one_to_many
|
|
128
|
-
// ['vendor_invoice', 'vendor'] -> many_to_one
|
|
129
|
-
var _a;
|
|
130
|
-
return (_a = this.vendorInvoices) === null || _a === void 0 ? void 0 : _a.flatMap((vendorInvoice) => vendorInvoice.vendor).filter((vendor) => !!vendor).reduce((accumulator, current) => {
|
|
131
|
-
if (!accumulator.some((vendor) => vendor.id === current.id)) {
|
|
132
|
-
accumulator.push(current);
|
|
133
|
-
}
|
|
134
|
-
return accumulator;
|
|
135
|
-
}, []);
|
|
136
|
-
}
|
|
137
|
-
get vendorInvoiceItems() {
|
|
138
|
-
// one_to_many -> many_to_many mismatch
|
|
139
|
-
// {'user->office_location': 'many_to_one', 'office_location->vendor_invoice': 'one_to_many', 'vendor_invoice->vendor_invoice_item': 'one_to_many'}
|
|
140
|
-
// ['office_location', 'vendor_invoice'] -> one_to_many
|
|
141
|
-
// ['vendor_invoice', 'vendor_invoice_item'] -> one_to_many
|
|
142
|
-
var _a;
|
|
143
|
-
return (_a = this.vendorInvoices) === null || _a === void 0 ? void 0 : _a.flatMap((vendorInvoice) => vendorInvoice.vendorInvoiceItems).filter((vendorInvoiceItem) => !!vendorInvoiceItem).reduce((accumulator, current) => {
|
|
144
|
-
if (!accumulator.some((vendorInvoiceItem) => vendorInvoiceItem.id === current.id)) {
|
|
145
|
-
accumulator.push(current);
|
|
146
|
-
}
|
|
147
|
-
return accumulator;
|
|
148
|
-
}, []);
|
|
149
|
-
}
|
|
150
|
-
get vendorInvoicePayments() {
|
|
151
|
-
// one_to_many -> many_to_many mismatch
|
|
152
|
-
// {'user->office_location': 'many_to_one', 'office_location->vendor_invoice': 'one_to_many', 'vendor_invoice->vendor_invoice_payment': 'one_to_many'}
|
|
153
|
-
// ['office_location', 'vendor_invoice'] -> one_to_many
|
|
154
|
-
// ['vendor_invoice', 'vendor_invoice_payment'] -> one_to_many
|
|
155
|
-
var _a;
|
|
156
|
-
return (_a = this.vendorInvoices) === null || _a === void 0 ? void 0 : _a.flatMap((vendorInvoice) => vendorInvoice.vendorInvoicePayments).filter((vendorInvoicePayment) => !!vendorInvoicePayment).reduce((accumulator, current) => {
|
|
157
|
-
if (!accumulator.some((vendorInvoicePayment) => vendorInvoicePayment.id === current.id)) {
|
|
158
|
-
accumulator.push(current);
|
|
159
|
-
}
|
|
160
|
-
return accumulator;
|
|
161
|
-
}, []);
|
|
162
|
-
}
|
|
163
|
-
get vendorInvoiceAdvances() {
|
|
164
|
-
// many_to_many -> many_to_many verified
|
|
165
|
-
// {'user->office_location': 'many_to_one', 'office_location->vendor_invoice': 'one_to_many', 'vendor_invoice->vendor': 'many_to_one', 'vendor->vendor_invoice_advance': 'one_to_many'}
|
|
166
|
-
// ['vendor_invoice', 'vendor'] -> many_to_one
|
|
167
|
-
// ['vendor', 'vendor_invoice_advance'] -> one_to_many
|
|
168
|
-
var _a;
|
|
169
|
-
return (_a = this.vendors) === null || _a === void 0 ? void 0 : _a.flatMap((vendor) => vendor.vendorInvoiceAdvances).filter((vendorInvoiceAdvance) => !!vendorInvoiceAdvance).reduce((accumulator, current) => {
|
|
170
|
-
if (!accumulator.some((vendorInvoiceAdvance) => vendorInvoiceAdvance.id === current.id)) {
|
|
171
|
-
accumulator.push(current);
|
|
172
|
-
}
|
|
173
|
-
return accumulator;
|
|
174
|
-
}, []);
|
|
175
|
-
}
|
|
176
|
-
get clientDebitNoteParticularss() {
|
|
177
|
-
// one_to_many -> many_to_many mismatch
|
|
178
|
-
// {'user->client': 'many_to_many', 'client->client_debit_note': 'one_to_many', 'client_debit_note->client_debit_note_particulars': 'one_to_many'}
|
|
179
|
-
// ['client', 'client_debit_note'] -> one_to_many
|
|
180
|
-
// ['client_debit_note', 'client_debit_note_particulars'] -> one_to_many
|
|
181
|
-
var _a;
|
|
182
|
-
return (_a = this.clientDebitNotes) === null || _a === void 0 ? void 0 : _a.flatMap((clientDebitNote) => clientDebitNote.clientDebitNoteParticularss).filter((clientDebitNoteParticulars) => !!clientDebitNoteParticulars).reduce((accumulator, current) => {
|
|
183
|
-
if (!accumulator.some((clientDebitNoteParticulars) => clientDebitNoteParticulars.id === current.id)) {
|
|
184
|
-
accumulator.push(current);
|
|
185
|
-
}
|
|
186
|
-
return accumulator;
|
|
187
|
-
}, []);
|
|
188
|
-
}
|
|
189
|
-
get vendorAdvances() {
|
|
190
|
-
// many_to_many -> many_to_many verified
|
|
191
|
-
// {'user->office_location': 'many_to_one', 'office_location->vendor_invoice': 'one_to_many', 'vendor_invoice->vendor': 'many_to_one', 'vendor->vendor_advance': 'one_to_many'}
|
|
192
|
-
// ['vendor_invoice', 'vendor'] -> many_to_one
|
|
193
|
-
// ['vendor', 'vendor_advance'] -> one_to_many
|
|
194
|
-
var _a;
|
|
195
|
-
return (_a = this.vendors) === null || _a === void 0 ? void 0 : _a.flatMap((vendor) => vendor.vendorAdvances).filter((vendorAdvance) => !!vendorAdvance).reduce((accumulator, current) => {
|
|
196
|
-
if (!accumulator.some((vendorAdvance) => vendorAdvance.id === current.id)) {
|
|
197
|
-
accumulator.push(current);
|
|
198
|
-
}
|
|
199
|
-
return accumulator;
|
|
200
|
-
}, []);
|
|
201
|
-
}
|
|
202
|
-
getNextStatus(currentUser, action, userFlowConfigContextData) {
|
|
203
|
-
if (!this.status) {
|
|
204
|
-
throw new exceptions_1.AppBadRequestException({
|
|
205
|
-
key: error_key_enum_1.ErrorKeyEnum.STATUS,
|
|
206
|
-
message: [`Status not found: ${this.status}`],
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
const flowForStatus = user_flow_config_1.userFlowConfig[this.status];
|
|
210
|
-
if (!flowForStatus) {
|
|
211
|
-
throw new exceptions_1.AppBadRequestException({
|
|
212
|
-
key: error_key_enum_1.ErrorKeyEnum.STATUS,
|
|
213
|
-
message: [`No flow configuration found for status: ${this.status}`],
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
if (!action) {
|
|
217
|
-
throw new exceptions_1.AppBadRequestException({
|
|
218
|
-
key: error_key_enum_1.ErrorKeyEnum.ACTION_DATA,
|
|
219
|
-
message: ["actionData is required"],
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
const matchingPermissionConfig = flowForStatus.actions[action];
|
|
223
|
-
if (!matchingPermissionConfig) {
|
|
224
|
-
throw new exceptions_1.AppBadRequestException({
|
|
225
|
-
key: error_key_enum_1.ErrorKeyEnum.ACTION,
|
|
226
|
-
message: [`Action '${action}' is not valid for the current status.`],
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
if (!currentUser.permissions || currentUser.permissions.length === 0) {
|
|
230
|
-
throw new exceptions_1.AppBadRequestException({
|
|
231
|
-
key: error_key_enum_1.ErrorKeyEnum.PERMISSIONS,
|
|
232
|
-
message: ["Permission not available for currentUser"],
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
const hasPermission = matchingPermissionConfig.permissions.some((permission) => currentUser.permissions.includes(permission));
|
|
236
|
-
console.log("matchingPermissionConfig.permissions", matchingPermissionConfig.permissions);
|
|
237
|
-
if (!hasPermission && matchingPermissionConfig.permissions.length > 0) {
|
|
238
|
-
throw new exceptions_1.AppBadRequestException({
|
|
239
|
-
key: error_key_enum_1.ErrorKeyEnum.PERMISSION,
|
|
240
|
-
message: [`Current user does not have permission to ${action} user`],
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
const nextStatus = matchingPermissionConfig.next(userFlowConfigContextData);
|
|
244
|
-
return nextStatus;
|
|
245
|
-
}
|
|
246
|
-
getAvailableActions(currentUser, config) {
|
|
247
|
-
var _a;
|
|
248
|
-
const params = {
|
|
249
|
-
flowConfig: user_flow_config_1.userFlowConfig,
|
|
250
|
-
currentStatus: this.status,
|
|
251
|
-
userPermissions: (_a = currentUser.permissions) !== null && _a !== void 0 ? _a : [],
|
|
252
|
-
visibilityData: this.getUpdateActionVisibility.bind(this, currentUser),
|
|
253
|
-
combinedActions: config === null || config === void 0 ? void 0 : config.combinedActions,
|
|
254
|
-
customLabels: config === null || config === void 0 ? void 0 : config.customLabels,
|
|
255
|
-
};
|
|
256
|
-
return utils_1.EntityActionFlowResolverV2.getAvailableActionsData(params);
|
|
257
|
-
}
|
|
258
|
-
getUpdateActionVisibility(currentUser) {
|
|
259
|
-
return {};
|
|
52
|
+
get projects() {
|
|
53
|
+
return this.projecUserMappings.map((mapping) => mapping.project).filter((project) => !!project);
|
|
260
54
|
}
|
|
261
55
|
get activeProjects() {
|
|
262
|
-
|
|
263
|
-
return [];
|
|
264
|
-
}
|
|
265
|
-
return this.projectUserMappings
|
|
56
|
+
return this.projecUserMappings
|
|
266
57
|
.filter((mapping) => mapping.status === project_user_status_enum_1.ProjectUserStatusEnum.ACTIVE)
|
|
267
58
|
.map((mapping) => mapping.project)
|
|
268
59
|
.filter((project) => !!project);
|
|
269
60
|
}
|
|
270
61
|
get inactiveProjects() {
|
|
271
|
-
|
|
272
|
-
return [];
|
|
273
|
-
}
|
|
274
|
-
return this.projectUserMappings
|
|
62
|
+
return this.projecUserMappings
|
|
275
63
|
.filter((mapping) => mapping.status === project_user_status_enum_1.ProjectUserStatusEnum.INACTIVE)
|
|
276
64
|
.map((mapping) => mapping.project)
|
|
277
65
|
.filter((project) => !!project);
|
|
278
66
|
}
|
|
67
|
+
getProjectUserStatus(projectId) {
|
|
68
|
+
var _a, _b;
|
|
69
|
+
return (_b = (_a = this.projecUserMappings.find((mapping) => mapping.projectId === projectId)) === null || _a === void 0 ? void 0 : _a.status) !== null && _b !== void 0 ? _b : null;
|
|
70
|
+
}
|
|
279
71
|
get isOwnerPartnerRoleUser() {
|
|
280
72
|
return [user_role_enum_1.UserRoleEnum.OWNER, user_role_enum_1.UserRoleEnum.PARTNER].includes(this.role);
|
|
281
73
|
}
|
|
282
74
|
}
|
|
283
75
|
exports.UserEntityModel = UserEntityModel;
|
|
284
76
|
UserEntityModel.relationConfigs = [
|
|
285
|
-
{
|
|
286
|
-
name: entity_utils_interface_1.EntityEnum.CLIENT_INTRODUCING_MAPPING,
|
|
287
|
-
relation: entities_1.RelationType.MANY,
|
|
288
|
-
key: "clientIntroducingMappings",
|
|
289
|
-
mapKeyConfig: {
|
|
290
|
-
relationKey: "userId",
|
|
291
|
-
key: "id",
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
name: entity_utils_interface_1.EntityEnum.CLIENT_USER_MAPPING,
|
|
296
|
-
relation: entities_1.RelationType.MANY,
|
|
297
|
-
key: "clientUserMappings",
|
|
298
|
-
mapKeyConfig: {
|
|
299
|
-
relationKey: "userId",
|
|
300
|
-
key: "id",
|
|
301
|
-
},
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
name: entity_utils_interface_1.EntityEnum.PROJECT_USER_MAPPING,
|
|
305
|
-
relation: entities_1.RelationType.MANY,
|
|
306
|
-
key: "projectUserMappings",
|
|
307
|
-
mapKeyConfig: {
|
|
308
|
-
relationKey: "userId",
|
|
309
|
-
key: "id",
|
|
310
|
-
},
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
name: entity_utils_interface_1.EntityEnum.OFFICE_LOCATION,
|
|
314
|
-
relation: entities_1.RelationType.ONE,
|
|
315
|
-
key: "officeLocation",
|
|
316
|
-
mapKeyConfig: {
|
|
317
|
-
relationKey: "id",
|
|
318
|
-
key: "officeLocationId",
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
name: entity_utils_interface_1.EntityEnum.DESIGNATION,
|
|
323
|
-
relation: entities_1.RelationType.ONE,
|
|
324
|
-
key: "designationModel",
|
|
325
|
-
mapKeyConfig: {
|
|
326
|
-
relationKey: "name",
|
|
327
|
-
key: "designation",
|
|
328
|
-
},
|
|
329
|
-
},
|
|
330
77
|
{
|
|
331
78
|
name: entity_utils_interface_1.EntityEnum.ROLE,
|
|
332
|
-
relation:
|
|
79
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
333
80
|
key: "roleModel",
|
|
334
81
|
mapKeyConfig: {
|
|
335
82
|
relationKey: "name",
|
|
@@ -337,39 +84,21 @@ UserEntityModel.relationConfigs = [
|
|
|
337
84
|
},
|
|
338
85
|
},
|
|
339
86
|
{
|
|
340
|
-
name: entity_utils_interface_1.EntityEnum.
|
|
341
|
-
relation:
|
|
342
|
-
key: "
|
|
343
|
-
mapKeyConfig: {
|
|
344
|
-
relationKey: "approverId",
|
|
345
|
-
key: "id",
|
|
346
|
-
},
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
name: entity_utils_interface_1.EntityEnum.WORK_FROM_HOME,
|
|
350
|
-
relation: entities_1.RelationType.MANY,
|
|
351
|
-
key: "workFromHomes",
|
|
87
|
+
name: entity_utils_interface_1.EntityEnum.DESIGNATION,
|
|
88
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
89
|
+
key: "designationModel",
|
|
352
90
|
mapKeyConfig: {
|
|
353
|
-
relationKey: "
|
|
354
|
-
key: "
|
|
91
|
+
relationKey: "name",
|
|
92
|
+
key: "designation",
|
|
355
93
|
},
|
|
356
94
|
},
|
|
357
95
|
{
|
|
358
|
-
name: entity_utils_interface_1.EntityEnum.
|
|
359
|
-
relation:
|
|
360
|
-
key: "
|
|
96
|
+
name: entity_utils_interface_1.EntityEnum.PROJECT_USER_MAPPING,
|
|
97
|
+
relation: relation_type_enum_1.RelationType.MANY,
|
|
98
|
+
key: "projecUserMappings",
|
|
361
99
|
mapKeyConfig: {
|
|
362
100
|
relationKey: "userId",
|
|
363
101
|
key: "id",
|
|
364
102
|
},
|
|
365
103
|
},
|
|
366
|
-
{
|
|
367
|
-
name: entity_utils_interface_1.EntityEnum.LEAVE,
|
|
368
|
-
relation: entities_1.RelationType.MANY,
|
|
369
|
-
key: "leaves",
|
|
370
|
-
mapKeyConfig: {
|
|
371
|
-
relationKey: "employeeId",
|
|
372
|
-
key: "id",
|
|
373
|
-
},
|
|
374
|
-
},
|
|
375
104
|
];
|
|
@@ -7,28 +7,28 @@ const userDTO = {
|
|
|
7
7
|
secondaryContactNo: "",
|
|
8
8
|
password: "",
|
|
9
9
|
userCode: "",
|
|
10
|
-
joiningDate:
|
|
11
|
-
endDate:
|
|
10
|
+
joiningDate: "",
|
|
11
|
+
endDate: "",
|
|
12
12
|
address: "",
|
|
13
13
|
zipCode: 0,
|
|
14
14
|
country: "India",
|
|
15
15
|
designation: "",
|
|
16
16
|
role: entities_1.UserRoleEnum.EMPLOYEE,
|
|
17
|
-
dateOfBirth:
|
|
17
|
+
dateOfBirth: "",
|
|
18
18
|
createdOn: 0,
|
|
19
19
|
updatedOn: 0,
|
|
20
20
|
createdBy: 1,
|
|
21
21
|
updatedBy: 1,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
panDocumentUrl: "",
|
|
23
|
+
aadharDocumentUrl: "",
|
|
24
24
|
panNo: "",
|
|
25
25
|
aadharNo: "",
|
|
26
26
|
status: user_status_enum_1.UserStatusEnum.ACTIVE,
|
|
27
27
|
organizationId: 1,
|
|
28
28
|
reportingManagerId: 1,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
passportDocumentUrl: "",
|
|
30
|
+
academicQualificationDocumentUrl: "",
|
|
31
|
+
officeAllocation: 0,
|
|
32
32
|
tempAddress: "",
|
|
33
33
|
tempZipCode: 0,
|
|
34
34
|
tempCountry: "India",
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IEntityUpdateDto } from "../../../entities";
|
|
2
|
-
import { IRolePermissionMappingEntity } from "../../../entities/interface/role_permission_mapping.entity.interface";
|
|
3
|
-
export interface IRolePermissionMappingUpdateDto extends IEntityUpdateDto<IRolePermissionMappingEntity> {
|
|
4
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IUserEntity, Nullable } from "../../../entities";
|
|
2
|
-
export interface IUserCreateDto extends Omit<IUserEntity, "id" | "updatedOn" | "updatedBy" | "createdBy" | "createdOn" | "password" | "status" | "organizationId" | "panDocument" | "aadharDocument" | "passportDocument" | "academicQualificationDocument"> {
|
|
3
|
-
/** a new file on upload; otherwise the stored URL, or "deleted" to remove it */
|
|
4
|
-
panDocument?: File | Nullable<string>;
|
|
5
|
-
aadharDocument?: File | Nullable<string>;
|
|
6
|
-
passportDocument?: File | Nullable<string>;
|
|
7
|
-
academicQualificationDocument?: File | Nullable<string>;
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IUserEntity, Nullable } from "../../../entities";
|
|
2
|
-
export interface IUserUpdateDto extends Omit<IUserEntity, "createdOn" | "updatedOn" | "createdBy" | "updatedBy" | "id" | "organizationId" | "panDocument" | "aadharDocument" | "passportDocument" | "academicQualificationDocument"> {
|
|
3
|
-
/** a new file on upload; otherwise the stored URL, or "deleted" to remove it */
|
|
4
|
-
panDocument?: File | Nullable<string>;
|
|
5
|
-
aadharDocument?: File | Nullable<string>;
|
|
6
|
-
passportDocument?: File | Nullable<string>;
|
|
7
|
-
academicQualificationDocument?: File | Nullable<string>;
|
|
8
|
-
newPassword?: string;
|
|
9
|
-
confirmPassword?: string;
|
|
10
|
-
}
|