kritsana135-hooray-server
Version:
for server
172 lines (161 loc) • 5.25 kB
JavaScript
export const APP_NOT_FOUND = {
message: {
en: 'Application not found!',
th: 'ไม่พบแอพลิเคชั่น',
},
code: 'APP_NOT_FOUND',
};
export const CREDENTIAL_NOT_FOUND = {
message: {
en: 'Credential not found!',
th: 'ไม่พบ credential',
},
code: 'CREDENTIAL_NOT_FOUND',
};
export const SERVICE_NOT_FOUND = {
message: {
en: 'Service not found!',
th: 'ไม่พบservice',
},
code: 'SERVICE_NOT_FOUND',
};
export const CORE_SERVICE_NOT_FOUND = {
message: {
en: 'Core Service not found!',
th: 'ไม่พบ core service',
},
code: 'CORE_SERVICE_NOT_FOUND',
};
export const APP_KEY_ALREADY_EXIST = {
message: {
en: 'This appKey already exists, please try again',
th: 'มี appKey นี้อยู่ในระบบอยู่แล้ว กรุณาลองอีกครั้ง',
},
code: 'APP_KEY_ALREADY_EXIST',
};
export const SERVICE_ALREADY_EXIST = {
message: {
en: 'This Service already exists, please try again',
th: 'มี service นี้อยู่ในระบบอยู่แล้ว กรุณาลองอีกครั้ง',
},
code: 'SERVICE_ALREADY_EXIST',
};
export const CREDENTIAL_ALREADY_EXIST = {
message: {
en: 'This credentialKey already exists, please try again',
th: 'มี credentialKey นี้อยู่ในระบบอยู่แล้ว กรุณาลองอีกครั้ง',
},
code: 'CREDENTIAL_ALREADY_EXIST',
};
export const FEATURE_NOT_FOUND = {
message: {
en: 'Feature not found!',
th: 'ไม่พบฟีเจอร์',
},
code: 'FEATURE_NOT_FOUND',
};
export const FEATURE_NOT_ENABLE = {
message: {
en: ' is not enable',
th: ' ฟีเจอร์นี้ไม่เปิดให้ใช้งาน',
},
code: 'FEATURE_NOT_ENABLE',
};
export const CANNOT_UPDATE_FEATURE_KEYS = {
message: {
en: 'Can not update featureKey.',
th: 'ไม่สามารถอัพเดต featureKey ได้',
},
code: 'CANNOT_UPDATE_FEATURE_KEYS',
};
export const CANNOT_EDIT_CREDENTIAL = {
message: {
en: 'Can not edit credential.',
th: 'ไม่สามารถแก้ไข credential ได้',
},
code: 'CANNOT_EDIT_CREDENTIAL',
};
export const CONTACT_NOT_FOUND = {
message: {
en: 'Contact not found.',
th: 'ไม่พบช่องทางการติดต่อ',
},
code: 'CONTACT_NOT_FOUND',
};
export const CONTACT_ALREADY_CREATED = {
message: {
en: 'Contact already created. Go to update instead.',
th: 'ช่องทางการติดต่อได้ถูกสร้างเรียบร้อยแล้ว, กรุณาแก้ไขแทน.',
},
code: 'CONTACT_ALREADY_CREATED',
};
export const CONTACT_DELETE_NOT_SUCCESS = {
message: {
en: 'Contact not successful deleted.',
th: 'ช่องทางการติดต่อลบไม่สำเร็จ',
},
code: 'CONTACT_DELETE_NOT_SUCCESS',
};
export const AWS_SETTING_NOT_FOUND = {
message: {
en: 'AWS setting not found',
th: 'ไม่พบการการตั้งค่าสำหรับ AWS SNS',
},
code: 'AWS_SETTING_NOT_FOUND',
};
export const THAI_BULK_SMS_SETTING_NOT_FOUND = {
message: {
en: 'Thai Bulk SMS setting not found',
th: 'ไม่พบการการตั้งค่าสำหรับ Thai Bulk SMS',
},
code: 'AWS_SETTING_NOT_FOUND',
};
export const CANNOT_SEND_SMS = {
message: {
en: 'Can not send sms with ThaiBulkSMS',
th: 'ไม่สามารถส่ง SMS ด้วย ThaiBulkSMS',
},
code: 'CANNOT_SEND_SMS',
};
export const SMS_TYPE_NOT_FOUND = {
message: {
en: 'SMS provider setting not found',
th: 'ไม่พบการตั้งค่าผู้ให้บริการในการส่ง SMS',
},
code: 'SMS_TYPE_NOT_FOUND',
};
export const ROLE_NOT_ACTIVE_OR_ROLE_NOT_FOUND = {
message: {
en: 'Role not active or Role not found in Application',
th: 'บทบาทไม่รับการยืนยันหรือไม่พบบทบาทนี้ ในแอพพลิเคชั่นนี้',
},
code: 'ROLE_NOT_ACTIVE_OR_ROLE_NOT_FOUND',
};
export const ROLE_PERMISSIONS_NOT_FOUND = {
message: {
en: 'role permissions not found!',
th: 'ไม่พบการอนุญาตสิทธิการเข้าใช้ของบทบาทนี้',
},
code: 'ROLE_PERMISSIONS_NOT_FOUND',
};
export const ROLE_NOT_FOUND = {
message: {
en: 'role not found!',
th: 'ไม่พบบทบาทนี้',
},
code: 'ROLE__NOT_FOUND',
};
export const CANNOT_UPDATE_APPLICATION = {
message: {
en: 'Can not update application',
th: 'ไม่สามารถอัพเดทแอพลิเคชั่นได้',
},
code: 'CANNOT_UPDATE_APPLICATION',
};
export const PERMISSION_KEY_ALREADY_EXITS = {
message: {
en: 'Permission key already exits',
th: 'Permission key ซ้ำในฐานข้อมูล',
},
code: 'PERMISSION_KEY_ALREADY_EXITS',
};