@almatar/smart-booking-dashboard 0.0.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.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +132 -0
  3. package/esm2022/almatar-smart-booking-dashboard.mjs +5 -0
  4. package/esm2022/lib/components/action-card/action-card.component.mjs +19 -0
  5. package/esm2022/lib/components/action-dialog/action-dialog.component.mjs +177 -0
  6. package/esm2022/lib/components/action-grid/action-grid.component.mjs +18 -0
  7. package/esm2022/lib/components/add-note-dialog/add-note-dialog.component.mjs +62 -0
  8. package/esm2022/lib/components/booking-input/booking-input.component.mjs +43 -0
  9. package/esm2022/lib/components/cancel-dialog/cancel-dialog.component.mjs +1441 -0
  10. package/esm2022/lib/components/data-search/data-search.component.mjs +84 -0
  11. package/esm2022/lib/components/flight-itinerary-card/flight-itinerary-card.component.mjs +73 -0
  12. package/esm2022/lib/components/result-panel/result-panel.component.mjs +46 -0
  13. package/esm2022/lib/components/workflow-actions/workflow-actions.component.mjs +19 -0
  14. package/esm2022/lib/config/dashboard.config.mjs +16 -0
  15. package/esm2022/lib/config/flight-actions.config.mjs +906 -0
  16. package/esm2022/lib/config/hotel-actions.config.mjs +53 -0
  17. package/esm2022/lib/config/labels.ar.mjs +116 -0
  18. package/esm2022/lib/models/action.types.mjs +2 -0
  19. package/esm2022/lib/models/booking.types.mjs +2 -0
  20. package/esm2022/lib/pages/smart-booking-dashboard/smart-booking-dashboard.component.mjs +145 -0
  21. package/esm2022/lib/services/booking.service.mjs +65 -0
  22. package/esm2022/lib/services/toast.service.mjs +19 -0
  23. package/esm2022/lib/smart-booking-dashboard.module.mjs +17 -0
  24. package/esm2022/lib/smart-booking-dashboard.routes.mjs +7 -0
  25. package/esm2022/public-api.mjs +9 -0
  26. package/fesm2022/almatar-smart-booking-dashboard.mjs +3259 -0
  27. package/fesm2022/almatar-smart-booking-dashboard.mjs.map +1 -0
  28. package/index.d.ts +5 -0
  29. package/lib/components/action-card/action-card.component.d.ts +10 -0
  30. package/lib/components/action-dialog/action-dialog.component.d.ts +26 -0
  31. package/lib/components/action-grid/action-grid.component.d.ts +10 -0
  32. package/lib/components/add-note-dialog/add-note-dialog.component.d.ts +25 -0
  33. package/lib/components/booking-input/booking-input.component.d.ts +23 -0
  34. package/lib/components/cancel-dialog/cancel-dialog.component.d.ts +395 -0
  35. package/lib/components/data-search/data-search.component.d.ts +21 -0
  36. package/lib/components/flight-itinerary-card/flight-itinerary-card.component.d.ts +17 -0
  37. package/lib/components/result-panel/result-panel.component.d.ts +14 -0
  38. package/lib/components/workflow-actions/workflow-actions.component.d.ts +7 -0
  39. package/lib/config/dashboard.config.d.ts +15 -0
  40. package/lib/config/flight-actions.config.d.ts +2 -0
  41. package/lib/config/hotel-actions.config.d.ts +2 -0
  42. package/lib/config/labels.ar.d.ts +2 -0
  43. package/lib/models/action.types.d.ts +34 -0
  44. package/lib/models/booking.types.d.ts +6 -0
  45. package/lib/pages/smart-booking-dashboard/smart-booking-dashboard.component.d.ts +43 -0
  46. package/lib/services/booking.service.d.ts +22 -0
  47. package/lib/services/toast.service.d.ts +10 -0
  48. package/lib/smart-booking-dashboard.module.d.ts +7 -0
  49. package/lib/smart-booking-dashboard.routes.d.ts +2 -0
  50. package/package.json +50 -0
  51. package/public-api.d.ts +5 -0
