@timardex/cluemart-shared 1.5.823 → 1.5.825
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-BFGA6SrQ.d.ts → ad-CoAxqdwK.d.ts} +1 -1
- package/dist/{ad-BRC6KNgv.d.mts → ad-Ds-PlS5A.d.mts} +1 -1
- package/dist/auth/index.d.mts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/hooks/index.cjs +2 -18
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.mjs +2 -8
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/map/index.cjs +14 -9
- package/dist/map/index.cjs.map +1 -1
- package/dist/map/index.d.mts +15 -12
- package/dist/map/index.d.ts +15 -12
- package/dist/map/index.mjs +14 -9
- package/dist/map/index.mjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{user-CadKvubI.d.mts → user-CRJN9GQF.d.mts} +2 -2
- package/dist/{user-CCN2IPDV.d.ts → user-D27cEk4K.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.js';
|
|
2
2
|
import { D as BaseResourceType, L as LocationType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, H as CreateFormData, at as ResourceContactDetailsType, av as ResourceImageType, aw as SocialMediaType, aA as TermsAgreement, a6 as OwnerType, ak as PromoCodeType } from './global-wVC9VaCx.js';
|
|
3
3
|
import { PosterAssetId } from './images/index.js';
|
|
4
|
-
import { S as SafeUserType, U as UserFormData } from './user-
|
|
4
|
+
import { S as SafeUserType, U as UserFormData } from './user-D27cEk4K.js';
|
|
5
5
|
|
|
6
6
|
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
7
7
|
location: LocationType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.mjs';
|
|
2
2
|
import { D as BaseResourceType, L as LocationType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, H as CreateFormData, at as ResourceContactDetailsType, av as ResourceImageType, aw as SocialMediaType, aA as TermsAgreement, a6 as OwnerType, ak as PromoCodeType } from './global-959zf6qy.mjs';
|
|
3
3
|
import { PosterAssetId } from './images/index.mjs';
|
|
4
|
-
import { S as SafeUserType, U as UserFormData } from './user-
|
|
4
|
+
import { S as SafeUserType, U as UserFormData } from './user-CRJN9GQF.mjs';
|
|
5
5
|
|
|
6
6
|
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
7
7
|
location: LocationType;
|
package/dist/auth/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumResourceType, EnumUserLicence } from '../enums/index.mjs';
|
|
2
|
-
import { S as SafeUserType } from '../user-
|
|
2
|
+
import { S as SafeUserType } from '../user-CRJN9GQF.mjs';
|
|
3
3
|
import { T as Tier } from '../subscription-bmAdrnfi.mjs';
|
|
4
4
|
import React, { ReactNode } from 'react';
|
|
5
5
|
import '../global-959zf6qy.mjs';
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumResourceType, EnumUserLicence } from '../enums/index.js';
|
|
2
|
-
import { S as SafeUserType } from '../user-
|
|
2
|
+
import { S as SafeUserType } from '../user-D27cEk4K.js';
|
|
3
3
|
import { T as Tier } from '../subscription-BU8GvH2K.js';
|
|
4
4
|
import React, { ReactNode } from 'react';
|
|
5
5
|
import '../global-wVC9VaCx.js';
|
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode } from 'graphql';
|
|
3
3
|
import { EnumResourceType, EnumEventDateStatus } from '../enums/index.mjs';
|
|
4
|
-
import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolReturnType, c as SchoolType, d as AffiliateType } from '../ad-
|
|
4
|
+
import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolReturnType, c as SchoolType, d as AffiliateType } from '../ad-Ds-PlS5A.mjs';
|
|
5
5
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-ZPT9JlfH.mjs';
|
|
6
6
|
import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-959zf6qy.mjs';
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardResponse, a as ResourceByUser, b as SubscriptionPlansResponse, c as SubscriptionStatusData } from '../user-
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardResponse, a as ResourceByUser, b as SubscriptionPlansResponse, c as SubscriptionStatusData } from '../user-CRJN9GQF.mjs';
|
|
8
8
|
import '../images/index.mjs';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode } from 'graphql';
|
|
3
3
|
import { EnumResourceType, EnumEventDateStatus } from '../enums/index.js';
|
|
4
|
-
import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolReturnType, c as SchoolType, d as AffiliateType } from '../ad-
|
|
4
|
+
import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolReturnType, c as SchoolType, d as AffiliateType } from '../ad-CoAxqdwK.js';
|
|
5
5
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-ChZcl5wJ.js';
|
|
6
6
|
import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-wVC9VaCx.js';
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardResponse, a as ResourceByUser, b as SubscriptionPlansResponse, c as SubscriptionStatusData } from '../user-
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardResponse, a as ResourceByUser, b as SubscriptionPlansResponse, c as SubscriptionStatusData } from '../user-D27cEk4K.js';
|
|
8
8
|
import '../images/index.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -255,17 +255,6 @@ var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence2) => {
|
|
|
255
255
|
EnumUserLicence2["STANDARD_SCHOOL"] = "standard_school";
|
|
256
256
|
return EnumUserLicence2;
|
|
257
257
|
})(EnumUserLicence || {});
|
|
258
|
-
var EnumUserRole = /* @__PURE__ */ ((EnumUserRole2) => {
|
|
259
|
-
EnumUserRole2["ADMIN"] = "admin";
|
|
260
|
-
EnumUserRole2["SUPER_ADMIN"] = "super_admin";
|
|
261
|
-
EnumUserRole2["CUSTOMER"] = "customer";
|
|
262
|
-
EnumUserRole2["MARKETING"] = "marketing";
|
|
263
|
-
EnumUserRole2["MODERATOR"] = "moderator";
|
|
264
|
-
EnumUserRole2["SUPPORT"] = "support";
|
|
265
|
-
EnumUserRole2["AFFILIATE"] = "affiliate";
|
|
266
|
-
EnumUserRole2["SCHOOL"] = "school";
|
|
267
|
-
return EnumUserRole2;
|
|
268
|
-
})(EnumUserRole || {});
|
|
269
258
|
var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
|
|
270
259
|
EnumSocialMedia2["FACEBOOK"] = "facebook";
|
|
271
260
|
EnumSocialMedia2["INSTAGRAM"] = "instagram";
|
|
@@ -2087,8 +2076,7 @@ var userSchema = yup4.object().shape({
|
|
|
2087
2076
|
// only necessary if password typed
|
|
2088
2077
|
then: (schema) => schema.required("Confirm Password is required").oneOf([yup4.ref("password")], "Passwords must match"),
|
|
2089
2078
|
otherwise: (schema) => schema.notRequired()
|
|
2090
|
-
})
|
|
2091
|
-
role: yup4.mixed().oneOf(Object.values(EnumUserRole)).required("Role is required")
|
|
2079
|
+
})
|
|
2092
2080
|
});
|
|
2093
2081
|
|
|
2094
2082
|
// src/yupSchema/auth.ts
|
|
@@ -5953,8 +5941,7 @@ var defaultValues = {
|
|
|
5953
5941
|
lastName: "",
|
|
5954
5942
|
location: null,
|
|
5955
5943
|
password: null,
|
|
5956
|
-
preferredRegion: ""
|
|
5957
|
-
role: "customer" /* CUSTOMER */
|
|
5944
|
+
preferredRegion: ""
|
|
5958
5945
|
};
|
|
5959
5946
|
function useUserForm(data) {
|
|
5960
5947
|
const {
|
|
@@ -5983,7 +5970,6 @@ function useUserForm(data) {
|
|
|
5983
5970
|
location: data.location,
|
|
5984
5971
|
password: data.password,
|
|
5985
5972
|
preferredRegion: data.preferredRegion,
|
|
5986
|
-
role: data.role,
|
|
5987
5973
|
termsAgreement: data.termsAgreement
|
|
5988
5974
|
});
|
|
5989
5975
|
} else {
|
|
@@ -6002,7 +5988,6 @@ function useUserForm(data) {
|
|
|
6002
5988
|
location,
|
|
6003
5989
|
password,
|
|
6004
5990
|
preferredRegion,
|
|
6005
|
-
role,
|
|
6006
5991
|
termsAgreement
|
|
6007
5992
|
} = getValues();
|
|
6008
5993
|
return {
|
|
@@ -6019,7 +6004,6 @@ function useUserForm(data) {
|
|
|
6019
6004
|
location,
|
|
6020
6005
|
password,
|
|
6021
6006
|
preferredRegion,
|
|
6022
|
-
role,
|
|
6023
6007
|
termsAgreement
|
|
6024
6008
|
},
|
|
6025
6009
|
formState,
|