@optimatech88/titomeet-shared-lib 1.0.48 → 1.0.50

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';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACH,YAAY,EAAE,IAAI,EAAE,OAAO,EAC3B,QAAQ,EAAE,KAAK,EAAE,WAAW,EAC5B,eAAe,EAAE,WAAW,EAC5B,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,O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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,yCA6BwB;AA5BpB,sGAAA,YAAY,OAAA;AACZ,kGAAA,QAAQ,OAAA;AAAS,qGAAA,WAAW,OAAA;AAC5B,yGAAA,eAAe,OAAA;AAAE,qGAAA,WAAW,OAAA;AAG5B,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;AAIjB,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"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimatech88/titomeet-shared-lib",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -0,0 +1,6 @@
1
+ -- CreateEnum
2
+ CREATE TYPE "public"."AccountType" AS ENUM ('GOOGLE', 'EMAIL_PASSWORD');
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "public"."Account" ADD COLUMN "reference" TEXT,
6
+ ADD COLUMN "type" "public"."AccountType" NOT NULL DEFAULT 'EMAIL_PASSWORD';
@@ -0,0 +1,7 @@
1
+ -- CreateEnum
2
+ CREATE TYPE "public"."EventType" AS ENUM ('IN_PERSON', 'ONLINE');
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "public"."Event" ADD COLUMN "onlineLink" TEXT,
6
+ ADD COLUMN "onlinePassword" TEXT,
7
+ ADD COLUMN "type" "public"."EventType" NOT NULL DEFAULT 'IN_PERSON';
@@ -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 @id @default(cuid())
41
- refreshToken String @unique
45
+ id String @id @default(cuid())
46
+ refreshToken String @unique
42
47
  expiresAt DateTime
43
48
  userId String
44
- user User @relation(fields: [userId], references: [id])
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 {
@@ -106,6 +113,14 @@ model Event {
106
113
  categories EventCategory[] @relation("EventToEventCategory")
107
114
  providers ProviderOnEvent[]
108
115
  remainingSeats Int @default(0)
116
+ type EventType @default(IN_PERSON)
117
+ onlineLink String?
118
+ onlinePassword String?
119
+ }
120
+
121
+ enum EventType {
122
+ IN_PERSON
123
+ ONLINE
109
124
  }
110
125
 
111
126
  model EventPrice {
package/src/index.ts CHANGED
@@ -1,8 +1,14 @@
1
1
  export * from './auth/auth.guard';
2
2
  export {
3
- PrismaClient, User, Account,
4
- UserRole, Event, EventAccess,
5
- EventVisibility, EventStatus,
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