@coinflowlabs/react 5.21.0 → 5.22.0

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.
Files changed (83) hide show
  1. package/build/cjs/CoinflowIFrame.js +4 -0
  2. package/build/cjs/CoinflowIFrame.js.map +1 -1
  3. package/build/cjs/CoinflowPaymentIntentPurchase.js +2 -0
  4. package/build/cjs/CoinflowPaymentIntentPurchase.js.map +1 -1
  5. package/build/cjs/MobileWalletButton.d.ts +2 -0
  6. package/build/cjs/MobileWalletButton.js +29 -3
  7. package/build/cjs/MobileWalletButton.js.map +1 -1
  8. package/build/cjs/card-form/CoinflowCardFormV2.d.ts +11 -1
  9. package/build/cjs/card-form/CoinflowCardFormV2.js +8 -2
  10. package/build/cjs/card-form/CoinflowCardFormV2.js.map +1 -1
  11. package/build/cjs/common/CoinflowLibMessageHandlers.d.ts +8 -3
  12. package/build/cjs/common/CoinflowLibMessageHandlers.js +43 -4
  13. package/build/cjs/common/CoinflowLibMessageHandlers.js.map +1 -1
  14. package/build/cjs/common/CoinflowTypes.d.ts +60 -4
  15. package/build/cjs/common/CoinflowTypes.js +1 -0
  16. package/build/cjs/common/CoinflowTypes.js.map +1 -1
  17. package/build/cjs/common/CoinflowUtils.d.ts +1 -1
  18. package/build/cjs/common/CoinflowUtils.js +9 -1
  19. package/build/cjs/common/CoinflowUtils.js.map +1 -1
  20. package/build/cjs/common/card-form/cardFieldValidationError.d.ts +56 -0
  21. package/build/cjs/common/card-form/cardFieldValidationError.js +55 -0
  22. package/build/cjs/common/card-form/cardFieldValidationError.js.map +1 -0
  23. package/build/cjs/common/index.d.ts +6 -0
  24. package/build/cjs/common/index.js +6 -0
  25. package/build/cjs/common/index.js.map +1 -1
  26. package/build/cjs/common/plaidLinkTokenCache.d.ts +34 -0
  27. package/build/cjs/common/plaidLinkTokenCache.js +46 -0
  28. package/build/cjs/common/plaidLinkTokenCache.js.map +1 -0
  29. package/build/cjs/common/types/flightTicketCartItem.d.ts +49 -0
  30. package/build/cjs/common/types/flightTicketCartItem.js +3 -0
  31. package/build/cjs/common/types/flightTicketCartItem.js.map +1 -0
  32. package/build/cjs/common/types/flightUpgradeCartItem.d.ts +49 -0
  33. package/build/cjs/common/types/flightUpgradeCartItem.js +3 -0
  34. package/build/cjs/common/types/flightUpgradeCartItem.js.map +1 -0
  35. package/build/cjs/common/types/lodgingCartItem.d.ts +37 -0
  36. package/build/cjs/common/types/lodgingCartItem.js +3 -0
  37. package/build/cjs/common/types/lodgingCartItem.js.map +1 -0
  38. package/build/cjs/common/types/travelCartItem.d.ts +212 -0
  39. package/build/cjs/common/types/travelCartItem.js +3 -0
  40. package/build/cjs/common/types/travelCartItem.js.map +1 -0
  41. package/build/esm/CoinflowIFrame.js +4 -0
  42. package/build/esm/CoinflowIFrame.js.map +1 -1
  43. package/build/esm/CoinflowPaymentIntentPurchase.js +2 -0
  44. package/build/esm/CoinflowPaymentIntentPurchase.js.map +1 -1
  45. package/build/esm/MobileWalletButton.d.ts +2 -0
  46. package/build/esm/MobileWalletButton.js +31 -5
  47. package/build/esm/MobileWalletButton.js.map +1 -1
  48. package/build/esm/card-form/CoinflowCardFormV2.d.ts +11 -1
  49. package/build/esm/card-form/CoinflowCardFormV2.js +8 -2
  50. package/build/esm/card-form/CoinflowCardFormV2.js.map +1 -1
  51. package/build/esm/common/CoinflowLibMessageHandlers.d.ts +8 -3
  52. package/build/esm/common/CoinflowLibMessageHandlers.js +43 -4
  53. package/build/esm/common/CoinflowLibMessageHandlers.js.map +1 -1
  54. package/build/esm/common/CoinflowTypes.d.ts +60 -4
  55. package/build/esm/common/CoinflowTypes.js +1 -0
  56. package/build/esm/common/CoinflowTypes.js.map +1 -1
  57. package/build/esm/common/CoinflowUtils.d.ts +1 -1
  58. package/build/esm/common/CoinflowUtils.js +9 -1
  59. package/build/esm/common/CoinflowUtils.js.map +1 -1
  60. package/build/esm/common/card-form/cardFieldValidationError.d.ts +56 -0
  61. package/build/esm/common/card-form/cardFieldValidationError.js +50 -0
  62. package/build/esm/common/card-form/cardFieldValidationError.js.map +1 -0
  63. package/build/esm/common/index.d.ts +6 -0
  64. package/build/esm/common/index.js +6 -0
  65. package/build/esm/common/index.js.map +1 -1
  66. package/build/esm/common/plaidLinkTokenCache.d.ts +34 -0
  67. package/build/esm/common/plaidLinkTokenCache.js +41 -0
  68. package/build/esm/common/plaidLinkTokenCache.js.map +1 -0
  69. package/build/esm/common/types/flightTicketCartItem.d.ts +49 -0
  70. package/build/esm/common/types/flightTicketCartItem.js +2 -0
  71. package/build/esm/common/types/flightTicketCartItem.js.map +1 -0
  72. package/build/esm/common/types/flightUpgradeCartItem.d.ts +49 -0
  73. package/build/esm/common/types/flightUpgradeCartItem.js +2 -0
  74. package/build/esm/common/types/flightUpgradeCartItem.js.map +1 -0
  75. package/build/esm/common/types/lodgingCartItem.d.ts +37 -0
  76. package/build/esm/common/types/lodgingCartItem.js +2 -0
  77. package/build/esm/common/types/lodgingCartItem.js.map +1 -0
  78. package/build/esm/common/types/travelCartItem.d.ts +212 -0
  79. package/build/esm/common/types/travelCartItem.js +2 -0
  80. package/build/esm/common/types/travelCartItem.js.map +1 -0
  81. package/build/tsconfig.cjs.tsbuildinfo +1 -1
  82. package/build/tsconfig.tsbuildinfo +1 -1
  83. package/package.json +1 -1
