@xrystal/core 3.7.9 → 3.8.2

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/bin/main-cli.js CHANGED
@@ -19,9 +19,6 @@ import {
19
19
  } from "./constants/index.mjs"
20
20
  import { findFileRecursively, resolveObjWithHandlebars } from "./helpers/index.mjs"
21
21
 
22
- const isBun = typeof Bun !== "undefined"
23
- const packageManager = isBun ? "bun" : "npm"
24
-
25
22
  const setupCLI = async () => {
26
23
  const cli = new Command()
27
24
 
@@ -105,7 +102,7 @@ const setupCLI = async () => {
105
102
  console.log(chalk.cyan(`\n cd ${relativePath}`))
106
103
  }
107
104
 
108
- console.log(chalk.cyan(` bun run dev`))
105
+ console.log(chalk.cyan(` bun run dev:local`))
109
106
 
110
107
  } catch (err) {
111
108
  spinner.fail(chalk.red("Failed!"))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Yusuf Yasir KAYGUSUZ",
3
3
  "name": "@xrystal/core",
4
- "version": "3.7.9",
4
+ "version": "3.8.2",
5
5
  "description": "Project core for xrystal",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -1,52 +1 @@
1
- export declare const responseMessageHelper: {
2
- successFully: (process?: string, event?: string, t?: any) => string;
3
- unsuccessful: (process?: string, event?: string, t?: any) => string;
4
- notFound: (process?: string, event?: string, t?: any) => string;
5
- notMatch: (process?: string, event?: string, t?: any) => string;
6
- notUse: (process?: string, event?: string, t?: any) => string;
7
- invalid: (process?: string, event?: string, t?: any) => string;
8
- checked: (process?: string, event?: string, t?: any) => string;
9
- process: (process?: string, event?: string, t?: any) => string;
10
- missingData: (process?: string, event?: string, t?: any) => string;
11
- allreadyHave: (process?: string, event?: string, t?: any) => string;
12
- wrongFormat: (process?: string, event?: string, t?: any) => string;
13
- externalApiError: (process?: string, event?: string, t?: any) => string;
14
- unauthorizedUrl: (process?: string, event?: string, t?: any) => string;
15
- endpointNotWorking: (endpoint?: string, t?: any) => string;
16
- schemaMissingDataChecks: (t?: any) => string;
17
- schemaInvalidDataChecks: (t?: any) => string;
18
- schemaUnknowErrorChecks: (a: any, b: any, t?: any) => string;
19
- schemaUnknowErrorLogic: (a: any, b: any, t?: any) => string;
20
- schemaUnknowErrorResponse: (a: any, b: any, t?: any) => string;
21
- schemaUnknowErrorMain: (a: any, b: any, t?: any) => string;
22
- dbQueryError: (process?: string, event?: string, t?: any) => string;
23
- unknowError: (process?: string, event?: string, t?: any) => string;
24
- serverError: (process?: string, event?: string, t?: any) => string;
25
- emailWelcomeTemplateTitle: (t?: any) => string;
26
- emailWelcomeTemplateExplanation: (t?: any) => string;
27
- emailForgotPasswordTemplateTitle: (t?: any) => string;
28
- emailForgotPasswordTemplateExplanation: (t?: any) => string;
29
- allRightsReserved: (extra1?: string, extra2?: string, t?: any) => string;
30
- emailButtonText: (t?: any) => string;
31
- emailIgnoreText: (t?: any) => string;
32
- welcomeMessage: (username?: string, t?: any) => string;
33
- userIsBlocked: (extra1?: string, t?: any) => string;
34
- passwordChangeCode: (username?: string, t?: any) => string;
35
- notEnoughWalletBalance: (money?: string, currency?: string, t?: any) => string;
36
- openAuthConsumerOverhang: (param1?: string, param2?: string, t?: any) => string;
37
- thirdPartySystemOverhang: (param1?: string, param2?: string, t?: any) => string;
38
- deviceOverhang: (param1?: string, param2?: string, t?: any) => string;
39
- provisionOverhang: (money?: string, currency?: string, t?: any) => string;
40
- balanceOverhang: (money?: string, currency?: string, t?: any) => string;
41
- debtOverhang: (money?: string, currency?: string, t?: any) => string;
42
- shipmentNotAccepted: (value1?: string, value2?: string, t?: any) => string;
43
- optionsMethod: (methods?: string, t?: any) => string;
44
- notAllowedCORS: (methods?: string, t?: any) => string;
45
- missingCRSFToken: (t?: any) => string;
46
- invalidCRSFToken: (t?: any) => string;
47
- tooManyRequest: (t?: any) => string;
48
- endpointNotFound: (t?: any) => string;
49
- roleAccess: (error?: string, t?: any) => string;
50
- authenticationRequiredTokenExpired: (t?: any) => string;
51
- authenticationRequired: (t?: any) => string;
52
- };
1
+ export declare const responseMessageHelper: any;
@@ -1,4 +1,4 @@
1
- export const responseMessageHelper = {
1
+ const coreMessages = {
2
2
  'successFully': (process = '', event = '', t) => {
3
3
  return `${process + ' ' + event} ${t && t('responseMessage.successfully')}.`;
4
4
  },
@@ -159,3 +159,8 @@ export const responseMessageHelper = {
159
159
  return `${t && t('responseMessage.authenticationRequired')}.`;
160
160
  },
161
161
  };
162
+ const globalExtra = globalThis.__EXTRA_LOCALE_MESSAGES__ || {};
163
+ export const responseMessageHelper = {
164
+ ...coreMessages,
165
+ ...globalExtra
166
+ };
@@ -0,0 +1,61 @@
1
+ {
2
+ "responseMessage":{
3
+ "successfully":"successfully",
4
+ "unsuccessful":"unsuccessful",
5
+ "notFound":"not found",
6
+ "notMatch":"not match",
7
+ "notUse":"now not use",
8
+ "invalid":"invalid",
9
+ "checked":"checked",
10
+ "process":"proccess. now not used",
11
+ "missingData":"missing data, other data. required",
12
+ "allreadyHave":"allready have",
13
+ "wrongFormat":"wrong format",
14
+ "externalApiError":"external api error",
15
+ "unauthorizedUrl":"unauthorizedUrl",
16
+ "endpointNotWorking":"endpoint not working",
17
+
18
+ "schemaMissingDataChecks":"schema checks, missing data, other data. required",
19
+ "schemaInvalidDataChecks":"schema checks, invalid data",
20
+ "schemaUnknowErrorChecks":"schema check controller handler.",
21
+ "schemaUnknowErrorLogic":"schema logic controller handler.",
22
+ "schemaUnknowErrorResponse":"schema response controller handler.",
23
+ "schemaUnknowErrorMain":"schema main controller handler.",
24
+ "schemaErrorExtraExplanation":"extra explanation",
25
+
26
+ "dbQueryError":"server error, unknown database query error",
27
+ "unknowError":"server error, unknown reason",
28
+ "serverError":"internal server error",
29
+
30
+ "emailWelcomeTemplateTitle":"Hello,",
31
+ "emailWelcomeTemplateExplanation":"Thank you very much for choosing us! Your registration has been completed successfully. If you have any questions or concerns, don't hesitate to contact us! We're here to help. 😊",
32
+ "emailForgotPasswordTemplateTitle":"Password reset code",
33
+ "emailForgotPasswordTemplateExplanation":"Enter the above code into the app to reset the password",
34
+ "allRightsReserved":"All rights reserved",
35
+ "emailButtonText":"Go",
36
+ "emailIgnoreText":"If you did not request this email, please ignore it.",
37
+
38
+ "welcome":"welcome",
39
+ "userIsBlocked":"user is blocked",
40
+ "passwordChangeCode":"password reset code",
41
+ "notEnoughWalletBalance":"not enough wallet balance",
42
+ "openAuthConsumerOverhang":"maximum open auth consumer count",
43
+ "thirdPartySystemOverhang":"maximum third party systems count",
44
+ "deviceOverhang":"maximum device count",
45
+ "provisionOverhang":"provision overhang",
46
+ "balanceOverhang":"balance overhang",
47
+ "debtOverhang":"dept overhang",
48
+ "shipmentNotAccepted":"shipment not accepted",
49
+
50
+ "optionsMethod":"options method",
51
+ "notAllowedCORS":"not allowed CORS",
52
+ "missingCSRFToken":"CRSF token not found",
53
+ "invalidCSRFToken":"invalid CRSF token",
54
+ "tooManyRequest":"spam detected!. Too many requests from this IP, please try again later",
55
+ "endpointNotFound":"endpoint not found",
56
+ "roleAccess":"you do not have role authority",
57
+ "authenticationRequired":"invalid token authentication required",
58
+ "authenticationRequiredTokenExpired":"authentication required token expired"
59
+ },
60
+ "welcome":"Welcome"
61
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "responseMessage":{
3
+ "successfully":"başarılı",
4
+ "unsuccessful":"başarısız",
5
+ "notFound":"bulunamadı",
6
+ "notMatch":"eşleşmedi",
7
+ "notUse":"kullanılamadı",
8
+ "invalid":"geçersiz",
9
+ "checked":"onaylandı",
10
+ "process":"işlem şuanda kullanılamıyor",
11
+ "missingData":"eksik veri, diğer verilerde gerekli",
12
+ "allreadyHave":"zaten mevcut",
13
+ "wrongFormat":"yanlış format",
14
+ "externalApiError":"harici api hatası",
15
+ "unauthorizedUrl":"yetkilendirilmemiş url",
16
+ "endpointNotWorking":"endpoint şuanda çalışmıyor",
17
+
18
+ "schemaMissingDataChecks":"değer kontrol şemasımda eksik veriler bulunmakta",
19
+ "schemaInvalidDataChecks":"değer kontrol şemasında geçersiz veri bulundu",
20
+ "schemaUnknowErrorChecks":"bilinmeyen değer kontrol şeması hatası",
21
+ "schemaUnknowErrorLogic":"bilinmeyen işlem kontrol şeması hatası",
22
+ "schemaUnknowErrorResponse":"bilinmeyen dönüş kontrol şeması hatası",
23
+ "schemaUnknowErrorMain":"bilinmeyen ana kontrol şeması hatası",
24
+ "schemaErrorExtraExplanation":"ekstra açıklama",
25
+
26
+ "dbQueryError":"sunucu hatası, bilinmeyen veritabanı hatası",
27
+ "unknowError":"sunucu hatası, bilinmeyen bir sebepten",
28
+ "serverError":"iç sunucu hatası",
29
+
30
+ "emailWelcomeTemplateTitle":"Merhaba,",
31
+ "emailWelcomeTemplateExplanation":"Bizi seçtiğiniz için çok teşekkür ederiz! Kayıt işleminiz başarıyla tamamlandı. Herhangi bir sorunda veya kafanda takılan bir şey olursa, bizimle iletişime geçmekten çekinme! Yardımcı olmak için buradayız. 😊",
32
+ "emailForgotPasswordTemplateTitle":"Şifre değiştirme kodu",
33
+ "emailForgotPasswordTemplateExplanation":"Şifreyi sıfırlamak için yukarıdaki kodu uygulamaya girin",
34
+ "allRightsReserved":"Tüm hakları saklıdır",
35
+ "emailButtonText":"Git",
36
+ "emailIgnoreText":"Bu e -postayı talep etmediyseniz, lütfen göz ardı edin",
37
+
38
+ "welcome":"Hoşgeldin",
39
+ "userIsBlocked":"engellenmiş kullanıcı",
40
+ "passwordChangeCode":"şifre değiştirme kodu",
41
+ "notEnoughWalletBalance":"cüzdanda yeterli para bulunmuyor",
42
+ "openAuthConsumerOverhang":"maksimum oauth istemci sayısı",
43
+ "thirdPartySystemOverhang":"maksimum üçüncü parti sistem sayısı",
44
+ "deviceOverhang":"maksimum cihaz sayısı",
45
+ "provisionOverhang":"provizyon fazlası bulunuyor",
46
+ "balanceOverhang":"bakiye fazlası bulunuyor",
47
+ "debtOverhang":"borç fazlası bulunuyor",
48
+ "shipmentNotAccepted":"kargo kabul edilmedi",
49
+
50
+ "optionsMethod":"seçenekler yöntemi",
51
+ "notAllowedCORS":"CORS izin vermiyor",
52
+ "missingCSRFToken":"CRSF token bulunmuyor",
53
+ "invalidCSRFToken":"geçersiz CRSF token",
54
+ "tooManyRequest":"çok fazla istek saptadır!. lütfen birkaç dakika sonra tekrar deneyiniz",
55
+ "endpointNotFound":"endpoint bulunamıyor",
56
+ "roleAccess":"bu rotaya gitme yetkisine sahip değilsin",
57
+ "authenticationRequired":"geçersiz token yetkilendirilme gerekli",
58
+ "authenticationRequiredTokenExpired":"token zaman aşımına uğradı, tekrardan giriş yapınız"
59
+ },
60
+
61
+ "welcome":"Hoşgeldin"
62
+ }
@@ -1,52 +0,0 @@
1
- export declare const responseMessageHelper: {
2
- successFully: (process?: string, event?: string, t?: any) => string;
3
- unsuccessful: (process?: string, event?: string, t?: any) => string;
4
- notFound: (process?: string, event?: string, t?: any) => string;
5
- notMatch: (process?: string, event?: string, t?: any) => string;
6
- notUse: (process?: string, event?: string, t?: any) => string;
7
- invalid: (process?: string, event?: string, t?: any) => string;
8
- checked: (process?: string, event?: string, t?: any) => string;
9
- process: (process?: string, event?: string, t?: any) => string;
10
- missingData: (process?: string, event?: string, t?: any) => string;
11
- allreadyHave: (process?: string, event?: string, t?: any) => string;
12
- wrongFormat: (process?: string, event?: string, t?: any) => string;
13
- externalApiError: (process?: string, event?: string, t?: any) => string;
14
- unauthorizedUrl: (process?: string, event?: string, t?: any) => string;
15
- endpointNotWorking: (endpoint?: string, t?: any) => string;
16
- schemaMissingDataChecks: (t?: any) => string;
17
- schemaInvalidDataChecks: (t?: any) => string;
18
- schemaUnknowErrorChecks: (a: any, b: any, t?: any) => string;
19
- schemaUnknowErrorLogic: (a: any, b: any, t?: any) => string;
20
- schemaUnknowErrorResponse: (a: any, b: any, t?: any) => string;
21
- schemaUnknowErrorMain: (a: any, b: any, t?: any) => string;
22
- dbQueryError: (process?: string, event?: string, t?: any) => string;
23
- unknowError: (process?: string, event?: string, t?: any) => string;
24
- serverError: (process?: string, event?: string, t?: any) => string;
25
- emailWelcomeTemplateTitle: (t?: any) => string;
26
- emailWelcomeTemplateExplanation: (t?: any) => string;
27
- emailForgotPasswordTemplateTitle: (t?: any) => string;
28
- emailForgotPasswordTemplateExplanation: (t?: any) => string;
29
- allRightsReserved: (extra1?: string, extra2?: string, t?: any) => string;
30
- emailButtonText: (t?: any) => string;
31
- emailIgnoreText: (t?: any) => string;
32
- welcomeMessage: (username?: string, t?: any) => string;
33
- userIsBlocked: (extra1?: string, t?: any) => string;
34
- passwordChangeCode: (username?: string, t?: any) => string;
35
- notEnoughWalletBalance: (money?: string, currency?: string, t?: any) => string;
36
- openAuthConsumerOverhang: (param1?: string, param2?: string, t?: any) => string;
37
- thirdPartySystemOverhang: (param1?: string, param2?: string, t?: any) => string;
38
- deviceOverhang: (param1?: string, param2?: string, t?: any) => string;
39
- provisionOverhang: (money?: string, currency?: string, t?: any) => string;
40
- balanceOverhang: (money?: string, currency?: string, t?: any) => string;
41
- debtOverhang: (money?: string, currency?: string, t?: any) => string;
42
- shipmentNotAccepted: (value1?: string, value2?: string, t?: any) => string;
43
- optionsMethod: (methods?: string, t?: any) => string;
44
- notAllowedCORS: (methods?: string, t?: any) => string;
45
- missingCRSFToken: (t?: any) => string;
46
- invalidCRSFToken: (t?: any) => string;
47
- tooManyRequest: (t?: any) => string;
48
- endpointNotFound: (t?: any) => string;
49
- roleAccess: (error?: string, t?: any) => string;
50
- authenticationRequiredTokenExpired: (t?: any) => string;
51
- authenticationRequired: (t?: any) => string;
52
- };
@@ -1,161 +0,0 @@
1
- export const responseMessageHelper = {
2
- 'successFully': (process = '', event = '', t) => {
3
- return `${process + ' ' + event} ${t && t('responseMessage.successfully')}.`;
4
- },
5
- 'unsuccessful': (process = '', event = '', t) => {
6
- return `${process + ' ' + event} ${t && t('responseMessage.unsuccessful')}.`;
7
- },
8
- 'notFound': (process = '', event = '', t) => {
9
- return `${process + ' ' + event} ${t && t('responseMessage.notFound')}.`;
10
- },
11
- 'notMatch': (process = '', event = '', t) => {
12
- return `${process + ' ' + event} ${t && t('responseMessage.notMatch')}.`;
13
- },
14
- 'notUse': (process = '', event = '', t) => {
15
- return `${process + ' ' + event} ${t && t('responseMessage.notUse')}.`;
16
- },
17
- 'invalid': (process = '', event = '', t) => {
18
- return `${process + ' ' + event} ${t && t('responseMessage.invalid')}.`;
19
- },
20
- 'checked': (process = '', event = '', t) => {
21
- return `${process + ' ' + event} ${t && t('responseMessage.checked')}.`;
22
- },
23
- 'process': (process = '', event = '', t) => {
24
- return `${process + ' ' + event} ${t && t('responseMessage.process')}.`;
25
- },
26
- 'missingData': (process = '', event = '', t) => {
27
- return `${process + ' ' + event} ${t && t('responseMessage.missingData')}.`;
28
- },
29
- 'allreadyHave': (process = '', event = '', t) => {
30
- return `${process + ' ' + event} ${t && t('responseMessage.allreadyHave')}.`;
31
- },
32
- 'wrongFormat': (process = '', event = '', t) => {
33
- return `${process + ' ' + event} ${t && t('responseMessage.wrongFormat')}.`;
34
- },
35
- 'externalApiError': (process = '', event = '', t) => {
36
- return `${process + ' ' + event}, ${t && t('responseMessage.externalApiError')}.`;
37
- },
38
- 'unauthorizedUrl': (process = '', event = '', t) => {
39
- return `${process + ' ' + event}, ${t && t('responseMessage.unauthorizedUrl')}.`;
40
- },
41
- 'endpointNotWorking': (endpoint = '', t) => {
42
- return `${endpoint}, ${t && t('responseMessage.endpointNotWorking')}.`;
43
- },
44
- // schema
45
- // => special
46
- 'schemaMissingDataChecks': (t) => {
47
- return `${t && t('responseMessage.schemaMissingDataChecks')}.`;
48
- },
49
- 'schemaInvalidDataChecks': (t) => {
50
- return `${t && t('responseMessage.schemaInvalidDataChecks')}.`;
51
- },
52
- 'schemaUnknowErrorChecks': (a, b, t) => {
53
- return `${t && t('responseMessage.schemaUnknowErrorChecks')}. ${a}. ${t('responseMessage.schemaErrorExtraExplanation')}: ${b}`;
54
- },
55
- 'schemaUnknowErrorLogic': (a, b, t) => {
56
- return `${t && t('responseMessage.schemaUnknowErrorLogic')}. ${a}. ${t('responseMessage.schemaErrorExtraExplanation')}: ${b}`;
57
- },
58
- 'schemaUnknowErrorResponse': (a, b, t) => {
59
- return `${t && t('responseMessage.schemaUnknowErrorLogic')}. ${a}. ${t('responseMessage.schemaErrorExtraExplanation')}: ${b}`;
60
- },
61
- 'schemaUnknowErrorMain': (a, b, t) => {
62
- return `${t && t('responseMessage.schemaUnknowErrorMain')}. ${a}. ${t('responseMessage.schemaErrorExtraExplanation')}: ${b}`;
63
- },
64
- //
65
- 'dbQueryError': (process = '', event = '', t) => {
66
- return `${t && t('responseMessage.dbQueryError')}. ${process + ' ' + event}`;
67
- },
68
- 'unknowError': (process = '', event = '', t) => {
69
- return `${t && t('responseMessage.unknowError')}. ${process + ' ' + event}`;
70
- },
71
- 'serverError': (process = '', event = '', t) => {
72
- return `${t && t('responseMessage.serverError')}. ${process + ' ' + event}`;
73
- },
74
- // specific
75
- // => email
76
- // => templates
77
- 'emailWelcomeTemplateTitle': (t) => {
78
- return `${t && t('responseMessage.emailWelcomeTemplateTitle')}`;
79
- },
80
- 'emailWelcomeTemplateExplanation': (t) => {
81
- return `${t && t('responseMessage.emailWelcomeTemplateExplanation')}.`;
82
- },
83
- 'emailForgotPasswordTemplateTitle': (t) => {
84
- return `${t && t('responseMessage.emailForgotPasswordTemplateTitle')}`;
85
- },
86
- 'emailForgotPasswordTemplateExplanation': (t) => {
87
- return `${t && t('responseMessage.emailForgotPasswordTemplateExplanation')}.`;
88
- },
89
- //
90
- 'allRightsReserved': (extra1 = '', extra2 = '', t) => {
91
- return `${extra1 + ' ' + extra2}, ${t && t('responseMessage.allRightsReserved')}.`;
92
- },
93
- 'emailButtonText': (t) => {
94
- return `${t && t('responseMessage.emailButtonText')}.`;
95
- },
96
- 'emailIgnoreText': (t) => {
97
- return `${t && t('responseMessage.emailIgnoreText')}.`;
98
- },
99
- //
100
- 'welcomeMessage': (username = '', t) => {
101
- return `@${username} - ${t && t('responseMessage.welcome')}.`;
102
- },
103
- 'userIsBlocked': (extra1 = '', t) => {
104
- return `${extra1}, ${t && t('responseMessage.userIsBlocked')}.`;
105
- },
106
- 'passwordChangeCode': (username = '', t) => {
107
- return `@${username} - ${t && t('responseMessage.passwordChangeCode')}.`;
108
- },
109
- 'notEnoughWalletBalance': (money = '', currency = '', t) => {
110
- return `${money + ' ' + currency}, ${t && t('responseMessage.notEnoughWalletBalance')}.`;
111
- },
112
- 'openAuthConsumerOverhang': (param1 = '', param2 = '', t) => {
113
- return `${param1 + ' ' + param2}, ${t && t('responseMessage.openAuthConsumerOverhang')}.`;
114
- },
115
- 'thirdPartySystemOverhang': (param1 = '', param2 = '', t) => {
116
- return `${param1 + ' ' + param2}, ${t && t('responseMessage.thirdPartySystems')}.`;
117
- },
118
- 'deviceOverhang': (param1 = '', param2 = '', t) => {
119
- return `${param1 + ' ' + param2}, ${t && t('responseMessage.deviceOverhang')}.`;
120
- },
121
- 'provisionOverhang': (money = '', currency = '', t) => {
122
- return `${money + ' ' + currency}, ${t && t('responseMessage.provisionOverhang')}.`;
123
- },
124
- 'balanceOverhang': (money = '', currency = '', t) => {
125
- return `${money + ' ' + currency}, ${t && t('responseMessage.balanceOverhang')}.`;
126
- },
127
- 'debtOverhang': (money = '', currency = '', t) => {
128
- return `${money + ' ' + currency}, ${t && t('responseMessage.debtOverhang')}.`;
129
- },
130
- 'shipmentNotAccepted': (value1 = '', value2 = '', t) => {
131
- return `${t && t('responseMessage.shipmentNotAccepted')}. ${value1} ${value2}`;
132
- },
133
- // system
134
- 'optionsMethod': (methods = '', t) => {
135
- return `${t && t('responseMessage.optionsMethod')}. ${methods}`;
136
- },
137
- 'notAllowedCORS': (methods = '', t) => {
138
- return `${t && t('responseMessage.notAllowedCORS')}. ${methods}`;
139
- },
140
- 'missingCRSFToken': (t) => {
141
- return `${t && t('responseMessage.missingCSRFToken')}.`;
142
- },
143
- 'invalidCRSFToken': (t) => {
144
- return `${t && t('responseMessage.invalidCSRFToken')}.`;
145
- },
146
- 'tooManyRequest': (t) => {
147
- return `${t && t('responseMessage.tooManyRequest')}.`;
148
- },
149
- 'endpointNotFound': (t) => {
150
- return `${t && t('responseMessage.endpointNotFound')}.`;
151
- },
152
- 'roleAccess': (error = '', t) => {
153
- return `${t && t('responseMessage.roleAccess')}. ${error}`;
154
- },
155
- 'authenticationRequiredTokenExpired': (t) => {
156
- return `${t && t('responseMessage.authenticationRequiredTokenExpired')}.`;
157
- },
158
- 'authenticationRequired': (t) => {
159
- return `${t && t('responseMessage.authenticationRequired')}.`;
160
- },
161
- };