@aptly-as/types 2.4.4 → 2.4.6

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
@@ -125,13 +125,12 @@ export declare enum AptlyOrganizationStatus {
125
125
  Closed = 4
126
126
  }
127
127
  export declare enum AptlyEmailType {
128
- Invite = "invite",
129
- Inquiry = "inquiry",
130
- NewOwner = "new-owner",
131
- PeriodOpen = "period-open",
132
- PeriodClose = "period-close",
128
+ ActionRecipients = "action_recipients",
133
129
  BookingConfirm = "booking-confirm",
134
130
  BookingCancel = "booking-cancel",
131
+ Inquiry = "inquiry",
132
+ Invite = "invite",
133
+ NewOwner = "new-owner",
135
134
  OrderCreated = "order-created",
136
135
  OrderSign = "order-sign",
137
136
  OrderSigned = "order-signed",
@@ -140,5 +139,6 @@ export declare enum AptlyEmailType {
140
139
  OrderPayed = "order-payed",
141
140
  OrderReceipt = "order-receipt",
142
141
  OrderCompleted = "order-completed",
143
- ActionRecipients = "action_recipients"
142
+ PeriodOpen = "period-open",
143
+ PeriodClose = "period-close"
144
144
  }
package/enums/index.js CHANGED
@@ -145,13 +145,12 @@ export var AptlyOrganizationStatus;
145
145
  })(AptlyOrganizationStatus || (AptlyOrganizationStatus = {}));
146
146
  export var AptlyEmailType;
147
147
  (function (AptlyEmailType) {
148
- AptlyEmailType["Invite"] = "invite";
149
- AptlyEmailType["Inquiry"] = "inquiry";
150
- AptlyEmailType["NewOwner"] = "new-owner";
151
- AptlyEmailType["PeriodOpen"] = "period-open";
152
- AptlyEmailType["PeriodClose"] = "period-close";
148
+ AptlyEmailType["ActionRecipients"] = "action_recipients";
153
149
  AptlyEmailType["BookingConfirm"] = "booking-confirm";
154
150
  AptlyEmailType["BookingCancel"] = "booking-cancel";
151
+ AptlyEmailType["Inquiry"] = "inquiry";
152
+ AptlyEmailType["Invite"] = "invite";
153
+ AptlyEmailType["NewOwner"] = "new-owner";
155
154
  AptlyEmailType["OrderCreated"] = "order-created";
156
155
  AptlyEmailType["OrderSign"] = "order-sign";
157
156
  AptlyEmailType["OrderSigned"] = "order-signed";
@@ -160,5 +159,6 @@ export var AptlyEmailType;
160
159
  AptlyEmailType["OrderPayed"] = "order-payed";
161
160
  AptlyEmailType["OrderReceipt"] = "order-receipt";
162
161
  AptlyEmailType["OrderCompleted"] = "order-completed";
163
- AptlyEmailType["ActionRecipients"] = "action_recipients";
162
+ AptlyEmailType["PeriodOpen"] = "period-open";
163
+ AptlyEmailType["PeriodClose"] = "period-close";
164
164
  })(AptlyEmailType || (AptlyEmailType = {}));
package/models/order.d.ts CHANGED
@@ -48,6 +48,7 @@ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DAT
48
48
  }
49
49
  export type AptlyOrderPaymentSession = AptlyOrderPaymentSessionSchema<string, string>;
50
50
  export interface AptlyOrderPaymentSessionSchema<ID, DATE> {
51
+ app?: ID;
51
52
  status?: AptlyOrderPaymentStatus;
52
53
  url?: string;
53
54
  id?: string;
package/models/user.d.ts CHANGED
@@ -5,6 +5,15 @@ export declare enum AptlyLanguage {
5
5
  Norwegian = "no",
6
6
  NorwegianBokmal = "nb"
7
7
  }
8
+ export declare enum AptlyUserForgetStatus {
9
+ None = 0,
10
+ SixMonths = 1,
11
+ OneMonth = 2,
12
+ OneWeek = 3,
13
+ Forget = 4,
14
+ Forgotten = 5,
15
+ Never = 6
16
+ }
8
17
  export type AptlyUser = AptlyUserSchema<string, string>;
9
18
  export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived' | 'name'> {
10
19
  email: string;
@@ -19,5 +28,6 @@ export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE
19
28
  phone: string;
20
29
  synced: DATE;
21
30
  isGuest?: boolean;
31
+ forgetStatus?: AptlyUserForgetStatus;
22
32
  created: DATE;
23
33
  }
package/models/user.js CHANGED
@@ -4,3 +4,13 @@ export var AptlyLanguage;
4
4
  AptlyLanguage["Norwegian"] = "no";
5
5
  AptlyLanguage["NorwegianBokmal"] = "nb";
6
6
  })(AptlyLanguage || (AptlyLanguage = {}));
7
+ export var AptlyUserForgetStatus;
8
+ (function (AptlyUserForgetStatus) {
9
+ AptlyUserForgetStatus[AptlyUserForgetStatus["None"] = 0] = "None";
10
+ AptlyUserForgetStatus[AptlyUserForgetStatus["SixMonths"] = 1] = "SixMonths";
11
+ AptlyUserForgetStatus[AptlyUserForgetStatus["OneMonth"] = 2] = "OneMonth";
12
+ AptlyUserForgetStatus[AptlyUserForgetStatus["OneWeek"] = 3] = "OneWeek";
13
+ AptlyUserForgetStatus[AptlyUserForgetStatus["Forget"] = 4] = "Forget";
14
+ AptlyUserForgetStatus[AptlyUserForgetStatus["Forgotten"] = 5] = "Forgotten";
15
+ AptlyUserForgetStatus[AptlyUserForgetStatus["Never"] = 6] = "Never";
16
+ })(AptlyUserForgetStatus || (AptlyUserForgetStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "2.4.4",
3
+ "version": "2.4.6",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",