@timardex/cluemart-shared 1.2.83 → 1.2.85
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-DjFdNVhH.d.mts → ad-CcYxwU64.d.mts} +7 -7
- package/dist/{ad-CqM1Bzc5.d.ts → ad-DMg0fZL4.d.ts} +7 -7
- package/dist/{chunk-ZQCAF7JE.mjs → chunk-O6YVGYRE.mjs} +5 -5
- package/dist/chunk-O6YVGYRE.mjs.map +1 -0
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/hooks/index.cjs +4 -9
- 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 +1 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +4 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +4 -9
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +4 -4
- 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 +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZQCAF7JE.mjs.map +0 -1
|
@@ -3,14 +3,14 @@ import { C as Category, H as CreateFormData, v as BaseResourceType, L as Locatio
|
|
|
3
3
|
|
|
4
4
|
declare enum OrganizedMarketCount {
|
|
5
5
|
ONE = "1",
|
|
6
|
-
TWO_TO_THREE = "
|
|
7
|
-
FOUR_TO_FIVE = "
|
|
6
|
+
TWO_TO_THREE = "2_3",
|
|
7
|
+
FOUR_TO_FIVE = "4_5",
|
|
8
8
|
MORE_THAN_FIVE = "more_than_5"
|
|
9
9
|
}
|
|
10
10
|
declare enum VendorSellingFrequency {
|
|
11
|
-
TWICE_A_WEEK = "
|
|
11
|
+
TWICE_A_WEEK = "2_3_times_a_week",
|
|
12
12
|
ONCE_A_WEEK = "once_a_week",
|
|
13
|
-
ONE_TO_TWO_TIMES_A_MONTH = "
|
|
13
|
+
ONE_TO_TWO_TIMES_A_MONTH = "1_2_times_a_month",
|
|
14
14
|
LESS_OFTEN = "less_often"
|
|
15
15
|
}
|
|
16
16
|
declare enum OrganizerMarketFrequency {
|
|
@@ -21,11 +21,11 @@ declare enum OrganizerMarketFrequency {
|
|
|
21
21
|
}
|
|
22
22
|
type TesterVendor = {
|
|
23
23
|
categories: Category[];
|
|
24
|
-
productsOrServices: string;
|
|
25
24
|
marketsAttended: {
|
|
26
25
|
name: string;
|
|
27
26
|
city: string;
|
|
28
27
|
}[];
|
|
28
|
+
productsOrServices: string;
|
|
29
29
|
sellingFrequency: VendorSellingFrequency;
|
|
30
30
|
yearlySellingApprox: number;
|
|
31
31
|
questionary: {
|
|
@@ -66,9 +66,9 @@ type TesterEvent = {
|
|
|
66
66
|
interestedInCharityInitiative: boolean;
|
|
67
67
|
};
|
|
68
68
|
interface TesterFormData {
|
|
69
|
-
approved: boolean;
|
|
70
69
|
businessName: string;
|
|
71
70
|
email: string;
|
|
71
|
+
event?: TesterEvent | null;
|
|
72
72
|
firstName: string;
|
|
73
73
|
lastName: string;
|
|
74
74
|
mobilePhone: string;
|
|
@@ -76,12 +76,12 @@ interface TesterFormData {
|
|
|
76
76
|
region: string;
|
|
77
77
|
resourceType: EnumResourceType;
|
|
78
78
|
vendor?: TesterVendor | null;
|
|
79
|
-
event?: TesterEvent | null;
|
|
80
79
|
}
|
|
81
80
|
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
82
81
|
interface TesterType extends TesterFormData {
|
|
83
82
|
_id: string;
|
|
84
83
|
active: boolean;
|
|
84
|
+
approved: boolean;
|
|
85
85
|
createdAt: Date;
|
|
86
86
|
updatedAt: Date | null;
|
|
87
87
|
}
|
|
@@ -3,14 +3,14 @@ import { C as Category, H as CreateFormData, v as BaseResourceType, L as Locatio
|
|
|
3
3
|
|
|
4
4
|
declare enum OrganizedMarketCount {
|
|
5
5
|
ONE = "1",
|
|
6
|
-
TWO_TO_THREE = "
|
|
7
|
-
FOUR_TO_FIVE = "
|
|
6
|
+
TWO_TO_THREE = "2_3",
|
|
7
|
+
FOUR_TO_FIVE = "4_5",
|
|
8
8
|
MORE_THAN_FIVE = "more_than_5"
|
|
9
9
|
}
|
|
10
10
|
declare enum VendorSellingFrequency {
|
|
11
|
-
TWICE_A_WEEK = "
|
|
11
|
+
TWICE_A_WEEK = "2_3_times_a_week",
|
|
12
12
|
ONCE_A_WEEK = "once_a_week",
|
|
13
|
-
ONE_TO_TWO_TIMES_A_MONTH = "
|
|
13
|
+
ONE_TO_TWO_TIMES_A_MONTH = "1_2_times_a_month",
|
|
14
14
|
LESS_OFTEN = "less_often"
|
|
15
15
|
}
|
|
16
16
|
declare enum OrganizerMarketFrequency {
|
|
@@ -21,11 +21,11 @@ declare enum OrganizerMarketFrequency {
|
|
|
21
21
|
}
|
|
22
22
|
type TesterVendor = {
|
|
23
23
|
categories: Category[];
|
|
24
|
-
productsOrServices: string;
|
|
25
24
|
marketsAttended: {
|
|
26
25
|
name: string;
|
|
27
26
|
city: string;
|
|
28
27
|
}[];
|
|
28
|
+
productsOrServices: string;
|
|
29
29
|
sellingFrequency: VendorSellingFrequency;
|
|
30
30
|
yearlySellingApprox: number;
|
|
31
31
|
questionary: {
|
|
@@ -66,9 +66,9 @@ type TesterEvent = {
|
|
|
66
66
|
interestedInCharityInitiative: boolean;
|
|
67
67
|
};
|
|
68
68
|
interface TesterFormData {
|
|
69
|
-
approved: boolean;
|
|
70
69
|
businessName: string;
|
|
71
70
|
email: string;
|
|
71
|
+
event?: TesterEvent | null;
|
|
72
72
|
firstName: string;
|
|
73
73
|
lastName: string;
|
|
74
74
|
mobilePhone: string;
|
|
@@ -76,12 +76,12 @@ interface TesterFormData {
|
|
|
76
76
|
region: string;
|
|
77
77
|
resourceType: EnumResourceType;
|
|
78
78
|
vendor?: TesterVendor | null;
|
|
79
|
-
event?: TesterEvent | null;
|
|
80
79
|
}
|
|
81
80
|
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
82
81
|
interface TesterType extends TesterFormData {
|
|
83
82
|
_id: string;
|
|
84
83
|
active: boolean;
|
|
84
|
+
approved: boolean;
|
|
85
85
|
createdAt: Date;
|
|
86
86
|
updatedAt: Date | null;
|
|
87
87
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// src/types/tester.ts
|
|
2
2
|
var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
|
|
3
3
|
OrganizedMarketCount2["ONE"] = "1";
|
|
4
|
-
OrganizedMarketCount2["TWO_TO_THREE"] = "
|
|
5
|
-
OrganizedMarketCount2["FOUR_TO_FIVE"] = "
|
|
4
|
+
OrganizedMarketCount2["TWO_TO_THREE"] = "2_3";
|
|
5
|
+
OrganizedMarketCount2["FOUR_TO_FIVE"] = "4_5";
|
|
6
6
|
OrganizedMarketCount2["MORE_THAN_FIVE"] = "more_than_5";
|
|
7
7
|
return OrganizedMarketCount2;
|
|
8
8
|
})(OrganizedMarketCount || {});
|
|
9
9
|
var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
|
|
10
|
-
VendorSellingFrequency2["TWICE_A_WEEK"] = "
|
|
10
|
+
VendorSellingFrequency2["TWICE_A_WEEK"] = "2_3_times_a_week";
|
|
11
11
|
VendorSellingFrequency2["ONCE_A_WEEK"] = "once_a_week";
|
|
12
|
-
VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "
|
|
12
|
+
VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "1_2_times_a_month";
|
|
13
13
|
VendorSellingFrequency2["LESS_OFTEN"] = "less_often";
|
|
14
14
|
return VendorSellingFrequency2;
|
|
15
15
|
})(VendorSellingFrequency || {});
|
|
@@ -55,4 +55,4 @@ export {
|
|
|
55
55
|
EnumAdType,
|
|
56
56
|
EnumAdStyle
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
58
|
+
//# sourceMappingURL=chunk-O6YVGYRE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/tester.ts","../src/types/ad.ts"],"sourcesContent":["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 marketsAttended: { name: string; city: string }[];\n productsOrServices: string;\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 businessName: string;\n email: string;\n event?: TesterEvent | null;\n firstName: string;\n lastName: string;\n mobilePhone: string;\n osType: EnumOSPlatform;\n region: string;\n resourceType: EnumResourceType;\n vendor?: TesterVendor | null;\n}\n\nexport type CreateTesterFormData = CreateFormData<TesterFormData>;\n\nexport interface TesterType extends TesterFormData {\n _id: string;\n active: boolean;\n approved: 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"],"mappings":";AAIO,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;","names":["OrganizedMarketCount","VendorSellingFrequency","OrganizerMarketFrequency","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle"]}
|
package/dist/graphql/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
3
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
|
|
4
4
|
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType, f as UserType, g as SubscriptionStatusData } from '../global-CLsysATK.mjs';
|
|
5
|
-
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-
|
|
5
|
+
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-CcYxwU64.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
3
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
|
|
4
4
|
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType, f as UserType, g as SubscriptionStatusData } from '../global-BYQMdxtO.js';
|
|
5
|
-
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-
|
|
5
|
+
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-DMg0fZL4.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -667,15 +667,15 @@ var yup6 = __toESM(require("yup"));
|
|
|
667
667
|
// src/types/tester.ts
|
|
668
668
|
var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
|
|
669
669
|
OrganizedMarketCount2["ONE"] = "1";
|
|
670
|
-
OrganizedMarketCount2["TWO_TO_THREE"] = "
|
|
671
|
-
OrganizedMarketCount2["FOUR_TO_FIVE"] = "
|
|
670
|
+
OrganizedMarketCount2["TWO_TO_THREE"] = "2_3";
|
|
671
|
+
OrganizedMarketCount2["FOUR_TO_FIVE"] = "4_5";
|
|
672
672
|
OrganizedMarketCount2["MORE_THAN_FIVE"] = "more_than_5";
|
|
673
673
|
return OrganizedMarketCount2;
|
|
674
674
|
})(OrganizedMarketCount || {});
|
|
675
675
|
var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
|
|
676
|
-
VendorSellingFrequency2["TWICE_A_WEEK"] = "
|
|
676
|
+
VendorSellingFrequency2["TWICE_A_WEEK"] = "2_3_times_a_week";
|
|
677
677
|
VendorSellingFrequency2["ONCE_A_WEEK"] = "once_a_week";
|
|
678
|
-
VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "
|
|
678
|
+
VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "1_2_times_a_month";
|
|
679
679
|
VendorSellingFrequency2["LESS_OFTEN"] = "less_often";
|
|
680
680
|
return VendorSellingFrequency2;
|
|
681
681
|
})(VendorSellingFrequency || {});
|
|
@@ -741,7 +741,6 @@ var testerEventSchema = yup6.object().shape({
|
|
|
741
741
|
registerMarketsFirstWeek: yup6.boolean().required("Register markets first week commitment is required")
|
|
742
742
|
});
|
|
743
743
|
var testerSchema = yup6.object().shape({
|
|
744
|
-
approved: yup6.boolean().required("Approval status is required"),
|
|
745
744
|
businessName: yup6.string().required("Business name is required"),
|
|
746
745
|
email: emailRequiredSchema,
|
|
747
746
|
event: yup6.object().when("resourceType", {
|
|
@@ -1558,7 +1557,6 @@ var import_yup11 = require("@hookform/resolvers/yup");
|
|
|
1558
1557
|
var import_react = __toESM(require("react"));
|
|
1559
1558
|
var import_react_hook_form11 = require("react-hook-form");
|
|
1560
1559
|
var defaultValues7 = {
|
|
1561
|
-
approved: false,
|
|
1562
1560
|
businessName: "",
|
|
1563
1561
|
email: "",
|
|
1564
1562
|
event: null,
|
|
@@ -1586,7 +1584,6 @@ function useTesterForm(data) {
|
|
|
1586
1584
|
import_react.default.useEffect(() => {
|
|
1587
1585
|
if (data) {
|
|
1588
1586
|
reset({
|
|
1589
|
-
approved: data.approved,
|
|
1590
1587
|
businessName: data.businessName,
|
|
1591
1588
|
email: data.email,
|
|
1592
1589
|
event: data.event,
|
|
@@ -1603,7 +1600,6 @@ function useTesterForm(data) {
|
|
|
1603
1600
|
}
|
|
1604
1601
|
}, [data]);
|
|
1605
1602
|
const {
|
|
1606
|
-
approved,
|
|
1607
1603
|
businessName,
|
|
1608
1604
|
email,
|
|
1609
1605
|
event,
|
|
@@ -1618,7 +1614,6 @@ function useTesterForm(data) {
|
|
|
1618
1614
|
return {
|
|
1619
1615
|
control,
|
|
1620
1616
|
fields: {
|
|
1621
|
-
approved,
|
|
1622
1617
|
businessName,
|
|
1623
1618
|
email,
|
|
1624
1619
|
event,
|