@timardex/cluemart-shared 1.2.94 → 1.2.96
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-B_E4DMtS.d.mts → ad-CIgrG2xI.d.mts} +15 -18
- package/dist/{ad-BAdLwWe8.d.ts → ad-eMd9XpSs.d.ts} +15 -18
- package/dist/{chunk-BK3ZTKW7.mjs → chunk-3ZDDQGW4.mjs} +1 -1
- package/dist/chunk-3ZDDQGW4.mjs.map +1 -0
- package/dist/graphql/index.cjs +15 -9
- 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 +15 -9
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +11 -5
- 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 +12 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +26 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -18
- package/dist/index.d.ts +15 -18
- package/dist/index.mjs +26 -14
- package/dist/index.mjs.map +1 -1
- 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-BK3ZTKW7.mjs.map +0 -1
|
@@ -29,19 +29,16 @@ type TesterVendor = {
|
|
|
29
29
|
sellingFrequency: VendorSellingFrequency;
|
|
30
30
|
yearlySellingApprox: number;
|
|
31
31
|
questionary: {
|
|
32
|
-
|
|
33
|
-
uploadStallProfileFirstWeek: boolean;
|
|
32
|
+
appearInVideoIntroduction?: boolean;
|
|
34
33
|
applyToAtLeastOneMarket: boolean;
|
|
35
|
-
tryVisitorFeatures: boolean;
|
|
36
34
|
completeFeedbackQuestionnaire: boolean;
|
|
37
|
-
|
|
35
|
+
excitementAboutApp?: string;
|
|
38
36
|
sendPhotoForSocialMedia?: boolean;
|
|
39
|
-
appearInVideoIntroduction?: boolean;
|
|
40
37
|
socialMediaFeatureReason?: string;
|
|
41
|
-
/** Open Questions */
|
|
42
|
-
excitementAboutApp?: string;
|
|
43
|
-
usefulnessExpectations?: string;
|
|
44
38
|
testingPeriodConcerns?: string;
|
|
39
|
+
tryVisitorFeatures: boolean;
|
|
40
|
+
uploadStallProfileFirstWeek: boolean;
|
|
41
|
+
usefulnessExpectations?: string;
|
|
45
42
|
};
|
|
46
43
|
};
|
|
47
44
|
type TesterEvent = {
|
|
@@ -54,29 +51,29 @@ type TesterEvent = {
|
|
|
54
51
|
averageStallCount: number;
|
|
55
52
|
}[];
|
|
56
53
|
questionary: {
|
|
57
|
-
/** Test Period Participation */
|
|
58
|
-
registerMarketsFirstWeek: boolean;
|
|
59
|
-
inviteAtLeastFiveStallholders: boolean;
|
|
60
|
-
manageApplicationsAndCommunication: boolean;
|
|
61
|
-
completeFinalQuestionnaire: boolean;
|
|
62
|
-
/** Promotion Support */
|
|
63
54
|
allowMarketingAppearance?: boolean;
|
|
64
|
-
|
|
65
|
-
/** Open Questions */
|
|
66
|
-
organizerExpectations?: string;
|
|
55
|
+
completeFinalQuestionnaire: boolean;
|
|
67
56
|
dailyCoordinationNeeds?: string;
|
|
68
57
|
interestedInCharityInitiative?: boolean;
|
|
58
|
+
inviteAtLeastFiveStallholders: boolean;
|
|
59
|
+
manageApplicationsAndCommunication: boolean;
|
|
60
|
+
organizerExpectations?: string;
|
|
61
|
+
registerMarketsFirstWeek: boolean;
|
|
62
|
+
spaceForClueMart?: boolean;
|
|
69
63
|
};
|
|
70
64
|
};
|
|
71
65
|
interface TesterFormData {
|
|
72
66
|
businessName: string;
|
|
67
|
+
consents: {
|
|
68
|
+
privacyConsent: boolean;
|
|
69
|
+
betaTestConsent: boolean;
|
|
70
|
+
};
|
|
73
71
|
email: string;
|
|
74
72
|
event?: TesterEvent | null;
|
|
75
73
|
firstName: string;
|
|
76
74
|
lastName: string;
|
|
77
75
|
mobilePhone: string;
|
|
78
76
|
osType: EnumOSPlatform;
|
|
79
|
-
privacyConsent: boolean;
|
|
80
77
|
region: string;
|
|
81
78
|
resourceType: EnumResourceType;
|
|
82
79
|
vendor?: TesterVendor | null;
|
|
@@ -29,19 +29,16 @@ type TesterVendor = {
|
|
|
29
29
|
sellingFrequency: VendorSellingFrequency;
|
|
30
30
|
yearlySellingApprox: number;
|
|
31
31
|
questionary: {
|
|
32
|
-
|
|
33
|
-
uploadStallProfileFirstWeek: boolean;
|
|
32
|
+
appearInVideoIntroduction?: boolean;
|
|
34
33
|
applyToAtLeastOneMarket: boolean;
|
|
35
|
-
tryVisitorFeatures: boolean;
|
|
36
34
|
completeFeedbackQuestionnaire: boolean;
|
|
37
|
-
|
|
35
|
+
excitementAboutApp?: string;
|
|
38
36
|
sendPhotoForSocialMedia?: boolean;
|
|
39
|
-
appearInVideoIntroduction?: boolean;
|
|
40
37
|
socialMediaFeatureReason?: string;
|
|
41
|
-
/** Open Questions */
|
|
42
|
-
excitementAboutApp?: string;
|
|
43
|
-
usefulnessExpectations?: string;
|
|
44
38
|
testingPeriodConcerns?: string;
|
|
39
|
+
tryVisitorFeatures: boolean;
|
|
40
|
+
uploadStallProfileFirstWeek: boolean;
|
|
41
|
+
usefulnessExpectations?: string;
|
|
45
42
|
};
|
|
46
43
|
};
|
|
47
44
|
type TesterEvent = {
|
|
@@ -54,29 +51,29 @@ type TesterEvent = {
|
|
|
54
51
|
averageStallCount: number;
|
|
55
52
|
}[];
|
|
56
53
|
questionary: {
|
|
57
|
-
/** Test Period Participation */
|
|
58
|
-
registerMarketsFirstWeek: boolean;
|
|
59
|
-
inviteAtLeastFiveStallholders: boolean;
|
|
60
|
-
manageApplicationsAndCommunication: boolean;
|
|
61
|
-
completeFinalQuestionnaire: boolean;
|
|
62
|
-
/** Promotion Support */
|
|
63
54
|
allowMarketingAppearance?: boolean;
|
|
64
|
-
|
|
65
|
-
/** Open Questions */
|
|
66
|
-
organizerExpectations?: string;
|
|
55
|
+
completeFinalQuestionnaire: boolean;
|
|
67
56
|
dailyCoordinationNeeds?: string;
|
|
68
57
|
interestedInCharityInitiative?: boolean;
|
|
58
|
+
inviteAtLeastFiveStallholders: boolean;
|
|
59
|
+
manageApplicationsAndCommunication: boolean;
|
|
60
|
+
organizerExpectations?: string;
|
|
61
|
+
registerMarketsFirstWeek: boolean;
|
|
62
|
+
spaceForClueMart?: boolean;
|
|
69
63
|
};
|
|
70
64
|
};
|
|
71
65
|
interface TesterFormData {
|
|
72
66
|
businessName: string;
|
|
67
|
+
consents: {
|
|
68
|
+
privacyConsent: boolean;
|
|
69
|
+
betaTestConsent: boolean;
|
|
70
|
+
};
|
|
73
71
|
email: string;
|
|
74
72
|
event?: TesterEvent | null;
|
|
75
73
|
firstName: string;
|
|
76
74
|
lastName: string;
|
|
77
75
|
mobilePhone: string;
|
|
78
76
|
osType: EnumOSPlatform;
|
|
79
|
-
privacyConsent: boolean;
|
|
80
77
|
region: string;
|
|
81
78
|
resourceType: EnumResourceType;
|
|
82
79
|
vendor?: TesterVendor | null;
|
|
@@ -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 = \"One\",\n TWO_TO_THREE = \"Two_to_Three\",\n FOUR_TO_FIVE = \"Four_to_Five\",\n MORE_THAN_FIVE = \"More_than_Five\",\n}\n\nexport enum VendorSellingFrequency {\n TWICE_A_WEEK = \"Two_to_Three_times_a_week\",\n ONCE_A_WEEK = \"Once_a_week\",\n ONE_TO_TWO_TIMES_A_MONTH = \"One_to_Two_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 appearInVideoIntroduction?: boolean; // Q15 (Yes / No)\n applyToAtLeastOneMarket: boolean; // Q11\n completeFeedbackQuestionnaire: boolean; // Q13\n excitementAboutApp?: string; // Q17\n sendPhotoForSocialMedia?: boolean; // Q14 (Yes / No)\n socialMediaFeatureReason?: string; // Q16 (optional free text)\n testingPeriodConcerns?: string; // Q19 (optional)\n tryVisitorFeatures: boolean; // Q12\n uploadStallProfileFirstWeek: boolean; // Q10\n usefulnessExpectations?: string; // Q18\n };\n};\n\nexport type TesterEvent = {\n /** Organizer background */\n organizedMarketCount: OrganizedMarketCount;\n markets: {\n name: string;\n cityOrVenue: string;\n frequency: OrganizerMarketFrequency;\n averageStallCount: number;\n }[];\n questionary: {\n allowMarketingAppearance?: boolean;\n completeFinalQuestionnaire: boolean;\n dailyCoordinationNeeds?: string;\n interestedInCharityInitiative?: boolean;\n inviteAtLeastFiveStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n organizerExpectations?: string;\n registerMarketsFirstWeek: boolean;\n spaceForClueMart?: boolean;\n };\n};\n\nexport interface TesterFormData {\n businessName: string;\n consents: {\n privacyConsent: boolean;\n betaTestConsent: boolean;\n };\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.cjs
CHANGED
|
@@ -187,13 +187,23 @@ var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
`;
|
|
190
|
+
var LICENCE_FIELDS_FRAGMENT = import_client2.gql`
|
|
191
|
+
fragment LicenceFields on UserLicenceType {
|
|
192
|
+
expiryDate
|
|
193
|
+
issuedDate
|
|
194
|
+
licenceType
|
|
195
|
+
}
|
|
196
|
+
`;
|
|
190
197
|
var ASSOCIATES_FIELDS_FRAGMENT = import_client2.gql`
|
|
191
198
|
fragment AssociatesFields on AssociateType {
|
|
192
199
|
email
|
|
193
200
|
resourceId
|
|
194
201
|
resourceType
|
|
195
|
-
licence
|
|
202
|
+
licence {
|
|
203
|
+
...LicenceFields
|
|
204
|
+
}
|
|
196
205
|
}
|
|
206
|
+
${LICENCE_FIELDS_FRAGMENT}
|
|
197
207
|
`;
|
|
198
208
|
var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
|
|
199
209
|
fragment TermsAgreementFields on TermsAgreementType {
|
|
@@ -211,13 +221,6 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
211
221
|
timestamp
|
|
212
222
|
}
|
|
213
223
|
`;
|
|
214
|
-
var LICENCE_FIELDS_FRAGMENT = import_client2.gql`
|
|
215
|
-
fragment LicenceFields on UserLicenceType {
|
|
216
|
-
expiryDate
|
|
217
|
-
issuedDate
|
|
218
|
-
licenceType
|
|
219
|
-
}
|
|
220
|
-
`;
|
|
221
224
|
var EVENT_DATETIME_FIELDS_FRAGMENT = import_client2.gql`
|
|
222
225
|
fragment EventDateTimeFields on EventDateTimeType {
|
|
223
226
|
dateStatus
|
|
@@ -558,13 +561,16 @@ var TESTER_FIELDS_FRAGMENT = import_client4.gql`
|
|
|
558
561
|
active
|
|
559
562
|
approved
|
|
560
563
|
businessName
|
|
564
|
+
consents {
|
|
565
|
+
betaTestConsent
|
|
566
|
+
privacyConsent
|
|
567
|
+
}
|
|
561
568
|
createdAt
|
|
562
569
|
email
|
|
563
570
|
firstName
|
|
564
571
|
lastName
|
|
565
572
|
mobilePhone
|
|
566
573
|
osType
|
|
567
|
-
privacyConsent
|
|
568
574
|
region
|
|
569
575
|
resourceType
|
|
570
576
|
updatedAt
|