@timardex/cluemart-shared 1.7.21 → 1.7.23
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-03NrHP3C.d.ts → ad-BZcVngc3.d.ts} +2 -2
- package/dist/{ad-CplXHfPk.d.mts → ad-DChdPAkx.d.mts} +2 -2
- package/dist/{affiliate-BLSH2QdJ.d.ts → affiliate-BM1h7pwc.d.ts} +2 -2
- package/dist/{affiliate-hXxPpl_S.d.mts → affiliate-C1EG9HbN.d.mts} +2 -2
- package/dist/auth/index.cjs +3 -0
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-Y3YFLYN4.mjs → chunk-3VDFBRRK.mjs} +4 -1
- package/dist/chunk-3VDFBRRK.mjs.map +1 -0
- package/dist/{chunk-LBEJECG3.mjs → chunk-BEN24YAH.mjs} +26 -2
- package/dist/chunk-BEN24YAH.mjs.map +1 -0
- package/dist/{chunk-2QB6MIL2.mjs → chunk-LZQG3BQM.mjs} +2 -2
- package/dist/{contactUs-C13TqaIf.d.mts → contactUs-KVN1Iw60.d.mts} +1 -1
- package/dist/{contactUs-Cr4itlk6.d.ts → contactUs-l3ciX1_d.d.ts} +1 -1
- package/dist/coupon-BSiDzp4T.d.mts +39 -0
- package/dist/coupon-IFOTRBJR.d.ts +39 -0
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +1 -1
- package/dist/{global-8HQMiqbS.d.mts → global-BrnExI9t.d.mts} +5 -2
- package/dist/{global-DGrr26NH.d.ts → global-D8aPAI5b.d.ts} +5 -2
- package/dist/graphql/index.cjs +3 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -5
- package/dist/graphql/index.d.ts +5 -5
- package/dist/graphql/index.mjs +2 -2
- package/dist/hooks/index.cjs +128 -25
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +15 -6
- package/dist/hooks/index.d.ts +15 -6
- package/dist/hooks/index.mjs +127 -28
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +28 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +43 -3
- package/dist/index.d.ts +43 -3
- package/dist/index.mjs +27 -0
- 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-BkC-3bF2.d.ts → resourceActivities-DIXjrgOD.d.ts} +1 -1
- package/dist/{resourceActivities-CowKiCCb.d.mts → resourceActivities-DuftR4Ts.d.mts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/{user-CpWRig6p.d.ts → user-BY5AtgYc.d.ts} +1 -1
- package/dist/{user-DiJffpnd.d.mts → user-CjYZ7tJ4.d.mts} +1 -1
- package/dist/utils/index.cjs +25 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +7 -4
- package/dist/utils/index.d.ts +7 -4
- package/dist/utils/index.mjs +3 -1
- package/package.json +1 -1
- package/dist/chunk-LBEJECG3.mjs.map +0 -1
- package/dist/chunk-Y3YFLYN4.mjs.map +0 -1
- /package/dist/{chunk-2QB6MIL2.mjs.map → chunk-LZQG3BQM.mjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -176,6 +176,7 @@ __export(index_exports, {
|
|
|
176
176
|
computeDailyClueState: () => computeDailyClueState,
|
|
177
177
|
contactUsFields: () => contactUsFields,
|
|
178
178
|
createAffiliateReward: () => createAffiliateReward,
|
|
179
|
+
createCouponTypeOption: () => createCouponTypeOption,
|
|
179
180
|
darkColors: () => darkColors,
|
|
180
181
|
dateFormat: () => dateFormat,
|
|
181
182
|
emailField: () => emailField,
|
|
@@ -3031,6 +3032,29 @@ function getErrorMessage(error, fallback = DEFAULT_USER_FACING_ERROR) {
|
|
|
3031
3032
|
return toUserFacingErrorMessage(raw, fallback);
|
|
3032
3033
|
}
|
|
3033
3034
|
|
|
3035
|
+
// src/utils/coupon.ts
|
|
3036
|
+
function createCouponTypeOption({
|
|
3037
|
+
couponCode,
|
|
3038
|
+
couponDescription,
|
|
3039
|
+
couponOption,
|
|
3040
|
+
createdAt,
|
|
3041
|
+
endDate,
|
|
3042
|
+
participantProduct,
|
|
3043
|
+
startDate
|
|
3044
|
+
}) {
|
|
3045
|
+
return {
|
|
3046
|
+
active: true,
|
|
3047
|
+
couponCode,
|
|
3048
|
+
couponDescription,
|
|
3049
|
+
couponOption,
|
|
3050
|
+
createdAt,
|
|
3051
|
+
endDate,
|
|
3052
|
+
participantProduct,
|
|
3053
|
+
startDate,
|
|
3054
|
+
updatedAt: null
|
|
3055
|
+
};
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3034
3058
|
// src/formFields/vendor/vendorInfo.ts
|
|
3035
3059
|
var vendorElectricity = {
|
|
3036
3060
|
details: {
|
|
@@ -4255,11 +4279,14 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
|
|
|
4255
4279
|
`;
|
|
4256
4280
|
var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client3.gql`
|
|
4257
4281
|
fragment VendorProductListFields on VendorProductListType {
|
|
4282
|
+
_id
|
|
4283
|
+
createdAt
|
|
4258
4284
|
description
|
|
4259
4285
|
name
|
|
4260
4286
|
price
|
|
4261
4287
|
priceUnit
|
|
4262
4288
|
productGroups
|
|
4289
|
+
updatedAt
|
|
4263
4290
|
}
|
|
4264
4291
|
`;
|
|
4265
4292
|
var VENDOR = import_client3.gql`
|
|
@@ -9098,6 +9125,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
9098
9125
|
computeDailyClueState,
|
|
9099
9126
|
contactUsFields,
|
|
9100
9127
|
createAffiliateReward,
|
|
9128
|
+
createCouponTypeOption,
|
|
9101
9129
|
darkColors,
|
|
9102
9130
|
dateFormat,
|
|
9103
9131
|
emailField,
|