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 based on live api #21

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
25 changes: 23 additions & 2 deletions projects/ng-configcat-publicapi/src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ api/featureFlagSettingValuesUsingSDKKeyV2.service.ts
api/featureFlagSettingValuesV2.service.ts
api/featureFlagsSettings.service.ts
api/integrationLinks.service.ts
api/integrations.service.ts
api/me.service.ts
api/members.service.ts
api/organizations.service.ts
Expand All @@ -20,19 +21,18 @@ api/products.service.ts
api/sDKKeys.service.ts
api/segments.service.ts
api/tags.service.ts
api/webhooks.service.ts
configuration.ts
encoder.ts
git_push.sh
index.ts
model/accessType.ts
model/addOrUpdateIntegrationLinkModel.ts
model/addOrUpdateJiraIntegrationLinkModel.ts
model/addUserToGroupRequest.ts
model/auditLogItemModel.ts
model/auditLogType.ts
model/codeReferenceModel.ts
model/codeReferenceRequest.ts
model/codeReferencesForSettingModel.ts
model/comparisonValueListModel.ts
model/comparisonValueModel.ts
model/conditionModel.ts
Expand All @@ -44,6 +44,7 @@ model/configSettingValuesModel.ts
model/connectRequest.ts
model/createConfigRequest.ts
model/createEnvironmentModel.ts
model/createIntegrationModel.ts
model/createOrUpdateEnvironmentAccessModel.ts
model/createPermissionGroupRequest.ts
model/createProductRequest.ts
Expand All @@ -63,13 +64,20 @@ model/integrationLinkDetail.ts
model/integrationLinkDetailsModel.ts
model/integrationLinkModel.ts
model/integrationLinkType.ts
model/integrationModel.ts
model/integrationType.ts
model/integrationsModel.ts
model/invitationModel.ts
model/inviteMembersRequest.ts
model/jsonPatchOperation.ts
model/keyGenerationMode.ts
model/meModel.ts
model/memberModel.ts
model/models.ts
model/modifyIntegrationRequest.ts
model/operationType.ts
model/organizationAdminModel.ts
model/organizationInvitationModel.ts
model/organizationMemberModel.ts
model/organizationMembersModel.ts
model/organizationModel.ts
Expand All @@ -78,11 +86,14 @@ model/organizationPermissionModel.ts
model/organizationProductModel.ts
model/percentageOptionModel.ts
model/permissionGroupModel.ts
model/preferencesModel.ts
model/prerequisiteComparator.ts
model/prerequisiteFlagConditionModel.ts
model/productModel.ts
model/reasonRequiredEnvironmentModel.ts
model/referenceLine.ts
model/referenceLines.ts
model/replaceSettingModel.ts
model/rolloutPercentageItemModel.ts
model/rolloutRuleComparator.ts
model/rolloutRuleModel.ts
Expand All @@ -104,8 +115,11 @@ model/updateEnvironmentModel.ts
model/updateEvaluationFormulaModel.ts
model/updateEvaluationFormulaWithIdModel.ts
model/updateEvaluationFormulasModel.ts
model/updateMemberPermissionsRequest.ts
model/updatePermissionGroupRequest.ts
model/updatePreferencesRequest.ts
model/updateProductRequest.ts
model/updateReasonRequiredEnvironmentModel.ts
model/updateSegmentModel.ts
model/updateSettingValueModel.ts
model/updateSettingValueWithSettingIdModel.ts
Expand All @@ -115,5 +129,12 @@ model/userComparator.ts
model/userConditionModel.ts
model/userModel.ts
model/valueModel.ts
model/webHookHttpMethod.ts
model/webHookRequest.ts
model/webhookConfig.ts
model/webhookEnvironment.ts
model/webhookHeaderModel.ts
model/webhookModel.ts
model/webhookSigningKeysModel.ts
param.ts
variables.ts
6 changes: 5 additions & 1 deletion projects/ng-configcat-publicapi/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export * from './featureFlagsSettings.service';
import { FeatureFlagsSettingsService } from './featureFlagsSettings.service';
export * from './integrationLinks.service';
import { IntegrationLinksService } from './integrationLinks.service';
export * from './integrations.service';
import { IntegrationsService } from './integrations.service';
export * from './me.service';
import { MeService } from './me.service';
export * from './members.service';
Expand All @@ -34,4 +36,6 @@ export * from './segments.service';
import { SegmentsService } from './segments.service';
export * from './tags.service';
import { TagsService } from './tags.service';
export const APIS = [AuditLogsService, CodeReferencesService, ConfigsService, EnvironmentsService, FeatureFlagSettingValuesService, FeatureFlagSettingValuesUsingSDKKeyService, FeatureFlagSettingValuesUsingSDKKeyV2Service, FeatureFlagSettingValuesV2Service, FeatureFlagsSettingsService, IntegrationLinksService, MeService, MembersService, OrganizationsService, PermissionGroupsService, ProductsService, SDKKeysService, SegmentsService, TagsService];
export * from './webhooks.service';
import { WebhooksService } from './webhooks.service';
export const APIS = [AuditLogsService, CodeReferencesService, ConfigsService, EnvironmentsService, FeatureFlagSettingValuesService, FeatureFlagSettingValuesUsingSDKKeyService, FeatureFlagSettingValuesUsingSDKKeyV2Service, FeatureFlagSettingValuesV2Service, FeatureFlagsSettingsService, IntegrationLinksService, IntegrationsService, MeService, MembersService, OrganizationsService, PermissionGroupsService, ProductsService, SDKKeysService, SegmentsService, TagsService, WebhooksService];
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* 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://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 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). <!-- 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]
Expand Down Expand Up @@ -36,7 +36,7 @@ import { Configuration } from '../configurat
})
export class AuditLogsService {

protected basePath = 'https://test-api.configcat.com';
protected basePath = 'https://api.configcat.com';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* 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://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON 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 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). <!-- 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]
Expand All @@ -23,8 +23,6 @@ import { CodeReferenceModel } from '../model/codeReferenceModel';
// @ts-ignore
import { CodeReferenceRequest } from '../model/codeReferenceRequest';
// @ts-ignore
import { CodeReferencesForSettingModel } from '../model/codeReferencesForSettingModel';
// @ts-ignore
import { DeleteRepositoryReportsRequest } from '../model/deleteRepositoryReportsRequest';

// @ts-ignore
Expand All @@ -38,7 +36,7 @@ import { Configuration } from '../configurat
})
export class CodeReferencesService {

protected basePath = 'https://test-api.configcat.com';
protected basePath = 'https://api.configcat.com';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;
Expand Down Expand Up @@ -263,78 +261,6 @@ export class CodeReferencesService {
);
}

/**
* Get References in Config
*
* @param configId The identifier of the Config.
* @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 v1ConfigsConfigIdCodeReferencesGet(configId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<CodeReferencesForSettingModel>>;
public v1ConfigsConfigIdCodeReferencesGet(configId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<CodeReferencesForSettingModel>>>;
public v1ConfigsConfigIdCodeReferencesGet(configId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<CodeReferencesForSettingModel>>>;
public v1ConfigsConfigIdCodeReferencesGet(configId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (configId === null || configId === undefined) {
throw new Error('Required parameter configId was null or undefined when calling v1ConfigsConfigIdCodeReferencesGet.');
}

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'
];
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 localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


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 = `/v1/configs/${this.configuration.encodeParam({name: "configId", value: configId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/code-references`;
return this.httpClient.request<Array<CodeReferencesForSettingModel>>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Get References for Feature Flag or Setting
*
Expand Down
Loading