@vidispine/vdt-api 22.3.0-pre.2 → 22.3.0-pre.5

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/dist/index.es.js CHANGED
@@ -258,7 +258,7 @@ var _excluded$X = ["entityType", "entityId"],
258
258
  _excluded8$m = ["entityType", "entityId", "accessControlListDocument"],
259
259
  _excluded9$l = ["entityType", "entityId", "accessControlListDocument"],
260
260
  _excluded10$j = ["entityType", "entityId", "headers"],
261
- _excluded11$h = ["entityType", "entityId", "headers"],
261
+ _excluded11$i = ["entityType", "entityId", "headers"],
262
262
  _excluded12$g = ["accessControlDocument"],
263
263
  _excluded13$f = ["groupName"],
264
264
  _excluded14$e = ["groupName"];
@@ -571,7 +571,7 @@ function getEntityAccessGraphDot(_ref11) {
571
571
  entityId = _ref11$entityId === void 0 ? isRequired() : _ref11$entityId,
572
572
  _ref11$headers = _ref11.headers,
573
573
  propHeaders = _ref11$headers === void 0 ? {} : _ref11$headers,
574
- props = _objectWithoutProperties(_ref11, _excluded11$h);
574
+ props = _objectWithoutProperties(_ref11, _excluded11$i);
575
575
 
576
576
  var path = "/API/".concat(entityType, "/").concat(entityId, "/access/graph/dot");
577
577
 
@@ -1189,7 +1189,7 @@ var _excluded$T = ["itemId"],
1189
1189
  _excluded8$l = ["itemId", "shapeId"],
1190
1190
  _excluded9$k = ["itemId", "shapeId", "componentId"],
1191
1191
  _excluded10$i = ["itemId", "key"],
1192
- _excluded11$g = ["itemId", "shapeId", "key"],
1192
+ _excluded11$h = ["itemId", "shapeId", "key"],
1193
1193
  _excluded12$f = ["itemId", "shapeId", "componentId", "key"],
1194
1194
  _excluded13$e = ["itemId", "key", "value", "headers"],
1195
1195
  _excluded14$d = ["itemId", "shapeId", "key", "value", "headers"],
@@ -1493,7 +1493,7 @@ function getShapeBulkyMetadata(_ref11) {
1493
1493
  shapeId = _ref11$shapeId === void 0 ? isRequired() : _ref11$shapeId,
1494
1494
  _ref11$key = _ref11.key,
1495
1495
  key = _ref11$key === void 0 ? isRequired() : _ref11$key,
1496
- props = _objectWithoutProperties(_ref11, _excluded11$g);
1496
+ props = _objectWithoutProperties(_ref11, _excluded11$h);
1497
1497
 
1498
1498
  var path = "/API/item/".concat(itemId, "/shape/").concat(shapeId, "/metadata/bulky/").concat(key);
1499
1499
  return vFetch(_objectSpread$W({
@@ -2752,7 +2752,7 @@ var _excluded$S = ["entity", "entityId", "metadataDocument"],
2752
2752
  _excluded8$k = ["entity", "entityId", "metadataChangeSetDocument"],
2753
2753
  _excluded9$j = ["entity", "entityId"],
2754
2754
  _excluded10$h = ["entity", "entityId", "changesetId"],
2755
- _excluded11$f = ["entity", "entityId", "changesetId"],
2755
+ _excluded11$g = ["entity", "entityId", "changesetId"],
2756
2756
  _excluded12$e = ["entity", "entityId", "uuid", "metadataEntryDocument"],
2757
2757
  _excluded13$d = ["entity", "entityId", "metadataEntryListDocument"],
2758
2758
  _excluded14$c = ["entity", "entityId", "headers"],
@@ -2765,7 +2765,7 @@ var _excluded$S = ["entity", "entityId", "metadataDocument"],
2765
2765
  _excluded21$5 = ["entityType", "entityId", "subpath"],
2766
2766
  _excluded22$5 = ["simpleMetadataDocument", "entityType", "entityId"],
2767
2767
  _excluded23$5 = ["simpleMetadataDocument", "entityType", "entityId", "subpath"],
2768
- _excluded24$3 = ["entityType", "entityId"],
2768
+ _excluded24$4 = ["entityType", "entityId"],
2769
2769
  _excluded25$3 = ["entityType", "entityId", "key", "headers"],
2770
2770
  _excluded26$3 = ["entityType", "entityId", "key", "headers"],
2771
2771
  _excluded27$3 = ["entityType", "entityId", "key", "value", "headers"];
@@ -3081,7 +3081,7 @@ function removeEntityMetadataChange(_ref11) {
3081
3081
  entityId = _ref11$entityId === void 0 ? isRequired() : _ref11$entityId,
3082
3082
  _ref11$changesetId = _ref11.changesetId,
3083
3083
  changesetId = _ref11$changesetId === void 0 ? isRequired() : _ref11$changesetId,
3084
- props = _objectWithoutProperties(_ref11, _excluded11$f);
3084
+ props = _objectWithoutProperties(_ref11, _excluded11$g);
3085
3085
 
3086
3086
  var path = "/API/".concat(entity, "/").concat(entityId, "/metadata/changes/").concat(changesetId);
3087
3087
  return vFetch(_objectSpread$U({
@@ -3472,7 +3472,7 @@ function removeSimpleMetadata() {
3472
3472
  entityType = _ref25$entityType === void 0 ? isRequired() : _ref25$entityType,
3473
3473
  _ref25$entityId = _ref25.entityId,
3474
3474
  entityId = _ref25$entityId === void 0 ? isRequired() : _ref25$entityId,
3475
- props = _objectWithoutProperties(_ref25, _excluded24$3);
3475
+ props = _objectWithoutProperties(_ref25, _excluded24$4);
3476
3476
 
3477
3477
  var path = "/API/".concat(entityType, "/").concat(entityId, "/metadata");
3478
3478
  return vFetch(_objectSpread$U({
@@ -3792,7 +3792,7 @@ var _excluded$Q = ["collectionId"],
3792
3792
  _excluded8$j = ["collectionDocument", "queryParams"],
3793
3793
  _excluded9$i = ["collectionId"],
3794
3794
  _excluded10$g = ["queryParams"],
3795
- _excluded11$e = ["collectionId"],
3795
+ _excluded11$f = ["collectionId"],
3796
3796
  _excluded12$d = ["collectionId", "entityId"],
3797
3797
  _excluded13$c = ["collectionId", "entityId"],
3798
3798
  _excluded14$b = ["collectionId", "collectionDocument"],
@@ -3804,7 +3804,8 @@ var _excluded$Q = ["collectionId"],
3804
3804
  _excluded20$4 = ["collectionId"],
3805
3805
  _excluded21$4 = ["collectionId"],
3806
3806
  _excluded22$4 = ["collectionId"],
3807
- _excluded23$4 = ["collectionId"];
3807
+ _excluded23$4 = ["collectionId"],
3808
+ _excluded24$3 = ["collectionId", "queryParams"];
3808
3809
 
3809
3810
  function ownKeys$S(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3810
3811
 
@@ -4106,7 +4107,7 @@ function removeCollectionList(_ref12) {
4106
4107
  function renameCollection(_ref13) {
4107
4108
  var _ref13$collectionId = _ref13.collectionId,
4108
4109
  collectionId = _ref13$collectionId === void 0 ? isRequired() : _ref13$collectionId,
4109
- props = _objectWithoutProperties(_ref13, _excluded11$e);
4110
+ props = _objectWithoutProperties(_ref13, _excluded11$f);
4110
4111
 
4111
4112
  var path = "/API/collection/".concat(collectionId, "/rename");
4112
4113
  return vFetch(_objectSpread$S({
@@ -4391,6 +4392,31 @@ function removeCollectionMetadataLock(_ref25) {
4391
4392
  entityId: collectionId
4392
4393
  }, props));
4393
4394
  }
4395
+ /**
4396
+ * {@link https://apidoc.vidispine.com/latest/ref/item/export.html?#start-an-export-job-for-a-collection-or-a-library APIdoc}
4397
+ *
4398
+ * @function collection.exportCollection
4399
+ * @param {Object} obj
4400
+ * @param {string} obj.collectionId
4401
+ * @param {string} obj.queryParams
4402
+ * @returns {Promise<Object>}
4403
+ */
4404
+
4405
+
4406
+ function exportCollection(_ref26) {
4407
+ var _ref26$collectionId = _ref26.collectionId,
4408
+ collectionId = _ref26$collectionId === void 0 ? isRequired() : _ref26$collectionId,
4409
+ _ref26$queryParams = _ref26.queryParams,
4410
+ queryParams = _ref26$queryParams === void 0 ? isRequired() : _ref26$queryParams,
4411
+ props = _objectWithoutProperties(_ref26, _excluded24$3);
4412
+
4413
+ var path = "/API/collection/".concat(collectionId, "/export");
4414
+ return vFetch(_objectSpread$S({
4415
+ path: path,
4416
+ method: 'POST',
4417
+ queryParams: queryParams
4418
+ }, props));
4419
+ }
4394
4420
 
4395
4421
  var collection = {
4396
4422
  listCollection: listCollection,
@@ -4417,7 +4443,8 @@ var collection = {
4417
4443
  createCollectionMetadataLock: createCollectionMetadataLock,
4418
4444
  getCollectionMetadataLock: getCollectionMetadataLock,
4419
4445
  updateCollectionMetadataLock: updateCollectionMetadataLock,
4420
- removeCollectionMetadataLock: removeCollectionMetadataLock
4446
+ removeCollectionMetadataLock: removeCollectionMetadataLock,
4447
+ exportCollection: exportCollection
4421
4448
  };
4422
4449
 
4423
4450
  var _excluded$P = ["itemId", "shapeId"],
@@ -4430,7 +4457,7 @@ var _excluded$P = ["itemId", "shapeId"],
4430
4457
  _excluded8$i = ["itemId", "shapeId", "componentId", "targetItemId", "targetShapeId", "targetComponentId"],
4431
4458
  _excluded9$h = ["itemId", "shapeId", "componentId", "targetItemId", "targetShapeId"],
4432
4459
  _excluded10$f = ["itemId", "shapeId", "componentId", "fileId"],
4433
- _excluded11$d = ["itemId", "shapeId", "componentId", "fileId"],
4460
+ _excluded11$e = ["itemId", "shapeId", "componentId", "fileId"],
4434
4461
  _excluded12$c = ["itemId", "shapeId", "componentId", "analyzeJobDocument"];
4435
4462
 
4436
4463
  function ownKeys$R(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -4781,7 +4808,7 @@ function removeComponentFile(_ref11) {
4781
4808
  componentId = _ref11$componentId === void 0 ? isRequired() : _ref11$componentId,
4782
4809
  _ref11$fileId = _ref11.fileId,
4783
4810
  fileId = _ref11$fileId === void 0 ? isRequired() : _ref11$fileId,
4784
- props = _objectWithoutProperties(_ref11, _excluded11$d);
4811
+ props = _objectWithoutProperties(_ref11, _excluded11$e);
4785
4812
 
4786
4813
  var path = "/API/item/".concat(itemId, "/shape/").concat(shapeId, "/component/").concat(componentId, "/file/").concat(fileId);
4787
4814
  return vFetch(_objectSpread$R({
@@ -4847,7 +4874,7 @@ var _excluded$O = ["configurationPropertyDocument"],
4847
4874
  _excluded8$h = ["metricsConfigurationDocument"],
4848
4875
  _excluded9$g = ["pathAliasConfigurationDocument"],
4849
4876
  _excluded10$e = ["logReportConfigurationDocument"],
4850
- _excluded11$c = ["databasePurgingConfigurationDocument"],
4877
+ _excluded11$d = ["databasePurgingConfigurationDocument"],
4851
4878
  _excluded12$b = ["corsConfigurationDocument"],
4852
4879
  _excluded13$b = ["oAuth2ConfigurationDocument"],
4853
4880
  _excluded14$a = ["jobPriorityConfigurationDocument"],
@@ -5336,7 +5363,7 @@ function getDatabasePurgingConfiguration() {
5336
5363
  function updateDatabasePurgingConfiguration(_ref22) {
5337
5364
  var _ref22$databasePurgin = _ref22.databasePurgingConfigurationDocument,
5338
5365
  databasePurgingConfigurationDocument = _ref22$databasePurgin === void 0 ? isRequired() : _ref22$databasePurgin,
5339
- props = _objectWithoutProperties(_ref22, _excluded11$c);
5366
+ props = _objectWithoutProperties(_ref22, _excluded11$d);
5340
5367
 
5341
5368
  var path = '/API/configuration/purging';
5342
5369
  return vFetch(_objectSpread$Q({
@@ -6832,7 +6859,7 @@ var _excluded$G = ["groupName"],
6832
6859
  _excluded8$f = ["metadataFieldGroupSearchDocument"],
6833
6860
  _excluded9$f = ["groupName"],
6834
6861
  _excluded10$d = ["groupName"],
6835
- _excluded11$b = ["groupName", "metadataFieldAccessControlDocument"],
6862
+ _excluded11$c = ["groupName", "metadataFieldAccessControlDocument"],
6836
6863
  _excluded12$a = ["groupName", "accessId"],
6837
6864
  _excluded13$a = ["groupName"];
6838
6865
 
@@ -7123,7 +7150,7 @@ function createFieldGroupAccess(_ref12) {
7123
7150
  groupName = _ref12$groupName === void 0 ? isRequired() : _ref12$groupName,
7124
7151
  _ref12$metadataFieldA = _ref12.metadataFieldAccessControlDocument,
7125
7152
  metadataFieldAccessControlDocument = _ref12$metadataFieldA === void 0 ? isRequired() : _ref12$metadataFieldA,
7126
- props = _objectWithoutProperties(_ref12, _excluded11$b);
7153
+ props = _objectWithoutProperties(_ref12, _excluded11$c);
7127
7154
 
7128
7155
  var path = "/API/metadata-field/field-group/".concat(groupName, "/access");
7129
7156
  return vFetch(_objectSpread$H({
@@ -7232,7 +7259,7 @@ var _excluded$F = ["storageId"],
7232
7259
  _excluded8$e = ["fileId", "metadataDocument"],
7233
7260
  _excluded9$e = ["storageId", "metadataDocument"],
7234
7261
  _excluded10$c = ["storageId", "metadataDocument"],
7235
- _excluded11$a = ["fileId", "targetStorageId"],
7262
+ _excluded11$b = ["fileId", "targetStorageId"],
7236
7263
  _excluded12$9 = ["fileId"],
7237
7264
  _excluded13$9 = ["storageId", "fileDocument"],
7238
7265
  _excluded14$9 = ["fileId"],
@@ -7580,7 +7607,7 @@ function createFileMove(_ref13) {
7580
7607
  fileId = _ref13$fileId === void 0 ? isRequired() : _ref13$fileId,
7581
7608
  _ref13$targetStorageI = _ref13.targetStorageId,
7582
7609
  targetStorageId = _ref13$targetStorageI === void 0 ? isRequired() : _ref13$targetStorageI,
7583
- props = _objectWithoutProperties(_ref13, _excluded11$a);
7610
+ props = _objectWithoutProperties(_ref13, _excluded11$b);
7584
7611
 
7585
7612
  var path = "/API/storage/file/".concat(fileId, "/storage/").concat(targetStorageId, "/");
7586
7613
  return vFetch(_objectSpread$G({
@@ -8018,7 +8045,7 @@ var _excluded$D = ["groupName"],
8018
8045
  _excluded8$d = ["groupName", "headers"],
8019
8046
  _excluded9$d = ["groupName", "headers"],
8020
8047
  _excluded10$b = ["groupName", "childGroupName"],
8021
- _excluded11$9 = ["groupName", "childGroupName"],
8048
+ _excluded11$a = ["groupName", "childGroupName"],
8022
8049
  _excluded12$8 = ["groupName", "headers"],
8023
8050
  _excluded13$8 = ["groupName", "userName"],
8024
8051
  _excluded14$8 = ["groupName", "userName"];
@@ -8359,7 +8386,7 @@ function removeGroupChildren(_ref13) {
8359
8386
  groupName = _ref13$groupName === void 0 ? isRequired() : _ref13$groupName,
8360
8387
  _ref13$childGroupName = _ref13.childGroupName,
8361
8388
  childGroupName = _ref13$childGroupName === void 0 ? isRequired() : _ref13$childGroupName,
8362
- props = _objectWithoutProperties(_ref13, _excluded11$9);
8389
+ props = _objectWithoutProperties(_ref13, _excluded11$a);
8363
8390
 
8364
8391
  var path = "/API/group/".concat(groupName, "/group/").concat(childGroupName);
8365
8392
  return vFetch(_objectSpread$E({
@@ -8479,7 +8506,7 @@ var _excluded$C = ["metadataDocument"],
8479
8506
  _excluded8$c = ["itemId", "component", "file", "headers"],
8480
8507
  _excluded9$c = ["itemId", "component", "file", "headers"],
8481
8508
  _excluded10$a = ["itemId", "placeholderImportRequestDocument"],
8482
- _excluded11$8 = ["itemId"],
8509
+ _excluded11$9 = ["itemId"],
8483
8510
  _excluded12$7 = ["itemId", "component", "fileId"],
8484
8511
  _excluded13$7 = ["itemId"],
8485
8512
  _excluded14$7 = ["itemId", "file", "headers"];
@@ -8806,7 +8833,7 @@ function createImportItem(_ref11) {
8806
8833
  function createImportItemPasskey(_ref12) {
8807
8834
  var _ref12$itemId = _ref12.itemId,
8808
8835
  itemId = _ref12$itemId === void 0 ? isRequired() : _ref12$itemId,
8809
- props = _objectWithoutProperties(_ref12, _excluded11$8);
8836
+ props = _objectWithoutProperties(_ref12, _excluded11$9);
8810
8837
 
8811
8838
  var path = "/API/import/placeholder/".concat(itemId, "/raw-passkey/");
8812
8839
  return vFetch(_objectSpread$D({
@@ -9124,7 +9151,7 @@ var _excluded$A = ["itemId"],
9124
9151
  _excluded8$b = ["itemId"],
9125
9152
  _excluded9$b = ["itemId"],
9126
9153
  _excluded10$9 = ["itemId"],
9127
- _excluded11$7 = ["itemId"],
9154
+ _excluded11$8 = ["itemId"],
9128
9155
  _excluded12$6 = ["itemId", "relationItemId"],
9129
9156
  _excluded13$6 = ["itemRelationListDocument"],
9130
9157
  _excluded14$6 = ["itemId", "relationItemId"],
@@ -9449,7 +9476,7 @@ function createExportImp(_ref12) {
9449
9476
  function listItemRelation(_ref13) {
9450
9477
  var _ref13$itemId = _ref13.itemId,
9451
9478
  itemId = _ref13$itemId === void 0 ? isRequired() : _ref13$itemId,
9452
- props = _objectWithoutProperties(_ref13, _excluded11$7);
9479
+ props = _objectWithoutProperties(_ref13, _excluded11$8);
9453
9480
 
9454
9481
  var path = "/API/item/".concat(itemId, "/relation");
9455
9482
  return vFetch(_objectSpread$B({
@@ -10756,7 +10783,8 @@ var _excluded$w = ["itemListDocument"],
10756
10783
  _excluded7$a = ["libraryId", "metadataDocument"],
10757
10784
  _excluded8$9 = ["libraryId"],
10758
10785
  _excluded9$9 = ["libraryId", "librarySettingsDocument"],
10759
- _excluded10$7 = ["libraryId"];
10786
+ _excluded10$7 = ["libraryId"],
10787
+ _excluded11$7 = ["libraryId", "queryParams"];
10760
10788
 
10761
10789
  function ownKeys$x(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10762
10790
 
@@ -11048,6 +11076,31 @@ function getLibraryBatch(_ref12) {
11048
11076
  method: 'POST'
11049
11077
  }, props));
11050
11078
  }
11079
+ /**
11080
+ * {@link https://apidoc.vidispine.com/latest/ref/item/export.html?#start-an-export-job-for-a-collection-or-a-library APIdoc}
11081
+ *
11082
+ * @function library.exportCollection
11083
+ * @param {Object} obj
11084
+ * @param {string} obj.libraryId
11085
+ * @param {string} obj.queryParams
11086
+ * @returns {Promise<Object>}
11087
+ */
11088
+
11089
+
11090
+ function exportLibrary(_ref13) {
11091
+ var _ref13$libraryId = _ref13.libraryId,
11092
+ libraryId = _ref13$libraryId === void 0 ? isRequired() : _ref13$libraryId,
11093
+ _ref13$queryParams = _ref13.queryParams,
11094
+ queryParams = _ref13$queryParams === void 0 ? isRequired() : _ref13$queryParams,
11095
+ props = _objectWithoutProperties(_ref13, _excluded11$7);
11096
+
11097
+ var path = "/API/library/".concat(libraryId, "/export");
11098
+ return vFetch(_objectSpread$x({
11099
+ path: path,
11100
+ method: 'POST',
11101
+ queryParams: queryParams
11102
+ }, props));
11103
+ }
11051
11104
 
11052
11105
  var library = {
11053
11106
  listLibrary: listLibrary,
@@ -11061,7 +11114,8 @@ var library = {
11061
11114
  updateLibraryItemMetadata: updateLibraryItemMetadata,
11062
11115
  getLibrarySettings: getLibrarySettings,
11063
11116
  updateLibrarySettings: updateLibrarySettings,
11064
- getLibraryBatch: getLibraryBatch
11117
+ getLibraryBatch: getLibraryBatch,
11118
+ exportLibrary: exportLibrary
11065
11119
  };
11066
11120
 
11067
11121
  var _excluded$v = ["file", "headers"];