@sweepbright/api-client 0.41.0 → 0.42.0-pre.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/client.d.ts +24 -125
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/common/logResponse.d.ts +7 -0
- package/dist/common/logResponse.js +17 -1
- package/dist/common/logResponse.js.map +1 -1
- package/dist/common/serializeIncludes.d.ts +1 -0
- package/dist/common/serializeIncludes.js +14 -0
- package/dist/common/serializeIncludes.js.map +1 -0
- package/dist/entities/channelAccount.d.ts +15 -0
- package/dist/entities/channelAccount.js +3 -0
- package/dist/entities/channelAccount.js.map +1 -0
- package/dist/entities/contact.d.ts +34 -0
- package/dist/entities/contact.js +3 -0
- package/dist/entities/contact.js.map +1 -0
- package/dist/entities/negotiator.d.ts +12 -8
- package/dist/entities/property.d.ts +22 -9
- package/dist/entities/property.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/oauth-manager/CustomEndpointsAuthenticationService.d.ts +1 -0
- package/dist/oauth-manager/CustomEndpointsAuthenticationService.js +4 -0
- package/dist/oauth-manager/CustomEndpointsAuthenticationService.js.map +1 -1
- package/dist/oauth-manager/OAuthEndpointAuthenticationService.js +3 -0
- package/dist/oauth-manager/OAuthEndpointAuthenticationService.js.map +1 -1
- package/dist/oauth-manager/factories/createTokenStorage.js.map +1 -1
- package/dist/resources/channel_accounts.d.ts +4 -13
- package/dist/resources/channel_accounts.js +7 -8
- package/dist/resources/channel_accounts.js.map +1 -1
- package/dist/resources/channels.d.ts +1 -12
- package/dist/resources/channels.js.map +1 -1
- package/dist/resources/companies.d.ts +2 -5
- package/dist/resources/companies.js +2 -1
- package/dist/resources/companies.js.map +1 -1
- package/dist/resources/contact_preferences.d.ts +2 -4
- package/dist/resources/contact_preferences.js.map +1 -1
- package/dist/resources/contacts.d.ts +4 -12
- package/dist/resources/contacts.js +7 -1
- package/dist/resources/contacts.js.map +1 -1
- package/dist/resources/estates.d.ts +9 -47
- package/dist/resources/estates.js +9 -4
- package/dist/resources/estates.js.map +1 -1
- package/dist/resources/events.d.ts +1 -47
- package/dist/resources/events.js +0 -13
- package/dist/resources/events.js.map +1 -1
- package/dist/resources/leads.d.ts +3 -37
- package/dist/resources/leads.js.map +1 -1
- package/dist/resources/negotiators.d.ts +2 -8
- package/dist/resources/negotiators.js.map +1 -1
- package/dist/resources/offices.d.ts +2 -5
- package/dist/resources/offices.js +5 -5
- package/dist/resources/offices.js.map +1 -1
- package/dist/schemas/officeSchema.d.ts +646 -622
- package/dist/schemas/officeSchema.js +8 -7
- package/dist/schemas/officeSchema.js.map +1 -1
- package/dist/types.d.ts +305 -7
- package/dist/types.js +187 -1
- package/dist/types.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = default_1;
|
|
4
|
+
const serializeIncludes_1 = require("../common/serializeIncludes");
|
|
4
5
|
const types_1 = require("../types");
|
|
5
6
|
function default_1(ctx) {
|
|
6
|
-
async function getAll({ companyId }) {
|
|
7
|
+
async function getAll({ companyId, includes, }) {
|
|
7
8
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
8
9
|
const endpoint = `/services/companies/${companyId}/channel-accounts`;
|
|
9
10
|
return ctx.httpClient.get(endpoint, {
|
|
10
11
|
params: {
|
|
11
|
-
includes:
|
|
12
|
+
includes: (0, serializeIncludes_1.serializeIncludes)(includes ?? [types_1.ChannelAccountInclude.Channel]),
|
|
12
13
|
},
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
|
-
async function get({ channelAccountId }) {
|
|
16
|
+
async function get({ channelAccountId, includes, }) {
|
|
16
17
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
17
18
|
const endpoint = `/services/channel-accounts/${channelAccountId}`;
|
|
18
19
|
return ctx.httpClient.get(endpoint, {
|
|
19
20
|
params: {
|
|
20
|
-
includes:
|
|
21
|
+
includes: (0, serializeIncludes_1.serializeIncludes)(includes ?? [types_1.ChannelAccountInclude.Channel]),
|
|
21
22
|
},
|
|
22
23
|
});
|
|
23
24
|
}
|
|
24
25
|
async function getEstateHash({ estateId, channelAccountId, }) {
|
|
25
|
-
const endpoint =
|
|
26
|
-
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
28
|
-
return response.data;
|
|
26
|
+
const endpoint = `/services/estates/${estateId}/channel-accounts/${channelAccountId}/hash`;
|
|
27
|
+
return ctx.httpClient.post(endpoint);
|
|
29
28
|
}
|
|
30
29
|
return { getAll, get, getEstateHash };
|
|
31
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel_accounts.js","sourceRoot":"","sources":["../../src/resources/channel_accounts.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"channel_accounts.js","sourceRoot":"","sources":["../../src/resources/channel_accounts.ts"],"names":[],"mappings":";;AAaA,4BAmDC;AAhED,mEAAgE;AAChE,oCAUkB;AAElB,mBAAyB,GAAc;IACrC,KAAK,UAAU,MAAM,CAAC,EACpB,SAAS,EACT,QAAQ,GACmB;QAC3B,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,uBAAuB,SAAS,mBAAmB,CAAC;QAErE,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAGvB,QAAQ,EAAE;YACV,MAAM,EAAE;gBACN,QAAQ,EAAE,IAAA,qCAAiB,EACzB,QAAQ,IAAI,CAAC,6BAAqB,CAAC,OAAO,CAAC,CAC5C;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,UAAU,GAAG,CAAC,EACjB,gBAAgB,EAChB,QAAQ,GACgB;QACxB,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,8BAA8B,gBAAgB,EAAE,CAAC;QAElE,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAGvB,QAAQ,EAAE;YACV,MAAM,EAAE;gBACN,QAAQ,EAAE,IAAA,qCAAiB,EACzB,QAAQ,IAAI,CAAC,6BAAqB,CAAC,OAAO,CAAC,CAC5C;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,UAAU,aAAa,CAAC,EAC3B,QAAQ,EACR,gBAAgB,GACkB;QAClC,MAAM,QAAQ,GAAG,qBAAqB,QAAQ,qBAAqB,gBAAgB,OAAO,CAAC;QAC3F,OAAO,GAAG,CAAC,UAAU,CAAC,IAAI,CAGxB,QAAQ,CAAC,CAAC;IACd,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,EAAW,CAAC;AACjD,CAAC"}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { ClientCtx } from '../types';
|
|
2
|
-
interface ReferenceDetails {
|
|
3
|
-
reference_code: string;
|
|
4
|
-
estate_id: string;
|
|
5
|
-
channel_id: string;
|
|
6
|
-
channel_account_id: string;
|
|
7
|
-
company_id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ChannelsResolveReferencesResult {
|
|
10
|
-
data: ReferenceDetails[];
|
|
11
|
-
}
|
|
1
|
+
import { ChannelsResolveReferencesResult, ClientCtx } from '../types';
|
|
12
2
|
export default function (ctx: ClientCtx): {
|
|
13
3
|
getPropertyIdFromReference: (channel: string, referenceId: string) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
14
4
|
resolveReferences: (channel_id: string, reference_code: string, company_id?: string) => Promise<ChannelsResolveReferencesResult>;
|
|
15
5
|
};
|
|
16
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/resources/channels.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/resources/channels.ts"],"names":[],"mappings":";;AAMA,4BAqCC;AA3CD,oCAIkB;AAElB,mBAAyB,GAAc;IACrC;;OAEG;IACH,KAAK,UAAU,0BAA0B,CACvC,OAAe,EACf,WAAmB;QAEnB,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,aAAa,OAAO,uBAAuB,WAAW,EAAE,CAAC;QAE1E,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACH,KAAK,UAAU,iBAAiB,CAC9B,UAAkB,EAClB,cAAsB,EACtB,UAAmB;QAEnB,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,8BAA8B,CAAC;QAEhD,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE;YAClC,MAAM,EAAE;gBACN,UAAU;gBACV,cAAc;gBACd,UAAU;aACX;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { ClientCtx } from '../types';
|
|
1
|
+
import { ClientCtx, CompaniesGetInput, CompaniesGetResponse } from '../types';
|
|
2
2
|
export default function (ctx: ClientCtx): {
|
|
3
|
-
get: (attributes:
|
|
4
|
-
companyId: string;
|
|
5
|
-
includes?: string[];
|
|
6
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3
|
+
get: (attributes: CompaniesGetInput) => Promise<CompaniesGetResponse>;
|
|
7
4
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = default_1;
|
|
4
|
+
const serializeIncludes_1 = require("../common/serializeIncludes");
|
|
4
5
|
const types_1 = require("../types");
|
|
5
6
|
function default_1(ctx) {
|
|
6
7
|
function get(attributes) {
|
|
7
8
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
8
9
|
return ctx.httpClient.get(`/companies/${attributes.companyId}`, {
|
|
9
10
|
params: {
|
|
10
|
-
includes: attributes.includes
|
|
11
|
+
includes: (0, serializeIncludes_1.serializeIncludes)(attributes.includes),
|
|
11
12
|
},
|
|
12
13
|
});
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.js","sourceRoot":"","sources":["../../src/resources/companies.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"companies.js","sourceRoot":"","sources":["../../src/resources/companies.ts"],"names":[],"mappings":";;AAQA,4BAeC;AAvBD,mEAAgE;AAChE,oCAKkB;AAElB,mBAAyB,GAAc;IACrC,SAAS,GAAG,CAAC,UAA6B;QACxC,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QAEnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CACvB,cAAc,UAAU,CAAC,SAAS,EAAE,EACpC;YACE,MAAM,EAAE;gBACN,QAAQ,EAAE,IAAA,qCAAiB,EAAC,UAAU,CAAC,QAAQ,CAAC;aACjD;SACF,CACF,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,GAAG,EAAE,CAAC;AACjB,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ClientCtx } from '../types';
|
|
1
|
+
import { ClientCtx, ContactPreferencesGetAllInput, ContactPreferencesGetAllResponse } from '../types';
|
|
2
2
|
export default function contact_preferences(ctx: ClientCtx): {
|
|
3
|
-
getAll: (attributes:
|
|
4
|
-
contactId: string;
|
|
5
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3
|
+
getAll: (attributes: ContactPreferencesGetAllInput) => Promise<ContactPreferencesGetAllResponse>;
|
|
6
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact_preferences.js","sourceRoot":"","sources":["../../src/resources/contact_preferences.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"contact_preferences.js","sourceRoot":"","sources":["../../src/resources/contact_preferences.ts"],"names":[],"mappings":";;AAOA,sCAcC;AArBD,oCAKkB;AAElB,SAAwB,mBAAmB,CAAC,GAAc;IACxD,SAAS,MAAM,CACb,UAAyC;QAEzC,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAGvB,sBAAsB,UAAU,CAAC,SAAS,cAAc,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO;QACL,MAAM;KACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import { ClientCtx } from '../types';
|
|
1
|
+
import { ClientCtx, ContactsGetAllInput, ContactsGetAllResponse, ContactsGetOneInput, ContactsGetOneResponse } from '../types';
|
|
2
2
|
export default function (ctx: ClientCtx): {
|
|
3
|
-
getOne: (attributes:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
getOneWithNegotiators: (attributes: {
|
|
7
|
-
contactId: string;
|
|
8
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
|
-
getAll: (attributes: {
|
|
10
|
-
companyId: string;
|
|
11
|
-
page?: number;
|
|
12
|
-
limit?: number;
|
|
13
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3
|
+
getOne: (attributes: ContactsGetOneInput) => Promise<ContactsGetOneResponse>;
|
|
4
|
+
getOneWithNegotiators: (attributes: ContactsGetOneInput) => Promise<ContactsGetOneResponse>;
|
|
5
|
+
getAll: (attributes: ContactsGetAllInput) => Promise<ContactsGetAllResponse>;
|
|
14
6
|
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = default_1;
|
|
4
|
+
const serializeIncludes_1 = require("../common/serializeIncludes");
|
|
4
5
|
const types_1 = require("../types");
|
|
5
6
|
function default_1(ctx) {
|
|
6
7
|
function getOne(attributes) {
|
|
7
8
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
8
|
-
return ctx.httpClient.get(`/services/contacts/${attributes.contactId}
|
|
9
|
+
return ctx.httpClient.get(`/services/contacts/${attributes.contactId}`, {
|
|
10
|
+
params: {
|
|
11
|
+
includes: (0, serializeIncludes_1.serializeIncludes)(attributes.includes),
|
|
12
|
+
},
|
|
13
|
+
});
|
|
9
14
|
}
|
|
10
15
|
function getOneWithNegotiators(attributes) {
|
|
11
16
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
@@ -17,6 +22,7 @@ function default_1(ctx) {
|
|
|
17
22
|
params: {
|
|
18
23
|
page: attributes.page ?? 1,
|
|
19
24
|
limit: attributes.limit ?? 10,
|
|
25
|
+
includes: (0, serializeIncludes_1.serializeIncludes)(attributes.includes),
|
|
20
26
|
},
|
|
21
27
|
});
|
|
22
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/resources/contacts.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/resources/contacts.ts"],"names":[],"mappings":";;AAUA,4BA6CC;AAvDD,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,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,51 +1,13 @@
|
|
|
1
1
|
import { Property } from '../entities/property';
|
|
2
|
-
import { ClientCtx,
|
|
2
|
+
import { ClientCtx, EstatesGetAllInput, EstatesGetOneInput, EstatesPublicationInput, EstatesScheduleVisitInput, EstatesSetPublicationUrlInput, EstatesUnpublishPublicationInput, EstatesUpdateGeoLocationInput, GetUnitsInput, PropertiesOutput, UnitsOutput } from '../types';
|
|
3
3
|
export default function (ctx: ClientCtx): {
|
|
4
|
-
getOne: (attributes:
|
|
5
|
-
|
|
6
|
-
companyId: string;
|
|
7
|
-
includes?: EstateInclude[];
|
|
8
|
-
}) => Promise<Property>;
|
|
9
|
-
getAll: (attributes: {
|
|
10
|
-
companyId: string;
|
|
11
|
-
page?: number;
|
|
12
|
-
limit?: number;
|
|
13
|
-
archived?: boolean;
|
|
14
|
-
}) => Promise<PropertiesOutput>;
|
|
4
|
+
getOne: (attributes: EstatesGetOneInput) => Promise<Property>;
|
|
5
|
+
getAll: (attributes: EstatesGetAllInput) => Promise<PropertiesOutput>;
|
|
15
6
|
getUnits: (projectId: string, { page, limit, includes }?: GetUnitsInput) => Promise<UnitsOutput>;
|
|
16
|
-
createPublication: (attributes: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}) => Promise<
|
|
21
|
-
|
|
22
|
-
estateId: string;
|
|
23
|
-
channelAccountId: string;
|
|
24
|
-
config: Record<string, any>;
|
|
25
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
26
|
-
unpublishPublication: (attributes: {
|
|
27
|
-
estateId: string;
|
|
28
|
-
channelAccountId: string;
|
|
29
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
30
|
-
scheduleVisit: (estateId: string, attributes: {
|
|
31
|
-
first_name: string;
|
|
32
|
-
last_name: string;
|
|
33
|
-
email: string;
|
|
34
|
-
phone: string;
|
|
35
|
-
preferences?: {
|
|
36
|
-
locale: string;
|
|
37
|
-
};
|
|
38
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
39
|
-
updateGeoLocation: ({ companyId, estateId, geoJson, }: {
|
|
40
|
-
companyId: string;
|
|
41
|
-
estateId: string;
|
|
42
|
-
geoJson: {
|
|
43
|
-
latitude: number;
|
|
44
|
-
longitude: number;
|
|
45
|
-
};
|
|
46
|
-
}) => Promise<void>;
|
|
47
|
-
unstable_setPublicationUrl: ({ estateId, url, }: {
|
|
48
|
-
estateId: string;
|
|
49
|
-
url: string;
|
|
50
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
7
|
+
createPublication: (attributes: EstatesPublicationInput) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
|
+
updatePublication: (attributes: EstatesPublicationInput) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
|
+
unpublishPublication: (attributes: EstatesUnpublishPublicationInput) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
10
|
+
scheduleVisit: (estateId: string, attributes: EstatesScheduleVisitInput) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
11
|
+
updateGeoLocation: ({ companyId, estateId, geoJson, }: EstatesUpdateGeoLocationInput) => Promise<void>;
|
|
12
|
+
setPublicationUrl: ({ estateId, url }: EstatesSetPublicationUrlInput) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
51
13
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = default_1;
|
|
4
|
+
const serializeIncludes_1 = require("../common/serializeIncludes");
|
|
4
5
|
const types_1 = require("../types");
|
|
5
6
|
function default_1(ctx) {
|
|
6
7
|
function getOne(attributes) {
|
|
@@ -8,7 +9,7 @@ function default_1(ctx) {
|
|
|
8
9
|
return ctx.httpClient
|
|
9
10
|
.get(`/services/estates/${attributes.estateId}`, {
|
|
10
11
|
params: {
|
|
11
|
-
includes: attributes.includes ?? [],
|
|
12
|
+
includes: (0, serializeIncludes_1.serializeIncludes)(attributes.includes ?? []),
|
|
12
13
|
},
|
|
13
14
|
})
|
|
14
15
|
.then((res) => res.data);
|
|
@@ -20,6 +21,7 @@ function default_1(ctx) {
|
|
|
20
21
|
page: attributes.page ?? 1,
|
|
21
22
|
limit: attributes.limit ?? 10,
|
|
22
23
|
archived: attributes.archived,
|
|
24
|
+
includes: (0, serializeIncludes_1.serializeIncludes)(attributes.includes ?? []),
|
|
23
25
|
},
|
|
24
26
|
});
|
|
25
27
|
}
|
|
@@ -29,7 +31,7 @@ function default_1(ctx) {
|
|
|
29
31
|
params: {
|
|
30
32
|
page,
|
|
31
33
|
limit,
|
|
32
|
-
includes,
|
|
34
|
+
includes: (0, serializeIncludes_1.serializeIncludes)(includes ?? []),
|
|
33
35
|
},
|
|
34
36
|
});
|
|
35
37
|
}
|
|
@@ -49,6 +51,9 @@ function default_1(ctx) {
|
|
|
49
51
|
ctx.checkAuth(types_1.TokenType.USER_TOKEN);
|
|
50
52
|
return ctx.httpClient.delete(`/estates/${attributes.estateId}/channel-accounts/${attributes.channelAccountId}/ads`);
|
|
51
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated use visit service instead
|
|
56
|
+
*/
|
|
52
57
|
function scheduleVisit(estateId, attributes) {
|
|
53
58
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
54
59
|
return ctx.httpClient.put(`/properties/${estateId}/schedule-visit`, attributes);
|
|
@@ -57,7 +62,7 @@ function default_1(ctx) {
|
|
|
57
62
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
58
63
|
return ctx.httpClient.put(`/companies/${companyId}/estates/${estateId}/geolocation`, geoJson);
|
|
59
64
|
}
|
|
60
|
-
function
|
|
65
|
+
function setPublicationUrl({ estateId, url }) {
|
|
61
66
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
62
67
|
return ctx.httpClient.put(`/estates/${estateId}/website-url`, {
|
|
63
68
|
published_url: url,
|
|
@@ -72,7 +77,7 @@ function default_1(ctx) {
|
|
|
72
77
|
unpublishPublication,
|
|
73
78
|
scheduleVisit,
|
|
74
79
|
updateGeoLocation,
|
|
75
|
-
|
|
80
|
+
setPublicationUrl,
|
|
76
81
|
};
|
|
77
82
|
}
|
|
78
83
|
//# sourceMappingURL=estates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estates.js","sourceRoot":"","sources":["../../src/resources/estates.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"estates.js","sourceRoot":"","sources":["../../src/resources/estates.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,50 +1,4 @@
|
|
|
1
|
-
import { ClientCtx } from '../types';
|
|
2
|
-
export declare enum EventType {
|
|
3
|
-
VISIT_SCHEDULED = "VISIT_SCHEDULED",
|
|
4
|
-
VISIT_UPDATED = "VISIT_UPDATED",
|
|
5
|
-
VISIT_DELETED = "VISIT_DELETED",
|
|
6
|
-
OPEN_HOME_CREATED = "OPEN_HOME_CREATED",
|
|
7
|
-
OPEN_HOME_UPDATED = "OPEN_HOME_UPDATED",
|
|
8
|
-
OPEN_HOME_DELETED = "OPEN_HOME_DELETED",
|
|
9
|
-
AUCTION_CREATED = "AUCTION_CREATED",
|
|
10
|
-
AUCTION_UPDATED = "AUCTION_UPDATED",
|
|
11
|
-
AUCTION_DELETED = "AUCTION_DELETED"
|
|
12
|
-
}
|
|
13
|
-
export type UserType = 'user';
|
|
14
|
-
export type ContactType = 'contact';
|
|
15
|
-
export interface VisitEventData {
|
|
16
|
-
id: string;
|
|
17
|
-
organizer: {
|
|
18
|
-
type: UserType;
|
|
19
|
-
id: string;
|
|
20
|
-
};
|
|
21
|
-
attendees: {
|
|
22
|
-
type: ContactType;
|
|
23
|
-
id: string;
|
|
24
|
-
}[];
|
|
25
|
-
start_date: Date;
|
|
26
|
-
duration_in_minutes: number;
|
|
27
|
-
estate_id: string;
|
|
28
|
-
title: string;
|
|
29
|
-
description: string;
|
|
30
|
-
location: string;
|
|
31
|
-
creator_id: string;
|
|
32
|
-
legacy_id?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface OpenHopeEventData {
|
|
35
|
-
start_date: Date;
|
|
36
|
-
end_date: Date;
|
|
37
|
-
estate_id: string;
|
|
38
|
-
legacy_id?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface AuctionEventData {
|
|
41
|
-
start_date: Date;
|
|
42
|
-
estate_id: string;
|
|
43
|
-
}
|
|
44
|
-
export interface CreateEventAttributes {
|
|
45
|
-
event: EventType;
|
|
46
|
-
data: VisitEventData | OpenHopeEventData | AuctionEventData;
|
|
47
|
-
}
|
|
1
|
+
import { ClientCtx, CreateEventAttributes } from '../types';
|
|
48
2
|
declare const events: (ctx: ClientCtx) => {
|
|
49
3
|
create: (attributes: CreateEventAttributes) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
50
4
|
};
|
package/dist/resources/events.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventType = void 0;
|
|
4
3
|
const types_1 = require("../types");
|
|
5
|
-
var EventType;
|
|
6
|
-
(function (EventType) {
|
|
7
|
-
EventType["VISIT_SCHEDULED"] = "VISIT_SCHEDULED";
|
|
8
|
-
EventType["VISIT_UPDATED"] = "VISIT_UPDATED";
|
|
9
|
-
EventType["VISIT_DELETED"] = "VISIT_DELETED";
|
|
10
|
-
EventType["OPEN_HOME_CREATED"] = "OPEN_HOME_CREATED";
|
|
11
|
-
EventType["OPEN_HOME_UPDATED"] = "OPEN_HOME_UPDATED";
|
|
12
|
-
EventType["OPEN_HOME_DELETED"] = "OPEN_HOME_DELETED";
|
|
13
|
-
EventType["AUCTION_CREATED"] = "AUCTION_CREATED";
|
|
14
|
-
EventType["AUCTION_UPDATED"] = "AUCTION_UPDATED";
|
|
15
|
-
EventType["AUCTION_DELETED"] = "AUCTION_DELETED";
|
|
16
|
-
})(EventType || (exports.EventType = EventType = {}));
|
|
17
4
|
const events = (ctx) => {
|
|
18
5
|
return {
|
|
19
6
|
create: async (attributes) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events.ts"],"names":[],"mappings":";;AAAA,oCAAuE;AAEvE,MAAM,MAAM,GAAG,CAAC,GAAc,EAAE,EAAE;IAChC,OAAO;QACL,MAAM,EAAE,KAAK,EAAE,UAAiC,EAAE,EAAE;YAClD,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;YACnC,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;YACzE,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
|
@@ -1,39 +1,5 @@
|
|
|
1
|
-
import { ClientCtx } from '../types';
|
|
1
|
+
import { ClientCtx, CreateLeadInput, CreateUnassignedLeadInput } from '../types';
|
|
2
2
|
export default function (ctx: ClientCtx): {
|
|
3
|
-
createLead: (attributes: {
|
|
4
|
-
|
|
5
|
-
lastName: string;
|
|
6
|
-
propertyId: string;
|
|
7
|
-
email?: string;
|
|
8
|
-
phone?: string;
|
|
9
|
-
message: string;
|
|
10
|
-
portal: string;
|
|
11
|
-
location_preference?: {
|
|
12
|
-
country: string;
|
|
13
|
-
postal_codes: string[];
|
|
14
|
-
};
|
|
15
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
16
|
-
createUnassignedLead: (companyId: string, attributes: {
|
|
17
|
-
first_name: string;
|
|
18
|
-
last_name: string;
|
|
19
|
-
phone: string;
|
|
20
|
-
email: string;
|
|
21
|
-
message: string;
|
|
22
|
-
source_type: "channel";
|
|
23
|
-
external_source: string;
|
|
24
|
-
preferences?: {
|
|
25
|
-
types: string[];
|
|
26
|
-
negotiation: "sale" | "let";
|
|
27
|
-
condition: string;
|
|
28
|
-
min_price?: number;
|
|
29
|
-
max_price?: number;
|
|
30
|
-
wishes: string[];
|
|
31
|
-
min_rooms: number;
|
|
32
|
-
locale: string;
|
|
33
|
-
};
|
|
34
|
-
location_preference?: {
|
|
35
|
-
country: string;
|
|
36
|
-
postal_codes: string[];
|
|
37
|
-
};
|
|
38
|
-
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3
|
+
createLead: (attributes: CreateLeadInput) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
4
|
+
createUnassignedLead: (companyId: string, attributes: CreateUnassignedLeadInput) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
39
5
|
};
|
|
@@ -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":";;AAOA,4BA4BC;AAnCD,oCAKkB;AAElB,mBAAyB,GAAc;IACrC,SAAS,UAAU,CAAC,UAA2B;QAC7C,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,CAAC,WAAW,UAAU,QAAQ,EAAE;YACvD,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,CAAC,aAAa,SAAS,QAAQ,EAAE,UAAU,CAAC,CAAC;IACxE,CAAC;IAED,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAC9C,CAAC"}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ClientCtx } from '../types';
|
|
1
|
+
import { ClientCtx, NegotiatorsGetByCompanyIdInput, NegotiatorsGetByCompanyIdResponse } from '../types';
|
|
3
2
|
export default function (ctx: ClientCtx): {
|
|
4
|
-
getNegotiatorsByIdCompanyId: (attributes:
|
|
5
|
-
ids: string;
|
|
6
|
-
companyId: string;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
data: CompanyNegotiator[];
|
|
9
|
-
}>;
|
|
3
|
+
getNegotiatorsByIdCompanyId: (attributes: NegotiatorsGetByCompanyIdInput) => Promise<NegotiatorsGetByCompanyIdResponse>;
|
|
10
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"negotiators.js","sourceRoot":"","sources":["../../src/resources/negotiators.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"negotiators.js","sourceRoot":"","sources":["../../src/resources/negotiators.ts"],"names":[],"mappings":";;AAOA,4BAeC;AAtBD,oCAKkB;AAElB,mBAAyB,GAAc;IACrC,SAAS,2BAA2B,CAClC,UAA0C;QAE1C,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAGvB,uBAAuB,UAAU,CAAC,SAAS,cAAc,EAAE;YAC3D,MAAM,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE;SAChC,CAAC,CAAC;IACL,CAAC;IACD,OAAO;QACL,2BAA2B;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { OfficeData } from '../entities/office';
|
|
2
|
-
import { ClientCtx } from '../types';
|
|
2
|
+
import { ClientCtx, OfficesGetInput } from '../types';
|
|
3
3
|
export default function (ctx: ClientCtx): {
|
|
4
|
-
getOffice: (attributes:
|
|
5
|
-
officeId: string;
|
|
6
|
-
includes?: string[];
|
|
7
|
-
}) => Promise<OfficeData>;
|
|
4
|
+
getOffice: (attributes: OfficesGetInput) => Promise<OfficeData>;
|
|
8
5
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = default_1;
|
|
4
|
+
const serializeIncludes_1 = require("../common/serializeIncludes");
|
|
4
5
|
const officeSchema_1 = require("../schemas/officeSchema");
|
|
5
6
|
const types_1 = require("../types");
|
|
6
7
|
function default_1(ctx) {
|
|
7
8
|
async function getOffice(attributes) {
|
|
8
9
|
ctx.checkAuth(types_1.TokenType.API_TOKEN);
|
|
9
10
|
const { officeId } = attributes;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
const result = await ctx.httpClient.get(`/services/offices/${officeId}?includes=${includes.join(',')}`);
|
|
11
|
+
const includes = attributes.includes && attributes.includes.length > 0
|
|
12
|
+
? attributes.includes
|
|
13
|
+
: [types_1.OfficeInclude.Settings, types_1.OfficeInclude.Company];
|
|
14
|
+
const result = await ctx.httpClient.get(`/services/offices/${officeId}?includes=${(0, serializeIncludes_1.serializeIncludes)(includes)}`);
|
|
15
15
|
return officeSchema_1.officeDataSchema.parse(result);
|
|
16
16
|
}
|
|
17
17
|
return { getOffice };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offices.js","sourceRoot":"","sources":["../../src/resources/offices.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"offices.js","sourceRoot":"","sources":["../../src/resources/offices.ts"],"names":[],"mappings":";;AAKA,4BAiBC;AAtBD,mEAAgE;AAEhE,0DAA2D;AAC3D,oCAAgF;AAEhF,mBAAyB,GAAc;IACrC,KAAK,UAAU,SAAS,CAAC,UAA2B;QAClD,GAAG,CAAC,SAAS,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;QAChC,MAAM,QAAQ,GACZ,UAAU,CAAC,QAAQ,IAAI,UAAU,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;YACnD,CAAC,CAAC,UAAU,CAAC,QAAQ;YACrB,CAAC,CAAC,CAAC,qBAAa,CAAC,QAAQ,EAAE,qBAAa,CAAC,OAAO,CAAC,CAAC;QAEtD,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,GAAG,CACrC,qBAAqB,QAAQ,aAAa,IAAA,qCAAiB,EAAC,QAAQ,CAAC,EAAE,CACxE,CAAC;QAEF,OAAO,+BAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,EAAE,SAAS,EAAE,CAAC;AACvB,CAAC"}
|