@sonic-equipment/ui 121.0.0 → 123.0.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.
- package/dist/checkout/adyen-payment.d.ts +21 -0
- package/dist/checkout/adyen-payment.js +165 -0
- package/dist/checkout/parse-amount.d.ts +2 -0
- package/dist/checkout/parse-amount.js +10 -0
- package/dist/checkout/payment-details.d.ts +5 -0
- package/dist/checkout/payment-details.js +21 -0
- package/dist/checkout/payment.d.ts +6 -0
- package/dist/checkout/payment.js +69 -0
- package/dist/collapsables/accordion/accordion-item.d.ts +2 -1
- package/dist/collapsables/accordion/accordion-item.js +6 -2
- package/dist/collapsables/accordion/accordion.module.css.js +1 -1
- package/dist/config.js +1 -1
- package/dist/exports.d.ts +18 -0
- package/dist/forms/field-error/field-error.d.ts +14 -1
- package/dist/forms/field-error/field-error.js +15 -1
- package/dist/forms/input/input.d.ts +1 -0
- package/dist/forms/input/input.js +2 -2
- package/dist/forms/number-field/number-field.d.ts +3 -1
- package/dist/forms/number-field/number-field.js +3 -3
- package/dist/forms/text-field/text-field.d.ts +4 -1
- package/dist/forms/text-field/text-field.js +3 -3
- package/dist/forms/textarea/textarea.d.ts +1 -0
- package/dist/forms/textarea/textarea.js +10 -10
- package/dist/icons/stroke/stroke-information-icon.js +7 -0
- package/dist/index.js +20 -2
- package/dist/intl/translation-id.d.ts +1 -1
- package/dist/pages/cart-page/cart-page.js +1 -0
- package/dist/shared/api/storefront/hooks/authentication/use-create-guest-account.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/authentication/use-create-guest-account.js +21 -0
- package/dist/shared/api/storefront/hooks/authentication/use-patch-session.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/authentication/use-patch-session.js +15 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-in.js +14 -9
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out.js +1 -2
- package/dist/shared/api/storefront/hooks/cart/use-add-product-to-current-cart.js +1 -7
- package/dist/shared/api/storefront/hooks/cart/use-delete-cart-line-by-id.js +1 -4
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart.js +3 -1
- package/dist/shared/api/storefront/hooks/cart/use-patch-cart.d.ts +3 -4
- package/dist/shared/api/storefront/hooks/cart/use-patch-cart.js +6 -8
- package/dist/shared/api/storefront/hooks/cart/use-place-order.d.ts +3 -3
- package/dist/shared/api/storefront/hooks/cart/use-place-order.js +7 -8
- package/dist/shared/api/storefront/hooks/cart/use-update-cart-line-by-id.js +1 -13
- package/dist/shared/api/storefront/hooks/customer/use-fetch-bill-to-addresses.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-bill-to-addresses.js +14 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-ship-to-addresses.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-ship-to-addresses.js +15 -0
- package/dist/shared/api/storefront/hooks/customer/use-update-bill-to-address.d.ts +6 -0
- package/dist/shared/api/storefront/hooks/customer/use-update-bill-to-address.js +17 -0
- package/dist/shared/api/storefront/hooks/payment/use-create-adyen-session.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/payment/use-create-adyen-session.js +10 -0
- package/dist/shared/api/storefront/hooks/payment/use-fetch-adyen-config.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/payment/use-fetch-adyen-config.js +14 -0
- package/dist/shared/api/storefront/hooks/payment/use-invalidate-adyen.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/payment/use-invalidate-adyen.js +9 -0
- package/dist/shared/api/storefront/model/shop.model.d.ts +17 -0
- package/dist/shared/api/storefront/services/cart-service.d.ts +15 -2
- package/dist/shared/api/storefront/services/cart-service.js +68 -3
- package/dist/shared/api/storefront/services/customer-service.d.ts +8 -0
- package/dist/shared/api/storefront/services/customer-service.js +31 -0
- package/dist/shared/api/storefront/services/payment-service.d.ts +8 -0
- package/dist/shared/api/storefront/services/payment-service.js +29 -0
- package/dist/shared/feature-flags/use-feature-flags.d.ts +1 -1
- package/dist/shared/feature-flags/use-feature-flags.js +1 -1
- package/dist/shared/model/address.d.ts +2 -0
- package/dist/shared/model/address.js +7 -0
- package/dist/shared/model/countries.d.ts +225 -0
- package/dist/shared/model/countries.js +260 -0
- package/dist/shared/utils/price.d.ts +38 -0
- package/dist/shared/utils/price.js +39 -1
- package/dist/shared/utils/random.d.ts +10 -0
- package/dist/shared/utils/random.js +16 -0
- package/dist/styles.css +169 -77
- package/dist/tooltip/tooltip.d.ts +9 -0
- package/dist/tooltip/tooltip.js +21 -0
- package/dist/tooltip/tooltip.module.css.js +3 -0
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { config } from '../../../../config.js';
|
|
2
2
|
import { request } from '../../../fetch/request.js';
|
|
3
3
|
|
|
4
|
-
async function fetchCurrentCart() {
|
|
4
|
+
async function fetchCurrentCart({ needFullCart = false, } = { needFullCart: false }) {
|
|
5
5
|
const { body } = await request({
|
|
6
6
|
credentials: 'include',
|
|
7
|
-
url: `${config.SHOP_API_URL}/api/v1/carts/current?expand=shipping%2Cvalidation%2CcartLines%2Crestrictions%2Ccarriers%2CpaymentOptions%2CcostCodes%2Chiddenproducts%2Ctax&forceRecalculation
|
|
7
|
+
url: `${config.SHOP_API_URL}/api/v1/carts/current?expand=shipping%2Cvalidation%2CcartLines%2Crestrictions%2Ccarriers%2CpaymentOptions%2CcostCodes%2Chiddenproducts%2Ctax&forceRecalculation=${String(needFullCart)}${needFullCart ? '&allowInvalidAddress=true' : ''}`,
|
|
8
8
|
});
|
|
9
9
|
return body;
|
|
10
10
|
}
|
|
@@ -124,5 +124,70 @@ async function saveCartForLater({ cart }) {
|
|
|
124
124
|
});
|
|
125
125
|
return body;
|
|
126
126
|
}
|
|
127
|
+
async function postAdyenPayment({ currencyCode, data, orderAmount, returnUrl, webOrderNumber, }) {
|
|
128
|
+
const { body } = await request({
|
|
129
|
+
body: {
|
|
130
|
+
...data,
|
|
131
|
+
amount: {
|
|
132
|
+
currency: currencyCode,
|
|
133
|
+
value: convertToMinorUnits(orderAmount, currencyCode),
|
|
134
|
+
},
|
|
135
|
+
reference: webOrderNumber,
|
|
136
|
+
returnUrl,
|
|
137
|
+
},
|
|
138
|
+
headers: { 'Content-Type': 'application/json' },
|
|
139
|
+
method: 'POST',
|
|
140
|
+
url: `${config.SHOP_API_URL}/api/v1/paymentauthentication/adyenpayment`,
|
|
141
|
+
});
|
|
142
|
+
return body;
|
|
143
|
+
}
|
|
144
|
+
async function getAdyenPaymentDetails({ redirectResult, }) {
|
|
145
|
+
const { body } = await request({
|
|
146
|
+
body: {
|
|
147
|
+
details: {
|
|
148
|
+
redirectResult,
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
headers: { 'Content-Type': 'application/json' },
|
|
152
|
+
method: 'POST',
|
|
153
|
+
url: `${config.SHOP_API_URL}/api/v1/paymentauthentication/adyenpaymentdetails`,
|
|
154
|
+
});
|
|
155
|
+
return body;
|
|
156
|
+
}
|
|
157
|
+
function convertToMinorUnits(value, currencyCode) {
|
|
158
|
+
let valueInMinorUnits;
|
|
159
|
+
switch (currencyCode) {
|
|
160
|
+
case 'CVE':
|
|
161
|
+
case 'DJF':
|
|
162
|
+
case 'GNF':
|
|
163
|
+
case 'IDR':
|
|
164
|
+
case 'JPY':
|
|
165
|
+
case 'KMF':
|
|
166
|
+
case 'KRW':
|
|
167
|
+
case 'PYG':
|
|
168
|
+
case 'RWF':
|
|
169
|
+
case 'UGX':
|
|
170
|
+
case 'VND':
|
|
171
|
+
case 'VUV':
|
|
172
|
+
case 'XAF':
|
|
173
|
+
case 'XOF':
|
|
174
|
+
case 'XPF':
|
|
175
|
+
valueInMinorUnits = value;
|
|
176
|
+
break;
|
|
177
|
+
case 'BHD':
|
|
178
|
+
case 'IQD':
|
|
179
|
+
case 'JOD':
|
|
180
|
+
case 'KWD':
|
|
181
|
+
case 'LYD':
|
|
182
|
+
case 'OMR':
|
|
183
|
+
case 'TND':
|
|
184
|
+
valueInMinorUnits = value * 1000;
|
|
185
|
+
break;
|
|
186
|
+
default:
|
|
187
|
+
valueInMinorUnits = value * 100;
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
return Math.round(valueInMinorUnits);
|
|
191
|
+
}
|
|
127
192
|
|
|
128
|
-
export { addProductToCurrentCart, deleteCartLineById, deleteCurrentCart, fetchCurrentCart, fetchCurrentCartLines, fetchCurrentCartProductAtp, fetchCurrentCartPromotions, fetchCurrentCheckoutAtp, patchCart, placeOrder, saveCartForLater, updateCartLineById };
|
|
193
|
+
export { addProductToCurrentCart, convertToMinorUnits, deleteCartLineById, deleteCurrentCart, fetchCurrentCart, fetchCurrentCartLines, fetchCurrentCartProductAtp, fetchCurrentCartPromotions, fetchCurrentCheckoutAtp, getAdyenPaymentDetails, patchCart, placeOrder, postAdyenPayment, saveCartForLater, updateCartLineById };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BillToCollectionModel, BillToModel, ShipToCollectionModel } from 'shared/api/storefront/model/shop.model';
|
|
2
|
+
export declare function fetchBillToAddresses(): Promise<BillToCollectionModel>;
|
|
3
|
+
export declare function fetchShipToAddresses({ shipToId }: {
|
|
4
|
+
shipToId: string;
|
|
5
|
+
}): Promise<ShipToCollectionModel>;
|
|
6
|
+
export declare function updateBillToAddress({ billTo }: {
|
|
7
|
+
billTo: BillToModel;
|
|
8
|
+
}): Promise<BillToModel>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { config } from '../../../../config.js';
|
|
2
|
+
import { request } from '../../../fetch/request.js';
|
|
3
|
+
|
|
4
|
+
async function fetchBillToAddresses() {
|
|
5
|
+
const { body } = await request({
|
|
6
|
+
credentials: 'include',
|
|
7
|
+
url: `${config.SHOP_API_URL}/api/v1/billtos?pageSize=999`,
|
|
8
|
+
});
|
|
9
|
+
return body;
|
|
10
|
+
}
|
|
11
|
+
async function fetchShipToAddresses({ shipToId }) {
|
|
12
|
+
const { body } = await request({
|
|
13
|
+
credentials: 'include',
|
|
14
|
+
url: `${config.SHOP_API_URL}/api/v1/billtos/${shipToId}/shiptos?pageSize=999`,
|
|
15
|
+
});
|
|
16
|
+
return body;
|
|
17
|
+
}
|
|
18
|
+
async function updateBillToAddress({ billTo }) {
|
|
19
|
+
const { body: updatedBillTo } = await request({
|
|
20
|
+
body: billTo,
|
|
21
|
+
credentials: 'include',
|
|
22
|
+
headers: {
|
|
23
|
+
'Content-Type': 'application/json',
|
|
24
|
+
},
|
|
25
|
+
method: 'PATCH',
|
|
26
|
+
url: `${config.SHOP_API_URL}/api/v1/billtos/${billTo.id}`,
|
|
27
|
+
});
|
|
28
|
+
return updatedBillTo;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { fetchBillToAddresses, fetchShipToAddresses, updateBillToAddress };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AdyenSettings, PaymentAuthenticationModel } from 'shared/api/storefront/model/shop.model';
|
|
2
|
+
export interface CreateAdyenSessionParameters {
|
|
3
|
+
cartId: string | undefined;
|
|
4
|
+
orderAmount: number | undefined;
|
|
5
|
+
returnUrl: string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function createAdyenSession({ cartId, orderAmount, returnUrl, }: CreateAdyenSessionParameters): Promise<PaymentAuthenticationModel>;
|
|
8
|
+
export declare function fetchAdyenConfig(): Promise<AdyenSettings>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { config } from '../../../../config.js';
|
|
2
|
+
import { request } from '../../../fetch/request.js';
|
|
3
|
+
|
|
4
|
+
async function createAdyenSession({ cartId, orderAmount, returnUrl, }) {
|
|
5
|
+
const { body } = await request({
|
|
6
|
+
body: {
|
|
7
|
+
cartId,
|
|
8
|
+
operation: 'initiate',
|
|
9
|
+
orderAmount,
|
|
10
|
+
returnUrl,
|
|
11
|
+
},
|
|
12
|
+
credentials: 'include',
|
|
13
|
+
headers: {
|
|
14
|
+
'Content-Type': 'application/json',
|
|
15
|
+
},
|
|
16
|
+
method: 'POST',
|
|
17
|
+
url: `${config.SHOP_API_URL}/api/v1/paymentauthentication`,
|
|
18
|
+
});
|
|
19
|
+
return body;
|
|
20
|
+
}
|
|
21
|
+
async function fetchAdyenConfig() {
|
|
22
|
+
const { body } = await request({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: `${config.SHOP_API_URL}/api/v1/adyen/config`,
|
|
25
|
+
});
|
|
26
|
+
return body;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { createAdyenSession, fetchAdyenConfig };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Source: src/FrontEnd/modules/client-framework/src/Store/CommonHandlers/ValidateAddress.ts
|
|
2
|
+
const phoneRegex = /^([\s()+./-]*\d\s?(ext)?[\s()+./-]*){10,}$/;
|
|
3
|
+
const validatePhone = (value) => phoneRegex.test(value);
|
|
4
|
+
const emailRegex = /^\w+(["+.-]\w+)*@\w+([.-]\w+)*\.\w+([.-]\w+)*$/;
|
|
5
|
+
const validateEmail = (value) => emailRegex.test(value);
|
|
6
|
+
|
|
7
|
+
export { validateEmail, validatePhone };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
export declare const countries: [{
|
|
2
|
+
readonly abbreviation: "AD";
|
|
3
|
+
readonly id: "a4ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
4
|
+
readonly name: "Andorra";
|
|
5
|
+
readonly properties: {};
|
|
6
|
+
readonly states: [];
|
|
7
|
+
readonly uri: "/api/v1/websites/current/countries/a4ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
8
|
+
}, {
|
|
9
|
+
readonly abbreviation: "AT";
|
|
10
|
+
readonly id: "adab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
11
|
+
readonly name: "Austria";
|
|
12
|
+
readonly properties: {};
|
|
13
|
+
readonly states: [];
|
|
14
|
+
readonly uri: "/api/v1/websites/current/countries/adab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
15
|
+
}, {
|
|
16
|
+
readonly abbreviation: "BE";
|
|
17
|
+
readonly id: "b4ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
18
|
+
readonly name: "België/Belgique";
|
|
19
|
+
readonly properties: {};
|
|
20
|
+
readonly states: [];
|
|
21
|
+
readonly uri: "/api/v1/websites/current/countries/b4ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
22
|
+
}, {
|
|
23
|
+
readonly abbreviation: "BG";
|
|
24
|
+
readonly id: "c1ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
25
|
+
readonly name: "Bulgaria";
|
|
26
|
+
readonly properties: {};
|
|
27
|
+
readonly states: [];
|
|
28
|
+
readonly uri: "/api/v1/websites/current/countries/c1ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
29
|
+
}, {
|
|
30
|
+
readonly abbreviation: "HR";
|
|
31
|
+
readonly id: "d6ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
32
|
+
readonly name: "Croatia";
|
|
33
|
+
readonly properties: {};
|
|
34
|
+
readonly states: [];
|
|
35
|
+
readonly uri: "/api/v1/websites/current/countries/d6ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
36
|
+
}, {
|
|
37
|
+
readonly abbreviation: "CY";
|
|
38
|
+
readonly id: "d9ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
39
|
+
readonly name: "Cyprus";
|
|
40
|
+
readonly properties: {};
|
|
41
|
+
readonly states: [];
|
|
42
|
+
readonly uri: "/api/v1/websites/current/countries/d9ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
43
|
+
}, {
|
|
44
|
+
readonly abbreviation: "CZ";
|
|
45
|
+
readonly id: "daab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
46
|
+
readonly name: "Česká republika";
|
|
47
|
+
readonly properties: {};
|
|
48
|
+
readonly states: [];
|
|
49
|
+
readonly uri: "/api/v1/websites/current/countries/daab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
50
|
+
}, {
|
|
51
|
+
readonly abbreviation: "DK";
|
|
52
|
+
readonly id: "dbab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
53
|
+
readonly name: "Danmark";
|
|
54
|
+
readonly properties: {};
|
|
55
|
+
readonly states: [];
|
|
56
|
+
readonly uri: "/api/v1/websites/current/countries/dbab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
57
|
+
}, {
|
|
58
|
+
readonly abbreviation: "DE";
|
|
59
|
+
readonly id: "f1ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
60
|
+
readonly name: "Germany";
|
|
61
|
+
readonly properties: {};
|
|
62
|
+
readonly states: [];
|
|
63
|
+
readonly uri: "/api/v1/websites/current/countries/f1ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
64
|
+
}, {
|
|
65
|
+
readonly abbreviation: "EE";
|
|
66
|
+
readonly id: "e4ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
67
|
+
readonly name: "Estonia";
|
|
68
|
+
readonly properties: {};
|
|
69
|
+
readonly states: [];
|
|
70
|
+
readonly uri: "/api/v1/websites/current/countries/e4ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
71
|
+
}, {
|
|
72
|
+
readonly abbreviation: "FI";
|
|
73
|
+
readonly id: "e9ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
74
|
+
readonly name: "Finland";
|
|
75
|
+
readonly properties: {};
|
|
76
|
+
readonly states: [];
|
|
77
|
+
readonly uri: "/api/v1/websites/current/countries/e9ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
78
|
+
}, {
|
|
79
|
+
readonly abbreviation: "FR";
|
|
80
|
+
readonly id: "eaab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
81
|
+
readonly name: "France";
|
|
82
|
+
readonly properties: {};
|
|
83
|
+
readonly states: [];
|
|
84
|
+
readonly uri: "/api/v1/websites/current/countries/eaab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
85
|
+
}, {
|
|
86
|
+
readonly abbreviation: "GR";
|
|
87
|
+
readonly id: "f4ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
88
|
+
readonly name: "Greece";
|
|
89
|
+
readonly properties: {};
|
|
90
|
+
readonly states: [];
|
|
91
|
+
readonly uri: "/api/v1/websites/current/countries/f4ab0470-e310-e311-ba31-d43d7e4e88b2";
|
|
92
|
+
}, {
|
|
93
|
+
readonly abbreviation: "HU";
|
|
94
|
+
readonly id: "03ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
95
|
+
readonly name: "Hungary";
|
|
96
|
+
readonly properties: {};
|
|
97
|
+
readonly states: [];
|
|
98
|
+
readonly uri: "/api/v1/websites/current/countries/03ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
99
|
+
}, {
|
|
100
|
+
readonly abbreviation: "IE";
|
|
101
|
+
readonly id: "09ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
102
|
+
readonly name: "Ireland";
|
|
103
|
+
readonly properties: {};
|
|
104
|
+
readonly states: [];
|
|
105
|
+
readonly uri: "/api/v1/websites/current/countries/09ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
106
|
+
}, {
|
|
107
|
+
readonly abbreviation: "IT";
|
|
108
|
+
readonly id: "0cac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
109
|
+
readonly name: "Italia";
|
|
110
|
+
readonly properties: {};
|
|
111
|
+
readonly states: [];
|
|
112
|
+
readonly uri: "/api/v1/websites/current/countries/0cac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
113
|
+
}, {
|
|
114
|
+
readonly abbreviation: "LV";
|
|
115
|
+
readonly id: "19ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
116
|
+
readonly name: "Latvia";
|
|
117
|
+
readonly properties: {};
|
|
118
|
+
readonly states: [];
|
|
119
|
+
readonly uri: "/api/v1/websites/current/countries/19ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
120
|
+
}, {
|
|
121
|
+
readonly abbreviation: "LT";
|
|
122
|
+
readonly id: "1fac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
123
|
+
readonly name: "Lithuania";
|
|
124
|
+
readonly properties: {};
|
|
125
|
+
readonly states: [];
|
|
126
|
+
readonly uri: "/api/v1/websites/current/countries/1fac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
127
|
+
}, {
|
|
128
|
+
readonly abbreviation: "LU";
|
|
129
|
+
readonly id: "20ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
130
|
+
readonly name: "Luxembourg";
|
|
131
|
+
readonly properties: {};
|
|
132
|
+
readonly states: [];
|
|
133
|
+
readonly uri: "/api/v1/websites/current/countries/20ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
134
|
+
}, {
|
|
135
|
+
readonly abbreviation: "MT";
|
|
136
|
+
readonly id: "28ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
137
|
+
readonly name: "Malta";
|
|
138
|
+
readonly properties: {};
|
|
139
|
+
readonly states: [];
|
|
140
|
+
readonly uri: "/api/v1/websites/current/countries/28ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
141
|
+
}, {
|
|
142
|
+
readonly abbreviation: "NO";
|
|
143
|
+
readonly id: "44ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
144
|
+
readonly name: "Norway";
|
|
145
|
+
readonly properties: {};
|
|
146
|
+
readonly states: [];
|
|
147
|
+
readonly uri: "/api/v1/websites/current/countries/44ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
148
|
+
}, {
|
|
149
|
+
readonly abbreviation: "PL";
|
|
150
|
+
readonly id: "4fac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
151
|
+
readonly name: "Poland";
|
|
152
|
+
readonly properties: {};
|
|
153
|
+
readonly states: [];
|
|
154
|
+
readonly uri: "/api/v1/websites/current/countries/4fac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
155
|
+
}, {
|
|
156
|
+
readonly abbreviation: "PT";
|
|
157
|
+
readonly id: "50ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
158
|
+
readonly name: "Portugal";
|
|
159
|
+
readonly properties: {};
|
|
160
|
+
readonly states: [];
|
|
161
|
+
readonly uri: "/api/v1/websites/current/countries/50ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
162
|
+
}, {
|
|
163
|
+
readonly abbreviation: "RO";
|
|
164
|
+
readonly id: "54ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
165
|
+
readonly name: "Romania";
|
|
166
|
+
readonly properties: {};
|
|
167
|
+
readonly states: [];
|
|
168
|
+
readonly uri: "/api/v1/websites/current/countries/54ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
169
|
+
}, {
|
|
170
|
+
readonly abbreviation: "SK";
|
|
171
|
+
readonly id: "68ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
172
|
+
readonly name: "Slovakia";
|
|
173
|
+
readonly properties: {};
|
|
174
|
+
readonly states: [];
|
|
175
|
+
readonly uri: "/api/v1/websites/current/countries/68ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
176
|
+
}, {
|
|
177
|
+
readonly abbreviation: "SI";
|
|
178
|
+
readonly id: "69ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
179
|
+
readonly name: "Slovenia";
|
|
180
|
+
readonly properties: {};
|
|
181
|
+
readonly states: [];
|
|
182
|
+
readonly uri: "/api/v1/websites/current/countries/69ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
183
|
+
}, {
|
|
184
|
+
readonly abbreviation: "ES";
|
|
185
|
+
readonly id: "6fac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
186
|
+
readonly name: "Spain";
|
|
187
|
+
readonly properties: {};
|
|
188
|
+
readonly states: [];
|
|
189
|
+
readonly uri: "/api/v1/websites/current/countries/6fac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
190
|
+
}, {
|
|
191
|
+
readonly abbreviation: "SE";
|
|
192
|
+
readonly id: "75ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
193
|
+
readonly name: "Sweden";
|
|
194
|
+
readonly properties: {};
|
|
195
|
+
readonly states: [];
|
|
196
|
+
readonly uri: "/api/v1/websites/current/countries/75ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
197
|
+
}, {
|
|
198
|
+
readonly abbreviation: "CH";
|
|
199
|
+
readonly id: "76ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
200
|
+
readonly name: "Switzerland";
|
|
201
|
+
readonly properties: {};
|
|
202
|
+
readonly states: [];
|
|
203
|
+
readonly uri: "/api/v1/websites/current/countries/76ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
204
|
+
}, {
|
|
205
|
+
readonly abbreviation: "NL";
|
|
206
|
+
readonly id: "3bac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
207
|
+
readonly name: "The Netherlands";
|
|
208
|
+
readonly properties: {};
|
|
209
|
+
readonly states: [];
|
|
210
|
+
readonly uri: "/api/v1/websites/current/countries/3bac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
211
|
+
}, {
|
|
212
|
+
readonly abbreviation: "GB";
|
|
213
|
+
readonly id: "89ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
214
|
+
readonly name: "United Kingdom";
|
|
215
|
+
readonly properties: {};
|
|
216
|
+
readonly states: [];
|
|
217
|
+
readonly uri: "/api/v1/websites/current/countries/89ac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
218
|
+
}, {
|
|
219
|
+
readonly abbreviation: "US";
|
|
220
|
+
readonly id: "8aac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
221
|
+
readonly name: "United States";
|
|
222
|
+
readonly properties: {};
|
|
223
|
+
readonly states: [];
|
|
224
|
+
readonly uri: "/api/v1/websites/current/countries/8aac0470-e310-e311-ba31-d43d7e4e88b2";
|
|
225
|
+
}];
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
const countries = [
|
|
2
|
+
{
|
|
3
|
+
abbreviation: 'AD',
|
|
4
|
+
id: 'a4ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
5
|
+
name: 'Andorra',
|
|
6
|
+
properties: {},
|
|
7
|
+
states: [],
|
|
8
|
+
uri: '/api/v1/websites/current/countries/a4ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
abbreviation: 'AT',
|
|
12
|
+
id: 'adab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
13
|
+
name: 'Austria',
|
|
14
|
+
properties: {},
|
|
15
|
+
states: [],
|
|
16
|
+
uri: '/api/v1/websites/current/countries/adab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
abbreviation: 'BE',
|
|
20
|
+
id: 'b4ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
21
|
+
name: 'België/Belgique',
|
|
22
|
+
properties: {},
|
|
23
|
+
states: [],
|
|
24
|
+
uri: '/api/v1/websites/current/countries/b4ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
abbreviation: 'BG',
|
|
28
|
+
id: 'c1ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
29
|
+
name: 'Bulgaria',
|
|
30
|
+
properties: {},
|
|
31
|
+
states: [],
|
|
32
|
+
uri: '/api/v1/websites/current/countries/c1ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
abbreviation: 'HR',
|
|
36
|
+
id: 'd6ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
37
|
+
name: 'Croatia',
|
|
38
|
+
properties: {},
|
|
39
|
+
states: [],
|
|
40
|
+
uri: '/api/v1/websites/current/countries/d6ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
abbreviation: 'CY',
|
|
44
|
+
id: 'd9ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
45
|
+
name: 'Cyprus',
|
|
46
|
+
properties: {},
|
|
47
|
+
states: [],
|
|
48
|
+
uri: '/api/v1/websites/current/countries/d9ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
abbreviation: 'CZ',
|
|
52
|
+
id: 'daab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
53
|
+
name: 'Česká republika',
|
|
54
|
+
properties: {},
|
|
55
|
+
states: [],
|
|
56
|
+
uri: '/api/v1/websites/current/countries/daab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
abbreviation: 'DK',
|
|
60
|
+
id: 'dbab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
61
|
+
name: 'Danmark',
|
|
62
|
+
properties: {},
|
|
63
|
+
states: [],
|
|
64
|
+
uri: '/api/v1/websites/current/countries/dbab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
abbreviation: 'DE',
|
|
68
|
+
id: 'f1ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
69
|
+
name: 'Germany',
|
|
70
|
+
properties: {},
|
|
71
|
+
states: [],
|
|
72
|
+
uri: '/api/v1/websites/current/countries/f1ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
abbreviation: 'EE',
|
|
76
|
+
id: 'e4ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
77
|
+
name: 'Estonia',
|
|
78
|
+
properties: {},
|
|
79
|
+
states: [],
|
|
80
|
+
uri: '/api/v1/websites/current/countries/e4ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
abbreviation: 'FI',
|
|
84
|
+
id: 'e9ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
85
|
+
name: 'Finland',
|
|
86
|
+
properties: {},
|
|
87
|
+
states: [],
|
|
88
|
+
uri: '/api/v1/websites/current/countries/e9ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
abbreviation: 'FR',
|
|
92
|
+
id: 'eaab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
93
|
+
name: 'France',
|
|
94
|
+
properties: {},
|
|
95
|
+
states: [],
|
|
96
|
+
uri: '/api/v1/websites/current/countries/eaab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
abbreviation: 'GR',
|
|
100
|
+
id: 'f4ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
101
|
+
name: 'Greece',
|
|
102
|
+
properties: {},
|
|
103
|
+
states: [],
|
|
104
|
+
uri: '/api/v1/websites/current/countries/f4ab0470-e310-e311-ba31-d43d7e4e88b2',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
abbreviation: 'HU',
|
|
108
|
+
id: '03ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
109
|
+
name: 'Hungary',
|
|
110
|
+
properties: {},
|
|
111
|
+
states: [],
|
|
112
|
+
uri: '/api/v1/websites/current/countries/03ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
abbreviation: 'IE',
|
|
116
|
+
id: '09ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
117
|
+
name: 'Ireland',
|
|
118
|
+
properties: {},
|
|
119
|
+
states: [],
|
|
120
|
+
uri: '/api/v1/websites/current/countries/09ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
abbreviation: 'IT',
|
|
124
|
+
id: '0cac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
125
|
+
name: 'Italia',
|
|
126
|
+
properties: {},
|
|
127
|
+
states: [],
|
|
128
|
+
uri: '/api/v1/websites/current/countries/0cac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
abbreviation: 'LV',
|
|
132
|
+
id: '19ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
133
|
+
name: 'Latvia',
|
|
134
|
+
properties: {},
|
|
135
|
+
states: [],
|
|
136
|
+
uri: '/api/v1/websites/current/countries/19ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
abbreviation: 'LT',
|
|
140
|
+
id: '1fac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
141
|
+
name: 'Lithuania',
|
|
142
|
+
properties: {},
|
|
143
|
+
states: [],
|
|
144
|
+
uri: '/api/v1/websites/current/countries/1fac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
abbreviation: 'LU',
|
|
148
|
+
id: '20ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
149
|
+
name: 'Luxembourg',
|
|
150
|
+
properties: {},
|
|
151
|
+
states: [],
|
|
152
|
+
uri: '/api/v1/websites/current/countries/20ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
abbreviation: 'MT',
|
|
156
|
+
id: '28ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
157
|
+
name: 'Malta',
|
|
158
|
+
properties: {},
|
|
159
|
+
states: [],
|
|
160
|
+
uri: '/api/v1/websites/current/countries/28ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
abbreviation: 'NO',
|
|
164
|
+
id: '44ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
165
|
+
name: 'Norway',
|
|
166
|
+
properties: {},
|
|
167
|
+
states: [],
|
|
168
|
+
uri: '/api/v1/websites/current/countries/44ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
abbreviation: 'PL',
|
|
172
|
+
id: '4fac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
173
|
+
name: 'Poland',
|
|
174
|
+
properties: {},
|
|
175
|
+
states: [],
|
|
176
|
+
uri: '/api/v1/websites/current/countries/4fac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
abbreviation: 'PT',
|
|
180
|
+
id: '50ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
181
|
+
name: 'Portugal',
|
|
182
|
+
properties: {},
|
|
183
|
+
states: [],
|
|
184
|
+
uri: '/api/v1/websites/current/countries/50ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
abbreviation: 'RO',
|
|
188
|
+
id: '54ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
189
|
+
name: 'Romania',
|
|
190
|
+
properties: {},
|
|
191
|
+
states: [],
|
|
192
|
+
uri: '/api/v1/websites/current/countries/54ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
abbreviation: 'SK',
|
|
196
|
+
id: '68ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
197
|
+
name: 'Slovakia',
|
|
198
|
+
properties: {},
|
|
199
|
+
states: [],
|
|
200
|
+
uri: '/api/v1/websites/current/countries/68ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
abbreviation: 'SI',
|
|
204
|
+
id: '69ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
205
|
+
name: 'Slovenia',
|
|
206
|
+
properties: {},
|
|
207
|
+
states: [],
|
|
208
|
+
uri: '/api/v1/websites/current/countries/69ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
abbreviation: 'ES',
|
|
212
|
+
id: '6fac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
213
|
+
name: 'Spain',
|
|
214
|
+
properties: {},
|
|
215
|
+
states: [],
|
|
216
|
+
uri: '/api/v1/websites/current/countries/6fac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
abbreviation: 'SE',
|
|
220
|
+
id: '75ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
221
|
+
name: 'Sweden',
|
|
222
|
+
properties: {},
|
|
223
|
+
states: [],
|
|
224
|
+
uri: '/api/v1/websites/current/countries/75ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
abbreviation: 'CH',
|
|
228
|
+
id: '76ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
229
|
+
name: 'Switzerland',
|
|
230
|
+
properties: {},
|
|
231
|
+
states: [],
|
|
232
|
+
uri: '/api/v1/websites/current/countries/76ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
abbreviation: 'NL',
|
|
236
|
+
id: '3bac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
237
|
+
name: 'The Netherlands',
|
|
238
|
+
properties: {},
|
|
239
|
+
states: [],
|
|
240
|
+
uri: '/api/v1/websites/current/countries/3bac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
abbreviation: 'GB',
|
|
244
|
+
id: '89ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
245
|
+
name: 'United Kingdom',
|
|
246
|
+
properties: {},
|
|
247
|
+
states: [],
|
|
248
|
+
uri: '/api/v1/websites/current/countries/89ac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
abbreviation: 'US',
|
|
252
|
+
id: '8aac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
253
|
+
name: 'United States',
|
|
254
|
+
properties: {},
|
|
255
|
+
states: [],
|
|
256
|
+
uri: '/api/v1/websites/current/countries/8aac0470-e310-e311-ba31-d43d7e4e88b2',
|
|
257
|
+
},
|
|
258
|
+
];
|
|
259
|
+
|
|
260
|
+
export { countries };
|