@react-pakistan/util-functions 1.22.73 → 1.22.75

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.
@@ -26,6 +26,7 @@ interface PostPaymentArgs {
26
26
  ref: string;
27
27
  quoteInvoiceId: string;
28
28
  prisma: any;
29
+ createdAt: string;
29
30
  }
30
31
  interface DeletePaymentArgs {
31
32
  prisma: any;
@@ -34,6 +35,6 @@ interface DeletePaymentArgs {
34
35
  export declare const getPayments: ({ prisma, }: GetPaymentsArgs) => Promise<Array<PaymentBE>>;
35
36
  export declare const getPaymentById: ({ id, prisma, }: GetPaymentByIdArgs) => Promise<PaymentBE>;
36
37
  export declare const postPayments: ({ currentPage, pageLimit, prisma, queryWhere, }: PostPaymentsArgs) => Promise<Array<PaymentBE>>;
37
- export declare const postPayment: ({ id, amount, attachment, currency, date, description, mode, paymentType, ref, quoteInvoiceId, prisma, }: PostPaymentArgs) => Promise<Array<PaymentBE>>;
38
+ export declare const postPayment: ({ id, amount, attachment, currency, date, description, mode, paymentType, ref, quoteInvoiceId, prisma, createdAt, }: PostPaymentArgs) => Promise<Array<PaymentBE>>;
38
39
  export declare const deletePayment: ({ id, prisma, }: DeletePaymentArgs) => Promise<PaymentBE>;
39
40
  export {};
@@ -46,7 +46,7 @@ const postPayments = (_c) => __awaiter(void 0, [_c], void 0, function* ({ curren
46
46
  return payments;
47
47
  });
48
48
  exports.postPayments = postPayments;
49
- const postPayment = (_d) => __awaiter(void 0, [_d], void 0, function* ({ id, amount, attachment, currency, date, description, mode, paymentType, ref, quoteInvoiceId, prisma, }) {
49
+ const postPayment = (_d) => __awaiter(void 0, [_d], void 0, function* ({ id, amount, attachment, currency, date, description, mode, paymentType, ref, quoteInvoiceId, prisma, createdAt, }) {
50
50
  const payment = yield prisma.payment.upsert({
51
51
  where: {
52
52
  id,
@@ -72,6 +72,7 @@ const postPayment = (_d) => __awaiter(void 0, [_d], void 0, function* ({ id, amo
72
72
  paymentType,
73
73
  quoteInvoiceId,
74
74
  ref,
75
+ createdAt,
75
76
  },
76
77
  });
77
78
  return payment;
@@ -36,6 +36,7 @@ interface PostQuoteInvoiceArgs {
36
36
  id: string;
37
37
  productQuantity: string;
38
38
  }];
39
+ createdAt: string;
39
40
  phone: string;
40
41
  lastName: string;
41
42
  firstName: string;
@@ -52,6 +53,6 @@ interface DeleteQuoteInvoiceArgs {
52
53
  export declare const getQuotesInvoices: ({ prisma, }: GetQuotesInvoicesArgs) => Promise<Array<QuoteInvoiceBE>>;
53
54
  export declare const getQuoteInvoiceById: ({ prisma, id, }: GetQuoteInvoiceByIdArgs) => Promise<QuoteInvoiceBE>;
54
55
  export declare const postQuotesInvoices: ({ currentPage, pageLimit, prisma, queryWhere, }: PostQuotesInvoicesArgs) => Promise<Array<QuoteInvoiceBE>>;
55
- export declare const postQuoteInvoice: ({ category, companyId, currency, customerId, date, discount, discountUnit, expiryDate, id, mode, note, ref, services, status, subTotal, taxValue, total, products, phone, lastName, firstName, email, country, city, address, prisma, }: PostQuoteInvoiceArgs) => Promise<QuoteInvoiceBE>;
56
+ export declare const postQuoteInvoice: ({ category, companyId, currency, customerId, date, discount, discountUnit, expiryDate, id, mode, note, ref, services, status, subTotal, taxValue, total, products, createdAt, phone, lastName, firstName, email, country, city, address, prisma, }: PostQuoteInvoiceArgs) => Promise<QuoteInvoiceBE>;
56
57
  export declare const deleteQuoteInvoice: ({ prisma, id, }: DeleteQuoteInvoiceArgs) => Promise<QuoteInvoiceBE>;
57
58
  export {};
@@ -69,7 +69,7 @@ const postQuotesInvoices = (_c) => __awaiter(void 0, [_c], void 0, function* ({
69
69
  exports.postQuotesInvoices = postQuotesInvoices;
70
70
  const postQuoteInvoice = (_d) => __awaiter(void 0, [_d], void 0, function* ({ category, companyId, currency, customerId, date, discount, discountUnit, expiryDate, id, mode, note, ref, services, status, subTotal, taxValue, total,
71
71
  // productIds,
72
- products, phone, lastName, firstName, email, country, city, address, prisma, }) {
72
+ products, createdAt, phone, lastName, firstName, email, country, city, address, prisma, }) {
73
73
  let quoteInvoice;
74
74
  if (mode === 'Create') {
75
75
  const mappedServices = services.map((item) => {
@@ -94,6 +94,7 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
94
94
  subTotal,
95
95
  taxValue,
96
96
  total,
97
+ createdAt,
97
98
  services: {
98
99
  createMany: {
99
100
  data: mappedServices,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.22.73",
3
+ "version": "1.22.75",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {