@timardex/cluemart-shared 1.4.81 → 1.4.83

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.
@@ -1,5 +1,5 @@
1
1
  import { EnumUserLicence, EnumSubscriptionStatus, EnumOSPlatform, EnumUserRole, EnumResourceType, EnumPartnerType, EnumGameType } from './enums/index.js';
2
- import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData } from './global-B0WdAD-8.js';
2
+ import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, y as OwnerType } from './global-B0WdAD-8.js';
3
3
 
4
4
  type UserFormData = {
5
5
  _id?: string;
@@ -137,6 +137,36 @@ type AppSettingsType = AppSettingsFormData & {
137
137
  updatedAt: Date | null;
138
138
  };
139
139
 
140
+ type GameInfo = {
141
+ dailyClue?: {
142
+ solution: string;
143
+ } | null;
144
+ };
145
+ type BaseGame = {
146
+ title: string;
147
+ gameType: EnumGameType;
148
+ gameInfo: GameInfo;
149
+ gameDate: DateTimeType;
150
+ };
151
+ type DailyClueGameData = BaseGame & {
152
+ collectedLetters?: string[];
153
+ lastFoundDate: string;
154
+ points: number;
155
+ streak: number;
156
+ };
157
+ type GameData = {
158
+ dailyClue?: DailyClueGameData | null;
159
+ };
160
+ type GameType = {
161
+ _id: string;
162
+ active: boolean;
163
+ createdAt: Date;
164
+ deletedAt: Date | null;
165
+ gameData: GameData | null;
166
+ updatedAt: Date | null;
167
+ owner: OwnerType;
168
+ };
169
+
140
170
  declare enum EnumAdShowOn {
141
171
  EVENTS_PAGE = "Events_page",
142
172
  FRONT_PAGE = "Front_page",
@@ -227,14 +257,7 @@ type PostContentList = {
227
257
  };
228
258
  };
229
259
  type PostContentGame = {
230
- game: {
231
- title: string;
232
- gameType: EnumGameType;
233
- gameInfo: {
234
- dailyClue?: string;
235
- };
236
- gameEndDate: string;
237
- };
260
+ game: BaseGame;
238
261
  };
239
262
  type PostContentData = PostContentGame | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
240
263
  type PostContentFormData = {
@@ -268,4 +291,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
268
291
  updatedAt: Date | null;
269
292
  };
270
293
 
271
- export { type AdType as A, type PostFileInput as B, type CreateUserFormData as C, type StripeSubscription as D, EnumAdStatus as E, type SubscriptionPlanData as F, type SubscriptionPricingData as G, type UserActivity as H, type UserActivityEvent as I, type PartnerType as P, type ResourceByUser as R, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type AdResource as n, EnumAdShowOn as o, EnumAdStyle as p, EnumAdType as q, EnumPostContentType as r, type PostContentData as s, type PostContentFormData as t, type PostContentGame as u, type PostContentImage as v, type PostContentList as w, type PostContentTextarea as x, type PostContentType as y, type PostContentVideo as z };
294
+ export { type AdType as A, type BaseGame as B, type CreateUserFormData as C, type DailyClueGameData as D, EnumAdStatus as E, type PostContentVideo as F, type GameType as G, type PostFileInput as H, type StripeSubscription as I, type SubscriptionPlanData as J, type SubscriptionPricingData as K, type UserActivity as L, type UserActivityEvent as M, type PartnerType as P, type ResourceByUser as R, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type AdResource as n, EnumAdShowOn as o, EnumAdStyle as p, EnumAdType as q, EnumPostContentType as r, type GameData as s, type PostContentData as t, type PostContentFormData as u, type PostContentGame as v, type PostContentImage as w, type PostContentList as x, type PostContentTextarea as y, type PostContentType as z };
@@ -1,5 +1,5 @@
1
1
  import { EnumUserLicence, EnumSubscriptionStatus, EnumOSPlatform, EnumUserRole, EnumResourceType, EnumPartnerType, EnumGameType } from './enums/index.mjs';
2
- import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData } from './global-MMBYi34A.mjs';
2
+ import { A as AssociateType, Q as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, s as CreateFormData, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, y as OwnerType } from './global-MMBYi34A.mjs';
3
3
 
