@revxui/api-clients-ts 1.1.28 → 1.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +2 -2
  2. package/api/strategyController.service.d.ts +43 -0
  3. package/bundles/revxui-api-clients-ts.umd.js +105 -0
  4. package/bundles/revxui-api-clients-ts.umd.js.map +1 -1
  5. package/esm2015/api/strategyController.service.js +100 -1
  6. package/esm2015/model/advertiser.js +1 -1
  7. package/esm2015/model/advertiserPojo.js +1 -1
  8. package/esm2015/model/apiListResponseStrategyTargettingPerformanceData.js +2 -0
  9. package/esm2015/model/apiResponseObjectStrategyOptimizationDataResponse.js +2 -0
  10. package/esm2015/model/creativeSetDashboardMetric.js +1 -1
  11. package/esm2015/model/dashboardData.js +1 -1
  12. package/esm2015/model/dashboardMetrics.js +1 -1
  13. package/esm2015/model/models.js +6 -1
  14. package/esm2015/model/slicexData.js +1 -1
  15. package/esm2015/model/slicexGridData.js +1 -1
  16. package/esm2015/model/strategyOptBlockTargetingReq.js +13 -0
  17. package/esm2015/model/strategyOptimizationDataResponse.js +2 -0
  18. package/esm2015/model/strategyTargettingPerformanceData.js +13 -0
  19. package/fesm2015/revxui-api-clients-ts.js +123 -0
  20. package/fesm2015/revxui-api-clients-ts.js.map +1 -1
  21. package/model/advertiser.d.ts +2 -0
  22. package/model/advertiserPojo.d.ts +2 -0
  23. package/model/apiListResponseStrategyTargettingPerformanceData.d.ts +16 -0
  24. package/model/apiResponseObjectStrategyOptimizationDataResponse.d.ts +17 -0
  25. package/model/creativeSetDashboardMetric.d.ts +1 -0
  26. package/model/dashboardData.d.ts +1 -0
  27. package/model/dashboardMetrics.d.ts +1 -0
  28. package/model/models.d.ts +5 -0
  29. package/model/slicexData.d.ts +1 -0
  30. package/model/slicexGridData.d.ts +1 -0
  31. package/model/strategyOptBlockTargetingReq.d.ts +15 -0
  32. package/model/strategyOptimizationDataResponse.d.ts +17 -0
  33. package/model/strategyTargettingPerformanceData.d.ts +24 -0
  34. package/package.json +1 -1
  35. package/revxui-api-clients-ts.metadata.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @revxui/api-clients-ts@1.1.28
1
+ ## @revxui/api-clients-ts@1.1.31
2
2
 
3
3
  ### Building
4
4
 
@@ -19,7 +19,7 @@ Navigate to the folder of your consuming project and run one of next commands.
19
19
  _published:_
20
20
 
21
21
  ```
22
- npm install @revxui/api-clients-ts@1.1.28 --save
22
+ npm install @revxui/api-clients-ts@1.1.31 --save
23
23
  ```
24
24
 
25
25
  _without publishing (not recommended):_
@@ -13,12 +13,15 @@ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/commo
13
13
  import { Observable } from 'rxjs';
14
14
  import { ABTestDTO } from '../model/aBTestDTO';
15
15
  import { ApiListResponseABTestDTO } from '../model/apiListResponseABTestDTO';
16
+ import { ApiListResponseStrategyTargettingPerformanceData } from '../model/apiListResponseStrategyTargettingPerformanceData';
16
17
  import { ApiResponseObjectABTestDTO } from '../model/apiResponseObjectABTestDTO';
17
18
  import { ApiResponseObjectGeoListDTO } from '../model/apiResponseObjectGeoListDTO';
18
19
  import { ApiResponseObjectMaplongResponseMessage } from '../model/apiResponseObjectMaplongResponseMessage';
20
+ import { ApiResponseObjectResponseMessage } from '../model/apiResponseObjectResponseMessage';
19
21
  import { ApiResponseObjectSiteListDTO } from '../model/apiResponseObjectSiteListDTO';
