@timardex/cluemart-shared 1.7.0 → 1.7.2
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-BUYzE6zx.d.ts +181 -0
- package/dist/ad-BhLoEul3.d.mts +181 -0
- package/dist/affiliate-BbtjeUP4.d.mts +73 -0
- package/dist/affiliate-C51nzKsw.d.ts +73 -0
- package/dist/apollo/index.cjs +1383 -0
- package/dist/apollo/index.cjs.map +1 -0
- package/dist/apollo/index.d.mts +323 -0
- package/dist/apollo/index.d.ts +323 -0
- package/dist/apollo/index.mjs +1295 -0
- package/dist/apollo/index.mjs.map +1 -0
- package/dist/auth/index.cjs +1727 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.mts +166 -0
- package/dist/auth/index.d.ts +166 -0
- package/dist/auth/index.mjs +380 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/chunk-32MKHJTX.mjs +1207 -0
- package/dist/chunk-32MKHJTX.mjs.map +1 -0
- package/dist/{chunk-HZMP7GXC.mjs → chunk-447EYKHL.mjs} +1010 -2671
- package/dist/chunk-447EYKHL.mjs.map +1 -0
- package/dist/{chunk-RKIRWZCH.mjs → chunk-AYO3E4DM.mjs} +39 -183
- package/dist/chunk-AYO3E4DM.mjs.map +1 -0
- package/dist/{chunk-ZZJSCYJK.mjs → chunk-BIJ5NDXW.mjs} +46 -42
- package/dist/chunk-BIJ5NDXW.mjs.map +1 -0
- package/dist/chunk-DQ7ZHIXW.mjs +26 -0
- package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
- package/dist/{chunk-MVQ3CFQR.mjs → chunk-ILILH7E2.mjs} +12 -23
- package/dist/chunk-ILILH7E2.mjs.map +1 -0
- package/dist/{chunk-TAECMXM4.mjs → chunk-LBEJECG3.mjs} +249 -219
- package/dist/{chunk-TAECMXM4.mjs.map → chunk-LBEJECG3.mjs.map} +1 -1
- package/dist/chunk-RAYUJODN.mjs +45 -0
- package/dist/chunk-RAYUJODN.mjs.map +1 -0
- package/dist/chunk-SD42WIMV.mjs +297 -0
- package/dist/chunk-SD42WIMV.mjs.map +1 -0
- package/dist/chunk-VPANTTZI.mjs +262 -0
- package/dist/chunk-VPANTTZI.mjs.map +1 -0
- package/dist/{chunk-KZTOISPA.mjs → chunk-X3OLM35T.mjs} +14 -8
- package/dist/chunk-X3OLM35T.mjs.map +1 -0
- package/dist/{contactUs-H7799pWe.d.ts → contactUs--NoohZBu.d.ts} +1 -1
- package/dist/{contactUs-DGrDzJaM.d.mts → contactUs-CBWzefUS.d.mts} +1 -1
- package/dist/enums/index.cjs +13 -7
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +15 -9
- package/dist/enums/index.d.ts +15 -9
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +136 -73
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -2
- package/dist/formFields/index.d.ts +3 -2
- package/dist/formFields/index.mjs +9 -4
- package/dist/{global-fKbMmluy.d.ts → global-CUYYxpy2.d.ts} +12 -11
- package/dist/{global-BUUfmCo7.d.mts → global-DePDtOFt.d.mts} +12 -11
- package/dist/graphql/index.cjs +734 -1271
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +434 -176
- package/dist/graphql/index.d.ts +434 -176
- package/dist/graphql/index.mjs +37 -23
- package/dist/hooks/index.cjs +947 -309
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +10 -4
- package/dist/hooks/index.d.ts +10 -4
- package/dist/hooks/index.mjs +170 -58
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/apple-maps-icon.webp.d.ts +8 -1
- package/dist/images/banner-horizontal.webp.d.ts +8 -1
- package/dist/images/banner-vertical.webp.d.ts +8 -1
- package/dist/images/cluiTui.webp.d.ts +8 -1
- package/dist/images/corporate.webp.d.ts +8 -1
- package/dist/images/facebook.webp.d.ts +8 -1
- package/dist/images/gazebo-top.webp.d.ts +8 -1
- package/dist/images/google-maps-icon.webp.d.ts +8 -1
- package/dist/images/googleMaps-logo-dark.webp.d.ts +8 -1
- package/dist/images/googleMaps-logo-light.webp.d.ts +8 -1
- package/dist/images/instagram.webp.d.ts +8 -1
- package/dist/images/logo-atr.webp.d.ts +8 -1
- package/dist/images/logo-dark.webp.d.ts +8 -1
- package/dist/images/logo.webp.d.ts +8 -1
- package/dist/images/meet.webp.d.ts +8 -1
- package/dist/images/mini-market1.webp.d.ts +8 -1
- package/dist/images/mini-market2.webp.d.ts +8 -1
- package/dist/images/mini-market3.webp.d.ts +8 -1
- package/dist/images/mini-market4.webp.d.ts +8 -1
- package/dist/images/mini-market5.webp.d.ts +8 -1
- package/dist/images/poll.webp.d.ts +8 -1
- package/dist/images/poster1.webp.d.ts +8 -1
- package/dist/images/poster2.webp.d.ts +8 -1
- package/dist/images/poster3.webp.d.ts +8 -1
- package/dist/images/poster4.webp.d.ts +8 -1
- package/dist/images/private.webp.d.ts +8 -1
- package/dist/images/qr-code.webp.d.ts +8 -1
- package/dist/images/school.webp.d.ts +8 -1
- package/dist/images/sima.webp.d.ts +8 -1
- package/dist/images/store-android.webp.d.ts +8 -1
- package/dist/images/store-ios.webp.d.ts +8 -1
- package/dist/images/tablas.webp.d.ts +8 -1
- package/dist/images/telefonos.webp.d.ts +8 -1
- package/dist/images/tiktok.webp.d.ts +8 -1
- package/dist/images/tip.webp.d.ts +8 -1
- package/dist/images/ugralos.webp.d.ts +8 -1
- package/dist/images/waze-maps-icon.webp.d.ts +8 -1
- package/dist/images/website.webp.d.ts +8 -1
- package/dist/images/youtube.webp.d.ts +8 -1
- package/dist/index.cjs +1751 -1781
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +665 -243
- package/dist/index.d.ts +665 -243
- package/dist/index.mjs +1711 -1779
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.cjs +14 -9
- package/dist/map/index.cjs.map +1 -1
- package/dist/map/index.d.mts +16 -13
- package/dist/map/index.d.ts +16 -13
- package/dist/map/index.mjs +14 -9
- package/dist/map/index.mjs.map +1 -1
- package/dist/{resourceActivities-BL_12IAo.d.ts → resourceActivities-CMUcn2P7.d.ts} +9 -4
- package/dist/{resourceActivities-zczOntNk.d.mts → resourceActivities-CwbJFGIp.d.mts} +9 -4
- package/dist/sharing/index.cjs +39 -1252
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +17 -5
- package/dist/sharing/index.d.ts +17 -5
- package/dist/sharing/index.mjs +34 -30
- package/dist/subscription-BU8GvH2K.d.ts +12 -0
- package/dist/subscription-bmAdrnfi.d.mts +12 -0
- package/dist/types/index.cjs +15 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +10 -23
- package/dist/types/index.d.ts +10 -23
- package/dist/types/index.mjs +9 -5
- package/dist/user-D47MLFyH.d.ts +134 -0
- package/dist/user-DE8edl3u.d.mts +134 -0
- package/dist/utils/index.cjs +355 -136
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +87 -35
- package/dist/utils/index.d.ts +87 -35
- package/dist/utils/index.mjs +42 -15
- package/package.json +31 -10
- package/dist/ad-CVkVX_z5.d.ts +0 -296
- package/dist/ad-DA9ECAhK.d.mts +0 -296
- package/dist/affiliate-1RtkLnLP.d.ts +0 -35
- package/dist/affiliate-Cos2Syz5.d.mts +0 -35
- package/dist/chunk-HZMP7GXC.mjs.map +0 -1
- package/dist/chunk-KZTOISPA.mjs.map +0 -1
- package/dist/chunk-MVQ3CFQR.mjs.map +0 -1
- package/dist/chunk-RKIRWZCH.mjs.map +0 -1
- package/dist/chunk-ZZJSCYJK.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-DePDtOFt.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -78,7 +78,8 @@ declare const contactUsFields: FormField[];
|
|
|
78
78
|
|
|
79
79
|
declare const emailField: FormField;
|
|
80
80
|
declare const companyContactFields: FormField[];
|
|
81
|
+
declare const bankAccountDetailsFields: FormField[];
|
|
81
82
|
|
|
82
83
|
declare const partnerBasicInfoFields: FormField[];
|
|
83
84
|
|
|
84
|
-
export { availableCategories, availableTagTypes, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
85
|
+
export { availableCategories, availableTagTypes, bankAccountDetailsFields, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-CUYYxpy2.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -78,7 +78,8 @@ declare const contactUsFields: FormField[];
|
|
|
78
78
|
|
|
79
79
|
declare const emailField: FormField;
|
|
80
80
|
declare const companyContactFields: FormField[];
|
|
81
|
+
declare const bankAccountDetailsFields: FormField[];
|
|
81
82
|
|
|
82
83
|
declare const partnerBasicInfoFields: FormField[];
|
|
83
84
|
|
|
84
|
-
export { availableCategories, availableTagTypes, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
85
|
+
export { availableCategories, availableTagTypes, bankAccountDetailsFields, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
availableTagTypes,
|
|
3
|
+
bankAccountDetailsFields,
|
|
3
4
|
companyContactFields,
|
|
4
5
|
contactUsFields,
|
|
5
6
|
emailField,
|
|
@@ -41,16 +42,20 @@ import {
|
|
|
41
42
|
vendorStallSize,
|
|
42
43
|
vendorStartDateFields,
|
|
43
44
|
vendorTable
|
|
44
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-BIJ5NDXW.mjs";
|
|
45
46
|
import {
|
|
46
47
|
availableCategories,
|
|
47
48
|
categoryColors
|
|
48
|
-
} from "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
49
|
+
} from "../chunk-LBEJECG3.mjs";
|
|
50
|
+
import "../chunk-SD42WIMV.mjs";
|
|
51
|
+
import "../chunk-ILILH7E2.mjs";
|
|
52
|
+
import "../chunk-RAYUJODN.mjs";
|
|
53
|
+
import "../chunk-DQ7ZHIXW.mjs";
|
|
54
|
+
import "../chunk-X3OLM35T.mjs";
|
|
51
55
|
export {
|
|
52
56
|
availableCategories,
|
|
53
57
|
availableTagTypes,
|
|
58
|
+
bankAccountDetailsFields,
|
|
54
59
|
categoryColors,
|
|
55
60
|
companyContactFields,
|
|
56
61
|
contactUsFields,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
|
|
2
|
-
import {
|
|
2
|
+
import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia } from './enums/index.js';
|
|
3
3
|
|
|
4
4
|
type RelationDate = {
|
|
5
5
|
dateTime: DateTimeType & {
|
|
@@ -96,7 +96,7 @@ interface EventType extends BaseResourceType {
|
|
|
96
96
|
sharePublic?: SocialShareResourceType | null;
|
|
97
97
|
shareRelation?: SocialShareResourceType | null;
|
|
98
98
|
}
|
|
99
|
-
type EventListItemType = Omit<EventType, "adIds" | "
|
|
99
|
+
type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
|
|
100
100
|
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
101
101
|
_id: string;
|
|
102
102
|
active?: boolean;
|
|
@@ -373,6 +373,7 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
|
373
373
|
};
|
|
374
374
|
type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
|
|
375
375
|
_id: string;
|
|
376
|
+
approvedAt?: Date | null;
|
|
376
377
|
content: PostContentType[];
|
|
377
378
|
createdAt: Date;
|
|
378
379
|
deletedAt: Date | null;
|
|
@@ -500,6 +501,11 @@ type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;
|
|
|
500
501
|
type Nullable<T> = {
|
|
501
502
|
[K in keyof T]: T[K] | null | undefined;
|
|
502
503
|
};
|
|
504
|
+
/** Uniform mutation response envelope used across GraphQL mutations. */
|
|
505
|
+
type MutationResponse<T> = {
|
|
506
|
+
data: T | null;
|
|
507
|
+
message: string | null;
|
|
508
|
+
};
|
|
503
509
|
type DeviceInfo = {
|
|
504
510
|
appBuildNumber: string;
|
|
505
511
|
appId: string;
|
|
@@ -536,12 +542,6 @@ type UserLicenceType = {
|
|
|
536
542
|
licenceType: EnumUserLicence;
|
|
537
543
|
prevLicenceType?: EnumUserLicence | null;
|
|
538
544
|
};
|
|
539
|
-
type AssociateType = {
|
|
540
|
-
email: string;
|
|
541
|
-
resourceId: string;
|
|
542
|
-
resourceType: EnumResourceType;
|
|
543
|
-
licence: UserLicenceType;
|
|
544
|
-
};
|
|
545
545
|
type OwnerType = {
|
|
546
546
|
email: string;
|
|
547
547
|
userId: string;
|
|
@@ -549,7 +549,6 @@ type OwnerType = {
|
|
|
549
549
|
interface BaseResourceTypeFormData {
|
|
550
550
|
_id?: string;
|
|
551
551
|
active: boolean;
|
|
552
|
-
associates: AssociateType[] | null;
|
|
553
552
|
contactDetails: ResourceContactDetailsType | null;
|
|
554
553
|
cover: ResourceImageType;
|
|
555
554
|
coverUpload?: ResourceImageType | null;
|
|
@@ -559,7 +558,6 @@ interface BaseResourceTypeFormData {
|
|
|
559
558
|
logo?: ResourceImageType | null;
|
|
560
559
|
logoUpload?: ResourceImageType | null;
|
|
561
560
|
name: string;
|
|
562
|
-
owner?: OwnerType | null;
|
|
563
561
|
promoCodes?: PromoCodeType[] | null;
|
|
564
562
|
region: string;
|
|
565
563
|
socialMedia: SocialMediaType[] | null;
|
|
@@ -570,6 +568,7 @@ type PosterUsageType = {
|
|
|
570
568
|
count: number;
|
|
571
569
|
};
|
|
572
570
|
type RelatedPostType = {
|
|
571
|
+
postActive: boolean;
|
|
573
572
|
postId: string;
|
|
574
573
|
postSlug: string;
|
|
575
574
|
postType: EnumPostType;
|
|
@@ -581,8 +580,10 @@ type SocialShareResourceType = {
|
|
|
581
580
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
582
581
|
_id: string;
|
|
583
582
|
adIds?: string[] | null;
|
|
583
|
+
approvedAt?: Date | null;
|
|
584
584
|
createdAt: Date;
|
|
585
585
|
deletedAt: Date | null;
|
|
586
|
+
owner: OwnerType;
|
|
586
587
|
posterUsage?: PosterUsageType | null;
|
|
587
588
|
rating?: number | null;
|
|
588
589
|
relatedPost?: RelatedPostType | null;
|
|
@@ -695,4 +696,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
695
696
|
offset?: number;
|
|
696
697
|
}
|
|
697
698
|
|
|
698
|
-
export { type
|
|
699
|
+
export { type GamePlacement as $, type BaseGameType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type MutationResponse as M, type DateTimeWithPriceType as N, type OptionItem as O, type PosterUsageType as P, type DeviceInfo as Q, type RefundPolicy as R, type StallType as S, EnumGameStatus as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumGameType as W, EnumPostContentType as X, type EventStatusType as Y, type GameDate as Z, type GameHistory as _, type FormDateField as a, type GamePlacementClue as a0, type GameType as a1, type GeocodeLocation as a2, type GlobalGameData as a3, type ImageObjectType as a4, type LocationGeoType as a5, type Nullable as a6, type OwnerType as a7, PROMO_CODE_PREFIX as a8, type PaymentInfoType as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentData as aa, type PostContentFormData as ab, type PostContentGame as ac, type PostContentImage as ad, type PostContentList as ae, type PostContentTextarea as af, type PostContentType as ag, type PostContentVideo as ah, type PostFileInput as ai, type PostResource as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, type PostType as j, EnumPostType as k, type GameLeaderboard as l, type VendorFormData as m, type CreateVendorFormData as n, type VendorInfoFormData as o, type CreateVendorInfoFormData as p, type UnregisteredVendorFormData as q, type CreateUnregisteredVendorFormData as r, type EventFormData as s, type CreateEventFormData as t, type EventInfoFormData as u, type CreateEventInfoFormData as v, type PostFormData as w, type CreatePostFormData as x, type Region as y, type BaseGameMap as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
|
|
2
|
-
import {
|
|
2
|
+
import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia } from './enums/index.mjs';
|
|
3
3
|
|
|
4
4
|
type RelationDate = {
|
|
5
5
|
dateTime: DateTimeType & {
|
|
@@ -96,7 +96,7 @@ interface EventType extends BaseResourceType {
|
|
|
96
96
|
sharePublic?: SocialShareResourceType | null;
|
|
97
97
|
shareRelation?: SocialShareResourceType | null;
|
|
98
98
|
}
|
|
99
|
-
type EventListItemType = Omit<EventType, "adIds" | "
|
|
99
|
+
type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
|
|
100
100
|
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
101
101
|
_id: string;
|
|
102
102
|
active?: boolean;
|
|
@@ -373,6 +373,7 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
|
373
373
|
};
|
|
374
374
|
type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
|
|
375
375
|
_id: string;
|
|
376
|
+
approvedAt?: Date | null;
|
|
376
377
|
content: PostContentType[];
|
|
377
378
|
createdAt: Date;
|
|
378
379
|
deletedAt: Date | null;
|
|
@@ -500,6 +501,11 @@ type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;
|
|
|
500
501
|
type Nullable<T> = {
|
|
501
502
|
[K in keyof T]: T[K] | null | undefined;
|
|
502
503
|
};
|
|
504
|
+
/** Uniform mutation response envelope used across GraphQL mutations. */
|
|
505
|
+
type MutationResponse<T> = {
|
|
506
|
+
data: T | null;
|
|
507
|
+
message: string | null;
|
|
508
|
+
};
|
|
503
509
|
type DeviceInfo = {
|
|
504
510
|
appBuildNumber: string;
|
|
505
511
|
appId: string;
|
|
@@ -536,12 +542,6 @@ type UserLicenceType = {
|
|
|
536
542
|
licenceType: EnumUserLicence;
|
|
537
543
|
prevLicenceType?: EnumUserLicence | null;
|
|
538
544
|
};
|
|
539
|
-
type AssociateType = {
|
|
540
|
-
email: string;
|
|
541
|
-
resourceId: string;
|
|
542
|
-
resourceType: EnumResourceType;
|
|
543
|
-
licence: UserLicenceType;
|
|
544
|
-
};
|
|
545
545
|
type OwnerType = {
|
|
546
546
|
email: string;
|
|
547
547
|
userId: string;
|
|
@@ -549,7 +549,6 @@ type OwnerType = {
|
|
|
549
549
|
interface BaseResourceTypeFormData {
|
|
550
550
|
_id?: string;
|
|
551
551
|
active: boolean;
|
|
552
|
-
associates: AssociateType[] | null;
|
|
553
552
|
contactDetails: ResourceContactDetailsType | null;
|
|
554
553
|
cover: ResourceImageType;
|
|
555
554
|
coverUpload?: ResourceImageType | null;
|
|
@@ -559,7 +558,6 @@ interface BaseResourceTypeFormData {
|
|
|
559
558
|
logo?: ResourceImageType | null;
|
|
560
559
|
logoUpload?: ResourceImageType | null;
|
|
561
560
|
name: string;
|
|
562
|
-
owner?: OwnerType | null;
|
|
563
561
|
promoCodes?: PromoCodeType[] | null;
|
|
564
562
|
region: string;
|
|
565
563
|
socialMedia: SocialMediaType[] | null;
|
|
@@ -570,6 +568,7 @@ type PosterUsageType = {
|
|
|
570
568
|
count: number;
|
|
571
569
|
};
|
|
572
570
|
type RelatedPostType = {
|
|
571
|
+
postActive: boolean;
|
|
573
572
|
postId: string;
|
|
574
573
|
postSlug: string;
|
|
575
574
|
postType: EnumPostType;
|
|
@@ -581,8 +580,10 @@ type SocialShareResourceType = {
|
|
|
581
580
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
582
581
|
_id: string;
|
|
583
582
|
adIds?: string[] | null;
|
|
583
|
+
approvedAt?: Date | null;
|
|
584
584
|
createdAt: Date;
|
|
585
585
|
deletedAt: Date | null;
|
|
586
|
+
owner: OwnerType;
|
|
586
587
|
posterUsage?: PosterUsageType | null;
|
|
587
588
|
rating?: number | null;
|
|
588
589
|
relatedPost?: RelatedPostType | null;
|
|
@@ -695,4 +696,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
695
696
|
offset?: number;
|
|
696
697
|
}
|
|
697
698
|
|
|
698
|
-
export { type
|
|
699
|
+
export { type GamePlacement as $, type BaseGameType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type MutationResponse as M, type DateTimeWithPriceType as N, type OptionItem as O, type PosterUsageType as P, type DeviceInfo as Q, type RefundPolicy as R, type StallType as S, EnumGameStatus as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumGameType as W, EnumPostContentType as X, type EventStatusType as Y, type GameDate as Z, type GameHistory as _, type FormDateField as a, type GamePlacementClue as a0, type GameType as a1, type GeocodeLocation as a2, type GlobalGameData as a3, type ImageObjectType as a4, type LocationGeoType as a5, type Nullable as a6, type OwnerType as a7, PROMO_CODE_PREFIX as a8, type PaymentInfoType as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentData as aa, type PostContentFormData as ab, type PostContentGame as ac, type PostContentImage as ad, type PostContentList as ae, type PostContentTextarea as af, type PostContentType as ag, type PostContentVideo as ah, type PostFileInput as ai, type PostResource as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, type PostType as j, EnumPostType as k, type GameLeaderboard as l, type VendorFormData as m, type CreateVendorFormData as n, type VendorInfoFormData as o, type CreateVendorInfoFormData as p, type UnregisteredVendorFormData as q, type CreateUnregisteredVendorFormData as r, type EventFormData as s, type CreateEventFormData as t, type EventInfoFormData as u, type CreateEventInfoFormData as v, type PostFormData as w, type CreatePostFormData as x, type Region as y, type BaseGameMap as z };
|