@sweepbright/api-client 0.40.6 → 0.42.0-pre.0
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 +26 -127
- package/dist/client.js +11 -7
- 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/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/errorProcessing.js +2 -0
- package/dist/errorProcessing.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/TokensRepository_Memory.js +1 -0
- package/dist/oauth-manager/TokensRepository_Memory.js.map +1 -1
- package/dist/oauth-manager/TokensRepository_Redis.js +6 -3
- package/dist/oauth-manager/TokensRepository_Redis.js.map +1 -1
- package/dist/oauth-manager/TokensRepository_RedisWithMemoryFallback.d.ts +6 -4
- package/dist/oauth-manager/TokensRepository_RedisWithMemoryFallback.js +44 -18
- package/dist/oauth-manager/TokensRepository_RedisWithMemoryFallback.js.map +1 -1
- package/dist/oauth-manager/factories/createTokenStorage.js +1 -0
- package/dist/oauth-manager/factories/createTokenStorage.js.map +1 -1
- package/dist/oauth-manager/playground/async.js +5 -1
- package/dist/oauth-manager/playground/async.js.map +1 -1
- package/dist/resources/channel_accounts.d.ts +4 -13
- package/dist/resources/channel_accounts.js +6 -7
- package/dist/resources/channel_accounts.js.map +1 -1
- package/dist/resources/channels.d.ts +2 -13
- package/dist/resources/channels.js.map +1 -1
- package/dist/resources/companies.d.ts +2 -5
- package/dist/resources/companies.js +1 -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 +6 -1
- package/dist/resources/contacts.js.map +1 -1
- package/dist/resources/estates.d.ts +9 -47
- package/dist/resources/estates.js +5 -2
- package/dist/resources/estates.js.map +1 -1
- package/dist/resources/events.d.ts +2 -48
- 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.map +1 -1
- package/dist/schemas/officeSchema.d.ts +697 -673
- package/dist/schemas/officeSchema.js +9 -8
- package/dist/schemas/officeSchema.js.map +1 -1
- package/dist/types.d.ts +307 -8
- package/dist/types.js +188 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.js +6 -0
- package/dist/utils.js.map +1 -1
- package/package.json +14 -13
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offices.js","sourceRoot":"","sources":["../../src/resources/offices.ts"],"names":[],"mappings":";;AAIA,
|
|
1
|
+
{"version":3,"file":"offices.js","sourceRoot":"","sources":["../../src/resources/offices.ts"],"names":[],"mappings":";;AAIA,4BAiBC;AApBD,0DAA2D;AAC3D,oCAAiE;AAEjE,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,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvC,QAAQ,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QACrC,CAAC;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"}
|