@timardex/cluemart-shared 1.3.52 → 1.3.54
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/{auth-D0kD3ZTx.d.ts → auth-BD8pG4QE.d.ts} +1 -9
- package/dist/{auth-DT2zs6P6.d.mts → auth-Cp-vzzpW.d.mts} +1 -9
- package/dist/graphql/index.cjs +45 -13
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +13 -4
- package/dist/graphql/index.d.ts +13 -4
- package/dist/graphql/index.mjs +42 -11
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/index.cjs +45 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.mjs +42 -11
- package/dist/index.mjs.map +1 -1
- package/dist/{post-D83V8snF.d.ts → post-Ccnm8wXU.d.ts} +12 -1
- package/dist/{post-CLTR6oRS.d.mts → post-DMNuE0Ba.d.mts} +12 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -9,14 +9,6 @@ type ContactUsFormData = {
|
|
|
9
9
|
};
|
|
10
10
|
type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
|
|
11
11
|
|
|
12
|
-
interface AppSettingsFormData {
|
|
13
|
-
appVersion: string;
|
|
14
|
-
}
|
|
15
|
-
type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
|
|
16
|
-
type AppSettingsType = AppSettingsFormData & {
|
|
17
|
-
_id: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
12
|
type LoginFormData = {
|
|
21
13
|
email: string;
|
|
22
14
|
isAdminPage?: boolean;
|
|
@@ -50,4 +42,4 @@ type ValidateVerificationTokenFormData = {
|
|
|
50
42
|
};
|
|
51
43
|
type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
|
|
52
44
|
|
|
53
|
-
export type {
|
|
45
|
+
export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, RequestPasswordResetFormData as g, ResetPasswordFormData as h };
|
|
@@ -9,14 +9,6 @@ type ContactUsFormData = {
|
|
|
9
9
|
};
|
|
10
10
|
type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
|
|
11
11
|
|
|
12
|
-
interface AppSettingsFormData {
|
|
13
|
-
appVersion: string;
|
|
14
|
-
}
|
|
15
|
-
type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
|
|
16
|
-
type AppSettingsType = AppSettingsFormData & {
|
|
17
|
-
_id: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
12
|
type LoginFormData = {
|
|
21
13
|
email: string;
|
|
22
14
|
isAdminPage?: boolean;
|
|
@@ -50,4 +42,4 @@ type ValidateVerificationTokenFormData = {
|
|
|
50
42
|
};
|
|
51
43
|
type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
|
|
52
44
|
|
|
53
|
-
export type {
|
|
45
|
+
export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, RequestPasswordResetFormData as g, ResetPasswordFormData as h };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -28,7 +28,6 @@ __export(graphql_exports, {
|
|
|
28
28
|
useAdminResendTesterVerificationEmail: () => useAdminResendTesterVerificationEmail,
|
|
29
29
|
useAdminUpdateResourceType: () => useAdminUpdateResourceType,
|
|
30
30
|
useAdminUpdateTester: () => useAdminUpdateTester,
|
|
31
|
-
useAppVersionCheck: () => useAppVersionCheck,
|
|
32
31
|
useCancelSubscription: () => useCancelSubscription,
|
|
33
32
|
useContactUs: () => useContactUs,
|
|
34
33
|
useCreateAd: () => useCreateAd,
|
|
@@ -63,6 +62,7 @@ __export(graphql_exports, {
|
|
|
63
62
|
useGetAd: () => useGetAd,
|
|
64
63
|
useGetAds: () => useGetAds,
|
|
65
64
|
useGetAdsByRegion: () => useGetAdsByRegion,
|
|
65
|
+
useGetAppSettings: () => useGetAppSettings,
|
|
66
66
|
useGetChat: () => useGetChat,
|
|
67
67
|
useGetChatSubscription: () => useGetChatSubscription,
|
|
68
68
|
useGetEvent: () => useGetEvent,
|
|
@@ -120,6 +120,7 @@ __export(graphql_exports, {
|
|
|
120
120
|
useSelectPackage: () => useSelectPackage,
|
|
121
121
|
useSendChatMessage: () => useSendChatMessage,
|
|
122
122
|
useUpdateAd: () => useUpdateAd,
|
|
123
|
+
useUpdateAppSettings: () => useUpdateAppSettings,
|
|
123
124
|
useUpdateEvent: () => useUpdateEvent,
|
|
124
125
|
useUpdateEventInfo: () => useUpdateEventInfo,
|
|
125
126
|
useUpdatePartner: () => useUpdatePartner,
|
|
@@ -3370,26 +3371,56 @@ var useGetPostsByType = (postType) => {
|
|
|
3370
3371
|
};
|
|
3371
3372
|
|
|
3372
3373
|
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
3373
|
-
var
|
|
3374
|
+
var import_client65 = require("@apollo/client");
|
|
3374
3375
|
|
|
3375
3376
|
// src/graphql/mutations/appSettings.ts
|
|
3376
3377
|
var import_client63 = require("@apollo/client");
|
|
3377
|
-
var
|
|
3378
|
-
mutation
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3378
|
+
var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
|
|
3379
|
+
mutation updateAppSettings($input: AppSettingsInputType!) {
|
|
3380
|
+
updateAppSettings(input: $input)
|
|
3381
|
+
}
|
|
3382
|
+
`;
|
|
3383
|
+
|
|
3384
|
+
// src/graphql/queries/appSettings.ts
|
|
3385
|
+
var import_client64 = require("@apollo/client");
|
|
3386
|
+
var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
|
|
3387
|
+
fragment AppSettingsFields on AppSettingsType {
|
|
3388
|
+
_id
|
|
3389
|
+
appVersion
|
|
3390
|
+
createdAt
|
|
3391
|
+
key
|
|
3392
|
+
updatedAt
|
|
3393
|
+
}
|
|
3394
|
+
`;
|
|
3395
|
+
var GET_APP_SETTINGS = import_client64.gql`
|
|
3396
|
+
query getAppSettings {
|
|
3397
|
+
appSettings {
|
|
3398
|
+
...AppSettingsFields
|
|
3383
3399
|
}
|
|
3384
3400
|
}
|
|
3401
|
+
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
3385
3402
|
`;
|
|
3386
3403
|
|
|
3387
3404
|
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
3388
|
-
var
|
|
3389
|
-
const [
|
|
3390
|
-
|
|
3405
|
+
var useUpdateAppSettings = () => {
|
|
3406
|
+
const [updateAppSettings, { loading, error }] = (0, import_client65.useMutation)(
|
|
3407
|
+
UPDATE_APP_SETTINGS_MUTATION,
|
|
3408
|
+
{
|
|
3409
|
+
awaitRefetchQueries: true,
|
|
3410
|
+
refetchQueries: [{ query: GET_APP_SETTINGS }]
|
|
3411
|
+
}
|
|
3391
3412
|
);
|
|
3392
|
-
return {
|
|
3413
|
+
return { error, loading, updateAppSettings };
|
|
3414
|
+
};
|
|
3415
|
+
|
|
3416
|
+
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
3417
|
+
var import_client66 = require("@apollo/client");
|
|
3418
|
+
var useGetAppSettings = () => {
|
|
3419
|
+
const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_APP_SETTINGS, {
|
|
3420
|
+
fetchPolicy: "network-only"
|
|
3421
|
+
});
|
|
3422
|
+
const appSettings = data?.appSettings || null;
|
|
3423
|
+
return { appSettings, error, loading, refetch };
|
|
3393
3424
|
};
|
|
3394
3425
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3395
3426
|
0 && (module.exports = {
|
|
@@ -3401,7 +3432,6 @@ var useAppVersionCheck = () => {
|
|
|
3401
3432
|
useAdminResendTesterVerificationEmail,
|
|
3402
3433
|
useAdminUpdateResourceType,
|
|
3403
3434
|
useAdminUpdateTester,
|
|
3404
|
-
useAppVersionCheck,
|
|
3405
3435
|
useCancelSubscription,
|
|
3406
3436
|
useContactUs,
|
|
3407
3437
|
useCreateAd,
|
|
@@ -3436,6 +3466,7 @@ var useAppVersionCheck = () => {
|
|
|
3436
3466
|
useGetAd,
|
|
3437
3467
|
useGetAds,
|
|
3438
3468
|
useGetAdsByRegion,
|
|
3469
|
+
useGetAppSettings,
|
|
3439
3470
|
useGetChat,
|
|
3440
3471
|
useGetChatSubscription,
|
|
3441
3472
|
useGetEvent,
|
|
@@ -3493,6 +3524,7 @@ var useAppVersionCheck = () => {
|
|
|
3493
3524
|
useSelectPackage,
|
|
3494
3525
|
useSendChatMessage,
|
|
3495
3526
|
useUpdateAd,
|
|
3527
|
+
useUpdateAppSettings,
|
|
3496
3528
|
useUpdateEvent,
|
|
3497
3529
|
useUpdateEventInfo,
|
|
3498
3530
|
useUpdatePartner,
|