@connect-plus-online/ogabai-integrations 0.0.96 → 0.0.97
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.
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2124,7 +2124,7 @@ declare const createExpenseDispenseService: (client: GraphQLClient) => {
|
|
|
2124
2124
|
skip?: number;
|
|
2125
2125
|
}) => Promise<EntityResponse<Transaction[], "transactions"> | null>;
|
|
2126
2126
|
dispenseExpense: (req: {
|
|
2127
|
-
expenseDispense: Pick<Transaction, "expenseId" | "amountPaid" | "narration" | "createdById" | "paymentType">;
|
|
2127
|
+
expenseDispense: Pick<Transaction, "expenseId" | "amountPaid" | "narration" | "createdById" | "paymentType" | "platform">;
|
|
2128
2128
|
}) => Promise<EntityResponse<Transaction, "transaction"> | undefined>;
|
|
2129
2129
|
approveExpenseDispense(req: {
|
|
2130
2130
|
expenseId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2124,7 +2124,7 @@ declare const createExpenseDispenseService: (client: GraphQLClient) => {
|
|
|
2124
2124
|
skip?: number;
|
|
2125
2125
|
}) => Promise<EntityResponse<Transaction[], "transactions"> | null>;
|
|
2126
2126
|
dispenseExpense: (req: {
|
|
2127
|
-
expenseDispense: Pick<Transaction, "expenseId" | "amountPaid" | "narration" | "createdById" | "paymentType">;
|
|
2127
|
+
expenseDispense: Pick<Transaction, "expenseId" | "amountPaid" | "narration" | "createdById" | "paymentType" | "platform">;
|
|
2128
2128
|
}) => Promise<EntityResponse<Transaction, "transaction"> | undefined>;
|
|
2129
2129
|
approveExpenseDispense(req: {
|
|
2130
2130
|
expenseId: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -3813,7 +3813,7 @@ var createExpenseDispenseService = (client) => {
|
|
|
3813
3813
|
});
|
|
3814
3814
|
},
|
|
3815
3815
|
dispenseExpense: async (req) => {
|
|
3816
|
-
const { amountPaid, narration, createdById, expenseId, paymentType } = req.expenseDispense;
|
|
3816
|
+
const { amountPaid, narration, createdById, expenseId, paymentType, platform = "pos" } = req.expenseDispense;
|
|
3817
3817
|
const expenseRes = await expenseService.getExpense({
|
|
3818
3818
|
expense: {
|
|
3819
3819
|
id: expenseId
|
|
@@ -3858,7 +3858,8 @@ var createExpenseDispenseService = (client) => {
|
|
|
3858
3858
|
amountPaid: expense.amount,
|
|
3859
3859
|
narration: expense.narration || "Approved expense dispense",
|
|
3860
3860
|
createdById: expense.createdById,
|
|
3861
|
-
paymentType: expense.paymentType
|
|
3861
|
+
paymentType: expense.paymentType,
|
|
3862
|
+
platform: "pos"
|
|
3862
3863
|
}
|
|
3863
3864
|
});
|
|
3864
3865
|
await expenseService.updateExpense({
|