@go-avro/avro-js 0.0.2-beta.17 → 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
  }
@@ -491,6 +491,7 @@ export interface AdditionalCharge {
491
491
  time_created: number;
492
492
  time_updated: number | null;
493
493
  name: string;
494
+ description: string;
494
495
  amount: number;
495
496
  }
496
497
  export interface _Event {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.2-beta.17",
3
+ "version": "0.0.2-beta.19",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",