@@ -0,0 +1,43 @@
1
+ import { ProductType } from '../../models/booking.types';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SmartBookingDashboardComponent {
4
+ private bookingService;
5
+ private toast;
6
+ product: import("@angular/core").WritableSignal<ProductType>;
7
+ bookingId: import("@angular/core").WritableSignal<string>;
8
+ bookingStatus: import("@angular/core").WritableSignal<"error" | "idle" | "loading" | "success">;
9
+ bookingData: import("@angular/core").WritableSignal<any>;
10
+ cancelDialogOpen: import("@angular/core").WritableSignal<boolean>;
11
+ actionDialogOpen: import("@angular/core").WritableSignal<boolean>;
12
+ addNoteDialogOpen: import("@angular/core").WritableSignal<boolean>;
13
+ selectedActionKey: import("@angular/core").WritableSignal<string>;
14
+ activeContextTab: import("@angular/core").WritableSignal<"notes" | "changes">;
15
+ availableActions: import("@angular/core").Signal<import("../../models/action.types").ActionConfig[]>;
16
+ dataVerified: import("@angular/core").Signal<boolean>;
17
+ cancelPnrInfo: import("@angular/core").Signal<{
18
+ pnr?: string;
19
+ LegDirectionality?: string;
20
+ }[]>;
21
+ bookingHistory: import("@angular/core").Signal<any[]>;
22
+ bookingNotes: import("@angular/core").Signal<any[]>;
23
+ historyGroups: import("@angular/core").Signal<{
24
+ changedBy: string;
25
+ changedAt: string;
26
+ entries: {
27
+ field: string;
28
+ from: string;
29
+ to: string;
30
+ }[];
31
+ }[]>;
32
+ fmtNoteDate(date: {
33
+ sec: number;
34
+ usec?: number;
35
+ }): string;
36
+ formatField(field: string): string;
37
+ fmtDate(dt: string): string;
38
+ openAction(key: string): void;
39
+ onKeydown(event: KeyboardEvent): void;
40
+ lookupBooking(): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartBookingDashboardComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartBookingDashboardComponent, "app-smart-booking-dashboard", never, {}, {}, never, never, true, never>;
43
+ }
@@ -0,0 +1,22 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ type ApiResponse = any;
4
+ export declare class SbdBookingService {
5
+ private http;
6
+ private config;
7
+ private base;
8
+ getBooking(id: string, product: 'flight' | 'hotel', fields?: string | string[], language?: 'en' | 'ar'): Observable<{
9
+ data: ApiResponse;
10
+ elapsedMs: number;
11
+ }>;
12
+ resendTicket(id: string): Observable<ApiResponse>;
13
+ getRefundDetails(id: string, product?: 'flight' | 'hotel', language?: 'en' | 'ar'): Observable<ApiResponse>;
14
+ addNote(id: string, product: 'flight' | 'hotel', message: string, action?: 'GENERAL' | 'FEEDBACK' | 'REMARK'): Observable<ApiResponse>;
15
+ confirmCancel(id: string, product?: 'flight' | 'hotel', legInfo?: string[], selectedSource?: string, preferredRefundMethod?: 'wallet' | 'originalPaymentMethod' | 'split', splitAmounts?: {
16
+ walletRefundAmount: number;
17
+ totalCardRefundAmount: number;
18
+ }): Observable<ApiResponse>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<SbdBookingService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<SbdBookingService>;
21
+ }
22
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SbdToastService {
3
+ private toastr;
4
+ success(msg: string): void;
5
+ error(msg: string): void;
6
+ info(msg: string): void;
7
+ warning(msg: string): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SbdToastService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<SbdToastService>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
3
+ export declare class SmartBookingDashboardModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartBookingDashboardModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SmartBookingDashboardModule, never, [typeof i1.RouterModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<SmartBookingDashboardModule>;
7
+ }
@@ -0,0 +1,2 @@
1
+ import { Routes } from '@angular/router';
2
+ export declare const smartBookingDashboardRoutes: Routes;
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@almatar/smart-booking-dashboard",
3
+ "version": "0.0.1",
4
+ "description": "Almatar Smart Booking Dashboard (Angular library)",
5
+ "license": "MIT",
6
+ "author": "Almatar",
7
+ "keywords": [
8
+ "angular",
9
+ "almatar",
10
+ "booking",
11
+ "dashboard",
12
+ "backoffice"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://git.general.mtcloud.zone/frontend/smart-booking-dashboard.git"
17
+ },
18
+ "homepage": "https://git.general.mtcloud.zone/frontend/smart-booking-dashboard",
19
+ "publishConfig": {
20
+ "access": "restricted"
21
+ },
22
+ "peerDependencies": {
23
+ "@angular/animations": "^18.0.0",
24
+ "@angular/common": "^18.0.0",
25
+ "@angular/core": "^18.0.0",
26
+ "@angular/forms": "^18.0.0",
27
+ "@angular/router": "^18.0.0",
28
+ "@ng-select/ng-select": "^13.7.0",
29
+ "ngx-toastr": "^17.0.2",
30
+ "primeicons": "^4.0.0",
31
+ "rxjs": "^7.8.0"
32
+ },
33
+ "dependencies": {
34
+ "tslib": "^2.3.0"
35
+ },
36
+ "sideEffects": false,
37
+ "module": "fesm2022/almatar-smart-booking-dashboard.mjs",
38
+ "typings": "index.d.ts",
39
+ "exports": {
40
+ "./package.json": {
41
+ "default": "./package.json"
42
+ },
43
+ ".": {
44
+ "types": "./index.d.ts",
45
+ "esm2022": "./esm2022/almatar-smart-booking-dashboard.mjs",
46
+ "esm": "./esm2022/almatar-smart-booking-dashboard.mjs",
47
+ "default": "./fesm2022/almatar-smart-booking-dashboard.mjs"
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,5 @@
1
+ export { SmartBookingDashboardComponent } from './lib/pages/smart-booking-dashboard/smart-booking-dashboard.component';
2
+ export { smartBookingDashboardRoutes } from './lib/smart-booking-dashboard.routes';
3
+ export { SmartBookingDashboardModule } from './lib/smart-booking-dashboard.module';
4
+ export { SBD_CONFIG, SBD_DEFAULT_CONFIG, provideSmartBookingDashboard } from './lib/config/dashboard.config';
5
+ export type { SbdConfig } from './lib/config/dashboard.config';