@enplug/sdk-dashboard
Advanced tools
Comparing version 5.0.0-dev.3 to 5.0.0-dev.4
@@ -97,3 +97,3 @@ var enplug = | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ./types */ "./src/types.ts"), __webpack_require__(/*! ./utils */ "./src/utils.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, types_1, utils_1) { | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ./exported-types */ "./src/exported-types.ts"), __webpack_require__(/*! ./utils */ "./src/utils.ts"), __webpack_require__(/*! ./internal-types */ "./src/internal-types.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, exported_types_1, utils_1, internal_types_1) { | ||
"use strict"; | ||
@@ -113,4 +113,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetAccount, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetAccount, | ||
}); | ||
@@ -123,4 +123,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetUser, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetUser, | ||
}); | ||
@@ -130,4 +130,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetDisplayGroups, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetDisplayGroups, | ||
}); | ||
@@ -137,4 +137,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetSelectedDisplayId, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetSelectedDisplayId, | ||
}); | ||
@@ -147,4 +147,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetAssets, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetAssets, | ||
}); | ||
@@ -159,4 +159,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetAssetsByIds, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetAssetsByIds, | ||
params: { | ||
@@ -175,4 +175,4 @@ assetsIds: assetsIds, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetAssetsForApp, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetAssetsForApp, | ||
appId: appId, | ||
@@ -195,4 +195,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.BulkCreateAssets, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.BulkCreateAssets, | ||
params: { | ||
@@ -219,4 +219,4 @@ assets: assets, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.BulkDeployAssets, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.BulkDeployAssets, | ||
params: { | ||
@@ -238,4 +238,4 @@ assets: assets, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.SaveAsset, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.SaveAsset, | ||
params: { | ||
@@ -255,4 +255,4 @@ asset: asset, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.UpdateAssetOrder, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.UpdateAssetOrder, | ||
params: { | ||
@@ -277,4 +277,4 @@ assets: assets, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.DeleteAsset, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.DeleteAsset, | ||
params: { | ||
@@ -292,3 +292,3 @@ ids: id, | ||
Account.prototype.getDefaultAssets = function (level, levelId) { | ||
if (level === void 0) { level = types_1.DefaultAssetLevel.Default; } | ||
if (level === void 0) { level = exported_types_1.DefaultAssetLevel.Default; } | ||
utils_1.validateString(level, 'You must provide a level parameter that is either "Default", "Network", or "Account"'); | ||
@@ -302,4 +302,4 @@ if (level !== 'Account' && level !== 'Network' && level !== 'Default') { | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetDefaultAssets, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetDefaultAssets, | ||
params: { | ||
@@ -317,4 +317,4 @@ level: level, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetFonts, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetFonts, | ||
params: { | ||
@@ -331,4 +331,4 @@ appId: appId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetThemes, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetThemes, | ||
params: { | ||
@@ -345,4 +345,4 @@ appId: appId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.GetTheme, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.GetTheme, | ||
params: { | ||
@@ -368,4 +368,4 @@ id: id, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.EditTheme, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.EditTheme, | ||
params: { | ||
@@ -391,4 +391,4 @@ themeDefinition: themeDefinition, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.SaveTheme, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.SaveTheme, | ||
params: { | ||
@@ -407,4 +407,4 @@ theme: theme, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.DeleteTheme, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.DeleteTheme, | ||
params: { | ||
@@ -421,4 +421,4 @@ themeId: themeId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.App, | ||
name: types_1.MessageNames.HasFeatureFlag, | ||
namespace: internal_types_1.MessageNamespaces.App, | ||
name: internal_types_1.MessageNames.HasFeatureFlag, | ||
params: { | ||
@@ -579,3 +579,3 @@ flagName: flagName, | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ./types */ "./src/types.ts"), __webpack_require__(/*! ./utils */ "./src/utils.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, types_1, utils_1) { | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ./utils */ "./src/utils.ts"), __webpack_require__(/*! ./internal-types */ "./src/internal-types.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, utils_1, internal_types_1) { | ||
"use strict"; | ||
@@ -617,4 +617,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.Click, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.Click, | ||
transient: true, | ||
@@ -630,4 +630,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.ConfirmUnsavedChanges, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.ConfirmUnsavedChanges, | ||
}); | ||
@@ -643,4 +643,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.ErrorIndicator, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.ErrorIndicator, | ||
params: message, | ||
@@ -665,4 +665,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.LoadingIndicator, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.LoadingIndicator, | ||
params: message, | ||
@@ -677,4 +677,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.Navigate, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.Navigate, | ||
params: { | ||
@@ -691,4 +691,4 @@ data: url, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.NavigateBack, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.NavigateBack, | ||
params: { | ||
@@ -712,4 +712,4 @@ assetId: assetId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.OpenConfirm, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.OpenConfirm, | ||
params: options, | ||
@@ -723,4 +723,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.PageError, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.PageError, | ||
}); | ||
@@ -740,4 +740,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.PageLoading, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.PageLoading, | ||
params: bool, | ||
@@ -754,4 +754,4 @@ }).then(function (loading) { | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.PageNotFound, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.PageNotFound, | ||
}); | ||
@@ -769,4 +769,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.Preview, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.Preview, | ||
params: { | ||
@@ -796,4 +796,4 @@ url: url, | ||
this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.SetDisplaySelectorCallback, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.SetDisplaySelectorCallback, | ||
params: callback, | ||
@@ -815,4 +815,4 @@ persistent: true, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.SetDisplaySelectorVisibility, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.SetDisplaySelectorVisibility, | ||
params: show, | ||
@@ -847,4 +847,4 @@ }); | ||
this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.SetHeaderButtons, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.SetHeaderButtons, | ||
params: buttons, | ||
@@ -876,4 +876,4 @@ persistent: true, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.SetHeaderTitle, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.SetHeaderTitle, | ||
params: title, | ||
@@ -890,4 +890,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.SuccessIndicator, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.SuccessIndicator, | ||
params: message, | ||
@@ -901,4 +901,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.SwitchToView, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.SwitchToView, | ||
params: { | ||
@@ -916,4 +916,4 @@ displayGroupId: displayGroupId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.Upload, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.Upload, | ||
params: options, | ||
@@ -930,4 +930,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.ProcessAssetResource, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.ProcessAssetResource, | ||
params: { | ||
@@ -946,4 +946,4 @@ accountId: accountId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.EncodeStatus, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.EncodeStatus, | ||
params: url, | ||
@@ -960,4 +960,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.OpenContentIntervalSettingsDialog, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.OpenContentIntervalSettingsDialog, | ||
params: { | ||
@@ -977,4 +977,4 @@ appName: appName, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Dashboard, | ||
name: types_1.MessageNames.SetAppHasUnsavedChanges, | ||
namespace: internal_types_1.MessageNamespaces.Dashboard, | ||
name: internal_types_1.MessageNames.SetAppHasUnsavedChanges, | ||
transient: true, | ||
@@ -995,2 +995,25 @@ params: { | ||
/***/ "./src/exported-types.ts": | ||
/*!*******************************!*\ | ||
!*** ./src/exported-types.ts ***! | ||
\*******************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** These are meant to avaialable to client apps */ | ||
var DefaultAssetLevel; | ||
(function (DefaultAssetLevel) { | ||
DefaultAssetLevel["Default"] = "Default"; | ||
DefaultAssetLevel["Network"] = "Network"; | ||
DefaultAssetLevel["Account"] = "Account"; | ||
})(DefaultAssetLevel = exports.DefaultAssetLevel || (exports.DefaultAssetLevel = {})); | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
/***/ }), | ||
/***/ "./src/index.ts": | ||
@@ -1003,6 +1026,8 @@ /*!**********************!*\ | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ./account */ "./src/account.ts"), __webpack_require__(/*! ./types */ "./src/types.ts"), __webpack_require__(/*! ./bridge/bridge */ "./src/bridge/bridge.ts"), __webpack_require__(/*! ./dashboard */ "./src/dashboard.ts"), __webpack_require__(/*! ./social */ "./src/social.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, account_1, types_1, bridge_1, dashboard_1, social_1) { | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ./account */ "./src/account.ts"), __webpack_require__(/*! ./bridge/bridge */ "./src/bridge/bridge.ts"), __webpack_require__(/*! ./dashboard */ "./src/dashboard.ts"), __webpack_require__(/*! ./social */ "./src/social.ts"), __webpack_require__(/*! ./exported-types */ "./src/exported-types.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, account_1, bridge_1, dashboard_1, social_1, exported_types_1) { | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DefaultAssetLevel = types_1.DefaultAssetLevel; | ||
function createDashboardSDK() { | ||
@@ -1019,2 +1044,3 @@ var bridge = new bridge_1.Bridge(window); | ||
exports.default = createDashboardSDK(); | ||
__export(exported_types_1); | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
@@ -1026,2 +1052,92 @@ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
/***/ "./src/internal-types.ts": | ||
/*!*******************************!*\ | ||
!*** ./src/internal-types.ts ***! | ||
\*******************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/** | ||
* Internal types, not to be re-exported. | ||
*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var MessageNamespaces; | ||
(function (MessageNamespaces) { | ||
MessageNamespaces["App"] = "app"; | ||
MessageNamespaces["Social"] = "social"; | ||
MessageNamespaces["Dashboard"] = "dashboard"; | ||
})(MessageNamespaces = exports.MessageNamespaces || (exports.MessageNamespaces = {})); | ||
var MessageNames; | ||
(function (MessageNames) { | ||
MessageNames["GetAccount"] = "getAccount"; | ||
MessageNames["GetUser"] = "getUser"; | ||
MessageNames["GetDisplayGroups"] = "getDisplays"; | ||
MessageNames["GetSelectedDisplayId"] = "getSelectedDisplayId"; | ||
MessageNames["GetAssets"] = "getAssets"; | ||
MessageNames["GetAssetsByIds"] = "getAssetsByIds"; | ||
MessageNames["GetAssetsForApp"] = "getAssetsForApp"; | ||
MessageNames["BulkCreateAssets"] = "bulkCreateAssets"; | ||
MessageNames["BulkDeployAssets"] = "bulkDeployAssets"; | ||
MessageNames["SaveAsset"] = "saveAsset"; | ||
MessageNames["UpdateAssetOrder"] = "updateAssetOrder"; | ||
MessageNames["DeleteAsset"] = "deleteAsset"; | ||
MessageNames["GetDefaultAssets"] = "getDefaultAssets"; | ||
MessageNames["GetFonts"] = "getFonts"; | ||
MessageNames["GetThemes"] = "getThemes"; | ||
MessageNames["GetTheme"] = "getTheme"; | ||
MessageNames["EditTheme"] = "editTheme"; | ||
MessageNames["SaveTheme"] = "saveTheme"; | ||
MessageNames["DeleteTheme"] = "deleteTheme"; | ||
MessageNames["HasFeatureFlag"] = "hasFeatureFlag"; | ||
MessageNames["Click"] = "click"; | ||
MessageNames["ConfirmUnsavedChanges"] = "unsavedChanges"; | ||
MessageNames["ErrorIndicator"] = "indicator.error"; | ||
MessageNames["LoadingIndicator"] = "indicator.loading"; | ||
MessageNames["Navigate"] = "navigate"; | ||
MessageNames["NavigateBack"] = "navigateBack"; | ||
MessageNames["OpenConfirm"] = "confirm"; | ||
MessageNames["PageError"] = "page.error"; | ||
MessageNames["PageLoading"] = "page.loading"; | ||
MessageNames["PageNotFound"] = "page.notFound"; | ||
MessageNames["Preview"] = "preview"; | ||
MessageNames["SetDisplaySelectorCallback"] = "set.selectorCallback"; | ||
MessageNames["SetDisplaySelectorVisibility"] = "set.selectorEnabled"; | ||
MessageNames["SetHeaderButtons"] = "set.buttons"; | ||
MessageNames["SetHeaderTitle"] = "set.title"; | ||
MessageNames["SuccessIndicator"] = "indicator.success"; | ||
MessageNames["SwitchToView"] = "switchToView"; | ||
MessageNames["Upload"] = "upload"; | ||
MessageNames["ProcessAssetResource"] = "processAssetResource"; | ||
MessageNames["EncodeStatus"] = "encodeStatus"; | ||
MessageNames["OpenContentIntervalSettingsDialog"] = "openContentIntervalSettingsDialog"; | ||
MessageNames["SetAppHasUnsavedChanges"] = "appHasUnsavedChanges"; | ||
MessageNames["ClearQueryString"] = "clearQueryString"; | ||
MessageNames["AuthInstagram"] = "authInstagram"; | ||
MessageNames["AuthSlack"] = "authSlack"; | ||
MessageNames["GetInstagramAccounts"] = "getInstagramAccounts"; | ||
MessageNames["LookupTwitterId"] = "lookupTwitterId"; | ||
MessageNames["GetSlackTeams"] = "getSlackTeams"; | ||
MessageNames["GetSlackChannels"] = "getSlackChannels"; | ||
MessageNames["AddFacebookPage"] = "addFacebookPage"; | ||
MessageNames["GetFeeds"] = "getFeeds"; | ||
MessageNames["SaveFeed"] = "saveFeed"; | ||
MessageNames["DeleteFeed"] = "deleteFeed"; | ||
MessageNames["OpenPreapprovalDialog"] = "openPreapprovalDialog"; | ||
MessageNames["LoadAllItems"] = "loadAllItems"; | ||
MessageNames["ApproveItem"] = "approveItem"; | ||
MessageNames["RemoveItem"] = "removeItem"; | ||
MessageNames["FavoriteItem"] = "favoriteItem"; | ||
MessageNames["UnfavoriteItem"] = "unfavoriteItem"; | ||
MessageNames["BanItem"] = "banItem"; | ||
MessageNames["LoadBlacklist"] = "loadBlacklist"; | ||
MessageNames["UnbanUser"] = "unbanUser"; | ||
})(MessageNames = exports.MessageNames || (exports.MessageNames = {})); | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
/***/ }), | ||
/***/ "./src/social.ts": | ||
@@ -1034,3 +1150,3 @@ /*!***********************!*\ | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ./types */ "./src/types.ts"), __webpack_require__(/*! ./utils */ "./src/utils.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, types_1, utils_1) { | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! ./internal-types */ "./src/internal-types.ts"), __webpack_require__(/*! ./utils */ "./src/utils.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, internal_types_1, utils_1) { | ||
"use strict"; | ||
@@ -1044,4 +1160,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.ClearQueryString, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.ClearQueryString, | ||
}); | ||
@@ -1052,4 +1168,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.AuthInstagram, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.AuthInstagram, | ||
params: { | ||
@@ -1064,4 +1180,4 @@ accessToken: accessToken, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.AuthSlack, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.AuthSlack, | ||
params: { | ||
@@ -1076,4 +1192,4 @@ verificationCode: verificationCode, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.GetInstagramAccounts, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.GetInstagramAccounts, | ||
params: { | ||
@@ -1087,4 +1203,4 @@ userId: userId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.LookupTwitterId, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.LookupTwitterId, | ||
params: username, | ||
@@ -1095,4 +1211,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.GetSlackTeams, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.GetSlackTeams, | ||
}); | ||
@@ -1103,4 +1219,4 @@ }; | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.GetSlackChannels, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.GetSlackChannels, | ||
params: teamId, | ||
@@ -1114,4 +1230,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.AddFacebookPage, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.AddFacebookPage, | ||
params: { | ||
@@ -1127,4 +1243,4 @@ feedId: feedId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.GetFeeds, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.GetFeeds, | ||
params: assetId, | ||
@@ -1136,4 +1252,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.SaveFeed, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.SaveFeed, | ||
params: feed, | ||
@@ -1145,4 +1261,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.DeleteFeed, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.DeleteFeed, | ||
params: feedId, | ||
@@ -1154,4 +1270,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.OpenPreapprovalDialog, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.OpenPreapprovalDialog, | ||
params: { | ||
@@ -1167,4 +1283,4 @@ feed: feed, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.LoadAllItems, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.LoadAllItems, | ||
params: assetId, | ||
@@ -1177,4 +1293,4 @@ }); | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.ApproveItem, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.ApproveItem, | ||
params: { | ||
@@ -1190,4 +1306,4 @@ itemId: itemId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.RemoveItem, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.RemoveItem, | ||
params: { | ||
@@ -1204,4 +1320,4 @@ itemId: itemId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.FavoriteItem, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.FavoriteItem, | ||
params: { | ||
@@ -1219,4 +1335,4 @@ itemId: itemId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.UnfavoriteItem, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.UnfavoriteItem, | ||
params: { | ||
@@ -1233,4 +1349,4 @@ itemId: itemId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.BanItem, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.BanItem, | ||
params: { | ||
@@ -1246,4 +1362,4 @@ itemId: itemId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.LoadBlacklist, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.LoadBlacklist, | ||
params: { | ||
@@ -1260,4 +1376,4 @@ accountId: accountId, | ||
return this.bridge.sendMessage({ | ||
namespace: types_1.MessageNamespaces.Social, | ||
name: types_1.MessageNames.UnbanUser, | ||
namespace: internal_types_1.MessageNamespaces.Social, | ||
name: internal_types_1.MessageNames.UnbanUser, | ||
params: { | ||
@@ -1279,99 +1395,2 @@ username: username, | ||
/***/ "./src/types.ts": | ||
/*!**********************!*\ | ||
!*** ./src/types.ts ***! | ||
\**********************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/** | ||
* Internal types, not to be re-exported. | ||
*/ | ||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var MessageNamespaces; | ||
(function (MessageNamespaces) { | ||
MessageNamespaces["App"] = "app"; | ||
MessageNamespaces["Social"] = "social"; | ||
MessageNamespaces["Dashboard"] = "dashboard"; | ||
})(MessageNamespaces = exports.MessageNamespaces || (exports.MessageNamespaces = {})); | ||
var MessageNames; | ||
(function (MessageNames) { | ||
MessageNames["GetAccount"] = "getAccount"; | ||
MessageNames["GetUser"] = "getUser"; | ||
MessageNames["GetDisplayGroups"] = "getDisplays"; | ||
MessageNames["GetSelectedDisplayId"] = "getSelectedDisplayId"; | ||
MessageNames["GetAssets"] = "getAssets"; | ||
MessageNames["GetAssetsByIds"] = "getAssetsByIds"; | ||
MessageNames["GetAssetsForApp"] = "getAssetsForApp"; | ||
MessageNames["BulkCreateAssets"] = "bulkCreateAssets"; | ||
MessageNames["BulkDeployAssets"] = "bulkDeployAssets"; | ||
MessageNames["SaveAsset"] = "saveAsset"; | ||
MessageNames["UpdateAssetOrder"] = "updateAssetOrder"; | ||
MessageNames["DeleteAsset"] = "deleteAsset"; | ||
MessageNames["GetDefaultAssets"] = "getDefaultAssets"; | ||
MessageNames["GetFonts"] = "getFonts"; | ||
MessageNames["GetThemes"] = "getThemes"; | ||
MessageNames["GetTheme"] = "getTheme"; | ||
MessageNames["EditTheme"] = "editTheme"; | ||
MessageNames["SaveTheme"] = "saveTheme"; | ||
MessageNames["DeleteTheme"] = "deleteTheme"; | ||
MessageNames["HasFeatureFlag"] = "hasFeatureFlag"; | ||
MessageNames["Click"] = "click"; | ||
MessageNames["ConfirmUnsavedChanges"] = "unsavedChanges"; | ||
MessageNames["ErrorIndicator"] = "indicator.error"; | ||
MessageNames["LoadingIndicator"] = "indicator.loading"; | ||
MessageNames["Navigate"] = "navigate"; | ||
MessageNames["NavigateBack"] = "navigateBack"; | ||
MessageNames["OpenConfirm"] = "confirm"; | ||
MessageNames["PageError"] = "page.error"; | ||
MessageNames["PageLoading"] = "page.loading"; | ||
MessageNames["PageNotFound"] = "page.notFound"; | ||
MessageNames["Preview"] = "preview"; | ||
MessageNames["SetDisplaySelectorCallback"] = "set.selectorCallback"; | ||
MessageNames["SetDisplaySelectorVisibility"] = "set.selectorEnabled"; | ||
MessageNames["SetHeaderButtons"] = "set.buttons"; | ||
MessageNames["SetHeaderTitle"] = "set.title"; | ||
MessageNames["SuccessIndicator"] = "indicator.success"; | ||
MessageNames["SwitchToView"] = "switchToView"; | ||
MessageNames["Upload"] = "upload"; | ||
MessageNames["ProcessAssetResource"] = "processAssetResource"; | ||
MessageNames["EncodeStatus"] = "encodeStatus"; | ||
MessageNames["OpenContentIntervalSettingsDialog"] = "openContentIntervalSettingsDialog"; | ||
MessageNames["SetAppHasUnsavedChanges"] = "appHasUnsavedChanges"; | ||
MessageNames["ClearQueryString"] = "clearQueryString"; | ||
MessageNames["AuthInstagram"] = "authInstagram"; | ||
MessageNames["AuthSlack"] = "authSlack"; | ||
MessageNames["GetInstagramAccounts"] = "getInstagramAccounts"; | ||
MessageNames["LookupTwitterId"] = "lookupTwitterId"; | ||
MessageNames["GetSlackTeams"] = "getSlackTeams"; | ||
MessageNames["GetSlackChannels"] = "getSlackChannels"; | ||
MessageNames["AddFacebookPage"] = "addFacebookPage"; | ||
MessageNames["GetFeeds"] = "getFeeds"; | ||
MessageNames["SaveFeed"] = "saveFeed"; | ||
MessageNames["DeleteFeed"] = "deleteFeed"; | ||
MessageNames["OpenPreapprovalDialog"] = "openPreapprovalDialog"; | ||
MessageNames["LoadAllItems"] = "loadAllItems"; | ||
MessageNames["ApproveItem"] = "approveItem"; | ||
MessageNames["RemoveItem"] = "removeItem"; | ||
MessageNames["FavoriteItem"] = "favoriteItem"; | ||
MessageNames["UnfavoriteItem"] = "unfavoriteItem"; | ||
MessageNames["BanItem"] = "banItem"; | ||
MessageNames["LoadBlacklist"] = "loadBlacklist"; | ||
MessageNames["UnbanUser"] = "unbanUser"; | ||
})(MessageNames = exports.MessageNames || (exports.MessageNames = {})); | ||
/** These are meant to avaialable to client apps */ | ||
var DefaultAssetLevel; | ||
(function (DefaultAssetLevel) { | ||
DefaultAssetLevel["Default"] = "Default"; | ||
DefaultAssetLevel["Network"] = "Network"; | ||
DefaultAssetLevel["Account"] = "Account"; | ||
})(DefaultAssetLevel = exports.DefaultAssetLevel || (exports.DefaultAssetLevel = {})); | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
/***/ }), | ||
/***/ "./src/utils.ts": | ||
@@ -1378,0 +1397,0 @@ /*!**********************!*\ |
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.0.0-dev.3", | ||
"version": "5.0.0-dev.4", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -10,4 +10,2 @@ import { | ||
Layout, | ||
MessageNames, | ||
MessageNamespaces, | ||
ThemeDefinition, | ||
@@ -17,5 +15,6 @@ ThemeAsset, | ||
FontsApiItem, | ||
} from './types'; | ||
} from './exported-types'; | ||
import { BridgeBase } from './bridge/bridge-base'; | ||
import { validateArray, validateObject, validateString } from './utils'; | ||
import { MessageNamespaces, MessageNames } from './internal-types'; | ||
@@ -22,0 +21,0 @@ export class Account { |
@@ -1,2 +0,2 @@ | ||
import { InboundMessage, OutboundMessage, PendingCallInfo } from '../types'; | ||
import { InboundMessage, OutboundMessage, PendingCallInfo } from '../internal-types'; | ||
@@ -3,0 +3,0 @@ /** |
import { BridgeBase } from './bridge-base'; | ||
import { OutboundMessage } from '../types'; | ||
import { OutboundMessage } from '../internal-types'; | ||
@@ -4,0 +4,0 @@ export class Bridge extends BridgeBase { |
@@ -9,9 +9,8 @@ import { | ||
Layout, | ||
MessageNames, | ||
MessageNamespaces, | ||
OpenConfirmOptions, | ||
ThemeAsset, | ||
} from './types'; | ||
} from './exported-types'; | ||
import { BridgeBase } from './bridge/bridge-base'; | ||
import { validateArray, validateBool, validateFunction, validateObject, validateString } from './utils'; | ||
import { MessageNamespaces, MessageNames } from './internal-types'; | ||
@@ -18,0 +17,0 @@ export class Dashboard { |
import { Account } from './account'; | ||
import { | ||
Asset, | ||
Button, | ||
DefaultAsset, | ||
DefaultAssetLevel, | ||
DeployDialogOptions, | ||
DisplayGroup, | ||
DisplaySelectorCallback, | ||
EnplugAccount, | ||
EnplugUser, | ||
Environment, | ||
FacebookAuthParams, | ||
FeedData, | ||
FilepickerOptions, | ||
FilepickerStoreToOptions, | ||
FilepickerUploadedFile, | ||
FontDefinition, | ||
FontsApiItem, | ||
Layout, | ||
OpenConfirmOptions, | ||
Orientation, | ||
PreapprovalDialogOptions, | ||
Schedule, | ||
SocialItem, | ||
SocialItemMedia, | ||
SocialItemsResponse, | ||
SocialItemUser, | ||
ThemeAsset, | ||
ThemeBackground, | ||
ThemeDefinition, | ||
ThemePropertyType, | ||
ThemeSection, | ||
ThemeSectionProperties, | ||
TimeRange, | ||
WidgetType, | ||
} from './types'; | ||
import { Bridge } from './bridge/bridge'; | ||
@@ -72,38 +36,2 @@ import { Dashboard } from './dashboard'; | ||
export default createDashboardSDK(); | ||
export { | ||
Asset, | ||
Button, | ||
DefaultAsset, | ||
DefaultAssetLevel, | ||
DeployDialogOptions, | ||
DisplayGroup, | ||
DisplaySelectorCallback, | ||
EnplugAccount, | ||
EnplugUser, | ||
Environment, | ||
FacebookAuthParams, | ||
FeedData, | ||
FilepickerOptions, | ||
FilepickerStoreToOptions, | ||
FilepickerUploadedFile, | ||
FontsApiItem, | ||
FontDefinition, | ||
Layout, | ||
OpenConfirmOptions, | ||
Orientation, | ||
PreapprovalDialogOptions, | ||
Schedule, | ||
SocialItem, | ||
SocialItemMedia, | ||
SocialItemUser, | ||
SocialItemsResponse, | ||
ThemeAsset, | ||
ThemeBackground, | ||
ThemeDefinition, | ||
ThemePropertyType, | ||
ThemeSection, | ||
ThemeSectionProperties, | ||
TimeRange, | ||
WidgetType, | ||
}; | ||
export * from './exported-types'; |
import { BridgeBase } from './bridge/bridge-base'; | ||
import { MessageNamespaces, MessageNames, PreapprovalDialogOptions, SocialItemsResponse } from './types'; | ||
import { validateString, validateObject } from './utils'; | ||
import { MessageNames, MessageNamespaces } from './internal-types'; | ||
import { PreapprovalDialogOptions, SocialItemsResponse } from './exported-types'; | ||
import { validateObject, validateString } from './utils'; | ||
@@ -5,0 +6,0 @@ export class Social { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12
190489
2877