@timardex/cluemart-server-shared 1.1.21 → 1.1.24
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/{chunk-3JRVRK2N.mjs → chunk-YILYRHDN.mjs} +63 -21
- package/dist/chunk-YILYRHDN.mjs.map +1 -0
- package/dist/index.cjs +117 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +30 -6
- package/dist/index.d.ts +30 -6
- package/dist/index.mjs +114 -41
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +39 -19
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +6 -4
- package/dist/mongoose/index.d.ts +6 -4
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +117 -41
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +26 -4
- package/dist/service/index.d.ts +26 -4
- package/dist/service/index.mjs +56 -23
- package/dist/service/index.mjs.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-3JRVRK2N.mjs.map +0 -1
|
@@ -3393,17 +3393,17 @@ var gameScreenIdentifierList = [
|
|
|
3393
3393
|
{
|
|
3394
3394
|
clue: "Where your actions turn into a timeline.",
|
|
3395
3395
|
id: "activities",
|
|
3396
|
-
match: "/profile/
|
|
3396
|
+
match: "/profile/account/favourites"
|
|
3397
3397
|
},
|
|
3398
3398
|
{
|
|
3399
3399
|
clue: "Where conversations happen without speaking.",
|
|
3400
3400
|
id: "chat",
|
|
3401
|
-
match: "/
|
|
3401
|
+
match: "/chat"
|
|
3402
3402
|
},
|
|
3403
3403
|
{
|
|
3404
3404
|
clue: "The place to redefine who you are.",
|
|
3405
3405
|
id: "edit-profile",
|
|
3406
|
-
match: "/profile/
|
|
3406
|
+
match: "/profile/account"
|
|
3407
3407
|
},
|
|
3408
3408
|
{
|
|
3409
3409
|
clue: "A single moment worth showing up for.",
|
|
@@ -3581,8 +3581,8 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
3581
3581
|
return EnumActivity2;
|
|
3582
3582
|
})(EnumActivity || {});
|
|
3583
3583
|
var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
3584
|
-
EnumPostType2["MARKET_FACES"] = "market_faces";
|
|
3585
3584
|
EnumPostType2["CLUE_BITES"] = "clue_bites";
|
|
3585
|
+
EnumPostType2["MARKET_FACES"] = "market_faces";
|
|
3586
3586
|
EnumPostType2["PLAY_AND_WIN"] = "play_and_win";
|
|
3587
3587
|
return EnumPostType2;
|
|
3588
3588
|
})(EnumPostType || {});
|
|
@@ -3625,6 +3625,7 @@ var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
|
|
|
3625
3625
|
var EnumCouponQualificationType = /* @__PURE__ */ ((EnumCouponQualificationType2) => {
|
|
3626
3626
|
EnumCouponQualificationType2["PURCHASE"] = "PURCHASE";
|
|
3627
3627
|
EnumCouponQualificationType2["MARKET_VISIT"] = "MARKET_VISIT";
|
|
3628
|
+
EnumCouponQualificationType2["MARKET_PASSPORT"] = "MARKET_PASSPORT";
|
|
3628
3629
|
return EnumCouponQualificationType2;
|
|
3629
3630
|
})(EnumCouponQualificationType || {});
|
|
3630
3631
|
var statusOptions = [
|
|
@@ -7765,20 +7766,22 @@ var COUPON_OPTION_FIELDS_FRAGMENT = gql`
|
|
|
7765
7766
|
visits
|
|
7766
7767
|
}
|
|
7767
7768
|
`;
|
|
7768
|
-
var
|
|
7769
|
-
fragment
|
|
7769
|
+
var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
|
|
7770
|
+
fragment CouponVendorProductFields on CouponVendorProductType {
|
|
7771
|
+
couponId
|
|
7770
7772
|
vendorId
|
|
7771
7773
|
productId
|
|
7772
|
-
|
|
7773
|
-
unit
|
|
7774
|
+
vendorCouponId
|
|
7774
7775
|
}
|
|
7775
7776
|
`;
|
|
7776
7777
|
var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = gql`
|
|
7777
7778
|
fragment CouponDataProductsFields on CouponDataProductsType {
|
|
7778
7779
|
active
|
|
7780
|
+
couponId
|
|
7779
7781
|
productsList {
|
|
7780
7782
|
...VendorProductListFields
|
|
7781
7783
|
}
|
|
7784
|
+
vendorId
|
|
7782
7785
|
vendorLogo {
|
|
7783
7786
|
...ResourceImageFields
|
|
7784
7787
|
}
|
|
@@ -7798,8 +7801,8 @@ var COUPON_DATA_FIELDS_FRAGMENT = gql`
|
|
|
7798
7801
|
couponOption {
|
|
7799
7802
|
...CouponOptionFields
|
|
7800
7803
|
}
|
|
7801
|
-
|
|
7802
|
-
...
|
|
7804
|
+
couponVendorProducts {
|
|
7805
|
+
...CouponVendorProductFields
|
|
7803
7806
|
}
|
|
7804
7807
|
createdAt
|
|
7805
7808
|
endDate
|
|
@@ -7817,7 +7820,7 @@ var COUPON_DATA_FIELDS_FRAGMENT = gql`
|
|
|
7817
7820
|
${COUPON_CODE_FIELDS_FRAGMENT}
|
|
7818
7821
|
${COUPON_OPTION_FIELDS_FRAGMENT}
|
|
7819
7822
|
${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
|
|
7820
|
-
${
|
|
7823
|
+
${COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT}
|
|
7821
7824
|
${COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT}
|
|
7822
7825
|
`;
|
|
7823
7826
|
var COUPON = gql`
|
|
@@ -7838,8 +7841,8 @@ var COUPON = gql`
|
|
|
7838
7841
|
${COUPON_DATA_FIELDS_FRAGMENT}
|
|
7839
7842
|
`;
|
|
7840
7843
|
var GET_COUPONS = gql`
|
|
7841
|
-
query getCoupons {
|
|
7842
|
-
coupons {
|
|
7844
|
+
query getCoupons($region: String, $category: String) {
|
|
7845
|
+
coupons(region: $region, category: $category) {
|
|
7843
7846
|
active {
|
|
7844
7847
|
listName
|
|
7845
7848
|
data {
|
|
@@ -7901,8 +7904,16 @@ var UPDATE_COUPON_MUTATION = gql`
|
|
|
7901
7904
|
${COUPON}
|
|
7902
7905
|
`;
|
|
7903
7906
|
var DELETE_COUPON_MUTATION = gql`
|
|
7904
|
-
mutation deleteCoupon($
|
|
7905
|
-
deleteCoupon(
|
|
7907
|
+
mutation deleteCoupon($input: ProductCouponInputType!) {
|
|
7908
|
+
deleteCoupon(input: $input) {
|
|
7909
|
+
data
|
|
7910
|
+
message
|
|
7911
|
+
}
|
|
7912
|
+
}
|
|
7913
|
+
`;
|
|
7914
|
+
var SCAN_COUPON_MUTATION = gql`
|
|
7915
|
+
mutation scanCoupon($input: ProductCouponInputType!) {
|
|
7916
|
+
scanCoupon(input: $input) {
|
|
7906
7917
|
data
|
|
7907
7918
|
message
|
|
7908
7919
|
}
|
|
@@ -8750,6 +8761,18 @@ var EnumRegions2 = /* @__PURE__ */ ((EnumRegions22) => {
|
|
|
8750
8761
|
EnumRegions22["Wellington"] = "Wellington";
|
|
8751
8762
|
return EnumRegions22;
|
|
8752
8763
|
})(EnumRegions2 || {});
|
|
8764
|
+
var EnumUserLicence2 = /* @__PURE__ */ ((EnumUserLicence22) => {
|
|
8765
|
+
EnumUserLicence22["PRO_EVENT"] = "pro_event";
|
|
8766
|
+
EnumUserLicence22["PRO_PLUS_EVENT"] = "pro_plus_event";
|
|
8767
|
+
EnumUserLicence22["PRO_PLUS_VENDOR"] = "pro_plus_vendor";
|
|
8768
|
+
EnumUserLicence22["PRO_VENDOR"] = "pro_vendor";
|
|
8769
|
+
EnumUserLicence22["STANDARD_EVENT"] = "standard_event";
|
|
8770
|
+
EnumUserLicence22["STANDARD_VENDOR"] = "standard_vendor";
|
|
8771
|
+
EnumUserLicence22["STANDARD_PARTNER"] = "standard_partner";
|
|
8772
|
+
EnumUserLicence22["STANDARD_AFFILIATE"] = "standard_affiliate";
|
|
8773
|
+
EnumUserLicence22["STANDARD_SCHOOL"] = "standard_school";
|
|
8774
|
+
return EnumUserLicence22;
|
|
8775
|
+
})(EnumUserLicence2 || {});
|
|
8753
8776
|
var EnumEventDateStatus2 = /* @__PURE__ */ ((EnumEventDateStatus22) => {
|
|
8754
8777
|
EnumEventDateStatus22["STARTING_SOON"] = "Starting_Soon";
|
|
8755
8778
|
EnumEventDateStatus22["STARTED"] = "Started";
|
|
@@ -8764,6 +8787,15 @@ var EnumEventDateStatus2 = /* @__PURE__ */ ((EnumEventDateStatus22) => {
|
|
|
8764
8787
|
EnumEventDateStatus22["INVALID"] = "Invalid";
|
|
8765
8788
|
return EnumEventDateStatus22;
|
|
8766
8789
|
})(EnumEventDateStatus2 || {});
|
|
8790
|
+
var EnumSubscriptionStatus2 = /* @__PURE__ */ ((EnumSubscriptionStatus22) => {
|
|
8791
|
+
EnumSubscriptionStatus22["ACTIVE"] = "active";
|
|
8792
|
+
EnumSubscriptionStatus22["INACTIVE"] = "inactive";
|
|
8793
|
+
EnumSubscriptionStatus22["CANCELLED"] = "cancelled";
|
|
8794
|
+
EnumSubscriptionStatus22["NO_SUBSCRIPTION"] = "no_subscription";
|
|
8795
|
+
EnumSubscriptionStatus22["PAST_DUE"] = "past_due";
|
|
8796
|
+
EnumSubscriptionStatus22["TRIALING"] = "trialing";
|
|
8797
|
+
return EnumSubscriptionStatus22;
|
|
8798
|
+
})(EnumSubscriptionStatus2 || {});
|
|
8767
8799
|
|
|
8768
8800
|
// src/mongoose/PushToken.ts
|
|
8769
8801
|
import mongoose9 from "mongoose";
|
|
@@ -9080,14 +9112,20 @@ var couponOptionSchema = new MongooseSchema13(
|
|
|
9080
9112
|
},
|
|
9081
9113
|
{ _id: false }
|
|
9082
9114
|
);
|
|
9083
|
-
var
|
|
9115
|
+
var couponVendorProductSchema = new MongooseSchema13(
|
|
9084
9116
|
{
|
|
9117
|
+
couponId: {
|
|
9118
|
+
required: true,
|
|
9119
|
+
type: mongoose13.Schema.Types.ObjectId
|
|
9120
|
+
},
|
|
9085
9121
|
productId: {
|
|
9086
9122
|
required: true,
|
|
9087
9123
|
type: mongoose13.Schema.Types.ObjectId
|
|
9088
9124
|
},
|
|
9089
|
-
|
|
9090
|
-
|
|
9125
|
+
vendorCouponId: {
|
|
9126
|
+
required: false,
|
|
9127
|
+
type: mongoose13.Schema.Types.ObjectId
|
|
9128
|
+
},
|
|
9091
9129
|
vendorId: {
|
|
9092
9130
|
ref: "Vendor",
|
|
9093
9131
|
required: true,
|
|
@@ -9122,7 +9160,10 @@ var couponDataSchema = new MongooseSchema13(
|
|
|
9122
9160
|
couponCode: { required: true, type: couponCodeSchema },
|
|
9123
9161
|
couponDescription: { required: true, type: String },
|
|
9124
9162
|
couponOption: { required: true, type: couponOptionSchema },
|
|
9125
|
-
|
|
9163
|
+
couponVendorProducts: {
|
|
9164
|
+
required: false,
|
|
9165
|
+
type: [couponVendorProductSchema]
|
|
9166
|
+
},
|
|
9126
9167
|
endDate: { required: true, type: Date },
|
|
9127
9168
|
participantUsers: {
|
|
9128
9169
|
default: null,
|
|
@@ -9856,7 +9897,6 @@ export {
|
|
|
9856
9897
|
EnumNotificationType,
|
|
9857
9898
|
EnumUserLicence,
|
|
9858
9899
|
EnumEventDateStatus,
|
|
9859
|
-
EnumSubscriptionStatus,
|
|
9860
9900
|
dateFormat,
|
|
9861
9901
|
timeFormat,
|
|
9862
9902
|
EnumAdStatus,
|
|
@@ -9889,7 +9929,9 @@ export {
|
|
|
9889
9929
|
EnumInviteStatus2,
|
|
9890
9930
|
EnumPaymentMethod2 as EnumPaymentMethod,
|
|
9891
9931
|
EnumRegions2 as EnumRegions,
|
|
9932
|
+
EnumUserLicence2,
|
|
9892
9933
|
EnumEventDateStatus2,
|
|
9934
|
+
EnumSubscriptionStatus2 as EnumSubscriptionStatus,
|
|
9893
9935
|
PushTokenModel,
|
|
9894
9936
|
ResourceActivityModel,
|
|
9895
9937
|
UserModel,
|
|
@@ -9909,4 +9951,4 @@ export {
|
|
|
9909
9951
|
SchoolModel,
|
|
9910
9952
|
AffiliateModel
|
|
9911
9953
|
};
|
|
9912
|
-
//# sourceMappingURL=chunk-
|
|
9954
|
+
//# sourceMappingURL=chunk-YILYRHDN.mjs.map
|