@becollective/utils 2.0.7 → 2.0.9
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.
|
@@ -1,4 +1,120 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const europeanCountryCodes: string[];
|
|
2
|
+
export declare const regionOptions: {
|
|
3
|
+
au: {
|
|
4
|
+
name: string;
|
|
5
|
+
domain: string;
|
|
6
|
+
hostname: string;
|
|
7
|
+
trademark: string;
|
|
8
|
+
twitter: string;
|
|
9
|
+
facebook: string;
|
|
10
|
+
instagram: string;
|
|
11
|
+
linkedin: string;
|
|
12
|
+
privacyPolicyUrl: string;
|
|
13
|
+
termsAndConditionsUrl: string;
|
|
14
|
+
privacyPolicyVersion: number;
|
|
15
|
+
termsAndConditionsVersion: number;
|
|
16
|
+
address: string;
|
|
17
|
+
};
|
|
18
|
+
nz: {
|
|
19
|
+
name: string;
|
|
20
|
+
domain: string;
|
|
21
|
+
hostname: string;
|
|
22
|
+
trademark: string;
|
|
23
|
+
twitter: string;
|
|
24
|
+
facebook: string;
|
|
25
|
+
instagram: string;
|
|
26
|
+
linkedin: string;
|
|
27
|
+
privacyPolicyUrl: string;
|
|
28
|
+
termsAndConditionsUrl: string;
|
|
29
|
+
privacyPolicyVersion: number;
|
|
30
|
+
termsAndConditionsVersion: number;
|
|
31
|
+
address: string;
|
|
32
|
+
};
|
|
33
|
+
uk: {
|
|
34
|
+
name: string;
|
|
35
|
+
domain: string;
|
|
36
|
+
hostname: string;
|
|
37
|
+
trademark: string;
|
|
38
|
+
twitter: string;
|
|
39
|
+
facebook: string;
|
|
40
|
+
instagram: string;
|
|
41
|
+
linkedin: string;
|
|
42
|
+
privacyPolicyUrl: string;
|
|
43
|
+
termsAndConditionsUrl: string;
|
|
44
|
+
privacyPolicyVersion: number;
|
|
45
|
+
termsAndConditionsVersion: number;
|
|
46
|
+
address: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const countryOptions: {
|
|
50
|
+
AU: {
|
|
51
|
+
financialYearEndDate: {
|
|
52
|
+
month: number;
|
|
53
|
+
date: number;
|
|
54
|
+
};
|
|
55
|
+
distanceUnit: {
|
|
56
|
+
long: string;
|
|
57
|
+
short: string;
|
|
58
|
+
};
|
|
59
|
+
regions: {
|
|
60
|
+
long: string;
|
|
61
|
+
short: string;
|
|
62
|
+
}[];
|
|
63
|
+
insuranceTypes: {
|
|
64
|
+
type: string;
|
|
65
|
+
label: string;
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
NZ: {
|
|
69
|
+
financialYearEndDate: {
|
|
70
|
+
month: number;
|
|
71
|
+
date: number;
|
|
72
|
+
};
|
|
73
|
+
distanceUnit: {
|
|
74
|
+
long: string;
|
|
75
|
+
short: string;
|
|
76
|
+
};
|
|
77
|
+
insuranceTypes: {
|
|
78
|
+
type: string;
|
|
79
|
+
label: string;
|
|
80
|
+
}[];
|
|
81
|
+
};
|
|
82
|
+
GB: {
|
|
83
|
+
financialYearEndDate: {
|
|
84
|
+
month: number;
|
|
85
|
+
date: number;
|
|
86
|
+
};
|
|
87
|
+
distanceUnit: {
|
|
88
|
+
long: string;
|
|
89
|
+
short: string;
|
|
90
|
+
};
|
|
91
|
+
insuranceTypes: {
|
|
92
|
+
type: string;
|
|
93
|
+
label: string;
|
|
94
|
+
}[];
|
|
95
|
+
};
|
|
96
|
+
IE: {
|
|
97
|
+
financialYearEndDate: {
|
|
98
|
+
month: number;
|
|
99
|
+
date: number;
|
|
100
|
+
};
|
|
101
|
+
distanceUnit: {
|
|
102
|
+
long: string;
|
|
103
|
+
short: string;
|
|
104
|
+
};
|
|
105
|
+
insuranceTypes: {
|
|
106
|
+
type: string;
|
|
107
|
+
label: string;
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
110
|
+
Others: {
|
|
111
|
+
insuranceTypes: {
|
|
112
|
+
type: string;
|
|
113
|
+
label: string;
|
|
114
|
+
}[];
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
export declare const locales: {
|
|
2
118
|
europeanCountryCodes: string[];
|
|
3
119
|
regionOptions: {
|
|
4
120
|
au: {
|
|
@@ -116,4 +232,4 @@ declare const _default: {
|
|
|
116
232
|
};
|
|
117
233
|
};
|
|
118
234
|
};
|
|
119
|
-
export default
|
|
235
|
+
export default locales;
|
package/lib/constants/locales.js
CHANGED
|
@@ -3,189 +3,194 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.locales = exports.countryOptions = exports.regionOptions = exports.europeanCountryCodes = void 0;
|
|
6
7
|
const distancesUnits_1 = __importDefault(require("./distancesUnits"));
|
|
7
8
|
const insuranceTypes_1 = __importDefault(require("./insuranceTypes"));
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
address: 'Level 16, 300 Flinders Street, Melbourne, VIC 3000',
|
|
71
|
-
},
|
|
72
|
-
nz: {
|
|
73
|
-
name: 'New Zealand',
|
|
74
|
-
domain: 'https://nz.becollective.com',
|
|
75
|
-
hostname: 'nz.becollective.com',
|
|
76
|
-
trademark: 'Be Collective New Zealand Limited',
|
|
77
|
-
twitter: 'https://twitter.com/BeCollective_',
|
|
78
|
-
facebook: 'https://www.facebook.com/becollectivenz/',
|
|
79
|
-
instagram: 'https://www.instagram.com/becollective_',
|
|
80
|
-
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
81
|
-
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Global-Privacy-Policy-September-2021.pdf',
|
|
82
|
-
termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Global-General-Terms-February-2023.pdf',
|
|
83
|
-
privacyPolicyVersion: 2,
|
|
84
|
-
termsAndConditionsVersion: 6,
|
|
85
|
-
address: 'Level 3 Zephyr House, 82 Willis Street, Wellington',
|
|
86
|
-
},
|
|
87
|
-
// eu: {
|
|
88
|
-
// name: 'Europe',
|
|
89
|
-
// domain: 'https://eu.becollective.com',
|
|
90
|
-
// hostname: 'eu.becollective.com',
|
|
91
|
-
// trademark: 'Be Collective Europe Limited',
|
|
92
|
-
// twitter: 'https://twitter.com/BeCollective_',
|
|
93
|
-
// facebook: 'https://www.facebook.com/Be-Collective-Europe-2168455776525016/',
|
|
94
|
-
// instagram: 'https://www.instagram.com/becollective_',
|
|
95
|
-
// linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
96
|
-
// privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-Privacy-Notice-December-2020.pdf',
|
|
97
|
-
// termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-General-Terms-May-2023.pdf',
|
|
98
|
-
// privacyPolicyVersion: 2,
|
|
99
|
-
// termsAndConditionsVersion: 4,
|
|
100
|
-
// address: 'Tintagel House, 92 Albert Embankment, Lambeth, London, SE1 7TY',
|
|
101
|
-
// },
|
|
102
|
-
uk: {
|
|
103
|
-
name: 'United Kingdom',
|
|
104
|
-
domain: 'https://uk.becollective.com',
|
|
105
|
-
hostname: 'uk.becollective.com',
|
|
106
|
-
trademark: 'Be Collective Europe Limited',
|
|
107
|
-
twitter: 'https://twitter.com/BeCollective_',
|
|
108
|
-
facebook: 'https://www.facebook.com/Be-Collective-Europe-2168455776525016/',
|
|
109
|
-
instagram: 'https://www.instagram.com/becollective_',
|
|
110
|
-
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
111
|
-
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-Privacy-Notice-December-2020.pdf',
|
|
112
|
-
termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-General-Terms-May-2023.pdf',
|
|
113
|
-
privacyPolicyVersion: 2,
|
|
114
|
-
termsAndConditionsVersion: 4,
|
|
115
|
-
address: 'Tintagel House, 92 Albert Embankment, Lambeth, London, SE1 7TY',
|
|
116
|
-
},
|
|
9
|
+
exports.europeanCountryCodes = [
|
|
10
|
+
'AL',
|
|
11
|
+
'AD',
|
|
12
|
+
'AM',
|
|
13
|
+
'AT',
|
|
14
|
+
'BY',
|
|
15
|
+
'BE',
|
|
16
|
+
'BA',
|
|
17
|
+
'BG',
|
|
18
|
+
'CH',
|
|
19
|
+
'CY',
|
|
20
|
+
'CZ',
|
|
21
|
+
'DE',
|
|
22
|
+
'DK',
|
|
23
|
+
'EE',
|
|
24
|
+
'ES',
|
|
25
|
+
'FO',
|
|
26
|
+
'FI',
|
|
27
|
+
'FR',
|
|
28
|
+
'GE',
|
|
29
|
+
'VA',
|
|
30
|
+
'GI',
|
|
31
|
+
'GR',
|
|
32
|
+
'HU',
|
|
33
|
+
'HR',
|
|
34
|
+
'IE',
|
|
35
|
+
'IS',
|
|
36
|
+
'IT',
|
|
37
|
+
'LT',
|
|
38
|
+
'LU',
|
|
39
|
+
'LV',
|
|
40
|
+
'MC',
|
|
41
|
+
'MK',
|
|
42
|
+
'MT',
|
|
43
|
+
'NO',
|
|
44
|
+
'NL',
|
|
45
|
+
'PO',
|
|
46
|
+
'PT',
|
|
47
|
+
'RO',
|
|
48
|
+
'RU',
|
|
49
|
+
'SE',
|
|
50
|
+
'SI',
|
|
51
|
+
'SK',
|
|
52
|
+
'SM',
|
|
53
|
+
'TR',
|
|
54
|
+
'UA',
|
|
55
|
+
];
|
|
56
|
+
exports.regionOptions = {
|
|
57
|
+
au: {
|
|
58
|
+
name: 'Australia',
|
|
59
|
+
domain: 'https://app.becollective.com',
|
|
60
|
+
hostname: 'app.becollective.com',
|
|
61
|
+
trademark: 'Be Collective International Limited',
|
|
62
|
+
twitter: 'https://twitter.com/BeCollective_',
|
|
63
|
+
facebook: 'https://www.facebook.com/becollectiveintl/',
|
|
64
|
+
instagram: 'https://www.instagram.com/becollective_',
|
|
65
|
+
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
66
|
+
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Global-Privacy-Policy-September-2021.pdf',
|
|
67
|
+
termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Global-General-Terms-February-2023.pdf',
|
|
68
|
+
privacyPolicyVersion: 2,
|
|
69
|
+
termsAndConditionsVersion: 6,
|
|
70
|
+
address: 'Level 16, 300 Flinders Street, Melbourne, VIC 3000',
|
|
117
71
|
},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
72
|
+
nz: {
|
|
73
|
+
name: 'New Zealand',
|
|
74
|
+
domain: 'https://nz.becollective.com',
|
|
75
|
+
hostname: 'nz.becollective.com',
|
|
76
|
+
trademark: 'Be Collective New Zealand Limited',
|
|
77
|
+
twitter: 'https://twitter.com/BeCollective_',
|
|
78
|
+
facebook: 'https://www.facebook.com/becollectivenz/',
|
|
79
|
+
instagram: 'https://www.instagram.com/becollective_',
|
|
80
|
+
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
81
|
+
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Global-Privacy-Policy-September-2021.pdf',
|
|
82
|
+
termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Global-General-Terms-February-2023.pdf',
|
|
83
|
+
privacyPolicyVersion: 2,
|
|
84
|
+
termsAndConditionsVersion: 6,
|
|
85
|
+
address: 'Level 3 Zephyr House, 82 Willis Street, Wellington',
|
|
86
|
+
},
|
|
87
|
+
// eu: {
|
|
88
|
+
// name: 'Europe',
|
|
89
|
+
// domain: 'https://eu.becollective.com',
|
|
90
|
+
// hostname: 'eu.becollective.com',
|
|
91
|
+
// trademark: 'Be Collective Europe Limited',
|
|
92
|
+
// twitter: 'https://twitter.com/BeCollective_',
|
|
93
|
+
// facebook: 'https://www.facebook.com/Be-Collective-Europe-2168455776525016/',
|
|
94
|
+
// instagram: 'https://www.instagram.com/becollective_',
|
|
95
|
+
// linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
96
|
+
// privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-Privacy-Notice-December-2020.pdf',
|
|
97
|
+
// termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-General-Terms-May-2023.pdf',
|
|
98
|
+
// privacyPolicyVersion: 2,
|
|
99
|
+
// termsAndConditionsVersion: 4,
|
|
100
|
+
// address: 'Tintagel House, 92 Albert Embankment, Lambeth, London, SE1 7TY',
|
|
101
|
+
// },
|
|
102
|
+
uk: {
|
|
103
|
+
name: 'United Kingdom',
|
|
104
|
+
domain: 'https://uk.becollective.com',
|
|
105
|
+
hostname: 'uk.becollective.com',
|
|
106
|
+
trademark: 'Be Collective Europe Limited',
|
|
107
|
+
twitter: 'https://twitter.com/BeCollective_',
|
|
108
|
+
facebook: 'https://www.facebook.com/Be-Collective-Europe-2168455776525016/',
|
|
109
|
+
instagram: 'https://www.instagram.com/becollective_',
|
|
110
|
+
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
111
|
+
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-Privacy-Notice-December-2020.pdf',
|
|
112
|
+
termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-General-Terms-May-2023.pdf',
|
|
113
|
+
privacyPolicyVersion: 2,
|
|
114
|
+
termsAndConditionsVersion: 4,
|
|
115
|
+
address: 'Tintagel House, 92 Albert Embankment, Lambeth, London, SE1 7TY',
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
// Financial years from https://www.cia.gov/library/publications/the-world-factbook/fields/228.html
|
|
119
|
+
exports.countryOptions = {
|
|
120
|
+
AU: {
|
|
121
|
+
financialYearEndDate: {
|
|
122
|
+
month: 5,
|
|
123
|
+
date: 30,
|
|
161
124
|
},
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
125
|
+
distanceUnit: distancesUnits_1.default.km,
|
|
126
|
+
regions: [
|
|
127
|
+
{
|
|
128
|
+
long: 'Australian Capital Territory',
|
|
129
|
+
short: 'ACT',
|
|
166
130
|
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
GB: {
|
|
171
|
-
financialYearEndDate: {
|
|
172
|
-
month: 3,
|
|
173
|
-
date: 5,
|
|
131
|
+
{
|
|
132
|
+
long: 'New South Wales',
|
|
133
|
+
short: 'NSW',
|
|
174
134
|
},
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
date: 31,
|
|
135
|
+
{
|
|
136
|
+
long: 'Northern Territory',
|
|
137
|
+
short: 'NT',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
long: 'Queensland',
|
|
141
|
+
short: 'QLD',
|
|
183
142
|
},
|
|
184
|
-
|
|
185
|
-
|
|
143
|
+
{
|
|
144
|
+
long: 'South Australia',
|
|
145
|
+
short: 'SA',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
long: 'Tasmania',
|
|
149
|
+
short: 'TAS',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
long: 'Victoria',
|
|
153
|
+
short: 'VIC',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
long: 'Western Australia',
|
|
157
|
+
short: 'WA',
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
insuranceTypes: [insuranceTypes_1.default.publicLiabilityAU, insuranceTypes_1.default.volunteerAccidentAU],
|
|
161
|
+
},
|
|
162
|
+
NZ: {
|
|
163
|
+
financialYearEndDate: {
|
|
164
|
+
month: 2,
|
|
165
|
+
date: 31,
|
|
186
166
|
},
|
|
187
|
-
|
|
188
|
-
|
|
167
|
+
distanceUnit: distancesUnits_1.default.km,
|
|
168
|
+
insuranceTypes: [insuranceTypes_1.default.publicLiabilityNZ, insuranceTypes_1.default.volunteerAccidentNZ],
|
|
169
|
+
},
|
|
170
|
+
GB: {
|
|
171
|
+
financialYearEndDate: {
|
|
172
|
+
month: 3,
|
|
173
|
+
date: 5,
|
|
174
|
+
},
|
|
175
|
+
distanceUnit: distancesUnits_1.default.mi,
|
|
176
|
+
insuranceTypes: [insuranceTypes_1.default.publicLiabilityGB, insuranceTypes_1.default.volunteerAccidentGB],
|
|
177
|
+
},
|
|
178
|
+
// Reminder: this is Republic of Ireland. Northern Ireland is within GB.
|
|
179
|
+
IE: {
|
|
180
|
+
financialYearEndDate: {
|
|
181
|
+
month: 11,
|
|
182
|
+
date: 31,
|
|
189
183
|
},
|
|
184
|
+
distanceUnit: distancesUnits_1.default.km,
|
|
185
|
+
insuranceTypes: [insuranceTypes_1.default.publicLiabilityOthers, insuranceTypes_1.default.volunteerAccidentOthers],
|
|
190
186
|
},
|
|
187
|
+
Others: {
|
|
188
|
+
insuranceTypes: [insuranceTypes_1.default.publicLiabilityOthers, insuranceTypes_1.default.volunteerAccidentOthers],
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
exports.locales = {
|
|
192
|
+
europeanCountryCodes: exports.europeanCountryCodes,
|
|
193
|
+
regionOptions: exports.regionOptions,
|
|
194
|
+
countryOptions: exports.countryOptions,
|
|
191
195
|
};
|
|
196
|
+
exports.default = exports.locales;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.subscriptions = void 0;
|
|
3
|
+
exports.subscriptions = exports.tierValues = void 0;
|
|
4
|
+
exports.tierValues = {
|
|
5
|
+
none: 0, // none of the below tiers
|
|
6
|
+
standard: 1,
|
|
7
|
+
plus: 2,
|
|
8
|
+
pro: 3,
|
|
9
|
+
};
|
|
4
10
|
exports.subscriptions = {
|
|
5
|
-
tierValues:
|
|
6
|
-
none: 0, // none of the below tiers
|
|
7
|
-
standard: 1,
|
|
8
|
-
plus: 2,
|
|
9
|
-
pro: 3,
|
|
10
|
-
},
|
|
11
|
+
tierValues: exports.tierValues,
|
|
11
12
|
};
|
|
12
13
|
exports.default = exports.subscriptions;
|
package/package.json
CHANGED
package/src/constants/locales.ts
CHANGED
|
@@ -1,189 +1,197 @@
|
|
|
1
1
|
import distanceUnits from './distancesUnits';
|
|
2
2
|
import insuranceTypes from './insuranceTypes';
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
nz: {
|
|
70
|
-
name: 'New Zealand',
|
|
71
|
-
domain: 'https://nz.becollective.com',
|
|
72
|
-
hostname: 'nz.becollective.com',
|
|
73
|
-
trademark: 'Be Collective New Zealand Limited',
|
|
74
|
-
twitter: 'https://twitter.com/BeCollective_',
|
|
75
|
-
facebook: 'https://www.facebook.com/becollectivenz/',
|
|
76
|
-
instagram: 'https://www.instagram.com/becollective_',
|
|
77
|
-
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
78
|
-
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Global-Privacy-Policy-September-2021.pdf',
|
|
79
|
-
termsAndConditionsUrl:
|
|
80
|
-
'https://www.becollective.com/documents/Be-Collective-Global-General-Terms-February-2023.pdf',
|
|
81
|
-
privacyPolicyVersion: 2,
|
|
82
|
-
termsAndConditionsVersion: 6,
|
|
83
|
-
address: 'Level 3 Zephyr House, 82 Willis Street, Wellington',
|
|
84
|
-
},
|
|
85
|
-
// eu: {
|
|
86
|
-
// name: 'Europe',
|
|
87
|
-
// domain: 'https://eu.becollective.com',
|
|
88
|
-
// hostname: 'eu.becollective.com',
|
|
89
|
-
// trademark: 'Be Collective Europe Limited',
|
|
90
|
-
// twitter: 'https://twitter.com/BeCollective_',
|
|
91
|
-
// facebook: 'https://www.facebook.com/Be-Collective-Europe-2168455776525016/',
|
|
92
|
-
// instagram: 'https://www.instagram.com/becollective_',
|
|
93
|
-
// linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
94
|
-
// privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-Privacy-Notice-December-2020.pdf',
|
|
95
|
-
// termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-General-Terms-May-2023.pdf',
|
|
96
|
-
// privacyPolicyVersion: 2,
|
|
97
|
-
// termsAndConditionsVersion: 4,
|
|
98
|
-
// address: 'Tintagel House, 92 Albert Embankment, Lambeth, London, SE1 7TY',
|
|
99
|
-
// },
|
|
100
|
-
uk: {
|
|
101
|
-
name: 'United Kingdom',
|
|
102
|
-
domain: 'https://uk.becollective.com',
|
|
103
|
-
hostname: 'uk.becollective.com',
|
|
104
|
-
trademark: 'Be Collective Europe Limited',
|
|
105
|
-
twitter: 'https://twitter.com/BeCollective_',
|
|
106
|
-
facebook: 'https://www.facebook.com/Be-Collective-Europe-2168455776525016/',
|
|
107
|
-
instagram: 'https://www.instagram.com/becollective_',
|
|
108
|
-
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
109
|
-
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-Privacy-Notice-December-2020.pdf',
|
|
110
|
-
termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-General-Terms-May-2023.pdf',
|
|
111
|
-
privacyPolicyVersion: 2,
|
|
112
|
-
termsAndConditionsVersion: 4,
|
|
113
|
-
address: 'Tintagel House, 92 Albert Embankment, Lambeth, London, SE1 7TY',
|
|
114
|
-
},
|
|
4
|
+
export const europeanCountryCodes = [
|
|
5
|
+
'AL',
|
|
6
|
+
'AD',
|
|
7
|
+
'AM',
|
|
8
|
+
'AT',
|
|
9
|
+
'BY',
|
|
10
|
+
'BE',
|
|
11
|
+
'BA',
|
|
12
|
+
'BG',
|
|
13
|
+
'CH',
|
|
14
|
+
'CY',
|
|
15
|
+
'CZ',
|
|
16
|
+
'DE',
|
|
17
|
+
'DK',
|
|
18
|
+
'EE',
|
|
19
|
+
'ES',
|
|
20
|
+
'FO',
|
|
21
|
+
'FI',
|
|
22
|
+
'FR',
|
|
23
|
+
'GE',
|
|
24
|
+
'VA',
|
|
25
|
+
'GI',
|
|
26
|
+
'GR',
|
|
27
|
+
'HU',
|
|
28
|
+
'HR',
|
|
29
|
+
'IE',
|
|
30
|
+
'IS',
|
|
31
|
+
'IT',
|
|
32
|
+
'LT',
|
|
33
|
+
'LU',
|
|
34
|
+
'LV',
|
|
35
|
+
'MC',
|
|
36
|
+
'MK',
|
|
37
|
+
'MT',
|
|
38
|
+
'NO',
|
|
39
|
+
'NL',
|
|
40
|
+
'PO',
|
|
41
|
+
'PT',
|
|
42
|
+
'RO',
|
|
43
|
+
'RU',
|
|
44
|
+
'SE',
|
|
45
|
+
'SI',
|
|
46
|
+
'SK',
|
|
47
|
+
'SM',
|
|
48
|
+
'TR',
|
|
49
|
+
'UA',
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
export const regionOptions = {
|
|
53
|
+
au: {
|
|
54
|
+
name: 'Australia',
|
|
55
|
+
domain: 'https://app.becollective.com',
|
|
56
|
+
hostname: 'app.becollective.com',
|
|
57
|
+
trademark: 'Be Collective International Limited',
|
|
58
|
+
twitter: 'https://twitter.com/BeCollective_',
|
|
59
|
+
facebook: 'https://www.facebook.com/becollectiveintl/',
|
|
60
|
+
instagram: 'https://www.instagram.com/becollective_',
|
|
61
|
+
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
62
|
+
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Global-Privacy-Policy-September-2021.pdf',
|
|
63
|
+
termsAndConditionsUrl:
|
|
64
|
+
'https://www.becollective.com/documents/Be-Collective-Global-General-Terms-February-2023.pdf',
|
|
65
|
+
privacyPolicyVersion: 2,
|
|
66
|
+
termsAndConditionsVersion: 6,
|
|
67
|
+
address: 'Level 16, 300 Flinders Street, Melbourne, VIC 3000',
|
|
115
68
|
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
69
|
+
nz: {
|
|
70
|
+
name: 'New Zealand',
|
|
71
|
+
domain: 'https://nz.becollective.com',
|
|
72
|
+
hostname: 'nz.becollective.com',
|
|
73
|
+
trademark: 'Be Collective New Zealand Limited',
|
|
74
|
+
twitter: 'https://twitter.com/BeCollective_',
|
|
75
|
+
facebook: 'https://www.facebook.com/becollectivenz/',
|
|
76
|
+
instagram: 'https://www.instagram.com/becollective_',
|
|
77
|
+
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
78
|
+
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Global-Privacy-Policy-September-2021.pdf',
|
|
79
|
+
termsAndConditionsUrl:
|
|
80
|
+
'https://www.becollective.com/documents/Be-Collective-Global-General-Terms-February-2023.pdf',
|
|
81
|
+
privacyPolicyVersion: 2,
|
|
82
|
+
termsAndConditionsVersion: 6,
|
|
83
|
+
address: 'Level 3 Zephyr House, 82 Willis Street, Wellington',
|
|
84
|
+
},
|
|
85
|
+
// eu: {
|
|
86
|
+
// name: 'Europe',
|
|
87
|
+
// domain: 'https://eu.becollective.com',
|
|
88
|
+
// hostname: 'eu.becollective.com',
|
|
89
|
+
// trademark: 'Be Collective Europe Limited',
|
|
90
|
+
// twitter: 'https://twitter.com/BeCollective_',
|
|
91
|
+
// facebook: 'https://www.facebook.com/Be-Collective-Europe-2168455776525016/',
|
|
92
|
+
// instagram: 'https://www.instagram.com/becollective_',
|
|
93
|
+
// linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
94
|
+
// privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-Privacy-Notice-December-2020.pdf',
|
|
95
|
+
// termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-General-Terms-May-2023.pdf',
|
|
96
|
+
// privacyPolicyVersion: 2,
|
|
97
|
+
// termsAndConditionsVersion: 4,
|
|
98
|
+
// address: 'Tintagel House, 92 Albert Embankment, Lambeth, London, SE1 7TY',
|
|
99
|
+
// },
|
|
100
|
+
uk: {
|
|
101
|
+
name: 'United Kingdom',
|
|
102
|
+
domain: 'https://uk.becollective.com',
|
|
103
|
+
hostname: 'uk.becollective.com',
|
|
104
|
+
trademark: 'Be Collective Europe Limited',
|
|
105
|
+
twitter: 'https://twitter.com/BeCollective_',
|
|
106
|
+
facebook: 'https://www.facebook.com/Be-Collective-Europe-2168455776525016/',
|
|
107
|
+
instagram: 'https://www.instagram.com/becollective_',
|
|
108
|
+
linkedin: 'https://www.linkedin.com/company/becollectiveintl',
|
|
109
|
+
privacyPolicyUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-Privacy-Notice-December-2020.pdf',
|
|
110
|
+
termsAndConditionsUrl: 'https://www.becollective.com/documents/Be-Collective-Europe-General-Terms-May-2023.pdf',
|
|
111
|
+
privacyPolicyVersion: 2,
|
|
112
|
+
termsAndConditionsVersion: 4,
|
|
113
|
+
address: 'Tintagel House, 92 Albert Embankment, Lambeth, London, SE1 7TY',
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// Financial years from https://www.cia.gov/library/publications/the-world-factbook/fields/228.html
|
|
118
|
+
export const countryOptions = {
|
|
119
|
+
AU: {
|
|
120
|
+
financialYearEndDate: {
|
|
121
|
+
month: 5,
|
|
122
|
+
date: 30,
|
|
159
123
|
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
124
|
+
distanceUnit: distanceUnits.km,
|
|
125
|
+
regions: [
|
|
126
|
+
{
|
|
127
|
+
long: 'Australian Capital Territory',
|
|
128
|
+
short: 'ACT',
|
|
164
129
|
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
GB: {
|
|
169
|
-
financialYearEndDate: {
|
|
170
|
-
month: 3,
|
|
171
|
-
date: 5,
|
|
130
|
+
{
|
|
131
|
+
long: 'New South Wales',
|
|
132
|
+
short: 'NSW',
|
|
172
133
|
},
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
date: 31,
|
|
134
|
+
{
|
|
135
|
+
long: 'Northern Territory',
|
|
136
|
+
short: 'NT',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
long: 'Queensland',
|
|
140
|
+
short: 'QLD',
|
|
181
141
|
},
|
|
182
|
-
|
|
183
|
-
|
|
142
|
+
{
|
|
143
|
+
long: 'South Australia',
|
|
144
|
+
short: 'SA',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
long: 'Tasmania',
|
|
148
|
+
short: 'TAS',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
long: 'Victoria',
|
|
152
|
+
short: 'VIC',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
long: 'Western Australia',
|
|
156
|
+
short: 'WA',
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
insuranceTypes: [insuranceTypes.publicLiabilityAU, insuranceTypes.volunteerAccidentAU],
|
|
160
|
+
},
|
|
161
|
+
NZ: {
|
|
162
|
+
financialYearEndDate: {
|
|
163
|
+
month: 2,
|
|
164
|
+
date: 31,
|
|
184
165
|
},
|
|
185
|
-
|
|
186
|
-
|
|
166
|
+
distanceUnit: distanceUnits.km,
|
|
167
|
+
insuranceTypes: [insuranceTypes.publicLiabilityNZ, insuranceTypes.volunteerAccidentNZ],
|
|
168
|
+
},
|
|
169
|
+
GB: {
|
|
170
|
+
financialYearEndDate: {
|
|
171
|
+
month: 3,
|
|
172
|
+
date: 5,
|
|
187
173
|
},
|
|
174
|
+
distanceUnit: distanceUnits.mi,
|
|
175
|
+
insuranceTypes: [insuranceTypes.publicLiabilityGB, insuranceTypes.volunteerAccidentGB],
|
|
176
|
+
},
|
|
177
|
+
// Reminder: this is Republic of Ireland. Northern Ireland is within GB.
|
|
178
|
+
IE: {
|
|
179
|
+
financialYearEndDate: {
|
|
180
|
+
month: 11,
|
|
181
|
+
date: 31,
|
|
182
|
+
},
|
|
183
|
+
distanceUnit: distanceUnits.km,
|
|
184
|
+
insuranceTypes: [insuranceTypes.publicLiabilityOthers, insuranceTypes.volunteerAccidentOthers],
|
|
185
|
+
},
|
|
186
|
+
Others: {
|
|
187
|
+
insuranceTypes: [insuranceTypes.publicLiabilityOthers, insuranceTypes.volunteerAccidentOthers],
|
|
188
188
|
},
|
|
189
189
|
};
|
|
190
|
+
|
|
191
|
+
export const locales = {
|
|
192
|
+
europeanCountryCodes,
|
|
193
|
+
regionOptions,
|
|
194
|
+
countryOptions,
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export default locales;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
export const tierValues = {
|
|
2
|
+
none: 0, // none of the below tiers
|
|
3
|
+
standard: 1,
|
|
4
|
+
plus: 2,
|
|
5
|
+
pro: 3,
|
|
6
|
+
};
|
|
7
|
+
|
|
1
8
|
export const subscriptions = {
|
|
2
|
-
tierValues
|
|
3
|
-
none: 0, // none of the below tiers
|
|
4
|
-
standard: 1,
|
|
5
|
-
plus: 2,
|
|
6
|
-
pro: 3,
|
|
7
|
-
},
|
|
9
|
+
tierValues,
|
|
8
10
|
};
|
|
9
11
|
|
|
10
12
|
export default subscriptions;
|