@go-avro/avro-js 0.1.7 → 0.1.8

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.
@@ -14,8 +14,10 @@ export interface Email {
14
14
  is_company_wide: boolean;
15
15
  users: User[];
16
16
  type: 'OUTLOOK' | 'SMTP' | 'GMAIL';
17
- access_token?: string;
18
- access_token_expiry?: number;
19
- refresh_token?: string;
20
- refresh_token_expiry?: number;
17
+ /**
18
+ * False when an OAuth (Outlook/Gmail) account's grant was revoked or
19
+ * expired: sends fail until someone signs in again. Always true for
20
+ * SMTP accounts.
21
+ */
22
+ connected: boolean;
21
23
  }
@@ -0,0 +1,17 @@
1
+ /** A recipient whose notification email could not be sent. */
2
+ export interface NotificationEmailError {
3
+ recipient: string;
4
+ msg: string;
5
+ }
6
+ /**
7
+ * Response of `POST /company/<id>/notification`.
8
+ *
9
+ * The notification (and any event photos) is saved even when emails
10
+ * fail; failed sends are listed in `email_errors` — e.g. when the
11
+ * sending Outlook/Gmail account must be reconnected.
12
+ */
13
+ export interface NotificationCreated {
14
+ msg: string;
15
+ id: string;
16
+ email_errors: NotificationEmailError[];
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -26,6 +26,7 @@ export * from './api/Label.js';
26
26
  export * from './api/LineItem.js';
27
27
  export * from './api/MemberState.js';
28
28
  export * from './api/Message.js';
29
+ export * from './api/Notification.js';
29
30
  export * from './api/PaymentMethod.js';
30
31
  export * from './api/PaymentOption.js';
31
32
  export * from './api/PaymentType.js';
package/dist/types/api.js CHANGED
@@ -23,6 +23,7 @@ export * from './api/Label.js';
23
23
  export * from './api/LineItem.js';
24
24
  export * from './api/MemberState.js';
25
25
  export * from './api/Message.js';
26
+ export * from './api/Notification.js';
26
27
  export * from './api/PaymentMethod.js';
27
28
  export * from './api/PaymentOption.js';
28
29
  export * from './api/PaymentType.js';
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "0.1.7";
1
+ export declare const AVRO_JS_VERSION = "0.1.8";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/gen-version.js — do not edit by hand.
2
2
  // Regenerated from package.json by the `prebuild` npm hook.
3
- export const AVRO_JS_VERSION = '0.1.7';
3
+ export const AVRO_JS_VERSION = '0.1.8';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",