@aptly-as/types 3.0.20 → 3.0.22

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/enums/index.d.ts CHANGED
@@ -131,6 +131,7 @@ export declare enum AptlyEmailType {
131
131
  Inquiry = "inquiry",
132
132
  Invite = "invite",
133
133
  InviteAccepted = "invite-accepted",
134
+ EmailFailure = "email-failure",
134
135
  NewOwner = "new-owner",
135
136
  NoteReminder = "note-reminder",
136
137
  Offer = "offer",
package/enums/index.js CHANGED
@@ -150,6 +150,7 @@ export var AptlyEmailType;
150
150
  AptlyEmailType["Inquiry"] = "inquiry";
151
151
  AptlyEmailType["Invite"] = "invite";
152
152
  AptlyEmailType["InviteAccepted"] = "invite-accepted";
153
+ AptlyEmailType["EmailFailure"] = "email-failure";
153
154
  AptlyEmailType["NewOwner"] = "new-owner";
154
155
  AptlyEmailType["NoteReminder"] = "note-reminder";
155
156
  AptlyEmailType["Offer"] = "offer";
@@ -7,6 +7,7 @@ export interface AptlyModuleSchema<ID, DATE> {
7
7
  featuredWeight: number;
8
8
  cost?: number;
9
9
  modules: AptlyModules[];
10
+ isDefault?: boolean;
10
11
  createdAt: DATE;
11
12
  updatedAt: DATE;
12
13
  }
@@ -12,6 +12,7 @@ export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
12
12
  subject: string;
13
13
  references: string;
14
14
  inReplyTo: string[];
15
+ errors?: AptlyUnitEmailErrorSchema<ID, DATE>[];
15
16
  organization: ID | AptlyOrganizationSchema<ID, DATE>;
16
17
  project: ID | AptlyProjectSchema<ID, DATE>;
17
18
  unit: ID | AptlyUnitSchema<ID, DATE>;
@@ -19,3 +20,11 @@ export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
19
20
  booking?: ID | AptlyBookingSchema<ID, DATE>;
20
21
  created: DATE;
21
22
  }
23
+ export interface AptlyUnitEmailErrorSchema<ID, DATE> {
24
+ _id: ID;
25
+ code: number;
26
+ description: string;
27
+ message: string;
28
+ recipient: string;
29
+ createdAt: DATE;
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.0.20",
3
+ "version": "3.0.22",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",