@erp-galoper/types 1.0.1912 → 1.0.1913

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.
Files changed (2) hide show
  1. package/openapi.ts +135 -0
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -2404,6 +2404,41 @@ export interface paths {
2404
2404
  patch?: never;
2405
2405
  trace?: never;
2406
2406
  };
2407
+ "/api/v1/common/logs/count/": {
2408
+ parameters: {
2409
+ query?: never;
2410
+ header?: never;
2411
+ path?: never;
2412
+ cookie?: never;
2413
+ };
2414
+ /**
2415
+ * Get Logs Count
2416
+ * @description Endpoint to get log counts for a specific model or all models when logModelName is omitted.
2417
+ *
2418
+ * Returns an overall count and a monthly breakdown by log type (Created, Changed, Deleted).
2419
+ * Supports the same query parameters as the logs route so counts match active filters.
2420
+ *
2421
+ * Possible Responses:
2422
+ * - 200: LogsCountResponseSchema
2423
+ * - 403: permissionDenied
2424
+ * - 400:
2425
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
2426
+ * - startDateShouldBeGreaterThanEndDate
2427
+ * - invalidFilterFormat
2428
+ * - 500: internalServerError
2429
+ *
2430
+ * Permission Key:
2431
+ * logs: ["view"]
2432
+ */
2433
+ get: operations["common_views_get_logs_count"];
2434
+ put?: never;
2435
+ post?: never;
2436
+ delete?: never;
2437
+ options?: never;
2438
+ head?: never;
2439
+ patch?: never;
2440
+ trace?: never;
2441
+ };
2407
2442
  "/api/v1/common/get-model-names/": {
2408
2443
  parameters: {
2409
2444
  query?: never;
@@ -30349,6 +30384,43 @@ export interface components {
30349
30384
  /** New */
30350
30385
  new?: string | null;
30351
30386
  };
30387
+ /** LogTypeCount */
30388
+ LogTypeCount: {
30389
+ /**
30390
+ * Created
30391
+ * @default 0
30392
+ */
30393
+ Created: number;
30394
+ /**
30395
+ * Changed
30396
+ * @default 0
30397
+ */
30398
+ Changed: number;
30399
+ /**
30400
+ * Deleted
30401
+ * @default 0
30402
+ */
30403
+ Deleted: number;
30404
+ };
30405
+ /** LogsCountResponseSchema */
30406
+ LogsCountResponseSchema: {
30407
+ /** Total */
30408
+ total: number;
30409
+ logType: components["schemas"]["LogTypeCount"];
30410
+ /**
30411
+ * Monthly
30412
+ * @default []
30413
+ */
30414
+ monthly: components["schemas"]["MonthlyLogCount"][];
30415
+ };
30416
+ /** MonthlyLogCount */
30417
+ MonthlyLogCount: {
30418
+ /** Month */
30419
+ month: string;
30420
+ /** Total */
30421
+ total: number;
30422
+ logType: components["schemas"]["LogTypeCount"];
30423
+ };
30352
30424
  /**
30353
30425
  * CombinedModelName
30354
30426
  * @enum {string}
@@ -67664,6 +67736,69 @@ export interface operations {
67664
67736
  };
67665
67737
  };
67666
67738
  };
67739
+ common_views_get_logs_count: {
67740
+ parameters: {
67741
+ query?: {
67742
+ /** @description Filter by module/model. When omitted, logs from all modules are returned. */
67743
+ logModelName?: components["schemas"]["LogModelName"] | null;
67744
+ logType?: "Created" | "Changed" | "Deleted";
67745
+ /** @description by default periodType is set to date filtration in user settings, Period type: thisMonth, thisYear, lastMonth, custom, ... */
67746
+ periodType?: "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "today" | "all";
67747
+ /** @description Start date for custom range (YYYY-MM-DD), this required if the period type is custom */
67748
+ startDate?: string | null;
67749
+ /** @description End date for custom range (YYYY-MM-DD), this required if the period type is custom */
67750
+ endDate?: string | null;
67751
+ /** @description Filter by user ID */
67752
+ user?: string;
67753
+ /** @description Filter by specific document ID */
67754
+ documentId?: string;
67755
+ /** @description Search */
67756
+ search?: string | null;
67757
+ };
67758
+ header?: never;
67759
+ path?: never;
67760
+ cookie?: never;
67761
+ };
67762
+ requestBody?: never;
67763
+ responses: {
67764
+ /** @description OK */
67765
+ 200: {
67766
+ headers: {
67767
+ [name: string]: unknown;
67768
+ };
67769
+ content: {
67770
+ "application/json": components["schemas"]["LogsCountResponseSchema"];
67771
+ };
67772
+ };
67773
+ /** @description Bad Request */
67774
+ 400: {
67775
+ headers: {
67776
+ [name: string]: unknown;
67777
+ };
67778
+ content: {
67779
+ "application/json": components["schemas"]["ErrorMessages"];
67780
+ };
67781
+ };
67782
+ /** @description Forbidden */
67783
+ 403: {
67784
+ headers: {
67785
+ [name: string]: unknown;
67786
+ };
67787
+ content: {
67788
+ "application/json": components["schemas"]["MessageResponse"];
67789
+ };
67790
+ };
67791
+ /** @description Internal Server Error */
67792
+ 500: {
67793
+ headers: {
67794
+ [name: string]: unknown;
67795
+ };
67796
+ content: {
67797
+ "application/json": components["schemas"]["MessageResponse"];
67798
+ };
67799
+ };
67800
+ };
67801
+ };
67667
67802
  common_views_get_model_names: {
67668
67803
  parameters: {
67669
67804
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1912",
3
+ "version": "1.0.1913",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],