@eluvio/elv-client-js 4.2.30 → 4.2.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.
@@ -494,11 +494,11 @@ var EthClient = /*#__PURE__*/function () {
494
494
  key: "CallContractMethodAndWait",
495
495
  value: function () {
496
496
  var _CallContractMethodAndWait = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_ref10) {
497
- var contractAddress, abi, methodName, methodArgs, value, _ref10$overrides, overrides, timeout, _ref10$formatArgument, formatArguments, _ref10$cacheContract, cacheContract, _ref10$overrideCached, overrideCachedContract, contract, createMethodCall, interval, elapsed, methodEvent;
497
+ var contractAddress, abi, methodName, methodArgs, value, timeout, _ref10$formatArgument, formatArguments, _ref10$cacheContract, cacheContract, _ref10$overrideCached, overrideCachedContract, contract, createMethodCall, interval, elapsed, methodEvent;
498
498
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
499
499
  while (1) switch (_context7.prev = _context7.next) {
500
500
  case 0:
501
- contractAddress = _ref10.contractAddress, abi = _ref10.abi, methodName = _ref10.methodName, methodArgs = _ref10.methodArgs, value = _ref10.value, _ref10$overrides = _ref10.overrides, overrides = _ref10$overrides === void 0 ? {} : _ref10$overrides, timeout = _ref10.timeout, _ref10$formatArgument = _ref10.formatArguments, formatArguments = _ref10$formatArgument === void 0 ? true : _ref10$formatArgument, _ref10$cacheContract = _ref10.cacheContract, cacheContract = _ref10$cacheContract === void 0 ? true : _ref10$cacheContract, _ref10$overrideCached = _ref10.overrideCachedContract, overrideCachedContract = _ref10$overrideCached === void 0 ? false : _ref10$overrideCached;
501
+ contractAddress = _ref10.contractAddress, abi = _ref10.abi, methodName = _ref10.methodName, methodArgs = _ref10.methodArgs, value = _ref10.value, timeout = _ref10.timeout, _ref10$formatArgument = _ref10.formatArguments, formatArguments = _ref10$formatArgument === void 0 ? true : _ref10$formatArgument, _ref10$cacheContract = _ref10.cacheContract, cacheContract = _ref10$cacheContract === void 0 ? true : _ref10$cacheContract, _ref10$overrideCached = _ref10.overrideCachedContract, overrideCachedContract = _ref10$overrideCached === void 0 ? false : _ref10$overrideCached;
502
502
  timeout = timeout || this.timeout || 10000;
503
503
  if (abi) {
504
504
  _context7.next = 6;
@@ -524,7 +524,6 @@ var EthClient = /*#__PURE__*/function () {
524
524
  methodName: methodName,
525
525
  methodArgs: methodArgs,
526
526
  value: value,
527
- overrides: overrides,
528
527
  formatArguments: formatArguments,
529
528
  cacheContract: cacheContract
530
529
  });
@@ -449,7 +449,7 @@ var FrameClient = /*#__PURE__*/function () {
449
449
  }, {
450
450
  key: "AllowedMethods",
451
451
  value: function AllowedMethods() {
452
- return ["AccessGroupManagers", "AccessGroupMembers", "AccessGroupOwner", "AccessInfo", "AccessRequest", "AccessType", "AddAccessGroupManager", "AddAccessGroupMember", "AddContentLibraryGroup", "AddContentObjectGroupPermission", "AddLibraryContentType", "AssetMetadata", "AuditContentObject", "AuditStream", "AvailableDRMs", "AvailableOfferings", "AwaitPending", "BitmovinPlayoutOptions", "BlockNumber", "CallBitcodeMethod", "CallContractMethod", "CallContractMethodAndWait", "ClearCache", "ClearStaticToken", "Collection", "CollectionTransactions", "ConfigUrl", "ContentLibraries", "ContentLibrary", "ContentLibraryGroupPermissions", "ContentLibraryOwner", "ContentObject", "ContentObjectAccessComplete", "ContentObjectGraph", "ContentObjectGroupPermissions", "ContentObjectImageUrl", "ContentObjectLibraryId", "ContentObjectMetadata", "ContentObjectOwner", "ContentObjectTenantId", "ContentObjectVersions", "ContentObjects", "ContentPart", "ContentParts", "ContentSpaceId", "ContentType", "ContentTypeOwner", "ContentTypes", "ContractAbi", "ContractEvents", "ContractInfo", "ContractMetadata", "ContractName", "CopyContentObject", "CreateABRMezzanine", "CreateAccessGroup", "CreateAndFinalizeContentObject", "CreateAuthorizationToken", "CreateContentLibrary", "CreateContentObject", "CreateContentType", "CreateEncryptionConk", "CreateFabricToken", "CreateFileDirectories", "CreateFileUploadJob", "CreateLinks", "CreateNTPInstance", "CreateNonOwnerCap", "CreatePart", "CreatePlainToken", "CreateProductionMaster", "CreateShare", "CreateSignedMessageJSON", "CreateSignedToken", "CreateStaticToken", "CurrentAccountAddress", "CustomContractAddress", "DecodeSignedMessageJSON", "Decrypt", "DecryptECIES", "DefaultKMSAddress", "DeleteAccessGroup", "DeleteContentLibrary", "DeleteContentObject", "DeleteContentVersion", "DeleteFiles", "DeleteMetadata", "DeleteNTPInstance", "DeletePart", "DeleteWriteToken", "DeployContract", "Download", "DownloadEncrypted", "DownloadFile", "DownloadPart", "EditAndFinalizeContentObject", "EditContentObject", "EmbedUrl", "Encrypt", "EncryptECIES", "EncryptionConk", "Events", "ExtractEventFromLogs", "ExtractValueFromEvent", "FabricUrl", "FileUrl", "FinalizeABRMezzanine", "FinalizeContentObject", "FinalizePart", "FinalizeStateChannelAccess", "FinalizeUploadJob", "FormatContractArguments", "GenerateStateChannelToken", "GenerateSignedLinkToken", "GetBalance", "GlobalUrl", "InitializeAuthPolicy", "IssueNTPCode", "IssueSignedNTPCode", "LatestVersionHash", "LibraryContentTypes", "LinkAccessGroupToOauth", "LinkData", "LinkTarget", "LinkUrl", "ListAccessGroups", "ListFiles", "ListNTPInstances", "LRODraftInfo", "LROStatus", "MakeAuthServiceRequest", "MakeFileServiceRequest", "MergeContractMetadata", "MergeMetadata", "MetadataAuth", "MintNFT", "MoveFiles", "NetworkInfo", "NodeId", "Nodes", "NTPInstance", "ObjectCleanup", "OutputsCreate", "OutputsDelete", "OutputsDeleteBatch", "OutputsList", "OutputsListItem", "OutputsModify", "OutputsModifyBatch", "OutputsReset", "OutputsResolveSrtPullUrls", "OutputsState", "OutputsStop", "Permission", "PlayoutOptions", "PlayoutPathResolution", "ProduceMetadataLinks", "Proofs", "PublicRep", "PublishContentVersion", "QParts", "RecordWriteToken", "RedeemCode", "RedeemShareToken", "RemoveAccessGroupManager", "RemoveAccessGroupMember", "RemoveContentObjectGroupPermission", "RemoveContentLibraryGroup", "RemoveLibraryContentType", "Rep", "ReplaceContractMetadata", "ReplaceMetadata", "Request", "ResetRegion", "ResetTenantId", "RevokeShare", "SendFunds", "SetAccessCharge", "StreamApplyProfile", "SetAuth", "SetAuthContext", "SetAuthPolicy", "SetContentLibraryImage", "SetContentObjectImage", "SetCustomContentContract", "SetGroupPermission", "SetNodes", "SetOauthToken", "SetPolicyAuthorization", "SetSignerFromOauthToken", "SetStaticToken", "SetTenantContractId", "SetTenantId", "TenantAdminGroup", "ContentAdminGroup", "TenantUsersGroup", "SetVisibility", "SetPermission", "ShareInfo", "Shares", "SpaceNodes", "StartABRMezzanineJobs", "StreamAddWatermark", "StreamApplyProfile", "StreamAssignProfile", "StreamConfig", "StreamConfigProfile", "StreamConfigProfiles", "StreamCopyToVod", "StreamCreate", "StreamInitialize", "StreamInsertion", "StreamLinkToSite", "StreamListUrls", "StreamRemoveLinkToSite", "StreamRemoveWatermark", "StreamSaveConfigProfile", "StreamSetOfferingAndDRM", "StreamSiteSettings", "StreamStartRecording", "StreamStartOrStopOrReset", "StreamStatus", "StreamStopRecording", "StreamUnassignProfile", "StreamUpdateConfig", "SuspendNTPInstance", "TenantContractId", "TenantId", "UnlinkAccessGroupFromOauth", "UpdateContentObjectGraph", "UpdateNTPInstance", "UpdateShare", "UploadFileData", "UploadFilesFromS3", "UploadJobStatus", "UploadPart", "UploadPartChunk", "UploadStatus", "UseRegion", "Visibility", "WriteTokenNodeUrlLocal", "WriteTokenNodeUrlNetwork"];
452
+ return ["AccessGroupManagers", "AccessGroupMembers", "AccessGroupOwner", "AccessInfo", "AccessRequest", "AccessType", "AddAccessGroupManager", "AddAccessGroupMember", "AddContentLibraryGroup", "AddContentObjectGroupPermission", "AddLibraryContentType", "AssetMetadata", "AuditContentObject", "AuditStream", "AvailableDRMs", "AvailableOfferings", "AwaitPending", "BitmovinPlayoutOptions", "BlockNumber", "CallBitcodeMethod", "CallContractMethod", "CallContractMethodAndWait", "ClearCache", "ClearStaticToken", "Collection", "CollectionTransactions", "ConfigUrl", "ContentLibraries", "ContentLibrary", "ContentLibraryGroupPermissions", "ContentLibraryOwner", "ContentObject", "ContentObjectAccessComplete", "ContentObjectGraph", "ContentObjectGroupPermissions", "ContentObjectImageUrl", "ContentObjectLibraryId", "ContentObjectMetadata", "ContentObjectOwner", "ContentObjectTenantId", "ContentObjectVersions", "ContentObjects", "ContentPart", "ContentParts", "ContentSpaceId", "ContentType", "ContentTypeOwner", "ContentTypes", "ContractAbi", "ContractEvents", "ContractInfo", "ContractMetadata", "ContractName", "CopyContentObject", "CreateABRMezzanine", "CreateAccessGroup", "CreateAndFinalizeContentObject", "CreateAuthorizationToken", "CreateContentLibrary", "CreateContentObject", "CreateContentType", "CreateEncryptionConk", "CreateFabricToken", "CreateFileDirectories", "CreateFileUploadJob", "CreateLinks", "CreateNTPInstance", "CreateNonOwnerCap", "CreatePart", "CreateProductionMaster", "CreateShare", "CreateSignedMessageJSON", "CreateSignedToken", "CreateStaticToken", "CurrentAccountAddress", "CustomContractAddress", "DecodeSignedMessageJSON", "Decrypt", "DecryptECIES", "DefaultKMSAddress", "DeleteAccessGroup", "DeleteContentLibrary", "DeleteContentObject", "DeleteContentVersion", "DeleteFiles", "DeleteMetadata", "DeleteNTPInstance", "DeletePart", "DeleteWriteToken", "DeployContract", "Download", "DownloadEncrypted", "DownloadFile", "DownloadPart", "EditAndFinalizeContentObject", "EditContentObject", "EmbedUrl", "Encrypt", "EncryptECIES", "EncryptionConk", "Events", "ExtractEventFromLogs", "ExtractValueFromEvent", "FabricUrl", "FileUrl", "FinalizeABRMezzanine", "FinalizeContentObject", "FinalizePart", "FinalizeStateChannelAccess", "FinalizeUploadJob", "FormatContractArguments", "GenerateStateChannelToken", "GenerateSignedLinkToken", "GetBalance", "GlobalUrl", "InitializeAuthPolicy", "IssueNTPCode", "IssueSignedNTPCode", "LatestVersionHash", "LibraryContentTypes", "LinkAccessGroupToOauth", "LinkData", "LinkTarget", "LinkUrl", "ListAccessGroups", "ListFiles", "ListNTPInstances", "LRODraftInfo", "LROStatus", "MakeAuthServiceRequest", "MakeFileServiceRequest", "MergeContractMetadata", "MergeMetadata", "MetadataAuth", "MintNFT", "MoveFiles", "NetworkInfo", "NodeId", "Nodes", "NTPInstance", "ObjectCleanup", "OutputsCreate", "OutputsDelete", "OutputsDeleteBatch", "OutputsList", "OutputsListItem", "OutputsModify", "OutputsModifyBatch", "OutputsReset", "OutputsResolveSrtPullUrls", "OutputsState", "OutputsStop", "Permission", "PlayoutOptions", "PlayoutPathResolution", "ProduceMetadataLinks", "Proofs", "PublicRep", "PublishContentVersion", "QParts", "RecordWriteToken", "RedeemCode", "RedeemShareToken", "RemoveAccessGroupManager", "RemoveAccessGroupMember", "RemoveContentObjectGroupPermission", "RemoveContentLibraryGroup", "RemoveLibraryContentType", "Rep", "ReplaceContractMetadata", "ReplaceMetadata", "Request", "ResetRegion", "ResetTenantId", "RevokeShare", "SendFunds", "SetAccessCharge", "StreamApplyProfile", "SetAuth", "SetAuthContext", "SetAuthPolicy", "SetContentLibraryImage", "SetContentObjectImage", "SetCustomContentContract", "SetGroupPermission", "SetNodes", "SetOauthToken", "SetPolicyAuthorization", "SetSignerFromOauthToken", "SetStaticToken", "SetTenantContractId", "SetTenantId", "TenantAdminGroup", "ContentAdminGroup", "TenantUsersGroup", "SetVisibility", "SetPermission", "ShareInfo", "Shares", "SpaceNodes", "StartABRMezzanineJobs", "StreamAddWatermark", "StreamApplyProfile", "StreamAssignProfile", "StreamConfig", "StreamConfigProfile", "StreamConfigProfiles", "StreamCopyToVod", "StreamCreate", "StreamInitialize", "StreamInsertion", "StreamLinkToSite", "StreamListUrls", "StreamRemoveLinkToSite", "StreamRemoveWatermark", "StreamSaveConfigProfile", "StreamSetOfferingAndDRM", "StreamSiteSettings", "StreamStartRecording", "StreamStartOrStopOrReset", "StreamStatus", "StreamStopRecording", "StreamUnassignProfile", "StreamUpdateConfig", "SuspendNTPInstance", "TenantContractId", "TenantId", "UnlinkAccessGroupFromOauth", "UpdateContentObjectGraph", "UpdateNTPInstance", "UpdateShare", "UploadFileData", "UploadFilesFromS3", "UploadJobStatus", "UploadPart", "UploadPartChunk", "UploadStatus", "UseRegion", "Visibility", "WriteTokenNodeUrlLocal", "WriteTokenNodeUrlNetwork"];
453
453
  }
454
454
  }, {
455
455
  key: "AllowedUserProfileMethods",
@@ -84,11 +84,6 @@ var MezJobMainOfferingKey = function MezJobMainOfferingKey(abrMezOfferings) {
84
84
  * - ...
85
85
  * - ]
86
86
  * -
87
- * - For a presigned URL, `path` and `storage_endpoint` are not required and `cloud_credentials` should be:
88
- * - {
89
- * - signed_url: "YOUR_PRESIGNED_S3_URL"
90
- * - }
91
- * -
92
87
  * - The simplest case is a one element array with .path_matchers == [".*"], in which case the same credentials will be used for all items in fileInfo
93
88
  *
94
89
  * @throws {Object} error - If the initialization of the master fails, error details can be found in error.body
@@ -96,7 +91,7 @@ var MezJobMainOfferingKey = function MezJobMainOfferingKey(abrMezOfferings) {
96
91
  */
97
92
  exports.CreateProductionMaster = /*#__PURE__*/function () {
98
93
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
99
- var libraryId, type, writeToken, name, description, _ref$metadata, metadata, fileInfo, _ref$encrypt, encrypt, _ref$access, access, _ref$copy, copy, callback, _ref$respLogLevel, respLogLevel, _ref$structLogLevel, structLogLevel, objectId, finalize, _yield$this$CreateCon, s3prefixRegex, i, oneFileInfo, matched, j, credentialSet, remoteAccess, credentialSetBucket, matchers, k, matcher, fileSourcePath, s3prefixMatch, bucketName, _i, _credentialSet, _remoteAccess, cloudCredentials, region, bucket, accessKey, secret, signedUrl, _yield$this$CallBitco, logs, errors, warnings, mergeMetadata, additionalReturnVals;
94
+ var libraryId, type, writeToken, name, description, _ref$metadata, metadata, fileInfo, _ref$encrypt, encrypt, _ref$access, access, _ref$copy, copy, callback, _ref$respLogLevel, respLogLevel, _ref$structLogLevel, structLogLevel, objectId, finalize, _yield$this$CreateCon, s3prefixRegex, i, oneFileInfo, matched, j, credentialSet, credentialSetBucket, matchers, k, matcher, fileSourcePath, s3prefixMatch, bucketName, _i, _credentialSet, region, bucket, accessKey, secret, _yield$this$CallBitco, logs, errors, warnings, additionalReturnVals;
100
95
  return _regeneratorRuntime.wrap(function _callee$(_context) {
101
96
  while (1) switch (_context.prev = _context.next) {
102
97
  case 0:
@@ -125,11 +120,11 @@ exports.CreateProductionMaster = /*#__PURE__*/function () {
125
120
  writeToken = _yield$this$CreateCon.writeToken;
126
121
  case 12:
127
122
  if (!fileInfo) {
128
- _context.next = 68;
123
+ _context.next = 64;
129
124
  break;
130
125
  }
131
126
  if (!(access.length > 0)) {
132
- _context.next = 66;
127
+ _context.next = 62;
133
128
  break;
134
129
  }
135
130
  // S3 Upload
@@ -138,7 +133,7 @@ exports.CreateProductionMaster = /*#__PURE__*/function () {
138
133
  i = 0;
139
134
  case 16:
140
135
  if (!(i < fileInfo.length)) {
141
- _context.next = 48;
136
+ _context.next = 47;
142
137
  break;
143
138
  }
144
139
  oneFileInfo = fileInfo[i];
@@ -146,39 +141,38 @@ exports.CreateProductionMaster = /*#__PURE__*/function () {
146
141
  j = 0;
147
142
  case 20:
148
143
  if (!(!matched && j < access.length)) {
149
- _context.next = 43;
144
+ _context.next = 42;
150
145
  break;
151
146
  }
152
- credentialSet = access[j];
153
- remoteAccess = credentialSet.remote_access; // strip trailing slash to get bucket name for credential set
154
- credentialSetBucket = remoteAccess.path ? remoteAccess.path.replace(/\/$/, "") : undefined;
147
+ credentialSet = access[j]; // strip trailing slash to get bucket name for credential set
148
+ credentialSetBucket = credentialSet.remote_access.path.replace(/\/$/, "");
155
149
  matchers = credentialSet.path_matchers;
156
150
  k = 0;
157
- case 26:
151
+ case 25:
158
152
  if (!(!matched && k < matchers.length)) {
159
- _context.next = 40;
153
+ _context.next = 39;
160
154
  break;
161
155
  }
162
156
  matcher = new RegExp(matchers[k]);
163
157
  fileSourcePath = oneFileInfo.source;
164
158
  if (!matcher.test(fileSourcePath)) {
165
- _context.next = 37;
159
+ _context.next = 36;
166
160
  break;
167
161
  }
168
162
  matched = true;
169
163
  // if full s3 path supplied, check bucket name
170
164
  s3prefixMatch = s3prefixRegex.exec(fileSourcePath);
171
165
  if (!s3prefixMatch) {
172
- _context.next = 36;
166
+ _context.next = 35;
173
167
  break;
174
168
  }
175
169
  bucketName = s3prefixMatch[1];
176
- if (!(credentialSetBucket && bucketName !== credentialSetBucket)) {
177
- _context.next = 36;
170
+ if (!(bucketName !== credentialSetBucket)) {
171
+ _context.next = 35;
178
172
  break;
179
173
  }
180
174
  throw Error("Full S3 file path \"" + fileSourcePath + "\" matched to credential set with different bucket name '" + credentialSetBucket + "'");
181
- case 36:
175
+ case 35:
182
176
  if (credentialSet.hasOwnProperty("matched")) {
183
177
  credentialSet.matched.push(oneFileInfo);
184
178
  } else {
@@ -186,44 +180,41 @@ exports.CreateProductionMaster = /*#__PURE__*/function () {
186
180
  // initialize new 'matched' property to 1-element array
187
181
  credentialSet.matched = [oneFileInfo];
188
182
  }
189
- case 37:
183
+ case 36:
190
184
  k++;
191
- _context.next = 26;
185
+ _context.next = 25;
192
186
  break;
193
- case 40:
187
+ case 39:
194
188
  j++;
195
189
  _context.next = 20;
196
190
  break;
197
- case 43:
191
+ case 42:
198
192
  if (matched) {
199
- _context.next = 45;
193
+ _context.next = 44;
200
194
  break;
201
195
  }
202
- throw Error("no credential set found for file path: \"" + oneFileInfo.source + "\"");
203
- case 45:
196
+ throw Error("no credential set found for file path: \"" + filePath + "\"");
197
+ case 44:
204
198
  i++;
205
199
  _context.next = 16;
206
200
  break;
207
- case 48:
201
+ case 47:
208
202
  _i = 0;
209
- case 49:
203
+ case 48:
210
204
  if (!(_i < access.length)) {
211
- _context.next = 64;
205
+ _context.next = 60;
212
206
  break;
213
207
  }
214
208
  _credentialSet = access[_i];
215
209
  if (!(_credentialSet.hasOwnProperty("matched") && _credentialSet.matched.length > 0)) {
216
- _context.next = 61;
210
+ _context.next = 57;
217
211
  break;
218
212
  }
219
- _remoteAccess = _credentialSet.remote_access;
220
- cloudCredentials = _remoteAccess.cloud_credentials;
221
- region = _remoteAccess.storage_endpoint && _remoteAccess.storage_endpoint.region;
222
- bucket = _remoteAccess.path && _remoteAccess.path.replace(/\/$/, "");
223
- accessKey = cloudCredentials.access_key_id;
224
- secret = cloudCredentials.secret_access_key;
225
- signedUrl = cloudCredentials.signed_url;
226
- _context.next = 61;
213
+ region = _credentialSet.remote_access.storage_endpoint.region;
214
+ bucket = _credentialSet.remote_access.path.replace(/\/$/, "");
215
+ accessKey = _credentialSet.remote_access.cloud_credentials.access_key_id;
216
+ secret = _credentialSet.remote_access.cloud_credentials.secret_access_key;
217
+ _context.next = 57;
227
218
  return this.UploadFilesFromS3({
228
219
  libraryId: libraryId,
229
220
  objectId: objectId,
@@ -233,20 +224,19 @@ exports.CreateProductionMaster = /*#__PURE__*/function () {
233
224
  bucket: bucket,
234
225
  accessKey: accessKey,
235
226
  secret: secret,
236
- signedUrl: signedUrl,
237
227
  copy: copy,
238
228
  callback: callback,
239
229
  encryption: encrypt ? "cgck" : "none"
240
230
  });
241
- case 61:
231
+ case 57:
242
232
  _i++;
243
- _context.next = 49;
233
+ _context.next = 48;
244
234
  break;
245
- case 64:
246
- _context.next = 68;
235
+ case 60:
236
+ _context.next = 64;
247
237
  break;
248
- case 66:
249
- _context.next = 68;
238
+ case 62:
239
+ _context.next = 64;
250
240
  return this.UploadFiles({
251
241
  libraryId: libraryId,
252
242
  objectId: objectId,
@@ -255,16 +245,16 @@ exports.CreateProductionMaster = /*#__PURE__*/function () {
255
245
  callback: callback,
256
246
  encryption: encrypt ? "cgck" : "none"
257
247
  });
258
- case 68:
259
- _context.next = 70;
248
+ case 64:
249
+ _context.next = 66;
260
250
  return this.CreateEncryptionConk({
261
251
  libraryId: libraryId,
262
252
  objectId: objectId,
263
253
  writeToken: writeToken,
264
254
  createKMSConk: true
265
255
  });
266
- case 70:
267
- _context.next = 72;
256
+ case 66:
257
+ _context.next = 68;
268
258
  return this.CallBitcodeMethod({
269
259
  libraryId: libraryId,
270
260
  objectId: objectId,
@@ -279,34 +269,33 @@ exports.CreateProductionMaster = /*#__PURE__*/function () {
279
269
  },
280
270
  constant: false
281
271
  });
282
- case 72:
272
+ case 68:
283
273
  _yield$this$CallBitco = _context.sent;
284
274
  logs = _yield$this$CallBitco.logs;
285
275
  errors = _yield$this$CallBitco.errors;
286
276
  warnings = _yield$this$CallBitco.warnings;
287
- mergeMetadata = _objectSpread(_objectSpread({}, metadata || {}), {}, {
288
- name: name !== undefined ? name : (metadata || {}).name,
289
- description: description !== undefined ? description : (metadata || {}).description,
290
- reference: access && !copy,
291
- "public": _objectSpread(_objectSpread({}, (metadata || {})["public"] || {}), {}, {
292
- name: name !== undefined ? name : ((metadata || {})["public"] || {}).name,
293
- description: description !== undefined ? description : ((metadata || {})["public"] || {}).description
294
- }),
295
- elv_created_at: new Date().getTime()
296
- });
297
- _context.next = 79;
277
+ _context.next = 74;
298
278
  return this.MergeMetadata({
299
279
  libraryId: libraryId,
300
280
  objectId: objectId,
301
281
  writeToken: writeToken,
302
- metadata: mergeMetadata
282
+ metadata: _objectSpread(_objectSpread({}, metadata || {}), {}, {
283
+ name: name,
284
+ description: description,
285
+ reference: access && !copy,
286
+ "public": _objectSpread(_objectSpread({}, (metadata || {})["public"] || {}), {}, {
287
+ name: name || "",
288
+ description: description || ""
289
+ }),
290
+ elv_created_at: new Date().getTime()
291
+ })
303
292
  });
304
- case 79:
293
+ case 74:
305
294
  if (!finalize) {
306
- _context.next = 85;
295
+ _context.next = 80;
307
296
  break;
308
297
  }
309
- _context.next = 82;
298
+ _context.next = 77;
310
299
  return this.FinalizeContentObject({
311
300
  libraryId: libraryId,
312
301
  objectId: objectId,
@@ -314,24 +303,24 @@ exports.CreateProductionMaster = /*#__PURE__*/function () {
314
303
  commitMessage: "Create master",
315
304
  awaitCommitConfirmation: false
316
305
  });
317
- case 82:
306
+ case 77:
318
307
  additionalReturnVals = _context.sent;
319
- _context.next = 86;
308
+ _context.next = 81;
320
309
  break;
321
- case 85:
310
+ case 80:
322
311
  additionalReturnVals = {
323
312
  write_token: writeToken,
324
313
  type: type,
325
314
  qlib_id: libraryId,
326
315
  id: objectId
327
316
  };
328
- case 86:
317
+ case 81:
329
318
  return _context.abrupt("return", _objectSpread({
330
319
  errors: errors || [],
331
320
  logs: logs || [],
332
321
  warnings: warnings || []
333
322
  }, additionalReturnVals));
334
- case 87:
323
+ case 82:
335
324
  case "end":
336
325
  return _context.stop();
337
326
  }