From a54ec753415f144ef6016254ffff243e9f3bdbe9 Mon Sep 17 00:00:00 2001 From: novalisdenahi Date: Fri, 7 Nov 2025 16:26:28 +0100 Subject: [PATCH 1/2] regenerate --- .openapi-generator/FILES | 8 ++ api/feature-flags-settings-api.ts | 84 ++++++++++++++++ model/audit-log-type.ts | 13 ++- model/comparison-value-list-model.ts | 2 +- model/comparison-value-model.ts | 6 +- model/config-setting-formula-model.ts | 6 +- model/create-predefined-variation-model.ts | 45 +++++++++ ...create-predefined-variation-value-model.ts | 48 +++++++++ model/create-setting-initial-values.ts | 21 ++-- model/index.ts | 8 ++ model/initial-value.ts | 2 +- model/predefined-variation-model.ts | 51 ++++++++++ model/predefined-variation-value-model.ts | 48 +++++++++ model/replace-setting-model.ts | 12 +-- model/setting-data-v2-model.ts | 98 +++++++++++++++++++ model/setting-formula-model.ts | 6 +- model/setting-model.ts | 9 ++ model/update-predefined-variation-model.ts | 51 ++++++++++ ...update-predefined-variation-value-model.ts | 48 +++++++++ model/update-predefined-variations-request.ts | 33 +++++++ model/update-value-model.ts | 6 ++ model/value-model.ts | 6 ++ 22 files changed, 587 insertions(+), 24 deletions(-) create mode 100644 model/create-predefined-variation-model.ts create mode 100644 model/create-predefined-variation-value-model.ts create mode 100644 model/predefined-variation-model.ts create mode 100644 model/predefined-variation-value-model.ts create mode 100644 model/setting-data-v2-model.ts create mode 100644 model/update-predefined-variation-model.ts create mode 100644 model/update-predefined-variation-value-model.ts create mode 100644 model/update-predefined-variations-request.ts diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6621575..61ffcd9 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -48,6 +48,8 @@ model/create-environment-model.ts model/create-integration-model.ts model/create-or-update-environment-access-model.ts model/create-permission-group-request.ts +model/create-predefined-variation-model.ts +model/create-predefined-variation-value-model.ts model/create-product-request.ts model/create-segment-model.ts model/create-setting-initial-values.ts @@ -88,6 +90,8 @@ model/organization-permission-model.ts model/organization-product-model.ts model/percentage-option-model.ts model/permission-group-model.ts +model/predefined-variation-model.ts +model/predefined-variation-value-model.ts model/preferences-model.ts model/prerequisite-comparator.ts model/prerequisite-flag-condition-model.ts @@ -107,6 +111,7 @@ model/segment-condition-model.ts model/segment-list-model.ts model/segment-model.ts model/setting-data-model.ts +model/setting-data-v2-model.ts model/setting-formula-model.ts model/setting-model.ts model/setting-tag-model.ts @@ -134,6 +139,9 @@ model/update-evaluation-formulas-model.ts model/update-member-permissions-request.ts model/update-percentage-option-model.ts model/update-permission-group-request.ts +model/update-predefined-variation-model.ts +model/update-predefined-variation-value-model.ts +model/update-predefined-variations-request.ts model/update-preferences-request.ts model/update-prerequisite-flag-condition-model.ts model/update-product-request.ts diff --git a/api/feature-flags-settings-api.ts b/api/feature-flags-settings-api.ts index 37c3f35..75961ac 100644 --- a/api/feature-flags-settings-api.ts +++ b/api/feature-flags-settings-api.ts @@ -29,6 +29,8 @@ import { JsonPatchOperation } from '../model'; import { ReplaceSettingModel } from '../model'; // @ts-ignore import { SettingModel } from '../model'; +// @ts-ignore +import { UpdatePredefinedVariationsRequest } from '../model'; /** * FeatureFlagsSettingsApi - axios parameter creator * @export @@ -237,6 +239,50 @@ export const FeatureFlagsSettingsApiAxiosParamCreator = function (configuration? options: localVarRequestOptions, }; }, + /** + * This endpoint updates the predefined variations for a Feature Flag or Setting identified by the `settingId` parameter. **Important:** You can only update a predefined variation\'s value if it is not used anywhere in your feature flags. **Beta feature:** The feature is currently in closed beta state and cannot be used. + * @summary Update predefined variations (Beta) + * @param {number} settingId The identifier of the Setting. + * @param {UpdatePredefinedVariationsRequest} updatePredefinedVariationsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatePredefinedVariations: async (settingId: number, updatePredefinedVariationsRequest: UpdatePredefinedVariationsRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'settingId' is not null or undefined + assertParamExists('updatePredefinedVariations', 'settingId', settingId) + // verify required parameter 'updatePredefinedVariationsRequest' is not null or undefined + assertParamExists('updatePredefinedVariations', 'updatePredefinedVariationsRequest', updatePredefinedVariationsRequest) + const localVarPath = `/v1/settings/{settingId}/predefined-variations` + .replace(`{${"settingId"}}`, encodeURIComponent(String(settingId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Basic required + // http basic authentication required + setBasicAuthToObject(localVarRequestOptions, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(updatePredefinedVariationsRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * This endpoint updates the metadata of a Feature Flag or Setting with a collection of [JSON Patch](https://jsonpatch.com) operations in a specified Config. Only the `name`, `hint` and `tags` attributes are modifiable by this endpoint. The `tags` attribute is a simple collection of the [tag IDs](#operation/get-tags) attached to the given setting. The advantage of using JSON Patch is that you can describe individual update operations on a resource without touching attributes that you don\'t want to change. For example: We have the following resource. ```json { \"settingId\": 5345, \"key\": \"myGrandFeature\", \"name\": \"Tihs is a naem with soem typos.\", \"hint\": \"This flag controls my grandioso feature.\", \"settingType\": \"boolean\", \"tags\": [ { \"tagId\": 0, \"name\": \"sample tag\", \"color\": \"whale\" } ] } ``` If we send an update request body as below (it changes the `name` and adds the already existing tag with the id `2`): ```json [ { \"op\": \"replace\", \"path\": \"/name\", \"value\": \"This is the name without typos.\" }, { \"op\": \"add\", \"path\": \"/tags/-\", \"value\": 2 } ] ``` Only the `name` and `tags` are updated and all the other attributes remain unchanged. So we get a response like this: ```json { \"settingId\": 5345, \"key\": \"myGrandFeature\", \"name\": \"This is the name without typos.\", \"hint\": \"This flag controls my grandioso feature.\", \"settingType\": \"boolean\", \"tags\": [ { \"tagId\": 0, \"name\": \"sample tag\", \"color\": \"whale\" }, { \"tagId\": 2, \"name\": \"another tag\", \"color\": \"koala\" } ] } ``` * @summary Update Flag @@ -358,6 +404,20 @@ export const FeatureFlagsSettingsApiFp = function(configuration?: Configuration) const localVarOperationServerBasePath = operationServerMap['FeatureFlagsSettingsApi.replaceSetting']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, + /** + * This endpoint updates the predefined variations for a Feature Flag or Setting identified by the `settingId` parameter. **Important:** You can only update a predefined variation\'s value if it is not used anywhere in your feature flags. **Beta feature:** The feature is currently in closed beta state and cannot be used. + * @summary Update predefined variations (Beta) + * @param {number} settingId The identifier of the Setting. + * @param {UpdatePredefinedVariationsRequest} updatePredefinedVariationsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updatePredefinedVariations(settingId: number, updatePredefinedVariationsRequest: UpdatePredefinedVariationsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePredefinedVariations(settingId, updatePredefinedVariationsRequest, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['FeatureFlagsSettingsApi.updatePredefinedVariations']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, /** * This endpoint updates the metadata of a Feature Flag or Setting with a collection of [JSON Patch](https://jsonpatch.com) operations in a specified Config. Only the `name`, `hint` and `tags` attributes are modifiable by this endpoint. The `tags` attribute is a simple collection of the [tag IDs](#operation/get-tags) attached to the given setting. The advantage of using JSON Patch is that you can describe individual update operations on a resource without touching attributes that you don\'t want to change. For example: We have the following resource. ```json { \"settingId\": 5345, \"key\": \"myGrandFeature\", \"name\": \"Tihs is a naem with soem typos.\", \"hint\": \"This flag controls my grandioso feature.\", \"settingType\": \"boolean\", \"tags\": [ { \"tagId\": 0, \"name\": \"sample tag\", \"color\": \"whale\" } ] } ``` If we send an update request body as below (it changes the `name` and adds the already existing tag with the id `2`): ```json [ { \"op\": \"replace\", \"path\": \"/name\", \"value\": \"This is the name without typos.\" }, { \"op\": \"add\", \"path\": \"/tags/-\", \"value\": 2 } ] ``` Only the `name` and `tags` are updated and all the other attributes remain unchanged. So we get a response like this: ```json { \"settingId\": 5345, \"key\": \"myGrandFeature\", \"name\": \"This is the name without typos.\", \"hint\": \"This flag controls my grandioso feature.\", \"settingType\": \"boolean\", \"tags\": [ { \"tagId\": 0, \"name\": \"sample tag\", \"color\": \"whale\" }, { \"tagId\": 2, \"name\": \"another tag\", \"color\": \"koala\" } ] } ``` * @summary Update Flag @@ -434,6 +494,17 @@ export const FeatureFlagsSettingsApiFactory = function (configuration?: Configur replaceSetting(settingId: number, replaceSettingModel: ReplaceSettingModel, options?: any): AxiosPromise { return localVarFp.replaceSetting(settingId, replaceSettingModel, options).then((request) => request(axios, basePath)); }, + /** + * This endpoint updates the predefined variations for a Feature Flag or Setting identified by the `settingId` parameter. **Important:** You can only update a predefined variation\'s value if it is not used anywhere in your feature flags. **Beta feature:** The feature is currently in closed beta state and cannot be used. + * @summary Update predefined variations (Beta) + * @param {number} settingId The identifier of the Setting. + * @param {UpdatePredefinedVariationsRequest} updatePredefinedVariationsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updatePredefinedVariations(settingId: number, updatePredefinedVariationsRequest: UpdatePredefinedVariationsRequest, options?: any): AxiosPromise { + return localVarFp.updatePredefinedVariations(settingId, updatePredefinedVariationsRequest, options).then((request) => request(axios, basePath)); + }, /** * This endpoint updates the metadata of a Feature Flag or Setting with a collection of [JSON Patch](https://jsonpatch.com) operations in a specified Config. Only the `name`, `hint` and `tags` attributes are modifiable by this endpoint. The `tags` attribute is a simple collection of the [tag IDs](#operation/get-tags) attached to the given setting. The advantage of using JSON Patch is that you can describe individual update operations on a resource without touching attributes that you don\'t want to change. For example: We have the following resource. ```json { \"settingId\": 5345, \"key\": \"myGrandFeature\", \"name\": \"Tihs is a naem with soem typos.\", \"hint\": \"This flag controls my grandioso feature.\", \"settingType\": \"boolean\", \"tags\": [ { \"tagId\": 0, \"name\": \"sample tag\", \"color\": \"whale\" } ] } ``` If we send an update request body as below (it changes the `name` and adds the already existing tag with the id `2`): ```json [ { \"op\": \"replace\", \"path\": \"/name\", \"value\": \"This is the name without typos.\" }, { \"op\": \"add\", \"path\": \"/tags/-\", \"value\": 2 } ] ``` Only the `name` and `tags` are updated and all the other attributes remain unchanged. So we get a response like this: ```json { \"settingId\": 5345, \"key\": \"myGrandFeature\", \"name\": \"This is the name without typos.\", \"hint\": \"This flag controls my grandioso feature.\", \"settingType\": \"boolean\", \"tags\": [ { \"tagId\": 0, \"name\": \"sample tag\", \"color\": \"whale\" }, { \"tagId\": 2, \"name\": \"another tag\", \"color\": \"koala\" } ] } ``` * @summary Update Flag @@ -517,6 +588,19 @@ export class FeatureFlagsSettingsApi extends BaseAPI { return FeatureFlagsSettingsApiFp(this.configuration).replaceSetting(settingId, replaceSettingModel, options).then((request) => request(this.axios, this.basePath)); } + /** + * This endpoint updates the predefined variations for a Feature Flag or Setting identified by the `settingId` parameter. **Important:** You can only update a predefined variation\'s value if it is not used anywhere in your feature flags. **Beta feature:** The feature is currently in closed beta state and cannot be used. + * @summary Update predefined variations (Beta) + * @param {number} settingId The identifier of the Setting. + * @param {UpdatePredefinedVariationsRequest} updatePredefinedVariationsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FeatureFlagsSettingsApi + */ + public updatePredefinedVariations(settingId: number, updatePredefinedVariationsRequest: UpdatePredefinedVariationsRequest, options?: RawAxiosRequestConfig) { + return FeatureFlagsSettingsApiFp(this.configuration).updatePredefinedVariations(settingId, updatePredefinedVariationsRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** * This endpoint updates the metadata of a Feature Flag or Setting with a collection of [JSON Patch](https://jsonpatch.com) operations in a specified Config. Only the `name`, `hint` and `tags` attributes are modifiable by this endpoint. The `tags` attribute is a simple collection of the [tag IDs](#operation/get-tags) attached to the given setting. The advantage of using JSON Patch is that you can describe individual update operations on a resource without touching attributes that you don\'t want to change. For example: We have the following resource. ```json { \"settingId\": 5345, \"key\": \"myGrandFeature\", \"name\": \"Tihs is a naem with soem typos.\", \"hint\": \"This flag controls my grandioso feature.\", \"settingType\": \"boolean\", \"tags\": [ { \"tagId\": 0, \"name\": \"sample tag\", \"color\": \"whale\" } ] } ``` If we send an update request body as below (it changes the `name` and adds the already existing tag with the id `2`): ```json [ { \"op\": \"replace\", \"path\": \"/name\", \"value\": \"This is the name without typos.\" }, { \"op\": \"add\", \"path\": \"/tags/-\", \"value\": 2 } ] ``` Only the `name` and `tags` are updated and all the other attributes remain unchanged. So we get a response like this: ```json { \"settingId\": 5345, \"key\": \"myGrandFeature\", \"name\": \"This is the name without typos.\", \"hint\": \"This flag controls my grandioso feature.\", \"settingType\": \"boolean\", \"tags\": [ { \"tagId\": 0, \"name\": \"sample tag\", \"color\": \"whale\" }, { \"tagId\": 2, \"name\": \"another tag\", \"color\": \"koala\" } ] } ``` * @summary Update Flag diff --git a/model/audit-log-type.ts b/model/audit-log-type.ts index fcb3999..7493427 100644 --- a/model/audit-log-type.ts +++ b/model/audit-log-type.ts @@ -47,6 +47,9 @@ export const AuditLogType = { SettingChanged: 'settingChanged', SettingDeleted: 'settingDeleted', SettingsReordered: 'settingsReordered', + PredefinedVariationsChanged: 'predefinedVariationsChanged', + SettingConvertedToPredefinedVariations: 'settingConvertedToPredefinedVariations', + SettingConvertedToCustomValues: 'settingConvertedToCustomValues', SettingValueChanged: 'settingValueChanged', WebHookCreated: 'webHookCreated', WebHookChanged: 'webHookChanged', @@ -112,7 +115,15 @@ export const AuditLogType = { AwsDisconnected: 'awsDisconnected', UserEnabled: 'userEnabled', SyncUserDeleted: 'syncUserDeleted', - SyncGroupDeleted: 'syncGroupDeleted' + SyncGroupDeleted: 'syncGroupDeleted', + ProxyConfigurationCreated: 'proxyConfigurationCreated', + ProxyConfigurationChanged: 'proxyConfigurationChanged', + ProxyConfigurationDeleted: 'proxyConfigurationDeleted', + ProxyConfigurationSecretRegenerated: 'proxyConfigurationSecretRegenerated', + ProxyNotificationSettingsUpdated: 'proxyNotificationSettingsUpdated', + ProxyNotificationSettingsDeleted: 'proxyNotificationSettingsDeleted', + ProxyNotificationSigningKeyAdded: 'proxyNotificationSigningKeyAdded', + ProxyNotificationSigningKeyDeleted: 'proxyNotificationSigningKeyDeleted' } as const; export type AuditLogType = typeof AuditLogType[keyof typeof AuditLogType]; diff --git a/model/comparison-value-list-model.ts b/model/comparison-value-list-model.ts index 4a93b5a..782da57 100644 --- a/model/comparison-value-list-model.ts +++ b/model/comparison-value-list-model.ts @@ -31,6 +31,6 @@ export interface ComparisonValueListModel { * @type {string} * @memberof ComparisonValueListModel */ - 'hint'?: string | null; + 'hint': string | null; } diff --git a/model/comparison-value-model.ts b/model/comparison-value-model.ts index 06224d9..462c936 100644 --- a/model/comparison-value-model.ts +++ b/model/comparison-value-model.ts @@ -28,18 +28,18 @@ export interface ComparisonValueModel { * @type {string} * @memberof ComparisonValueModel */ - 'stringValue'?: string | null; + 'stringValue': string | null; /** * The number representation of the comparison value. * @type {number} * @memberof ComparisonValueModel */ - 'doubleValue'?: number | null; + 'doubleValue': number | null; /** * The list representation of the comparison value. * @type {Array} * @memberof ComparisonValueModel */ - 'listValue'?: Array | null; + 'listValue': Array | null; } diff --git a/model/config-setting-formula-model.ts b/model/config-setting-formula-model.ts index d340937..2daf02b 100644 --- a/model/config-setting-formula-model.ts +++ b/model/config-setting-formula-model.ts @@ -18,7 +18,7 @@ import { IntegrationLinkModel } from './integration-link-model'; // May contain unused imports in some cases // @ts-ignore -import { SettingDataModel } from './setting-data-model'; +import { SettingDataV2Model } from './setting-data-v2-model'; // May contain unused imports in some cases // @ts-ignore import { SettingTagModel } from './setting-tag-model'; @@ -55,10 +55,10 @@ export interface ConfigSettingFormulaModel { 'targetingRules': Array; /** * - * @type {SettingDataModel} + * @type {SettingDataV2Model} * @memberof ConfigSettingFormulaModel */ - 'setting': SettingDataModel; + 'setting': SettingDataV2Model; /** * The last updated date and time when the Feature Flag or Setting. * @type {string} diff --git a/model/create-predefined-variation-model.ts b/model/create-predefined-variation-model.ts new file mode 100644 index 0000000..b0a9903 --- /dev/null +++ b/model/create-predefined-variation-model.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * ConfigCat Public Management API + * The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * + * The version of the OpenAPI document: v1 + * Contact: support@configcat.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CreatePredefinedVariationValueModel } from './create-predefined-variation-value-model'; + +/** + * A Feature Flag or Predefined Variation. + * @export + * @interface CreatePredefinedVariationModel + */ +export interface CreatePredefinedVariationModel { + /** + * + * @type {CreatePredefinedVariationValueModel} + * @memberof CreatePredefinedVariationModel + */ + 'value': CreatePredefinedVariationValueModel; + /** + * The name of the Feature Flag or Predefined Variation, shown on the Dashboard UI. If not set, the Value will be shown. + * @type {string} + * @memberof CreatePredefinedVariationModel + */ + 'name'?: string | null; + /** + * The name of the Feature Flag or Predefined Variation, shown on the Dashboard UI. If not set, the Value will be shown. + * @type {string} + * @memberof CreatePredefinedVariationModel + */ + 'hint'?: string | null; +} + diff --git a/model/create-predefined-variation-value-model.ts b/model/create-predefined-variation-value-model.ts new file mode 100644 index 0000000..ea1753f --- /dev/null +++ b/model/create-predefined-variation-value-model.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * ConfigCat Public Management API + * The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * + * The version of the OpenAPI document: v1 + * Contact: support@configcat.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Represents the value of a Feature Flag or Predefined Variation. + * @export + * @interface CreatePredefinedVariationValueModel + */ +export interface CreatePredefinedVariationValueModel { + /** + * The served value in case of a boolean Feature Flag. + * @type {boolean} + * @memberof CreatePredefinedVariationValueModel + */ + 'boolValue'?: boolean | null; + /** + * The served value in case of a text Setting. + * @type {string} + * @memberof CreatePredefinedVariationValueModel + */ + 'stringValue'?: string | null; + /** + * The served value in case of a whole number Setting. + * @type {number} + * @memberof CreatePredefinedVariationValueModel + */ + 'intValue'?: number | null; + /** + * The served value in case of a decimal number Setting. + * @type {number} + * @memberof CreatePredefinedVariationValueModel + */ + 'doubleValue'?: number | null; +} + diff --git a/model/create-setting-initial-values.ts b/model/create-setting-initial-values.ts index cca2d96..fb0c7dc 100644 --- a/model/create-setting-initial-values.ts +++ b/model/create-setting-initial-values.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { CreatePredefinedVariationModel } from './create-predefined-variation-model'; // May contain unused imports in some cases // @ts-ignore import { InitialValue } from './initial-value'; @@ -26,6 +29,12 @@ import { SettingType } from './setting-type'; * @interface CreateSettingInitialValues */ export interface CreateSettingInitialValues { + /** + * The name of the Feature Flag or Setting. + * @type {string} + * @memberof CreateSettingInitialValues + */ + 'name': string; /** * A short description for the setting, shown on the Dashboard UI. * @type {string} @@ -50,18 +59,18 @@ export interface CreateSettingInitialValues { * @memberof CreateSettingInitialValues */ 'key': string; - /** - * The name of the Feature Flag or Setting. - * @type {string} - * @memberof CreateSettingInitialValues - */ - 'name': string; /** * * @type {SettingType} * @memberof CreateSettingInitialValues */ 'settingType': SettingType; + /** + * The Feature Flag or Setting\'s Variations. + * @type {Array} + * @memberof CreateSettingInitialValues + */ + 'predefinedVariations'?: Array | null; /** * Optional, initial value of the Feature Flag or Setting in the given Environments. Only one of the SettingIdToInitFrom or the InitialValues properties can be set. * @type {Array} diff --git a/model/index.ts b/model/index.ts index e4366d6..2ef4ac7 100644 --- a/model/index.ts +++ b/model/index.ts @@ -19,6 +19,8 @@ export * from './create-environment-model'; export * from './create-integration-model'; export * from './create-or-update-environment-access-model'; export * from './create-permission-group-request'; +export * from './create-predefined-variation-model'; +export * from './create-predefined-variation-value-model'; export * from './create-product-request'; export * from './create-segment-model'; export * from './create-setting-initial-values'; @@ -58,6 +60,8 @@ export * from './organization-permission-model'; export * from './organization-product-model'; export * from './percentage-option-model'; export * from './permission-group-model'; +export * from './predefined-variation-model'; +export * from './predefined-variation-value-model'; export * from './preferences-model'; export * from './prerequisite-comparator'; export * from './prerequisite-flag-condition-model'; @@ -77,6 +81,7 @@ export * from './segment-condition-model'; export * from './segment-list-model'; export * from './segment-model'; export * from './setting-data-model'; +export * from './setting-data-v2-model'; export * from './setting-formula-model'; export * from './setting-model'; export * from './setting-tag-model'; @@ -104,6 +109,9 @@ export * from './update-evaluation-formulas-model'; export * from './update-member-permissions-request'; export * from './update-percentage-option-model'; export * from './update-permission-group-request'; +export * from './update-predefined-variation-model'; +export * from './update-predefined-variation-value-model'; +export * from './update-predefined-variations-request'; export * from './update-preferences-request'; export * from './update-prerequisite-flag-condition-model'; export * from './update-product-request'; diff --git a/model/initial-value.ts b/model/initial-value.ts index 3a4b351..bebb720 100644 --- a/model/initial-value.ts +++ b/model/initial-value.ts @@ -30,7 +30,7 @@ export interface InitialValue { */ 'environmentId'?: string; /** - * The initial value in the given Environment. It must respect the setting type. In some generated clients for strictly typed languages you may use double/float properties to handle integer values. + * The initial value in the given Environment. It must respect the setting type. In some generated clients for strictly typed languages, you may use double/float properties to handle integer values. In case of a Feature Flag with predefined variations, the value must match one of the predefined variations' value. * @type {SettingValueType} * @memberof InitialValue */ diff --git a/model/predefined-variation-model.ts b/model/predefined-variation-model.ts new file mode 100644 index 0000000..2079ead --- /dev/null +++ b/model/predefined-variation-model.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * ConfigCat Public Management API + * The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * + * The version of the OpenAPI document: v1 + * Contact: support@configcat.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PredefinedVariationValueModel } from './predefined-variation-value-model'; + +/** + * A Feature Flag or Predefined Variation. + * @export + * @interface PredefinedVariationModel + */ +export interface PredefinedVariationModel { + /** + * + * @type {PredefinedVariationValueModel} + * @memberof PredefinedVariationModel + */ + 'value': PredefinedVariationValueModel; + /** + * The name of the Feature Flag or Predefined Variation, shown on the Dashboard UI. If not set, the Value will be shown. + * @type {string} + * @memberof PredefinedVariationModel + */ + 'name': string | null; + /** + * The name of the Feature Flag or Predefined Variation, shown on the Dashboard UI. If not set, the Value will be shown. + * @type {string} + * @memberof PredefinedVariationModel + */ + 'hint': string | null; + /** + * The Feature Flag or Predefined Variation\'s identifier. + * @type {string} + * @memberof PredefinedVariationModel + */ + 'predefinedVariationId': string; +} + diff --git a/model/predefined-variation-value-model.ts b/model/predefined-variation-value-model.ts new file mode 100644 index 0000000..a4323be --- /dev/null +++ b/model/predefined-variation-value-model.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * ConfigCat Public Management API + * The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * + * The version of the OpenAPI document: v1 + * Contact: support@configcat.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Represents the value of a Feature Flag or Predefined Variation. + * @export + * @interface PredefinedVariationValueModel + */ +export interface PredefinedVariationValueModel { + /** + * The served value in case of a boolean Feature Flag. + * @type {boolean} + * @memberof PredefinedVariationValueModel + */ + 'boolValue': boolean | null; + /** + * The served value in case of a text Setting. + * @type {string} + * @memberof PredefinedVariationValueModel + */ + 'stringValue': string | null; + /** + * The served value in case of a whole number Setting. + * @type {number} + * @memberof PredefinedVariationValueModel + */ + 'intValue': number | null; + /** + * The served value in case of a decimal number Setting. + * @type {number} + * @memberof PredefinedVariationValueModel + */ + 'doubleValue': number | null; +} + diff --git a/model/replace-setting-model.ts b/model/replace-setting-model.ts index 29dc35c..9278a04 100644 --- a/model/replace-setting-model.ts +++ b/model/replace-setting-model.ts @@ -20,6 +20,12 @@ * @interface ReplaceSettingModel */ export interface ReplaceSettingModel { + /** + * The name of the Feature Flag or Setting. + * @type {string} + * @memberof ReplaceSettingModel + */ + 'name': string; /** * A short description for the setting, shown on the Dashboard UI. * @type {string} @@ -38,11 +44,5 @@ export interface ReplaceSettingModel { * @memberof ReplaceSettingModel */ 'order'?: number | null; - /** - * The name of the Feature Flag or Setting. - * @type {string} - * @memberof ReplaceSettingModel - */ - 'name'?: string | null; } diff --git a/model/setting-data-v2-model.ts b/model/setting-data-v2-model.ts new file mode 100644 index 0000000..61303bd --- /dev/null +++ b/model/setting-data-v2-model.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * ConfigCat Public Management API + * The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * + * The version of the OpenAPI document: v1 + * Contact: support@configcat.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PredefinedVariationModel } from './predefined-variation-model'; +// May contain unused imports in some cases +// @ts-ignore +import { SettingType } from './setting-type'; + +/** + * Metadata of a Feature Flag or Setting. + * @export + * @interface SettingDataV2Model + */ +export interface SettingDataV2Model { + /** + * Identifier of the Feature Flag or Setting. + * @type {number} + * @memberof SettingDataV2Model + */ + 'settingId': number; + /** + * Key of the Feature Flag or Setting. + * @type {string} + * @memberof SettingDataV2Model + */ + 'key': string; + /** + * Name of the Feature Flag or Setting. + * @type {string} + * @memberof SettingDataV2Model + */ + 'name': string; + /** + * Description of the Feature Flag or Setting. + * @type {string} + * @memberof SettingDataV2Model + */ + 'hint': string | null; + /** + * + * @type {SettingType} + * @memberof SettingDataV2Model + */ + 'settingType': SettingType; + /** + * The order of the Feature Flag or Setting represented on the ConfigCat Dashboard. + * @type {number} + * @memberof SettingDataV2Model + */ + 'order': number; + /** + * The creation time of the Feature Flag or Setting. + * @type {string} + * @memberof SettingDataV2Model + */ + 'createdAt': string | null; + /** + * The user\'s email address who created the Feature Flag or Setting. + * @type {string} + * @memberof SettingDataV2Model + */ + 'creatorEmail': string | null; + /** + * The user\'s name who created the Feature Flag or Setting. + * @type {string} + * @memberof SettingDataV2Model + */ + 'creatorFullName': string | null; + /** + * A collection of Variations for a Feature Flag or Setting. + * @type {Array} + * @memberof SettingDataV2Model + */ + 'predefinedVariations': Array; + /** + * + * @type {boolean} + * @memberof SettingDataV2Model + */ + 'isWatching': boolean; +} + + + diff --git a/model/setting-formula-model.ts b/model/setting-formula-model.ts index df42409..5a55204 100644 --- a/model/setting-formula-model.ts +++ b/model/setting-formula-model.ts @@ -27,7 +27,7 @@ import { FeatureFlagLimitations } from './feature-flag-limitations'; import { IntegrationLinkModel } from './integration-link-model'; // May contain unused imports in some cases // @ts-ignore -import { SettingDataModel } from './setting-data-model'; +import { SettingDataV2Model } from './setting-data-v2-model'; // May contain unused imports in some cases // @ts-ignore import { SettingTagModel } from './setting-tag-model'; @@ -64,10 +64,10 @@ export interface SettingFormulaModel { 'targetingRules': Array; /** * - * @type {SettingDataModel} + * @type {SettingDataV2Model} * @memberof SettingFormulaModel */ - 'setting': SettingDataModel; + 'setting': SettingDataV2Model; /** * The last updated date and time when the Feature Flag or Setting. * @type {string} diff --git a/model/setting-model.ts b/model/setting-model.ts index 72c6d63..7b4df18 100644 --- a/model/setting-model.ts +++ b/model/setting-model.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { PredefinedVariationModel } from './predefined-variation-model'; // May contain unused imports in some cases // @ts-ignore import { SettingType } from './setting-type'; @@ -86,6 +89,12 @@ export interface SettingModel { * @memberof SettingModel */ 'tags': Array; + /** + * The Feature Flag or Setting\'s Variations. + * @type {Array} + * @memberof SettingModel + */ + 'predefinedVariations': Array; } diff --git a/model/update-predefined-variation-model.ts b/model/update-predefined-variation-model.ts new file mode 100644 index 0000000..41f5b7c --- /dev/null +++ b/model/update-predefined-variation-model.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * ConfigCat Public Management API + * The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * + * The version of the OpenAPI document: v1 + * Contact: support@configcat.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpdatePredefinedVariationValueModel } from './update-predefined-variation-value-model'; + +/** + * A Feature Flag or Predefined Variation. + * @export + * @interface UpdatePredefinedVariationModel + */ +export interface UpdatePredefinedVariationModel { + /** + * + * @type {UpdatePredefinedVariationValueModel} + * @memberof UpdatePredefinedVariationModel + */ + 'value': UpdatePredefinedVariationValueModel; + /** + * The name of the Feature Flag or Predefined Variation, shown on the Dashboard UI. If not set, the Value will be shown. + * @type {string} + * @memberof UpdatePredefinedVariationModel + */ + 'name'?: string | null; + /** + * The name of the Feature Flag or Predefined Variation, shown on the Dashboard UI. If not set, the Value will be shown. + * @type {string} + * @memberof UpdatePredefinedVariationModel + */ + 'hint'?: string | null; + /** + * The Feature Flag or Predefined Variation\'s identifier to update. Omit the value if you want to add a new predefined variation. + * @type {string} + * @memberof UpdatePredefinedVariationModel + */ + 'predefinedVariationId'?: string | null; +} + diff --git a/model/update-predefined-variation-value-model.ts b/model/update-predefined-variation-value-model.ts new file mode 100644 index 0000000..0ebaa7d --- /dev/null +++ b/model/update-predefined-variation-value-model.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * ConfigCat Public Management API + * The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * + * The version of the OpenAPI document: v1 + * Contact: support@configcat.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Represents the value of a Feature Flag or Predefined Variation. + * @export + * @interface UpdatePredefinedVariationValueModel + */ +export interface UpdatePredefinedVariationValueModel { + /** + * The served value in case of a boolean Feature Flag. + * @type {boolean} + * @memberof UpdatePredefinedVariationValueModel + */ + 'boolValue'?: boolean | null; + /** + * The served value in case of a text Setting. + * @type {string} + * @memberof UpdatePredefinedVariationValueModel + */ + 'stringValue'?: string | null; + /** + * The served value in case of a whole number Setting. + * @type {number} + * @memberof UpdatePredefinedVariationValueModel + */ + 'intValue'?: number | null; + /** + * The served value in case of a decimal number Setting. + * @type {number} + * @memberof UpdatePredefinedVariationValueModel + */ + 'doubleValue'?: number | null; +} + diff --git a/model/update-predefined-variations-request.ts b/model/update-predefined-variations-request.ts new file mode 100644 index 0000000..1afdd09 --- /dev/null +++ b/model/update-predefined-variations-request.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * ConfigCat Public Management API + * The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON format. **Important:** Do not use this API for accessing and evaluating feature flag values. Use the [SDKs](https://configcat.com/docs/sdk-reference/overview) or the [ConfigCat Proxy](https://configcat.com/docs/advanced/proxy/proxy-overview/) instead. # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + * + * The version of the OpenAPI document: v1 + * Contact: support@configcat.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpdatePredefinedVariationModel } from './update-predefined-variation-model'; + +/** + * + * @export + * @interface UpdatePredefinedVariationsRequest + */ +export interface UpdatePredefinedVariationsRequest { + /** + * A collection of Feature Flag or Predefined Variations. + * @type {Array} + * @memberof UpdatePredefinedVariationsRequest + */ + 'predefinedVariations': Array; +} + diff --git a/model/update-value-model.ts b/model/update-value-model.ts index 486ecbb..c27be3f 100644 --- a/model/update-value-model.ts +++ b/model/update-value-model.ts @@ -44,5 +44,11 @@ export interface UpdateValueModel { * @memberof UpdateValueModel */ 'doubleValue'?: number | null; + /** + * The served Variation\'s identifier. + * @type {string} + * @memberof UpdateValueModel + */ + 'predefinedVariationId'?: string | null; } diff --git a/model/value-model.ts b/model/value-model.ts index 4dbd7e8..c35c4c2 100644 --- a/model/value-model.ts +++ b/model/value-model.ts @@ -44,5 +44,11 @@ export interface ValueModel { * @memberof ValueModel */ 'doubleValue': number | null; + /** + * The served Variation\'s identifier. + * @type {string} + * @memberof ValueModel + */ + 'predefinedVariationId': string | null; } From 42514cec138a83b493b5a223af7b401ca668e00b Mon Sep 17 00:00:00 2001 From: novalisdenahi Date: Fri, 7 Nov 2025 16:28:52 +0100 Subject: [PATCH 2/2] 3.1.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 02b85b3..817ee31 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "configcat-publicapi-node-client", - "version": "3.0.3", + "version": "3.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "configcat-publicapi-node-client", - "version": "3.0.3", + "version": "3.1.0", "dependencies": { "axios": "^1.6.7", "bluebird": "^3.5.0" diff --git a/package.json b/package.json index 804e1e7..240e77d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "configcat-publicapi-node-client", - "version": "3.0.3", + "version": "3.1.0", "description": "NodeJS client for configcat-publicapi-node-client", "main": "dist/index.js", "types": "dist/index.d.ts",