@optimatech88/titomeet-shared-lib 1.0.48 → 1.0.49
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/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './auth/auth.guard';
|
|
2
|
-
export { PrismaClient, User, Account, UserRole, Event, EventAccess, EventVisibility, EventStatus, EventPrice, Address, Provider, ProviderStatus, EventCategory, Review, ProviderCategory, Order, OrderStatus, OrderItem, PaymentStatus, Chat, ChatUser, Message, Notification, NotificationType, ProviderOnEvent, UserInterests, UserStatus, ProviderOnEventStatus, Pricing, PricingType, PricingDuration, Transaction, TransactionStatus, PaymentMethod } from '@prisma/client';
|
|
2
|
+
export { PrismaClient, User, Account, AccountType, UserRole, Event, EventAccess, EventVisibility, EventStatus, EventPrice, Address, Provider, ProviderStatus, EventCategory, Review, ProviderCategory, Order, OrderStatus, OrderItem, PaymentStatus, Chat, ChatUser, Message, Notification, NotificationType, ProviderOnEvent, UserInterests, UserStatus, ProviderOnEventStatus, Pricing, PricingType, PricingDuration, Transaction, TransactionStatus, PaymentMethod, Prisma } from '@prisma/client';
|
|
3
3
|
export * from './auth/auth.guard';
|
|
4
4
|
export * from './auth/auth.module';
|
|
5
5
|
export * from './auth/admin.middleware';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACH,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACH,YAAY,EACZ,IAAI,EACJ,OAAO,EACP,WAAW,EACX,QAAQ,EACR,KAAK,EACL,WAAW,EACX,eAAe,EACf,WAAW,EACX,UAAU,EAAE,OAAO,EACnB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,SAAS,EACT,aAAa,EACb,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,OAAO,EACP,WAAW,EACX,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,MAAM,EACT,MAAM,gBAAgB,CAAC;AAGxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,10 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.JwtService = exports.PaymentMethod = exports.TransactionStatus = exports.PricingDuration = exports.PricingType = exports.ProviderOnEventStatus = exports.UserStatus = exports.NotificationType = exports.PaymentStatus = exports.OrderStatus = exports.ProviderStatus = exports.EventStatus = exports.EventVisibility = exports.EventAccess = exports.UserRole = exports.PrismaClient = void 0;
|
|
17
|
+
exports.JwtService = exports.Prisma = exports.PaymentMethod = exports.TransactionStatus = exports.PricingDuration = exports.PricingType = exports.ProviderOnEventStatus = exports.UserStatus = exports.NotificationType = exports.PaymentStatus = exports.OrderStatus = exports.ProviderStatus = exports.EventStatus = exports.EventVisibility = exports.EventAccess = exports.UserRole = exports.AccountType = exports.PrismaClient = void 0;
|
|
18
18
|
__exportStar(require("./auth/auth.guard"), exports);
|
|
19
19
|
var client_1 = require("@prisma/client");
|
|
20
20
|
Object.defineProperty(exports, "PrismaClient", { enumerable: true, get: function () { return client_1.PrismaClient; } });
|
|
21
|
+
Object.defineProperty(exports, "AccountType", { enumerable: true, get: function () { return client_1.AccountType; } });
|
|
21
22
|
Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return client_1.UserRole; } });
|
|
22
23
|
Object.defineProperty(exports, "EventAccess", { enumerable: true, get: function () { return client_1.EventAccess; } });
|
|
23
24
|
Object.defineProperty(exports, "EventVisibility", { enumerable: true, get: function () { return client_1.EventVisibility; } });
|
|
@@ -32,6 +33,7 @@ Object.defineProperty(exports, "PricingType", { enumerable: true, get: function
|
|
|
32
33
|
Object.defineProperty(exports, "PricingDuration", { enumerable: true, get: function () { return client_1.PricingDuration; } });
|
|
33
34
|
Object.defineProperty(exports, "TransactionStatus", { enumerable: true, get: function () { return client_1.TransactionStatus; } });
|
|
34
35
|
Object.defineProperty(exports, "PaymentMethod", { enumerable: true, get: function () { return client_1.PaymentMethod; } });
|
|
36
|
+
Object.defineProperty(exports, "Prisma", { enumerable: true, get: function () { return client_1.Prisma; } });
|
|
35
37
|
__exportStar(require("./auth/auth.guard"), exports);
|
|
36
38
|
__exportStar(require("./auth/auth.module"), exports);
|
|
37
39
|
__exportStar(require("./auth/admin.middleware"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,yCAoCwB;AAnCpB,sGAAA,YAAY,OAAA;AAGZ,qGAAA,WAAW,OAAA;AACX,kGAAA,QAAQ,OAAA;AAER,qGAAA,WAAW,OAAA;AACX,yGAAA,eAAe,OAAA;AACf,qGAAA,WAAW,OAAA;AAGX,wGAAA,cAAc,OAAA;AAKd,qGAAA,WAAW,OAAA;AAEX,uGAAA,aAAa,OAAA;AAKb,0GAAA,gBAAgB,OAAA;AAGhB,oGAAA,UAAU,OAAA;AACV,+GAAA,qBAAqB,OAAA;AAErB,qGAAA,WAAW,OAAA;AACX,yGAAA,eAAe,OAAA;AAEf,2GAAA,iBAAiB,OAAA;AACjB,uGAAA,aAAa,OAAA;AACb,gGAAA,MAAM,OAAA;AAIV,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AAGxC,uDAAqC;AACrC,wDAAsC;AAGtC,yDAAuC;AACvC,0DAAwC;AACxC,gDAA8B;AAC9B,0CAAwB;AACxB,0CAAwB;AACxB,wDAAsC;AACtC,iDAA+B;AAE/B,mCAAyC;AAAhC,iGAAA,UAAU,OAAA"}
|
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -36,12 +36,19 @@ model User {
|
|
|
36
36
|
feedbacks Feedback[]
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
enum AccountType {
|
|
40
|
+
GOOGLE
|
|
41
|
+
EMAIL_PASSWORD
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
model Account {
|
|
40
|
-
id String
|
|
41
|
-
refreshToken String
|
|
45
|
+
id String @id @default(cuid())
|
|
46
|
+
refreshToken String @unique
|
|
42
47
|
expiresAt DateTime
|
|
43
48
|
userId String
|
|
44
|
-
user User
|
|
49
|
+
user User @relation(fields: [userId], references: [id])
|
|
50
|
+
type AccountType @default(EMAIL_PASSWORD)
|
|
51
|
+
reference String?
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
model Address {
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export * from './auth/auth.guard';
|
|
2
2
|
export {
|
|
3
|
-
PrismaClient,
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
PrismaClient,
|
|
4
|
+
User,
|
|
5
|
+
Account,
|
|
6
|
+
AccountType,
|
|
7
|
+
UserRole,
|
|
8
|
+
Event,
|
|
9
|
+
EventAccess,
|
|
10
|
+
EventVisibility,
|
|
11
|
+
EventStatus,
|
|
6
12
|
EventPrice, Address,
|
|
7
13
|
Provider,
|
|
8
14
|
ProviderStatus,
|
|
@@ -27,7 +33,8 @@ export {
|
|
|
27
33
|
PricingDuration,
|
|
28
34
|
Transaction,
|
|
29
35
|
TransactionStatus,
|
|
30
|
-
PaymentMethod
|
|
36
|
+
PaymentMethod,
|
|
37
|
+
Prisma
|
|
31
38
|
} from '@prisma/client';
|
|
32
39
|
|
|
33
40
|
//auth
|