@rolatech/angular-services 20.2.7-beta.2 → 20.2.8-beta.10

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.2",
3
+ "version": "20.2.8-beta.10",
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.2",
15
+ "@rolatech/angular-common": "20.2.8-beta.10",
16
16
  "tslib": "^2.3.0"
17
17
  },
18
18
  "repository": {
@@ -168,6 +168,170 @@ 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 GuarantorType = 'INDIVIDUAL' | 'COMPANY';
176
+ type EmploymentStatus = 'EMPLOYED' | 'SELF_EMPLOYED' | 'UNEMPLOYED';
177
+ type VisaStatus = 'CITIZEN' | 'VISA_HOLDER' | 'WAITING_FOR_VISA' | 'NOT_YET_APPLIED_FOR_VISA';
178
+ type VisaShareCodeStatus = 'WAITING_FOR_SHARECODE' | 'OTHER';
179
+ type AdverseCreditStatus = 'NONE' | 'ACTIVE_CCJ' | 'SATISFIED_CCJ' | 'DEBT_MANAGEMENT_PLAN' | 'LOW_CREDIT_SCORE' | 'OTHER';
180
+ type Gender = 'MALE' | 'FEMALE' | 'OTHER' | 'PREFER_NOT_TO_SAY';
181
+ type SalePaymentMethod = 'CASH' | 'MORTGAGE';
182
+ type OfferInvoiceOption = 'COMBINED' | 'SEPARATE';
183
+ type GuarantorRelationshipType = 'FAMILY' | 'FRIEND' | 'GUARANTOR_SERVICE' | 'OTHER';
184
+ declare enum PropertyOfferStatus {
185
+ SUBMITTED = "Submitted",
186
+ ACCEPTED = "Accepted",
187
+ COUNTERED = "Countered",
188
+ REJECTED = "Rejected",
189
+ UNDER_OFFER = "Under offer",
190
+ HOLDING_DEPOSIT_PENDING = "Holding deposit pending",
191
+ HOLDING_DEPOSIT_PAID = "Holding deposit paid",
192
+ REFERENCING = "Referencing",
193
+ REFERENCES_PASSED = "References passed",
194
+ REFERENCES_FAILED = "References failed",
195
+ CONTRACT_PENDING = "Contract pending",
196
+ CONTRACT_SIGNED = "Contract signed",
197
+ CONTRACT_FAILED = "Contract failed",
198
+ SECURITY_DEPOSIT_PENDING = "Security deposit pending",
199
+ SECURITY_DEPOSIT_PAID = "Security deposit paid",
200
+ FIRST_RENT_PENDING = "First rent pending",
201
+ MOVE_IN_PAYMENT_PAID = "Move-in payment paid",
202
+ COMPLETED = "Completed",
203
+ FAILED = "Failed",
204
+ WITHDRAWN = "Withdrawn",
205
+ EXPIRED = "Expired",
206
+ CANCELLED = "Cancelled"
207
+ }
208
+ interface OfferSummary {
209
+ id: string;
210
+ offerType: OfferType;
211
+ status: PropertyOfferStatus;
212
+ propertyId: string;
213
+ }
214
+ interface RentalOfferTerms {
215
+ amount: number | null;
216
+ moveInDate: string | null;
217
+ paymentFrequency: PaymentFrequency | null;
218
+ tenancyLengthMonths: number | null;
219
+ breakClauseMonths: number | null;
220
+ pets: string[] | [];
221
+ smoker: boolean | null;
222
+ furnitureRequirement: FurnitureRequirement | null;
223
+ additionalRequests: string | null;
224
+ }
225
+ interface PersonAddress {
226
+ line1: string | null;
227
+ line2: string | null;
228
+ city: string | null;
229
+ postcode: string | null;
230
+ country: string | null;
231
+ }
232
+ interface Guarantor {
233
+ fullName: string | null;
234
+ dob: string | null;
235
+ gender: Gender | null;
236
+ nationality: string | null;
237
+ phone: string | null;
238
+ email: string | null;
239
+ address: PersonAddress;
240
+ type: GuarantorType;
241
+ employmentStatus: EmploymentStatus | null;
242
+ companyName: string | null;
243
+ jobTitle: string | null;
244
+ annualSalary: number | null;
245
+ companyNumber: string | null;
246
+ taxReturnSubmitted: boolean | null;
247
+ additionalFinancialSupport: string | null;
248
+ relationshipType: GuarantorRelationshipType;
249
+ relationshipOther?: string | null;
250
+ }
251
+ interface Tenant {
252
+ id: string;
253
+ fullName: string | null;
254
+ dob: string | null;
255
+ gender: Gender | null;
256
+ nationality: string | null;
257
+ phone: string | null;
258
+ email: string | null;
259
+ address: PersonAddress;
260
+ adverseCreditStatus: AdverseCreditStatus | null;
261
+ applicantType: ApplicantType | null;
262
+ visaStatus: VisaStatus | null;
263
+ visaShareCodeStatus: VisaShareCodeStatus;
264
+ visaShareCodeOther: string;
265
+ employmentStatus: EmploymentStatus | null;
266
+ companyName: string | null;
267
+ jobTitle: string | null;
268
+ annualSalary: number | null;
269
+ companyNumber: string | null;
270
+ taxReturnSubmitted: boolean | null;
271
+ corporateCompanyName: string | null;
272
+ corporateCompanyNumber: string | null;
273
+ corporateJobTitle: string | null;
274
+ universityName: string | null;
275
+ courseTitle: string | null;
276
+ yearOfStudy: number | null;
277
+ guarantor: Guarantor;
278
+ }
279
+ interface SaleOfferDetails {
280
+ amount: number | null;
281
+ buyerName: string | null;
282
+ email: string | null;
283
+ phone: string | null;
284
+ paymentMethod: SalePaymentMethod | null;
285
+ proposedExchangeDate: string | null;
286
+ solicitorCompanyName: string | null;
287
+ }
288
+ interface CreateRentalOfferPayload {
289
+ propertyId: string;
290
+ rental: RentalOfferTerms;
291
+ tenants: Tenant[];
292
+ }
293
+ interface CreateSaleOfferPayload {
294
+ propertyId: string;
295
+ sale: SaleOfferDetails;
296
+ }
297
+ interface PropertyOfferResponse {
298
+ id: string;
299
+ userId: string;
300
+ agentId: string;
301
+ type: OfferType;
302
+ status: PropertyOfferStatus;
303
+ propertyId: string;
304
+ rentalTerms?: RentalOfferTerms;
305
+ tenants?: Tenant[];
306
+ sale?: SaleOfferDetails;
307
+ item: PropertyOfferItem;
308
+ invoiceOption: OfferInvoiceOption;
309
+ }
310
+ interface PropertyOfferItem {
311
+ propertyId: string;
312
+ title: string;
313
+ description: string;
314
+ amount: number;
315
+ bedrooms: number;
316
+ bathrooms: number;
317
+ receptions: number;
318
+ agentId: string;
319
+ media: PropertyOfferItemMedia[];
320
+ }
321
+ interface PropertyOfferItemMedia {
322
+ id: string;
323
+ url: string;
324
+ alt: string;
325
+ width: number;
326
+ height: number;
327
+ uuid: string;
328
+ }
329
+ interface CopyTextResponse {
330
+ offerId: string;
331
+ redactContact: boolean;
332
+ text: string;
333
+ }
334
+
171
335
  declare class DialogService {
172
336
  dialog: MatDialog;
173
337
  dialogRef: MatDialogRef<DialogComponent>;
@@ -871,39 +1035,6 @@ declare class InvoiceStatsService extends BaseService {
871
1035
  static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceStatsService>;
872
1036
  }
873
1037
 
874
- declare class PropertyOfferService extends BaseService {
875
- propertyService: PropertyService;
876
- init(): void;
877
- makeOffer(propertyId: string, data: any): Observable<any>;
878
- findOffers(options: any): Observable<any>;
879
- findOffersByUser(options: any): Observable<any>;
880
- findOffersByAgent(options: any): Observable<any>;
881
- getOffer(offerId: any): Observable<any>;
882
- cancelOffer(id: string): Observable<any>;
883
- underOffer(id: string): Observable<any>;
884
- acceptOffer(id: string): Observable<any>;
885
- rejectOffer(id: string, data: any): Observable<any>;
886
- referencesPassed(id: string): Observable<any>;
887
- referencesFailed(id: string, data: any): Observable<any>;
888
- complete(id: string): Observable<any>;
889
- fail(id: string): Observable<any>;
890
- createHoldingDepositCheckout(offerId: string, data: any): Observable<any>;
891
- createSecurityDepositCheckout(offerId: string, data: any): Observable<any>;
892
- checkOfferPaymentStatus(offerId: any, sessionId: string): Observable<any>;
893
- offerTimeline(offerId: string): Observable<any>;
894
- updateOffer(offerId: string, data: any): Observable<any>;
895
- updateInvoiceOption(offerId: string, data: any): Observable<any>;
896
- static ɵfac: i0.ɵɵFactoryDeclaration<PropertyOfferService, never>;
897
- static ɵprov: i0.ɵɵInjectableDeclaration<PropertyOfferService>;
898
- }
899
-
900
- declare class PropertyViewingService extends BaseService {
901
- propertyService: PropertyService;
902
- init(): void;
903
- static ɵfac: i0.ɵɵFactoryDeclaration<PropertyViewingService, never>;
904
- static ɵprov: i0.ɵɵInjectableDeclaration<PropertyViewingService>;
905
- }
906
-
907
1038
  /** Mirrors AbstractBaseEntity (common fields in your backend). */
908
1039
  interface BaseEntity {
909
1040
  id: string;
@@ -1025,6 +1156,65 @@ interface UpdateScheduleRequest {
1025
1156
  enabled?: boolean;
1026
1157
  }
1027
1158
 
1159
+ interface EnumOption {
1160
+ value: string;
1161
+ label: string;
1162
+ }
1163
+
1164
+ type ReferenceProvider = 'GOODLORD' | 'LET_ALLIANCE' | 'HOMELET' | 'OTHER';
1165
+ interface OfferReferencingPatchPayload {
1166
+ referenceProvider: ReferenceProvider;
1167
+ referenceProviderOther?: string | null;
1168
+ }
1169
+ interface OfferReferencingView {
1170
+ referenceProvider: ReferenceProvider | null;
1171
+ referenceProviderOther: string | null;
1172
+ updatedBy?: string | null;
1173
+ updatedAt?: string | null;
1174
+ }
1175
+
1176
+ declare class PropertyOfferService extends BaseService {
1177
+ propertyService: PropertyService;
1178
+ init(): void;
1179
+ makeOffer(propertyId: string, data: any): Observable<any>;
1180
+ findOffers(options: any): Observable<any>;
1181
+ search<T = any>(rawParams: Record<string, any>): Observable<ApiResponse<T>>;
1182
+ search1(options: any): Observable<any>;
1183
+ findOffersByUser(options: any): Observable<any>;
1184
+ findOffersByAgent(options: any): Observable<any>;
1185
+ getOffer(offerId: any): Observable<ApiResponse<PropertyOfferResponse>>;
1186
+ cancelOffer(id: string): Observable<any>;
1187
+ underOffer(id: string): Observable<any>;
1188
+ acceptOffer(id: string): Observable<any>;
1189
+ rejectOffer(id: string, data: any): Observable<any>;
1190
+ referencesPassed(id: string): Observable<any>;
1191
+ referencesFailed(id: string, data: any): Observable<any>;
1192
+ getReference(offerId: string): Observable<ApiResponse<OfferReferencingView>>;
1193
+ updateReferenceProvider(offerId: string, payload: OfferReferencingPatchPayload): Observable<ApiResponse<OfferReferencingView>>;
1194
+ complete(id: string): Observable<any>;
1195
+ fail(id: string): Observable<any>;
1196
+ createHoldingDepositCheckout(offerId: string, data: any): Observable<any>;
1197
+ createSecurityDepositCheckout(offerId: string, data: any): Observable<any>;
1198
+ checkOfferPaymentStatus(offerId: any, sessionId: string): Observable<any>;
1199
+ offerTimeline(offerId: string): Observable<any>;
1200
+ updateOffer(offerId: string, data: any): Observable<any>;
1201
+ updateInvoiceOption(offerId: string, data: any): Observable<any>;
1202
+ createRental(payload: CreateRentalOfferPayload): Observable<ApiResponse<PropertyOfferResponse>>;
1203
+ createSale(payload: CreateSaleOfferPayload): Observable<ApiResponse<PropertyOfferResponse>>;
1204
+ getCopyText(id: string, redactContact?: boolean): Observable<ApiResponse<CopyTextResponse>>;
1205
+ stripUndefined<T extends Record<string, any>>(obj: T): Partial<T>;
1206
+ isEmptyFilter(params: Record<string, any>, ignoreKeys?: string[]): boolean;
1207
+ static ɵfac: i0.ɵɵFactoryDeclaration<PropertyOfferService, never>;
1208
+ static ɵprov: i0.ɵɵInjectableDeclaration<PropertyOfferService>;
1209
+ }
1210
+
1211
+ declare class PropertyViewingService extends BaseService {
1212
+ propertyService: PropertyService;
1213
+ init(): void;
1214
+ static ɵfac: i0.ɵɵFactoryDeclaration<PropertyViewingService, never>;
1215
+ static ɵprov: i0.ɵɵInjectableDeclaration<PropertyViewingService>;
1216
+ }
1217
+
1028
1218
  declare class AutomationService extends BaseService {
1029
1219
  init(): void;
1030
1220
  summary(): Observable<any>;
@@ -1058,11 +1248,6 @@ declare class AutomationService extends BaseService {
1058
1248
  static ɵprov: i0.ɵɵInjectableDeclaration<AutomationService>;
1059
1249
  }
1060
1250
 
1061
- interface EnumOption {
1062
- value: string;
1063
- label: string;
1064
- }
1065
-
1066
1251
  declare class EnumCacheService {
1067
1252
  private api;
1068
1253
  private locale;
@@ -1130,5 +1315,5 @@ declare const SERVICE_DIRECTIVES: Provider[];
1130
1315
 
1131
1316
  declare function provideAngularServices(): EnvironmentProviders;
1132
1317
 
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 };
1318
+ 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 };
1319
+ 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, GuarantorRelationshipType, GuarantorType, IDynamicDialogConfig, InvoiceStats, OfferInvoiceOption, OfferReferencingPatchPayload, OfferReferencingView, OfferSummary, OfferType, PaymentFrequency, PendingInvoice, PersonAddress, PropertyOfferItem, PropertyOfferItemMedia, PropertyOfferResponse, PropertyStats, ReferenceProvider, RentalOfferTerms, SaleOfferDetails, SalePaymentMethod, ScheduleCron, ScheduleCronMeta, ScheduleOptionResponse, Tenant, UpcomingViewing, UpdateDefinitionRequest, UpdateScheduleRequest, VisaShareCodeStatus, VisaStatus };