datakeen-session-react 1.1.202-dev.12 → 1.1.202-dev.13

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.
@@ -134,6 +134,7 @@ var user_guidance = {
134
134
  "2.4": "The photo is not clear. Avoid any blur or reflection",
135
135
  "2.6": "The document submitted is not the expected one",
136
136
  QUOTA_EXCEEDED: "Your organisation has reached its verification quota. Please try again later or contact the organisation that sent you this link.",
137
+ TEST_ACCOUNT_CREDITS_EXHAUSTED: "This organisation's test credits are used up. Please contact them to continue the verification.",
137
138
  INSUFFICIENT_CREDITS: "The organisation that sent you this link has run out of verification credits. Please contact them to complete your verification."
138
139
  };
139
140
  var validation_points = {
@@ -134,6 +134,7 @@ var user_guidance = {
134
134
  "2.4": "La foto no es clara. Evita desenfoques y reflejos",
135
135
  "2.6": "El documento enviado no es el esperado",
136
136
  QUOTA_EXCEEDED: "Su organización ha alcanzado su cuota de verificaciones. Inténtelo de nuevo más tarde o póngase en contacto con la organización que le envió este enlace.",
137
+ TEST_ACCOUNT_CREDITS_EXHAUSTED: "Los créditos de prueba de esta organización se han agotado. Póngase en contacto con ella para continuar la verificación.",
137
138
  INSUFFICIENT_CREDITS: "La organización que le envió este enlace no tiene más créditos de verificación. Póngase en contacto con ella para completar su trámite."
138
139
  };
139
140
  var validation_points = {
@@ -134,6 +134,7 @@ var user_guidance = {
134
134
  "2.4": "La photo n'est pas nette. Évitez tout flou ou reflet",
135
135
  "2.6": "Le document déposé n'est pas celui attendu",
136
136
  QUOTA_EXCEEDED: "Le quota de vérifications de votre organisation est atteint. Veuillez réessayer plus tard ou contacter l'organisation qui vous a envoyé ce lien.",
137
+ TEST_ACCOUNT_CREDITS_EXHAUSTED: "Les crédits de test de cette organisation sont épuisés. Veuillez la contacter pour poursuivre la vérification.",
137
138
  INSUFFICIENT_CREDITS: "L'organisation qui vous a envoyé ce lien n'a plus de crédits de vérification. Veuillez la contacter pour finaliser votre démarche."
138
139
  };
139
140
  var validation_points = {
@@ -31,7 +31,15 @@ var QUOTA_EXCEEDED_CODE = "QUOTA_EXCEEDED";
31
31
  // Must stay aligned with INSUFFICIENT_CREDITS_CODE in the backend
32
32
  // (src/common/constants/quota-exceeded.constant.ts): overdraft cap reached.
33
33
  var INSUFFICIENT_CREDITS_CODE = "INSUFFICIENT_CREDITS";
34
- var SERVICE_ERROR_CODES = [QUOTA_EXCEEDED_CODE, INSUFFICIENT_CREDITS_CODE];
34
+ // Must stay aligned with TEST_ACCOUNT_CREDITS_EXHAUSTED_CODE in the backend:
35
+ // a Test account (no overdraft) has used up its credits. Polled analyses carry
36
+ // the `insufficient_credits` codeName instead (same backend fallback document).
37
+ var TEST_ACCOUNT_CREDITS_EXHAUSTED_CODE = "TEST_ACCOUNT_CREDITS_EXHAUSTED";
38
+ var SERVICE_ERROR_CODES = [
39
+ QUOTA_EXCEEDED_CODE,
40
+ INSUFFICIENT_CREDITS_CODE,
41
+ TEST_ACCOUNT_CREDITS_EXHAUSTED_CODE,
42
+ ];
35
43
  // codeName of the backend fallback document (origin api_failure) returned by
36
44
  // analysis-status polling when the async analysis was refused.
37
45
  var SERVICE_ERROR_CODE_NAMES = {
@@ -64,6 +72,7 @@ exports.ANALYSIS_FAILED_CODE = ANALYSIS_FAILED_CODE;
64
72
  exports.INSUFFICIENT_CREDITS_CODE = INSUFFICIENT_CREDITS_CODE;
65
73
  exports.QUOTA_EXCEEDED_CODE = QUOTA_EXCEEDED_CODE;
66
74
  exports.S3_UPLOAD_NOT_CONFIRMED_CODE = S3_UPLOAD_NOT_CONFIRMED_CODE;
75
+ exports.TEST_ACCOUNT_CREDITS_EXHAUSTED_CODE = TEST_ACCOUNT_CREDITS_EXHAUSTED_CODE;
67
76
  exports.getServiceErrorCode = getServiceErrorCode;
68
77
  exports.getServiceErrorCodeFromCodeName = getServiceErrorCodeFromCodeName;
69
78
  exports.isAnalysisFailedError = isAnalysisFailedError;
@@ -130,6 +130,7 @@ var user_guidance = {
130
130
  "2.4": "The photo is not clear. Avoid any blur or reflection",
131
131
  "2.6": "The document submitted is not the expected one",
132
132
  QUOTA_EXCEEDED: "Your organisation has reached its verification quota. Please try again later or contact the organisation that sent you this link.",
133
+ TEST_ACCOUNT_CREDITS_EXHAUSTED: "This organisation's test credits are used up. Please contact them to continue the verification.",
133
134
  INSUFFICIENT_CREDITS: "The organisation that sent you this link has run out of verification credits. Please contact them to complete your verification."
134
135
  };
135
136
  var validation_points = {
@@ -130,6 +130,7 @@ var user_guidance = {
130
130
  "2.4": "La foto no es clara. Evita desenfoques y reflejos",
131
131
  "2.6": "El documento enviado no es el esperado",
132
132
  QUOTA_EXCEEDED: "Su organización ha alcanzado su cuota de verificaciones. Inténtelo de nuevo más tarde o póngase en contacto con la organización que le envió este enlace.",
133
+ TEST_ACCOUNT_CREDITS_EXHAUSTED: "Los créditos de prueba de esta organización se han agotado. Póngase en contacto con ella para continuar la verificación.",
133
134
  INSUFFICIENT_CREDITS: "La organización que le envió este enlace no tiene más créditos de verificación. Póngase en contacto con ella para completar su trámite."
134
135
  };
135
136
  var validation_points = {
@@ -130,6 +130,7 @@ var user_guidance = {
130
130
  "2.4": "La photo n'est pas nette. Évitez tout flou ou reflet",
131
131
  "2.6": "Le document déposé n'est pas celui attendu",
132
132
  QUOTA_EXCEEDED: "Le quota de vérifications de votre organisation est atteint. Veuillez réessayer plus tard ou contacter l'organisation qui vous a envoyé ce lien.",
133
+ TEST_ACCOUNT_CREDITS_EXHAUSTED: "Les crédits de test de cette organisation sont épuisés. Veuillez la contacter pour poursuivre la vérification.",
133
134
  INSUFFICIENT_CREDITS: "L'organisation qui vous a envoyé ce lien n'a plus de crédits de vérification. Veuillez la contacter pour finaliser votre démarche."
134
135
  };
135
136
  var validation_points = {
@@ -29,7 +29,15 @@ var QUOTA_EXCEEDED_CODE = "QUOTA_EXCEEDED";
29
29
  // Must stay aligned with INSUFFICIENT_CREDITS_CODE in the backend
30
30
  // (src/common/constants/quota-exceeded.constant.ts): overdraft cap reached.
31
31
  var INSUFFICIENT_CREDITS_CODE = "INSUFFICIENT_CREDITS";
32
- var SERVICE_ERROR_CODES = [QUOTA_EXCEEDED_CODE, INSUFFICIENT_CREDITS_CODE];
32
+ // Must stay aligned with TEST_ACCOUNT_CREDITS_EXHAUSTED_CODE in the backend:
33
+ // a Test account (no overdraft) has used up its credits. Polled analyses carry
34
+ // the `insufficient_credits` codeName instead (same backend fallback document).
35
+ var TEST_ACCOUNT_CREDITS_EXHAUSTED_CODE = "TEST_ACCOUNT_CREDITS_EXHAUSTED";
36
+ var SERVICE_ERROR_CODES = [
37
+ QUOTA_EXCEEDED_CODE,
38
+ INSUFFICIENT_CREDITS_CODE,
39
+ TEST_ACCOUNT_CREDITS_EXHAUSTED_CODE,
40
+ ];
33
41
  // codeName of the backend fallback document (origin api_failure) returned by
34
42
  // analysis-status polling when the async analysis was refused.
35
43
  var SERVICE_ERROR_CODE_NAMES = {
@@ -58,4 +66,4 @@ var isServiceErrorCode = function (code) {
58
66
  /** Same as getServiceErrorCode, from the polled fallback document codeName. */
59
67
  var getServiceErrorCodeFromCodeName = function (codeName) { var _a; return typeof codeName === "string" ? (_a = SERVICE_ERROR_CODE_NAMES[codeName]) !== null && _a !== void 0 ? _a : null : null; };
60
68
 
61
- export { ANALYSIS_FAILED_CODE, INSUFFICIENT_CREDITS_CODE, QUOTA_EXCEEDED_CODE, S3_UPLOAD_NOT_CONFIRMED_CODE, getServiceErrorCode, getServiceErrorCodeFromCodeName, isAnalysisFailedError, isS3UploadNotConfirmedError, isServiceErrorCode };
69
+ export { ANALYSIS_FAILED_CODE, INSUFFICIENT_CREDITS_CODE, QUOTA_EXCEEDED_CODE, S3_UPLOAD_NOT_CONFIRMED_CODE, TEST_ACCOUNT_CREDITS_EXHAUSTED_CODE, getServiceErrorCode, getServiceErrorCodeFromCodeName, isAnalysisFailedError, isS3UploadNotConfirmedError, isServiceErrorCode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datakeen-session-react",
3
- "version": "1.1.202-dev.12",
3
+ "version": "1.1.202-dev.13",
4
4
  "description": "React SDK component to manage and render Datakeen session experiences easily.",
5
5
  "publishConfig": {
6
6
  "access": "public",