@react-pakistan/util-functions 1.24.25 → 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.
@@ -13,7 +13,7 @@ interface PostTaxArgs {
13
13
  isDefault: string;
14
14
  preferenceId: string;
15
15
  taxName: string;
16
- taxValue: string;
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, taxValue, }: PostTaxArgs) => Promise<Array<TaxBE>>;
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, taxValue = _b.taxValue;
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
- taxValue: taxValue,
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
- taxValue: taxValue,
98
+ taxRate: taxRate,
99
99
  },
100
100
  })];
101
101
  case 1:
@@ -222,7 +222,7 @@ export interface TaxBE {
222
222
  isDefault: boolean;
223
223
  preference: PreferenceBE;
224
224
  taxName: string;
225
- taxValue: string;
225
+ taxRate: string;
226
226
  updatedAt: string;
227
227
  }
228
228
  export interface ServiceBE {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.24.25",
3
+ "version": "1.24.26",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {