@appcorp/stellar-solutions-modules 0.1.10 → 0.1.12
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/global-modules/branch/actions.d.ts +83 -0
- package/global-modules/branch/actions.js +18 -0
- package/global-modules/branch/branch.d.ts +2 -0
- package/global-modules/branch/branch.js +69 -0
- package/global-modules/branch/constants.d.ts +35 -0
- package/global-modules/branch/constants.js +155 -0
- package/global-modules/branch/context.d.ts +10 -0
- package/global-modules/branch/context.js +422 -0
- package/global-modules/branch/drawer.d.ts +8 -0
- package/global-modules/branch/drawer.js +19 -0
- package/global-modules/branch/form-elements.d.ts +3 -0
- package/global-modules/branch/form-elements.js +41 -0
- package/global-modules/branch/form.d.ts +8 -0
- package/global-modules/branch/form.js +80 -0
- package/global-modules/branch/reducer.d.ts +4 -0
- package/global-modules/branch/reducer.js +167 -0
- package/global-modules/branch/types.d.ts +255 -0
- package/global-modules/branch/types.js +22 -0
- package/global-modules/branch/validate.d.ts +30 -0
- package/global-modules/branch/validate.js +19 -0
- package/global-modules/payment-mode/actions.d.ts +83 -0
- package/global-modules/payment-mode/actions.js +18 -0
- package/global-modules/payment-mode/constants.d.ts +28 -0
- package/global-modules/payment-mode/constants.js +91 -0
- package/global-modules/payment-mode/context.d.ts +10 -0
- package/global-modules/payment-mode/context.js +418 -0
- package/global-modules/payment-mode/drawer.d.ts +8 -0
- package/global-modules/payment-mode/drawer.js +19 -0
- package/global-modules/payment-mode/form-elements.d.ts +3 -0
- package/global-modules/payment-mode/form-elements.js +41 -0
- package/global-modules/payment-mode/form.d.ts +8 -0
- package/global-modules/payment-mode/form.js +80 -0
- package/global-modules/payment-mode/payment-mode.d.ts +2 -0
- package/global-modules/payment-mode/payment-mode.js +53 -0
- package/global-modules/payment-mode/reducer.d.ts +4 -0
- package/global-modules/payment-mode/reducer.js +163 -0
- package/global-modules/payment-mode/types.d.ts +251 -0
- package/global-modules/payment-mode/types.js +22 -0
- package/global-modules/payment-mode/validate.d.ts +18 -0
- package/global-modules/payment-mode/validate.js +13 -0
- package/global-modules/preferences/actions.d.ts +200 -0
- package/global-modules/preferences/actions.js +37 -0
- package/global-modules/preferences/bank.d.ts +2 -0
- package/global-modules/preferences/bank.js +11 -0
- package/global-modules/preferences/branch-drawer.d.ts +8 -0
- package/global-modules/preferences/branch-drawer.js +19 -0
- package/global-modules/preferences/branch-form-elements.d.ts +3 -0
- package/global-modules/preferences/branch-form-elements.js +41 -0
- package/global-modules/preferences/branch-form.d.ts +8 -0
- package/global-modules/preferences/branch-form.js +81 -0
- package/global-modules/preferences/branch.d.ts +2 -0
- package/global-modules/preferences/branch.js +69 -0
- package/global-modules/preferences/constants.d.ts +70 -0
- package/global-modules/preferences/constants.js +400 -0
- package/global-modules/preferences/context.d.ts +10 -0
- package/global-modules/preferences/context.js +1011 -0
- package/global-modules/preferences/currency.d.ts +2 -0
- package/global-modules/preferences/currency.js +49 -0
- package/global-modules/preferences/payment-mode-drawer.d.ts +8 -0
- package/global-modules/preferences/payment-mode-drawer.js +19 -0
- package/global-modules/preferences/payment-mode-form-elements.d.ts +3 -0
- package/global-modules/preferences/payment-mode-form-elements.js +41 -0
- package/global-modules/preferences/payment-mode-form.d.ts +8 -0
- package/global-modules/preferences/payment-mode-form.js +81 -0
- package/global-modules/preferences/payment-mode.d.ts +2 -0
- package/global-modules/preferences/payment-mode.js +57 -0
- package/global-modules/preferences/preferences.d.ts +10 -0
- package/global-modules/preferences/preferences.js +108 -0
- package/global-modules/preferences/reducer.d.ts +4 -0
- package/global-modules/preferences/reducer.js +219 -0
- package/global-modules/preferences/types.d.ts +333 -0
- package/global-modules/preferences/types.js +23 -0
- package/global-modules/preferences/validate.d.ts +21 -0
- package/global-modules/preferences/validate.js +16 -0
- package/global-modules/tax/actions.d.ts +83 -0
- package/global-modules/tax/actions.js +18 -0
- package/global-modules/tax/constants.d.ts +42 -0
- package/global-modules/tax/constants.js +143 -0
- package/global-modules/tax/context.d.ts +10 -0
- package/global-modules/tax/context.js +420 -0
- package/global-modules/tax/drawer.d.ts +8 -0
- package/global-modules/tax/drawer.js +19 -0
- package/global-modules/tax/form-elements.d.ts +3 -0
- package/global-modules/tax/form-elements.js +41 -0
- package/global-modules/tax/form.d.ts +8 -0
- package/global-modules/tax/form.js +80 -0
- package/global-modules/tax/reducer.d.ts +4 -0
- package/global-modules/tax/reducer.js +74 -0
- package/global-modules/tax/tax.d.ts +2 -0
- package/global-modules/tax/tax.js +63 -0
- package/global-modules/tax/types.d.ts +253 -0
- package/global-modules/tax/types.js +22 -0
- package/global-modules/tax/validate.d.ts +24 -0
- package/global-modules/tax/validate.js +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.taxValidationError = exports.dashboardTabsMap = exports.toastErrors = exports.PREFERENCE_API_ROUTES = exports.taxTableBodyCols = exports.branchTableBodyCols = exports.paymentModeTableBodyCols = exports.taxStaticFormElements = exports.paymentModeStaticFormElements = exports.staticBankDetailsFormElements = exports.initialMenuItems = exports.pageLimit = void 0;
|
|
8
|
+
var react_1 = __importDefault(require("react"));
|
|
9
|
+
var form_schema_1 = require("@appcorp/app-corp-vista/utils/form-schema");
|
|
10
|
+
var currency_1 = require("./currency");
|
|
11
|
+
var payment_mode_1 = require("../payment-mode/payment-mode");
|
|
12
|
+
var branch_1 = require("../branch/branch");
|
|
13
|
+
var tax_1 = require("../tax/tax");
|
|
14
|
+
var bank_1 = require("./bank");
|
|
15
|
+
var vista_table_type_1 = require("@appcorp/app-corp-vista/type/vista-table-type");
|
|
16
|
+
exports.pageLimit = Number(process.env.NEXT_PUBLIC_PAGE_LIMIT);
|
|
17
|
+
exports.initialMenuItems = [
|
|
18
|
+
{ id: 'item-1', label: 'Dashboard', order: 1, preferenceId: 'preference-1' },
|
|
19
|
+
{ id: 'item-2', label: 'Product', order: 3, preferenceId: 'preference-1' },
|
|
20
|
+
{ id: 'item-3', label: 'Company', order: 4, preferenceId: 'preference-1' },
|
|
21
|
+
{
|
|
22
|
+
id: 'item-4',
|
|
23
|
+
label: 'Product Category',
|
|
24
|
+
order: 2,
|
|
25
|
+
preferenceId: 'preference-1',
|
|
26
|
+
},
|
|
27
|
+
{ id: 'item-5', label: 'Contact', order: 5, preferenceId: 'preference-1' },
|
|
28
|
+
{ id: 'item-6', label: 'Lead', order: 6, preferenceId: 'preference-1' },
|
|
29
|
+
{ id: 'item-7', label: 'Expense', order: 8, preferenceId: 'preference-1' },
|
|
30
|
+
{
|
|
31
|
+
id: 'item-8',
|
|
32
|
+
label: 'Expense Category',
|
|
33
|
+
order: 7,
|
|
34
|
+
preferenceId: 'preference-1',
|
|
35
|
+
},
|
|
36
|
+
{ id: 'item-9', label: 'Quote', order: 9, preferenceId: 'preference-1' },
|
|
37
|
+
{ id: 'item-10', label: 'Invoice', order: 10, preferenceId: 'preference-1' },
|
|
38
|
+
{ id: 'item-11', label: 'Payment', order: 11, preferenceId: 'preference-1' },
|
|
39
|
+
{
|
|
40
|
+
id: 'item-12',
|
|
41
|
+
label: 'Customers',
|
|
42
|
+
order: 12,
|
|
43
|
+
preferenceId: 'preference-1',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'item-13',
|
|
47
|
+
label: 'Inventory',
|
|
48
|
+
order: 13,
|
|
49
|
+
preferenceId: 'preference-1',
|
|
50
|
+
},
|
|
51
|
+
{ id: 'item-14', label: 'Template', order: 14, preferenceId: 'preference-1' },
|
|
52
|
+
{
|
|
53
|
+
id: 'item-15',
|
|
54
|
+
label: 'Business Contact',
|
|
55
|
+
order: 15,
|
|
56
|
+
preferenceId: 'preference-1',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: 'item-16',
|
|
60
|
+
label: 'Reports',
|
|
61
|
+
order: 16,
|
|
62
|
+
preferenceId: 'preference-1',
|
|
63
|
+
},
|
|
64
|
+
{ id: 'item-17', label: 'Log out', order: 17, preferenceId: 'preference-1' },
|
|
65
|
+
];
|
|
66
|
+
exports.staticBankDetailsFormElements = (_a = {},
|
|
67
|
+
_a[form_schema_1.VISTA_FORM_ELEMENTS.TEXT_INPUT_V1] = [
|
|
68
|
+
{
|
|
69
|
+
enabled: true,
|
|
70
|
+
order: 1,
|
|
71
|
+
id: 'accountTitle',
|
|
72
|
+
type: 'text',
|
|
73
|
+
placeholder: '',
|
|
74
|
+
label: '',
|
|
75
|
+
value: '',
|
|
76
|
+
handleOnChange: function () { return void 0; },
|
|
77
|
+
required: true,
|
|
78
|
+
disabled: false,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
enabled: true,
|
|
82
|
+
order: 2,
|
|
83
|
+
id: 'accountNumber',
|
|
84
|
+
type: 'text',
|
|
85
|
+
placeholder: '',
|
|
86
|
+
label: '',
|
|
87
|
+
value: '',
|
|
88
|
+
handleOnChange: function () { return void 0; },
|
|
89
|
+
required: true,
|
|
90
|
+
disabled: false,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
enabled: true,
|
|
94
|
+
order: 3,
|
|
95
|
+
id: 'iban',
|
|
96
|
+
type: 'text',
|
|
97
|
+
placeholder: '',
|
|
98
|
+
label: '',
|
|
99
|
+
value: '',
|
|
100
|
+
handleOnChange: function () { return void 0; },
|
|
101
|
+
required: true,
|
|
102
|
+
disabled: false,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
enabled: true,
|
|
106
|
+
order: 4,
|
|
107
|
+
id: 'swiftCode',
|
|
108
|
+
type: 'text',
|
|
109
|
+
placeholder: '',
|
|
110
|
+
label: '',
|
|
111
|
+
value: '',
|
|
112
|
+
handleOnChange: function () { return void 0; },
|
|
113
|
+
required: true,
|
|
114
|
+
disabled: false,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
enabled: true,
|
|
118
|
+
order: 5,
|
|
119
|
+
id: 'bankName',
|
|
120
|
+
type: 'text',
|
|
121
|
+
placeholder: '',
|
|
122
|
+
label: '',
|
|
123
|
+
value: '',
|
|
124
|
+
handleOnChange: function () { return void 0; },
|
|
125
|
+
required: true,
|
|
126
|
+
disabled: false,
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
_a[form_schema_1.VISTA_FORM_ELEMENTS.TEXT_AREA_V1] = [
|
|
130
|
+
{
|
|
131
|
+
enabled: true,
|
|
132
|
+
order: 6,
|
|
133
|
+
id: 'bankAddress',
|
|
134
|
+
placeholder: '',
|
|
135
|
+
label: '',
|
|
136
|
+
value: '',
|
|
137
|
+
handleOnChange: function () { return void 0; },
|
|
138
|
+
disabled: false,
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
_a);
|
|
142
|
+
exports.paymentModeStaticFormElements = (_b = {},
|
|
143
|
+
_b[form_schema_1.VISTA_FORM_ELEMENTS.TEXT_INPUT_V1] = [
|
|
144
|
+
{
|
|
145
|
+
enabled: true,
|
|
146
|
+
error: '',
|
|
147
|
+
handleOnChange: function () { return void 0; },
|
|
148
|
+
id: 'name',
|
|
149
|
+
label: 'formLabelName',
|
|
150
|
+
order: 1,
|
|
151
|
+
placeholder: 'Company Name goes here...',
|
|
152
|
+
required: true,
|
|
153
|
+
type: 'text',
|
|
154
|
+
value: '',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
enabled: true,
|
|
158
|
+
error: '',
|
|
159
|
+
handleOnChange: function () { return void 0; },
|
|
160
|
+
id: 'phone',
|
|
161
|
+
label: 'formLabelPhone',
|
|
162
|
+
order: 2,
|
|
163
|
+
placeholder: 'Phone goes here...',
|
|
164
|
+
required: true,
|
|
165
|
+
type: 'text',
|
|
166
|
+
value: '',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
enabled: true,
|
|
170
|
+
error: '',
|
|
171
|
+
handleOnChange: function () { return void 0; },
|
|
172
|
+
id: 'email',
|
|
173
|
+
label: 'formLabelEmail',
|
|
174
|
+
order: 3,
|
|
175
|
+
placeholder: 'Email goes here...',
|
|
176
|
+
required: true,
|
|
177
|
+
type: 'email',
|
|
178
|
+
value: '',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
enabled: true,
|
|
182
|
+
error: '',
|
|
183
|
+
handleOnChange: function () { return void 0; },
|
|
184
|
+
id: 'website',
|
|
185
|
+
label: 'formLabelWebsite',
|
|
186
|
+
order: 4,
|
|
187
|
+
placeholder: 'Website goes here...',
|
|
188
|
+
required: true,
|
|
189
|
+
type: 'text',
|
|
190
|
+
value: '',
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
_b[form_schema_1.VISTA_FORM_ELEMENTS.COMBOBOX_V1] = [
|
|
194
|
+
{
|
|
195
|
+
disabled: false,
|
|
196
|
+
enabled: true,
|
|
197
|
+
handleInputOnChange: function () { return void 0; },
|
|
198
|
+
handleOnBlur: function () { return void 0; },
|
|
199
|
+
handleOnChange: function () { return void 0; },
|
|
200
|
+
label: 'formLabelCountry',
|
|
201
|
+
listItems: [{ id: 'country-1', name: 'Country1' }, { id: 'country-2', name: 'Country2' }],
|
|
202
|
+
nodeQueryKey: 'countryQuery',
|
|
203
|
+
nodeSelectKey: 'country',
|
|
204
|
+
order: 5,
|
|
205
|
+
query: '',
|
|
206
|
+
required: true,
|
|
207
|
+
selectKey1: 'name',
|
|
208
|
+
selectedItem: { id: 'country-2' },
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
_b);
|
|
212
|
+
exports.taxStaticFormElements = (_c = {},
|
|
213
|
+
_c[form_schema_1.VISTA_FORM_ELEMENTS.TEXT_INPUT_V1] = [
|
|
214
|
+
{
|
|
215
|
+
enabled: true,
|
|
216
|
+
error: '',
|
|
217
|
+
handleOnChange: function () { return void 0; },
|
|
218
|
+
id: 'taxName',
|
|
219
|
+
label: 'formLabelTaxName',
|
|
220
|
+
order: 1,
|
|
221
|
+
placeholder: 'Tax Name...',
|
|
222
|
+
required: true,
|
|
223
|
+
type: 'text',
|
|
224
|
+
value: '',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
enabled: true,
|
|
228
|
+
error: '',
|
|
229
|
+
handleOnChange: function () { return void 0; },
|
|
230
|
+
id: 'taxRate',
|
|
231
|
+
label: 'formLabelTaxRate',
|
|
232
|
+
order: 2,
|
|
233
|
+
placeholder: 'Tax Rate...',
|
|
234
|
+
required: true,
|
|
235
|
+
type: 'number',
|
|
236
|
+
value: '',
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
_c[form_schema_1.VISTA_FORM_ELEMENTS.TOGGLE_V1] = [
|
|
240
|
+
{
|
|
241
|
+
id: 'enabled',
|
|
242
|
+
enabled: true,
|
|
243
|
+
value: false,
|
|
244
|
+
order: 3,
|
|
245
|
+
handleOnChange: function () { return void 0; },
|
|
246
|
+
label: 'Enabled',
|
|
247
|
+
required: true,
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
id: 'isDefault',
|
|
251
|
+
enabled: true,
|
|
252
|
+
value: false,
|
|
253
|
+
order: 4,
|
|
254
|
+
handleOnChange: function () { return void 0; },
|
|
255
|
+
label: 'IsDefault',
|
|
256
|
+
required: true,
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
_c[form_schema_1.VISTA_FORM_ELEMENTS.TEXT_AREA_V1] = [
|
|
260
|
+
{
|
|
261
|
+
enabled: true,
|
|
262
|
+
handleOnChange: function () { return void 0; },
|
|
263
|
+
id: 'description',
|
|
264
|
+
label: 'formLabelDescription',
|
|
265
|
+
order: 5,
|
|
266
|
+
placeholder: 'Tax Description...',
|
|
267
|
+
required: false,
|
|
268
|
+
value: '',
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
_c);
|
|
272
|
+
exports.paymentModeTableBodyCols = [
|
|
273
|
+
{
|
|
274
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ID,
|
|
275
|
+
key: 'id',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOLD_TEXT,
|
|
279
|
+
key: 'label',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
|
|
283
|
+
key: 'enabled',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
|
|
287
|
+
key: 'isDefault',
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.CREATED_UPDATED_AT,
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ACTIONS,
|
|
294
|
+
},
|
|
295
|
+
];
|
|
296
|
+
exports.branchTableBodyCols = [
|
|
297
|
+
{
|
|
298
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ID,
|
|
299
|
+
key: 'id',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOLD_TEXT,
|
|
303
|
+
key: 'branchName',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
|
|
307
|
+
key: 'branchAddress',
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
|
|
311
|
+
key: 'enabled',
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
|
|
315
|
+
key: 'isDefault',
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
|
|
319
|
+
key: 'personName',
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.MULTIPLE_TEXT_LINES,
|
|
323
|
+
key: ['personPhone', 'personEmail'],
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.CREATED_UPDATED_AT,
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ACTIONS,
|
|
330
|
+
},
|
|
331
|
+
];
|
|
332
|
+
exports.taxTableBodyCols = [
|
|
333
|
+
{
|
|
334
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ID,
|
|
335
|
+
key: 'id',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOLD_TEXT,
|
|
339
|
+
key: 'taxName',
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
|
|
343
|
+
key: 'taxRate',
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.TEXT,
|
|
347
|
+
key: 'description',
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
|
|
351
|
+
key: 'enabled',
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.BOOLEAN,
|
|
355
|
+
key: 'isDefault',
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.CREATED_UPDATED_AT,
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
componentType: vista_table_type_1.VISTA_TABLE_CELL_TYPE.ACTIONS,
|
|
362
|
+
},
|
|
363
|
+
];
|
|
364
|
+
exports.PREFERENCE_API_ROUTES = {
|
|
365
|
+
BRANCH: '/api/branch',
|
|
366
|
+
BRANCHES: '/api/branches',
|
|
367
|
+
BRANCH_BY_ID: '/api/branch/branch-by-id',
|
|
368
|
+
CURRENCIES: '/api/currencies',
|
|
369
|
+
CURRENCY: '/api/currency',
|
|
370
|
+
CURRENCY_BY_ID: '/api/currency/currency-by-id',
|
|
371
|
+
PAYMENT_MODE: '/api/payment-mode',
|
|
372
|
+
PAYMENT_MODES: '/api/payment-modes',
|
|
373
|
+
PAYMENT_MODE_BY_ID: '/api/payment-mode/payment-mode-by-id',
|
|
374
|
+
PREFERENCE: '/api/preference',
|
|
375
|
+
PREFERENCES: '/api/preferences',
|
|
376
|
+
PREFERENCE_BY_ID: '/api/preference/preference-by-id',
|
|
377
|
+
TAX: '/api/tax',
|
|
378
|
+
TAXES: '/api/taxes',
|
|
379
|
+
TAX_BY_ID: '/api/tax/tax-by-id',
|
|
380
|
+
};
|
|
381
|
+
exports.toastErrors = {
|
|
382
|
+
fetchInvoiceError: 'Error Fetching Invoice',
|
|
383
|
+
formSubmittedSuccess: 'Form Submitted Successfully',
|
|
384
|
+
genericError: 'Something Went Wrong',
|
|
385
|
+
networkError: 'Network Error Occurred',
|
|
386
|
+
submitFormError: 'Error Submitting Form',
|
|
387
|
+
validationError: 'Validation Failed',
|
|
388
|
+
};
|
|
389
|
+
exports.dashboardTabsMap = {
|
|
390
|
+
'Currency': react_1.default.createElement(currency_1.Currency, null),
|
|
391
|
+
'Payment Mode': react_1.default.createElement(payment_mode_1.PaymentMode, null),
|
|
392
|
+
'Branch': react_1.default.createElement(branch_1.Branch, null),
|
|
393
|
+
'Tax': react_1.default.createElement(tax_1.Tax, null),
|
|
394
|
+
'Bank': react_1.default.createElement(bank_1.Bank, null),
|
|
395
|
+
};
|
|
396
|
+
exports.taxValidationError = {
|
|
397
|
+
taxName: 'Tax name is required',
|
|
398
|
+
taxRate: 'Operation successful!',
|
|
399
|
+
description: '',
|
|
400
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
|
+
import { PreferenceContextType, PreferenceState } from './types';
|
|
3
|
+
type State = PreferenceContextType & PreferenceState;
|
|
4
|
+
interface StateProviderProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const PreferenceStateContext: React.Context<State>;
|
|
8
|
+
export declare const PreferenceStateContextProvider: FC<StateProviderProps>;
|
|
9
|
+
export declare const usePreferenceStateContext: () => State;
|
|
10
|
+
export {};
|