@sweepbright/api-client 0.42.0-pre.1 → 0.42.0-pre.2
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/index.d.ts +1 -1
- package/dist/types.d.ts +3 -27
- package/dist/types.js +1 -27
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ import { Client, ClientConf, Env } from './types';
|
|
|
12
12
|
declare function createClient(conf: ClientConf, logger?: Logger): Client;
|
|
13
13
|
export { Client, Env, CreateOAuthManagerOptions, SweepbrightOAuthManager, OAuthManager, SessionData, SessionDataImpl, Property, Company, Contact, ChannelAccount, createClient, createCustomEndpointAuthManager, createOAuthManager, };
|
|
14
14
|
export { EventType } from './types';
|
|
15
|
-
export type { AuctionEventData, ApiDataResponse, ApiListMeta, ApiListResponse, ChannelAccountsGetAllInput, ChannelAccountsGetAllResponse, ChannelAccountsGetEstateHashResponse, ChannelAccountsGetEstateHashInput, ChannelAccountsGetInput, ChannelAccountsGetResponse, ChannelsResolveReferencesResult, CompaniesGetResponse, CompaniesGetInput, ContactPreferencesGetAllResponse, ContactPreferencesGetAllInput, ContactType, ContactsGetAllResponse, ContactsGetAllInput, ContactsGetOneResponse, ContactsGetOneInput, CreateEventAttributes, CreateLeadInput, CreateUnassignedLeadInput, CreateUnassignedLeadPreferencesInput, EstatesGeoJsonInput, EstatesGetAllInput, EstatesGetOneInput, EstatesPublicationInput, EstatesScheduleVisitInput, EstatesScheduleVisitPreferencesInput, EstatesSetPublicationUrlInput, EstatesUnpublishPublicationInput, EstatesUpdateGeoLocationInput, LeadLocationPreferenceInput, NegotiatorsGetByCompanyIdResponse, NegotiatorsGetByCompanyIdInput, OfficesGetInput, OpenHopeEventData, PaginationMeta, PropertiesOutput, ReferenceDetails, UnitsOutput, UserType, VisitEventData, } from './types';
|
|
15
|
+
export type { AuctionEventData, ApiDataResponse, ApiListMeta, ApiListResponse, ChannelAccountsGetAllInput, ChannelAccountsGetAllResponse, ChannelAccountsGetEstateHashResponse, ChannelAccountsGetEstateHashInput, ChannelAccountsGetInput, ChannelAccountsGetResponse, ChannelsResolveReferencesResult, CompaniesGetResponse, CompaniesGetInput, ContactPreferencesGetAllResponse, ContactPreferencesGetAllInput, ContactType, ContactsGetAllResponse, ContactsGetAllInput, ContactsGetOneResponse, ContactsGetOneInput, CreateEventAttributes, CreateLeadInput, CreateUnassignedLeadInput, CreateUnassignedLeadPreferencesInput, EstatesGeoJsonInput, EstatesGetAllInput, EstatesGetOneInput, EstatesPublicationInput, EstatesScheduleVisitInput, EstatesScheduleVisitPreferencesInput, EstatesSetPublicationUrlInput, EstatesUnpublishPublicationInput, EstatesUpdateGeoLocationInput, LeadLocationPreferenceInput, NegotiatorsGetByCompanyIdResponse, NegotiatorsGetByCompanyIdInput, OfficesGetInput, OpenHopeEventData, PaginationMeta, PropertiesOutput, ReferenceDetails, UnitsOutput, UserType, VisitEventData, ProjectInclude, PropertyInclude, OfficeInclude, ChannelAccountInclude, ChannelInfoInclude, CompanyInclude, ActivityInclude, BucketInclude, InteractionInclude, InterestInclude, ContactInclude, ReportInclude, UserInclude, VendorInclude, } from './types';
|
package/dist/types.d.ts
CHANGED
|
@@ -21,30 +21,6 @@ export declare enum Env {
|
|
|
21
21
|
STAGING = "staging",
|
|
22
22
|
DEV = "dev"
|
|
23
23
|
}
|
|
24
|
-
export declare enum EstateInclude {
|
|
25
|
-
settings = "settings",
|
|
26
|
-
channels = "channels",
|
|
27
|
-
negotiator = "negotiator",
|
|
28
|
-
'office.settings' = "office.settings",
|
|
29
|
-
'project.settings' = "project.settings",
|
|
30
|
-
'project.office.settings' = "project.office.settings",
|
|
31
|
-
'project.properties.office.settings' = "project.properties.office.settings",
|
|
32
|
-
'project.properties.settings' = "project.properties.settings",
|
|
33
|
-
'properties.settings' = "properties.settings",
|
|
34
|
-
'properties.office.settings' = "properties.office.settings",
|
|
35
|
-
'properties.negotiator' = "properties.negotiator",
|
|
36
|
-
'item.settings' = "item.settings",
|
|
37
|
-
'item.office.settings' = "item.office.settings",
|
|
38
|
-
'item.channels' = "item.channels",
|
|
39
|
-
'item.project.settings' = "item.project.settings",
|
|
40
|
-
'item.project.office.settings' = "item.project.office.settings",
|
|
41
|
-
'item.project.properties.office.settings' = "item.project.properties.office.settings",
|
|
42
|
-
'item.project.properties.settings' = "item.project.properties.settings",
|
|
43
|
-
'item.properties.settings' = "item.properties.settings",
|
|
44
|
-
'item.properties.office.settings' = "item.properties.office.settings",
|
|
45
|
-
'item.negotiator' = "item.negotiator",
|
|
46
|
-
'item.properties.negotiator' = "item.properties.negotiator"
|
|
47
|
-
}
|
|
48
24
|
export declare enum ActivityInclude {
|
|
49
25
|
Details = "details"
|
|
50
26
|
}
|
|
@@ -343,7 +319,7 @@ export interface OfficesGetInput {
|
|
|
343
319
|
export interface GetUnitsInput {
|
|
344
320
|
page?: number;
|
|
345
321
|
limit?: number;
|
|
346
|
-
includes?:
|
|
322
|
+
includes?: IncludeFor<'Unit'>[];
|
|
347
323
|
}
|
|
348
324
|
export interface PaginationMeta {
|
|
349
325
|
total: number;
|
|
@@ -351,7 +327,7 @@ export interface PaginationMeta {
|
|
|
351
327
|
per_page: number;
|
|
352
328
|
current_page: number;
|
|
353
329
|
total_pages: number;
|
|
354
|
-
links:
|
|
330
|
+
links: string[];
|
|
355
331
|
}
|
|
356
332
|
export interface ApiListMeta {
|
|
357
333
|
pagination: PaginationMeta;
|
|
@@ -361,7 +337,7 @@ export interface ApiDataResponse<T> {
|
|
|
361
337
|
}
|
|
362
338
|
export interface ApiListResponse<T> {
|
|
363
339
|
data: T[];
|
|
364
|
-
meta
|
|
340
|
+
meta: ApiListMeta;
|
|
365
341
|
}
|
|
366
342
|
export type CompaniesGetResponse = ApiDataResponse<Company>;
|
|
367
343
|
export type ChannelAccountsGetAllResponse = ApiListResponse<ChannelAccount>;
|
package/dist/types.js
CHANGED
|
@@ -1,38 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventType = exports.TokenType = exports.IncludesByResource = exports.VisitInclude = exports.VendorInclude = exports.UserInclude = exports.ReportInclude = exports.PropertyInclude = exports.ProjectInclude = exports.OfficeInclude = exports.ContactInclude = exports.InterestInclude = exports.InteractionInclude = exports.CompanyInclude = exports.ChannelInfoInclude = exports.ChannelAccountInclude = exports.BucketInclude = exports.ActivityInclude = exports.
|
|
3
|
+
exports.EventType = exports.TokenType = exports.IncludesByResource = exports.VisitInclude = exports.VendorInclude = exports.UserInclude = exports.ReportInclude = exports.PropertyInclude = exports.ProjectInclude = exports.OfficeInclude = exports.ContactInclude = exports.InterestInclude = exports.InteractionInclude = exports.CompanyInclude = exports.ChannelInfoInclude = exports.ChannelAccountInclude = exports.BucketInclude = exports.ActivityInclude = exports.Env = void 0;
|
|
4
4
|
var Env;
|
|
5
5
|
(function (Env) {
|
|
6
6
|
Env["PRODUCTION"] = "production";
|
|
7
7
|
Env["STAGING"] = "staging";
|
|
8
8
|
Env["DEV"] = "dev";
|
|
9
9
|
})(Env || (exports.Env = Env = {}));
|
|
10
|
-
var EstateInclude;
|
|
11
|
-
(function (EstateInclude) {
|
|
12
|
-
EstateInclude["settings"] = "settings";
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
14
|
-
EstateInclude["channels"] = "channels";
|
|
15
|
-
EstateInclude["negotiator"] = "negotiator";
|
|
16
|
-
EstateInclude["office.settings"] = "office.settings";
|
|
17
|
-
EstateInclude["project.settings"] = "project.settings";
|
|
18
|
-
EstateInclude["project.office.settings"] = "project.office.settings";
|
|
19
|
-
EstateInclude["project.properties.office.settings"] = "project.properties.office.settings";
|
|
20
|
-
EstateInclude["project.properties.settings"] = "project.properties.settings";
|
|
21
|
-
EstateInclude["properties.settings"] = "properties.settings";
|
|
22
|
-
EstateInclude["properties.office.settings"] = "properties.office.settings";
|
|
23
|
-
EstateInclude["properties.negotiator"] = "properties.negotiator";
|
|
24
|
-
EstateInclude["item.settings"] = "item.settings";
|
|
25
|
-
EstateInclude["item.office.settings"] = "item.office.settings";
|
|
26
|
-
EstateInclude["item.channels"] = "item.channels";
|
|
27
|
-
EstateInclude["item.project.settings"] = "item.project.settings";
|
|
28
|
-
EstateInclude["item.project.office.settings"] = "item.project.office.settings";
|
|
29
|
-
EstateInclude["item.project.properties.office.settings"] = "item.project.properties.office.settings";
|
|
30
|
-
EstateInclude["item.project.properties.settings"] = "item.project.properties.settings";
|
|
31
|
-
EstateInclude["item.properties.settings"] = "item.properties.settings";
|
|
32
|
-
EstateInclude["item.properties.office.settings"] = "item.properties.office.settings";
|
|
33
|
-
EstateInclude["item.negotiator"] = "item.negotiator";
|
|
34
|
-
EstateInclude["item.properties.negotiator"] = "item.properties.negotiator";
|
|
35
|
-
})(EstateInclude || (exports.EstateInclude = EstateInclude = {}));
|
|
36
10
|
var ActivityInclude;
|
|
37
11
|
(function (ActivityInclude) {
|
|
38
12
|
ActivityInclude["Details"] = "details";
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAmBA,IAAY,GAIX;AAJD,WAAY,GAAG;IACb,gCAAyB,CAAA;IACzB,0BAAmB,CAAA;IACnB,kBAAW,CAAA;AACb,CAAC,EAJW,GAAG,mBAAH,GAAG,QAId;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAmBA,IAAY,GAIX;AAJD,WAAY,GAAG;IACb,gCAAyB,CAAA;IACzB,0BAAmB,CAAA;IACnB,kBAAW,CAAA;AACb,CAAC,EAJW,GAAG,mBAAH,GAAG,QAId;AAED,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,sCAAmB,CAAA;AACrB,CAAC,EAFW,eAAe,+BAAf,eAAe,QAE1B;AAED,IAAY,aA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