@nomad-media/full 1.1.16 → 1.1.17

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)
@@ -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,14 +13638,16 @@ 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,
@@ -13657,10 +13666,11 @@ 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
  {
@@ -13668,7 +13678,7 @@ async function _sendRequest(instance, AUTH_TOKEN, FUNCTION_NAME, URL, METHOD_TYP
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
  }