@go-avro/avro-js 0.0.2-beta.18 → 0.0.2-beta.19
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.
|
@@ -26,4 +26,5 @@ export declare class AvroQueryClient {
|
|
|
26
26
|
fetchEvents(companyGuid: string, amt?: number, knownIds?: string[], unknownIds?: string[], keyword?: string, offset?: number, unbilled?: boolean, billed?: boolean, paid?: boolean, jobId?: string | null, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
27
27
|
fetchMonths(companyGuid: string, amt?: number, knownIds?: string[], unknownIds?: string[], keyword?: string, offset?: number, unbilled?: boolean, billed?: boolean, paid?: boolean, jobId?: string | null, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
28
28
|
fetchBills(companyGuid: string, amt?: number, knownIds?: string[], unknownIds?: string[], keyword?: string, offset?: number, paid?: boolean, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
29
|
+
sendEmail(emailId: string, formData: FormData): Promise<void>;
|
|
29
30
|
}
|
|
@@ -292,4 +292,13 @@ export class AvroQueryClient {
|
|
|
292
292
|
throw new StandardError(500, 'Failed to fetch bills');
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
+
sendEmail(emailId, formData) {
|
|
296
|
+
try {
|
|
297
|
+
return this._xhr('POST', `/email/${emailId}`, formData);
|
|
298
|
+
}
|
|
299
|
+
catch (error) {
|
|
300
|
+
console.error('Failed to send email', error);
|
|
301
|
+
throw error;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
295
304
|
}
|