20
22
  import { ApiResponseObjectStrategyCreativeAssociationResponseDTO } from '../model/apiResponseObjectStrategyCreativeAssociationResponseDTO';
21
23
  import { ApiResponseObjectStrategyDTO } from '../model/apiResponseObjectStrategyDTO';
24
+ import { ApiResponseObjectStrategyOptimizationDataResponse } from '../model/apiResponseObjectStrategyOptimizationDataResponse';
22
25
  import { ApiResponseObjectStrategyQuickEditDTO } from '../model/apiResponseObjectStrategyQuickEditDTO';
23
26
  import { ApiResponseObjectlong } from '../model/apiResponseObjectlong';
24
27
  import { ApiResponseObjectstring } from '../model/apiResponseObjectstring';
@@ -28,6 +31,7 @@ import { SiteListRequest } from '../model/siteListRequest';
28
31
  import { StrategyCreativeAssociationRequestDTO } from '../model/strategyCreativeAssociationRequestDTO';
29
32
  import { StrategyDTO } from '../model/strategyDTO';
30
33
  import { StrategyInlineDTO } from '../model/strategyInlineDTO';
34
+ import { StrategyOptBlockTargetingReq } from '../model/strategyOptBlockTargetingReq';
31
35
  import { StrategyQuickEditDTO } from '../model/strategyQuickEditDTO';
32
36
  import { Configuration } from '../configuration';
