@wikicasa-dev/utilities 0.0.11 → 0.1.0

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.
@@ -1,4 +1,4 @@
1
- import type { AgencyItem, MapMarker, Contacts, Nullable } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { AgencyItem, MapMarker, Contacts, Nullable } from "@wikicasa-dev/types";
2
2
  declare global {
3
3
  interface Window {
4
4
  _serializedAgencySearchBean?: Nullable<any>;
@@ -1,4 +1,4 @@
1
- import type { Place, GAutocompleteTypes, GooglePredictionType, GPlaceDetails, Nullable } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { Place, GAutocompleteTypes, GooglePredictionType, GPlaceDetails, Nullable } from "@wikicasa-dev/types";
2
2
  export declare const getPlacesAddressAutocomplete: (query: string, radius: number, types?: GAutocompleteTypes[]) => Promise<GooglePredictionType[]>;
3
3
  export declare const getPlacesDetails: (placeId: string) => Promise<GPlaceDetails>;
4
4
  export declare const guessPlace: (latitude?: number, longitude?: number) => Promise<Place>;
@@ -1,2 +1,2 @@
1
- import type { Place, GraphData } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { Place, GraphData } from "@wikicasa-dev/types";
2
2
  export declare const getTransactionGraphData: (place: Place) => Promise<GraphData[]>;
@@ -1,4 +1,4 @@
1
- import type { PLACE_TYPE, Place } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { PLACE_TYPE, Place } from "@wikicasa-dev/types";
2
2
  export declare const getPlacesByQuery: (value: string, placeType?: PLACE_TYPE[], provinceId?: number | string | null) => Promise<Place[]>;
3
3
  export declare function getPlace(query: string, types?: string): Promise<Array<Place>>;
4
4
  export declare function getZones(cityID: number): Promise<Array<Place>>;
@@ -1,4 +1,4 @@
1
- import type { PublicUser, PublicUserMenuInfo, SaveSearchBean } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { PublicUser, PublicUserMenuInfo, SaveSearchBean } from "@wikicasa-dev/types";
2
2
  export declare const getMenuInfo: () => Promise<PublicUserMenuInfo>;
3
3
  export declare const getPublicUser: () => Promise<PublicUser>;
4
4
  export declare const getMarketingConsent: (email: string) => Promise<boolean>;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse } from "axios";
2
- import type { RealEstateSearchBean, MapMarker, RealEstateMiniItem, Nullable } from "@wikicasa-dev/types/dist/index.d.ts";
2
+ import type { RealEstateSearchBean, MapMarker, RealEstateMiniItem, Nullable } from "@wikicasa-dev/types";
3
3
  declare global {
4
4
  interface Window {
5
5
  _serializedSearchBean?: Nullable<any>;
@@ -1,4 +1,4 @@
1
- import type { Contacts } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { Contacts } from "@wikicasa-dev/types";
2
2
  export declare const sendSuggestion: (suggestion: {
3
3
  argument: string;
4
4
  email: string;
@@ -1,4 +1,4 @@
1
- import type { Place, GraphData } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { Place, GraphData } from "@wikicasa-dev/types";
2
2
  export declare const updateViewListing: (data: Array<{
3
3
  agencyId: number;
4
4
  realEstateId: number;
@@ -1,4 +1,4 @@
1
- import type { PublicValuation, Nullable } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { PublicValuation, Nullable } from "@wikicasa-dev/types";
2
2
  export interface ValuationResult extends Record<string, number | boolean | undefined> {
3
3
  valid: boolean;
4
4
  upper: number;
@@ -1,4 +1,4 @@
1
- import type { Nullable } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { Nullable } from "@wikicasa-dev/types";
2
2
  export declare const getSingleElement: (selector: string) => HTMLElement;
3
3
  export declare const emptyElem: (selectorOrElem: string | Element) => void;
4
4
  export declare const showElem: (elem: Nullable<HTMLElement>, displayValue?: "block" | "d-flex") => void;
@@ -1,2 +1,2 @@
1
- import type { Nullable } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { Nullable } from "@wikicasa-dev/types";
2
2
  export declare const hashEmail: (emailToNormalize: Nullable<string>) => Promise<string>;
@@ -1,2 +1,2 @@
1
- import type { GAEvent, GaPhoneShowPayload, GaRequestPayload, GaValuationPayload, GaValuationSellingPayload, GenericPayload } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { GAEvent, GaPhoneShowPayload, GaRequestPayload, GaValuationPayload, GaValuationSellingPayload, GenericPayload } from "@wikicasa-dev/types";
2
2
  export declare function sendGAEvent<T extends GaValuationPayload | GaRequestPayload | GaPhoneShowPayload | GenericPayload | GaValuationSellingPayload>(GAEvent: GAEvent, payload?: T): void;
@@ -1,4 +1,4 @@
1
- import type { Place, GPlaceDetails } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { Place, GPlaceDetails } from "@wikicasa-dev/types";
2
2
  export declare const googlePlaceConverter: (gPlace: GPlaceDetails, address: string) => Promise<Place>;
3
3
  export declare const getPlaceFromGAutocomplete: (placeId: string, label: string) => Promise<{
4
4
  place: Place;
@@ -1,4 +1,4 @@
1
- import type { RealEstateSearchBean } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { RealEstateSearchBean } from "@wikicasa-dev/types";
2
2
  declare global {
3
3
  interface Window {
4
4
  _auctionLabel: string;
@@ -1,2 +1,2 @@
1
- import type { RequestGeneric } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { RequestGeneric } from "@wikicasa-dev/types";
2
2
  export declare function sendRequestGeneric(rg: RequestGeneric): Promise<unknown>;
@@ -1,4 +1,4 @@
1
- import type { PAGES } from "@wikicasa-dev/types/dist/index.d.ts";
1
+ import type { PAGES } from "@wikicasa-dev/types";
2
2
  declare global {
3
3
  interface Window {
4
4
  _baseURL: string;
package/package.json CHANGED
@@ -1,17 +1,11 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/utilities",
3
- "version": "0.0.11",
3
+ "version": "0.1.0",
4
4
  "description": "Wikicasa frontend utilities",
5
5
  "type": "module",
6
- "main": "./dist/utilities.umd.cjs",
6
+ "main": "./dist/utilities.js",
7
+ "types": "./dist/index.d.ts",
7
8
  "module": "./dist/utilities.js",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/utilities.js",
12
- "require": "./dist/utilities.umd.cjs"
13
- }
14
- },
15
9
  "files": [
16
10
  "dist"
17
11
  ],
@@ -48,7 +42,7 @@
48
42
  "leaflet-draw": "^1.0.4",
49
43
  "leaflet-freedraw": "^2.13.3",
50
44
  "uuid": "^9.0.0",
51
- "@wikicasa-dev/types": "^0.0.2"
45
+ "@wikicasa-dev/types": "^0.0.3"
52
46
  },
53
47
  "scripts": {
54
48
  "dev": "vite",