-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
26 lines (20 loc) · 951 Bytes
/
index.ts
File metadata and controls
26 lines (20 loc) · 951 Bytes
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
import { setAuthorization } from '@/config/authorization'
import * as invoiceFunctions from '@/functions/invoices/_export'
import * as customerFunctions from '@/functions/customers/_export'
import * as articleFunctions from '@/functions/articles/_export'
import * as categoryFunctions from '@/functions/categories/_export'
type InvoiceFunctionType = typeof invoiceFunctions
type CustomerFunctionType = typeof customerFunctions
type ArticleFunctionType = typeof articleFunctions
type CategoryFunctionType = typeof categoryFunctions
interface Hellocash extends InvoiceFunctionType, CustomerFunctionType, ArticleFunctionType, CategoryFunctionType {}
class Hellocash {
constructor(authorizationToken: string) {
setAuthorization(authorizationToken)
Object.assign(this, invoiceFunctions)
Object.assign(this, customerFunctions)
Object.assign(this, articleFunctions)
Object.assign(this, categoryFunctions)
}
}
export = Hellocash