New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@basetime/bldr-sfmc-sdk

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basetime/bldr-sfmc-sdk - npm Package Compare versions

Comparing version 1.0.24 to 1.0.25

2

dist/cli/automationStudio/index.d.ts

@@ -0,3 +1,3 @@

import { SFMC_Automation } from '../types/bldr_assets/sfmc_automation';
import { SFMC_Client } from '../types/sfmc_client';
import { SFMC_Automation } from '../types/bldr_assets/sfmc_automation';
export declare class AutomationStudio {

@@ -4,0 +4,0 @@ sfmc: SFMC_Client;

@@ -13,5 +13,5 @@ "use strict";

exports.AutomationStudio = void 0;
const utils_1 = require("../utils");
const BuildSoapFolderObjects_1 = require("../utils/BuildSoapFolderObjects");
const FormatAutomationAsset_1 = require("../utils/_context/automationStudio/FormatAutomationAsset");
const utils_1 = require("../utils");
const sfmcContextMapping_1 = require("../../sfmc/utils/sfmcContextMapping");

@@ -144,5 +144,7 @@ class AutomationStudio {

const folderResponse = yield this.sfmc.folder.getFoldersFromMiddle(request);
const buildFolderPaths = yield (0, BuildSoapFolderObjects_1.buildFolderPathsSoap)(folderResponse);
const isolateFolderIds = buildFolderPaths &&
buildFolderPaths.folders
const buildFolderPaths = yield (0, BuildSoapFolderObjects_1.buildFolderPathsSoap)(folderResponse.full);
const isolateFolderIds = folderResponse &&
folderResponse.down &&
folderResponse.down.length &&
folderResponse.down
.map((folder) => folder.Name !== 'my automations' && folder.ID)

@@ -149,0 +151,0 @@ .filter(Boolean);

@@ -168,5 +168,7 @@ "use strict";

const folderResponse = yield this.sfmc.folder.getFoldersFromMiddle(request);
const buildFolderPaths = yield (0, BuildSoapFolderObjects_1.buildFolderPathsSoap)(folderResponse);
const isolateFolderIds = buildFolderPaths &&
buildFolderPaths.folders
const buildFolderPaths = yield (0, BuildSoapFolderObjects_1.buildFolderPathsSoap)(folderResponse.full);
const isolateFolderIds = folderResponse &&
folderResponse.down &&
folderResponse.down.length &&
folderResponse.down
.map((folder) => folder.Name !== 'Content Builder' && folder.ID)

@@ -173,0 +175,0 @@ .filter(Boolean);

@@ -141,7 +141,8 @@ "use strict";

const folderResponse = yield this.sfmc.folder.getFoldersFromMiddle(request);
const buildFolderPaths = folderResponse && (yield (0, BuildSoapFolderObjects_1.buildFolderPathsSoap)(folderResponse));
const isolateFolderIds = (buildFolderPaths &&
buildFolderPaths.folders &&
buildFolderPaths.folders.length &&
buildFolderPaths.folders
const buildFolderPaths = folderResponse &&
(yield (0, BuildSoapFolderObjects_1.buildFolderPathsSoap)(folderResponse.full));
const isolateFolderIds = (folderResponse &&
folderResponse.down &&
folderResponse.down.length &&
folderResponse.down
.map((folder) => folder.Name !== 'Data Extensions' && folder.ID)

@@ -148,0 +149,0 @@ .filter(Boolean)) ||

@@ -13,3 +13,2 @@ "use strict";

exports.Account = void 0;
const handleError_1 = require("../utils/handleError");
const { getProperties } = require('sfmc-soap-object-reference');

@@ -49,3 +48,3 @@ const ListDefinition = getProperties('List');

catch (err) {
return (0, handleError_1.handleError)(err);
return err;
}

@@ -76,3 +75,3 @@ });

catch (err) {
return (0, handleError_1.handleError)(err);
return err;
}

@@ -96,3 +95,3 @@ });

if (getAllMidsRequest.OverallStatus !== 'OK') {
throw new Error(getAllMidsRequest);
throw new Error(getAllMidsRequest.response.statusText);
}

@@ -111,3 +110,3 @@ midsArray = getAllMidsRequest.Results.map((BU) => {

catch (err) {
return (0, handleError_1.handleError)(err);
return err.message;
}

@@ -114,0 +113,0 @@ });

@@ -87,3 +87,10 @@ import { SFMC_SOAP_Folder } from '../types/objects/sfmc_soap_folders';

