Skip to content

Commit

Permalink
Merge pull request #13 from configcat/regen20230810
Browse files Browse the repository at this point in the history
Regen
  • Loading branch information
laliconfigcat authored Aug 10, 2023
2 parents 0c7c4f7 + 980b7fc commit e2c2e52
Show file tree
Hide file tree
Showing 30 changed files with 55 additions and 475 deletions.
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.0.0",
"version": "4.1.0",
"peerDependencies": {
"@angular/common": "^15.2.9",
"@angular/core": "^15.2.9"
Expand Down
10 changes: 5 additions & 5 deletions projects/ng-configcat-publicapi/src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ model/createSettingInitialValues.ts
model/createTagModel.ts
model/deleteIntegrationLinkModel.ts
model/deleteRepositoryReportsRequest.ts
model/dependencyComparator.ts
model/dependentFlagConditionModel.ts
model/environmentAccessModel.ts
model/environmentAccessType.ts
model/environmentModel.ts
Expand All @@ -90,6 +88,8 @@ model/organizationModelHaljson.ts
model/percentageOptionModel.ts
model/permissionGroupModel.ts
model/permissionGroupModelHaljson.ts
model/prerequisiteComparator.ts
model/prerequisiteFlagConditionModel.ts
model/productModel.ts
model/productModelHaljson.ts
model/referenceLine.ts
Expand Down Expand Up @@ -124,9 +124,9 @@ model/tagModelHaljson.ts
model/targetingRuleModel.ts
model/updateConfigRequest.ts
model/updateEnvironmentModel.ts
model/updateEvaluationFormulaDto.ts
model/updateEvaluationFormulaWithIdDto.ts
model/updateEvaluationFormulasDto.ts
model/updateEvaluationFormulaModel.ts
model/updateEvaluationFormulaWithIdModel.ts
model/updateEvaluationFormulasModel.ts
model/updatePermissionGroupRequest.ts
model/updateProductRequest.ts
model/updateSegmentModel.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { SettingFormulaModel } from '../model/settingFormulaModel';
// @ts-ignore
import { SettingFormulaModelHaljson } from '../model/settingFormulaModelHaljson';
// @ts-ignore
import { UpdateEvaluationFormulaDto } from '../model/updateEvaluationFormulaDto';
import { UpdateEvaluationFormulaModel } from '../model/updateEvaluationFormulaModel';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
Expand Down Expand Up @@ -172,21 +172,21 @@ export class FeatureFlagSettingValuesUsingSDKKeyV2Service {
* Replace value
* This endpoint replaces the value and the Targeting Rules of a Feature Flag or Setting in a specified Environment identified by the <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://app.configcat.com/sdkkey\">SDK key</a> passed in the `X-CONFIGCAT-SDKKEY` header. Only the `defaultValue`, `targetingRules`, and `percentageEvaluationAttribute` fields are modifiable by this endpoint. **Important:** As this endpoint is doing a complete replace, it\'s important to set every other field that you don\'t want to change to its original state. Not listing one means that it will reset. For example: We have the following resource of a Feature Flag. ``` { \"defaultValue\": { \"boolValue\": false, }, \"targetingRules\": [ { \"conditions\": [ { \"userCondition\": { \"comparisonAttribute\": \"Email\", \"comparator\": \"sensitiveTextEquals\", \"comparisonValue\": { \"stringValue\": \"test@example.com\", } }, } ], \"percentageOptions\": [], \"value\": { \"boolValue\": true, } } ], } ``` If we send a replace request body as below: ``` { \"defaultValue\": { \"boolValue\": true, }, } ``` Then besides that the default served value is set to `true`, all the Targeting Rules are deleted. So we get a response like this: ``` { \"defaultValue\": { \"boolValue\": true, }, \"targetingRules\": [], } ```
* @param settingKeyOrId The key or id of the Setting.
* @param updateEvaluationFormulaDto
* @param updateEvaluationFormulaModel
* @param reason The reason note for the Audit Log if the Product\'s \"Config changes require a reason\" preference is turned on.
* @param xCONFIGCATSDKKEY The ConfigCat SDK Key. (https://app.configcat.com/sdkkey)
* @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 replaceSettingValueBySdkkeyV2(settingKeyOrId: string, updateEvaluationFormulaDto: UpdateEvaluationFormulaDto, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingFormulaModel>;
public replaceSettingValueBySdkkeyV2(settingKeyOrId: string, updateEvaluationFormulaDto: UpdateEvaluationFormulaDto, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingFormulaModel>>;
public replaceSettingValueBySdkkeyV2(settingKeyOrId: string, updateEvaluationFormulaDto: UpdateEvaluationFormulaDto, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingFormulaModel>>;
public replaceSettingValueBySdkkeyV2(settingKeyOrId: string, updateEvaluationFormulaDto: UpdateEvaluationFormulaDto, reason?: string, xCONFIGCATSDKKEY?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> {
public replaceSettingValueBySdkkeyV2(settingKeyOrId: string, updateEvaluationFormulaModel: UpdateEvaluationFormulaModel, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingFormulaModel>;
public replaceSettingValueBySdkkeyV2(settingKeyOrId: string, updateEvaluationFormulaModel: UpdateEvaluationFormulaModel, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingFormulaModel>>;
public replaceSettingValueBySdkkeyV2(settingKeyOrId: string, updateEvaluationFormulaModel: UpdateEvaluationFormulaModel, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingFormulaModel>>;
public replaceSettingValueBySdkkeyV2(settingKeyOrId: string, updateEvaluationFormulaModel: UpdateEvaluationFormulaModel, reason?: string, xCONFIGCATSDKKEY?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> {
if (settingKeyOrId === null || settingKeyOrId === undefined) {
throw new Error('Required parameter settingKeyOrId was null or undefined when calling replaceSettingValueBySdkkeyV2.');
}
if (updateEvaluationFormulaDto === null || updateEvaluationFormulaDto === undefined) {
throw new Error('Required parameter updateEvaluationFormulaDto was null or undefined when calling replaceSettingValueBySdkkeyV2.');
if (updateEvaluationFormulaModel === null || updateEvaluationFormulaModel === undefined) {
throw new Error('Required parameter updateEvaluationFormulaModel was null or undefined when calling replaceSettingValueBySdkkeyV2.');
}

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
Expand Down Expand Up @@ -252,7 +252,7 @@ export class FeatureFlagSettingValuesUsingSDKKeyV2Service {
return this.httpClient.request<SettingFormulaModel>('put', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: updateEvaluationFormulaDto,
body: updateEvaluationFormulaModel,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
Expand Down
Loading

0 comments on commit e2c2e52

Please sign in to comment.