@connect-plus-online/ogabai-integrations 0.0.88 → 0.0.92
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 +6 -8
- 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 +6 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -349,7 +349,7 @@ interface Expense {
|
|
|
349
349
|
repeatedEvery: "day" | "week" | "month" | "year";
|
|
350
350
|
dispenseStaffIds: string[];
|
|
351
351
|
createdAt: string;
|
|
352
|
-
expenseType: "none" | "operation" | "staffRequest";
|
|
352
|
+
expenseType: "none" | "operation" | "staffRequest" | "staffRequestFulfilled";
|
|
353
353
|
amount: number;
|
|
354
354
|
narration: string;
|
|
355
355
|
createdById: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -349,7 +349,7 @@ interface Expense {
|
|
|
349
349
|
repeatedEvery: "day" | "week" | "month" | "year";
|
|
350
350
|
dispenseStaffIds: string[];
|
|
351
351
|
createdAt: string;
|
|
352
|
-
expenseType: "none" | "operation" | "staffRequest";
|
|
352
|
+
expenseType: "none" | "operation" | "staffRequest" | "staffRequestFulfilled";
|
|
353
353
|
amount: number;
|
|
354
354
|
narration: string;
|
|
355
355
|
createdById: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -3811,14 +3811,12 @@ var createExpenseDispenseService = (client) => {
|
|
|
3811
3811
|
createdById: expense.createdById
|
|
3812
3812
|
}
|
|
3813
3813
|
});
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
});
|
|
3821
|
-
}
|
|
3814
|
+
await expenseService.updateExpense({
|
|
3815
|
+
expenseId,
|
|
3816
|
+
expense: {
|
|
3817
|
+
expenseType: addToExpenseList ? "operation" : "staffRequestFulfilled"
|
|
3818
|
+
}
|
|
3819
|
+
});
|
|
3822
3820
|
return transaction || null;
|
|
3823
3821
|
}
|
|
3824
3822
|
};
|