@brightinteractive/platform-api 0.0.22 → 0.0.23

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.
@@ -12,10 +12,13 @@ import { AssetScrollSearchRequest } from '../model/assetScrollSearchRequest';
12
12
  import { AssetScrollSearchScrollRequest } from '../model/assetScrollSearchScrollRequest';
13
13
  import { AssetSearch } from '../model/assetSearch';
14
14
  import { AssetUpload } from '../model/assetUpload';
15
+ import { AssetUploadBatchRequest } from '../model/assetUploadBatchRequest';
15
16
  import { AssetUploadCompletionRequest } from '../model/assetUploadCompletionRequest';
16
17
  import { AssetUploadCompletionWithPermittedActions } from '../model/assetUploadCompletionWithPermittedActions';
17
18
  import { AssetUploadRequest } from '../model/assetUploadRequest';
18
19
  import { AssetWithPermittedActions } from '../model/assetWithPermittedActions';
20
+ import { AssetsCreationRequest } from '../model/assetsCreationRequest';
21
+ import { AssetsCreationWithPermittedActions } from '../model/assetsCreationWithPermittedActions';
19
22
  import { LifecycleTransitionBatchRequest } from '../model/lifecycleTransitionBatchRequest';
20
23
  import { MetadataEditBatchRequest } from '../model/metadataEditBatchRequest';
21
24
  import { NoResultJob } from '../model/noResultJob';
@@ -182,6 +185,25 @@ export declare class AssetsService {
182
185
  httpHeaderAccept?: 'application/json';
183
186
  context?: HttpContext;
184
187
  }): Observable<HttpEvent<NoResultJob>>;
