@react-pakistan/util-functions 1.24.24 → 1.24.26
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/tax/index.d.ts +2 -2
- package/api/stellar-solutions/tax/index.js +3 -3
- package/api/stellar-solutions/type.d.ts +1 -1
- package/constants/currencies.d.ts +12 -0
- package/constants/currencies.js +1077 -0
- package/constants/index.d.ts +1 -0
- package/constants/index.js +1 -0
- package/general/currencies.d.ts +0 -14
- package/general/currencies.js +1077 -1075
- package/general/index.d.ts +0 -1
- package/general/index.js +0 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ interface PostTaxArgs {
|
|
|
13
13
|
isDefault: string;
|
|
14
14
|
preferenceId: string;
|
|
15
15
|
taxName: string;
|
|
16
|
-
|
|
16
|
+
taxRate: string;
|
|
17
17
|
prisma: any;
|
|
18
18
|
}
|
|
19
19
|
interface DeleteTaxArgs {
|
|
@@ -22,6 +22,6 @@ interface DeleteTaxArgs {
|
|
|
22
22
|
}
|
|
23
23
|
export declare const getTaxes: ({ prisma, }: GetTaxesArgs) => Promise<Array<TaxBE>>;
|
|
24
24
|
export declare const getTaxById: ({ prisma, id, }: GetTaxByIdArgs) => Promise<TaxBE>;
|
|
25
|
-
export declare const postTax: ({ description, enabled, id, isDefault, preferenceId, prisma, taxName,
|
|
25
|
+
export declare const postTax: ({ description, enabled, id, isDefault, preferenceId, prisma, taxName, taxRate, }: PostTaxArgs) => Promise<Array<TaxBE>>;
|
|
26
26
|
export declare const deleteTax: ({ prisma, id, }: DeleteTaxArgs) => Promise<TaxBE>;
|
|
27
27
|
export {};
|
|
@@ -74,7 +74,7 @@ var getTaxById = function (_a) { return __awaiter(void 0, [_a], void 0, function
|
|
|
74
74
|
exports.getTaxById = getTaxById;
|
|
75
75
|
var postTax = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
76
76
|
var tax;
|
|
77
|
-
var description = _b.description, enabled = _b.enabled, id = _b.id, isDefault = _b.isDefault, preferenceId = _b.preferenceId, prisma = _b.prisma, taxName = _b.taxName,
|
|
77
|
+
var description = _b.description, enabled = _b.enabled, id = _b.id, isDefault = _b.isDefault, preferenceId = _b.preferenceId, prisma = _b.prisma, taxName = _b.taxName, taxRate = _b.taxRate;
|
|
78
78
|
return __generator(this, function (_c) {
|
|
79
79
|
switch (_c.label) {
|
|
80
80
|
case 0: return [4 /*yield*/, prisma.tax.upsert({
|
|
@@ -87,7 +87,7 @@ var postTax = function (_a) { return __awaiter(void 0, [_a], void 0, function (_
|
|
|
87
87
|
isDefault: isDefault,
|
|
88
88
|
preferenceId: preferenceId,
|
|
89
89
|
taxName: taxName,
|
|
90
|
-
|
|
90
|
+
taxRate: taxRate,
|
|
91
91
|
},
|
|
92
92
|
create: {
|
|
93
93
|
description: description,
|
|
@@ -95,7 +95,7 @@ var postTax = function (_a) { return __awaiter(void 0, [_a], void 0, function (_
|
|
|
95
95
|
isDefault: isDefault,
|
|
96
96
|
preferenceId: preferenceId,
|
|
97
97
|
taxName: taxName,
|
|
98
|
-
|
|
98
|
+
taxRate: taxRate,
|
|
99
99
|
},
|
|
100
100
|
})];
|
|
101
101
|
case 1:
|