@agravity/private 9.4.0 → 10.0.0
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.
- package/.openapi-generator/FILES +11 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +97 -142
- package/api/aIOperations.agravity.ts +878 -0
- package/api/api.ts +9 -3
- package/api/assetIconRuleManagement.agravity.ts +59 -190
- package/api/assetManagement.agravity.ts +118 -355
- package/api/assetOperations.agravity.ts +290 -917
- package/api/assetPublishing.agravity.ts +107 -288
- package/api/assetRelationManagement.agravity.ts +61 -196
- package/api/assetRelationTypeManagement.agravity.ts +70 -215
- package/api/assetVersioning.agravity.ts +105 -300
- package/api/authenticationManagement.agravity.ts +137 -392
- package/api/collectionManagement.agravity.ts +217 -376
- package/api/collectionShareManagement.agravity.ts +59 -190
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
- package/api/collectionTypeManagement.agravity.ts +91 -270
- package/api/commentsManagement.agravity.ts +48 -157
- package/api/configurationManagement.agravity.ts +53 -180
- package/api/dashboardWidgetManagement.agravity.ts +56 -181
- package/api/dataImportExportManagement.agravity.ts +58 -203
- package/api/downloadFormatManagement.agravity.ts +70 -215
- package/api/downloadZip.agravity.ts +37 -132
- package/api/generalManagement.agravity.ts +64 -229
- package/api/helperTools.agravity.ts +214 -404
- package/api/historyEntryManagement.agravity.ts +16 -85
- package/api/iccProfileManagement.agravity.ts +11 -78
- package/api/listBlobs.agravity.ts +18 -99
- package/api/listQueues.agravity.ts +11 -78
- package/api/listTables.agravity.ts +11 -78
- package/api/notificationManagement.agravity.ts +267 -0
- package/api/permissionsManagement.agravity.ts +44 -153
- package/api/portalManagement.agravity.ts +88 -253
- package/api/portalsUsersManagement.agravity.ts +55 -178
- package/api/publishing.agravity.ts +13 -84
- package/api/quickshareManagement.agravity.ts +67 -214
- package/api/savedSearchManagement.agravity.ts +37 -140
- package/api/searchManagement.agravity.ts +102 -327
- package/api/searchSettingsOperations.agravity.ts +187 -0
- package/api/secureUpload.agravity.ts +68 -209
- package/api/signalRConnectionManagement.agravity.ts +26 -109
- package/api/staticDefinedListManagement.agravity.ts +60 -193
- package/api/stockImport.agravity.ts +31 -122
- package/api/structureImport.agravity.ts +11 -78
- package/api/translationManagement.agravity.ts +86 -229
- package/api/webAppData.agravity.ts +48 -157
- package/api/widgetLayoutManagement.agravity.ts +22 -103
- package/api/wordpressManagement.agravity.ts +34 -131
- package/api/workspaceManagement.agravity.ts +77 -236
- package/api.base.service.ts +78 -0
- package/configuration.ts +33 -17
- package/index.ts +1 -0
- package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
- package/model/aiFieldGeneration.agravity.ts +1 -5
- package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
- package/model/aiSettings.agravity.ts +4 -3
- package/model/aiTypeSettings.agravity.ts +17 -0
- package/model/asset.agravity.ts +6 -6
- package/model/assetBlob.agravity.ts +15 -15
- package/model/assetIconRule.agravity.ts +1 -1
- package/model/assetRelationType.agravity.ts +1 -1
- package/model/azureIdentity.agravity.ts +7 -7
- package/model/collTypeItem.agravity.ts +1 -1
- package/model/collTypeItemBlueprint.agravity.ts +1 -1
- package/model/collection.agravity.ts +6 -6
- package/model/collectionType.agravity.ts +6 -6
- package/model/collectionUDL.agravity.ts +1 -1
- package/model/dashboardWidget.agravity.ts +1 -1
- package/model/downloadFormat.agravity.ts +1 -1
- package/model/downloadZipRequest.agravity.ts +6 -6
- package/model/downloadZipStatus.agravity.ts +6 -6
- package/model/entityIdName.agravity.ts +1 -1
- package/model/entityTranslations.agravity.ts +1 -1
- package/model/groupAllAppData.agravity.ts +1 -1
- package/model/historyEntry.agravity.ts +16 -30
- package/model/models.ts +5 -2
- package/model/notificationSettingDto.agravity.ts +18 -0
- package/model/permissionChange.agravity.ts +7 -7
- package/model/permissionEntity.agravity.ts +5 -5
- package/model/portalAuthentication.agravity.ts +7 -7
- package/model/portalTheme.agravity.ts +1 -1
- package/model/publishedAsset.agravity.ts +1 -1
- package/model/savedSearch.agravity.ts +1 -1
- package/model/searchSettings.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +1 -1
- package/model/uiTutorials.agravity.ts +4 -4
- package/model/whereParam.agravity.ts +17 -17
- package/model/workspace.agravity.ts +1 -1
- package/package.json +5 -4
- package/provide-api.ts +15 -0
- package/tsconfig.json +2 -0
- package/api/aISettingsManagement.agravity.ts +0 -264
|
@@ -26,6 +26,7 @@ import { PublishedAsset } from '../model/publishedAsset.agravity';
|
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
28
28
|
import { AgravityConfiguration } from '../configuration';
|
|
29
|
+
import { BaseService } from '../api.base.service';
|
|
29
30
|
|
|
30
31
|
export interface GetPublishedAssetByIdRequestParams {
|
|
31
32
|
/** The ID of the asset. */
|
|
@@ -95,67 +96,13 @@ export interface HttpPublishedAssetsUpdateByIdRequestParams {
|
|
|
95
96
|
@Injectable({
|
|
96
97
|
providedIn: 'root'
|
|
97
98
|
})
|
|
98
|
-
export class AssetPublishingService {
|
|
99
|
-
protected basePath = 'http://localhost:7071/api';
|
|
100
|
-
public defaultHeaders = new HttpHeaders();
|
|
101
|
-
public configuration = new AgravityConfiguration();
|
|
102
|
-
public encoder: HttpParameterCodec;
|
|
103
|
-
|
|
99
|
+
export class AssetPublishingService extends BaseService {
|
|
104
100
|
constructor(
|
|
105
101
|
protected httpClient: HttpClient,
|
|
106
102
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
107
|
-
@Optional() configuration
|
|
103
|
+
@Optional() configuration?: AgravityConfiguration
|
|
108
104
|
) {
|
|
109
|
-
|
|
110
|
-
this.configuration = configuration;
|
|
111
|
-
}
|
|
112
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
113
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
114
|
-
if (firstBasePath != undefined) {
|
|
115
|
-
basePath = firstBasePath;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (typeof basePath !== 'string') {
|
|
119
|
-
basePath = this.basePath;
|
|
120
|
-
}
|
|
121
|
-
this.configuration.basePath = basePath;
|
|
122
|
-
}
|
|
123
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// @ts-ignore
|
|
127
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
128
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
129
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
130
|
-
} else {
|
|
131
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
132
|
-
}
|
|
133
|
-
return httpParams;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
137
|
-
if (value == null) {
|
|
138
|
-
return httpParams;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (typeof value === 'object') {
|
|
142
|
-
if (Array.isArray(value)) {
|
|
143
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
144
|
-
} else if (value instanceof Date) {
|
|
145
|
-
if (key != null) {
|
|
146
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
147
|
-
} else {
|
|
148
|
-
throw Error('key may not be null if value is Date');
|
|
149
|
-
}
|
|
150
|
-
} else {
|
|
151
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
152
|
-
}
|
|
153
|
-
} else if (key != null) {
|
|
154
|
-
httpParams = httpParams.append(key, value);
|
|
155
|
-
} else {
|
|
156
|
-
throw Error('key may not be null if value is not object or array');
|
|
157
|
-
}
|
|
158
|
-
return httpParams;
|
|
105
|
+
super(basePath, configuration);
|
|
159
106
|
}
|
|
160
107
|
|
|
161
108
|
/**
|
|
@@ -165,25 +112,25 @@ export class AssetPublishingService {
|
|
|
165
112
|
* @param reportProgress flag to report request and response progress.
|
|
166
113
|
*/
|
|
167
114
|
public getPublishedAssetById(
|
|
168
|
-
requestParameters
|
|
115
|
+
requestParameters: GetPublishedAssetByIdRequestParams,
|
|
169
116
|
observe?: 'body',
|
|
170
117
|
reportProgress?: boolean,
|
|
171
118
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
172
119
|
): Observable<PublishedAsset>;
|
|
173
120
|
public getPublishedAssetById(
|
|
174
|
-
requestParameters
|
|
121
|
+
requestParameters: GetPublishedAssetByIdRequestParams,
|
|
175
122
|
observe?: 'response',
|
|
176
123
|
reportProgress?: boolean,
|
|
177
124
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
178
125
|
): Observable<HttpResponse<PublishedAsset>>;
|
|
179
126
|
public getPublishedAssetById(
|
|
180
|
-
requestParameters
|
|
127
|
+
requestParameters: GetPublishedAssetByIdRequestParams,
|
|
181
128
|
observe?: 'events',
|
|
182
129
|
reportProgress?: boolean,
|
|
183
130
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
184
131
|
): Observable<HttpEvent<PublishedAsset>>;
|
|
185
132
|
public getPublishedAssetById(
|
|
186
|
-
requestParameters
|
|
133
|
+
requestParameters: GetPublishedAssetByIdRequestParams,
|
|
187
134
|
observe: any = 'body',
|
|
188
135
|
reportProgress: boolean = false,
|
|
189
136
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -199,32 +146,17 @@ export class AssetPublishingService {
|
|
|
199
146
|
|
|
200
147
|
let localVarHeaders = this.defaultHeaders;
|
|
201
148
|
|
|
202
|
-
let localVarCredential: string | undefined;
|
|
203
149
|
// authentication (msal_auth) required
|
|
204
|
-
|
|
205
|
-
if (localVarCredential) {
|
|
206
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
207
|
-
}
|
|
150
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
208
151
|
|
|
209
|
-
|
|
210
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
211
|
-
// to determine the Accept header
|
|
212
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
213
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
214
|
-
}
|
|
152
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
215
153
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
216
154
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
217
155
|
}
|
|
218
156
|
|
|
219
|
-
|
|
220
|
-
if (localVarHttpContext === undefined) {
|
|
221
|
-
localVarHttpContext = new HttpContext();
|
|
222
|
-
}
|
|
157
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
223
158
|
|
|
224
|
-
|
|
225
|
-
if (localVarTransferCache === undefined) {
|
|
226
|
-
localVarTransferCache = true;
|
|
227
|
-
}
|
|
159
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
228
160
|
|
|
229
161
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
230
162
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -238,10 +170,11 @@ export class AssetPublishingService {
|
|
|
238
170
|
}
|
|
239
171
|
|
|
240
172
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish/${this.configuration.encodeParam({ name: 'pid', value: pid, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
241
|
-
|
|
173
|
+
const { basePath, withCredentials } = this.configuration;
|
|
174
|
+
return this.httpClient.request<PublishedAsset>('get', `${basePath}${localVarPath}`, {
|
|
242
175
|
context: localVarHttpContext,
|
|
243
176
|
responseType: <any>responseType_,
|
|
244
|
-
withCredentials:
|
|
177
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
245
178
|
headers: localVarHeaders,
|
|
246
179
|
observe: observe,
|
|
247
180
|
transferCache: localVarTransferCache,
|
|
@@ -256,25 +189,25 @@ export class AssetPublishingService {
|
|
|
256
189
|
* @param reportProgress flag to report request and response progress.
|
|
257
190
|
*/
|
|
258
191
|
public getPublishedAssetDetails(
|
|
259
|
-
requestParameters
|
|
192
|
+
requestParameters: GetPublishedAssetDetailsRequestParams,
|
|
260
193
|
observe?: 'body',
|
|
261
194
|
reportProgress?: boolean,
|
|
262
195
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
263
|
-
): Observable<{ [key: string]:
|
|
196
|
+
): Observable<{ [key: string]: any }>;
|
|
264
197
|
public getPublishedAssetDetails(
|
|
265
|
-
requestParameters
|
|
198
|
+
requestParameters: GetPublishedAssetDetailsRequestParams,
|
|
266
199
|
observe?: 'response',
|
|
267
200
|
reportProgress?: boolean,
|
|
268
201
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
269
|
-
): Observable<HttpResponse<{ [key: string]:
|
|
202
|
+
): Observable<HttpResponse<{ [key: string]: any }>>;
|
|
270
203
|
public getPublishedAssetDetails(
|
|
271
|
-
requestParameters
|
|
204
|
+
requestParameters: GetPublishedAssetDetailsRequestParams,
|
|
272
205
|
observe?: 'events',
|
|
273
206
|
reportProgress?: boolean,
|
|
274
207
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
275
|
-
): Observable<HttpEvent<{ [key: string]:
|
|
208
|
+
): Observable<HttpEvent<{ [key: string]: any }>>;
|
|
276
209
|
public getPublishedAssetDetails(
|
|
277
|
-
requestParameters
|
|
210
|
+
requestParameters: GetPublishedAssetDetailsRequestParams,
|
|
278
211
|
observe: any = 'body',
|
|
279
212
|
reportProgress: boolean = false,
|
|
280
213
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -290,32 +223,17 @@ export class AssetPublishingService {
|
|
|
290
223
|
|
|
291
224
|
let localVarHeaders = this.defaultHeaders;
|
|
292
225
|
|
|
293
|
-
let localVarCredential: string | undefined;
|
|
294
226
|
// authentication (msal_auth) required
|
|
295
|
-
|
|
296
|
-
if (localVarCredential) {
|
|
297
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
298
|
-
}
|
|
227
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
299
228
|
|
|
300
|
-
|
|
301
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
302
|
-
// to determine the Accept header
|
|
303
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
304
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
305
|
-
}
|
|
229
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
306
230
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
307
231
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
308
232
|
}
|
|
309
233
|
|
|
310
|
-
|
|
311
|
-
if (localVarHttpContext === undefined) {
|
|
312
|
-
localVarHttpContext = new HttpContext();
|
|
313
|
-
}
|
|
234
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
314
235
|
|
|
315
|
-
|
|
316
|
-
if (localVarTransferCache === undefined) {
|
|
317
|
-
localVarTransferCache = true;
|
|
318
|
-
}
|
|
236
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
319
237
|
|
|
320
238
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
321
239
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -329,10 +247,11 @@ export class AssetPublishingService {
|
|
|
329
247
|
}
|
|
330
248
|
|
|
331
249
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish/${this.configuration.encodeParam({ name: 'pid', value: pid, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/info`;
|
|
332
|
-
|
|
250
|
+
const { basePath, withCredentials } = this.configuration;
|
|
251
|
+
return this.httpClient.request<{ [key: string]: any }>('get', `${basePath}${localVarPath}`, {
|
|
333
252
|
context: localVarHttpContext,
|
|
334
253
|
responseType: <any>responseType_,
|
|
335
|
-
withCredentials:
|
|
254
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
336
255
|
headers: localVarHeaders,
|
|
337
256
|
observe: observe,
|
|
338
257
|
transferCache: localVarTransferCache,
|
|
@@ -347,25 +266,25 @@ export class AssetPublishingService {
|
|
|
347
266
|
* @param reportProgress flag to report request and response progress.
|
|
348
267
|
*/
|
|
349
268
|
public httpPublishedAssetsCheckStatus(
|
|
350
|
-
requestParameters
|
|
269
|
+
requestParameters: HttpPublishedAssetsCheckStatusRequestParams,
|
|
351
270
|
observe?: 'body',
|
|
352
271
|
reportProgress?: boolean,
|
|
353
272
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
354
273
|
): Observable<AgravityInfoResponse>;
|
|
355
274
|
public httpPublishedAssetsCheckStatus(
|
|
356
|
-
requestParameters
|
|
275
|
+
requestParameters: HttpPublishedAssetsCheckStatusRequestParams,
|
|
357
276
|
observe?: 'response',
|
|
358
277
|
reportProgress?: boolean,
|
|
359
278
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
360
279
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
361
280
|
public httpPublishedAssetsCheckStatus(
|
|
362
|
-
requestParameters
|
|
281
|
+
requestParameters: HttpPublishedAssetsCheckStatusRequestParams,
|
|
363
282
|
observe?: 'events',
|
|
364
283
|
reportProgress?: boolean,
|
|
365
284
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
366
285
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
367
286
|
public httpPublishedAssetsCheckStatus(
|
|
368
|
-
requestParameters
|
|
287
|
+
requestParameters: HttpPublishedAssetsCheckStatusRequestParams,
|
|
369
288
|
observe: any = 'body',
|
|
370
289
|
reportProgress: boolean = false,
|
|
371
290
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -381,32 +300,17 @@ export class AssetPublishingService {
|
|
|
381
300
|
|
|
382
301
|
let localVarHeaders = this.defaultHeaders;
|
|
383
302
|
|
|
384
|
-
let localVarCredential: string | undefined;
|
|
385
303
|
// authentication (msal_auth) required
|
|
386
|
-
|
|
387
|
-
if (localVarCredential) {
|
|
388
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
389
|
-
}
|
|
304
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
390
305
|
|
|
391
|
-
|
|
392
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
393
|
-
// to determine the Accept header
|
|
394
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
395
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
396
|
-
}
|
|
306
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
397
307
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
398
308
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
399
309
|
}
|
|
400
310
|
|
|
401
|
-
|
|
402
|
-
if (localVarHttpContext === undefined) {
|
|
403
|
-
localVarHttpContext = new HttpContext();
|
|
404
|
-
}
|
|
311
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
405
312
|
|
|
406
|
-
|
|
407
|
-
if (localVarTransferCache === undefined) {
|
|
408
|
-
localVarTransferCache = true;
|
|
409
|
-
}
|
|
313
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
410
314
|
|
|
411
315
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
412
316
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -420,10 +324,11 @@ export class AssetPublishingService {
|
|
|
420
324
|
}
|
|
421
325
|
|
|
422
326
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish/${this.configuration.encodeParam({ name: 'pid', value: pid, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/status`;
|
|
423
|
-
|
|
327
|
+
const { basePath, withCredentials } = this.configuration;
|
|
328
|
+
return this.httpClient.request<AgravityInfoResponse>('get', `${basePath}${localVarPath}`, {
|
|
424
329
|
context: localVarHttpContext,
|
|
425
330
|
responseType: <any>responseType_,
|
|
426
|
-
withCredentials:
|
|
331
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
427
332
|
headers: localVarHeaders,
|
|
428
333
|
observe: observe,
|
|
429
334
|
transferCache: localVarTransferCache,
|
|
@@ -438,25 +343,25 @@ export class AssetPublishingService {
|
|
|
438
343
|
* @param reportProgress flag to report request and response progress.
|
|
439
344
|
*/
|
|
440
345
|
public httpPublishedAssetsCreate(
|
|
441
|
-
requestParameters
|
|
346
|
+
requestParameters: HttpPublishedAssetsCreateRequestParams,
|
|
442
347
|
observe?: 'body',
|
|
443
348
|
reportProgress?: boolean,
|
|
444
349
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
445
350
|
): Observable<PublishedAsset>;
|
|
446
351
|
public httpPublishedAssetsCreate(
|
|
447
|
-
requestParameters
|
|
352
|
+
requestParameters: HttpPublishedAssetsCreateRequestParams,
|
|
448
353
|
observe?: 'response',
|
|
449
354
|
reportProgress?: boolean,
|
|
450
355
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
451
356
|
): Observable<HttpResponse<PublishedAsset>>;
|
|
452
357
|
public httpPublishedAssetsCreate(
|
|
453
|
-
requestParameters
|
|
358
|
+
requestParameters: HttpPublishedAssetsCreateRequestParams,
|
|
454
359
|
observe?: 'events',
|
|
455
360
|
reportProgress?: boolean,
|
|
456
361
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
457
362
|
): Observable<HttpEvent<PublishedAsset>>;
|
|
458
363
|
public httpPublishedAssetsCreate(
|
|
459
|
-
requestParameters
|
|
364
|
+
requestParameters: HttpPublishedAssetsCreateRequestParams,
|
|
460
365
|
observe: any = 'body',
|
|
461
366
|
reportProgress: boolean = false,
|
|
462
367
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -472,32 +377,17 @@ export class AssetPublishingService {
|
|
|
472
377
|
|
|
473
378
|
let localVarHeaders = this.defaultHeaders;
|
|
474
379
|
|
|
475
|
-
let localVarCredential: string | undefined;
|
|
476
380
|
// authentication (msal_auth) required
|
|
477
|
-
|
|
478
|
-
if (localVarCredential) {
|
|
479
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
480
|
-
}
|
|
381
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
481
382
|
|
|
482
|
-
|
|
483
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
484
|
-
// to determine the Accept header
|
|
485
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
486
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
487
|
-
}
|
|
383
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
488
384
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
489
385
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
490
386
|
}
|
|
491
387
|
|
|
492
|
-
|
|
493
|
-
if (localVarHttpContext === undefined) {
|
|
494
|
-
localVarHttpContext = new HttpContext();
|
|
495
|
-
}
|
|
388
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
496
389
|
|
|
497
|
-
|
|
498
|
-
if (localVarTransferCache === undefined) {
|
|
499
|
-
localVarTransferCache = true;
|
|
500
|
-
}
|
|
390
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
501
391
|
|
|
502
392
|
// to determine the Content-Type header
|
|
503
393
|
const consumes: string[] = ['application/json'];
|
|
@@ -518,11 +408,12 @@ export class AssetPublishingService {
|
|
|
518
408
|
}
|
|
519
409
|
|
|
520
410
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish`;
|
|
521
|
-
|
|
411
|
+
const { basePath, withCredentials } = this.configuration;
|
|
412
|
+
return this.httpClient.request<PublishedAsset>('post', `${basePath}${localVarPath}`, {
|
|
522
413
|
context: localVarHttpContext,
|
|
523
414
|
body: publishedAsset,
|
|
524
415
|
responseType: <any>responseType_,
|
|
525
|
-
withCredentials:
|
|
416
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
526
417
|
headers: localVarHeaders,
|
|
527
418
|
observe: observe,
|
|
528
419
|
transferCache: localVarTransferCache,
|
|
@@ -537,25 +428,25 @@ export class AssetPublishingService {
|
|
|
537
428
|
* @param reportProgress flag to report request and response progress.
|
|
538
429
|
*/
|
|
539
430
|
public httpPublishedAssetsDeleteAll(
|
|
540
|
-
requestParameters
|
|
431
|
+
requestParameters: HttpPublishedAssetsDeleteAllRequestParams,
|
|
541
432
|
observe?: 'body',
|
|
542
433
|
reportProgress?: boolean,
|
|
543
434
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
544
435
|
): Observable<any>;
|
|
545
436
|
public httpPublishedAssetsDeleteAll(
|
|
546
|
-
requestParameters
|
|
437
|
+
requestParameters: HttpPublishedAssetsDeleteAllRequestParams,
|
|
547
438
|
observe?: 'response',
|
|
548
439
|
reportProgress?: boolean,
|
|
549
440
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
550
441
|
): Observable<HttpResponse<any>>;
|
|
551
442
|
public httpPublishedAssetsDeleteAll(
|
|
552
|
-
requestParameters
|
|
443
|
+
requestParameters: HttpPublishedAssetsDeleteAllRequestParams,
|
|
553
444
|
observe?: 'events',
|
|
554
445
|
reportProgress?: boolean,
|
|
555
446
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
556
447
|
): Observable<HttpEvent<any>>;
|
|
557
448
|
public httpPublishedAssetsDeleteAll(
|
|
558
|
-
requestParameters
|
|
449
|
+
requestParameters: HttpPublishedAssetsDeleteAllRequestParams,
|
|
559
450
|
observe: any = 'body',
|
|
560
451
|
reportProgress: boolean = false,
|
|
561
452
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -567,32 +458,17 @@ export class AssetPublishingService {
|
|
|
567
458
|
|
|
568
459
|
let localVarHeaders = this.defaultHeaders;
|
|
569
460
|
|
|
570
|
-
let localVarCredential: string | undefined;
|
|
571
461
|
// authentication (msal_auth) required
|
|
572
|
-
|
|
573
|
-
if (localVarCredential) {
|
|
574
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
575
|
-
}
|
|
462
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
576
463
|
|
|
577
|
-
|
|
578
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
579
|
-
// to determine the Accept header
|
|
580
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
581
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
582
|
-
}
|
|
464
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
583
465
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
584
466
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
585
467
|
}
|
|
586
468
|
|
|
587
|
-
|
|
588
|
-
if (localVarHttpContext === undefined) {
|
|
589
|
-
localVarHttpContext = new HttpContext();
|
|
590
|
-
}
|
|
469
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
591
470
|
|
|
592
|
-
|
|
593
|
-
if (localVarTransferCache === undefined) {
|
|
594
|
-
localVarTransferCache = true;
|
|
595
|
-
}
|
|
471
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
596
472
|
|
|
597
473
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
598
474
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -606,10 +482,11 @@ export class AssetPublishingService {
|
|
|
606
482
|
}
|
|
607
483
|
|
|
608
484
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish`;
|
|
609
|
-
|
|
485
|
+
const { basePath, withCredentials } = this.configuration;
|
|
486
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
610
487
|
context: localVarHttpContext,
|
|
611
488
|
responseType: <any>responseType_,
|
|
612
|
-
withCredentials:
|
|
489
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
613
490
|
headers: localVarHeaders,
|
|
614
491
|
observe: observe,
|
|
615
492
|
transferCache: localVarTransferCache,
|
|
@@ -624,25 +501,25 @@ export class AssetPublishingService {
|
|
|
624
501
|
* @param reportProgress flag to report request and response progress.
|
|
625
502
|
*/
|
|
626
503
|
public httpPublishedAssetsDeleteById(
|
|
627
|
-
requestParameters
|
|
504
|
+
requestParameters: HttpPublishedAssetsDeleteByIdRequestParams,
|
|
628
505
|
observe?: 'body',
|
|
629
506
|
reportProgress?: boolean,
|
|
630
507
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
631
508
|
): Observable<any>;
|
|
632
509
|
public httpPublishedAssetsDeleteById(
|
|
633
|
-
requestParameters
|
|
510
|
+
requestParameters: HttpPublishedAssetsDeleteByIdRequestParams,
|
|
634
511
|
observe?: 'response',
|
|
635
512
|
reportProgress?: boolean,
|
|
636
513
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
637
514
|
): Observable<HttpResponse<any>>;
|
|
638
515
|
public httpPublishedAssetsDeleteById(
|
|
639
|
-
requestParameters
|
|
516
|
+
requestParameters: HttpPublishedAssetsDeleteByIdRequestParams,
|
|
640
517
|
observe?: 'events',
|
|
641
518
|
reportProgress?: boolean,
|
|
642
519
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
643
520
|
): Observable<HttpEvent<any>>;
|
|
644
521
|
public httpPublishedAssetsDeleteById(
|
|
645
|
-
requestParameters
|
|
522
|
+
requestParameters: HttpPublishedAssetsDeleteByIdRequestParams,
|
|
646
523
|
observe: any = 'body',
|
|
647
524
|
reportProgress: boolean = false,
|
|
648
525
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -658,38 +535,21 @@ export class AssetPublishingService {
|
|
|
658
535
|
const force = requestParameters?.force;
|
|
659
536
|
|
|
660
537
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
661
|
-
|
|
662
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>force, 'force');
|
|
663
|
-
}
|
|
538
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>force, 'force');
|
|
664
539
|
|
|
665
540
|
let localVarHeaders = this.defaultHeaders;
|
|
666
541
|
|
|
667
|
-
let localVarCredential: string | undefined;
|
|
668
542
|
// authentication (msal_auth) required
|
|
669
|
-
|
|
670
|
-
if (localVarCredential) {
|
|
671
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
672
|
-
}
|
|
543
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
673
544
|
|
|
674
|
-
|
|
675
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
676
|
-
// to determine the Accept header
|
|
677
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
678
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
679
|
-
}
|
|
545
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
680
546
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
681
547
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
682
548
|
}
|
|
683
549
|
|
|
684
|
-
|
|
685
|
-
if (localVarHttpContext === undefined) {
|
|
686
|
-
localVarHttpContext = new HttpContext();
|
|
687
|
-
}
|
|
550
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
688
551
|
|
|
689
|
-
|
|
690
|
-
if (localVarTransferCache === undefined) {
|
|
691
|
-
localVarTransferCache = true;
|
|
692
|
-
}
|
|
552
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
693
553
|
|
|
694
554
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
695
555
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -703,11 +563,12 @@ export class AssetPublishingService {
|
|
|
703
563
|
}
|
|
704
564
|
|
|
705
565
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish/${this.configuration.encodeParam({ name: 'pid', value: pid, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
706
|
-
|
|
566
|
+
const { basePath, withCredentials } = this.configuration;
|
|
567
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
707
568
|
context: localVarHttpContext,
|
|
708
569
|
params: localVarQueryParameters,
|
|
709
570
|
responseType: <any>responseType_,
|
|
710
|
-
withCredentials:
|
|
571
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
711
572
|
headers: localVarHeaders,
|
|
712
573
|
observe: observe,
|
|
713
574
|
transferCache: localVarTransferCache,
|
|
@@ -722,25 +583,25 @@ export class AssetPublishingService {
|
|
|
722
583
|
* @param reportProgress flag to report request and response progress.
|
|
723
584
|
*/
|
|
724
585
|
public httpPublishedAssetsGet(
|
|
725
|
-
requestParameters
|
|
586
|
+
requestParameters: HttpPublishedAssetsGetRequestParams,
|
|
726
587
|
observe?: 'body',
|
|
727
588
|
reportProgress?: boolean,
|
|
728
589
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
729
590
|
): Observable<PublishEntity>;
|
|
730
591
|
public httpPublishedAssetsGet(
|
|
731
|
-
requestParameters
|
|
592
|
+
requestParameters: HttpPublishedAssetsGetRequestParams,
|
|
732
593
|
observe?: 'response',
|
|
733
594
|
reportProgress?: boolean,
|
|
734
595
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
735
596
|
): Observable<HttpResponse<PublishEntity>>;
|
|
736
597
|
public httpPublishedAssetsGet(
|
|
737
|
-
requestParameters
|
|
598
|
+
requestParameters: HttpPublishedAssetsGetRequestParams,
|
|
738
599
|
observe?: 'events',
|
|
739
600
|
reportProgress?: boolean,
|
|
740
601
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
741
602
|
): Observable<HttpEvent<PublishEntity>>;
|
|
742
603
|
public httpPublishedAssetsGet(
|
|
743
|
-
requestParameters
|
|
604
|
+
requestParameters: HttpPublishedAssetsGetRequestParams,
|
|
744
605
|
observe: any = 'body',
|
|
745
606
|
reportProgress: boolean = false,
|
|
746
607
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -752,32 +613,17 @@ export class AssetPublishingService {
|
|
|
752
613
|
|
|
753
614
|
let localVarHeaders = this.defaultHeaders;
|
|
754
615
|
|
|
755
|
-
let localVarCredential: string | undefined;
|
|
756
616
|
// authentication (msal_auth) required
|
|
757
|
-
|
|
758
|
-
if (localVarCredential) {
|
|
759
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
760
|
-
}
|
|
617
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
761
618
|
|
|
762
|
-
|
|
763
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
764
|
-
// to determine the Accept header
|
|
765
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
766
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
767
|
-
}
|
|
619
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
768
620
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
769
621
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
770
622
|
}
|
|
771
623
|
|
|
772
|
-
|
|
773
|
-
if (localVarHttpContext === undefined) {
|
|
774
|
-
localVarHttpContext = new HttpContext();
|
|
775
|
-
}
|
|
624
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
776
625
|
|
|
777
|
-
|
|
778
|
-
if (localVarTransferCache === undefined) {
|
|
779
|
-
localVarTransferCache = true;
|
|
780
|
-
}
|
|
626
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
781
627
|
|
|
782
628
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
783
629
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -791,10 +637,11 @@ export class AssetPublishingService {
|
|
|
791
637
|
}
|
|
792
638
|
|
|
793
639
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish`;
|
|
794
|
-
|
|
640
|
+
const { basePath, withCredentials } = this.configuration;
|
|
641
|
+
return this.httpClient.request<PublishEntity>('get', `${basePath}${localVarPath}`, {
|
|
795
642
|
context: localVarHttpContext,
|
|
796
643
|
responseType: <any>responseType_,
|
|
797
|
-
withCredentials:
|
|
644
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
798
645
|
headers: localVarHeaders,
|
|
799
646
|
observe: observe,
|
|
800
647
|
transferCache: localVarTransferCache,
|
|
@@ -809,25 +656,25 @@ export class AssetPublishingService {
|
|
|
809
656
|
* @param reportProgress flag to report request and response progress.
|
|
810
657
|
*/
|
|
811
658
|
public httpPublishedAssetsRepublishById(
|
|
812
|
-
requestParameters
|
|
659
|
+
requestParameters: HttpPublishedAssetsRepublishByIdRequestParams,
|
|
813
660
|
observe?: 'body',
|
|
814
661
|
reportProgress?: boolean,
|
|
815
662
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
816
663
|
): Observable<PublishedAsset>;
|
|
817
664
|
public httpPublishedAssetsRepublishById(
|
|
818
|
-
requestParameters
|
|
665
|
+
requestParameters: HttpPublishedAssetsRepublishByIdRequestParams,
|
|
819
666
|
observe?: 'response',
|
|
820
667
|
reportProgress?: boolean,
|
|
821
668
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
822
669
|
): Observable<HttpResponse<PublishedAsset>>;
|
|
823
670
|
public httpPublishedAssetsRepublishById(
|
|
824
|
-
requestParameters
|
|
671
|
+
requestParameters: HttpPublishedAssetsRepublishByIdRequestParams,
|
|
825
672
|
observe?: 'events',
|
|
826
673
|
reportProgress?: boolean,
|
|
827
674
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
828
675
|
): Observable<HttpEvent<PublishedAsset>>;
|
|
829
676
|
public httpPublishedAssetsRepublishById(
|
|
830
|
-
requestParameters
|
|
677
|
+
requestParameters: HttpPublishedAssetsRepublishByIdRequestParams,
|
|
831
678
|
observe: any = 'body',
|
|
832
679
|
reportProgress: boolean = false,
|
|
833
680
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -847,32 +694,17 @@ export class AssetPublishingService {
|
|
|
847
694
|
|
|
848
695
|
let localVarHeaders = this.defaultHeaders;
|
|
849
696
|
|
|
850
|
-
let localVarCredential: string | undefined;
|
|
851
697
|
// authentication (msal_auth) required
|
|
852
|
-
|
|
853
|
-
if (localVarCredential) {
|
|
854
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
855
|
-
}
|
|
698
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
856
699
|
|
|
857
|
-
|
|
858
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
859
|
-
// to determine the Accept header
|
|
860
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
861
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
862
|
-
}
|
|
700
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
863
701
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
864
702
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
865
703
|
}
|
|
866
704
|
|
|
867
|
-
|
|
868
|
-
if (localVarHttpContext === undefined) {
|
|
869
|
-
localVarHttpContext = new HttpContext();
|
|
870
|
-
}
|
|
705
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
871
706
|
|
|
872
|
-
|
|
873
|
-
if (localVarTransferCache === undefined) {
|
|
874
|
-
localVarTransferCache = true;
|
|
875
|
-
}
|
|
707
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
876
708
|
|
|
877
709
|
// to determine the Content-Type header
|
|
878
710
|
const consumes: string[] = ['application/json'];
|
|
@@ -893,11 +725,12 @@ export class AssetPublishingService {
|
|
|
893
725
|
}
|
|
894
726
|
|
|
895
727
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish/${this.configuration.encodeParam({ name: 'pid', value: pid, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/republish`;
|
|
896
|
-
|
|
728
|
+
const { basePath, withCredentials } = this.configuration;
|
|
729
|
+
return this.httpClient.request<PublishedAsset>('patch', `${basePath}${localVarPath}`, {
|
|
897
730
|
context: localVarHttpContext,
|
|
898
731
|
body: publishedAsset,
|
|
899
732
|
responseType: <any>responseType_,
|
|
900
|
-
withCredentials:
|
|
733
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
901
734
|
headers: localVarHeaders,
|
|
902
735
|
observe: observe,
|
|
903
736
|
transferCache: localVarTransferCache,
|
|
@@ -912,25 +745,25 @@ export class AssetPublishingService {
|
|
|
912
745
|
* @param reportProgress flag to report request and response progress.
|
|
913
746
|
*/
|
|
914
747
|
public httpPublishedAssetsUpdateById(
|
|
915
|
-
requestParameters
|
|
748
|
+
requestParameters: HttpPublishedAssetsUpdateByIdRequestParams,
|
|
916
749
|
observe?: 'body',
|
|
917
750
|
reportProgress?: boolean,
|
|
918
751
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
919
752
|
): Observable<PublishedAsset>;
|
|
920
753
|
public httpPublishedAssetsUpdateById(
|
|
921
|
-
requestParameters
|
|
754
|
+
requestParameters: HttpPublishedAssetsUpdateByIdRequestParams,
|
|
922
755
|
observe?: 'response',
|
|
923
756
|
reportProgress?: boolean,
|
|
924
757
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
925
758
|
): Observable<HttpResponse<PublishedAsset>>;
|
|
926
759
|
public httpPublishedAssetsUpdateById(
|
|
927
|
-
requestParameters
|
|
760
|
+
requestParameters: HttpPublishedAssetsUpdateByIdRequestParams,
|
|
928
761
|
observe?: 'events',
|
|
929
762
|
reportProgress?: boolean,
|
|
930
763
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
931
764
|
): Observable<HttpEvent<PublishedAsset>>;
|
|
932
765
|
public httpPublishedAssetsUpdateById(
|
|
933
|
-
requestParameters
|
|
766
|
+
requestParameters: HttpPublishedAssetsUpdateByIdRequestParams,
|
|
934
767
|
observe: any = 'body',
|
|
935
768
|
reportProgress: boolean = false,
|
|
936
769
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -950,32 +783,17 @@ export class AssetPublishingService {
|
|
|
950
783
|
|
|
951
784
|
let localVarHeaders = this.defaultHeaders;
|
|
952
785
|
|
|
953
|
-
let localVarCredential: string | undefined;
|
|
954
786
|
// authentication (msal_auth) required
|
|
955
|
-
|
|
956
|
-
if (localVarCredential) {
|
|
957
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
958
|
-
}
|
|
787
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
959
788
|
|
|
960
|
-
|
|
961
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
962
|
-
// to determine the Accept header
|
|
963
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
964
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
965
|
-
}
|
|
789
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
966
790
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
967
791
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
968
792
|
}
|
|
969
793
|
|
|
970
|
-
|
|
971
|
-
if (localVarHttpContext === undefined) {
|
|
972
|
-
localVarHttpContext = new HttpContext();
|
|
973
|
-
}
|
|
794
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
974
795
|
|
|
975
|
-
|
|
976
|
-
if (localVarTransferCache === undefined) {
|
|
977
|
-
localVarTransferCache = true;
|
|
978
|
-
}
|
|
796
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
979
797
|
|
|
980
798
|
// to determine the Content-Type header
|
|
981
799
|
const consumes: string[] = ['application/json'];
|
|
@@ -996,11 +814,12 @@ export class AssetPublishingService {
|
|
|
996
814
|
}
|
|
997
815
|
|
|
998
816
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish/${this.configuration.encodeParam({ name: 'pid', value: pid, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
999
|
-
|
|
817
|
+
const { basePath, withCredentials } = this.configuration;
|
|
818
|
+
return this.httpClient.request<PublishedAsset>('post', `${basePath}${localVarPath}`, {
|
|
1000
819
|
context: localVarHttpContext,
|
|
1001
820
|
body: publishedAsset,
|
|
1002
821
|
responseType: <any>responseType_,
|
|
1003
|
-
withCredentials:
|
|
822
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1004
823
|
headers: localVarHeaders,
|
|
1005
824
|
observe: observe,
|
|
1006
825
|
transferCache: localVarTransferCache,
|