@pax2pay/client 0.0.51 → 0.0.54
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/.eslintignore +3 -1
- package/Client/Auth/index.ts +6 -0
- package/Client/Beneficiaries/index.ts +33 -0
- package/Client/Beneficiary/index.ts +9 -0
- package/Client/Card/index.ts +38 -18
- package/Client/Cards/actions/actionTest.ts +4 -10
- package/Client/Cards/create/factory.ts +27 -20
- package/Client/Transfer/index.ts +9 -0
- package/Client/Transfers/factory.ts +172 -0
- package/Client/Transfers/index.ts +37 -0
- package/Client/generatePagination.ts +2 -2
- package/Client/index.ts +7 -1
- package/dist/Client/Auth/index.d.ts +2 -0
- package/dist/Client/Auth/index.js +6 -0
- package/dist/Client/Auth/index.js.map +1 -1
- package/dist/Client/Beneficiaries/index.d.ts +21 -0
- package/dist/Client/Beneficiaries/index.js +32 -0
- package/dist/Client/Beneficiaries/index.js.map +1 -0
- package/dist/Client/Beneficiary/index.d.ts +6 -0
- package/dist/Client/Beneficiary/index.js +7 -0
- package/dist/Client/Beneficiary/index.js.map +1 -0
- package/dist/Client/Card/index.js.map +1 -1
- package/dist/Client/Transfer/index.d.ts +6 -0
- package/dist/Client/Transfer/index.js +7 -0
- package/dist/Client/Transfer/index.js.map +1 -0
- package/dist/Client/Transfers/index.d.ts +21 -0
- package/dist/Client/Transfers/index.js +32 -0
- package/dist/Client/Transfers/index.js.map +1 -0
- package/dist/Client/generatePagination.js +2 -2
- package/dist/Client/generatePagination.js.map +1 -1
- package/dist/Client/index.d.ts +7 -1
- package/dist/Client/index.js +5 -1
- package/dist/Client/index.js.map +1 -1
- package/dist/model/BookingInfoRequest.d.ts +4 -3
- package/dist/model/CardDeliveryRequest.d.ts +6 -0
- package/dist/model/CardDeliveryRequest.js +2 -0
- package/dist/model/CardDeliveryRequest.js.map +1 -0
- package/dist/model/CreateCardRequest.d.ts +7 -3
- package/dist/model/ErrorMessageDto.js +2 -2
- package/dist/model/ErrorMessageDto.js.map +1 -1
- package/dist/model/FlightBookingInfoRequest.d.ts +33 -0
- package/dist/model/FlightBookingInfoRequest.js +4 -0
- package/dist/model/FlightBookingInfoRequest.js.map +1 -0
- package/dist/model/HotelBookingInfoRequest.d.ts +7 -0
- package/dist/model/HotelBookingInfoRequest.js +2 -0
- package/dist/model/HotelBookingInfoRequest.js.map +1 -0
- package/dist/model/LegacyBookingInfoRequest.d.ts +21 -0
- package/dist/model/LegacyBookingInfoRequest.js +2 -0
- package/dist/model/LegacyBookingInfoRequest.js.map +1 -0
- package/dist/model/ScheduledTaskRequest.d.ts +22 -0
- package/dist/model/ScheduledTaskRequest.js +7 -0
- package/dist/model/ScheduledTaskRequest.js.map +1 -0
- package/dist/model/index.d.ts +6 -1
- package/dist/model/index.js.map +1 -1
- package/model/BookingInfoRequest.ts +8 -3
- package/model/CardDeliveryRequest.ts +7 -0
- package/model/CreateCardRequest.ts +7 -3
- package/model/ErrorMessageDto.ts +2 -2
- package/model/FlightBookingInfoRequest.ts +33 -0
- package/model/HotelBookingInfoRequest.ts +8 -0
- package/model/LegacyBookingInfoRequest.ts +22 -0
- package/model/ScheduledTaskRequest.ts +32 -0
- package/model/Sorting.ts +1 -1
- package/model/index.ts +11 -0
- package/package.json +13 -12
package/model/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { BookedProductInfo } from "./BookedProductInfo"
|
|
|
10
10
|
import { BookingInfo } from "./BookingInfo"
|
|
11
11
|
import { BookingInfoRequest } from "./BookingInfoRequest"
|
|
12
12
|
import { BookingInfoResponse } from "./BookingInfoResponse"
|
|
13
|
+
import { CardDeliveryRequest } from "./CardDeliveryRequest"
|
|
13
14
|
import { CardFundingAccountResponse } from "./CardFundingAccountResponse"
|
|
14
15
|
import { CardOptionSearch } from "./CardOptionSearch"
|
|
15
16
|
import { CardResponse } from "./CardResponse"
|
|
@@ -34,14 +35,17 @@ import { ErrorMessageDto } from "./ErrorMessageDto"
|
|
|
34
35
|
import { ErrorResponse } from "./ErrorResponse"
|
|
35
36
|
import { FiveFieldsBookingInfoRequest } from "./FiveFieldsBookingInfoRequest"
|
|
36
37
|
import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse"
|
|
38
|
+
import { FlightBookingInfoRequest } from "./FlightBookingInfoRequest"
|
|
37
39
|
import { FundingAccountInboundTransferNotificationConfig } from "./FundingAccountInboundTransferNotificationConfig"
|
|
38
40
|
import { FundingAccountSearchRequest } from "./FundingAccountSearchRequest"
|
|
39
41
|
import { FundingAccountSearchResponse } from "./FundingAccountSearchResponse"
|
|
40
42
|
import { FundingLimitRequest } from "./FundingLimitRequest"
|
|
41
43
|
import { FundingLimitResponse } from "./FundingLimitResponse"
|
|
44
|
+
import { HotelBookingInfoRequest } from "./HotelBookingInfoRequest"
|
|
42
45
|
import { InsertCardOptionRequest } from "./InsertCardOptionRequest"
|
|
43
46
|
import { InsertCardRequest } from "./InsertCardRequest"
|
|
44
47
|
import { Issue } from "./Issue"
|
|
48
|
+
import { LegacyBookingInfoRequest } from "./LegacyBookingInfoRequest"
|
|
45
49
|
import { LoginRequest } from "./LoginRequest"
|
|
46
50
|
import { LoginResponse } from "./LoginResponse"
|
|
47
51
|
import { NonBeneficiaryTransferDestination } from "./NonBeneficiaryTransferDestination"
|
|
@@ -62,6 +66,7 @@ import { RelogWithNewSessionDetailsRequest } from "./RelogWithNewSessionDetailsR
|
|
|
62
66
|
import { Report } from "./Report"
|
|
63
67
|
import { RoleResponse } from "./RoleResponse"
|
|
64
68
|
import { RolesetResponse } from "./RolesetResponse"
|
|
69
|
+
import { CardAmendmentScheduledTaskRequest, CardStateChangeScheduledTaskRequest } from "./ScheduledTaskRequest"
|
|
65
70
|
import { SearchRolesetsRequest } from "./SearchRolesetsRequest"
|
|
66
71
|
import { Sorting } from "./Sorting"
|
|
67
72
|
import { SupplierBookingInfo } from "./SupplierBookingInfo"
|
|
@@ -100,11 +105,14 @@ export {
|
|
|
100
105
|
BookingInfo,
|
|
101
106
|
BookingInfoRequest,
|
|
102
107
|
BookingInfoResponse,
|
|
108
|
+
CardAmendmentScheduledTaskRequest,
|
|
109
|
+
CardDeliveryRequest,
|
|
103
110
|
CardFundingAccountResponse,
|
|
104
111
|
CardOptionSearch,
|
|
105
112
|
CardResponse,
|
|
106
113
|
CardResponseV2,
|
|
107
114
|
CardSearch,
|
|
115
|
+
CardStateChangeScheduledTaskRequest,
|
|
108
116
|
CardTypeResponse,
|
|
109
117
|
CardTypesConfig,
|
|
110
118
|
CardTypeSearchRequest,
|
|
@@ -124,14 +132,17 @@ export {
|
|
|
124
132
|
ErrorResponse,
|
|
125
133
|
FiveFieldsBookingInfoRequest,
|
|
126
134
|
FiveFieldsBookingInfoResponse,
|
|
135
|
+
FlightBookingInfoRequest,
|
|
127
136
|
FundingAccountInboundTransferNotificationConfig,
|
|
128
137
|
FundingAccountSearchRequest,
|
|
129
138
|
FundingAccountSearchResponse,
|
|
130
139
|
FundingLimitRequest,
|
|
131
140
|
FundingLimitResponse,
|
|
141
|
+
HotelBookingInfoRequest,
|
|
132
142
|
InsertCardOptionRequest,
|
|
133
143
|
InsertCardRequest,
|
|
134
144
|
Issue,
|
|
145
|
+
LegacyBookingInfoRequest,
|
|
135
146
|
LoginRequest,
|
|
136
147
|
LoginResponse,
|
|
137
148
|
NonBeneficiaryTransferDestination,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pax2pay/client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.54",
|
|
4
4
|
"description": "Client library for the Pax2Pay API",
|
|
5
5
|
"author": "Pax2Pay Ltd.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"^.+\\.(j|t)sx?$": "ts-jest"
|
|
29
29
|
},
|
|
30
30
|
"transformIgnorePatterns": [
|
|
31
|
-
"<rootDir>/node_modules/(?!(cryptly|authly|isoly|gracely|@pax2pay)/.*)"
|
|
31
|
+
"<rootDir>/node_modules/(?!(cryptly|authly|isoly|gracely|@pax2pay|cloud-http)/.*)"
|
|
32
32
|
],
|
|
33
33
|
"testEnvironment": "node",
|
|
34
34
|
"testRegex": "((\\.|/)(test|spec))(\\.|\\/.+)(jsx?|tsx?)$",
|
|
@@ -46,32 +46,33 @@
|
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"dev": "watch 'npm run build' .",
|
|
49
|
-
"lint": "eslint '**/*.{
|
|
50
|
-
"fix": "eslint '**/*.{
|
|
49
|
+
"lint": "eslint '**/*.{ts,tsx}'",
|
|
50
|
+
"fix": "eslint '**/*.{ts,tsx}' --fix",
|
|
51
51
|
"build": "tsc -p .",
|
|
52
52
|
"test": "jest --maxWorkers=2",
|
|
53
53
|
"test:watch": "watch jest",
|
|
54
54
|
"prepare": "npm run build",
|
|
55
|
-
"clean": "
|
|
55
|
+
"clean": "rimraf dist node_modules coverage"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@babel/core": "^7.15.5",
|
|
59
59
|
"@types/isomorphic-fetch": "^0.0.35",
|
|
60
60
|
"@types/jest": "^27.0.2",
|
|
61
61
|
"@types/node": "^16.10.3",
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "
|
|
63
|
-
"@typescript-eslint/parser": "
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "5.3.0",
|
|
63
|
+
"@typescript-eslint/parser": "5.3.0",
|
|
64
64
|
"babel-core": "^6.26.3",
|
|
65
65
|
"babel-jest": "^27.2.4",
|
|
66
66
|
"dotenv": "^10.0.0",
|
|
67
|
-
"eslint": "
|
|
67
|
+
"eslint": "8.1.0",
|
|
68
68
|
"eslint-plugin-prettierx": "github:nilssonemma/eslint-plugin-prettierx#master",
|
|
69
69
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
70
|
-
"jest": "^27.
|
|
71
|
-
"prettierx": "github:simonmika/prettierx#newline-before-clause",
|
|
70
|
+
"jest": "^27.3.1",
|
|
72
71
|
"openapi-to-ts": "^1.1.0",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
72
|
+
"prettierx": "github:simonmika/prettierx#newline-before-clause",
|
|
73
|
+
"rimraf": "^3.0.2",
|
|
74
|
+
"ts-jest": "^27.0.7",
|
|
75
|
+
"typescript": "^4.4.4",
|
|
75
76
|
"watch": "^1.0.2"
|
|
76
77
|
},
|
|
77
78
|
"dependencies": {
|