@goodhood-web/nebenan-base 4.2.0-development.15 → 4.2.0-development.17

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/index.mjs CHANGED
@@ -84106,26 +84106,26 @@ const W5e = "_root_smh6s_141", G5e = "_interactive_smh6s_145", Y5e = "_text_smh6
84106
84106
  }
84107
84107
  )
84108
84108
  ] });
84109
- }, eAe = "_react-datepicker__day-names_19vdr_120", nAe = "_react-datepicker__week_19vdr_124", tAe = "_react-datepicker__day--outside-month_19vdr_131", iAe = "_react-datepicker_19vdr_120", rAe = "_header_19vdr_141", aAe = "_headline_19vdr_148", sAe = "_promptSection_19vdr_153", oAe = "_promptContainer_19vdr_157", lAe = "_promptContainer--lavender_19vdr_165", uAe = "_promptContainer--teal_19vdr_169", dAe = "_promptContainer--orange_19vdr_173", cAe = "_promptContainer--pink_19vdr_177", fAe = "_promptQuestion_19vdr_182", hAe = "_replyField_19vdr_186", gAe = "_userAvatar_19vdr_193", mAe = "_inputField_19vdr_197", pAe = "_inputPlaceholder_19vdr_214", vAe = "_cameraButton_19vdr_218", zi = {
84110
- "react-datepicker__day-names": "_react-datepicker__day-names_19vdr_120",
84109
+ }, eAe = "_react-datepicker__day-names_46ahn_120", nAe = "_react-datepicker__week_46ahn_124", tAe = "_react-datepicker__day--outside-month_46ahn_131", iAe = "_react-datepicker_46ahn_120", rAe = "_header_46ahn_141", aAe = "_headline_46ahn_148", sAe = "_promptSection_46ahn_153", oAe = "_promptContainer_46ahn_157", lAe = "_promptContainer--lavender_46ahn_165", uAe = "_promptContainer--teal_46ahn_169", dAe = "_promptContainer--orange_46ahn_173", cAe = "_promptContainer--pink_46ahn_177", fAe = "_promptQuestion_46ahn_182", hAe = "_replyField_46ahn_186", gAe = "_userAvatar_46ahn_193", mAe = "_inputField_46ahn_197", pAe = "_inputPlaceholder_46ahn_214", vAe = "_cameraButton_46ahn_218", zi = {
84110
+ "react-datepicker__day-names": "_react-datepicker__day-names_46ahn_120",
84111
84111
  reactDatepickerDayNames: eAe,
84112
- "react-datepicker__week": "_react-datepicker__week_19vdr_124",
84112
+ "react-datepicker__week": "_react-datepicker__week_46ahn_124",
84113
84113
  reactDatepickerWeek: nAe,
84114
- "react-datepicker__day--outside-month": "_react-datepicker__day--outside-month_19vdr_131",
84114
+ "react-datepicker__day--outside-month": "_react-datepicker__day--outside-month_46ahn_131",
84115
84115
  reactDatepickerDayOutsideMonth: tAe,
84116
- "react-datepicker": "_react-datepicker_19vdr_120",
84116
+ "react-datepicker": "_react-datepicker_46ahn_120",
84117
84117
  reactDatepicker: iAe,
84118
84118
  header: rAe,
84119
84119
  headline: aAe,
84120
84120
  promptSection: sAe,
84121
84121
  promptContainer: oAe,
84122
- "promptContainer--lavender": "_promptContainer--lavender_19vdr_165",
84122
+ "promptContainer--lavender": "_promptContainer--lavender_46ahn_165",
84123
84123
  promptContainerLavender: lAe,
84124
- "promptContainer--teal": "_promptContainer--teal_19vdr_169",
84124
+ "promptContainer--teal": "_promptContainer--teal_46ahn_169",
84125
84125
  promptContainerTeal: uAe,
84126
- "promptContainer--orange": "_promptContainer--orange_19vdr_173",
84126
+ "promptContainer--orange": "_promptContainer--orange_46ahn_173",
84127
84127
  promptContainerOrange: dAe,
84128
- "promptContainer--pink": "_promptContainer--pink_19vdr_177",
84128
+ "promptContainer--pink": "_promptContainer--pink_46ahn_177",
84129
84129
  promptContainerPink: cAe,
84130
84130
  promptQuestion: fAe,
84131
84131
  replyField: hAe,
@@ -84859,69 +84859,65 @@ function fx(n) {
84859
84859
  const e = t9e(), t = n;
84860
84860
  return {
84861
84861
  author_details: {
84862
+ api_v2_business_profile_url: n.business_profile_id ? `/api/v2/business_profiles/${n.business_profile_id}` : null,
84863
+ api_v2_neighbour_url: `/api/v2/users/${n.user_id}`,
84864
+ ben: !1,
84862
84865
  gid: `gid://nebenan/User/${n.user_id}`,
84866
+ hood_title: n.hood_title,
84863
84867
  name: "User",
84864
84868
  picture_url: "",
84865
- hood_title: n.hood_title,
84866
- profile_url: null,
84867
- ben: !1,
84868
84869
  private_message_url: null,
84869
- api_v2_neighbour_url: `/api/v2/users/${n.user_id}`,
84870
- supporter: !1,
84871
- api_v2_business_profile_url: n.business_profile_id ? `/api/v2/business_profiles/${n.business_profile_id}` : null
84870
+ profile_url: null,
84871
+ supporter: !1
84872
84872
  },
84873
84873
  body: n.body,
84874
84874
  content_type: e,
84875
84875
  counters: {
84876
84876
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
84877
- reaction_good_idea: ((i = t.reactions) == null ? void 0 : i.good_idea) || 0,
84877
+ bookmark: t.bookmark_count || 0,
84878
84878
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
84879
- reaction_love: ((r = t.reactions) == null ? void 0 : r.love) || 0,
84879
+ reaction_agree: ((i = t.reactions) == null ? void 0 : i.agree) || 0,
84880
84880
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
84881
- reaction_bravo: ((a = t.reactions) == null ? void 0 : a.bravo) || 0,
84881
+ reaction_bravo: ((r = t.reactions) == null ? void 0 : r.bravo) || 0,
84882
84882
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
84883
- reaction_agree: ((s = t.reactions) == null ? void 0 : s.agree) || 0,
84884
- reaction_thankyou: ((o = n.thanking_user_ids) == null ? void 0 : o.length) || 0,
84883
+ reaction_good_idea: ((a = t.reactions) == null ? void 0 : a.good_idea) || 0,
84885
84884
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
84886
- reaction_haha: ((l = t.reactions) == null ? void 0 : l.haha) || 0,
84887
- reaction_support: 0,
84888
- reaction_sad: 0,
84889
- reaction_wow: 0,
84885
+ reaction_haha: ((s = t.reactions) == null ? void 0 : s.haha) || 0,
84890
84886
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
84891
- bookmark: t.bookmark_count || 0
84887
+ reaction_love: ((o = t.reactions) == null ? void 0 : o.love) || 0,
84888
+ reaction_sad: 0,
84889
+ reaction_support: 0,
84890
+ reaction_thankyou: ((l = n.thanking_user_ids) == null ? void 0 : l.length) || 0,
84891
+ reaction_wow: 0
84892
84892
  },
84893
- hood_city: null,
84894
84893
  created_at: n.created_at,
84895
- id: n.id,
84896
84894
  embeds: [],
84897
- level_of_detail: "in_reach",
84898
- hood_title: n.hood_title,
84899
- reach: n.is_public ? "public" : "hood",
84900
84895
  event_details: n.start_date ? {
84901
- ends_all_day: !n.stop_time,
84902
- starts_all_day: !n.start_time,
84903
- ends_at: n.stop_date,
84904
- starts_at: n.start_date,
84905
- participants_maybe: 0,
84906
84896
  category: {
84907
- title: "Event",
84897
+ icon: "calendar",
84908
84898
  id: n.cat_id || 0,
84909
84899
  slug: "event",
84910
- icon: "calendar"
84900
+ title: "Event"
84911
84901
  },
84912
- participants_no: 0,
84902
+ ends_all_day: !n.stop_time,
84903
+ ends_at: n.stop_date,
84913
84904
  location: null,
84905
+ location_text: n.location_text || "",
84906
+ participants_maybe: 0,
84907
+ participants_no: 0,
84914
84908
  participants_yes: 0,
84915
- location_text: n.location_text || ""
84909
+ starts_all_day: !n.start_time,
84910
+ starts_at: n.start_date
84916
84911
  } : null,
84917
- visibility: n.is_public ? "public" : "in_reach",
84918
84912
  feature_addons: n.paid_highlight_until ? [
84919
84913
  {
84920
84914
  feature_enabled_until: n.paid_highlight_until,
84921
84915
  feature_identifier: "premium_feature_highlight"
84922
84916
  }
84923
84917
  ] : [],
84924
- subject: n.subject,
84918
+ hood_city: null,
84919
+ hood_title: n.hood_title,
84920
+ id: n.id,
84925
84921
  images: ((u = n.images) == null ? void 0 : u.map((d) => ({
84926
84922
  url: d.url || d.original_url
84927
84923
  }))) || [],
@@ -84932,6 +84928,7 @@ function fx(n) {
84932
84928
  reacting: "enabled",
84933
84929
  replying: "enabled"
84934
84930
  },
84931
+ level_of_detail: "in_reach",
84935
84932
  marketplace_details: n.exchange_type > 0 ? {
84936
84933
  category: null,
84937
84934
  outcome: n.outcome === 0 ? "opened" : n.outcome === 1 ? "closed_by_user" : n.outcome === 2 ? "item_reserved" : "closed_by_admin",
@@ -84939,8 +84936,11 @@ function fx(n) {
84939
84936
  price_currency: "EUR",
84940
84937
  price_in_cents: n.price
84941
84938
  } : null,
84939
+ reach: n.is_public ? "public" : "hood",
84942
84940
  resources: [],
84943
- updated_at: n.updated_at
84941
+ subject: n.subject,
84942
+ updated_at: n.updated_at,
84943
+ visibility: n.is_public ? "public" : "in_reach"
84944
84944
  };
84945
84945
  }
84946
84946
  function pke(n) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.2.0-development.15",
3
+ "version": "4.2.0-development.17",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",