@sweepbright/api-client 0.42.0-pre.4 → 0.42.0-pre.5

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.
@@ -2,6 +2,46 @@ import { Maybe } from '../common/types';
2
2
  import { ApiDataResponse } from '../types';
3
3
  import { CompanyNegotiator } from './negotiator';
4
4
  import { Office } from './office';
5
+ import { Amenity, Condition, PropertyType } from './property';
6
+ export declare enum GeoType {
7
+ geojson = "geojson",
8
+ postal_codes = "postal_codes"
9
+ }
10
+ export interface DataCoords {
11
+ type: 'Polygon';
12
+ coordinates: Array<Array<[number, number]>>;
13
+ }
14
+ export interface LocationPreferenceEntity {
15
+ _id: string;
16
+ id: string;
17
+ preference_id: string;
18
+ name?: string;
19
+ type?: GeoType;
20
+ postal_codes?: string[];
21
+ country?: string;
22
+ geojson?: DataCoords;
23
+ }
24
+ export interface ContactPreferences {
25
+ id: string;
26
+ wishes?: string[];
27
+ types?: string[];
28
+ min_rooms?: number | null;
29
+ locale?: string;
30
+ message?: string;
31
+ is_investor?: boolean;
32
+ negotiation?: string;
33
+ location_text?: string;
34
+ wishes_text?: string;
35
+ max_price?: number;
36
+ min_price?: number;
37
+ amenities?: Amenity[] | null;
38
+ condition?: Condition | null;
39
+ created_at?: string;
40
+ is_matchable?: boolean;
41
+ type?: PropertyType;
42
+ updated_at?: string;
43
+ location_preferences?: LocationPreferenceEntity[];
44
+ }
5
45
  export interface Contact {
6
46
  id: string;
7
47
  type: string;
@@ -1,3 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GeoType = void 0;
4
+ var GeoType;
5
+ (function (GeoType) {
6
+ GeoType["geojson"] = "geojson";
7
+ GeoType["postal_codes"] = "postal_codes";
8
+ })(GeoType || (exports.GeoType = GeoType = {}));
3
9
  //# sourceMappingURL=contact.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contact.js","sourceRoot":"","sources":["../../src/entities/contact.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"contact.js","sourceRoot":"","sources":["../../src/entities/contact.ts"],"names":[],"mappings":";;;AAMA,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,8BAAmB,CAAA;IACnB,wCAA6B,CAAA;AAC/B,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB"}
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { Logger } from './oauth-manager/interfaces';
2
2
  import type { Client, ClientConf } from './types';
3
3
  export declare function createClient(conf: ClientConf, logger?: Logger): Client;
4
4
  export type { ChannelAccount } from './entities/channelAccount';
5
- export type { Contact } from './entities/contact';
5
+ export type { Contact, ContactPreferences, LocationPreferenceEntity, DataCoords, GeoType, } from './entities/contact';
6
6
  export type { Company } from './entities/office';
7
7
  export type { Property } from './entities/property';
8
8
  export { InternalType } from './entities/property';
@@ -12,6 +12,6 @@ export { createCustomEndpointAuthManager } from './oauth-manager/factories/creat
12
12
  export { createOAuthManager } from './oauth-manager/factories/createOAuthManager';
13
13
  export type { CreateOAuthManagerOptions } from './oauth-manager/factories/entities';
14
14
  export type { Logger, OAuthManager, SessionData, } from './oauth-manager/interfaces';
15
- export { ActivityInclude, BucketInclude, ChannelAccountInclude, ChannelInfoInclude, CompanyInclude, ContactInclude, Env, InteractionInclude, InterestInclude, OfficeInclude, ProjectInclude, PropertyInclude, ReportInclude, UserInclude, VendorInclude, } from './types';
15
+ export { ActivityInclude, BucketInclude, ChannelAccountInclude, ChannelInfoInclude, CompanyInclude, ContactInclude, Env, InteractionInclude, InterestInclude, OfficeInclude, ProjectInclude, PropertyInclude, ReportInclude, UserInclude, VendorInclude, IncludeFor, } from './types';
16
16
  export { EventType } from './types';
17
17
  export type { Client, ClientConf, AuctionEventData, ApiDataResponse, ApiListMeta, ApiListResponse, ChannelAccountsGetAllInput, ChannelAccountsGetAllResponse, ChannelAccountsGetEstateHashResponse, ChannelAccountsGetEstateHashInput, ChannelAccountsGetInput, ChannelAccountsGetResponse, ChannelsResolveReferencesResult, CompaniesGetResponse, CompaniesGetInput, ContactPreferencesGetAllResponse, ContactPreferencesGetAllInput, ContactType, ContactsGetAllResponse, ContactsGetAllInput, ContactsGetOneResponse, ContactsGetOneInput, CreateEventAttributes, CreateLeadInput, CreateUnassignedLeadInput, CreateUnassignedLeadPreferencesInput, EstatesGeoJsonInput, EstatesGetAllInput, EstatesGetOneInput, EstatesPublicationInput, EstatesScheduleVisitInput, EstatesScheduleVisitPreferencesInput, EstatesSetPublicationUrlInput, EstatesUnpublishPublicationInput, EstatesUpdateGeoLocationInput, LeadLocationPreferenceInput, NegotiatorsGetByCompanyIdResponse, NegotiatorsGetByCompanyIdInput, OfficesGetInput, OpenHopeEventData, PaginationMeta, PropertiesOutput, ReferenceDetails, UnitsOutput, UserType, VisitEventData, } from './types';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAIA,oCAEC;AAND,qCAAsC;AAItC,SAAgB,YAAY,CAAC,IAAgB,EAAE,MAAe;IAC5D,OAAO,IAAI,mBAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACtC,CAAC;AAMD,gDAAmD;AAA1C,wGAAA,YAAY,OAAA;AAErB,mEAAkE;AAAzD,kHAAA,eAAe,OAAA;AACxB,mFAAkF;AAAzE,kIAAA,uBAAuB,OAAA;AAChC,6GAA4G;AAAnG,kJAAA,+BAA+B,OAAA;AACxC,mFAAkF;AAAzE,wHAAA,kBAAkB,OAAA;AAS3B,iCAgBiB;AAff,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,8GAAA,qBAAqB,OAAA;AACrB,2GAAA,kBAAkB,OAAA;AAClB,uGAAA,cAAc,OAAA;AACd,uGAAA,cAAc,OAAA;AACd,4FAAA,GAAG,OAAA;AACH,2GAAA,kBAAkB,OAAA;AAClB,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AAGf,iCAAoC;AAA3B,kGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAIA,oCAEC;AAND,qCAAsC;AAItC,SAAgB,YAAY,CAAC,IAAgB,EAAE,MAAe;IAC5D,OAAO,IAAI,mBAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACtC,CAAC;AAYD,gDAAmD;AAA1C,wGAAA,YAAY,OAAA;AAErB,mEAAkE;AAAzD,kHAAA,eAAe,OAAA;AACxB,mFAAkF;AAAzE,kIAAA,uBAAuB,OAAA;AAChC,6GAA4G;AAAnG,kJAAA,+BAA+B,OAAA;AACxC,mFAAkF;AAAzE,wHAAA,kBAAkB,OAAA;AAS3B,iCAiBiB;AAhBf,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,8GAAA,qBAAqB,OAAA;AACrB,2GAAA,kBAAkB,OAAA;AAClB,uGAAA,cAAc,OAAA;AACd,uGAAA,cAAc,OAAA;AACd,4FAAA,GAAG,OAAA;AACH,2GAAA,kBAAkB,OAAA;AAClB,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AAIf,iCAAoC;AAA3B,kGAAA,SAAS,OAAA"}
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  import { Maybe } from './common/types';
3
3
  import { ChannelAccount } from './entities/channelAccount';
4
- import { Contact } from './entities/contact';
4
+ import { Contact, ContactPreferences } from './entities/contact';
5
5
  import { CompanyNegotiator } from './entities/negotiator';
6
6
  import { Company } from './entities/office';
7
7
  import { Property } from './entities/property';
@@ -359,7 +359,7 @@ export type ChannelAccountsGetEstateHashResponse = ApiDataResponse<{
359
359
  export type NegotiatorsGetByCompanyIdResponse = ApiDataResponse<CompanyNegotiator[]>;
360
360
  export type ContactsGetOneResponse = ApiDataResponse<Contact>;
361
361
  export type ContactsGetAllResponse = ApiListResponse<Contact>;
362
- export type ContactPreferencesGetAllResponse = ApiDataResponse<unknown[]>;
362
+ export type ContactPreferencesGetAllResponse = ApiDataResponse<ContactPreferences[]>;
363
363
  export type UnitsOutput = ApiListResponse<Property>;
364
364
  export type PropertyOutput = ApiDataResponse<Property>;
365
365
  export type PropertiesOutput = ApiListResponse<Property>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.42.0-pre.4",
2
+ "version": "0.42.0-pre.5",
3
3
  "license": "UNLICENCED",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "./dist/index.d.ts",