@valentine-efagene/qshelter-common 2.0.10 → 2.0.12

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -10,6 +10,7 @@ export type * from './models/UserSuspension.js';
10
10
  export type * from './models/EmailPreference.js';
11
11
  export type * from './models/DeviceEndpoint.js';
12
12
  export type * from './models/Social.js';
13
+ export type * from './models/OAuthState.js';
13
14
  export type * from './models/Wallet.js';
14
15
  export type * from './models/Transaction.js';
15
16
  export type * from './models/Settings.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valentine-efagene/qshelter-common",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "Shared database schemas and utilities for QShelter services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -205,6 +205,17 @@ model Social {
205
205
  @@map("socials")
206
206
  }
207
207
 
208
+ model OAuthState {
209
+ id String @id @default(cuid())
210
+ state String @unique
211
+ expiresAt DateTime
212
+ createdAt DateTime @default(now())
213
+
214
+ @@index([state])
215
+ @@index([expiresAt])
216
+ @@map("oauth_states")
217
+ }
218
+
208
219
  model Wallet {
209
220
  id String @id @default(cuid())
210
221
  balance Float @default(0)
@@ -1,34 +0,0 @@
1
- export * from './Amenity';
2
- export * from './Contract';
3
- export * from './ContractDocument';
4
- export * from './DeviceEndpoint';
5
- export * from './EmailPreference';
6
- export * from './Mortgage';
7
- export * from './MortgageDocument';
8
- export * from './MortgageDownpaymentInstallment';
9
- export * from './MortgageDownpaymentPayment';
10
- export * from './MortgageDownpaymentPlan';
11
- export * from './MortgageStep';
12
- export * from './MortgageTransition';
13
- export * from './MortgageTransitionEvent';
14
- export * from './MortgageType';
15
- export * from './PasswordReset';
16
- export * from './Payment';
17
- export * from './PaymentInstallment';
18
- export * from './PaymentPlan';
19
- export * from './PaymentSchedule';
20
- export * from './Permission';
21
- export * from './Property';
22
- export * from './PropertyAmenity';
23
- export * from './PropertyDocument';
24
- export * from './PropertyMedia';
25
- export * from './RefreshToken';
26
- export * from './Role';
27
- export * from './RolePermission';
28
- export * from './Settings';
29
- export * from './Social';
30
- export * from './Tenant';
31
- export * from './Transaction';
32
- export * from './User';
33
- export * from './UserSuspension';
34
- export * from './Wallet';
@@ -1,34 +0,0 @@
1
- export * from './Amenity';
2
- export * from './Contract';
3
- export * from './ContractDocument';
4
- export * from './DeviceEndpoint';
5
- export * from './EmailPreference';
6
- export * from './Mortgage';
7
- export * from './MortgageDocument';
8
- export * from './MortgageDownpaymentInstallment';
9
- export * from './MortgageDownpaymentPayment';
10
- export * from './MortgageDownpaymentPlan';
11
- export * from './MortgageStep';
12
- export * from './MortgageTransition';
13
- export * from './MortgageTransitionEvent';
14
- export * from './MortgageType';
15
- export * from './PasswordReset';
16
- export * from './Payment';
17
- export * from './PaymentInstallment';
18
- export * from './PaymentPlan';
19
- export * from './PaymentSchedule';
20
- export * from './Permission';
21
- export * from './Property';
22
- export * from './PropertyAmenity';
23
- export * from './PropertyDocument';
24
- export * from './PropertyMedia';
25
- export * from './RefreshToken';
26
- export * from './Role';
27
- export * from './RolePermission';
28
- export * from './Settings';
29
- export * from './Social';
30
- export * from './Tenant';
31
- export * from './Transaction';
32
- export * from './User';
33
- export * from './UserSuspension';
34
- export * from './Wallet';