188
+ /**
189
+ * Get the status of uploading files
190
+ * Get the status and eventual result of an [&#x60;AssetUploadBatchJob&#x60;](#operation/postAssetUploadBatchJob)
191
+ * @param id The unique ID of the [&#x60;AssetUploadBatchJob&#x60;](#operation/postAssetUploadBatchJob)
192
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
193
+ * @param reportProgress flag to report request and response progress.
194
+ */
195
+ getAssetUploadBatchJob(id: string, observe?: 'body', reportProgress?: boolean, options?: {
196
+ httpHeaderAccept?: 'application/json';
197
+ context?: HttpContext;
198
+ }): Observable<AssetAndUploadBatchJob>;
199
+ getAssetUploadBatchJob(id: string, observe?: 'response', reportProgress?: boolean, options?: {
200
+ httpHeaderAccept?: 'application/json';
201
+ context?: HttpContext;
202
+ }): Observable<HttpResponse<AssetAndUploadBatchJob>>;
203
+ getAssetUploadBatchJob(id: string, observe?: 'events', reportProgress?: boolean, options?: {
204
+ httpHeaderAccept?: 'application/json';
205
+ context?: HttpContext;
206
+ }): Observable<HttpEvent<AssetAndUploadBatchJob>>;
185
207
  /**
186
208
  * Create assets and upload files
187
209
  * An [&#x60;AssetAndUploadBatchJob&#x60;](#operation/postAssetAndUploadBatchJob) should be created when you want to create multiple [&#x60;Asset&#x60;](#tag/Assets) resources and also create an [&#x60;AssetUpload&#x60;](#operation/postAssetUpload) for each of them. The [&#x60;AssetUpload&#x60;](#operation/postAssetUpload) resources in the completed job should then be used to upload the files for each and asset and complete each upload. After the [&#x60;Asset&#x60;](#tag/Assets) resources have been created and files uploaded to them they will still be in [&#x60;Asset.lifecycleStatus.state &#x3D; \&#39;STAGED\&#39;&#x60;](#tag/Assets). To send them for approval or put them live see [Asset Lifecycle](#tag/Asset-Lifecycle).
@@ -353,6 +375,25 @@ export declare class AssetsService {
353
375
  httpHeaderAccept?: 'application/json';
354
376
  context?: HttpContext;
355
377
  }): Observable<HttpEvent<AssetUpload>>;
378
+ /**
379
+ * Upload files to assets
380
+ * An [&#x60;AssetUploadBatchJob&#x60;](#operation/postAssetUploadBatchJob) should be created when you want to create an [&#x60;AssetUpload&#x60;](#operation/postAssetUpload) for multiple assets. The [&#x60;AssetUpload&#x60;](#operation/postAssetUpload) resources in the completed job should then be used to upload the files for each and asset and complete each upload. After the files have been uploaded to the [&#x60;Asset&#x60;](#tag/Assets)s they will still be in [&#x60;Asset.lifecycleStatus.state &#x3D; \&#39;STAGED\&#39;&#x60;](#tag/Assets). To send them for approval or put them live see [Asset Lifecycle](#tag/Asset-Lifecycle).
381
+ * @param assetUploadBatchRequest
382
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
383
+ * @param reportProgress flag to report request and response progress.
384
+ */
385
+ postAssetUploadBatchJob(assetUploadBatchRequest: AssetUploadBatchRequest, observe?: 'body', reportProgress?: boolean, options?: {
386
+ httpHeaderAccept?: 'application/json';
387
+ context?: HttpContext;
388
+ }): Observable<AssetAndUploadBatchJob>;
389
+ postAssetUploadBatchJob(assetUploadBatchRequest: AssetUploadBatchRequest, observe?: 'response', reportProgress?: boolean, options?: {
390
+ httpHeaderAccept?: 'application/json';
391
+ context?: HttpContext;
392
+ }): Observable<HttpResponse<AssetAndUploadBatchJob>>;
393
+ postAssetUploadBatchJob(assetUploadBatchRequest: AssetUploadBatchRequest, observe?: 'events', reportProgress?: boolean, options?: {
394
+ httpHeaderAccept?: 'application/json';
395
+ context?: HttpContext;
396
+ }): Observable<HttpEvent<AssetAndUploadBatchJob>>;
356
397
  /**
357
398
  * Complete an asset file upload
358
399
  * After an [&#x60;AssetUpload&#x60;](#operation/postAssetUpload) has been created and each part of the file data has been &#x60;PUT&#x60; to the relavant URL the eTag from each &#x60;PUT&#x60; must be sent to indicate the upload is complete.
@@ -372,6 +413,25 @@ export declare class AssetsService {
372
413
  httpHeaderAccept?: 'application/json';
373
414
  context?: HttpContext;
374
415
  }): Observable<HttpEvent<AssetUploadCompletionWithPermittedActions>>;
416
+ /**
417
+ * Create some new assets
418
+ * Create a specified number of new [&#x60;Asset&#x60;](#tag/Assets)s without files. [&#x60;AssetUpload&#x60;](#operation/postAssetUploadBatchJobs)s can be done separately.
419
+ * @param assetsCreationRequest
420
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
421
+ * @param reportProgress flag to report request and response progress.
422
+ */
423
+ postAssetsCreations(assetsCreationRequest: AssetsCreationRequest, observe?: 'body', reportProgress?: boolean, options?: {
424
+ httpHeaderAccept?: 'application/json';
425
+ context?: HttpContext;
426
+ }): Observable<AssetsCreationWithPermittedActions>;
427
+ postAssetsCreations(assetsCreationRequest: AssetsCreationRequest, observe?: 'response', reportProgress?: boolean, options?: {
428
+ httpHeaderAccept?: 'application/json';
429
+ context?: HttpContext;
430
+ }): Observable<HttpResponse<AssetsCreationWithPermittedActions>>;
431
+ postAssetsCreations(assetsCreationRequest: AssetsCreationRequest, observe?: 'events', reportProgress?: boolean, options?: {
432
+ httpHeaderAccept?: 'application/json';
433
+ context?: HttpContext;
434
+ }): Observable<HttpEvent<AssetsCreationWithPermittedActions>>;
375
435
  static ɵfac: i0.ɵɵFactoryDeclaration<AssetsService, [null, { optional: true; }, { optional: true; }]>;
376
436
  static ɵprov: i0.ɵɵInjectableDeclaration<AssetsService>;
377
437
  }