@timardex/cluemart-shared 1.2.29 → 1.2.31
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/ad-Cv1V8lgJ.d.ts +129 -0
- package/dist/ad-IVwm5MLY.d.mts +129 -0
- package/dist/{auth-CzEdRDf1.d.ts → auth-BCxQp_CF.d.ts} +1 -1
- package/dist/{auth-Ci6Uskch.d.mts → auth-BczaOu28.d.mts} +1 -1
- package/dist/{chunk-BO3HICLR.mjs → chunk-4OLDTZXH.mjs} +3 -1
- package/dist/chunk-4OLDTZXH.mjs.map +1 -0
- package/dist/{chunk-CQ7TCXMI.mjs → chunk-O6LVIQFK.mjs} +3 -5
- package/dist/chunk-O6LVIQFK.mjs.map +1 -0
- package/dist/formFields/index.d.mts +2 -1
- package/dist/formFields/index.d.ts +2 -1
- package/dist/{global-2Jk7sRkL.d.ts → global-Bnr6l_NH.d.ts} +21 -1
- package/dist/{global-DWuTxnJ8.d.mts → global-_89-F0iL.d.mts} +21 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/hooks/index.d.mts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/index.cjs +112 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +132 -2
- package/dist/index.d.ts +132 -2
- package/dist/index.mjs +98 -76
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +94 -62
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +109 -4
- package/dist/mongoose/index.d.ts +109 -4
- package/dist/mongoose/index.mjs +22 -3
- package/dist/mongoose/index.mjs.map +1 -1
- package/dist/service/index.cjs +22 -15
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +9 -2
- package/dist/service/index.d.ts +9 -2
- package/dist/service/index.mjs +19 -13
- package/dist/service/index.mjs.map +1 -1
- package/dist/types/index.cjs +15 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.mjs +5 -3
- package/dist/utils/index.d.mts +2 -1
- package/dist/utils/index.d.ts +2 -1
- package/package.json +3 -1
- package/dist/ad-Crq-z5Wt.d.mts +0 -69
- package/dist/ad-DHetF-th.d.ts +0 -69
- package/dist/chunk-BO3HICLR.mjs.map +0 -1
- package/dist/chunk-CQ7TCXMI.mjs.map +0 -1
- package/dist/user-DbEEY7fv.d.ts +0 -64
- package/dist/user-OPY5EOqR.d.mts +0 -64
package/dist/ad-DHetF-th.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { EnumOSPlatform, EnumResourceType } from './enums/index.js';
|
|
2
|
-
import { C as Category, a1 as CreateFormData, r as SocialMediaType } from './global-2Jk7sRkL.js';
|
|
3
|
-
|
|
4
|
-
interface TestersFormData {
|
|
5
|
-
categories?: Category[] | null;
|
|
6
|
-
companyName: string;
|
|
7
|
-
email: string;
|
|
8
|
-
firstName: string;
|
|
9
|
-
lastName: string;
|
|
10
|
-
osType: EnumOSPlatform;
|
|
11
|
-
region: string;
|
|
12
|
-
resourceType: EnumResourceType;
|
|
13
|
-
}
|
|
14
|
-
type CreateTestersFormData = CreateFormData<TestersFormData>;
|
|
15
|
-
interface TesterType extends TestersFormData {
|
|
16
|
-
_id: string;
|
|
17
|
-
active: boolean;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare enum EnumAdShowOn {
|
|
23
|
-
FRONT_PAGE = "Front_page",
|
|
24
|
-
EVENTS_PAGE = "Events_page",
|
|
25
|
-
VENDORS_PAGE = "Vendors_page"
|
|
26
|
-
}
|
|
27
|
-
declare enum EnumAdStatus {
|
|
28
|
-
ACTIVE = "Active",
|
|
29
|
-
PAUSED = "Paused",
|
|
30
|
-
EXPIRED = "Expired"
|
|
31
|
-
}
|
|
32
|
-
declare enum EnumAdType {
|
|
33
|
-
SPONSORED = "Sponsored",
|
|
34
|
-
FREE = "Free"
|
|
35
|
-
}
|
|
36
|
-
declare enum EnumAdStyle {
|
|
37
|
-
BLOOM = "Bloom",
|
|
38
|
-
RISE = "Rise"
|
|
39
|
-
}
|
|
40
|
-
interface AdFormData {
|
|
41
|
-
active: boolean;
|
|
42
|
-
adStyle: EnumAdStyle;
|
|
43
|
-
adType: EnumAdType;
|
|
44
|
-
clui?: string | null;
|
|
45
|
-
end: Date;
|
|
46
|
-
resourceCover: string;
|
|
47
|
-
resourceDescription: string;
|
|
48
|
-
resourceId: string;
|
|
49
|
-
resourceLogo?: string | null;
|
|
50
|
-
resourceName: string;
|
|
51
|
-
resourceRegion: string;
|
|
52
|
-
resourceType: EnumResourceType;
|
|
53
|
-
showOn: EnumAdShowOn;
|
|
54
|
-
socialMedia?: SocialMediaType[] | null;
|
|
55
|
-
start?: Date;
|
|
56
|
-
status: EnumAdStatus;
|
|
57
|
-
targetRegion?: string | null;
|
|
58
|
-
}
|
|
59
|
-
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
60
|
-
interface AdType extends AdFormData {
|
|
61
|
-
_id: string;
|
|
62
|
-
clicks?: number;
|
|
63
|
-
createdAt: Date;
|
|
64
|
-
impressions?: number;
|
|
65
|
-
start: Date;
|
|
66
|
-
updatedAt: Date;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export { type AdType as A, type CreateTestersFormData as C, EnumAdStatus as E, type TesterType as T, type TestersFormData as a, type AdFormData as b, type CreateAdFormData as c, EnumAdShowOn as d, EnumAdType as e, EnumAdStyle as f };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/global.ts","../src/types/resourceActivities.ts"],"sourcesContent":["import mongoose from \"mongoose\";\nimport {\n Control,\n FieldErrors,\n FieldValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport { SchemaChatType } from \"src/mongoose/Chat\";\nimport { SchemaNotificationType } from \"src/mongoose/Notification\";\n\nimport { EnumResourceType, EnumSocialMedia, EnumUserLicence } from \"../enums\";\n\nimport { EventType } from \"./event\";\nimport { NotificationCount } from \"./notification\";\nimport { RelationDate } from \"./relation\";\nimport { VendorType } from \"./vendor\";\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\nexport type ResourceImageType = {\n source: string;\n title: string;\n};\n\nexport type SocialMediaType = {\n name?: EnumSocialMedia;\n link?: string;\n};\n\nexport type PartnerType = {\n email: string;\n resourceId: string;\n resourceType: EnumResourceType;\n licence: EnumUserLicence;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n contactDetails?: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n owner?: OwnerType | null;\n partners?: PartnerType[] | null;\n promoCodes?: string[] | null;\n region: string;\n socialMedia?: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type BaseResourceType = Omit<\n BaseResourceTypeFormData,\n \"_id\" | \"coverUpload\" | \"imagesUpload\" | \"logoUpload\" | \"owner\"\n> & {\n _id: string;\n adIds?: string[] | null;\n createdAt: string;\n deletedAt: string | null;\n owner: OwnerType;\n posterUsage?: PosterUsageType | null;\n relations:\n | {\n relationId: string | null;\n relationDates: RelationDate[] | null;\n }[]\n | null;\n updatedAt: string;\n};\n\nexport type LocationType = {\n city: string;\n coordinates: number[]; // [longitude, latitude]\n country: string;\n fullAddress: string;\n latitude: number;\n longitude: number;\n region: string;\n type: \"Point\"; // Mongoose GeoJSON type\n};\n\nexport type DateTimeType = {\n endDate: string;\n endTime: string;\n startDate: string;\n startTime: string;\n};\n\nexport type Region = {\n latitude: number;\n latitudeDelta: number;\n longitude: number;\n longitudeDelta: number;\n};\n\nexport type GeocodeLocation = Pick<LocationType, \"latitude\" | \"longitude\">;\n\nexport type MapMultiLocation = {\n dateTime: DateTimeType | null;\n location: LocationType | null;\n resourceId?: string;\n resourceName?: string;\n resourceType?: EnumResourceType;\n};\n\nexport interface FormField {\n disabled?: boolean;\n helperText?: string;\n isTextArea?: boolean;\n keyboardType?:\n | \"default\"\n | \"email-address\"\n | \"number-pad\"\n | \"url\"\n | \"decimal-pad\"\n | \"phone-pad\";\n name: string;\n placeholder: string;\n secureTextEntry?: boolean;\n}\n\nexport interface FormDateField {\n dateMode: \"date\" | \"time\";\n helperText?: string;\n name: \"endDate\" | \"endTime\" | \"startDate\" | \"startTime\";\n placeholder: string;\n}\n\nexport interface SubcategoryItems {\n id: string;\n name: string;\n description?: string | null;\n}\n\nexport interface Subcategory {\n id: string;\n name: string;\n items?: SubcategoryItems[] | null;\n}\n\nexport interface Category {\n color?: string | null;\n description?: string | null;\n id: string;\n name: string;\n subcategories: Subcategory[];\n}\n\nexport type OptionItem = {\n value: string;\n label: string;\n};\n\nexport type ImageObjectType = {\n uri: string;\n type: string;\n name: string;\n};\n\nexport interface ResourceConnectionsType {\n events: EventType[] | null;\n vendors: VendorType[] | null;\n}\n\nexport interface CreateFormData<T extends FieldValues> {\n control: Control<T, any>;\n fields: T;\n formState: { errors: FieldErrors<T> };\n handleSubmit: UseFormHandleSubmit<T, any>;\n reset: UseFormReset<T>;\n setValue: UseFormSetValue<T>;\n watch: UseFormWatch<T>;\n}\n\nexport type ObjectId = mongoose.Schema.Types.ObjectId;\n\nexport enum EnumPubSubEvents {\n GET_CHAT_MESSAGE = \"GET_CHAT_MESSAGE\",\n GET_NOTIFICATIONS = \"GET_NOTIFICATIONS\",\n GET_NOTIFICATIONS_COUNT = \"GET_NOTIFICATIONS_COUNT\",\n USER_TYPING = \"USER_TYPING\",\n}\n\nexport interface AuthUser {\n email: string;\n role: string;\n userId: ObjectId;\n}\n\nexport interface SubscriptionPayload {\n getChatMessage?: SchemaChatType;\n userTyping?: SchemaChatType; // NOT USED\n getNotifications?: SchemaNotificationType[];\n // Used only for filtering; not part of the GraphQL schema output\n getNotificationsUserId?: ObjectId;\n getNotificationsCount?: NotificationCount & { userId: ObjectId };\n}\n\nexport interface GraphQLContext {\n user: AuthUser | null;\n pubsub: {\n publish: (\n eventName: EnumPubSubEvents,\n payload: SubscriptionPayload,\n ) => void;\n subscribe: (eventName: EnumPubSubEvents) => AsyncIterable<any>;\n };\n request: Request;\n response: Response;\n}\n","import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\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: {\n type: \"Point\";\n coordinates: number[]; // [longitude, latitude]\n } | 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: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n"],"mappings":";AA6NO,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,sBAAmB;AACnB,EAAAA,kBAAA,uBAAoB;AACpB,EAAAA,kBAAA,6BAA0B;AAC1B,EAAAA,kBAAA,iBAAc;AAJJ,SAAAA;AAAA,GAAA;;;AC3NL,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;","names":["EnumPubSubEvents","EnumActivity"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/mongoose/Notification.ts","../src/mongoose/PushToken.ts"],"sourcesContent":["import mongoose from \"mongoose\";\n\nimport { EnumNotificationResourceType, EnumNotificationType } from \"src/enums\";\nimport {\n CreateBulkNotificationInput,\n NotificationType,\n ObjectId,\n} from \"src/types\";\n\nconst MongooseSchema = mongoose.Schema;\n\nexport type SchemaCreateBulkNotificationInput = Omit<\n CreateBulkNotificationInput,\n \"userIds\"\n> & {\n userIds: ObjectId[];\n};\n\nexport type SchemaNotificationType = Omit<NotificationType, \"userId\"> & {\n userId: ObjectId;\n};\n/**\n * Schema for storing in-app notifications\n * Each notification is tied to a specific user and can be marked as read/unread\n */\nconst schema = new MongooseSchema<SchemaNotificationType>(\n {\n data: {\n resourceId: { required: true, type: String },\n resourceName: { required: true, type: String },\n resourceType: {\n enum: Object.values(EnumNotificationResourceType),\n required: true,\n type: String,\n },\n },\n isRead: { default: false, index: true, required: true, type: Boolean },\n message: { required: true, type: String },\n title: { required: true, type: String },\n type: {\n default: EnumNotificationType.SYSTEM,\n enum: Object.values(EnumNotificationType),\n required: true,\n type: String,\n },\n userId: {\n ref: \"User\",\n required: true,\n type: mongoose.Schema.Types.ObjectId,\n },\n },\n { timestamps: true },\n);\n\n// Compound index for efficient queries\nschema.index({ isRead: 1, userId: 1 });\nschema.index({ createdAt: -1, userId: 1 });\n\nconst NotificationModel = mongoose.model<SchemaNotificationType>(\n \"Notification\",\n schema,\n);\n\nexport default NotificationModel;\n","import mongoose from \"mongoose\";\n\nimport { EnumOSPlatform } from \"src/enums\";\nimport { ObjectId } from \"src/types\";\n\nconst MongooseSchema = mongoose.Schema;\n\ntype PushTokenType = {\n _id: string;\n createdAt: Date;\n platform: EnumOSPlatform;\n token: string;\n updatedAt: Date;\n userId: string;\n};\n\nexport type SchemaPushTokenType = Omit<PushTokenType, \"userId\"> & {\n userId: ObjectId;\n};\n\n/**\n * This is the schema for the push token type.\n * It is used to define the structure of the push token type in the database.\n * The schema is used by Mongoose to create a model for the push token type.\n */\nconst schema = new MongooseSchema<SchemaPushTokenType>(\n {\n platform: {\n enum: Object.values(EnumOSPlatform),\n required: true,\n type: String,\n },\n token: { required: true, type: String },\n userId: { required: true, type: mongoose.Schema.Types.ObjectId },\n },\n { timestamps: true },\n);\n\nconst PushTokenModel = mongoose.model<SchemaPushTokenType>(\"PushToken\", schema);\n\nexport default PushTokenModel;\n"],"mappings":";;;;;;;AAAA,OAAO,cAAc;AASrB,IAAM,iBAAiB,SAAS;AAgBhC,IAAM,SAAS,IAAI;AAAA,EACjB;AAAA,IACE,MAAM;AAAA,MACJ,YAAY,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,MAC3C,cAAc,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,MAC7C,cAAc;AAAA,QACZ,MAAM,OAAO,OAAO,4BAA4B;AAAA,QAChD,UAAU;AAAA,QACV,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,QAAQ,EAAE,SAAS,OAAO,OAAO,MAAM,UAAU,MAAM,MAAM,QAAQ;AAAA,IACrE,SAAS,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,IACxC,OAAO,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,IACtC,MAAM;AAAA,MACJ;AAAA,MACA,MAAM,OAAO,OAAO,oBAAoB;AAAA,MACxC,UAAU;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,KAAK;AAAA,MACL,UAAU;AAAA,MACV,MAAM,SAAS,OAAO,MAAM;AAAA,IAC9B;AAAA,EACF;AAAA,EACA,EAAE,YAAY,KAAK;AACrB;AAGA,OAAO,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;AACrC,OAAO,MAAM,EAAE,WAAW,IAAI,QAAQ,EAAE,CAAC;AAEzC,IAAM,oBAAoB,SAAS;AAAA,EACjC;AAAA,EACA;AACF;AAEA,IAAO,uBAAQ;;;AC/Df,OAAOA,eAAc;AAKrB,IAAMC,kBAAiBC,UAAS;AAoBhC,IAAMC,UAAS,IAAIF;AAAA,EACjB;AAAA,IACE,UAAU;AAAA,MACR,MAAM,OAAO,OAAO,cAAc;AAAA,MAClC,UAAU;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,OAAO,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,IACtC,QAAQ,EAAE,UAAU,MAAM,MAAMC,UAAS,OAAO,MAAM,SAAS;AAAA,EACjE;AAAA,EACA,EAAE,YAAY,KAAK;AACrB;AAEA,IAAM,iBAAiBA,UAAS,MAA2B,aAAaC,OAAM;AAE9E,IAAO,oBAAQ;","names":["mongoose","MongooseSchema","mongoose","schema"]}
|
package/dist/user-DbEEY7fv.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { EnumUserLicence, EnumOSPlatform, EnumUserRole } from './enums/index.js';
|
|
2
|
-
import { s as ResourceImageType, P as PartnerType, T as TermsAgreement, a1 as CreateFormData } from './global-2Jk7sRkL.js';
|
|
3
|
-
|
|
4
|
-
type UserFormData = {
|
|
5
|
-
_id?: string;
|
|
6
|
-
active: boolean;
|
|
7
|
-
avatar?: ResourceImageType | null;
|
|
8
|
-
avatarUpload?: ResourceImageType | null;
|
|
9
|
-
confirmPassword: string;
|
|
10
|
-
email: string;
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
password: string;
|
|
14
|
-
platform?: EnumOSPlatform;
|
|
15
|
-
preferredRegion: string;
|
|
16
|
-
role: EnumUserRole;
|
|
17
|
-
termsAgreement?: TermsAgreement | null;
|
|
18
|
-
};
|
|
19
|
-
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
20
|
-
type UserActivityEvent = {
|
|
21
|
-
resourceId: string;
|
|
22
|
-
startDate: string;
|
|
23
|
-
startTime: string;
|
|
24
|
-
};
|
|
25
|
-
type UserActivity = {
|
|
26
|
-
favourites: {
|
|
27
|
-
events: string[];
|
|
28
|
-
vendors: string[];
|
|
29
|
-
};
|
|
30
|
-
going: {
|
|
31
|
-
events: UserActivityEvent[];
|
|
32
|
-
};
|
|
33
|
-
interested: {
|
|
34
|
-
events: UserActivityEvent[];
|
|
35
|
-
};
|
|
36
|
-
present: {
|
|
37
|
-
events: UserActivityEvent[];
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
interface UserType {
|
|
41
|
-
_id: string;
|
|
42
|
-
active: boolean;
|
|
43
|
-
avatar: ResourceImageType | null;
|
|
44
|
-
createdAt: string;
|
|
45
|
-
deletedAt: string | null;
|
|
46
|
-
email: string;
|
|
47
|
-
events: string[] | null;
|
|
48
|
-
firstName: string;
|
|
49
|
-
isTester: boolean;
|
|
50
|
-
lastName: string;
|
|
51
|
-
licences: EnumUserLicence[] | null;
|
|
52
|
-
partners?: PartnerType[] | null;
|
|
53
|
-
password: string;
|
|
54
|
-
platform: EnumOSPlatform | null;
|
|
55
|
-
preferredRegion: string;
|
|
56
|
-
refreshToken: string | null;
|
|
57
|
-
role: EnumUserRole;
|
|
58
|
-
termsAgreement?: TermsAgreement | null;
|
|
59
|
-
updatedAt: string;
|
|
60
|
-
userActivity: UserActivity | null;
|
|
61
|
-
vendor: string | null;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export type { CreateUserFormData as C, UserType as U, UserFormData as a, UserActivityEvent as b, UserActivity as c };
|
package/dist/user-OPY5EOqR.d.mts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { EnumUserLicence, EnumOSPlatform, EnumUserRole } from './enums/index.mjs';
|
|
2
|
-
import { s as ResourceImageType, P as PartnerType, T as TermsAgreement, a1 as CreateFormData } from './global-DWuTxnJ8.mjs';
|
|
3
|
-
|
|
4
|
-
type UserFormData = {
|
|
5
|
-
_id?: string;
|
|
6
|
-
active: boolean;
|
|
7
|
-
avatar?: ResourceImageType | null;
|
|
8
|
-
avatarUpload?: ResourceImageType | null;
|
|
9
|
-
confirmPassword: string;
|
|
10
|
-
email: string;
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
password: string;
|
|
14
|
-
platform?: EnumOSPlatform;
|
|
15
|
-
preferredRegion: string;
|
|
16
|
-
role: EnumUserRole;
|
|
17
|
-
termsAgreement?: TermsAgreement | null;
|
|
18
|
-
};
|
|
19
|
-
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
20
|
-
type UserActivityEvent = {
|
|
21
|
-
resourceId: string;
|
|
22
|
-
startDate: string;
|
|
23
|
-
startTime: string;
|
|
24
|
-
};
|
|
25
|
-
type UserActivity = {
|
|
26
|
-
favourites: {
|
|
27
|
-
events: string[];
|
|
28
|
-
vendors: string[];
|
|
29
|
-
};
|
|
30
|
-
going: {
|
|
31
|
-
events: UserActivityEvent[];
|
|
32
|
-
};
|
|
33
|
-
interested: {
|
|
34
|
-
events: UserActivityEvent[];
|
|
35
|
-
};
|
|
36
|
-
present: {
|
|
37
|
-
events: UserActivityEvent[];
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
interface UserType {
|
|
41
|
-
_id: string;
|
|
42
|
-
active: boolean;
|
|
43
|
-
avatar: ResourceImageType | null;
|
|
44
|
-
createdAt: string;
|
|
45
|
-
deletedAt: string | null;
|
|
46
|
-
email: string;
|
|
47
|
-
events: string[] | null;
|
|
48
|
-
firstName: string;
|
|
49
|
-
isTester: boolean;
|
|
50
|
-
lastName: string;
|
|
51
|
-
licences: EnumUserLicence[] | null;
|
|
52
|
-
partners?: PartnerType[] | null;
|
|
53
|
-
password: string;
|
|
54
|
-
platform: EnumOSPlatform | null;
|
|
55
|
-
preferredRegion: string;
|
|
56
|
-
refreshToken: string | null;
|
|
57
|
-
role: EnumUserRole;
|
|
58
|
-
termsAgreement?: TermsAgreement | null;
|
|
59
|
-
updatedAt: string;
|
|
60
|
-
userActivity: UserActivity | null;
|
|
61
|
-
vendor: string | null;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export type { CreateUserFormData as C, UserType as U, UserFormData as a, UserActivityEvent as b, UserActivity as c };
|