@sweepbright/api-client 0.30.6 → 0.30.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/common/currencies.d.ts +50 -0
- package/dist/common/currencies.js.map +1 -0
- package/dist/common/types.d.ts +1 -0
- package/dist/{src/common → common}/types.js.map +1 -1
- package/dist/entities/office.d.ts +183 -0
- package/dist/entities/office.js.map +1 -0
- package/dist/entities/property.d.ts +518 -0
- package/dist/entities/property.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/channel_accounts.d.ts +15 -0
- package/dist/resources/channel_accounts.js.map +1 -0
- package/dist/resources/channels.d.ts +16 -0
- package/dist/resources/channels.js.map +1 -0
- package/dist/resources/companies.d.ts +7 -0
- package/dist/resources/companies.js.map +1 -0
- package/dist/resources/contact_preferences.d.ts +6 -0
- package/dist/resources/contact_preferences.js.map +1 -0
- package/dist/resources/contacts.d.ts +14 -0
- package/dist/resources/contacts.js.map +1 -0
- package/dist/resources/estates.d.ts +43 -0
- package/dist/resources/estates.js.map +1 -0
- package/dist/resources/leads.d.ts +39 -0
- package/dist/resources/leads.js.map +1 -0
- package/dist/resources/negotiators.d.ts +9 -0
- package/dist/resources/negotiators.js.map +1 -0
- package/dist/resources/offices.d.ts +7 -0
- package/dist/resources/offices.js.map +1 -0
- package/dist/types.d.ts +75 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js.map +1 -0
- package/package.json +3 -3
- package/dist/mockServer.js +0 -27
- package/dist/mockServer.js.map +0 -1
- package/dist/src/__tests__/auth.test.js +0 -15
- package/dist/src/__tests__/auth.test.js.map +0 -1
- package/dist/src/__tests__/channels.test.js +0 -77
- package/dist/src/__tests__/channels.test.js.map +0 -1
- package/dist/src/__tests__/contacts.test.js +0 -61
- package/dist/src/__tests__/contacts.test.js.map +0 -1
- package/dist/src/__tests__/estates.test.js +0 -43
- package/dist/src/__tests__/estates.test.js.map +0 -1
- package/dist/src/__tests__/leads.test.js +0 -55
- package/dist/src/__tests__/leads.test.js.map +0 -1
- package/dist/src/common/currencies.js.map +0 -1
- package/dist/src/entities/office.js.map +0 -1
- package/dist/src/entities/property.js.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/resources/channel_accounts.js.map +0 -1
- package/dist/src/resources/channels.js.map +0 -1
- package/dist/src/resources/companies.js.map +0 -1
- package/dist/src/resources/contact_preferences.js.map +0 -1
- package/dist/src/resources/contacts.js.map +0 -1
- package/dist/src/resources/estates.js.map +0 -1
- package/dist/src/resources/leads.js.map +0 -1
- package/dist/src/resources/negotiators.js.map +0 -1
- package/dist/src/resources/offices.js.map +0 -1
- package/dist/src/types.js.map +0 -1
- package/dist/src/utils.js.map +0 -1
- /package/dist/{src/common → common}/currencies.js +0 -0
- /package/dist/{src/common → common}/types.js +0 -0
- /package/dist/{src/entities → entities}/office.js +0 -0
- /package/dist/{src/entities → entities}/property.js +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/resources → resources}/channel_accounts.js +0 -0
- /package/dist/{src/resources → resources}/channels.js +0 -0
- /package/dist/{src/resources → resources}/companies.js +0 -0
- /package/dist/{src/resources → resources}/contact_preferences.js +0 -0
- /package/dist/{src/resources → resources}/contacts.js +0 -0
- /package/dist/{src/resources → resources}/estates.js +0 -0
- /package/dist/{src/resources → resources}/leads.js +0 -0
- /package/dist/{src/resources → resources}/negotiators.js +0 -0
- /package/dist/{src/resources → resources}/offices.js +0 -0
- /package/dist/{src/types.js → types.js} +0 -0
- /package/dist/{src/utils.js → utils.js} +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare enum Currency {
|
|
2
|
+
EUR = "EUR",
|
|
3
|
+
AUD = "AUD",
|
|
4
|
+
USD = "USD",
|
|
5
|
+
AFN = "AFN",
|
|
6
|
+
GBP = "GBP",
|
|
7
|
+
XPF = "XPF",
|
|
8
|
+
MXN = "MXN",
|
|
9
|
+
PHP = "PHP",
|
|
10
|
+
CAD = "CAD",
|
|
11
|
+
RON = "RON",
|
|
12
|
+
BRL = "BRL",
|
|
13
|
+
UYU = "UYU",
|
|
14
|
+
HRK = "HRK",
|
|
15
|
+
GEL = "GEL",
|
|
16
|
+
RSD = "RSD",
|
|
17
|
+
ILS = "ILS",
|
|
18
|
+
ARS = "ARS",
|
|
19
|
+
NZD = "NZD",
|
|
20
|
+
ZAR = "ZAR",
|
|
21
|
+
INR = "INR",
|
|
22
|
+
DZD = "DZD",
|
|
23
|
+
LKR = "LKR",
|
|
24
|
+
CLP = "CLP",
|
|
25
|
+
ALL = "ALL",
|
|
26
|
+
RUB = "RUB",
|
|
27
|
+
TRY = "TRY",
|
|
28
|
+
UAH = "UAH",
|
|
29
|
+
MUR = "MUR",
|
|
30
|
+
COP = "COP",
|
|
31
|
+
AED = "AED",
|
|
32
|
+
MZN = "MZN",
|
|
33
|
+
EGP = "EGP",
|
|
34
|
+
AOA = "AOA",
|
|
35
|
+
XOF = "XOF",
|
|
36
|
+
CNY = "CNY",
|
|
37
|
+
XCD = "XCD",
|
|
38
|
+
VND = "VND",
|
|
39
|
+
JPY = "JPY",
|
|
40
|
+
MAD = "MAD",
|
|
41
|
+
CHF = "CHF",
|
|
42
|
+
IRR = "IRR",
|
|
43
|
+
KHR = "KHR",
|
|
44
|
+
XAF = "XAF",
|
|
45
|
+
AMD = "AMD",
|
|
46
|
+
ETB = "ETB",
|
|
47
|
+
SGD = "SGD",
|
|
48
|
+
NGN = "NGN",
|
|
49
|
+
PKP = "PKP"
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currencies.js","sourceRoot":"","sources":["../../src/common/currencies.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAiDX;AAjDD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;AACb,CAAC,EAjDW,QAAQ,wBAAR,QAAQ,QAiDnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Maybe<T> = T | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/common/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Currency } from '../common/currencies';
|
|
2
|
+
import { Maybe } from '../common/types';
|
|
3
|
+
export declare enum MeasurementSystem {
|
|
4
|
+
metric = "metric",
|
|
5
|
+
imperial = "imperial"
|
|
6
|
+
}
|
|
7
|
+
export interface OfficeSettings {
|
|
8
|
+
measurement_system: MeasurementSystem;
|
|
9
|
+
numeral_system: string;
|
|
10
|
+
currency: Currency;
|
|
11
|
+
country: string;
|
|
12
|
+
visit_duration: 30;
|
|
13
|
+
}
|
|
14
|
+
export interface OfficeSettingData {
|
|
15
|
+
data: OfficeSettings;
|
|
16
|
+
}
|
|
17
|
+
export interface Plan {
|
|
18
|
+
id: string;
|
|
19
|
+
max_users: number;
|
|
20
|
+
price: object;
|
|
21
|
+
interval: string;
|
|
22
|
+
}
|
|
23
|
+
export interface PlanData {
|
|
24
|
+
data: Plan;
|
|
25
|
+
}
|
|
26
|
+
interface Settings {
|
|
27
|
+
about_en: string;
|
|
28
|
+
'about_en-GB': string;
|
|
29
|
+
about_fr: string;
|
|
30
|
+
'about_fr-BE': string;
|
|
31
|
+
about_nl: string;
|
|
32
|
+
agency_website_hostname: string;
|
|
33
|
+
contact_additional: string;
|
|
34
|
+
contact_borough_or_district: string;
|
|
35
|
+
contact_box: string;
|
|
36
|
+
contact_city: string;
|
|
37
|
+
contact_country: string;
|
|
38
|
+
contact_county: string;
|
|
39
|
+
contact_email: string;
|
|
40
|
+
contact_number: string;
|
|
41
|
+
contact_phone: string;
|
|
42
|
+
contact_street: string;
|
|
43
|
+
contact_street_2: string;
|
|
44
|
+
contact_zip: string;
|
|
45
|
+
default_country: string;
|
|
46
|
+
default_email: string;
|
|
47
|
+
default_legal_company_name: string;
|
|
48
|
+
default_legal_VAT_number: string;
|
|
49
|
+
default_locale: string;
|
|
50
|
+
description_en: string;
|
|
51
|
+
'description_en-GB': string;
|
|
52
|
+
description_facebook: string;
|
|
53
|
+
description_fr: string;
|
|
54
|
+
'description_fr-BE': string;
|
|
55
|
+
description_instagram: string;
|
|
56
|
+
description_nl: string;
|
|
57
|
+
description_twitter: string;
|
|
58
|
+
disabled_reason: string;
|
|
59
|
+
domain_agency_id: string;
|
|
60
|
+
email: string;
|
|
61
|
+
enable_amepi: string;
|
|
62
|
+
'enable_belles-demeures': string;
|
|
63
|
+
enable_bienici: string;
|
|
64
|
+
'enable_bureau-locaux': string;
|
|
65
|
+
'enable_cession-pme': string;
|
|
66
|
+
enable_facebook: string;
|
|
67
|
+
enable_green_acres: string;
|
|
68
|
+
'enable_hotellerie-restauration': string;
|
|
69
|
+
enable_immovlan: string;
|
|
70
|
+
enable_immoweb: string;
|
|
71
|
+
'enable_immoweb-v2': string;
|
|
72
|
+
'enable_le_figaro-immo': string;
|
|
73
|
+
enable_leboncoin: string;
|
|
74
|
+
enable_logicimmo: string;
|
|
75
|
+
'enable_logicimmo-fr': string;
|
|
76
|
+
'enable_meilleurs-agents': string;
|
|
77
|
+
enable_onthemarket: string;
|
|
78
|
+
'enable_ouest-france': string;
|
|
79
|
+
'enable_paru-vendu': string;
|
|
80
|
+
'enable_propriete-le-figaro': string;
|
|
81
|
+
enable_publicapi: string;
|
|
82
|
+
enable_rightmove: string;
|
|
83
|
+
enable_seloger: string;
|
|
84
|
+
'enable_seloger-bureau-commerce': string;
|
|
85
|
+
enable_twitter: string;
|
|
86
|
+
enable_ubiflow: string;
|
|
87
|
+
'enable_vitrine-media': string;
|
|
88
|
+
enable_website: string;
|
|
89
|
+
enable_zillow: string;
|
|
90
|
+
enable_zoopla: string;
|
|
91
|
+
enable_zumper: string;
|
|
92
|
+
facebook_pixel_id: string;
|
|
93
|
+
google_analytics_id: string;
|
|
94
|
+
homepage_cover: string;
|
|
95
|
+
homepage_cover_image: string;
|
|
96
|
+
homepage_cover_video: string;
|
|
97
|
+
homepage_highlights: any[];
|
|
98
|
+
homepage_properties: string;
|
|
99
|
+
immovlan_customer_id: string;
|
|
100
|
+
immoweb_ftp_password: string;
|
|
101
|
+
immoweb_ftp_username: string;
|
|
102
|
+
integration_document_management_sweepbright_documents: boolean;
|
|
103
|
+
intercom_app_id: string;
|
|
104
|
+
invoice_address: string;
|
|
105
|
+
invoice_address_2: string;
|
|
106
|
+
invoice_city: string;
|
|
107
|
+
invoice_company_name: string;
|
|
108
|
+
invoice_country: string;
|
|
109
|
+
invoice_county: string;
|
|
110
|
+
invoice_email: string;
|
|
111
|
+
invoice_first_name: string;
|
|
112
|
+
invoice_last_name: string;
|
|
113
|
+
invoice_vat_number: string;
|
|
114
|
+
invoice_zip: string;
|
|
115
|
+
languages: string[];
|
|
116
|
+
links_facebook: string;
|
|
117
|
+
links_instagram: string;
|
|
118
|
+
links_linkedin: string;
|
|
119
|
+
links_twitter: string;
|
|
120
|
+
livechat_app_id: string;
|
|
121
|
+
logic_immo_agency_id: string;
|
|
122
|
+
new_properties_en: string;
|
|
123
|
+
'new_properties_en-GB': string;
|
|
124
|
+
new_properties_fr: string;
|
|
125
|
+
'new_properties_fr-BE': string;
|
|
126
|
+
new_properties_nl: string;
|
|
127
|
+
onthemarket_api_key: string;
|
|
128
|
+
published_url_resolvers: string[];
|
|
129
|
+
registration_number: string;
|
|
130
|
+
rent_period: string;
|
|
131
|
+
rightmove_api_key: string;
|
|
132
|
+
signup_company_name: string;
|
|
133
|
+
signup_country: string;
|
|
134
|
+
signup_email: string;
|
|
135
|
+
tagline_en: string;
|
|
136
|
+
'tagline_en-GB': string;
|
|
137
|
+
tagline_fr: string;
|
|
138
|
+
'tagline_fr-BE': string;
|
|
139
|
+
tagline_nl: string;
|
|
140
|
+
theme: string;
|
|
141
|
+
theme_buttons: string;
|
|
142
|
+
theme_custom_color: string;
|
|
143
|
+
theme_typeface: string;
|
|
144
|
+
timezone: string;
|
|
145
|
+
transaction_types: string;
|
|
146
|
+
unassigned_leads_admin_id: number;
|
|
147
|
+
zoopla_api_key: string;
|
|
148
|
+
description: string;
|
|
149
|
+
about: string;
|
|
150
|
+
}
|
|
151
|
+
export interface SettingsData {
|
|
152
|
+
data: Settings;
|
|
153
|
+
}
|
|
154
|
+
export interface Company {
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
locale: string;
|
|
158
|
+
referrer?: Maybe<object>;
|
|
159
|
+
member_count: number;
|
|
160
|
+
member_allowed: number;
|
|
161
|
+
contacts_count: number;
|
|
162
|
+
channels_count: number;
|
|
163
|
+
intercom_app_id: string;
|
|
164
|
+
disabled_at?: Maybe<string>;
|
|
165
|
+
created_at?: Maybe<string>;
|
|
166
|
+
updated_at?: Maybe<string>;
|
|
167
|
+
plan: PlanData;
|
|
168
|
+
settings: SettingsData;
|
|
169
|
+
}
|
|
170
|
+
export interface CompanyData {
|
|
171
|
+
data: Company;
|
|
172
|
+
}
|
|
173
|
+
export interface Office {
|
|
174
|
+
id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
properties_count: number;
|
|
177
|
+
contacts_count: number;
|
|
178
|
+
company: CompanyData;
|
|
179
|
+
}
|
|
180
|
+
export interface OfficeData {
|
|
181
|
+
data: Office;
|
|
182
|
+
}
|
|
183
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"office.js","sourceRoot":"","sources":["../../src/entities/office.ts"],"names":[],"mappings":";;;AAGA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;AACvB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
|