@bit-ui-libs/common
Version:
This library was generated with [Nx](https://nx.dev).
101 lines (88 loc) • 1.97 kB
text/typescript
import { FilterParams, PagedRequest, WalletPlatformEnum } from '../common';
import { AddressTypeEnum } from '../users';
interface Contracts {
id: string;
name: string;
email: string;
contact: string;
position: string;
}
export interface OrganizationResponse {
id: string;
name: string;
description: string;
contacts: Contracts[];
logoUrl: string;
isActive: boolean;
isSuper: boolean;
createdAt: string;
updatedAt: string;
}
export interface OrganizationWallet {
orgId: string;
address: string;
defaultPlatform: WalletPlatformEnum;
createdAt: string;
}
export interface InitVdtRequest {
appName: string;
deviceId: string;
latitude: number;
longitude: number;
meanSeaLevel: number;
recipientAddress: string;
platform: WalletPlatformEnum;
}
export interface OrganizationAddressResponse {
id: string;
orgId: string;
type: AddressTypeEnum;
name: string;
address: string;
city: string;
state: string;
zip: string;
country: string;
isMain: boolean;
}
export type SearchOrganizationAddressRequest = PagedRequest<{
orgId?: string;
name?: string;
}>;
export interface UpdateOrganizationRequest {
name: string;
description: string;
logo?: string;
}
export interface AddContactRequest {
name: string;
job: string;
email: string;
phone: string;
}
export interface AddContactResponse extends AddContactRequest {
id: string;
}
export interface AddOrganizationAddressRequest {
orgId: string;
type: AddressTypeEnum;
name: string;
address: string;
city: string;
state: string;
zip: string;
country: string;
isMain: boolean;
}
export interface AddOrganizationAddressResponse extends AddOrganizationAddressRequest {
id: string;
}
export interface ShareOrganizationDeepLinkRequest {
to: { email: string; name?: string }[];
}
export interface ListOrganizationRequest extends FilterParams {
name?: string;
isSuper?: boolean;
appName?: string;
isActive?: boolean;
}