@timardex/cluemart-server-shared 1.0.90 → 1.0.91
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-5PNTTWNZ.mjs → chunk-EPA7TN5Q.mjs} +19 -20
- package/dist/chunk-EPA7TN5Q.mjs.map +1 -0
- package/dist/index.cjs +18 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -24
- package/dist/index.d.ts +3 -24
- package/dist/index.mjs +18 -19
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +18 -19
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +3 -24
- package/dist/mongoose/index.d.ts +3 -24
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +18 -19
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-5PNTTWNZ.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-DjrJ0LKo.mjs';
|
|
5
5
|
export { C as ChatModel, N as NotificationModel, P as ParticipantSchema, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DjrJ0LKo.mjs';
|
|
@@ -479,32 +479,11 @@ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallTy
|
|
|
479
479
|
} & {
|
|
480
480
|
__v: number;
|
|
481
481
|
}>;
|
|
482
|
-
declare const refundPolicySchema: mongoose.Schema<{
|
|
483
|
-
cancelledByOrganiser: string[];
|
|
484
|
-
cancelledByVendor: string[];
|
|
485
|
-
}, mongoose.Model<{
|
|
486
|
-
cancelledByOrganiser: string[];
|
|
487
|
-
cancelledByVendor: string[];
|
|
488
|
-
}, any, any, any, mongoose.Document<unknown, any, {
|
|
489
|
-
cancelledByOrganiser: string[];
|
|
490
|
-
cancelledByVendor: string[];
|
|
491
|
-
}, any, {}> & {
|
|
492
|
-
cancelledByOrganiser: string[];
|
|
493
|
-
cancelledByVendor: string[];
|
|
494
|
-
} & {
|
|
482
|
+
declare const refundPolicySchema: mongoose.Schema<RefundPolicy, mongoose.Model<RefundPolicy, any, any, any, mongoose.Document<unknown, any, RefundPolicy, any, {}> & RefundPolicy & {
|
|
495
483
|
_id: mongoose.Types.ObjectId;
|
|
496
484
|
} & {
|
|
497
485
|
__v: number;
|
|
498
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
499
|
-
cancelledByOrganiser: string[];
|
|
500
|
-
cancelledByVendor: string[];
|
|
501
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
502
|
-
cancelledByOrganiser: string[];
|
|
503
|
-
cancelledByVendor: string[];
|
|
504
|
-
}>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
|
|
505
|
-
cancelledByOrganiser: string[];
|
|
506
|
-
cancelledByVendor: string[];
|
|
507
|
-
}> & {
|
|
486
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RefundPolicy, mongoose.Document<unknown, {}, mongoose.FlatRecord<RefundPolicy>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<RefundPolicy> & {
|
|
508
487
|
_id: mongoose.Types.ObjectId;
|
|
509
488
|
} & {
|
|
510
489
|
__v: number;
|
package/dist/mongoose/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType } from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-DjrJ0LKo.js';
|
|
5
5
|
export { C as ChatModel, N as NotificationModel, P as ParticipantSchema, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DjrJ0LKo.js';
|
|
@@ -479,32 +479,11 @@ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallTy
|
|
|
479
479
|
} & {
|
|
480
480
|
__v: number;
|
|
481
481
|
}>;
|
|
482
|
-
declare const refundPolicySchema: mongoose.Schema<{
|
|
483
|
-
cancelledByOrganiser: string[];
|
|
484
|
-
cancelledByVendor: string[];
|
|
485
|
-
}, mongoose.Model<{
|
|
486
|
-
cancelledByOrganiser: string[];
|
|
487
|
-
cancelledByVendor: string[];
|
|
488
|
-
}, any, any, any, mongoose.Document<unknown, any, {
|
|
489
|
-
cancelledByOrganiser: string[];
|
|
490
|
-
cancelledByVendor: string[];
|
|
491
|
-
}, any, {}> & {
|
|
492
|
-
cancelledByOrganiser: string[];
|
|
493
|
-
cancelledByVendor: string[];
|
|
494
|
-
} & {
|
|
482
|
+
declare const refundPolicySchema: mongoose.Schema<RefundPolicy, mongoose.Model<RefundPolicy, any, any, any, mongoose.Document<unknown, any, RefundPolicy, any, {}> & RefundPolicy & {
|
|
495
483
|
_id: mongoose.Types.ObjectId;
|
|
496
484
|
} & {
|
|
497
485
|
__v: number;
|
|
498
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
499
|
-
cancelledByOrganiser: string[];
|
|
500
|
-
cancelledByVendor: string[];
|
|
501
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
502
|
-
cancelledByOrganiser: string[];
|
|
503
|
-
cancelledByVendor: string[];
|
|
504
|
-
}>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
|
|
505
|
-
cancelledByOrganiser: string[];
|
|
506
|
-
cancelledByVendor: string[];
|
|
507
|
-
}> & {
|
|
486
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RefundPolicy, mongoose.Document<unknown, {}, mongoose.FlatRecord<RefundPolicy>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<RefundPolicy> & {
|
|
508
487
|
_id: mongoose.Types.ObjectId;
|
|
509
488
|
} & {
|
|
510
489
|
__v: number;
|
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -8477,8 +8477,9 @@ var EVENT_INFO = gql`
|
|
|
8477
8477
|
paymentMethod
|
|
8478
8478
|
}
|
|
8479
8479
|
refundPolicy {
|
|
8480
|
-
|
|
8481
|
-
|
|
8480
|
+
category
|
|
8481
|
+
label
|
|
8482
|
+
value
|
|
8482
8483
|
}
|
|
8483
8484
|
requirements {
|
|
8484
8485
|
category
|
|
@@ -10383,16 +10384,13 @@ var eventInfoSchema = create$3().shape({
|
|
|
10383
10384
|
}
|
|
10384
10385
|
),
|
|
10385
10386
|
paymentInfo: create$2().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required"),
|
|
10386
|
-
refundPolicy: create$
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
"
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
"At least one refund policy for cancellations by vendor is required"
|
|
10394
|
-
).required("Refund policy for cancellations by vendor is required")
|
|
10395
|
-
})
|
|
10387
|
+
refundPolicy: create$2().of(
|
|
10388
|
+
create$3({
|
|
10389
|
+
category: create$8().required("Category is required"),
|
|
10390
|
+
label: create$6().required("Label is required"),
|
|
10391
|
+
value: create$7().required("Value is required")
|
|
10392
|
+
})
|
|
10393
|
+
).min(1, "At least one refund policy item is required").required("Refund policy is required")
|
|
10396
10394
|
});
|
|
10397
10395
|
var vendroMenuSchema = create$3().shape({
|
|
10398
10396
|
description: create$6().trim().nullable().defined().test(
|
|
@@ -11139,25 +11137,26 @@ var requirementsSchema = new MongooseSchema3(
|
|
|
11139
11137
|
);
|
|
11140
11138
|
var refundPolicySchema = new MongooseSchema3(
|
|
11141
11139
|
{
|
|
11142
|
-
|
|
11143
|
-
|
|
11140
|
+
category: { required: true, type: String },
|
|
11141
|
+
label: { required: true, type: String },
|
|
11142
|
+
value: { required: true, type: Boolean }
|
|
11144
11143
|
},
|
|
11145
11144
|
{ _id: false }
|
|
11146
11145
|
);
|
|
11147
11146
|
var schema3 = new MongooseSchema3(
|
|
11148
11147
|
{
|
|
11149
11148
|
applicationDeadlineHours: { required: true, type: Number },
|
|
11150
|
-
dateTime: [dateTimeSchema2],
|
|
11149
|
+
dateTime: { required: true, type: [dateTimeSchema2] },
|
|
11151
11150
|
eventId: {
|
|
11152
11151
|
ref: "Event",
|
|
11153
|
-
required:
|
|
11152
|
+
required: true,
|
|
11154
11153
|
type: import_mongoose4.default.Schema.Types.ObjectId
|
|
11155
11154
|
},
|
|
11156
11155
|
packInTime: { required: true, type: Number },
|
|
11157
11156
|
paymentDueHours: { required: true, type: Number },
|
|
11158
|
-
paymentInfo: [paymentInfoSchema2],
|
|
11159
|
-
refundPolicy: { required: true, type: refundPolicySchema },
|
|
11160
|
-
requirements: [requirementsSchema]
|
|
11157
|
+
paymentInfo: { required: true, type: [paymentInfoSchema2] },
|
|
11158
|
+
refundPolicy: { required: true, type: [refundPolicySchema] },
|
|
11159
|
+
requirements: { required: false, type: [requirementsSchema] }
|
|
11161
11160
|
},
|
|
11162
11161
|
{ timestamps: true }
|
|
11163
11162
|
);
|