33
37
  export declare class StrategyControllerService {
@@ -127,6 +131,19 @@ export declare class StrategyControllerService {
127
131
  duplicateStrategyUsingPOST(dto: DuplicateStrategyRequestDTO, id: number, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectStrategyDTO>;
128
132
  duplicateStrategyUsingPOST(dto: DuplicateStrategyRequestDTO, id: number, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectStrategyDTO>>;
129
133
  duplicateStrategyUsingPOST(dto: DuplicateStrategyRequestDTO, id: number, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectStrategyDTO>>;
134
+ /**
135
+ * Api to get Startegy Optimization data by Id
136
+ *
137
+ * @param id id
138
+ * @param tableEntity tableEntity
139
+ * @param reqId request id
140
+ * @param token Auth Token
141
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
142
+ * @param reportProgress flag to report request and response progress.
143
+ */
144
+ fetchStrategyTargetingUsingGET(id: number, tableEntity: 'LICENSEE' | 'ADVERTISER' | 'CAMPAIGN' | 'STRATEGY' | 'CREATIVE' | 'AGGREGATOR' | 'AUDIENCE' | 'APP_AUDIENCE' | 'WEB_AUDIENCE' | 'DMP_AUDIENCE' | 'PIXEL' | 'SITE' | 'COUNTRY' | 'STATE' | 'CITY' | 'OS' | 'PRICING' | 'CURRENCY' | 'LANGUAGE' | 'TIMEZONE' | 'CATEGORY' | 'MMP' | 'CDTYPE' | 'CDSUBTYPE' | 'DEVICE' | 'DELIVERY_PRIORITY' | 'PACING_TYPE' | 'OS_VERSION' | 'DEVICE_MODEL' | 'DEVICE_BRAND' | 'SOURCE_TYPE' | 'PLATFORM' | 'APP_CATEGORY' | 'BROWSER' | 'CALL_TO_ACTION' | 'CREATIVE_SIZE' | 'DEAL_CATEGORY' | 'ADVERTISER_REGION' | 'CLICK_DESTINATION' | 'ADVERTISER_LOGO' | 'LOSS_REASON_CODES' | 'CREATIVE_SET' | 'USER_FREQUENCY_BUCKET_MAPPING' | 'CREATIVE_SET_TYPE' | 'AUDIENCE_UU_COUNT' | 'STRATEGY_TEMPLATE', reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectStrategyOptimizationDataResponse>;
145
+ fetchStrategyTargetingUsingGET(id: number, tableEntity: 'LICENSEE' | 'ADVERTISER' | 'CAMPAIGN' | 'STRATEGY' | 'CREATIVE' | 'AGGREGATOR' | 'AUDIENCE' | 'APP_AUDIENCE' | 'WEB_AUDIENCE' | 'DMP_AUDIENCE' | 'PIXEL' | 'SITE' | 'COUNTRY' | 'STATE' | 'CITY' | 'OS' | 'PRICING' | 'CURRENCY' | 'LANGUAGE' | 'TIMEZONE' | 'CATEGORY' | 'MMP' | 'CDTYPE' | 'CDSUBTYPE' | 'DEVICE' | 'DELIVERY_PRIORITY' | 'PACING_TYPE' | 'OS_VERSION' | 'DEVICE_MODEL' | 'DEVICE_BRAND' | 'SOURCE_TYPE' | 'PLATFORM' | 'APP_CATEGORY' | 'BROWSER' | 'CALL_TO_ACTION' | 'CREATIVE_SIZE' | 'DEAL_CATEGORY' | 'ADVERTISER_REGION' | 'CLICK_DESTINATION' | 'ADVERTISER_LOGO' | 'LOSS_REASON_CODES' | 'CREATIVE_SET' | 'USER_FREQUENCY_BUCKET_MAPPING' | 'CREATIVE_SET_TYPE' | 'AUDIENCE_UU_COUNT' | 'STRATEGY_TEMPLATE', reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectStrategyOptimizationDataResponse>>;
146
+ fetchStrategyTargetingUsingGET(id: number, tableEntity: 'LICENSEE' | 'ADVERTISER' | 'CAMPAIGN' | 'STRATEGY' | 'CREATIVE' | 'AGGREGATOR' | 'AUDIENCE' | 'APP_AUDIENCE' | 'WEB_AUDIENCE' | 'DMP_AUDIENCE' | 'PIXEL' | 'SITE' | 'COUNTRY' | 'STATE' | 'CITY' | 'OS' | 'PRICING' | 'CURRENCY' | 'LANGUAGE' | 'TIMEZONE' | 'CATEGORY' | 'MMP' | 'CDTYPE' | 'CDSUBTYPE' | 'DEVICE' | 'DELIVERY_PRIORITY' | 'PACING_TYPE' | 'OS_VERSION' | 'DEVICE_MODEL' | 'DEVICE_BRAND' | 'SOURCE_TYPE' | 'PLATFORM' | 'APP_CATEGORY' | 'BROWSER' | 'CALL_TO_ACTION' | 'CREATIVE_SIZE' | 'DEAL_CATEGORY' | 'ADVERTISER_REGION' | 'CLICK_DESTINATION' | 'ADVERTISER_LOGO' | 'LOSS_REASON_CODES' | 'CREATIVE_SET' | 'USER_FREQUENCY_BUCKET_MAPPING' | 'CREATIVE_SET_TYPE' | 'AUDIENCE_UU_COUNT' | 'STRATEGY_TEMPLATE', reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectStrategyOptimizationDataResponse>>;
130
147
  /**
131
148
  * API to get an AB Test experiment details
132
149
  *
@@ -175,6 +192,19 @@ export declare class StrategyControllerService {
175
192
  getStrategyQuickEditDetailsUsingGET(id: number, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectStrategyQuickEditDTO>;
176
193
  getStrategyQuickEditDetailsUsingGET(id: number, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectStrategyQuickEditDTO>>;
177
194
  getStrategyQuickEditDetailsUsingGET(id: number, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectStrategyQuickEditDTO>>;
195
+ /**
196
+ * Api to get Startegy Optimization data by Id
197
+ *
198
+ * @param id id
199
+ * @param tableEntity tableEntity
200
+ * @param reqId request id
201
+ * @param token Auth Token
202
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
203
+ * @param reportProgress flag to report request and response progress.
204
+ */
205
+ getStrategyTargetingRecommendationUsingGET(id: number, tableEntity: 'LICENSEE' | 'ADVERTISER' | 'CAMPAIGN' | 'STRATEGY' | 'CREATIVE' | 'AGGREGATOR' | 'AUDIENCE' | 'APP_AUDIENCE' | 'WEB_AUDIENCE' | 'DMP_AUDIENCE' | 'PIXEL' | 'SITE' | 'COUNTRY' | 'STATE' | 'CITY' | 'OS' | 'PRICING' | 'CURRENCY' | 'LANGUAGE' | 'TIMEZONE' | 'CATEGORY' | 'MMP' | 'CDTYPE' | 'CDSUBTYPE' | 'DEVICE' | 'DELIVERY_PRIORITY' | 'PACING_TYPE' | 'OS_VERSION' | 'DEVICE_MODEL' | 'DEVICE_BRAND' | 'SOURCE_TYPE' | 'PLATFORM' | 'APP_CATEGORY' | 'BROWSER' | 'CALL_TO_ACTION' | 'CREATIVE_SIZE' | 'DEAL_CATEGORY' | 'ADVERTISER_REGION' | 'CLICK_DESTINATION' | 'ADVERTISER_LOGO' | 'LOSS_REASON_CODES' | 'CREATIVE_SET' | 'USER_FREQUENCY_BUCKET_MAPPING' | 'CREATIVE_SET_TYPE' | 'AUDIENCE_UU_COUNT' | 'STRATEGY_TEMPLATE', reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiListResponseStrategyTargettingPerformanceData>;
206
+ getStrategyTargetingRecommendationUsingGET(id: number, tableEntity: 'LICENSEE' | 'ADVERTISER' | 'CAMPAIGN' | 'STRATEGY' | 'CREATIVE' | 'AGGREGATOR' | 'AUDIENCE' | 'APP_AUDIENCE' | 'WEB_AUDIENCE' | 'DMP_AUDIENCE' | 'PIXEL' | 'SITE' | 'COUNTRY' | 'STATE' | 'CITY' | 'OS' | 'PRICING' | 'CURRENCY' | 'LANGUAGE' | 'TIMEZONE' | 'CATEGORY' | 'MMP' | 'CDTYPE' | 'CDSUBTYPE' | 'DEVICE' | 'DELIVERY_PRIORITY' | 'PACING_TYPE' | 'OS_VERSION' | 'DEVICE_MODEL' | 'DEVICE_BRAND' | 'SOURCE_TYPE' | 'PLATFORM' | 'APP_CATEGORY' | 'BROWSER' | 'CALL_TO_ACTION' | 'CREATIVE_SIZE' | 'DEAL_CATEGORY' | 'ADVERTISER_REGION' | 'CLICK_DESTINATION' | 'ADVERTISER_LOGO' | 'LOSS_REASON_CODES' | 'CREATIVE_SET' | 'USER_FREQUENCY_BUCKET_MAPPING' | 'CREATIVE_SET_TYPE' | 'AUDIENCE_UU_COUNT' | 'STRATEGY_TEMPLATE', reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiListResponseStrategyTargettingPerformanceData>>;
207
+ getStrategyTargetingRecommendationUsingGET(id: number, tableEntity: 'LICENSEE' | 'ADVERTISER' | 'CAMPAIGN' | 'STRATEGY' | 'CREATIVE' | 'AGGREGATOR' | 'AUDIENCE' | 'APP_AUDIENCE' | 'WEB_AUDIENCE' | 'DMP_AUDIENCE' | 'PIXEL' | 'SITE' | 'COUNTRY' | 'STATE' | 'CITY' | 'OS' | 'PRICING' | 'CURRENCY' | 'LANGUAGE' | 'TIMEZONE' | 'CATEGORY' | 'MMP' | 'CDTYPE' | 'CDSUBTYPE' | 'DEVICE' | 'DELIVERY_PRIORITY' | 'PACING_TYPE' | 'OS_VERSION' | 'DEVICE_MODEL' | 'DEVICE_BRAND' | 'SOURCE_TYPE' | 'PLATFORM' | 'APP_CATEGORY' | 'BROWSER' | 'CALL_TO_ACTION' | 'CREATIVE_SIZE' | 'DEAL_CATEGORY' | 'ADVERTISER_REGION' | 'CLICK_DESTINATION' | 'ADVERTISER_LOGO' | 'LOSS_REASON_CODES' | 'CREATIVE_SET' | 'USER_FREQUENCY_BUCKET_MAPPING' | 'CREATIVE_SET_TYPE' | 'AUDIENCE_UU_COUNT' | 'STRATEGY_TEMPLATE', reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiListResponseStrategyTargettingPerformanceData>>;
178
208
  /**
179
209
  * Api for strategy in-line edit
180
210
  *
@@ -214,6 +244,19 @@ export declare class StrategyControllerService {
214
244
  saveStrategyQuickEditDetailsUsingPOST(id: number, strategyQuickEditDTO: StrategyQuickEditDTO, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectStrategyDTO>;
215
245
  saveStrategyQuickEditDetailsUsingPOST(id: number, strategyQuickEditDTO: StrategyQuickEditDTO, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectStrategyDTO>>;
216
246
  saveStrategyQuickEditDetailsUsingPOST(id: number, strategyQuickEditDTO: StrategyQuickEditDTO, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectStrategyDTO>>;
247
+ /**
248
+ * API to do strategy optimization
249
+ *
250
+ * @param id id
251
+ * @param req req
252
+ * @param reqId request id
253
+ * @param token Auth Token
254
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
255
+ * @param reportProgress flag to report request and response progress.
256
+ */
257
+ strategyOptimizationUsingPOST(id: number, req: StrategyOptBlockTargetingReq, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectResponseMessage>;
258
+ strategyOptimizationUsingPOST(id: number, req: StrategyOptBlockTargetingReq, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectResponseMessage>>;
259
+ strategyOptimizationUsingPOST(id: number, req: StrategyOptBlockTargetingReq, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectResponseMessage>>;
217
260
  /**
218
261
  * API to update AB Test experiment
219
262
  *
@@ -6882,6 +6882,39 @@
6882
6882
  reportProgress: reportProgress
6883
6883
  });
6884
6884
  };
6885
+ StrategyControllerService.prototype.fetchStrategyTargetingUsingGET = function (id, tableEntity, reqId, token, observe, reportProgress) {
6886
+ if (observe === void 0) { observe = 'body'; }
6887
+ if (reportProgress === void 0) { reportProgress = false; }
6888
+ if (id === null || id === undefined) {
6889
+ throw new Error('Required parameter id was null or undefined when calling fetchStrategyTargetingUsingGET.');
6890
+ }
6891
+ if (tableEntity === null || tableEntity === undefined) {
6892
+ throw new Error('Required parameter tableEntity was null or undefined when calling fetchStrategyTargetingUsingGET.');
6893
+ }
6894
+ var headers = this.defaultHeaders;
6895
+ if (reqId !== undefined && reqId !== null) {
6896
+ headers = headers.set('reqId', String(reqId));
6897
+ }
6898
+ if (token !== undefined && token !== null) {
6899
+ headers = headers.set('token', String(token));
6900
+ }
6901
+ // to determine the Accept header
6902
+ var httpHeaderAccepts = [
6903
+ '*/*'
6904
+ ];
6905
+ var httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
6906
+ if (httpHeaderAcceptSelected != undefined) {
6907
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
6908
+ }
6909
+ // to determine the Content-Type header
6910
+ var consumes = [];
6911
+ return this.httpClient.get(this.basePath + "/v2/api/strategies/" + encodeURIComponent(String(id)) + "/fetch/" + encodeURIComponent(String(tableEntity)), {
6912
+ withCredentials: this.configuration.withCredentials,
6913
+ headers: headers,
6914
+ observe: observe,
6915
+ reportProgress: reportProgress
6916
+ });
6917
+ };
6885
6918
  StrategyControllerService.prototype.getABTestExperimentUsingGET = function (id, reqId, token, observe, reportProgress) {
6886
6919
  if (observe === void 0) { observe = 'body'; }
6887
6920
  if (reportProgress === void 0) { reportProgress = false; }
@@ -7004,6 +7037,39 @@
7004
7037
  reportProgress: reportProgress
7005
7038
  });
7006
7039
  };
7040
+ StrategyControllerService.prototype.getStrategyTargetingRecommendationUsingGET = function (id, tableEntity, reqId, token, observe, reportProgress) {
7041
+ if (observe === void 0) { observe = 'body'; }
7042
+ if (reportProgress === void 0) { reportProgress = false; }
7043
+ if (id === null || id === undefined) {
7044
+ throw new Error('Required parameter id was null or undefined when calling getStrategyTargetingRecommendationUsingGET.');
7045
+ }
7046
+ if (tableEntity === null || tableEntity === undefined) {
7047
+ throw new Error('Required parameter tableEntity was null or undefined when calling getStrategyTargetingRecommendationUsingGET.');
7048
+ }
7049
+ var headers = this.defaultHeaders;
7050
+ if (reqId !== undefined && reqId !== null) {
7051
+ headers = headers.set('reqId', String(reqId));
7052
+ }
7053
+ if (token !== undefined && token !== null) {
7054
+ headers = headers.set('token', String(token));
7055
+ }
7056
+ // to determine the Accept header
7057
+ var httpHeaderAccepts = [
7058
+ '*/*'
7059
+ ];
7060
+ var httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
7061
+ if (httpHeaderAcceptSelected != undefined) {
7062
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
7063
+ }
7064
+ // to determine the Content-Type header
7065
+ var consumes = [];
7066
+ return this.httpClient.get(this.basePath + "/v2/api/strategies/" + encodeURIComponent(String(id)) + "/recommendation/" + encodeURIComponent(String(tableEntity)), {
7067
+ withCredentials: this.configuration.withCredentials,
7068
+ headers: headers,
7069
+ observe: observe,
7070
+ reportProgress: reportProgress
7071
+ });
7072
+ };
7007
7073
  StrategyControllerService.prototype.inlineEditStrategyUsingPOST = function (id, strategyInlineDTO, reqId, token, observe, reportProgress) {
7008
7074
  if (observe === void 0) { observe = 'body'; }
7009
7075
  if (reportProgress === void 0) { reportProgress = false; }
@@ -7115,6 +7181,45 @@
7115
7181
  reportProgress: reportProgress
7116
7182
  });
7117
7183
  };
7184
+ StrategyControllerService.prototype.strategyOptimizationUsingPOST = function (id, req, reqId, token, observe, reportProgress) {
7185
+ if (observe === void 0) { observe = 'body'; }
7186
+ if (reportProgress === void 0) { reportProgress = false; }
7187
+ if (id === null || id === undefined) {
7188
+ throw new Error('Required parameter id was null or undefined when calling strategyOptimizationUsingPOST.');
7189
+ }
7190
+ if (req === null || req === undefined) {
7191
+ throw new Error('Required parameter req was null or undefined when calling strategyOptimizationUsingPOST.');
7192
+ }
7193
+ var headers = this.defaultHeaders;
7194
+ if (reqId !== undefined && reqId !== null) {
7195
+ headers = headers.set('reqId', String(reqId));
7196
+ }
7197
+ if (token !== undefined && token !== null) {
7198
+ headers = headers.set('token', String(token));
7199
+ }
7200
+ // to determine the Accept header
7201
+ var httpHeaderAccepts = [
7202
+ 'application/json'
7203
+ ];
7204
+ var httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
7205
+ if (httpHeaderAcceptSelected != undefined) {
7206
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
7207
+ }
7208
+ // to determine the Content-Type header
7209
+ var consumes = [
7210
+ 'application/json'
7211
+ ];
7212
+ var httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
7213
+ if (httpContentTypeSelected != undefined) {
7214
+ headers = headers.set('Content-Type', httpContentTypeSelected);
7215
+ }
7216
+ return this.httpClient.post(this.basePath + "/v2/api/strategies/optimization/" + encodeURIComponent(String(id)), req, {
7217
+ withCredentials: this.configuration.withCredentials,
7218
+ headers: headers,
7219
+ observe: observe,
7220
+ reportProgress: reportProgress
7221
+ });
7222
+ };
7118
7223
  StrategyControllerService.prototype.updateABTestExperimentStatusUsingPOST = function (id, status, reqId, token, observe, reportProgress) {
7119
7224
  if (observe === void 0) { observe = 'body'; }
7120
7225
  if (reportProgress === void 0) { reportProgress = false; }