@rolatech/angular-services 19.0.0-beta.16 → 19.0.0-beta.18
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/fesm2022/rolatech-angular-services.mjs +560 -79
- package/fesm2022/rolatech-angular-services.mjs.map +1 -1
- package/lib/services/amenity.service.d.ts +7 -0
- package/lib/services/booking.service.d.ts +19 -0
- package/lib/services/facility.service.d.ts +7 -0
- package/lib/services/index.d.ts +7 -1
- package/lib/services/order.service.d.ts +1 -0
- package/lib/services/property.service.d.ts +41 -0
- package/lib/services/resource-category.service.d.ts +10 -0
- package/lib/services/resource.service.d.ts +38 -0
- package/package.json +2 -2
|
@@ -73,10 +73,10 @@ class DialogComponent {
|
|
|
73
73
|
confirm() {
|
|
74
74
|
this.close(this.result || true);
|
|
75
75
|
}
|
|
76
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
77
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.4", type: DialogComponent, isStandalone: true, selector: "rolatech-dialog", host: { listeners: { "keydown.esc": "onEsc()" } }, viewQueries: [{ propertyName: "componentRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: "<div class=\"min-w-[320px]\">\n <h1 class=\"text-xl\" mat-dialog-title>{{ data.title }}</h1>\n <mat-dialog-content>\n <div>\n <p>{{ data.message }}</p>\n <ng-template #container></ng-template>\n <!-- <ng-container #container></ng-container> -->\n </div>\n </mat-dialog-content>\n <div class=\"flex-1\"></div>\n <mat-dialog-actions>\n <button mat-button (click)=\"close()\">{{ data.cancelText ? data.cancelText : 'Cancel' }}</button>\n <button mat-flat-button class=\"w-20\" (click)=\"confirm()\">{{ data.confirmText ? data.confirmText : 'Ok' }}</button>\n </mat-dialog-actions>\n <!-- <div class=\"flex justify-end items-center p-2 gap-3\">\n <a mat-button (click)=\"cancel()\">{{ data.cancelText ? data.cancelText : 'Cancel' }}</a>\n <a mat-flat-button class=\"w-20\" (click)=\"confirm()\">{{ data.confirmText ? data.confirmText : 'Ok' }}</a>\n </div> -->\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] });
|
|
78
78
|
}
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DialogComponent, decorators: [{
|
|
80
80
|
type: Component,
|
|
81
81
|
args: [{ selector: 'rolatech-dialog', imports: [MatButtonModule, MatDialogActions, MatDialogTitle, MatDialogContent], template: "<div class=\"min-w-[320px]\">\n <h1 class=\"text-xl\" mat-dialog-title>{{ data.title }}</h1>\n <mat-dialog-content>\n <div>\n <p>{{ data.message }}</p>\n <ng-template #container></ng-template>\n <!-- <ng-container #container></ng-container> -->\n </div>\n </mat-dialog-content>\n <div class=\"flex-1\"></div>\n <mat-dialog-actions>\n <button mat-button (click)=\"close()\">{{ data.cancelText ? data.cancelText : 'Cancel' }}</button>\n <button mat-flat-button class=\"w-20\" (click)=\"confirm()\">{{ data.confirmText ? data.confirmText : 'Ok' }}</button>\n </mat-dialog-actions>\n <!-- <div class=\"flex justify-end items-center p-2 gap-3\">\n <a mat-button (click)=\"cancel()\">{{ data.cancelText ? data.cancelText : 'Cancel' }}</a>\n <a mat-flat-button class=\"w-20\" (click)=\"confirm()\">{{ data.confirmText ? data.confirmText : 'Ok' }}</a>\n </div> -->\n</div>\n" }]
|
|
82
82
|
}], propDecorators: { onEsc: [{
|
|
@@ -132,10 +132,10 @@ class BaseService {
|
|
|
132
132
|
withCredentials,
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
136
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BaseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
136
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
137
137
|
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BaseService, decorators: [{
|
|
139
139
|
type: Injectable,
|
|
140
140
|
args: [{
|
|
141
141
|
providedIn: 'root',
|
|
@@ -307,10 +307,10 @@ class ProductService extends BaseService {
|
|
|
307
307
|
withCredentials: true,
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
311
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
311
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ProductService, providedIn: 'root' });
|
|
312
312
|
}
|
|
313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ProductService, decorators: [{
|
|
314
314
|
type: Injectable,
|
|
315
315
|
args: [{
|
|
316
316
|
providedIn: 'root',
|
|
@@ -383,10 +383,10 @@ class CartService extends BaseService {
|
|
|
383
383
|
withCredentials: true,
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
387
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
386
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CartService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
387
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CartService, providedIn: 'root' });
|
|
388
388
|
}
|
|
389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: CartService, decorators: [{
|
|
390
390
|
type: Injectable,
|
|
391
391
|
args: [{
|
|
392
392
|
providedIn: 'root',
|
|
@@ -429,10 +429,10 @@ class NavigationService {
|
|
|
429
429
|
}
|
|
430
430
|
return '';
|
|
431
431
|
}
|
|
432
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
433
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
432
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
433
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NavigationService, providedIn: 'root' });
|
|
434
434
|
}
|
|
435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NavigationService, decorators: [{
|
|
436
436
|
type: Injectable,
|
|
437
437
|
args: [{
|
|
438
438
|
providedIn: 'root',
|
|
@@ -455,10 +455,10 @@ class DialogService {
|
|
|
455
455
|
confirmed() {
|
|
456
456
|
return this.dialogRef.afterClosed().pipe(take(1), map((res) => res));
|
|
457
457
|
}
|
|
458
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
459
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
458
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
459
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DialogService });
|
|
460
460
|
}
|
|
461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DialogService, decorators: [{
|
|
462
462
|
type: Injectable
|
|
463
463
|
}] });
|
|
464
464
|
|
|
@@ -479,10 +479,10 @@ class LoadingService {
|
|
|
479
479
|
async dismiss() {
|
|
480
480
|
this.isLoading = false;
|
|
481
481
|
}
|
|
482
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
483
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
482
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: LoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
483
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: LoadingService, providedIn: 'root' });
|
|
484
484
|
}
|
|
485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: LoadingService, decorators: [{
|
|
486
486
|
type: Injectable,
|
|
487
487
|
args: [{
|
|
488
488
|
providedIn: 'root',
|
|
@@ -530,10 +530,10 @@ class MediaService extends BaseService {
|
|
|
530
530
|
getImageInfo(url) {
|
|
531
531
|
return this.http.get(`${url}?imageInfo`);
|
|
532
532
|
}
|
|
533
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
534
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
533
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: MediaService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
534
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: MediaService, providedIn: 'root' });
|
|
535
535
|
}
|
|
536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: MediaService, decorators: [{
|
|
537
537
|
type: Injectable,
|
|
538
538
|
args: [{
|
|
539
539
|
providedIn: 'root',
|
|
@@ -549,10 +549,10 @@ class LayoutService {
|
|
|
549
549
|
.observe([Breakpoints.Small, Breakpoints.HandsetPortrait])
|
|
550
550
|
.pipe(map$1((result) => result.matches), shareReplay());
|
|
551
551
|
}
|
|
552
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
553
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
552
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: LayoutService, deps: [{ token: i1$1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
553
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: LayoutService });
|
|
554
554
|
}
|
|
555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: LayoutService, decorators: [{
|
|
556
556
|
type: Injectable
|
|
557
557
|
}], ctorParameters: () => [{ type: i1$1.BreakpointObserver }] });
|
|
558
558
|
|
|
@@ -564,10 +564,10 @@ class SnackBarService {
|
|
|
564
564
|
dismiss() {
|
|
565
565
|
this.snackBar.dismiss();
|
|
566
566
|
}
|
|
567
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
568
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
567
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SnackBarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
568
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SnackBarService });
|
|
569
569
|
}
|
|
570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SnackBarService, decorators: [{
|
|
571
571
|
type: Injectable
|
|
572
572
|
}] });
|
|
573
573
|
|
|
@@ -632,10 +632,10 @@ class SupportService {
|
|
|
632
632
|
withCredentials: true,
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
636
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
635
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SupportService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
636
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SupportService, providedIn: 'root' });
|
|
637
637
|
}
|
|
638
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SupportService, decorators: [{
|
|
639
639
|
type: Injectable,
|
|
640
640
|
args: [{
|
|
641
641
|
providedIn: 'root',
|
|
@@ -663,10 +663,10 @@ class BreadcrumbService {
|
|
|
663
663
|
relativeTo: route,
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
667
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
666
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BreadcrumbService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
667
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BreadcrumbService, providedIn: 'root' });
|
|
668
668
|
}
|
|
669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BreadcrumbService, decorators: [{
|
|
670
670
|
type: Injectable,
|
|
671
671
|
args: [{
|
|
672
672
|
providedIn: 'root',
|
|
@@ -698,10 +698,10 @@ class SidenavService {
|
|
|
698
698
|
this.isCollaped = !this.isMobile && !this.sidenav?.opened;
|
|
699
699
|
}
|
|
700
700
|
lists() { }
|
|
701
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
702
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
701
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SidenavService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
702
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SidenavService });
|
|
703
703
|
}
|
|
704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
704
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: SidenavService, decorators: [{
|
|
705
705
|
type: Injectable
|
|
706
706
|
}], ctorParameters: () => [] });
|
|
707
707
|
|
|
@@ -739,10 +739,10 @@ class ThemeService {
|
|
|
739
739
|
setDarkTheme(isDarkTheme) {
|
|
740
740
|
this.darkTheme.next(isDarkTheme);
|
|
741
741
|
}
|
|
742
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
743
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
742
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
743
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ThemeService, providedIn: 'root' });
|
|
744
744
|
}
|
|
745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ThemeService, decorators: [{
|
|
746
746
|
type: Injectable,
|
|
747
747
|
args: [{
|
|
748
748
|
providedIn: 'root',
|
|
@@ -754,6 +754,11 @@ class OrderService extends BaseService {
|
|
|
754
754
|
this.endpoint = 'orders';
|
|
755
755
|
super.init();
|
|
756
756
|
}
|
|
757
|
+
createPaymentIntent(id) {
|
|
758
|
+
return this.http.post(`${this.actionUrl}/${id}/create-payment-intent`, {}, {
|
|
759
|
+
withCredentials: true,
|
|
760
|
+
});
|
|
761
|
+
}
|
|
757
762
|
by(options) {
|
|
758
763
|
return this.http.get(`${this.actionUrl}/items/by`, {
|
|
759
764
|
params: options,
|
|
@@ -835,10 +840,10 @@ class OrderService extends BaseService {
|
|
|
835
840
|
withCredentials: true,
|
|
836
841
|
});
|
|
837
842
|
}
|
|
838
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
839
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
843
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OrderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
844
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OrderService, providedIn: 'root' });
|
|
840
845
|
}
|
|
841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
846
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OrderService, decorators: [{
|
|
842
847
|
type: Injectable,
|
|
843
848
|
args: [{
|
|
844
849
|
providedIn: 'root',
|
|
@@ -920,10 +925,10 @@ class InventoryService extends BaseService {
|
|
|
920
925
|
adjustStocksByLocationId(data) {
|
|
921
926
|
return this.http.put(`${this.actionUrl}/levels/adjust`, data, { withCredentials: true });
|
|
922
927
|
}
|
|
923
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
924
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
928
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: InventoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
929
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: InventoryService, providedIn: 'root' });
|
|
925
930
|
}
|
|
926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: InventoryService, decorators: [{
|
|
927
932
|
type: Injectable,
|
|
928
933
|
args: [{
|
|
929
934
|
providedIn: 'root',
|
|
@@ -935,10 +940,10 @@ class NotificationStore {
|
|
|
935
940
|
getCount() {
|
|
936
941
|
return this.$count.asObservable();
|
|
937
942
|
}
|
|
938
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
939
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
943
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NotificationStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
944
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NotificationStore, providedIn: 'root' });
|
|
940
945
|
}
|
|
941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NotificationStore, decorators: [{
|
|
942
947
|
type: Injectable,
|
|
943
948
|
args: [{
|
|
944
949
|
providedIn: 'root',
|
|
@@ -1010,10 +1015,10 @@ class NotificationService {
|
|
|
1010
1015
|
return data;
|
|
1011
1016
|
}));
|
|
1012
1017
|
}
|
|
1013
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1014
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1018
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1019
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NotificationService, providedIn: 'root' });
|
|
1015
1020
|
}
|
|
1016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NotificationService, decorators: [{
|
|
1017
1022
|
type: Injectable,
|
|
1018
1023
|
args: [{
|
|
1019
1024
|
providedIn: 'root',
|
|
@@ -1045,10 +1050,10 @@ class ProductCategoryService extends BaseService {
|
|
|
1045
1050
|
withCredentials: true,
|
|
1046
1051
|
});
|
|
1047
1052
|
}
|
|
1048
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1049
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1053
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ProductCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1054
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ProductCategoryService, providedIn: 'root' });
|
|
1050
1055
|
}
|
|
1051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ProductCategoryService, decorators: [{
|
|
1052
1057
|
type: Injectable,
|
|
1053
1058
|
args: [{
|
|
1054
1059
|
providedIn: 'root',
|
|
@@ -1090,10 +1095,10 @@ class NotificationTemplateService {
|
|
|
1090
1095
|
withCredentials: true,
|
|
1091
1096
|
});
|
|
1092
1097
|
}
|
|
1093
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1094
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1098
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NotificationTemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1099
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NotificationTemplateService, providedIn: 'root' });
|
|
1095
1100
|
}
|
|
1096
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NotificationTemplateService, decorators: [{
|
|
1097
1102
|
type: Injectable,
|
|
1098
1103
|
args: [{
|
|
1099
1104
|
providedIn: 'root',
|
|
@@ -1115,10 +1120,10 @@ class FulfillmentService extends BaseService {
|
|
|
1115
1120
|
withCredentials: true,
|
|
1116
1121
|
});
|
|
1117
1122
|
}
|
|
1118
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1119
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1123
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: FulfillmentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1124
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: FulfillmentService, providedIn: 'root' });
|
|
1120
1125
|
}
|
|
1121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: FulfillmentService, decorators: [{
|
|
1122
1127
|
type: Injectable,
|
|
1123
1128
|
args: [{
|
|
1124
1129
|
providedIn: 'root',
|
|
@@ -1134,10 +1139,10 @@ class TitleService {
|
|
|
1134
1139
|
setTitle(newTitle) {
|
|
1135
1140
|
this.titleService.setTitle(`${newTitle} - ${this.environment.name}`);
|
|
1136
1141
|
}
|
|
1137
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1138
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1142
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: TitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1143
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: TitleService, providedIn: 'root' });
|
|
1139
1144
|
}
|
|
1140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: TitleService, decorators: [{
|
|
1141
1146
|
type: Injectable,
|
|
1142
1147
|
args: [{
|
|
1143
1148
|
providedIn: 'root',
|
|
@@ -1167,10 +1172,10 @@ class PostService extends BaseService {
|
|
|
1167
1172
|
withCredentials: true,
|
|
1168
1173
|
});
|
|
1169
1174
|
}
|
|
1170
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1171
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1175
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PostService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1176
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PostService, providedIn: 'root' });
|
|
1172
1177
|
}
|
|
1173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PostService, decorators: [{
|
|
1174
1179
|
type: Injectable,
|
|
1175
1180
|
args: [{
|
|
1176
1181
|
providedIn: 'root',
|
|
@@ -1193,10 +1198,486 @@ class OrderPayoutService extends BaseService {
|
|
|
1193
1198
|
withCredentials: true,
|
|
1194
1199
|
});
|
|
1195
1200
|
}
|
|
1196
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1197
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1201
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OrderPayoutService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1202
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OrderPayoutService, providedIn: 'root' });
|
|
1203
|
+
}
|
|
1204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: OrderPayoutService, decorators: [{
|
|
1205
|
+
type: Injectable,
|
|
1206
|
+
args: [{
|
|
1207
|
+
providedIn: 'root',
|
|
1208
|
+
}]
|
|
1209
|
+
}] });
|
|
1210
|
+
|
|
1211
|
+
class ResourceService extends BaseService {
|
|
1212
|
+
init() {
|
|
1213
|
+
this.endpoint = 'resources';
|
|
1214
|
+
super.init();
|
|
1215
|
+
}
|
|
1216
|
+
me(options) {
|
|
1217
|
+
return this.http.get(`${this.actionUrl}/me`, {
|
|
1218
|
+
params: options,
|
|
1219
|
+
withCredentials: true,
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
findByIds(ids) {
|
|
1223
|
+
return this.http.get(`${this.actionUrl}/by`, {
|
|
1224
|
+
params: { ids },
|
|
1225
|
+
withCredentials: true,
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
filter(options) {
|
|
1229
|
+
return this.http.get(`${this.actionUrl}/search`, {
|
|
1230
|
+
params: options,
|
|
1231
|
+
withCredentials: false,
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
updateLocation(id, data) {
|
|
1235
|
+
return this.http.put(`${this.actionUrl}/${id}/location`, data, {
|
|
1236
|
+
withCredentials: true,
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
updateAmenities(id, data) {
|
|
1240
|
+
return this.http.put(`${this.actionUrl}/${id}/amenities`, data, {
|
|
1241
|
+
withCredentials: true,
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1244
|
+
addDetail(id, data) {
|
|
1245
|
+
return this.http.post(`${this.actionUrl}/${id}/details`, data, {
|
|
1246
|
+
withCredentials: true,
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
addBatchDetails(id, data) {
|
|
1250
|
+
return this.http.post(`${this.actionUrl}/${id}/details/batch`, data, {
|
|
1251
|
+
withCredentials: true,
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
findDetails(id) {
|
|
1255
|
+
return this.http.get(`${this.actionUrl}/${id}/details`, {
|
|
1256
|
+
withCredentials: true,
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
updateDetail(id, detailId, data) {
|
|
1260
|
+
return this.http.put(`${this.actionUrl}/${id}/details/${detailId}`, data, {
|
|
1261
|
+
withCredentials: true,
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
deleteDetail(id, detailId) {
|
|
1265
|
+
return this.http.delete(`${this.actionUrl}/${id}/details/${detailId}`, {
|
|
1266
|
+
withCredentials: true,
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
uploadDetailMedia(id, detailId, data) {
|
|
1270
|
+
return this.http.post(`${this.actionUrl}/${id}/details/${detailId}/media`, data, {
|
|
1271
|
+
withCredentials: true,
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
deleteDetailMedia(id, detailId, mediaId) {
|
|
1275
|
+
return this.http.delete(`${this.actionUrl}/${id}/details/${detailId}/media/${mediaId}`, {
|
|
1276
|
+
withCredentials: true,
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
findSessions(id) {
|
|
1280
|
+
return this.http.get(`${this.actionUrl}/${id}/sessions`, {
|
|
1281
|
+
withCredentials: true,
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
addSession(id, data) {
|
|
1285
|
+
return this.http.post(`${this.actionUrl}/${id}/sessions`, data, {
|
|
1286
|
+
withCredentials: true,
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
updateSession(id, sessionId, data) {
|
|
1290
|
+
return this.http.put(`${this.actionUrl}/${id}/sessions/${sessionId}`, data, {
|
|
1291
|
+
withCredentials: true,
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
deleteSession(id, sessionId) {
|
|
1295
|
+
return this.http.delete(`${this.actionUrl}/${id}/sessions/${sessionId}`, {
|
|
1296
|
+
withCredentials: true,
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
findPeriods(id) {
|
|
1300
|
+
return this.http.get(`${this.actionUrl}/${id}/periods`, {
|
|
1301
|
+
withCredentials: true,
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
addPeriod(id, data) {
|
|
1305
|
+
return this.http.post(`${this.actionUrl}/${id}/periods`, data, {
|
|
1306
|
+
withCredentials: true,
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
updatePeriod(id, periodId, data) {
|
|
1310
|
+
return this.http.put(`${this.actionUrl}/${id}/periods/${periodId}`, data, {
|
|
1311
|
+
withCredentials: true,
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
deletePeriod(id, periodId) {
|
|
1315
|
+
return this.http.delete(`${this.actionUrl}/${id}/periods/${periodId}`, {
|
|
1316
|
+
withCredentials: true,
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
review(id) {
|
|
1320
|
+
return this.http.post(`${this.actionUrl}/${id}/review`, {}, {
|
|
1321
|
+
withCredentials: true,
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
publish(id) {
|
|
1325
|
+
return this.http.post(`${this.actionUrl}/${id}/publish`, {}, {
|
|
1326
|
+
withCredentials: true,
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
upload(data) {
|
|
1330
|
+
return this.http.post(`${this.actionUrl}/upload`, data, {
|
|
1331
|
+
withCredentials: true,
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
uploadMedia(id, data) {
|
|
1335
|
+
return this.http.post(`${this.actionUrl}/${id}/media`, data, {
|
|
1336
|
+
withCredentials: true,
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
deleteMedia(id, mediaId) {
|
|
1340
|
+
return this.http.delete(`${this.actionUrl}/${id}/media/${mediaId}`, {
|
|
1341
|
+
withCredentials: true,
|
|
1342
|
+
});
|
|
1343
|
+
}
|
|
1344
|
+
accept(id) {
|
|
1345
|
+
return this.http.post(`${this.actionUrl}/${id}/reviews/accept`, {}, {
|
|
1346
|
+
withCredentials: true,
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
reject(id, body) {
|
|
1350
|
+
return this.http.post(`${this.actionUrl}/${id}/reviews/reject`, body, {
|
|
1351
|
+
withCredentials: true,
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
findByResourceId(id) {
|
|
1355
|
+
const options = {
|
|
1356
|
+
filter: `resourceId:${id}`,
|
|
1357
|
+
};
|
|
1358
|
+
return this.http.get(`${this.actionUrl}`, {
|
|
1359
|
+
params: options,
|
|
1360
|
+
withCredentials: false,
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
findVariantsByResourceId(id) {
|
|
1364
|
+
return this.http.get(`${this.actionUrl}/${id}/variants`, {
|
|
1365
|
+
withCredentials: false,
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
addVariants(id, data) {
|
|
1369
|
+
return this.http.post(`${this.actionUrl}/${id}/variants`, data, {
|
|
1370
|
+
withCredentials: true,
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ResourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1374
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ResourceService, providedIn: 'root' });
|
|
1375
|
+
}
|
|
1376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ResourceService, decorators: [{
|
|
1377
|
+
type: Injectable,
|
|
1378
|
+
args: [{
|
|
1379
|
+
providedIn: 'root',
|
|
1380
|
+
}]
|
|
1381
|
+
}] });
|
|
1382
|
+
|
|
1383
|
+
class ResourceCategoryService extends BaseService {
|
|
1384
|
+
init() {
|
|
1385
|
+
this.endpoint = 'resources/categories';
|
|
1386
|
+
super.init();
|
|
1387
|
+
}
|
|
1388
|
+
uploadMedia(id, data) {
|
|
1389
|
+
return this.http.post(`${this.actionUrl}/${id}/media`, data, {
|
|
1390
|
+
withCredentials: true,
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
deleteMedia(id, mediaId) {
|
|
1394
|
+
return this.http.delete(`${this.actionUrl}/${id}/media/${mediaId}`, {
|
|
1395
|
+
withCredentials: true,
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1398
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ResourceCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1399
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ResourceCategoryService, providedIn: 'root' });
|
|
1400
|
+
}
|
|
1401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ResourceCategoryService, decorators: [{
|
|
1402
|
+
type: Injectable,
|
|
1403
|
+
args: [{
|
|
1404
|
+
providedIn: 'root',
|
|
1405
|
+
}]
|
|
1406
|
+
}] });
|
|
1407
|
+
|
|
1408
|
+
class BookingService extends BaseService {
|
|
1409
|
+
init() {
|
|
1410
|
+
this.endpoint = 'bookings';
|
|
1411
|
+
super.init();
|
|
1412
|
+
}
|
|
1413
|
+
by(options) {
|
|
1414
|
+
return this.http.get(`${this.actionUrl}/items/by`, {
|
|
1415
|
+
params: options,
|
|
1416
|
+
withCredentials: true,
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
me(options) {
|
|
1420
|
+
return this.http.get(`${this.actionUrl}/me`, {
|
|
1421
|
+
params: options,
|
|
1422
|
+
withCredentials: true,
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
timeline(id) {
|
|
1426
|
+
return this.http.get(`${this.actionUrl}/${id}/timeline`, {
|
|
1427
|
+
withCredentials: true,
|
|
1428
|
+
});
|
|
1429
|
+
}
|
|
1430
|
+
items(options) {
|
|
1431
|
+
return this.http.get(`${this.actionUrl}/items`, {
|
|
1432
|
+
params: options,
|
|
1433
|
+
withCredentials: true,
|
|
1434
|
+
});
|
|
1435
|
+
}
|
|
1436
|
+
pay(id) {
|
|
1437
|
+
return this.http.post(`${this.actionUrl}/${id}/pay`, {}, {
|
|
1438
|
+
withCredentials: true,
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
refund(id, data) {
|
|
1442
|
+
return this.http.post(`${this.actionUrl}/${id}/items/refund`, data, {
|
|
1443
|
+
withCredentials: true,
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
findAllReturns(options) {
|
|
1447
|
+
return this.http.get(`${this.actionUrl}/returns`, {
|
|
1448
|
+
params: options,
|
|
1449
|
+
withCredentials: true,
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1452
|
+
getReturn(id) {
|
|
1453
|
+
return this.http.get(`${this.actionUrl}/returns/${id}`, {
|
|
1454
|
+
withCredentials: true,
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
returnApprove(id) {
|
|
1458
|
+
return this.http.post(`${this.actionUrl}/returns/${id}/approve`, {}, {
|
|
1459
|
+
withCredentials: true,
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
returnReject(id, data) {
|
|
1463
|
+
return this.http.post(`${this.actionUrl}/returns/${id}/reject`, data, {
|
|
1464
|
+
withCredentials: true,
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
cancel(id) {
|
|
1468
|
+
return this.http.post(`${this.actionUrl}/${id}/cancel`, {}, {
|
|
1469
|
+
withCredentials: true,
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BookingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1473
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BookingService, providedIn: 'root' });
|
|
1474
|
+
}
|
|
1475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BookingService, decorators: [{
|
|
1476
|
+
type: Injectable,
|
|
1477
|
+
args: [{
|
|
1478
|
+
providedIn: 'root',
|
|
1479
|
+
}]
|
|
1480
|
+
}] });
|
|
1481
|
+
|
|
1482
|
+
class FacilityService extends BaseService {
|
|
1483
|
+
init() {
|
|
1484
|
+
this.endpoint = 'facilities';
|
|
1485
|
+
super.init();
|
|
1486
|
+
}
|
|
1487
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: FacilityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1488
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: FacilityService, providedIn: 'root' });
|
|
1489
|
+
}
|
|
1490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: FacilityService, decorators: [{
|
|
1491
|
+
type: Injectable,
|
|
1492
|
+
args: [{
|
|
1493
|
+
providedIn: 'root',
|
|
1494
|
+
}]
|
|
1495
|
+
}] });
|
|
1496
|
+
|
|
1497
|
+
class AmenityService extends BaseService {
|
|
1498
|
+
init() {
|
|
1499
|
+
this.endpoint = 'resources/amenities';
|
|
1500
|
+
super.init();
|
|
1501
|
+
}
|
|
1502
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: AmenityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1503
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: AmenityService, providedIn: 'root' });
|
|
1504
|
+
}
|
|
1505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: AmenityService, decorators: [{
|
|
1506
|
+
type: Injectable,
|
|
1507
|
+
args: [{
|
|
1508
|
+
providedIn: 'root',
|
|
1509
|
+
}]
|
|
1510
|
+
}] });
|
|
1511
|
+
|
|
1512
|
+
class PropertyService extends BaseService {
|
|
1513
|
+
init() {
|
|
1514
|
+
this.endpoint = 'properties';
|
|
1515
|
+
super.init();
|
|
1516
|
+
}
|
|
1517
|
+
me(options) {
|
|
1518
|
+
return this.http.get(`${this.actionUrl}/me`, {
|
|
1519
|
+
params: options,
|
|
1520
|
+
withCredentials: true,
|
|
1521
|
+
});
|
|
1522
|
+
}
|
|
1523
|
+
findByIds(ids) {
|
|
1524
|
+
const params = { ids: ids.join(',') };
|
|
1525
|
+
return this.http.get(`${this.actionUrl}/by`, {
|
|
1526
|
+
params: params,
|
|
1527
|
+
withCredentials: true,
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
publish(propertyId) {
|
|
1531
|
+
return this.http.post(`${this.actionUrl}/${propertyId}/publish`, {}, {
|
|
1532
|
+
withCredentials: true,
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1535
|
+
archived(propertyId) {
|
|
1536
|
+
return this.http.post(`${this.actionUrl}/${propertyId}/archived`, {}, {
|
|
1537
|
+
withCredentials: true,
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1540
|
+
findWishlist(options) {
|
|
1541
|
+
return this.http.get(`${this.actionUrl}/wishlist`, { params: options, withCredentials: true });
|
|
1542
|
+
}
|
|
1543
|
+
addToWishlist(propertyId) {
|
|
1544
|
+
return this.http.post(`${this.actionUrl}/${propertyId}/wishlist`, {}, { withCredentials: true });
|
|
1545
|
+
}
|
|
1546
|
+
removeFromWishlist(propertyId) {
|
|
1547
|
+
return this.http.delete(`${this.actionUrl}/${propertyId}/wishlist`, { withCredentials: true });
|
|
1548
|
+
}
|
|
1549
|
+
findWishlistBy(propertyId) {
|
|
1550
|
+
return this.http.get(`${this.actionUrl}/${propertyId}/wishlist/by`, { withCredentials: true });
|
|
1551
|
+
}
|
|
1552
|
+
findPurchasedByPropertyId(propertyId) {
|
|
1553
|
+
return this.http.get(`${this.actionUrl}/users/me/by?propertyId=${propertyId}`, {
|
|
1554
|
+
withCredentials: true,
|
|
1555
|
+
});
|
|
1556
|
+
}
|
|
1557
|
+
// Media
|
|
1558
|
+
uploadMedia(propertyId, data) {
|
|
1559
|
+
return this.http.post(`${this.actionUrl}/${propertyId}/media`, data, {
|
|
1560
|
+
withCredentials: true,
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1563
|
+
deleteMedia(id, mediaId) {
|
|
1564
|
+
return this.http.delete(`${this.actionUrl}/${id}/media/${mediaId}`, {
|
|
1565
|
+
withCredentials: true,
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
// Pricing
|
|
1569
|
+
addPricing(propertyId, data) {
|
|
1570
|
+
return this.http.post(`${this.actionUrl}/${propertyId}/pricing`, data, {
|
|
1571
|
+
withCredentials: true,
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
updatePricing(pricingId, data) {
|
|
1575
|
+
return this.http.put(`${this.actionUrl}/pricing/${pricingId}`, data, {
|
|
1576
|
+
withCredentials: true,
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
deletePricing(pricingId) {
|
|
1580
|
+
return this.http.delete(`${this.actionUrl}/pricing/${pricingId}`, {
|
|
1581
|
+
withCredentials: true,
|
|
1582
|
+
});
|
|
1583
|
+
}
|
|
1584
|
+
// Section
|
|
1585
|
+
addSection(propertyId, data) {
|
|
1586
|
+
return this.http.post(`${this.actionUrl}/${propertyId}/sections`, data, {
|
|
1587
|
+
withCredentials: true,
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
addBatchSections(propertyId, data) {
|
|
1591
|
+
return this.http.post(`${this.actionUrl}/${propertyId}/sections/batch`, data, {
|
|
1592
|
+
withCredentials: true,
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1595
|
+
findSections(propertyId) {
|
|
1596
|
+
return this.http.get(`${this.actionUrl}/${propertyId}/sections`, {
|
|
1597
|
+
withCredentials: true,
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1600
|
+
updateSection(sectionId, data) {
|
|
1601
|
+
return this.http.put(`${this.actionUrl}/sections/${sectionId}`, data, {
|
|
1602
|
+
withCredentials: true,
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1605
|
+
deleteSection(sectionId) {
|
|
1606
|
+
return this.http.delete(`${this.actionUrl}/sections/${sectionId}`, {
|
|
1607
|
+
withCredentials: true,
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
uploadSectionMedia(sectionId, data) {
|
|
1611
|
+
return this.http.post(`${this.actionUrl}/sections/${sectionId}/media`, data, {
|
|
1612
|
+
withCredentials: true,
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
deleteSectionMedia(sectionId, mediaId) {
|
|
1616
|
+
return this.http.delete(`${this.actionUrl}/sections/${sectionId}/media/${mediaId}`, {
|
|
1617
|
+
withCredentials: true,
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
addOption(propertyId, data) {
|
|
1621
|
+
return this.http.post(`${this.actionUrl}/${propertyId}/options`, data, {
|
|
1622
|
+
withCredentials: true,
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
findOptions(propertyId) {
|
|
1626
|
+
return this.http.get(`${this.actionUrl}/${propertyId}/options`);
|
|
1627
|
+
}
|
|
1628
|
+
updateOption(optionId, data) {
|
|
1629
|
+
return this.http.put(`${this.actionUrl}/options/${optionId}`, data, {
|
|
1630
|
+
withCredentials: true,
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
deleteOption(optionId) {
|
|
1634
|
+
return this.http.delete(`${this.actionUrl}/options/${optionId}`, {
|
|
1635
|
+
withCredentials: true,
|
|
1636
|
+
});
|
|
1637
|
+
}
|
|
1638
|
+
// variants
|
|
1639
|
+
updateVariantPrice(propertyId, status) {
|
|
1640
|
+
return this.http.put(`${this.actionUrl}/${propertyId}/variants/by?status=${status}`, {}, {
|
|
1641
|
+
withCredentials: true,
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
createVariants(propertyId, data) {
|
|
1645
|
+
return this.http.post(`${this.actionUrl}/${propertyId}/variants`, data, {
|
|
1646
|
+
withCredentials: true,
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
getVariant(variantId) {
|
|
1650
|
+
return this.http.get(`${this.actionUrl}/variants/${variantId}`);
|
|
1651
|
+
}
|
|
1652
|
+
findVariants(propertyId) {
|
|
1653
|
+
return this.http.get(`${this.actionUrl}/${propertyId}/variants`);
|
|
1654
|
+
}
|
|
1655
|
+
findVariantsByIds(ids) {
|
|
1656
|
+
const params = { ids: ids.join(',') };
|
|
1657
|
+
return this.http.get(`${this.actionUrl}/variants/by`, {
|
|
1658
|
+
params: params,
|
|
1659
|
+
withCredentials: true,
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
updateVariants(propertyId, data) {
|
|
1663
|
+
return this.http.put(`${this.actionUrl}/${propertyId}/variants`, data, {
|
|
1664
|
+
withCredentials: true,
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
uploadVariantMedia(variantId, data) {
|
|
1668
|
+
return this.http.post(`${this.actionUrl}/variants/${variantId}/media`, data, {
|
|
1669
|
+
withCredentials: true,
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
deleteVariantMedia(variantId, mediaId) {
|
|
1673
|
+
return this.http.delete(`${this.actionUrl}/variants/${variantId}/media/${mediaId}`, {
|
|
1674
|
+
withCredentials: true,
|
|
1675
|
+
});
|
|
1676
|
+
}
|
|
1677
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1678
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PropertyService, providedIn: 'root' });
|
|
1198
1679
|
}
|
|
1199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PropertyService, decorators: [{
|
|
1200
1681
|
type: Injectable,
|
|
1201
1682
|
args: [{
|
|
1202
1683
|
providedIn: 'root',
|
|
@@ -1221,10 +1702,10 @@ class LoadingInterceptor {
|
|
|
1221
1702
|
}
|
|
1222
1703
|
}));
|
|
1223
1704
|
}
|
|
1224
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1225
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1705
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: LoadingInterceptor, deps: [{ token: LoadingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1706
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: LoadingInterceptor, providedIn: 'root' });
|
|
1226
1707
|
}
|
|
1227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: LoadingInterceptor, decorators: [{
|
|
1228
1709
|
type: Injectable,
|
|
1229
1710
|
args: [{
|
|
1230
1711
|
providedIn: 'root',
|
|
@@ -1237,10 +1718,10 @@ class BackButtonDirective {
|
|
|
1237
1718
|
onClick() {
|
|
1238
1719
|
this.navigation.back();
|
|
1239
1720
|
}
|
|
1240
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1241
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
1721
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BackButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1722
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", type: BackButtonDirective, isStandalone: true, selector: "[rolatechBackButton]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
1242
1723
|
}
|
|
1243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: BackButtonDirective, decorators: [{
|
|
1244
1725
|
type: Directive,
|
|
1245
1726
|
args: [{
|
|
1246
1727
|
selector: '[rolatechBackButton]',
|
|
@@ -1283,5 +1764,5 @@ function provideAngularServices() {
|
|
|
1283
1764
|
* Generated bundle index. Do not edit.
|
|
1284
1765
|
*/
|
|
1285
1766
|
|
|
1286
|
-
export { BackButtonDirective, BaseService, BreadcrumbService, CartEventType, CartService, DialogComponent, DialogService, FulfillmentService, InventoryService, LayoutService, LoadingInterceptor, LoadingService, MediaService, NavigationService, NotificationService, NotificationStore, NotificationTemplateService, OrderPayoutService, OrderService, PostService, ProductCategoryService, ProductService, SERVICE_DIRECTIVES, SidenavService, SnackBarService, SupportService, ThemeService, TitleService, provideAngularServices };
|
|
1767
|
+
export { AmenityService, BackButtonDirective, BaseService, BookingService, BreadcrumbService, CartEventType, CartService, DialogComponent, DialogService, FacilityService, FulfillmentService, InventoryService, LayoutService, LoadingInterceptor, LoadingService, MediaService, NavigationService, NotificationService, NotificationStore, NotificationTemplateService, OrderPayoutService, OrderService, PostService, ProductCategoryService, ProductService, PropertyService, ResourceCategoryService, ResourceService, SERVICE_DIRECTIVES, SidenavService, SnackBarService, SupportService, ThemeService, TitleService, provideAngularServices };
|
|
1287
1768
|
//# sourceMappingURL=rolatech-angular-services.mjs.map
|