@react-pakistan/util-functions 1.24.63 → 1.24.65
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/api/stellar-solutions/type.d.ts +188 -139
- package/api/stellar-solutions/type.js +35 -1
- package/package.json +1 -1
|
@@ -1,39 +1,68 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare enum GENDER {
|
|
2
|
+
MALE = "MALE",
|
|
3
|
+
FEMALE = "FEMALE"
|
|
4
|
+
}
|
|
5
|
+
export declare enum QUOTE_INVOICE_CATEGORY {
|
|
6
|
+
QUOTE = "QUOTE",
|
|
7
|
+
INVOICE = "INVOICE"
|
|
8
|
+
}
|
|
9
|
+
export declare enum DISCOUNT_UNIT {
|
|
10
|
+
FIXED_VALUE = "FIXED_VALUE",
|
|
11
|
+
PERCENTAGE_VALUE = "PERCENTAGE_VALUE"
|
|
12
|
+
}
|
|
13
|
+
export declare enum INVOICE_STATUS {
|
|
14
|
+
UNPAID = "UNPAID",
|
|
15
|
+
PAID = "PAID"
|
|
16
|
+
}
|
|
17
|
+
export declare enum QUOTE_STATUS {
|
|
18
|
+
DRAFT = "DRAFT",
|
|
19
|
+
PENDING = "PENDING",
|
|
20
|
+
SENT = "SENT",
|
|
21
|
+
ACCEPTED = "ACCEPTED",
|
|
22
|
+
DECLINED = "DECLINED"
|
|
23
|
+
}
|
|
24
|
+
export declare enum PAYMENT_TYPE {
|
|
25
|
+
FULL_AMOUNT = "FULL_AMOUNT",
|
|
26
|
+
PARTIAL_AMOUNT = "PARTIAL_AMOUNT"
|
|
27
|
+
}
|
|
28
|
+
export interface ProfileBE {
|
|
29
|
+
avatar?: string;
|
|
2
30
|
createdAt: string;
|
|
31
|
+
dob?: string;
|
|
3
32
|
email: string;
|
|
4
33
|
firstName: string;
|
|
34
|
+
gender: GENDER;
|
|
5
35
|
id: string;
|
|
36
|
+
language?: string;
|
|
6
37
|
lastName: string;
|
|
38
|
+
location?: string;
|
|
39
|
+
phone: string;
|
|
40
|
+
skill?: string;
|
|
7
41
|
updatedAt: string;
|
|
42
|
+
userId: string;
|
|
8
43
|
}
|
|
9
|
-
export interface
|
|
10
|
-
|
|
11
|
-
accountTitle: string;
|
|
12
|
-
bankAddress: string;
|
|
13
|
-
bankName: string;
|
|
44
|
+
export interface ProductBE {
|
|
45
|
+
buyPrice: string;
|
|
14
46
|
createdAt: string;
|
|
15
|
-
|
|
16
|
-
|
|
47
|
+
currency: string;
|
|
48
|
+
description?: string;
|
|
17
49
|
id: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
50
|
+
image?: string;
|
|
51
|
+
name: string;
|
|
52
|
+
productCategory?: ProductCategoryBE;
|
|
53
|
+
productCategoryId: string;
|
|
54
|
+
quantity: string;
|
|
55
|
+
ref?: string;
|
|
56
|
+
salePrice: string;
|
|
21
57
|
updatedAt: string;
|
|
22
|
-
preferenceId: string;
|
|
23
58
|
}
|
|
24
|
-
export interface
|
|
25
|
-
branchAddress: string;
|
|
26
|
-
branchName: string;
|
|
59
|
+
export interface ProductCategoryBE {
|
|
27
60
|
createdAt: string;
|
|
28
|
-
|
|
61
|
+
description?: string;
|
|
29
62
|
id: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
personName: string;
|
|
33
|
-
personPhone: string;
|
|
34
|
-
preference: PreferenceBE;
|
|
63
|
+
name: string;
|
|
64
|
+
products: Array<ProductBE>;
|
|
35
65
|
updatedAt: string;
|
|
36
|
-
preferenceId: string;
|
|
37
66
|
}
|
|
38
67
|
export interface CompanyBE {
|
|
39
68
|
contacts: Array<ContactBE>;
|
|
@@ -42,13 +71,14 @@ export interface CompanyBE {
|
|
|
42
71
|
email: string;
|
|
43
72
|
id: string;
|
|
44
73
|
name: string;
|
|
45
|
-
phone:
|
|
74
|
+
phone: string;
|
|
46
75
|
quotesInvoices: Array<QuoteInvoiceBE>;
|
|
47
76
|
updatedAt: string;
|
|
48
|
-
website
|
|
77
|
+
website?: string;
|
|
49
78
|
}
|
|
50
79
|
export interface ContactBE {
|
|
51
|
-
company
|
|
80
|
+
company?: CompanyBE;
|
|
81
|
+
companyId: string;
|
|
52
82
|
country: string;
|
|
53
83
|
createdAt: string;
|
|
54
84
|
email: string;
|
|
@@ -58,94 +88,82 @@ export interface ContactBE {
|
|
|
58
88
|
phone: string;
|
|
59
89
|
updatedAt: string;
|
|
60
90
|
}
|
|
61
|
-
export interface
|
|
62
|
-
|
|
63
|
-
createdAt: string;
|
|
64
|
-
enabled: boolean;
|
|
65
|
-
id: string;
|
|
66
|
-
isDefault: boolean;
|
|
67
|
-
label: string;
|
|
68
|
-
preference: PreferenceBE;
|
|
69
|
-
updatedAt: string;
|
|
70
|
-
preferenceId: string;
|
|
71
|
-
}
|
|
72
|
-
export interface CustomerBE {
|
|
73
|
-
address: string;
|
|
74
|
-
city: string;
|
|
75
|
-
country: string;
|
|
91
|
+
export interface ExpenseCategoryBE {
|
|
92
|
+
color: string;
|
|
76
93
|
createdAt: string;
|
|
77
|
-
|
|
78
|
-
|
|
94
|
+
description?: string;
|
|
95
|
+
expenses: Array<ExpenseBE>;
|
|
79
96
|
id: string;
|
|
80
|
-
|
|
81
|
-
lastName: string;
|
|
82
|
-
phone: string;
|
|
97
|
+
name: string;
|
|
83
98
|
updatedAt: string;
|
|
84
99
|
}
|
|
85
100
|
export interface ExpenseBE {
|
|
86
101
|
createdAt: string;
|
|
87
102
|
currency: string;
|
|
88
103
|
description: string;
|
|
89
|
-
expenseCategory
|
|
104
|
+
expenseCategory?: ExpenseCategoryBE;
|
|
105
|
+
expenseCategoryId: string;
|
|
90
106
|
id: string;
|
|
91
107
|
name: string;
|
|
92
|
-
ref
|
|
108
|
+
ref?: string;
|
|
93
109
|
total: string;
|
|
94
110
|
updatedAt: string;
|
|
95
111
|
}
|
|
96
|
-
export interface
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
expenses: Array<ExpenseBE>;
|
|
101
|
-
id: string;
|
|
102
|
-
name: string;
|
|
103
|
-
updatedAt: string;
|
|
104
|
-
}
|
|
105
|
-
export interface LeadBE {
|
|
112
|
+
export interface QuoteInvoiceBE {
|
|
113
|
+
category: QUOTE_INVOICE_CATEGORY;
|
|
114
|
+
company?: CompanyBE;
|
|
115
|
+
companyId?: string;
|
|
106
116
|
createdAt: string;
|
|
117
|
+
currency: string;
|
|
118
|
+
customer?: CustomerBE;
|
|
119
|
+
customerId?: string;
|
|
120
|
+
date: string;
|
|
121
|
+
discount?: string;
|
|
122
|
+
discountUnit: DISCOUNT_UNIT;
|
|
123
|
+
expiryDate: string;
|
|
107
124
|
id: string;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
125
|
+
invoiceStatus: INVOICE_STATUS;
|
|
126
|
+
note: string;
|
|
127
|
+
payments: Array<PaymentBE>;
|
|
128
|
+
products: Array<ProductBE>;
|
|
129
|
+
quoteStatus: QUOTE_STATUS;
|
|
130
|
+
ref: string;
|
|
131
|
+
services: Array<ServiceBE>;
|
|
132
|
+
subTotal: string;
|
|
133
|
+
taxRate: string;
|
|
134
|
+
total: string;
|
|
112
135
|
updatedAt: string;
|
|
113
136
|
}
|
|
114
|
-
export interface
|
|
137
|
+
export interface ServiceBE {
|
|
115
138
|
createdAt: string;
|
|
139
|
+
description?: string;
|
|
116
140
|
id: string;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
141
|
+
name: string;
|
|
142
|
+
price: string;
|
|
143
|
+
quantity: string;
|
|
144
|
+
quoteInvoice?: QuoteInvoiceBE;
|
|
145
|
+
quoteInvoiceId: string;
|
|
120
146
|
updatedAt: string;
|
|
121
|
-
preferenceId: string;
|
|
122
147
|
}
|
|
123
148
|
export interface PaymentBE {
|
|
124
149
|
amount: string;
|
|
125
|
-
attachment
|
|
150
|
+
attachment?: string;
|
|
151
|
+
balance: string;
|
|
126
152
|
createdAt: string;
|
|
127
153
|
currency: string;
|
|
128
154
|
date: string;
|
|
129
|
-
description
|
|
130
|
-
id: string;
|
|
131
|
-
mode: 'BANK TRANSFER' | 'CASH' | 'CHEQUE' | 'OTHER';
|
|
132
|
-
paymentType: 'FULL_AMOUNT' | 'PARTIAL_AMOUNT';
|
|
133
|
-
quoteInvoice: QuoteInvoiceBE;
|
|
134
|
-
ref: string;
|
|
135
|
-
updatedAt: string;
|
|
136
|
-
}
|
|
137
|
-
export interface PaymentModeBE {
|
|
138
|
-
createdAt: string;
|
|
139
|
-
enabled: boolean;
|
|
155
|
+
description?: string;
|
|
140
156
|
id: string;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
157
|
+
paymentMode?: PaymentModeBE;
|
|
158
|
+
paymentModeId: string;
|
|
159
|
+
paymentType: PAYMENT_TYPE;
|
|
160
|
+
quoteInvoice?: QuoteInvoiceBE;
|
|
161
|
+
quoteInvoiceId: string;
|
|
162
|
+
ref?: string;
|
|
144
163
|
updatedAt: string;
|
|
145
|
-
preferenceId: string;
|
|
146
164
|
}
|
|
147
165
|
export interface PreferenceBE {
|
|
148
|
-
|
|
166
|
+
banks: Array<BankBE>;
|
|
149
167
|
branches: Array<BranchBE>;
|
|
150
168
|
createdAt: string;
|
|
151
169
|
currencies: Array<CurrencyBE>;
|
|
@@ -156,89 +174,120 @@ export interface PreferenceBE {
|
|
|
156
174
|
taxes: Array<TaxBE>;
|
|
157
175
|
updatedAt: string;
|
|
158
176
|
}
|
|
159
|
-
export interface
|
|
160
|
-
authorName: string;
|
|
161
|
-
buyPrice: string;
|
|
177
|
+
export interface AppUserBE {
|
|
162
178
|
createdAt: string;
|
|
163
|
-
|
|
164
|
-
|
|
179
|
+
email: string;
|
|
180
|
+
firstName: string;
|
|
165
181
|
id: string;
|
|
166
|
-
|
|
167
|
-
isbn: string;
|
|
168
|
-
name: string;
|
|
169
|
-
productCategoryId: string;
|
|
170
|
-
quantity: string;
|
|
171
|
-
ref: string;
|
|
172
|
-
salePrice: string;
|
|
182
|
+
lastName: string;
|
|
173
183
|
updatedAt: string;
|
|
174
184
|
}
|
|
175
|
-
export interface
|
|
185
|
+
export interface MenuOrderBE {
|
|
176
186
|
createdAt: string;
|
|
177
|
-
description: string;
|
|
178
187
|
id: string;
|
|
179
|
-
|
|
180
|
-
|
|
188
|
+
label: string;
|
|
189
|
+
order: number;
|
|
190
|
+
preference?: PreferenceBE;
|
|
191
|
+
preferenceId: string;
|
|
181
192
|
updatedAt: string;
|
|
182
193
|
}
|
|
183
|
-
export interface
|
|
184
|
-
avatar: string;
|
|
194
|
+
export interface PaymentModeBE {
|
|
185
195
|
createdAt: string;
|
|
186
|
-
|
|
187
|
-
email: string;
|
|
188
|
-
firstName: string;
|
|
189
|
-
gender: 'Male' | 'Female';
|
|
196
|
+
enabled: boolean;
|
|
190
197
|
id: string;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
198
|
+
isDefault: boolean;
|
|
199
|
+
label: string;
|
|
200
|
+
payments: Array<PaymentBE>;
|
|
201
|
+
preference?: PreferenceBE;
|
|
202
|
+
preferenceId: string;
|
|
196
203
|
updatedAt: string;
|
|
197
|
-
userId: string;
|
|
198
204
|
}
|
|
199
|
-
export interface
|
|
200
|
-
|
|
201
|
-
|
|
205
|
+
export interface BankBE {
|
|
206
|
+
accountNumber: string;
|
|
207
|
+
accountTitle: string;
|
|
208
|
+
bankAddress?: string;
|
|
209
|
+
bankName: string;
|
|
202
210
|
createdAt: string;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
date: string;
|
|
206
|
-
discount: string;
|
|
207
|
-
discountUnit: string;
|
|
208
|
-
expiryDate: string;
|
|
211
|
+
enabled: boolean;
|
|
212
|
+
iban?: string;
|
|
209
213
|
id: string;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
quoteStatus: 'DRAFT' | 'PENDING' | 'SENT' | 'ACCEPTED' | 'DECLINED';
|
|
215
|
-
ref: string;
|
|
216
|
-
services: Array<ServiceBE>;
|
|
217
|
-
subTotal: string;
|
|
218
|
-
taxRate: string;
|
|
219
|
-
total: string;
|
|
214
|
+
isDefault: boolean;
|
|
215
|
+
preference?: PreferenceBE;
|
|
216
|
+
preferenceId: string;
|
|
217
|
+
swiftCode?: string;
|
|
220
218
|
updatedAt: string;
|
|
221
219
|
}
|
|
222
220
|
export interface TaxBE {
|
|
223
221
|
createdAt: string;
|
|
224
|
-
description
|
|
222
|
+
description?: string;
|
|
225
223
|
enabled: boolean;
|
|
226
224
|
id: string;
|
|
227
225
|
isDefault: boolean;
|
|
228
|
-
preference
|
|
226
|
+
preference?: PreferenceBE;
|
|
227
|
+
preferenceId: string;
|
|
229
228
|
taxName: string;
|
|
230
229
|
taxRate: string;
|
|
231
230
|
updatedAt: string;
|
|
231
|
+
}
|
|
232
|
+
export interface BranchBE {
|
|
233
|
+
branchAddress: string;
|
|
234
|
+
branchName: string;
|
|
235
|
+
createdAt: string;
|
|
236
|
+
enabled: boolean;
|
|
237
|
+
id: string;
|
|
238
|
+
isDefault: boolean;
|
|
239
|
+
personEmail: string;
|
|
240
|
+
personName: string;
|
|
241
|
+
personPhone: string;
|
|
242
|
+
preference?: PreferenceBE;
|
|
232
243
|
preferenceId: string;
|
|
244
|
+
updatedAt: string;
|
|
233
245
|
}
|
|
234
|
-
export interface
|
|
246
|
+
export interface CurrencyBE {
|
|
247
|
+
code: string;
|
|
235
248
|
createdAt: string;
|
|
236
|
-
|
|
249
|
+
enabled: boolean;
|
|
237
250
|
id: string;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
251
|
+
isDefault: boolean;
|
|
252
|
+
label: string;
|
|
253
|
+
preference?: PreferenceBE;
|
|
254
|
+
preferenceId: string;
|
|
255
|
+
updatedAt: string;
|
|
256
|
+
}
|
|
257
|
+
export interface CustomerBE {
|
|
258
|
+
address?: string;
|
|
259
|
+
city: string;
|
|
260
|
+
country: string;
|
|
261
|
+
createdAt: string;
|
|
262
|
+
email?: string;
|
|
263
|
+
firstName: string;
|
|
264
|
+
id: string;
|
|
265
|
+
invoices: Array<QuoteInvoiceBE>;
|
|
266
|
+
lastName: string;
|
|
267
|
+
phone: string;
|
|
268
|
+
updatedAt: string;
|
|
269
|
+
}
|
|
270
|
+
export interface RequestFormBE {
|
|
271
|
+
businessType: string;
|
|
272
|
+
companyName: string;
|
|
273
|
+
companySize?: string;
|
|
274
|
+
createdAt: string;
|
|
275
|
+
designation: string;
|
|
276
|
+
firstName: string;
|
|
277
|
+
headOffice?: string;
|
|
278
|
+
id: string;
|
|
279
|
+
lastName: string;
|
|
280
|
+
phoneNumber: string;
|
|
281
|
+
updatedAt: string;
|
|
282
|
+
website?: string;
|
|
283
|
+
workEmail: string;
|
|
284
|
+
}
|
|
285
|
+
export interface LeadBE {
|
|
286
|
+
createdAt: string;
|
|
287
|
+
id: string;
|
|
288
|
+
notes?: string;
|
|
289
|
+
source: 'ADVERTISING' | 'CUSTOMER_REFERRAL' | 'FRIEND' | 'LINKEDIN' | 'OTHER' | 'PROFESSIONAL_NETWORK' | 'SALES' | 'SOCIAL_MEDIA' | 'WEBSITE';
|
|
290
|
+
status: 'ASSIGNED' | 'CANCELLED' | 'DRAFT' | 'IN_NEGOTIATION' | 'LOOSE' | 'NEW' | 'ON_HOLD' | 'WAITING' | 'WON';
|
|
291
|
+
type: 'COMPANY' | 'CONTACT';
|
|
243
292
|
updatedAt: string;
|
|
244
293
|
}
|
|
@@ -1,3 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* eslint-disable
|
|
2
|
+
/* eslint-disable no-restricted-globals */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PAYMENT_TYPE = exports.QUOTE_STATUS = exports.INVOICE_STATUS = exports.DISCOUNT_UNIT = exports.QUOTE_INVOICE_CATEGORY = exports.GENDER = void 0;
|
|
5
|
+
var GENDER;
|
|
6
|
+
(function (GENDER) {
|
|
7
|
+
GENDER["MALE"] = "MALE";
|
|
8
|
+
GENDER["FEMALE"] = "FEMALE";
|
|
9
|
+
})(GENDER || (exports.GENDER = GENDER = {}));
|
|
10
|
+
var QUOTE_INVOICE_CATEGORY;
|
|
11
|
+
(function (QUOTE_INVOICE_CATEGORY) {
|
|
12
|
+
QUOTE_INVOICE_CATEGORY["QUOTE"] = "QUOTE";
|
|
13
|
+
QUOTE_INVOICE_CATEGORY["INVOICE"] = "INVOICE";
|
|
14
|
+
})(QUOTE_INVOICE_CATEGORY || (exports.QUOTE_INVOICE_CATEGORY = QUOTE_INVOICE_CATEGORY = {}));
|
|
15
|
+
var DISCOUNT_UNIT;
|
|
16
|
+
(function (DISCOUNT_UNIT) {
|
|
17
|
+
DISCOUNT_UNIT["FIXED_VALUE"] = "FIXED_VALUE";
|
|
18
|
+
DISCOUNT_UNIT["PERCENTAGE_VALUE"] = "PERCENTAGE_VALUE";
|
|
19
|
+
})(DISCOUNT_UNIT || (exports.DISCOUNT_UNIT = DISCOUNT_UNIT = {}));
|
|
20
|
+
var INVOICE_STATUS;
|
|
21
|
+
(function (INVOICE_STATUS) {
|
|
22
|
+
INVOICE_STATUS["UNPAID"] = "UNPAID";
|
|
23
|
+
INVOICE_STATUS["PAID"] = "PAID";
|
|
24
|
+
})(INVOICE_STATUS || (exports.INVOICE_STATUS = INVOICE_STATUS = {}));
|
|
25
|
+
var QUOTE_STATUS;
|
|
26
|
+
(function (QUOTE_STATUS) {
|
|
27
|
+
QUOTE_STATUS["DRAFT"] = "DRAFT";
|
|
28
|
+
QUOTE_STATUS["PENDING"] = "PENDING";
|
|
29
|
+
QUOTE_STATUS["SENT"] = "SENT";
|
|
30
|
+
QUOTE_STATUS["ACCEPTED"] = "ACCEPTED";
|
|
31
|
+
QUOTE_STATUS["DECLINED"] = "DECLINED";
|
|
32
|
+
})(QUOTE_STATUS || (exports.QUOTE_STATUS = QUOTE_STATUS = {}));
|
|
33
|
+
var PAYMENT_TYPE;
|
|
34
|
+
(function (PAYMENT_TYPE) {
|
|
35
|
+
PAYMENT_TYPE["FULL_AMOUNT"] = "FULL_AMOUNT";
|
|
36
|
+
PAYMENT_TYPE["PARTIAL_AMOUNT"] = "PARTIAL_AMOUNT";
|
|
37
|
+
})(PAYMENT_TYPE || (exports.PAYMENT_TYPE = PAYMENT_TYPE = {}));
|