zudello-integration-sdk 1.0.40 → 1.0.42
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.
package/package.json
CHANGED
package/src/sdk/NetsuiteSOAP.js
CHANGED
package/src/sdk/Zudello.js
CHANGED
|
@@ -113,8 +113,8 @@ class ZudelloSDK extends BaseSDK {
|
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
async search({ model, select, filter, orderBy = ["-created_at"], offset = 0, limit = 100 }) {
|
|
117
|
-
const validateIsEmpty = this.validator.isEmpty({ model, select
|
|
116
|
+
async search({ model, select, filter = {}, orderBy = ["-created_at"], offset = 0, limit = 100 }) {
|
|
117
|
+
const validateIsEmpty = this.validator.isEmpty({ model, select });
|
|
118
118
|
|
|
119
119
|
if (!validateIsEmpty.valid) {
|
|
120
120
|
return this.responseHandler.error(validateIsEmpty.errors);
|
|
@@ -188,7 +188,7 @@ class ZudelloSDK extends BaseSDK {
|
|
|
188
188
|
simplified = false,
|
|
189
189
|
submit = false,
|
|
190
190
|
updateStatus = false,
|
|
191
|
-
enrich = false
|
|
191
|
+
enrich = false,
|
|
192
192
|
}) {
|
|
193
193
|
const validateIsEmpty = this.validator.isEmpty({ model, data });
|
|
194
194
|
|
package/src/utils/apiInstance.js
CHANGED
|
@@ -95,6 +95,10 @@ class ApiInstance {
|
|
|
95
95
|
headers
|
|
96
96
|
})
|
|
97
97
|
|
|
98
|
+
if (Object.prototype.hasOwnProperty.call(params, '_debug') && params._debug) {
|
|
99
|
+
return this.responseHandler.success(response?.data?.data || null)
|
|
100
|
+
}
|
|
101
|
+
|
|
98
102
|
return returnHeaders
|
|
99
103
|
? this.responseHandler.success(response.headers || null)
|
|
100
104
|
: this.responseHandler.success(response.data || null)
|