zudello-integration-sdk 1.0.60 → 1.0.62
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
|
@@ -66,7 +66,7 @@ class UniversalModule {
|
|
|
66
66
|
* @param {string} url URL of request.
|
|
67
67
|
* @returns {object} Universal Request Response.
|
|
68
68
|
*/
|
|
69
|
-
async attach ({ fileURL, url, apiProvider = null, apiGroup = null }) {
|
|
69
|
+
async attach ({ fileURL, url, body = {}, apiProvider = null, apiGroup = null }) {
|
|
70
70
|
const validateIsEmpty = this.module.validator.isEmpty({ url, fileURL })
|
|
71
71
|
|
|
72
72
|
if (!validateIsEmpty.valid) {
|
|
@@ -79,6 +79,9 @@ class UniversalModule {
|
|
|
79
79
|
},
|
|
80
80
|
fileURL: {
|
|
81
81
|
value: fileURL
|
|
82
|
+
},
|
|
83
|
+
body: {
|
|
84
|
+
value: JSON.stringify(body)
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
|
|
@@ -94,7 +97,7 @@ class UniversalModule {
|
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
99
|
|
|
97
|
-
return await this.module.makeRequest('POST', `${this.module.apiURL}/zintegrations/action/
|
|
100
|
+
return await this.module.makeRequest('POST', `${this.module.apiURL}/zintegrations/action/815980f6-0287-4968-b242-cf971fb5e38d`, {
|
|
98
101
|
mappable_parameters: mappableParams
|
|
99
102
|
})
|
|
100
103
|
}
|