categoryId: number;
}): Promise<any[]>;
}): Promise<{
up: {
results: any[];
stop: Boolean;
};
down: never[];
full: any[];
}>;
/**

@@ -90,0 +97,0 @@ * Create a folder in SFMC via SOAP Data Folder Object

@@ -296,5 +296,9 @@ "use strict";

let down = (!up.stop && (yield this.getSubfoldersRecursive(request))) || [];
return [
...new Map([...up.results, ...down].map((item) => [item['Name'], item])).values(),
];
return {
up,
down,
full: [
...new Map([...up.results, ...down].map((item) => [item['Name'], item])).values(),
],
};
});

@@ -301,0 +305,0 @@ }

@@ -0,12 +1,9 @@

import { SFMC_SOAP_Folder } from '../../sfmc/types/objects/sfmc_soap_folders';
import { SFMC_Automation } from '../types/bldr_assets/sfmc_automation';
import { SFMC_Client } from '../types/sfmc_client';
import { CLI_Client } from '../types/cli_client';
import { SFMC_SOAP_Folder } from '../../sfmc/types/objects/sfmc_soap_folders';
import { guid } from '../utils';
import { buildFolderPathsSoap } from '../utils/BuildSoapFolderObjects';
import { formatAutomation } from '../utils/_context/automationStudio/FormatAutomationAsset';
import { SFMC_Automation } from '../types/bldr_assets/sfmc_automation';
import { MappingByActivityTypeId } from '../../sfmc/utils/automationActivities';
import { guid } from '../utils';
import { sfmc_context_mapping } from '../../sfmc/utils/sfmcContextMapping';
import { SFMCContextMapping } from '../../sfmc/types/sfmc_context_mapping';

@@ -183,6 +180,10 @@ export class AutomationStudio {

);
const buildFolderPaths = await buildFolderPathsSoap(folderResponse);
const buildFolderPaths = await buildFolderPathsSoap(
folderResponse.full
);
const isolateFolderIds =
buildFolderPaths &&
buildFolderPaths.folders
folderResponse &&
folderResponse.down &&
folderResponse.down.length &&
folderResponse.down
.map(

@@ -189,0 +190,0 @@ (folder: SFMC_SOAP_Folder) =>

@@ -236,6 +236,10 @@ import { SFMC_SOAP_Folder } from '../../sfmc/types/objects/sfmc_soap_folders';

const buildFolderPaths = await buildFolderPathsSoap(folderResponse);
const buildFolderPaths = await buildFolderPathsSoap(
folderResponse.full
);
const isolateFolderIds =
buildFolderPaths &&
buildFolderPaths.folders
folderResponse &&
folderResponse.down &&
folderResponse.down.length &&
folderResponse.down
.map(

@@ -242,0 +246,0 @@ (folder: SFMC_SOAP_Folder) =>

@@ -181,8 +181,10 @@ import { SFMC_SOAP_Folder } from '../../sfmc/types/objects/sfmc_soap_folders';

const buildFolderPaths =
folderResponse && (await buildFolderPathsSoap(folderResponse));
folderResponse &&
(await buildFolderPathsSoap(folderResponse.full));
const isolateFolderIds =
(buildFolderPaths &&
buildFolderPaths.folders &&
buildFolderPaths.folders.length &&
buildFolderPaths.folders
(folderResponse &&
folderResponse.down &&
folderResponse.down.length &&
folderResponse.down
.map(

@@ -189,0 +191,0 @@ (folder: SFMC_SOAP_Folder) =>

import { Client } from '../types/sfmc_client';
import { handleError } from '../utils/handleError';
const { getProperties } = require('sfmc-soap-object-reference');

@@ -41,3 +40,3 @@ const ListDefinition = getProperties('List');

} catch (err: any) {
return handleError(err);
return err;
}

@@ -71,3 +70,3 @@ }

} catch (err: any) {
return handleError(err);
return err;
}

@@ -91,3 +90,3 @@ }

if (getAllMidsRequest.OverallStatus !== 'OK') {
throw new Error(getAllMidsRequest);
throw new Error(getAllMidsRequest.response.statusText);
}

@@ -116,5 +115,5 @@

} catch (err: any) {
return handleError(err);
return err.message;
}
}
}

@@ -364,7 +364,11 @@ import { SFMC_SOAP_Folder } from '../types/objects/sfmc_soap_folders';

return [
...new Map(
[...up.results, ...down].map((item) => [item['Name'], item])
).values(),
];
return {
up,
down,
full: [
...new Map(
[...up.results, ...down].map((item) => [item['Name'], item])
).values(),
],
};
}

@@ -371,0 +375,0 @@ /**

{
"name": "@basetime/bldr-sfmc-sdk",
"version": "1.0.24",
"version": "1.0.25",
"description": "SDK for BLDR SFMC Core Functionality",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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