mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 01:53:49 +00:00
Refactor third-party type imports and update related components
- Changed import path for ThirdParty type in TypeThirdParty.vue and updated its usage. - Refactored PersonText.vue to import Person and AltName types from ChillPersonAssets. - Updated types.ts in ChillThirdPartyBundle to include a new 'type' field in the Thirdparty interface. - Modified TicketBundle types to accommodate Thirdparty type in CallerState. - Adjusted AddresseeSelectorComponent.vue to use 'thirdparty' instead of 'third_party'. - Refined BannerComponent.vue to improve readability and maintainability. - Updated CallerSelectorComponent.vue to reflect changes in entity types. - Enhanced TicketHistoryListComponent.vue to handle both Person and Thirdparty types. - Refactored TicketHistoryPersonComponent.vue to accept both Person and Thirdparty entities.
This commit is contained in:
@@ -1,47 +1,49 @@
|
||||
import {
|
||||
Address,
|
||||
Center,
|
||||
Civility,
|
||||
DateTime,
|
||||
User,
|
||||
Address,
|
||||
Center,
|
||||
Civility,
|
||||
DateTime,
|
||||
User,
|
||||
} from "ChillMainAssets/types";
|
||||
|
||||
export interface Thirdparty {
|
||||
acronym: string | null;
|
||||
active: boolean;
|
||||
address: Address | null;
|
||||
canonicalized: string | null;
|
||||
categories: ThirdpartyCategory[];
|
||||
centers: Center[];
|
||||
children: Thirdparty[];
|
||||
civility: Civility | null;
|
||||
comment: string | null;
|
||||
contactDataAnonymous: boolean;
|
||||
createdAt: DateTime;
|
||||
createdBy: User | null;
|
||||
email: string | null;
|
||||
firstname: string | null;
|
||||
id: number | null;
|
||||
kind: string;
|
||||
name: string;
|
||||
nameCompany: string | null;
|
||||
parent: Thirdparty | null;
|
||||
profession: string;
|
||||
telephone: string | null;
|
||||
thirdPartyTypes: ThirdpartyType[] | null;
|
||||
updatedAt: DateTime | null;
|
||||
updatedBy: User | null;
|
||||
type: "thirdparty";
|
||||
text: string;
|
||||
acronym: string | null;
|
||||
active: boolean;
|
||||
address: Address | null;
|
||||
canonicalized: string | null;
|
||||
categories: ThirdpartyCategory[];
|
||||
centers: Center[];
|
||||
children: Thirdparty[];
|
||||
civility: Civility | null;
|
||||
comment: string | null;
|
||||
contactDataAnonymous: boolean;
|
||||
createdAt: DateTime;
|
||||
createdBy: User | null;
|
||||
email: string | null;
|
||||
firstname: string | null;
|
||||
id: number | null;
|
||||
kind: string;
|
||||
name: string;
|
||||
nameCompany: string | null;
|
||||
parent: Thirdparty | null;
|
||||
profession: string;
|
||||
telephone: string | null;
|
||||
thirdPartyTypes: ThirdpartyType[] | null;
|
||||
updatedAt: DateTime | null;
|
||||
updatedBy: User | null;
|
||||
}
|
||||
|
||||
interface ThirdpartyType {
|
||||
key: string;
|
||||
value: string;
|
||||
key: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface ThirdpartyCategory {
|
||||
id: number;
|
||||
active: boolean;
|
||||
name: {
|
||||
fr: string;
|
||||
};
|
||||
id: number;
|
||||
active: boolean;
|
||||
name: {
|
||||
fr: string;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user