@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,6 +1,5 @@
1
1
  import { L as LocationType, l as VendorFormData, m as CreateVendorFormData, n as VendorInfoFormData, o as CreateVendorInfoFormData, p as UnregisteredVendorFormData, q as CreateUnregisteredVendorFormData, r as EventFormData, s as CreateEventFormData, t as EventInfoFormData, u as CreateEventInfoFormData, B as BaseResourceTypeFormData, v as PostFormData, w as CreatePostFormData } from '../global-C8npu_7P.mjs';
2
- import { U as UserFormData, C as CreateUserFormData, i as CreateLoginFormData, j as CreateRegisterFormData, k as CreateRequestPasswordResetFormData, l as CreateValidateVerificationTokenFormData, m as CreateResetPasswordFormData, n as PartnerFormData, o as AdFormData, p as CreateAdFormState, q as CreatePartnerFormData, r as AppSettingsFormData, s as CreateAppSettingsFormData, t as SchoolFormData, u as CreateSchoolFormData } from '../ad-CnXQqP4h.mjs';
3
- import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-CIuny52X.mjs';
2
+ import { U as UserFormData, C as CreateUserFormData, j as CreateLoginFormData, k as CreateRegisterFormData, l as CreateRequestPasswordResetFormData, m as CreateValidateVerificationTokenFormData, n as CreateResetPasswordFormData, o as AffiliateFormData, p as PartnerFormData, i as AffiliateType, q as AdFormData, r as CreateAdFormState, s as CreatePartnerFormData, t as AppSettingsFormData, u as CreateAppSettingsFormData, v as SchoolFormData, w as CreateSchoolFormData, x as CreateAffiliateFormData } from '../ad-BmEN-ByY.mjs';
4
3
  import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-Dr-IbmG5.mjs';
5
4
  import 'react-hook-form';
6
5
  import '../enums/index.mjs';
@@ -1,6 +1,5 @@
1
1
  import { L as LocationType, l as VendorFormData, m as CreateVendorFormData, n as VendorInfoFormData, o as CreateVendorInfoFormData, p as UnregisteredVendorFormData, q as CreateUnregisteredVendorFormData, r as EventFormData, s as CreateEventFormData, t as EventInfoFormData, u as CreateEventInfoFormData, B as BaseResourceTypeFormData, v as PostFormData, w as CreatePostFormData } from '../global-BeBuHWbg.js';
2
- import { U as UserFormData, C as CreateUserFormData, i as CreateLoginFormData, j as CreateRegisterFormData, k as CreateRequestPasswordResetFormData, l as CreateValidateVerificationTokenFormData, m as CreateResetPasswordFormData, n as PartnerFormData, o as AdFormData, p as CreateAdFormState, q as CreatePartnerFormData, r as AppSettingsFormData, s as CreateAppSettingsFormData, t as SchoolFormData, u as CreateSchoolFormData } from '../ad-jTYE2A1Z.js';
3
- import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-Slb5tO_6.js';
2
+ import { U as UserFormData, C as CreateUserFormData, j as CreateLoginFormData, k as CreateRegisterFormData, l as CreateRequestPasswordResetFormData, m as CreateValidateVerificationTokenFormData, n as CreateResetPasswordFormData, o as AffiliateFormData, p as PartnerFormData, i as AffiliateType, q as AdFormData, r as CreateAdFormState, s as CreatePartnerFormData, t as AppSettingsFormData, u as CreateAppSettingsFormData, v as SchoolFormData, w as CreateSchoolFormData, x as CreateAffiliateFormData } from '../ad-DGOhJs69.js';
4
3
  import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-RKkIL-nI.js';
5
4
  import 'react-hook-form';
6
5
  import '../enums/index.js';
@@ -1,9 +1,9 @@
1
1
  import "../chunk-VA5YN2K3.mjs";
2
- import "../chunk-KSFDYCSS.mjs";
2
+ import "../chunk-VGOXRE34.mjs";
3
3
  import {
4
4
  SCHOOL_MIN_STUDENT_COUNT,
5
5
  normalizeUrl
6
- } from "../chunk-EJPMEGZW.mjs";
6
+ } from "../chunk-DXR4GYHF.mjs";
7
7
  import {
8
8
  EnumAdShowOn,
9
9
  EnumAdStatus,
@@ -11,8 +11,8 @@ import {
11
11
  EnumAdType,
12
12
  EnumPostContentType,
13
13
  EnumPostType
14
- } from "../chunk-BNT4YIYG.mjs";
15
- import "../chunk-EWSFVF6C.mjs";
14
+ } from "../chunk-TDTNL6PH.mjs";
15
+ import "../chunk-JP57IB7P.mjs";
16
16
  import "../chunk-NPFJ2CN2.mjs";
