@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
package/dist/index.d.mts
CHANGED
|
@@ -77,9 +77,11 @@ declare enum EnumFoodType {
|
|
|
77
77
|
VEGETARIAN = "Vegetarian"
|
|
78
78
|
}
|
|
79
79
|
declare enum EnumResourceType {
|
|
80
|
+
AFFILIATE = "affiliate",
|
|
80
81
|
EVENT = "event",
|
|
81
82
|
VENDOR = "vendor",
|
|
82
|
-
PARTNER = "partner"
|
|
83
|
+
PARTNER = "partner",
|
|
84
|
+
SCHOOL = "school"
|
|
83
85
|
}
|
|
84
86
|
declare enum EnumEventType {
|
|
85
87
|
MARKET = "Market",
|
|
@@ -108,11 +110,11 @@ declare enum EnumRelationResource {
|
|
|
108
110
|
VENDOR_APPLICATION_TO_EVENT = "vendor_application_to_event"
|
|
109
111
|
}
|
|
110
112
|
declare enum EnumNotificationResourceType {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
ADDED_AS_ASSOCIATE_VENDOR = "added_as_associate_vendor",
|
|
113
|
+
APPROVED_AFFILIATE = "approved_affiliate",
|
|
114
|
+
AFFILIATE_REWARD_RECEIVED = "affiliate_reward_received",
|
|
114
115
|
APPROVED_EVENT = "approved_event",
|
|
115
116
|
APPROVED_PARTNER = "approved_partner",
|
|
117
|
+
APPROVED_SCHOOL = "approved_school",
|
|
116
118
|
APPROVED_VENDOR = "approved_vendor",
|
|
117
119
|
CREATED_EVENT = "created_event",
|
|
118
120
|
CREATED_PARTNER = "created_partner",
|
|
@@ -175,15 +177,19 @@ declare enum EnumUserLicence {
|
|
|
175
177
|
PRO_VENDOR = "pro_vendor",
|
|
176
178
|
STANDARD_EVENT = "standard_event",
|
|
177
179
|
STANDARD_VENDOR = "standard_vendor",
|
|
178
|
-
STANDARD_PARTNER = "standard_partner"
|
|
180
|
+
STANDARD_PARTNER = "standard_partner",
|
|
181
|
+
STANDARD_AFFILIATE = "standard_affiliate",
|
|
182
|
+
STANDARD_SCHOOL = "standard_school"
|
|
179
183
|
}
|
|
180
184
|
declare enum EnumUserRole {
|
|
181
185
|
ADMIN = "admin",
|
|
186
|
+
AFFILIATE = "affiliate",
|
|
182
187
|
CUSTOMER = "customer",
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
188
|
+
EVENT = "event",
|
|
189
|
+
PARTNER = "partner",
|
|
190
|
+
SCHOOL = "school",
|
|
191
|
+
SUPER_ADMIN = "super_admin",
|
|
192
|
+
VENDOR = "vendor"
|
|
187
193
|
}
|
|
188
194
|
declare enum EnumSocialMedia {
|
|
189
195
|
FACEBOOK = "facebook",
|
|
@@ -320,7 +326,7 @@ interface EventType extends BaseResourceType {
|
|
|
320
326
|
sharePublic?: SocialShareResourceType | null;
|
|
321
327
|
shareRelation?: SocialShareResourceType | null;
|
|
322
328
|
}
|
|
323
|
-
type EventListItemType = Omit<EventType, "adIds" | "
|
|
329
|
+
type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
|
|
324
330
|
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
325
331
|
_id: string;
|
|
326
332
|
active?: boolean;
|
|
@@ -597,6 +603,7 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
|
597
603
|
};
|
|
598
604
|
type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
|
|
599
605
|
_id: string;
|
|
606
|
+
approvedAt?: Date | null;
|
|
600
607
|
content: PostContentType[];
|
|
601
608
|
createdAt: Date;
|
|
602
609
|
deletedAt: Date | null;
|
|
@@ -724,6 +731,11 @@ type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;
|
|
|
724
731
|
type Nullable<T> = {
|
|
725
732
|
[K in keyof T]: T[K] | null | undefined;
|
|
726
733
|
};
|
|
734
|
+
/** Uniform mutation response envelope used across GraphQL mutations. */
|
|
735
|
+
type MutationResponse<T> = {
|
|
736
|
+
data: T | null;
|
|
737
|
+
message: string | null;
|
|
738
|
+
};
|
|
727
739
|
type DeviceInfo = {
|
|
728
740
|
appBuildNumber: string;
|
|
729
741
|
appId: string;
|
|
@@ -760,12 +772,6 @@ type UserLicenceType = {
|
|
|
760
772
|
licenceType: EnumUserLicence;
|
|
761
773
|
prevLicenceType?: EnumUserLicence | null;
|
|
762
774
|
};
|
|
763
|
-
type AssociateType = {
|
|
764
|
-
email: string;
|
|
765
|
-
resourceId: string;
|
|
766
|
-
resourceType: EnumResourceType;
|
|
767
|
-
licence: UserLicenceType;
|
|
768
|
-
};
|
|
769
775
|
type OwnerType = {
|
|
770
776
|
email: string;
|
|
771
777
|
userId: string;
|
|
@@ -773,7 +779,6 @@ type OwnerType = {
|
|
|
773
779
|
interface BaseResourceTypeFormData {
|
|
774
780
|
_id?: string;
|
|
775
781
|
active: boolean;
|
|
776
|
-
associates: AssociateType[] | null;
|
|
777
782
|
contactDetails: ResourceContactDetailsType | null;
|
|
778
783
|
cover: ResourceImageType;
|
|
779
784
|
coverUpload?: ResourceImageType | null;
|
|
@@ -783,7 +788,6 @@ interface BaseResourceTypeFormData {
|
|
|
783
788
|
logo?: ResourceImageType | null;
|
|
784
789
|
logoUpload?: ResourceImageType | null;
|
|
785
790
|
name: string;
|
|
786
|
-
owner?: OwnerType | null;
|
|
787
791
|
promoCodes?: PromoCodeType[] | null;
|
|
788
792
|
region: string;
|
|
789
793
|
socialMedia: SocialMediaType[] | null;
|
|
@@ -794,6 +798,7 @@ type PosterUsageType = {
|
|
|
794
798
|
count: number;
|
|
795
799
|
};
|
|
796
800
|
type RelatedPostType = {
|
|
801
|
+
postActive: boolean;
|
|
797
802
|
postId: string;
|
|
798
803
|
postSlug: string;
|
|
799
804
|
postType: EnumPostType;
|
|
@@ -805,8 +810,10 @@ type SocialShareResourceType = {
|
|
|
805
810
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
806
811
|
_id: string;
|
|
807
812
|
adIds?: string[] | null;
|
|
813
|
+
approvedAt?: Date | null;
|
|
808
814
|
createdAt: Date;
|
|
809
815
|
deletedAt: Date | null;
|
|
816
|
+
owner: OwnerType;
|
|
810
817
|
posterUsage?: PosterUsageType | null;
|
|
811
818
|
rating?: number | null;
|
|
812
819
|
relatedPost?: RelatedPostType | null;
|
|
@@ -941,6 +948,58 @@ interface AdminUpdateResourceType {
|
|
|
941
948
|
resourceType: EnumResourceType;
|
|
942
949
|
}
|
|
943
950
|
|
|
951
|
+
/** Roles allowed to sign into the admin web app (CUSTOMER-only is denied). */
|
|
952
|
+
declare const ADMIN_APP_ROLES: readonly [EnumUserRole.SUPER_ADMIN, EnumUserRole.ADMIN, EnumUserRole.EVENT, EnumUserRole.VENDOR, EnumUserRole.PARTNER, EnumUserRole.SCHOOL, EnumUserRole.AFFILIATE];
|
|
953
|
+
type AdminAppRole = (typeof ADMIN_APP_ROLES)[number];
|
|
954
|
+
type AdminDashboardContext = "staff" | "event" | "vendor" | "partner" | "school" | "affiliate";
|
|
955
|
+
type AdminDashboardContextInfo = {
|
|
956
|
+
context: AdminDashboardContext;
|
|
957
|
+
home: string;
|
|
958
|
+
label: string;
|
|
959
|
+
/** Path prefixes that belong to this context (including home). */
|
|
960
|
+
pathPrefixes: readonly string[];
|
|
961
|
+
roles: readonly EnumUserRole[];
|
|
962
|
+
};
|
|
963
|
+
/**
|
|
964
|
+
* Priority order for default home + role switcher.
|
|
965
|
+
* Staff first, then product roles.
|
|
966
|
+
*/
|
|
967
|
+
declare const ADMIN_DASHBOARD_CONTEXTS: readonly AdminDashboardContextInfo[];
|
|
968
|
+
declare function canAccessAdminApp(roles: EnumUserRole[] | null | undefined): boolean;
|
|
969
|
+
declare function getUsableAdminContexts(roles: EnumUserRole[] | null | undefined): AdminDashboardContextInfo[];
|
|
970
|
+
declare function getDefaultAdminHome(roles: EnumUserRole[] | null | undefined, preferredContext?: AdminDashboardContext | null): string;
|
|
971
|
+
declare function resolveAdminContextFromPath(pathname: string): AdminDashboardContext | null;
|
|
972
|
+
declare function canAccessAdminPath(roles: EnumUserRole[] | null | undefined, pathname: string): boolean;
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Canonical permission IDs. Add new permissions here first, then map them in
|
|
976
|
+
* ROLE_PERMISSIONS. Prefer resource.action names (e.g. users.read).
|
|
977
|
+
*/
|
|
978
|
+
declare const PERMISSIONS: readonly ["*", "dashboard.admin", "dashboard.affiliate", "dashboard.customer", "dashboard.event", "dashboard.partner", "dashboard.school", "dashboard.vendor", "users.delete", "users.read", "users.update", "events.create", "events.delete", "events.read", "events.update", "vendors.create", "vendors.delete", "vendors.read", "vendors.update", "partners.create", "partners.delete", "partners.read", "partners.update", "schools.create", "schools.delete", "schools.read", "schools.update", "affiliates.create", "affiliates.delete", "affiliates.read", "affiliates.update", "ads.create", "ads.delete", "ads.read", "ads.update", "posts.create", "posts.delete", "posts.read", "posts.update", "settings.read", "settings.update", "affiliates.manage_own", "events.manage_own", "partners.manage_own", "schools.manage_own", "vendors.manage_own"];
|
|
979
|
+
type Permission = (typeof PERMISSIONS)[number];
|
|
980
|
+
declare const WILDCARD_PERMISSION: Permission;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* Union of permissions for the given roles (deduped, stable order).
|
|
984
|
+
*/
|
|
985
|
+
declare function getPermissionsForRoles(roles: EnumUserRole[] | null | undefined): Permission[];
|
|
986
|
+
/**
|
|
987
|
+
* Check a concrete permission list (e.g. authUser.permissions) for a grant.
|
|
988
|
+
* Honours the "*" wildcard.
|
|
989
|
+
*/
|
|
990
|
+
declare function permissionListIncludes(permissions: readonly Permission[] | null | undefined, permission: Permission): boolean;
|
|
991
|
+
declare function hasPermission(roles: EnumUserRole[] | null | undefined, permission: Permission): boolean;
|
|
992
|
+
declare function hasAnyPermission(roles: EnumUserRole[] | null | undefined, permissions: readonly Permission[]): boolean;
|
|
993
|
+
declare function hasAllPermissions(roles: EnumUserRole[] | null | undefined, permissions: readonly Permission[]): boolean;
|
|
994
|
+
declare function hasRole(roles: EnumUserRole[] | null | undefined, role: EnumUserRole): boolean;
|
|
995
|
+
declare function hasAnyRole(roles: EnumUserRole[] | null | undefined, checkRoles: readonly EnumUserRole[]): boolean;
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Static role → permissions map. Source of truth for access.
|
|
999
|
+
* Permissions for a user = union of all their roles' lists.
|
|
1000
|
+
*/
|
|
1001
|
+
declare const ROLE_PERMISSIONS: Record<EnumUserRole, readonly Permission[]>;
|
|
1002
|
+
|
|
944
1003
|
type UserFormData = {
|
|
945
1004
|
_id?: string;
|
|
946
1005
|
active: boolean;
|
|
@@ -955,7 +1014,6 @@ type UserFormData = {
|
|
|
955
1014
|
password?: string | null;
|
|
956
1015
|
platform?: EnumOSPlatform;
|
|
957
1016
|
preferredRegion: string;
|
|
958
|
-
role: EnumUserRole;
|
|
959
1017
|
termsAgreement?: TermsAgreement | null;
|
|
960
1018
|
};
|
|
961
1019
|
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
@@ -964,12 +1022,12 @@ type UserActivityEvent = {
|
|
|
964
1022
|
dateTime: DateTimeType;
|
|
965
1023
|
};
|
|
966
1024
|
type StripeSubscription = {
|
|
1025
|
+
currentPlan?: EnumUserLicence;
|
|
967
1026
|
customerId?: string;
|
|
968
|
-
|
|
1027
|
+
endDate?: Date;
|
|
1028
|
+
startDate?: Date;
|
|
969
1029
|
status?: EnumSubscriptionStatus;
|
|
970
|
-
|
|
971
|
-
startDate?: string;
|
|
972
|
-
endDate?: string;
|
|
1030
|
+
subscriptionId?: string;
|
|
973
1031
|
};
|
|
974
1032
|
type SubscriptionStatusData = {
|
|
975
1033
|
subscriptionId: string | null;
|
|
@@ -1024,8 +1082,9 @@ type RedeemRewardInput = {
|
|
|
1024
1082
|
};
|
|
1025
1083
|
type RedeemRewardResponse = {
|
|
1026
1084
|
userId: string;
|
|
1027
|
-
message: string;
|
|
1028
1085
|
};
|
|
1086
|
+
/** GraphQL envelope for `redeemReward`. */
|
|
1087
|
+
type RedeemRewardMutationResponse = MutationResponse<RedeemRewardResponse>;
|
|
1029
1088
|
type RedeemedReward = {
|
|
1030
1089
|
name: EnumReward;
|
|
1031
1090
|
pointsUsed: number;
|
|
@@ -1034,7 +1093,6 @@ type RedeemedReward = {
|
|
|
1034
1093
|
type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
|
|
1035
1094
|
_id: string;
|
|
1036
1095
|
affiliate?: string | null;
|
|
1037
|
-
associates?: AssociateType[] | null;
|
|
1038
1096
|
createdAt: Date;
|
|
1039
1097
|
deletedAt: Date | null;
|
|
1040
1098
|
events: string[] | null;
|
|
@@ -1042,14 +1100,18 @@ type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> &
|
|
|
1042
1100
|
licences: UserLicenceType[] | null;
|
|
1043
1101
|
overallPoints: number | null;
|
|
1044
1102
|
partner: string | null;
|
|
1103
|
+
/** Computed from roles via ROLE_PERMISSIONS — not stored in Mongo. */
|
|
1104
|
+
permissions: Permission[];
|
|
1045
1105
|
promoCodes?: PromoCodeType[] | null;
|
|
1046
1106
|
redeemedRewards?: RedeemedReward[] | null;
|
|
1047
1107
|
refreshToken: string | null;
|
|
1108
|
+
roles: EnumUserRole[];
|
|
1048
1109
|
school: string | null;
|
|
1049
1110
|
stripe?: StripeSubscription;
|
|
1050
1111
|
updatedAt: Date | null;
|
|
1051
1112
|
userActivity: UserActivity | null;
|
|
1052
1113
|
vendor: string | null;
|
|
1114
|
+
emailSentFor?: EnumNotificationResourceType[] | null;
|
|
1053
1115
|
};
|
|
1054
1116
|
type SafeUserType = Omit<UserType, "password" | "refreshToken">;
|
|
1055
1117
|
type ResourceByUser = {
|
|
@@ -1099,19 +1161,19 @@ type ValidateVerificationTokenFormData = {
|
|
|
1099
1161
|
};
|
|
1100
1162
|
type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
|
|
1101
1163
|
type AuthPayloadType = {
|
|
1102
|
-
message: string;
|
|
1103
|
-
token: string;
|
|
1104
1164
|
refreshToken: string | null;
|
|
1165
|
+
token: string;
|
|
1105
1166
|
user: SafeUserType;
|
|
1106
1167
|
};
|
|
1168
|
+
type AuthMutationResponse = MutationResponse<AuthPayloadType>;
|
|
1107
1169
|
type RefreshTokenPayloadType = {
|
|
1108
1170
|
refreshToken: string;
|
|
1109
1171
|
token: string;
|
|
1110
1172
|
};
|
|
1173
|
+
type RefreshTokenMutationResponse = MutationResponse<RefreshTokenPayloadType>;
|
|
1111
1174
|
|
|
1112
1175
|
type ParticipantType = {
|
|
1113
1176
|
active: boolean;
|
|
1114
|
-
isAssociate?: boolean | null;
|
|
1115
1177
|
userAvatar: string | null;
|
|
1116
1178
|
userEmail: string;
|
|
1117
1179
|
userId: string;
|
|
@@ -1378,6 +1440,7 @@ type PushTokenType = {
|
|
|
1378
1440
|
interface AppSettingsFormData {
|
|
1379
1441
|
appVersion: string;
|
|
1380
1442
|
isOfflineMode: boolean;
|
|
1443
|
+
minimumRedeemableAffiliatePoints: number;
|
|
1381
1444
|
}
|
|
1382
1445
|
type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
|
|
1383
1446
|
type AppSettingsType = AppSettingsFormData & {
|
|
@@ -1429,11 +1492,12 @@ type SchoolCampaignType = {
|
|
|
1429
1492
|
};
|
|
1430
1493
|
type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
|
|
1431
1494
|
_id: string;
|
|
1495
|
+
approvedAt?: Date | null;
|
|
1432
1496
|
campaigns: SchoolCampaignType[];
|
|
1433
1497
|
createdAt: Date;
|
|
1434
1498
|
deletedAt: Date | null;
|
|
1435
1499
|
overallPoints: number | null;
|
|
1436
|
-
owner: OwnerType
|
|
1500
|
+
owner: OwnerType;
|
|
1437
1501
|
ranking: number | null;
|
|
1438
1502
|
schoolCode: PromoCodeType;
|
|
1439
1503
|
updatedAt: Date | null;
|
|
@@ -1454,36 +1518,73 @@ declare const TIER_DISPLAY_LABELS: Record<Tier, string>;
|
|
|
1454
1518
|
/** Maps licence enums to their canonical tier key. */
|
|
1455
1519
|
declare const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier>;
|
|
1456
1520
|
|
|
1521
|
+
declare enum EnumAffiliateParticipantType {
|
|
1522
|
+
INDIVIDUAL = "INDIVIDUAL",
|
|
1523
|
+
SOLE_TRADER = "SOLE_TRADER",
|
|
1524
|
+
COMPANY = "COMPANY"
|
|
1525
|
+
}
|
|
1526
|
+
type AffiliateContactDetails = {
|
|
1527
|
+
mobilePhone: string;
|
|
1528
|
+
};
|
|
1529
|
+
type AffiliateBankAccountDetailsType = {
|
|
1530
|
+
accountHolderName: string;
|
|
1531
|
+
accountNumber: string;
|
|
1532
|
+
};
|
|
1533
|
+
type AffiliateUserDefaultFields = Pick<UserFormData, "email" | "firstName" | "lastName" | "termsAgreement">;
|
|
1534
|
+
type AffiliateDetailsType = AffiliateUserDefaultFields & {
|
|
1535
|
+
bankAccountDetails: AffiliateBankAccountDetailsType;
|
|
1536
|
+
contactDetails: AffiliateContactDetails;
|
|
1537
|
+
irdNumber: string;
|
|
1538
|
+
location: LocationType;
|
|
1539
|
+
participantType: EnumAffiliateParticipantType;
|
|
1540
|
+
socialMedia: SocialMediaType[] | null;
|
|
1541
|
+
};
|
|
1457
1542
|
declare enum EnumAffiliateRewardType {
|
|
1543
|
+
ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS = "ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS",
|
|
1544
|
+
ACTIVE_VENDOR_BONUS_REWARD = "ACTIVE_VENDOR_BONUS_REWARD",
|
|
1545
|
+
ACTIVE_VENDOR_PRO_SUBSCRIPTION = "ACTIVE_VENDOR_PRO_SUBSCRIPTION",
|
|
1546
|
+
ACTIVE_VENDOR_STANDARD_SUBSCRIPTION = "ACTIVE_VENDOR_STANDARD_SUBSCRIPTION",
|
|
1458
1547
|
NEW_EVENT_REGISTRATION = "NEW_EVENT_REGISTRATION",
|
|
1459
|
-
NEW_VENDOR_REGISTRATION = "NEW_VENDOR_REGISTRATION"
|
|
1460
|
-
NEW_PARTNER_REGISTRATION = "NEW_PARTNER_REGISTRATION"
|
|
1548
|
+
NEW_VENDOR_REGISTRATION = "NEW_VENDOR_REGISTRATION"
|
|
1461
1549
|
}
|
|
1462
|
-
type
|
|
1550
|
+
type AffiliateRewardType = {
|
|
1463
1551
|
createdAt: Date;
|
|
1464
|
-
deletedAt: Date | null;
|
|
1465
1552
|
redeemedAt: Date | null;
|
|
1466
1553
|
rewardDescription: string;
|
|
1467
1554
|
rewardType: EnumAffiliateRewardType;
|
|
1468
1555
|
rewardValue: number;
|
|
1469
|
-
updatedAt: Date | null;
|
|
1470
1556
|
};
|
|
1471
1557
|
type AffiliateResourceType = {
|
|
1472
1558
|
resourceActive: boolean;
|
|
1559
|
+
resourceDeletedAt: Date | null;
|
|
1473
1560
|
resourceId: string;
|
|
1561
|
+
resourceName: string;
|
|
1562
|
+
resourceOwner: OwnerType;
|
|
1474
1563
|
resourceType: EnumResourceType;
|
|
1475
|
-
rewards:
|
|
1564
|
+
rewards: AffiliateRewardType[];
|
|
1565
|
+
};
|
|
1566
|
+
type RedeemHistoryType = {
|
|
1567
|
+
paidAt?: Date | null;
|
|
1568
|
+
redeemedAt: Date;
|
|
1569
|
+
rewardValue: number;
|
|
1476
1570
|
};
|
|
1477
|
-
|
|
1571
|
+
interface AffiliateType {
|
|
1478
1572
|
_id: string;
|
|
1479
|
-
|
|
1573
|
+
active: boolean;
|
|
1574
|
+
approvedAt?: Date | null;
|
|
1575
|
+
affiliateBonusRewards?: AffiliateRewardType[] | null;
|
|
1576
|
+
affiliateCode: PromoCodeType | null;
|
|
1577
|
+
affiliateDetails: AffiliateDetailsType | null;
|
|
1480
1578
|
affiliateResources: AffiliateResourceType[];
|
|
1481
1579
|
createdAt: Date;
|
|
1482
1580
|
deletedAt: Date | null;
|
|
1483
1581
|
overallPoints: number;
|
|
1484
1582
|
owner: OwnerType;
|
|
1583
|
+
redeemHistory?: RedeemHistoryType[] | null;
|
|
1485
1584
|
updatedAt: Date | null;
|
|
1486
|
-
}
|
|
1585
|
+
}
|
|
1586
|
+
type AffiliateFormData = Omit<AffiliateDetailsType, "email" | "firstName" | "lastName">;
|
|
1587
|
+
type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
|
|
1487
1588
|
|
|
1488
1589
|
declare const vendorElectricity: {
|
|
1489
1590
|
details: FormField;
|
|
@@ -1545,6 +1646,7 @@ declare const contactUsFields: FormField[];
|
|
|
1545
1646
|
|
|
1546
1647
|
declare const emailField: FormField;
|
|
1547
1648
|
declare const companyContactFields: FormField[];
|
|
1649
|
+
declare const bankAccountDetailsFields: FormField[];
|
|
1548
1650
|
|
|
1549
1651
|
declare const partnerBasicInfoFields: FormField[];
|
|
1550
1652
|
|
|
@@ -1569,87 +1671,102 @@ declare function toGraphqlQueryString(query: DocumentNode): string;
|
|
|
1569
1671
|
|
|
1570
1672
|
declare const useAdminUpdateResourceType: () => {
|
|
1571
1673
|
adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1572
|
-
adminUpdateResourceType:
|
|
1573
|
-
resourceId: string;
|
|
1574
|
-
resourceType: EnumResourceType;
|
|
1575
|
-
};
|
|
1674
|
+
adminUpdateResourceType: MutationResponse<AdminUpdateResourceType>;
|
|
1576
1675
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1577
|
-
adminUpdateResourceType:
|
|
1578
|
-
resourceId: string;
|
|
1579
|
-
resourceType: EnumResourceType;
|
|
1580
|
-
};
|
|
1676
|
+
adminUpdateResourceType: MutationResponse<AdminUpdateResourceType>;
|
|
1581
1677
|
}>>;
|
|
1582
1678
|
error: _apollo_client.ApolloError | undefined;
|
|
1583
1679
|
loading: boolean;
|
|
1584
1680
|
};
|
|
1585
1681
|
declare const useAdminResendUserVerificationEmail: () => {
|
|
1586
|
-
adminResendUserVerificationEmail: (options?: _apollo_client.MutationFunctionOptions<
|
|
1682
|
+
adminResendUserVerificationEmail: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1683
|
+
adminResendUserVerificationEmail: MutationResponse<boolean>;
|
|
1684
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1685
|
+
adminResendUserVerificationEmail: MutationResponse<boolean>;
|
|
1686
|
+
}>>;
|
|
1587
1687
|
error: _apollo_client.ApolloError | undefined;
|
|
1588
1688
|
loading: boolean;
|
|
1589
1689
|
};
|
|
1590
1690
|
declare const useAdminPermanentlyDeleteResource: () => {
|
|
1591
|
-
adminPermanentlyDeleteResource: (options?: _apollo_client.MutationFunctionOptions<
|
|
1691
|
+
adminPermanentlyDeleteResource: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1692
|
+
adminPermanentlyDeleteResource: MutationResponse<boolean>;
|
|
1693
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1694
|
+
adminPermanentlyDeleteResource: MutationResponse<boolean>;
|
|
1695
|
+
}>>;
|
|
1592
1696
|
error: _apollo_client.ApolloError | undefined;
|
|
1593
1697
|
loading: boolean;
|
|
1594
1698
|
};
|
|
1595
1699
|
|
|
1700
|
+
type MessageOnlyResponse = MutationResponse<boolean>;
|
|
1596
1701
|
declare const useRegister: () => {
|
|
1597
1702
|
error: _apollo_client.ApolloError | undefined;
|
|
1598
1703
|
loading: boolean;
|
|
1599
1704
|
register: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1600
|
-
register:
|
|
1705
|
+
register: AuthMutationResponse;
|
|
1601
1706
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1602
|
-
register:
|
|
1707
|
+
register: AuthMutationResponse;
|
|
1603
1708
|
}>>;
|
|
1604
1709
|
};
|
|
1605
1710
|
declare const useLogin: () => {
|
|
1606
1711
|
error: _apollo_client.ApolloError | undefined;
|
|
1607
1712
|
loading: boolean;
|
|
1608
1713
|
login: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1609
|
-
login:
|
|
1714
|
+
login: AuthMutationResponse;
|
|
1610
1715
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1611
|
-
login:
|
|
1716
|
+
login: AuthMutationResponse;
|
|
1612
1717
|
}>>;
|
|
1613
1718
|
};
|
|
1614
1719
|
declare const useLogout: () => {
|
|
1615
1720
|
error: _apollo_client.ApolloError | undefined;
|
|
1616
1721
|
loading: boolean;
|
|
1617
|
-
logout: (options?: _apollo_client.MutationFunctionOptions<
|
|
1722
|
+
logout: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1723
|
+
logout: MessageOnlyResponse;
|
|
1724
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1725
|
+
logout: MessageOnlyResponse;
|
|
1726
|
+
}>>;
|
|
1618
1727
|
};
|
|
1619
1728
|
declare const useRefreshToken: () => {
|
|
1620
1729
|
error: _apollo_client.ApolloError | undefined;
|
|
1621
1730
|
loading: boolean;
|
|
1622
1731
|
refreshToken: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1623
|
-
refreshToken:
|
|
1732
|
+
refreshToken: RefreshTokenMutationResponse;
|
|
1624
1733
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1625
|
-
refreshToken:
|
|
1734
|
+
refreshToken: RefreshTokenMutationResponse;
|
|
1626
1735
|
}>>;
|
|
1627
1736
|
};
|
|
1628
1737
|
declare const useRequestPasswordReset: () => {
|
|
1629
1738
|
error: _apollo_client.ApolloError | undefined;
|
|
1630
1739
|
loading: boolean;
|
|
1631
|
-
requestPasswordReset: (options?: _apollo_client.MutationFunctionOptions<
|
|
1740
|
+
requestPasswordReset: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1741
|
+
requestPasswordReset: MessageOnlyResponse;
|
|
1742
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1743
|
+
requestPasswordReset: MessageOnlyResponse;
|
|
1744
|
+
}>>;
|
|
1632
1745
|
};
|
|
1633
1746
|
declare const useValidateVerificationToken: () => {
|
|
1634
1747
|
error: _apollo_client.ApolloError | undefined;
|
|
1635
1748
|
loading: boolean;
|
|
1636
|
-
validateVerificationToken: (options?: _apollo_client.MutationFunctionOptions<
|
|
1749
|
+
validateVerificationToken: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1750
|
+
validateVerificationToken: MessageOnlyResponse;
|
|
1751
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1752
|
+
validateVerificationToken: MessageOnlyResponse;
|
|
1753
|
+
}>>;
|
|
1637
1754
|
};
|
|
1638
1755
|
declare const useResetPassword: () => {
|
|
1639
1756
|
error: _apollo_client.ApolloError | undefined;
|
|
1640
1757
|
loading: boolean;
|
|
1641
|
-
resetPassword: (options?: _apollo_client.MutationFunctionOptions<
|
|
1758
|
+
resetPassword: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1759
|
+
resetPassword: MessageOnlyResponse;
|
|
1760
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1761
|
+
resetPassword: MessageOnlyResponse;
|
|
1762
|
+
}>>;
|
|
1642
1763
|
};
|
|
1643
1764
|
|
|
1644
1765
|
declare const useCreatePrivateChat: () => {
|
|
1645
1766
|
createPrivateChat: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1646
|
-
createPrivateChat:
|
|
1647
|
-
_id: string;
|
|
1648
|
-
};
|
|
1767
|
+
createPrivateChat: MutationResponse<ChatType>;
|
|
1649
1768
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1650
|
-
createPrivateChat:
|
|
1651
|
-
_id: string;
|
|
1652
|
-
};
|
|
1769
|
+
createPrivateChat: MutationResponse<ChatType>;
|
|
1653
1770
|
}>>;
|
|
1654
1771
|
error: _apollo_client.ApolloError | undefined;
|
|
1655
1772
|
loading: boolean;
|
|
@@ -1658,29 +1775,25 @@ declare const useSendChatMessage: () => {
|
|
|
1658
1775
|
error: _apollo_client.ApolloError | undefined;
|
|
1659
1776
|
loading: boolean;
|
|
1660
1777
|
sendChatMessage: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1661
|
-
sendChatMessage:
|
|
1662
|
-
_id: string;
|
|
1663
|
-
};
|
|
1778
|
+
sendChatMessage: MutationResponse<ChatType>;
|
|
1664
1779
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1665
|
-
sendChatMessage:
|
|
1666
|
-
_id: string;
|
|
1667
|
-
};
|
|
1780
|
+
sendChatMessage: MutationResponse<ChatType>;
|
|
1668
1781
|
}>>;
|
|
1669
1782
|
};
|
|
1670
1783
|
declare const useDeleteChat: () => {
|
|
1671
|
-
deleteChat: (options?: _apollo_client.MutationFunctionOptions<
|
|
1784
|
+
deleteChat: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1785
|
+
deleteChat: MutationResponse<boolean>;
|
|
1786
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1787
|
+
deleteChat: MutationResponse<boolean>;
|
|
1788
|
+
}>>;
|
|
1672
1789
|
error: _apollo_client.ApolloError | undefined;
|
|
1673
1790
|
loading: boolean;
|
|
1674
1791
|
};
|
|
1675
1792
|
declare const useAddParticipantToChat: () => {
|
|
1676
1793
|
addParticipantToChat: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1677
|
-
addParticipantToChat:
|
|
1678
|
-
_id: string;
|
|
1679
|
-
};
|
|
1794
|
+
addParticipantToChat: MutationResponse<ChatType>;
|
|
1680
1795
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1681
|
-
addParticipantToChat:
|
|
1682
|
-
_id: string;
|
|
1683
|
-
};
|
|
1796
|
+
addParticipantToChat: MutationResponse<ChatType>;
|
|
1684
1797
|
}>>;
|
|
1685
1798
|
error: _apollo_client.ApolloError | undefined;
|
|
1686
1799
|
loading: boolean;
|
|
@@ -1689,47 +1802,43 @@ declare const useRemoveParticipantFromChat: () => {
|
|
|
1689
1802
|
error: _apollo_client.ApolloError | undefined;
|
|
1690
1803
|
loading: boolean;
|
|
1691
1804
|
removeParticipantFromChat: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1692
|
-
removeParticipantFromChat: {
|
|
1805
|
+
removeParticipantFromChat: MutationResponse<{
|
|
1693
1806
|
success: boolean;
|
|
1694
1807
|
region?: string | null;
|
|
1695
|
-
}
|
|
1808
|
+
}>;
|
|
1696
1809
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1697
|
-
removeParticipantFromChat: {
|
|
1810
|
+
removeParticipantFromChat: MutationResponse<{
|
|
1698
1811
|
success: boolean;
|
|
1699
1812
|
region?: string | null;
|
|
1700
|
-
}
|
|
1813
|
+
}>;
|
|
1701
1814
|
}>>;
|
|
1702
1815
|
};
|
|
1703
1816
|
declare const useToggleChatMessageLike: () => {
|
|
1704
1817
|
error: _apollo_client.ApolloError | undefined;
|
|
1705
1818
|
loading: boolean;
|
|
1706
1819
|
toggleChatMessageLike: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1707
|
-
toggleChatMessageLike:
|
|
1708
|
-
_id: string;
|
|
1709
|
-
};
|
|
1820
|
+
toggleChatMessageLike: MutationResponse<ChatType>;
|
|
1710
1821
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1711
|
-
toggleChatMessageLike:
|
|
1712
|
-
_id: string;
|
|
1713
|
-
};
|
|
1822
|
+
toggleChatMessageLike: MutationResponse<ChatType>;
|
|
1714
1823
|
}>>;
|
|
1715
1824
|
};
|
|
1716
1825
|
declare const useMarkChatMessagesSeen: () => {
|
|
1717
1826
|
error: _apollo_client.ApolloError | undefined;
|
|
1718
1827
|
loading: boolean;
|
|
1719
1828
|
markChatMessagesSeen: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1720
|
-
markChatMessagesSeen:
|
|
1721
|
-
_id: string;
|
|
1722
|
-
};
|
|
1829
|
+
markChatMessagesSeen: MutationResponse<ChatType>;
|
|
1723
1830
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1724
|
-
markChatMessagesSeen:
|
|
1725
|
-
_id: string;
|
|
1726
|
-
};
|
|
1831
|
+
markChatMessagesSeen: MutationResponse<ChatType>;
|
|
1727
1832
|
}>>;
|
|
1728
1833
|
};
|
|
1729
1834
|
declare const useReportChatUser: () => {
|
|
1730
1835
|
error: _apollo_client.ApolloError | undefined;
|
|
1731
1836
|
loading: boolean;
|
|
1732
|
-
reportChatUser: (options?: _apollo_client.MutationFunctionOptions<
|
|
1837
|
+
reportChatUser: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1838
|
+
reportChatUser: MutationResponse<ReportChatUser>;
|
|
1839
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1840
|
+
reportChatUser: MutationResponse<ReportChatUser>;
|
|
1841
|
+
}>>;
|
|
1733
1842
|
};
|
|
1734
1843
|
|
|
1735
1844
|
declare const useGetChat: (_id: string) => {
|
|
@@ -1740,13 +1849,21 @@ declare const useGetChat: (_id: string) => {
|
|
|
1740
1849
|
chat: ChatType;
|
|
1741
1850
|
}>>;
|
|
1742
1851
|
};
|
|
1743
|
-
declare const
|
|
1852
|
+
declare const useGetPrivateChats: () => {
|
|
1853
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1854
|
+
loading: boolean;
|
|
1855
|
+
privateChats: ChatType[];
|
|
1856
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1857
|
+
privateChats: ChatType[];
|
|
1858
|
+
}>>;
|
|
1859
|
+
};
|
|
1860
|
+
declare const useGetRelationChats: () => {
|
|
1744
1861
|
error: _apollo_client.ApolloError | undefined;
|
|
1745
1862
|
loading: boolean;
|
|
1746
1863
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1747
|
-
|
|
1864
|
+
relationChats: ChatType[];
|
|
1748
1865
|
}>>;
|
|
1749
|
-
|
|
1866
|
+
relationChats: ChatType[];
|
|
1750
1867
|
};
|
|
1751
1868
|
declare const useGetChatSubscription: () => {
|
|
1752
1869
|
chat: ChatType | undefined;
|
|
@@ -1771,13 +1888,21 @@ declare const useGetReportedChatUsers: () => {
|
|
|
1771
1888
|
};
|
|
1772
1889
|
|
|
1773
1890
|
declare const useContactUs: () => {
|
|
1774
|
-
contactUs: (options?: _apollo_client.MutationFunctionOptions<
|
|
1891
|
+
contactUs: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1892
|
+
contactUs: MutationResponse<boolean>;
|
|
1893
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1894
|
+
contactUs: MutationResponse<boolean>;
|
|
1895
|
+
}>>;
|
|
1775
1896
|
error: _apollo_client.ApolloError | undefined;
|
|
1776
1897
|
loading: boolean;
|
|
1777
1898
|
};
|
|
1778
1899
|
|
|
1779
1900
|
declare const useCreateEvent: () => {
|
|
1780
|
-
createEvent: (options?: _apollo_client.MutationFunctionOptions<
|
|
1901
|
+
createEvent: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1902
|
+
createEvent: MutationResponse<EventType>;
|
|
1903
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1904
|
+
createEvent: MutationResponse<EventType>;
|
|
1905
|
+
}>>;
|
|
1781
1906
|
error: _apollo_client.ApolloError | undefined;
|
|
1782
1907
|
loading: boolean;
|
|
1783
1908
|
};
|
|
@@ -1785,29 +1910,29 @@ declare const useUpdateEvent: () => {
|
|
|
1785
1910
|
error: _apollo_client.ApolloError | undefined;
|
|
1786
1911
|
loading: boolean;
|
|
1787
1912
|
updateEvent: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1788
|
-
updateEvent:
|
|
1789
|
-
_id: string;
|
|
1790
|
-
};
|
|
1913
|
+
updateEvent: MutationResponse<EventType>;
|
|
1791
1914
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1792
|
-
updateEvent:
|
|
1793
|
-
_id: string;
|
|
1794
|
-
};
|
|
1915
|
+
updateEvent: MutationResponse<EventType>;
|
|
1795
1916
|
}>>;
|
|
1796
1917
|
};
|
|
1797
1918
|
declare const useDeleteEvent: () => {
|
|
1798
|
-
deleteEvent: (options?: _apollo_client.MutationFunctionOptions<
|
|
1919
|
+
deleteEvent: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1920
|
+
deleteEvent: MutationResponse<boolean>;
|
|
1921
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1922
|
+
deleteEvent: MutationResponse<boolean>;
|
|
1923
|
+
}>>;
|
|
1799
1924
|
error: _apollo_client.ApolloError | undefined;
|
|
1800
1925
|
loading: boolean;
|
|
1801
1926
|
};
|
|
1802
1927
|
declare const useCreateEventInfo: () => {
|
|
1803
1928
|
createEventInfo: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1804
|
-
createEventInfo: {
|
|
1929
|
+
createEventInfo: MutationResponse<{
|
|
1805
1930
|
eventId: string;
|
|
1806
|
-
}
|
|
1931
|
+
}>;
|
|
1807
1932
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1808
|
-
createEventInfo: {
|
|
1933
|
+
createEventInfo: MutationResponse<{
|
|
1809
1934
|
eventId: string;
|
|
1810
|
-
}
|
|
1935
|
+
}>;
|
|
1811
1936
|
}>>;
|
|
1812
1937
|
error: _apollo_client.ApolloError | undefined;
|
|
1813
1938
|
loading: boolean;
|
|
@@ -1816,13 +1941,13 @@ declare const useUpdateEventInfo: () => {
|
|
|
1816
1941
|
error: _apollo_client.ApolloError | undefined;
|
|
1817
1942
|
loading: boolean;
|
|
1818
1943
|
updateEventInfo: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1819
|
-
updateEventInfo: {
|
|
1944
|
+
updateEventInfo: MutationResponse<{
|
|
1820
1945
|
eventId: string;
|
|
1821
|
-
}
|
|
1946
|
+
}>;
|
|
1822
1947
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1823
|
-
updateEventInfo: {
|
|
1948
|
+
updateEventInfo: MutationResponse<{
|
|
1824
1949
|
eventId: string;
|
|
1825
|
-
}
|
|
1950
|
+
}>;
|
|
1826
1951
|
}>>;
|
|
1827
1952
|
};
|
|
1828
1953
|
|
|
@@ -1900,27 +2025,47 @@ declare const useGetEventInfo: (eventId: string) => {
|
|
|
1900
2025
|
};
|
|
1901
2026
|
|
|
1902
2027
|
declare const useCreateBulkNotifications: () => {
|
|
1903
|
-
createBulkNotifications: (options?: _apollo_client.MutationFunctionOptions<
|
|
2028
|
+
createBulkNotifications: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2029
|
+
createBulkNotifications: MutationResponse<boolean>;
|
|
2030
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2031
|
+
createBulkNotifications: MutationResponse<boolean>;
|
|
2032
|
+
}>>;
|
|
1904
2033
|
error: _apollo_client.ApolloError | undefined;
|
|
1905
2034
|
loading: boolean;
|
|
1906
2035
|
};
|
|
1907
2036
|
declare const useMarkNotificationRead: () => {
|
|
1908
2037
|
error: _apollo_client.ApolloError | undefined;
|
|
1909
2038
|
loading: boolean;
|
|
1910
|
-
markNotificationRead: (options?: _apollo_client.MutationFunctionOptions<
|
|
2039
|
+
markNotificationRead: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2040
|
+
markNotificationRead: MutationResponse<NotificationType>;
|
|
2041
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2042
|
+
markNotificationRead: MutationResponse<NotificationType>;
|
|
2043
|
+
}>>;
|
|
1911
2044
|
};
|
|
1912
2045
|
declare const useMarkAllNotificationsRead: () => {
|
|
1913
2046
|
error: _apollo_client.ApolloError | undefined;
|
|
1914
2047
|
loading: boolean;
|
|
1915
|
-
markAllNotificationsRead: (options?: _apollo_client.MutationFunctionOptions<
|
|
2048
|
+
markAllNotificationsRead: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2049
|
+
markAllNotificationsRead: MutationResponse<boolean>;
|
|
2050
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2051
|
+
markAllNotificationsRead: MutationResponse<boolean>;
|
|
2052
|
+
}>>;
|
|
1916
2053
|
};
|
|
1917
2054
|
declare const useDeleteNotification: () => {
|
|
1918
|
-
deleteNotification: (options?: _apollo_client.MutationFunctionOptions<
|
|
2055
|
+
deleteNotification: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2056
|
+
deleteNotification: MutationResponse<boolean>;
|
|
2057
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2058
|
+
deleteNotification: MutationResponse<boolean>;
|
|
2059
|
+
}>>;
|
|
1919
2060
|
error: _apollo_client.ApolloError | undefined;
|
|
1920
2061
|
loading: boolean;
|
|
1921
2062
|
};
|
|
1922
2063
|
declare const useDeleteAllNotifications: () => {
|
|
1923
|
-
deleteAllNotifications: (options?: _apollo_client.MutationFunctionOptions<
|
|
2064
|
+
deleteAllNotifications: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2065
|
+
deleteAllNotifications: MutationResponse<boolean>;
|
|
2066
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2067
|
+
deleteAllNotifications: MutationResponse<boolean>;
|
|
2068
|
+
}>>;
|
|
1924
2069
|
error: _apollo_client.ApolloError | undefined;
|
|
1925
2070
|
loading: boolean;
|
|
1926
2071
|
};
|
|
@@ -1954,22 +2099,38 @@ declare const useGetNotificationCountSubscription: () => {
|
|
|
1954
2099
|
};
|
|
1955
2100
|
|
|
1956
2101
|
declare const useCreatePoster: () => {
|
|
1957
|
-
createPoster: (options?: _apollo_client.MutationFunctionOptions<
|
|
2102
|
+
createPoster: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2103
|
+
createPoster: MutationResponse<{
|
|
2104
|
+
posterUsage: PosterUsageType;
|
|
2105
|
+
}>;
|
|
2106
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2107
|
+
createPoster: MutationResponse<{
|
|
2108
|
+
posterUsage: PosterUsageType;
|
|
2109
|
+
}>;
|
|
2110
|
+
}>>;
|
|
1958
2111
|
error: _apollo_client.ApolloError | undefined;
|
|
1959
2112
|
loading: boolean;
|
|
1960
2113
|
};
|
|
1961
2114
|
|
|
1962
2115
|
declare const useCreatePushToken: () => {
|
|
1963
|
-
createPushToken: (options?: _apollo_client.MutationFunctionOptions<
|
|
2116
|
+
createPushToken: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2117
|
+
createPushToken: MutationResponse<{
|
|
2118
|
+
success: boolean;
|
|
2119
|
+
}>;
|
|
2120
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2121
|
+
createPushToken: MutationResponse<{
|
|
2122
|
+
success: boolean;
|
|
2123
|
+
}>;
|
|
2124
|
+
}>>;
|
|
1964
2125
|
error: _apollo_client.ApolloError | undefined;
|
|
1965
2126
|
loading: boolean;
|
|
1966
2127
|
};
|
|
1967
2128
|
|
|
1968
2129
|
declare const useCreateRelation: () => {
|
|
1969
2130
|
createRelation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1970
|
-
createRelation: RelationType$1
|
|
2131
|
+
createRelation: MutationResponse<RelationType$1>;
|
|
1971
2132
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1972
|
-
createRelation: RelationType$1
|
|
2133
|
+
createRelation: MutationResponse<RelationType$1>;
|
|
1973
2134
|
}>>;
|
|
1974
2135
|
error: _apollo_client.ApolloError | undefined;
|
|
1975
2136
|
loading: boolean;
|
|
@@ -1978,16 +2139,16 @@ declare const useUpdateRelation: () => {
|
|
|
1978
2139
|
error: _apollo_client.ApolloError | undefined;
|
|
1979
2140
|
loading: boolean;
|
|
1980
2141
|
updateRelation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1981
|
-
updateRelation: RelationType$1
|
|
2142
|
+
updateRelation: MutationResponse<RelationType$1>;
|
|
1982
2143
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1983
|
-
updateRelation: RelationType$1
|
|
2144
|
+
updateRelation: MutationResponse<RelationType$1>;
|
|
1984
2145
|
}>>;
|
|
1985
2146
|
};
|
|
1986
2147
|
declare const useDeleteRelation: () => {
|
|
1987
2148
|
deleteRelation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1988
|
-
deleteRelation: RelationType$1
|
|
2149
|
+
deleteRelation: MutationResponse<RelationType$1>;
|
|
1989
2150
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1990
|
-
deleteRelation: RelationType$1
|
|
2151
|
+
deleteRelation: MutationResponse<RelationType$1>;
|
|
1991
2152
|
}>>;
|
|
1992
2153
|
error: _apollo_client.ApolloError | undefined;
|
|
1993
2154
|
loading: boolean;
|
|
@@ -2035,29 +2196,41 @@ declare const useGetResourceConnections: (resourceId: string, resourceType: Enum
|
|
|
2035
2196
|
};
|
|
2036
2197
|
|
|
2037
2198
|
declare const useCreateVendor: () => {
|
|
2038
|
-
createVendor: (options?: _apollo_client.MutationFunctionOptions<
|
|
2199
|
+
createVendor: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2200
|
+
createVendor: MutationResponse<VendorType>;
|
|
2201
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2202
|
+
createVendor: MutationResponse<VendorType>;
|
|
2203
|
+
}>>;
|
|
2039
2204
|
error: _apollo_client.ApolloError | undefined;
|
|
2040
2205
|
loading: boolean;
|
|
2041
2206
|
};
|
|
2042
2207
|
declare const useUpdateVendor: () => {
|
|
2043
2208
|
error: _apollo_client.ApolloError | undefined;
|
|
2044
2209
|
loading: boolean;
|
|
2045
|
-
updateVendor: (options?: _apollo_client.MutationFunctionOptions<
|
|
2210
|
+
updateVendor: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2211
|
+
updateVendor: MutationResponse<VendorType>;
|
|
2212
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2213
|
+
updateVendor: MutationResponse<VendorType>;
|
|
2214
|
+
}>>;
|
|
2046
2215
|
};
|
|
2047
2216
|
declare const useDeleteVendor: () => {
|
|
2048
|
-
deleteVendor: (options?: _apollo_client.MutationFunctionOptions<
|
|
2217
|
+
deleteVendor: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2218
|
+
deleteVendor: MutationResponse<boolean>;
|
|
2219
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2220
|
+
deleteVendor: MutationResponse<boolean>;
|
|
2221
|
+
}>>;
|
|
2049
2222
|
error: _apollo_client.ApolloError | undefined;
|
|
2050
2223
|
loading: boolean;
|
|
2051
2224
|
};
|
|
2052
2225
|
declare const useCreateVendorInfo: () => {
|
|
2053
2226
|
createVendorInfo: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2054
|
-
createVendorInfo: {
|
|
2227
|
+
createVendorInfo: MutationResponse<{
|
|
2055
2228
|
vendorId: string;
|
|
2056
|
-
}
|
|
2229
|
+
}>;
|
|
2057
2230
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2058
|
-
createVendorInfo: {
|
|
2231
|
+
createVendorInfo: MutationResponse<{
|
|
2059
2232
|
vendorId: string;
|
|
2060
|
-
}
|
|
2233
|
+
}>;
|
|
2061
2234
|
}>>;
|
|
2062
2235
|
error: _apollo_client.ApolloError | undefined;
|
|
2063
2236
|
loading: boolean;
|
|
@@ -2066,34 +2239,50 @@ declare const useUpdateVendorInfo: () => {
|
|
|
2066
2239
|
error: _apollo_client.ApolloError | undefined;
|
|
2067
2240
|
loading: boolean;
|
|
2068
2241
|
updateVendorInfo: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2069
|
-
updateVendorInfo: {
|
|
2242
|
+
updateVendorInfo: MutationResponse<{
|
|
2070
2243
|
vendorId: string;
|
|
2071
|
-
}
|
|
2244
|
+
}>;
|
|
2072
2245
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2073
|
-
updateVendorInfo: {
|
|
2246
|
+
updateVendorInfo: MutationResponse<{
|
|
2074
2247
|
vendorId: string;
|
|
2075
|
-
}
|
|
2248
|
+
}>;
|
|
2076
2249
|
}>>;
|
|
2077
2250
|
};
|
|
2078
2251
|
declare const useCreateUnregisteredVendor: () => {
|
|
2079
|
-
createUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<
|
|
2252
|
+
createUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2253
|
+
createUnregisteredVendor: MutationResponse<UnregisteredVendorType>;
|
|
2254
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2255
|
+
createUnregisteredVendor: MutationResponse<UnregisteredVendorType>;
|
|
2256
|
+
}>>;
|
|
2080
2257
|
error: _apollo_client.ApolloError | undefined;
|
|
2081
2258
|
loading: boolean;
|
|
2082
2259
|
};
|
|
2083
2260
|
declare const useUpdateUnregisteredVendor: () => {
|
|
2084
2261
|
error: _apollo_client.ApolloError | undefined;
|
|
2085
2262
|
loading: boolean;
|
|
2086
|
-
updateUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<
|
|
2263
|
+
updateUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2264
|
+
updateUnregisteredVendor: MutationResponse<UnregisteredVendorType>;
|
|
2265
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2266
|
+
updateUnregisteredVendor: MutationResponse<UnregisteredVendorType>;
|
|
2267
|
+
}>>;
|
|
2087
2268
|
};
|
|
2088
2269
|
declare const useDeleteUnregisteredVendor: () => {
|
|
2089
|
-
deleteUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<
|
|
2270
|
+
deleteUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2271
|
+
deleteUnregisteredVendor: MutationResponse<boolean>;
|
|
2272
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2273
|
+
deleteUnregisteredVendor: MutationResponse<boolean>;
|
|
2274
|
+
}>>;
|
|
2090
2275
|
error: _apollo_client.ApolloError | undefined;
|
|
2091
2276
|
loading: boolean;
|
|
2092
2277
|
};
|
|
2093
2278
|
declare const useUnlinkUnregisteredVendorByInviterId: () => {
|
|
2094
2279
|
error: _apollo_client.ApolloError | undefined;
|
|
2095
2280
|
loading: boolean;
|
|
2096
|
-
unlinkUnregisteredVendorByInviterId: (options?: _apollo_client.MutationFunctionOptions<
|
|
2281
|
+
unlinkUnregisteredVendorByInviterId: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2282
|
+
unlinkUnregisteredVendorByInviterId: MutationResponse<boolean>;
|
|
2283
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2284
|
+
unlinkUnregisteredVendorByInviterId: MutationResponse<boolean>;
|
|
2285
|
+
}>>;
|
|
2097
2286
|
};
|
|
2098
2287
|
|
|
2099
2288
|
declare const useGetVendors: () => {
|
|
@@ -2175,9 +2364,9 @@ declare const useGetUnregisteredVendor: (_id: string) => {
|
|
|
2175
2364
|
|
|
2176
2365
|
declare const useCreateUser: () => {
|
|
2177
2366
|
createUser: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2178
|
-
createUser: SafeUserType
|
|
2367
|
+
createUser: MutationResponse<SafeUserType>;
|
|
2179
2368
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2180
|
-
createUser: SafeUserType
|
|
2369
|
+
createUser: MutationResponse<SafeUserType>;
|
|
2181
2370
|
}>>;
|
|
2182
2371
|
error: _apollo_client.ApolloError | undefined;
|
|
2183
2372
|
loading: boolean;
|
|
@@ -2186,13 +2375,17 @@ declare const useUpdateUser: () => {
|
|
|
2186
2375
|
error: _apollo_client.ApolloError | undefined;
|
|
2187
2376
|
loading: boolean;
|
|
2188
2377
|
updateUser: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2189
|
-
updateUser: SafeUserType
|
|
2378
|
+
updateUser: MutationResponse<SafeUserType>;
|
|
2190
2379
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2191
|
-
updateUser: SafeUserType
|
|
2380
|
+
updateUser: MutationResponse<SafeUserType>;
|
|
2192
2381
|
}>>;
|
|
2193
2382
|
};
|
|
2194
2383
|
declare const useDeleteUser: () => {
|
|
2195
|
-
deleteUser: (options?: _apollo_client.MutationFunctionOptions<
|
|
2384
|
+
deleteUser: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2385
|
+
deleteUser: MutationResponse<boolean>;
|
|
2386
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2387
|
+
deleteUser: MutationResponse<boolean>;
|
|
2388
|
+
}>>;
|
|
2196
2389
|
error: _apollo_client.ApolloError | undefined;
|
|
2197
2390
|
loading: boolean;
|
|
2198
2391
|
};
|
|
@@ -2200,66 +2393,96 @@ declare const useRedeemReward: () => {
|
|
|
2200
2393
|
error: _apollo_client.ApolloError | undefined;
|
|
2201
2394
|
loading: boolean;
|
|
2202
2395
|
redeemReward: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2203
|
-
redeemReward:
|
|
2396
|
+
redeemReward: RedeemRewardMutationResponse;
|
|
2204
2397
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2205
|
-
redeemReward:
|
|
2398
|
+
redeemReward: RedeemRewardMutationResponse;
|
|
2206
2399
|
}>>;
|
|
2207
2400
|
};
|
|
2208
2401
|
declare const useAddUserFavouriteResource: () => {
|
|
2209
|
-
addUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<
|
|
2402
|
+
addUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2403
|
+
addUserFavouriteResource: MutationResponse<SafeUserType>;
|
|
2404
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2405
|
+
addUserFavouriteResource: MutationResponse<SafeUserType>;
|
|
2406
|
+
}>>;
|
|
2210
2407
|
error: _apollo_client.ApolloError | undefined;
|
|
2211
2408
|
loading: boolean;
|
|
2212
2409
|
};
|
|
2213
2410
|
declare const useRemoveUserFavouriteResource: () => {
|
|
2214
2411
|
error: _apollo_client.ApolloError | undefined;
|
|
2215
2412
|
loading: boolean;
|
|
2216
|
-
removeUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<
|
|
2413
|
+
removeUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2414
|
+
removeUserFavouriteResource: MutationResponse<SafeUserType>;
|
|
2415
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2416
|
+
removeUserFavouriteResource: MutationResponse<SafeUserType>;
|
|
2417
|
+
}>>;
|
|
2217
2418
|
};
|
|
2218
2419
|
declare const useAddUserInterestResource: () => {
|
|
2219
|
-
addUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<
|
|
2420
|
+
addUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2421
|
+
addUserInterestResource: MutationResponse<SafeUserType>;
|
|
2422
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2423
|
+
addUserInterestResource: MutationResponse<SafeUserType>;
|
|
2424
|
+
}>>;
|
|
2220
2425
|
error: _apollo_client.ApolloError | undefined;
|
|
2221
2426
|
loading: boolean;
|
|
2222
2427
|
};
|
|
2223
2428
|
declare const useRemoveUserInterestResource: () => {
|
|
2224
2429
|
error: _apollo_client.ApolloError | undefined;
|
|
2225
2430
|
loading: boolean;
|
|
2226
|
-
removeUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<
|
|
2431
|
+
removeUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2432
|
+
removeUserInterestResource: MutationResponse<SafeUserType>;
|
|
2433
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2434
|
+
removeUserInterestResource: MutationResponse<SafeUserType>;
|
|
2435
|
+
}>>;
|
|
2227
2436
|
};
|
|
2228
2437
|
declare const useAddUserGoingResource: () => {
|
|
2229
|
-
addUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<
|
|
2438
|
+
addUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2439
|
+
addUserGoingResource: MutationResponse<SafeUserType>;
|
|
2440
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2441
|
+
addUserGoingResource: MutationResponse<SafeUserType>;
|
|
2442
|
+
}>>;
|
|
2230
2443
|
error: _apollo_client.ApolloError | undefined;
|
|
2231
2444
|
loading: boolean;
|
|
2232
2445
|
};
|
|
2233
2446
|
declare const useRemoveUserGoingResource: () => {
|
|
2234
2447
|
error: _apollo_client.ApolloError | undefined;
|
|
2235
2448
|
loading: boolean;
|
|
2236
|
-
removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<
|
|
2449
|
+
removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2450
|
+
removeUserGoingResource: MutationResponse<SafeUserType>;
|
|
2451
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2452
|
+
removeUserGoingResource: MutationResponse<SafeUserType>;
|
|
2453
|
+
}>>;
|
|
2237
2454
|
};
|
|
2238
2455
|
declare const useAddUserPresentResource: () => {
|
|
2239
|
-
addUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<
|
|
2456
|
+
addUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2457
|
+
addUserPresentResource: MutationResponse<SafeUserType>;
|
|
2458
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2459
|
+
addUserPresentResource: MutationResponse<SafeUserType>;
|
|
2460
|
+
}>>;
|
|
2240
2461
|
error: _apollo_client.ApolloError | undefined;
|
|
2241
2462
|
loading: boolean;
|
|
2242
2463
|
};
|
|
2243
2464
|
declare const useRemoveUserPresentResource: () => {
|
|
2244
2465
|
error: _apollo_client.ApolloError | undefined;
|
|
2245
2466
|
loading: boolean;
|
|
2246
|
-
removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<
|
|
2467
|
+
removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2468
|
+
removeUserPresentResource: MutationResponse<SafeUserType>;
|
|
2469
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2470
|
+
removeUserPresentResource: MutationResponse<SafeUserType>;
|
|
2471
|
+
}>>;
|
|
2247
2472
|
};
|
|
2248
2473
|
declare const useSelectStandardPackage: () => {
|
|
2249
2474
|
error: _apollo_client.ApolloError | undefined;
|
|
2250
2475
|
loading: boolean;
|
|
2251
2476
|
selectStandardPackage: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2252
|
-
selectStandardPackage: {
|
|
2477
|
+
selectStandardPackage: MutationResponse<{
|
|
2253
2478
|
userId: string;
|
|
2254
|
-
message: string;
|
|
2255
2479
|
licences: UserLicenceType[];
|
|
2256
|
-
}
|
|
2480
|
+
}>;
|
|
2257
2481
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2258
|
-
selectStandardPackage: {
|
|
2482
|
+
selectStandardPackage: MutationResponse<{
|
|
2259
2483
|
userId: string;
|
|
2260
|
-
message: string;
|
|
2261
2484
|
licences: UserLicenceType[];
|
|
2262
|
-
}
|
|
2485
|
+
}>;
|
|
2263
2486
|
}>>;
|
|
2264
2487
|
};
|
|
2265
2488
|
|
|
@@ -2353,17 +2576,29 @@ declare const useGetUserResources: (userId: string) => {
|
|
|
2353
2576
|
};
|
|
2354
2577
|
|
|
2355
2578
|
declare const useCreateAd: () => {
|
|
2356
|
-
createAd: (options?: _apollo_client.MutationFunctionOptions<
|
|
2579
|
+
createAd: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2580
|
+
createAd: MutationResponse<AdType>;
|
|
2581
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2582
|
+
createAd: MutationResponse<AdType>;
|
|
2583
|
+
}>>;
|
|
2357
2584
|
error: _apollo_client.ApolloError | undefined;
|
|
2358
2585
|
loading: boolean;
|
|
2359
2586
|
};
|
|
2360
2587
|
declare const useUpdateAd: () => {
|
|
2361
2588
|
error: _apollo_client.ApolloError | undefined;
|
|
2362
2589
|
loading: boolean;
|
|
2363
|
-
updateAd: (options?: _apollo_client.MutationFunctionOptions<
|
|
2590
|
+
updateAd: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2591
|
+
updateAd: MutationResponse<AdType>;
|
|
2592
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2593
|
+
updateAd: MutationResponse<AdType>;
|
|
2594
|
+
}>>;
|
|
2364
2595
|
};
|
|
2365
2596
|
declare const useDeleteAd: () => {
|
|
2366
|
-
deleteAd: (options?: _apollo_client.MutationFunctionOptions<
|
|
2597
|
+
deleteAd: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2598
|
+
deleteAd: MutationResponse<boolean>;
|
|
2599
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2600
|
+
deleteAd: MutationResponse<boolean>;
|
|
2601
|
+
}>>;
|
|
2367
2602
|
error: _apollo_client.ApolloError | undefined;
|
|
2368
2603
|
loading: boolean;
|
|
2369
2604
|
};
|
|
@@ -2394,7 +2629,11 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
|
|
|
2394
2629
|
};
|
|
2395
2630
|
|
|
2396
2631
|
declare const useCreateResourceActivity: () => {
|
|
2397
|
-
createResourceActivity: (options?: _apollo_client.MutationFunctionOptions<
|
|
2632
|
+
createResourceActivity: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2633
|
+
createResourceActivity: MutationResponse<boolean>;
|
|
2634
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2635
|
+
createResourceActivity: MutationResponse<boolean>;
|
|
2636
|
+
}>>;
|
|
2398
2637
|
error: _apollo_client.ApolloError | undefined;
|
|
2399
2638
|
loading: boolean;
|
|
2400
2639
|
};
|
|
@@ -2409,22 +2648,58 @@ declare const useGetResourceActivity: (resourceId: string, resourceType: EnumRes
|
|
|
2409
2648
|
};
|
|
2410
2649
|
|
|
2411
2650
|
declare const useCreateCheckoutSession: () => {
|
|
2412
|
-
createCheckoutSession: (options?: _apollo_client.MutationFunctionOptions<
|
|
2651
|
+
createCheckoutSession: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2652
|
+
createCheckoutSession: MutationResponse<{
|
|
2653
|
+
sessionId: string;
|
|
2654
|
+
checkoutUrl: string;
|
|
2655
|
+
}>;
|
|
2656
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2657
|
+
createCheckoutSession: MutationResponse<{
|
|
2658
|
+
sessionId: string;
|
|
2659
|
+
checkoutUrl: string;
|
|
2660
|
+
}>;
|
|
2661
|
+
}>>;
|
|
2413
2662
|
error: _apollo_client.ApolloError | undefined;
|
|
2414
2663
|
loading: boolean;
|
|
2415
2664
|
};
|
|
2416
2665
|
declare const useCancelSubscription: () => {
|
|
2417
|
-
cancelSubscription: (options?: _apollo_client.MutationFunctionOptions<
|
|
2666
|
+
cancelSubscription: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2667
|
+
cancelSubscription: MutationResponse<string>;
|
|
2668
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2669
|
+
cancelSubscription: MutationResponse<string>;
|
|
2670
|
+
}>>;
|
|
2418
2671
|
error: _apollo_client.ApolloError | undefined;
|
|
2419
2672
|
loading: boolean;
|
|
2420
2673
|
};
|
|
2421
2674
|
declare const useUpdateSubscriptionPlan: () => {
|
|
2422
2675
|
error: _apollo_client.ApolloError | undefined;
|
|
2423
2676
|
loading: boolean;
|
|
2424
|
-
updateSubscriptionPlan: (options?: _apollo_client.MutationFunctionOptions<
|
|
2677
|
+
updateSubscriptionPlan: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2678
|
+
updateSubscriptionPlan: MutationResponse<{
|
|
2679
|
+
subscriptionId: string;
|
|
2680
|
+
status: string;
|
|
2681
|
+
priceId: string;
|
|
2682
|
+
currentPlan: string;
|
|
2683
|
+
}>;
|
|
2684
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2685
|
+
updateSubscriptionPlan: MutationResponse<{
|
|
2686
|
+
subscriptionId: string;
|
|
2687
|
+
status: string;
|
|
2688
|
+
priceId: string;
|
|
2689
|
+
currentPlan: string;
|
|
2690
|
+
}>;
|
|
2691
|
+
}>>;
|
|
2425
2692
|
};
|
|
2426
2693
|
declare const useCreateCustomerPortal: () => {
|
|
2427
|
-
createCustomerPortal: (options?: _apollo_client.MutationFunctionOptions<
|
|
2694
|
+
createCustomerPortal: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2695
|
+
createCustomerPortal: MutationResponse<{
|
|
2696
|
+
portalUrl: string;
|
|
2697
|
+
}>;
|
|
2698
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2699
|
+
createCustomerPortal: MutationResponse<{
|
|
2700
|
+
portalUrl: string;
|
|
2701
|
+
}>;
|
|
2702
|
+
}>>;
|
|
2428
2703
|
error: _apollo_client.ApolloError | undefined;
|
|
2429
2704
|
loading: boolean;
|
|
2430
2705
|
};
|
|
@@ -2432,19 +2707,17 @@ declare const useSelectPackage: () => {
|
|
|
2432
2707
|
error: _apollo_client.ApolloError | undefined;
|
|
2433
2708
|
loading: boolean;
|
|
2434
2709
|
selectPackage: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2435
|
-
selectPackage: {
|
|
2710
|
+
selectPackage: MutationResponse<{
|
|
2436
2711
|
checkoutUrl?: string;
|
|
2437
2712
|
userId: string;
|
|
2438
|
-
message: string;
|
|
2439
2713
|
licences: UserLicenceType[];
|
|
2440
|
-
}
|
|
2714
|
+
}>;
|
|
2441
2715
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2442
|
-
selectPackage: {
|
|
2716
|
+
selectPackage: MutationResponse<{
|
|
2443
2717
|
checkoutUrl?: string;
|
|
2444
2718
|
userId: string;
|
|
2445
|
-
message: string;
|
|
2446
2719
|
licences: UserLicenceType[];
|
|
2447
|
-
}
|
|
2720
|
+
}>;
|
|
2448
2721
|
}>>;
|
|
2449
2722
|
};
|
|
2450
2723
|
|
|
@@ -2466,17 +2739,29 @@ declare const useGetSubscriptionPlans: () => {
|
|
|
2466
2739
|
};
|
|
2467
2740
|
|
|
2468
2741
|
declare const useCreatePartner: () => {
|
|
2469
|
-
createPartner: (options?: _apollo_client.MutationFunctionOptions<
|
|
2742
|
+
createPartner: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2743
|
+
createPartner: MutationResponse<PartnerType>;
|
|
2744
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2745
|
+
createPartner: MutationResponse<PartnerType>;
|
|
2746
|
+
}>>;
|
|
2470
2747
|
error: _apollo_client.ApolloError | undefined;
|
|
2471
2748
|
loading: boolean;
|
|
2472
2749
|
};
|
|
2473
2750
|
declare const useUpdatePartner: () => {
|
|
2474
2751
|
error: _apollo_client.ApolloError | undefined;
|
|
2475
2752
|
loading: boolean;
|
|
2476
|
-
updatePartner: (options?: _apollo_client.MutationFunctionOptions<
|
|
2753
|
+
updatePartner: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2754
|
+
updatePartner: MutationResponse<PartnerType>;
|
|
2755
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2756
|
+
updatePartner: MutationResponse<PartnerType>;
|
|
2757
|
+
}>>;
|
|
2477
2758
|
};
|
|
2478
2759
|
declare const useDeletePartner: () => {
|
|
2479
|
-
deletePartner: (options?: _apollo_client.MutationFunctionOptions<
|
|
2760
|
+
deletePartner: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2761
|
+
deletePartner: MutationResponse<boolean>;
|
|
2762
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2763
|
+
deletePartner: MutationResponse<boolean>;
|
|
2764
|
+
}>>;
|
|
2480
2765
|
error: _apollo_client.ApolloError | undefined;
|
|
2481
2766
|
loading: boolean;
|
|
2482
2767
|
};
|
|
@@ -2527,17 +2812,29 @@ declare const useSearchPartners: (search: string, region: string) => {
|
|
|
2527
2812
|
};
|
|
2528
2813
|
|
|
2529
2814
|
declare const useCreatePost: () => {
|
|
2530
|
-
createPost: (options?: _apollo_client.MutationFunctionOptions<
|
|
2815
|
+
createPost: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2816
|
+
createPost: MutationResponse<PostType>;
|
|
2817
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2818
|
+
createPost: MutationResponse<PostType>;
|
|
2819
|
+
}>>;
|
|
2531
2820
|
error: _apollo_client.ApolloError | undefined;
|
|
2532
2821
|
loading: boolean;
|
|
2533
2822
|
};
|
|
2534
2823
|
declare const useUpdatePost: () => {
|
|
2535
2824
|
error: _apollo_client.ApolloError | undefined;
|
|
2536
2825
|
loading: boolean;
|
|
2537
|
-
updatePost: (options?: _apollo_client.MutationFunctionOptions<
|
|
2826
|
+
updatePost: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2827
|
+
updatePost: MutationResponse<PostType>;
|
|
2828
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2829
|
+
updatePost: MutationResponse<PostType>;
|
|
2830
|
+
}>>;
|
|
2538
2831
|
};
|
|
2539
2832
|
declare const useDeletePost: () => {
|
|
2540
|
-
deletePost: (options?: _apollo_client.MutationFunctionOptions<
|
|
2833
|
+
deletePost: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2834
|
+
deletePost: MutationResponse<boolean>;
|
|
2835
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2836
|
+
deletePost: MutationResponse<boolean>;
|
|
2837
|
+
}>>;
|
|
2541
2838
|
error: _apollo_client.ApolloError | undefined;
|
|
2542
2839
|
loading: boolean;
|
|
2543
2840
|
};
|
|
@@ -2570,17 +2867,17 @@ declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
|
2570
2867
|
declare const useUpdateAppSettings: () => {
|
|
2571
2868
|
error: _apollo_client.ApolloError | undefined;
|
|
2572
2869
|
loading: boolean;
|
|
2573
|
-
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<
|
|
2870
|
+
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2871
|
+
updateAppSettings: MutationResponse<boolean>;
|
|
2872
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2873
|
+
updateAppSettings: MutationResponse<boolean>;
|
|
2874
|
+
}>>;
|
|
2574
2875
|
};
|
|
2575
2876
|
declare const useCrawlGoogleMarkets: () => {
|
|
2576
2877
|
crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2577
|
-
crawlGoogleMarkets:
|
|
2578
|
-
message: string;
|
|
2579
|
-
};
|
|
2878
|
+
crawlGoogleMarkets: MutationResponse<boolean>;
|
|
2580
2879
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2581
|
-
crawlGoogleMarkets:
|
|
2582
|
-
message: string;
|
|
2583
|
-
};
|
|
2880
|
+
crawlGoogleMarkets: MutationResponse<boolean>;
|
|
2584
2881
|
}>>;
|
|
2585
2882
|
error: _apollo_client.ApolloError | undefined;
|
|
2586
2883
|
loading: boolean;
|
|
@@ -2589,13 +2886,9 @@ declare const useUpdateGoogleImportedMarkets: () => {
|
|
|
2589
2886
|
error: _apollo_client.ApolloError | undefined;
|
|
2590
2887
|
loading: boolean;
|
|
2591
2888
|
updateGoogleImportedMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2592
|
-
updateGoogleImportedMarkets:
|
|
2593
|
-
message: string;
|
|
2594
|
-
};
|
|
2889
|
+
updateGoogleImportedMarkets: MutationResponse<boolean>;
|
|
2595
2890
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2596
|
-
updateGoogleImportedMarkets:
|
|
2597
|
-
message: string;
|
|
2598
|
-
};
|
|
2891
|
+
updateGoogleImportedMarkets: MutationResponse<boolean>;
|
|
2599
2892
|
}>>;
|
|
2600
2893
|
};
|
|
2601
2894
|
|
|
@@ -2612,32 +2905,36 @@ declare const useStartGame: () => {
|
|
|
2612
2905
|
error: _apollo_client.ApolloError | undefined;
|
|
2613
2906
|
loading: boolean;
|
|
2614
2907
|
startGame: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2615
|
-
startGame: GameDocType
|
|
2908
|
+
startGame: MutationResponse<GameDocType>;
|
|
2616
2909
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2617
|
-
startGame: GameDocType
|
|
2910
|
+
startGame: MutationResponse<GameDocType>;
|
|
2618
2911
|
}>>;
|
|
2619
2912
|
};
|
|
2620
2913
|
declare const useLeaveGame: () => {
|
|
2621
2914
|
error: _apollo_client.ApolloError | undefined;
|
|
2622
|
-
leaveGame: (options?: _apollo_client.MutationFunctionOptions<
|
|
2915
|
+
leaveGame: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2916
|
+
leaveGame: MutationResponse<boolean>;
|
|
2917
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2918
|
+
leaveGame: MutationResponse<boolean>;
|
|
2919
|
+
}>>;
|
|
2623
2920
|
loading: boolean;
|
|
2624
2921
|
};
|
|
2625
2922
|
declare const useUpdateDailyClueGame: () => {
|
|
2626
2923
|
error: _apollo_client.ApolloError | undefined;
|
|
2627
2924
|
loading: boolean;
|
|
2628
2925
|
updateDailyClueGame: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2629
|
-
updateDailyClueGame: GameDocType
|
|
2926
|
+
updateDailyClueGame: MutationResponse<GameDocType>;
|
|
2630
2927
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2631
|
-
updateDailyClueGame: GameDocType
|
|
2928
|
+
updateDailyClueGame: MutationResponse<GameDocType>;
|
|
2632
2929
|
}>>;
|
|
2633
2930
|
};
|
|
2634
2931
|
declare const useUpdatePuzzleGame: () => {
|
|
2635
2932
|
error: _apollo_client.ApolloError | undefined;
|
|
2636
2933
|
loading: boolean;
|
|
2637
2934
|
updatePuzzleGame: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2638
|
-
updatePuzzleGame: GameDocType
|
|
2935
|
+
updatePuzzleGame: MutationResponse<GameDocType>;
|
|
2639
2936
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2640
|
-
updatePuzzleGame: GameDocType
|
|
2937
|
+
updatePuzzleGame: MutationResponse<GameDocType>;
|
|
2641
2938
|
}>>;
|
|
2642
2939
|
};
|
|
2643
2940
|
|
|
@@ -2667,24 +2964,40 @@ declare const useGetGameLeaderboard: () => {
|
|
|
2667
2964
|
};
|
|
2668
2965
|
|
|
2669
2966
|
declare const useCreateSchool: () => {
|
|
2670
|
-
createSchool: (options?: _apollo_client.MutationFunctionOptions<
|
|
2967
|
+
createSchool: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2968
|
+
createSchool: MutationResponse<SchoolType>;
|
|
2969
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2970
|
+
createSchool: MutationResponse<SchoolType>;
|
|
2971
|
+
}>>;
|
|
2671
2972
|
error: _apollo_client.ApolloError | undefined;
|
|
2672
2973
|
loading: boolean;
|
|
2673
2974
|
};
|
|
2674
2975
|
declare const useUpdateSchool: () => {
|
|
2675
2976
|
error: _apollo_client.ApolloError | undefined;
|
|
2676
2977
|
loading: boolean;
|
|
2677
|
-
updateSchool: (options?: _apollo_client.MutationFunctionOptions<
|
|
2978
|
+
updateSchool: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2979
|
+
updateSchool: MutationResponse<SchoolType>;
|
|
2980
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2981
|
+
updateSchool: MutationResponse<SchoolType>;
|
|
2982
|
+
}>>;
|
|
2678
2983
|
};
|
|
2679
2984
|
declare const useDeleteSchool: () => {
|
|
2680
|
-
deleteSchool: (options?: _apollo_client.MutationFunctionOptions<
|
|
2985
|
+
deleteSchool: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2986
|
+
deleteSchool: MutationResponse<boolean>;
|
|
2987
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2988
|
+
deleteSchool: MutationResponse<boolean>;
|
|
2989
|
+
}>>;
|
|
2681
2990
|
error: _apollo_client.ApolloError | undefined;
|
|
2682
2991
|
loading: boolean;
|
|
2683
2992
|
};
|
|
2684
2993
|
declare const useRequestMarketingMaterial: () => {
|
|
2685
2994
|
error: _apollo_client.ApolloError | undefined;
|
|
2686
2995
|
loading: boolean;
|
|
2687
|
-
requestMarketingMaterial: (options?: _apollo_client.MutationFunctionOptions<
|
|
2996
|
+
requestMarketingMaterial: (options?: _apollo_client.MutationFunctionOptions<{
|
|
2997
|
+
requestMarketingMaterial: MutationResponse<boolean>;
|
|
2998
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
2999
|
+
requestMarketingMaterial: MutationResponse<boolean>;
|
|
3000
|
+
}>>;
|
|
2688
3001
|
};
|
|
2689
3002
|
|
|
2690
3003
|
declare const useGetSchools: () => {
|
|
@@ -2721,6 +3034,52 @@ declare const useGetAffiliates: () => {
|
|
|
2721
3034
|
}>>;
|
|
2722
3035
|
};
|
|
2723
3036
|
|
|
3037
|
+
declare const useUpdateAffiliateDetails: () => {
|
|
3038
|
+
error: _apollo_client.ApolloError | undefined;
|
|
3039
|
+
loading: boolean;
|
|
3040
|
+
updateAffiliateDetails: (options?: _apollo_client.MutationFunctionOptions<{
|
|
3041
|
+
updateAffiliateDetails: MutationResponse<AffiliateType>;
|
|
3042
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
3043
|
+
updateAffiliateDetails: MutationResponse<AffiliateType>;
|
|
3044
|
+
}>>;
|
|
3045
|
+
};
|
|
3046
|
+
declare const useDeleteAffiliate: () => {
|
|
3047
|
+
deleteAffiliate: (options?: _apollo_client.MutationFunctionOptions<{
|
|
3048
|
+
deleteAffiliate: MutationResponse<boolean>;
|
|
3049
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
3050
|
+
deleteAffiliate: MutationResponse<boolean>;
|
|
3051
|
+
}>>;
|
|
3052
|
+
error: _apollo_client.ApolloError | undefined;
|
|
3053
|
+
loading: boolean;
|
|
3054
|
+
};
|
|
3055
|
+
declare const useRedeemAffiliateReward: () => {
|
|
3056
|
+
error: _apollo_client.ApolloError | undefined;
|
|
3057
|
+
loading: boolean;
|
|
3058
|
+
redeemAffiliateReward: (options?: _apollo_client.MutationFunctionOptions<{
|
|
3059
|
+
redeemAffiliateReward: MutationResponse<AffiliateType>;
|
|
3060
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
3061
|
+
redeemAffiliateReward: MutationResponse<AffiliateType>;
|
|
3062
|
+
}>>;
|
|
3063
|
+
};
|
|
3064
|
+
declare const useAssignAffiliateResourceReward: () => {
|
|
3065
|
+
assignAffiliateResourceReward: (options?: _apollo_client.MutationFunctionOptions<{
|
|
3066
|
+
assignAffiliateResourceReward: MutationResponse<AffiliateType>;
|
|
3067
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
3068
|
+
assignAffiliateResourceReward: MutationResponse<AffiliateType>;
|
|
3069
|
+
}>>;
|
|
3070
|
+
error: _apollo_client.ApolloError | undefined;
|
|
3071
|
+
loading: boolean;
|
|
3072
|
+
};
|
|
3073
|
+
declare const useAssignAffiliateBonusReward: () => {
|
|
3074
|
+
assignAffiliateBonusReward: (options?: _apollo_client.MutationFunctionOptions<{
|
|
3075
|
+
assignAffiliateBonusReward: MutationResponse<AffiliateType>;
|
|
3076
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
3077
|
+
assignAffiliateBonusReward: MutationResponse<AffiliateType>;
|
|
3078
|
+
}>>;
|
|
3079
|
+
error: _apollo_client.ApolloError | undefined;
|
|
3080
|
+
loading: boolean;
|
|
3081
|
+
};
|
|
3082
|
+
|
|
2724
3083
|
/** Minimal event fields for public (market) share copy — matches in-app preview. */
|
|
2725
3084
|
type ShareEventForPublic = {
|
|
2726
3085
|
description?: string | null;
|
|
@@ -2782,13 +3141,13 @@ declare const RELATION_SHARE_APPLICATION: "application";
|
|
|
2782
3141
|
* invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing
|
|
2783
3142
|
* this value forces crawlers to fetch a fresh image after server deploy.
|
|
2784
3143
|
*/
|
|
2785
|
-
declare const RELATION_OVERLAY_LAYOUT_VERSION =
|
|
3144
|
+
declare const RELATION_OVERLAY_LAYOUT_VERSION = 43;
|
|
2786
3145
|
declare const RELATION_SHARE_RESOURCE_TYPES: readonly ["invitation", "application"];
|
|
2787
3146
|
type RelationShareResourceType = (typeof RELATION_SHARE_RESOURCE_TYPES)[number];
|
|
2788
3147
|
declare function isRelationShareResourceType(resourceType: string): resourceType is RelationShareResourceType;
|
|
2789
3148
|
|
|
2790
3149
|
/** Path segments for public resource share URLs (markets, posts, etc.). */
|
|
2791
|
-
declare const PUBLIC_SHARE_PATH_TYPES: readonly ["market", "stallholder", "partner", "market_faces", "clue_bites", "play_and_win"];
|
|
3150
|
+
declare const PUBLIC_SHARE_PATH_TYPES: readonly ["market", "stallholder", "partner", "affiliate", "school", "market_faces", "clue_bites", "play_and_win"];
|
|
2792
3151
|
type PublicSharePathType = (typeof PUBLIC_SHARE_PATH_TYPES)[number];
|
|
2793
3152
|
type RelationSharePathType = typeof RELATION_SHARE_INVITATION | typeof RELATION_SHARE_APPLICATION;
|
|
2794
3153
|
type ShareType = PublicSharePathType | RelationSharePathType;
|
|
@@ -2800,6 +3159,7 @@ declare function buildShareUrl(type: ShareType, slug: string, utmMedium?: string
|
|
|
2800
3159
|
declare const SOCIAL_IMAGE_WIDTH = 1200;
|
|
2801
3160
|
/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */
|
|
2802
3161
|
declare const SOCIAL_IMAGE_HEIGHT = 630;
|
|
3162
|
+
/** Keep in sync with `CLUEMART_MAIN_DOMAIN_URL` in utils (avoid utils↔sharing import cycle). */
|
|
2803
3163
|
declare const SHARE_SITE_URL = "https://cluemart.co.nz";
|
|
2804
3164
|
/** Calendar marker for invitation market-dates share copy (U+1F4C5 📅). */
|
|
2805
3165
|
declare const SHARE_CALENDAR_ICON = "\uD83D\uDCC5";
|
|
@@ -2834,7 +3194,7 @@ declare const SHARE_APPLICATION_DEADLINE_PREFIX = "\u23F0 Application deadline:"
|
|
|
2834
3194
|
/** First line on share sheet messages, Facebook SDK quote, and `og:description`. */
|
|
2835
3195
|
declare const SHARE_MORE_INFO_LINE = "Shared from ClueMart";
|
|
2836
3196
|
declare const DEFAULT_SHARE_OG_IMAGE = "https://cluemart.co.nz/assets/logo.webp";
|
|
2837
|
-
declare const RESOURCE_SHARE_TYPES: readonly ["market", "stallholder", "partner"];
|
|
3197
|
+
declare const RESOURCE_SHARE_TYPES: readonly ["market", "stallholder", "partner", "affiliate", "school"];
|
|
2838
3198
|
type ResourceShareType = (typeof RESOURCE_SHARE_TYPES)[number];
|
|
2839
3199
|
declare const POST_SHARE_RESOURCE_TYPES: readonly ["market_faces", "clue_bites", "play_and_win"];
|
|
2840
3200
|
type PostShareResourceType = (typeof POST_SHARE_RESOURCE_TYPES)[number];
|
|
@@ -2890,6 +3250,11 @@ declare function buildFacebookShareQuote(title: string, description: string, sha
|
|
|
2890
3250
|
declare function buildShareOgDescriptionFromSections(sections: ReadonlyArray<string | false | null | undefined>): string;
|
|
2891
3251
|
/** Open Graph / Twitter description — body sections only (`og:title` is separate). */
|
|
2892
3252
|
declare function buildShareOgDescription(_title: string, description: string): string;
|
|
3253
|
+
/**
|
|
3254
|
+
* Strips emoji and symbols that do not render reliably in overlay SVG fonts.
|
|
3255
|
+
* Keeps letters, numbers, whitespace, and common sentence punctuation.
|
|
3256
|
+
*/
|
|
3257
|
+
declare function stripOverlaySubtitleSpecialChars(text: string): string;
|
|
2893
3258
|
|
|
2894
3259
|
declare function normalizeShareRouteId(id: string): string;
|
|
2895
3260
|
/** Relative path for a public share landing page (`/market/demo-market`). */
|
|
@@ -2900,6 +3265,12 @@ type ShareSlugResource = {
|
|
|
2900
3265
|
};
|
|
2901
3266
|
declare function shareSlugResourceId(resource: ShareSlugResource | null | undefined): string | null;
|
|
2902
3267
|
|
|
3268
|
+
/**
|
|
3269
|
+
* Normalizes resource `updatedAt` to an epoch-ms string for Facebook/CDN cache busting
|
|
3270
|
+
* on social-image URLs (`?v=`). The API ignores this query param.
|
|
3271
|
+
*/
|
|
3272
|
+
declare function toShareSocialImageCacheVersion(updatedAt: Date | string | number | null | undefined): string | null;
|
|
3273
|
+
|
|
2903
3274
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
2904
3275
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
2905
3276
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -2989,6 +3360,11 @@ declare const futureTimePeriods: {
|
|
|
2989
3360
|
value: string;
|
|
2990
3361
|
}[];
|
|
2991
3362
|
|
|
3363
|
+
/**
|
|
3364
|
+
* Convert an array of strings to an array of objects with label and value properties.
|
|
3365
|
+
*/
|
|
3366
|
+
declare const mapArrayToOptions: (items: string[]) => OptionItem[];
|
|
3367
|
+
|
|
2992
3368
|
declare const removeTypename: (obj: any) => any;
|
|
2993
3369
|
/**
|
|
2994
3370
|
* Truncate text to a specified length and append ellipsis if necessary.
|
|
@@ -2997,12 +3373,6 @@ declare const removeTypename: (obj: any) => any;
|
|
|
2997
3373
|
* @returns
|
|
2998
3374
|
*/
|
|
2999
3375
|
declare const truncateText: (text: string, maxLength?: number) => string;
|
|
3000
|
-
/**
|
|
3001
|
-
* Convert an array of strings to an array of objects with label and value properties.
|
|
3002
|
-
* @param items - The array of strings to convert.
|
|
3003
|
-
* @returns - The converted array of objects.
|
|
3004
|
-
*/
|
|
3005
|
-
declare const mapArrayToOptions: (items: string[]) => OptionItem[];
|
|
3006
3376
|
declare const capitalizeFirstLetter: (str: string) => string;
|
|
3007
3377
|
declare const statusOptions: {
|
|
3008
3378
|
label: EnumInviteStatus;
|
|
@@ -3024,34 +3394,11 @@ declare const rewardNiceNames: Record<EnumReward, {
|
|
|
3024
3394
|
points: number;
|
|
3025
3395
|
}>;
|
|
3026
3396
|
declare const PostTypeLabels: Record<EnumPostType, string>;
|
|
3027
|
-
/** Hardcoded
|
|
3397
|
+
/** Hardcoded registration gateway code; only valid at sign-up (not a generated school referral code). */
|
|
3028
3398
|
declare const CM_SCHOOL_PROMO_CODE = "CM-SCHOOL";
|
|
3399
|
+
/** Hardcoded registration gateway code; only valid at sign-up (not a generated affiliate referral code). */
|
|
3029
3400
|
declare const CM_AFFILIATE_PROMO_CODE = "CM-AFFILIATE";
|
|
3030
|
-
|
|
3031
|
-
declare const AFFILIATE_REWARDS: {
|
|
3032
|
-
NEW_EVENT_REGISTRATION: {
|
|
3033
|
-
description: string;
|
|
3034
|
-
value: number;
|
|
3035
|
-
};
|
|
3036
|
-
NEW_VENDOR_REGISTRATION: {
|
|
3037
|
-
description: string;
|
|
3038
|
-
value: number;
|
|
3039
|
-
};
|
|
3040
|
-
NEW_PARTNER_REGISTRATION: {
|
|
3041
|
-
description: string;
|
|
3042
|
-
value: number;
|
|
3043
|
-
};
|
|
3044
|
-
};
|
|
3045
|
-
/**
|
|
3046
|
-
* Create an affiliate reward
|
|
3047
|
-
* @param rewardType - The type of reward
|
|
3048
|
-
* @param receivedAt - The date the reward was received
|
|
3049
|
-
* @returns The affiliate reward
|
|
3050
|
-
* @example
|
|
3051
|
-
* const reward = createAffiliateReward(EnumAffiliateRewardType.NEW_EVENT_REGISTRATION, new Date());
|
|
3052
|
-
* console.log(reward);
|
|
3053
|
-
*/
|
|
3054
|
-
declare function createAffiliateReward(rewardType: EnumAffiliateRewardType, createdAt: Date): AffiliateReward;
|
|
3401
|
+
declare function formatNZBankAccount(input: string): string;
|
|
3055
3402
|
|
|
3056
3403
|
/**
|
|
3057
3404
|
* Loose input shape for normalization helpers. Callers often pass partial or legacy
|
|
@@ -3136,4 +3483,79 @@ declare function getVendorEventRelationStartDates(events: EventListItemType[] |
|
|
|
3136
3483
|
declare function getVendorEventRelationDateOptions(events: EventListItemType[] | null | undefined): StallholderFilterOption[];
|
|
3137
3484
|
declare function getVendorEventsEmptyMessage(): string;
|
|
3138
3485
|
|
|
3139
|
-
export { AFFILIATE_REWARDS, ANDROID_URL, type AdFormData, type AdFormState, type AdResource, type AdType, type AdminUpdateResourceType, type AffiliateResourceType, type AffiliateReward, type AffiliateType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type AuthPayloadType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, type CalendarSheetContentData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAdFormState, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_SHARE_OG_IMAGE, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_PERIOD_MAP, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumAffiliateRewardType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumReward, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStatusType, type EventType, type FormDateField, type FormField, GET_EVENT, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_PARTNER, GET_PARTNER_BY_SLUG, GET_POST, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_VENDOR, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, KNOWN_EVENT_SCHEDULE_STATUSES, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostResource, type PostShareResourceType, type PostType, PostTypeLabels, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type PublicSharePathType, type PushTokenType, type PuzzleAnswer, type PuzzleAnsweredQuestion, type PuzzleBaseGame, type PuzzleGameData, type PuzzleQuestion, RELATION_OVERLAY_LAYOUT_VERSION, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, type RedeemRewardInput, type RedeemRewardResponse, type RedeemedReward, type RefreshTokenPayloadType, type RefundPolicy, type Region, type RegisterFormData, type RelatedPostType, type RelationDate, type RelationInputType, type RelationSharePathType, type RelationShareResourceType, type RelationType$1 as RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, SOCIAL_IMAGE_HEIGHT, SOCIAL_IMAGE_WIDTH, type SafeUserType, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventForInvitation, type ShareEventForPublic, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type TermsAgreement, type Tier, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetResourcesByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, buildApplicationShareDescription, buildCalendarSheetContentData, buildFacebookShareQuote, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderStartDates, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, contactUsFields, createAffiliateReward, darkColors, dateFormat, emailField, eventBasicInfoFields, eventEndDateFields, eventHasSelectedDate, eventInfo, eventInfoPaymentInfo, eventMatchesDateStatusPeriod, eventStartDateFields, eventStartDatesSet, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, gameScreenIdentifierList, gameTypeToDisplayName, getAllowedEventDateStatuses, getCurrentAndFutureDates, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasMatchingEventDate, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isIsoDateString, isPostShareResourceType, isRelationShareResourceType, isResourceImageActive, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeResourceImage, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, relationHasSelectedDate, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, resolveResourceImageActive, rewardNiceNames, seededShuffle, shareMessageFooterPlacementForType, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
|
3486
|
+
declare const AFFILIATE_PARTICIPANT_TYPE_LABELS: {
|
|
3487
|
+
readonly INDIVIDUAL: "Individual";
|
|
3488
|
+
readonly SOLE_TRADER: "Sole Trader";
|
|
3489
|
+
readonly COMPANY: "Company";
|
|
3490
|
+
};
|
|
3491
|
+
declare const AFFILIATE_REWARDS: {
|
|
3492
|
+
NEW_EVENT_REGISTRATION: {
|
|
3493
|
+
description: string;
|
|
3494
|
+
value: number;
|
|
3495
|
+
};
|
|
3496
|
+
NEW_VENDOR_REGISTRATION: {
|
|
3497
|
+
description: string;
|
|
3498
|
+
value: number;
|
|
3499
|
+
};
|
|
3500
|
+
ACTIVE_VENDOR_PRO_SUBSCRIPTION: {
|
|
3501
|
+
description: string;
|
|
3502
|
+
value: number;
|
|
3503
|
+
};
|
|
3504
|
+
ACTIVE_VENDOR_STANDARD_SUBSCRIPTION: {
|
|
3505
|
+
description: string;
|
|
3506
|
+
value: number;
|
|
3507
|
+
};
|
|
3508
|
+
ACTIVE_VENDOR_BONUS_REWARD: {
|
|
3509
|
+
description: string;
|
|
3510
|
+
value: number;
|
|
3511
|
+
};
|
|
3512
|
+
ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS: {
|
|
3513
|
+
description: string;
|
|
3514
|
+
value: number;
|
|
3515
|
+
};
|
|
3516
|
+
};
|
|
3517
|
+
/**
|
|
3518
|
+
* Create an affiliate reward
|
|
3519
|
+
* @param rewardType - The type of reward
|
|
3520
|
+
* @param createdAt - The date the reward was received
|
|
3521
|
+
* @returns The affiliate reward
|
|
3522
|
+
* @example
|
|
3523
|
+
* const reward = createAffiliateReward(EnumAffiliateRewardType.NEW_EVENT_REGISTRATION, new Date());
|
|
3524
|
+
* console.log(reward);
|
|
3525
|
+
*/
|
|
3526
|
+
declare function createAffiliateReward(rewardType: EnumAffiliateRewardType, createdAt: Date): AffiliateRewardType;
|
|
3527
|
+
|
|
3528
|
+
/**
|
|
3529
|
+
* NZ IRD number validation (Inland Revenue modulus-11 check digit).
|
|
3530
|
+
*
|
|
3531
|
+
* Valid range: 10,000,000 – 200,000,000 (upper limit raised Feb 2026; length stays
|
|
3532
|
+
* 8–9 digits). See IRD file-upload / payday filing specifications.
|
|
3533
|
+
*/
|
|
3534
|
+
/** Digits only; strips spaces/hyphens and other non-digits. */
|
|
3535
|
+
declare function normalizeIrdNumber(value: string): string;
|
|
3536
|
+
/**
|
|
3537
|
+
* Formats an IRD number as groups of three digits separated by hyphens
|
|
3538
|
+
* (e.g. `490-918-50` / `049-091-850`), capping at 9 digits.
|
|
3539
|
+
*/
|
|
3540
|
+
declare function formatIrdNumber(input: string): string;
|
|
3541
|
+
/**
|
|
3542
|
+
* Returns true when `value` is a valid NZ IRD number (8–9 digits, in issued
|
|
3543
|
+
* range, and modulus-11 check digit matches).
|
|
3544
|
+
*/
|
|
3545
|
+
declare function isValidIrdNumber(value: string): boolean;
|
|
3546
|
+
|
|
3547
|
+
/** True for short-lived connectivity failures (e.g. resume before the stack is ready). */
|
|
3548
|
+
declare function isTransientNetworkError(err: unknown): boolean;
|
|
3549
|
+
|
|
3550
|
+
declare const DEFAULT_USER_FACING_ERROR = "Something went wrong. Please try again.";
|
|
3551
|
+
declare const NETWORK_USER_FACING_ERROR = "Unable to connect. Please check your internet connection and try again.";
|
|
3552
|
+
declare function isInternalErrorMessage(message: string): boolean;
|
|
3553
|
+
/**
|
|
3554
|
+
* Maps raw API/client errors to a safe message for UI surfaces.
|
|
3555
|
+
* Keeps intentional product copy (e.g. "Vendor not found"); hides infra details.
|
|
3556
|
+
*/
|
|
3557
|
+
declare function toUserFacingErrorMessage(error: string | null | undefined, fallback?: string): string;
|
|
3558
|
+
/** Extracts and sanitizes an unknown catch/Apollo error for toasts and alerts. */
|
|
3559
|
+
declare function getErrorMessage(error: unknown, fallback?: string): string;
|
|
3560
|
+
|
|
3561
|
+
export { ADMIN_APP_ROLES, ADMIN_DASHBOARD_CONTEXTS, AFFILIATE_PARTICIPANT_TYPE_LABELS, AFFILIATE_REWARDS, ANDROID_URL, type AdFormData, type AdFormState, type AdResource, type AdType, type AdminAppRole, type AdminDashboardContext, type AdminDashboardContextInfo, type AdminUpdateResourceType, type AffiliateBankAccountDetailsType, type AffiliateContactDetails, type AffiliateDetailsType, type AffiliateFormData, type AffiliateResourceType, type AffiliateRewardType, type AffiliateType, type AffiliateUserDefaultFields, type AppSettingsFormData, type AppSettingsType, type AuthMutationResponse, type AuthPayloadType, type BadgeBasename, type BadgeId, type BaseGameMap, type BaseGameType, type BaseResourceType, type BaseResourceTypeFormData, CLUEMART_MAIN_DOMAIN_URL, CM_AFFILIATE_PROMO_CODE, CM_SCHOOL_PROMO_CODE, type CalendarSheetContentData, type Category, type ChatMessageInput, type ChatMessageReaction, type ChatMessageReplyPreview, type ChatMessageSeen, type ChatMessageType, type ChatType, type CluiImageBasename, type CluiImageId, type ContactUsFormData, type CreateAdFormData, type CreateAdFormState, type CreateAffiliateFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateSchoolFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, DEFAULT_RESOURCES_RETURN_LIMIT, DEFAULT_RESOURCES_RETURN_OFFSET, DEFAULT_SHARE_OG_IMAGE, DEFAULT_USER_FACING_ERROR, type DailyClueBaseGame, type DailyClueGameData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EVENT_DATE_STATUS_PERIOD_MAP, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumAffiliateParticipantType, EnumAffiliateRewardType, EnumBillingPeriod, EnumChatReportReason, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumGameStatus, EnumGameType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, EnumRegions, EnumRelationResource, EnumResourceType, EnumReward, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, EnumVerificationType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventListItemType, type EventScheduleStatusPresentation, type EventScheduleStatusTone, type EventStatusType, type EventType, type FormDateField, type FormField, GET_EVENT, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_PARTNER, GET_PARTNER_BY_SLUG, GET_POST, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_VENDOR, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GameDate, type GameDocType, type GameHistory, type GameLeaderboard, type GamePlacement, type GamePlacementClue, type GameType, type GeocodeLocation, type GlobalGameData, type GoogleAddressComponent, type GoogleImportedMarket, IMAGE_EXTENSION, IOS_URL, type IconBasename, type IconId, type ImageObjectType, ImageTypeEnum, KNOWN_EVENT_SCHEDULE_STATUSES, type LocationGeoType, type LocationType, type LoginFormData, type LogoBasename, type LogoId, type MarketingMaterialRequestInputType, type MutationResponse, NETWORK_USER_FACING_ERROR, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, OG_DESCRIPTION_LINE_BREAK, type OptionItem, type OtherImagesBasename, type OtherImagesId, type OwnerType, PERMISSIONS, POST_SHARE_RESOURCE_TYPES, PROMO_CODE_PREFIX, PUBLIC_SHARE_PATH_TYPES, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type Permission, type PostContentData, type PostContentFormData, type PostContentGame, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostResource, type PostShareResourceType, type PostType, PostTypeLabels, type PosterAssetId, type PosterImageBasename, type PosterInputType, type PosterUsageType, type PromoCodeType, type PublicSharePathType, type PushTokenType, type PuzzleAnswer, type PuzzleAnsweredQuestion, type PuzzleBaseGame, type PuzzleGameData, type PuzzleQuestion, RELATION_OVERLAY_LAYOUT_VERSION, RELATION_SHARE_APPLICATION, RELATION_SHARE_INVITATION, RELATION_SHARE_RESOURCE_TYPES, RESOURCE_SHARE_TYPES, ROLE_PERMISSIONS, type RedeemHistoryType, type RedeemRewardInput, type RedeemRewardMutationResponse, type RedeemRewardResponse, type RedeemedReward, type RefreshTokenMutationResponse, type RefreshTokenPayloadType, type RefundPolicy, type Region, type RegisterFormData, type RelatedPostType, type RelationDate, type RelationInputType, type RelationSharePathType, type RelationShareResourceType, type RelationType$1 as RelationType, type ReportChatUser, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceByUser, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceDetails, type ResourceImageType, type ResourceShareType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, SCHOOL_MAX_STUDENT_COUNT, SCHOOL_MIN_STUDENT_COUNT, SHARE_APPLICATION_DEADLINE_PREFIX, SHARE_CALENDAR_ICON, SHARE_CATEGORIES_SECTION_HEADING, SHARE_CATEGORY_ICON, SHARE_CHECKMARK_ICON, SHARE_CLOCK_ICON, SHARE_COMPLIANCE_PREFIX, SHARE_DESCRIPTION_SECTION_BREAK, SHARE_DOLLAR_ICON, SHARE_FOOD_TRUCK_LINE, SHARE_INFO_ICON, SHARE_MARKET_DATES_SECTION_HEADING, SHARE_MORE_INFO_LINE, SHARE_PRICE_RANGE_PREFIX, SHARE_RAIN_OR_SHINE_LINE, SHARE_REQUIREMENTS_SECTION_HEADING, SHARE_RESOURCE_LABEL, SHARE_RULER_ICON, SHARE_SITE_URL, SHARE_STALL_SIZE_PREFIX, SHARE_TAGS_SECTION_HEADING, SHARE_TYPE_PATH_REGEX, SOCIAL_IMAGE_HEIGHT, SOCIAL_IMAGE_WIDTH, type SafeUserType, type SchoolCampaignType, type SchoolFormData, type SchoolRegisteredUserType, type SchoolReturnType, type SchoolType, type ShareEventForInvitation, type ShareEventForPublic, type ShareEventInfoForInvitation, type ShareMessageFooterPlacement, type ShareResourceType, type ShareSlugResource, type ShareType, type ShareVendorForApplication, type ShareVendorForPublic, type ShareVendorInfoForApplication, type SocialMediaType, type SocialShareResourceType, type StallType, type StallholderFilterOption, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionPlanData, type SubscriptionPlansResponse, type SubscriptionPricingData, type SubscriptionStatusData, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type TermsAgreement, type Tier, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UseGetResourcesByRegionOptions, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorCalendarData, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorProductList, type VendorType, WILDCARD_PERMISSION, appendShareMoreInfoLine, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, badgeFiles, badgeIds, badges, bankAccountDetailsFields, buildApplicationShareDescription, buildCalendarSheetContentData, buildFacebookShareQuote, buildInvitationShareDescription, buildPublicEventShareDescription, buildPublicVendorShareDescription, buildShareMessageSections, buildShareOgDescription, buildShareOgDescriptionFromSections, buildSharePagePath, buildShareUrl, canAccessAdminApp, canAccessAdminPath, capitalizeFirstLetter, categoryColors, cluemartSocialMedia, cluiFiles, cluiIds, cluiImages, collectStallholderStartDates, collectVendorEventRelationDateTimes, companyContactFields, computeDailyClueState, contactUsFields, createAffiliateReward, darkColors, dateFormat, emailField, eventBasicInfoFields, eventEndDateFields, eventHasSelectedDate, eventInfo, eventInfoPaymentInfo, eventMatchesDateStatusPeriod, eventStartDateFields, eventStartDatesSet, filterEventsByDateStatusPeriod, filterRegisteredVendorsByEventDatesOnly, filterRegisteredVendorsForEvent, filterUnregisteredVendorsByEventDatesOnly, filterUnregisteredVendorsForEvent, filterVendorEventsBySelectedDate, findEventDateTimeByIsoDate, fonts, foodFlavourOptions, formatCategoryLabel, formatDate, formatIrdNumber, formatNZBankAccount, formatShareApplicationCategoriesSection, formatShareApplicationComplianceSection, formatShareApplicationPriceRangeLine, formatShareApplicationStallSizeLine, formatShareInvitationApplicationDeadlineLine, formatShareInvitationMarketDatesSection, formatShareInvitationRequirementsSection, formatShareIsFoodTrueLine, formatShareMarketDate, formatShareRainOrShineLine, formatShareStallLine, formatShareTagsSection, formatStallCapacityLabel, formatTimestamp, fromCalendarIsoDate, futureTimePeriods, gameScreenIdentifierList, gameTypeToDisplayName, getAllowedEventDateStatuses, getCurrentAndFutureDates, getDefaultAdminHome, getErrorMessage, getEventCalendarIsoDates, getEventDatesWithStallholders, getEventScheduleStatusLabel, getEventScheduleStatusPresentation, getEventScheduleStatusTone, getEventStallholderEmptyMessage, getPermissionsForRoles, getRegisteredVendorCategoryNames, getRegisteredVendorStartDates, getStallholderCategoryNames, getStallholderCategoryOptions, getUnregisteredVendorCategoryNames, getUnregisteredVendorStartDates, getUsableAdminContexts, getVendorEventRelationDateOptions, getVendorEventRelationStartDates, getVendorEventsEmptyMessage, hasAllPermissions, hasAnyPermission, hasAnyRole, hasMatchingEventDate, hasPermission, hasRole, iconFiles, iconIds, icons, isFutureDatesBeforeThreshold, isInternalErrorMessage, isIsoDateString, isPostShareResourceType, isRelationShareResourceType, isResourceImageActive, isTransientNetworkError, isValidIrdNumber, joinShareDescriptionSections, joinShareOgDescriptionSections, licenseNiceNames, lightColors, loginFields, logoFiles, logoIds, logos, mapArrayToOptions, matchesCategory, matchesSelectedDate, normalizeIrdNumber, normalizeResourceImage, normalizeShareOgDescription, normalizeShareRouteId, normalizeShareText, normalizeUrl, nzStartOfDay, otherImages, otherImagesFiles, otherImagesIds, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, permissionListIncludes, posterFiles, posterIds, posters, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, relationHasSelectedDate, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, resolveAdminContextFromPath, resolveResourceImageActive, rewardNiceNames, seededShuffle, shareMessageFooterPlacementForType, shareSlugResourceId, shouldShowEventActionsWithWeather, socialMediaFields, sortDatesChronologically, splitShareDescriptionSections, stallTypeOptions, statusOptions, stripOverlaySubtitleSpecialChars, tagOptions, timeFormat, toCalendarIsoDate, toGraphqlQueryString, toNZTime, toShareSocialImageCacheVersion, toUserFacingErrorMessage, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAffiliate, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetRelationChats, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRedeemAffiliateReward, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|