Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate client based on latest API. #16

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/ng-configcat-publicapi/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
70 changes: 70 additions & 0 deletions projects/ng-configcat-publicapi/src/api/members.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<Array<UserModel>>;
public getOrganizationMembers(organizationId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<UserModel>>>;
Expand Down Expand Up @@ -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 &#x60;organizationId&#x60; parameter. The results may vary based on the access level of the user who calls the endpoint: - When it\&#39;s called with Organization Admin privileges, the result will contain each member in the Organization. - When it\&#39;s called without Organization Admin privileges, the result will contain each Organization Admin along with members of those products where the caller has &#x60;Team members and permission groups&#x60; (&#x60;canManageMembers&#x60;) 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<OrganizationMembersModel>;
public getOrganizationMembersV2(organizationId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<OrganizationMembersModel>>;
public getOrganizationMembersV2(organizationId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<OrganizationMembersModel>>;
public getOrganizationMembersV2(organizationId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> {
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<OrganizationMembersModel>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>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 &#x60;productId&#x60; parameter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions projects/ng-configcat-publicapi/src/model/auditLogType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@ export interface ConfigSettingFormulaModel {
* The tags attached to the Feature Flag or Setting.
*/
settingTags?: Array<SettingTagModel> | null;
/**
* List of Feature Flag and Setting IDs where the actual Feature Flag or Setting is prerequisite.
*/
settingIdsWherePrerequisite?: Array<number> | null;
}

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import { ConfigModel } from './configModel';
import { ConfigSettingFormulaModel } from './configSettingFormulaModel';
import { EnvironmentModel } from './environmentModel';
import { FeatureFlagLimitations } from './featureFlagLimitations';


export interface ConfigSettingFormulasModel {
Expand All @@ -22,5 +23,6 @@ export interface ConfigSettingFormulasModel {
* Evaluation descriptors of each updated Feature Flag and Setting.
*/
settingFormulas?: Array<ConfigSettingFormulaModel> | null;
featureFlagLimitations?: FeatureFlagLimitations;
}

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/
import { ConfigSettingFormulasModelHaljsonEmbedded } from './configSettingFormulasModelHaljsonEmbedded';
import { ConfigSettingFormulaModel } from './configSettingFormulaModel';
import { FeatureFlagLimitations } from './featureFlagLimitations';
import { ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks } from './configSettingFormulasModelHaljsonEmbeddedEnvironmentLinks';


Expand All @@ -21,6 +22,7 @@ export interface ConfigSettingFormulasModelHaljson {
* Evaluation descriptors of each updated Feature Flag and Setting.
*/
settingFormulas?: Array<ConfigSettingFormulaModel> | null;
featureFlagLimitations?: FeatureFlagLimitations;
_links?: ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks;
}

Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
import { ConfigModel } from './configModel';
import { ConfigSettingValueModel } from './configSettingValueModel';
import { EnvironmentModel } from './environmentModel';
import { FeatureFlagLimitations } from './featureFlagLimitations';


export interface ConfigSettingValuesModel {
config?: ConfigModel;
environment?: EnvironmentModel;
readOnly?: boolean;
settingValues?: Array<ConfigSettingValueModel> | null;
featureFlagLimitations?: FeatureFlagLimitations;
}

Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
*/
import { ConfigSettingFormulasModelHaljsonEmbedded } from './configSettingFormulasModelHaljsonEmbedded';
import { ConfigSettingValueModel } from './configSettingValueModel';
import { FeatureFlagLimitations } from './featureFlagLimitations';
import { ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks } from './configSettingFormulasModelHaljsonEmbeddedEnvironmentLinks';


export interface ConfigSettingValuesModelHaljson {
_embedded?: ConfigSettingFormulasModelHaljsonEmbedded;
readOnly?: boolean;
settingValues?: Array<ConfigSettingValueModel> | null;
featureFlagLimitations?: FeatureFlagLimitations;
_links?: ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks;
}

Original file line number Diff line number Diff line change
@@ -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). <!-- ReDoc-Inject: <security-definitions> --> # 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: [email protected]
*
* 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;
}

7 changes: 7 additions & 0 deletions projects/ng-configcat-publicapi/src/model/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand Down
Loading
Loading