@sweepbright/api-client 0.30.9 → 0.31.1
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/entities/negotiator.d.ts +11 -0
- package/dist/entities/negotiator.js +3 -0
- package/dist/entities/negotiator.js.map +1 -0
- package/dist/entities/office.d.ts +12 -180
- package/dist/entities/office.js.map +1 -1
- package/dist/entities/property.d.ts +2 -4
- package/dist/entities/property.js.map +1 -1
- package/dist/resources/offices.d.ts +1 -0
- package/dist/resources/offices.js +9 -2
- package/dist/resources/offices.js.map +1 -1
- package/dist/schemas/currenciesSchema.d.ts +3 -0
- package/dist/schemas/currenciesSchema.js +8 -0
- package/dist/schemas/currenciesSchema.js.map +1 -0
- package/dist/schemas/officeSchema.d.ts +4618 -0
- package/dist/schemas/officeSchema.js +187 -0
- package/dist/schemas/officeSchema.js.map +1 -0
- package/dist/schemas/typesSchema.d.ts +2 -0
- package/dist/schemas/typesSchema.js +6 -0
- package/dist/schemas/typesSchema.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"negotiator.js","sourceRoot":"","sources":["../../src/entities/negotiator.ts"],"names":[],"mappings":""}
|
|
@@ -1,184 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { companyDataSchema, companySchema, officeDataSchema, officeSchema, officeSettingsDataSchema, officeSettingsSchema, planDataSchema, planSchema, settingsDataSchema } from '../schemas/officeSchema';
|
|
3
3
|
export declare enum MeasurementSystem {
|
|
4
4
|
metric = "metric",
|
|
5
5
|
imperial = "imperial"
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export
|
|
15
|
-
|
|
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
|
-
settings: OfficeSettingData;
|
|
180
|
-
}
|
|
181
|
-
export interface OfficeData {
|
|
182
|
-
data: Office;
|
|
183
|
-
}
|
|
184
|
-
export {};
|
|
7
|
+
export type OfficeSettings = z.infer<typeof officeSettingsSchema>;
|
|
8
|
+
export type OfficeSettingData = z.infer<typeof officeSettingsDataSchema>;
|
|
9
|
+
export type Plan = z.infer<typeof planSchema>;
|
|
10
|
+
export type PlanData = z.infer<typeof planDataSchema>;
|
|
11
|
+
export type settings = z.infer<typeof settingsDataSchema>;
|
|
12
|
+
export type SettingsData = z.infer<typeof settingsDataSchema>;
|
|
13
|
+
export type Company = z.infer<typeof companySchema>;
|
|
14
|
+
export type CompanyData = z.infer<typeof companyDataSchema>;
|
|
15
|
+
export type Office = z.infer<typeof officeSchema>;
|
|
16
|
+
export type OfficeData = z.infer<typeof officeDataSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"office.js","sourceRoot":"","sources":["../../src/entities/office.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"office.js","sourceRoot":"","sources":["../../src/entities/office.ts"],"names":[],"mappings":";;;AAaA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;AACvB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as fs from 'fs';
|
|
3
3
|
import { Currency } from '../common/currencies';
|
|
4
4
|
import { Maybe } from '../common/types';
|
|
5
|
+
import { NegotiatorData } from './negotiator';
|
|
5
6
|
export declare enum ADScale {
|
|
6
7
|
A = "A",
|
|
7
8
|
B = "B",
|
|
@@ -483,6 +484,7 @@ export interface Property {
|
|
|
483
484
|
project_id?: Maybe<string>;
|
|
484
485
|
office_id: string;
|
|
485
486
|
negotiator_id: string;
|
|
487
|
+
negotiator?: Maybe<NegotiatorData>;
|
|
486
488
|
attributes: PropertyAttributes;
|
|
487
489
|
archived_at?: Maybe<string>;
|
|
488
490
|
created_at?: Maybe<string>;
|
|
@@ -512,7 +514,3 @@ export declare enum InternalType {
|
|
|
512
514
|
unit = "unit",
|
|
513
515
|
standalone = "standalone"
|
|
514
516
|
}
|
|
515
|
-
export interface PropertyForSnsEvent extends Property {
|
|
516
|
-
is_archived: boolean;
|
|
517
|
-
internal_type: InternalType;
|
|
518
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../src/entities/property.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../src/entities/property.ts"],"names":[],"mappings":";;;AAKA,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,kBAAO,CAAA;IACP,kBAAO,CAAA;IACP,kBAAO,CAAA;IACP,kBAAO,CAAA;AACT,CAAC,EALW,OAAO,uBAAP,OAAO,QAKlB;AAED,IAAY,OA+BX;AA/BD,WAAY,OAAO;IACjB,0BAAe,CAAA;IACf,8BAAmB,CAAA;IACnB,gCAAqB,CAAA;IACrB,6CAAkC,CAAA;IAClC,wBAAa,CAAA;IACb,uCAA4B,CAAA;IAC5B,2CAAgC,CAAA;IAChC,gCAAqB,CAAA;IACrB,6CAAkC,CAAA;IAClC,+CAAoC,CAAA;IACpC,0BAAe,CAAA;IACf,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;IACjB,oCAAyB,CAAA;IACzB,+CAAoC,CAAA;IACpC,+BAAoB,CAAA;IACpB,wBAAa,CAAA;IACb,qCAA0B,CAAA;IAC1B,8BAAmB,CAAA;IACnB,wBAAa,CAAA;IACb,mDAAwC,CAAA;IACxC,2CAAgC,CAAA;IAChC,qCAA0B,CAAA;IAC1B,qCAA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DAA6B,CAAA;IAC7B,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;IACnC,yHAAmG,CAAA;IACnG,yEAAmD,CAAA;IACnD,iEAA2C,CAAA;IAC3C,qCAAe,CAAA;AACjB,CAAC,EAfW,kBAAkB,kCAAlB,kBAAkB,QAe7B;AAkWD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,yCAAyB,CAAA;AAC3B,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const officeSchema_1 = require("../schemas/officeSchema");
|
|
3
4
|
const types_1 = require("../types");
|
|
4
5
|
function default_1(ctx) {
|
|
5
|
-
function getOffice(attributes) {
|
|
6
|
+
async function getOffice(attributes) {
|
|
6
7
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
7
|
-
|
|
8
|
+
const { officeId } = attributes;
|
|
9
|
+
let { includes } = attributes;
|
|
10
|
+
if (!includes || includes.length === 0) {
|
|
11
|
+
includes = ['settings', 'company'];
|
|
12
|
+
}
|
|
13
|
+
const result = await ctx.httpClient.get(`/services/offices/${officeId}?includes=${includes.join(',')}`);
|
|
14
|
+
return officeSchema_1.officeDataSchema.parse(result);
|
|
8
15
|
}
|
|
9
16
|
return { getOffice };
|
|
10
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offices.js","sourceRoot":"","sources":["../../src/resources/offices.ts"],"names":[],"mappings":";;AACA,oCAAgD;AAEhD,mBAAyB,GAAc;IACrC,
|
|
1
|
+
{"version":3,"file":"offices.js","sourceRoot":"","sources":["../../src/resources/offices.ts"],"names":[],"mappings":";;AACA,0DAA2D;AAC3D,oCAAgD;AAEhD,mBAAyB,GAAc;IACrC,KAAK,UAAU,SAAS,CAAC,UAGxB;QACC,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;QAChC,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YACtC,QAAQ,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;SACpC;QAED,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,GAAG,CACrC,qBAAqB,QAAQ,aAAa,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAC/D,CAAC;QAEF,OAAO,+BAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,EAAE,SAAS,EAAE,CAAC;AACvB,CAAC;AApBD,4BAoBC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.currencySchema = void 0;
|
|
4
|
+
// Generated by ts-to-zod
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const currencies_1 = require("./../common/currencies");
|
|
7
|
+
exports.currencySchema = zod_1.z.nativeEnum(currencies_1.Currency);
|
|
8
|
+
//# sourceMappingURL=currenciesSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currenciesSchema.js","sourceRoot":"","sources":["../../src/schemas/currenciesSchema.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,6BAAwB;AACxB,uDAAkD;AAErC,QAAA,cAAc,GAAG,OAAC,CAAC,UAAU,CAAC,qBAAQ,CAAC,CAAC"}
|