17
17
  import "../chunk-JD7CKX4S.mjs";
18
18
  import {
package/dist/index.cjs CHANGED
@@ -30,7 +30,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
- AFFILIATE_REWARDS: () => AFFILIATE_REWARDS,
34
33
  ANDROID_URL: () => ANDROID_URL,
35
34
  CLUEMART_MAIN_DOMAIN_URL: () => CLUEMART_MAIN_DOMAIN_URL,
36
35
  CM_AFFILIATE_PROMO_CODE: () => CM_AFFILIATE_PROMO_CODE,
@@ -139,6 +138,7 @@ __export(index_exports, {
139
138
  badgeFiles: () => badgeFiles,
140
139
  badgeIds: () => badgeIds,
141
140
  badges: () => badges,
141
+ bankAccountDetailsFields: () => bankAccountDetailsFields,
142
142
  buildApplicationShareDescription: () => buildApplicationShareDescription,
143
143
  buildCalendarSheetContentData: () => buildCalendarSheetContentData,
144
144
  buildFacebookShareQuote: () => buildFacebookShareQuote,
@@ -161,7 +161,6 @@ __export(index_exports, {
161
161
  companyContactFields: () => companyContactFields,
162
162
  computeDailyClueState: () => computeDailyClueState,
163
163
  contactUsFields: () => contactUsFields,
164
- createAffiliateReward: () => createAffiliateReward,
165
164
  darkColors: () => darkColors,
166
165
  dateFormat: () => dateFormat,
167
166
  emailField: () => emailField,
@@ -1535,44 +1534,6 @@ function formatNZBankAccount(input) {
1535
1534
  return parts.join("-");
1536
1535
  }
1537
1536
 
1538
- // src/utils/affiliate.ts
1539
- var AFFILIATE_REWARDS = {
1540
- ["NEW_EVENT_REGISTRATION" /* NEW_EVENT_REGISTRATION */]: {
1541
- description: "10 points for new event registration (one-time reward)",
1542
- value: 10
1543
- },
1544
- ["NEW_VENDOR_REGISTRATION" /* NEW_VENDOR_REGISTRATION */]: {
1545
- description: "5 points for new vendor registration (one-time reward)",
1546
- value: 5
1547
- },
1548
- ["ACTIVE_VENDOR_PRO_SUBSCRIPTION" /* ACTIVE_VENDOR_PRO_SUBSCRIPTION */]: {
1549
- description: "3 points for active vendor pro subscription (monthly reward)",
1550
- value: 3
1551
- },
1552
- ["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION" /* ACTIVE_VENDOR_STANDARD_SUBSCRIPTION */]: {
1553
- description: "1 point for active vendor standard subscription (monthly reward)",
1554
- value: 1
1555
- },
1556
- ["ACTIVE_VENDOR_BONUS_REWARD" /* ACTIVE_VENDOR_BONUS_REWARD */]: {
1557
- description: "5 bonus points for every 10th active vendor (one-time reward)",
1558
- value: 5
1559
- },
1560
- ["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS" /* ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS */]: {
1561
- description: "50 points for active event with vendor registrations (one-time reward)",
1562
- value: 50
1563
- }
1564
- };
1565
- function createAffiliateReward(rewardType, createdAt) {
1566
- const reward = AFFILIATE_REWARDS[rewardType];
1567
- return {
1568
- createdAt,
1569
- redeemedAt: null,
1570
- rewardDescription: reward.description,
1571
- rewardType,
1572
- rewardValue: reward.value
1573
- };
1574
- }
1575
-
1576
1537
  // src/utils/resourceImage.ts
1577
1538
  function resolveResourceImageActive(image) {
1578
1539
  if (image?.active != null) {
@@ -3048,6 +3009,45 @@ var tagOptions = availableTagTypes.map((tag) => ({
3048
3009
  value: tag.label
3049
3010
  }));
3050
3011
 
3012
+ // src/formFields/global.ts
3013
+ var emailField = {
3014
+ helperText: "Enter email address",
3015
+ keyboardType: "email-address",
3016
+ name: "email",
3017
+ placeholder: "Email"
3018
+ };
3019
+ var companyContactFields = [
3020
+ {
3021
+ ...emailField,
3022
+ name: "contactDetails.email"
3023
+ },
3024
+ {
3025
+ helperText: "Enter your mobile phone number",
3026
+ keyboardType: "phone-pad",
3027
+ name: "contactDetails.mobilePhone",
3028
+ placeholder: "Mobile Phone Number"
3029
+ },
3030
+ {
3031
+ helperText: "Enter your landline phone number",
3032
+ keyboardType: "phone-pad",
3033
+ name: "contactDetails.landlinePhone",
3034
+ placeholder: "Landline Phone Number"
3035
+ }
3036
+ ];
3037
+ var bankAccountDetailsFields = [
3038
+ {
3039
+ helperText: "Account holder name *",
3040
+ name: "accountHolderName",
3041
+ placeholder: "Account holder name"
3042
+ },
3043
+ {
3044
+ helperText: "Account number *",
3045
+ keyboardType: "number-pad",
3046
+ name: "accountNumber",
3047
+ placeholder: "Account number"
3048
+ }
3049
+ ];
3050
+
3051
3051
  // src/formFields/event/eventInfo.ts
3052
3052
  var eventInfo = [
3053
3053
  {
@@ -3070,17 +3070,7 @@ var eventInfo = [
3070
3070
  }
3071
3071
  ];
3072
3072
  var eventInfoPaymentInfo = [
3073
- {
3074
- helperText: "Account holder name *",
3075
- name: "accountHolderName",
3076
- placeholder: "Account holder name"
3077
- },
3078
- {
3079
- helperText: "Account number *",
3080
- keyboardType: "number-pad",
3081
- name: "accountNumber",
3082
- placeholder: "Account number"
3083
- },
3073
+ ...bankAccountDetailsFields,
3084
3074
  {
3085
3075
  helperText: "Payment link, where applicants can pay *",
3086
3076
  keyboardType: "url",
@@ -3321,32 +3311,6 @@ var refundPolicyOptions = [
3321
3311
  }
3322
3312
  ];
3323
3313
 
3324
- // src/formFields/global.ts
3325
- var emailField = {
3326
- helperText: "Enter email address",
3327
- keyboardType: "email-address",
3328
- name: "email",
3329
- placeholder: "Email"
3330
- };
3331
- var companyContactFields = [
3332
- {
3333
- ...emailField,
3334
- name: "contactDetails.email"
3335
- },
3336
- {
3337
- helperText: "Enter your mobile phone number",
3338
- keyboardType: "phone-pad",
3339
- name: "contactDetails.mobilePhone",
3340
- placeholder: "Mobile Phone Number"
3341
- },
3342
- {
3343
- helperText: "Enter your landline phone number",
3344
- keyboardType: "phone-pad",
3345
- name: "contactDetails.landlinePhone",
3346
- placeholder: "Landline Phone Number"
3347
- }
3348
- ];
3349
-
3350
3314
  // src/formFields/auth.ts
3351
3315
  var loginFields = [
3352
3316
  {
@@ -8646,6 +8610,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8646
8610
  var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8647
8611
  fragment AffiliateResourceFields on AffiliateResourceType {
8648
8612
  resourceActive
8613
+ resourceDeletedAt
8649
8614
  resourceId
8650
8615
  resourceName
8651
8616
  resourceType
@@ -9096,7 +9061,6 @@ var fonts = {
9096
9061
  };
9097
9062
  // Annotate the CommonJS export names for ESM import in node:
9098
9063
  0 && (module.exports = {
9099
- AFFILIATE_REWARDS,
9100
9064
  ANDROID_URL,
9101
9065
  CLUEMART_MAIN_DOMAIN_URL,
9102
9066
  CM_AFFILIATE_PROMO_CODE,
@@ -9205,6 +9169,7 @@ var fonts = {
9205
9169
  badgeFiles,
9206
9170
  badgeIds,
9207
9171
  badges,
9172
+ bankAccountDetailsFields,
9208
9173
  buildApplicationShareDescription,
9209
9174
  buildCalendarSheetContentData,
9210
9175
  buildFacebookShareQuote,
@@ -9227,7 +9192,6 @@ var fonts = {
9227
9192
  companyContactFields,
9228
9193
  computeDailyClueState,
9229
9194
  contactUsFields,
9230
- createAffiliateReward,
9231
9195
  darkColors,
9232
9196
  dateFormat,
9233
9197
  emailField,