@timardex/cluemart-shared 1.5.798 → 1.5.800

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.
Files changed (45) hide show
  1. package/dist/{ad-CnXQqP4h.d.mts → ad-BmEN-ByY.d.mts} +56 -1
  2. package/dist/{ad-jTYE2A1Z.d.ts → ad-DGOhJs69.d.ts} +56 -1
  3. package/dist/{chunk-EJPMEGZW.mjs → chunk-DXR4GYHF.mjs} +2 -42
  4. package/dist/chunk-DXR4GYHF.mjs.map +1 -0
  5. package/dist/{chunk-EWSFVF6C.mjs → chunk-JP57IB7P.mjs} +2 -1
  6. package/dist/{chunk-EWSFVF6C.mjs.map → chunk-JP57IB7P.mjs.map} +1 -1
  7. package/dist/{chunk-BNT4YIYG.mjs → chunk-TDTNL6PH.mjs} +1 -1
  8. package/dist/{chunk-BNT4YIYG.mjs.map → chunk-TDTNL6PH.mjs.map} +1 -1
  9. package/dist/{chunk-KSFDYCSS.mjs → chunk-VGOXRE34.mjs} +44 -40
  10. package/dist/chunk-VGOXRE34.mjs.map +1 -0
  11. package/dist/formFields/index.cjs +42 -65
  12. package/dist/formFields/index.cjs.map +1 -1
  13. package/dist/formFields/index.d.mts +2 -1
  14. package/dist/formFields/index.d.ts +2 -1
  15. package/dist/formFields/index.mjs +5 -3
  16. package/dist/graphql/index.cjs +1 -0
  17. package/dist/graphql/index.cjs.map +1 -1
  18. package/dist/graphql/index.d.mts +1 -2
  19. package/dist/graphql/index.d.ts +1 -2
  20. package/dist/graphql/index.mjs +1 -1
  21. package/dist/hooks/index.cjs +48 -53
  22. package/dist/hooks/index.cjs.map +1 -1
  23. package/dist/hooks/index.d.mts +1 -2
  24. package/dist/hooks/index.d.ts +1 -2
  25. package/dist/hooks/index.mjs +4 -4
  26. package/dist/index.cjs +43 -79
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.mts +3 -38
  29. package/dist/index.d.ts +3 -38
  30. package/dist/index.mjs +42 -77
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/types/index.cjs.map +1 -1
  33. package/dist/types/index.d.mts +1 -2
  34. package/dist/types/index.d.ts +1 -2
  35. package/dist/types/index.mjs +1 -1
  36. package/dist/utils/index.cjs +0 -42
  37. package/dist/utils/index.cjs.map +1 -1
  38. package/dist/utils/index.d.mts +1 -39
  39. package/dist/utils/index.d.ts +1 -39
  40. package/dist/utils/index.mjs +2 -6
  41. package/package.json +1 -1
  42. package/dist/affiliate-CIuny52X.d.mts +0 -58
  43. package/dist/affiliate-Slb5tO_6.d.ts +0 -58
  44. package/dist/chunk-EJPMEGZW.mjs.map +0 -1
  45. package/dist/chunk-KSFDYCSS.mjs.map +0 -1
@@ -1,10 +1,9 @@
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, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-CnXQqP4h.mjs';
4
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType, i as AffiliateType } from '../ad-BmEN-ByY.mjs';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-lFB7B-Y9.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-C8npu_7P.mjs';
7
- import { A as AffiliateType } from '../affiliate-CIuny52X.mjs';
8
7
  import '../images/index.mjs';
9
8
  import 'react-hook-form';
10
9
 
@@ -1,10 +1,9 @@
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, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-jTYE2A1Z.js';
4
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType, i as AffiliateType } from '../ad-DGOhJs69.js';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CJrM2qDC.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-BeBuHWbg.js';
7
- import { A as AffiliateType } from '../affiliate-Slb5tO_6.js';
8
7
  import '../images/index.js';
9
8
  import 'react-hook-form';
10
9
 
@@ -152,7 +152,7 @@ import {
152
152
  useUpdateVendor,
153
153
  useUpdateVendorInfo,
154
154
  useValidateVerificationToken
155
- } from "../chunk-EWSFVF6C.mjs";
155
+ } from "../chunk-JP57IB7P.mjs";
156
156
  import "../chunk-LETM2YHF.mjs";
