@timardex/cluemart-shared 1.5.586 → 1.5.589

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.
@@ -212,7 +212,15 @@ declare const useCreateEvent: () => {
212
212
  declare const useUpdateEvent: () => {
213
213
  error: _apollo_client.ApolloError | undefined;
214
214
  loading: boolean;
215
- updateEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
215
+ updateEvent: (options?: _apollo_client.MutationFunctionOptions<{
216
+ updateEvent: {
217
+ _id: string;
218
+ };
219
+ }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
220
+ updateEvent: {
221
+ _id: string;
222
+ };
223
+ }>>;
216
224
  };
217
225
  declare const useDeleteEvent: () => {
218
226
  deleteEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
@@ -212,7 +212,15 @@ declare const useCreateEvent: () => {
212
212
  declare const useUpdateEvent: () => {
213
213
  error: _apollo_client.ApolloError | undefined;
214
214
  loading: boolean;
215
- updateEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
215
+ updateEvent: (options?: _apollo_client.MutationFunctionOptions<{
216
+ updateEvent: {
217
+ _id: string;
218
+ };
219
+ }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
220
+ updateEvent: {
221
+ _id: string;
222
+ };
223
+ }>>;
216
224
  };
217
225
  declare const useDeleteEvent: () => {
218
226
  deleteEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
@@ -135,7 +135,7 @@ import {
135
135
  useUpdateVendor,
136
136
  useUpdateVendorInfo,
137
137
  useValidateVerificationToken
138
- } from "../chunk-YGKLLYKV.mjs";
138
+ } from "../chunk-P52HS2NB.mjs";
139
139
  import "../chunk-ZR4TGWTS.mjs";
140
140
  export {
141
141
  useAddParticipantToChat,
@@ -4763,6 +4763,45 @@ var otherImages = Object.fromEntries(
4763
4763
  Object.entries(otherImagesFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
4764
4764
  );
4765
4765
 
4766
+ // src/sharing/relationShareTypes.ts
4767
+ var RELATION_SHARE_INVITATION = "invitation";
4768
+ var RELATION_SHARE_APPLICATION = "application";
4769
+
4770
+ // src/sharing/constants.ts
4771
+ var SHARE_SITE_URL = "https://cluemart.co.nz";
4772
+ var DEFAULT_SHARE_OG_IMAGE = `${SHARE_SITE_URL}/assets/logo.webp`;
4773
+ var RESOURCE_SHARE_TYPES = [
4774
+ "market",
4775
+ "stallholder",
4776
+ "partner"
4777
+ ];
4778
+ var POST_SHARE_RESOURCE_TYPES = [
4779
+ "daily_meets",
4780
+ "daily_tips",
4781
+ "daily_games"
4782
+ ];
4783
+ var SHARE_RESOURCE_LABEL = {
4784
+ [RELATION_SHARE_APPLICATION]: "Application",
4785
+ [RELATION_SHARE_INVITATION]: "Invitation",
4786
+ daily_games: "Daily Game",
4787
+ daily_meets: "Daily Meet",
4788
+ daily_tips: "Daily Tip",
4789
+ market: "Market",
4790
+ partner: "Partner",
4791
+ stallholder: "Stallholder"
4792
+ };
4793
+
4794
+ // src/sharing/buildShareUrl.ts
4795
+ var PUBLIC_SHARE_PATH_TYPES = [
4796
+ ...RESOURCE_SHARE_TYPES,
4797
+ ...POST_SHARE_RESOURCE_TYPES
4798
+ ];
4799
+ var SHARE_TYPE_PATH_REGEX = [
4800
+ ...PUBLIC_SHARE_PATH_TYPES,
4801
+ RELATION_SHARE_APPLICATION,
4802
+ RELATION_SHARE_INVITATION
4803
+ ].join("|");
4804
+
4766
4805
  // src/types/post.ts
4767
4806
  var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
4768
4807
  EnumPostType2["DAILY_MEETS"] = "daily_meets";