@timardex/cluemart-shared 1.3.50 → 1.3.52
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-BD8pG4QE.d.ts → auth-D0kD3ZTx.d.ts} +9 -1
- package/dist/{auth-Cp-vzzpW.d.mts → auth-DT2zs6P6.d.mts} +9 -1
- package/dist/graphql/index.cjs +23 -15
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +6 -5
- package/dist/graphql/index.d.ts +6 -5
- package/dist/graphql/index.mjs +23 -15
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +59 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -2
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/index.mjs +58 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +82 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.mjs +81 -20
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,14 @@ 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
|
+
|
|
12
20
|
type LoginFormData = {
|
|
13
21
|
email: string;
|
|
14
22
|
isAdminPage?: boolean;
|
|
@@ -42,4 +50,4 @@ type ValidateVerificationTokenFormData = {
|
|
|
42
50
|
};
|
|
43
51
|
type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
|
|
44
52
|
|
|
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,
|
|
53
|
+
export type { AppSettingsFormData as A, 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, CreateAppSettingsFormData as g, RequestPasswordResetFormData as h, ResetPasswordFormData as i, AppSettingsType as j };
|
|
@@ -9,6 +9,14 @@ 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
|
+
|
|
12
20
|
type LoginFormData = {
|
|
13
21
|
email: string;
|
|
14
22
|
isAdminPage?: boolean;
|
|
@@ -42,4 +50,4 @@ type ValidateVerificationTokenFormData = {
|
|
|
42
50
|
};
|
|
43
51
|
type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
|
|
44
52
|
|
|
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,
|
|
53
|
+
export type { AppSettingsFormData as A, 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, CreateAppSettingsFormData as g, RequestPasswordResetFormData as h, ResetPasswordFormData as i, AppSettingsType as j };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -2586,15 +2586,6 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
|
|
|
2586
2586
|
}
|
|
2587
2587
|
${USER_FIELDS_FRAGMENT}
|
|
2588
2588
|
`;
|
|
2589
|
-
var APP_VERSION_CHECK_MUTATION = import_client41.gql`
|
|
2590
|
-
mutation appVersionCheck($appVersion: String!) {
|
|
2591
|
-
appVersionCheck(appVersion: $appVersion) {
|
|
2592
|
-
isUpToDate
|
|
2593
|
-
latestVersion
|
|
2594
|
-
message
|
|
2595
|
-
}
|
|
2596
|
-
}
|
|
2597
|
-
`;
|
|
2598
2589
|
|
|
2599
2590
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
2600
2591
|
var useCreateUser = () => {
|
|
@@ -2696,12 +2687,6 @@ var useRemoveUserPresentResource = () => {
|
|
|
2696
2687
|
);
|
|
2697
2688
|
return { error, loading, removeUserPresentResource };
|
|
2698
2689
|
};
|
|
2699
|
-
var useAppVersionCheck = () => {
|
|
2700
|
-
const [appVersionCheck, { loading, error }] = (0, import_client42.useMutation)(
|
|
2701
|
-
APP_VERSION_CHECK_MUTATION
|
|
2702
|
-
);
|
|
2703
|
-
return { appVersionCheck, error, loading };
|
|
2704
|
-
};
|
|
2705
2690
|
|
|
2706
2691
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
2707
2692
|
var import_client43 = require("@apollo/client");
|
|
@@ -3383,6 +3368,29 @@ var useGetPostsByType = (postType) => {
|
|
|
3383
3368
|
});
|
|
3384
3369
|
return { error, loading, postsByType: data?.postsByType || [], refetch };
|
|
3385
3370
|
};
|
|
3371
|
+
|
|
3372
|
+
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
3373
|
+
var import_client64 = require("@apollo/client");
|
|
3374
|
+
|
|
3375
|
+
// src/graphql/mutations/appSettings.ts
|
|
3376
|
+
var import_client63 = require("@apollo/client");
|
|
3377
|
+
var APP_VERSION_CHECK_MUTATION = import_client63.gql`
|
|
3378
|
+
mutation appVersionCheck($appVersion: String!) {
|
|
3379
|
+
appVersionCheck(appVersion: $appVersion) {
|
|
3380
|
+
isUpToDate
|
|
3381
|
+
latestVersion
|
|
3382
|
+
message
|
|
3383
|
+
}
|
|
3384
|
+
}
|
|
3385
|
+
`;
|
|
3386
|
+
|
|
3387
|
+
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
3388
|
+
var useAppVersionCheck = () => {
|
|
3389
|
+
const [appVersionCheck, { loading, error }] = (0, import_client64.useMutation)(
|
|
3390
|
+
APP_VERSION_CHECK_MUTATION
|
|
3391
|
+
);
|
|
3392
|
+
return { appVersionCheck, error, loading };
|
|
3393
|
+
};
|
|
3386
3394
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3387
3395
|
0 && (module.exports = {
|
|
3388
3396
|
useAddParticipantToChat,
|