@eluvio/elv-client-js 3.1.80 → 3.1.81

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.
@@ -1326,13 +1326,13 @@ exports.ContentObjectLibraryId = function _callee19(_ref14) {
1326
1326
  exports.ProduceMetadataLinks = function _callee22(_ref15) {
1327
1327
  var _this7 = this;
1328
1328
 
1329
- var libraryId, objectId, versionHash, _ref15$path, path, metadata, authorizationToken, result;
1329
+ var libraryId, objectId, versionHash, _ref15$path, path, metadata, authorizationToken, noAuth, result;
1330
1330
 
1331
1331
  return _regeneratorRuntime.async(function _callee22$(_context22) {
1332
1332
  while (1) {
1333
1333
  switch (_context22.prev = _context22.next) {
1334
1334
  case 0:
1335
- libraryId = _ref15.libraryId, objectId = _ref15.objectId, versionHash = _ref15.versionHash, _ref15$path = _ref15.path, path = _ref15$path === void 0 ? "/" : _ref15$path, metadata = _ref15.metadata, authorizationToken = _ref15.authorizationToken;
1335
+ libraryId = _ref15.libraryId, objectId = _ref15.objectId, versionHash = _ref15.versionHash, _ref15$path = _ref15.path, path = _ref15$path === void 0 ? "/" : _ref15$path, metadata = _ref15.metadata, authorizationToken = _ref15.authorizationToken, noAuth = _ref15.noAuth;
1336
1336
 
1337
1337
  if (!(!metadata || _typeof(metadata) !== "object")) {
1338
1338
  _context22.next = 3;
@@ -1360,7 +1360,8 @@ exports.ProduceMetadataLinks = function _callee22(_ref15) {
1360
1360
  versionHash: versionHash,
1361
1361
  path: UrlJoin(path, i.toString()),
1362
1362
  metadata: entry,
1363
- authorizationToken: authorizationToken
1363
+ authorizationToken: authorizationToken,
1364
+ noAuth: noAuth
1364
1365
  }));
1365
1366
 
1366
1367
  case 2:
@@ -1417,7 +1418,8 @@ exports.ProduceMetadataLinks = function _callee22(_ref15) {
1417
1418
  versionHash: versionHash,
1418
1419
  path: UrlJoin(path, key),
1419
1420
  metadata: metadata[key],
1420
- authorizationToken: authorizationToken
1421
+ authorizationToken: authorizationToken,
1422
+ noAuth: noAuth
1421
1423
  }));
1422
1424
 
1423
1425
  case 2:
@@ -1740,7 +1742,8 @@ exports.ContentObjectMetadata = function _callee24(_ref17) {
1740
1742
  versionHash: versionHash,
1741
1743
  path: metadataSubtree,
1742
1744
  metadata: metadata,
1743
- authorizationToken: authorizationToken
1745
+ authorizationToken: authorizationToken,
1746
+ noAuth: noAuth
1744
1747
  }));
1745
1748
 
1746
1749
  case 26:
@@ -1780,13 +1783,13 @@ exports.ContentObjectMetadata = function _callee24(_ref17) {
1780
1783
  exports.AssetMetadata = function _callee25(_ref18) {
1781
1784
  var _this8 = this;
1782
1785
 
1783
- var libraryId, objectId, versionHash, metadata, localization, _ref18$produceLinkUrl, produceLinkUrls, mergedMetadata;
1786
+ var libraryId, objectId, versionHash, metadata, localization, noAuth, _ref18$produceLinkUrl, produceLinkUrls, mergedMetadata;
1784
1787
 
1785
1788
  return _regeneratorRuntime.async(function _callee25$(_context25) {
1786
1789
  while (1) {
1787
1790
  switch (_context25.prev = _context25.next) {
1788
1791
  case 0:
1789
- libraryId = _ref18.libraryId, objectId = _ref18.objectId, versionHash = _ref18.versionHash, metadata = _ref18.metadata, localization = _ref18.localization, _ref18$produceLinkUrl = _ref18.produceLinkUrls, produceLinkUrls = _ref18$produceLinkUrl === void 0 ? false : _ref18$produceLinkUrl;
1792
+ libraryId = _ref18.libraryId, objectId = _ref18.objectId, versionHash = _ref18.versionHash, metadata = _ref18.metadata, localization = _ref18.localization, noAuth = _ref18.noAuth, _ref18$produceLinkUrl = _ref18.produceLinkUrls, produceLinkUrls = _ref18$produceLinkUrl === void 0 ? false : _ref18$produceLinkUrl;
1790
1793
  ValidateParameters({
1791
1794
  libraryId: libraryId,
1792
1795
  objectId: objectId,
@@ -1811,7 +1814,8 @@ exports.AssetMetadata = function _callee25(_ref18) {
1811
1814
  resolveLinks: true,
1812
1815
  linkDepthLimit: 2,
1813
1816
  resolveIgnoreErrors: true,
1814
- produceLinkUrls: produceLinkUrls
1817
+ produceLinkUrls: produceLinkUrls,
1818
+ noAuth: noAuth
1815
1819
  }));
1816
1820
 
1817
1821
  case 6:
@@ -1841,7 +1845,8 @@ exports.AssetMetadata = function _callee25(_ref18) {
1841
1845
  objectId: objectId,
1842
1846
  versionHash: versionHash,
1843
1847
  path: UrlJoin("public", "asset_metadata"),
1844
- metadata: metadata
1848
+ metadata: metadata,
1849
+ noAuth: noAuth
1845
1850
  }));
1846
1851
 
1847
1852
  case 15:
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "3.1.80",
3
+ "version": "3.1.81",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "3.1.80",
3
+ "version": "3.1.81",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/ElvClient.js",
6
6
  "author": "Kevin Talmadge",
@@ -703,7 +703,8 @@ exports.ProduceMetadataLinks = async function({
703
703
  versionHash,
704
704
  path="/",
705
705
  metadata,
706
- authorizationToken
706
+ authorizationToken,
707
+ noAuth
707
708
  }) {
708
709
  // Primitive
709
710
  if(!metadata || typeof metadata !== "object") { return metadata; }
@@ -719,7 +720,8 @@ exports.ProduceMetadataLinks = async function({
719
720
  versionHash,
720
721
  path: UrlJoin(path, i.toString()),
721
722
  metadata: entry,
722
- authorizationToken
723
+ authorizationToken,
724
+ noAuth
723
725
  })
724
726
  );
725
727
  }
@@ -747,7 +749,8 @@ exports.ProduceMetadataLinks = async function({
747
749
  versionHash,
748
750
  path: UrlJoin(path, key),
749
751
  metadata: metadata[key],
750
- authorizationToken
752
+ authorizationToken,
753
+ noAuth
751
754
  });
752
755
  }
753
756
  );
@@ -924,7 +927,8 @@ exports.ContentObjectMetadata = async function({
924
927
  versionHash,
925
928
  path: metadataSubtree,
926
929
  metadata,
927
- authorizationToken
930
+ authorizationToken,
931
+ noAuth
928
932
  });
929
933
  };
930
934
 
@@ -951,7 +955,7 @@ exports.ContentObjectMetadata = async function({
951
955
  * @param {boolean=} produceLinkUrls=false - If specified, file and rep links will automatically be populated with a
952
956
  * full URL
953
957
  */
954
- exports.AssetMetadata = async function({libraryId, objectId, versionHash, metadata, localization, produceLinkUrls=false}) {
958
+ exports.AssetMetadata = async function({libraryId, objectId, versionHash, metadata, localization, noAuth, produceLinkUrls=false}) {
955
959
  ValidateParameters({libraryId, objectId, versionHash});
956
960
 
957
961
  if(!objectId) {
@@ -967,7 +971,8 @@ exports.AssetMetadata = async function({libraryId, objectId, versionHash, metada
967
971
  resolveLinks: true,
968
972
  linkDepthLimit: 2,
969
973
  resolveIgnoreErrors: true,
970
- produceLinkUrls
974
+ produceLinkUrls,
975
+ noAuth
971
976
  })) || {};
972
977
  } else if(produceLinkUrls) {
973
978
  metadata = await this.ProduceMetadataLinks({
@@ -975,7 +980,8 @@ exports.AssetMetadata = async function({libraryId, objectId, versionHash, metada
975
980
  objectId,
976
981
  versionHash,
977
982
  path: UrlJoin("public", "asset_metadata"),
978
- metadata
983
+ metadata,
984
+ noAuth
979
985
  });
980
986
  }
981
987
 
@@ -51,8 +51,7 @@ const eventSiteSpec = {
51
51
  },
52
52
  {
53
53
  "name": "tenant_slug",
54
- "type": "text",
55
- "required": true,
54
+ "type": "text"
56
55
  },
57
56
  {
58
57
  "name": "marketplace_info",
@@ -299,6 +298,12 @@ const eventSiteSpec = {
299
298
  "type": "fabric_link",
300
299
  "video_preview": true
301
300
  },
301
+ {
302
+ "name": "hero_video_mobile",
303
+ "label": "Hero Video (Mobile)",
304
+ "type": "fabric_link",
305
+ "video_preview": true
306
+ },
302
307
  {
303
308
  "extensions": imageTypes,
304
309
  "label": "Header Image (Dark)",
@@ -323,64 +328,54 @@ const eventSiteSpec = {
323
328
  "type": "file",
324
329
  "label": "Main Logo (TV)"
325
330
  },
326
- {
327
- "name": "main_page_banner",
328
- "type": "subsection",
329
- "fields": [
330
- {
331
- "name": "show",
332
- "type": "checkbox"
333
- },
334
- {
335
- "extensions": imageTypes,
336
- "name": "image",
337
- "type": "file",
338
- "depends_on": "./show"
339
- },
340
- {
341
- "extensions": imageTypes,
342
- "name": "image_mobile",
343
- "label": "Image (Mobile)",
344
- "type": "file",
345
- "depends_on": "./show"
346
- },
347
- {
348
- "name": "type",
349
- "type": "select",
350
- "options": [
351
- "drop",
352
- "marketplace",
353
- "link"
354
- ],
355
- "default_value": "marketplace",
356
- "hint": "Specify what happens when clicking on the banner. The banner can link to a URL or a drop, or it can open the marketplace view.",
357
- "depends_on": "./show"
358
- },
359
- {
360
- "name": "marketplace_filters",
361
- "type": "list",
362
- "hint": "If the banner links to the marketplace, you can specify filters to apply when the marketplace is opened via the banner.",
363
- "depends_on": "./show"
364
- },
365
- {
366
- "name": "link",
367
- "type": "text",
368
- "hint": "If the banner is a link, specify the URL to link to.",
369
- "depends_on": "./show"
370
- },
371
- {
372
- "label": "Drop UUID",
373
- "name": "drop_uuid",
374
- "type": "text",
375
- "hint": "If the banner links to a drop, you can specify a specific drop to link to. If not specified, the banner will link to the next upcoming drop.",
376
- "depends_on": "./show"
377
- }
378
- ]
379
- }
380
331
  ],
381
332
  "name": "event_images",
382
333
  "type": "subsection"
383
334
  },
335
+ {
336
+ "name": "main_page_banners",
337
+ "type": "list",
338
+ "fields": [
339
+ {
340
+ "extensions": imageTypes,
341
+ "name": "image",
342
+ "type": "file",
343
+ },
344
+ {
345
+ "extensions": imageTypes,
346
+ "name": "image_mobile",
347
+ "label": "Image (Mobile)",
348
+ "type": "file",
349
+ },
350
+ {
351
+ "name": "type",
352
+ "type": "select",
353
+ "options": [
354
+ "drop",
355
+ "marketplace",
356
+ "link"
357
+ ],
358
+ "default_value": "marketplace",
359
+ "hint": "Specify what happens when clicking on the banner. The banner can link to a URL or a drop, or it can open the marketplace view.",
360
+ },
361
+ {
362
+ "name": "marketplace_filters",
363
+ "type": "list",
364
+ "hint": "If the banner links to the marketplace, you can specify filters to apply when the marketplace is opened via the banner.",
365
+ },
366
+ {
367
+ "name": "link",
368
+ "type": "text",
369
+ "hint": "If the banner is a link, specify the URL to link to.",
370
+ },
371
+ {
372
+ "label": "Drop UUID",
373
+ "name": "drop_uuid",
374
+ "type": "text",
375
+ "hint": "If the banner links to a drop, you can specify a specific drop to link to. If not specified, the banner will link to the next upcoming drop.",
376
+ }
377
+ ]
378
+ },
384
379
  {
385
380
  "name": "promo_videos",
386
381
  "type": "list",
@@ -32,88 +32,58 @@ const MarketplaceSpec = {
32
32
  "type": "subsection",
33
33
  "fields": [
34
34
  {
35
- "name": "discovery",
36
- "type": "subsection",
37
- "hint": "These attributes will be used to display your marketplace in the list of available marketplaces",
38
- "fields": [
39
- {
40
- "name": "name",
41
- "type": "text"
42
- },
43
- {
44
- "name": "subheader",
45
- "type": "text",
46
- "default_value": "Marketplace"
47
- },
48
- {
49
- "name": "description",
50
- "type": "textarea"
51
- },
52
- {
53
- "name": "round_logo",
54
- "extensions": imageTypes,
55
- "type": "file",
56
- "hint": "This logo will be displayed in the list of available marketplaces"
57
- },
58
- {
59
- "name": "card_banner",
60
- "extensions": imageTypes,
61
- "type": "file",
62
- "hint": "This logo will be displayed in the list of available marketplaces. It should be roughly 2:1 aspect ratio."
63
- },
64
- {
65
- "name": "tags",
66
- "type": "multiselect",
67
- "hint": "These tags will be used to help users discover your marketplace based on their interests.",
68
- "options": [
69
- "Film",
70
- "Music",
71
- "Software",
72
- "TV"
73
- ]
74
- }
35
+ "name": "name",
36
+ "type": "text"
37
+ },
38
+ {
39
+ "name": "subheader",
40
+ "type": "text",
41
+ "default_value": "Marketplace"
42
+ },
43
+ {
44
+ "name": "description",
45
+ "type": "textarea"
46
+ },
47
+ {
48
+ "name": "round_logo",
49
+ "extensions": imageTypes,
50
+ "type": "file",
51
+ "hint": "This logo will be displayed in the list of available marketplaces"
52
+ },
53
+ {
54
+ "name": "card_banner",
55
+ "extensions": imageTypes,
56
+ "type": "file",
57
+ "hint": "This banner will be displayed in the list of available marketplaces. It should be roughly 16:10 aspect ratio."
58
+ },
59
+ {
60
+ "name": "tags",
61
+ "type": "multiselect",
62
+ "hint": "These tags will be used to help users discover your marketplace based on their interests.",
63
+ "options": [
64
+ "Film",
65
+ "Music",
66
+ "Software",
67
+ "TV"
75
68
  ]
76
69
  },
77
70
  {
78
- "name": "marketplace",
79
- "type": "subsection",
80
- "hint": "These attributes will be used to customize the user experience when browsing your marketplace",
81
- "fields": [
82
- {
83
- "name": "name",
84
- "label": "Marketplace Name",
85
- "type": "text"
86
- },
87
- {
88
- "name": "top_banner_logo",
89
- "extensions": imageTypes,
90
- "type": "file",
91
- "hint": "This logo will be displayed at the top of the page when browsing your marketplace"
92
- },
93
- {
94
- "name": "description",
95
- "type": "textarea",
96
- "hint": "Displayed below the top banner logo"
97
- },
98
- {
99
- "name": "color_scheme",
100
- "type": "select",
101
- "default_value": "Light",
102
- "options": [
103
- "Light",
104
- "Dark",
105
- "User Preference"
106
- ]
107
- },
108
- {
109
- "name": "font",
110
- "type": "select",
111
- "options": [
112
- "Helvetica Neue",
113
- "Inter",
114
- "Selawik"
115
- ]
116
- }
71
+ "name": "color_scheme",
72
+ "type": "select",
73
+ "default_value": "Light",
74
+ "options": [
75
+ "Light",
76
+ "Dark",
77
+ "User Preference"
78
+ ]
79
+ },
80
+ {
81
+ "name": "font",
82
+ "type": "select",
83
+ "options": [
84
+ "Helvetica Neue",
85
+ "Inter",
86
+ "Selawik"
117
87
  ]
118
88
  }
119
89
  ]
@@ -206,6 +176,38 @@ const MarketplaceSpec = {
206
176
  }
207
177
  ]
208
178
  },
179
+ {
180
+ "name": "require_consent",
181
+ "type": "checkbox",
182
+ "default_value": false
183
+ },
184
+ {
185
+ "name": "consent_form_text",
186
+ "type": "rich_text"
187
+ },
188
+ {
189
+ "name": "privacy_policy",
190
+ "type": "subsection",
191
+ "fields": [
192
+ {
193
+ "name": "link",
194
+ "type": "text",
195
+ "hint": "Specify a URL to your privacy policy"
196
+ },
197
+ {
198
+ "name": "rich_text",
199
+ "type": "rich_text",
200
+ "hint": "Input your privacy policy in the text editor"
201
+ },
202
+ {
203
+ "name": "html",
204
+ "label": "HTML",
205
+ "type": "file",
206
+ "hint": "Input your privacy policy as an HTML file",
207
+ "extensions": ["html"]
208
+ }
209
+ ]
210
+ },
209
211
  {
210
212
  "name": "require_email_verification",
211
213
  "type": "checkbox",
@@ -234,7 +236,7 @@ const MarketplaceSpec = {
234
236
  "label": "Terms and Conditions (HTML)",
235
237
  "name": "terms_html",
236
238
  "type": "file",
237
- "extensions": [".html"]
239
+ "extensions": ["html"]
238
240
  },
239
241
 
240
242
 
@@ -287,6 +289,12 @@ const MarketplaceSpec = {
287
289
  "type": "checkbox",
288
290
  "default_value": true
289
291
  },
292
+ {
293
+ "label": "Release date",
294
+ "name": "available_at",
295
+ "type": "datetime",
296
+ "hint": "(Optional) - If specified, this item will not be available for purchase until the specified time"
297
+ },
290
298
  {
291
299
  "name": "requires_permissions",
292
300
  "type": "checkbox",