@pax2pay/client 0.3.83 → 0.3.85
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/dist/model/ErrorResponse.d.ts +8 -0
- package/dist/model/ErrorResponse.js +18 -0
- package/dist/model/ErrorResponse.js.map +1 -1
- package/dist/model/StatementReportSubType.d.ts +1 -1
- package/dist/model/StatementReportSubType.js +7 -1
- package/dist/model/StatementReportSubType.js.map +1 -1
- package/model/ErrorResponse.ts +14 -0
- package/model/StatementReportSubType.ts +7 -1
- package/package.json +1 -1
|
@@ -5,4 +5,12 @@ export interface ErrorResponse {
|
|
|
5
5
|
}
|
|
6
6
|
export declare namespace ErrorResponse {
|
|
7
7
|
function is(value: ErrorResponse | any): value is ErrorResponse;
|
|
8
|
+
const roleMissingCode = 9;
|
|
9
|
+
function isRoleMissing(error?: ErrorResponse): boolean;
|
|
10
|
+
namespace TwoFa {
|
|
11
|
+
const incorrectCode = 13;
|
|
12
|
+
function isIncorrect(error?: ErrorResponse): boolean;
|
|
13
|
+
const requiredCode = 14;
|
|
14
|
+
function isRequired(error?: ErrorResponse): boolean;
|
|
15
|
+
}
|
|
8
16
|
}
|
|
@@ -8,5 +8,23 @@ export var ErrorResponse;
|
|
|
8
8
|
(value.code != undefined || value.errors != undefined));
|
|
9
9
|
}
|
|
10
10
|
ErrorResponse.is = is;
|
|
11
|
+
ErrorResponse.roleMissingCode = 9;
|
|
12
|
+
function isRoleMissing(error) {
|
|
13
|
+
return (error === null || error === void 0 ? void 0 : error.code) == ErrorResponse.roleMissingCode;
|
|
14
|
+
}
|
|
15
|
+
ErrorResponse.isRoleMissing = isRoleMissing;
|
|
16
|
+
let TwoFa;
|
|
17
|
+
(function (TwoFa) {
|
|
18
|
+
TwoFa.incorrectCode = 13;
|
|
19
|
+
function isIncorrect(error) {
|
|
20
|
+
return (error === null || error === void 0 ? void 0 : error.code) == TwoFa.incorrectCode;
|
|
21
|
+
}
|
|
22
|
+
TwoFa.isIncorrect = isIncorrect;
|
|
23
|
+
TwoFa.requiredCode = 14;
|
|
24
|
+
function isRequired(error) {
|
|
25
|
+
return (error === null || error === void 0 ? void 0 : error.code) == TwoFa.requiredCode;
|
|
26
|
+
}
|
|
27
|
+
TwoFa.isRequired = isRequired;
|
|
28
|
+
})(TwoFa = ErrorResponse.TwoFa || (ErrorResponse.TwoFa = {}));
|
|
11
29
|
})(ErrorResponse || (ErrorResponse = {}));
|
|
12
30
|
//# sourceMappingURL=ErrorResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorResponse.js","sourceRoot":"../","sources":["model/ErrorResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAOnD,MAAM,KAAW,aAAa,
|
|
1
|
+
{"version":3,"file":"ErrorResponse.js","sourceRoot":"../","sources":["model/ErrorResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAOnD,MAAM,KAAW,aAAa,CAuB7B;AAvBD,WAAiB,aAAa;IAC7B,SAAgB,EAAE,CAAC,KAA0B;QAC5C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ,CAAC;YAC1D,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;YACtG,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC,CACtD,CAAA;IACF,CAAC;IAPe,gBAAE,KAOjB,CAAA;IACY,6BAAe,GAAG,CAAC,CAAA;IAChC,SAAgB,aAAa,CAAC,KAAqB;QAClD,OAAO,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,KAAI,cAAA,eAAe,CAAA;IACtC,CAAC;IAFe,2BAAa,gBAE5B,CAAA;IACD,IAAiB,KAAK,CASrB;IATD,WAAiB,KAAK;QACR,mBAAa,GAAG,EAAE,CAAA;QAC/B,SAAgB,WAAW,CAAC,KAAqB;YAChD,OAAO,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,KAAI,MAAA,aAAa,CAAA;QACpC,CAAC;QAFe,iBAAW,cAE1B,CAAA;QACY,kBAAY,GAAG,EAAE,CAAA;QAC9B,SAAgB,UAAU,CAAC,KAAqB;YAC/C,OAAO,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,KAAI,MAAA,YAAY,CAAA;QACnC,CAAC;QAFe,gBAAU,aAEzB,CAAA;IACF,CAAC,EATgB,KAAK,GAAL,mBAAK,KAAL,mBAAK,QASrB;AACF,CAAC,EAvBgB,aAAa,KAAb,aAAa,QAuB7B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const statementReportSubType: readonly ["SETTLED", "PENDING", "PROGNOSIS"];
|
|
1
|
+
export declare const statementReportSubType: readonly ["SETTLED", "PENDING", "PROGNOSIS", "FUTURE_PROGNOSIS", "UNUSED_CARDS_PROGNOSIS"];
|
|
2
2
|
export type StatementReportSubType = typeof statementReportSubType[number];
|
|
3
3
|
export declare namespace StatementReportSubType {
|
|
4
4
|
function is(value: unknown): value is StatementReportSubType;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
export const statementReportSubType = [
|
|
1
|
+
export const statementReportSubType = [
|
|
2
|
+
"SETTLED",
|
|
3
|
+
"PENDING",
|
|
4
|
+
"PROGNOSIS",
|
|
5
|
+
"FUTURE_PROGNOSIS",
|
|
6
|
+
"UNUSED_CARDS_PROGNOSIS",
|
|
7
|
+
];
|
|
2
8
|
export var StatementReportSubType;
|
|
3
9
|
(function (StatementReportSubType) {
|
|
4
10
|
function is(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatementReportSubType.js","sourceRoot":"../","sources":["model/StatementReportSubType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,
|
|
1
|
+
{"version":3,"file":"StatementReportSubType.js","sourceRoot":"../","sources":["model/StatementReportSubType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,SAAS;IACT,SAAS;IACT,WAAW;IACX,kBAAkB;IAClB,wBAAwB;CACf,CAAA;AAIV,MAAM,KAAW,sBAAsB,CAItC;AAJD,WAAiB,sBAAsB;IACtC,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,sBAAsB,CAAC,QAAQ,CAAC,KAA+B,CAAC,CAAA;IACpG,CAAC;IAFe,yBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,sBAAsB,KAAtB,sBAAsB,QAItC"}
|
package/model/ErrorResponse.ts
CHANGED
|
@@ -14,4 +14,18 @@ export namespace ErrorResponse {
|
|
|
14
14
|
(value.code != undefined || value.errors != undefined)
|
|
15
15
|
)
|
|
16
16
|
}
|
|
17
|
+
export const roleMissingCode = 9
|
|
18
|
+
export function isRoleMissing(error?: ErrorResponse): boolean {
|
|
19
|
+
return error?.code == roleMissingCode
|
|
20
|
+
}
|
|
21
|
+
export namespace TwoFa {
|
|
22
|
+
export const incorrectCode = 13
|
|
23
|
+
export function isIncorrect(error?: ErrorResponse): boolean {
|
|
24
|
+
return error?.code == incorrectCode
|
|
25
|
+
}
|
|
26
|
+
export const requiredCode = 14
|
|
27
|
+
export function isRequired(error?: ErrorResponse): boolean {
|
|
28
|
+
return error?.code == requiredCode
|
|
29
|
+
}
|
|
30
|
+
}
|
|
17
31
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
export const statementReportSubType = [
|
|
1
|
+
export const statementReportSubType = [
|
|
2
|
+
"SETTLED",
|
|
3
|
+
"PENDING",
|
|
4
|
+
"PROGNOSIS",
|
|
5
|
+
"FUTURE_PROGNOSIS",
|
|
6
|
+
"UNUSED_CARDS_PROGNOSIS",
|
|
7
|
+
] as const
|
|
2
8
|
|
|
3
9
|
export type StatementReportSubType = typeof statementReportSubType[number]
|
|
4
10
|
|