@@ -0,0 +1,49 @@
1
+ import { CurrencyAmount, RecipientInfo } from './CartitemCommon';
2
+ import { AnyObject } from './AnyObject';
3
+ /**
4
+ * Represents a flight upgrade item in a shopping cart
5
+ */
6
+ export interface FlightUpgradeCartItem {
7
+ /**
8
+ * Denotes the cart item class. The item schema is chosen based on this value.
9
+ * Allowed value: flightUpgrade
10
+ * Example: flightUpgrade
11
+ */
12
+ itemClass: 'flightUpgrade';
13
+ /**
14
+ * The cart items's unique ID
15
+ * Example: 5de33332-546a-4171-8988-2a43d2bfe9c6
16
+ */
17
+ id?: string;
18
+ /**
19
+ * Any additional product data which can be provided, e.g. description, link to image, etc
20
+ * Example: {"any":"data","description":"This is the product description"}
21
+ */
22
+ rawProductData?: AnyObject;
23
+ /**
24
+ * The item's selling price
25
+ */
26
+ sellingPrice: CurrencyAmount;
27
+ /**
28
+ * The item's list price
29
+ */
30
+ listPrice?: CurrencyAmount;
31
+ /**
32
+ * The user's personal info
33
+ */
34
+ recipientInfo?: RecipientInfo;
35
+ /**
36
+ * The flight ticket's PNR code
37
+ * Example: X36Q9C
38
+ */
39
+ pnr?: string;
40
+ /**
41
+ * The type of upgrade
42
+ * Example: changes
43
+ */
44
+ upgradeType: 'changes' | 'fareIncrease' | 'baggage' | 'seats' | 'insurance' | 'other';
45
+ /**
46
+ * The upgrade description, required when the upgrade type is `other`
47
+ */
48
+ description?: string;
49
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flightUpgradeCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flightUpgradeCartItem.js","sourceRoot":"","sources":["../../../../src/common/types/flightUpgradeCartItem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ import { CurrencyAmount, RecipientInfo } from './CartitemCommon';
2
+ import { AnyObject } from './AnyObject';
3
+ import { TravelLodging } from './travelCartItem';
4
+ /**
5
+ * Represents a lodging reservation item in a shopping cart.
6
+ * The reservation fields are flattened at the top level of the item.
7
+ */
8
+ export interface LodgingCartItem extends TravelLodging {
9
+ /**
10
+ * Denotes the cart item class. The item schema is chosen based on this value.
11
+ * Allowed value: lodging
12
+ * Example: lodging
13
+ */
14
+ itemClass: 'lodging';
15
+ /**
16
+ * The cart items's unique ID
17
+ * Example: 5de33332-546a-4171-8988-2a43d2bfe9c6
18
+ */
19
+ id?: string;
20
+ /**
21
+ * Any additional product data which can be provided, e.g. description, link to image, etc
22
+ * Example: {"any":"data","description":"This is the product description"}
23
+ */
24
+ rawProductData?: AnyObject;
25
+ /**
26
+ * The item's selling price
27
+ */
28
+ sellingPrice: CurrencyAmount;
29
+ /**
30
+ * The item's list price
31
+ */
32
+ listPrice?: CurrencyAmount;
33
+ /**
34
+ * The user's personal info
35
+ */
36
+ recipientInfo?: RecipientInfo;
37
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=lodgingCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lodgingCartItem.js","sourceRoot":"","sources":["../../../../src/common/types/lodgingCartItem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,212 @@
1
+ import { CurrencyAmount, RecipientInfo } from './CartitemCommon';
2
+ import { AnyObject } from './AnyObject';
3
+ /**
4
+ * The booked hotel details
5
+ */
6
+ export interface TravelLodgingHotel {
7
+ /**
8
+ * The name of the hotel
9
+ * Example: The Plaza Hotel
10
+ */
11
+ name: string;
12
+ /**
13
+ * The two-letter code of the country in which the hotel is located
14
+ * Example: US
15
+ * Pattern: ^[A-Z]{2}$
16
+ */
17
+ country: string;
18
+ /**
19
+ * The city in which the hotel is located
20
+ * Example: New York
21
+ */
22
+ city: string;
23
+ }
24
+ /**
25
+ * The lodging details of the travel booking
26
+ */
27
+ export interface TravelLodging {
28
+ /**
29
+ * Hotel reservation id
30
+ * Example: X36Q9C
31
+ */
32
+ reservationId: string;
33
+ /**
34
+ * The number of nights booked in the reservation
35
+ * Min value: 1
36
+ * Example: 2
37
+ */
38
+ nights: number;
39
+ /**
40
+ * The check-in date
41
+ * Example: 2022-05-02
42
+ */
43
+ checkInDate: string;
44
+ /**
45
+ * The hour of day in which the check-in is done
46
+ * Example: 18
47
+ * Pattern: ^([01][0-9]|2[0-3])$
48
+ */
49
+ checkInHour: string;
50
+ /**
51
+ * The booked hotel details
52
+ */
53
+ hotel: TravelLodgingHotel;
54
+ /**
55
+ * Indicates whether extras were purchased in the reservation
56
+ */
57
+ wereExtrasPurchased: boolean;
58
+ /**
59
+ * Indicates whether the reservation is refundable
60
+ */
61
+ isRefundable: boolean;
62
+ /**
63
+ * The most luxurious room booked in the reservation
64
+ * Example: Presidential Suite
65
+ */
66
+ highestRoomType: string;
67
+ /**
68
+ * The number of rooms booked in the reservation
69
+ * Min value: 1
70
+ * Example: 2
71
+ */
72
+ numberOfRooms: number;
73
+ /**
74
+ * The number of guests in the reservation
75
+ * Min value: 1
76
+ * Example: 4
77
+ */
78
+ numberOfGuests: number;
79
+ /**
80
+ * The number of kids, out of the number of guests in the reservation
81
+ * Min value: 0
82
+ * Example: 2
83
+ */
84
+ numberOfKids: number;
85
+ }
86
+ /**
87
+ * The trip details of the travel booking
88
+ */
89
+ export interface TravelTrip {
90
+ /**
91
+ * The number of flights in the trip
92
+ * Min value: 1
93
+ * Example: 2
94
+ */
95
+ numberOfFlights: number;
96
+ /**
97
+ * The number of checked bags
98
+ * Min value: 0
99
+ * Example: 1
100
+ */
101
+ numberOfCheckedBags: number;
102
+ /**
103
+ * The first-way destination's three-letter IATA airport code
104
+ * Example: JFK
105
+ * Pattern: ^[A-Z]{3}$
106
+ */
107
+ firstWayDestination: string;
108
+ /**
109
+ * `true` if the trip is a round-trip
110
+ * Example: true
111
+ */
112
+ isRoundTrip: boolean;
113
+ /**
114
+ * `luxurious` if the highest bought travel class in the trip is a luxury class (business/first), `economy` otherwise
115
+ * Example: luxurious
116
+ */
117
+ highestClass: 'economy' | 'luxurious';
118
+ /**
119
+ * True if the trip ticket is a flexible ticket
120
+ * Example: true
121
+ */
122
+ isFlexibleTicket: boolean;
123
+ /**
124
+ * True if extras were included in the trip purchase
125
+ * Example: true
126
+ */
127
+ wereExtrasPurchased: boolean;
128
+ }
129
+ /**
130
+ * The first flight details of the trip
131
+ */
132
+ export interface TravelFirstFlight {
133
+ /**
134
+ * The number of travelers in the first flight
135
+ * Min value: 1
136
+ * Example: 2
137
+ */
138
+ numberOfTravelers: number;
139
+ /**
140
+ * The timestamp of the departure, in *milliseconds* since the unix epoch
141
+ * Example: 1551398400000
142
+ */
143
+ departureTime: number;
144
+ /**
145
+ * The first-flight departure airport's three-letter IATA code
146
+ * Example: JFK
147
+ * Pattern: ^[A-Z]{3}$
148
+ */
149
+ departureAirport: string;
150
+ /**
151
+ * The first-flight duration, in hours
152
+ * Min value: 0
153
+ * Example: 3.5
154
+ */
155
+ duration: number;
156
+ /**
157
+ * The alphanumeric flight code
158
+ * Example: BA2491A
159
+ * Pattern: ^[A-Z0-9]+$
160
+ */
161
+ flightNumber: string;
162
+ }
163
+ /**
164
+ * Represents a travel booking item in a shopping cart
165
+ */
166
+ export interface TravelCartItem {
167
+ /**
168
+ * Denotes the cart item class. The item schema is chosen based on this value.
169
+ * Allowed value: travel
170
+ * Example: travel
171
+ */
172
+ itemClass: 'travel';
173
+ /**
174
+ * The cart items's unique ID
175
+ * Example: 5de33332-546a-4171-8988-2a43d2bfe9c6
176
+ */
177
+ id?: string;
178
+ /**
179
+ * Any additional product data which can be provided, e.g. description, link to image, etc
180
+ * Example: {"any":"data","description":"This is the product description"}
181
+ */
182
+ rawProductData?: AnyObject;
183
+ /**
184
+ * The item's selling price
185
+ */
186
+ sellingPrice: CurrencyAmount;
187
+ /**
188
+ * The item's list price
189
+ */
190
+ listPrice?: CurrencyAmount;
191
+ /**
192
+ * The user's personal info
193
+ */
194
+ recipientInfo?: RecipientInfo;
195
+ /**
196
+ * The lodging details of the travel booking
197
+ */
198
+ lodging: TravelLodging;
199
+ /**
200
+ * The flight ticket's PNR code
201
+ * Example: X36Q9C
202
+ */
203
+ pnr: string;
204
+ /**
205
+ * The trip details of the travel booking
206
+ */
207
+ trip: TravelTrip;
208
+ /**
209
+ * The first flight details of the trip
210
+ */
211
+ firstFlight: TravelFirstFlight;
212
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=travelCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"travelCartItem.js","sourceRoot":"","sources":["../../../../src/common/types/travelCartItem.ts"],"names":[],"mappings":""}