@react-pakistan/util-functions 1.22.40 → 1.22.42

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 DeleteProductCategory: ({ prisma, id, }: DeleteProductCategoryArgs) => Promise<ProductCategoryBE>;
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.DeleteProductCategory = exports.postProductCategory = exports.postProductCategories = exports.getProductCategoryById = exports.getProductCategories = void 0;
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 DeleteProductCategory = (_e) => __awaiter(void 0, [_e], void 0, function* ({ prisma, id, }) {
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.DeleteProductCategory = DeleteProductCategory;
80
+ exports.deleteProductCategory = deleteProductCategory;
@@ -50,5 +50,5 @@ export declare const getQuotesInvoices: ({ prisma, }: GetQuotesInvoicesArgs) =>
50
50
  export declare const getQuoteInvoiceById: ({ prisma, id, }: GetQuoteInvoiceByIdArgs) => Promise<QuoteInvoiceBE>;
51
51
  export declare const postQuotesInvoices: ({ currentPage, pageLimit, prisma, queryWhere, }: PostQuotesInvoicesArgs) => Promise<Array<QuoteInvoiceBE>>;
52
52
  export declare const postQuoteInvoice: ({ category, companyId, currency, customerId, date, discount, discountUnit, expiryDate, id, mode, note, ref, services, status, subTotal, taxValue, total, productIds, phone, lastName, firstName, email, country, city, address, prisma, }: PostQuoteInvoiceArgs) => Promise<Array<QuoteInvoiceBE>>;
53
- export declare const DeleteQuoteInvoice: ({ prisma, id, }: DeleteQuoteInvoiceArgs) => Promise<QuoteInvoiceBE>;
53
+ export declare const deleteQuoteInvoice: ({ prisma, id, }: DeleteQuoteInvoiceArgs) => Promise<QuoteInvoiceBE>;
54
54
  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.DeleteQuoteInvoice = exports.postQuoteInvoice = exports.postQuotesInvoices = exports.getQuoteInvoiceById = exports.getQuotesInvoices = void 0;
13
+ exports.deleteQuoteInvoice = exports.postQuoteInvoice = exports.postQuotesInvoices = exports.getQuoteInvoiceById = exports.getQuotesInvoices = void 0;
14
14
  const getQuotesInvoices = (_a) => __awaiter(void 0, [_a], void 0, function* ({ prisma, }) {
15
15
  const quotesInvoices = yield prisma.stellarQuoteInvoice.findMany({
16
16
  orderBy: {
@@ -203,7 +203,7 @@ const postQuoteInvoice = (_d) => __awaiter(void 0, [_d], void 0, function* ({ ca
203
203
  return quoteInvoice;
204
204
  });
205
205
  exports.postQuoteInvoice = postQuoteInvoice;
206
- const DeleteQuoteInvoice = (_e) => __awaiter(void 0, [_e], void 0, function* ({ prisma, id, }) {
206
+ const deleteQuoteInvoice = (_e) => __awaiter(void 0, [_e], void 0, function* ({ prisma, id, }) {
207
207
  const quoteInvoice = yield prisma.stellarQuoteInvoice.delete({
208
208
  where: {
209
209
  id,
@@ -211,4 +211,4 @@ const DeleteQuoteInvoice = (_e) => __awaiter(void 0, [_e], void 0, function* ({
211
211
  });
212
212
  return quoteInvoice;
213
213
  });
214
- exports.DeleteQuoteInvoice = DeleteQuoteInvoice;
214
+ exports.deleteQuoteInvoice = deleteQuoteInvoice;
@@ -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 DeleteTax: ({ prisma, id, }: DeleteTaxArgs) => Promise<TaxBE>;
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.DeleteTax = exports.postTax = exports.getTaxById = exports.getTaxes = void 0;
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 DeleteTax = (_d) => __awaiter(void 0, [_d], void 0, function* ({ prisma, id, }) {
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.DeleteTax = DeleteTax;
65
+ exports.deleteTax = deleteTax;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.22.40",
3
+ "version": "1.22.42",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {