@rolatech/angular-services 19.0.0-beta.8 → 19.1.0-beta.3
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 +1317 -77
- package/fesm2022/rolatech-angular-services.mjs.map +1 -1
- package/index.d.ts +660 -7
- package/package.json +2 -2
- package/themes/_default.scss +1 -1
- package/lib/components/dialog/dialog.component.d.ts +0 -18
- package/lib/directive/back-button.directive.d.ts +0 -9
- package/lib/directive/index.d.ts +0 -3
- package/lib/interceptor/index.d.ts +0 -1
- package/lib/interceptor/loading.interceptor.d.ts +0 -12
- package/lib/interfaces/dialog.interface.d.ts +0 -18
- package/lib/interfaces/index.d.ts +0 -1
- package/lib/services/base.service.d.ts +0 -20
- package/lib/services/breadcrumb.service.d.ts +0 -15
- package/lib/services/cart.service.d.ts +0 -23
- package/lib/services/dialog.service.d.ts +0 -14
- package/lib/services/fulfillment.service.d.ts +0 -10
- package/lib/services/index.d.ts +0 -23
- package/lib/services/inventory.service.d.ts +0 -31
- package/lib/services/layout.service.d.ts +0 -10
- package/lib/services/loading.service.d.ts +0 -14
- package/lib/services/media.service.d.ts +0 -17
- package/lib/services/navigation.service.d.ts +0 -15
- package/lib/services/notification-template.service.d.ts +0 -14
- package/lib/services/notification.service.d.ts +0 -19
- package/lib/services/order.service.d.ts +0 -23
- package/lib/services/post.service.d.ts +0 -11
- package/lib/services/product-category.service.d.ts +0 -12
- package/lib/services/product.service.d.ts +0 -41
- package/lib/services/sidenav.service.d.ts +0 -19
- package/lib/services/snack-bar.service.d.ts +0 -9
- package/lib/services/support.service.d.ts +0 -19
- package/lib/services/theme.service.d.ts +0 -11
- package/lib/services/title.service.d.ts +0 -10
- package/lib/state/notification.store.d.ts +0 -8
- package/provider.d.ts +0 -2
package/index.d.ts
CHANGED
|
@@ -1,7 +1,660 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, OnInit, OnDestroy, ViewContainerRef, EventEmitter, Provider, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import * as rxjs from 'rxjs';
|
|
5
|
+
import { Observable, BehaviorSubject } from 'rxjs';
|
|
6
|
+
import { HttpClient, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
7
|
+
import { Location } from '@angular/common';
|
|
8
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
9
|
+
import { BreakpointObserver, MediaMatcher } from '@angular/cdk/layout';
|
|
10
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
11
|
+
import * as _angular_material_sidenav from '@angular/material/sidenav';
|
|
12
|
+
import { MatSidenav } from '@angular/material/sidenav';
|
|
13
|
+
import { Title } from '@angular/platform-browser';
|
|
14
|
+
|
|
15
|
+
interface DialogData {
|
|
16
|
+
title: string;
|
|
17
|
+
message?: string;
|
|
18
|
+
cancelText?: string;
|
|
19
|
+
confirmText?: string;
|
|
20
|
+
component?: any;
|
|
21
|
+
width?: any;
|
|
22
|
+
height?: any;
|
|
23
|
+
data?: any;
|
|
24
|
+
}
|
|
25
|
+
interface IDynamicDialogConfig {
|
|
26
|
+
title?: string;
|
|
27
|
+
okText?: string;
|
|
28
|
+
cancelText?: string;
|
|
29
|
+
component: Component;
|
|
30
|
+
data: any;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class DialogComponent implements OnInit, OnDestroy {
|
|
34
|
+
onEsc(): void;
|
|
35
|
+
data: DialogData;
|
|
36
|
+
result: any;
|
|
37
|
+
dialogRef: MatDialogRef<any, any>;
|
|
38
|
+
componentRef: i0.Signal<ViewContainerRef>;
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
ngOnDestroy(): void;
|
|
41
|
+
createComponent(): void;
|
|
42
|
+
close(value?: boolean): void;
|
|
43
|
+
confirm(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "rolatech-dialog", never, {}, {}, never, never, true, never>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class BaseService {
|
|
49
|
+
protected http: HttpClient;
|
|
50
|
+
protected environment: any;
|
|
51
|
+
protected actionUrl: string;
|
|
52
|
+
endpoint: string;
|
|
53
|
+
constructor();
|
|
54
|
+
init(): void;
|
|
55
|
+
find<T>(options?: any, withCredentials?: boolean): Observable<T>;
|
|
56
|
+
get<T>(id: string, options?: any, withCredentials?: boolean): Observable<T>;
|
|
57
|
+
create<T>(item: T): Observable<T>;
|
|
58
|
+
update<T>(id: string, data: T): Observable<T>;
|
|
59
|
+
delete<T>(id: string): Observable<T>;
|
|
60
|
+
updateStatus<T>(id: string, data: T): Observable<T>;
|
|
61
|
+
search(word: string, withCredentials?: boolean): Observable<any>;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseService, never>;
|
|
63
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseService>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare class ProductService extends BaseService {
|
|
67
|
+
init(): void;
|
|
68
|
+
me(options: any): Observable<any>;
|
|
69
|
+
findByIds(ids: Array<string>): Observable<any>;
|
|
70
|
+
publish(productId: string): Observable<any>;
|
|
71
|
+
archived(productId: string): Observable<any>;
|
|
72
|
+
findWishlist(options: any): Observable<Object>;
|
|
73
|
+
addToWishlist(productId: string): Observable<Object>;
|
|
74
|
+
removeFromWishlist(productId: string): Observable<Object>;
|
|
75
|
+
findWishlistBy(productId: string): Observable<Object>;
|
|
76
|
+
findPurchasedByProductId(productId: string): Observable<Object>;
|
|
77
|
+
uploadMedia(productId: string, data: FormData): Observable<any>;
|
|
78
|
+
deleteMedia(id: string, mediaId: string): Observable<any>;
|
|
79
|
+
addPricing(productId: string, data: any): Observable<any>;
|
|
80
|
+
updatePricing(pricingId: string, data: any): Observable<any>;
|
|
81
|
+
deletePricing(pricingId: string): Observable<any>;
|
|
82
|
+
addSection(productId: string, data: any): Observable<any>;
|
|
83
|
+
addBatchSections(productId: string, data: any): Observable<any>;
|
|
84
|
+
findSections(productId: string): Observable<any>;
|
|
85
|
+
updateSection(sectionId: string, data: any): Observable<any>;
|
|
86
|
+
deleteSection(sectionId: string): Observable<any>;
|
|
87
|
+
uploadSectionMedia(sectionId: string, data: FormData): Observable<any>;
|
|
88
|
+
deleteSectionMedia(sectionId: string, mediaId: string): Observable<any>;
|
|
89
|
+
addOption(productId: string, data: any): Observable<any>;
|
|
90
|
+
findOptions(productId: string): Observable<any>;
|
|
91
|
+
updateOption(optionId: string, data: any): Observable<any>;
|
|
92
|
+
deleteOption(optionId: string): Observable<any>;
|
|
93
|
+
updateVariantPrice(productId: string, status: boolean): Observable<any>;
|
|
94
|
+
createVariants(productId: string, data: any): Observable<any>;
|
|
95
|
+
getVariant(variantId: string): Observable<any>;
|
|
96
|
+
findVariants(productId: string): Observable<any>;
|
|
97
|
+
findVariantsByIds(ids: Array<string>): Observable<any>;
|
|
98
|
+
updateVariants(productId: string, data: any): Observable<any>;
|
|
99
|
+
uploadVariantMedia(variantId: string, data: FormData): Observable<any>;
|
|
100
|
+
deleteVariantMedia(variantId: string, mediaId: string): Observable<any>;
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductService, never>;
|
|
102
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductService>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare enum CartEventType {
|
|
106
|
+
CartAdd = 0,
|
|
107
|
+
CartRemove = 1
|
|
108
|
+
}
|
|
109
|
+
declare class CartService extends BaseService {
|
|
110
|
+
productService: ProductService;
|
|
111
|
+
cartEvent: EventEmitter<CartEventType>;
|
|
112
|
+
init(): void;
|
|
113
|
+
findDetails(options: any): Observable<any>;
|
|
114
|
+
findProductsByIds(ids: Array<string>): Observable<any>;
|
|
115
|
+
findVariantsByIds(ids: Array<string>): Observable<any>;
|
|
116
|
+
by(options: any): Observable<any>;
|
|
117
|
+
me(options: any): Observable<any>;
|
|
118
|
+
deleteByIds(ids: any): Observable<any>;
|
|
119
|
+
deleteAll(): Observable<any>;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
|
|
121
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare class NavigationService {
|
|
125
|
+
private history;
|
|
126
|
+
router: Router;
|
|
127
|
+
location: Location;
|
|
128
|
+
constructor();
|
|
129
|
+
start(): void;
|
|
130
|
+
getHistory(): string[];
|
|
131
|
+
back(): void;
|
|
132
|
+
next(): string;
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
134
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare class DialogService {
|
|
138
|
+
dialog: MatDialog;
|
|
139
|
+
dialogRef: MatDialogRef<DialogComponent>;
|
|
140
|
+
open(options: DialogData): void;
|
|
141
|
+
cancelled(): Observable<any>;
|
|
142
|
+
confirmed(): Observable<any>;
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
144
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare class LoadingService {
|
|
148
|
+
loading$: BehaviorSubject<boolean>;
|
|
149
|
+
ratio$: BehaviorSubject<number>;
|
|
150
|
+
isLoading: boolean;
|
|
151
|
+
constructor();
|
|
152
|
+
start(): void;
|
|
153
|
+
stop(): void;
|
|
154
|
+
present(text?: string): Promise<void>;
|
|
155
|
+
dismiss(): Promise<void>;
|
|
156
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
|
|
157
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare class MediaService extends BaseService {
|
|
161
|
+
init(): void;
|
|
162
|
+
upload(data: FormData): Observable<any>;
|
|
163
|
+
uploadAndSave(data: FormData): Observable<any>;
|
|
164
|
+
deleteBy(filename: string): Observable<any>;
|
|
165
|
+
batchDelete(data: any): Observable<any>;
|
|
166
|
+
moveToGroup(data: any): Observable<any>;
|
|
167
|
+
addGroup(data: any): Observable<any>;
|
|
168
|
+
findGroup(id: string): Observable<any>;
|
|
169
|
+
findGroups(options?: any): Observable<any>;
|
|
170
|
+
getImageInfo(url: string): Observable<any>;
|
|
171
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaService, never>;
|
|
172
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MediaService>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare class LayoutService {
|
|
176
|
+
private breakpointObserver;
|
|
177
|
+
isHandset$: Observable<boolean>;
|
|
178
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
179
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
|
|
180
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
declare class SnackBarService {
|
|
184
|
+
snackBar: MatSnackBar;
|
|
185
|
+
open(message: any): void;
|
|
186
|
+
dismiss(): void;
|
|
187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarService, never>;
|
|
188
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SnackBarService>;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare class SupportService {
|
|
192
|
+
environment: any;
|
|
193
|
+
http: HttpClient;
|
|
194
|
+
findAllBuckets(options: any): rxjs.Observable<any>;
|
|
195
|
+
findAll(options: any): rxjs.Observable<any>;
|
|
196
|
+
findFolderBySlug(slug: string): rxjs.Observable<any>;
|
|
197
|
+
findByPath(path: string): rxjs.Observable<any>;
|
|
198
|
+
findAllFiles(options: any): rxjs.Observable<any>;
|
|
199
|
+
findFileByFolder(folder: string): rxjs.Observable<any>;
|
|
200
|
+
findFileBySlug(slug: string): rxjs.Observable<any>;
|
|
201
|
+
uploadFile(data: FormData): rxjs.Observable<any>;
|
|
202
|
+
createBucket(data: any): rxjs.Observable<any>;
|
|
203
|
+
createFolderBySlug(slug: string, data: any): rxjs.Observable<any>;
|
|
204
|
+
uploadFileBySlug(slug: string, data: FormData): rxjs.Observable<any>;
|
|
205
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SupportService, never>;
|
|
206
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SupportService>;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
declare class BreadcrumbService {
|
|
210
|
+
router: Router;
|
|
211
|
+
breadcrumbs: Breadcrumb[];
|
|
212
|
+
add(label: string, slug: string): Breadcrumb[];
|
|
213
|
+
goTo(slug: string, route: ActivatedRoute): void;
|
|
214
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
|
|
215
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
|
|
216
|
+
}
|
|
217
|
+
interface Breadcrumb {
|
|
218
|
+
label: string;
|
|
219
|
+
slug: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare class SidenavService {
|
|
223
|
+
media: MediaMatcher;
|
|
224
|
+
sidenav: MatSidenav;
|
|
225
|
+
private mobileQuery;
|
|
226
|
+
isMobile: boolean;
|
|
227
|
+
isCollaped: boolean;
|
|
228
|
+
isExpanded: boolean;
|
|
229
|
+
constructor();
|
|
230
|
+
setSidenav(sidenav: MatSidenav): void;
|
|
231
|
+
open(): Promise<_angular_material_sidenav.MatDrawerToggleResult>;
|
|
232
|
+
close(): Promise<_angular_material_sidenav.MatDrawerToggleResult>;
|
|
233
|
+
toggle(): void;
|
|
234
|
+
lists(): void;
|
|
235
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidenavService, never>;
|
|
236
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SidenavService>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare class ThemeService {
|
|
240
|
+
platformId: Object;
|
|
241
|
+
darkTheme: BehaviorSubject<boolean>;
|
|
242
|
+
isDarkTheme: rxjs.Observable<boolean>;
|
|
243
|
+
constructor();
|
|
244
|
+
setDarkTheme(isDarkTheme: boolean): void;
|
|
245
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
246
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
declare class OrderService extends BaseService {
|
|
250
|
+
init(): void;
|
|
251
|
+
createPaymentIntent(id: number): Observable<any>;
|
|
252
|
+
by(options: any): Observable<any>;
|
|
253
|
+
me(options: any): Observable<any>;
|
|
254
|
+
merchant(options: any): Observable<any>;
|
|
255
|
+
timeline(id: string): Observable<any>;
|
|
256
|
+
pay(id: string): Observable<any>;
|
|
257
|
+
refund(id: string, data: any): Observable<any>;
|
|
258
|
+
findAllReturns(options: any): Observable<any>;
|
|
259
|
+
findAllReturnsByInstructor(options: any): Observable<any>;
|
|
260
|
+
getReturn(id: string): Observable<any>;
|
|
261
|
+
returnApprove(id: string): Observable<any>;
|
|
262
|
+
returnReject(id: string, data: any): Observable<any>;
|
|
263
|
+
cancel(id: string): Observable<any>;
|
|
264
|
+
countMeByStatus(options: any): Observable<any>;
|
|
265
|
+
fulfill(orderId: string, data: any): Observable<any>;
|
|
266
|
+
getMerchantOrder(orderId: string): Observable<any>;
|
|
267
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderService, never>;
|
|
268
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
declare class InventoryService extends BaseService {
|
|
272
|
+
init(): void;
|
|
273
|
+
getLocation(locationId: string): Observable<any>;
|
|
274
|
+
findLocations(options: any): Observable<any>;
|
|
275
|
+
addLocation(data: any): Observable<any>;
|
|
276
|
+
updateLocation(locationId: string, data: any): Observable<any>;
|
|
277
|
+
deleteLocation(locationId: string): Observable<any>;
|
|
278
|
+
initInventoryItems(data: any): Observable<any>;
|
|
279
|
+
findMyInventoryItems(options: any): Observable<any>;
|
|
280
|
+
addInventoryItem(data: any): Observable<any>;
|
|
281
|
+
updateInventoryItem(data: any): Observable<any>;
|
|
282
|
+
addInventoryByProductId(locationId: string, productId: string, data: any): Observable<any>;
|
|
283
|
+
addInventoryByVariantId(locationId: string, variantId: string, data: any): Observable<any>;
|
|
284
|
+
findInventoryItemsByProductId(productId: string): Observable<any>;
|
|
285
|
+
findInventoryItemsByVariantId(variantId: string): Observable<any>;
|
|
286
|
+
findInventoryLevelsByLocationIdAndVariantIds(locationId: string, ids: Array<string>): Observable<any>;
|
|
287
|
+
deleteInventoryItemsByProductId(productId: string): Observable<any>;
|
|
288
|
+
deleteInventoryItemsByVariantId(variantId: string): Observable<any>;
|
|
289
|
+
deleteInventoryLevel(levelId: string): Observable<any>;
|
|
290
|
+
findProductsInLocation(locationId: string): Observable<any>;
|
|
291
|
+
findLocationsByProductId(productId: string): Observable<any>;
|
|
292
|
+
findLocationsByVariantId(variantId: string): Observable<any>;
|
|
293
|
+
updateStockByLocationIdAndProductId(locationId: string, productId: string, data: any): Observable<any>;
|
|
294
|
+
updateStockByLocationIdAndVariantId(locationId: string, variantId: string, data: any): Observable<any>;
|
|
295
|
+
adjustStocksByLocationId(data: any): Observable<any>;
|
|
296
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InventoryService, never>;
|
|
297
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InventoryService>;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
declare class NotificationStore {
|
|
301
|
+
$count: BehaviorSubject<number>;
|
|
302
|
+
getCount(): rxjs.Observable<number>;
|
|
303
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationStore, never>;
|
|
304
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationStore>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
declare class NotificationService {
|
|
308
|
+
environment: any;
|
|
309
|
+
http: HttpClient;
|
|
310
|
+
storeService: NotificationStore;
|
|
311
|
+
find(options: any): rxjs.Observable<any>;
|
|
312
|
+
me(options: any): rxjs.Observable<any>;
|
|
313
|
+
get(id: string): rxjs.Observable<any>;
|
|
314
|
+
read(ids: Array<string>): rxjs.Observable<any>;
|
|
315
|
+
update(id: string): rxjs.Observable<void>;
|
|
316
|
+
readAll(): rxjs.Observable<void>;
|
|
317
|
+
delete(id: string): rxjs.Observable<any>;
|
|
318
|
+
findByUserId(userId: string): rxjs.Observable<any>;
|
|
319
|
+
countByStatus(status: string): rxjs.Observable<any>;
|
|
320
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
321
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
declare class ProductCategoryService extends BaseService {
|
|
325
|
+
init(): void;
|
|
326
|
+
uploadMedia(id: string, data: FormData): Observable<any>;
|
|
327
|
+
deleteMedia(id: string, mediaId: string): Observable<any>;
|
|
328
|
+
importFromExcel(data: FormData): Observable<any>;
|
|
329
|
+
createFromExcel(data: any): Observable<any>;
|
|
330
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductCategoryService, never>;
|
|
331
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductCategoryService>;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
declare class NotificationTemplateService {
|
|
335
|
+
environment: any;
|
|
336
|
+
http: HttpClient;
|
|
337
|
+
find(options: any): rxjs.Observable<any>;
|
|
338
|
+
me(options: any): rxjs.Observable<any>;
|
|
339
|
+
get(id: string): rxjs.Observable<any>;
|
|
340
|
+
read(ids: Array<string>): rxjs.Observable<any>;
|
|
341
|
+
delete(id: string): rxjs.Observable<any>;
|
|
342
|
+
findByUserId(userId: string): rxjs.Observable<any>;
|
|
343
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationTemplateService, never>;
|
|
344
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationTemplateService>;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
declare class FulfillmentService extends BaseService {
|
|
348
|
+
init(): void;
|
|
349
|
+
fulfill(orderId: string, data: any): Observable<any>;
|
|
350
|
+
tracking(orderId: string): Observable<any>;
|
|
351
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FulfillmentService, never>;
|
|
352
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FulfillmentService>;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare class TitleService {
|
|
356
|
+
environment: any;
|
|
357
|
+
titleService: Title;
|
|
358
|
+
getTitle(): string;
|
|
359
|
+
setTitle(newTitle: string): void;
|
|
360
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TitleService, never>;
|
|
361
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TitleService>;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
declare class PostService extends BaseService {
|
|
365
|
+
init(): void;
|
|
366
|
+
by(options: any): Observable<any>;
|
|
367
|
+
me(options: any): Observable<any>;
|
|
368
|
+
merchant(options: any): Observable<any>;
|
|
369
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostService, never>;
|
|
370
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PostService>;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
declare class OrderPayoutService extends BaseService {
|
|
374
|
+
init(): void;
|
|
375
|
+
me(options: any): Observable<any>;
|
|
376
|
+
approve(id: string): Observable<any>;
|
|
377
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderPayoutService, never>;
|
|
378
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderPayoutService>;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
declare class ResourceService extends BaseService {
|
|
382
|
+
init(): void;
|
|
383
|
+
me(options: any): Observable<any>;
|
|
384
|
+
findByIds(ids: string): Observable<any>;
|
|
385
|
+
filter(options: any): Observable<any>;
|
|
386
|
+
updateLocation(id: string, data: any): Observable<any>;
|
|
387
|
+
updateAmenities(id: string, data: any): Observable<any>;
|
|
388
|
+
addDetail(id: string, data: any): Observable<any>;
|
|
389
|
+
addBatchDetails(id: string, data: any): Observable<any>;
|
|
390
|
+
findDetails(id: string): Observable<any>;
|
|
391
|
+
updateDetail(id: string, detailId: string, data: any): Observable<any>;
|
|
392
|
+
deleteDetail(id: string, detailId: string): Observable<any>;
|
|
393
|
+
uploadDetailMedia(id: string, detailId: string, data: FormData): Observable<any>;
|
|
394
|
+
deleteDetailMedia(id: string, detailId: string, mediaId: string): Observable<any>;
|
|
395
|
+
findSessions(id: string): Observable<any>;
|
|
396
|
+
addSession(id: string, data: any): Observable<any>;
|
|
397
|
+
updateSession(id: string, sessionId: string, data: any): Observable<any>;
|
|
398
|
+
deleteSession(id: string, sessionId: string): Observable<any>;
|
|
399
|
+
findPeriods(id: string): Observable<any>;
|
|
400
|
+
addPeriod(id: string, data: any): Observable<any>;
|
|
401
|
+
updatePeriod(id: string, periodId: string, data: any): Observable<any>;
|
|
402
|
+
deletePeriod(id: string, periodId: string): Observable<any>;
|
|
403
|
+
review(id: string): Observable<any>;
|
|
404
|
+
publish(id: string): Observable<any>;
|
|
405
|
+
upload(data: FormData): Observable<any>;
|
|
406
|
+
uploadMedia(id: string, data: FormData): Observable<any>;
|
|
407
|
+
deleteMedia(id: string, mediaId: string): Observable<any>;
|
|
408
|
+
accept(id: string): Observable<any>;
|
|
409
|
+
reject(id: string, body: any): Observable<any>;
|
|
410
|
+
findByResourceId(id: string): Observable<any>;
|
|
411
|
+
findVariantsByResourceId(id: string): Observable<any>;
|
|
412
|
+
addVariants(id: string, data: any): Observable<any>;
|
|
413
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceService, never>;
|
|
414
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourceService>;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare class ResourceCategoryService extends BaseService {
|
|
418
|
+
init(): void;
|
|
419
|
+
uploadMedia(id: string, data: FormData): Observable<any>;
|
|
420
|
+
deleteMedia(id: string, mediaId: string): Observable<any>;
|
|
421
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceCategoryService, never>;
|
|
422
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourceCategoryService>;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
declare class BookingService extends BaseService {
|
|
426
|
+
init(): void;
|
|
427
|
+
by(options: any): Observable<any>;
|
|
428
|
+
me(options: any): Observable<any>;
|
|
429
|
+
timeline(id: string): Observable<any>;
|
|
430
|
+
items(options: any): Observable<any>;
|
|
431
|
+
pay(id: string): Observable<any>;
|
|
432
|
+
refund(id: string, data: any): Observable<any>;
|
|
433
|
+
findAllReturns(options: any): Observable<any>;
|
|
434
|
+
getReturn(id: string): Observable<any>;
|
|
435
|
+
returnApprove(id: string): Observable<any>;
|
|
436
|
+
returnReject(id: string, data: any): Observable<any>;
|
|
437
|
+
cancel(id: string): Observable<any>;
|
|
438
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BookingService, never>;
|
|
439
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BookingService>;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
declare class FacilityService extends BaseService {
|
|
443
|
+
init(): void;
|
|
444
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FacilityService, never>;
|
|
445
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FacilityService>;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
declare class AmenityService extends BaseService {
|
|
449
|
+
init(): void;
|
|
450
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AmenityService, never>;
|
|
451
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AmenityService>;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
declare class PropertyService extends BaseService {
|
|
455
|
+
init(): void;
|
|
456
|
+
me(options: any): Observable<any>;
|
|
457
|
+
findByIds(ids: Array<string>): Observable<any>;
|
|
458
|
+
publish(propertyId: string): Observable<any>;
|
|
459
|
+
submitForReview(propertyId: string): Observable<any>;
|
|
460
|
+
reviewApprove(id: string): Observable<any>;
|
|
461
|
+
reviewReject(id: string, data: any): Observable<any>;
|
|
462
|
+
archived(propertyId: string): Observable<any>;
|
|
463
|
+
findWishlist(options: any): Observable<Object>;
|
|
464
|
+
addToWishlist(propertyId: string): Observable<Object>;
|
|
465
|
+
removeFromWishlist(propertyId: string): Observable<Object>;
|
|
466
|
+
wishListCheck(propertyId: string): Observable<Object>;
|
|
467
|
+
findPurchasedByPropertyId(propertyId: string): Observable<Object>;
|
|
468
|
+
uploadMedia(propertyId: string, data: FormData): Observable<any>;
|
|
469
|
+
deleteMedia(id: string, mediaId: string): Observable<any>;
|
|
470
|
+
addPricing(propertyId: string, data: any): Observable<any>;
|
|
471
|
+
updatePricing(pricingId: string, data: any): Observable<any>;
|
|
472
|
+
deletePricing(pricingId: string): Observable<any>;
|
|
473
|
+
addSection(propertyId: string, data: any): Observable<any>;
|
|
474
|
+
addBatchSections(propertyId: string, data: any): Observable<any>;
|
|
475
|
+
findSections(propertyId: string): Observable<any>;
|
|
476
|
+
updateSection(sectionId: string, data: any): Observable<any>;
|
|
477
|
+
deleteSection(sectionId: string): Observable<any>;
|
|
478
|
+
uploadSectionMedia(sectionId: string, data: FormData): Observable<any>;
|
|
479
|
+
deleteSectionMedia(sectionId: string, mediaId: string): Observable<any>;
|
|
480
|
+
addOption(propertyId: string, data: any): Observable<any>;
|
|
481
|
+
findOptions(propertyId: string): Observable<any>;
|
|
482
|
+
updateOption(optionId: string, data: any): Observable<any>;
|
|
483
|
+
deleteOption(optionId: string): Observable<any>;
|
|
484
|
+
updateVariantPrice(propertyId: string, status: boolean): Observable<any>;
|
|
485
|
+
createVariants(propertyId: string, data: any): Observable<any>;
|
|
486
|
+
getVariant(variantId: string): Observable<any>;
|
|
487
|
+
findVariants(propertyId: string): Observable<any>;
|
|
488
|
+
findVariantsByIds(ids: Array<string>): Observable<any>;
|
|
489
|
+
updateVariants(propertyId: string, data: any): Observable<any>;
|
|
490
|
+
uploadVariantMedia(variantId: string, data: FormData): Observable<any>;
|
|
491
|
+
deleteVariantMedia(variantId: string, mediaId: string): Observable<any>;
|
|
492
|
+
findViewingsByUser(options: any): Observable<any>;
|
|
493
|
+
findViewingsByAgent(options: any): Observable<any>;
|
|
494
|
+
requestViewing(propertyId: string, data: any): Observable<any>;
|
|
495
|
+
confirmViewing(viewingId: string, slotId: string): Observable<any>;
|
|
496
|
+
getViewing(viewingId: string): Observable<any>;
|
|
497
|
+
cancelViewing(id: string): Observable<any>;
|
|
498
|
+
makeOffer(propertyId: string, data: any): Observable<any>;
|
|
499
|
+
findOffers(options: any): Observable<any>;
|
|
500
|
+
findOffersByUser(options: any): Observable<any>;
|
|
501
|
+
findOffersByAgent(options: any): Observable<any>;
|
|
502
|
+
findPropertiesByIds(ids: Array<string>): Observable<any>;
|
|
503
|
+
getOffer(offerId: any): Observable<any>;
|
|
504
|
+
cancelOffer(id: string): Observable<any>;
|
|
505
|
+
acceptOffer(id: string): Observable<any>;
|
|
506
|
+
rejectOffer(id: string, data: any): Observable<any>;
|
|
507
|
+
createHoldingDepositCheckout(offerId: string, data: any): Observable<any>;
|
|
508
|
+
createSecurityDepositCheckout(offerId: string, data: any): Observable<any>;
|
|
509
|
+
checkOfferPaymentStatus(offerId: any, sessionId: string): Observable<any>;
|
|
510
|
+
offerTimeline(offerId: string): Observable<any>;
|
|
511
|
+
findFeatures<T>(id: string): Observable<T>;
|
|
512
|
+
updateFeatures<T>(id: string, data: any): Observable<T>;
|
|
513
|
+
updateLocation<T>(id: string, data: any): Observable<T>;
|
|
514
|
+
getVideoTour<T>(id: string): Observable<T>;
|
|
515
|
+
addVideoTour<T>(id: string, data: any): Observable<T>;
|
|
516
|
+
updateVideoTour<T>(id: string, data: any): Observable<T>;
|
|
517
|
+
deleteVideoTour<T>(id: string, videoTourId: string, y: any): Observable<T>;
|
|
518
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyService, never>;
|
|
519
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyService>;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
declare class FeatureService extends BaseService {
|
|
523
|
+
init(): void;
|
|
524
|
+
addFeature(data: any): Observable<any>;
|
|
525
|
+
updateFeature(featureId: string, data: any): Observable<any>;
|
|
526
|
+
deleteFeature(featureId: string): Observable<any>;
|
|
527
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeatureService, never>;
|
|
528
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FeatureService>;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
declare class PaymentService extends BaseService {
|
|
532
|
+
init(): void;
|
|
533
|
+
createPaymentIntent(data: any): Observable<any>;
|
|
534
|
+
createPayment(data: any): Observable<any>;
|
|
535
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentService, never>;
|
|
536
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentService>;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
declare class OfferingService extends BaseService {
|
|
540
|
+
init(): void;
|
|
541
|
+
me(options: any): Observable<any>;
|
|
542
|
+
findByIds(ids: Array<string>): Observable<any>;
|
|
543
|
+
publish(propertyId: string): Observable<any>;
|
|
544
|
+
submitForReview(propertyId: string): Observable<any>;
|
|
545
|
+
reviewApprove(id: string): Observable<any>;
|
|
546
|
+
reviewReject(id: string, data: any): Observable<any>;
|
|
547
|
+
archived(propertyId: string): Observable<any>;
|
|
548
|
+
findWishlist(options: any): Observable<Object>;
|
|
549
|
+
addToWishlist(propertyId: string): Observable<Object>;
|
|
550
|
+
removeFromWishlist(propertyId: string): Observable<Object>;
|
|
551
|
+
wishListCheck(propertyId: string): Observable<Object>;
|
|
552
|
+
findPurchasedByPropertyId(propertyId: string): Observable<Object>;
|
|
553
|
+
uploadMedia(propertyId: string, data: FormData): Observable<any>;
|
|
554
|
+
deleteMedia(id: string, mediaId: string): Observable<any>;
|
|
555
|
+
addPricing(propertyId: string, data: any): Observable<any>;
|
|
556
|
+
updatePricing(pricingId: string, data: any): Observable<any>;
|
|
557
|
+
deletePricing(pricingId: string): Observable<any>;
|
|
558
|
+
addSection(propertyId: string, data: any): Observable<any>;
|
|
559
|
+
addBatchSections(propertyId: string, data: any): Observable<any>;
|
|
560
|
+
findSections(propertyId: string): Observable<any>;
|
|
561
|
+
updateSection(sectionId: string, data: any): Observable<any>;
|
|
562
|
+
deleteSection(sectionId: string): Observable<any>;
|
|
563
|
+
uploadSectionMedia(sectionId: string, data: FormData): Observable<any>;
|
|
564
|
+
deleteSectionMedia(sectionId: string, mediaId: string): Observable<any>;
|
|
565
|
+
addOption(propertyId: string, data: any): Observable<any>;
|
|
566
|
+
findOptions(propertyId: string): Observable<any>;
|
|
567
|
+
updateOption(optionId: string, data: any): Observable<any>;
|
|
568
|
+
deleteOption(optionId: string): Observable<any>;
|
|
569
|
+
updateVariantPrice(propertyId: string, status: boolean): Observable<any>;
|
|
570
|
+
createVariants(propertyId: string, data: any): Observable<any>;
|
|
571
|
+
getVariant(variantId: string): Observable<any>;
|
|
572
|
+
findVariants(propertyId: string): Observable<any>;
|
|
573
|
+
findVariantsByIds(ids: Array<string>): Observable<any>;
|
|
574
|
+
updateVariants(propertyId: string, data: any): Observable<any>;
|
|
575
|
+
uploadVariantMedia(variantId: string, data: FormData): Observable<any>;
|
|
576
|
+
deleteVariantMedia(variantId: string, mediaId: string): Observable<any>;
|
|
577
|
+
findViewingsByUser(options: any): Observable<any>;
|
|
578
|
+
findViewingsByAgent(options: any): Observable<any>;
|
|
579
|
+
requestViewing(propertyId: string, data: any): Observable<any>;
|
|
580
|
+
confirmViewing(viewingId: string, slotId: string): Observable<any>;
|
|
581
|
+
getViewing(viewingId: string): Observable<any>;
|
|
582
|
+
cancelViewing(id: string): Observable<any>;
|
|
583
|
+
makeOffer(propertyId: string, data: any): Observable<any>;
|
|
584
|
+
findOffers(options: any): Observable<any>;
|
|
585
|
+
findOffersByUser(options: any): Observable<any>;
|
|
586
|
+
findOffersByAgent(options: any): Observable<any>;
|
|
587
|
+
findPropertiesByIds(ids: Array<string>): Observable<any>;
|
|
588
|
+
getOffer(offerId: any): Observable<any>;
|
|
589
|
+
cancelOffer(id: string): Observable<any>;
|
|
590
|
+
acceptOffer(id: string): Observable<any>;
|
|
591
|
+
rejectOffer(id: string, data: any): Observable<any>;
|
|
592
|
+
createHoldingDepositCheckout(offerId: string, data: any): Observable<any>;
|
|
593
|
+
createSecurityDepositCheckout(offerId: string, data: any): Observable<any>;
|
|
594
|
+
checkOfferPaymentStatus(offerId: any, sessionId: string): Observable<any>;
|
|
595
|
+
offerTimeline(offerId: string): Observable<any>;
|
|
596
|
+
findFeatures<T>(id: string): Observable<T>;
|
|
597
|
+
updateFeatures<T>(id: string, data: any): Observable<T>;
|
|
598
|
+
updateLocation<T>(id: string, data: any): Observable<T>;
|
|
599
|
+
getVideoTour<T>(id: string): Observable<T>;
|
|
600
|
+
addVideoTour<T>(id: string, data: any): Observable<T>;
|
|
601
|
+
updateVideoTour<T>(id: string, data: any): Observable<T>;
|
|
602
|
+
deleteVideoTour<T>(id: string, videoTourId: string, y: any): Observable<T>;
|
|
603
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OfferingService, never>;
|
|
604
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OfferingService>;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
declare class MembershipService extends BaseService {
|
|
608
|
+
init(): void;
|
|
609
|
+
me(options: any): Observable<any>;
|
|
610
|
+
createPlan(data: any): Observable<any>;
|
|
611
|
+
findPlans(options: any): Observable<any>;
|
|
612
|
+
getPlan(id: string): Observable<any>;
|
|
613
|
+
updatePlan(id: string, data: any): Observable<any>;
|
|
614
|
+
findBenefits(options: any): Observable<any>;
|
|
615
|
+
addBenefit(data: any): Observable<any>;
|
|
616
|
+
updateBenefit(id: string, data: any): Observable<any>;
|
|
617
|
+
deleteBenefit(id: string): Observable<any>;
|
|
618
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MembershipService, never>;
|
|
619
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MembershipService>;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
declare class CategoryService extends BaseService {
|
|
623
|
+
init(): void;
|
|
624
|
+
uploadMedia(id: string, data: FormData): Observable<any>;
|
|
625
|
+
deleteMedia(id: string, mediaId: string): Observable<any>;
|
|
626
|
+
importFromExcel(data: FormData): Observable<any>;
|
|
627
|
+
createFromExcel(data: any): Observable<any>;
|
|
628
|
+
findProductCategory(options: any): Observable<any>;
|
|
629
|
+
getProductCategory(id: string): Observable<any>;
|
|
630
|
+
createProductCategory(data: any): Observable<any>;
|
|
631
|
+
updateProductCategory(data: any): Observable<any>;
|
|
632
|
+
uploadProductCategoryMedia(id: string, data: FormData): Observable<any>;
|
|
633
|
+
deleteProductCategoryMedia(id: string, mediaId: string): Observable<any>;
|
|
634
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CategoryService, never>;
|
|
635
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CategoryService>;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
declare class LoadingInterceptor {
|
|
639
|
+
private loadingService;
|
|
640
|
+
activeRequests: number;
|
|
641
|
+
constructor(loadingService: LoadingService);
|
|
642
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
643
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingInterceptor, never>;
|
|
644
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingInterceptor>;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
declare class BackButtonDirective {
|
|
648
|
+
navigation: NavigationService;
|
|
649
|
+
constructor();
|
|
650
|
+
onClick(): void;
|
|
651
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BackButtonDirective, never>;
|
|
652
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BackButtonDirective, "[rolatechBackButton]", never, {}, {}, never, never, true, never>;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
declare const SERVICE_DIRECTIVES: Provider[];
|
|
656
|
+
|
|
657
|
+
declare function provideAngularServices(): EnvironmentProviders;
|
|
658
|
+
|
|
659
|
+
export { AmenityService, BackButtonDirective, BaseService, BookingService, BreadcrumbService, CartEventType, CartService, CategoryService, DialogComponent, DialogService, FacilityService, FeatureService, FulfillmentService, InventoryService, LayoutService, LoadingInterceptor, LoadingService, MediaService, MembershipService, NavigationService, NotificationService, NotificationStore, NotificationTemplateService, OfferingService, OrderPayoutService, OrderService, PaymentService, PostService, ProductCategoryService, ProductService, PropertyService, ResourceCategoryService, ResourceService, SERVICE_DIRECTIVES, SidenavService, SnackBarService, SupportService, ThemeService, TitleService, provideAngularServices };
|
|
660
|
+
export type { DialogData, IDynamicDialogConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolatech/angular-services",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^19.0.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@rolatech/angular-common": "19.
|
|
15
|
+
"@rolatech/angular-common": "19.1.0-beta.3",
|
|
16
16
|
"tslib": "^2.3.0"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|