@nomad-media/full 1.1.16 → 1.1.18

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.
@@ -286,6 +286,11 @@ class NomadMediaSDK {
286
286
  this.id = null
287
287
  this.debugMode = config.debugMode || false;
288
288
 
289
+ if (this.config.serviceApiUrl[this.config.serviceApiUrl.length - 1] === "/")
290
+ {
291
+ this.config.serviceApiUrl = this.config.serviceApiUrl.slice(0, -1);
292
+ }
293
+
289
294
  NomadMediaSDK.instance = this;
290
295
 
291
296
  return this;
@@ -641,7 +646,7 @@ class NomadMediaSDK {
641
646
  {
642
647
  const AUDIT_INFO = await _getAudit(this, this.token, this.config.serviceApiUrl, CONTENT_ID,
643
648
  this.debugMode);
644
- _printDatetime(`Audit retrieved for ${CONTENT_ID}`);
649
+ if (AUDIT_INFO) _printDatetime(`Audit retrieved for ${CONTENT_ID}`);
645
650
  return AUDIT_INFO;
646
651
  }
647
652
  catch (error)
@@ -716,7 +721,7 @@ class NomadMediaSDK {
716
721
  {
717
722
  const CONFIG_INFO = await _getConfig(this, this.token, this.config.serviceApiUrl, CONFIG_TYPE,
718
723
  this.debugMode);
719
- _printDatetime(`Config retrieved`);
724
+ if (CONFIG_INFO) _printDatetime(`Config retrieved`);
720
725
  return CONFIG_INFO;
721
726
  }
722
727
  catch (error)
@@ -753,7 +758,7 @@ class NomadMediaSDK {
753
758
  {
754
759
  const SERVER_TIME_INFO = await _getServerTime(this, this.token, this.config.serviceApiUrl,
755
760
  this.debugMode);
756
- _printDatetime(`Server time retrieved`);
761
+ if (SERVER_TIME_INFO) _printDatetime(`Server time retrieved`);
757
762
  return SERVER_TIME_INFO;
758
763
  }
759
764
  catch (error)
@@ -794,7 +799,7 @@ class NomadMediaSDK {
794
799
  {
795
800
  const CREATE_CONTENT_INFO = await _createContent(this, this.token, this.config.serviceApiUrl,
796
801
  CONTENT_DEFINITION_ID, LANGUAGE_ID, this.debugMode);
797
- _printDatetime(`Content created: ${CREATE_CONTENT_INFO["contentId"]}`);
802
+ if (CREATE_CONTENT_INFO) _printDatetime(`Content created: ${CREATE_CONTENT_INFO["contentId"]}`);
798
803
  return CREATE_CONTENT_INFO;
799
804
  }
800
805
  catch (error)
@@ -913,7 +918,7 @@ class NomadMediaSDK {
913
918
  {
914
919
  const GET_CONTENT_INFO = await _getContent(this, this.token, this.config.serviceApiUrl,
915
920
  CONTENT_ID, CONTENT_DEFINITION_ID, IS_REVISION, this.debugMode);
916
- _printDatetime(`Content retrieved: ${CONTENT_ID}`);
921
+ if (GET_CONTENT_INFO) _printDatetime(`Content retrieved: ${CONTENT_ID}`);
917
922
  return GET_CONTENT_INFO;
918
923
  }
919
924
  catch (error)
@@ -962,7 +967,7 @@ class NomadMediaSDK {
962
967
  const CONTENT_USER_TRACK_INFO = await _getContentUserTrack(this, this.token,
963
968
  this.config.serviceApiUrl, CONTENT_ID, CONTENT_DEFINITION_ID, SORT_COLUMN, IS_DESC,
964
969
  PAGE_INDEX, PAGE_SIZE, this.debugMode);
965
- _printDatetime(`Content user track retrieved: ${CONTENT_ID}`);
970
+ if (CONTENT_USER_TRACK_INFO) _printDatetime(`Content user track retrieved: ${CONTENT_ID}`);
966
971
  return CONTENT_USER_TRACK_INFO;
967
972
  }
968
973
  catch (error)
@@ -1001,7 +1006,7 @@ class NomadMediaSDK {
1001
1006
  {
1002
1007
  const CONTENT_USER_TRACK_TOUCH_INFO = await _getContentUserTrackTouch(this, this.token,
1003
1008
  this.config.serviceApiUrl, CONTENT_ID, CONTENT_DEFINITION_ID, this.debugMode);
1004
- _printDatetime(`Content user track touch retrieved: ${CONTENT_ID}`);
1009
+ if (CONTENT_USER_TRACK_TOUCH_INFO) _printDatetime(`Content user track touch retrieved: ${CONTENT_ID}`);
1005
1010
  return CONTENT_USER_TRACK_TOUCH_INFO;
1006
1011
  }
1007
1012
  catch (error)
@@ -1086,7 +1091,7 @@ class NomadMediaSDK {
1086
1091
  const ADD_CUSTOM_PROPERTIES_INFO = await _addCustomProperties(this, this.token,
1087
1092
  this.config.serviceApiUrl, CONTENT_ID, NAME, DATE, CUSTOM_PROPERTIES,
1088
1093
  this.debugMode);
1089
- _printDatetime(`Custom properties added to content: ${CONTENT_ID}`);
1094
+ if (ADD_CUSTOM_PROPERTIES_INFO) _printDatetime(`Custom properties added to content: ${CONTENT_ID}`);
1090
1095
  return ADD_CUSTOM_PROPERTIES_INFO;
1091
1096
  }
1092
1097
  catch (error)
@@ -1121,7 +1126,7 @@ class NomadMediaSDK {
1121
1126
  const ADD_RELATED_CONTENT_INFO = await _addRelatedContent(this, this.token,
1122
1127
  this.config.serviceApiUrl, CONTENT_ID, RELATED_CONTENT_ID, CONTENT_DEFINITION,
1123
1128
  this.config.apiType, this.debugMode);
1124
- _printDatetime(`Related content added to content: ${CONTENT_ID}`);
1129
+ if (ADD_RELATED_CONTENT_INFO) _printDatetime(`Related content added to content: ${CONTENT_ID}`);
1125
1130
  return ADD_RELATED_CONTENT_INFO.items[0];
1126
1131
  }
1127
1132
  catch (error)
@@ -1160,7 +1165,7 @@ class NomadMediaSDK {
1160
1165
  const ADD_TAG_OR_COLLECTION_INFO = await _addTagOrCollection(this, this.token,
1161
1166
  this.config.serviceApiUrl, TYPE, CONTENT_ID, CONTENT_DEFINITION, TAG_NAME,
1162
1167
  TAG_ID, CREATE_NEW, this.config.apiType, this.debugMode);
1163
- _printDatetime(`${TYPE} added to content: ${CONTENT_ID}`);
1168
+ if (ADD_TAG_OR_COLLECTION_INFO) _printDatetime(`${TYPE} added to content: ${CONTENT_ID}`);
1164
1169
  return ADD_TAG_OR_COLLECTION_INFO.items[0];
1165
1170
  }
1166
1171
  catch (error)
@@ -1240,7 +1245,7 @@ class NomadMediaSDK {
1240
1245
  {
1241
1246
  const CREATE_TAG_OR_COLLECTION_INFO = await _createTagOrCollection(this, this.token,
1242
1247
  this.config.serviceApiUrl, TYPE, TAG_NAME, this.debugMode);
1243
- _printDatetime(`${TYPE} created: ${TAG_NAME}`);
1248
+ if (CREATE_TAG_OR_COLLECTION_INFO) _printDatetime(`${TYPE} created: ${TAG_NAME}`);
1244
1249
  return CREATE_TAG_OR_COLLECTION_INFO;
1245
1250
  }
1246
1251
  catch (error)
@@ -1275,7 +1280,7 @@ class NomadMediaSDK {
1275
1280
  const DELETE_RELATED_CONTENT_INFO = await _deleteRelatedContent(this, this.token,
1276
1281
  this.config.serviceApiUrl, CONTENT_ID, RELATED_CONTENT_ID, CONTENT_DEFINITION,
1277
1282
  this.config.apiType, this.debugMode);
1278
- _printDatetime(`Related content deleted from content: ${CONTENT_ID}`);
1283
+ if (DELETE_RELATED_CONTENT_INFO) _printDatetime(`Related content deleted from content: ${CONTENT_ID}`);
1279
1284
  return DELETE_RELATED_CONTENT_INFO.items[0];
1280
1285
  }
1281
1286
  catch (error)
@@ -1314,7 +1319,7 @@ class NomadMediaSDK {
1314
1319
  {
1315
1320
  const DELETE_TAG_OR_COLLECTION_INFO = await _deleteTagOrCollection(this, this.token,
1316
1321
  this.config.serviceApiUrl, TYPE, TAG_ID, this.debugMode);
1317
- _printDatetime(`Tag or collection deleted: ${TAG_ID}`);
1322
+ if (DELETE_TAG_OR_COLLECTION_INFO) _printDatetime(`Tag or collection deleted: ${TAG_ID}`);
1318
1323
  return DELETE_TAG_OR_COLLECTION_INFO;
1319
1324
  }
1320
1325
  catch (error)
@@ -1348,7 +1353,7 @@ class NomadMediaSDK {
1348
1353
  {
1349
1354
  const GET_TAG_OR_COLLECTION_INFO = await _getTagOrCollection(this, this.token,
1350
1355
  this.config.serviceApiUrl, TYPE, ID, this.debugMode);
1351
- _printDatetime(`${TYPE} retrieved: ${ID}`);
1356
+ if (GET_TAG_OR_COLLECTION_INFO) _printDatetime(`${TYPE} retrieved: ${ID}`);
1352
1357
  return GET_TAG_OR_COLLECTION_INFO;
1353
1358
  }
1354
1359
  catch (error)
@@ -1384,7 +1389,7 @@ class NomadMediaSDK {
1384
1389
  const REMOVE_TAG_OR_COLLECTION_INFO = await _removeTagOrCollection(this, this.token,
1385
1390
  this.config.serviceApiUrl, TYPE, CONTENT_ID, CONTENT_DEFINITION, TAG_ID,
1386
1391
  this.config.apiType, this.debugMode);
1387
- _printDatetime(`${TYPE} removed from content: ${CONTENT_ID}`);
1392
+ if (REMOVE_TAG_OR_COLLECTION_INFO) _printDatetime(`${TYPE} removed from content: ${CONTENT_ID}`);
1388
1393
  return REMOVE_TAG_OR_COLLECTION_INFO;
1389
1394
  }
1390
1395
  catch (error)
@@ -1422,7 +1427,7 @@ class NomadMediaSDK {
1422
1427
  {
1423
1428
  const CREATE_CONTENT_DEFINITION_INFO = await _createContentDefinition(this, this.token,
1424
1429
  this.config.serviceApiUrl, this.debugMode);
1425
- _printDatetime(`Content definition created: ${CREATE_CONTENT_DEFINITION_INFO["id"]}`);
1430
+ if (CREATE_CONTENT_DEFINITION_INFO) _printDatetime(`Content definition created: ${CREATE_CONTENT_DEFINITION_INFO["id"]}`);
1426
1431
  return CREATE_CONTENT_DEFINITION_INFO;
1427
1432
  }
1428
1433
  catch (error)
@@ -1460,7 +1465,7 @@ class NomadMediaSDK {
1460
1465
  {
1461
1466
  const GET_CONTENT_DEFINITION_INFO = await _getContentDefinition(this, this.token,
1462
1467
  this.config.serviceApiUrl, CONTENT_DEFINITION_ID, this.debugMode);
1463
- _printDatetime(`Content definition retrieved: ${CONTENT_DEFINITION_ID}`);
1468
+ if (GET_CONTENT_DEFINITION_INFO) _printDatetime(`Content definition retrieved: ${CONTENT_DEFINITION_ID}`);
1464
1469
  return GET_CONTENT_DEFINITION_INFO;
1465
1470
  }
1466
1471
  catch (error)
@@ -1504,7 +1509,7 @@ class NomadMediaSDK {
1504
1509
  const GET_CONTENT_DEFINITIONS_INFO = await _getContentDefinitions(this, this.token,
1505
1510
  this.config.serviceApiUrl, CONTENT_MANAGEMENT_TYPE, SORT_COLUMN, IS_DESC,
1506
1511
  PAGE_INDEX, PAGE_SIZE, this.debugMode);
1507
- _printDatetime(`Content definitions retrieved`);
1512
+ if (GET_CONTENT_DEFINITIONS_INFO) _printDatetime(`Content definitions retrieved`);
1508
1513
  return GET_CONTENT_DEFINITIONS_INFO;
1509
1514
  }
1510
1515
  catch (error)
@@ -1613,7 +1618,7 @@ class NomadMediaSDK {
1613
1618
  this.config.serviceApiUrl, CONTENT_ID, CONTENT_DEFINITION_ID,
1614
1619
  NAME, START_DATETIME, END_DATETIME, EVENT_TYPE, SERIES, IS_DISABLED,
1615
1620
  OVERRIDE_SERIES_PROPERTIES, SERIES_PROPERTIES, this.debugMode);
1616
- _printDatetime(`Event created/updated`);
1621
+ if (CREATE_EVENT_INFO) _printDatetime(`Event created/updated`);
1617
1622
  return CREATE_EVENT_INFO;
1618
1623
  }
1619
1624
  catch (error)
@@ -1781,7 +1786,7 @@ class NomadMediaSDK {
1781
1786
  {
1782
1787
  const GET_LIVE_SCHEDULE_INFO = await _getLiveSchedule(this, this.token,
1783
1788
  this.config.serviceApiUrl, EVENT_ID, this.debugMode);
1784
- _printDatetime(`Live Schedule retrieved of Event: ${EVENT_ID}`);
1789
+ if (GET_LIVE_SCHEDULE_INFO) _printDatetime(`Live Schedule retrieved of Event: ${EVENT_ID}`);
1785
1790
  return GET_LIVE_SCHEDULE_INFO;
1786
1791
  }
1787
1792
  catch (error)
@@ -1898,7 +1903,7 @@ class NomadMediaSDK {
1898
1903
  this.config.serviceApiUrl, LIVE_CHANNEL_ID, START_TIME_CODE, END_TIME_CODE, TITLE,
1899
1904
  OUTPUT_FOLDER_ID, TAGS, COLLECTIONS, RELATED_CONTENTS, VIDEO_BITRATE, AUDIO_TRACKS,
1900
1905
  this.debugMode);
1901
- _printDatetime(`Live Channel clipped: ${LIVE_CHANNEL_ID}`);
1906
+ if (CLIP_LIVE_CHANNEL_INFO) _printDatetime(`Live Channel clipped: ${LIVE_CHANNEL_ID}`);
1902
1907
  }
1903
1908
  catch (error)
1904
1909
  {
@@ -1954,7 +1959,7 @@ class NomadMediaSDK {
1954
1959
  ENABLE_HIGH_AVAILABILITY, ENABLE_LIVE_CLIPPING, IS_SECURE_OUTPUT,
1955
1960
  IS_OUTPUT_SCREENSHOTS, TYPE, EXTERNAL_SERVICE_API_URL, EXTERNAL_OUTPUT_PROFILES,
1956
1961
  SECURITY_GROUPS, this.debugMode);
1957
- _printDatetime(`Live Channel created: ${CREATE_LIVE_CHANNEL_INFO["id"]}`);
1962
+ if (CREATE_LIVE_CHANNEL_INFO) _printDatetime(`Live Channel created: ${CREATE_LIVE_CHANNEL_INFO["id"]}`);
1958
1963
  return CREATE_LIVE_CHANNEL_INFO;
1959
1964
  }
1960
1965
  catch (error)
@@ -2029,7 +2034,7 @@ class NomadMediaSDK {
2029
2034
  {
2030
2035
  const GET_LIVE_CHANNEL_INFO = await _getLiveChannel(this, this.token, this.config.serviceApiUrl,
2031
2036
  LIVE_CHANNEL_ID, this.debugMode);
2032
- _printDatetime(`Live Channel gotten: ${LIVE_CHANNEL_ID}`);
2037
+ if (GET_LIVE_CHANNEL_INFO) _printDatetime(`Live Channel gotten: ${LIVE_CHANNEL_ID}`);
2033
2038
  return GET_LIVE_CHANNEL_INFO;
2034
2039
  }
2035
2040
  catch (error)
@@ -2066,7 +2071,7 @@ class NomadMediaSDK {
2066
2071
  {
2067
2072
  const GET_LIVE_CHANNELS_INFO = await _getLiveChannels(this, this.token,
2068
2073
  this.config.serviceApiUrl, this.debugMode);
2069
- _printDatetime(`Live Channels gotten`);
2074
+ if (GET_LIVE_CHANNELS_INFO) _printDatetime(`Live Channels gotten`);
2070
2075
  return GET_LIVE_CHANNELS_INFO;
2071
2076
  }
2072
2077
  catch (error)
@@ -2137,7 +2142,7 @@ class NomadMediaSDK {
2137
2142
  {
2138
2143
  const NEXT_EVENT_INFO = await _nextEvent(this, this.token, this.config.serviceApiUrl,
2139
2144
  LIVE_CHANNEL_ID, this.debugMode);
2140
- _printDatetime(`Next Event gotten of Live Channel: ${LIVE_CHANNEL_ID}`);
2145
+ if (NEXT_EVENT_INFO) _printDatetime(`Next Event gotten of Live Channel: ${LIVE_CHANNEL_ID}`);
2141
2146
  return NEXT_EVENT_INFO;
2142
2147
  }
2143
2148
  catch (error)
@@ -2305,7 +2310,7 @@ class NomadMediaSDK {
2305
2310
  ARCHIVE_FOLDER_ASSET_ID, ENABLE_HIGH_AVAILABILITY, ENABLE_LIVE_CLIPPING, IS_SECURE_OUTPUT,
2306
2311
  IS_OUTPUT_SCREENSHOTS, TYPE, EXTERNAL_SERVICE_API_URL, EXTERNAL_OUTPUT_PROFILES,
2307
2312
  SECURITY_GROUPS, this.debugMode);
2308
- _printDatetime(`Live Channel updated: ${LIVE_CHANNEL_ID}`);
2313
+ if (UPDATE_LIVE_CHANNEL_INFO) _printDatetime(`Live Channel updated: ${LIVE_CHANNEL_ID}`);
2309
2314
  return UPDATE_LIVE_CHANNEL_INFO;
2310
2315
  }
2311
2316
  catch (error)
@@ -2356,7 +2361,7 @@ class NomadMediaSDK {
2356
2361
  const CREATE_LIVE_INPUT_INFO = await _createLiveInput(this, this.token,
2357
2362
  this.config.serviceApiUrl, NAME, SOURCE, TYPE, IS_STANDARD, VIDEO_ASSET_ID,
2358
2363
  DESTINATIONS, SOURCES, this.debugMode);
2359
- _printDatetime(`Live Input created: ${CREATE_LIVE_INPUT_INFO["id"]}`);
2364
+ if (CREATE_LIVE_INPUT_INFO) _printDatetime(`Live Input created: ${CREATE_LIVE_INPUT_INFO["id"]}`);
2360
2365
  return CREATE_LIVE_INPUT_INFO;
2361
2366
  }
2362
2367
  catch (error)
@@ -2430,7 +2435,7 @@ class NomadMediaSDK {
2430
2435
  {
2431
2436
  const GET_LIVE_INPUT_INFO = await _getLiveInput(this, this.token, this.config.serviceApiUrl,
2432
2437
  LIVE_INPUT_ID, this.debugMode);
2433
- _printDatetime(`Live Input gotten: ${LIVE_INPUT_ID}`);
2438
+ if (GET_LIVE_INPUT_INFO) _printDatetime(`Live Input gotten: ${LIVE_INPUT_ID}`);
2434
2439
  return GET_LIVE_INPUT_INFO;
2435
2440
  }
2436
2441
  catch (error)
@@ -2467,7 +2472,7 @@ class NomadMediaSDK {
2467
2472
  {
2468
2473
  const GET_LIVE_INPUTS_INFO = await _getLiveInputs(this, this.token, this.config.serviceApiUrl,
2469
2474
  this.debugMode);
2470
- _printDatetime(`Live Inputs gotten`);
2475
+ if (GET_LIVE_INPUTS_INFO) _printDatetime(`Live Inputs gotten`);
2471
2476
  return GET_LIVE_INPUTS_INFO;
2472
2477
  }
2473
2478
  catch (error)
@@ -2519,7 +2524,7 @@ class NomadMediaSDK {
2519
2524
  const UPDATE_LIVE_INPUT_INFO = await _updateLiveInput(this, this.token,
2520
2525
  this.config.serviceApiUrl, LIVE_INPUT_ID, NAME, SOURCE, TYPE, IS_STANDARD,
2521
2526
  VIDEO_ASSET_ID, DESTINATIONS, SOURCES, this.debugMode);
2522
- _printDatetime(`Live Input updated: ${LIVE_INPUT_ID}`);
2527
+ if (UPDATE_LIVE_INPUT_INFO) _printDatetime(`Live Input updated: ${LIVE_INPUT_ID}`);
2523
2528
  return UPDATE_LIVE_INPUT_INFO;
2524
2529
  }
2525
2530
  catch (error)
@@ -2593,7 +2598,7 @@ class NomadMediaSDK {
2593
2598
  {
2594
2599
  const CANCEL_SEGMENT_INFO = await _cancelSegment(this, this.token, this.config.serviceApiUrl,
2595
2600
  LIVE_OPERATOR_ID, this.debugMode);
2596
- _printDatetime(`Segment cancelled: ${LIVE_OPERATOR_ID}`);
2601
+ if (CANCEL_SEGMENT_INFO) _printDatetime(`Segment cancelled: ${LIVE_OPERATOR_ID}`);
2597
2602
  return CANCEL_SEGMENT_INFO;
2598
2603
  }
2599
2604
  catch (error)
@@ -2669,7 +2674,7 @@ class NomadMediaSDK {
2669
2674
  {
2670
2675
  const GET_COMPLETED_SEGMENTS_INFO = await _getCompletedSegments(this, this.token,
2671
2676
  this.config.serviceApiUrl, LIVE_OPERATOR_ID, this.debugMode);
2672
- _printDatetime(`Completed segments gotten`);
2677
+ if (GET_COMPLETED_SEGMENTS_INFO) _printDatetime(`Completed segments gotten`);
2673
2678
  return GET_COMPLETED_SEGMENTS_INFO;
2674
2679
  }
2675
2680
  catch (error)
@@ -2707,7 +2712,7 @@ class NomadMediaSDK {
2707
2712
  {
2708
2713
  const GET_LIVE_OPERATOR_INFO = await _getLiveOperator(this, this.token,
2709
2714
  this.config.serviceApiUrl, LIVE_OPERATOR_ID, this.debugMode);
2710
- _printDatetime(`Live operator gotten: ${LIVE_OPERATOR_ID}`);
2715
+ if (GET_LIVE_OPERATOR_INFO) _printDatetime(`Live operator gotten: ${LIVE_OPERATOR_ID}`);
2711
2716
  return GET_LIVE_OPERATOR_INFO;
2712
2717
  }
2713
2718
  catch (error)
@@ -2744,7 +2749,7 @@ class NomadMediaSDK {
2744
2749
  {
2745
2750
  const GET_LIVE_OPERATORS_INFO = await _getLiveOperators(this, this.token,
2746
2751
  this.config.serviceApiUrl, this.debugMode);
2747
- _printDatetime(`Live operators gotten`);
2752
+ if (GET_LIVE_OPERATORS_INFO) _printDatetime(`Live operators gotten`);
2748
2753
  return GET_LIVE_OPERATORS_INFO;
2749
2754
  }
2750
2755
  catch (error)
@@ -2789,7 +2794,7 @@ class NomadMediaSDK {
2789
2794
  const START_BROADCAST_INFO = await _startBroadcast(this, this.token, this.config.serviceApiUrl, LIVE_OPERATOR_ID,
2790
2795
  PREROLL_ASSET_ID, POSTROLL_ASSET_ID, LIVE_INPUT_ID, RELATED_CONTENT_IDS, TAG_IDS,
2791
2796
  this.debugMode);
2792
- _printDatetime(`Broadcast started`);
2797
+ if (START_BROADCAST_INFO) _printDatetime(`Broadcast started`);
2793
2798
  return START_BROADCAST_INFO;
2794
2799
  }
2795
2800
  catch (error)
@@ -2908,7 +2913,7 @@ class NomadMediaSDK {
2908
2913
  const ADD_ASSET_SCHEDULE_EVENT_INFO = await _addAssetScheduleEvent(this, this.token,
2909
2914
  this.config.serviceApiUrl, CHANNEL_ID, ASSET, IS_LOOP,
2910
2915
  DURATION_TIME_CODE, PREVIOUS_ID, this.debugMode);
2911
- _printDatetime(`Asset schedule event added to channel: ${CHANNEL_ID}`);
2916
+ if (ADD_ASSET_SCHEDULE_EVENT_INFO) _printDatetime(`Asset schedule event added to channel: ${CHANNEL_ID}`);
2912
2917
  return ADD_ASSET_SCHEDULE_EVENT_INFO;
2913
2918
  }
2914
2919
  catch (error)
@@ -2955,7 +2960,7 @@ class NomadMediaSDK {
2955
2960
  const ADD_INPUT_SCHEDULE_EVENT_INFO = await _addInputScheduleEvent(this, this.token,
2956
2961
  this.config.serviceApiUrl, CHANNEL_ID, INPUT, BACKUP_INPUT,
2957
2962
  FIXED_ON_AIR_TIME_UTC, PREVIOUS_ID, this.debugMode);
2958
- _printDatetime(`Input schedule event added to channel ${CHANNEL_ID}`);
2963
+ if (ADD_INPUT_SCHEDULE_EVENT_INFO) _printDatetime(`Input schedule event added to channel ${CHANNEL_ID}`);
2959
2964
  return ADD_INPUT_SCHEDULE_EVENT_INFO;
2960
2965
  }
2961
2966
  catch (error)
@@ -2994,7 +2999,7 @@ class NomadMediaSDK {
2994
2999
  {
2995
3000
  const GET_ASSET_SCHEDULE_EVENT_INFO = await _getAssetScheduleEvent(this, this.token,
2996
3001
  this.config.serviceApiUrl, CHANNEL_ID, SCHEDULE_EVENT_ID, this.debugMode);
2997
- _printDatetime(`Asset schedule event gotten: ${CHANNEL_ID}`);
3002
+ if (GET_ASSET_SCHEDULE_EVENT_INFO) _printDatetime(`Asset schedule event gotten: ${CHANNEL_ID}`);
2998
3003
  return GET_ASSET_SCHEDULE_EVENT_INFO;
2999
3004
  }
3000
3005
  catch (error)
@@ -3033,7 +3038,7 @@ class NomadMediaSDK {
3033
3038
  {
3034
3039
  const GET_INPUT_SCHEDULE_EVENT_INFO = await _getInputScheduleEvent(this, this.token,
3035
3040
  this.config.serviceApiUrl, CHANNEL_ID, SCHEDULE_EVENT_ID, this.debugMode);
3036
- _printDatetime(`Asset schedule event gotten: ${CHANNEL_ID}`);
3041
+ if (GET_INPUT_SCHEDULE_EVENT_INFO) _printDatetime(`Asset schedule event gotten: ${CHANNEL_ID}`);
3037
3042
  return GET_INPUT_SCHEDULE_EVENT_INFO;
3038
3043
  }
3039
3044
  catch (error)
@@ -3074,7 +3079,7 @@ class NomadMediaSDK {
3074
3079
  const MOVE_SCHEDULE_EVENT_INFO = await _moveScheduleEvent(this, this.token,
3075
3080
  this.config.serviceApiUrl, CHANNEL_ID, SCHEDULE_EVENT_ID,
3076
3081
  PREVIOUS_SCHEDULE_EVENT_ID, this.debugMode);
3077
- _printDatetime(`Schedule event moved: ${CHANNEL_ID}`);
3082
+ if (MOVE_SCHEDULE_EVENT_INFO) _printDatetime(`Schedule event moved: ${CHANNEL_ID}`);
3078
3083
  return MOVE_SCHEDULE_EVENT_INFO;
3079
3084
  }
3080
3085
  catch (error)
@@ -3194,7 +3199,7 @@ class NomadMediaSDK {
3194
3199
  const ADD_ASSET_SCHEDULE_EVENT_INFO = await _updateAssetScheduleEvent(this, this.token,
3195
3200
  this.config.serviceApiUrl, ID, CHANNEL_ID, ASSET, IS_LOOP,
3196
3201
  DURATION_TIME_CODE, PREVIOUS_ID, this.debugMode);
3197
- _printDatetime(`Asset schedule event updated: ${ID}`);
3202
+ if (ADD_ASSET_SCHEDULE_EVENT_INFO) _printDatetime(`Asset schedule event updated: ${ID}`);
3198
3203
  return ADD_ASSET_SCHEDULE_EVENT_INFO;
3199
3204
  }
3200
3205
  catch (error)
@@ -3240,7 +3245,7 @@ class NomadMediaSDK {
3240
3245
  const ADD_INPUT_SCHEDULE_EVENT_INFO = await _updateInputScheduleEvent(this, this.token,
3241
3246
  this.config.serviceApiUrl, ID, CHANNEL_ID, INPUT, BACKUP_INPUT,
3242
3247
  FIXED_ON_AIR_TIME_UTC, this.debugMode);
3243
- _printDatetime(`Input schedule event updated`);
3248
+ if (ADD_INPUT_SCHEDULE_EVENT_INFO) _printDatetime(`Input schedule event updated`);
3244
3249
  return ADD_INPUT_SCHEDULE_EVENT_INFO;
3245
3250
  }
3246
3251
  catch (error)
@@ -3307,7 +3312,7 @@ class NomadMediaSDK {
3307
3312
  OUTPUT_STREAM_KEY, OUTPUT_URL, SECONDARY_OUTPUT_STREAM_KEY,
3308
3313
  SECONDARY_OUTPUT_URL, VIDEO_BITRATE, VIDEO_BITRATE_MODE, VIDEO_CODEC,
3309
3314
  VIDEO_FRAMES_PER_SECOND, VIDEO_HEIGHT, VIDEO_WIDTH, this.debugMode);
3310
- _printDatetime(`Live output profile created`);
3315
+ if (CREATE_LIVE_OUTPUT_INFO) _printDatetime(`Live output profile created`);
3311
3316
  return CREATE_LIVE_OUTPUT_INFO;
3312
3317
  }
3313
3318
  catch (error)
@@ -3381,7 +3386,7 @@ class NomadMediaSDK {
3381
3386
  {
3382
3387
  const GET_LIVE_OUTPUT_INFO = await _getLiveOutputProfile(this, this.token,
3383
3388
  this.config.serviceApiUrl, LIVE_OUTPUT_ID, this.debugMode);
3384
- _printDatetime(`Live output profile gotten`);
3389
+ if (GET_LIVE_OUTPUT_INFO) _printDatetime(`Live output profile gotten`);
3385
3390
  return GET_LIVE_OUTPUT_INFO;
3386
3391
  }
3387
3392
  catch (error)
@@ -3418,7 +3423,7 @@ class NomadMediaSDK {
3418
3423
  {
3419
3424
  const GET_LIVE_OUTPUTS_INFO = await _getLiveOutputProfiles(this, this.token,
3420
3425
  this.config.serviceApiUrl, this.debugMode);
3421
- _printDatetime(`Live outputs gotten`);
3426
+ if (GET_LIVE_OUTPUTS_INFO) _printDatetime(`Live outputs gotten`);
3422
3427
  return GET_LIVE_OUTPUTS_INFO;
3423
3428
  }
3424
3429
  catch (error)
@@ -3455,7 +3460,7 @@ class NomadMediaSDK {
3455
3460
  {
3456
3461
  const GET_LIVE_OUTPUT_TYPES_INFO = await _getLiveOutputTypes(this, this.token,
3457
3462
  this.config.serviceApiUrl, this.debugMode);
3458
- _printDatetime(`Live output types gotten`);
3463
+ if (GET_LIVE_OUTPUT_TYPES_INFO) _printDatetime(`Live output types gotten`);
3459
3464
  return GET_LIVE_OUTPUT_TYPES_INFO;
3460
3465
  }
3461
3466
  catch (error)
@@ -3523,7 +3528,7 @@ class NomadMediaSDK {
3523
3528
  AUDIO_BITRATE, OUTPUT_STREAM_KEY, OUTPUT_URL, SECONDARY_OUTPUT_STREAM_KEY,
3524
3529
  SECONDARY_OUTPUT_URL, VIDEO_BITRATE, VIDEO_BITRATE_MODE, VIDEO_CODEC,
3525
3530
  VIDEO_FRAMES_PER_SECOND, VIDEO_HEIGHT, VIDEO_WIDTH, this.debugMode);
3526
- _printDatetime(`Live output updated`);
3531
+ if (UPDATE_LIVE_OUTPUT_INFO) _printDatetime(`Live output updated`);
3527
3532
  return UPDATE_LIVE_OUTPUT_INFO;
3528
3533
  }
3529
3534
  catch (error)
@@ -3580,7 +3585,7 @@ class NomadMediaSDK {
3580
3585
  const CREATE_LIVE_OUTPUT_PROFILE_GROUP_INFO = await _createLiveOutputProfileGroup(this, this.token,
3581
3586
  this.config.serviceApiUrl, NAME, IS_ENABLED, MANIFEST_TYPE, IS_DEFAULT_GROUP,
3582
3587
  LIVE_OUTPUT_TYPE, ARCHIVE_LIVE_OUTPUT_PROFILE, LIVE_OUTPUT_PROFILES, this.debugMode);
3583
- _printDatetime(`Live output profile group created`);
3588
+ if (CREATE_LIVE_OUTPUT_PROFILE_GROUP_INFO) _printDatetime(`Live output profile group created`);
3584
3589
  return CREATE_LIVE_OUTPUT_PROFILE_GROUP_INFO;
3585
3590
  }
3586
3591
  catch (error)
@@ -3654,7 +3659,7 @@ class NomadMediaSDK {
3654
3659
  {
3655
3660
  const GET_LIVE_OUTPUT_PROFILE_GROUP_INFO = await _getLiveOutputProfileGroup(this, this.token,
3656
3661
  this.config.serviceApiUrl, LIVE_OUTPUT_PROFILE_GROUP_ID, this.debugMode);
3657
- _printDatetime(`Live output profile group gotten`);
3662
+ if (GET_LIVE_OUTPUT_PROFILE_GROUP_INFO) _printDatetime(`Live output profile group gotten`);
3658
3663
  return GET_LIVE_OUTPUT_PROFILE_GROUP_INFO;
3659
3664
  }
3660
3665
  catch (error)
@@ -3691,7 +3696,7 @@ class NomadMediaSDK {
3691
3696
  {
3692
3697
  const GET_LIVE_OUTPUT_PROFILE_GROUPS_INFO = await _getLiveOutputProfileGroups(this, this.token,
3693
3698
  this.config.serviceApiUrl, this.debugMode);
3694
- _printDatetime(`Live output profile groups gotten`);
3699
+ if (GET_LIVE_OUTPUT_PROFILE_GROUPS_INFO) _printDatetime(`Live output profile groups gotten`);
3695
3700
  return GET_LIVE_OUTPUT_PROFILE_GROUPS_INFO;
3696
3701
  }
3697
3702
  catch (error)
@@ -3748,7 +3753,7 @@ class NomadMediaSDK {
3748
3753
  this.config.serviceApiUrl, LIVE_OUTPUT_PROFILE_GROUP_ID, NAME, IS_ENABLED, MANIFEST_TYPE,
3749
3754
  IS_DEFAULT_GROUP, LIVE_OUTPUT_TYPE, ARCHIVE_LIVE_OUTPUT_PROFILE, LIVE_OUTPUT_PROFILES,
3750
3755
  this.debugMode);
3751
- _printDatetime(`Live output profile group updated`);
3756
+ if (UPDATE_LIVE_OUTPUT_PROFILE_GROUP_INFO) _printDatetime(`Live output profile group updated`);
3752
3757
  return UPDATE_LIVE_OUTPUT_PROFILE_GROUP_INFO;
3753
3758
  }
3754
3759
  catch (error)
@@ -3815,7 +3820,7 @@ class NomadMediaSDK {
3815
3820
  this.config.serviceApiUrl, COLLECTIONS, END_SEARCH_DATE, END_SEARCH_DURATION_IN_MINUTES,
3816
3821
  NAME, RELATED_CONTENTS, SEARCH_DATE, SEARCH_DURATION_IN_MINUTES, SEARCH_FILTER_TYPE, TAGS,
3817
3822
  THUMBNAIL_ASSET, this.debugMode);
3818
- _printDatetime(`Intelligent playlist created`);
3823
+ if (CREATE_INTELLIGENT_PLAYLIST_INFO) _printDatetime(`Intelligent playlist created`);
3819
3824
  return CREATE_INTELLIGENT_PLAYLIST_INFO;
3820
3825
  }
3821
3826
  catch (error)
@@ -3859,7 +3864,7 @@ class NomadMediaSDK {
3859
3864
  const CREATE_INTELLIGENT_SCHEDULE_INFO = await _createIntelligentSchedule(this, this.token,
3860
3865
  this.config.serviceApiUrl, DEFAULT_VIDEO_ASSET, NAME, THUMBNAIL_ASSET, TIME_ZONE_ID,
3861
3866
  this.debugMode);
3862
- _printDatetime(`Intelligent schedule created`);
3867
+ if (CREATE_INTELLIGENT_SCHEDULE_INFO) _printDatetime(`Intelligent schedule created`);
3863
3868
  return CREATE_INTELLIGENT_SCHEDULE_INFO;
3864
3869
  }
3865
3870
  catch (error)
@@ -3904,7 +3909,7 @@ class NomadMediaSDK {
3904
3909
  const CREATE_PLAYLIST_INFO = await _createPlaylist(this, this.token,
3905
3910
  this.config.serviceApiUrl, NAME, THUMBNAIL_ASSET, LOOP_PLAYLIST,
3906
3911
  DEFAULT_VIDEO_ASSET, this.debugMode);
3907
- _printDatetime(`Playlist created`);
3912
+ if (CREATE_PLAYLIST_INFO) _printDatetime(`Playlist created`);
3908
3913
  return CREATE_PLAYLIST_INFO;
3909
3914
  }
3910
3915
  catch (error)
@@ -3945,7 +3950,7 @@ class NomadMediaSDK {
3945
3950
  {
3946
3951
  const CREATE_PLAYLIST_VIDEO_INFO = await _createPlaylistVideo(this, this.token,
3947
3952
  this.config.serviceApiUrl, PLAYLIST_ID, VIDEO_ASSET, PREVIOUS_ITEM, this.debugMode);
3948
- _printDatetime(`Playlist video created`);
3953
+ if (CREATE_PLAYLIST_VIDEO_INFO) _printDatetime(`Playlist video created`);
3949
3954
  return CREATE_PLAYLIST_VIDEO_INFO;
3950
3955
  }
3951
3956
  catch (error)
@@ -3997,7 +4002,7 @@ class NomadMediaSDK {
3997
4002
  const CREATE_SCHEDULE_ITEM_ASSET_INFO = await _createScheduleItemAsset(this, this.token,
3998
4003
  this.config.serviceApiUrl, SCHEDULE_ID, ASSET, DAYS, DURATION_TIME_CODE, END_TIME_CODE,
3999
4004
  PREVIOUS_ITEM, TIME_CODE, this.debugMode);
4000
- _printDatetime(`Schedule item asset created`);
4005
+ if (CREATE_SCHEDULE_ITEM_ASSET_INFO) _printDatetime(`Schedule item asset created`);
4001
4006
  return CREATE_SCHEDULE_ITEM_ASSET_INFO;
4002
4007
  }
4003
4008
  catch (error)
@@ -4051,7 +4056,7 @@ class NomadMediaSDK {
4051
4056
  const CREATE_SCHEDULE_ITEM_LIVE_CHANNEL_INFO = await _createScheduleItemLiveChannel(this, this.token,
4052
4057
  this.config.serviceApiUrl, SCHEDULE_ID, DAYS, DURATION_TIME_CODE, END_TIME_CODE,
4053
4058
  LIVE_CHANNEL, PREVIOUS_ITEM, TIME_CODE, this.debugMode);
4054
- _printDatetime(`Schedule item live channel created`);
4059
+ if (CREATE_SCHEDULE_ITEM_LIVE_CHANNEL_INFO) _printDatetime(`Schedule item live channel created`);
4055
4060
  return CREATE_SCHEDULE_ITEM_LIVE_CHANNEL_INFO;
4056
4061
  }
4057
4062
  catch (error)
@@ -4105,7 +4110,7 @@ class NomadMediaSDK {
4105
4110
  const CREATE_SCHEDULE_ITEM_PLAYLIST_SCHEDULE_INFO = await _createScheduleItemPlaylistSchedule(this, this.token,
4106
4111
  this.config.serviceApiUrl, SCHEDULE_ID, DAYS, DURATION_TIME_CODE,
4107
4112
  END_TIME_CODE, PLAYLIST_SCHEDULE, PREVIOUS_ITEM, TIME_CODE, this.debugMode);
4108
- _printDatetime(`Schedule item playlist schedule created`);
4113
+ if (CREATE_SCHEDULE_ITEM_PLAYLIST_SCHEDULE_INFO) _printDatetime(`Schedule item playlist schedule created`);
4109
4114
  return CREATE_SCHEDULE_ITEM_PLAYLIST_SCHEDULE_INFO;
4110
4115
  }
4111
4116
  catch (error)
@@ -4182,7 +4187,7 @@ class NomadMediaSDK {
4182
4187
  END_SEARCH_DATE, END_SEARCH_DURATION_IN_MINUTES, END_TIME_CODE, PREVIOUS_ITEM,
4183
4188
  RELATED_CONTENTS, SEARCH_DATE, SEARCH_DURATION_IN_MINUTES, SEARCH_FILTER_TYPE, TAGS,
4184
4189
  TIME_CODE, this.debugMode);
4185
- _printDatetime(`Schedule item search filter created`);
4190
+ if (CREATE_SCHEDULE_ITEM_SEARCH_FILTER_INFO) _printDatetime(`Schedule item search filter created`);
4186
4191
  return CREATE_SCHEDULE_ITEM_SEARCH_FILTER_INFO;
4187
4192
  }
4188
4193
  catch (error)
@@ -4361,7 +4366,7 @@ class NomadMediaSDK {
4361
4366
  {
4362
4367
  const GET_INTELLIGENT_PLAYLIST_INFO = await _getIntelligentPlaylist(this, this.token,
4363
4368
  this.config.serviceApiUrl, SCHEDULE_ID, this.debugMode);
4364
- _printDatetime(`Intelligent playlist gotten`);
4369
+ if (GET_INTELLIGENT_PLAYLIST_INFO) _printDatetime(`Intelligent playlist gotten`);
4365
4370
  return GET_INTELLIGENT_PLAYLIST_INFO;
4366
4371
  }
4367
4372
  catch (error)
@@ -4399,7 +4404,7 @@ class NomadMediaSDK {
4399
4404
  {
4400
4405
  const GET_INTELLIGENT_SCHEDULE_INFO = await _getIntelligentSchedule(this, this.token,
4401
4406
  this.config.serviceApiUrl, SCHEDULE_ID, this.debugMode);
4402
- _printDatetime(`Intelligent schedule gotten`);
4407
+ if (GET_INTELLIGENT_SCHEDULE_INFO) _printDatetime(`Intelligent schedule gotten`);
4403
4408
  return GET_INTELLIGENT_SCHEDULE_INFO;
4404
4409
  }
4405
4410
  catch (error)
@@ -4437,7 +4442,7 @@ class NomadMediaSDK {
4437
4442
  {
4438
4443
  const GET_PLAYLIST_INFO = await _getPlaylist(this, this.token, this.config.serviceApiUrl,
4439
4444
  SCHEDULE_ID, this.debugMode);
4440
- _printDatetime(`Playlist gotten`);
4445
+ if (GET_PLAYLIST_INFO) _printDatetime(`Playlist gotten`);
4441
4446
  return GET_PLAYLIST_INFO;
4442
4447
  }
4443
4448
  catch (error)
@@ -4476,7 +4481,7 @@ class NomadMediaSDK {
4476
4481
  {
4477
4482
  const GET_SCHEDULE_ITEM_INFO = await _getScheduleItem(this, this.token,
4478
4483
  this.config.serviceApiUrl, SCHEDULE_ID, ITEM_ID, this.debugMode);
4479
- _printDatetime(`Schedule item gotten`);
4484
+ if (GET_SCHEDULE_ITEM_INFO) _printDatetime(`Schedule item gotten`);
4480
4485
  return GET_SCHEDULE_ITEM_INFO;
4481
4486
  }
4482
4487
  catch (error)
@@ -4514,7 +4519,7 @@ class NomadMediaSDK {
4514
4519
  {
4515
4520
  const GET_SCHEDULE_ITEMS_INFO = await _getScheduleItems(this, this.token,
4516
4521
  this.config.serviceApiUrl, SCHEDULE_ID, this.debugMode);
4517
- _printDatetime(`Schedule items gotten`);
4522
+ if (GET_SCHEDULE_ITEMS_INFO) _printDatetime(`Schedule items gotten`);
4518
4523
  return GET_SCHEDULE_ITEMS_INFO;
4519
4524
  }
4520
4525
  catch (error)
@@ -4549,7 +4554,7 @@ class NomadMediaSDK {
4549
4554
  {
4550
4555
  const GET_SCHEDULE_PREVIEW_INFO = await _getSchedulePreview(this, this.token,
4551
4556
  this.config.serviceApiUrl, SCHEDULE_ID, this.debugMode);
4552
- _printDatetime(`Schedule preview gotten`);
4557
+ if (GET_SCHEDULE_PREVIEW_INFO) _printDatetime(`Schedule preview gotten`);
4553
4558
  return GET_SCHEDULE_PREVIEW_INFO;
4554
4559
  }
4555
4560
  catch (error)
@@ -4589,7 +4594,7 @@ class NomadMediaSDK {
4589
4594
  {
4590
4595
  const MOVE_SCHEDULE_ITEM_INFO = await _moveScheduleItem(this, this.token,
4591
4596
  this.config.serviceApiUrl, SCHEDULE_ID, ITEM_ID, PREVIOUS_ITEM, this.debugMode);
4592
- _printDatetime(`Schedule item moved`);
4597
+ if (MOVE_SCHEDULE_ITEM_INFO) _printDatetime(`Schedule item moved`);
4593
4598
  return MOVE_SCHEDULE_ITEM_INFO;
4594
4599
  }
4595
4600
  catch (error)
@@ -4629,7 +4634,7 @@ class NomadMediaSDK {
4629
4634
  {
4630
4635
  const PUBLISH_INTELLIGENT_SCHEDULE_INFO = await _publishIntelligentSchedule(this, this.token,
4631
4636
  this.config.serviceApiUrl, SCHEDULE_ID, NUMBER_OF_LOCKED_DAYS, this.debugMode);
4632
- _printDatetime(`Intelligent schedule published`);
4637
+ if (PUBLISH_INTELLIGENT_SCHEDULE_INFO) _printDatetime(`Intelligent schedule published`);
4633
4638
  return PUBLISH_INTELLIGENT_SCHEDULE_INFO;
4634
4639
  }
4635
4640
  catch (error)
@@ -4668,7 +4673,7 @@ class NomadMediaSDK {
4668
4673
  {
4669
4674
  const START_SCHEDULE_INFO = await _startSchedule(this, this.token,
4670
4675
  this.config.serviceApiUrl, SCHEDULE_ID, SKIP_CLEANUP_ON_FAILURE, this.debugMode);
4671
- _printDatetime(`Schedule started`);
4676
+ if (START_SCHEDULE_INFO) _printDatetime(`Schedule started`);
4672
4677
  return START_SCHEDULE_INFO;
4673
4678
  }
4674
4679
  catch (error)
@@ -4707,7 +4712,7 @@ class NomadMediaSDK {
4707
4712
  {
4708
4713
  const STOP_SCHEDULE_INFO = await _stopSchedule(this, this.token,
4709
4714
  this.config.serviceApiUrl, SCHEDULE_ID, FORCE_STOP, this.debugMode);
4710
- _printDatetime(`Schedule stopped`);
4715
+ if (STOP_SCHEDULE_INFO) _printDatetime(`Schedule stopped`);
4711
4716
  return STOP_SCHEDULE_INFO;
4712
4717
  }
4713
4718
  catch (error)
@@ -4773,7 +4778,7 @@ class NomadMediaSDK {
4773
4778
  this.config.serviceApiUrl, SCHEDULE_ID, COLLECTIONS, END_SEARCH_DATE,
4774
4779
  END_SEARCH_DURATION_IN_MINUTES, NAME, RELATED_CONTENTS, SEARCH_DATE,
4775
4780
  SEARCH_DURATION_IN_MINUTES, SEARCH_FILTER_TYPE, TAGS, THUMBNAIL_ASSET, this.debugMode);
4776
- _printDatetime(`Intelligent playlist updated`);
4781
+ if (UPDATE_INTELLIGENT_PLAYLIST_INFO) _printDatetime(`Intelligent playlist updated`);
4777
4782
  return UPDATE_INTELLIGENT_PLAYLIST_INFO;
4778
4783
  }
4779
4784
  catch (error)
@@ -4820,7 +4825,7 @@ class NomadMediaSDK {
4820
4825
  const UPDATE_INTELLIGENT_SCHEDULE_INFO = await _updateIntelligentSchedule(this, this.token,
4821
4826
  this.config.serviceApiUrl, SCHEDULE_ID, DEFAULT_VIDEO_ASSET, NAME, THUMBNAIL_ASSET,
4822
4827
  TIME_ZONE_ID, this.debugMode);
4823
- _printDatetime(`Intelligent schedule updated`);
4828
+ if (UPDATE_INTELLIGENT_SCHEDULE_INFO) _printDatetime(`Intelligent schedule updated`);
4824
4829
  return UPDATE_INTELLIGENT_SCHEDULE_INFO;
4825
4830
  }
4826
4831
  catch (error)
@@ -4863,7 +4868,7 @@ class NomadMediaSDK {
4863
4868
  const UPDATE_PLAYLIST_INFO = await _updatePlaylist(this, this.token,
4864
4869
  this.config.serviceApiUrl, SCHEDULE_ID, DEFAULT_VIDEO_ASSET, LOOP_PLAYLIST,
4865
4870
  NAME, THUMBNAIL_ASSET, this.debugMode);
4866
- _printDatetime(`Playlist updated`);
4871
+ if (UPDATE_PLAYLIST_INFO) _printDatetime(`Playlist updated`);
4867
4872
  return UPDATE_PLAYLIST_INFO;
4868
4873
  }
4869
4874
  catch (error)
@@ -4896,7 +4901,7 @@ class NomadMediaSDK {
4896
4901
  {
4897
4902
  const UPDATE_PLAYLIST_VIDEO_INFO = await _updatePlaylistVideo(this, this.token,
4898
4903
  this.config.serviceApiUrl, PLAYLIST_ID, ITEM_ID, ASSET, this.debugMode);
4899
- _printDatetime(`Playlist video updated`);
4904
+ if (UPDATE_PLAYLIST_VIDEO_INFO) _printDatetime(`Playlist video updated`);
4900
4905
  return UPDATE_PLAYLIST_VIDEO_INFO;
4901
4906
  }
4902
4907
  catch (error)
@@ -4948,7 +4953,7 @@ class NomadMediaSDK {
4948
4953
  const UPDATE_SCHEDULE_ITEM_ASSET_INFO = await _updateScheduleItemAsset(this, this.token,
4949
4954
  this.config.serviceApiUrl, SCHEDULE_ID, ITEM_ID, ASSET, DAYS, DURATION_TIME_CODE,
4950
4955
  END_TIME_CODE, TIME_CODE, this.debugMode);
4951
- _printDatetime(`Schedule item asset updated`);
4956
+ if (UPDATE_SCHEDULE_ITEM_ASSET_INFO) _printDatetime(`Schedule item asset updated`);
4952
4957
  return UPDATE_SCHEDULE_ITEM_ASSET_INFO;
4953
4958
  }
4954
4959
  catch (error)
@@ -5001,7 +5006,7 @@ class NomadMediaSDK {
5001
5006
  const UPDATE_SCHEDULE_ITEM_LIVE_CHANNEL_INFO = await _updateScheduleItemLiveChannel(this, this.token,
5002
5007
  this.config.serviceApiUrl, SCHEDULE_ID, ITEM_ID, DAYS, DURATION_TIME_CODE,
5003
5008
  END_TIME_CODE, LIVE_CHANNEL, TIME_CODE, this.debugMode);
5004
- _printDatetime(`Schedule item live channel updated`);
5009
+ if (UPDATE_SCHEDULE_ITEM_LIVE_CHANNEL_INFO) _printDatetime(`Schedule item live channel updated`);
5005
5010
  return UPDATE_SCHEDULE_ITEM_LIVE_CHANNEL_INFO;
5006
5011
  }
5007
5012
  catch (error)
@@ -5055,7 +5060,7 @@ class NomadMediaSDK {
5055
5060
  const UPDATE_SCHEDULE_ITEM_PLAYLIST_SCHEDULE_INFO = await _updateScheduleItemPlaylistSchedule(this, this.token,
5056
5061
  this.config.serviceApiUrl, SCHEDULE_ID, ITEM_ID, DAYS, DURATION_TIME_CODE,
5057
5062
  END_TIME_CODE, PLAYLIST_SCHEDULE, TIME_CODE, this.debugMode);
5058
- _printDatetime(`Schedule item playlist schedule updated`);
5063
+ if (UPDATE_SCHEDULE_ITEM_PLAYLIST_SCHEDULE_INFO) _printDatetime(`Schedule item playlist schedule updated`);
5059
5064
  return UPDATE_SCHEDULE_ITEM_PLAYLIST_SCHEDULE_INFO;
5060
5065
  }
5061
5066
  catch (error)
@@ -5131,7 +5136,7 @@ class NomadMediaSDK {
5131
5136
  DURATION_TIME_CODE, END_SEARCH_DATE, END_SEARCH_DURATION_IN_MINUTES, END_TIME_CODE,
5132
5137
  PREVIOUS_ITEM, RELATED_CONTENTS, SEARCH_DATE, SEARCH_DURATION_IN_MINUTES,
5133
5138
  SEARCH_FILTER_TYPE, TAGS, TIME_CODE, this.debugMode);
5134
- _printDatetime(`Schedule item search filter updated`);
5139
+ if (UPDATE_SCHEDULE_ITEM_SEARCH_FILTER_INFO) _printDatetime(`Schedule item search filter updated`);
5135
5140
  return UPDATE_SCHEDULE_ITEM_SEARCH_FILTER_INFO;
5136
5141
  }
5137
5142
  catch (error)
@@ -5635,7 +5640,7 @@ class NomadMediaSDK {
5635
5640
  {
5636
5641
  const SESSION_STATUS = await _changeSessionStatus(this, this.token, this.config.serviceApiUrl,
5637
5642
  ID, USER_SESSION_STATUS, APPLICATION_ID, this.debugMode);
5638
- _printDatetime(`Session status changed`);
5643
+ if (SESSION_STATUS) _printDatetime(`Session status changed`);
5639
5644
  return SESSION_STATUS;
5640
5645
  }
5641
5646
  catch (error)
@@ -5670,7 +5675,7 @@ class NomadMediaSDK {
5670
5675
  const GET_USER_SESSION_INFO = await _getUserSession(this, this.token,
5671
5676
  this.config.serviceApiUrl, this.config.apiType,
5672
5677
  ID, this.debugMode);
5673
- _printDatetime(`User session gotten`);
5678
+ if (GET_USER_SESSION_INFO) _printDatetime(`User session gotten`);
5674
5679
  return GET_USER_SESSION_INFO;
5675
5680
  }
5676
5681
  catch (error)
@@ -5702,7 +5707,7 @@ class NomadMediaSDK {
5702
5707
  {
5703
5708
  const REGISTER_INFO = await _register(this, this.config.serviceApiUrl, EMAIL,
5704
5709
  FIRST_NAME, LAST_NAME, PASSWORD, this.debugMode);
5705
- _printDatetime(`User registered: ${EMAIL}`);
5710
+ if (REGISTER_INFO) _printDatetime(`User registered: ${EMAIL}`);
5706
5711
  return REGISTER_INFO;
5707
5712
  }
5708
5713
  catch (error)
@@ -5752,7 +5757,7 @@ class NomadMediaSDK {
5752
5757
  try
5753
5758
  {
5754
5759
  const VERIFY_INFO = await _verify(this, this.config.serviceApiUrl, EMAIL, CODE, this.debugMode);
5755
- _printDatetime(`User verified: ${EMAIL}`);
5760
+ if (VERIFY_INFO) _printDatetime(`User verified: ${EMAIL}`);
5756
5761
  return VERIFY_INFO;
5757
5762
  }
5758
5763
  catch (error)
@@ -5791,7 +5796,7 @@ class NomadMediaSDK {
5791
5796
  {
5792
5797
  const ARCHIVE_INFO = await _archiveAsset(this, this.token, this.config.serviceApiUrl,
5793
5798
  ASSET_ID, this.debugMode);
5794
- _printDatetime(`Asset archived: ${ASSET_ID}`);
5799
+ if (ARCHIVE_INFO) _printDatetime(`Asset archived: ${ASSET_ID}`);
5795
5800
  return ARCHIVE_INFO;
5796
5801
  }
5797
5802
  catch (error)
@@ -5893,7 +5898,7 @@ class NomadMediaSDK {
5893
5898
  ASSET_ID, this.config.apiType, START_TIME_CODE, END_TIME_CODE, TITLE,
5894
5899
  OUTPUT_FOLDER_ID, TAGS, COLLECTIONS, RELATED_CONTENTS, VIDEO_BITRATE,
5895
5900
  AUDIO_TRACKS, this.debugMode);
5896
- _printDatetime(`Asset clipped: ${ASSET_ID}`);
5901
+ if (CLIP_INFO) _printDatetime(`Asset clipped: ${ASSET_ID}`);
5897
5902
  return CLIP_INFO;
5898
5903
  }
5899
5904
  catch (error)
@@ -5941,7 +5946,7 @@ class NomadMediaSDK {
5941
5946
  const COPY_INFO = await _copyAsset(this, this.token, this.config.serviceApiUrl,
5942
5947
  ASSET_IDS, DESTINATION_FOLDER_ID, BATCH_ACTION, CONTENT_DEFINITION_ID,
5943
5948
  SCHEMA_NAME, this.id, RESOLVER_EXCEMPT, this.debugMode);
5944
- _printDatetime(`Asset(s) copied: ${ASSET_IDS}`);
5949
+ if (COPY_INFO) _printDatetime(`Asset(s) copied: ${ASSET_IDS}`);
5945
5950
  return COPY_INFO;
5946
5951
  }
5947
5952
  catch (error)
@@ -5987,7 +5992,7 @@ class NomadMediaSDK {
5987
5992
  const CREATE_INFO = await _createAnnotation(this, this.token, this.config.serviceApiUrl,
5988
5993
  ASSET_ID, START_TIME_CODE, END_TIME_CODE, DESCRIPTION, SUMMARY, TITLE,
5989
5994
  this.debugMode);
5990
- _printDatetime(`Annotation created`);
5995
+ if (CREATE_INFO) _printDatetime(`Annotation created`);
5991
5996
  return CREATE_INFO;
5992
5997
  }
5993
5998
  catch (error)
@@ -6031,7 +6036,7 @@ class NomadMediaSDK {
6031
6036
  {
6032
6037
  const CREATE_INFO = await _createAssetAdBreak(this, this.token, this.config.serviceApiUrl,
6033
6038
  ASSET_ID, TIME_CODE, TAGS, LABELS, this.debugMode);
6034
- _printDatetime(`Asset ad break created`);
6039
+ if (CREATE_INFO) _printDatetime(`Asset ad break created`);
6035
6040
  return CREATE_INFO;
6036
6041
  }
6037
6042
  catch (error)
@@ -6071,7 +6076,7 @@ class NomadMediaSDK {
6071
6076
  {
6072
6077
  const CREATE_INFO = await _createFolderAsset(this, this.token, this.config.serviceApiUrl,
6073
6078
  PARENT_ID, DISPLAY_NAME, this.debugMode);
6074
- _printDatetime(`Folder asset created`);
6079
+ if (CREATE_INFO) _printDatetime(`Folder asset created`);
6075
6080
  return CREATE_INFO;
6076
6081
  }
6077
6082
  catch (error)
@@ -6116,7 +6121,7 @@ class NomadMediaSDK {
6116
6121
  {
6117
6122
  const CREATE_INFO = await _createPlaceholderAsset(this, this.token, this.config.serviceApiUrl,
6118
6123
  PARENT_ID, ASSET_NAME, this.debugMode);
6119
- _printDatetime(`Placeholder asset created`);
6124
+ if (CREATE_INFO) _printDatetime(`Placeholder asset created`);
6120
6125
  return CREATE_INFO;
6121
6126
  }
6122
6127
  catch (error)
@@ -6156,7 +6161,7 @@ class NomadMediaSDK {
6156
6161
  {
6157
6162
  const CREATE_INFO = await _createScreenshotAtTimecode(this, this.token, this.config.serviceApiUrl,
6158
6163
  ASSET_ID, TIME_CODE, this.debugMode);
6159
- _printDatetime(`Screenshot created at timecode`);
6164
+ if (CREATE_INFO) _printDatetime(`Screenshot created at timecode`);
6160
6165
  return CREATE_INFO;
6161
6166
  }
6162
6167
  catch (error)
@@ -6306,7 +6311,7 @@ class NomadMediaSDK {
6306
6311
  const DOWNLOAD_INFO = await _downloadArchiveAsset(this, this.token,
6307
6312
  this.config.serviceApiUrl, this.config.apiType, ASSET_IDS, FILE_NAME,
6308
6313
  DOWNLOAD_PROXY, this.debugMode);
6309
- _printDatetime(`Archive asset downloaded`);
6314
+ if (DOWNLOAD_INFO) _printDatetime(`Archive asset downloaded`);
6310
6315
  return DOWNLOAD_INFO;
6311
6316
  }
6312
6317
  catch (error)
@@ -6344,7 +6349,7 @@ class NomadMediaSDK {
6344
6349
  {
6345
6350
  const DUPLICATE_INFO = await _duplicateAsset(this, this.token, this.config.serviceApiUrl,
6346
6351
  ASSET_ID, this.debugMode);
6347
- _printDatetime(`Asset duplicated: ${ASSET_ID}`);
6352
+ if (DUPLICATE_INFO) _printDatetime(`Asset duplicated: ${ASSET_ID}`);
6348
6353
  return DUPLICATE_INFO;
6349
6354
  }
6350
6355
  catch (error)
@@ -6382,7 +6387,7 @@ class NomadMediaSDK {
6382
6387
  {
6383
6388
  const ANNOTATIONS = await _getAnnotations(this, this.token, this.config.serviceApiUrl,
6384
6389
  ASSET_ID, this.debugMode);
6385
- _printDatetime(`Annotations retrieved for ${ASSET_ID}`);
6390
+ if (ANNOTATIONS) _printDatetime(`Annotations retrieved for ${ASSET_ID}`);
6386
6391
  return ANNOTATIONS;
6387
6392
  }
6388
6393
  catch (error)
@@ -6420,7 +6425,7 @@ class NomadMediaSDK {
6420
6425
  {
6421
6426
  const ASSET = await _getAsset(this, this.token, this.config.serviceApiUrl,
6422
6427
  ASSET_ID, this.debugMode);
6423
- _printDatetime(`Asset retrieved for ${ASSET_ID}`);
6428
+ if (ASSET) _printDatetime(`Asset retrieved for ${ASSET_ID}`);
6424
6429
  return ASSET;
6425
6430
  }
6426
6431
  catch (error)
@@ -6458,7 +6463,7 @@ class NomadMediaSDK {
6458
6463
  {
6459
6464
  const ASSET_AD_BREAKS = await _getAssetAdBreaks(this, this.token, this.config.serviceApiUrl,
6460
6465
  ASSET_ID, this.debugMode);
6461
- _printDatetime(`Asset ad breaks retrieved for ${ASSET_ID}`);
6466
+ if (ASSET_AD_BREAKS) _printDatetime(`Asset ad breaks retrieved for ${ASSET_ID}`);
6462
6467
  return ASSET_AD_BREAKS;
6463
6468
  }
6464
6469
  catch (error)
@@ -6501,7 +6506,7 @@ class NomadMediaSDK {
6501
6506
  {
6502
6507
  const ASSET_CHILD_NODES = await _getAssetChildNodes(this, this.token, this.config.serviceApiUrl,
6503
6508
  ASSET_ID, FOLDER_ID, SORT_COLUMN, IS_DESC, PAGE_INDEX, PAGE_SIZE, this.debugMode);
6504
- _printDatetime(`Asset child nodes retrieved for ${ASSET_ID}`);
6509
+ if (ASSET_CHILD_NODES) _printDatetime(`Asset child nodes retrieved for ${ASSET_ID}`);
6505
6510
  return ASSET_CHILD_NODES;
6506
6511
  }
6507
6512
  catch (error)
@@ -6533,7 +6538,7 @@ class NomadMediaSDK {
6533
6538
  {
6534
6539
  const ASSET_DETAILS = await _getAssetDetails(this, this.token, this.config.serviceApiUrl,
6535
6540
  ASSET_ID, this.config.apiType, this.debugMode);
6536
- _printDatetime(`Asset details retrieved for ${ASSET_ID}`);
6541
+ if (ASSET_DETAILS) _printDatetime(`Asset details retrieved for ${ASSET_ID}`);
6537
6542
  return ASSET_DETAILS;
6538
6543
  }
6539
6544
  catch (error)
@@ -6567,7 +6572,7 @@ class NomadMediaSDK {
6567
6572
  const ASSET_MANIFEST_WITH_COOKIES = await _getAssetManifestWithCookies(this, this.token,
6568
6573
  this.config.serviceApiUrl, ASSET_ID, COOKIE_ID, this.config.apiType,
6569
6574
  this.debugMode);
6570
- _printDatetime(`Asset manifest with cookies retrieved for ${ASSET_ID}`);
6575
+ if (ASSET_MANIFEST_WITH_COOKIES) _printDatetime(`Asset manifest with cookies retrieved for ${ASSET_ID}`);
6571
6576
  return ASSET_MANIFEST_WITH_COOKIES;
6572
6577
  }
6573
6578
  catch (error)
@@ -6605,7 +6610,7 @@ class NomadMediaSDK {
6605
6610
  {
6606
6611
  const ASSET_METADATA_SUMMARY = await _getAssetMetadataSummary(this, this.token,
6607
6612
  this.config.serviceApiUrl, ASSET_ID, this.debugMode);
6608
- _printDatetime(`Asset metadata summary retrieved for ${ASSET_ID}`);
6613
+ if (ASSET_METADATA_SUMMARY) _printDatetime(`Asset metadata summary retrieved for ${ASSET_ID}`);
6609
6614
  return ASSET_METADATA_SUMMARY;
6610
6615
  }
6611
6616
  catch (error)
@@ -6650,7 +6655,7 @@ class NomadMediaSDK {
6650
6655
  {
6651
6656
  const ASSET_PARENT_FOLDERS = await _getAssetParentFolders(this, this.token,
6652
6657
  this.config.serviceApiUrl, ASSET_ID, PAGE_SIZE, this.debugMode);
6653
- _printDatetime(`Asset parent folders retrieved for ${ASSET_ID}`);
6658
+ if (ASSET_PARENT_FOLDERS) _printDatetime(`Asset parent folders retrieved for ${ASSET_ID}`);
6654
6659
  return ASSET_PARENT_FOLDERS;
6655
6660
  }
6656
6661
  catch (error)
@@ -6690,7 +6695,7 @@ class NomadMediaSDK {
6690
6695
  {
6691
6696
  const ASSET_SCREENSHOT_DETAILS = await _getAssetScreenshotDetails(this, this.token,
6692
6697
  this.config.serviceApiUrl, ASSET_ID, SEGMENT_ID, SCREENSHOT_ID, this.debugMode);
6693
- _printDatetime(`Asset screenshot details retrieved for ${ASSET_ID}`);
6698
+ if (ASSET_SCREENSHOT_DETAILS) _printDatetime(`Asset screenshot details retrieved for ${ASSET_ID}`);
6694
6699
  return ASSET_SCREENSHOT_DETAILS;
6695
6700
  }
6696
6701
  catch (error)
@@ -6729,7 +6734,7 @@ class NomadMediaSDK {
6729
6734
  {
6730
6735
  const ASSET_SEGMENT_DETAILS = await _getAssetSegmentDetails(this, this.token,
6731
6736
  this.config.serviceApiUrl, ASSET_ID, SEGMENT_ID, this.debugMode);
6732
- _printDatetime(`Asset segment details retrieved for ${ASSET_ID}`);
6737
+ if (ASSET_SEGMENT_DETAILS) _printDatetime(`Asset segment details retrieved for ${ASSET_ID}`);
6733
6738
  return ASSET_SEGMENT_DETAILS;
6734
6739
  }
6735
6740
  catch (error)
@@ -6767,7 +6772,7 @@ class NomadMediaSDK {
6767
6772
  {
6768
6773
  const USER_UPLOAD_PARTS = await _getUserUploadParts(this, this.token,
6769
6774
  this.config.serviceApiUrl, UPLOAD_ID, this.debugMode);
6770
- _printDatetime(`User upload parts retrieved for ${UPLOAD_ID}`);
6775
+ if (USER_UPLOAD_PARTS) _printDatetime(`User upload parts retrieved for ${UPLOAD_ID}`);
6771
6776
  return USER_UPLOAD_PARTS;
6772
6777
  }
6773
6778
  catch (error)
@@ -6805,7 +6810,7 @@ class NomadMediaSDK {
6805
6810
  {
6806
6811
  const UPLOAD_UPLOADS = await _getUserUploads(this, this.token,
6807
6812
  this.config.serviceApiUrl, INCLUDE_COMPLETED_UPLOADS, this.debugMode);
6808
- _printDatetime(`User uploads retrieved`);
6813
+ if (UPLOAD_UPLOADS) _printDatetime(`User uploads retrieved`);
6809
6814
  return UPLOAD_UPLOADS;
6810
6815
  }
6811
6816
  catch (error)
@@ -6920,7 +6925,7 @@ class NomadMediaSDK {
6920
6925
  {
6921
6926
  const LOCAL_RESTORE_INFO = await _localRestoreAsset(this, this.token, this.config.serviceApiUrl,
6922
6927
  ASSET_ID, PROFILE, this.debugMode);
6923
- _printDatetime(`Asset local restored: ${ASSET_ID}`);
6928
+ if (LOCAL_RESTORE_INFO) _printDatetime(`Asset local restored: ${ASSET_ID}`);
6924
6929
  return LOCAL_RESTORE_INFO;
6925
6930
  }
6926
6931
  catch (error)
@@ -6966,7 +6971,7 @@ class NomadMediaSDK {
6966
6971
  const MOVE_INFO = await _moveAsset(this, this.token, this.config.serviceApiUrl,
6967
6972
  ASSET_ID, DESTINATION_FOLDER_ID, NAME, BATCH_ACTION, CONTENT_DEFINITION_ID,
6968
6973
  SCHEMA_NAME, this.id, RESOLVER_EXCEMPT, this.debugMode);
6969
- _printDatetime(`Asset moved: ${ASSET_ID}`);
6974
+ if (MOVE_INFO) _printDatetime(`Asset moved: ${ASSET_ID}`);
6970
6975
  return MOVE_INFO;
6971
6976
  }
6972
6977
  catch (error)
@@ -7077,7 +7082,7 @@ class NomadMediaSDK {
7077
7082
  COLLECTIONS, RELATED_CONTENTS, SEQUENCER, ASSET_STATUS, STORAGE_CLASS, ASSET_TYPE,
7078
7083
  CONTENT_LENGTH, STORAGE_EVENT_NAME, CREATED_DATE, STORAGE_SOURCE_IP_ADDRESS,
7079
7084
  START_MEDIA_PROCESSOR, DELETE_MISSING_ASSET, this.debugMode);
7080
- _printDatetime(`Asset registered: ${ASSET_ID}`);
7085
+ if (REGISTER_INFO) _printDatetime(`Asset registered: ${ASSET_ID}`);
7081
7086
  return REGISTER_INFO;
7082
7087
  }
7083
7088
  catch (error)
@@ -7115,7 +7120,7 @@ class NomadMediaSDK {
7115
7120
  {
7116
7121
  const REPROCESS_INFO = await _reprocessAsset(this, this.token, this.config.serviceApiUrl,
7117
7122
  TARGET_IDS, this.debugMode);
7118
- _printDatetime(`Asset reprocessed`);
7123
+ if (REPROCESS_INFO) _printDatetime(`Asset reprocessed`);
7119
7124
  return REPROCESS_INFO;
7120
7125
  }
7121
7126
  catch (error)
@@ -7189,7 +7194,7 @@ class NomadMediaSDK {
7189
7194
  {
7190
7195
  const SHARE_INFO = await _shareAsset(this, this.token, this.config.serviceApiUrl,
7191
7196
  ASSET_ID, NOMAD_USERS, EXTERNAL_USERS, SHARE_DURATION_IN_HOURS, this.debugMode);
7192
- _printDatetime(`Asset shared: ${ASSET_ID}`);
7197
+ if (SHARE_INFO) _printDatetime(`Asset shared: ${ASSET_ID}`);
7193
7198
  return SHARE_INFO;
7194
7199
  }
7195
7200
  catch (error)
@@ -7229,7 +7234,7 @@ class NomadMediaSDK {
7229
7234
  {
7230
7235
  const START_INFO = await _startWorkflow(this, this.token, this.config.serviceApiUrl,
7231
7236
  ACTION_ARGUMENTS, TARGET_IDS, this.debugMode);
7232
- _printDatetime(`Workflow started`);
7237
+ if (START_INFO) _printDatetime(`Workflow started`);
7233
7238
  return START_INFO;
7234
7239
  }
7235
7240
  catch (error)
@@ -7318,7 +7323,7 @@ class NomadMediaSDK {
7318
7323
  const UPDATE_INFO = await _updateAnnotation(this, this.token, this.config.serviceApiUrl,
7319
7324
  ASSET_ID, ANNOTATION_ID, START_TIME_CODE, END_TIME_CODE, TITLE, SUMMARY,
7320
7325
  DESCRIPTION, CONTENT_ID, IMAGE_URL, this.debugMode);
7321
- _printDatetime(`Annotation updated`);
7326
+ if (UPDATE_INFO) _printDatetime(`Annotation updated`);
7322
7327
  return UPDATE_INFO;
7323
7328
  }
7324
7329
  catch (error)
@@ -7409,7 +7414,7 @@ class NomadMediaSDK {
7409
7414
  {
7410
7415
  const UPDATE_INFO = await _updateAssetAdBreak(this, this.token, this.config.serviceApiUrl,
7411
7416
  ASSET_ID, AD_BREAK_ID, TIME_CODE, TAGS, LABELS, this.debugMode);
7412
- _printDatetime(`Asset ad break updated`);
7417
+ if (UPDATE_INFO) _printDatetime(`Asset ad break updated`);
7413
7418
  return UPDATE_INFO;
7414
7419
  }
7415
7420
  catch (error)
@@ -7481,7 +7486,7 @@ class NomadMediaSDK {
7481
7486
  {
7482
7487
  const PING = await _ping(this, this.token, this.config.serviceApiUrl,
7483
7488
  APPLICATION_ID, USER_SESSION_ID, this.debugMode);
7484
- _printDatetime(`User pinged`);
7489
+ if (PING) _printDatetime(`User pinged`);
7485
7490
  return PING;
7486
7491
  }
7487
7492
  catch (error)
@@ -7514,7 +7519,7 @@ class NomadMediaSDK {
7514
7519
  {
7515
7520
  const PING = await _pingAuth(this, this.token, this.config.serviceApiUrl,
7516
7521
  APPLICATION_ID, USER_SESSION_ID, this.debugMode);
7517
- _printDatetime(`User pinged`);
7522
+ if (PING) _printDatetime(`User pinged`);
7518
7523
  return PING;
7519
7524
  }
7520
7525
  catch (error)
@@ -7598,7 +7603,7 @@ class NomadMediaSDK {
7598
7603
  MIN_SCORE, EXCLUDE_TOTAL_RECORD_COUNT, FILTER_BINDER, FULL_URL_FIELD_NAMES,
7599
7604
  DISTINCT_ON_FIELD_NAME, INCLUDE_VIDEO_CLIPS, USE_LLM_SEARCH,
7600
7605
  INCLUDE_INTERNAL_FIELDS_IN_RESULTS, this.config.apiType, this.debugMode);
7601
- _printDatetime(`Search complete`);
7606
+ if (SEARCH_INFO) _printDatetime(`Search complete`);
7602
7607
  return SEARCH_INFO.hasItems ? SEARCH_INFO : false
7603
7608
  }
7604
7609
  catch (error)
@@ -7709,7 +7714,7 @@ class NomadMediaSDK {
7709
7714
  {
7710
7715
  const GET_USER_INFO = await _getUser(this, this.token, this.config.serviceApiUrl,
7711
7716
  this.debugMode);
7712
- _printDatetime(`User gotten`);
7717
+ if (GET_USER_INFO) _printDatetime(`User gotten`);
7713
7718
  return GET_USER_INFO;
7714
7719
  }
7715
7720
  catch (error)
@@ -7760,7 +7765,7 @@ class NomadMediaSDK {
7760
7765
  const UPDATE_USER_INFO = await _updateUser(this, this.token, this.config.serviceApiUrl,
7761
7766
  ADDRESS, ADDRESS2, CITY, COUNTRY, FIRST_NAME, LAST_NAME, ORGANIZATION, PHONE_NUMBER,
7762
7767
  PHONE_EXT, POSTAL_CODE, STATE, this.debugMode);
7763
- _printDatetime(`User updated`);
7768
+ if (UPDATE_USER_INFO) _printDatetime(`User updated`);
7764
7769
  return UPDATE_USER_INFO;
7765
7770
  }
7766
7771
  catch (error)
@@ -7801,7 +7806,7 @@ class NomadMediaSDK {
7801
7806
  {
7802
7807
  const ADD_CONTENT_TO_CONTENT_GROUP_INFO = await _addContentsToContentGroup(this, this.token,
7803
7808
  this.config.serviceApiUrl, CONTENT_GROUP_ID, CONTENT_IDS, this.debugMode);
7804
- _printDatetime(`Content added to content group: ${CONTENT_GROUP_ID}`);
7809
+ if (ADD_CONTENT_TO_CONTENT_GROUP_INFO) _printDatetime(`Content added to content group: ${CONTENT_GROUP_ID}`);
7805
7810
  return ADD_CONTENT_TO_CONTENT_GROUP_INFO;
7806
7811
  }
7807
7812
  catch (error)
@@ -7840,7 +7845,7 @@ class NomadMediaSDK {
7840
7845
  {
7841
7846
  const CREATE_CONTENT_GROUP_INFO = await _createContentGroup(this, this.token,
7842
7847
  this.config.serviceApiUrl, NAME, this.debugMode);
7843
- _printDatetime(`Content group created: ${NAME}`);
7848
+ if (CREATE_CONTENT_GROUP_INFO) _printDatetime(`Content group created: ${NAME}`);
7844
7849
  return CREATE_CONTENT_GROUP_INFO;
7845
7850
  }
7846
7851
  catch (error)
@@ -7877,7 +7882,7 @@ class NomadMediaSDK {
7877
7882
  {
7878
7883
  const DELETE_CONTENT_GROUP_INFO = await _deleteContentGroup(this, this.token,
7879
7884
  this.config.serviceApiUrl, CONTENT_GROUP_ID, this.debugMode);
7880
- _printDatetime(`Content group deleted: ${CONTENT_GROUP_ID}`);
7885
+ if (DELETE_CONTENT_GROUP_INFO) _printDatetime(`Content group deleted: ${CONTENT_GROUP_ID}`);
7881
7886
  return DELETE_CONTENT_GROUP_INFO;
7882
7887
  }
7883
7888
  catch (error)
@@ -7916,7 +7921,7 @@ class NomadMediaSDK {
7916
7921
  {
7917
7922
  const GET_CONTENT_GROUP_INFO = await _getContentGroup(this, this.token,
7918
7923
  this.config.serviceApiUrl, CONTENT_GROUP_ID, this.debugMode);
7919
- _printDatetime(`Content group gotten: ${CONTENT_GROUP_ID}`);
7924
+ if (GET_CONTENT_GROUP_INFO) _printDatetime(`Content group gotten: ${CONTENT_GROUP_ID}`);
7920
7925
  return GET_CONTENT_GROUP_INFO;
7921
7926
  }
7922
7927
  catch (error)
@@ -7954,7 +7959,7 @@ class NomadMediaSDK {
7954
7959
  {
7955
7960
  const GET_CONTENT_GROUPS_INFO = await _getContentGroups(this, this.token,
7956
7961
  this.config.serviceApiUrl, this.debugMode);
7957
- _printDatetime(`Content groups gotten`);
7962
+ if (GET_CONTENT_GROUPS_INFO) _printDatetime(`Content groups gotten`);
7958
7963
  return GET_CONTENT_GROUPS_INFO;
7959
7964
  }
7960
7965
  catch (error)
@@ -7994,7 +7999,7 @@ class NomadMediaSDK {
7994
7999
  {
7995
8000
  const GET_PORTAL_GROUPS_INFO = await _getPortalGroups(this, this.token,
7996
8001
  this.config.serviceApiUrl, PORTAL_GROUPS, this.debugMode);
7997
- _printDatetime(`Portal groups gotten`);
8002
+ if (GET_PORTAL_GROUPS_INFO) _printDatetime(`Portal groups gotten`);
7998
8003
  return GET_PORTAL_GROUPS_INFO;
7999
8004
  }
8000
8005
  catch (error)
@@ -8034,7 +8039,7 @@ class NomadMediaSDK {
8034
8039
  {
8035
8040
  const REMOVE_CONTENT_FROM_CONTENT_GROUP_INFO = await _removeContentsFromContentGroup(
8036
8041
  this, this.token, this.config.serviceApiUrl, CONTENT_GROUP_ID, CONTENTS, this.debugMode);
8037
- _printDatetime(`Content removed from content group: ${CONTENT_GROUP_ID}`);
8042
+ if (REMOVE_CONTENT_FROM_CONTENT_GROUP_INFO) _printDatetime(`Content removed from content group: ${CONTENT_GROUP_ID}`);
8038
8043
  return REMOVE_CONTENT_FROM_CONTENT_GROUP_INFO;
8039
8044
  }
8040
8045
  catch (error)
@@ -8072,7 +8077,7 @@ class NomadMediaSDK {
8072
8077
  {
8073
8078
  const RENAME_CONTENT_GROUP_INFO = await _renameContentGroup(this, this.token,
8074
8079
  this.config.serviceApiUrl, CONTENT_GROUP_ID, NAME, this.debugMode);
8075
- _printDatetime(`Content group renamed: ${CONTENT_GROUP_ID}`);
8080
+ if (RENAME_CONTENT_GROUP_INFO) _printDatetime(`Content group renamed: ${CONTENT_GROUP_ID}`);
8076
8081
  return RENAME_CONTENT_GROUP_INFO;
8077
8082
  }
8078
8083
  catch (error)
@@ -8114,7 +8119,7 @@ class NomadMediaSDK {
8114
8119
  {
8115
8120
  const SHARE_CONTENT_GROUP_WITH_USERS_INFO = await _shareContentGroupWithUsers(this, this.token,
8116
8121
  this.config.serviceApiUrl, CONTENT_GROUP_ID, USER_IDS, this.debugMode);
8117
- _printDatetime(`Content group shared with users: ${CONTENT_GROUP_ID}`);
8122
+ if (SHARE_CONTENT_GROUP_WITH_USERS_INFO) _printDatetime(`Content group shared with users: ${CONTENT_GROUP_ID}`);
8118
8123
  return SHARE_CONTENT_GROUP_WITH_USERS_INFO;
8119
8124
  }
8120
8125
  catch (error)
@@ -8154,7 +8159,7 @@ class NomadMediaSDK {
8154
8159
  {
8155
8160
  const STOP_SHARING_CONTENT_GROUP_WITH_USERS_INFO = await _stopSharingContentGroupWithUsers(
8156
8161
  this, this.token, this.config.serviceApiUrl, CONTENT_GROUP_ID, USER_IDS, this.debugMode);
8157
- _printDatetime(`Content group stopped sharing with users: ${CONTENT_GROUP_ID}`);
8162
+ if (STOP_SHARING_CONTENT_GROUP_WITH_USERS_INFO) _printDatetime(`Content group stopped sharing with users: ${CONTENT_GROUP_ID}`);
8158
8163
  return STOP_SHARING_CONTENT_GROUP_WITH_USERS_INFO;
8159
8164
  }
8160
8165
  catch (error)
@@ -8273,7 +8278,7 @@ class NomadMediaSDK {
8273
8278
  {
8274
8279
  const GET_FORMS_INFO = await _createForm(this, this.token, this.config.serviceApiUrl,
8275
8280
  CONTENT_DEFINITION_ID, FORM_INFO, this.debugMode);
8276
- _printDatetime(`Form created`);
8281
+ if (GET_FORMS_INFO) _printDatetime(`Form created`);
8277
8282
  return GET_FORMS_INFO;
8278
8283
  }
8279
8284
  catch (error)
@@ -8313,7 +8318,7 @@ class NomadMediaSDK {
8313
8318
  {
8314
8319
  const GET_CONTENT_COOKIES_INFO = await _getContentCookies(this, this.token,
8315
8320
  this.config.serviceApiUrl, CONTENT_ID, this.debugMode);
8316
- _printDatetime(`Content cookies gotten`);
8321
+ if (GET_CONTENT_COOKIES_INFO) _printDatetime(`Content cookies gotten`);
8317
8322
  return GET_CONTENT_COOKIES_INFO;
8318
8323
  }
8319
8324
  catch (error)
@@ -8350,7 +8355,7 @@ class NomadMediaSDK {
8350
8355
  {
8351
8356
  const GET_DYNAMIC_CONTENTS_INFO = await _getDefaultSiteConfig(this, this.token,
8352
8357
  this.config.serviceApiUrl, this.debugMode);
8353
- _printDatetime(`Default site config gotten`);
8358
+ if (GET_DYNAMIC_CONTENTS_INFO) _printDatetime(`Default site config gotten`);
8354
8359
  return GET_DYNAMIC_CONTENTS_INFO;
8355
8360
  }
8356
8361
  catch (error)
@@ -8383,7 +8388,7 @@ class NomadMediaSDK {
8383
8388
  {
8384
8389
  const GET_DYNAMIC_CONTENT_INFO = await _getDynamicContent(this, this.token,
8385
8390
  this.config.serviceApiUrl, DYNAMIC_CONTENT_RECORD_ID, this.debugMode);
8386
- _printDatetime(`Dynamic content gotten: ${DYNAMIC_CONTENT_RECORD_ID}`);
8391
+ if (GET_DYNAMIC_CONTENT_INFO) _printDatetime(`Dynamic content gotten: ${DYNAMIC_CONTENT_RECORD_ID}`);
8387
8392
  return GET_DYNAMIC_CONTENT_INFO;
8388
8393
  }
8389
8394
  catch (error)
@@ -8420,7 +8425,7 @@ class NomadMediaSDK {
8420
8425
  {
8421
8426
  const GET_DYNAMIC_CONTENTS_INFO = await _getDynamicContents(this, this.token,
8422
8427
  this.config.serviceApiUrl, this.debugMode);
8423
- _printDatetime(`Dynamic contents gotten`);
8428
+ if (GET_DYNAMIC_CONTENTS_INFO) _printDatetime(`Dynamic contents gotten`);
8424
8429
  return GET_DYNAMIC_CONTENTS_INFO;
8425
8430
  }
8426
8431
  catch (error)
@@ -8458,7 +8463,7 @@ class NomadMediaSDK {
8458
8463
  {
8459
8464
  const GET_MEDIA_GROUP_INFO = await _getMediaGroup(this, this.token, this.config.serviceApiUrl,
8460
8465
  MEDIA_GROUP_ID, this.debugMode);
8461
- _printDatetime(`Media group gotten: ${MEDIA_GROUP_ID}`);
8466
+ if (GET_MEDIA_GROUP_INFO) _printDatetime(`Media group gotten: ${MEDIA_GROUP_ID}`);
8462
8467
  return GET_MEDIA_GROUP_INFO;
8463
8468
  }
8464
8469
  catch (error)
@@ -8496,7 +8501,7 @@ class NomadMediaSDK {
8496
8501
  {
8497
8502
  const GET_MEDIA_ITEM_INFO = await _getMediaItem(this, this.token, this.config.serviceApiUrl,
8498
8503
  MEDIA_ITEM_ID, this.debugMode);
8499
- _printDatetime(`Media item gotten: ${MEDIA_ITEM_ID}`);
8504
+ if (GET_MEDIA_ITEM_INFO) _printDatetime(`Media item gotten: ${MEDIA_ITEM_ID}`);
8500
8505
  return GET_MEDIA_ITEM_INFO;
8501
8506
  }
8502
8507
  catch (error)
@@ -8535,7 +8540,7 @@ class NomadMediaSDK {
8535
8540
  {
8536
8541
  const GET_MY_CONTENT_INFO = await _getMyContent(this, this.token, this.config.serviceApiUrl,
8537
8542
  this.debugMode);
8538
- _printDatetime(`My content gotten`);
8543
+ if (GET_MY_CONTENT_INFO) _printDatetime(`My content gotten`);
8539
8544
  return GET_MY_CONTENT_INFO;
8540
8545
  }
8541
8546
  catch (error)
@@ -8568,7 +8573,7 @@ class NomadMediaSDK {
8568
8573
  {
8569
8574
  const GET_MY_GROUP_INFO = await _getMyGroup(this, this.token, this.config.serviceApiUrl,
8570
8575
  GROUP_ID, this.debugMode);
8571
- _printDatetime(`My group gotten: ${GROUP_ID}`);
8576
+ if (GET_MY_GROUP_INFO) _printDatetime(`My group gotten: ${GROUP_ID}`);
8572
8577
  return GET_MY_GROUP_INFO;
8573
8578
  }
8574
8579
  catch (error)
@@ -8601,7 +8606,7 @@ class NomadMediaSDK {
8601
8606
  {
8602
8607
  const GET_DYNAMIC_CONTENT_INFO = await _getSiteConfig(this, this.token,
8603
8608
  this.config.serviceApiUrl, SITE_CONFIG_RECORD_ID, this.debugMode);
8604
- _printDatetime(`Site config gotten: ${SITE_CONFIG_RECORD_ID}`);
8609
+ if (GET_DYNAMIC_CONTENT_INFO) _printDatetime(`Site config gotten: ${SITE_CONFIG_RECORD_ID}`);
8605
8610
  return GET_DYNAMIC_CONTENT_INFO;
8606
8611
  }
8607
8612
  catch (error)
@@ -8644,7 +8649,7 @@ class NomadMediaSDK {
8644
8649
  {
8645
8650
  const MEDIA_SEARCH_INFO = await _mediaSearch(this, this.token, this.config.serviceApiUrl,
8646
8651
  QUERY, IDS, SORT_FIELDS, OFFSET, SIZE, this.debugMode);
8647
- _printDatetime(`Media search complete`);
8652
+ if (MEDIA_SEARCH_INFO) _printDatetime(`Media search complete`);
8648
8653
  return MEDIA_SEARCH_INFO;
8649
8654
  }
8650
8655
  catch (error)
@@ -8694,7 +8699,7 @@ class NomadMediaSDK {
8694
8699
  const CREATE_MEDIA_BUILDER_INFO = await _createMediaBuilder(this, this.token,
8695
8700
  this.config.serviceApiUrl, NAME, DESTINATION_FOLDER_ID, COLLECTIONS,
8696
8701
  RELATED_CONTENTS, TAGS, PROPERTIES, this.debugMode);
8697
- _printDatetime(`Media builder created`);
8702
+ if (CREATE_MEDIA_BUILDER_INFO) _printDatetime(`Media builder created`);
8698
8703
  return CREATE_MEDIA_BUILDER_INFO;
8699
8704
  }
8700
8705
  catch (error)
@@ -8738,7 +8743,7 @@ class NomadMediaSDK {
8738
8743
  this.config.serviceApiUrl, MEDIA_BUILDER_ID, SOURCE_ASSET_ID, START_TIME_CODE,
8739
8744
  END_TIME_CODE, SOURCE_ANNOTATION_ID, RELATED_CONTENTS, this.debugMode);
8740
8745
 
8741
- _printDatetime(`Media builder item created`);
8746
+ if (CREATE_MEDIA_BUILDER_ITEM_INFO) _printDatetime(`Media builder item created`);
8742
8747
  return CREATE_MEDIA_BUILDER_ITEM_INFO;
8743
8748
  }
8744
8749
  catch (error)
@@ -8775,7 +8780,7 @@ class NomadMediaSDK {
8775
8780
  this.token, this.config.serviceApiUrl, MEDIA_BUILDER_ID, SOURCE_ASSET_ID,
8776
8781
  this.debugMode);
8777
8782
 
8778
- _printDatetime(`Media builder item created and annotations added`);
8783
+ if (CREATE_MEDIA_BUILDER_ITEM_INFO) _printDatetime(`Media builder item created and annotations added`);
8779
8784
  return CREATE_MEDIA_BUILDER_ITEM_INFO;
8780
8785
  }
8781
8786
  catch (error)
@@ -8813,7 +8818,7 @@ class NomadMediaSDK {
8813
8818
  const CREATE_MEDIA_BUILDER_ITEMS_INFO = await _createMediaBuilderItemsBulk(this, this.token,
8814
8819
  this.config.serviceApiUrl, MEDIA_BUILDER_ID, MEDIA_BUILDER_ITEMS, this.debugMode);
8815
8820
 
8816
- _printDatetime(`Media builder items created`);
8821
+ if (CREATE_MEDIA_BUILDER_ITEMS_INFO) _printDatetime(`Media builder items created`);
8817
8822
  return CREATE_MEDIA_BUILDER_ITEMS_INFO;
8818
8823
  }
8819
8824
  catch (error)
@@ -8934,7 +8939,7 @@ class NomadMediaSDK {
8934
8939
  const DUPLICATE_MEDIA_BUILDER_INFO = await _duplicateMediaBuilder(this, this.token,
8935
8940
  this.config.serviceApiUrl, MEDIA_BUILDER_ID, NAME, DESTINATION_FOLDER_ID, COLLECTIONS,
8936
8941
  RELATED_CONTENTS, PROPERTIES, this.debugMode);
8937
- _printDatetime(`Media builder duplicated: ${MEDIA_BUILDER_ID}`);
8942
+ if (DUPLICATE_MEDIA_BUILDER_INFO) _printDatetime(`Media builder duplicated: ${MEDIA_BUILDER_ID}`);
8938
8943
  return DUPLICATE_MEDIA_BUILDER_INFO;
8939
8944
  }
8940
8945
  catch (error)
@@ -8972,7 +8977,7 @@ class NomadMediaSDK {
8972
8977
  {
8973
8978
  const GET_MEDIA_BUILDER_INFO = await _getMediaBuilder(this, this.token,
8974
8979
  this.config.serviceApiUrl, MEDIA_BUILDER_ID, this.debugMode);
8975
- _printDatetime(`Media builder gotten: ${MEDIA_BUILDER_ID}`);
8980
+ if (GET_MEDIA_BUILDER_INFO) _printDatetime(`Media builder gotten: ${MEDIA_BUILDER_ID}`);
8976
8981
  return GET_MEDIA_BUILDER_INFO;
8977
8982
  }
8978
8983
  catch (error)
@@ -9010,7 +9015,7 @@ class NomadMediaSDK {
9010
9015
  {
9011
9016
  const GET_MEDIA_BUILDER_IDS_FROM_ASSET_INFO = await _getMediaBuilderIdsFromAsset(this, this.token,
9012
9017
  this.config.serviceApiUrl, SOURCE_ASSET_ID, this.debugMode);
9013
- _printDatetime(`Media builder ids from asset gotten: ${SOURCE_ASSET_ID}`);
9018
+ if (GET_MEDIA_BUILDER_IDS_FROM_ASSET_INFO) _printDatetime(`Media builder ids from asset gotten: ${SOURCE_ASSET_ID}`);
9014
9019
  return GET_MEDIA_BUILDER_IDS_FROM_ASSET_INFO;
9015
9020
  }
9016
9021
  catch (error)
@@ -9047,7 +9052,7 @@ class NomadMediaSDK {
9047
9052
  {
9048
9053
  const GET_MEDIA_BUILDERS_INFO = await _getMediaBuilders(this, this.token,
9049
9054
  this.config.serviceApiUrl, this.debugMode);
9050
- _printDatetime(`Media builders gotten`);
9055
+ if (GET_MEDIA_BUILDERS_INFO) _printDatetime(`Media builders gotten`);
9051
9056
  return GET_MEDIA_BUILDERS_INFO;
9052
9057
  }
9053
9058
  catch (error)
@@ -9085,7 +9090,7 @@ class NomadMediaSDK {
9085
9090
  {
9086
9091
  const GET_MEDIA_BUILDER_ITEMS_INFO = await _getMediaBuilderItems(this, this.token,
9087
9092
  this.config.serviceApiUrl, MEDIA_BUILDER_ID, this.debugMode);
9088
- _printDatetime(`Media builder items gotten: ${MEDIA_BUILDER_ID}`);
9093
+ if (GET_MEDIA_BUILDER_ITEMS_INFO) _printDatetime(`Media builder items gotten: ${MEDIA_BUILDER_ID}`);
9089
9094
  return GET_MEDIA_BUILDER_ITEMS_INFO;
9090
9095
  }
9091
9096
  catch (error)
@@ -9161,7 +9166,7 @@ class NomadMediaSDK {
9161
9166
  {
9162
9167
  const RENDER_MEDIA_BUILDER_INFO = await _renderMediaBuilder(this, this.token,
9163
9168
  this.config.serviceApiUrl, MEDIA_BUILDER_ID, this.debugMode);
9164
- _printDatetime(`Media builder rendered: ${MEDIA_BUILDER_ID}`);
9169
+ if (RENDER_MEDIA_BUILDER_INFO) _printDatetime(`Media builder rendered: ${MEDIA_BUILDER_ID}`);
9165
9170
  return RENDER_MEDIA_BUILDER_INFO;
9166
9171
  }
9167
9172
  catch (error)
@@ -9211,7 +9216,7 @@ class NomadMediaSDK {
9211
9216
  const UPDATE_MEDIA_BUILDER_INFO = await _updateMediaBuilder(this, this.token,
9212
9217
  this.config.serviceApiUrl, MEDIA_BUILDER_ID, NAME, DESTINATION_FOLDER_ID, COLLECTIONS,
9213
9218
  RELATED_CONTENTS, TAGS, PROPERTIES, this.debugMode);
9214
- _printDatetime(`Media builder updated: ${MEDIA_BUILDER_ID}`);
9219
+ if (UPDATE_MEDIA_BUILDER_INFO) _printDatetime(`Media builder updated: ${MEDIA_BUILDER_ID}`);
9215
9220
  return UPDATE_MEDIA_BUILDER_INFO;
9216
9221
  }
9217
9222
  catch (error)
@@ -9258,7 +9263,7 @@ class NomadMediaSDK {
9258
9263
  const GUEST_INVITE_INFO = await _guestInvite(this, this.token, this.config.serviceApiUrl,
9259
9264
  CONTENT_ID, CONTENT_DEFINITION_ID, USER_ID, EMAILS, CONTENT_SECURITY_ATTRIBUTE,
9260
9265
  this.debugMode);
9261
- _printDatetime(`Guest invited`);
9266
+ if (GUEST_INVITE_INFO) _printDatetime(`Guest invited`);
9262
9267
  return GUEST_INVITE_INFO;
9263
9268
  }
9264
9269
  catch (error)
@@ -9299,7 +9304,7 @@ class NomadMediaSDK {
9299
9304
  {
9300
9305
  const REGISTER_GUEST_INFO = await _registerGuest(this, this.token, this.config.serviceApiUrl, EMAIL,
9301
9306
  FIRST_NAME, LAST_NAME, PASSWORD, this.debugMode);
9302
- _printDatetime(`Guest registered: ${EMAIL}`);
9307
+ if (REGISTER_GUEST_INFO) _printDatetime(`Guest registered: ${EMAIL}`);
9303
9308
  return REGISTER_GUEST_INFO;
9304
9309
  }
9305
9310
  catch (error)
@@ -9342,7 +9347,7 @@ class NomadMediaSDK {
9342
9347
  const REMOVE_GUEST_INFO = await _removeGuest(this, this.token, this.config.serviceApiUrl,
9343
9348
  CONTENT_ID, CONTENT_DEFINITION_ID, USER_ID, EMAILS, CONTENT_SECURITY_ATTRIBUTE,
9344
9349
  this.debugMode);
9345
- _printDatetime(`Guest removed`);
9350
+ if (REMOVE_GUEST_INFO) _printDatetime(`Guest removed`);
9346
9351
  return REMOVE_GUEST_INFO;
9347
9352
  }
9348
9353
  catch (error)
@@ -9410,7 +9415,7 @@ class NomadMediaSDK {
9410
9415
  TYPE, QUERY, OFFSET, SIZE, FILTERS, SORT_FIELDS, SEARCH_RESULT_FIELDS,
9411
9416
  SIMILAR_ASSET_ID, MIN_SCORE, EXCLUDE_TOTAL_RECORD_COUNT, FILTER_BINDER,
9412
9417
  this.debugMode);
9413
- _printDatetime("Saved search added");
9418
+ if (ADD_SAVED_SEARCH_INFO) _printDatetime("Saved search added");
9414
9419
  return ADD_SAVED_SEARCH_INFO;
9415
9420
  }
9416
9421
  catch (error)
@@ -9483,7 +9488,7 @@ class NomadMediaSDK {
9483
9488
  {
9484
9489
  const GET_SAVED_SEARCH_INFO = await _getSavedSearch(this, this.token, this.config.serviceApiUrl,
9485
9490
  ID, this.debugMode);
9486
- _printDatetime(`Saved search gotten: ${ID}`);
9491
+ if (GET_SAVED_SEARCH_INFO) _printDatetime(`Saved search gotten: ${ID}`);
9487
9492
  return GET_SAVED_SEARCH_INFO;
9488
9493
  }
9489
9494
  catch (error)
@@ -9520,7 +9525,7 @@ class NomadMediaSDK {
9520
9525
  {
9521
9526
  const GET_SAVED_SEARCHES_INFO = await _getSavedSearches(this, this.token,
9522
9527
  this.config.serviceApiUrl, this.debugMode);
9523
- _printDatetime("Saved searches gotten");
9528
+ if (GET_SAVED_SEARCHES_INFO) _printDatetime("Saved searches gotten");
9524
9529
  return GET_SAVED_SEARCHES_INFO;
9525
9530
  }
9526
9531
  catch (error)
@@ -9579,7 +9584,7 @@ class NomadMediaSDK {
9579
9584
  this.config.serviceApiUrl, QUERY, OFFSET, SIZE, FILTERS, SORT_FIELDS,
9580
9585
  SEARCH_RESULT_FIELDS, SIMILAR_ASSET_ID, MIN_SCORE, EXCLUDE_TOTAL_RECORD_COUNT,
9581
9586
  FILTER_BINDER, this.debugMode);
9582
- _printDatetime("Search saved gotten");
9587
+ if (GET_SEARCH_SAVED_INFO) _printDatetime("Search saved gotten");
9583
9588
  return GET_SEARCH_SAVED_INFO;
9584
9589
  }
9585
9590
  catch (error)
@@ -9617,7 +9622,7 @@ class NomadMediaSDK {
9617
9622
  {
9618
9623
  const GET_SEARCH_SAVED_BY_ID_INFO = await _getSearchSavedById(this, this.token,
9619
9624
  this.config.serviceApiUrl, ID, this.debugMode);
9620
- _printDatetime(`Search saved by ID gotten: ${ID}`);
9625
+ if (GET_SEARCH_SAVED_BY_ID_INFO) _printDatetime(`Search saved by ID gotten: ${ID}`);
9621
9626
  return GET_SEARCH_SAVED_BY_ID_INFO;
9622
9627
  }
9623
9628
  catch (error)
@@ -9661,7 +9666,7 @@ class NomadMediaSDK {
9661
9666
  const PATCH_SAVED_SEARCH_INFO = await _patchSavedSearch(this, this.token,
9662
9667
  this.config.serviceApiUrl, ID, NAME, FEATURED, BOOKMARKED, PUBLIC,
9663
9668
  SEQUENCE, this.debugMode);
9664
- _printDatetime(`Saved search patched: ${ID}`);
9669
+ if (PATCH_SAVED_SEARCH_INFO) _printDatetime(`Saved search patched: ${ID}`);
9665
9670
  return PATCH_SAVED_SEARCH_INFO;
9666
9671
  }
9667
9672
  catch (error)
@@ -9729,7 +9734,7 @@ class NomadMediaSDK {
9729
9734
  SEQUENCE, QUERY, OFFSET, SIZE, FILTERS, SORT_FIELDS, SEARCH_RESULT_FIELDS,
9730
9735
  SIMILAR_ASSET_ID, MIN_SCORE, EXCLUDE_TOTAL_RECORD_COUNT, FILTER_BINDER,
9731
9736
  this.debugMode);
9732
- _printDatetime(`Saved search updated: ${ID}`);
9737
+ if (UPDATE_SAVED_SEARCH_INFO) _printDatetime(`Saved search updated: ${ID}`);
9733
9738
  return UPDATE_SAVED_SEARCH_INFO;
9734
9739
  }
9735
9740
  catch (error)
@@ -10046,7 +10051,7 @@ async function _getAudit(instance, AUTH_TOKEN, URL, CONTENT_ID, DEBUG_MODE)
10046
10051
  {
10047
10052
  const API_URL = `${URL}/api/admin/audit/${CONTENT_ID}`;
10048
10053
 
10049
- return await _sendRequest(instance, AUTH_TOKEN, "Get Audit", API_URL, "GET", null, null, DEBUG_MODE);
10054
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Audit", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10050
10055
  }
10051
10056
 
10052
10057
 
@@ -10066,7 +10071,7 @@ async function _getConfig(instance, AUTH_TOKEN, URL, CONFIG_TYPE, DEBUG_MODE)
10066
10071
  {
10067
10072
  const API_URL = `${URL}/api/config?configType=${CONFIG_TYPE}`;
10068
10073
 
10069
- return await _sendRequest(instance, AUTH_TOKEN, "Get Config", API_URL, "GET", null, null, DEBUG_MODE);
10074
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Config", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10070
10075
  }
10071
10076
 
10072
10077
 
@@ -10077,7 +10082,7 @@ async function _getServerTime(instance, AUTH_TOKEN, URL, DEBUG_MODE)
10077
10082
  {
10078
10083
  const API_URL = `${URL}/api/config/serverTime`;
10079
10084
 
10080
- return await _sendRequest(instance, AUTH_TOKEN, "Get Server Time", API_URL, "GET", null, null, DEBUG_MODE);
10085
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Server Time", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10081
10086
  }
10082
10087
 
10083
10088
 
@@ -10087,7 +10092,7 @@ async function _createContentDefinition(instance, AUTH_TOKEN, URL, DEBUG_MODE)
10087
10092
  {
10088
10093
  const API_URL = `${URL}/api/contentDefinition/New`;
10089
10094
 
10090
- return await _sendRequest(instance, AUTH_TOKEN, "Create Content Definition", API_URL, "GET", null, null, DEBUG_MODE);
10095
+ return await _sendRequest(instance, AUTH_TOKEN, "Create Content Definition", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10091
10096
  }
10092
10097
 
10093
10098
 
@@ -10097,7 +10102,7 @@ async function _getContentDefinitionGroups(instance, AUTH_TOKEN, URL, DEBUG_MODE
10097
10102
  {
10098
10103
  const API_URL = `${URL}/api/contentDefinitionGroup`;
10099
10104
 
10100
- return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definition Group", API_URL, "GET", null, null, DEBUG_MODE);
10105
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definition Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10101
10106
  }
10102
10107
 
10103
10108
 
@@ -10107,7 +10112,7 @@ async function _getContentDefinitionTypes(instance, AUTH_TOKEN, URL, DEBUG_MODE)
10107
10112
  {
10108
10113
  const API_URL = `${URL}/lookup/6`;
10109
10114
 
10110
- return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definition Types", API_URL, "GET", null, null, DEBUG_MODE);
10115
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definition Types", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10111
10116
  }
10112
10117
 
10113
10118
 
@@ -10117,7 +10122,7 @@ async function _getContentDefinition(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
10117
10122
  {
10118
10123
  const API_URL = `${URL}/contentDefinition/${ID}`;
10119
10124
 
10120
- return await _sendRequest(instance, AUTH_TOKEN, ".", API_URL, "GET", null, null, DEBUG_MODE);
10125
+ return await _sendRequest(instance, AUTH_TOKEN, ".", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10121
10126
  }
10122
10127
 
10123
10128
 
@@ -10136,7 +10141,7 @@ async function _getContentDefinitions(instance, AUTH_TOKEN, URL, CONTENT_MANAGEM
10136
10141
  "pageSize": PAGE_SIZE
10137
10142
  }
10138
10143
 
10139
- return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definitions", API_URL, "GET", PARAMS, null, DEBUG_MODE);
10144
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Content Definitions", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
10140
10145
  }
10141
10146
 
10142
10147
 
@@ -10146,7 +10151,7 @@ async function _getSystemRoles(instance, AUTH_TOKEN, URL, DEBUG_MODE)
10146
10151
  {
10147
10152
  const API_URL = `${URL}/lookup/45`;
10148
10153
 
10149
- return await _sendRequest(instance, AUTH_TOKEN, "Get System Roles", API_URL, "GET", null, null, DEBUG_MODE);
10154
+ return await _sendRequest(instance, AUTH_TOKEN, "Get System Roles", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10150
10155
  }
10151
10156
 
10152
10157
 
@@ -10235,19 +10240,19 @@ async function _updateContentDefinition(instance, AUTH_TOKEN, URL, ID, NAME, CON
10235
10240
  }
10236
10241
 
10237
10242
 
10238
-
10239
-
10240
- async function _createContent(instance, AUTH_TOKEN, URL, CONTENT_DEFINITION_ID, LANGUAGE_ID, DEBUG_MODE)
10241
- {
10242
- const API_URL = `${URL}/api/content/new?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
10243
-
10244
- const PARAMS = {
10245
- "languageId": LANGUAGE_ID
10246
- }
10247
-
10248
- return await _sendRequest(instance, AUTH_TOKEN, "Create Content", API_URL, "GET", PARAMS, null, DEBUG_MODE);
10249
- }
10250
-
10243
+
10244
+
10245
+ async function _createContent(instance, AUTH_TOKEN, URL, CONTENT_DEFINITION_ID, LANGUAGE_ID, DEBUG_MODE)
10246
+ {
10247
+ const API_URL = `${URL}/api/content/new?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
10248
+
10249
+ const PARAMS = {
10250
+ "languageId": LANGUAGE_ID
10251
+ }
10252
+
10253
+ return await _sendRequest(instance, AUTH_TOKEN, "Create Content", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
10254
+ }
10255
+
10251
10256
 
10252
10257
 
10253
10258
 
@@ -10260,16 +10265,16 @@ async function _deactivateContentUserTrack(instance, AUTH_TOKEN, URL, SESSION_ID
10260
10265
  }
10261
10266
 
10262
10267
 
10263
-
10264
-
10265
- async function _deleteContent(instance, AUTH_TOKEN, URL, CONTENT_ID,
10266
- CONTENT_DEFINITION_ID, DEBUG_MODE)
10267
- {
10268
- const API_URL = `${URL}/api/content/${CONTENT_ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
10269
-
10270
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Content", API_URL, "DELETE", null, null, DEBUG_MODE);
10271
- }
10272
-
10268
+
10269
+
10270
+ async function _deleteContent(instance, AUTH_TOKEN, URL, CONTENT_ID,
10271
+ CONTENT_DEFINITION_ID, DEBUG_MODE)
10272
+ {
10273
+ const API_URL = `${URL}/api/content/${CONTENT_ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
10274
+
10275
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Content", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
10276
+ }
10277
+
10273
10278
 
10274
10279
 
10275
10280
 
@@ -10278,7 +10283,7 @@ async function _getContentUserTrackTouch(instance, AUTH_TOKEN, URL, CONTENT_ID,
10278
10283
  {
10279
10284
  const API_URL = `${URL}/api/content/${CONTENT_DEFINITION_ID}/user-track/${CONTENT_ID}/touch`;
10280
10285
 
10281
- return await _sendRequest(instance, AUTH_TOKEN, "Get Content User Track Touch", API_URL, "GET", null, null, DEBUG_MODE);
10286
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Content User Track Touch", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10282
10287
  }
10283
10288
 
10284
10289
 
@@ -10296,25 +10301,25 @@ async function _getContentUserTrack(instance, AUTH_TOKEN, URL, CONTENT_ID,
10296
10301
  "sizeIndex": SIZE_INDEX
10297
10302
  }
10298
10303
 
10299
- return await _sendRequest(instance, AUTH_TOKEN, "Get Content User Track", API_URL, "GET", PARAMS, null, DEBUG_MODE);
10304
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Content User Track", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
10300
10305
  }
10301
10306
 
10302
10307
 
10303
-
10304
-
10305
- async function _getContent(instance, AUTH_TOKEN, URL, CONTENT_ID, CONTENT_DEFINITION_ID,
10306
- IS_REVISION, DEBUG_MODE)
10307
- {
10308
-
10309
- let API_URL = `${URL}/api/content/${CONTENT_ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`
10310
-
10311
- const PARAMS = {
10312
- "isRevision": IS_REVISION
10313
- }
10314
-
10315
- return await _sendRequest(instance, AUTH_TOKEN, "Get Content", API_URL, "GET", null, null, DEBUG_MODE);
10316
- }
10317
-
10308
+
10309
+
10310
+ async function _getContent(instance, AUTH_TOKEN, URL, CONTENT_ID, CONTENT_DEFINITION_ID,
10311
+ IS_REVISION, DEBUG_MODE)
10312
+ {
10313
+
10314
+ let API_URL = `${URL}/api/content/${CONTENT_ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`
10315
+
10316
+ const PARAMS = {
10317
+ "isRevision": IS_REVISION
10318
+ }
10319
+
10320
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Content", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10321
+ }
10322
+
10318
10323
 
10319
10324
 
10320
10325
 
@@ -10406,52 +10411,52 @@ async function _addLiveScheduleToEvent(instance, AUTH_TOKEN, URL, EVENT_ID, SLAT
10406
10411
  }
10407
10412
 
10408
10413
 
10409
-
10410
-
10411
-
10412
- async function _createAndUpdateEvent(instance, AUTH_TOKEN, URL, CONTENT_ID,
10413
- CONTENT_DEFINITION_ID, NAME, START_DATETIME, END_DATETIME, EVENT_TYPE, SERIES,
10414
- DISABLED, OVERRIDE_SERIES_PROPERTIES, SERIES_PROPERTIES, DEBUG_MODE)
10415
- {
10416
- if (!CONTENT_ID)
10417
- {
10418
- const GET_API_URL = `${URL}/api/content/new?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
10419
-
10420
- const INFO = await _sendRequest(instance, AUTH_TOKEN, "Get Content ID", GET_API_URL, "GET", null, null, DEBUG_MODE);
10421
- CONTENT_ID = INFO.contentId;
10422
- }
10423
-
10424
- const API_URL = `${URL}/api/content/${CONTENT_ID}`;
10425
-
10426
- if (!SERIES_PROPERTIES || !OVERRIDE_SERIES_PROPERTIES) SERIES_PROPERTIES = {};
10427
-
10428
- SERIES_PROPERTIES.name = NAME ? NAME : (SERIES && SERIES.description);
10429
- SERIES_PROPERTIES.startDatetime = START_DATETIME;
10430
- SERIES_PROPERTIES.endDatetime = END_DATETIME;
10431
- SERIES_PROPERTIES.eventType = EVENT_TYPE;
10432
- if (SERIES) SERIES_PROPERTIES.series = SERIES;
10433
- SERIES_PROPERTIES.disabled = DISABLED;
10434
- SERIES_PROPERTIES.overideSeriesDetails = OVERRIDE_SERIES_PROPERTIES;
10435
-
10436
- const BODY = {
10437
- contentId: CONTENT_ID,
10438
- contentDefinitionId : CONTENT_DEFINITION_ID,
10439
- properties: SERIES_PROPERTIES
10440
- };
10441
-
10442
- return await _sendRequest(instance, AUTH_TOKEN, "Create and Update Event", API_URL, "POST", null, BODY, DEBUG_MODE);
10443
- }
10444
-
10445
10414
 
10446
-
10447
-
10448
- async function _deleteEvent(instance, AUTH_TOKEN, URL, ID, CONTENT_DEFINITION_ID, DEBUG_MODE)
10449
- {
10450
- const API_URL = `${URL}/api/content/${ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
10451
-
10452
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Event", API_URL, "DELETE", null, null, DEBUG_MODE);
10453
- }
10454
-
10415
+
10416
+
10417
+ async function _createAndUpdateEvent(instance, AUTH_TOKEN, URL, CONTENT_ID,
10418
+ CONTENT_DEFINITION_ID, NAME, START_DATETIME, END_DATETIME, EVENT_TYPE, SERIES,
10419
+ DISABLED, OVERRIDE_SERIES_PROPERTIES, SERIES_PROPERTIES, DEBUG_MODE)
10420
+ {
10421
+ if (!CONTENT_ID)
10422
+ {
10423
+ const GET_API_URL = `${URL}/api/content/new?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
10424
+
10425
+ const INFO = await _sendRequest(instance, AUTH_TOKEN, "Get Content ID", GET_API_URL, "GET", undefined, undefined, DEBUG_MODE);
10426
+ CONTENT_ID = INFO.contentId;
10427
+ }
10428
+
10429
+ const API_URL = `${URL}/api/content/${CONTENT_ID}`;
10430
+
10431
+ if (!SERIES_PROPERTIES || !OVERRIDE_SERIES_PROPERTIES) SERIES_PROPERTIES = {};
10432
+
10433
+ SERIES_PROPERTIES.name = NAME ? NAME : (SERIES && SERIES.description);
10434
+ SERIES_PROPERTIES.startDatetime = START_DATETIME;
10435
+ SERIES_PROPERTIES.endDatetime = END_DATETIME;
10436
+ SERIES_PROPERTIES.eventType = EVENT_TYPE;
10437
+ if (SERIES) SERIES_PROPERTIES.series = SERIES;
10438
+ SERIES_PROPERTIES.disabled = DISABLED;
10439
+ SERIES_PROPERTIES.overideSeriesDetails = OVERRIDE_SERIES_PROPERTIES;
10440
+
10441
+ const BODY = {
10442
+ contentId: CONTENT_ID,
10443
+ contentDefinitionId : CONTENT_DEFINITION_ID,
10444
+ properties: SERIES_PROPERTIES
10445
+ };
10446
+
10447
+ return await _sendRequest(instance, AUTH_TOKEN, "Create and Update Event", API_URL, "POST", null, BODY, DEBUG_MODE);
10448
+ }
10449
+
10450
+
10451
+
10452
+
10453
+ async function _deleteEvent(instance, AUTH_TOKEN, URL, ID, CONTENT_DEFINITION_ID, DEBUG_MODE)
10454
+ {
10455
+ const API_URL = `${URL}/api/content/${ID}?contentDefinitionId=${CONTENT_DEFINITION_ID}`;
10456
+
10457
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Event", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
10458
+ }
10459
+
10455
10460
 
10456
10461
 
10457
10462
 
@@ -10478,7 +10483,7 @@ async function _getLiveSchedule(instance, AUTH_TOKEN, URL, EVENT_ID, DEBUG_MODE)
10478
10483
  {
10479
10484
  const API_URL = `${URL}/api/admin/liveSchedule/content/${EVENT_ID}`;
10480
10485
 
10481
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Schedule", API_URL, "GET", null, null, DEBUG_MODE);
10486
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Schedule", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10482
10487
  }
10483
10488
 
10484
10489
 
@@ -10585,46 +10590,46 @@ async function _createLiveChannel(instance, AUTH_TOKEN, URL, NAME, THUMBNAIL_IMA
10585
10590
 
10586
10591
 
10587
10592
 
10588
-
10589
-
10590
-
10591
-
10592
- async function _deleteLiveChannel(instance, AUTH_TOKEN, URL, CHANNEL_ID, DELETE_INPUTS, DEBUG_MODE)
10593
- {
10594
- const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}`
10595
-
10596
- let INPUT_IDS = null;
10597
- // If delete Live Inputs then get their IDs
10598
- if (DELETE_INPUTS === true)
10599
- {
10600
- if (DEBUG_MODE)
10601
- {
10602
- console.log(`Getting Live Channel Inputs IDs...`);
10603
- }
10604
- INPUT_IDS = await _getLiveChannelInputsIds(instance, AUTH_TOKEN, CHANNEL_ID);
10605
- }
10606
- else
10607
- {
10608
- INPUT_IDS = null;
10609
- }
10610
-
10611
- if (DELETE_INPUTS && INPUT_IDS && INPUT_IDS.length > 0)
10612
- {
10613
- if (DEBUG_MODE)
10614
- {
10615
- console.log(`Deleting Live Channel Live Inputs...`);
10616
- }
10617
- // Loop deleted Live Channel Live Inputs
10618
- for (let index = 0; index < INPUT_IDS.length; index++)
10619
- {
10620
- // Delete Live Input
10621
- await _deleteLiveInput(instance, AUTH_TOKEN, INPUT_IDS[index]);
10622
- }
10623
- }
10624
-
10625
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Channel", API_URL, "DELETE", null, null, DEBUG_MODE);
10626
- }
10627
-
10593
+
10594
+
10595
+
10596
+
10597
+ async function _deleteLiveChannel(instance, AUTH_TOKEN, URL, CHANNEL_ID, DELETE_INPUTS, DEBUG_MODE)
10598
+ {
10599
+ const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}`
10600
+
10601
+ let INPUT_IDS = null;
10602
+ // If delete Live Inputs then get their IDs
10603
+ if (DELETE_INPUTS === true)
10604
+ {
10605
+ if (DEBUG_MODE)
10606
+ {
10607
+ console.log(`Getting Live Channel Inputs IDs...`);
10608
+ }
10609
+ INPUT_IDS = await _getLiveChannelInputsIds(instance, AUTH_TOKEN, CHANNEL_ID);
10610
+ }
10611
+ else
10612
+ {
10613
+ INPUT_IDS = null;
10614
+ }
10615
+
10616
+ if (DELETE_INPUTS && INPUT_IDS && INPUT_IDS.length > 0)
10617
+ {
10618
+ if (DEBUG_MODE)
10619
+ {
10620
+ console.log(`Deleting Live Channel Live Inputs...`);
10621
+ }
10622
+ // Loop deleted Live Channel Live Inputs
10623
+ for (let index = 0; index < INPUT_IDS.length; index++)
10624
+ {
10625
+ // Delete Live Input
10626
+ await _deleteLiveInput(instance, AUTH_TOKEN, INPUT_IDS[index]);
10627
+ }
10628
+ }
10629
+
10630
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Channel", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
10631
+ }
10632
+
10628
10633
 
10629
10634
 
10630
10635
 
@@ -10659,15 +10664,15 @@ async function _getLiveChannelInputsIds(instance, AUTH_TOKEN, URL, CHANNEL_ID, D
10659
10664
 
10660
10665
 
10661
10666
 
10662
-
10663
-
10664
- async function _getLiveChannelScheduleEvents(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBUG_MODE)
10665
- {
10666
- const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent`
10667
-
10668
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Channel Schedule Events", API_URL, "GET", null, null, DEBUG_MODE);
10669
- }
10670
-
10667
+
10668
+
10669
+ async function _getLiveChannelScheduleEvents(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBUG_MODE)
10670
+ {
10671
+ const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent`
10672
+
10673
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Channel Schedule Events", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10674
+ }
10675
+
10671
10676
 
10672
10677
 
10673
10678
 
@@ -10716,27 +10721,27 @@ async function _getLiveChannelStatus(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBU
10716
10721
 
10717
10722
 
10718
10723
 
10719
-
10720
-
10721
- async function _getLiveChannel(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBUG_MODE)
10722
- {
10723
- const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}`
10724
-
10725
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Channel", API_URL, "GET", null, null, DEBUG_MODE);
10726
- }
10727
-
10728
-
10729
10724
 
10730
-
10731
-
10732
- async function _getLiveChannels(instance, AUTH_TOKEN, URL, DEBUG_MODE)
10733
- {
10734
- const API_URL = `${URL}/api/liveChannel`
10735
-
10736
- return await _sendRequest(instance, AUTH_TOKEN, "getLiveChannels", API_URL, "GET", null, null, DEBUG_MODE);
10737
- }
10738
-
10739
-
10725
+
10726
+ async function _getLiveChannel(instance, AUTH_TOKEN, URL, CHANNEL_ID, DEBUG_MODE)
10727
+ {
10728
+ const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}`
10729
+
10730
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Channel", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10731
+ }
10732
+
10733
+
10734
+
10735
+
10736
+
10737
+ async function _getLiveChannels(instance, AUTH_TOKEN, URL, DEBUG_MODE)
10738
+ {
10739
+ const API_URL = `${URL}/api/liveChannel`
10740
+
10741
+ return await _sendRequest(instance, AUTH_TOKEN, "getLiveChannels", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10742
+ }
10743
+
10744
+
10740
10745
 
10741
10746
 
10742
10747
 
@@ -10744,7 +10749,7 @@ async function _getSecurityGroups(instance, AUTH_TOKEN, URL, DEBUG_MODE)
10744
10749
  {
10745
10750
  const API_URL = `${URL}/api/lookup/22?lookupKey=99e8767a-00ba-4758-b9c2-e07b52c47016`
10746
10751
 
10747
- return await _sendRequest(instance, AUTH_TOKEN, "Get Security Groups", API_URL, "GET", null, null, DEBUG_MODE);
10752
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Security Groups", API_URL, "GET", undefined, undefined, DEBUG_MODE);
10748
10753
  }
10749
10754
 
10750
10755
 
@@ -11016,16 +11021,16 @@ async function _createLiveInput(instance, AUTH_TOKEN, URL, NAME, SOURCE, TYPE, I
11016
11021
 
11017
11022
 
11018
11023
 
11019
-
11020
-
11021
- async function _deleteLiveInput(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MODE)
11022
- {
11023
- const API_URL = `${URL}/api/liveInput/${INPUT_ID}`;
11024
-
11025
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Input", API_URL, "DELETE", null, null, DEBUG_MODE);
11026
- }
11027
-
11028
-
11024
+
11025
+
11026
+ async function _deleteLiveInput(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MODE)
11027
+ {
11028
+ const API_URL = `${URL}/api/liveInput/${INPUT_ID}`;
11029
+
11030
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Input", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
11031
+ }
11032
+
11033
+
11029
11034
 
11030
11035
 
11031
11036
 
@@ -11068,25 +11073,25 @@ async function _getLiveInputStatus(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MO
11068
11073
  }
11069
11074
 
11070
11075
 
11071
-
11072
-
11073
- async function _getLiveInput(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MODE)
11074
- {
11075
- const API_URL = `${URL}/api/liveInput/${INPUT_ID}`;
11076
-
11077
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Input", API_URL, "GET", null, null, DEBUG_MODE);
11078
- }
11079
-
11080
11076
 
11081
-
11082
-
11083
- async function _getLiveInputs(instance, AUTH_TOKEN, URL, DEBUG_MODE)
11084
- {
11085
- const API_URL = `${URL}/api/liveInput`;
11086
-
11087
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Inputs", API_URL, "GET", null, null, DEBUG_MODE);
11088
- }
11089
-
11077
+
11078
+ async function _getLiveInput(instance, AUTH_TOKEN, URL, INPUT_ID, DEBUG_MODE)
11079
+ {
11080
+ const API_URL = `${URL}/api/liveInput/${INPUT_ID}`;
11081
+
11082
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Input", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11083
+ }
11084
+
11085
+
11086
+
11087
+
11088
+ async function _getLiveInputs(instance, AUTH_TOKEN, URL, DEBUG_MODE)
11089
+ {
11090
+ const API_URL = `${URL}/api/liveInput`;
11091
+
11092
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Inputs", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11093
+ }
11094
+
11090
11095
 
11091
11096
  const _LIVE_INPUT_STATUSES = {
11092
11097
  Attached: "Attached",
@@ -11270,35 +11275,35 @@ async function _completeSegment(instance, AUTH_TOKEN, URL, ID, RELATED_CONTENT_I
11270
11275
  }
11271
11276
 
11272
11277
 
11273
-
11274
-
11275
- async function _getCompletedSegments(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
11276
- {
11277
- const API_URL = `${URL}/api/admin/liveOperator/${ID}/segments`;
11278
-
11279
- return await _sendRequest(instance, AUTH_TOKEN, "Get Completed Segments", API_URL, "GET", null, null, DEBUG_MODE);
11280
- }
11281
-
11282
11278
 
11283
-
11284
-
11285
- async function _getLiveOperator(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
11286
- {
11287
- const API_URL = `${URL}/api/admin/liveOperator/${ID}`;
11288
-
11289
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Operator", API_URL, "GET", null, null, DEBUG_MODE);
11290
- }
11291
-
11292
11279
 
11293
-
11294
-
11295
- async function _getLiveOperators(instance, AUTH_TOKEN, URL, DEBUG_MODE)
11296
- {
11297
- const API_URL = `${URL}/api/admin/liveOperator`;
11298
-
11299
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Operators", API_URL, "GET", null, null, DEBUG_MODE);
11300
- }
11301
-
11280
+ async function _getCompletedSegments(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
11281
+ {
11282
+ const API_URL = `${URL}/api/admin/liveOperator/${ID}/segments`;
11283
+
11284
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Completed Segments", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11285
+ }
11286
+
11287
+
11288
+
11289
+
11290
+ async function _getLiveOperator(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
11291
+ {
11292
+ const API_URL = `${URL}/api/admin/liveOperator/${ID}`;
11293
+
11294
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Operator", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11295
+ }
11296
+
11297
+
11298
+
11299
+
11300
+ async function _getLiveOperators(instance, AUTH_TOKEN, URL, DEBUG_MODE)
11301
+ {
11302
+ const API_URL = `${URL}/api/admin/liveOperator`;
11303
+
11304
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Operators", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11305
+ }
11306
+
11302
11307
 
11303
11308
 
11304
11309
 
@@ -11435,7 +11440,7 @@ async function _deleteLiveOutputProfileGroup(instance, AUTH_TOKEN, URL, LIVE_OUT
11435
11440
 
11436
11441
  const API_URL = `${URL}/api/liveOutputProfileGroup/${LIVE_OUTPUT_PROFILE_GROUP_ID}`;
11437
11442
 
11438
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Output Profile Group", API_URL, "DELETE", null, null, DEBUG_MODE);
11443
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Output Profile Group", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
11439
11444
  }
11440
11445
 
11441
11446
 
@@ -11446,7 +11451,7 @@ async function _getLiveOutputProfileGroup(instance, AUTH_TOKEN, URL, LIVE_OUTPUT
11446
11451
 
11447
11452
  const API_URL = `${URL}/api/liveOutputProfileGroup/${LIVE_OUTPUT_PROFILE_GROUP_ID}`;
11448
11453
 
11449
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile Group", API_URL, "GET", null, null, DEBUG_MODE);
11454
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11450
11455
  }
11451
11456
 
11452
11457
 
@@ -11457,7 +11462,7 @@ async function _getLiveOutputProfileGroups(instance, AUTH_TOKEN, URL, DEBUG_MODE
11457
11462
 
11458
11463
  const API_URL = `${URL}/api/liveOutputProfileGroup`;
11459
11464
 
11460
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile Groups", API_URL, "GET", null, null, DEBUG_MODE);
11465
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile Groups", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11461
11466
  }
11462
11467
 
11463
11468
 
@@ -11526,7 +11531,7 @@ async function _deleteLiveOutputProfile(instance, AUTH_TOKEN, URL, OUTPUT_ID, DE
11526
11531
  {
11527
11532
  const API_URL = `${URL}/api/liveOutputProfile/${OUTPUT_ID}`;
11528
11533
 
11529
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Output Profile", API_URL, "DELETE", null, null, DEBUG_MODE);
11534
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Live Output Profile", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
11530
11535
  }
11531
11536
 
11532
11537
 
@@ -11537,7 +11542,7 @@ async function _getLiveOutputProfile(instance, AUTH_TOKEN, URL, OUTPUT_ID, DEBUG
11537
11542
  {
11538
11543
  const API_URL = `${URL}/api/liveOutputProfile/${OUTPUT_ID}`;
11539
11544
 
11540
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile", API_URL, "GET", null, null, DEBUG_MODE);
11545
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profile", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11541
11546
  }
11542
11547
 
11543
11548
 
@@ -11547,7 +11552,7 @@ async function _getLiveOutputProfiles(instance, AUTH_TOKEN, URL, DEBUG_MODE)
11547
11552
  {
11548
11553
  const API_URL = `${URL}/api/liveOutputProfile`;
11549
11554
 
11550
- return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profiles", API_URL, "GET", null, null, DEBUG_MODE);
11555
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Live Output Profiles", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11551
11556
  }
11552
11557
 
11553
11558
 
@@ -11557,7 +11562,7 @@ async function _getLiveOutputTypes(instance, AUTH_TOKEN, URL, DEBUG_MODE)
11557
11562
  {
11558
11563
  const API_URL = `${URL}/api/lookup/117`;
11559
11564
 
11560
- return await _sendRequest(instance, AUTH_TOKEN, "Get Output Types", API_URL, "GET", null, null, DEBUG_MODE);
11565
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Output Types", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11561
11566
  }
11562
11567
 
11563
11568
 
@@ -11661,7 +11666,7 @@ async function _getAssetScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCH
11661
11666
  {
11662
11667
  const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent/${SCHEDULE_EVENT_ID}`;
11663
11668
 
11664
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Schedule Event", API_URL, "GET", null, null, DEBUG_MODE);
11669
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Schedule Event", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11665
11670
  }
11666
11671
 
11667
11672
 
@@ -11671,7 +11676,7 @@ async function _getInputScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCH
11671
11676
  {
11672
11677
  const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent/${SCHEDULE_EVENT_ID}`;
11673
11678
 
11674
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Schedule Event", API_URL, "GET", null, null, DEBUG_MODE);
11679
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Schedule Event", API_URL, "GET", undefined, undefined, DEBUG_MODE);
11675
11680
  }
11676
11681
 
11677
11682
 
@@ -11690,25 +11695,25 @@ async function _moveScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCHEDUL
11690
11695
  }
11691
11696
 
11692
11697
 
11693
-
11694
-
11695
- async function _removeAssetScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCHEDULE_EVENT_ID, DEBUG_MODE)
11696
- {
11697
- const API_URL = `${URL}/api/LiveChannel/${CHANNEL_ID}/liveScheduleEvent/${SCHEDULE_EVENT_ID}`;
11698
-
11699
- return await _sendRequest(instance, AUTH_TOKEN, "Remove Asset Schedule Event", API_URL, "DELETE", null, null, DEBUG_MODE);
11700
- }
11701
-
11702
11698
 
11703
-
11704
-
11705
- async function _removeInputScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, INPUT_ID, DEBUG_MODE)
11706
- {
11707
- const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent/${INPUT_ID}`
11708
-
11709
- return await _sendRequest(instance, AUTH_TOKEN, "Remove Input Schedule Event", API_URL, "DELETE", null, null, DEBUG_MODE);
11710
- }
11711
-
11699
+
11700
+ async function _removeAssetScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, SCHEDULE_EVENT_ID, DEBUG_MODE)
11701
+ {
11702
+ const API_URL = `${URL}/api/LiveChannel/${CHANNEL_ID}/liveScheduleEvent/${SCHEDULE_EVENT_ID}`;
11703
+
11704
+ return await _sendRequest(instance, AUTH_TOKEN, "Remove Asset Schedule Event", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
11705
+ }
11706
+
11707
+
11708
+
11709
+
11710
+ async function _removeInputScheduleEvent(instance, AUTH_TOKEN, URL, CHANNEL_ID, INPUT_ID, DEBUG_MODE)
11711
+ {
11712
+ const API_URL = `${URL}/api/liveChannel/${CHANNEL_ID}/liveScheduleEvent/${INPUT_ID}`
11713
+
11714
+ return await _sendRequest(instance, AUTH_TOKEN, "Remove Input Schedule Event", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
11715
+ }
11716
+
11712
11717
 
11713
11718
 
11714
11719
 
@@ -11987,7 +11992,7 @@ async function _deleteIntelligentPlaylist(instance, AUTH_TOKEN, URL, SCHEDULE_ID
11987
11992
  {
11988
11993
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
11989
11994
 
11990
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Intelligent Playlist", API_URL, "DELETE", null, null, DEBUG_MODE);
11995
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Intelligent Playlist", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
11991
11996
  }
11992
11997
 
11993
11998
 
@@ -11997,7 +12002,7 @@ async function _deleteIntelligentSchedule(instance, AUTH_TOKEN, URL, SCHEDULE_ID
11997
12002
  {
11998
12003
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
11999
12004
 
12000
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Intelligent Schedule", API_URL, "DELETE", null, null, DEBUG_MODE);
12005
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Intelligent Schedule", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12001
12006
  }
12002
12007
 
12003
12008
 
@@ -12007,7 +12012,7 @@ async function _deletePlaylist(instance, AUTH_TOKEN, URL, SCHEDULE_ID, DEBUG_MOD
12007
12012
  {
12008
12013
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
12009
12014
 
12010
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Playlist", API_URL, "DELETE", null, null, DEBUG_MODE);
12015
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Playlist", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12011
12016
  }
12012
12017
 
12013
12018
 
@@ -12017,7 +12022,7 @@ async function _deleteScheduleItem(instance, AUTH_TOKEN, URL, SCHEDULE_ID, ITEM_
12017
12022
  {
12018
12023
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}/item/${ITEM_ID}`;
12019
12024
 
12020
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Schedule Item", API_URL, "DELETE", null, null, DEBUG_MODE);
12025
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Schedule Item", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12021
12026
  }
12022
12027
 
12023
12028
 
@@ -12027,7 +12032,7 @@ async function _getIntelligentPlaylist(instance, AUTH_TOKEN, URL, SCHEDULE_ID, D
12027
12032
  {
12028
12033
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
12029
12034
 
12030
- return await _sendRequest(instance, AUTH_TOKEN, "Get Intelligent Playlist", API_URL, "GET", null, null, DEBUG_MODE);
12035
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Intelligent Playlist", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12031
12036
  }
12032
12037
 
12033
12038
 
@@ -12037,7 +12042,7 @@ async function _getIntelligentSchedule(instance, AUTH_TOKEN, URL, SCHEDULE_ID, D
12037
12042
  {
12038
12043
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
12039
12044
 
12040
- return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule", API_URL, "GET", null, null, DEBUG_MODE);
12045
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12041
12046
  }
12042
12047
 
12043
12048
 
@@ -12047,7 +12052,7 @@ async function _getPlaylist(instance, AUTH_TOKEN, URL, SCHEDULE_ID, DEBUG_MODE)
12047
12052
  {
12048
12053
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}`;
12049
12054
 
12050
- return await _sendRequest(instance, AUTH_TOKEN, "Get Playlist", API_URL, "GET", null, null, DEBUG_MODE);
12055
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Playlist", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12051
12056
  }
12052
12057
 
12053
12058
 
@@ -12057,7 +12062,7 @@ async function _getScheduleItem(instance, AUTH_TOKEN, URL, SCHEDULE_ID, ITEM_ID,
12057
12062
  {
12058
12063
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}/item/${ITEM_ID}`;
12059
12064
 
12060
- return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Item", API_URL, "GET", null, null, DEBUG_MODE);
12065
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Item", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12061
12066
  }
12062
12067
 
12063
12068
 
@@ -12067,7 +12072,7 @@ async function _getScheduleItems(instance, AUTH_TOKEN, URL, SCHEDULE_ID, DEBUG_M
12067
12072
  {
12068
12073
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}/items`;
12069
12074
 
12070
- return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Items", API_URL, "GET", null, null, DEBUG_MODE);
12075
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Items", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12071
12076
  }
12072
12077
 
12073
12078
 
@@ -12077,7 +12082,7 @@ async function _getSchedulePreview(instance, AUTH_TOKEN, URL, SCHEDULE_ID, DEBUG
12077
12082
  {
12078
12083
  const API_URL = `${URL}/api/admin/schedule/${SCHEDULE_ID}/preview`;
12079
12084
 
12080
- return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Preview", API_URL, "GET", null, null, DEBUG_MODE);
12085
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Schedule Preview", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12081
12086
  }
12082
12087
 
12083
12088
 
@@ -12392,7 +12397,7 @@ async function _getUserSession(instance, AUTH_TOKEN, URL, API_TYPE, USER_SESSION
12392
12397
  ? `${URL}/api/admin/user-session/${USER_SESSION_ID}`
12393
12398
  : `${URL}/api/user-session/${USER_SESSION_ID}`;
12394
12399
 
12395
- return await _sendRequest(instance, AUTH_TOKEN, "Get User Session", API_URL, "GET", null, null, DEBUG_MODE);
12400
+ return await _sendRequest(instance, AUTH_TOKEN, "Get User Session", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12396
12401
  }
12397
12402
 
12398
12403
 
@@ -12402,7 +12407,7 @@ async function _deleteUserContentAttributeData(instance, AUTH_TOKEN, URL, USER_I
12402
12407
  {
12403
12408
  const API_URL = `${URL}/api/admin/user/userContentAttribute/${USER_ID}`;
12404
12409
 
12405
- return await _sendRequest(instance, AUTH_TOKEN, "Delete User Content Attribute Data", API_URL, "DELETE", null, null, DEBUG_MODE);
12410
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete User Content Attribute Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12406
12411
  }
12407
12412
 
12408
12413
 
@@ -12412,7 +12417,7 @@ async function _deleteUserContentGroupData(instance, AUTH_TOKEN, URL, USER_ID, D
12412
12417
  {
12413
12418
  const API_URL = `${URL}/api/admin/user/contentGroup/${USER_ID}`;
12414
12419
 
12415
- return await _sendRequest(instance, AUTH_TOKEN, "Delete User Content Group Data", API_URL, "DELETE", null, null, DEBUG_MODE);
12420
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete User Content Group Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12416
12421
  }
12417
12422
 
12418
12423
 
@@ -12443,7 +12448,7 @@ async function _deleteUserData(instance, AUTH_TOKEN, URL, USER_ID, DEBUG_MODE)
12443
12448
  {
12444
12449
  const API_URL = `${URL}/api/admin/user/userData/${USER_ID}`;
12445
12450
 
12446
- return await _sendRequest(instance, AUTH_TOKEN, "Delete User Data", API_URL, "DELETE", null, null, DEBUG_MODE);
12451
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete User Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12447
12452
  }
12448
12453
 
12449
12454
 
@@ -12453,7 +12458,7 @@ async function _deleteUserDislikesData(instance, AUTH_TOKEN, URL, USER_ID, DEBUG
12453
12458
  {
12454
12459
  const API_URL = `${URL}/api/admin/user/dislike/${USER_ID}`;
12455
12460
 
12456
- return await _sendRequest(instance, AUTH_TOKEN, "Delete User Dislikes Data", API_URL, "DELETE", null, null, DEBUG_MODE);
12461
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete User Dislikes Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12457
12462
  }
12458
12463
 
12459
12464
 
@@ -12463,7 +12468,7 @@ async function _deleteUserFavoritesData(instance, AUTH_TOKEN, URL, USER_ID, DEBU
12463
12468
  {
12464
12469
  const API_URL = `${URL}/api/admin/user/favorite/${USER_ID}`;
12465
12470
 
12466
- return await _sendRequest(instance, AUTH_TOKEN, "Delete User Favorites Data", API_URL, "DELETE", null, null, DEBUG_MODE);
12471
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete User Favorites Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12467
12472
  }
12468
12473
 
12469
12474
 
@@ -12473,7 +12478,7 @@ async function _deleteUserLikesData(instance, AUTH_TOKEN, URL, USER_ID, DEBUG_MO
12473
12478
  {
12474
12479
  const API_URL = `${URL}/api/admin/user/like/${USER_ID}`;
12475
12480
 
12476
- return await _sendRequest(instance, AUTH_TOKEN, "Delete User Likes Data", API_URL, "DELETE", null, null, DEBUG_MODE);
12481
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete User Likes Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12477
12482
  }
12478
12483
 
12479
12484
 
@@ -12483,7 +12488,7 @@ async function _deleteUserSavedSearchData(instance, AUTH_TOKEN, URL, USER_ID, DE
12483
12488
  {
12484
12489
  const API_URL = `${URL}/api/admin/user/savedSearch/${USER_ID}`;
12485
12490
 
12486
- return await _sendRequest(instance, AUTH_TOKEN, "Delete User Saved Search Data", API_URL, "DELETE", null, null, DEBUG_MODE);
12491
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete User Saved Search Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12487
12492
  }
12488
12493
 
12489
12494
 
@@ -12493,7 +12498,7 @@ async function _deleteUserSessionData(instance, AUTH_TOKEN, URL, USER_ID, DEBUG_
12493
12498
  {
12494
12499
  const API_URL = `${URL}/api/admin/user/userSession/${USER_ID}`;
12495
12500
 
12496
- return await _sendRequest(instance, AUTH_TOKEN, "Delete User Session Data", API_URL, "DELETE", null, null, DEBUG_MODE);
12501
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete User Session Data", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12497
12502
  }
12498
12503
 
12499
12504
 
@@ -12535,7 +12540,7 @@ async function _deleteUser(instance, AUTH_TOKEN, URL, USER_ID, DEBUG_MODE)
12535
12540
  {
12536
12541
  const API_URL = `${URL}/api/admin/user/${USER_ID}`;
12537
12542
 
12538
- return await _sendRequest(instance, AUTH_TOKEN, "Delete User", API_URL, "DELETE", null, null, DEBUG_MODE);
12543
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete User", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12539
12544
  }
12540
12545
 
12541
12546
 
@@ -12847,7 +12852,7 @@ async function _deleteAnnotation(instance, AUTH_TOKEN, URL, ASSET_ID, ANNOTATION
12847
12852
  {
12848
12853
  const API_URL = `${URL}/api/asset/${ASSET_ID}/annotation/${ANNOTATION_ID}`;
12849
12854
 
12850
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Annotation", API_URL, "DELETE", null, null, DEBUG_MODE);
12855
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Annotation", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12851
12856
  }
12852
12857
 
12853
12858
 
@@ -12857,7 +12862,7 @@ async function _deleteAssetAdBreak(instance, AUTH_TOKEN, URL, ASSET_ID, AD_BREAK
12857
12862
  {
12858
12863
  const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/adbreak/${AD_BREAK_ID}`;
12859
12864
 
12860
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Ad Break", API_URL, "DELETE", null, null, DEBUG_MODE);
12865
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Ad Break", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12861
12866
  }
12862
12867
 
12863
12868
 
@@ -12867,7 +12872,7 @@ async function _deleteAsset(instance, AUTH_TOKEN, URL, ASSET_ID, DEBUG_MODE)
12867
12872
  {
12868
12873
  const API_URL = `${URL}/api/admin/asset/${ASSET_ID}`;
12869
12874
 
12870
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Asset", API_URL, "DELETE", null, null, DEBUG_MODE);
12875
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Asset", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
12871
12876
  }
12872
12877
 
12873
12878
 
@@ -12910,7 +12915,7 @@ async function _getAnnotations(instance, AUTH_TOKEN, URL, ASSET_ID, DEBUG_MODE)
12910
12915
  {
12911
12916
  const API_URL = `${URL}/api/asset/${ASSET_ID}/annotation`;
12912
12917
 
12913
- return await _sendRequest(instance, AUTH_TOKEN, "Get Annotations", API_URL, "GET", null, null, DEBUG_MODE);
12918
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Annotations", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12914
12919
  }
12915
12920
 
12916
12921
 
@@ -12920,7 +12925,7 @@ async function _getAssetAdBreaks(instance, AUTH_TOKEN, URL, ASSET_ID, DEBUG_MODE
12920
12925
  {
12921
12926
  const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/adbreak`;
12922
12927
 
12923
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Ad Break", API_URL, "GET", null, null, DEBUG_MODE);
12928
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Ad Break", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12924
12929
  }
12925
12930
 
12926
12931
 
@@ -12940,7 +12945,7 @@ async function _getAssetChildNodes(instance, AUTH_TOKEN, URL, ID, FOLDER_ID, SOR
12940
12945
  pageSize: PAGE_SIZE
12941
12946
  };
12942
12947
 
12943
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Child Nodes", API_URL, "GET", PARAMS, null, DEBUG_MODE);
12948
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Child Nodes", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
12944
12949
  }
12945
12950
 
12946
12951
 
@@ -12952,7 +12957,7 @@ async function _getAssetDetails(instance, AUTH_TOKEN, URL, ASSET_ID, API_TYPE, D
12952
12957
  ? `${URL}/api/admin/asset/${ASSET_ID}/detail`
12953
12958
  : `${URL}/api/asset/${ASSET_ID}/detail`;
12954
12959
 
12955
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Details", API_URL, "GET", null, null, DEBUG_MODE);
12960
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Details", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12956
12961
  }
12957
12962
 
12958
12963
 
@@ -12965,7 +12970,7 @@ async function _getAssetManifestWithCookies(instance, AUTH_TOKEN, URL, ASSET_ID,
12965
12970
  ? `${URL}/api/admin/asset/${ASSET_ID}/set-cookies/${COOKIE_ID}`
12966
12971
  : `${URL}/api/asset/${ASSET_ID}/set-cookies/${COOKIE_ID}`;
12967
12972
 
12968
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Manifest", API_URL, "GET", null, null, DEBUG_MODE);
12973
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Manifest", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12969
12974
  }
12970
12975
 
12971
12976
 
@@ -12975,7 +12980,7 @@ async function _getAssetMetadataSummary(instance, AUTH_TOKEN, URL, ASSET_ID, DEB
12975
12980
  {
12976
12981
  const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/metadata-summary`;
12977
12982
 
12978
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Metadata Summary", API_URL, "GET", null, null, DEBUG_MODE);
12983
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Metadata Summary", API_URL, "GET", undefined, undefined, DEBUG_MODE);
12979
12984
  }
12980
12985
 
12981
12986
 
@@ -12990,7 +12995,7 @@ async function _getAssetParentFolders(instance, AUTH_TOKEN, URL, ASSET_ID, PAGE_
12990
12995
  "page_size": PAGE_SIZE
12991
12996
  }
12992
12997
 
12993
- return await _sendRequest(instance, AUTH_TOKEN, "Get Parent Folders", API_URL, "GET", PARAMS, null, DEBUG_MODE);
12998
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Parent Folders", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
12994
12999
  }
12995
13000
 
12996
13001
 
@@ -13001,7 +13006,7 @@ async function _getAssetScreenshotDetails(instance, AUTH_TOKEN, URL, ASSET_ID, S
13001
13006
  {
13002
13007
  const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/${SEGMENT_ID}/${SCREENSHOT_ID}/detail`;
13003
13008
 
13004
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Screenshot Details", API_URL, "GET", null, null, DEBUG_MODE);
13009
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Screenshot Details", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13005
13010
  }
13006
13011
 
13007
13012
 
@@ -13011,7 +13016,7 @@ async function _getAssetSegmentDetails(instance, AUTH_TOKEN, URL, ASSET_ID, SEGM
13011
13016
  {
13012
13017
  const API_URL = `${URL}/api/admin/asset/${ASSET_ID}/${SEGMENT_ID}/detail`;
13013
13018
 
13014
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Segment Details", API_URL, "GET", null, null, DEBUG_MODE);
13019
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset Segment Details", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13015
13020
  }
13016
13021
 
13017
13022
 
@@ -13021,7 +13026,7 @@ async function _getAsset(instance, AUTH_TOKEN, URL, ASSET_ID, DEBUG_MODE)
13021
13026
  {
13022
13027
  const API_URL = `${URL}/api/admin/asset/${ASSET_ID}`;
13023
13028
 
13024
- return await _sendRequest(instance, AUTH_TOKEN, "Get Asset", API_URL, "GET", null, null, DEBUG_MODE);
13029
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Asset", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13025
13030
  }
13026
13031
 
13027
13032
 
@@ -13031,7 +13036,7 @@ async function _getUserUploadParts(instance, AUTH_TOKEN, URL, UPLOAD_ID, DEBUG_M
13031
13036
  {
13032
13037
  const API_URL = `${URL}/api/admin/asset/upload/${UPLOAD_ID}`;
13033
13038
 
13034
- return await _sendRequest(instance, AUTH_TOKEN, "Get User Upload Parts", API_URL, "GET", null, null, DEBUG_MODE);
13039
+ return await _sendRequest(instance, AUTH_TOKEN, "Get User Upload Parts", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13035
13040
  }
13036
13041
 
13037
13042
 
@@ -13041,7 +13046,7 @@ async function _getUserUploads(instance, AUTH_TOKEN, URL, INCLUDE_COMPLETED_UPLO
13041
13046
  {
13042
13047
  const API_URL = `${URL}/api/admin/asset/upload?includeCompletedUploads=${INCLUDE_COMPLETED_UPLOADS}`;
13043
13048
 
13044
- return await _sendRequest(instance, AUTH_TOKEN, "Get User Uploads", API_URL, "GET", null, null, DEBUG_MODE);
13049
+ return await _sendRequest(instance, AUTH_TOKEN, "Get User Uploads", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13045
13050
  }
13046
13051
 
13047
13052
 
@@ -13120,7 +13125,7 @@ async function _recordsAssetTrackingBeacon(instance, AUTH_TOKEN, URL, ASSET_ID,
13120
13125
  "second": SECOND
13121
13126
  };
13122
13127
 
13123
- return await _sendRequest(instance, AUTH_TOKEN, "Records Asset Tracking Beacon", API_URL, "GET", PARAMS, null, DEBUG_MODE);
13128
+ return await _sendRequest(instance, AUTH_TOKEN, "Records Asset Tracking Beacon", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
13124
13129
  }
13125
13130
 
13126
13131
 
@@ -13442,15 +13447,15 @@ async function _deleteRelatedContent(instance, AUTH_TOKEN, URL, CONTENT_ID, RELA
13442
13447
  }
13443
13448
 
13444
13449
 
13445
-
13446
-
13447
- async function _deleteTagOrCollection(instance, AUTH_TOKEN, URL, TYPE, TAG_ID, DEBUG_MODE)
13448
- {
13449
- const API_URL = `${URL}/api/admin/${TYPE}/${TAG_ID}`;
13450
-
13451
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Tag or Collection", API_URL, "DELETE", null, null, DEBUG_MODE);
13452
- }
13453
-
13450
+
13451
+
13452
+ async function _deleteTagOrCollection(instance, AUTH_TOKEN, URL, TYPE, TAG_ID, DEBUG_MODE)
13453
+ {
13454
+ const API_URL = `${URL}/api/admin/${TYPE}/${TAG_ID}`;
13455
+
13456
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Tag or Collection", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
13457
+ }
13458
+
13454
13459
 
13455
13460
 
13456
13461
 
@@ -13458,7 +13463,7 @@ async function _getTagOrCollection(instance, AUTH_TOKEN, URL, TYPE, ID, DEBUG_MO
13458
13463
  {
13459
13464
  const API_URL = `${URL}/api/admin/${TYPE}/${ID}`;
13460
13465
 
13461
- return await _sendRequest(instance, AUTH_TOKEN, "Getting Tag or Collection", API_URL, "GET", null, null, DEBUG_MODE);
13466
+ return await _sendRequest(instance, AUTH_TOKEN, "Getting Tag or Collection", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13462
13467
  }
13463
13468
 
13464
13469
 
@@ -13555,12 +13560,12 @@ async function _search(instance, AUTH_TOKEN, URL, QUERY, OFFSET, SIZE, FILTERS,
13555
13560
  function _apiExceptionHandler(error, message) {
13556
13561
  // Check if we have a response object and error message
13557
13562
  if (!error) {
13558
- throw new Error(message);
13563
+ console.error(message);
13559
13564
  }
13560
13565
 
13561
13566
  // Check if error is a string
13562
13567
  if (typeof error === "string") {
13563
- throw new Error(`${message}: ${error}`);
13568
+ console.error(`${message}: ${error}`);
13564
13569
  }
13565
13570
  else if (error.errors)
13566
13571
  {
@@ -13570,7 +13575,7 @@ function _apiExceptionHandler(error, message) {
13570
13575
  {
13571
13576
  errorString += `${error.errors[errorIdx].code}: ${error.errors[errorIdx].field}: ${error.errors[errorIdx].message}\n`;
13572
13577
  }
13573
- throw new Error(`${message}: ${errorString}`);
13578
+ console.error(`${message}: ${errorString}`);
13574
13579
  }
13575
13580
  else if (typeof error.errors === "object") {
13576
13581
  let errorString = "";
@@ -13579,13 +13584,15 @@ function _apiExceptionHandler(error, message) {
13579
13584
  errorString += `${key}: ${error.errors[key]}\n`;
13580
13585
  }
13581
13586
  }
13582
- throw new Error(`${message}: ${errorString}`);
13587
+ console.error(`${message}: ${errorString}`);
13583
13588
  }
13584
13589
  }
13585
13590
  else
13586
13591
  {
13587
- throw new Error(`${message}: ${error.message}`);
13592
+ console.error(`${message}: ${error.message}`);
13588
13593
  }
13594
+
13595
+ return null;
13589
13596
  }
13590
13597
 
13591
13598
 
@@ -13631,20 +13638,22 @@ async function _sendRequest(instance, AUTH_TOKEN, FUNCTION_NAME, URL, METHOD_TYP
13631
13638
 
13632
13639
  if (AUTH_TOKEN) HEADERS["Authorization"] = `Bearer ${AUTH_TOKEN}`;
13633
13640
 
13634
- if (DEBUG) console.log(`URL: ${URL}\nMETHOD: ${METHOD_TYPE}` + (PARAMS && PARAMS.size === 0 ? `\nPARAMS: ${JSON.stringify(PARAMS, null, 4)}` : "") + (BODY ? `\nBODY: ${JSON.stringify(BODY, null, 4)}` : ""));
13641
+ if (DEBUG && FUNCTION_NAME !== "Login") console.log(`URL: ${URL}\nMETHOD: ${METHOD_TYPE}` + (PARAMS && PARAMS.size === 0 ? `\nPARAMS: ${JSON.stringify(PARAMS, null, 4)}` : "") + (BODY ? `\nBODY: ${JSON.stringify(BODY, null, 4)}` : ""));
13635
13642
 
13636
13643
  let retries = 0;
13637
13644
  let RESPONSE = null;
13645
+ let refreshedToken = false;
13638
13646
  do
13639
13647
  {
13640
13648
  try
13641
13649
  {
13650
+ refreshedToken = true;
13642
13651
  RESPONSE = await axios({
13643
13652
  method: METHOD_TYPE,
13644
13653
  url: URL,
13645
13654
  headers: HEADERS,
13646
- params: PARAMS || {},
13647
- data: BODY || {},
13655
+ params: PARAMS,
13656
+ data: BODY,
13648
13657
  timeout: TIMEOUT
13649
13658
  });
13650
13659
 
@@ -13657,18 +13666,19 @@ async function _sendRequest(instance, AUTH_TOKEN, FUNCTION_NAME, URL, METHOD_TYP
13657
13666
  }
13658
13667
  catch (error)
13659
13668
  {
13660
- if (error?.response?.status === 403)
13669
+ if (error?.response?.status === 403 && FUNCTION_NAME !== "Refresh Token" && !refreshedToken)
13661
13670
  {
13662
13671
  await instance.refreshToken();
13663
13672
  HEADERS["Authorization"] = `Bearer ${instance.token}`;
13673
+ refreshedToken = true;
13664
13674
  }
13665
13675
  else if (error.code === 'ECONNABORTED')
13666
13676
  {
13667
- await _sleep(SLEEP_TIME ** 2);
13677
+ await _sleep(SLEEP_TIME * 2 ** (retries - 1));
13668
13678
  }
13669
13679
  else
13670
13680
  {
13671
- _apiExceptionHandler(error.response?.data.message ? error.response.data.message : error.message, `${FUNCTION_NAME} failed`);
13681
+ return _apiExceptionHandler(error.response?.data.message ? error.response.data.message : error.message, `${FUNCTION_NAME} failed`);
13672
13682
  }
13673
13683
  ++retries;
13674
13684
  }
@@ -13747,7 +13757,7 @@ async function _getCountries(instance, AUTH_TOKEN, URL, DEBUG_MODE)
13747
13757
  const editedUrl = URL.replace(/https:\/\/(.+?)\./, 'https://').replace(/\/[^/]+$/, '');
13748
13758
  const API_URL = `${editedUrl}/config/ea1d7060-6291-46b8-9468-135e7b94021b/lookups.json`
13749
13759
 
13750
- return await _sendRequest(instance, AUTH_TOKEN, "Get countries", API_URL, "GET", null, null, DEBUG_MODE);
13760
+ return await _sendRequest(instance, AUTH_TOKEN, "Get countries", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13751
13761
  }
13752
13762
 
13753
13763
 
@@ -13758,7 +13768,7 @@ async function _getStates(instance, AUTH_TOKEN, URL, DEBUG_MODE)
13758
13768
  const editedUrl = URL.replace(/https:\/\/(.+?)\./, 'https://').replace(/\/[^/]+$/, '');
13759
13769
  const API_URL = `${editedUrl}/config/ea1d7060-6291-46b8-9468-135e7b94021b/lookups.json`
13760
13770
 
13761
- return await _sendRequest(instance, AUTH_TOKEN, "Get countries", API_URL, "GET", null, null, DEBUG_MODE);
13771
+ return await _sendRequest(instance, AUTH_TOKEN, "Get countries", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13762
13772
  }
13763
13773
 
13764
13774
 
@@ -13768,7 +13778,7 @@ async function _getUser(instance, AUTH_TOKEN, URL, DEBUG_MODE)
13768
13778
  {
13769
13779
  const API_URL = `${URL}/api/account/user`;
13770
13780
 
13771
- return await _sendRequest(instance, AUTH_TOKEN, "Get user", API_URL, "GET", null, null, DEBUG_MODE);
13781
+ return await _sendRequest(instance, AUTH_TOKEN, "Get user", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13772
13782
  }
13773
13783
 
13774
13784
 
@@ -13852,35 +13862,35 @@ async function _createContentGroup(instance, AUTH_TOKEN, URL, NAME, DEBUG_MODE)
13852
13862
  }
13853
13863
 
13854
13864
 
13855
-
13856
-
13857
- async function _deleteContentGroup(instance, AUTH_TOKEN, URL, CONTENT_GROUP_ID, DEBUG_MODE)
13858
- {
13859
- const API_URL = `${URL}/api/contentgroup/${CONTENT_GROUP_ID}`;
13860
-
13861
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Content Group", API_URL, "DELETE", null, null, DEBUG_MODE);
13862
- }
13863
-
13864
13865
 
13865
-
13866
-
13867
- async function _getContentGroup(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
13868
- {
13869
- const API_URL = `${URL}/api/contentgroup/${ID}`;
13870
-
13871
- return await _sendRequest(instance, AUTH_TOKEN, "Get Content Group", API_URL, "GET", null, null, DEBUG_MODE);
13872
- }
13873
-
13874
13866
 
13875
-
13876
-
13877
- async function _getContentGroups(instance, AUTH_TOKEN, URL, DEBUG_MODE)
13878
- {
13879
- const API_URL = `${URL}/api/contentgroup`;
13880
-
13881
- return await _sendRequest(instance, AUTH_TOKEN, "Get Content Groups", API_URL, "GET", null, null, DEBUG_MODE);
13882
- }
13883
-
13867
+ async function _deleteContentGroup(instance, AUTH_TOKEN, URL, CONTENT_GROUP_ID, DEBUG_MODE)
13868
+ {
13869
+ const API_URL = `${URL}/api/contentgroup/${CONTENT_GROUP_ID}`;
13870
+
13871
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Content Group", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
13872
+ }
13873
+
13874
+
13875
+
13876
+
13877
+ async function _getContentGroup(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
13878
+ {
13879
+ const API_URL = `${URL}/api/contentgroup/${ID}`;
13880
+
13881
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Content Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13882
+ }
13883
+
13884
+
13885
+
13886
+
13887
+ async function _getContentGroups(instance, AUTH_TOKEN, URL, DEBUG_MODE)
13888
+ {
13889
+ const API_URL = `${URL}/api/contentgroup`;
13890
+
13891
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Content Groups", API_URL, "GET", undefined, undefined, DEBUG_MODE);
13892
+ }
13893
+
13884
13894
 
13885
13895
 
13886
13896
 
@@ -14071,7 +14081,7 @@ async function _deleteMediaBuilderItem(instance, AUTH_TOKEN, URL, ID, ITEM_ID, D
14071
14081
  {
14072
14082
  const API_URL = `${URL}/api/mediaBuilder/${ID}/items/${ITEM_ID}`;
14073
14083
 
14074
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Media Builder Item", API_URL, "DELETE", null, null, DEBUG_MODE);
14084
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Media Builder Item", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
14075
14085
  }
14076
14086
 
14077
14087
 
@@ -14081,7 +14091,7 @@ async function _deleteMediaBuilder(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14081
14091
  {
14082
14092
  const API_URL = `${URL}/api/mediaBuilder/${ID}`;
14083
14093
 
14084
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Media Builder", API_URL, "DELETE", null, null, DEBUG_MODE);
14094
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Media Builder", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
14085
14095
  }
14086
14096
 
14087
14097
 
@@ -14111,7 +14121,7 @@ async function _getMediaBuilderIdsFromAsset(instance, AUTH_TOKEN, URL, SOURCE_AS
14111
14121
 
14112
14122
  const API_URL = `${URL}/api/mediaBuilder/idsbysource/${SOURCE_ASSET_ID}`;
14113
14123
 
14114
- return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder Ids From Asset", API_URL, "GET", null, null, DEBUG_MODE);
14124
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder Ids From Asset", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14115
14125
  }
14116
14126
 
14117
14127
 
@@ -14121,7 +14131,7 @@ async function _getMediaBuilderItems(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14121
14131
  {
14122
14132
  const API_URL = `${URL}/api/mediaBuilder/${ID}/items`;
14123
14133
 
14124
- return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder Items", API_URL, "GET", null, null, DEBUG_MODE);
14134
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder Items", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14125
14135
  }
14126
14136
 
14127
14137
 
@@ -14131,7 +14141,7 @@ async function _getMediaBuilder(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14131
14141
  {
14132
14142
  const API_URL = `${URL}/api/mediaBuilder/${ID}`;
14133
14143
 
14134
- return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder", API_URL, "GET", null, null, DEBUG_MODE);
14144
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builder", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14135
14145
  }
14136
14146
 
14137
14147
 
@@ -14141,7 +14151,7 @@ async function _getMediaBuilders(instance, AUTH_TOKEN, URL, DEBUG_MODE)
14141
14151
  {
14142
14152
  const API_URL = `${URL}/api/mediaBuilder`;
14143
14153
 
14144
- return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builders", API_URL, "GET", null, null, DEBUG_MODE);
14154
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Media Builders", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14145
14155
  }
14146
14156
 
14147
14157
 
@@ -14235,7 +14245,7 @@ async function _getContentCookies(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14235
14245
  {
14236
14246
  const API_URL = `${URL}/api/media/set-cookies/${ID}`;
14237
14247
 
14238
- return await _sendRequest(instance, AUTH_TOKEN, "Get Content Cookies", API_URL, "GET", null, null, DEBUG_MODE);
14248
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Content Cookies", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14239
14249
  }
14240
14250
 
14241
14251
 
@@ -14245,7 +14255,7 @@ async function _getDefaultSiteConfig(instance, AUTH_TOKEN, URL, DEBUG_MODE)
14245
14255
  {
14246
14256
  const API_URL = `${URL}/api/media/config`;
14247
14257
 
14248
- return await _sendRequest(instance, AUTH_TOKEN, "Get Default Site Config", API_URL, "GET", null, null, DEBUG_MODE);
14258
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Default Site Config", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14249
14259
  }
14250
14260
 
14251
14261
 
@@ -14255,7 +14265,7 @@ async function _getDynamicContent(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14255
14265
  {
14256
14266
  const API_URL = `${URL}/api/media/content/${ID}`;
14257
14267
 
14258
- return await _sendRequest(instance, AUTH_TOKEN, "Get Dynamic Content", API_URL, "GET", null, null, DEBUG_MODE);
14268
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Dynamic Content", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14259
14269
  }
14260
14270
 
14261
14271
 
@@ -14265,7 +14275,7 @@ async function _getDynamicContents(instance, AUTH_TOKEN, URL, DEBUG_MODE)
14265
14275
  {
14266
14276
  const API_URL = `${URL}/api/media/content`;
14267
14277
 
14268
- return await _sendRequest(instance, AUTH_TOKEN, "Get Dynamic Contents", API_URL, "GET", null, null, DEBUG_MODE);
14278
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Dynamic Contents", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14269
14279
  }
14270
14280
 
14271
14281
 
@@ -14275,7 +14285,7 @@ async function _getMediaGroup(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14275
14285
  {
14276
14286
  const API_URL = `${URL}/api/media/group/${ID}`;
14277
14287
 
14278
- return await _sendRequest(instance, AUTH_TOKEN, "Get Media Group", API_URL, "GET", null, null, DEBUG_MODE);
14288
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Media Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14279
14289
  }
14280
14290
 
14281
14291
 
@@ -14285,7 +14295,7 @@ async function _getMediaItem(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14285
14295
  {
14286
14296
  const API_URL = `${URL}/api/media/item/${ID}`;
14287
14297
 
14288
- return await _sendRequest(instance, AUTH_TOKEN, "Get Media Item", API_URL, "GET", null, null, DEBUG_MODE);
14298
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Media Item", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14289
14299
  }
14290
14300
 
14291
14301
 
@@ -14295,7 +14305,7 @@ async function _getMyContent(instance, AUTH_TOKEN, URL, DEBUG_MODE)
14295
14305
  {
14296
14306
  const API_URL = `${URL}/api/media/my-content`;
14297
14307
 
14298
- return await _sendRequest(instance, AUTH_TOKEN, "Get My Content", API_URL, "GET", null, null, DEBUG_MODE);
14308
+ return await _sendRequest(instance, AUTH_TOKEN, "Get My Content", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14299
14309
  }
14300
14310
 
14301
14311
 
@@ -14305,7 +14315,7 @@ async function _getMyGroup(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14305
14315
  {
14306
14316
  const API_URL = `${URL}/api/media/my-group/${ID}`;
14307
14317
 
14308
- return await _sendRequest(instance, AUTH_TOKEN, "Get My Group", API_URL, "GET", null, null, DEBUG_MODE);
14318
+ return await _sendRequest(instance, AUTH_TOKEN, "Get My Group", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14309
14319
  }
14310
14320
 
14311
14321
 
@@ -14315,7 +14325,7 @@ async function _getSiteConfig(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14315
14325
  {
14316
14326
  const API_URL = `${URL}/api/media/config/${ID}`;
14317
14327
 
14318
- return await _sendRequest(instance, AUTH_TOKEN, "Get Site Config", API_URL, "GET", null, null, DEBUG_MODE);
14328
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Site Config", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14319
14329
  }
14320
14330
 
14321
14331
 
@@ -14379,7 +14389,7 @@ async function _deleteSavedSearch(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14379
14389
  {
14380
14390
  const API_URL = `${URL}/api/portal/savedsearch/${ID}`;
14381
14391
 
14382
- return await _sendRequest(instance, AUTH_TOKEN, "Delete Saved Search", API_URL, "DELETE", null, null, DEBUG_MODE);
14392
+ return await _sendRequest(instance, AUTH_TOKEN, "Delete Saved Search", API_URL, "DELETE", undefined, undefined, DEBUG_MODE);
14383
14393
  }
14384
14394
 
14385
14395
 
@@ -14389,7 +14399,7 @@ async function _getSavedSearch(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14389
14399
  {
14390
14400
  const API_URL = `${URL}/api/portal/savedsearch/${ID}`;
14391
14401
 
14392
- return await _sendRequest(instance, AUTH_TOKEN, "Get Saved Search", API_URL, "GET", null, null, DEBUG_MODE);
14402
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Saved Search", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14393
14403
  }
14394
14404
 
14395
14405
 
@@ -14399,7 +14409,7 @@ async function _getSavedSearches(instance, AUTH_TOKEN, URL, DEBUG_MODE)
14399
14409
  {
14400
14410
  const API_URL = `${URL}/api/portal/savedsearch`;
14401
14411
 
14402
- return await _sendRequest(instance, AUTH_TOKEN, "Get Saved Searchs", API_URL, "GET", null, null, DEBUG_MODE);
14412
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Saved Searchs", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14403
14413
  }
14404
14414
 
14405
14415
 
@@ -14409,7 +14419,7 @@ async function _getSearchSavedById(instance, AUTH_TOKEN, URL, ID, DEBUG_MODE)
14409
14419
  {
14410
14420
  const API_URL = `${URL}/api/portal/search-saved/${ID}`;
14411
14421
 
14412
- return await _sendRequest(instance, AUTH_TOKEN, "Get Search Saved By Id", API_URL, "GET", null, null, DEBUG_MODE);
14422
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Search Saved By Id", API_URL, "GET", undefined, undefined, DEBUG_MODE);
14413
14423
  }
14414
14424
 
14415
14425
 
@@ -14496,18 +14506,18 @@ async function _updateSavedSearch(instance, AUTH_TOKEN, URL, ID, NAME, FEATURED,
14496
14506
  }
14497
14507
 
14498
14508
 
14499
-
14500
-
14501
- async function _getVideoTracking(instance, AUTH_TOKEN, URL, ASSET_ID, TRACKING_EVENT, SECOND, DEBUG_MODE)
14502
- {
14503
- const API_URL = `${URL}/api/asset/tracking?assetId=${ASSET_ID}`
14504
-
14505
- const PARAMS = {
14506
- event: TRACKING_EVENT,
14507
- second: SECOND
14508
- }
14509
-
14510
- return await _sendRequest(instance, AUTH_TOKEN, "Get Video Tracking", API_URL, "GET", PARAMS, null, DEBUG_MODE);
14511
- }
14512
-
14513
-
14509
+
14510
+
14511
+ async function _getVideoTracking(instance, AUTH_TOKEN, URL, ASSET_ID, TRACKING_EVENT, SECOND, DEBUG_MODE)
14512
+ {
14513
+ const API_URL = `${URL}/api/asset/tracking?assetId=${ASSET_ID}`
14514
+
14515
+ const PARAMS = {
14516
+ event: TRACKING_EVENT,
14517
+ second: SECOND
14518
+ }
14519
+
14520
+ return await _sendRequest(instance, AUTH_TOKEN, "Get Video Tracking", API_URL, "GET", PARAMS, undefined, DEBUG_MODE);
14521
+ }
14522
+
14523
+