@rolatech/angular-services 20.2.8-beta.9 → 20.2.9-beta.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolatech/angular-services",
|
|
3
|
-
"version": "20.2.
|
|
3
|
+
"version": "20.2.9-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@rolatech/angular-common": "20.2.
|
|
15
|
+
"@rolatech/angular-common": "20.2.9-beta.1",
|
|
16
16
|
"tslib": "^2.3.0"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
@@ -4,6 +4,7 @@ import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
5
|
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
|
6
6
|
import { HttpClient, HttpRequest, HttpHandler, HttpEvent, HttpInterceptorFn } from '@angular/common/http';
|
|
7
|
+
import { AppConfig, ApiResponse } from '@rolatech/angular-common';
|
|
7
8
|
import { Location } from '@angular/common';
|
|
8
9
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
9
10
|
import { BreakpointObserver, MediaMatcher } from '@angular/cdk/layout';
|
|
@@ -11,7 +12,6 @@ import { MatSnackBar } from '@angular/material/snack-bar';
|
|
|
11
12
|
import * as _angular_material_sidenav from '@angular/material/sidenav';
|
|
12
13
|
import { MatSidenav } from '@angular/material/sidenav';
|
|
13
14
|
import { Title } from '@angular/platform-browser';
|
|
14
|
-
import { ApiResponse } from '@rolatech/angular-common';
|
|
15
15
|
|
|
16
16
|
interface DialogData {
|
|
17
17
|
title: string;
|
|
@@ -47,8 +47,8 @@ declare class DialogComponent implements OnInit, OnDestroy {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
declare class BaseService {
|
|
50
|
-
protected http: HttpClient;
|
|
51
|
-
protected environment:
|
|
50
|
+
protected readonly http: HttpClient;
|
|
51
|
+
protected readonly environment: AppConfig;
|
|
52
52
|
protected actionUrl: string;
|
|
53
53
|
endpoint: string;
|
|
54
54
|
constructor();
|
|
@@ -182,28 +182,33 @@ type SalePaymentMethod = 'CASH' | 'MORTGAGE';
|
|
|
182
182
|
type OfferInvoiceOption = 'COMBINED' | 'SEPARATE';
|
|
183
183
|
type GuarantorRelationshipType = 'FAMILY' | 'FRIEND' | 'GUARANTOR_SERVICE' | 'OTHER';
|
|
184
184
|
declare enum PropertyOfferStatus {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
185
|
+
DRAFT = "DRAFT",
|
|
186
|
+
SUBMITTED = "SUBMITTED",
|
|
187
|
+
VIEWED_BY_AGENT = "VIEWED_BY_AGENT",
|
|
188
|
+
VIEWED_BY_TENANT = "VIEWED_BY_TENANT",
|
|
189
|
+
COUNTERED_BY_AGENT = "COUNTERED_BY_AGENT",
|
|
190
|
+
COUNTERED_BY_TENANT = "COUNTERED_BY_TENANT",
|
|
191
|
+
WITHDRAWN_BY_AGENT = "WITHDRAWN_BY_AGENT",
|
|
192
|
+
WITHDRAWN_BY_TENANT = "WITHDRAWN_BY_TENANT",
|
|
193
|
+
ACCEPTED = "ACCEPTED",// accepted in principle
|
|
194
|
+
REJECTED = "REJECTED",
|
|
195
|
+
UNDER_OFFER = "UNDER_OFFER",
|
|
196
|
+
HOLDING_DEPOSIT_PENDING = "HOLDING_DEPOSIT_PENDING",
|
|
197
|
+
HOLDING_DEPOSIT_PAID = "HOLDING_DEPOSIT_PAID",
|
|
198
|
+
REFERENCING = "REFERENCING",
|
|
199
|
+
REFERENCES_PASSED = "REFERENCES_PASSED",
|
|
200
|
+
REFERENCES_FAILED = "REFERENCES_FAILED",
|
|
201
|
+
CONTRACT_PENDING = "CONTRACT_PENDING",
|
|
202
|
+
CONTRACT_SIGNED = "CONTRACT_SIGNED",
|
|
203
|
+
CONTRACT_FAILED = "CONTRACT_FAILED",
|
|
204
|
+
SECURITY_DEPOSIT_PENDING = "SECURITY_DEPOSIT_PENDING",
|
|
205
|
+
SECURITY_DEPOSIT_PAID = "SECURITY_DEPOSIT_PAID",
|
|
206
|
+
FIRST_RENT_PENDING = "FIRST_RENT_PENDING",
|
|
207
|
+
MOVE_IN_PAYMENT_PAID = "MOVE_IN_PAYMENT_PAID",
|
|
208
|
+
COMPLETED = "COMPLETED",
|
|
209
|
+
FAILED = "FAILED",
|
|
210
|
+
EXPIRED = "EXPIRED",
|
|
211
|
+
CANCELLED = "CANCELLED"
|
|
207
212
|
}
|
|
208
213
|
interface OfferSummary {
|
|
209
214
|
id: string;
|
|
@@ -221,6 +226,7 @@ interface RentalOfferTerms {
|
|
|
221
226
|
smoker: boolean | null;
|
|
222
227
|
furnitureRequirement: FurnitureRequirement | null;
|
|
223
228
|
additionalRequests: string | null;
|
|
229
|
+
internalNote?: string | null;
|
|
224
230
|
}
|
|
225
231
|
interface PersonAddress {
|
|
226
232
|
line1: string | null;
|
|
@@ -331,6 +337,121 @@ interface CopyTextResponse {
|
|
|
331
337
|
redactContact: boolean;
|
|
332
338
|
text: string;
|
|
333
339
|
}
|
|
340
|
+
interface UpdatePropertyOfferInternalNoteRequest {
|
|
341
|
+
internalNote: string;
|
|
342
|
+
}
|
|
343
|
+
interface PropertyOfferInternalNoteResponse {
|
|
344
|
+
offerId: string;
|
|
345
|
+
internalNote: string;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
type PropertyOfferActor = 'AGENT' | 'TENANT' | 'SYSTEM';
|
|
349
|
+
interface PropertyOfferCounterRequest {
|
|
350
|
+
amount: number | null;
|
|
351
|
+
moveInDate: string | null;
|
|
352
|
+
paymentFrequency: PaymentFrequency | null;
|
|
353
|
+
tenancyLengthMonths: number | null;
|
|
354
|
+
breakClauseMonths: number | null;
|
|
355
|
+
pets: string[] | [];
|
|
356
|
+
smoker: boolean | null;
|
|
357
|
+
furniture: FurnitureRequirement | null;
|
|
358
|
+
additionalRequests: string | null;
|
|
359
|
+
}
|
|
360
|
+
interface PropertyOfferVersion {
|
|
361
|
+
id: string;
|
|
362
|
+
version: number;
|
|
363
|
+
actor: PropertyOfferActor;
|
|
364
|
+
amount: number | null;
|
|
365
|
+
moveInDate: string | null;
|
|
366
|
+
paymentFrequency: string | null;
|
|
367
|
+
tenancyLengthMonths: number | null;
|
|
368
|
+
breakClauseMonths: number | null;
|
|
369
|
+
pets: string[] | [];
|
|
370
|
+
smoker: boolean | null;
|
|
371
|
+
furniture: string | null;
|
|
372
|
+
additionalRequests: string | null;
|
|
373
|
+
}
|
|
374
|
+
interface PropertyOfferHistory {
|
|
375
|
+
id: string;
|
|
376
|
+
timestamp: string;
|
|
377
|
+
actor: PropertyOfferActor;
|
|
378
|
+
action: string;
|
|
379
|
+
changes: string | null;
|
|
380
|
+
reason: string | null;
|
|
381
|
+
internalNote: string | null;
|
|
382
|
+
}
|
|
383
|
+
interface EditLockResponse {
|
|
384
|
+
locked: boolean;
|
|
385
|
+
lockedById: string | null;
|
|
386
|
+
lockedByName: string | null;
|
|
387
|
+
lockedByActor: string | null;
|
|
388
|
+
expiresAt: string | null;
|
|
389
|
+
}
|
|
390
|
+
interface PropertyOfferNegotiationView {
|
|
391
|
+
offer: OfferDto;
|
|
392
|
+
latestVersion: VersionDto | null;
|
|
393
|
+
previousVersion: VersionDto | null;
|
|
394
|
+
latestHistory: HistoryDto | null;
|
|
395
|
+
history: HistoryDto[];
|
|
396
|
+
editLock: EditLockDto | null;
|
|
397
|
+
permissions: PermissionsDto;
|
|
398
|
+
}
|
|
399
|
+
interface OfferDto {
|
|
400
|
+
id: string;
|
|
401
|
+
status: PropertyOfferStatus;
|
|
402
|
+
counterCount: number;
|
|
403
|
+
lastActionAt: string | null;
|
|
404
|
+
acceptedVersionId: string | null;
|
|
405
|
+
waitingOn?: PropertyOfferActor | null;
|
|
406
|
+
lastTurnAt?: string | null;
|
|
407
|
+
lastViewedByAgentAt?: string | null;
|
|
408
|
+
lastViewedByTenantAt?: string | null;
|
|
409
|
+
lastCounterBy?: PropertyOfferActor | null;
|
|
410
|
+
}
|
|
411
|
+
interface VersionDto {
|
|
412
|
+
id: string;
|
|
413
|
+
version: number;
|
|
414
|
+
actor: PropertyOfferActor;
|
|
415
|
+
amount: number | null;
|
|
416
|
+
moveInDate: string | null;
|
|
417
|
+
paymentFrequency: string | null;
|
|
418
|
+
tenancyLengthMonths: number | null;
|
|
419
|
+
breakClauseMonths: number | null;
|
|
420
|
+
pets: string[] | [];
|
|
421
|
+
smoker: boolean | null;
|
|
422
|
+
furniture: string | null;
|
|
423
|
+
additionalRequests: string | null;
|
|
424
|
+
createdAt: string | null;
|
|
425
|
+
}
|
|
426
|
+
interface HistoryDto {
|
|
427
|
+
id: string;
|
|
428
|
+
timestamp: string;
|
|
429
|
+
actor: PropertyOfferActor;
|
|
430
|
+
action: string;
|
|
431
|
+
changes: Record<string, any>;
|
|
432
|
+
reason: string | null;
|
|
433
|
+
internalNote: string | null;
|
|
434
|
+
}
|
|
435
|
+
interface EditLockDto {
|
|
436
|
+
locked: boolean;
|
|
437
|
+
lockedById: string | null;
|
|
438
|
+
lockedByName: string | null;
|
|
439
|
+
lockedByActor: string | null;
|
|
440
|
+
expiresAt: string | null;
|
|
441
|
+
}
|
|
442
|
+
interface PermissionsDto {
|
|
443
|
+
canView: boolean;
|
|
444
|
+
canCounter: boolean;
|
|
445
|
+
canAccept: boolean;
|
|
446
|
+
canReject: boolean;
|
|
447
|
+
canWithdraw: boolean;
|
|
448
|
+
canEdit: boolean;
|
|
449
|
+
canMarkUnderOffer: boolean;
|
|
450
|
+
canStartReferencing: boolean;
|
|
451
|
+
canMarkReferencesPassed: boolean;
|
|
452
|
+
canMarkReferencesFailed: boolean;
|
|
453
|
+
canMarkCompleted: boolean;
|
|
454
|
+
}
|
|
334
455
|
|
|
335
456
|
declare class DialogService {
|
|
336
457
|
dialog: MatDialog;
|
|
@@ -1202,6 +1323,8 @@ declare class PropertyOfferService extends BaseService {
|
|
|
1202
1323
|
createRental(payload: CreateRentalOfferPayload): Observable<ApiResponse<PropertyOfferResponse>>;
|
|
1203
1324
|
createSale(payload: CreateSaleOfferPayload): Observable<ApiResponse<PropertyOfferResponse>>;
|
|
1204
1325
|
getCopyText(id: string, redactContact?: boolean): Observable<ApiResponse<CopyTextResponse>>;
|
|
1326
|
+
updateOfferInternalNote(offerId: string, data: UpdatePropertyOfferInternalNoteRequest): Observable<ApiResponse<PropertyOfferInternalNoteResponse>>;
|
|
1327
|
+
getOfferInternalNote(offerId: string): Observable<ApiResponse<PropertyOfferInternalNoteResponse>>;
|
|
1205
1328
|
stripUndefined<T extends Record<string, any>>(obj: T): Partial<T>;
|
|
1206
1329
|
isEmptyFilter(params: Record<string, any>, ignoreKeys?: string[]): boolean;
|
|
1207
1330
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyOfferService, never>;
|
|
@@ -1285,6 +1408,38 @@ declare class InvoiceLineService extends BaseService {
|
|
|
1285
1408
|
static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceLineService>;
|
|
1286
1409
|
}
|
|
1287
1410
|
|
|
1411
|
+
declare class PropertyOfferCounterService extends BaseService {
|
|
1412
|
+
init(): void;
|
|
1413
|
+
getNegotiationViewByAgent(id: string): Observable<ApiResponse<PropertyOfferNegotiationView>>;
|
|
1414
|
+
getNegotiationViewByTenant(id: string): Observable<ApiResponse<PropertyOfferNegotiationView>>;
|
|
1415
|
+
getVersions(id: string): Observable<ApiResponse<PropertyOfferVersion[]>>;
|
|
1416
|
+
getHistory(id: string): Observable<ApiResponse<PropertyOfferHistory[]>>;
|
|
1417
|
+
counterByAgent(id: string, payload: any): Observable<ApiResponse<PropertyOfferVersion>>;
|
|
1418
|
+
counterByTenant(id: string, payload: any): Observable<ApiResponse<PropertyOfferVersion>>;
|
|
1419
|
+
acceptByAgent(id: string): Observable<void>;
|
|
1420
|
+
acceptByTenant(id: string): Observable<void>;
|
|
1421
|
+
rejectByAgent(id: string, reason: string): Observable<void>;
|
|
1422
|
+
rejectByTenant(id: string, reason: string): Observable<void>;
|
|
1423
|
+
withdrawByAgent(id: string, clientId?: string): Observable<ApiResponse<PropertyOfferResponse>>;
|
|
1424
|
+
withdrawByTenant(id: string, clientId?: string): Observable<ApiResponse<PropertyOfferResponse>>;
|
|
1425
|
+
viewedByAgent(offerId: string): Observable<ApiResponse<void>>;
|
|
1426
|
+
viewedByTenant(offerId: string): Observable<ApiResponse<void>>;
|
|
1427
|
+
markUnderOffer(id: string): Observable<any>;
|
|
1428
|
+
acceptOffer(id: string): Observable<any>;
|
|
1429
|
+
rejectOffer(id: string, data: any): Observable<any>;
|
|
1430
|
+
startReferencing(id: string): Observable<any>;
|
|
1431
|
+
markReferencesPassed(id: string): Observable<any>;
|
|
1432
|
+
markReferencesFailed(id: string, data: any): Observable<any>;
|
|
1433
|
+
markReferencesReopen(id: string, data: any): Observable<any>;
|
|
1434
|
+
markCompleted(id: string): Observable<any>;
|
|
1435
|
+
getEditLock(id: string): Observable<ApiResponse<EditLockResponse>>;
|
|
1436
|
+
acquireLock(id: string, clientId: string): Observable<ApiResponse<EditLockResponse>>;
|
|
1437
|
+
heartbeat(id: string): Observable<ApiResponse<EditLockResponse>>;
|
|
1438
|
+
release(id: string): Observable<void>;
|
|
1439
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyOfferCounterService, never>;
|
|
1440
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyOfferCounterService>;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1288
1443
|
declare class LoadingInterceptor {
|
|
1289
1444
|
loadingService: LoadingService;
|
|
1290
1445
|
activeRequests: number;
|
|
@@ -1315,5 +1470,8 @@ declare const SERVICE_DIRECTIVES: Provider[];
|
|
|
1315
1470
|
|
|
1316
1471
|
declare function provideAngularServices(): EnvironmentProviders;
|
|
1317
1472
|
|
|
1318
|
-
|
|
1319
|
-
|
|
1473
|
+
declare const PROPERTY_OFFER_STATUS_LABEL: Record<PropertyOfferStatus, string>;
|
|
1474
|
+
declare function offerStatusLabel(status: PropertyOfferStatus | null | undefined): string;
|
|
1475
|
+
|
|
1476
|
+
export { AmenityService, AutomationService, BackButtonDirective, BaseService, BillingService, BookingService, BreadcrumbService, CartEventType, CartService, CategoryService, ConversationInitService, ConversationService, DialogComponent, DialogService, EnumApiClient, EnumCacheService, FacilityService, FeatureService, FloorplanService, FulfillmentService, HideFooterDirective, InventoryService, InvoiceLineService, InvoiceService, InvoiceStatsService, LayoutService, LoadingInterceptor, LoadingService, MediaService, MembershipService, NavigationService, NotificationService, NotificationStore, NotificationTemplateService, OfferingService, OrderPayoutService, OrderService, PROPERTY_OFFER_STATUS_LABEL, PaymentService, PostService, ProductCategoryService, ProductService, PropertyHighlightsService, PropertyOfferCounterService, PropertyOfferService, PropertyOfferStatus, PropertySearchService, PropertyService, PropertyStatsService, PropertyViewingService, ResourceCategoryService, ResourceService, SCHEDULE_CRON_META, SERVICE_DIRECTIVES, SidenavService, SnackBarService, SupportService, ThemeService, TimeZoneService, TitleService, acceptLanguageInterceptor, offerStatusLabel, provideAngularServices };
|
|
1477
|
+
export type { AdverseCreditStatus, ApiRequestOptions, ApplicantType, AutomationDefinition, AutomationDefinitionDto, AutomationExecution, AutomationExecutionDto, AutomationExecutionLog, AutomationExecutionStatus, AutomationLogLevel, AutomationSchedule, AutomationScheduleDto, AutomationSummaryResponse, BaseEntity, CancelStateResponse, ChatMessage, ConversationInitResponse, CopyTextResponse, CreateDefinitionRequest, CreateRentalOfferPayload, CreateSaleOfferPayload, CreateScheduleRequest, DialogData, EditLockDto, EditLockResponse, EmploymentStatus, EnqueueExecutionRequest, EnumOption, ExecutionLogDto, FurnitureRequirement, Gender, GroupedViewingsByDate, Guarantor, GuarantorRelationshipType, GuarantorType, HistoryDto, IDynamicDialogConfig, InvoiceStats, OfferDto, OfferInvoiceOption, OfferReferencingPatchPayload, OfferReferencingView, OfferSummary, OfferType, PaymentFrequency, PendingInvoice, PermissionsDto, PersonAddress, PropertyOfferActor, PropertyOfferCounterRequest, PropertyOfferHistory, PropertyOfferInternalNoteResponse, PropertyOfferItem, PropertyOfferItemMedia, PropertyOfferNegotiationView, PropertyOfferResponse, PropertyOfferVersion, PropertyStats, ReferenceProvider, RentalOfferTerms, SaleOfferDetails, SalePaymentMethod, ScheduleCron, ScheduleCronMeta, ScheduleOptionResponse, Tenant, UpcomingViewing, UpdateDefinitionRequest, UpdatePropertyOfferInternalNoteRequest, UpdateScheduleRequest, VersionDto, VisaShareCodeStatus, VisaStatus };
|