@trii/components 2.0.57 → 2.0.59
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/cjs/index.js +9 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/EditContactModal/context/EditContactApiContext.d.ts +10 -0
- package/dist/types/components/EditContactModal/services/api.d.ts +8 -0
- package/package.json +1 -1
|
@@ -13,6 +13,11 @@ export declare const EditContactApiProvider: import("react").Provider<{
|
|
|
13
13
|
} & {
|
|
14
14
|
contactId: string;
|
|
15
15
|
}) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
|
|
16
|
+
fetchBusiness: ({ businessId, signal }: {
|
|
17
|
+
signal?: AbortSignal | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
businessId: string;
|
|
20
|
+
}) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
|
|
16
21
|
fetchBusinessTableData: ({ pagination, signal }: {
|
|
17
22
|
signal?: AbortSignal | undefined;
|
|
18
23
|
} & {
|
|
@@ -108,6 +113,11 @@ export declare const useEditContactApi: () => {
|
|
|
108
113
|
} & {
|
|
109
114
|
contactId: string;
|
|
110
115
|
}) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
|
|
116
|
+
fetchBusiness: ({ businessId, signal }: {
|
|
117
|
+
signal?: AbortSignal | undefined;
|
|
118
|
+
} & {
|
|
119
|
+
businessId: string;
|
|
120
|
+
}) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
|
|
111
121
|
fetchBusinessTableData: ({ pagination, signal }: {
|
|
112
122
|
signal?: AbortSignal | undefined;
|
|
113
123
|
} & {
|
|
@@ -45,6 +45,9 @@ export type BusinessTableData = {
|
|
|
45
45
|
type FetchContactArgs = ApiArgs & {
|
|
46
46
|
contactId: string;
|
|
47
47
|
};
|
|
48
|
+
type FetchBusinessArgs = ApiArgs & {
|
|
49
|
+
businessId: string;
|
|
50
|
+
};
|
|
48
51
|
type FetchLabelsArgs = ApiArgs;
|
|
49
52
|
type CreateLabelArgs = ApiArgs & {
|
|
50
53
|
name: string;
|
|
@@ -52,6 +55,7 @@ type CreateLabelArgs = ApiArgs & {
|
|
|
52
55
|
export declare function fetchLabels({ baseUrl, spaceId, signal }: FetchLabelsArgs): Promise<ILabel[]>;
|
|
53
56
|
export declare function createLabel({ baseUrl, spaceId, name, signal }: CreateLabelArgs): Promise<ILabel>;
|
|
54
57
|
export declare function fetchContact({ baseUrl, spaceId, contactId, signal }: FetchContactArgs): Promise<IContact | IBusiness>;
|
|
58
|
+
export declare function fetchBusiness({ baseUrl, spaceId, businessId, signal }: FetchBusinessArgs): Promise<IContact | IBusiness>;
|
|
55
59
|
type FetchContactFieldsArgs = ApiArgs & {
|
|
56
60
|
forType: 'contact' | 'business';
|
|
57
61
|
};
|
|
@@ -128,6 +132,9 @@ export declare function uploadAvatar({ baseUrl, spaceId, contactId, file, signal
|
|
|
128
132
|
type FetchContactBoundArgs = WithSignal & {
|
|
129
133
|
contactId: string;
|
|
130
134
|
};
|
|
135
|
+
type FetchBusinessBoundArgs = WithSignal & {
|
|
136
|
+
businessId: string;
|
|
137
|
+
};
|
|
131
138
|
type FetchContactFieldsBoundArgs = WithSignal & {
|
|
132
139
|
forType: 'contact' | 'business';
|
|
133
140
|
};
|
|
@@ -170,6 +177,7 @@ export declare const createEditContactApi: (baseUrl: string, spaceId: string) =>
|
|
|
170
177
|
fetchLabels: ({ signal }?: WithSignal) => Promise<ILabel[]>;
|
|
171
178
|
createLabel: ({ name, signal }: CreateLabelBoundArgs) => Promise<ILabel>;
|
|
172
179
|
fetchContact: ({ contactId, signal }: FetchContactBoundArgs) => Promise<IContact | IBusiness>;
|
|
180
|
+
fetchBusiness: ({ businessId, signal }: FetchBusinessBoundArgs) => Promise<IContact | IBusiness>;
|
|
173
181
|
fetchBusinessTableData: ({ pagination, signal }: FetchBusinessTableDataBoundArgs) => Promise<BusinessTableData>;
|
|
174
182
|
createBusiness: ({ business, signal }: CreateBusinessBoundArgs) => Promise<IBusiness>;
|
|
175
183
|
fetchContactFields: ({ forType, signal }: FetchContactFieldsBoundArgs) => Promise<IContactField[]>;
|