@react-pakistan/util-functions 1.24.61 → 1.24.63
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BankBE } from '../type';
|
|
2
2
|
interface GetBanksArgs {
|
|
3
3
|
prisma: any;
|
|
4
4
|
}
|
|
@@ -23,8 +23,8 @@ interface DeleteBankArgs {
|
|
|
23
23
|
id: string;
|
|
24
24
|
prisma: any;
|
|
25
25
|
}
|
|
26
|
-
export declare const getBanks: ({ prisma, }: GetBanksArgs) => Promise<Array<
|
|
27
|
-
export declare const getBankById: ({ prisma, id, }: GetBankByIdArgs) => Promise<
|
|
28
|
-
export declare const postBank: ({ prisma, accountNumber, accountTitle, bankAddress, bankName, enabled, iban, id, preferenceId, swiftCode, }: PostBankArgs) => Promise<Array<
|
|
29
|
-
export declare const deleteBank: ({ prisma, id, }: DeleteBankArgs) => Promise<
|
|
26
|
+
export declare const getBanks: ({ prisma, }: GetBanksArgs) => Promise<Array<BankBE>>;
|
|
27
|
+
export declare const getBankById: ({ prisma, id, }: GetBankByIdArgs) => Promise<BankBE>;
|
|
28
|
+
export declare const postBank: ({ prisma, accountNumber, accountTitle, bankAddress, bankName, enabled, iban, id, preferenceId, swiftCode, }: PostBankArgs) => Promise<Array<BankBE>>;
|
|
29
|
+
export declare const deleteBank: ({ prisma, id, }: DeleteBankArgs) => Promise<BankBE>;
|
|
30
30
|
export {};
|
|
@@ -6,7 +6,7 @@ export interface AppUserBE {
|
|
|
6
6
|
lastName: string;
|
|
7
7
|
updatedAt: string;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface BankBE {
|
|
10
10
|
accountNumber: string;
|
|
11
11
|
accountTitle: string;
|
|
12
12
|
bankAddress: string;
|
|
@@ -15,10 +15,11 @@ export interface BankingDetailBE {
|
|
|
15
15
|
enabled: boolean;
|
|
16
16
|
iban: string;
|
|
17
17
|
id: string;
|
|
18
|
-
|
|
18
|
+
isDefault: boolean;
|
|
19
19
|
preference: PreferenceBE;
|
|
20
20
|
swiftCode: string;
|
|
21
21
|
updatedAt: string;
|
|
22
|
+
preferenceId: string;
|
|
22
23
|
}
|
|
23
24
|
export interface BranchBE {
|
|
24
25
|
branchAddress: string;
|
|
@@ -32,6 +33,7 @@ export interface BranchBE {
|
|
|
32
33
|
personPhone: string;
|
|
33
34
|
preference: PreferenceBE;
|
|
34
35
|
updatedAt: string;
|
|
36
|
+
preferenceId: string;
|
|
35
37
|
}
|
|
36
38
|
export interface CompanyBE {
|
|
37
39
|
contacts: Array<ContactBE>;
|
|
@@ -65,6 +67,7 @@ export interface CurrencyBE {
|
|
|
65
67
|
label: string;
|
|
66
68
|
preference: PreferenceBE;
|
|
67
69
|
updatedAt: string;
|
|
70
|
+
preferenceId: string;
|
|
68
71
|
}
|
|
69
72
|
export interface CustomerBE {
|
|
70
73
|
address: string;
|
|
@@ -115,6 +118,7 @@ export interface MenuOrderBE {
|
|
|
115
118
|
order: number;
|
|
116
119
|
preference: PreferenceBE;
|
|
117
120
|
updatedAt: string;
|
|
121
|
+
preferenceId: string;
|
|
118
122
|
}
|
|
119
123
|
export interface PaymentBE {
|
|
120
124
|
amount: string;
|
|
@@ -138,9 +142,10 @@ export interface PaymentModeBE {
|
|
|
138
142
|
label: 'BANK_TRANSFER' | 'CASH' | 'CHEQUE' | 'OTHER';
|
|
139
143
|
preference: PreferenceBE;
|
|
140
144
|
updatedAt: string;
|
|
145
|
+
preferenceId: string;
|
|
141
146
|
}
|
|
142
147
|
export interface PreferenceBE {
|
|
143
|
-
bankingDetails: Array<
|
|
148
|
+
bankingDetails: Array<BankBE>;
|
|
144
149
|
branches: Array<BranchBE>;
|
|
145
150
|
createdAt: string;
|
|
146
151
|
currencies: Array<CurrencyBE>;
|
|
@@ -224,6 +229,7 @@ export interface TaxBE {
|
|
|
224
229
|
taxName: string;
|
|
225
230
|
taxRate: string;
|
|
226
231
|
updatedAt: string;
|
|
232
|
+
preferenceId: string;
|
|
227
233
|
}
|
|
228
234
|
export interface ServiceBE {
|
|
229
235
|
createdAt: string;
|