@react-pakistan/util-functions 1.22.41 → 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.
|
@@ -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
|
|
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.
|
|
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
|
|
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.
|
|
214
|
+
exports.deleteQuoteInvoice = deleteQuoteInvoice;
|