Socket
Socket
Sign inDemoInstall

dsd-constants-lib

Package Overview
Dependencies
Maintainers
1
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsd-constants-lib - npm Package Compare versions

Comparing version 1.9.14 to 1.9.15

22

lib/constants.js

@@ -49,16 +49,2 @@ /**

static get publicityTypes() {
return {
PublicityUnspecified: { name: "unspecified", id: 0 },
PublicityPublic: { name: "public", id: 1 },
PublicityCopyright: { name: "copyright", id: 2 },
PublicityCC_by: { name: "Creative Commons Attribution", id: 3 },
PublicityCC_by_sa: { name: "Creative Commons Attribution- ShareAlike", id: 4 },
PublicityCC_by_nd: { name: "Creative Commons Attribution - NoDerivatives", id: 5 },
PublicityCC_by_nc: { name: "Creative Commons Attribution - NonCommercial", id: 6 },
PublicityCC_by_nc_sa: { name: "Creative Commons Attribution - NonCommercial - ShareAlike", id: 7 },
PublicityCC_by_nc_nd: { name: "Creative Commons Attribution - NonCommercial - NoDerivatives", id: 8 }
};
}
static get errorCodes() {

@@ -232,10 +218,2 @@ return {

static publicityTypeIdToTypeName(typeId) {
let found = Object.keys(Constants.publicityTypes).find(pt => {
return pt.id == typeId;
});
return found ? found.name : "wasn't determined";
}
static licensesForDabType(dabType) {

@@ -242,0 +220,0 @@ function getLicense(typeId, accessCount, lifeTime) {

27

modules-api.js

@@ -36,3 +36,3 @@ /**

{name: "goldCostInSilver", params: ["A_userId", "I_goldAmount"], returns: "I_"},
{name: "postProductTicket", params: ["A_userId", "S_ticket", "S_engineName"], returns: "I_statusCode"},
{name: "completeAppCashProductPurchase", params: ["A_userId", "O_paymentInfo", "S_engineName"], returns: "I_statusCode"},
{name: "getAppCashProducts", params: ["S_appId", "S_engineName"], returns: "O_products"},

@@ -98,11 +98,14 @@

api: [
{name: "addDab", params: ["A_ownerId", "S_ownerPassword", "S_assetUrl", "S_publicDescription", ["I_linkedDabId", 0], ["LA_custodians", []], ["IC_publicityType", 0], ["S_dataHash", 0]], returns: "I_"},
{name: "addDabList", params: ["A_ownerId", "S_ownerPassword", "LO_dataArr"], returns: "LI_"},
{name: "addAsset", params: ["A_ownerId", "S_ownerPassword", "S_assetUrl", "S_publicDescription", ["I_linkedDabId", 0], ["LA_custodians", []], ["S_dataHash", 0]], returns: "I_"},
{ deprecated: true, name: "addDab", params: ["A_ownerId", "S_ownerPassword", "S_assetUrl", "S_publicDescription", ["I_linkedDabId", 0], ["LA_custodians", []], ["S_dataHash", 0]], returns: "I_"},
{name: "addAssetsList", params: ["A_ownerId", "S_ownerPassword", "LO_dataArr"], returns: "LI_"},
{ deprecated: true, name: "addDabList", params: ["A_ownerId", "S_ownerPassword", "LO_dataArr"], returns: "LI_"},
{name: "addTag", params: ["A_ownerId", "S_ownerPassword", "S_publicDescription", ["LA_custodians", []], "S_title", ["S_encryptedKey", null]], returns: "I_"},
{name: "getDirectLabelsForDab", params: ["A_userId", "I_dabId", ["I_pos", 0], ["I_size", 100]], returns: "LI_"},
{ deprecated: true, name: "getDirectLabelsForDab", params: ["A_userId", "I_dabId", ["I_pos", 0], ["I_size", 100]], returns: "LI_"},
{ deprecated: true, name: "getOwnedDabsIds", params: ["A_userId", ["I_pos", 0], ["I_size", 10]], returns: "LI_"},
{ deprecated: true, name: "getSharedDabsIds", params: ["A_userId"], returns: "LI_"},
{ deprecated: true, name: "getCustodiedDabsIds", params: ["A_userId"], returns: "LI_"},
{name: "getDabs", params: ["A_userId", "LI_dabIds"], returns: "LO.AS_"},
{name: "getTags", params: ["A_userId", "LI_tagIds"], returns: "LO.TG_"},
{name: "getDabs", params: ["A_userId", "LI_dabIds", ["IC_dabTypeCode", null]], returns: "LO.AS_"},
{ deprecated: true, name: "getTags", params: ["A_userId", "LI_tagIds"], returns: "LO.TG_"},
{name: "getDabPreviousVersionsIds", params: ["A_userId", "I_dabId", ["I_maxLength", 1]], returns: "LI_"},

@@ -124,7 +127,7 @@ {name: "getTagEncryptedKey", params: ["A_buyerId", "A_sellerId", "I_tagId"], returns: "O.KY_"},

{ deprecated: true, name: "getAvailableLicenses", params: ["A_userId", ["IC_dabTypeCode", null], ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getAvailableLicensesForDab", params: ["A_userId", "I_dabId"], returns: "LO.LS_"},
{ deprecated: true, name: "getAvailableLicensesForDab", params: ["A_userId", "I_dabId", ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getAlienSellOfferedLicenses", params: ["A_userId", ["IC_dabTypeCode", null], ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getAlienBuyOfferedLicenses", params: ["A_userId", ["IC_dabTypeCode", null], ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getAlienSellOfferedLicensesForDab", params: ["A_userId", "I_dabId"], returns: "LO.LS_"},
{ deprecated: true, name: "getAlienBuyOfferedLicensesForDab", params: ["A_userId", "I_dabId"], returns: "LO.LS_"},
{ deprecated: true, name: "getAlienSellOfferedLicensesForDab", params: ["A_userId", "I_dabId", ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getAlienBuyOfferedLicensesForDab", params: ["A_userId", "I_dabId", ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "actualiseBoughtDeals", params: ["A_userId", "S_userPassword", "IC_licenseTypeCode"], returns: "B_"},

@@ -134,11 +137,11 @@

{ deprecated: true, name: "getSoldLicenses", params: ["A_userId", ["IC_dabTypeCode", null], ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getSoldLicensesForDab", params: ["A_userId", "I_dabId"], returns: "LO.LS_"},
{ deprecated: true, name: "getSoldLicensesForDab", params: ["A_userId", "I_dabId", ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getMySellOfferedLicenses", params: ["A_userId", ["IC_dabTypeCode", null], ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getMyBuyOfferedLicenses", params: ["A_userId", ["IC_dabTypeCode", null], ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getMySellOfferedLicensesForDab", params: ["A_userId", "I_dabId"], returns: "LO.LS_"},
{ deprecated: true, name: "getMyBuyOfferedLicensesForDab", params: ["A_userId", "I_dabId"], returns: "LO.LS_"},
{ deprecated: true, name: "getMySellOfferedLicensesForDab", params: ["A_userId", "I_dabId", ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "getMyBuyOfferedLicensesForDab", params: ["A_userId", "I_dabId", ["IC_licenseTypeCode", null], ["I_pos", 0], ["I_size", 10]], returns: "LO.LS_"},
{ deprecated: true, name: "actualiseSoldDeals", params: ["A_userId", "S_userPassword", "IC_licenseTypeCode"], returns: "B_"},
// {name: "getEventsDase", params: ["A_userId", ["I_pos", 0], ["I_size", 10], "S_filterName", "OC_relation"], returns: "LO.EV_"},
{ deprecated: true, name: "getDabsPage", params: ["A_userId", ["I_startDabId", 0], ["I_pageSize", 10]], returns: "LO.AS_"},
// { deprecated: true, name: "getDabsPage", params: ["A_userId", ["I_startDabId", 0], ["I_pageSize", 10]], returns: "LO.AS_"},
// {name: "getTagsPage", params: ["A_userId", ["I_startTagId", 0], ["I_pageSize", 10]], returns: "LO.TG_"},

@@ -145,0 +148,0 @@ // {name: "getDabsForTag", params: ["A_userId", ["S_tagTitle", ""], ["I_tagId", null]], returns: "LO.AS_"},

{
"name": "dsd-constants-lib",
"version": "1.9.14",
"version": "1.9.15",
"dependencies": {},
"scripts": {}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc