@erp-galoper/types 1.0.1861 → 1.0.1862
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/openapi.ts +20 -22
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -2380,26 +2380,20 @@ export interface paths {
|
|
|
2380
2380
|
};
|
|
2381
2381
|
/**
|
|
2382
2382
|
* Get Logs
|
|
2383
|
-
* @description Endpoint to get logs
|
|
2384
|
-
* Query Parameters:
|
|
2385
|
-
* - logModelName (optional): Filter by specific model name from LogModelName enum. If not provided, returns logs from all models in the enum.
|
|
2386
|
-
* REQUIRED when documentId is provided.
|
|
2387
|
-
* - logType (optional): Filter by log type (Created, Changed, Deleted)
|
|
2388
|
-
* - startDate (optional): Filter from date (YYYY-MM-DD)
|
|
2389
|
-
* - endDate (optional): Filter to date (YYYY-MM-DD)
|
|
2390
|
-
* - user (optional): Filter by user ID
|
|
2391
|
-
* - documentId (optional): Filter by specific document ID (UUID). Requires logModelName to be specified.
|
|
2392
|
-
* - page (optional): Page number (default: 1)
|
|
2393
|
-
* - pageSize (optional): Number of items per page (default: 20, max: 500)
|
|
2383
|
+
* @description Endpoint to get logs for a specific model.
|
|
2394
2384
|
*
|
|
2395
2385
|
* Possible Responses:
|
|
2396
2386
|
* - 200: LogsResponseSchema
|
|
2397
|
-
* - 400: missingLogModelName (when documentId is provided without logModelName)
|
|
2398
2387
|
* - 403: permissionDenied
|
|
2388
|
+
* - 400:
|
|
2389
|
+
* - startDateAndEndDateAreRequiredForCustomPeriodType
|
|
2390
|
+
* - startDateShouldBeGreaterThanEndDate
|
|
2391
|
+
* - invalidFilterFormat
|
|
2392
|
+
* - paginationError
|
|
2399
2393
|
* - 500: internalServerError
|
|
2400
2394
|
*
|
|
2401
|
-
*
|
|
2402
|
-
* logs
|
|
2395
|
+
* Permission Key:
|
|
2396
|
+
* logs: ["view"]
|
|
2403
2397
|
*/
|
|
2404
2398
|
get: operations["common_views_get_logs"];
|
|
2405
2399
|
put?: never;
|
|
@@ -67522,17 +67516,21 @@ export interface operations {
|
|
|
67522
67516
|
};
|
|
67523
67517
|
common_views_get_logs: {
|
|
67524
67518
|
parameters: {
|
|
67525
|
-
query
|
|
67526
|
-
logModelName
|
|
67519
|
+
query: {
|
|
67520
|
+
logModelName: "item" | "customer" | "supplier" | "internalTransferHeader" | "transferRequest" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "transferRequest" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration" | "onlineOrder";
|
|
67527
67521
|
logType?: "Created" | "Changed" | "Deleted";
|
|
67528
|
-
|
|
67529
|
-
|
|
67522
|
+
/** @description by default periodType is set to date filtration in user settings, Period type: thisMonth, thisYear, lastMonth, custom, ... */
|
|
67523
|
+
periodType?: "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "today" | "all";
|
|
67524
|
+
/** @description Start date for custom range (YYYY-MM-DD), this required if the period type is custom */
|
|
67525
|
+
startDate?: string | null;
|
|
67526
|
+
/** @description End date for custom range (YYYY-MM-DD), this required if the period type is custom */
|
|
67527
|
+
endDate?: string | null;
|
|
67528
|
+
/** @description Filter by user ID */
|
|
67530
67529
|
user?: string;
|
|
67530
|
+
/** @description Filter by specific document ID */
|
|
67531
67531
|
documentId?: string;
|
|
67532
|
-
/** @description
|
|
67533
|
-
|
|
67534
|
-
/** @description Page size */
|
|
67535
|
-
pageSize?: number;
|
|
67532
|
+
/** @description Search */
|
|
67533
|
+
search?: string | null;
|
|
67536
67534
|
};
|
|
67537
67535
|
header?: never;
|
|
67538
67536
|
path?: never;
|