zudello-integration-sdk 1.0.54 → 1.0.55
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 +1 -1
- package/src/utils/modelHelper.js +4 -4
package/package.json
CHANGED
package/src/utils/modelHelper.js
CHANGED
|
@@ -111,12 +111,12 @@ class ModelHelper {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
async complete({ message = '', external_id = null, properties = {}, exit = false }) {
|
|
115
|
-
await this.response({ status:
|
|
114
|
+
async complete({ message = '', status = 'COMPLETE', external_id = null, properties = {}, exit = false }) {
|
|
115
|
+
await this.response({ status: status, message, external_id, properties, exit })
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
async fail({ message = '', external_id = null, properties = {}, exit = false }) {
|
|
119
|
-
await this.response({ status:
|
|
118
|
+
async fail({ message = '', status = 'UNABLE', external_id = null, properties = {}, exit = false }) {
|
|
119
|
+
await this.response({ status: status, message, external_id, properties, exit })
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
async completeIf(condition, { message = '', external_id = null, properties = {}, exit = false }) {
|