@timardex/cluemart-server-shared 1.1.20 → 1.1.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/{chunk-WDKTIULG.mjs → chunk-6LIZONJ6.mjs} +41 -25
- package/dist/chunk-6LIZONJ6.mjs.map +1 -0
- package/dist/index.cjs +42 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.mjs +42 -26
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +40 -24
- 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 +42 -26
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +3 -3
- package/dist/service/index.mjs.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-WDKTIULG.mjs.map +0 -1
|
@@ -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 = [
|
|
@@ -7741,6 +7742,9 @@ var COUPON_CODE_FIELDS_FRAGMENT = gql`
|
|
|
7741
7742
|
qrCode {
|
|
7742
7743
|
...ResourceImageFields
|
|
7743
7744
|
}
|
|
7745
|
+
shareableQrCode {
|
|
7746
|
+
...ResourceImageFields
|
|
7747
|
+
}
|
|
7744
7748
|
}
|
|
7745
7749
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
7746
7750
|
`;
|
|
@@ -7762,20 +7766,22 @@ var COUPON_OPTION_FIELDS_FRAGMENT = gql`
|
|
|
7762
7766
|
visits
|
|
7763
7767
|
}
|
|
7764
7768
|
`;
|
|
7765
|
-
var
|
|
7766
|
-
fragment
|
|
7769
|
+
var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
|
|
7770
|
+
fragment CouponVendorProductFields on CouponVendorProductType {
|
|
7771
|
+
couponId
|
|
7767
7772
|
vendorId
|
|
7768
7773
|
productId
|
|
7769
|
-
|
|
7770
|
-
unit
|
|
7774
|
+
vendorCouponId
|
|
7771
7775
|
}
|
|
7772
7776
|
`;
|
|
7773
7777
|
var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = gql`
|
|
7774
7778
|
fragment CouponDataProductsFields on CouponDataProductsType {
|
|
7775
7779
|
active
|
|
7780
|
+
couponId
|
|
7776
7781
|
productsList {
|
|
7777
7782
|
...VendorProductListFields
|
|
7778
7783
|
}
|
|
7784
|
+
vendorId
|
|
7779
7785
|
vendorLogo {
|
|
7780
7786
|
...ResourceImageFields
|
|
7781
7787
|
}
|
|
@@ -7795,8 +7801,8 @@ var COUPON_DATA_FIELDS_FRAGMENT = gql`
|
|
|
7795
7801
|
couponOption {
|
|
7796
7802
|
...CouponOptionFields
|
|
7797
7803
|
}
|
|
7798
|
-
|
|
7799
|
-
...
|
|
7804
|
+
couponVendorProducts {
|
|
7805
|
+
...CouponVendorProductFields
|
|
7800
7806
|
}
|
|
7801
7807
|
createdAt
|
|
7802
7808
|
endDate
|
|
@@ -7814,7 +7820,7 @@ var COUPON_DATA_FIELDS_FRAGMENT = gql`
|
|
|
7814
7820
|
${COUPON_CODE_FIELDS_FRAGMENT}
|
|
7815
7821
|
${COUPON_OPTION_FIELDS_FRAGMENT}
|
|
7816
7822
|
${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
|
|
7817
|
-
${
|
|
7823
|
+
${COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT}
|
|
7818
7824
|
${COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT}
|
|
7819
7825
|
`;
|
|
7820
7826
|
var COUPON = gql`
|
|
@@ -7835,8 +7841,8 @@ var COUPON = gql`
|
|
|
7835
7841
|
${COUPON_DATA_FIELDS_FRAGMENT}
|
|
7836
7842
|
`;
|
|
7837
7843
|
var GET_COUPONS = gql`
|
|
7838
|
-
query getCoupons {
|
|
7839
|
-
coupons {
|
|
7844
|
+
query getCoupons($region: String, $category: String) {
|
|
7845
|
+
coupons(region: $region, category: $category) {
|
|
7840
7846
|
active {
|
|
7841
7847
|
listName
|
|
7842
7848
|
data {
|
|
@@ -7867,14 +7873,6 @@ var GET_COUPON = gql`
|
|
|
7867
7873
|
}
|
|
7868
7874
|
${COUPON}
|
|
7869
7875
|
`;
|
|
7870
|
-
var GET_RESOURCE_COUPONS = gql`
|
|
7871
|
-
query getResourceCoupons($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
|
|
7872
|
-
resourceCoupons(resourceId: $resourceId, resourceType: $resourceType) {
|
|
7873
|
-
...CouponFields
|
|
7874
|
-
}
|
|
7875
|
-
}
|
|
7876
|
-
${COUPON}
|
|
7877
|
-
`;
|
|
7878
7876
|
var CREATE_COUPON_MUTATION = gql`
|
|
7879
7877
|
mutation createCoupon($input: CouponInputType!) {
|
|
7880
7878
|
createCoupon(input: $input) {
|
|
@@ -7906,8 +7904,16 @@ var UPDATE_COUPON_MUTATION = gql`
|
|
|
7906
7904
|
${COUPON}
|
|
7907
7905
|
`;
|
|
7908
7906
|
var DELETE_COUPON_MUTATION = gql`
|
|
7909
|
-
mutation deleteCoupon($
|
|
7910
|
-
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) {
|
|
7911
7917
|
data
|
|
7912
7918
|
message
|
|
7913
7919
|
}
|
|
@@ -9085,14 +9091,20 @@ var couponOptionSchema = new MongooseSchema13(
|
|
|
9085
9091
|
},
|
|
9086
9092
|
{ _id: false }
|
|
9087
9093
|
);
|
|
9088
|
-
var
|
|
9094
|
+
var couponVendorProductSchema = new MongooseSchema13(
|
|
9089
9095
|
{
|
|
9096
|
+
couponId: {
|
|
9097
|
+
required: true,
|
|
9098
|
+
type: mongoose13.Schema.Types.ObjectId
|
|
9099
|
+
},
|
|
9090
9100
|
productId: {
|
|
9091
9101
|
required: true,
|
|
9092
9102
|
type: mongoose13.Schema.Types.ObjectId
|
|
9093
9103
|
},
|
|
9094
|
-
|
|
9095
|
-
|
|
9104
|
+
vendorCouponId: {
|
|
9105
|
+
required: false,
|
|
9106
|
+
type: mongoose13.Schema.Types.ObjectId
|
|
9107
|
+
},
|
|
9096
9108
|
vendorId: {
|
|
9097
9109
|
ref: "Vendor",
|
|
9098
9110
|
required: true,
|
|
@@ -9104,7 +9116,8 @@ var couponRewardSchema = new MongooseSchema13(
|
|
|
9104
9116
|
var couponCodeSchema = new MongooseSchema13(
|
|
9105
9117
|
{
|
|
9106
9118
|
code: { required: true, type: String },
|
|
9107
|
-
qrCode: { required: true, type: ResourceImageTypeSchema }
|
|
9119
|
+
qrCode: { required: true, type: ResourceImageTypeSchema },
|
|
9120
|
+
shareableQrCode: { required: true, type: ResourceImageTypeSchema }
|
|
9108
9121
|
},
|
|
9109
9122
|
{ _id: false }
|
|
9110
9123
|
);
|
|
@@ -9126,7 +9139,10 @@ var couponDataSchema = new MongooseSchema13(
|
|
|
9126
9139
|
couponCode: { required: true, type: couponCodeSchema },
|
|
9127
9140
|
couponDescription: { required: true, type: String },
|
|
9128
9141
|
couponOption: { required: true, type: couponOptionSchema },
|
|
9129
|
-
|
|
9142
|
+
couponVendorProducts: {
|
|
9143
|
+
required: false,
|
|
9144
|
+
type: [couponVendorProductSchema]
|
|
9145
|
+
},
|
|
9130
9146
|
endDate: { required: true, type: Date },
|
|
9131
9147
|
participantUsers: {
|
|
9132
9148
|
default: null,
|
|
@@ -9913,4 +9929,4 @@ export {
|
|
|
9913
9929
|
SchoolModel,
|
|
9914
9930
|
AffiliateModel
|
|
9915
9931
|
};
|
|
9916
|
-
//# sourceMappingURL=chunk-
|
|
9932
|
+
//# sourceMappingURL=chunk-6LIZONJ6.mjs.map
|