From 40d06ad39bf1094d7ba78fe8aabd038867cfe8df Mon Sep 17 00:00:00 2001 From: Lali Date: Wed, 8 Nov 2023 11:58:27 +0100 Subject: [PATCH 1/2] regen --- .../src/.openapi-generator/FILES | 7 ++ .../src/api/members.service.ts | 70 +++++++++++++++++++ .../src/model/auditLogItemModel.ts | 2 + .../src/model/auditLogType.ts | 3 +- .../src/model/comparisonValueModel.ts | 2 +- .../src/model/configSettingFormulaModel.ts | 4 ++ .../src/model/configSettingFormulasModel.ts | 2 + .../configSettingFormulasModelHaljson.ts | 2 + .../src/model/configSettingValuesModel.ts | 2 + .../model/configSettingValuesModelHaljson.ts | 2 + .../src/model/featureFlagLimitations.ts | 47 +++++++++++++ .../src/model/models.ts | 7 ++ .../src/model/organizationAdminModel.ts | 35 ++++++++++ .../src/model/organizationMemberModel.ts | 40 +++++++++++ .../src/model/organizationMembersModel.ts | 26 +++++++ .../model/organizationPermissionGroupModel.ts | 27 +++++++ .../src/model/organizationPermissionModel.ts | 23 ++++++ .../src/model/organizationProductModel.ts | 27 +++++++ .../src/model/percentageOptionModel.ts | 2 +- .../src/model/prerequisiteComparator.ts | 2 +- .../src/model/settingFormulaModel.ts | 6 ++ .../src/model/settingFormulaModelHaljson.ts | 6 ++ .../src/model/settingValueModel.ts | 2 + .../src/model/settingValueModelHaljson.ts | 2 + .../src/model/userComparator.ts | 30 +++++--- .../src/model/userConditionModel.ts | 2 +- 26 files changed, 364 insertions(+), 16 deletions(-) create mode 100644 projects/ng-configcat-publicapi/src/model/featureFlagLimitations.ts create mode 100644 projects/ng-configcat-publicapi/src/model/organizationAdminModel.ts create mode 100644 projects/ng-configcat-publicapi/src/model/organizationMemberModel.ts create mode 100644 projects/ng-configcat-publicapi/src/model/organizationMembersModel.ts create mode 100644 projects/ng-configcat-publicapi/src/model/organizationPermissionGroupModel.ts create mode 100644 projects/ng-configcat-publicapi/src/model/organizationPermissionModel.ts create mode 100644 projects/ng-configcat-publicapi/src/model/organizationProductModel.ts diff --git a/projects/ng-configcat-publicapi/src/.openapi-generator/FILES b/projects/ng-configcat-publicapi/src/.openapi-generator/FILES index 7bbe874..33ebc5b 100644 --- a/projects/ng-configcat-publicapi/src/.openapi-generator/FILES +++ b/projects/ng-configcat-publicapi/src/.openapi-generator/FILES @@ -71,6 +71,7 @@ model/environmentAccessType.ts model/environmentModel.ts model/environmentModelHaljson.ts model/evaluationVersion.ts +model/featureFlagLimitations.ts model/flagReference.ts model/initialValue.ts model/integrationLinkDetail.ts @@ -83,8 +84,14 @@ model/meModel.ts model/memberModel.ts model/models.ts model/operationType.ts +model/organizationAdminModel.ts +model/organizationMemberModel.ts +model/organizationMembersModel.ts model/organizationModel.ts model/organizationModelHaljson.ts +model/organizationPermissionGroupModel.ts +model/organizationPermissionModel.ts +model/organizationProductModel.ts model/percentageOptionModel.ts model/permissionGroupModel.ts model/permissionGroupModelHaljson.ts diff --git a/projects/ng-configcat-publicapi/src/api/members.service.ts b/projects/ng-configcat-publicapi/src/api/members.service.ts index 937d879..9f477e7 100644 --- a/projects/ng-configcat-publicapi/src/api/members.service.ts +++ b/projects/ng-configcat-publicapi/src/api/members.service.ts @@ -25,6 +25,8 @@ import { InviteMembersRequest } from '../model/inviteMembersRequest'; // @ts-ignore import { MemberModel } from '../model/memberModel'; // @ts-ignore +import { OrganizationMembersModel } from '../model/organizationMembersModel'; +// @ts-ignore import { UserModel } from '../model/userModel'; // @ts-ignore @@ -326,6 +328,7 @@ export class MembersService { * @param organizationId The identifier of the Organization. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. + * @deprecated */ public getOrganizationMembers(organizationId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable>; public getOrganizationMembers(organizationId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable>>; @@ -387,6 +390,73 @@ export class MembersService { ); } + /** + * List Organization Members + * This endpoint returns the list of Members that belongs to the given Organization, identified by the `organizationId` parameter. The results may vary based on the access level of the user who calls the endpoint: - When it\'s called with Organization Admin privileges, the result will contain each member in the Organization. - When it\'s called without Organization Admin privileges, the result will contain each Organization Admin along with members of those products where the caller has `Team members and permission groups` (`canManageMembers`) permission. + * @param organizationId The identifier of the Organization. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getOrganizationMembersV2(organizationId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable; + public getOrganizationMembersV2(organizationId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable>; + public getOrganizationMembersV2(organizationId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable>; + public getOrganizationMembersV2(organizationId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable { + if (organizationId === null || organizationId === undefined) { + throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationMembersV2.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (Basic) required + localVarCredential = this.configuration.lookupCredential('Basic'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/json', + 'application/hal+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/v2/organizations/${this.configuration.encodeParam({name: "organizationId", value: organizationId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/members`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + /** * List Product Members * This endpoint returns the list of Members that belongs to the given Product, identified by the `productId` parameter. diff --git a/projects/ng-configcat-publicapi/src/model/auditLogItemModel.ts b/projects/ng-configcat-publicapi/src/model/auditLogItemModel.ts index a7dc573..7ae9da4 100644 --- a/projects/ng-configcat-publicapi/src/model/auditLogItemModel.ts +++ b/projects/ng-configcat-publicapi/src/model/auditLogItemModel.ts @@ -16,6 +16,8 @@ export interface AuditLogItemModel { auditLogId?: number; auditLogDateTime?: string; auditLogTypeEnum?: AuditLogType; + changeSetId?: string | null; + truncated?: boolean; auditLogType?: string | null; userEmail?: string | null; userName?: string | null; diff --git a/projects/ng-configcat-publicapi/src/model/auditLogType.ts b/projects/ng-configcat-publicapi/src/model/auditLogType.ts index 73b46c0..7358dfc 100644 --- a/projects/ng-configcat-publicapi/src/model/auditLogType.ts +++ b/projects/ng-configcat-publicapi/src/model/auditLogType.ts @@ -11,7 +11,7 @@ */ -export type AuditLogType = 'productCreated' | 'productChanged' | 'productOwnershipTransferred' | 'productDeleted' | 'productsReordered' | 'teamMemberInvited' | 'teamMemberInvitationRevoked' | 'teamMemberJoined' | 'teamMemberPermissionGroupChanged' | 'teamMemberRemoved' | 'teamMemberLeft' | 'teamMemberInvitationChanged' | 'teamMemberInvitationResent' | 'teamMemberInvitationRejected' | 'configCreated' | 'configChanged' | 'configDeleted' | 'configsReordered' | 'environmentCreated' | 'environmentChanged' | 'environmentDeleted' | 'environmentsReordered' | 'settingCreated' | 'settingChanged' | 'settingDeleted' | 'settingsReordered' | 'settingValueChanged' | 'webHookCreated' | 'webHookChanged' | 'webHookDeleted' | 'subscriptionChanged' | 'permissionGroupCreated' | 'permissionGroupChanged' | 'permissionGroupDeleted' | 'permissionGroupDefault' | 'apiKeyAdded' | 'apiKeyRemoved' | 'integrationAdded' | 'integrationChanged' | 'integrationRemoved' | 'apiKeyConnected' | 'integrationLinkAdded' | 'integrationLinkRemoved' | 'organizationAdded' | 'organizationRemoved' | 'organizationChanged' | 'organizationSubscriptionTypeChanged' | 'organizationAdminChanged' | 'organizationAdminLeft' | 'organizationAdminDisabled2FA' | 'tagAdded' | 'tagChanged' | 'tagRemoved' | 'settingTagAdded' | 'settingTagRemoved' | 'publicApiAccessTokenAdded' | 'publicApiAccessTokenRemoved' | 'domainAdded' | 'domainVerified' | 'domainRemoved' | 'domainSamlConfigured' | 'domainSamlDeleted' | 'autoProvisioningConfigurationChanged' | 'samlIdpConfigurationAdded' | 'samlIdpConfigurationRemoved' | 'samlIdpConfigurationUpdated' | 'organizationMemberJoined' | 'organizationMemberProductJoinRequested' | 'organizationMemberProductJoinRequestRejected' | 'organizationMemberProductJoinRequestApproved' | 'codeReferencesUploaded' | 'codeReferenceDeleted' | 'codeReferenceStaleBranchDeleted' | 'segmentCreated' | 'segmentChanged' | 'segmentDeleted' | 'webhookSigningKeyDeleted' | 'webhookSigningKeyCreated'; +export type AuditLogType = 'productCreated' | 'productChanged' | 'productOwnershipTransferred' | 'productDeleted' | 'productsReordered' | 'teamMemberInvited' | 'teamMemberInvitationRevoked' | 'teamMemberJoined' | 'teamMemberPermissionGroupChanged' | 'teamMemberRemoved' | 'teamMemberLeft' | 'teamMemberInvitationChanged' | 'teamMemberInvitationResent' | 'teamMemberInvitationRejected' | 'configCreated' | 'configChanged' | 'configDeleted' | 'configsReordered' | 'environmentCreated' | 'environmentChanged' | 'environmentDeleted' | 'environmentsReordered' | 'settingCreated' | 'settingChanged' | 'settingDeleted' | 'settingsReordered' | 'settingValueChanged' | 'webHookCreated' | 'webHookChanged' | 'webHookDeleted' | 'permissionGroupCreated' | 'permissionGroupChanged' | 'permissionGroupDeleted' | 'permissionGroupDefault' | 'apiKeyAdded' | 'apiKeyRemoved' | 'integrationAdded' | 'integrationChanged' | 'integrationRemoved' | 'apiKeyConnected' | 'integrationLinkAdded' | 'integrationLinkRemoved' | 'organizationAdded' | 'organizationRemoved' | 'organizationChanged' | 'organizationSubscriptionTypeChanged' | 'organizationAdminChanged' | 'organizationAdminLeft' | 'organizationAdminDisabled2FA' | 'tagAdded' | 'tagChanged' | 'tagRemoved' | 'settingTagAdded' | 'settingTagRemoved' | 'publicApiAccessTokenAdded' | 'publicApiAccessTokenRemoved' | 'domainAdded' | 'domainVerified' | 'domainRemoved' | 'domainSamlConfigured' | 'domainSamlDeleted' | 'autoProvisioningConfigurationChanged' | 'samlIdpConfigurationAdded' | 'samlIdpConfigurationRemoved' | 'samlIdpConfigurationUpdated' | 'organizationMemberJoined' | 'organizationMemberProductJoinRequested' | 'organizationMemberProductJoinRequestRejected' | 'organizationMemberProductJoinRequestApproved' | 'codeReferencesUploaded' | 'codeReferenceDeleted' | 'codeReferenceStaleBranchDeleted' | 'segmentCreated' | 'segmentChanged' | 'segmentDeleted' | 'webhookSigningKeyDeleted' | 'webhookSigningKeyCreated'; export const AuditLogType = { ProductCreated: 'productCreated' as AuditLogType, @@ -44,7 +44,6 @@ export const AuditLogType = { WebHookCreated: 'webHookCreated' as AuditLogType, WebHookChanged: 'webHookChanged' as AuditLogType, WebHookDeleted: 'webHookDeleted' as AuditLogType, - SubscriptionChanged: 'subscriptionChanged' as AuditLogType, PermissionGroupCreated: 'permissionGroupCreated' as AuditLogType, PermissionGroupChanged: 'permissionGroupChanged' as AuditLogType, PermissionGroupDeleted: 'permissionGroupDeleted' as AuditLogType, diff --git a/projects/ng-configcat-publicapi/src/model/comparisonValueModel.ts b/projects/ng-configcat-publicapi/src/model/comparisonValueModel.ts index d52b853..4c633eb 100644 --- a/projects/ng-configcat-publicapi/src/model/comparisonValueModel.ts +++ b/projects/ng-configcat-publicapi/src/model/comparisonValueModel.ts @@ -13,7 +13,7 @@ import { ComparisonValueListModel } from './comparisonValueListModel'; /** - * The value to compare with the given user attribute\'s value. + * The value that the user object\'s attribute is compared to. */ export interface ComparisonValueModel { /** diff --git a/projects/ng-configcat-publicapi/src/model/configSettingFormulaModel.ts b/projects/ng-configcat-publicapi/src/model/configSettingFormulaModel.ts index 3e95b26..c544590 100644 --- a/projects/ng-configcat-publicapi/src/model/configSettingFormulaModel.ts +++ b/projects/ng-configcat-publicapi/src/model/configSettingFormulaModel.ts @@ -48,5 +48,9 @@ export interface ConfigSettingFormulaModel { * The tags attached to the Feature Flag or Setting. */ settingTags?: Array | null; + /** + * List of Feature Flag and Setting IDs where the actual Feature Flag or Setting is prerequisite. + */ + settingIdsWherePrerequisite?: Array | null; } diff --git a/projects/ng-configcat-publicapi/src/model/configSettingFormulasModel.ts b/projects/ng-configcat-publicapi/src/model/configSettingFormulasModel.ts index 8debb6a..e4bd1bb 100644 --- a/projects/ng-configcat-publicapi/src/model/configSettingFormulasModel.ts +++ b/projects/ng-configcat-publicapi/src/model/configSettingFormulasModel.ts @@ -12,6 +12,7 @@ import { ConfigModel } from './configModel'; import { ConfigSettingFormulaModel } from './configSettingFormulaModel'; import { EnvironmentModel } from './environmentModel'; +import { FeatureFlagLimitations } from './featureFlagLimitations'; export interface ConfigSettingFormulasModel { @@ -22,5 +23,6 @@ export interface ConfigSettingFormulasModel { * Evaluation descriptors of each updated Feature Flag and Setting. */ settingFormulas?: Array | null; + featureFlagLimitations?: FeatureFlagLimitations; } diff --git a/projects/ng-configcat-publicapi/src/model/configSettingFormulasModelHaljson.ts b/projects/ng-configcat-publicapi/src/model/configSettingFormulasModelHaljson.ts index cfc61dc..3801180 100644 --- a/projects/ng-configcat-publicapi/src/model/configSettingFormulasModelHaljson.ts +++ b/projects/ng-configcat-publicapi/src/model/configSettingFormulasModelHaljson.ts @@ -11,6 +11,7 @@ */ import { ConfigSettingFormulasModelHaljsonEmbedded } from './configSettingFormulasModelHaljsonEmbedded'; import { ConfigSettingFormulaModel } from './configSettingFormulaModel'; +import { FeatureFlagLimitations } from './featureFlagLimitations'; import { ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks } from './configSettingFormulasModelHaljsonEmbeddedEnvironmentLinks'; @@ -21,6 +22,7 @@ export interface ConfigSettingFormulasModelHaljson { * Evaluation descriptors of each updated Feature Flag and Setting. */ settingFormulas?: Array | null; + featureFlagLimitations?: FeatureFlagLimitations; _links?: ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks; } diff --git a/projects/ng-configcat-publicapi/src/model/configSettingValuesModel.ts b/projects/ng-configcat-publicapi/src/model/configSettingValuesModel.ts index 46a3441..506128e 100644 --- a/projects/ng-configcat-publicapi/src/model/configSettingValuesModel.ts +++ b/projects/ng-configcat-publicapi/src/model/configSettingValuesModel.ts @@ -12,6 +12,7 @@ import { ConfigModel } from './configModel'; import { ConfigSettingValueModel } from './configSettingValueModel'; import { EnvironmentModel } from './environmentModel'; +import { FeatureFlagLimitations } from './featureFlagLimitations'; export interface ConfigSettingValuesModel { @@ -19,5 +20,6 @@ export interface ConfigSettingValuesModel { environment?: EnvironmentModel; readOnly?: boolean; settingValues?: Array | null; + featureFlagLimitations?: FeatureFlagLimitations; } diff --git a/projects/ng-configcat-publicapi/src/model/configSettingValuesModelHaljson.ts b/projects/ng-configcat-publicapi/src/model/configSettingValuesModelHaljson.ts index 96bc531..d598de6 100644 --- a/projects/ng-configcat-publicapi/src/model/configSettingValuesModelHaljson.ts +++ b/projects/ng-configcat-publicapi/src/model/configSettingValuesModelHaljson.ts @@ -11,6 +11,7 @@ */ import { ConfigSettingFormulasModelHaljsonEmbedded } from './configSettingFormulasModelHaljsonEmbedded'; import { ConfigSettingValueModel } from './configSettingValueModel'; +import { FeatureFlagLimitations } from './featureFlagLimitations'; import { ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks } from './configSettingFormulasModelHaljsonEmbeddedEnvironmentLinks'; @@ -18,6 +19,7 @@ export interface ConfigSettingValuesModelHaljson { _embedded?: ConfigSettingFormulasModelHaljsonEmbedded; readOnly?: boolean; settingValues?: Array | null; + featureFlagLimitations?: FeatureFlagLimitations; _links?: ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks; } diff --git a/projects/ng-configcat-publicapi/src/model/featureFlagLimitations.ts b/projects/ng-configcat-publicapi/src/model/featureFlagLimitations.ts new file mode 100644 index 0000000..2c5b1e0 --- /dev/null +++ b/projects/ng-configcat-publicapi/src/model/featureFlagLimitations.ts @@ -0,0 +1,47 @@ +/** + * ConfigCat Public Management API + * **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). 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. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-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. + */ + + +/** + * Subscription limitations regarding Feature flag or Setting values and targeting. + */ +export interface FeatureFlagLimitations { + /** + * Maximum number of percentage options a Feature Flag or Setting can have within a targeting rule. + */ + readonly maxPercentageOptionCount?: number; + /** + * Maximum number of targeting rules a Feature Flag or Setting can have. + */ + readonly maxTargetingRuleCount?: number; + /** + * Maximum length of a text comparison value. + */ + readonly maxComparisonValueLength?: number; + /** + * Maximum item count of a list comparison value. + */ + readonly maxComparisonValueListLength?: number; + /** + * Maximum length of a list comparison value\'s item. + */ + readonly maxComparisonValueListItemLength?: number; + /** + * Maximum length of a text Setting\'s value. + */ + readonly maxStringFlagValueLength?: number; + /** + * Maximum number of `AND` conditions a Feature Flag or Setting can have within a targeting rule. + */ + readonly maxConditionPerTargetingRuleCount?: number; +} + diff --git a/projects/ng-configcat-publicapi/src/model/models.ts b/projects/ng-configcat-publicapi/src/model/models.ts index 314bcd8..9f30be1 100644 --- a/projects/ng-configcat-publicapi/src/model/models.ts +++ b/projects/ng-configcat-publicapi/src/model/models.ts @@ -45,6 +45,7 @@ export * from './environmentAccessType'; export * from './environmentModel'; export * from './environmentModelHaljson'; export * from './evaluationVersion'; +export * from './featureFlagLimitations'; export * from './flagReference'; export * from './initialValue'; export * from './integrationLinkDetail'; @@ -56,8 +57,14 @@ export * from './jsonPatchOperation'; export * from './meModel'; export * from './memberModel'; export * from './operationType'; +export * from './organizationAdminModel'; +export * from './organizationMemberModel'; +export * from './organizationMembersModel'; export * from './organizationModel'; export * from './organizationModelHaljson'; +export * from './organizationPermissionGroupModel'; +export * from './organizationPermissionModel'; +export * from './organizationProductModel'; export * from './percentageOptionModel'; export * from './permissionGroupModel'; export * from './permissionGroupModelHaljson'; diff --git a/projects/ng-configcat-publicapi/src/model/organizationAdminModel.ts b/projects/ng-configcat-publicapi/src/model/organizationAdminModel.ts new file mode 100644 index 0000000..d67444e --- /dev/null +++ b/projects/ng-configcat-publicapi/src/model/organizationAdminModel.ts @@ -0,0 +1,35 @@ +/** + * ConfigCat Public Management API + * **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). 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. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-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. + */ + + +/** + * Describes an Organization Admin. + */ +export interface OrganizationAdminModel { + /** + * Identifier of the Organization Admin. + */ + userId?: string | null; + /** + * Name of the Organization Admin. + */ + fullName?: string | null; + /** + * Email of the OrganizationAdmin. + */ + email?: string | null; + /** + * Determines whether 2FA is enabled for the Organization Admin. + */ + twoFactorEnabled?: boolean; +} + diff --git a/projects/ng-configcat-publicapi/src/model/organizationMemberModel.ts b/projects/ng-configcat-publicapi/src/model/organizationMemberModel.ts new file mode 100644 index 0000000..57c0d9f --- /dev/null +++ b/projects/ng-configcat-publicapi/src/model/organizationMemberModel.ts @@ -0,0 +1,40 @@ +/** + * ConfigCat Public Management API + * **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). 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. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-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. + */ +import { OrganizationPermissionModel } from './organizationPermissionModel'; + + +/** + * Describes an Organization Member. + */ +export interface OrganizationMemberModel { + /** + * Identifier of the Organization Admin. + */ + userId?: string | null; + /** + * Name of the Organization Admin. + */ + fullName?: string | null; + /** + * Email of the OrganizationAdmin. + */ + email?: string | null; + /** + * Determines whether 2FA is enabled for the Organization Admin. + */ + twoFactorEnabled?: boolean; + /** + * The permissions of the Member. + */ + permissions?: Array | null; +} + diff --git a/projects/ng-configcat-publicapi/src/model/organizationMembersModel.ts b/projects/ng-configcat-publicapi/src/model/organizationMembersModel.ts new file mode 100644 index 0000000..ad2bbe8 --- /dev/null +++ b/projects/ng-configcat-publicapi/src/model/organizationMembersModel.ts @@ -0,0 +1,26 @@ +/** + * ConfigCat Public Management API + * **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). 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. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-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. + */ +import { OrganizationMemberModel } from './organizationMemberModel'; +import { OrganizationAdminModel } from './organizationAdminModel'; + + +export interface OrganizationMembersModel { + /** + * List of Organization Admins. + */ + admins?: Array | null; + /** + * List of Organization Members. + */ + members?: Array | null; +} + diff --git a/projects/ng-configcat-publicapi/src/model/organizationPermissionGroupModel.ts b/projects/ng-configcat-publicapi/src/model/organizationPermissionGroupModel.ts new file mode 100644 index 0000000..63c2c44 --- /dev/null +++ b/projects/ng-configcat-publicapi/src/model/organizationPermissionGroupModel.ts @@ -0,0 +1,27 @@ +/** + * ConfigCat Public Management API + * **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). 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. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-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. + */ + + +/** + * Describes the Member\'s Permission Group within a Product. + */ +export interface OrganizationPermissionGroupModel { + /** + * Identifier of the Member\'s Permission Group. + */ + permissionGroupId?: number; + /** + * Name of the Member\'s Permission Group. + */ + name?: string | null; +} + diff --git a/projects/ng-configcat-publicapi/src/model/organizationPermissionModel.ts b/projects/ng-configcat-publicapi/src/model/organizationPermissionModel.ts new file mode 100644 index 0000000..8ac3c43 --- /dev/null +++ b/projects/ng-configcat-publicapi/src/model/organizationPermissionModel.ts @@ -0,0 +1,23 @@ +/** + * ConfigCat Public Management API + * **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). 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. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-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. + */ +import { OrganizationPermissionGroupModel } from './organizationPermissionGroupModel'; +import { OrganizationProductModel } from './organizationProductModel'; + + +/** + * Describes the Member\'s permission. + */ +export interface OrganizationPermissionModel { + product?: OrganizationProductModel; + permissionGroup?: OrganizationPermissionGroupModel; +} + diff --git a/projects/ng-configcat-publicapi/src/model/organizationProductModel.ts b/projects/ng-configcat-publicapi/src/model/organizationProductModel.ts new file mode 100644 index 0000000..3d5f937 --- /dev/null +++ b/projects/ng-configcat-publicapi/src/model/organizationProductModel.ts @@ -0,0 +1,27 @@ +/** + * ConfigCat Public Management API + * **Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). 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. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-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. + */ + + +/** + * Describes the Member\'s Product. + */ +export interface OrganizationProductModel { + /** + * Identifier of the Member\'s Product. + */ + productId?: string; + /** + * Name of the Member\'s Product. + */ + name?: string | null; +} + diff --git a/projects/ng-configcat-publicapi/src/model/percentageOptionModel.ts b/projects/ng-configcat-publicapi/src/model/percentageOptionModel.ts index 66c66cf..29e3846 100644 --- a/projects/ng-configcat-publicapi/src/model/percentageOptionModel.ts +++ b/projects/ng-configcat-publicapi/src/model/percentageOptionModel.ts @@ -14,7 +14,7 @@ import { ValueModel } from './valueModel'; export interface PercentageOptionModel { /** - * The percentage. + * A number between 0 and 100 that represents a randomly allocated fraction of the users. */ percentage: number; value: ValueModel; diff --git a/projects/ng-configcat-publicapi/src/model/prerequisiteComparator.ts b/projects/ng-configcat-publicapi/src/model/prerequisiteComparator.ts index 1029f07..8f94ff7 100644 --- a/projects/ng-configcat-publicapi/src/model/prerequisiteComparator.ts +++ b/projects/ng-configcat-publicapi/src/model/prerequisiteComparator.ts @@ -12,7 +12,7 @@ /** - * The comparison operator used during the evaluation process. + * Prerequisite flag comparison operator used during the evaluation process. */ export type PrerequisiteComparator = 'equals' | 'doesNotEqual'; diff --git a/projects/ng-configcat-publicapi/src/model/settingFormulaModel.ts b/projects/ng-configcat-publicapi/src/model/settingFormulaModel.ts index c973be1..fa2237e 100644 --- a/projects/ng-configcat-publicapi/src/model/settingFormulaModel.ts +++ b/projects/ng-configcat-publicapi/src/model/settingFormulaModel.ts @@ -14,6 +14,7 @@ import { IntegrationLinkModel } from './integrationLinkModel'; import { ValueModel } from './valueModel'; import { SettingTagModel } from './settingTagModel'; import { EnvironmentModel } from './environmentModel'; +import { FeatureFlagLimitations } from './featureFlagLimitations'; import { TargetingRuleModel } from './targetingRuleModel'; import { SettingDataModel } from './settingDataModel'; @@ -50,8 +51,13 @@ export interface SettingFormulaModel { * The tags attached to the Feature Flag or Setting. */ settingTags?: Array | null; + /** + * List of Feature Flag and Setting IDs where the actual Feature Flag or Setting is prerequisite. + */ + settingIdsWherePrerequisite?: Array | null; config?: ConfigModel; environment?: EnvironmentModel; readOnly?: boolean; + featureFlagLimitations?: FeatureFlagLimitations; } diff --git a/projects/ng-configcat-publicapi/src/model/settingFormulaModelHaljson.ts b/projects/ng-configcat-publicapi/src/model/settingFormulaModelHaljson.ts index 767f1d0..c404a29 100644 --- a/projects/ng-configcat-publicapi/src/model/settingFormulaModelHaljson.ts +++ b/projects/ng-configcat-publicapi/src/model/settingFormulaModelHaljson.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ import { ValueModel } from './valueModel'; +import { FeatureFlagLimitations } from './featureFlagLimitations'; import { SettingFormulaModelHaljsonEmbedded } from './settingFormulaModelHaljsonEmbedded'; import { TargetingRuleModel } from './targetingRuleModel'; import { ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks } from './configSettingFormulasModelHaljsonEmbeddedEnvironmentLinks'; @@ -39,7 +40,12 @@ export interface SettingFormulaModelHaljson { */ lastUpdaterUserFullName?: string | null; _embedded?: SettingFormulaModelHaljsonEmbedded; + /** + * List of Feature Flag and Setting IDs where the actual Feature Flag or Setting is prerequisite. + */ + settingIdsWherePrerequisite?: Array | null; readOnly?: boolean; + featureFlagLimitations?: FeatureFlagLimitations; _links?: ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks; } diff --git a/projects/ng-configcat-publicapi/src/model/settingValueModel.ts b/projects/ng-configcat-publicapi/src/model/settingValueModel.ts index 0f32542..fa683e7 100644 --- a/projects/ng-configcat-publicapi/src/model/settingValueModel.ts +++ b/projects/ng-configcat-publicapi/src/model/settingValueModel.ts @@ -15,6 +15,7 @@ import { RolloutRuleModel } from './rolloutRuleModel'; import { SettingTagModel } from './settingTagModel'; import { EnvironmentModel } from './environmentModel'; import { RolloutPercentageItemModel } from './rolloutPercentageItemModel'; +import { FeatureFlagLimitations } from './featureFlagLimitations'; import { SettingDataModel } from './settingDataModel'; @@ -54,6 +55,7 @@ export interface SettingValueModel { settingTags?: Array | null; config?: ConfigModel; environment?: EnvironmentModel; + featureFlagLimitations?: FeatureFlagLimitations; readOnly?: boolean; } diff --git a/projects/ng-configcat-publicapi/src/model/settingValueModelHaljson.ts b/projects/ng-configcat-publicapi/src/model/settingValueModelHaljson.ts index d580184..96f09eb 100644 --- a/projects/ng-configcat-publicapi/src/model/settingValueModelHaljson.ts +++ b/projects/ng-configcat-publicapi/src/model/settingValueModelHaljson.ts @@ -11,6 +11,7 @@ */ import { RolloutRuleModel } from './rolloutRuleModel'; import { RolloutPercentageItemModel } from './rolloutPercentageItemModel'; +import { FeatureFlagLimitations } from './featureFlagLimitations'; import { SettingFormulaModelHaljsonEmbedded } from './settingFormulaModelHaljsonEmbedded'; import { ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks } from './configSettingFormulasModelHaljsonEmbeddedEnvironmentLinks'; @@ -41,6 +42,7 @@ export interface SettingValueModelHaljson { */ lastUpdaterUserFullName?: string | null; _embedded?: SettingFormulaModelHaljsonEmbedded; + featureFlagLimitations?: FeatureFlagLimitations; readOnly?: boolean; _links?: ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks; } diff --git a/projects/ng-configcat-publicapi/src/model/userComparator.ts b/projects/ng-configcat-publicapi/src/model/userComparator.ts index 3b74549..77e38bd 100644 --- a/projects/ng-configcat-publicapi/src/model/userComparator.ts +++ b/projects/ng-configcat-publicapi/src/model/userComparator.ts @@ -12,13 +12,15 @@ /** - * The comparison operator the evaluation process must use when it compares the given user attribute\'s value with the comparison value. + * The comparison operator which defines the relation between the comparison attribute and the comparison value. */ -export type UserComparator = 'contains' | 'doesNotContain' | 'semVerIsOneOf' | 'semVerIsNotOneOf' | 'semVerLess' | 'semVerLessOrEquals' | 'semVerGreater' | 'semVerGreaterOrEquals' | 'numberEquals' | 'numberDoesNotEqual' | 'numberLess' | 'numberLessOrEquals' | 'numberGreater' | 'numberGreaterOrEquals' | 'sensitiveIsOneOf' | 'sensitiveIsNotOneOf' | 'dateTimeBefore' | 'dateTimeAfter' | 'sensitiveTextEquals' | 'sensitiveTextDoesNotEqual' | 'sensitiveTextStartsWith' | 'sensitiveTextNotStartsWith' | 'sensitiveTextEndsWith' | 'sensitiveTextNotEndsWith' | 'arrayContains' | 'arrayDoesNotContain'; +export type UserComparator = 'isOneOf' | 'isNotOneOf' | 'containsAnyOf' | 'doesNotContainAnyOf' | 'semVerIsOneOf' | 'semVerIsNotOneOf' | 'semVerLess' | 'semVerLessOrEquals' | 'semVerGreater' | 'semVerGreaterOrEquals' | 'numberEquals' | 'numberDoesNotEqual' | 'numberLess' | 'numberLessOrEquals' | 'numberGreater' | 'numberGreaterOrEquals' | 'sensitiveIsOneOf' | 'sensitiveIsNotOneOf' | 'dateTimeBefore' | 'dateTimeAfter' | 'sensitiveTextEquals' | 'sensitiveTextDoesNotEqual' | 'sensitiveTextStartsWithAnyOf' | 'sensitiveTextNotStartsWithAnyOf' | 'sensitiveTextEndsWithAnyOf' | 'sensitiveTextNotEndsWithAnyOf' | 'sensitiveArrayContainsAnyOf' | 'sensitiveArrayDoesNotContainAnyOf' | 'textEquals' | 'textDoesNotEqual' | 'textStartsWithAnyOf' | 'textNotStartsWithAnyOf' | 'textEndsWithAnyOf' | 'textNotEndsWithAnyOf' | 'arrayContainsAnyOf' | 'arrayDoesNotContainAnyOf'; export const UserComparator = { - Contains: 'contains' as UserComparator, - DoesNotContain: 'doesNotContain' as UserComparator, + IsOneOf: 'isOneOf' as UserComparator, + IsNotOneOf: 'isNotOneOf' as UserComparator, + ContainsAnyOf: 'containsAnyOf' as UserComparator, + DoesNotContainAnyOf: 'doesNotContainAnyOf' as UserComparator, SemVerIsOneOf: 'semVerIsOneOf' as UserComparator, SemVerIsNotOneOf: 'semVerIsNotOneOf' as UserComparator, SemVerLess: 'semVerLess' as UserComparator, @@ -37,11 +39,19 @@ export const UserComparator = { DateTimeAfter: 'dateTimeAfter' as UserComparator, SensitiveTextEquals: 'sensitiveTextEquals' as UserComparator, SensitiveTextDoesNotEqual: 'sensitiveTextDoesNotEqual' as UserComparator, - SensitiveTextStartsWith: 'sensitiveTextStartsWith' as UserComparator, - SensitiveTextNotStartsWith: 'sensitiveTextNotStartsWith' as UserComparator, - SensitiveTextEndsWith: 'sensitiveTextEndsWith' as UserComparator, - SensitiveTextNotEndsWith: 'sensitiveTextNotEndsWith' as UserComparator, - ArrayContains: 'arrayContains' as UserComparator, - ArrayDoesNotContain: 'arrayDoesNotContain' as UserComparator + SensitiveTextStartsWithAnyOf: 'sensitiveTextStartsWithAnyOf' as UserComparator, + SensitiveTextNotStartsWithAnyOf: 'sensitiveTextNotStartsWithAnyOf' as UserComparator, + SensitiveTextEndsWithAnyOf: 'sensitiveTextEndsWithAnyOf' as UserComparator, + SensitiveTextNotEndsWithAnyOf: 'sensitiveTextNotEndsWithAnyOf' as UserComparator, + SensitiveArrayContainsAnyOf: 'sensitiveArrayContainsAnyOf' as UserComparator, + SensitiveArrayDoesNotContainAnyOf: 'sensitiveArrayDoesNotContainAnyOf' as UserComparator, + TextEquals: 'textEquals' as UserComparator, + TextDoesNotEqual: 'textDoesNotEqual' as UserComparator, + TextStartsWithAnyOf: 'textStartsWithAnyOf' as UserComparator, + TextNotStartsWithAnyOf: 'textNotStartsWithAnyOf' as UserComparator, + TextEndsWithAnyOf: 'textEndsWithAnyOf' as UserComparator, + TextNotEndsWithAnyOf: 'textNotEndsWithAnyOf' as UserComparator, + ArrayContainsAnyOf: 'arrayContainsAnyOf' as UserComparator, + ArrayDoesNotContainAnyOf: 'arrayDoesNotContainAnyOf' as UserComparator }; diff --git a/projects/ng-configcat-publicapi/src/model/userConditionModel.ts b/projects/ng-configcat-publicapi/src/model/userConditionModel.ts index 0ddd7d8..eda7f93 100644 --- a/projects/ng-configcat-publicapi/src/model/userConditionModel.ts +++ b/projects/ng-configcat-publicapi/src/model/userConditionModel.ts @@ -18,7 +18,7 @@ import { ComparisonValueModel } from './comparisonValueModel'; */ export interface UserConditionModel { /** - * The user\'s attribute the evaluation process must take into account. + * The User Object attribute that the condition is based on. Can be \"User ID\", \"Email\", \"Country\" or any custom attribute. */ comparisonAttribute: string; comparator: UserComparator; From 325d697d647b212e138f616d4dbc07874e52e86a Mon Sep 17 00:00:00 2001 From: Lali Date: Wed, 8 Nov 2023 11:59:40 +0100 Subject: [PATCH 2/2] version --- projects/ng-configcat-publicapi/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ng-configcat-publicapi/package.json b/projects/ng-configcat-publicapi/package.json index 1e2adcf..292dcab 100644 --- a/projects/ng-configcat-publicapi/package.json +++ b/projects/ng-configcat-publicapi/package.json @@ -1,6 +1,6 @@ { "name": "ng-configcat-publicapi", - "version": "4.1.2", + "version": "4.2.0", "peerDependencies": { "@angular/common": "^15.2.10", "@angular/core": "^15.2.10"