@rolatech/angular-services 20.2.7-beta.1 → 20.2.8-bete.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.7-beta.1",
3
+ "version": "20.2.8-bete.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.7-beta.1",
15
+ "@rolatech/angular-common": "20.2.8-bete.1",
16
16
  "tslib": "^2.3.0"
17
17
  },
18
18
  "repository": {
@@ -168,6 +168,160 @@ interface PendingInvoice {
168
168
  status: 'CREATED' | 'ISSUED' | 'SENT' | 'OTHER' | string;
169
169
  }
170
170
 
171
+ type OfferType = 'RENTAL' | 'SALE';
172
+ type PaymentFrequency = 'MONTHLY' | 'QUARTERLY' | 'SEMI_ANNUALLY' | 'ANNUALLY';
173
+ type FurnitureRequirement = 'FURNISHED' | 'UNFURNISHED';
174
+ type ApplicantType = 'INDIVIDUAL' | 'CORPORATE' | 'STUDENT';
175
+ type EmploymentStatus = 'EMPLOYED' | 'SELF_EMPLOYED' | 'UNEMPLOYED';
176
+ type VisaStatus = 'CITIZEN' | 'WORK_VISA' | 'STUDENT_VISA' | 'OTHER';
177
+ type AdverseCreditStatus = 'NONE' | 'CCJ' | 'BANKRUPTCY' | 'IVA' | 'OTHER';
178
+ type Gender = 'MALE' | 'FEMALE' | 'OTHER' | 'PREFER_NOT_TO_SAY';
179
+ type SalePaymentMethod = 'CASH' | 'MORTGAGE';
180
+ type OfferInvoiceOption = 'COMBINED' | 'SEPARATE';
181
+ declare enum PropertyOfferStatus {
182
+ SUBMITTED = "Submitted",
183
+ ACCEPTED = "Accepted",
184
+ COUNTERED = "Countered",
185
+ REJECTED = "Rejected",
186
+ UNDER_OFFER = "Under offer",
187
+ HOLDING_DEPOSIT_PENDING = "Holding deposit pending",
188
+ HOLDING_DEPOSIT_PAID = "Holding deposit paid",
189
+ REFERENCING = "Referencing",
190
+ REFERENCES_PASSED = "References passed",
191
+ REFERENCES_FAILED = "References failed",
192
+ CONTRACT_PENDING = "Contract pending",
193
+ CONTRACT_SIGNED = "Contract signed",
194
+ CONTRACT_FAILED = "Contract failed",
195
+ SECURITY_DEPOSIT_PENDING = "Security deposit pending",
196
+ SECURITY_DEPOSIT_PAID = "Security deposit paid",
197
+ FIRST_RENT_PENDING = "First rent pending",
198
+ MOVE_IN_PAYMENT_PAID = "Move-in payment paid",
199
+ COMPLETED = "Completed",
200
+ FAILED = "Failed",
201
+ WITHDRAWN = "Withdrawn",
202
+ EXPIRED = "Expired",
203
+ CANCELLED = "Cancelled"
204
+ }
205
+ interface OfferSummary {
206
+ id: string;
207
+ offerType: OfferType;
208
+ status: PropertyOfferStatus;
209
+ propertyId: string;
210
+ }
211
+ interface RentalOfferTerms {
212
+ amount: number | null;
213
+ moveInDate: string | null;
214
+ paymentFrequency: PaymentFrequency | null;
215
+ tenancyLengthMonths: number | null;
216
+ breakClauseMonths: number | null;
217
+ pets: string[] | [];
218
+ smoker: boolean | null;
219
+ furnitureRequirement: FurnitureRequirement | null;
220
+ additionalRequests: string | null;
221
+ }
222
+ interface PersonAddress {
223
+ line1: string | null;
224
+ line2: string | null;
225
+ city: string | null;
226
+ postcode: string | null;
227
+ country: string | null;
228
+ }
229
+ interface Guarantor {
230
+ fullName: string | null;
231
+ dob: string | null;
232
+ relationship: string | null;
233
+ phone: string | null;
234
+ email: string | null;
235
+ address: PersonAddress;
236
+ employmentStatus: EmploymentStatus | null;
237
+ companyName: string | null;
238
+ jobTitle: string | null;
239
+ annualSalary: number | null;
240
+ companyNumber: string | null;
241
+ taxReturnSubmitted: boolean | null;
242
+ }
243
+ interface Tenant {
244
+ id: string;
245
+ fullName: string | null;
246
+ dob: string | null;
247
+ gender: Gender | null;
248
+ nationality: string | null;
249
+ visaStatus: VisaStatus | null;
250
+ phone: string | null;
251
+ email: string | null;
252
+ address: PersonAddress;
253
+ adverseCreditStatus: AdverseCreditStatus | null;
254
+ applicantType: ApplicantType | null;
255
+ employmentStatus: EmploymentStatus | null;
256
+ companyName: string | null;
257
+ jobTitle: string | null;
258
+ annualSalary: number | null;
259
+ companyNumber: string | null;
260
+ taxReturnSubmitted: boolean | null;
261
+ corporateCompanyName: string | null;
262
+ corporateCompanyNumber: string | null;
263
+ corporateJobTitle: string | null;
264
+ universityName: string | null;
265
+ courseTitle: string | null;
266
+ yearOfStudy: number | null;
267
+ guarantor: Guarantor;
268
+ }
269
+ interface SaleOfferDetails {
270
+ amount: number | null;
271
+ buyerName: string | null;
272
+ email: string | null;
273
+ phone: string | null;
274
+ paymentMethod: SalePaymentMethod | null;
275
+ proposedExchangeDate: string | null;
276
+ solicitorCompanyName: string | null;
277
+ }
278
+ interface CreateRentalOfferPayload {
279
+ propertyId: string;
280
+ rental: RentalOfferTerms;
281
+ tenants: Tenant[];
282
+ }
283
+ interface CreateSaleOfferPayload {
284
+ propertyId: string;
285
+ sale: SaleOfferDetails;
286
+ }
287
+ interface PropertyOfferResponse {
288
+ id: string;
289
+ userId: string;
290
+ agentId: string;
291
+ type: OfferType;
292
+ status: PropertyOfferStatus;
293
+ propertyId: string;
294
+ rentalTerms?: RentalOfferTerms;
295
+ tenants?: Tenant[];
296
+ sale?: SaleOfferDetails;
297
+ item: PropertyOfferItem;
298
+ invoiceOption: OfferInvoiceOption;
299
+ }
300
+ interface PropertyOfferItem {
301
+ propertyId: string;
302
+ title: string;
303
+ description: string;
304
+ amount: number;
305
+ bedrooms: number;
306
+ bathrooms: number;
307
+ receptions: number;
308
+ agentId: string;
309
+ media: PropertyOfferItemMedia[];
310
+ }
311
+ interface PropertyOfferItemMedia {
312
+ id: string;
313
+ url: string;
314
+ alt: string;
315
+ width: number;
316
+ height: number;
317
+ uuid: string;
318
+ }
319
+ interface CopyTextResponse {
320
+ offerId: string;
321
+ redactContact: boolean;
322
+ text: string;
323
+ }
324
+
171
325
  declare class DialogService {
172
326
  dialog: MatDialog;
173
327
  dialogRef: MatDialogRef<DialogComponent>;
@@ -878,7 +1032,7 @@ declare class PropertyOfferService extends BaseService {
878
1032
  findOffers(options: any): Observable<any>;
879
1033
  findOffersByUser(options: any): Observable<any>;
880
1034
  findOffersByAgent(options: any): Observable<any>;
881
- getOffer(offerId: any): Observable<any>;
1035
+ getOffer(offerId: any): Observable<ApiResponse<PropertyOfferResponse>>;
882
1036
  cancelOffer(id: string): Observable<any>;
883
1037
  underOffer(id: string): Observable<any>;
884
1038
  acceptOffer(id: string): Observable<any>;
@@ -893,6 +1047,9 @@ declare class PropertyOfferService extends BaseService {
893
1047
  offerTimeline(offerId: string): Observable<any>;
894
1048
  updateOffer(offerId: string, data: any): Observable<any>;
895
1049
  updateInvoiceOption(offerId: string, data: any): Observable<any>;
1050
+ createRental(payload: CreateRentalOfferPayload): Observable<ApiResponse<PropertyOfferResponse>>;
1051
+ createSale(payload: CreateSaleOfferPayload): Observable<ApiResponse<PropertyOfferResponse>>;
1052
+ getCopyText(id: string, redactContact?: boolean): Observable<ApiResponse<CopyTextResponse>>;
896
1053
  static ɵfac: i0.ɵɵFactoryDeclaration<PropertyOfferService, never>;
897
1054
  static ɵprov: i0.ɵɵInjectableDeclaration<PropertyOfferService>;
898
1055
  }
@@ -1130,5 +1287,5 @@ declare const SERVICE_DIRECTIVES: Provider[];
1130
1287
 
1131
1288
  declare function provideAngularServices(): EnvironmentProviders;
1132
1289
 
1133
- 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, PaymentService, PostService, ProductCategoryService, ProductService, PropertyHighlightsService, PropertyOfferService, PropertySearchService, PropertyService, PropertyStatsService, PropertyViewingService, ResourceCategoryService, ResourceService, SCHEDULE_CRON_META, SERVICE_DIRECTIVES, SidenavService, SnackBarService, SupportService, ThemeService, TimeZoneService, TitleService, acceptLanguageInterceptor, provideAngularServices };
1134
- export type { ApiRequestOptions, AutomationDefinition, AutomationDefinitionDto, AutomationExecution, AutomationExecutionDto, AutomationExecutionLog, AutomationExecutionStatus, AutomationLogLevel, AutomationSchedule, AutomationScheduleDto, AutomationSummaryResponse, BaseEntity, CancelStateResponse, ChatMessage, ConversationInitResponse, CreateDefinitionRequest, CreateScheduleRequest, DialogData, EnqueueExecutionRequest, EnumOption, ExecutionLogDto, GroupedViewingsByDate, IDynamicDialogConfig, InvoiceStats, PendingInvoice, PropertyStats, ScheduleCron, ScheduleCronMeta, ScheduleOptionResponse, UpcomingViewing, UpdateDefinitionRequest, UpdateScheduleRequest };
1290
+ 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, PaymentService, PostService, ProductCategoryService, ProductService, PropertyHighlightsService, PropertyOfferService, PropertyOfferStatus, PropertySearchService, PropertyService, PropertyStatsService, PropertyViewingService, ResourceCategoryService, ResourceService, SCHEDULE_CRON_META, SERVICE_DIRECTIVES, SidenavService, SnackBarService, SupportService, ThemeService, TimeZoneService, TitleService, acceptLanguageInterceptor, provideAngularServices };
1291
+ 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, EmploymentStatus, EnqueueExecutionRequest, EnumOption, ExecutionLogDto, FurnitureRequirement, Gender, GroupedViewingsByDate, Guarantor, IDynamicDialogConfig, InvoiceStats, OfferInvoiceOption, OfferSummary, OfferType, PaymentFrequency, PendingInvoice, PersonAddress, PropertyOfferItem, PropertyOfferItemMedia, PropertyOfferResponse, PropertyStats, RentalOfferTerms, SaleOfferDetails, SalePaymentMethod, ScheduleCron, ScheduleCronMeta, ScheduleOptionResponse, Tenant, UpcomingViewing, UpdateDefinitionRequest, UpdateScheduleRequest, VisaStatus };