feat(cards): filter operations by date range
This commit is contained in:
Vendored
+19
-5
@@ -764,7 +764,11 @@ export interface components {
|
||||
net: components["schemas"]["MoneyDto"];
|
||||
};
|
||||
BankSummaryDto: {
|
||||
month: string;
|
||||
month?: string;
|
||||
/** Format: date */
|
||||
from?: string;
|
||||
/** Format: date */
|
||||
to?: string;
|
||||
cardId: string | null;
|
||||
expenses: components["schemas"]["MoneyDto"];
|
||||
refunds: components["schemas"]["MoneyDto"];
|
||||
@@ -2109,8 +2113,13 @@ export interface operations {
|
||||
};
|
||||
BankCardsController_summary: {
|
||||
parameters: {
|
||||
query: {
|
||||
month: string;
|
||||
query?: {
|
||||
/** @description Use month or both from and to, exclusively. */
|
||||
month?: string;
|
||||
/** @description Inclusive start date; requires to. */
|
||||
from?: string;
|
||||
/** @description Inclusive end date; requires from. */
|
||||
to?: string;
|
||||
cardId?: string;
|
||||
};
|
||||
header?: never;
|
||||
@@ -2536,10 +2545,15 @@ export interface operations {
|
||||
};
|
||||
BankCardsController_history: {
|
||||
parameters: {
|
||||
query: {
|
||||
query?: {
|
||||
page?: number;
|
||||
limit?: number;
|
||||
month: string;
|
||||
/** @description Use month or both from and to, exclusively. */
|
||||
month?: string;
|
||||
/** @description Inclusive start date; requires to. */
|
||||
from?: string;
|
||||
/** @description Inclusive end date; requires from. */
|
||||
to?: string;
|
||||
};
|
||||
header?: never;
|
||||
path: {
|
||||
|
||||
@@ -914,13 +914,34 @@
|
||||
"parameters": [
|
||||
{
|
||||
"name": "month",
|
||||
"required": true,
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"description": "Use month or both from and to, exclusively.",
|
||||
"schema": {
|
||||
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "from",
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"description": "Inclusive start date; requires to.",
|
||||
"schema": {
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "to",
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"description": "Inclusive end date; requires from.",
|
||||
"schema": {
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cardId",
|
||||
"required": false,
|
||||
@@ -1487,12 +1508,33 @@
|
||||
},
|
||||
{
|
||||
"name": "month",
|
||||
"required": true,
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"description": "Use month or both from and to, exclusively.",
|
||||
"schema": {
|
||||
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "from",
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"description": "Inclusive start date; requires to.",
|
||||
"schema": {
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "to",
|
||||
"required": false,
|
||||
"in": "query",
|
||||
"description": "Inclusive end date; requires from.",
|
||||
"schema": {
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -4971,6 +5013,14 @@
|
||||
"month": {
|
||||
"type": "string"
|
||||
},
|
||||
"from": {
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
},
|
||||
"to": {
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
},
|
||||
"cardId": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
@@ -4992,7 +5042,6 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"month",
|
||||
"cardId",
|
||||
"expenses",
|
||||
"refunds",
|
||||
|
||||
Reference in New Issue
Block a user