@timardex/cluemart-server-shared 1.0.137 → 1.0.139

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.
@@ -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, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
2
+ import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } 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';
@@ -573,6 +573,9 @@ declare const AppSettingModel: mongoose.Model<AppSettingsType, {}, {}, {}, mongo
573
573
  __v: number;
574
574
  }, any>;
575
575
 
576
+ type SchemaGameType = Omit<GameType, "_id"> & {
577
+ _id: ObjectId;
578
+ };
576
579
  declare const GameModel: mongoose.Model<GameDocType, {}, {}, {}, mongoose.Document<unknown, {}, GameDocType, {}, {}> & GameDocType & Required<{
577
580
  _id: string;
578
581
  }> & {
@@ -585,6 +588,7 @@ declare const SchoolModel: mongoose.Model<SchoolType, {}, {}, {}, mongoose.Docum
585
588
  deletedAt: Date | null;
586
589
  overallPoints: number | null;
587
590
  owner: _timardex_cluemart_shared.OwnerType | null;
591
+ ranking: number | null;
588
592
  schoolCode: string;
589
593
  updatedAt: Date | null;
590
594
  } & Required<{
@@ -593,4 +597,4 @@ declare const SchoolModel: mongoose.Model<SchoolType, {}, {}, {}, mongoose.Docum
593
597
  __v: number;
594
598
  }, any>;
595
599
 
596
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
600
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
@@ -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, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
2
+ import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameType, GameDocType, SchoolType } 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';
@@ -573,6 +573,9 @@ declare const AppSettingModel: mongoose.Model<AppSettingsType, {}, {}, {}, mongo
573
573
  __v: number;
574
574
  }, any>;
575
575
 
576
+ type SchemaGameType = Omit<GameType, "_id"> & {
577
+ _id: ObjectId;
578
+ };
576
579
  declare const GameModel: mongoose.Model<GameDocType, {}, {}, {}, mongoose.Document<unknown, {}, GameDocType, {}, {}> & GameDocType & Required<{
577
580
  _id: string;
578
581
  }> & {
@@ -585,6 +588,7 @@ declare const SchoolModel: mongoose.Model<SchoolType, {}, {}, {}, mongoose.Docum
585
588
  deletedAt: Date | null;
586
589
  overallPoints: number | null;
587
590
  owner: _timardex_cluemart_shared.OwnerType | null;
591
+ ranking: number | null;
588
592
  schoolCode: string;
589
593
  updatedAt: Date | null;
590
594
  } & Required<{
@@ -593,4 +597,4 @@ declare const SchoolModel: mongoose.Model<SchoolType, {}, {}, {}, mongoose.Docum
593
597
  __v: number;
594
598
  }, any>;
595
599
 
596
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
600
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
@@ -37,7 +37,7 @@ import {
37
37
  resourceRelationsSchema,
38
38
  termsAgreementSchema,
39
39
  userLicenseSchema
40
- } from "../chunk-IAJUFOMN.mjs";
40
+ } from "../chunk-PVOU5CHB.mjs";
41
41
  import "../chunk-3QS3WKRC.mjs";
42
42
  export {
43
43
  APP_SETTINGS_ID,
@@ -10176,6 +10176,18 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10176
10176
  }
10177
10177
  ${GAME_DOC_FIELDS_FRAGMENT}
10178
10178
  `;
10179
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10180
+ fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10181
+ _id
10182
+ avatar {
10183
+ ...ResourceImageFields
10184
+ }
10185
+ email
10186
+ firstName
10187
+ lastName
10188
+ }
10189
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
10190
+ `;
10179
10191
  var SCHOOL = gql`
10180
10192
  fragment SchoolFields on SchoolType {
10181
10193
  _id
@@ -10196,6 +10208,7 @@ var SCHOOL = gql`
10196
10208
  ...OwnerFields
10197
10209
  }
10198
10210
  overallPoints
10211
+ ranking
10199
10212
  region
10200
10213
  studentCount
10201
10214
  schoolCode
@@ -10217,10 +10230,16 @@ var SCHOOL = gql`
10217
10230
  var GET_SCHOOL = gql`
10218
10231
  query getSchool($_id: ID!) {
10219
10232
  school(_id: $_id) {
10220
- ...SchoolFields
10233
+ school {
10234
+ ...SchoolFields
10235
+ }
10236
+ users {
10237
+ ...SchoolRegisteredUsersFields
10238
+ }
10221
10239
  }
10222
10240
  }
10223
10241
  ${SCHOOL}
10242
+ ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
10224
10243
  `;
10225
10244
  var GET_SCHOOLS = gql`
10226
10245
  query getSchools {
@@ -12383,6 +12402,7 @@ var schema15 = new MongooseSchema20(
12383
12402
  required: true,
12384
12403
  type: OwnerTypeSchema
12385
12404
  },
12405
+ ranking: { default: 0, required: false, type: Number },
12386
12406
  region: { required: true, type: String },
12387
12407
  schoolCode: { required: true, type: String },
12388
12408
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },