-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18c29d9
commit 0cbf0d9
Showing
15 changed files
with
105 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
exports.AUTHENTICATION = { | ||
REQUEST_TIMEOUT: 60000, | ||
INSTANCE_URL: '', | ||
AUTH_TYPE: '', | ||
INSTANCE_URL: null, | ||
AUTH_TYPE: null, | ||
OAUTH2: { | ||
ACCESS_TOKEN: '', | ||
REFRESH_TOKEN: '' | ||
ACCESS_TOKEN: null, | ||
REFRESH_TOKEN: null, | ||
CLIENT_ID: null, | ||
CLIENT_SECRET: null | ||
}, | ||
JWT: { | ||
JWT_TOKEN: '', | ||
JWT_TOKEN: null, | ||
}, | ||
API_KEY: { | ||
API_KEY_TOKEN: '', | ||
API_KEY_TOKEN: null, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
/** | ||
* @param status Api response status like true/false. | ||
* @param message Api response message. | ||
* @param data Api response data. | ||
* @summary Successful response format. | ||
* @summary Unsuccessful response format. | ||
*/ | ||
exports.Response = function (status, message, data) { | ||
const defaultMessage = 'Successful response.'; | ||
exports.Response = function (status, message) { | ||
this.status = status; | ||
this.message = message ? message : defaultMessage; | ||
if (data) this.data = data; | ||
this.message = message; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters