@sweepbright/api-client 0.42.0-pre.5 → 0.42.0-pre.8
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/client.d.ts +2 -2
- package/dist/common/logRequest.d.ts +1 -1
- package/dist/entities/channelAccount.d.ts +1 -1
- package/dist/entities/contact.d.ts +73 -32
- package/dist/entities/contact.js +16 -1
- package/dist/entities/contact.js.map +1 -1
- package/dist/entities/negotiator.d.ts +8 -4
- package/dist/entities/property.d.ts +13 -8
- package/dist/index.d.ts +8 -5
- package/dist/index.js +25 -5
- package/dist/index.js.map +1 -1
- package/dist/oauth-manager/TokensRepository_Redis.d.ts +2 -2
- package/dist/oauth-manager/TokensRepository_Redis.js.map +1 -1
- package/dist/oauth-manager/factories/entities.d.ts +2 -2
- package/dist/oauth-manager/playground/async.js.map +1 -1
- package/dist/oauth-manager/redisClientLike.d.ts +10 -0
- package/dist/oauth-manager/redisClientLike.js +3 -0
- package/dist/oauth-manager/redisClientLike.js.map +1 -0
- package/dist/resources/contacts.js +3 -0
- package/dist/resources/contacts.js.map +1 -1
- package/dist/resources/leads.d.ts +4 -3
- package/dist/resources/leads.js +2 -2
- package/dist/resources/leads.js.map +1 -1
- package/dist/types.d.ts +17 -34
- package/dist/types.js +19 -51
- package/dist/types.js.map +1 -1
- package/package.json +7 -5
package/dist/client.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export declare class ClientImpl implements Client {
|
|
|
17
17
|
isAuthorized(config?: InitConf): boolean;
|
|
18
18
|
getCurrentToken(): Maybe<string>;
|
|
19
19
|
get leads(): {
|
|
20
|
-
createLead: (attributes: import("./types").CreateLeadInput) => Promise<import("
|
|
21
|
-
createUnassignedLead: (companyId: string, attributes: import("./types").CreateUnassignedLeadInput) => Promise<import("
|
|
20
|
+
createLead: (attributes: import("./types").CreateLeadInput) => Promise<import("./types").ApiDataResponse<import(".").Contact>>;
|
|
21
|
+
createUnassignedLead: (companyId: string, attributes: import("./types").CreateUnassignedLeadInput) => Promise<import("./types").ApiDataResponse<import(".").Contact>>;
|
|
22
22
|
};
|
|
23
23
|
get negotiators(): {
|
|
24
24
|
getNegotiatorsByIdCompanyId: (attributes: import("./types").NegotiatorsGetByCompanyIdInput) => Promise<import("./types").NegotiatorsGetByCompanyIdResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InternalAxiosRequestConfig } from 'axios';
|
|
2
2
|
export declare const logRequest: (request: InternalAxiosRequestConfig) => {
|
|
3
|
-
method: string | undefined;
|
|
3
|
+
method: ((string & {}) | import("axios").Method) | undefined;
|
|
4
4
|
url: string | undefined;
|
|
5
5
|
params: any;
|
|
6
6
|
data: any;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { Maybe } from '../common/types';
|
|
2
2
|
import { ApiDataResponse } from '../types';
|
|
3
|
-
import {
|
|
3
|
+
import { Negotiator } from './negotiator';
|
|
4
4
|
import { Office } from './office';
|
|
5
5
|
import { Amenity, Condition, PropertyType } from './property';
|
|
6
|
+
export declare enum ContactType {
|
|
7
|
+
Vendor = "vendor",
|
|
8
|
+
Lead = "lead"
|
|
9
|
+
}
|
|
6
10
|
export declare enum GeoType {
|
|
7
11
|
geojson = "geojson",
|
|
8
12
|
postal_codes = "postal_codes"
|
|
@@ -23,52 +27,89 @@ export interface LocationPreferenceEntity {
|
|
|
23
27
|
}
|
|
24
28
|
export interface ContactPreferences {
|
|
25
29
|
id: string;
|
|
26
|
-
wishes?: string[]
|
|
27
|
-
types?: string[]
|
|
28
|
-
min_rooms?: number
|
|
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[]
|
|
38
|
-
condition?: Condition
|
|
39
|
-
created_at?: string
|
|
40
|
-
is_matchable?: boolean
|
|
41
|
-
type?: PropertyType
|
|
42
|
-
updated_at?: string
|
|
43
|
-
location_preferences?: LocationPreferenceEntity[]
|
|
30
|
+
wishes?: Maybe<string[]>;
|
|
31
|
+
types?: Maybe<string[]>;
|
|
32
|
+
min_rooms?: Maybe<number>;
|
|
33
|
+
locale?: Maybe<string>;
|
|
34
|
+
message?: Maybe<string>;
|
|
35
|
+
is_investor?: Maybe<boolean>;
|
|
36
|
+
negotiation?: Maybe<string>;
|
|
37
|
+
location_text?: Maybe<string>;
|
|
38
|
+
wishes_text?: Maybe<string>;
|
|
39
|
+
max_price?: Maybe<number>;
|
|
40
|
+
min_price?: Maybe<number>;
|
|
41
|
+
amenities?: Maybe<Amenity[]>;
|
|
42
|
+
condition?: Maybe<Condition[]>;
|
|
43
|
+
created_at?: Maybe<string>;
|
|
44
|
+
is_matchable?: Maybe<boolean>;
|
|
45
|
+
type?: Maybe<PropertyType>;
|
|
46
|
+
updated_at?: Maybe<string>;
|
|
47
|
+
location_preferences?: Maybe<LocationPreferenceEntity[]>;
|
|
48
|
+
}
|
|
49
|
+
export interface Address {
|
|
50
|
+
addition?: string;
|
|
51
|
+
box?: string;
|
|
52
|
+
city?: string;
|
|
53
|
+
country?: string;
|
|
54
|
+
floor?: string;
|
|
55
|
+
number?: string;
|
|
56
|
+
postal_code?: string;
|
|
57
|
+
province_or_state?: string;
|
|
58
|
+
street?: string;
|
|
59
|
+
street_2?: string;
|
|
60
|
+
borough_or_district?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare enum InteractionTypes {
|
|
63
|
+
LeadEmailSent = "lead_email_sent",
|
|
64
|
+
LeadVisitScheduled = "lead_visit_scheduled",
|
|
65
|
+
UserSmsLead = "user_sms_lead",
|
|
66
|
+
LeadExpressedInterest = "lead_expressed_interest",
|
|
67
|
+
UserCalledLead = "user_called_lead",
|
|
68
|
+
LeadVisited = "lead_visited",
|
|
69
|
+
ContactEmailed = "contact_emailed"
|
|
70
|
+
}
|
|
71
|
+
export interface Interaction {
|
|
72
|
+
id: string;
|
|
73
|
+
interaction_type: InteractionTypes;
|
|
74
|
+
source_type: string | null;
|
|
75
|
+
comment: string | null;
|
|
76
|
+
feedback_type: string | null;
|
|
77
|
+
feedback_external_comment: string | null;
|
|
78
|
+
feedback_internal_comment: string | null;
|
|
79
|
+
human_status: string;
|
|
80
|
+
metadata: string | null;
|
|
81
|
+
created_at: string;
|
|
82
|
+
updated_at: string;
|
|
83
|
+
external_source: string | null;
|
|
44
84
|
}
|
|
45
85
|
export interface Contact {
|
|
46
86
|
id: string;
|
|
47
|
-
type:
|
|
87
|
+
type: ContactType;
|
|
48
88
|
office_id: string;
|
|
49
89
|
company_id: string;
|
|
50
90
|
first_name: string;
|
|
51
91
|
last_name: string;
|
|
52
|
-
pronouns
|
|
53
|
-
email
|
|
54
|
-
phone
|
|
55
|
-
company
|
|
56
|
-
note
|
|
57
|
-
address
|
|
58
|
-
locale
|
|
92
|
+
pronouns?: Maybe<string>;
|
|
93
|
+
email?: Maybe<string>;
|
|
94
|
+
phone?: Maybe<string>;
|
|
95
|
+
company?: Maybe<string>;
|
|
96
|
+
note?: Maybe<string>;
|
|
97
|
+
address?: Maybe<Address>;
|
|
98
|
+
locale?: Maybe<string>;
|
|
59
99
|
is_archived: boolean;
|
|
60
100
|
created_at: string;
|
|
61
101
|
updated_at: string;
|
|
62
102
|
subscribed: boolean;
|
|
63
|
-
labels
|
|
64
|
-
latest_action?: string
|
|
103
|
+
labels?: Maybe<string[]>;
|
|
104
|
+
latest_action?: Maybe<string>;
|
|
65
105
|
was_emailed?: boolean;
|
|
66
106
|
was_called?: boolean;
|
|
67
107
|
was_messaged?: boolean;
|
|
68
108
|
is_matchable?: boolean;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
109
|
+
preferences?: Maybe<ContactPreferences[]>;
|
|
110
|
+
last_report_sent_at?: Maybe<string>;
|
|
111
|
+
negotiators?: Maybe<ApiDataResponse<Negotiator[]>>;
|
|
112
|
+
latest_interaction?: Maybe<ApiDataResponse<Interaction>>;
|
|
72
113
|
office?: Maybe<ApiDataResponse<Office>>;
|
|
73
114
|
latest_activity?: Maybe<ApiDataResponse<Record<string, unknown>>>;
|
|
74
115
|
}
|
package/dist/entities/contact.js
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GeoType = void 0;
|
|
3
|
+
exports.InteractionTypes = exports.GeoType = exports.ContactType = void 0;
|
|
4
|
+
var ContactType;
|
|
5
|
+
(function (ContactType) {
|
|
6
|
+
ContactType["Vendor"] = "vendor";
|
|
7
|
+
ContactType["Lead"] = "lead";
|
|
8
|
+
})(ContactType || (exports.ContactType = ContactType = {}));
|
|
4
9
|
var GeoType;
|
|
5
10
|
(function (GeoType) {
|
|
6
11
|
GeoType["geojson"] = "geojson";
|
|
7
12
|
GeoType["postal_codes"] = "postal_codes";
|
|
8
13
|
})(GeoType || (exports.GeoType = GeoType = {}));
|
|
14
|
+
var InteractionTypes;
|
|
15
|
+
(function (InteractionTypes) {
|
|
16
|
+
InteractionTypes["LeadEmailSent"] = "lead_email_sent";
|
|
17
|
+
InteractionTypes["LeadVisitScheduled"] = "lead_visit_scheduled";
|
|
18
|
+
InteractionTypes["UserSmsLead"] = "user_sms_lead";
|
|
19
|
+
InteractionTypes["LeadExpressedInterest"] = "lead_expressed_interest";
|
|
20
|
+
InteractionTypes["UserCalledLead"] = "user_called_lead";
|
|
21
|
+
InteractionTypes["LeadVisited"] = "lead_visited";
|
|
22
|
+
InteractionTypes["ContactEmailed"] = "contact_emailed";
|
|
23
|
+
})(InteractionTypes || (exports.InteractionTypes = InteractionTypes = {}));
|
|
9
24
|
//# sourceMappingURL=contact.js.map
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
1
|
+
{"version":3,"file":"contact.js","sourceRoot":"","sources":["../../src/entities/contact.ts"],"names":[],"mappings":";;;AAMA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,4BAAa,CAAA;AACf,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,8BAAmB,CAAA;IACnB,wCAA6B,CAAA;AAC/B,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB;AAsDD,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,qDAAiC,CAAA;IACjC,+DAA2C,CAAA;IAC3C,iDAA6B,CAAA;IAC7B,qEAAiD,CAAA;IACjD,uDAAmC,CAAA;IACnC,gDAA4B,CAAA;IAC5B,sDAAkC,CAAA;AACpC,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Maybe } from '../common/types';
|
|
2
|
+
import { ApiDataResponse } from '../types';
|
|
3
|
+
import { Company, Office } from './office';
|
|
2
4
|
interface PhotoInfo {
|
|
3
5
|
url: string;
|
|
4
6
|
uploaded_at: string;
|
|
5
7
|
photo_file_id: string;
|
|
6
8
|
}
|
|
7
|
-
interface PhotoData {
|
|
8
|
-
data?: Maybe<PhotoInfo>;
|
|
9
|
-
}
|
|
10
9
|
export interface Negotiator {
|
|
11
10
|
id: number;
|
|
12
11
|
first_name?: string;
|
|
@@ -17,9 +16,14 @@ export interface Negotiator {
|
|
|
17
16
|
role_id?: string;
|
|
18
17
|
created_at: string;
|
|
19
18
|
updated_at: string;
|
|
19
|
+
archived_at?: Maybe<string>;
|
|
20
20
|
locale?: string;
|
|
21
21
|
office_id: string;
|
|
22
|
-
|
|
22
|
+
office?: Maybe<ApiDataResponse<Office>>;
|
|
23
|
+
photo?: Maybe<ApiDataResponse<PhotoInfo>>;
|
|
24
|
+
company?: Maybe<ApiDataResponse<Company>>;
|
|
25
|
+
integrations?: Maybe<ApiDataResponse<Record<string, unknown>[]>>;
|
|
26
|
+
invitation?: Maybe<ApiDataResponse<Record<string, unknown>>>;
|
|
23
27
|
}
|
|
24
28
|
export interface NegotiatorData {
|
|
25
29
|
data?: Maybe<Negotiator>;
|
|
@@ -511,12 +511,12 @@ export interface SourceData {
|
|
|
511
511
|
group: Maybe<string>;
|
|
512
512
|
software: Maybe<string>;
|
|
513
513
|
}
|
|
514
|
-
interface LegalEntity {
|
|
514
|
+
export interface LegalEntity {
|
|
515
515
|
id: string;
|
|
516
516
|
name?: string;
|
|
517
517
|
office_id?: string;
|
|
518
518
|
}
|
|
519
|
-
interface LegalEntityData {
|
|
519
|
+
export interface LegalEntityData {
|
|
520
520
|
data?: Maybe<LegalEntity>;
|
|
521
521
|
}
|
|
522
522
|
export interface Property {
|
|
@@ -532,23 +532,29 @@ export interface Property {
|
|
|
532
532
|
created_at?: Maybe<string>;
|
|
533
533
|
updated_at?: Maybe<string>;
|
|
534
534
|
internal_type?: InternalType;
|
|
535
|
-
visibility?: PropertyVisibility
|
|
535
|
+
visibility?: Maybe<PropertyVisibility>;
|
|
536
536
|
buyer_ids?: string[];
|
|
537
537
|
owner_ids?: string[];
|
|
538
|
-
legal_entity_id
|
|
538
|
+
legal_entity_id?: Maybe<string>;
|
|
539
539
|
is_archived?: boolean;
|
|
540
540
|
source?: SourceData;
|
|
541
|
+
/** This needs to be provided as includes */
|
|
541
542
|
negotiator?: Maybe<NegotiatorData>;
|
|
543
|
+
/** This needs to be provided as includes */
|
|
542
544
|
buyers?: Maybe<ApiDataResponse<Record<string, unknown>>>;
|
|
545
|
+
/** This needs to be provided as includes */
|
|
543
546
|
vendors?: Maybe<ApiDataResponse<Record<string, unknown>>>;
|
|
547
|
+
/** This needs to be provided as includes */
|
|
544
548
|
legal_entity?: Maybe<LegalEntityData>;
|
|
549
|
+
/** This needs to be provided as includes */
|
|
545
550
|
last_interaction?: Maybe<ApiDataResponse<Record<string, unknown>>>;
|
|
551
|
+
/** This needs to be provided as includes */
|
|
546
552
|
office?: Maybe<OfficeData>;
|
|
553
|
+
/** This needs to be provided as includes */
|
|
547
554
|
latest_activity?: Maybe<ApiDataResponse<Record<string, unknown>>>;
|
|
555
|
+
/** This needs to be provided as includes */
|
|
556
|
+
project?: Maybe<ApiDataResponse<Record<string, unknown>>>;
|
|
548
557
|
}
|
|
549
|
-
export type WithNegotiators<T> = T & {
|
|
550
|
-
negotiators?: Maybe<NegotiatorData[]>;
|
|
551
|
-
};
|
|
552
558
|
export type Resource = FloorPlan | PropertyDocument | Image;
|
|
553
559
|
export type FileUploadStream = fs.ReadStream;
|
|
554
560
|
export interface LanguageWithDefaultValue {
|
|
@@ -568,4 +574,3 @@ export interface UserDefaults {
|
|
|
568
574
|
defaultLanguage: string[];
|
|
569
575
|
country: string;
|
|
570
576
|
}
|
|
571
|
-
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
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
|
+
export type { Negotiator, NegotiatorData, CompanyNegotiator, } from './entities/negotiator';
|
|
4
5
|
export type { ChannelAccount } from './entities/channelAccount';
|
|
5
|
-
export type { Contact, ContactPreferences, LocationPreferenceEntity, DataCoords, GeoType, } from './entities/contact';
|
|
6
|
+
export type { Contact, ContactPreferences, LocationPreferenceEntity, DataCoords, GeoType, Interaction, Address, } from './entities/contact';
|
|
7
|
+
export { ContactType, InteractionTypes } from './entities/contact';
|
|
6
8
|
export type { Company } from './entities/office';
|
|
7
|
-
export type { Property } from './entities/property';
|
|
8
|
-
export { InternalType } from './entities/property';
|
|
9
|
+
export type { Property, LocationAttributes, UserDefaults, LocalizedStringMap, RoomData, LanguageWithDefaultValue, FileUploadStream, Resource, LegalEntityData, LegalEntity, SourceData, PropertyAttributes, TenantContract, PropertyPermissions, Image, FloorPlan, PropertyDocument, PropertyAccessibility, PropertyOrientation, PropertyDescription, PropertyConditions, PropertyStructure, Area, PropertyRoomAttributes, OccupancyAttributes, PropertySettings, AgencyCommissions, AgencyCommission, MandateSettings, OfficeSettings, GeoData, Regulations, PropertyAndLand, Energy, LegalAttributes, Price, PropertyPrice, RenovationAttributes, ConstructionAttributes, BuildingAttributes, EnergyFeatures, ComfortFeatures, EcologyFeatures, SecurityFeatures, HeatingCoolingFeatures, FeaturesAttributes, } from './entities/property';
|
|
10
|
+
export { InternalType, SourceId, PropertyVisibility, ADScale, Amenity, UnitOfMeasurement, MeasurementSystem, AreaType, PropertyStatus, PropertySubType, PropertyType, Negotiation, Condition, Orientation, EnergyCategory, EnergyCategoryExtended, EnergyReport, FloodRisk, Shape, LandUseDesignation, } from './entities/property';
|
|
9
11
|
export { SessionDataImpl } from './oauth-manager/SessionDataImpl';
|
|
10
12
|
export { SweepbrightOAuthManager } from './oauth-manager/SweepbrightOAuthManager';
|
|
11
13
|
export { createCustomEndpointAuthManager } from './oauth-manager/factories/createCustomEndpointAuthManager';
|
|
12
14
|
export { createOAuthManager } from './oauth-manager/factories/createOAuthManager';
|
|
13
15
|
export type { CreateOAuthManagerOptions } from './oauth-manager/factories/entities';
|
|
14
16
|
export type { Logger, OAuthManager, SessionData, } from './oauth-manager/interfaces';
|
|
15
|
-
export {
|
|
17
|
+
export { ChannelAccountInclude, ChannelInfoInclude, CompanyInclude, ContactInclude, Env, OfficeInclude, ProjectInclude, PropertyInclude, ReportInclude, UserInclude, VendorInclude, IncludeFor, } from './types';
|
|
16
18
|
export { EventType } from './types';
|
|
17
|
-
export type { Client, ClientConf, AuctionEventData, ApiDataResponse, ApiListMeta, ApiListResponse, ChannelAccountsGetAllInput, ChannelAccountsGetAllResponse, ChannelAccountsGetEstateHashResponse, ChannelAccountsGetEstateHashInput, ChannelAccountsGetInput, ChannelAccountsGetResponse, ChannelsResolveReferencesResult, CompaniesGetResponse, CompaniesGetInput, ContactPreferencesGetAllResponse, ContactPreferencesGetAllInput,
|
|
19
|
+
export type { Client, ClientConf, AuctionEventData, ApiDataResponse, ApiListMeta, ApiListResponse, ChannelAccountsGetAllInput, ChannelAccountsGetAllResponse, ChannelAccountsGetEstateHashResponse, ChannelAccountsGetEstateHashInput, ChannelAccountsGetInput, ChannelAccountsGetResponse, ChannelsResolveReferencesResult, CompaniesGetResponse, CompaniesGetInput, ContactPreferencesGetAllResponse, ContactPreferencesGetAllInput, VisitContactType, 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';
|
|
20
|
+
export { AxiosError } from 'axios';
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventType = exports.VendorInclude = exports.UserInclude = exports.ReportInclude = exports.PropertyInclude = exports.ProjectInclude = exports.OfficeInclude = exports.
|
|
3
|
+
exports.AxiosError = exports.EventType = exports.VendorInclude = exports.UserInclude = exports.ReportInclude = exports.PropertyInclude = exports.ProjectInclude = exports.OfficeInclude = exports.Env = exports.ContactInclude = exports.CompanyInclude = exports.ChannelInfoInclude = exports.ChannelAccountInclude = exports.createOAuthManager = exports.createCustomEndpointAuthManager = exports.SweepbrightOAuthManager = exports.SessionDataImpl = exports.LandUseDesignation = exports.Shape = exports.FloodRisk = exports.EnergyReport = exports.EnergyCategoryExtended = exports.EnergyCategory = exports.Orientation = exports.Condition = exports.Negotiation = exports.PropertyType = exports.PropertySubType = exports.PropertyStatus = exports.AreaType = exports.MeasurementSystem = exports.UnitOfMeasurement = exports.Amenity = exports.ADScale = exports.PropertyVisibility = exports.SourceId = exports.InternalType = exports.InteractionTypes = exports.ContactType = void 0;
|
|
4
4
|
exports.createClient = createClient;
|
|
5
5
|
const client_1 = require("./client");
|
|
6
6
|
function createClient(conf, logger) {
|
|
7
7
|
return new client_1.ClientImpl(conf, logger);
|
|
8
8
|
}
|
|
9
|
+
var contact_1 = require("./entities/contact");
|
|
10
|
+
Object.defineProperty(exports, "ContactType", { enumerable: true, get: function () { return contact_1.ContactType; } });
|
|
11
|
+
Object.defineProperty(exports, "InteractionTypes", { enumerable: true, get: function () { return contact_1.InteractionTypes; } });
|
|
9
12
|
var property_1 = require("./entities/property");
|
|
10
13
|
Object.defineProperty(exports, "InternalType", { enumerable: true, get: function () { return property_1.InternalType; } });
|
|
14
|
+
Object.defineProperty(exports, "SourceId", { enumerable: true, get: function () { return property_1.SourceId; } });
|
|
15
|
+
Object.defineProperty(exports, "PropertyVisibility", { enumerable: true, get: function () { return property_1.PropertyVisibility; } });
|
|
16
|
+
Object.defineProperty(exports, "ADScale", { enumerable: true, get: function () { return property_1.ADScale; } });
|
|
17
|
+
Object.defineProperty(exports, "Amenity", { enumerable: true, get: function () { return property_1.Amenity; } });
|
|
18
|
+
Object.defineProperty(exports, "UnitOfMeasurement", { enumerable: true, get: function () { return property_1.UnitOfMeasurement; } });
|
|
19
|
+
Object.defineProperty(exports, "MeasurementSystem", { enumerable: true, get: function () { return property_1.MeasurementSystem; } });
|
|
20
|
+
Object.defineProperty(exports, "AreaType", { enumerable: true, get: function () { return property_1.AreaType; } });
|
|
21
|
+
Object.defineProperty(exports, "PropertyStatus", { enumerable: true, get: function () { return property_1.PropertyStatus; } });
|
|
22
|
+
Object.defineProperty(exports, "PropertySubType", { enumerable: true, get: function () { return property_1.PropertySubType; } });
|
|
23
|
+
Object.defineProperty(exports, "PropertyType", { enumerable: true, get: function () { return property_1.PropertyType; } });
|
|
24
|
+
Object.defineProperty(exports, "Negotiation", { enumerable: true, get: function () { return property_1.Negotiation; } });
|
|
25
|
+
Object.defineProperty(exports, "Condition", { enumerable: true, get: function () { return property_1.Condition; } });
|
|
26
|
+
Object.defineProperty(exports, "Orientation", { enumerable: true, get: function () { return property_1.Orientation; } });
|
|
27
|
+
Object.defineProperty(exports, "EnergyCategory", { enumerable: true, get: function () { return property_1.EnergyCategory; } });
|
|
28
|
+
Object.defineProperty(exports, "EnergyCategoryExtended", { enumerable: true, get: function () { return property_1.EnergyCategoryExtended; } });
|
|
29
|
+
Object.defineProperty(exports, "EnergyReport", { enumerable: true, get: function () { return property_1.EnergyReport; } });
|
|
30
|
+
Object.defineProperty(exports, "FloodRisk", { enumerable: true, get: function () { return property_1.FloodRisk; } });
|
|
31
|
+
Object.defineProperty(exports, "Shape", { enumerable: true, get: function () { return property_1.Shape; } });
|
|
32
|
+
Object.defineProperty(exports, "LandUseDesignation", { enumerable: true, get: function () { return property_1.LandUseDesignation; } });
|
|
11
33
|
var SessionDataImpl_1 = require("./oauth-manager/SessionDataImpl");
|
|
12
34
|
Object.defineProperty(exports, "SessionDataImpl", { enumerable: true, get: function () { return SessionDataImpl_1.SessionDataImpl; } });
|
|
13
35
|
var SweepbrightOAuthManager_1 = require("./oauth-manager/SweepbrightOAuthManager");
|
|
@@ -17,15 +39,11 @@ Object.defineProperty(exports, "createCustomEndpointAuthManager", { enumerable:
|
|
|
17
39
|
var createOAuthManager_1 = require("./oauth-manager/factories/createOAuthManager");
|
|
18
40
|
Object.defineProperty(exports, "createOAuthManager", { enumerable: true, get: function () { return createOAuthManager_1.createOAuthManager; } });
|
|
19
41
|
var types_1 = require("./types");
|
|
20
|
-
Object.defineProperty(exports, "ActivityInclude", { enumerable: true, get: function () { return types_1.ActivityInclude; } });
|
|
21
|
-
Object.defineProperty(exports, "BucketInclude", { enumerable: true, get: function () { return types_1.BucketInclude; } });
|
|
22
42
|
Object.defineProperty(exports, "ChannelAccountInclude", { enumerable: true, get: function () { return types_1.ChannelAccountInclude; } });
|
|
23
43
|
Object.defineProperty(exports, "ChannelInfoInclude", { enumerable: true, get: function () { return types_1.ChannelInfoInclude; } });
|
|
24
44
|
Object.defineProperty(exports, "CompanyInclude", { enumerable: true, get: function () { return types_1.CompanyInclude; } });
|
|
25
45
|
Object.defineProperty(exports, "ContactInclude", { enumerable: true, get: function () { return types_1.ContactInclude; } });
|
|
26
46
|
Object.defineProperty(exports, "Env", { enumerable: true, get: function () { return types_1.Env; } });
|
|
27
|
-
Object.defineProperty(exports, "InteractionInclude", { enumerable: true, get: function () { return types_1.InteractionInclude; } });
|
|
28
|
-
Object.defineProperty(exports, "InterestInclude", { enumerable: true, get: function () { return types_1.InterestInclude; } });
|
|
29
47
|
Object.defineProperty(exports, "OfficeInclude", { enumerable: true, get: function () { return types_1.OfficeInclude; } });
|
|
30
48
|
Object.defineProperty(exports, "ProjectInclude", { enumerable: true, get: function () { return types_1.ProjectInclude; } });
|
|
31
49
|
Object.defineProperty(exports, "PropertyInclude", { enumerable: true, get: function () { return types_1.PropertyInclude; } });
|
|
@@ -34,4 +52,6 @@ Object.defineProperty(exports, "UserInclude", { enumerable: true, get: function
|
|
|
34
52
|
Object.defineProperty(exports, "VendorInclude", { enumerable: true, get: function () { return types_1.VendorInclude; } });
|
|
35
53
|
var types_2 = require("./types");
|
|
36
54
|
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return types_2.EventType; } });
|
|
55
|
+
var axios_1 = require("axios");
|
|
56
|
+
Object.defineProperty(exports, "AxiosError", { enumerable: true, get: function () { return axios_1.AxiosError; } });
|
|
37
57
|
//# sourceMappingURL=index.js.map
|
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;
|
|
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;AAgBD,8CAAmE;AAA1D,sGAAA,WAAW,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AAkDtC,gDAqB6B;AApB3B,wGAAA,YAAY,OAAA;AACZ,oGAAA,QAAQ,OAAA;AACR,8GAAA,kBAAkB,OAAA;AAClB,mGAAA,OAAO,OAAA;AACP,mGAAA,OAAO,OAAA;AACP,6GAAA,iBAAiB,OAAA;AACjB,6GAAA,iBAAiB,OAAA;AACjB,oGAAA,QAAQ,OAAA;AACR,0GAAA,cAAc,OAAA;AACd,2GAAA,eAAe,OAAA;AACf,wGAAA,YAAY,OAAA;AACZ,uGAAA,WAAW,OAAA;AACX,qGAAA,SAAS,OAAA;AACT,uGAAA,WAAW,OAAA;AACX,0GAAA,cAAc,OAAA;AACd,kHAAA,sBAAsB,OAAA;AACtB,wGAAA,YAAY,OAAA;AACZ,qGAAA,SAAS,OAAA;AACT,iGAAA,KAAK,OAAA;AACL,8GAAA,kBAAkB,OAAA;AAGpB,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,iCAaiB;AAZf,8GAAA,qBAAqB,OAAA;AACrB,2GAAA,kBAAkB,OAAA;AAClB,uGAAA,cAAc,OAAA;AACd,uGAAA,cAAc,OAAA;AACd,4FAAA,GAAG,OAAA;AACH,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;AAkDlB,+BAAmC;AAA1B,mGAAA,UAAU,OAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { RedisClientType, RedisClusterType } from 'redis';
|
|
2
1
|
import { CanCheckConnection } from './CanCheckConnection';
|
|
3
2
|
import { LockAcquireOptions, LockId, LockReleaseOptions, Logger, TokensRepository } from './interfaces';
|
|
3
|
+
import type { RedisClientLike } from './redisClientLike';
|
|
4
4
|
export declare class TokensRepository_Redis implements TokensRepository, CanCheckConnection {
|
|
5
5
|
private readonly redis;
|
|
6
6
|
private readonly log;
|
|
7
7
|
private readonly version;
|
|
8
8
|
private readonly expirationMarginMs;
|
|
9
|
-
constructor(redis:
|
|
9
|
+
constructor(redis: RedisClientLike, log: Logger);
|
|
10
10
|
private forceDisconnect;
|
|
11
11
|
private processRedisError;
|
|
12
12
|
private getClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokensRepository_Redis.js","sourceRoot":"","sources":["../../src/oauth-manager/TokensRepository_Redis.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TokensRepository_Redis.js","sourceRoot":"","sources":["../../src/oauth-manager/TokensRepository_Redis.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAW1B,MAAa,sBAAsB;IAOjC,YACmB,KAAsB,EACtB,GAAW;QADX,UAAK,GAAL,KAAK,CAAiB;QACtB,QAAG,GAAH,GAAG,CAAQ;QANb,YAAO,GAAG,IAAI,CAAC;QACf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Env } from '../../types';
|
|
3
2
|
import { Logger } from '../interfaces';
|
|
3
|
+
import type { RedisClientLike } from '../redisClientLike';
|
|
4
4
|
export interface CreateOAuthManagerOptionsBase {
|
|
5
5
|
env: Env;
|
|
6
6
|
apiVersion?: string;
|
|
@@ -10,5 +10,5 @@ export type CreateOAuthManagerOptions = CreateOAuthManagerOptionsBase & ({
|
|
|
10
10
|
storage: 'memory';
|
|
11
11
|
} | {
|
|
12
12
|
storage: 'redis';
|
|
13
|
-
client:
|
|
13
|
+
client: RedisClientLike;
|
|
14
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../src/oauth-manager/playground/async.ts"],"names":[],"mappings":";;AAAA,4CAA4C;AAC5C,mCAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../src/oauth-manager/playground/async.ts"],"names":[],"mappings":";;AAAA,4CAA4C;AAC5C,mCAA4B;AAC5B,iCAAsC;AACtC,6BAAqC;AACrC,uCAAkC;AAClC,kGAA+F;AAE/F,MAAM,MAAM,GAAG,OAAO,CAAC;AAEvB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAEjE,MAAM,cAAc,GAAG,GAAG,EAAE;IAC1B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACjD,MAAM,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAC;IAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,IAAI,CAAC,gBAAgB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IACnC,CAAC;I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YAAY;QACZ,GAAG,EAAE,WAAG,CAAC,GAAG;QACZ,OAAO,EAAE,WAAW;QACpB,YAAY;KACb,EACD,MAAM,CACP,CAAC;IAEF,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACvC,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC;QAClC,MAAM,MAAM,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC3B,SAAS,EAAE,sCAAsC;SAClD,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC7B,CAAC;AAED,IAAI,EAAE;KACH,IAAI,CAAC,GAAG,EAAE;IACT,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;IACX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RedisClientType } from 'redis';
|
|
2
|
+
export interface RedisClientLike {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
on(event: 'error', listener: (err: unknown) => void): unknown;
|
|
5
|
+
connect(): Promise<unknown>;
|
|
6
|
+
disconnect(): Promise<void>;
|
|
7
|
+
get: RedisClientType['get'];
|
|
8
|
+
set: RedisClientType['set'];
|
|
9
|
+
del: RedisClientType['del'];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redisClientLike.js","sourceRoot":"","sources":["../../src/oauth-manager/redisClientLike.ts"],"names":[],"mappings":""}
|
|
@@ -12,6 +12,9 @@ function default_1(ctx) {
|
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
+
/* Get one contact with negotiators included
|
|
16
|
+
* @deprecated Use getOne with includes negotiators instead
|
|
17
|
+
*/
|
|
15
18
|
function getOneWithNegotiators(attributes) {
|
|
16
19
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
17
20
|
return ctx.httpClient.get(`/services/contacts/${attributes.contactId}?includes=negotiators`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/resources/contacts.ts"],"names":[],"mappings":";;AAUA,
|
|
1
|
+
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/resources/contacts.ts"],"names":[],"mappings":";;AAUA,4BAgDC;AA1DD,mEAAgE;AAChE,oCAOkB;AAElB,mBAAyB,GAAc;IACrC,SAAS,MAAM,CACb,UAA+B;QAE/B,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CACvB,sBAAsB,UAAU,CAAC,SAAS,EAAE,EAC5C;YACE,MAAM,EAAE;gBACN,QAAQ,EAAE,IAAA,qCAAiB,EAAC,UAAU,CAAC,QAAQ,CAAC;aACjD;SACF,CACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,SAAS,qBAAqB,CAC5B,UAA+B;QAE/B,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CACvB,sBAAsB,UAAU,CAAC,SAAS,uBAAuB,CAClE,CAAC;IACJ,CAAC;IAED,SAAS,MAAM,CACb,UAA+B;QAE/B,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CACvB,uBAAuB,UAAU,CAAC,SAAS,WAAW,EACtD;YACE,MAAM,EAAE;gBACN,IAAI,EAAE,UAAU,CAAC,IAAI,IAAI,CAAC;gBAC1B,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE;gBAC7B,QAAQ,EAAE,IAAA,qCAAiB,EAAC,UAAU,CAAC,QAAQ,CAAC;aACjD;SACF,CACF,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM;QACN,qBAAqB;QACrB,MAAM;KACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Contact } from '../entities/contact';
|
|
2
|
+
import { ApiDataResponse, ClientCtx, CreateLeadInput, CreateUnassignedLeadInput } from '../types';
|
|
2
3
|
export default function (ctx: ClientCtx): {
|
|
3
|
-
createLead: (attributes: CreateLeadInput) => Promise<
|
|
4
|
-
createUnassignedLead: (companyId: string, attributes: CreateUnassignedLeadInput) => Promise<
|
|
4
|
+
createLead: (attributes: CreateLeadInput) => Promise<ApiDataResponse<Contact>>;
|
|
5
|
+
createUnassignedLead: (companyId: string, attributes: CreateUnassignedLeadInput) => Promise<ApiDataResponse<Contact>>;
|
|
5
6
|
};
|
package/dist/resources/leads.js
CHANGED
|
@@ -6,7 +6,7 @@ function default_1(ctx) {
|
|
|
6
6
|
function createLead(attributes) {
|
|
7
7
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
8
8
|
const { firstName, lastName, propertyId, email, phone, message, portal } = attributes;
|
|
9
|
-
return ctx.httpClient.put(
|
|
9
|
+
return ctx.httpClient.put(`/estates/${propertyId}/leads`, {
|
|
10
10
|
first_name: firstName,
|
|
11
11
|
last_name: lastName,
|
|
12
12
|
message,
|
|
@@ -19,7 +19,7 @@ function default_1(ctx) {
|
|
|
19
19
|
}
|
|
20
20
|
function createUnassignedLead(companyId, attributes) {
|
|
21
21
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
22
|
-
return ctx.httpClient.put(
|
|
22
|
+
return ctx.httpClient.put(`/companies/${companyId}/leads`, attributes);
|
|
23
23
|
}
|
|
24
24
|
return { createLead, createUnassignedLead };
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leads.js","sourceRoot":"","sources":["../../src/resources/leads.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"leads.js","sourceRoot":"","sources":["../../src/resources/leads.ts"],"names":[],"mappings":";;AASA,4BAoCC;AA5CD,oCAMkB;AAElB,mBAAyB,GAAc;IACrC,SAAS,UAAU,CACjB,UAA2B;QAE3B,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QAEnC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,GACtE,UAAU,CAAC;QAEb,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAGvB,YAAY,UAAU,QAAQ,EAAE;YAChC,UAAU,EAAE,SAAS;YACrB,SAAS,EAAE,QAAQ;YACnB,OAAO;YACP,KAAK;YACL,KAAK;YACL,WAAW,EAAE,SAAS;YACtB,eAAe,EAAE,MAAM;YACvB,mBAAmB,EAAE,UAAU,CAAC,mBAAmB;SACpD,CAAC,CAAC;IACL,CAAC;IAED,SAAS,oBAAoB,CAC3B,SAAiB,EACjB,UAAqC;QAErC,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAGvB,cAAc,SAAS,QAAQ,EAAE,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAC9C,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -21,13 +21,6 @@ export declare enum Env {
|
|
|
21
21
|
STAGING = "staging",
|
|
22
22
|
DEV = "dev"
|
|
23
23
|
}
|
|
24
|
-
export declare enum ActivityInclude {
|
|
25
|
-
Details = "details"
|
|
26
|
-
}
|
|
27
|
-
export declare enum BucketInclude {
|
|
28
|
-
Estate = "estate",
|
|
29
|
-
Company = "company"
|
|
30
|
-
}
|
|
31
24
|
export declare enum ChannelAccountInclude {
|
|
32
25
|
Channel = "channel",
|
|
33
26
|
LatestPublication = "latest_publication",
|
|
@@ -46,15 +39,6 @@ export declare enum CompanyInclude {
|
|
|
46
39
|
Photo = "photo",
|
|
47
40
|
Settings = "settings"
|
|
48
41
|
}
|
|
49
|
-
export declare enum InteractionInclude {
|
|
50
|
-
Property = "property",
|
|
51
|
-
User = "user",
|
|
52
|
-
Contact = "contact",
|
|
53
|
-
Feedbacks = "feedbacks"
|
|
54
|
-
}
|
|
55
|
-
export declare enum InterestInclude {
|
|
56
|
-
Estate = "estate"
|
|
57
|
-
}
|
|
58
42
|
export declare enum ContactInclude {
|
|
59
43
|
LatestInteraction = "latest_interaction",
|
|
60
44
|
Office = "office",
|
|
@@ -67,13 +51,7 @@ export declare enum OfficeInclude {
|
|
|
67
51
|
Settings = "settings"
|
|
68
52
|
}
|
|
69
53
|
export declare enum ProjectInclude {
|
|
70
|
-
|
|
71
|
-
Channels = "channels",
|
|
72
|
-
LatestActivity = "latest_activity",
|
|
73
|
-
Negotiator = "negotiator",
|
|
74
|
-
Office = "office",
|
|
75
|
-
Properties = "properties",
|
|
76
|
-
Vendors = "vendors"
|
|
54
|
+
Properties = "properties"
|
|
77
55
|
}
|
|
78
56
|
export declare enum PropertyInclude {
|
|
79
57
|
Project = "project",
|
|
@@ -111,26 +89,25 @@ export declare enum VisitInclude {
|
|
|
111
89
|
Negotiator = "negotiator"
|
|
112
90
|
}
|
|
113
91
|
export declare const IncludesByResource: {
|
|
114
|
-
readonly Property: readonly [PropertyInclude.Project, PropertyInclude.LegalEntity, PropertyInclude.Buyers, PropertyInclude.LastInteraction, PropertyInclude.Negotiator, PropertyInclude.Office, PropertyInclude.Vendors, PropertyInclude.LatestActivity, PropertyInclude.Unit, PropertyInclude.Settings];
|
|
92
|
+
readonly Property: readonly [PropertyInclude.Project, PropertyInclude.LegalEntity, PropertyInclude.Buyers, PropertyInclude.LastInteraction, PropertyInclude.Negotiator, PropertyInclude.Office, PropertyInclude.Vendors, PropertyInclude.LatestActivity, PropertyInclude.Unit, PropertyInclude.Settings, ProjectInclude];
|
|
115
93
|
readonly Contact: readonly [ContactInclude.LatestInteraction, ContactInclude.Office, ContactInclude.LatestActivity, ContactInclude.Negotiators];
|
|
116
94
|
readonly ChannelAccount: readonly [ChannelAccountInclude.Channel, ChannelAccountInclude.LatestPublication, ChannelAccountInclude.EstateChannelAccount, ChannelAccountInclude.EstateChannelValidation, ChannelAccountInclude.PublicApi];
|
|
117
95
|
readonly Company: readonly [CompanyInclude.AvailableCurrencies, CompanyInclude.Enterprise, CompanyInclude.WebsiteLog, CompanyInclude.Plan, CompanyInclude.Photo, CompanyInclude.Settings];
|
|
118
96
|
readonly Office: readonly [OfficeInclude.Company, OfficeInclude.HeadNegotiator, OfficeInclude.Settings];
|
|
119
|
-
readonly Project: readonly [ProjectInclude.LegalEntity, ProjectInclude.Channels, ProjectInclude.LatestActivity, ProjectInclude.Negotiator, ProjectInclude.Office, ProjectInclude.Properties, ProjectInclude.Vendors];
|
|
120
|
-
readonly Unit: readonly [PropertyInclude.Project, PropertyInclude.LegalEntity, PropertyInclude.Buyers, PropertyInclude.LastInteraction, PropertyInclude.Negotiator, PropertyInclude.Office, PropertyInclude.Vendors, PropertyInclude.LatestActivity];
|
|
121
97
|
readonly User: readonly [UserInclude.Photo, UserInclude.Office, UserInclude.Company, UserInclude.Integrations, UserInclude.Invitation];
|
|
122
98
|
};
|
|
123
99
|
export declare const NestedIncludesByResource: {
|
|
124
|
-
readonly
|
|
125
|
-
readonly properties: readonly [PropertyInclude.
|
|
100
|
+
readonly Property: {
|
|
101
|
+
readonly properties: readonly [PropertyInclude.LegalEntity, PropertyInclude.Buyers, PropertyInclude.LastInteraction, PropertyInclude.Negotiator, PropertyInclude.Office, PropertyInclude.Vendors, PropertyInclude.LatestActivity, PropertyInclude.Settings];
|
|
126
102
|
};
|
|
127
103
|
};
|
|
128
104
|
export type IncludeResource = keyof typeof IncludesByResource;
|
|
129
105
|
type NestedIncludesMap = typeof NestedIncludesByResource;
|
|
130
106
|
type ElementOf<T> = T extends readonly (infer U)[] ? U : never;
|
|
131
|
-
type
|
|
132
|
-
[K in keyof
|
|
133
|
-
}[keyof
|
|
107
|
+
type NestedIncludeForResource<M extends Record<string, readonly unknown[]>> = {
|
|
108
|
+
[K in keyof M]: K extends string ? `${K}.${ElementOf<M[K]> & string}` : never;
|
|
109
|
+
}[keyof M];
|
|
110
|
+
type NestedIncludeFor<R extends IncludeResource> = R extends keyof NestedIncludesMap ? NestedIncludeForResource<NestedIncludesMap[R]> : never;
|
|
134
111
|
export type IncludeFor<R extends IncludeResource> = (typeof IncludesByResource)[R][number] | NestedIncludeFor<R>;
|
|
135
112
|
export type ClientConf = {
|
|
136
113
|
clientId?: string;
|
|
@@ -250,7 +227,7 @@ export declare enum EventType {
|
|
|
250
227
|
AUCTION_DELETED = "AUCTION_DELETED"
|
|
251
228
|
}
|
|
252
229
|
export type UserType = 'user';
|
|
253
|
-
export type
|
|
230
|
+
export type VisitContactType = 'contact';
|
|
254
231
|
export interface VisitEventData {
|
|
255
232
|
id: string;
|
|
256
233
|
organizer: {
|
|
@@ -258,7 +235,7 @@ export interface VisitEventData {
|
|
|
258
235
|
id: string;
|
|
259
236
|
};
|
|
260
237
|
attendees: {
|
|
261
|
-
type:
|
|
238
|
+
type: VisitContactType;
|
|
262
239
|
id: string;
|
|
263
240
|
}[];
|
|
264
241
|
start_date: Date;
|
|
@@ -308,6 +285,11 @@ export interface CreateUnassignedLeadPreferencesInput {
|
|
|
308
285
|
min_rooms: number;
|
|
309
286
|
locale: string;
|
|
310
287
|
}
|
|
288
|
+
export declare enum Pronoun {
|
|
289
|
+
Male = "Male",
|
|
290
|
+
Female = "Female",
|
|
291
|
+
Neutral = "Neutral"
|
|
292
|
+
}
|
|
311
293
|
export interface CreateUnassignedLeadInput {
|
|
312
294
|
first_name: string;
|
|
313
295
|
last_name: string;
|
|
@@ -318,6 +300,7 @@ export interface CreateUnassignedLeadInput {
|
|
|
318
300
|
external_source: string;
|
|
319
301
|
preferences?: CreateUnassignedLeadPreferencesInput;
|
|
320
302
|
location_preference?: LeadLocationPreferenceInput;
|
|
303
|
+
pronouns?: Maybe<Pronoun>;
|
|
321
304
|
}
|
|
322
305
|
export interface NegotiatorsGetByCompanyIdInput {
|
|
323
306
|
ids: string;
|
|
@@ -330,7 +313,7 @@ export interface OfficesGetInput {
|
|
|
330
313
|
export interface GetUnitsInput {
|
|
331
314
|
page?: number;
|
|
332
315
|
limit?: number;
|
|
333
|
-
includes?: IncludeFor<'
|
|
316
|
+
includes?: IncludeFor<'Property'>[];
|
|
334
317
|
}
|
|
335
318
|
export interface PaginationMeta {
|
|
336
319
|
total: number;
|
package/dist/types.js
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventType = exports.TokenType = exports.NestedIncludesByResource = exports.IncludesByResource = exports.VisitInclude = exports.VendorInclude = exports.UserInclude = exports.ReportInclude = exports.PropertyInclude = exports.ProjectInclude = exports.OfficeInclude = exports.ContactInclude = exports.
|
|
3
|
+
exports.Pronoun = exports.EventType = exports.TokenType = exports.NestedIncludesByResource = exports.IncludesByResource = exports.VisitInclude = exports.VendorInclude = exports.UserInclude = exports.ReportInclude = exports.PropertyInclude = exports.ProjectInclude = exports.OfficeInclude = exports.ContactInclude = exports.CompanyInclude = exports.ChannelInfoInclude = exports.ChannelAccountInclude = exports.Env = void 0;
|
|
4
4
|
var Env;
|
|
5
5
|
(function (Env) {
|
|
6
6
|
Env["PRODUCTION"] = "production";
|
|
7
7
|
Env["STAGING"] = "staging";
|
|
8
8
|
Env["DEV"] = "dev";
|
|
9
9
|
})(Env || (exports.Env = Env = {}));
|
|
10
|
-
var ActivityInclude;
|
|
11
|
-
(function (ActivityInclude) {
|
|
12
|
-
ActivityInclude["Details"] = "details";
|
|
13
|
-
})(ActivityInclude || (exports.ActivityInclude = ActivityInclude = {}));
|
|
14
|
-
var BucketInclude;
|
|
15
|
-
(function (BucketInclude) {
|
|
16
|
-
BucketInclude["Estate"] = "estate";
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
18
|
-
BucketInclude["Company"] = "company";
|
|
19
|
-
})(BucketInclude || (exports.BucketInclude = BucketInclude = {}));
|
|
20
10
|
var ChannelAccountInclude;
|
|
21
11
|
(function (ChannelAccountInclude) {
|
|
22
12
|
ChannelAccountInclude["Channel"] = "channel";
|
|
@@ -38,19 +28,6 @@ var CompanyInclude;
|
|
|
38
28
|
CompanyInclude["Photo"] = "photo";
|
|
39
29
|
CompanyInclude["Settings"] = "settings";
|
|
40
30
|
})(CompanyInclude || (exports.CompanyInclude = CompanyInclude = {}));
|
|
41
|
-
var InteractionInclude;
|
|
42
|
-
(function (InteractionInclude) {
|
|
43
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
44
|
-
InteractionInclude["Property"] = "property";
|
|
45
|
-
InteractionInclude["User"] = "user";
|
|
46
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
47
|
-
InteractionInclude["Contact"] = "contact";
|
|
48
|
-
InteractionInclude["Feedbacks"] = "feedbacks";
|
|
49
|
-
})(InteractionInclude || (exports.InteractionInclude = InteractionInclude = {}));
|
|
50
|
-
var InterestInclude;
|
|
51
|
-
(function (InterestInclude) {
|
|
52
|
-
InterestInclude["Estate"] = "estate";
|
|
53
|
-
})(InterestInclude || (exports.InterestInclude = InterestInclude = {}));
|
|
54
31
|
var ContactInclude;
|
|
55
32
|
(function (ContactInclude) {
|
|
56
33
|
ContactInclude["LatestInteraction"] = "latest_interaction";
|
|
@@ -67,13 +44,7 @@ var OfficeInclude;
|
|
|
67
44
|
})(OfficeInclude || (exports.OfficeInclude = OfficeInclude = {}));
|
|
68
45
|
var ProjectInclude;
|
|
69
46
|
(function (ProjectInclude) {
|
|
70
|
-
ProjectInclude["LegalEntity"] = "legal_entity";
|
|
71
|
-
ProjectInclude["Channels"] = "channels";
|
|
72
|
-
ProjectInclude["LatestActivity"] = "latest_activity";
|
|
73
|
-
ProjectInclude["Negotiator"] = "negotiator";
|
|
74
|
-
ProjectInclude["Office"] = "office";
|
|
75
47
|
ProjectInclude["Properties"] = "properties";
|
|
76
|
-
ProjectInclude["Vendors"] = "vendors";
|
|
77
48
|
})(ProjectInclude || (exports.ProjectInclude = ProjectInclude = {}));
|
|
78
49
|
var PropertyInclude;
|
|
79
50
|
(function (PropertyInclude) {
|
|
@@ -130,6 +101,7 @@ exports.IncludesByResource = {
|
|
|
130
101
|
PropertyInclude.LatestActivity,
|
|
131
102
|
PropertyInclude.Unit,
|
|
132
103
|
PropertyInclude.Settings,
|
|
104
|
+
ProjectInclude.Properties,
|
|
133
105
|
],
|
|
134
106
|
Contact: [
|
|
135
107
|
ContactInclude.LatestInteraction,
|
|
@@ -157,25 +129,6 @@ exports.IncludesByResource = {
|
|
|
157
129
|
OfficeInclude.HeadNegotiator,
|
|
158
130
|
OfficeInclude.Settings,
|
|
159
131
|
],
|
|
160
|
-
Project: [
|
|
161
|
-
ProjectInclude.LegalEntity,
|
|
162
|
-
ProjectInclude.Channels,
|
|
163
|
-
ProjectInclude.LatestActivity,
|
|
164
|
-
ProjectInclude.Negotiator,
|
|
165
|
-
ProjectInclude.Office,
|
|
166
|
-
ProjectInclude.Properties,
|
|
167
|
-
ProjectInclude.Vendors,
|
|
168
|
-
],
|
|
169
|
-
Unit: [
|
|
170
|
-
PropertyInclude.Project,
|
|
171
|
-
PropertyInclude.LegalEntity,
|
|
172
|
-
PropertyInclude.Buyers,
|
|
173
|
-
PropertyInclude.LastInteraction,
|
|
174
|
-
PropertyInclude.Negotiator,
|
|
175
|
-
PropertyInclude.Office,
|
|
176
|
-
PropertyInclude.Vendors,
|
|
177
|
-
PropertyInclude.LatestActivity,
|
|
178
|
-
],
|
|
179
132
|
User: [
|
|
180
133
|
UserInclude.Photo,
|
|
181
134
|
UserInclude.Office,
|
|
@@ -185,8 +138,17 @@ exports.IncludesByResource = {
|
|
|
185
138
|
],
|
|
186
139
|
};
|
|
187
140
|
exports.NestedIncludesByResource = {
|
|
188
|
-
|
|
189
|
-
[ProjectInclude.Properties]:
|
|
141
|
+
Property: {
|
|
142
|
+
[ProjectInclude.Properties]: [
|
|
143
|
+
PropertyInclude.LegalEntity,
|
|
144
|
+
PropertyInclude.Buyers,
|
|
145
|
+
PropertyInclude.LastInteraction,
|
|
146
|
+
PropertyInclude.Negotiator,
|
|
147
|
+
PropertyInclude.Office,
|
|
148
|
+
PropertyInclude.Vendors,
|
|
149
|
+
PropertyInclude.LatestActivity,
|
|
150
|
+
PropertyInclude.Settings,
|
|
151
|
+
],
|
|
190
152
|
},
|
|
191
153
|
};
|
|
192
154
|
var TokenType;
|
|
@@ -206,4 +168,10 @@ var EventType;
|
|
|
206
168
|
EventType["AUCTION_UPDATED"] = "AUCTION_UPDATED";
|
|
207
169
|
EventType["AUCTION_DELETED"] = "AUCTION_DELETED";
|
|
208
170
|
})(EventType || (exports.EventType = EventType = {}));
|
|
171
|
+
var Pronoun;
|
|
172
|
+
(function (Pronoun) {
|
|
173
|
+
Pronoun["Male"] = "Male";
|
|
174
|
+
Pronoun["Female"] = "Female";
|
|
175
|
+
Pronoun["Neutral"] = "Neutral";
|
|
176
|
+
})(Pronoun || (exports.Pronoun = Pronoun = {}));
|
|
209
177
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAmBA,IAAY,GAIX;AAJD,WAAY,GAAG;IACb,gCAAyB,CAAA;IACzB,0BAAmB,CAAA;IACnB,kBAAW,CAAA;AACb,CAAC,EAJW,GAAG,mBAAH,GAAG,QA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AuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,gDAAmC,CAAA;IACnC,gDAAmC,CAAA;AACrC,CAAC,EAVW,SAAS,yBAAT,SAAS,QAUpB;AAqED,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,wBAAa,CAAA;IACb,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;AACrB,CAAC,EAJW,OAAO,uBAAP,OAAO,QAIlB"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.42.0-pre.
|
|
2
|
+
"version": "0.42.0-pre.8",
|
|
3
3
|
"license": "UNLICENCED",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "./dist/index.d.ts",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"dev:two": "tsx ./src/oauth-manager/playground/two.ts",
|
|
18
18
|
"dev:async": "tsx ./src/oauth-manager/playground/async.ts"
|
|
19
19
|
},
|
|
20
|
-
"peerDependencies": {},
|
|
21
20
|
"prettier": {
|
|
22
21
|
"printWidth": 80,
|
|
23
22
|
"semi": true,
|
|
@@ -37,6 +36,7 @@
|
|
|
37
36
|
"husky": "^9.1.7",
|
|
38
37
|
"jest": "^30.2.0",
|
|
39
38
|
"msw": "^2.12.7",
|
|
39
|
+
"redis": "4.7.0",
|
|
40
40
|
"redis-mock": "^0.56.3",
|
|
41
41
|
"ts-jest": "^29.4.6",
|
|
42
42
|
"tslib": "^2.8.1",
|
|
@@ -45,12 +45,14 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"async-mutex": "^0.5.0",
|
|
48
|
-
"axios": "1.13.
|
|
49
|
-
"lodash": "^4.17.
|
|
50
|
-
"redis": "^4.7.0",
|
|
48
|
+
"axios": "1.13.4",
|
|
49
|
+
"lodash": "^4.17.23",
|
|
51
50
|
"tiny-invariant": "1.3.3",
|
|
52
51
|
"ts-custom-error": "^3.3.1",
|
|
53
52
|
"uuid": "11.0.5",
|
|
54
53
|
"zod": "3.24.1"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"redis": "4.7.0"
|
|
55
57
|
}
|
|
56
58
|
}
|