@react-pakistan/util-functions 1.22.74 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.22.74",
3
+ "version": "1.22.75",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {