@timardex/cluemart-shared 1.2.81 → 1.2.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.
- package/dist/ad-CqM1Bzc5.d.ts +149 -0
- package/dist/ad-DjFdNVhH.d.mts +149 -0
- package/dist/chunk-ZQCAF7JE.mjs +58 -0
- package/dist/chunk-ZQCAF7JE.mjs.map +1 -0
- package/dist/formFields/index.cjs +10 -4
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +10 -4
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +65 -14
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +65 -14
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +129 -32
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +109 -34
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +210 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +69 -3
- package/dist/index.d.ts +69 -3
- package/dist/index.mjs +207 -50
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +31 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +9 -3
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/ad-D48NnhkT.d.mts +0 -83
- package/dist/ad-DO7Bc9PE.d.ts +0 -83
- package/dist/chunk-ILRVLTWY.mjs +0 -32
- package/dist/chunk-ILRVLTWY.mjs.map +0 -1
package/dist/types/index.cjs
CHANGED
|
@@ -24,10 +24,36 @@ __export(types_exports, {
|
|
|
24
24
|
EnumAdShowOn: () => EnumAdShowOn,
|
|
25
25
|
EnumAdStatus: () => EnumAdStatus,
|
|
26
26
|
EnumAdStyle: () => EnumAdStyle,
|
|
27
|
-
EnumAdType: () => EnumAdType
|
|
27
|
+
EnumAdType: () => EnumAdType,
|
|
28
|
+
OrganizedMarketCount: () => OrganizedMarketCount,
|
|
29
|
+
OrganizerMarketFrequency: () => OrganizerMarketFrequency,
|
|
30
|
+
VendorSellingFrequency: () => VendorSellingFrequency
|
|
28
31
|
});
|
|
29
32
|
module.exports = __toCommonJS(types_exports);
|
|
30
33
|
|
|
34
|
+
// src/types/tester.ts
|
|
35
|
+
var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
|
|
36
|
+
OrganizedMarketCount2["ONE"] = "1";
|
|
37
|
+
OrganizedMarketCount2["TWO_TO_THREE"] = "2-3";
|
|
38
|
+
OrganizedMarketCount2["FOUR_TO_FIVE"] = "4-5";
|
|
39
|
+
OrganizedMarketCount2["MORE_THAN_FIVE"] = "more_than_5";
|
|
40
|
+
return OrganizedMarketCount2;
|
|
41
|
+
})(OrganizedMarketCount || {});
|
|
42
|
+
var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
|
|
43
|
+
VendorSellingFrequency2["TWICE_A_WEEK"] = "2-3_times_a_week";
|
|
44
|
+
VendorSellingFrequency2["ONCE_A_WEEK"] = "once_a_week";
|
|
45
|
+
VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "1-2_times_a_month";
|
|
46
|
+
VendorSellingFrequency2["LESS_OFTEN"] = "less_often";
|
|
47
|
+
return VendorSellingFrequency2;
|
|
48
|
+
})(VendorSellingFrequency || {});
|
|
49
|
+
var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
|
|
50
|
+
OrganizerMarketFrequency2["WEEKLY"] = "weekly";
|
|
51
|
+
OrganizerMarketFrequency2["FORTNIGHTLY"] = "fortnightly";
|
|
52
|
+
OrganizerMarketFrequency2["MONTHLY"] = "monthly";
|
|
53
|
+
OrganizerMarketFrequency2["SEASONAL"] = "seasonal";
|
|
54
|
+
return OrganizerMarketFrequency2;
|
|
55
|
+
})(OrganizerMarketFrequency || {});
|
|
56
|
+
|
|
31
57
|
// src/types/ad.ts
|
|
32
58
|
var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
|
|
33
59
|
EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
|
|
@@ -68,6 +94,9 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
68
94
|
EnumAdShowOn,
|
|
69
95
|
EnumAdStatus,
|
|
70
96
|
EnumAdStyle,
|
|
71
|
-
EnumAdType
|
|
97
|
+
EnumAdType,
|
|
98
|
+
OrganizedMarketCount,
|
|
99
|
+
OrganizerMarketFrequency,
|
|
100
|
+
VendorSellingFrequency
|
|
72
101
|
});
|
|
73
102
|
//# sourceMappingURL=index.cjs.map
|
package/dist/types/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts","../../src/types/ad.ts","../../src/types/resourceActivities.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 \"./tester\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\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 interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\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\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 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: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAK,
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts","../../src/types/tester.ts","../../src/types/ad.ts","../../src/types/resourceActivities.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 \"./tester\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\n","import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nimport { Category, CreateFormData } from \"./global\";\n\nexport enum OrganizedMarketCount {\n ONE = \"1\",\n TWO_TO_THREE = \"2-3\",\n FOUR_TO_FIVE = \"4-5\",\n MORE_THAN_FIVE = \"more_than_5\",\n}\n\nexport enum VendorSellingFrequency {\n TWICE_A_WEEK = \"2-3_times_a_week\",\n ONCE_A_WEEK = \"once_a_week\",\n ONE_TO_TWO_TIMES_A_MONTH = \"1-2_times_a_month\",\n LESS_OFTEN = \"less_often\",\n}\n\nexport enum OrganizerMarketFrequency {\n WEEKLY = \"weekly\",\n FORTNIGHTLY = \"fortnightly\",\n MONTHLY = \"monthly\",\n SEASONAL = \"seasonal\",\n}\n\nexport type TesterVendor = {\n categories: Category[];\n productsOrServices: string;\n marketsAttended: {\n name: string; // Market name\n city: string; // City\n }[];\n sellingFrequency: VendorSellingFrequency;\n yearlySellingApprox: number;\n questionary: {\n /** Test Period Commitments */\n uploadStallProfileFirstWeek: boolean; // Q10\n applyToAtLeastOneMarket: boolean; // Q11\n tryVisitorFeatures: boolean; // Q12\n completeFeedbackQuestionnaire: boolean; // Q13\n\n /** Social Media Appearance */\n sendPhotoForSocialMedia: boolean; // Q14 (Yes / No)\n appearInVideoIntroduction: boolean; // Q15 (Yes / No)\n socialMediaFeatureReason?: string; // Q16 (optional free text)\n\n /** Open Questions */\n excitementAboutApp: string; // Q17\n usefulnessExpectations: string; // Q18\n testingPeriodConcerns?: string; // Q19 (optional)\n };\n};\n\nexport type TesterEvent = {\n /** Organizer background */\n organizedMarketCount: OrganizedMarketCount;\n\n markets: {\n name: string;\n cityOrVenue: string;\n frequency: OrganizerMarketFrequency;\n averageStallCount: number;\n }[];\n\n /** Test Period Participation */\n registerMarketsFirstWeek: boolean;\n inviteAtLeastFiveStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n completeFinalQuestionnaire: boolean;\n\n /** Promotion Support */\n allowMarketingAppearance: boolean; // Yes / No\n\n /** Open Questions */\n organizerExpectations: string;\n dailyCoordinationNeeds: string;\n interestedInCharityInitiative: boolean;\n};\n\nexport interface TesterFormData {\n approved: boolean;\n businessName: string;\n email: string;\n firstName: string;\n lastName: string;\n mobilePhone: string;\n osType: EnumOSPlatform;\n region: string;\n resourceType: EnumResourceType;\n vendor?: TesterVendor | null;\n event?: TesterEvent | null;\n}\n\nexport type CreateTesterFormData = CreateFormData<TesterFormData>;\n\nexport interface TesterType extends TesterFormData {\n _id: string;\n active: boolean;\n createdAt: Date;\n updatedAt: Date | null;\n}\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 interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\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\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 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: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,SAAM;AACN,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,oBAAiB;AAJP,SAAAA;AAAA,GAAA;AAOL,IAAK,yBAAL,kBAAKC,4BAAL;AACL,EAAAA,wBAAA,kBAAe;AACf,EAAAA,wBAAA,iBAAc;AACd,EAAAA,wBAAA,8BAA2B;AAC3B,EAAAA,wBAAA,gBAAa;AAJH,SAAAA;AAAA,GAAA;AAOL,IAAK,2BAAL,kBAAKC,8BAAL;AACL,EAAAA,0BAAA,YAAS;AACT,EAAAA,0BAAA,iBAAc;AACd,EAAAA,0BAAA,aAAU;AACV,EAAAA,0BAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;;;ACdL,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;;;AChBL,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":["OrganizedMarketCount","VendorSellingFrequency","OrganizerMarketFrequency","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity"]}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ 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, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-zy1P_DKw.mjs';
|
|
3
3
|
export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, E as EnumActivity, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType, f as ResourceActivityEntry, g as ResourceActivityInputType, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
|
|
4
4
|
export { A as AssociateType, v as BaseResourceType, B as BaseResourceTypeFormData, C as Category, m as CreateEventFormData, o as CreateEventInfoFormData, H as CreateFormData, q as CreateUserFormData, i as CreateVendorFormData, k as CreateVendorInfoFormData, w as DateTimeType, J as DateTimeWithPriceType, D as DeviceInfo, l as EventFormData, n as EventInfoFormData, b as EventInfoType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, M as MapMultiLocation, N as Nullable, O as OptionItem, u as OwnerType, K as PaymentInfoType, P as PosterUsageType, x as Region, Q as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, r as ResourceContactDetailsType, s as ResourceImageType, t as SocialMediaType, S as StallType, _ as StripeSubscription, z as Subcategory, y as SubcategoryItems, g as SubscriptionStatusData, T as TermsAgreement, $ as UserActivity, Z as UserActivityEvent, p as UserFormData, U as UserLicenceType, f as UserType, Y as VendorAttributes, h as VendorFormData, j as VendorInfoFormData, e as VendorInfoType, W as VendorLocation, X as VendorMenuType, V as VendorType } from '../global-CLsysATK.mjs';
|
|
5
|
-
export { c as AdFormData, A as AdType, d as CreateAdFormData, e as CreatePartnerFormData, C as CreateTesterFormData,
|
|
5
|
+
export { c as AdFormData, A as AdType, d as CreateAdFormData, e as CreatePartnerFormData, C as CreateTesterFormData, i as EnumAdShowOn, E as EnumAdStatus, k as EnumAdStyle, j as EnumAdType, O as OrganizedMarketCount, f as OrganizerMarketFrequency, a as PartnerFormData, P as PartnerType, h as TesterEvent, b as TesterFormData, T as TesterType, g as TesterVendor, V as VendorSellingFrequency } from '../ad-DjFdNVhH.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
interface AdminUpdateResourceType {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ 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, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-D0FKzjLe.js';
|
|
3
3
|
export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, E as EnumActivity, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType, f as ResourceActivityEntry, g as ResourceActivityInputType, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
|
|
4
4
|
export { A as AssociateType, v as BaseResourceType, B as BaseResourceTypeFormData, C as Category, m as CreateEventFormData, o as CreateEventInfoFormData, H as CreateFormData, q as CreateUserFormData, i as CreateVendorFormData, k as CreateVendorInfoFormData, w as DateTimeType, J as DateTimeWithPriceType, D as DeviceInfo, l as EventFormData, n as EventInfoFormData, b as EventInfoType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, M as MapMultiLocation, N as Nullable, O as OptionItem, u as OwnerType, K as PaymentInfoType, P as PosterUsageType, x as Region, Q as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, r as ResourceContactDetailsType, s as ResourceImageType, t as SocialMediaType, S as StallType, _ as StripeSubscription, z as Subcategory, y as SubcategoryItems, g as SubscriptionStatusData, T as TermsAgreement, $ as UserActivity, Z as UserActivityEvent, p as UserFormData, U as UserLicenceType, f as UserType, Y as VendorAttributes, h as VendorFormData, j as VendorInfoFormData, e as VendorInfoType, W as VendorLocation, X as VendorMenuType, V as VendorType } from '../global-BYQMdxtO.js';
|
|
5
|
-
export { c as AdFormData, A as AdType, d as CreateAdFormData, e as CreatePartnerFormData, C as CreateTesterFormData,
|
|
5
|
+
export { c as AdFormData, A as AdType, d as CreateAdFormData, e as CreatePartnerFormData, C as CreateTesterFormData, i as EnumAdShowOn, E as EnumAdStatus, k as EnumAdStyle, j as EnumAdType, O as OrganizedMarketCount, f as OrganizerMarketFrequency, a as PartnerFormData, P as PartnerType, h as TesterEvent, b as TesterFormData, T as TesterType, g as TesterVendor, V as VendorSellingFrequency } from '../ad-CqM1Bzc5.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
interface AdminUpdateResourceType {
|
package/dist/types/index.mjs
CHANGED
|
@@ -2,8 +2,11 @@ import {
|
|
|
2
2
|
EnumAdShowOn,
|
|
3
3
|
EnumAdStatus,
|
|
4
4
|
EnumAdStyle,
|
|
5
|
-
EnumAdType
|
|
6
|
-
|
|
5
|
+
EnumAdType,
|
|
6
|
+
OrganizedMarketCount,
|
|
7
|
+
OrganizerMarketFrequency,
|
|
8
|
+
VendorSellingFrequency
|
|
9
|
+
} from "../chunk-ZQCAF7JE.mjs";
|
|
7
10
|
|
|
8
11
|
// src/types/resourceActivities.ts
|
|
9
12
|
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
@@ -19,6 +22,9 @@ export {
|
|
|
19
22
|
EnumAdShowOn,
|
|
20
23
|
EnumAdStatus,
|
|
21
24
|
EnumAdStyle,
|
|
22
|
-
EnumAdType
|
|
25
|
+
EnumAdType,
|
|
26
|
+
OrganizedMarketCount,
|
|
27
|
+
OrganizerMarketFrequency,
|
|
28
|
+
VendorSellingFrequency
|
|
23
29
|
};
|
|
24
30
|
//# sourceMappingURL=index.mjs.map
|
package/dist/types/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/resourceActivities.ts"],"sourcesContent":["import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} 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 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: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/resourceActivities.ts"],"sourcesContent":["import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} 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 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: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n"],"mappings":";;;;;;;;;;;AAMO,IAAK,eAAL,kBAAKA,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":["EnumActivity"]}
|
package/package.json
CHANGED
package/dist/ad-D48NnhkT.d.mts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { EnumOSPlatform, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
|
|
2
|
-
import { C as Category, H as CreateFormData, v as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, t as SocialMediaType } from './global-CLsysATK.mjs';
|
|
3
|
-
|
|
4
|
-
interface TesterFormData {
|
|
5
|
-
approved: boolean;
|
|
6
|
-
categories?: Category[] | null;
|
|
7
|
-
companyName: string;
|
|
8
|
-
email: string;
|
|
9
|
-
firstName: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
osType: EnumOSPlatform;
|
|
12
|
-
region: string;
|
|
13
|
-
resourceType: EnumResourceType;
|
|
14
|
-
}
|
|
15
|
-
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
16
|
-
interface TesterType extends TesterFormData {
|
|
17
|
-
_id: string;
|
|
18
|
-
active: boolean;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
updatedAt: Date | null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
24
|
-
location: LocationType;
|
|
25
|
-
nzbn: string;
|
|
26
|
-
partnerType: EnumPartnerType;
|
|
27
|
-
}
|
|
28
|
-
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
29
|
-
interface PartnerType extends BaseResourceType {
|
|
30
|
-
location: LocationType;
|
|
31
|
-
nzbn: string;
|
|
32
|
-
partnerType: EnumPartnerType;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare enum EnumAdShowOn {
|
|
36
|
-
EVENTS_PAGE = "Events_page",
|
|
37
|
-
FRONT_PAGE = "Front_page",
|
|
38
|
-
PARTNERS_PAGE = "Partners_page",
|
|
39
|
-
VENDORS_PAGE = "Vendors_page"
|
|
40
|
-
}
|
|
41
|
-
declare enum EnumAdStatus {
|
|
42
|
-
ACTIVE = "Active",
|
|
43
|
-
PAUSED = "Paused",
|
|
44
|
-
EXPIRED = "Expired"
|
|
45
|
-
}
|
|
46
|
-
declare enum EnumAdType {
|
|
47
|
-
SPONSORED = "Sponsored",
|
|
48
|
-
FREE = "Free"
|
|
49
|
-
}
|
|
50
|
-
declare enum EnumAdStyle {
|
|
51
|
-
BLOOM = "Bloom",
|
|
52
|
-
RISE = "Rise"
|
|
53
|
-
}
|
|
54
|
-
interface AdFormData {
|
|
55
|
-
active: boolean;
|
|
56
|
-
adStyle: EnumAdStyle;
|
|
57
|
-
adType: EnumAdType;
|
|
58
|
-
clui?: string | null;
|
|
59
|
-
end: Date;
|
|
60
|
-
resourceCover: string;
|
|
61
|
-
resourceDescription: string;
|
|
62
|
-
resourceId: string;
|
|
63
|
-
resourceLogo?: string | null;
|
|
64
|
-
resourceName: string;
|
|
65
|
-
resourceRegion: string;
|
|
66
|
-
resourceType: EnumResourceType;
|
|
67
|
-
showOn: EnumAdShowOn;
|
|
68
|
-
socialMedia?: SocialMediaType[] | null;
|
|
69
|
-
start?: Date;
|
|
70
|
-
status: EnumAdStatus;
|
|
71
|
-
targetRegion?: string | null;
|
|
72
|
-
}
|
|
73
|
-
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
74
|
-
interface AdType extends AdFormData {
|
|
75
|
-
_id: string;
|
|
76
|
-
clicks?: number;
|
|
77
|
-
createdAt: Date;
|
|
78
|
-
impressions?: number;
|
|
79
|
-
start: Date;
|
|
80
|
-
updatedAt: Date | null;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export { type AdType as A, type CreateTesterFormData as C, EnumAdStatus as E, type PartnerType as P, type TesterType as T, type PartnerFormData as a, type TesterFormData as b, type AdFormData as c, type CreateAdFormData as d, type CreatePartnerFormData as e, EnumAdShowOn as f, EnumAdType as g, EnumAdStyle as h };
|
package/dist/ad-DO7Bc9PE.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { EnumOSPlatform, EnumResourceType, EnumPartnerType } from './enums/index.js';
|
|
2
|
-
import { C as Category, H as CreateFormData, v as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, t as SocialMediaType } from './global-BYQMdxtO.js';
|
|
3
|
-
|
|
4
|
-
interface TesterFormData {
|
|
5
|
-
approved: boolean;
|
|
6
|
-
categories?: Category[] | null;
|
|
7
|
-
companyName: string;
|
|
8
|
-
email: string;
|
|
9
|
-
firstName: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
osType: EnumOSPlatform;
|
|
12
|
-
region: string;
|
|
13
|
-
resourceType: EnumResourceType;
|
|
14
|
-
}
|
|
15
|
-
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
16
|
-
interface TesterType extends TesterFormData {
|
|
17
|
-
_id: string;
|
|
18
|
-
active: boolean;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
updatedAt: Date | null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
24
|
-
location: LocationType;
|
|
25
|
-
nzbn: string;
|
|
26
|
-
partnerType: EnumPartnerType;
|
|
27
|
-
}
|
|
28
|
-
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
29
|
-
interface PartnerType extends BaseResourceType {
|
|
30
|
-
location: LocationType;
|
|
31
|
-
nzbn: string;
|
|
32
|
-
partnerType: EnumPartnerType;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare enum EnumAdShowOn {
|
|
36
|
-
EVENTS_PAGE = "Events_page",
|
|
37
|
-
FRONT_PAGE = "Front_page",
|
|
38
|
-
PARTNERS_PAGE = "Partners_page",
|
|
39
|
-
VENDORS_PAGE = "Vendors_page"
|
|
40
|
-
}
|
|
41
|
-
declare enum EnumAdStatus {
|
|
42
|
-
ACTIVE = "Active",
|
|
43
|
-
PAUSED = "Paused",
|
|
44
|
-
EXPIRED = "Expired"
|
|
45
|
-
}
|
|
46
|
-
declare enum EnumAdType {
|
|
47
|
-
SPONSORED = "Sponsored",
|
|
48
|
-
FREE = "Free"
|
|
49
|
-
}
|
|
50
|
-
declare enum EnumAdStyle {
|
|
51
|
-
BLOOM = "Bloom",
|
|
52
|
-
RISE = "Rise"
|
|
53
|
-
}
|
|
54
|
-
interface AdFormData {
|
|
55
|
-
active: boolean;
|
|
56
|
-
adStyle: EnumAdStyle;
|
|
57
|
-
adType: EnumAdType;
|
|
58
|
-
clui?: string | null;
|
|
59
|
-
end: Date;
|
|
60
|
-
resourceCover: string;
|
|
61
|
-
resourceDescription: string;
|
|
62
|
-
resourceId: string;
|
|
63
|
-
resourceLogo?: string | null;
|
|
64
|
-
resourceName: string;
|
|
65
|
-
resourceRegion: string;
|
|
66
|
-
resourceType: EnumResourceType;
|
|
67
|
-
showOn: EnumAdShowOn;
|
|
68
|
-
socialMedia?: SocialMediaType[] | null;
|
|
69
|
-
start?: Date;
|
|
70
|
-
status: EnumAdStatus;
|
|
71
|
-
targetRegion?: string | null;
|
|
72
|
-
}
|
|
73
|
-
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
74
|
-
interface AdType extends AdFormData {
|
|
75
|
-
_id: string;
|
|
76
|
-
clicks?: number;
|
|
77
|
-
createdAt: Date;
|
|
78
|
-
impressions?: number;
|
|
79
|
-
start: Date;
|
|
80
|
-
updatedAt: Date | null;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export { type AdType as A, type CreateTesterFormData as C, EnumAdStatus as E, type PartnerType as P, type TesterType as T, type PartnerFormData as a, type TesterFormData as b, type AdFormData as c, type CreateAdFormData as d, type CreatePartnerFormData as e, EnumAdShowOn as f, EnumAdType as g, EnumAdStyle as h };
|
package/dist/chunk-ILRVLTWY.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// src/types/ad.ts
|
|
2
|
-
var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
|
|
3
|
-
EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
|
|
4
|
-
EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
|
|
5
|
-
EnumAdShowOn2["PARTNERS_PAGE"] = "Partners_page";
|
|
6
|
-
EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
|
|
7
|
-
return EnumAdShowOn2;
|
|
8
|
-
})(EnumAdShowOn || {});
|
|
9
|
-
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
10
|
-
EnumAdStatus2["ACTIVE"] = "Active";
|
|
11
|
-
EnumAdStatus2["PAUSED"] = "Paused";
|
|
12
|
-
EnumAdStatus2["EXPIRED"] = "Expired";
|
|
13
|
-
return EnumAdStatus2;
|
|
14
|
-
})(EnumAdStatus || {});
|
|
15
|
-
var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
|
|
16
|
-
EnumAdType2["SPONSORED"] = "Sponsored";
|
|
17
|
-
EnumAdType2["FREE"] = "Free";
|
|
18
|
-
return EnumAdType2;
|
|
19
|
-
})(EnumAdType || {});
|
|
20
|
-
var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
|
|
21
|
-
EnumAdStyle2["BLOOM"] = "Bloom";
|
|
22
|
-
EnumAdStyle2["RISE"] = "Rise";
|
|
23
|
-
return EnumAdStyle2;
|
|
24
|
-
})(EnumAdStyle || {});
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
EnumAdShowOn,
|
|
28
|
-
EnumAdStatus,
|
|
29
|
-
EnumAdType,
|
|
30
|
-
EnumAdStyle
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=chunk-ILRVLTWY.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/ad.ts"],"sourcesContent":["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 interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\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"],"mappings":";AAIO,IAAK,eAAL,kBAAKA,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;","names":["EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle"]}
|