4
4
  type UserFormData = {
5
5
  _id?: string;
@@ -137,6 +137,36 @@ type AppSettingsType = AppSettingsFormData & {
137
137
  updatedAt: Date | null;
138
138
  };
139
139
 
140
+ type GameInfo = {
141
+ dailyClue?: {
142
+ solution: string;
143
+ } | null;
144
+ };
145
+ type BaseGame = {
146
+ title: string;
147
+ gameType: EnumGameType;
148
+ gameInfo: GameInfo;
149
+ gameDate: DateTimeType;
150
+ };
151
+ type DailyClueGameData = BaseGame & {
152
+ collectedLetters?: string[];
153
+ lastFoundDate: string;
154
+ points: number;
155
+ streak: number;
156
+ };
157
+ type GameData = {
158
+ dailyClue?: DailyClueGameData | null;
159
+ };
160
+ type GameType = {
161
+ _id: string;
162
+ active: boolean;
163
+ createdAt: Date;
164
+ deletedAt: Date | null;
165
+ gameData: GameData | null;
166
+ updatedAt: Date | null;
167
+ owner: OwnerType;
168
+ };
169
+
140
170
  declare enum EnumAdShowOn {
141
171
  EVENTS_PAGE = "Events_page",
142
172
  FRONT_PAGE = "Front_page",
@@ -227,14 +257,7 @@ type PostContentList = {
227
257
  };
228
258
  };
229
259
  type PostContentGame = {
230
- game: {
231
- title: string;
232
- gameType: EnumGameType;
233
- gameInfo: {
234
- dailyClue?: string;
235
- };
236
- gameEndDate: string;
237
- };
260
+ game: BaseGame;
238
261
  };
239
262
  type PostContentData = PostContentGame | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
240
263
  type PostContentFormData = {
@@ -268,4 +291,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
268
291
  updatedAt: Date | null;
269
292
  };
270
293
 
271
- export { type AdType as A, type PostFileInput as B, type CreateUserFormData as C, type StripeSubscription as D, EnumAdStatus as E, type SubscriptionPlanData as F, type SubscriptionPricingData as G, type UserActivity as H, type UserActivityEvent as I, type PartnerType as P, type ResourceByUser as R, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type AdResource as n, EnumAdShowOn as o, EnumAdStyle as p, EnumAdType as q, EnumPostContentType as r, type PostContentData as s, type PostContentFormData as t, type PostContentGame as u, type PostContentImage as v, type PostContentList as w, type PostContentTextarea as x, type PostContentType as y, type PostContentVideo as z };
294
+ export { type AdType as A, type BaseGame as B, type CreateUserFormData as C, type DailyClueGameData as D, EnumAdStatus as E, type PostContentVideo as F, type GameType as G, type PostFileInput as H, type StripeSubscription as I, type SubscriptionPlanData as J, type SubscriptionPricingData as K, type UserActivity as L, type UserActivityEvent as M, type PartnerType as P, type ResourceByUser as R, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type AdResource as n, EnumAdShowOn as o, EnumAdStyle as p, EnumAdType as q, EnumPostContentType as r, type GameData as s, type PostContentData as t, type PostContentFormData as u, type PostContentGame as v, type PostContentImage as w, type PostContentList as x, type PostContentTextarea as y, type PostContentType as z };
@@ -1,5 +1,5 @@
1
1
  import { EnumChatType, EnumChatReportReason, EnumNotificationType, EnumNotificationResourceType, EnumResourceType, EnumEventDateStatus, EnumOSPlatform } from './enums/index.js';
2
- import { y as OwnerType, x as LocationGeoType } from './global-B0WdAD-8.js';
2
+ import { x as LocationGeoType } from './global-B0WdAD-8.js';
3
3
 
4
4
  type ParticipantType = {
5
5
  active: boolean;
@@ -64,25 +64,6 @@ interface ReportChatUser {
64
64
  updatedAt: Date | null;
65
65
  }
66
66
 
67
- type DailyClueGameData = {
68
- lastFoundDate: string;
69
- streak: number;
70
- points: number;
71
- collectedLetters?: string[];
72
- gameEndDate: string;
73
- };
74
- type GameType = {
75
- _id: string;
76
- active: boolean;
77
- createdAt: Date;
78
- deletedAt: Date | null;
79
- gameData: {
80
- dailyClue?: DailyClueGameData | null;
81
- } | null;
82
- updatedAt: Date | null;
83
- owner: OwnerType;
84
- };
85
-
86
67
  interface NotificationDataType {
87
68
  resourceId: string;
88
69
  resourceName: string;
@@ -140,4 +121,4 @@ type ResourceActivityInputType = {
140
121
  activity: Omit<ResourceActivityEntry, "timestamp">;
141
122
  };
142
123
 
143
- export { type ChatType as C, type DailyClueGameData as D, EnumActivity as E, type GameType as G, type NotificationCount as N, type ParticipantType as P, type ReportChatUser as R, type NotificationType as a, type ResourceActivityType as b, type ChatMessageInput as c, type ChatMessageReaction as d, type ChatMessageReplyPreview as e, type ChatMessageSeen as f, type ChatMessageType as g, type CreateBulkNotificationInput as h, type NotificationDataType as i, type ResourceActivityEntry as j, type ResourceActivityInputType as k };
124
+ export { type ChatType as C, EnumActivity as E, type NotificationCount as N, type ParticipantType as P, type ReportChatUser as R, type NotificationType as a, type ResourceActivityType as b, type ChatMessageInput as c, type ChatMessageReaction as d, type ChatMessageReplyPreview as e, type ChatMessageSeen as f, type ChatMessageType as g, type CreateBulkNotificationInput as h, type NotificationDataType as i, type ResourceActivityEntry as j, type ResourceActivityInputType as k };
@@ -1,5 +1,5 @@
1
1
  import { EnumChatType, EnumChatReportReason, EnumNotificationType, EnumNotificationResourceType, EnumResourceType, EnumEventDateStatus, EnumOSPlatform } from './enums/index.mjs';
2
- import { y as OwnerType, x as LocationGeoType } from './global-MMBYi34A.mjs';
2
+ import { x as LocationGeoType } from './global-MMBYi34A.mjs';
3
3
 
4
4
  type ParticipantType = {
5
5
  active: boolean;
@@ -64,25 +64,6 @@ interface ReportChatUser {
64
64
  updatedAt: Date | null;
65
65
  }
66
66
 
67
- type DailyClueGameData = {
68
- lastFoundDate: string;
69
- streak: number;
70
- points: number;
71
- collectedLetters?: string[];
72
- gameEndDate: string;
73
- };
74
- type GameType = {
75
- _id: string;
76
- active: boolean;
77
- createdAt: Date;
78
- deletedAt: Date | null;
79
- gameData: {
80
- dailyClue?: DailyClueGameData | null;
81
- } | null;
82
- updatedAt: Date | null;
83
- owner: OwnerType;
84
- };
85
-
86
67
  interface NotificationDataType {
87
68
  resourceId: string;
88
69
  resourceName: string;
@@ -140,4 +121,4 @@ type ResourceActivityInputType = {
140
121
  activity: Omit<ResourceActivityEntry, "timestamp">;
141
122
  };
142
123
 
143
- export { type ChatType as C, type DailyClueGameData as D, EnumActivity as E, type GameType as G, type NotificationCount as N, type ParticipantType as P, type ReportChatUser as R, type NotificationType as a, type ResourceActivityType as b, type ChatMessageInput as c, type ChatMessageReaction as d, type ChatMessageReplyPreview as e, type ChatMessageSeen as f, type ChatMessageType as g, type CreateBulkNotificationInput as h, type NotificationDataType as i, type ResourceActivityEntry as j, type ResourceActivityInputType as k };
124
+ export { type ChatType as C, EnumActivity as E, type NotificationCount as N, type ParticipantType as P, type ReportChatUser as R, type NotificationType as a, type ResourceActivityType as b, type ChatMessageInput as c, type ChatMessageReaction as d, type ChatMessageReplyPreview as e, type ChatMessageSeen as f, type ChatMessageType as g, type CreateBulkNotificationInput as h, type NotificationDataType as i, type ResourceActivityEntry as j, type ResourceActivityInputType as k };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts","../../src/types/auth.ts","../../src/types/ad.ts","../../src/types/resourceActivities.ts","../../src/types/post.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./post\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\nexport * from \"./game\";\n","import { CreateFormData, EnumOSPlatform, TermsAgreement } from \"src\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: string | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport type AdResource = {\n adDescription: string | null;\n adImage: string | null;\n adStyle: EnumAdStyle | null;\n adTitle: string | null;\n adType: EnumAdType | null;\n resourceId: string | null;\n resourceName: string | null;\n resourceRegion: string | null;\n resourceType: EnumResourceType | null;\n};\n\nexport interface AdFormData {\n active: boolean;\n end: Date; // ISO date string\n resource: AdResource;\n showOn: EnumAdShowOn[];\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion: string[];\n}\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\n\nimport { LocationGeoType } from \"./global\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: LocationGeoType | null;\n dateStatus?: EnumEventDateStatus | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: EnumResourceType;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import { EnumGameType, EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, ResourceImageType } from \"./global\";\n\nexport enum EnumPostType {\n DAILY_MEETS = \"daily_meets\",\n DAILY_TIPS = \"daily_tips\",\n DAILY_GAMES = \"daily_games\",\n}\n\nexport enum EnumPostContentType {\n GAME = \"game\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: PostFileInput[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentGame = {\n game: {\n title: string;\n gameType: EnumGameType;\n gameInfo: {\n dailyClue?: string; // this is what needs to be found in the daily clue game, like CLUEMART\n };\n gameEndDate: string; // \"YYYY-MM-DD\" This is the date when the game ends, after this date the game content will not be shown in the post\n };\n};\n\nexport type PostContentData =\n | PostContentGame\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData?: PostContentData | null;\n contentOrder?: number | null;\n contentType?: EnumPostContentType | null;\n};\n\nexport interface PostFormData {\n active: boolean;\n caption: string;\n content: PostContentFormData[];\n cover?: ResourceImageType | null;\n coverUpload?: PostFileInput | null;\n postType: EnumPostType;\n resource?: {\n resourceId: string;\n resourceType: EnumResourceType;\n } | null;\n tags?: string[] | null;\n title: string;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n contentData: Omit<PostContentData, \"imagesUpload\">;\n};\n\nexport type PostType = Omit<PostFormData, \"content\" | \"coverUpload\"> & {\n _id: string;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n updatedAt: Date | null;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,oBAAiB;AAFP,SAAAA;AAAA,GAAA;;;ACEL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,mBAAgB;AAChB,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAOL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,eAAY;AACZ,EAAAA,YAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AAKL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;;;ACdL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,aAAU;AACV,EAAAA,cAAA,UAAO;AALG,SAAAA;AAAA,GAAA;;;ACJL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,iBAAc;AAHJ,SAAAA;AAAA,GAAA;AAML,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,WAAQ;AALE,SAAAA;AAAA,GAAA;","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType"]}
1
+ {"version":3,"sources":["../../src/types/index.ts","../../src/types/auth.ts","../../src/types/ad.ts","../../src/types/resourceActivities.ts","../../src/types/post.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./post\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\nexport * from \"./game\";\n","import { CreateFormData, EnumOSPlatform, TermsAgreement } from \"src\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: string | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport type AdResource = {\n adDescription: string | null;\n adImage: string | null;\n adStyle: EnumAdStyle | null;\n adTitle: string | null;\n adType: EnumAdType | null;\n resourceId: string | null;\n resourceName: string | null;\n resourceRegion: string | null;\n resourceType: EnumResourceType | null;\n};\n\nexport interface AdFormData {\n active: boolean;\n end: Date; // ISO date string\n resource: AdResource;\n showOn: EnumAdShowOn[];\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion: string[];\n}\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\n\nimport { LocationGeoType } from \"./global\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: LocationGeoType | null;\n dateStatus?: EnumEventDateStatus | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: EnumResourceType;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport { BaseGame } from \"./game\";\nimport { CreateFormData, ResourceImageType } from \"./global\";\n\nexport enum EnumPostType {\n DAILY_MEETS = \"daily_meets\",\n DAILY_TIPS = \"daily_tips\",\n DAILY_GAMES = \"daily_games\",\n}\n\nexport enum EnumPostContentType {\n GAME = \"game\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: PostFileInput[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentGame = {\n game: BaseGame;\n};\n\nexport type PostContentData =\n | PostContentGame\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData?: PostContentData | null;\n contentOrder?: number | null;\n contentType?: EnumPostContentType | null;\n};\n\nexport interface PostFormData {\n active: boolean;\n caption: string;\n content: PostContentFormData[];\n cover?: ResourceImageType | null;\n coverUpload?: PostFileInput | null;\n postType: EnumPostType;\n resource?: {\n resourceId: string;\n resourceType: EnumResourceType;\n } | null;\n tags?: string[] | null;\n title: string;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n contentData: Omit<PostContentData, \"imagesUpload\">;\n};\n\nexport type PostType = Omit<PostFormData, \"content\" | \"coverUpload\"> & {\n _id: string;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n updatedAt: Date | null;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,oBAAiB;AAFP,SAAAA;AAAA,GAAA;;;ACEL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,mBAAgB;AAChB,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAOL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,eAAY;AACZ,EAAAA,YAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AAKL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;;;ACdL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,aAAU;AACV,EAAAA,cAAA,UAAO;AALG,SAAAA;AAAA,GAAA;;;ACHL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,iBAAc;AAHJ,SAAAA;AAAA,GAAA;AAML,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,WAAQ;AALE,SAAAA;AAAA,GAAA;","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType"]}
@@ -1,9 +1,9 @@
1
1
  import { EnumResourceType } from '../enums/index.mjs';
2
2
  export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, E as EnumVerificationType, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-DtPfNKc4.mjs';
3
- export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, D as DailyClueGameData, E as EnumActivity, G as GameType, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-Bvu7XDKv.mjs';
3
+ export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CqrscA5x.mjs';
4
4
  import { c as EventListItemType } from '../global-MMBYi34A.mjs';
5
5
  export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, n as CreateEventFormData, p as CreateEventInfoFormData, s as CreateFormData, t as CreateUnregisteredVendorFormData, j as CreateVendorFormData, l as CreateVendorInfoFormData, D as DateTimeType, u as DateTimeWithPriceType, v as DeviceInfo, m as EventFormData, o as EventInfoFormData, d as EventInfoType, w as EventStatusType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, x as LocationGeoType, L as LocationType, N as Nullable, O as OptionItem, y as OwnerType, P as PaymentInfoType, z as PosterUsageType, R as RefundPolicy, H as Region, J as RelationDate, e as RelationType, b as Requirement, f as ResourceConnectionsType, K as ResourceContactDetailsType, M as ResourceDetails, Q as ResourceImageType, T as SocialMediaType, S as StallType, W as Subcategory, X as SubcategoryItems, Y as TermsAgreement, q as UnregisteredVendorFormData, Z as UnregisteredVendorInvitationType, U as UnregisteredVendorType, h as UserLicenceType, _ as VendorAttributes, $ as VendorCalendarData, i as VendorFormData, k as VendorInfoFormData, g as VendorInfoType, a0 as VendorProductList, V as VendorType } from '../global-MMBYi34A.mjs';
6
- export { g as AdFormData, n as AdResource, A as AdType, l as AppSettingsFormData, d as AppSettingsType, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, o as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, q as EnumAdType, r as EnumPostContentType, c as EnumPostType, f as PartnerFormData, P as PartnerType, s as PostContentData, t as PostContentFormData, u as PostContentGame, v as PostContentImage, w as PostContentList, x as PostContentTextarea, y as PostContentType, z as PostContentVideo, B as PostFileInput, j as PostFormData, b as PostType, R as ResourceByUser, D as StripeSubscription, F as SubscriptionPlanData, S as SubscriptionPlansResponse, G as SubscriptionPricingData, a as SubscriptionStatusData, H as UserActivity, I as UserActivityEvent, e as UserFormData, U as UserType } from '../post-0gja2O2q.mjs';
6
+ export { g as AdFormData, n as AdResource, A as AdType, l as AppSettingsFormData, d as AppSettingsType, B as BaseGame, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, D as DailyClueGameData, o as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, q as EnumAdType, r as EnumPostContentType, c as EnumPostType, s as GameData, G as GameType, f as PartnerFormData, P as PartnerType, t as PostContentData, u as PostContentFormData, v as PostContentGame, w as PostContentImage, x as PostContentList, y as PostContentTextarea, z as PostContentType, F as PostContentVideo, H as PostFileInput, j as PostFormData, b as PostType, R as ResourceByUser, I as StripeSubscription, J as SubscriptionPlanData, S as SubscriptionPlansResponse, K as SubscriptionPricingData, a as SubscriptionStatusData, L as UserActivity, M as UserActivityEvent, e as UserFormData, U as UserType } from '../post-q-vlx4aC.mjs';
7
7
  import 'react-hook-form';
8
8
 
9
9
  interface AdminUpdateResourceType {
@@ -1,9 +1,9 @@
1
1
  import { EnumResourceType } from '../enums/index.js';
2
2
  export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, E as EnumVerificationType, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-B5tprOIL.js';
3
- export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, D as DailyClueGameData, E as EnumActivity, G as GameType, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-BqRajS8s.js';
3
+ export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-2FaGRW-i.js';
4
4
  import { c as EventListItemType } from '../global-B0WdAD-8.js';
5
5
  export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, n as CreateEventFormData, p as CreateEventInfoFormData, s as CreateFormData, t as CreateUnregisteredVendorFormData, j as CreateVendorFormData, l as CreateVendorInfoFormData, D as DateTimeType, u as DateTimeWithPriceType, v as DeviceInfo, m as EventFormData, o as EventInfoFormData, d as EventInfoType, w as EventStatusType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, x as LocationGeoType, L as LocationType, N as Nullable, O as OptionItem, y as OwnerType, P as PaymentInfoType, z as PosterUsageType, R as RefundPolicy, H as Region, J as RelationDate, e as RelationType, b as Requirement, f as ResourceConnectionsType, K as ResourceContactDetailsType, M as ResourceDetails, Q as ResourceImageType, T as SocialMediaType, S as StallType, W as Subcategory, X as SubcategoryItems, Y as TermsAgreement, q as UnregisteredVendorFormData, Z as UnregisteredVendorInvitationType, U as UnregisteredVendorType, h as UserLicenceType, _ as VendorAttributes, $ as VendorCalendarData, i as VendorFormData, k as VendorInfoFormData, g as VendorInfoType, a0 as VendorProductList, V as VendorType } from '../global-B0WdAD-8.js';
6
- export { g as AdFormData, n as AdResource, A as AdType, l as AppSettingsFormData, d as AppSettingsType, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, o as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, q as EnumAdType, r as EnumPostContentType, c as EnumPostType, f as PartnerFormData, P as PartnerType, s as PostContentData, t as PostContentFormData, u as PostContentGame, v as PostContentImage, w as PostContentList, x as PostContentTextarea, y as PostContentType, z as PostContentVideo, B as PostFileInput, j as PostFormData, b as PostType, R as ResourceByUser, D as StripeSubscription, F as SubscriptionPlanData, S as SubscriptionPlansResponse, G as SubscriptionPricingData, a as SubscriptionStatusData, H as UserActivity, I as UserActivityEvent, e as UserFormData, U as UserType } from '../post-CxYFK6Pe.js';
6
+ export { g as AdFormData, n as AdResource, A as AdType, l as AppSettingsFormData, d as AppSettingsType, B as BaseGame, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, D as DailyClueGameData, o as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, q as EnumAdType, r as EnumPostContentType, c as EnumPostType, s as GameData, G as GameType, f as PartnerFormData, P as PartnerType, t as PostContentData, u as PostContentFormData, v as PostContentGame, w as PostContentImage, x as PostContentList, y as PostContentTextarea, z as PostContentType, F as PostContentVideo, H as PostFileInput, j as PostFormData, b as PostType, R as ResourceByUser, I as StripeSubscription, J as SubscriptionPlanData, S as SubscriptionPlansResponse, K as SubscriptionPricingData, a as SubscriptionStatusData, L as UserActivity, M as UserActivityEvent, e as UserFormData, U as UserType } from '../post-hCEgX4ed.js';
7
7
  import 'react-hook-form';
8
8
 
9
9
  interface AdminUpdateResourceType {
@@ -7,7 +7,7 @@ import {
7
7
  EnumPostContentType,
8
8
  EnumPostType,
9
9
  EnumVerificationType
10
- } from "../chunk-EFEWSHPB.mjs";
10
+ } from "../chunk-KPO6ZYQ4.mjs";
11
11
  export {
12
12
  EnumActivity,
13
13
  EnumAdShowOn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.4.81",
3
+ "version": "1.4.83",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",