liveperson-functions-cli
Version:
LivePerson Functions CLI
47 lines • 1.73 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorCodes = exports.DOMAINS = exports.RETRIABLE_NETWORK_ERRORS = exports.BUILT_IN_NAMESPACES = exports.CALL_DELAY = exports.TEN_SECONDS = exports.DEFAULT_ENTITIY = void 0;
/* eslint-disable @typescript-eslint/naming-convention */
// eslint-disable-next-line @typescript-eslint/naming-convention
exports.DEFAULT_ENTITIY = '__default__';
exports.TEN_SECONDS = 10 * 1000;
exports.CALL_DELAY = 2 * 1000;
// Got list from here: https://lpgithub.dev.lprnd.net/Core-AI/lp-mavencontext-app/blob/master/src/models/constants.js
exports.BUILT_IN_NAMESPACES = ['faas', 'consumer', 'custom', 'operational', 'conversation'];
exports.RETRIABLE_NETWORK_ERRORS = [
'ECONNRESET',
'ENOTFOUND',
'ESOCKETTIMEDOUT',
'ETIMEDOUT',
'ECONNREFUSED',
'EHOSTUNREACH',
'EPIPE',
'EAI_AGAIN',
];
/**
* Domains for the Context Service API.
* Please choose the domain based on the
* location of your account.
*/
exports.DOMAINS = {
US: 'z1.context.liveperson.net',
EMEA: 'z2.context.liveperson.net',
APAC: 'z3.context.liveperson.net',
};
exports.ErrorCodes = {
General: {
Issue: 'com.liveperson.context-service-sdk.internal-server-error',
Unknown: 'com.liveperson.context-service-sdk.unkown',
Timeout: 'com.liveperson.context-service-sdk.response-timeout',
},
Parameter: {
Incorrect: 'com.liveperson.context-service-sdk.parameter.invalid',
},
Authorization: {
Invalid: 'com.liveperson.context-service-sdk.authorization.invalid',
},
Data: {
NotFound: 'com.liveperson.context-service-sdk.data.does-not-exist',
},
};
//# sourceMappingURL=constants.js.map