@react-pakistan/util-functions 1.22.40 → 1.22.41
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.
|
@@ -28,5 +28,5 @@ export declare const getProductCategories: ({ prisma, }: GetProductCategoriesArg
|
|
|
28
28
|
export declare const getProductCategoryById: ({ prisma, id, }: GetProductCategoryByIdArgs) => Promise<ProductCategoryBE>;
|
|
29
29
|
export declare const postProductCategories: ({ currentPage, pageLimit, prisma, queryWhere, }: PostProductCategoriesArgs) => Promise<Array<ProductCategoryBE>>;
|
|
30
30
|
export declare const postProductCategory: ({ description, id, name, prisma, }: PostProductCategoryArgs) => Promise<Array<ProductCategoryBE>>;
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const deleteProductCategory: ({ prisma, id, }: DeleteProductCategoryArgs) => Promise<ProductCategoryBE>;
|
|
32
32
|
export {};
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.deleteProductCategory = exports.postProductCategory = exports.postProductCategories = exports.getProductCategoryById = exports.getProductCategories = void 0;
|
|
14
14
|
const getProductCategories = (_a) => __awaiter(void 0, [_a], void 0, function* ({ prisma, }) {
|
|
15
15
|
const productCategories = yield prisma.stellarProductCategory.findMany({
|
|
16
16
|
orderBy: {
|
|
@@ -69,7 +69,7 @@ const postProductCategory = (_d) => __awaiter(void 0, [_d], void 0, function* ({
|
|
|
69
69
|
return productCategory;
|
|
70
70
|
});
|
|
71
71
|
exports.postProductCategory = postProductCategory;
|
|
72
|
-
const
|
|
72
|
+
const deleteProductCategory = (_e) => __awaiter(void 0, [_e], void 0, function* ({ prisma, id, }) {
|
|
73
73
|
const productCategory = yield prisma.stellarProductCategory.delete({
|
|
74
74
|
where: {
|
|
75
75
|
id,
|
|
@@ -77,4 +77,4 @@ const DeleteProductCategory = (_e) => __awaiter(void 0, [_e], void 0, function*
|
|
|
77
77
|
});
|
|
78
78
|
return productCategory;
|
|
79
79
|
});
|
|
80
|
-
exports.
|
|
80
|
+
exports.deleteProductCategory = deleteProductCategory;
|
|
@@ -23,5 +23,5 @@ interface DeleteTaxArgs {
|
|
|
23
23
|
export declare const getTaxes: ({ prisma, }: GetTaxesArgs) => Promise<Array<TaxBE>>;
|
|
24
24
|
export declare const getTaxById: ({ prisma, id, }: GetTaxByIdArgs) => Promise<TaxBE>;
|
|
25
25
|
export declare const postTax: ({ description, enabled, id, isDefault, preferenceId, prisma, taxName, taxValue, }: PostTaxArgs) => Promise<Array<TaxBE>>;
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const deleteTax: ({ prisma, id, }: DeleteTaxArgs) => Promise<TaxBE>;
|
|
27
27
|
export {};
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.deleteTax = exports.postTax = exports.getTaxById = exports.getTaxes = void 0;
|
|
14
14
|
const getTaxes = (_a) => __awaiter(void 0, [_a], void 0, function* ({ prisma, }) {
|
|
15
15
|
const taxes = yield prisma.stellarTax.findMany({
|
|
16
16
|
orderBy: {
|
|
@@ -54,7 +54,7 @@ const postTax = (_c) => __awaiter(void 0, [_c], void 0, function* ({ description
|
|
|
54
54
|
return tax;
|
|
55
55
|
});
|
|
56
56
|
exports.postTax = postTax;
|
|
57
|
-
const
|
|
57
|
+
const deleteTax = (_d) => __awaiter(void 0, [_d], void 0, function* ({ prisma, id, }) {
|
|
58
58
|
const tax = yield prisma.stellarTax.delete({
|
|
59
59
|
where: {
|
|
60
60
|
id,
|
|
@@ -62,4 +62,4 @@ const DeleteTax = (_d) => __awaiter(void 0, [_d], void 0, function* ({ prisma, i
|
|
|
62
62
|
});
|
|
63
63
|
return tax;
|
|
64
64
|
});
|
|
65
|
-
exports.
|
|
65
|
+
exports.deleteTax = deleteTax;
|