@timardex/cluemart-shared 1.3.46 → 1.3.47
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-B8Belf-h.d.ts → auth-CmCrmpRo.d.ts} +1 -1
- package/dist/{auth-CvNBSPXa.d.mts → auth-svPMD8ug.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-DM9eKgbE.d.ts → global-BylKHE-S.d.ts} +1 -1
- package/dist/{global-BN1zcCyz.d.mts → global-_ClapcHu.d.mts} +1 -1
- package/dist/graphql/index.cjs +57 -39
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +27 -22
- package/dist/graphql/index.d.ts +27 -22
- package/dist/graphql/index.mjs +56 -39
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/index.cjs +57 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +25 -20
- package/dist/index.d.ts +25 -20
- package/dist/index.mjs +56 -39
- package/dist/index.mjs.map +1 -1
- package/dist/{post-Dwg8-Ybg.d.ts → post-ChjjnO9v.d.ts} +1 -1
- package/dist/{post-CdrU9ts5.d.mts → post-zflSHvi5.d.mts} +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-_ClapcHu.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-BylKHE-S.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -354,4 +354,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
354
354
|
watch: UseFormWatch<T>;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, RelationDate as H, ImageObjectType as I, VendorLocation as J, VendorMenuType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorAttributes as Q, Requirement as R, StallType as S, TermsAgreement as T,
|
|
357
|
+
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, RelationDate as H, ImageObjectType as I, VendorLocation as J, VendorMenuType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorAttributes as Q, Requirement as R, StallType as S, TermsAgreement as T, UserActivityEventType as U, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, UserLicenceType as f, VendorFormData as g, CreateVendorFormData as h, VendorInfoFormData as i, CreateVendorInfoFormData as j, EventFormData as k, CreateEventFormData as l, EventInfoFormData as m, CreateEventInfoFormData as n, ResourceContactDetailsType as o, ResourceImageType as p, SocialMediaType as q, OwnerType as r, BaseResourceType as s, DateTimeType as t, Region as u, SubcategoryItems as v, Subcategory as w, CreateFormData as x, DateTimeWithPriceType as y, PaymentInfoType as z };
|
|
@@ -354,4 +354,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
354
354
|
watch: UseFormWatch<T>;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, RelationDate as H, ImageObjectType as I, VendorLocation as J, VendorMenuType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorAttributes as Q, Requirement as R, StallType as S, TermsAgreement as T,
|
|
357
|
+
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, RelationDate as H, ImageObjectType as I, VendorLocation as J, VendorMenuType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorAttributes as Q, Requirement as R, StallType as S, TermsAgreement as T, UserActivityEventType as U, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, UserLicenceType as f, VendorFormData as g, CreateVendorFormData as h, VendorInfoFormData as i, CreateVendorInfoFormData as j, EventFormData as k, CreateEventFormData as l, EventInfoFormData as m, CreateEventInfoFormData as n, ResourceContactDetailsType as o, ResourceImageType as p, SocialMediaType as q, OwnerType as r, BaseResourceType as s, DateTimeType as t, Region as u, SubcategoryItems as v, Subcategory as w, CreateFormData as x, DateTimeWithPriceType as y, PaymentInfoType as z };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(graphql_exports, {
|
|
|
34
34
|
useCreateAd: () => useCreateAd,
|
|
35
35
|
useCreateBulkNotifications: () => useCreateBulkNotifications,
|
|
36
36
|
useCreateCheckoutSession: () => useCreateCheckoutSession,
|
|
37
|
+
useCreateCustomerPortal: () => useCreateCustomerPortal,
|
|
37
38
|
useCreateEvent: () => useCreateEvent,
|
|
38
39
|
useCreateEventInfo: () => useCreateEventInfo,
|
|
39
40
|
useCreatePartner: () => useCreatePartner,
|
|
@@ -2421,29 +2422,6 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
|
|
|
2421
2422
|
}
|
|
2422
2423
|
${USER_FIELDS_FRAGMENT}
|
|
2423
2424
|
`;
|
|
2424
|
-
var SELECT_PACKAGE_MUTATION = import_client41.gql`
|
|
2425
|
-
mutation selectPackage(
|
|
2426
|
-
$billingPeriod: BillingPeriodEnumType
|
|
2427
|
-
$removedLicence: LicencesEnumType
|
|
2428
|
-
$selectedLicence: LicencesEnumType!
|
|
2429
|
-
$useStripe: Boolean
|
|
2430
|
-
) {
|
|
2431
|
-
selectPackage(
|
|
2432
|
-
billingPeriod: $billingPeriod
|
|
2433
|
-
removedLicence: $removedLicence
|
|
2434
|
-
selectedLicence: $selectedLicence
|
|
2435
|
-
useStripe: $useStripe
|
|
2436
|
-
) {
|
|
2437
|
-
checkoutUrl
|
|
2438
|
-
licences {
|
|
2439
|
-
...LicenceFields
|
|
2440
|
-
}
|
|
2441
|
-
userId
|
|
2442
|
-
message
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
${LICENCE_FIELDS_FRAGMENT}
|
|
2446
|
-
`;
|
|
2447
2425
|
var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
|
|
2448
2426
|
mutation addUserInterestResource($input: UserActivityInputType!) {
|
|
2449
2427
|
addUserInterestResource(input: $input) {
|
|
@@ -2542,21 +2520,6 @@ var useRemoveUserFavouriteResource = () => {
|
|
|
2542
2520
|
);
|
|
2543
2521
|
return { error, loading, removeUserFavouriteResource };
|
|
2544
2522
|
};
|
|
2545
|
-
var useSelectPackage = () => {
|
|
2546
|
-
const [selectPackage, { loading, error }] = (0, import_client42.useMutation)(SELECT_PACKAGE_MUTATION, {
|
|
2547
|
-
awaitRefetchQueries: true,
|
|
2548
|
-
refetchQueries: (mutationResult) => {
|
|
2549
|
-
const userId = mutationResult?.data?.selectPackage?.userId;
|
|
2550
|
-
if (!userId) return [];
|
|
2551
|
-
return [
|
|
2552
|
-
{ query: GET_USER, variables: { _id: userId } },
|
|
2553
|
-
{ query: GET_USER_EVENTS },
|
|
2554
|
-
{ query: GET_USER_VENDORS }
|
|
2555
|
-
];
|
|
2556
|
-
}
|
|
2557
|
-
});
|
|
2558
|
-
return { error, loading, selectPackage };
|
|
2559
|
-
};
|
|
2560
2523
|
var useAddUserInterestResource = () => {
|
|
2561
2524
|
const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(
|
|
2562
2525
|
ADD_USER_INTEREST_RESOURCE_MUTATION,
|
|
@@ -2939,7 +2902,10 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
|
|
|
2939
2902
|
$newPlanId: LicencesEnumType!
|
|
2940
2903
|
$billingPeriod: BillingPeriodEnumType
|
|
2941
2904
|
) {
|
|
2942
|
-
updateSubscriptionPlan(
|
|
2905
|
+
updateSubscriptionPlan(
|
|
2906
|
+
newPlanId: $newPlanId
|
|
2907
|
+
billingPeriod: $billingPeriod
|
|
2908
|
+
) {
|
|
2943
2909
|
subscriptionId
|
|
2944
2910
|
status
|
|
2945
2911
|
priceId
|
|
@@ -2947,6 +2913,36 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
|
|
|
2947
2913
|
}
|
|
2948
2914
|
}
|
|
2949
2915
|
`;
|
|
2916
|
+
var CREATE_CUSTOMER_PORTAL = import_client52.gql`
|
|
2917
|
+
mutation createCustomerPortal($returnUrl: String) {
|
|
2918
|
+
createCustomerPortal(returnUrl: $returnUrl) {
|
|
2919
|
+
portalUrl
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
`;
|
|
2923
|
+
var SELECT_PACKAGE_MUTATION = import_client52.gql`
|
|
2924
|
+
mutation selectPackage(
|
|
2925
|
+
$billingPeriod: BillingPeriodEnumType
|
|
2926
|
+
$removedLicence: LicencesEnumType
|
|
2927
|
+
$selectedLicence: LicencesEnumType!
|
|
2928
|
+
$useStripe: Boolean
|
|
2929
|
+
) {
|
|
2930
|
+
selectPackage(
|
|
2931
|
+
billingPeriod: $billingPeriod
|
|
2932
|
+
removedLicence: $removedLicence
|
|
2933
|
+
selectedLicence: $selectedLicence
|
|
2934
|
+
useStripe: $useStripe
|
|
2935
|
+
) {
|
|
2936
|
+
checkoutUrl
|
|
2937
|
+
licences {
|
|
2938
|
+
...LicenceFields
|
|
2939
|
+
}
|
|
2940
|
+
userId
|
|
2941
|
+
message
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
${LICENCE_FIELDS_FRAGMENT}
|
|
2945
|
+
`;
|
|
2950
2946
|
|
|
2951
2947
|
// src/graphql/hooks/stripe/hooksMutation.ts
|
|
2952
2948
|
var useCreateCheckoutSession = () => {
|
|
@@ -2967,6 +2963,27 @@ var useUpdateSubscriptionPlan = () => {
|
|
|
2967
2963
|
);
|
|
2968
2964
|
return { error, loading, updateSubscriptionPlan };
|
|
2969
2965
|
};
|
|
2966
|
+
var useCreateCustomerPortal = () => {
|
|
2967
|
+
const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(
|
|
2968
|
+
CREATE_CUSTOMER_PORTAL
|
|
2969
|
+
);
|
|
2970
|
+
return { createCustomerPortal, error, loading };
|
|
2971
|
+
};
|
|
2972
|
+
var useSelectPackage = () => {
|
|
2973
|
+
const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
|
|
2974
|
+
awaitRefetchQueries: true,
|
|
2975
|
+
refetchQueries: (mutationResult) => {
|
|
2976
|
+
const userId = mutationResult?.data?.selectPackage?.userId;
|
|
2977
|
+
if (!userId) return [];
|
|
2978
|
+
return [
|
|
2979
|
+
{ query: GET_USER, variables: { _id: userId } },
|
|
2980
|
+
{ query: GET_USER_EVENTS },
|
|
2981
|
+
{ query: GET_USER_VENDORS }
|
|
2982
|
+
];
|
|
2983
|
+
}
|
|
2984
|
+
});
|
|
2985
|
+
return { error, loading, selectPackage };
|
|
2986
|
+
};
|
|
2970
2987
|
|
|
2971
2988
|
// src/graphql/hooks/stripe/hooksQuery.ts
|
|
2972
2989
|
var import_client55 = require("@apollo/client");
|
|
@@ -3266,6 +3283,7 @@ var useGetPostsByType = (postType) => {
|
|
|
3266
3283
|
useCreateAd,
|
|
3267
3284
|
useCreateBulkNotifications,
|
|
3268
3285
|
useCreateCheckoutSession,
|
|
3286
|
+
useCreateCustomerPortal,
|
|
3269
3287
|
useCreateEvent,
|
|
3270
3288
|
useCreateEventInfo,
|
|
3271
3289
|
useCreatePartner,
|