@sweepbright/api-client 0.30.4 → 0.30.6
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/mockServer.js +27 -0
- package/dist/mockServer.js.map +1 -0
- package/dist/src/__tests__/auth.test.js +15 -0
- package/dist/src/__tests__/auth.test.js.map +1 -0
- package/dist/src/__tests__/channels.test.js +77 -0
- package/dist/src/__tests__/channels.test.js.map +1 -0
- package/dist/src/__tests__/contacts.test.js +61 -0
- package/dist/src/__tests__/contacts.test.js.map +1 -0
- package/dist/src/__tests__/estates.test.js +43 -0
- package/dist/src/__tests__/estates.test.js.map +1 -0
- package/dist/src/__tests__/leads.test.js +55 -0
- package/dist/src/__tests__/leads.test.js.map +1 -0
- package/dist/src/common/currencies.js +55 -0
- package/dist/src/common/currencies.js.map +1 -0
- package/dist/src/common/types.js +3 -0
- package/dist/src/common/types.js.map +1 -0
- package/dist/src/entities/office.js +9 -0
- package/dist/src/entities/office.js.map +1 -0
- package/dist/src/entities/property.js +220 -0
- package/dist/src/entities/property.js.map +1 -0
- package/dist/src/index.js +94 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/resources/channel_accounts.js +31 -0
- package/dist/src/resources/channel_accounts.js.map +1 -0
- package/dist/src/resources/channels.js +32 -0
- package/dist/src/resources/channels.js.map +1 -0
- package/dist/src/resources/companies.js +16 -0
- package/dist/src/resources/companies.js.map +1 -0
- package/dist/src/resources/contact_preferences.js +14 -0
- package/dist/src/resources/contact_preferences.js.map +1 -0
- package/dist/src/resources/contacts.js +29 -0
- package/dist/src/resources/contacts.js.map +1 -0
- package/dist/src/resources/estates.js +73 -0
- package/dist/src/resources/estates.js.map +1 -0
- package/dist/src/resources/leads.js +26 -0
- package/dist/src/resources/leads.js.map +1 -0
- package/dist/src/resources/negotiators.js +16 -0
- package/dist/src/resources/negotiators.js.map +1 -0
- package/dist/src/resources/offices.js +12 -0
- package/dist/src/resources/offices.js.map +1 -0
- package/dist/src/types.js +40 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils.js +28 -0
- package/dist/src/utils.js.map +1 -0
- package/package.json +7 -3
- package/.circleci/config.yml +0 -102
- package/.devcontainer/Dockerfile +0 -23
- package/.devcontainer/devcontainer.json +0 -59
- package/.editorconfig +0 -11
- package/.eslintrc.json +0 -6
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -40
- package/.nvmrc +0 -1
- package/.prettierignore +0 -1
- package/jest.config.js +0 -7
- package/mockServer.ts +0 -44
- package/setupTests.ts +0 -1
- package/src/__tests__/auth.test.ts +0 -14
- package/src/__tests__/channels.test.ts +0 -104
- package/src/__tests__/contacts.test.ts +0 -85
- package/src/__tests__/estates.test.ts +0 -50
- package/src/__tests__/leads.test.ts +0 -67
- package/src/common/currencies.ts +0 -50
- package/src/common/types.ts +0 -1
- package/src/entities/office.ts +0 -193
- package/src/entities/property.ts +0 -574
- package/src/index.ts +0 -128
- package/src/resources/channel_accounts.ts +0 -39
- package/src/resources/channels.ts +0 -52
- package/src/resources/companies.ts +0 -15
- package/src/resources/contact_preferences.ts +0 -14
- package/src/resources/contacts.ts +0 -38
- package/src/resources/estates.ts +0 -145
- package/src/resources/leads.ts +0 -65
- package/src/resources/negotiators.ts +0 -19
- package/src/resources/offices.ts +0 -12
- package/src/types.ts +0 -88
- package/src/utils.ts +0 -35
- package/tsconfig.json +0 -19
package/src/entities/office.ts
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { Currency } from '../common/currencies';
|
|
2
|
-
import { Maybe } from '../common/types';
|
|
3
|
-
|
|
4
|
-
export enum MeasurementSystem {
|
|
5
|
-
metric = 'metric',
|
|
6
|
-
imperial = 'imperial',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface OfficeSettings {
|
|
10
|
-
measurement_system: MeasurementSystem;
|
|
11
|
-
numeral_system: string;
|
|
12
|
-
currency: Currency;
|
|
13
|
-
country: string;
|
|
14
|
-
visit_duration: 30;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface OfficeSettingData {
|
|
18
|
-
data: OfficeSettings;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface Plan {
|
|
22
|
-
id: string;
|
|
23
|
-
max_users: number;
|
|
24
|
-
price: object;
|
|
25
|
-
interval: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface PlanData {
|
|
29
|
-
data: Plan;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface Settings {
|
|
33
|
-
about_en: string;
|
|
34
|
-
'about_en-GB': string;
|
|
35
|
-
about_fr: string;
|
|
36
|
-
'about_fr-BE': string;
|
|
37
|
-
about_nl: string;
|
|
38
|
-
agency_website_hostname: string;
|
|
39
|
-
contact_additional: string;
|
|
40
|
-
contact_borough_or_district: string;
|
|
41
|
-
contact_box: string;
|
|
42
|
-
contact_city: string;
|
|
43
|
-
contact_country: string;
|
|
44
|
-
contact_county: string;
|
|
45
|
-
contact_email: string;
|
|
46
|
-
contact_number: string;
|
|
47
|
-
contact_phone: string;
|
|
48
|
-
contact_street: string;
|
|
49
|
-
contact_street_2: string;
|
|
50
|
-
contact_zip: string;
|
|
51
|
-
default_country: string;
|
|
52
|
-
default_email: string;
|
|
53
|
-
default_legal_company_name: string;
|
|
54
|
-
default_legal_VAT_number: string;
|
|
55
|
-
default_locale: string;
|
|
56
|
-
description_en: string;
|
|
57
|
-
'description_en-GB': string;
|
|
58
|
-
description_facebook: string;
|
|
59
|
-
description_fr: string;
|
|
60
|
-
'description_fr-BE': string;
|
|
61
|
-
description_instagram: string;
|
|
62
|
-
description_nl: string;
|
|
63
|
-
description_twitter: string;
|
|
64
|
-
disabled_reason: string;
|
|
65
|
-
domain_agency_id: string;
|
|
66
|
-
email: string;
|
|
67
|
-
enable_amepi: string;
|
|
68
|
-
'enable_belles-demeures': string;
|
|
69
|
-
enable_bienici: string;
|
|
70
|
-
'enable_bureau-locaux': string;
|
|
71
|
-
'enable_cession-pme': string;
|
|
72
|
-
enable_facebook: string;
|
|
73
|
-
enable_green_acres: string;
|
|
74
|
-
'enable_hotellerie-restauration': string;
|
|
75
|
-
enable_immovlan: string;
|
|
76
|
-
enable_immoweb: string;
|
|
77
|
-
'enable_immoweb-v2': string;
|
|
78
|
-
'enable_le_figaro-immo': string;
|
|
79
|
-
enable_leboncoin: string;
|
|
80
|
-
enable_logicimmo: string;
|
|
81
|
-
'enable_logicimmo-fr': string;
|
|
82
|
-
'enable_meilleurs-agents': string;
|
|
83
|
-
enable_onthemarket: string;
|
|
84
|
-
'enable_ouest-france': string;
|
|
85
|
-
'enable_paru-vendu': string;
|
|
86
|
-
'enable_propriete-le-figaro': string;
|
|
87
|
-
enable_publicapi: string;
|
|
88
|
-
enable_rightmove: string;
|
|
89
|
-
enable_seloger: string;
|
|
90
|
-
'enable_seloger-bureau-commerce': string;
|
|
91
|
-
enable_twitter: string;
|
|
92
|
-
enable_ubiflow: string;
|
|
93
|
-
'enable_vitrine-media': string;
|
|
94
|
-
enable_website: string;
|
|
95
|
-
enable_zillow: string;
|
|
96
|
-
enable_zoopla: string;
|
|
97
|
-
enable_zumper: string;
|
|
98
|
-
facebook_pixel_id: string;
|
|
99
|
-
google_analytics_id: string;
|
|
100
|
-
homepage_cover: string;
|
|
101
|
-
homepage_cover_image: string;
|
|
102
|
-
homepage_cover_video: string;
|
|
103
|
-
homepage_highlights: any[];
|
|
104
|
-
homepage_properties: string;
|
|
105
|
-
immovlan_customer_id: string;
|
|
106
|
-
immoweb_ftp_password: string;
|
|
107
|
-
immoweb_ftp_username: string;
|
|
108
|
-
integration_document_management_sweepbright_documents: boolean;
|
|
109
|
-
intercom_app_id: string;
|
|
110
|
-
invoice_address: string;
|
|
111
|
-
invoice_address_2: string;
|
|
112
|
-
invoice_city: string;
|
|
113
|
-
invoice_company_name: string;
|
|
114
|
-
invoice_country: string;
|
|
115
|
-
invoice_county: string;
|
|
116
|
-
invoice_email: string;
|
|
117
|
-
invoice_first_name: string;
|
|
118
|
-
invoice_last_name: string;
|
|
119
|
-
invoice_vat_number: string;
|
|
120
|
-
invoice_zip: string;
|
|
121
|
-
languages: string[];
|
|
122
|
-
links_facebook: string;
|
|
123
|
-
links_instagram: string;
|
|
124
|
-
links_linkedin: string;
|
|
125
|
-
links_twitter: string;
|
|
126
|
-
livechat_app_id: string;
|
|
127
|
-
logic_immo_agency_id: string;
|
|
128
|
-
new_properties_en: string;
|
|
129
|
-
'new_properties_en-GB': string;
|
|
130
|
-
new_properties_fr: string;
|
|
131
|
-
'new_properties_fr-BE': string;
|
|
132
|
-
new_properties_nl: string;
|
|
133
|
-
onthemarket_api_key: string;
|
|
134
|
-
published_url_resolvers: string[];
|
|
135
|
-
registration_number: string;
|
|
136
|
-
rent_period: string;
|
|
137
|
-
rightmove_api_key: string;
|
|
138
|
-
signup_company_name: string;
|
|
139
|
-
signup_country: string;
|
|
140
|
-
signup_email: string;
|
|
141
|
-
tagline_en: string;
|
|
142
|
-
'tagline_en-GB': string;
|
|
143
|
-
tagline_fr: string;
|
|
144
|
-
'tagline_fr-BE': string;
|
|
145
|
-
tagline_nl: string;
|
|
146
|
-
theme: string;
|
|
147
|
-
theme_buttons: string;
|
|
148
|
-
theme_custom_color: string;
|
|
149
|
-
theme_typeface: string;
|
|
150
|
-
timezone: string;
|
|
151
|
-
transaction_types: string;
|
|
152
|
-
unassigned_leads_admin_id: number;
|
|
153
|
-
zoopla_api_key: string;
|
|
154
|
-
description: string;
|
|
155
|
-
about: string;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface SettingsData {
|
|
159
|
-
data: Settings;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export interface Company {
|
|
163
|
-
id: string;
|
|
164
|
-
name: string;
|
|
165
|
-
locale: string;
|
|
166
|
-
referrer?: Maybe<object>;
|
|
167
|
-
member_count: number;
|
|
168
|
-
member_allowed: number;
|
|
169
|
-
contacts_count: number;
|
|
170
|
-
channels_count: number;
|
|
171
|
-
intercom_app_id: string;
|
|
172
|
-
disabled_at?: Maybe<string>;
|
|
173
|
-
created_at?: Maybe<string>;
|
|
174
|
-
updated_at?: Maybe<string>;
|
|
175
|
-
plan: PlanData;
|
|
176
|
-
settings: SettingsData;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface CompanyData {
|
|
180
|
-
data: Company;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface Office {
|
|
184
|
-
id: string;
|
|
185
|
-
name: string;
|
|
186
|
-
properties_count: number;
|
|
187
|
-
contacts_count: number;
|
|
188
|
-
company: CompanyData;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export interface OfficeData {
|
|
192
|
-
data: Office;
|
|
193
|
-
}
|