@timardex/cluemart-shared 1.0.99 → 1.1.1
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/{contactUs-CQ9xTjlE.d.ts → auth-CmRHMcuP.d.mts} +20 -18
- package/dist/{contactUs-CQ9xTjlE.d.mts → auth-CmXUqk1S.d.ts} +20 -18
- package/dist/{chunk-ORGSRTC4.mjs → chunk-MNT626FO.mjs} +2 -2
- package/dist/{chunk-JIL6JFWC.mjs → chunk-THXIIQ2K.mjs} +13 -7
- package/dist/chunk-THXIIQ2K.mjs.map +1 -0
- package/dist/enums/index.cjs +14 -7
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +8 -4
- package/dist/enums/index.d.ts +8 -4
- package/dist/enums/index.mjs +5 -3
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/{global-BKSOBGXQ.d.ts → global-BBjHo_Lg.d.ts} +0 -2
- package/dist/{global-BliF-Fia.d.mts → global-DcpQzfP1.d.mts} +0 -2
- package/dist/graphql/index.cjs +4 -5
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +5 -6
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +6 -6
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +4 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +19 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -9
- package/dist/index.d.ts +16 -9
- package/dist/index.mjs +17 -12
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-C8o4coJt.d.ts → notification-BBO1auKM.d.mts} +4 -2
- package/dist/{notification-C717ZvTP.d.mts → notification-CAZUXK48.d.ts} +4 -2
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/{user-9NMUOjRI.d.ts → user-BFGqdgfy.d.ts} +7 -4
- package/dist/{user-BxMCacsk.d.mts → user-DvR0z1PC.d.mts} +7 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-JIL6JFWC.mjs.map +0 -1
- /package/dist/{chunk-ORGSRTC4.mjs.map → chunk-MNT626FO.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,10 @@ declare enum EnumInviteStatus {
|
|
|
10
10
|
REJECTED = "Rejected",
|
|
11
11
|
WAITING = "Waiting"
|
|
12
12
|
}
|
|
13
|
+
declare enum EnumChatType {
|
|
14
|
+
GROUP = "group",
|
|
15
|
+
PRIVATE = "private"
|
|
16
|
+
}
|
|
13
17
|
declare enum EnumPaymentMethod {
|
|
14
18
|
CASH = "cash",
|
|
15
19
|
EFTPOS = "eftpos",
|
|
@@ -21,9 +25,9 @@ declare enum EnumResourceType {
|
|
|
21
25
|
MARKET = "market",
|
|
22
26
|
STALLHOLDER = "stallholder"
|
|
23
27
|
}
|
|
24
|
-
declare enum
|
|
25
|
-
ANDROID = "
|
|
26
|
-
IOS = "
|
|
28
|
+
declare enum EnumOSPlatform {
|
|
29
|
+
ANDROID = "android",
|
|
30
|
+
IOS = "ios"
|
|
27
31
|
}
|
|
28
32
|
declare enum EnumRelationResource {
|
|
29
33
|
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
@@ -274,10 +278,8 @@ interface BaseResourceTypeFormData {
|
|
|
274
278
|
socialMedia?: SocialMediaType[] | null;
|
|
275
279
|
}
|
|
276
280
|
type OwnerType = {
|
|
277
|
-
avatar: string | null;
|
|
278
281
|
email: string;
|
|
279
282
|
licences: string[];
|
|
280
|
-
name: string;
|
|
281
283
|
userId: string;
|
|
282
284
|
};
|
|
283
285
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
@@ -398,6 +400,7 @@ type RegisterFormData = {
|
|
|
398
400
|
firstName: string;
|
|
399
401
|
lastName: string;
|
|
400
402
|
password: string;
|
|
403
|
+
platform?: EnumOSPlatform;
|
|
401
404
|
preferredRegion: string;
|
|
402
405
|
};
|
|
403
406
|
interface CreateRegisterFormData {
|
|
@@ -473,9 +476,10 @@ interface ChatMessageType {
|
|
|
473
476
|
}
|
|
474
477
|
interface ChatType {
|
|
475
478
|
_id: string;
|
|
479
|
+
chatName: string;
|
|
480
|
+
chatType: EnumChatType;
|
|
476
481
|
createdAt: string;
|
|
477
482
|
messages: ChatMessageType[];
|
|
478
|
-
name: string;
|
|
479
483
|
participants: ParticipantType[];
|
|
480
484
|
updatedAt: string;
|
|
481
485
|
}
|
|
@@ -537,7 +541,7 @@ type TestersFormData = {
|
|
|
537
541
|
email: string;
|
|
538
542
|
firstName: string;
|
|
539
543
|
lastName: string;
|
|
540
|
-
osType:
|
|
544
|
+
osType: EnumOSPlatform;
|
|
541
545
|
resourceType: EnumResourceType;
|
|
542
546
|
};
|
|
543
547
|
interface CreateTestersFormData {
|
|
@@ -558,7 +562,7 @@ type TesterType = {
|
|
|
558
562
|
email: string;
|
|
559
563
|
firstName: string;
|
|
560
564
|
lastName: string;
|
|
561
|
-
osType:
|
|
565
|
+
osType: EnumOSPlatform;
|
|
562
566
|
resourceType: EnumResourceType;
|
|
563
567
|
updatedAt: string;
|
|
564
568
|
};
|
|
@@ -573,6 +577,7 @@ type UserFormData = {
|
|
|
573
577
|
firstName: string;
|
|
574
578
|
lastName: string;
|
|
575
579
|
password: string;
|
|
580
|
+
platform?: EnumOSPlatform;
|
|
576
581
|
preferredRegion: string;
|
|
577
582
|
role: EnumUserRole;
|
|
578
583
|
};
|
|
@@ -598,10 +603,12 @@ interface UserType {
|
|
|
598
603
|
stallholders: string[];
|
|
599
604
|
};
|
|
600
605
|
firstName: string;
|
|
606
|
+
ip: string | null;
|
|
601
607
|
lastName: string;
|
|
602
608
|
licences: EnumUserLicence[] | null;
|
|
603
609
|
markets: string[] | null;
|
|
604
610
|
password: string;
|
|
611
|
+
platform: EnumOSPlatform | null;
|
|
605
612
|
preferredRegion: string;
|
|
606
613
|
refreshToken: string | null;
|
|
607
614
|
role: EnumUserRole;
|
|
@@ -1264,4 +1271,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1264
1271
|
declare const paymentMethodOptions: OptionItem[];
|
|
1265
1272
|
declare function normalizeUrl(url: string): string;
|
|
1266
1273
|
|
|
1267
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumNotificationType,
|
|
1274
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumChatType, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ declare enum EnumInviteStatus {
|
|
|
10
10
|
REJECTED = "Rejected",
|
|
11
11
|
WAITING = "Waiting"
|
|
12
12
|
}
|
|
13
|
+
declare enum EnumChatType {
|
|
14
|
+
GROUP = "group",
|
|
15
|
+
PRIVATE = "private"
|
|
16
|
+
}
|
|
13
17
|
declare enum EnumPaymentMethod {
|
|
14
18
|
CASH = "cash",
|
|
15
19
|
EFTPOS = "eftpos",
|
|
@@ -21,9 +25,9 @@ declare enum EnumResourceType {
|
|
|
21
25
|
MARKET = "market",
|
|
22
26
|
STALLHOLDER = "stallholder"
|
|
23
27
|
}
|
|
24
|
-
declare enum
|
|
25
|
-
ANDROID = "
|
|
26
|
-
IOS = "
|
|
28
|
+
declare enum EnumOSPlatform {
|
|
29
|
+
ANDROID = "android",
|
|
30
|
+
IOS = "ios"
|
|
27
31
|
}
|
|
28
32
|
declare enum EnumRelationResource {
|
|
29
33
|
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
@@ -274,10 +278,8 @@ interface BaseResourceTypeFormData {
|
|
|
274
278
|
socialMedia?: SocialMediaType[] | null;
|
|
275
279
|
}
|
|
276
280
|
type OwnerType = {
|
|
277
|
-
avatar: string | null;
|
|
278
281
|
email: string;
|
|
279
282
|
licences: string[];
|
|
280
|
-
name: string;
|
|
281
283
|
userId: string;
|
|
282
284
|
};
|
|
283
285
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
@@ -398,6 +400,7 @@ type RegisterFormData = {
|
|
|
398
400
|
firstName: string;
|
|
399
401
|
lastName: string;
|
|
400
402
|
password: string;
|
|
403
|
+
platform?: EnumOSPlatform;
|
|
401
404
|
preferredRegion: string;
|
|
402
405
|
};
|
|
403
406
|
interface CreateRegisterFormData {
|
|
@@ -473,9 +476,10 @@ interface ChatMessageType {
|
|
|
473
476
|
}
|
|
474
477
|
interface ChatType {
|
|
475
478
|
_id: string;
|
|
479
|
+
chatName: string;
|
|
480
|
+
chatType: EnumChatType;
|
|
476
481
|
createdAt: string;
|
|
477
482
|
messages: ChatMessageType[];
|
|
478
|
-
name: string;
|
|
479
483
|
participants: ParticipantType[];
|
|
480
484
|
updatedAt: string;
|
|
481
485
|
}
|
|
@@ -537,7 +541,7 @@ type TestersFormData = {
|
|
|
537
541
|
email: string;
|
|
538
542
|
firstName: string;
|
|
539
543
|
lastName: string;
|
|
540
|
-
osType:
|
|
544
|
+
osType: EnumOSPlatform;
|
|
541
545
|
resourceType: EnumResourceType;
|
|
542
546
|
};
|
|
543
547
|
interface CreateTestersFormData {
|
|
@@ -558,7 +562,7 @@ type TesterType = {
|
|
|
558
562
|
email: string;
|
|
559
563
|
firstName: string;
|
|
560
564
|
lastName: string;
|
|
561
|
-
osType:
|
|
565
|
+
osType: EnumOSPlatform;
|
|
562
566
|
resourceType: EnumResourceType;
|
|
563
567
|
updatedAt: string;
|
|
564
568
|
};
|
|
@@ -573,6 +577,7 @@ type UserFormData = {
|
|
|
573
577
|
firstName: string;
|
|
574
578
|
lastName: string;
|
|
575
579
|
password: string;
|
|
580
|
+
platform?: EnumOSPlatform;
|
|
576
581
|
preferredRegion: string;
|
|
577
582
|
role: EnumUserRole;
|
|
578
583
|
};
|
|
@@ -598,10 +603,12 @@ interface UserType {
|
|
|
598
603
|
stallholders: string[];
|
|
599
604
|
};
|
|
600
605
|
firstName: string;
|
|
606
|
+
ip: string | null;
|
|
601
607
|
lastName: string;
|
|
602
608
|
licences: EnumUserLicence[] | null;
|
|
603
609
|
markets: string[] | null;
|
|
604
610
|
password: string;
|
|
611
|
+
platform: EnumOSPlatform | null;
|
|
605
612
|
preferredRegion: string;
|
|
606
613
|
refreshToken: string | null;
|
|
607
614
|
role: EnumUserRole;
|
|
@@ -1264,4 +1271,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1264
1271
|
declare const paymentMethodOptions: OptionItem[];
|
|
1265
1272
|
declare function normalizeUrl(url: string): string;
|
|
1266
1273
|
|
|
1267
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumNotificationType,
|
|
1274
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumChatType, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.mjs
CHANGED
|
@@ -9,6 +9,11 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
|
|
|
9
9
|
EnumInviteStatus2["WAITING"] = "Waiting";
|
|
10
10
|
return EnumInviteStatus2;
|
|
11
11
|
})(EnumInviteStatus || {});
|
|
12
|
+
var EnumChatType = /* @__PURE__ */ ((EnumChatType2) => {
|
|
13
|
+
EnumChatType2["GROUP"] = "group";
|
|
14
|
+
EnumChatType2["PRIVATE"] = "private";
|
|
15
|
+
return EnumChatType2;
|
|
16
|
+
})(EnumChatType || {});
|
|
12
17
|
var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
|
|
13
18
|
EnumPaymentMethod2["CASH"] = "cash";
|
|
14
19
|
EnumPaymentMethod2["EFTPOS"] = "eftpos";
|
|
@@ -22,11 +27,11 @@ var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
|
|
|
22
27
|
EnumResourceType2["STALLHOLDER"] = "stallholder";
|
|
23
28
|
return EnumResourceType2;
|
|
24
29
|
})(EnumResourceType || {});
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return
|
|
29
|
-
})(
|
|
30
|
+
var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform2) => {
|
|
31
|
+
EnumOSPlatform2["ANDROID"] = "android";
|
|
32
|
+
EnumOSPlatform2["IOS"] = "ios";
|
|
33
|
+
return EnumOSPlatform2;
|
|
34
|
+
})(EnumOSPlatform || {});
|
|
30
35
|
var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource2) => {
|
|
31
36
|
EnumRelationResource2["MARKET_INVITE_STALLHOLDER"] = "market_invite_stallholder";
|
|
32
37
|
EnumRelationResource2["STALLHOLDER_APPLICATION_TO_MARKET"] = "stallholder_application_to_market";
|
|
@@ -1827,10 +1832,8 @@ var RESOURCE_IMAGE_FIELDS_FRAGMENT = gql2`
|
|
|
1827
1832
|
`;
|
|
1828
1833
|
var OWNER_FIELDS_FRAGMENT = gql2`
|
|
1829
1834
|
fragment OwnerFields on OwnerType {
|
|
1830
|
-
avatar
|
|
1831
1835
|
email
|
|
1832
1836
|
licences
|
|
1833
|
-
name
|
|
1834
1837
|
userId
|
|
1835
1838
|
}
|
|
1836
1839
|
`;
|
|
@@ -1862,9 +1865,11 @@ var USER_FIELDS_FRAGMENT = gql2`
|
|
|
1862
1865
|
stallholders
|
|
1863
1866
|
}
|
|
1864
1867
|
firstName
|
|
1868
|
+
ip
|
|
1865
1869
|
lastName
|
|
1866
1870
|
licences
|
|
1867
1871
|
markets
|
|
1872
|
+
platform
|
|
1868
1873
|
preferredRegion
|
|
1869
1874
|
refreshToken
|
|
1870
1875
|
role
|
|
@@ -2317,15 +2322,14 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = gql6`
|
|
|
2317
2322
|
var CHAT_FIELDS_FRAGMENT = gql6`
|
|
2318
2323
|
fragment ChatFields on ChatType {
|
|
2319
2324
|
_id
|
|
2325
|
+
chatName
|
|
2326
|
+
chatType
|
|
2320
2327
|
createdAt
|
|
2321
2328
|
messages {
|
|
2322
2329
|
...ChatMessageFields
|
|
2323
2330
|
}
|
|
2324
|
-
name
|
|
2325
2331
|
participants {
|
|
2326
|
-
avatar
|
|
2327
2332
|
email
|
|
2328
|
-
name
|
|
2329
2333
|
userId
|
|
2330
2334
|
}
|
|
2331
2335
|
updatedAt
|
|
@@ -4168,7 +4172,7 @@ var testersSchema = yup6.object().shape({
|
|
|
4168
4172
|
email: emailSchema,
|
|
4169
4173
|
firstName: yup6.string().required("First name is required"),
|
|
4170
4174
|
lastName: yup6.string().required("Last name is required"),
|
|
4171
|
-
osType: yup6.mixed().oneOf(Object.values(
|
|
4175
|
+
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS device").required("OS Type is required"),
|
|
4172
4176
|
resourceType: yup6.mixed().oneOf(
|
|
4173
4177
|
Object.values(EnumResourceType),
|
|
4174
4178
|
"Please select Market or Stallholder"
|
|
@@ -5023,10 +5027,11 @@ var EnumNotificationType = ((EnumNotificationType2) => {
|
|
|
5023
5027
|
return EnumNotificationType2;
|
|
5024
5028
|
})(EnumNotificationType || {});
|
|
5025
5029
|
export {
|
|
5030
|
+
EnumChatType,
|
|
5026
5031
|
EnumInviteStatus,
|
|
5027
5032
|
EnumNotification,
|
|
5028
5033
|
EnumNotificationType,
|
|
5029
|
-
|
|
5034
|
+
EnumOSPlatform,
|
|
5030
5035
|
EnumPaymentMethod,
|
|
5031
5036
|
EnumRegions,
|
|
5032
5037
|
EnumRelationResource,
|