-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathusers.service.ts
More file actions
32 lines (29 loc) · 1.27 KB
/
users.service.ts
File metadata and controls
32 lines (29 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import * as Users from '.';
import { Injectable } from '@nestjs/common';
import { Observable } from 'rxjs';
import { Customer } from '@/utils/models/customer';
@Injectable()
export abstract class UserService {
protected constructor(..._services: unknown[]) {}
abstract getCurrentUser(authorization?: string): Observable<Users.Model.User | undefined>;
abstract getUser(
options: Users.Request.GetUserParams,
authorization?: string,
): Observable<Users.Model.User | undefined>;
abstract updateCurrentUser(
body: Users.Request.PostUserBody,
authorization?: string,
): Observable<Users.Model.User | undefined>;
abstract updateUser(
options: Users.Request.GetUserParams,
body: Users.Request.PostUserBody,
authorization?: string,
): Observable<Users.Model.User | undefined>;
abstract getCurrentUserCustomers(authorization?: string): Observable<Customer[] | undefined>;
abstract getCurrentUserCustomer(
options: Users.Request.GetCustomerParams,
authorization?: string,
): Observable<Customer | undefined>;
abstract deleteCurrentUser(authorization?: string): Observable<void>;
abstract deleteUser(options: Users.Request.GetUserParams, authorization?: string): Observable<void>;
}