@basetime/bldr-sfmc-sdk
Advanced tools
Comparing version 1.2.8-beta.4.1 to 1.2.8
@@ -112,3 +112,2 @@ "use strict"; | ||
}); | ||
console.log(JSON.stringify(resp.Results, null, 2)); | ||
if (resp.OverallStatus !== 'OK') { | ||
@@ -178,3 +177,2 @@ throw new Error('Unable to Retrieve Folders'); | ||
const rootFolderContext = this.sfmc_context.find((ctx) => ctx.contentType === request.contentType); | ||
console.log({ rootFolderContext }); | ||
if (rootFolderContext) { | ||
@@ -186,3 +184,2 @@ const rootFolderRequest = yield this.search({ | ||
}); | ||
console.log('Root Folder Request', rootFolderRequest); | ||
if (rootFolderRequest && | ||
@@ -194,7 +191,4 @@ rootFolderRequest.Results && | ||
rootFolderRequest.Results.find((folder) => folder.Name === rootFolderContext.rootName); | ||
console.log('RootFolder', { rootFolder }); | ||
results = rootFolder && [rootFolder]; | ||
console.log('logic check: rootFolder.ID === request.categoryId', rootFolder.ID === request.categoryId); | ||
if (rootFolder.ID === request.categoryId) { | ||
console.log('return'); | ||
return { | ||
@@ -209,3 +203,2 @@ results, | ||
const initialCategory = yield this.getFolder(request); | ||
console.log('Initial Category', { initialCategory }); | ||
if (initialCategory.OverallStatus !== 'OK') { | ||
@@ -224,3 +217,2 @@ throw new Error(initialCategory.OverallStatus); | ||
initResult.ParentFolder.Name === rootFolderContext.rootName) { | ||
console.log(initialCategory); | ||
return { | ||
@@ -227,0 +219,0 @@ results, |
@@ -130,4 +130,2 @@ import { SFMC_SOAP_Folder } from '../types/objects/sfmc_soap_folders'; | ||
console.log(JSON.stringify(resp.Results, null, 2)); | ||
if (resp.OverallStatus !== 'OK') { | ||
@@ -208,3 +206,2 @@ throw new Error('Unable to Retrieve Folders'); | ||
); | ||
console.log({ rootFolderContext }); | ||
@@ -217,3 +214,2 @@ if (rootFolderContext) { | ||
}); | ||
console.log('Root Folder Request', rootFolderRequest); | ||
@@ -231,11 +227,5 @@ if ( | ||
console.log('RootFolder', { rootFolder }); | ||
results = rootFolder && [rootFolder]; | ||
console.log( | ||
'logic check: rootFolder.ID === request.categoryId', | ||
rootFolder.ID === request.categoryId | ||
); | ||
if (rootFolder.ID === request.categoryId) { | ||
console.log('return'); | ||
return { | ||
@@ -251,3 +241,2 @@ results, | ||
const initialCategory = await this.getFolder(request); | ||
console.log('Initial Category', { initialCategory }); | ||
if (initialCategory.OverallStatus !== 'OK') { | ||
@@ -271,3 +260,2 @@ throw new Error(initialCategory.OverallStatus); | ||
) { | ||
console.log(initialCategory); | ||
return { | ||
@@ -274,0 +262,0 @@ results, |
{ | ||
"name": "@basetime/bldr-sfmc-sdk", | ||
"version": "1.2.8-beta.4.1", | ||
"version": "1.2.8", | ||
"description": "SDK for BLDR SFMC Core Functionality", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
402760
10742