1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-18 00:19:49 +01:00

chore: update orval types (#9549)

This commit is contained in:
Jaanus Sellin 2025-03-17 11:52:25 +02:00 committed by GitHub
parent 2b634438a1
commit f093a3f4b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 125 additions and 0 deletions

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetRequestsForPeriodGrouping =
(typeof GetRequestsForPeriodGrouping)[keyof typeof GetRequestsForPeriodGrouping];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const GetRequestsForPeriodGrouping = {
daily: 'daily',
monthly: 'monthly',
} as const;

View File

@ -0,0 +1,21 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { GetRequestsForPeriodGrouping } from './getRequestsForPeriodGrouping';
export type GetRequestsForPeriodParams = {
/**
* Whether to aggregate the data by month or by day
*/
grouping: GetRequestsForPeriodGrouping;
/**
* The starting date of the traffic data usage search in IS:yyyy-MM-dd format
*/
from: string;
/**
* The starting date of the traffic data usage search in IS:yyyy-MM-dd format
*/
to: string;
};

View File

@ -826,6 +826,8 @@ export * from './getRawFeatureMetrics401';
export * from './getRawFeatureMetrics403';
export * from './getRawFeatureMetrics404';
export * from './getReleasePlanTemplate401';
export * from './getRequestsForPeriodGrouping';
export * from './getRequestsForPeriodParams';
export * from './getRoleById400';
export * from './getRoleById401';
export * from './getRoleById404';
@ -948,6 +950,11 @@ export * from './meteredConnectionsSchemaApiDataItem';
export * from './meteredConnectionsSchemaApiDataItemDataPointsItem';
export * from './meteredConnectionsSchemaDateRange';
export * from './meteredConnectionsSchemaGrouping';
export * from './meteredRequestsSchema';
export * from './meteredRequestsSchemaApiDataItem';
export * from './meteredRequestsSchemaApiDataItemDataPointsItem';
export * from './meteredRequestsSchemaDateRange';
export * from './meteredRequestsSchemaGrouping';
export * from './nameSchema';
export * from './notificationsSchema';
export * from './notificationsSchemaItem';

View File

@ -0,0 +1,20 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { MeteredRequestsSchemaApiDataItem } from './meteredRequestsSchemaApiDataItem';
import type { MeteredRequestsSchemaDateRange } from './meteredRequestsSchemaDateRange';
import type { MeteredRequestsSchemaGrouping } from './meteredRequestsSchemaGrouping';
/**
* Contains the recorded metered groups requests segmented by day/month
*/
export interface MeteredRequestsSchema {
/** Contains the recorded daily/monthly requests for each metered group */
apiData: MeteredRequestsSchemaApiDataItem[];
/** The date range there is data for. The range is inclusive and goes from the start of the `from` date to the end of the `to` date */
dateRange: MeteredRequestsSchemaDateRange;
/** Whether the data is aggregated by month or by day. */
grouping: MeteredRequestsSchemaGrouping;
}

View File

@ -0,0 +1,13 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { MeteredRequestsSchemaApiDataItemDataPointsItem } from './meteredRequestsSchemaApiDataItemDataPointsItem';
export type MeteredRequestsSchemaApiDataItem = {
/** The recorded data points for the metered group */
dataPoints: MeteredRequestsSchemaApiDataItemDataPointsItem[];
/** The metered group representing charging unit in the organization using Unleash */
meteredGroup: string;
};

View File

@ -0,0 +1,18 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type MeteredRequestsSchemaApiDataItemDataPointsItem = {
/**
* The date of the data point. Formatted as a full date (e.g. 2023-04-01) if the data is aggregated by day or as a month (e.g. 2023-04) if the data is aggregated by month.
* @pattern ^\d{4}-\d{2}(-\d{2})?$
*/
period: string;
/**
* Number of requests
* @minimum 0
*/
requests: number;
};

View File

@ -0,0 +1,15 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The date range there is data for. The range is inclusive and goes from the start of the `from` date to the end of the `to` date
*/
export type MeteredRequestsSchemaDateRange = {
/** The start of the dateRange */
from: string;
/** The end of the dateRange */
to: string;
};

View File

@ -0,0 +1,17 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* Whether the data is aggregated by month or by day.
*/
export type MeteredRequestsSchemaGrouping =
(typeof MeteredRequestsSchemaGrouping)[keyof typeof MeteredRequestsSchemaGrouping];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const MeteredRequestsSchemaGrouping = {
monthly: 'monthly',
daily: 'daily',
} as const;