@timardex/cluemart-shared 1.5.549 → 1.5.551
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-LOABFNIJ.mjs → chunk-5LODYRBR.mjs} +10 -16
- package/dist/chunk-5LODYRBR.mjs.map +1 -0
- package/dist/{chunk-Z3JWNX2U.mjs → chunk-DYUATO2Z.mjs} +12 -6
- package/dist/chunk-DYUATO2Z.mjs.map +1 -0
- package/dist/{chunk-L47NQHZ6.mjs → chunk-OVEYADVZ.mjs} +2 -2
- package/dist/{chunk-UBAAAYJY.mjs → chunk-SUCEE4LU.mjs} +15 -7
- package/dist/{chunk-UBAAAYJY.mjs.map → chunk-SUCEE4LU.mjs.map} +1 -1
- package/dist/{chunk-FICQ3PR5.mjs → chunk-ZOPHRV6M.mjs} +12 -2
- package/dist/chunk-ZOPHRV6M.mjs.map +1 -0
- package/dist/{game-1CSiEjlf.d.ts → dailyClue-CvOPk6am.d.mts} +12 -56
- package/dist/{game-BPtE3yaQ.d.mts → dailyClue-CvOPk6am.d.ts} +12 -56
- package/dist/formFields/index.cjs +4 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +14 -6
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +25 -8
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.mjs +10 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +45 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +24 -13
- package/dist/index.d.ts +24 -13
- package/dist/index.mjs +43 -22
- package/dist/index.mjs.map +1 -1
- package/dist/{post-Lc5PrxY6.d.ts → post-B941IgWP.d.ts} +54 -4
- package/dist/{post-CY53UsA7.d.mts → post-C3L-bejc.d.mts} +54 -4
- package/dist/types/index.cjs +16 -12
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +3 -3
- package/dist/utils/index.cjs +15 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +5 -2
- package/dist/utils/index.d.ts +5 -2
- package/dist/utils/index.mjs +6 -2
- package/package.json +1 -1
- package/dist/chunk-FICQ3PR5.mjs.map +0 -1
- package/dist/chunk-LOABFNIJ.mjs.map +0 -1
- package/dist/chunk-Z3JWNX2U.mjs.map +0 -1
- /package/dist/{chunk-L47NQHZ6.mjs.map → chunk-OVEYADVZ.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -2,10 +2,10 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
3
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-B8dshdq5.mjs';
|
|
4
4
|
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-ClbRuePq.mjs';
|
|
5
|
-
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, e as
|
|
6
|
-
import { G as GameDocType, a as GameLeaderboard } from '../game-BPtE3yaQ.mjs';
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-C3L-bejc.mjs';
|
|
7
6
|
import 'react-hook-form';
|
|
8
7
|
import '../images/index.mjs';
|
|
8
|
+
import '../dailyClue-CvOPk6am.mjs';
|
|
9
9
|
|
|
10
10
|
declare const useAdminUpdateResourceType: () => {
|
|
11
11
|
adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<{
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
3
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BXsZrzFC.js';
|
|
4
4
|
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-CDqmjLH1.js';
|
|
5
|
-
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, e as
|
|
6
|
-
import { G as GameDocType, a as GameLeaderboard } from '../game-1CSiEjlf.js';
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-B941IgWP.js';
|
|
7
6
|
import 'react-hook-form';
|
|
8
7
|
import '../images/index.js';
|
|
8
|
+
import '../dailyClue-CvOPk6am.js';
|
|
9
9
|
|
|
10
10
|
declare const useAdminUpdateResourceType: () => {
|
|
11
11
|
adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<{
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -278,7 +278,7 @@ var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus2) => {
|
|
|
278
278
|
return EnumEventDateStatus2;
|
|
279
279
|
})(EnumEventDateStatus || {});
|
|
280
280
|
|
|
281
|
-
// src/types/game.ts
|
|
281
|
+
// src/types/game/dailyClue.ts
|
|
282
282
|
var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
|
|
283
283
|
var OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;
|
|
284
284
|
var gameScreenIdentifierList = [
|
|
@@ -373,6 +373,9 @@ var gameScreenIdentifierList = [
|
|
|
373
373
|
match: "/visitors"
|
|
374
374
|
}
|
|
375
375
|
];
|
|
376
|
+
var gameTypeToDisplayName = {
|
|
377
|
+
["dailyClue" /* DAILY_CLUE */]: "Daily Clue"
|
|
378
|
+
};
|
|
376
379
|
|
|
377
380
|
// src/utils/date.ts
|
|
378
381
|
var import_dayjs = __toESM(require("dayjs"));
|
|
@@ -438,6 +441,9 @@ var cluemartSocialMedia = [
|
|
|
438
441
|
}
|
|
439
442
|
];
|
|
440
443
|
|
|
444
|
+
// src/utils/school.ts
|
|
445
|
+
var SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
446
|
+
|
|
441
447
|
// src/yupSchema/global.ts
|
|
442
448
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
443
449
|
var nzbnRegex = /^94\d{11}$/;
|
|
@@ -4156,8 +4162,8 @@ var GAME_DATE_FIELDS_FRAGMENT = import_client55.gql`
|
|
|
4156
4162
|
endDate
|
|
4157
4163
|
}
|
|
4158
4164
|
`;
|
|
4159
|
-
var
|
|
4160
|
-
fragment
|
|
4165
|
+
var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client55.gql`
|
|
4166
|
+
fragment DailyClueBaseGameFields on DailyClueBaseGameType {
|
|
4161
4167
|
gameDate {
|
|
4162
4168
|
...GameDateFields
|
|
4163
4169
|
}
|
|
@@ -4169,20 +4175,20 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client55.gql`
|
|
|
4169
4175
|
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
|
|
4170
4176
|
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
4171
4177
|
gameFields {
|
|
4172
|
-
...
|
|
4178
|
+
...DailyClueBaseGameFields
|
|
4173
4179
|
}
|
|
4174
4180
|
lastFoundDate
|
|
4175
4181
|
points
|
|
4176
4182
|
letterInfo {
|
|
4177
4183
|
collected
|
|
4178
|
-
|
|
4179
|
-
todaysLetter
|
|
4184
|
+
solutionShuffled
|
|
4180
4185
|
todaysClue
|
|
4186
|
+
todaysLetter
|
|
4181
4187
|
todaysPlacement
|
|
4182
4188
|
}
|
|
4183
4189
|
streak
|
|
4184
4190
|
}
|
|
4185
|
-
${
|
|
4191
|
+
${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
|
|
4186
4192
|
`;
|
|
4187
4193
|
var GAME_HISTORY_FIELDS_FRAGMENT = import_client55.gql`
|
|
4188
4194
|
fragment GameHistoryFields on GameHistoryType {
|
|
@@ -4272,6 +4278,14 @@ var GET_GAME_LEADERBOARD = import_client55.gql`
|
|
|
4272
4278
|
`;
|
|
4273
4279
|
|
|
4274
4280
|
// src/graphql/queries/post.ts
|
|
4281
|
+
var BASE_GAME_FIELDS_FRAGMENT = import_client56.gql`
|
|
4282
|
+
fragment BaseGameFields on BaseGameType {
|
|
4283
|
+
dailyClue {
|
|
4284
|
+
...DailyClueBaseGameFields
|
|
4285
|
+
}
|
|
4286
|
+
}
|
|
4287
|
+
${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
|
|
4288
|
+
`;
|
|
4275
4289
|
var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client56.gql`
|
|
4276
4290
|
fragment PostContentDataFields on PostContentData {
|
|
4277
4291
|
game {
|
|
@@ -5802,7 +5816,10 @@ var schoolSchema = yup11.object().shape({
|
|
|
5802
5816
|
name: yup11.string().trim().required("Name is required"),
|
|
5803
5817
|
region: yup11.string().trim().required("Region is required"),
|
|
5804
5818
|
socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
|
|
5805
|
-
studentCount: yup11.number().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(
|
|
5819
|
+
studentCount: yup11.number().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(
|
|
5820
|
+
SCHOOL_MIN_STUDENT_COUNT,
|
|
5821
|
+
`Student count must be at least ${SCHOOL_MIN_STUDENT_COUNT}`
|
|
5822
|
+
).required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
|
|
5806
5823
|
});
|
|
5807
5824
|
|
|
5808
5825
|
// src/hooks/useSchoolForm.ts
|