157
157
  export {
158
158
  GET_EVENT,
@@ -590,34 +590,6 @@ var PostTypeLabels = {
590
590
  var CM_SCHOOL_PROMO_CODE = `${PROMO_CODE_PREFIX}SCHOOL`;
591
591
  var CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;
592
592
 
593
- // src/utils/affiliate.ts
594
- var AFFILIATE_REWARDS = {
595
- ["NEW_EVENT_REGISTRATION" /* NEW_EVENT_REGISTRATION */]: {
596
- description: "10 points for new event registration (one-time reward)",
597
- value: 10
598
- },
599
- ["NEW_VENDOR_REGISTRATION" /* NEW_VENDOR_REGISTRATION */]: {
600
- description: "5 points for new vendor registration (one-time reward)",
601
- value: 5
602
- },
603
- ["ACTIVE_VENDOR_PRO_SUBSCRIPTION" /* ACTIVE_VENDOR_PRO_SUBSCRIPTION */]: {
604
- description: "3 points for active vendor pro subscription (monthly reward)",
605
- value: 3
606
- },
607
- ["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION" /* ACTIVE_VENDOR_STANDARD_SUBSCRIPTION */]: {
608
- description: "1 point for active vendor standard subscription (monthly reward)",
609
- value: 1
610
- },
611
- ["ACTIVE_VENDOR_BONUS_REWARD" /* ACTIVE_VENDOR_BONUS_REWARD */]: {
612
- description: "5 bonus points for every 10th active vendor (one-time reward)",
613
- value: 5
614
- },
615
- ["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS" /* ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS */]: {
616
- description: "50 points for active event with vendor registrations (one-time reward)",
617
- value: 50
618
- }
619
- };
620
-
621
593
  // src/utils/school.ts
622
594
  var SCHOOL_MIN_STUDENT_COUNT = 300;
623
595
 
@@ -2203,31 +2175,6 @@ var tagOptions = availableTagTypes.map((tag) => ({
2203
2175
  value: tag.label
2204
2176
  }));
2205
2177
 
2206
- // src/formFields/event/eventInfo.ts
2207
- var stallTypes = [
2208
- "1.8m table only",
2209
- "2x2m mini stall",
2210
- "3x3m tent site",
2211
- "Corner stall",
2212
- "Craft stall with power",
2213
- "Craft stall without power",
2214
- "Double stall (6x3m)",
2215
- "Food truck site",
2216
- "Food vendor with power",
2217
- "Food vendor without power",
2218
- "Inside hall stall",
2219
- "Non-profit/community stall",
2220
- "Outdoor open area",
2221
- "Shared table space",
2222
- "Wall-based vendor",
2223
- "Workshop/seating area"
2224
- ];
2225
- var stallTypeOptions = stallTypes.map((type) => ({
2226
- label: type,
2227
- price: 0,
2228
- stallCapacity: 0
2229
- }));
2230
-
2231
2178
  // src/formFields/global.ts
2232
2179
  var emailField = {
2233
2180
  helperText: "Enter email address",
@@ -2253,6 +2200,53 @@ var companyContactFields = [
2253
2200
  placeholder: "Landline Phone Number"
2254
2201
  }
2255
2202
  ];
2203
+ var bankAccountDetailsFields = [
2204
+ {
2205
+ helperText: "Account holder name *",
2206
+ name: "accountHolderName",
2207
+ placeholder: "Account holder name"
2208
+ },
2209
+ {
2210
+ helperText: "Account number *",
2211
+ keyboardType: "number-pad",
2212
+ name: "accountNumber",
2213
+ placeholder: "Account number"
2214
+ }
2215
+ ];
2216
+
2217
+ // src/formFields/event/eventInfo.ts
2218
+ var eventInfoPaymentInfo = [
2219
+ ...bankAccountDetailsFields,
2220
+ {
2221
+ helperText: "Payment link, where applicants can pay *",
2222
+ keyboardType: "url",
2223
+ name: "link",
2224
+ placeholder: "Payment link"
2225
+ }
2226
+ ];
2227
+ var stallTypes = [
2228
+ "1.8m table only",
2229
+ "2x2m mini stall",
2230
+ "3x3m tent site",
2231
+ "Corner stall",
2232
+ "Craft stall with power",
2233
+ "Craft stall without power",
2234
+ "Double stall (6x3m)",
2235
+ "Food truck site",
2236
+ "Food vendor with power",
2237
+ "Food vendor without power",
2238
+ "Inside hall stall",
2239
+ "Non-profit/community stall",
2240
+ "Outdoor open area",
2241
+ "Shared table space",
2242
+ "Wall-based vendor",
2243
+ "Workshop/seating area"
2244
+ ];
2245
+ var stallTypeOptions = stallTypes.map((type) => ({
2246
+ label: type,
2247
+ price: 0,
2248
+ stallCapacity: 0
2249
+ }));
2256
2250
 
2257
2251
  // src/formFields/auth.ts
2258
2252
  var loginFields = [
@@ -5072,6 +5066,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
5072
5066
  var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
5073
5067
  fragment AffiliateResourceFields on AffiliateResourceType {
5074
5068
  resourceActive
5069
+ resourceDeletedAt
5075
5070
  resourceId
5076
5071
  resourceName
5077
5072
  resourceType