@timardex/cluemart-shared 1.5.829 → 1.5.831
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-CZBOdoLr.d.mts → ad-Cu-M8Xzf.d.mts} +2 -2
- package/dist/{ad-CCm6QYXb.d.ts → ad-DfqgAPOk.d.ts} +2 -2
- package/dist/auth/index.cjs +107 -36
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +28 -6
- package/dist/auth/index.d.ts +28 -6
- package/dist/auth/index.mjs +19 -13
- package/dist/auth/index.mjs.map +1 -1
- package/dist/{chunk-KMLUQVNM.mjs → chunk-43SLZVBF.mjs} +1 -1
- package/dist/chunk-43SLZVBF.mjs.map +1 -0
- package/dist/{chunk-MOB5R5BF.mjs → chunk-G3CMTXQV.mjs} +2 -3
- package/dist/chunk-G3CMTXQV.mjs.map +1 -0
- package/dist/{chunk-AQR53ECY.mjs → chunk-LN5LS2GJ.mjs} +3 -3
- package/dist/{chunk-Y62E7JLT.mjs → chunk-NU7IZZQY.mjs} +2 -2
- package/dist/{chunk-UOFI3LKZ.mjs → chunk-P4XULG5P.mjs} +1 -28
- package/dist/chunk-P4XULG5P.mjs.map +1 -0
- package/dist/{chunk-VNF22ITY.mjs → chunk-SWWVD4J5.mjs} +2 -2
- package/dist/{chunk-JL4MCXKK.mjs → chunk-VPANTTZI.mjs} +101 -2
- package/dist/chunk-VPANTTZI.mjs.map +1 -0
- package/dist/{chunk-VR3TDBJL.mjs → chunk-X3OLM35T.mjs} +1 -4
- package/dist/chunk-X3OLM35T.mjs.map +1 -0
- package/dist/{chunk-4NGXTQWT.mjs → chunk-YKJUZUAP.mjs} +4 -4
- package/dist/{contactUs-b5SfvqmJ.d.mts → contactUs-09e9ThN0.d.mts} +1 -1
- package/dist/{contactUs-Bwxzw-cB.d.ts → contactUs-DI70VJ9T.d.ts} +1 -1
- package/dist/enums/index.cjs +0 -3
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +0 -3
- package/dist/enums/index.d.ts +0 -3
- package/dist/enums/index.mjs +1 -1
- 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 +5 -5
- package/dist/{global-wVC9VaCx.d.ts → global--iSLy2cE.d.ts} +2 -9
- package/dist/{global-959zf6qy.d.mts → global-BHwZPjT8.d.mts} +2 -9
- package/dist/graphql/index.cjs +0 -28
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +4 -4
- package/dist/graphql/index.d.ts +4 -4
- package/dist/graphql/index.mjs +3 -3
- package/dist/hooks/index.cjs +56 -61
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.mjs +10 -31
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +106 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +25 -14
- package/dist/index.d.ts +25 -14
- package/dist/index.mjs +99 -31
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-ZPT9JlfH.d.mts → resourceActivities-BDIjVrI4.d.mts} +1 -2
- package/dist/{resourceActivities-ChZcl5wJ.d.ts → resourceActivities-JNcJxpTh.d.ts} +1 -2
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +6 -6
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.mjs +2 -2
- package/dist/{user-duZdr5Nn.d.mts → user-Bhkd3l06.d.mts} +1 -2
- package/dist/{user-IVhCYYTM.d.ts → user-C_kCo0Fm.d.ts} +1 -2
- 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 +4 -4
- package/package.json +1 -1
- package/dist/chunk-JL4MCXKK.mjs.map +0 -1
- package/dist/chunk-KMLUQVNM.mjs.map +0 -1
- package/dist/chunk-MOB5R5BF.mjs.map +0 -1
- package/dist/chunk-UOFI3LKZ.mjs.map +0 -1
- package/dist/chunk-VR3TDBJL.mjs.map +0 -1
- /package/dist/{chunk-AQR53ECY.mjs.map → chunk-LN5LS2GJ.mjs.map} +0 -0
- /package/dist/{chunk-Y62E7JLT.mjs.map → chunk-NU7IZZQY.mjs.map} +0 -0
- /package/dist/{chunk-VNF22ITY.mjs.map → chunk-SWWVD4J5.mjs.map} +0 -0
- /package/dist/{chunk-4NGXTQWT.mjs.map → chunk-YKJUZUAP.mjs.map} +0 -0
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-
|
|
5
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
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-
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-
|
|
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-Cu-M8Xzf.mjs';
|
|
5
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BDIjVrI4.mjs';
|
|
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-BHwZPjT8.mjs';
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-Bhkd3l06.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-
|
|
5
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
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
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-
|
|
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-DfqgAPOk.js';
|
|
5
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-JNcJxpTh.js';
|
|
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--iSLy2cE.js';
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-C_kCo0Fm.js';
|
|
8
8
|
import '../images/index.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
useUpdateUser,
|
|
135
135
|
useUpdateVendor,
|
|
136
136
|
useUpdateVendorInfo
|
|
137
|
-
} from "../chunk-
|
|
137
|
+
} from "../chunk-G3CMTXQV.mjs";
|
|
138
138
|
import {
|
|
139
139
|
GET_EVENT,
|
|
140
140
|
GET_EVENT_INFO,
|
|
@@ -155,8 +155,8 @@ import {
|
|
|
155
155
|
useRequestPasswordReset,
|
|
156
156
|
useResetPassword,
|
|
157
157
|
useValidateVerificationToken
|
|
158
|
-
} from "../chunk-
|
|
159
|
-
import "../chunk-
|
|
158
|
+
} from "../chunk-P4XULG5P.mjs";
|
|
159
|
+
import "../chunk-X3OLM35T.mjs";
|
|
160
160
|
export {
|
|
161
161
|
GET_EVENT,
|
|
162
162
|
GET_EVENT_BY_SLUG,
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -243,18 +243,6 @@ var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
|
|
|
243
243
|
EnumRegions2["Wellington"] = "Wellington";
|
|
244
244
|
return EnumRegions2;
|
|
245
245
|
})(EnumRegions || {});
|
|
246
|
-
var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence2) => {
|
|
247
|
-
EnumUserLicence2["PRO_EVENT"] = "pro_event";
|
|
248
|
-
EnumUserLicence2["PRO_PLUS_EVENT"] = "pro_plus_event";
|
|
249
|
-
EnumUserLicence2["PRO_PLUS_VENDOR"] = "pro_plus_vendor";
|
|
250
|
-
EnumUserLicence2["PRO_VENDOR"] = "pro_vendor";
|
|
251
|
-
EnumUserLicence2["STANDARD_EVENT"] = "standard_event";
|
|
252
|
-
EnumUserLicence2["STANDARD_VENDOR"] = "standard_vendor";
|
|
253
|
-
EnumUserLicence2["STANDARD_PARTNER"] = "standard_partner";
|
|
254
|
-
EnumUserLicence2["STANDARD_AFFILIATE"] = "standard_affiliate";
|
|
255
|
-
EnumUserLicence2["STANDARD_SCHOOL"] = "standard_school";
|
|
256
|
-
return EnumUserLicence2;
|
|
257
|
-
})(EnumUserLicence || {});
|
|
258
246
|
var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
|
|
259
247
|
EnumSocialMedia2["FACEBOOK"] = "facebook";
|
|
260
248
|
EnumSocialMedia2["INSTAGRAM"] = "instagram";
|
|
@@ -1835,19 +1823,7 @@ var globalResourceSchema = yup.object().shape({
|
|
|
1835
1823
|
description: yup.string().label("Description").trim().min(50).required("Description is required"),
|
|
1836
1824
|
name: yup.string().label("Name").trim().min(3).required("Name is required"),
|
|
1837
1825
|
region: yup.string().label("Region").required("Region is required"),
|
|
1838
|
-
socialMedia: yup.array().of(socialMediaSchema).nullable().default(null)
|
|
1839
|
-
associates: yup.array().of(
|
|
1840
|
-
yup.object().shape({
|
|
1841
|
-
email: emailRequiredSchema,
|
|
1842
|
-
resourceId: yup.string().label("Resource ID").required("Resource ID is required"),
|
|
1843
|
-
resourceType: yup.mixed().oneOf(Object.values(EnumResourceType)).label("Resource Type").required("Resource Type is required"),
|
|
1844
|
-
licence: yup.object({
|
|
1845
|
-
expiryDate: yup.date().required("Expiry Date is required"),
|
|
1846
|
-
issuedDate: yup.date().required("Issued Date is required"),
|
|
1847
|
-
licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
|
|
1848
|
-
})
|
|
1849
|
-
})
|
|
1850
|
-
).nullable().default(null)
|
|
1826
|
+
socialMedia: yup.array().of(socialMediaSchema).nullable().default(null)
|
|
1851
1827
|
});
|
|
1852
1828
|
var categorySchema = yup.array().of(
|
|
1853
1829
|
yup.object().shape({
|
|
@@ -2518,17 +2494,6 @@ var LICENCE_FIELDS_FRAGMENT = import_client.gql`
|
|
|
2518
2494
|
prevLicenceType
|
|
2519
2495
|
}
|
|
2520
2496
|
`;
|
|
2521
|
-
var ASSOCIATES_FIELDS_FRAGMENT = import_client.gql`
|
|
2522
|
-
fragment AssociatesFields on AssociateType {
|
|
2523
|
-
email
|
|
2524
|
-
resourceId
|
|
2525
|
-
resourceType
|
|
2526
|
-
licence {
|
|
2527
|
-
...LicenceFields
|
|
2528
|
-
}
|
|
2529
|
-
}
|
|
2530
|
-
${LICENCE_FIELDS_FRAGMENT}
|
|
2531
|
-
`;
|
|
2532
2497
|
var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client.gql`
|
|
2533
2498
|
fragment TermsAgreementFields on TermsAgreementType {
|
|
2534
2499
|
appBuildNumber
|
|
@@ -2619,9 +2584,6 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
|
2619
2584
|
fragment UserFields on UserType {
|
|
2620
2585
|
_id
|
|
2621
2586
|
active
|
|
2622
|
-
associates {
|
|
2623
|
-
...AssociatesFields
|
|
2624
|
-
}
|
|
2625
2587
|
affiliate
|
|
2626
2588
|
avatar {
|
|
2627
2589
|
...ResourceImageFields
|
|
@@ -2661,7 +2623,6 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
|
2661
2623
|
updatedAt
|
|
2662
2624
|
}
|
|
2663
2625
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2664
|
-
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
2665
2626
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2666
2627
|
${USER_ACTIVITY_FIELDS_FRAGMENT}
|
|
2667
2628
|
${LICENCE_FIELDS_FRAGMENT}
|
|
@@ -2809,9 +2770,6 @@ var EVENT = import_client2.gql`
|
|
|
2809
2770
|
fragment EventFields on EventType {
|
|
2810
2771
|
_id
|
|
2811
2772
|
active
|
|
2812
|
-
associates {
|
|
2813
|
-
...AssociatesFields
|
|
2814
|
-
}
|
|
2815
2773
|
adIds
|
|
2816
2774
|
approvedAt
|
|
2817
2775
|
cover {
|
|
@@ -2884,7 +2842,6 @@ var EVENT = import_client2.gql`
|
|
|
2884
2842
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2885
2843
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
2886
2844
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
2887
|
-
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
2888
2845
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
2889
2846
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2890
2847
|
${RELATION_DATES_FRAGMENT}
|
|
@@ -3000,9 +2957,6 @@ var VENDOR = import_client3.gql`
|
|
|
3000
2957
|
fragment VendorFields on VendorType {
|
|
3001
2958
|
_id
|
|
3002
2959
|
active
|
|
3003
|
-
associates {
|
|
3004
|
-
...AssociatesFields
|
|
3005
|
-
}
|
|
3006
2960
|
adIds
|
|
3007
2961
|
approvedAt
|
|
3008
2962
|
availability {
|
|
@@ -3093,7 +3047,6 @@ var VENDOR = import_client3.gql`
|
|
|
3093
3047
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3094
3048
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
3095
3049
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
3096
|
-
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
3097
3050
|
${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
|
|
3098
3051
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
3099
3052
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
@@ -3249,9 +3202,6 @@ var PARTNER = import_client4.gql`
|
|
|
3249
3202
|
fragment PartnerFields on PartnerType {
|
|
3250
3203
|
_id
|
|
3251
3204
|
active
|
|
3252
|
-
associates {
|
|
3253
|
-
...AssociatesFields
|
|
3254
|
-
}
|
|
3255
3205
|
adIds
|
|
3256
3206
|
approvedAt
|
|
3257
3207
|
cover {
|
|
@@ -3302,7 +3252,6 @@ var PARTNER = import_client4.gql`
|
|
|
3302
3252
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
3303
3253
|
${LOCATION_FIELDS_FRAGMENT}
|
|
3304
3254
|
${OWNER_FIELDS_FRAGMENT}
|
|
3305
|
-
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
3306
3255
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
3307
3256
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
3308
3257
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
@@ -3790,7 +3739,6 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client14.gql`
|
|
|
3790
3739
|
var CHAT_PARTICIPANT = import_client14.gql`
|
|
3791
3740
|
fragment ChatParticipantFields on ChatParticipantType {
|
|
3792
3741
|
active
|
|
3793
|
-
isAssociate
|
|
3794
3742
|
userAvatar
|
|
3795
3743
|
userEmail
|
|
3796
3744
|
userId
|
|
@@ -5384,6 +5332,61 @@ var ROLE_PERMISSIONS = {
|
|
|
5384
5332
|
["affiliate" /* AFFILIATE */]: ["dashboard.affiliate", "affiliates.manage_own"]
|
|
5385
5333
|
};
|
|
5386
5334
|
|
|
5335
|
+
// src/auth/permissions/adminAppAccess.ts
|
|
5336
|
+
var ADMIN_APP_ROLES = [
|
|
5337
|
+
"super_admin" /* SUPER_ADMIN */,
|
|
5338
|
+
"admin" /* ADMIN */,
|
|
5339
|
+
"event" /* EVENT */,
|
|
5340
|
+
"vendor" /* VENDOR */,
|
|
5341
|
+
"partner" /* PARTNER */,
|
|
5342
|
+
"school" /* SCHOOL */,
|
|
5343
|
+
"affiliate" /* AFFILIATE */
|
|
5344
|
+
];
|
|
5345
|
+
var ADMIN_DASHBOARD_CONTEXTS = [
|
|
5346
|
+
{
|
|
5347
|
+
context: "staff",
|
|
5348
|
+
home: "/dashboard",
|
|
5349
|
+
label: "Staff",
|
|
5350
|
+
pathPrefixes: ["/dashboard"],
|
|
5351
|
+
roles: ["super_admin" /* SUPER_ADMIN */, "admin" /* ADMIN */]
|
|
5352
|
+
},
|
|
5353
|
+
{
|
|
5354
|
+
context: "event",
|
|
5355
|
+
home: "/event/dashboard",
|
|
5356
|
+
label: "Events",
|
|
5357
|
+
pathPrefixes: ["/event"],
|
|
5358
|
+
roles: ["event" /* EVENT */]
|
|
5359
|
+
},
|
|
5360
|
+
{
|
|
5361
|
+
context: "vendor",
|
|
5362
|
+
home: "/vendor/dashboard",
|
|
5363
|
+
label: "Stallholders",
|
|
5364
|
+
pathPrefixes: ["/vendor"],
|
|
5365
|
+
roles: ["vendor" /* VENDOR */]
|
|
5366
|
+
},
|
|
5367
|
+
{
|
|
5368
|
+
context: "partner",
|
|
5369
|
+
home: "/partner/dashboard",
|
|
5370
|
+
label: "Partners",
|
|
5371
|
+
pathPrefixes: ["/partner"],
|
|
5372
|
+
roles: ["partner" /* PARTNER */]
|
|
5373
|
+
},
|
|
5374
|
+
{
|
|
5375
|
+
context: "school",
|
|
5376
|
+
home: "/school/dashboard",
|
|
5377
|
+
label: "Schools",
|
|
5378
|
+
pathPrefixes: ["/school"],
|
|
5379
|
+
roles: ["school" /* SCHOOL */]
|
|
5380
|
+
},
|
|
5381
|
+
{
|
|
5382
|
+
context: "affiliate",
|
|
5383
|
+
home: "/affiliate/dashboard",
|
|
5384
|
+
label: "Affiliate",
|
|
5385
|
+
pathPrefixes: ["/affiliate"],
|
|
5386
|
+
roles: ["affiliate" /* AFFILIATE */]
|
|
5387
|
+
}
|
|
5388
|
+
];
|
|
5389
|
+
|
|
5387
5390
|
// src/yupSchema/post.ts
|
|
5388
5391
|
var postContentSchema = yup8.object().shape({
|
|
5389
5392
|
contentData: yup8.mixed().optional().nullable(),
|
|
@@ -5431,7 +5434,6 @@ var defaultLocation = {
|
|
|
5431
5434
|
};
|
|
5432
5435
|
var globalDefaultValues = {
|
|
5433
5436
|
active: false,
|
|
5434
|
-
associates: null,
|
|
5435
5437
|
contactDetails: {
|
|
5436
5438
|
email: null,
|
|
5437
5439
|
landlinePhone: null,
|
|
@@ -5572,7 +5574,6 @@ function mapBaseResourceTypeToFormData(data) {
|
|
|
5572
5574
|
return {
|
|
5573
5575
|
_id: data._id,
|
|
5574
5576
|
active: data.active,
|
|
5575
|
-
associates: data.associates,
|
|
5576
5577
|
contactDetails: data.contactDetails,
|
|
5577
5578
|
cover: data.cover,
|
|
5578
5579
|
coverUpload: data.coverUpload ?? null,
|
|
@@ -5624,7 +5625,6 @@ function useVendorForm(data) {
|
|
|
5624
5625
|
const {
|
|
5625
5626
|
_id,
|
|
5626
5627
|
active,
|
|
5627
|
-
associates,
|
|
5628
5628
|
availability,
|
|
5629
5629
|
calendar,
|
|
5630
5630
|
categories,
|
|
@@ -5653,7 +5653,6 @@ function useVendorForm(data) {
|
|
|
5653
5653
|
fields: {
|
|
5654
5654
|
_id,
|
|
5655
5655
|
active,
|
|
5656
|
-
associates,
|
|
5657
5656
|
availability,
|
|
5658
5657
|
calendar,
|
|
5659
5658
|
categories,
|
|
@@ -5839,7 +5838,6 @@ function useEventForm(data) {
|
|
|
5839
5838
|
const {
|
|
5840
5839
|
_id,
|
|
5841
5840
|
active,
|
|
5842
|
-
associates,
|
|
5843
5841
|
claimed,
|
|
5844
5842
|
contactDetails,
|
|
5845
5843
|
cover,
|
|
@@ -5869,7 +5867,6 @@ function useEventForm(data) {
|
|
|
5869
5867
|
fields: {
|
|
5870
5868
|
_id,
|
|
5871
5869
|
active,
|
|
5872
|
-
associates,
|
|
5873
5870
|
claimed,
|
|
5874
5871
|
contactDetails,
|
|
5875
5872
|
cover,
|
|
@@ -6428,7 +6425,6 @@ function usePartnerForm(data) {
|
|
|
6428
6425
|
const {
|
|
6429
6426
|
_id,
|
|
6430
6427
|
active,
|
|
6431
|
-
associates,
|
|
6432
6428
|
contactDetails,
|
|
6433
6429
|
cover,
|
|
6434
6430
|
coverUpload,
|
|
@@ -6452,7 +6448,6 @@ function usePartnerForm(data) {
|
|
|
6452
6448
|
fields: {
|
|
6453
6449
|
_id,
|
|
6454
6450
|
active,
|
|
6455
|
-
associates,
|
|
6456
6451
|
contactDetails,
|
|
6457
6452
|
cover,
|
|
6458
6453
|
coverUpload,
|