@rolatech/angular-services 20.2.6-beta.1 → 20.2.7-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolatech/angular-services",
3
- "version": "20.2.6-beta.1",
3
+ "version": "20.2.7-beta.2",
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.6-beta.1",
15
+ "@rolatech/angular-common": "20.2.7-beta.2",
16
16
  "tslib": "^2.3.0"
17
17
  },
18
18
  "repository": {
@@ -830,6 +830,8 @@ declare class InvoiceService extends BaseService {
830
830
  me(options: any): Observable<any>;
831
831
  findPendingInvoices(options: any): Observable<any>;
832
832
  updateInvoice(invoiceId: string, data: any): Observable<any>;
833
+ updateLines(invoiceId: string, data: any): Observable<any>;
834
+ sendInvoice(invoiceId: string): Observable<any>;
833
835
  static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceService, never>;
834
836
  static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceService>;
835
837
  }
@@ -878,15 +880,19 @@ declare class PropertyOfferService extends BaseService {
878
880
  findOffersByAgent(options: any): Observable<any>;
879
881
  getOffer(offerId: any): Observable<any>;
880
882
  cancelOffer(id: string): Observable<any>;
883
+ underOffer(id: string): Observable<any>;
881
884
  acceptOffer(id: string): Observable<any>;
882
885
  rejectOffer(id: string, data: any): Observable<any>;
883
- referencesAccept(id: string): Observable<any>;
884
- referencesReject(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>;
885
890
  createHoldingDepositCheckout(offerId: string, data: any): Observable<any>;
886
891
  createSecurityDepositCheckout(offerId: string, data: any): Observable<any>;
887
892
  checkOfferPaymentStatus(offerId: any, sessionId: string): Observable<any>;
888
893
  offerTimeline(offerId: string): Observable<any>;
889
894
  updateOffer(offerId: string, data: any): Observable<any>;
895
+ updateInvoiceOption(offerId: string, data: any): Observable<any>;
890
896
  static ɵfac: i0.ɵɵFactoryDeclaration<PropertyOfferService, never>;
891
897
  static ɵprov: i0.ɵɵInjectableDeclaration<PropertyOfferService>;
892
898
  }
@@ -898,6 +904,202 @@ declare class PropertyViewingService extends BaseService {
898
904
  static ɵprov: i0.ɵɵInjectableDeclaration<PropertyViewingService>;
899
905
  }
900
906
 
907
+ /** Mirrors AbstractBaseEntity (common fields in your backend). */
908
+ interface BaseEntity {
909
+ id: string;
910
+ createdAt?: string;
911
+ updatedAt?: string;
912
+ version?: number;
913
+ }
914
+ /** ---- Enums ---- */
915
+ type AutomationExecutionStatus = 'QUEUED' | 'RUNNING' | 'SUCCEEDED' | 'FAILED' | 'CANCELLED';
916
+ type AutomationLogLevel = 'INFO' | 'WARN' | 'ERROR' | 'DEBUG';
917
+ type ScheduleCron = 'EVERY_5_MINUTES' | 'EVERY_15_MINUTES' | 'HOURLY' | 'DAILY' | 'WEEKLY';
918
+ /** ---- Entities ---- */
919
+ interface AutomationDefinition extends BaseEntity {
920
+ code: string;
921
+ name: string;
922
+ description?: string | null;
923
+ handlerKey: string;
924
+ defaultInputJson?: string | null;
925
+ enabled: boolean;
926
+ }
927
+ interface AutomationExecution extends BaseEntity {
928
+ definitionId: string;
929
+ scheduleId?: string | null;
930
+ status: AutomationExecutionStatus;
931
+ queuedAt?: string | null;
932
+ startedAt?: string | null;
933
+ finishedAt?: string | null;
934
+ processed: number;
935
+ total: number;
936
+ lastSeq: number;
937
+ inputJson?: string | null;
938
+ metadata?: Record<string, any> | null;
939
+ idempotencyKey?: string | null;
940
+ errorMessage?: string | null;
941
+ }
942
+ interface AutomationSchedule extends BaseEntity {
943
+ definitionId: string;
944
+ name: string;
945
+ schedule: ScheduleCron;
946
+ inputJson?: string | null;
947
+ enabled: boolean;
948
+ nextRunAt?: string | null;
949
+ lastRunAt?: string | null;
950
+ }
951
+ interface AutomationExecutionLog extends BaseEntity {
952
+ executionId: string;
953
+ level: AutomationLogLevel;
954
+ message: string;
955
+ }
956
+ /** ---- Optional: enum metadata for UI (label/description) ---- */
957
+ interface ScheduleCronMeta {
958
+ value: ScheduleCron;
959
+ label: string;
960
+ description: string;
961
+ }
962
+ declare const SCHEDULE_CRON_META: readonly ScheduleCronMeta[];
963
+
964
+ type ApiRequestOptions = Record<string, any>;
965
+ interface AutomationSummaryResponse {
966
+ [k: string]: any;
967
+ }
968
+ type AutomationDefinitionDto = AutomationDefinition;
969
+ interface CreateDefinitionRequest {
970
+ code: string;
971
+ name: string;
972
+ description?: string | null;
973
+ handlerKey: string;
974
+ defaultInputJson?: string | null;
975
+ enabled?: boolean;
976
+ }
977
+ interface UpdateDefinitionRequest {
978
+ name?: string;
979
+ description?: string | null;
980
+ handlerKey?: string;
981
+ defaultInputJson?: string | null;
982
+ enabled?: boolean;
983
+ }
984
+ interface AutomationExecutionDto extends AutomationExecution {
985
+ definitionCode?: string;
986
+ }
987
+ interface EnqueueExecutionRequest {
988
+ definitionCode: string;
989
+ inputJson?: string | null;
990
+ idempotencyKey?: string | null;
991
+ scheduleId?: string | null;
992
+ }
993
+ interface CancelStateResponse {
994
+ cancelRequested: boolean;
995
+ status: string;
996
+ }
997
+ interface ExecutionLogDto {
998
+ id: string;
999
+ executionId: string;
1000
+ level: string;
1001
+ message: string;
1002
+ createdAt?: string | null;
1003
+ }
1004
+ interface AutomationScheduleDto extends AutomationSchedule {
1005
+ definitionCode?: string;
1006
+ schedule: ScheduleCron;
1007
+ }
1008
+ interface ScheduleOptionResponse {
1009
+ code: string;
1010
+ value: ScheduleCron;
1011
+ label: string;
1012
+ description: string;
1013
+ }
1014
+ interface CreateScheduleRequest {
1015
+ definitionId: string;
1016
+ name: string;
1017
+ schedule: ScheduleCron;
1018
+ inputJson?: string | null;
1019
+ enabled?: boolean;
1020
+ }
1021
+ interface UpdateScheduleRequest {
1022
+ name?: string;
1023
+ schedule?: ScheduleCron;
1024
+ inputJson?: string | null;
1025
+ enabled?: boolean;
1026
+ }
1027
+
1028
+ declare class AutomationService extends BaseService {
1029
+ init(): void;
1030
+ summary(): Observable<any>;
1031
+ listDefinitions(options?: ApiRequestOptions, withCredentials?: boolean): Observable<ApiResponse<AutomationDefinitionDto[]>>;
1032
+ getDefinition(id: string, options?: ApiRequestOptions, withCredentials?: boolean): Observable<AutomationDefinitionDto>;
1033
+ createDefinition(req: CreateDefinitionRequest, withCredentials?: boolean): Observable<AutomationDefinitionDto>;
1034
+ updateDefinition(id: string, req: UpdateDefinitionRequest, withCredentials?: boolean): Observable<AutomationDefinitionDto>;
1035
+ /** Backend @DeleteMapping disables (soft delete). */
1036
+ deleteDefinition(id: string, withCredentials?: boolean): Observable<void>;
1037
+ listExecutions(options?: ApiRequestOptions, withCredentials?: boolean): Observable<ApiResponse<AutomationExecutionDto[]>>;
1038
+ getExecution(id: string, options?: ApiRequestOptions, withCredentials?: boolean): Observable<AutomationExecutionDto>;
1039
+ enqueueExecution(req: EnqueueExecutionRequest, withCredentials?: boolean): Observable<AutomationExecutionDto>;
1040
+ cancelExecution(id: string, withCredentials?: boolean): Observable<void>;
1041
+ cancelState(id: string, withCredentials?: boolean): Observable<CancelStateResponse>;
1042
+ /** GET /automations/executions/{id}/logs?after=...&limit=200 */
1043
+ listExecutionLogs(executionId: string, params?: {
1044
+ after?: string;
1045
+ limit?: number;
1046
+ }, withCredentials?: boolean): Observable<ExecutionLogDto[]>;
1047
+ listSchedules(options?: ApiRequestOptions, withCredentials?: boolean): Observable<ApiResponse<AutomationScheduleDto[]>>;
1048
+ getSchedule(id: string, options?: any, withCredentials?: boolean): Observable<AutomationScheduleDto>;
1049
+ scheduleOptions(withCredentials?: boolean): Observable<ScheduleOptionResponse[]>;
1050
+ createSchedule(req: CreateScheduleRequest, withCredentials?: boolean): Observable<AutomationScheduleDto>;
1051
+ updateSchedule(id: string, req: UpdateScheduleRequest, withCredentials?: boolean): Observable<AutomationScheduleDto>;
1052
+ enableSchedule(id: string, withCredentials?: boolean): Observable<AutomationScheduleDto>;
1053
+ disableSchedule(id: string, withCredentials?: boolean): Observable<AutomationScheduleDto>;
1054
+ deleteSchedule(id: string, withCredentials?: boolean): Observable<void>;
1055
+ runNowByDefinition(definitionCode: string, inputJson?: string | null, idempotencyKey?: string | null): Observable<AutomationExecutionDto>;
1056
+ runNowBySchedule(scheduleId: string, definitionCode: string, inputJson?: string | null): Observable<AutomationExecutionDto>;
1057
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutomationService, never>;
1058
+ static ɵprov: i0.ɵɵInjectableDeclaration<AutomationService>;
1059
+ }
1060
+
1061
+ interface EnumOption {
1062
+ value: string;
1063
+ label: string;
1064
+ }
1065
+
1066
+ declare class EnumCacheService {
1067
+ private api;
1068
+ private locale;
1069
+ private cache;
1070
+ options(resource: string, enumName: string): Observable<EnumOption[]>;
1071
+ clear(): void;
1072
+ static ɵfac: i0.ɵɵFactoryDeclaration<EnumCacheService, never>;
1073
+ static ɵprov: i0.ɵɵInjectableDeclaration<EnumCacheService>;
1074
+ }
1075
+
1076
+ declare class EnumApiClient {
1077
+ protected environment: any;
1078
+ private http;
1079
+ private locale;
1080
+ private baseUrl;
1081
+ /**
1082
+ * resource: "properties" | "billing" | ...
1083
+ * enumName: "AdverseCreditStatus" | "InvoiceLineType" | ...
1084
+ */
1085
+ getOptions(resource: string, enumName: string): Observable<EnumOption[]>;
1086
+ listEnums(resource: string): Observable<string[]>;
1087
+ static ɵfac: i0.ɵɵFactoryDeclaration<EnumApiClient, never>;
1088
+ static ɵprov: i0.ɵɵInjectableDeclaration<EnumApiClient>;
1089
+ }
1090
+
1091
+ declare class InvoiceLineService extends BaseService {
1092
+ init(): void;
1093
+ createByManager(data: any): Observable<any>;
1094
+ findByManager(options: any): Observable<ApiResponse<any>>;
1095
+ getInvoice(id: string): Observable<any>;
1096
+ me(options: any): Observable<any>;
1097
+ findPendingInvoices(options: any): Observable<any>;
1098
+ updateInvoice(invoiceId: string, data: any): Observable<any>;
1099
+ static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceLineService, never>;
1100
+ static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceLineService>;
1101
+ }
1102
+
901
1103
  declare class LoadingInterceptor {
902
1104
  loadingService: LoadingService;
903
1105
  activeRequests: number;
@@ -928,5 +1130,5 @@ declare const SERVICE_DIRECTIVES: Provider[];
928
1130
 
929
1131
  declare function provideAngularServices(): EnvironmentProviders;
930
1132
 
931
- export { AmenityService, BackButtonDirective, BaseService, BillingService, BookingService, BreadcrumbService, CartEventType, CartService, CategoryService, ConversationInitService, ConversationService, DialogComponent, DialogService, FacilityService, FeatureService, FloorplanService, FulfillmentService, HideFooterDirective, InventoryService, 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, SERVICE_DIRECTIVES, SidenavService, SnackBarService, SupportService, ThemeService, TimeZoneService, TitleService, acceptLanguageInterceptor, provideAngularServices };
932
- export type { ChatMessage, ConversationInitResponse, DialogData, GroupedViewingsByDate, IDynamicDialogConfig, InvoiceStats, PendingInvoice, PropertyStats, UpcomingViewing };
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 };