@vonq/hapi-elements-types 1.5.0 → 1.7.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/{src/_window → _window}/api.types.ts +9 -7
- package/_window/auth.types.ts +13 -0
- package/_window/config.types.ts +5 -0
- package/{src/_window → _window}/events.types.ts +15 -14
- package/_window/instances.types.ts +27 -0
- package/{src/_window → _window}/qa.types.ts +7 -5
- package/{src/_window → _window}/routing.types.ts +6 -4
- package/{src/_window → _window}/sdk.types.ts +29 -27
- package/{src/_window → _window}/service.types.ts +9 -7
- package/{src/_window → _window}/state.types.ts +55 -53
- package/_window/ui.types.ts +15 -0
- package/{src/_window → _window}/utils.types.ts +7 -5
- package/{src/_window → _window}/validation.types.ts +7 -5
- package/_window/window.ts +140 -0
- package/alert/index.ts +6 -0
- package/{src/alert → alert}/service.types.ts +2 -2
- package/alert/state.types.ts +9 -0
- package/{src/ats → ats}/api.types.ts +2 -2
- package/ats/index.ts +6 -0
- package/{src/ats → ats}/service.types.ts +2 -2
- package/{src/ats → ats}/state.types.ts +1 -1
- package/basket/index.ts +7 -0
- package/{src/basket → basket}/service.types.ts +2 -2
- package/{src/basket → basket}/state.types.ts +1 -1
- package/{src/basket → basket}/utils.types.ts +2 -2
- package/{src/campaign → campaign}/api.types.ts +2 -2
- package/campaign/index.ts +10 -0
- package/campaign/qa.types.ts +12 -0
- package/{src/campaign → campaign}/service.types.ts +2 -2
- package/{src/campaign → campaign}/state.types.ts +1 -1
- package/{src/campaign → campaign}/utils.types.ts +2 -2
- package/{enums.ts → common/enums.ts} +2 -1
- package/{src/common → common}/events/types.ts +6 -6
- package/common/index.ts +7 -0
- package/common/logger/types.ts +18 -0
- package/{src/common → common}/qa.types.ts +2 -2
- package/{src/common → common}/types.ts +5 -6
- package/common/validator/types.ts +4 -0
- package/{src/contract → contract}/api.types.ts +2 -2
- package/contract/index.ts +9 -0
- package/{src/contract → contract}/qa.types.ts +2 -2
- package/{src/contract → contract}/service.types.ts +2 -2
- package/{src/contract → contract}/state.types.ts +1 -1
- package/{src/contract → contract}/utils.types.ts +2 -2
- package/{src/common/logger-datadog → debugging}/index.ts +1 -1
- package/{src/debugging → debugging}/state.types.ts +1 -1
- package/index.ts +18 -0
- package/language/index.ts +5 -0
- package/{src/language → language}/qa.types.ts +2 -2
- package/{src/language → language}/state.types.ts +1 -1
- package/modal/index.ts +6 -0
- package/{src/modal → modal}/service.types.ts +2 -2
- package/{src/modal → modal}/state.types.ts +1 -1
- package/orderJourney/index.ts +8 -0
- package/{src/orderJourney → orderJourney}/qa.types.ts +2 -2
- package/{src/orderJourney → orderJourney}/state.types.ts +1 -1
- package/{src/orderJourney → orderJourney}/utils.types.ts +2 -2
- package/package.json +16 -5
- package/{src/product → product}/api.types.ts +2 -2
- package/product/index.ts +10 -0
- package/{src/product → product}/qa.types.ts +2 -2
- package/{src/product → product}/service.types.ts +2 -2
- package/{src/product → product}/state.types.ts +1 -1
- package/{src/product → product}/utils.types.ts +2 -2
- package/routing/index.ts +3 -0
- package/theming/index.ts +6 -0
- package/{src/theming → theming}/qa.types.ts +2 -2
- package/{src/theming → theming}/state.types.ts +1 -1
- package/{src/theming → theming}/types.ts +38 -1
- package/tsconfig.json +7 -12
- package/{src/ui → ui}/service.types.ts +2 -2
- package/{src/wallet → wallet}/api.types.ts +2 -2
- package/wallet/index.ts +7 -0
- package/{src/wallet → wallet}/service.types.ts +2 -2
- package/{src/wallet → wallet}/state.types.ts +1 -1
- package/src/_window/auth.types.ts +0 -11
- package/src/_window/config.types.ts +0 -30
- package/src/_window/instances.types.ts +0 -18
- package/src/_window/ui.types.ts +0 -13
- package/src/_window/window.ts +0 -56
- package/src/alert/functions.types.ts +0 -13
- package/src/alert/index.ts +0 -9
- package/src/alert/state.initial.ts +0 -16
- package/src/alert/state.types.ts +0 -27
- package/src/alert/state.validations.ts +0 -11
- package/src/ats/functions.types.ts +0 -7
- package/src/ats/index.ts +0 -9
- package/src/ats/state.initial.ts +0 -5
- package/src/ats/state.validations.ts +0 -6
- package/src/basket/consts.ts +0 -1
- package/src/basket/functions.types.ts +0 -40
- package/src/basket/index.ts +0 -12
- package/src/basket/state.initial.ts +0 -11
- package/src/basket/state.validations.ts +0 -12
- package/src/basket/utils.ts +0 -79
- package/src/campaign/consts.ts +0 -1
- package/src/campaign/functions.types.ts +0 -90
- package/src/campaign/index.ts +0 -15
- package/src/campaign/qa.types.ts +0 -12
- package/src/campaign/state.initial.ts +0 -84
- package/src/campaign/state.validations.ts +0 -16
- package/src/campaign/utils.ts +0 -53
- package/src/common/LocalStorage.ts +0 -123
- package/src/common/browser.ts +0 -2
- package/src/common/color.ts +0 -9
- package/src/common/immutable.ts +0 -28
- package/src/common/index.ts +0 -22
- package/src/common/instances/Instance.ts +0 -13
- package/src/common/instances/consts.ts +0 -1
- package/src/common/instances/index.ts +0 -4
- package/src/common/json.ts +0 -25
- package/src/common/logger/Logger.ts +0 -70
- package/src/common/logger/index.ts +0 -5
- package/src/common/logger/types.ts +0 -7
- package/src/common/logger-datadog/LoggerDatadog.ts +0 -42
- package/src/common/misc.ts +0 -114
- package/src/common/promise.ts +0 -161
- package/src/common/proxy.ts +0 -77
- package/src/common/regExTest.ts +0 -12
- package/src/common/tree.ts +0 -148
- package/src/common/utm.ts +0 -19
- package/src/common/validators.ts +0 -21
- package/src/common/webComponents.ts +0 -26
- package/src/config/functions.types.ts +0 -23
- package/src/config/index.ts +0 -5
- package/src/config/state.initial.ts +0 -11
- package/src/config/state.types.ts +0 -15
- package/src/consts.ts +0 -980
- package/src/contract/consts.ts +0 -1
- package/src/contract/functions.types.ts +0 -112
- package/src/contract/index.ts +0 -14
- package/src/contract/state.initial.ts +0 -39
- package/src/contract/state.validations.ts +0 -21
- package/src/contract/utils.ts +0 -36
- package/src/debugging/functions.types.ts +0 -34
- package/src/debugging/index.ts +0 -6
- package/src/debugging/state.initial.ts +0 -10
- package/src/debugging/state.validations.ts +0 -10
- package/src/index.ts +0 -22
- package/src/language/consts.ts +0 -6
- package/src/language/en.ts +0 -530
- package/src/language/functions.types.ts +0 -29
- package/src/language/index.ts +0 -11
- package/src/language/state.initial.ts +0 -13
- package/src/language/state.validations.ts +0 -10
- package/src/language/utils.ts +0 -17
- package/src/modal/consts.ts +0 -6
- package/src/modal/functions.types.ts +0 -22
- package/src/modal/index.ts +0 -11
- package/src/modal/state.initial.ts +0 -9
- package/src/modal/state.validations.ts +0 -6
- package/src/modal/store.types.ts +0 -5
- package/src/orderJourney/consts.ts +0 -289
- package/src/orderJourney/functions.types.ts +0 -140
- package/src/orderJourney/index.ts +0 -13
- package/src/orderJourney/state.initial.ts +0 -401
- package/src/orderJourney/state.validations.ts +0 -78
- package/src/orderJourney/utils.ts +0 -7
- package/src/product/consts.ts +0 -1
- package/src/product/functions.types.ts +0 -156
- package/src/product/index.ts +0 -14
- package/src/product/state.initial.ts +0 -28
- package/src/product/state.validations.ts +0 -25
- package/src/routing/functions.types.ts +0 -48
- package/src/routing/index.ts +0 -5
- package/src/routing/state.initial.ts +0 -10
- package/src/theming/consts.ts +0 -7727
- package/src/theming/functions.types.ts +0 -13
- package/src/theming/index.ts +0 -11
- package/src/theming/state.initial.ts +0 -16
- package/src/theming/state.validations.ts +0 -8
- package/src/theming/utils.ts +0 -581
- package/src/types.ts +0 -229
- package/src/utils.ts +0 -3
- package/src/wallet/consts.ts +0 -3
- package/src/wallet/functions.types.ts +0 -58
- package/src/wallet/index.ts +0 -11
- package/src/wallet/state.initial.ts +0 -18
- package/src/wallet/state.validations.ts +0 -18
- /package/{src/_window → _window}/index.ts +0 -0
- /package/{src/alert → alert}/enums.ts +0 -0
- /package/{src/alert → alert}/types.ts +0 -0
- /package/{src/ats → ats}/types.ts +0 -0
- /package/{src/basket → basket}/types.ts +0 -0
- /package/{src/basket → basket}/validations.types.ts +0 -0
- /package/{src/campaign → campaign}/enums.ts +0 -0
- /package/{src/campaign → campaign}/types.ts +0 -0
- /package/{src/campaign → campaign}/validations.types.ts +0 -0
- /package/{src/common → common}/events/EventCommand/enums.ts +0 -0
- /package/{src/common → common}/events/EventCommand/index.ts +0 -0
- /package/{src/common → common}/events/EventCommand/types.ts +0 -0
- /package/{src/common → common}/events/index.ts +0 -0
- /package/{src/common → common}/logger/enums.ts +0 -0
- /package/{src/common → common}/validations.types.ts +0 -0
- /package/{src/contract → contract}/types.ts +0 -0
- /package/{src/contract → contract}/validations.types.ts +0 -0
- /package/{src/language → language}/validations.types.ts +0 -0
- /package/{src/modal → modal}/enums.ts +0 -0
- /package/{src/modal → modal}/types.ts +0 -0
- /package/{src/orderJourney → orderJourney}/enums.ts +0 -0
- /package/{src/orderJourney → orderJourney}/types.ts +0 -0
- /package/{src/orderJourney → orderJourney}/validations.types.ts +0 -0
- /package/{src/product → product}/enums.ts +0 -0
- /package/{src/product → product}/types.ts +0 -0
- /package/{src/product → product}/validations.types.ts +0 -0
- /package/{src/routing → routing}/state.types.ts +0 -0
- /package/{src/theming → theming}/validations.types.ts +0 -0
- /package/{src/ui → ui}/index.ts +0 -0
- /package/{src/wallet → wallet}/types.ts +0 -0
- /package/{src/wallet → wallet}/validations.types.ts +0 -0
package/src/modal/index.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
// created from 'create-ts-index'
|
2
|
-
|
3
|
-
export * from './consts';
|
4
|
-
export * from './enums';
|
5
|
-
export * from './functions.types';
|
6
|
-
export * from './service.types';
|
7
|
-
export * from './state.initial';
|
8
|
-
export * from './state.types';
|
9
|
-
export * from './state.validations';
|
10
|
-
export * from './store.types';
|
11
|
-
export * from './types';
|
package/src/modal/store.types.ts
DELETED
@@ -1,289 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
3
|
-
ERROR_MESSAGE_SHOULD_BE_EMAIL,
|
4
|
-
ERROR_MESSAGE_SHOULD_BE_MORE_THAN_ZERO,
|
5
|
-
ERROR_MESSAGE_SHOULD_BE_URL,
|
6
|
-
} from "../consts"
|
7
|
-
import { OrderJourneyStepKey } from "./enums"
|
8
|
-
import { NestedValidatorKeys } from "../common/types"
|
9
|
-
|
10
|
-
/* Get Recommendations Step (User Journey) */
|
11
|
-
export const orderJourneySearchRecommendProductsBlurredFields = {
|
12
|
-
"productStore.jobTitlesIdsSelected": false,
|
13
|
-
"productStore.jobFunctionsIdsSelected": false,
|
14
|
-
"productStore.jobRegionsIdsSelected": false,
|
15
|
-
}
|
16
|
-
export const orderJourneysearchRecommendProductsErrorMessages = {
|
17
|
-
"productStore.jobTitlesIdsSelected": ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
18
|
-
"productStore.jobFunctionsIdsSelected": ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
19
|
-
"productStore.jobRegionsIdsSelected": ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
20
|
-
}
|
21
|
-
export const orderJourneySearchRecommendProductsValidators: NestedValidatorKeys =
|
22
|
-
{
|
23
|
-
"productStore.jobTitlesIdsSelected": "isNotEmpty",
|
24
|
-
"productStore.jobFunctionsIdsSelected": "isNotEmpty",
|
25
|
-
"productStore.jobRegionsIdsSelected": "isNotEmpty",
|
26
|
-
}
|
27
|
-
export const orderJourneySearchRecommendProductsHideFields = {
|
28
|
-
"productStore.jobTitlesIdsSelected": false,
|
29
|
-
"productStore.jobFunctionsIdsSelected": false,
|
30
|
-
"productStore.jobRegionsIdsSelected": false,
|
31
|
-
}
|
32
|
-
/* Select Products Step (User Journey) */
|
33
|
-
export const orderJourneySelectProductsStepErrorMessages = {
|
34
|
-
"basketStore.products": {
|
35
|
-
id: "campaign.select-channels.no-items-in-basket",
|
36
|
-
defaultMessage:
|
37
|
-
"You need at least one product or a contract added to campaign in order to proceed",
|
38
|
-
},
|
39
|
-
}
|
40
|
-
export const orderJourneySelectProductsBlurredFields = {}
|
41
|
-
export const orderJourneySelectProductsStepValidators: NestedValidatorKeys = {}
|
42
|
-
/* Add Contracts Step */
|
43
|
-
export const orderJourneyAddContractsErrorMessages = {}
|
44
|
-
export const orderJourneyAddContractsValidators = {}
|
45
|
-
export const orderJourneyAddContractsBlurredFields = {}
|
46
|
-
/* Select Contracts Step */
|
47
|
-
export const orderJourneySelectContractsErrorMessages = {}
|
48
|
-
export const orderJourneySelectContractsValidators = {}
|
49
|
-
export const orderJourneySelectContractsBlurredFields = {}
|
50
|
-
|
51
|
-
/* Basket Summary Step */
|
52
|
-
export const orderJourneyBasketSummaryValidators: NestedValidatorKeys = {
|
53
|
-
"basketStore.products": "isNotEmpty",
|
54
|
-
}
|
55
|
-
export const orderJourneyJBasketSummaryErrorMessages = {
|
56
|
-
"basketStore.products": {
|
57
|
-
id: "campaign.select-channels.no-items-in-basket",
|
58
|
-
defaultMessage:
|
59
|
-
"You need at least one product or a contract added to campaign in order to proceed",
|
60
|
-
},
|
61
|
-
}
|
62
|
-
export const orderJourneyBasketSummaryBlurredFields = {}
|
63
|
-
|
64
|
-
/* Target Group Step (Create Campaign Form) */
|
65
|
-
export const orderJourneyTargetGroupStepErrorMessages = {
|
66
|
-
educationLevel: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
67
|
-
seniority: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
68
|
-
industry: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
69
|
-
jobCategory: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
70
|
-
}
|
71
|
-
export const orderJourneyTargetGroupStepValidators: NestedValidatorKeys = {
|
72
|
-
educationLevel: "isNotEmpty",
|
73
|
-
seniority: "isNotEmpty",
|
74
|
-
industry: "isNotEmpty",
|
75
|
-
jobCategory: "isNotEmpty",
|
76
|
-
}
|
77
|
-
export const orderJourneyTargetGroupStepBlurredFields = {
|
78
|
-
educationLevel: false,
|
79
|
-
seniority: false,
|
80
|
-
industry: false,
|
81
|
-
jobCategory: false,
|
82
|
-
}
|
83
|
-
export const orderJourneyTargetGroupStepHideFields = {
|
84
|
-
educationLevel: false,
|
85
|
-
seniority: false,
|
86
|
-
industry: false,
|
87
|
-
jobCategory: false,
|
88
|
-
}
|
89
|
-
/* Recruiter Info Step (Create Campaign Form) */
|
90
|
-
export const orderJourneyRecruiterInfoStepErrorMessages = {
|
91
|
-
name: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
92
|
-
emailAddress: ERROR_MESSAGE_SHOULD_BE_EMAIL,
|
93
|
-
}
|
94
|
-
export const orderJourneyRecruiterInfoStepValidators: NestedValidatorKeys = {
|
95
|
-
name: "isNotEmpty",
|
96
|
-
//emailAddress: "isEmail", //Not required by IGB
|
97
|
-
}
|
98
|
-
export const orderJourneyRecruiterInfoStepBlurredFields = {
|
99
|
-
name: false,
|
100
|
-
emailAddress: false,
|
101
|
-
}
|
102
|
-
export const orderJourneyRecruiterInfoStepHideFields = {
|
103
|
-
name: false,
|
104
|
-
emailAddress: false,
|
105
|
-
}
|
106
|
-
/* Posting Details Step (Create Campaign Form) */
|
107
|
-
export const orderJourneyPostingDetailsStepErrorMessages = {
|
108
|
-
title: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
109
|
-
description: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
110
|
-
// yearsOfExperience: ERROR_MESSAGE_SHOULD_BE_MORE_THAN_ZERO, //Not required by IGB
|
111
|
-
employmentType: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
112
|
-
weeklyWorkingHours: {
|
113
|
-
// from: ERROR_MESSAGE_SHOULD_BE_MORE_THAN_ZERO, //Not required by IGB
|
114
|
-
to: ERROR_MESSAGE_SHOULD_BE_MORE_THAN_ZERO,
|
115
|
-
},
|
116
|
-
salaryIndication: {
|
117
|
-
period: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
118
|
-
range: {
|
119
|
-
// from: ERROR_MESSAGE_SHOULD_BE_MORE_THAN_ZERO, //Not required by IGB
|
120
|
-
to: ERROR_MESSAGE_SHOULD_BE_MORE_THAN_ZERO,
|
121
|
-
currency: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
122
|
-
},
|
123
|
-
},
|
124
|
-
}
|
125
|
-
export const orderJourneyPostingDetailsStepValidators: NestedValidatorKeys = {
|
126
|
-
title: "isNotEmpty",
|
127
|
-
description: "isNotEmpty",
|
128
|
-
// yearsOfExperience: "isNotZero", //Not required by IGB
|
129
|
-
employmentType: "isNotEmpty",
|
130
|
-
weeklyWorkingHours: {
|
131
|
-
// from: "isNotZero", //Not required by IGB
|
132
|
-
to: "isNotZero",
|
133
|
-
},
|
134
|
-
salaryIndication: {
|
135
|
-
period: "isNotEmpty",
|
136
|
-
range: {
|
137
|
-
// from: "isNotZero", //Not required by IGB
|
138
|
-
to: "isNotZero",
|
139
|
-
currency: "isNotEmpty",
|
140
|
-
},
|
141
|
-
},
|
142
|
-
}
|
143
|
-
export const orderJourneyPostingDetailsStepBlurredFields = {
|
144
|
-
title: false,
|
145
|
-
description: false,
|
146
|
-
yearsOfExperience: false,
|
147
|
-
employmentType: false,
|
148
|
-
weeklyWorkingHours: {
|
149
|
-
from: false,
|
150
|
-
to: false,
|
151
|
-
},
|
152
|
-
salaryIndication: {
|
153
|
-
period: false,
|
154
|
-
range: {
|
155
|
-
from: false,
|
156
|
-
to: false,
|
157
|
-
currency: false,
|
158
|
-
},
|
159
|
-
},
|
160
|
-
campaignName: false,
|
161
|
-
}
|
162
|
-
export const orderJourneyPostingDetailsStepHideFields = {
|
163
|
-
title: false,
|
164
|
-
description: false,
|
165
|
-
yearsOfExperience: false,
|
166
|
-
employmentType: false,
|
167
|
-
"weeklyWorkingHours.from": false,
|
168
|
-
"weeklyWorkingHours.to": false,
|
169
|
-
"salaryIndication.period": false,
|
170
|
-
"salaryIndication.range.from": false,
|
171
|
-
"salaryIndication.range.to": false,
|
172
|
-
"salaryIndication.range.currency": false,
|
173
|
-
campaignName: false,
|
174
|
-
}
|
175
|
-
/* Organization Step (Create Campaign Form) */
|
176
|
-
export const orderJourneyOrganizationStepErrorMessages = {
|
177
|
-
name: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
178
|
-
companyLogo: ERROR_MESSAGE_SHOULD_BE_URL,
|
179
|
-
}
|
180
|
-
export const orderJourneyOrganizationStepValidators: NestedValidatorKeys = {
|
181
|
-
name: "isNotEmpty",
|
182
|
-
companyLogo: "isURL",
|
183
|
-
}
|
184
|
-
export const orderJourneyOrganizationStepBlurredFields = {
|
185
|
-
name: false,
|
186
|
-
companyLogo: false,
|
187
|
-
}
|
188
|
-
export const orderJourneyOrganizationStepHideFields = {
|
189
|
-
name: false,
|
190
|
-
companyLogo: false,
|
191
|
-
}
|
192
|
-
/* Contact Info Step (Create Campaign Form) */
|
193
|
-
export const orderJourneyContactInfoStepErrorMessages = {}
|
194
|
-
export const orderJourneyContactInfoStepValidators: NestedValidatorKeys = {}
|
195
|
-
export const orderJourneyContactInfoStepBlurredFields = {
|
196
|
-
name: false,
|
197
|
-
emailAddress: false,
|
198
|
-
phoneNumber: false,
|
199
|
-
}
|
200
|
-
export const orderJourneyContactInfoStepHideFields = {
|
201
|
-
name: false,
|
202
|
-
emailAddress: false,
|
203
|
-
phoneNumber: false,
|
204
|
-
}
|
205
|
-
/* Working Location Step (Create Campaign Form) */
|
206
|
-
export const orderJourneyWorkingLocationStepErrorMessages = {
|
207
|
-
addressLine1: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
208
|
-
// addressLine2: ERROR_MESSAGE_CANNOT_BE_EMPTY, //Not required by IGB
|
209
|
-
postcode: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
210
|
-
city: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
211
|
-
country: ERROR_MESSAGE_CANNOT_BE_EMPTY,
|
212
|
-
}
|
213
|
-
export const orderJourneyWorkingLocationStepValidators: NestedValidatorKeys = {
|
214
|
-
addressLine1: "isNotEmpty",
|
215
|
-
// addressLine2: "isNotEmpty", //Not required by IGB
|
216
|
-
postcode: "isNotEmpty",
|
217
|
-
city: "isNotEmpty",
|
218
|
-
country: "isNotEmpty",
|
219
|
-
}
|
220
|
-
export const orderJourneyWorkingLocationStepBlurredFields = {
|
221
|
-
addressLine1: false,
|
222
|
-
addressLine2: false,
|
223
|
-
postcode: false,
|
224
|
-
city: false,
|
225
|
-
country: false,
|
226
|
-
allowsRemoteWork: false,
|
227
|
-
}
|
228
|
-
export const orderJourneyWorkingLocationStepHideFields = {
|
229
|
-
addressLine1: false,
|
230
|
-
addressLine2: false,
|
231
|
-
postcode: false,
|
232
|
-
city: false,
|
233
|
-
country: false,
|
234
|
-
allowsRemoteWork: false,
|
235
|
-
}
|
236
|
-
/* URLs Step (Create Campaign Form) */
|
237
|
-
export const orderJourneyURLsStepErrorMessages = {
|
238
|
-
jobPageUrl: ERROR_MESSAGE_SHOULD_BE_URL,
|
239
|
-
applicationUrl: ERROR_MESSAGE_SHOULD_BE_URL,
|
240
|
-
}
|
241
|
-
export const orderJourneyURLsStepValidators: NestedValidatorKeys = {
|
242
|
-
jobPageUrl: "isURL",
|
243
|
-
applicationUrl: "isURL",
|
244
|
-
}
|
245
|
-
export const orderJourneyURLsStepBlurredFields = {
|
246
|
-
jobPageUrl: false,
|
247
|
-
applicationUrl: false,
|
248
|
-
}
|
249
|
-
export const orderJourneyURLsStepHideFields = {
|
250
|
-
jobPageUrl: false,
|
251
|
-
applicationUrl: false,
|
252
|
-
}
|
253
|
-
/* UTM Codes */
|
254
|
-
export const orderJourneyUTMCodesStepErrorMessages = {}
|
255
|
-
export const orderJourneyUTMCodesStepValidators: NestedValidatorKeys = {}
|
256
|
-
export const orderJourneyUTMCodesStepBlurredFields = {}
|
257
|
-
/* Order Review */
|
258
|
-
export const orderJourneyOrderReviewStepErrorMessages = {}
|
259
|
-
export const orderJourneyOrderReviewStepValidators: NestedValidatorKeys = {}
|
260
|
-
export const orderJourneyOrderReviewStepBlurredFields = {}
|
261
|
-
/* Payment Method */
|
262
|
-
export const orderJourneyPaymentMethodStepErrorMessages = {}
|
263
|
-
export const orderJourneyPaymentMethodStepValidators: NestedValidatorKeys = {}
|
264
|
-
export const orderJourneyPaymentMethodStepBlurredFields = {}
|
265
|
-
/* Order Confirmation */
|
266
|
-
export const orderJourneyOrderConfirmationStepErrorMessages = {}
|
267
|
-
export const orderJourneyOrderConfirmationStepValidators: NestedValidatorKeys =
|
268
|
-
{}
|
269
|
-
export const orderJourneyOrderConfirmationStepBlurredFields = {}
|
270
|
-
|
271
|
-
export const orderJourneyDefaultEnabledSteps = [
|
272
|
-
OrderJourneyStepKey.searchRecommendProducts,
|
273
|
-
OrderJourneyStepKey.selectProducts,
|
274
|
-
OrderJourneyStepKey.addContracts,
|
275
|
-
OrderJourneyStepKey.selectContracts,
|
276
|
-
OrderJourneyStepKey.basketSummary,
|
277
|
-
OrderJourneyStepKey.targetGroup,
|
278
|
-
OrderJourneyStepKey.recruiterInfo,
|
279
|
-
OrderJourneyStepKey.postingDetails,
|
280
|
-
OrderJourneyStepKey.postingOrganization,
|
281
|
-
OrderJourneyStepKey.postingContactInfo,
|
282
|
-
OrderJourneyStepKey.postingWorkingLocation,
|
283
|
-
OrderJourneyStepKey.postingURLs,
|
284
|
-
OrderJourneyStepKey.contractChannelPostingRequirements,
|
285
|
-
OrderJourneyStepKey.postingUTMCodes,
|
286
|
-
OrderJourneyStepKey.orderReview,
|
287
|
-
OrderJourneyStepKey.paymentMethod,
|
288
|
-
OrderJourneyStepKey.orderConfirmation,
|
289
|
-
]
|
@@ -1,140 +0,0 @@
|
|
1
|
-
import { MessageDescriptor } from "react-intl"
|
2
|
-
import { OrderJourneyStep } from "./types"
|
3
|
-
import { OrderJourneyPaymentMethod, OrderJourneyStepKey } from "./enums"
|
4
|
-
import {
|
5
|
-
NestedValidatorKeys,
|
6
|
-
RecursivePartial,
|
7
|
-
UseValidatorResult,
|
8
|
-
} from "../common/types"
|
9
|
-
|
10
|
-
export type OrderJourneyStoreSetActiveStepIndexHandler = (index: number) => void
|
11
|
-
export type OrderJourneyStoreSetOrderErrorsHandler = (
|
12
|
-
errors: Record<string, any> | null,
|
13
|
-
) => void
|
14
|
-
export type OrderJourneyStoreSetSearchRecommendProductsStepHandler = (
|
15
|
-
step: RecursivePartial<OrderJourneyStep>,
|
16
|
-
) => UseValidatorResult
|
17
|
-
export type OrderJourneyStoreSetSelectProductsStepHandler = (
|
18
|
-
step: RecursivePartial<OrderJourneyStep>,
|
19
|
-
) => UseValidatorResult
|
20
|
-
export type OrderJourneyStoreSetAddContractsStepHandler = (
|
21
|
-
step: RecursivePartial<OrderJourneyStep>,
|
22
|
-
) => UseValidatorResult
|
23
|
-
export type OrderJourneyStoreSetSelectContractsStepHandler = (
|
24
|
-
step: RecursivePartial<OrderJourneyStep>,
|
25
|
-
) => UseValidatorResult
|
26
|
-
export type OrderJourneyStoreSetBasketSummaryStepHandler = (
|
27
|
-
step: RecursivePartial<OrderJourneyStep>,
|
28
|
-
) => UseValidatorResult
|
29
|
-
export type OrderJourneyStoreSetTargetGroupStepHandler = (
|
30
|
-
step: RecursivePartial<OrderJourneyStep>,
|
31
|
-
) => UseValidatorResult
|
32
|
-
export type OrderJourneyStoreSetRecruiterInfoStepHandler = (
|
33
|
-
step: RecursivePartial<OrderJourneyStep>,
|
34
|
-
) => UseValidatorResult
|
35
|
-
export type OrderJourneyStoreSetPostingDetailsStepHandler = (
|
36
|
-
step: RecursivePartial<OrderJourneyStep>,
|
37
|
-
) => UseValidatorResult
|
38
|
-
export type OrderJourneyStoreSetOrganizationStepHandler = (
|
39
|
-
step: RecursivePartial<OrderJourneyStep>,
|
40
|
-
) => UseValidatorResult
|
41
|
-
export type OrderJourneyStoreSetContactInfoStepHandler = (
|
42
|
-
step: RecursivePartial<OrderJourneyStep>,
|
43
|
-
) => UseValidatorResult
|
44
|
-
export type OrderJourneyStoreSetWorkingLocationStepHandler = (
|
45
|
-
step: RecursivePartial<OrderJourneyStep>,
|
46
|
-
) => UseValidatorResult
|
47
|
-
export type OrderJourneyStoreSetURLsStepHandler = (
|
48
|
-
step: RecursivePartial<OrderJourneyStep>,
|
49
|
-
) => UseValidatorResult
|
50
|
-
export type OrderJourneyStoreSetUTMCodesStepHandler = (
|
51
|
-
step: RecursivePartial<OrderJourneyStep>,
|
52
|
-
) => UseValidatorResult
|
53
|
-
export type OrderJourneyStoreSetOrderReviewStepHandler = (
|
54
|
-
step: RecursivePartial<OrderJourneyStep>,
|
55
|
-
) => UseValidatorResult
|
56
|
-
export type OrderJourneyStoreSetPaymentMethodStepHandler = (
|
57
|
-
step: RecursivePartial<OrderJourneyStep>,
|
58
|
-
) => UseValidatorResult
|
59
|
-
export type OrderJourneyStoreSetOrderConfirmationStepHandler = (
|
60
|
-
step: RecursivePartial<OrderJourneyStep>,
|
61
|
-
) => UseValidatorResult
|
62
|
-
export type OrderJourneyStoreSetContractVacancyFieldsStepBlurredFieldsHandler =
|
63
|
-
(
|
64
|
-
fields: Record<string, Record<string, boolean>>,
|
65
|
-
) => Record<string, UseValidatorResult>
|
66
|
-
export type OrderJourneyStoreSetContractVacancyFieldsStepHideFieldsHandler = (
|
67
|
-
fields: Record<string, Record<string, boolean>>,
|
68
|
-
) => Record<string, UseValidatorResult>
|
69
|
-
export type OrderJourneyStoreSetContractVacancyFieldsSubmittedStepsHandler = (
|
70
|
-
steps: Record<string, boolean>,
|
71
|
-
) => void
|
72
|
-
export type OrderJourneyStoreSetContractVacancyFieldsErrorMessagesHandler = (
|
73
|
-
messages: Record<string, Record<string, MessageDescriptor | boolean>>,
|
74
|
-
) => void
|
75
|
-
export type OrderJourneyStoreSetContractVacancyFieldsValidatorsHandler = (
|
76
|
-
validators: NestedValidatorKeys,
|
77
|
-
) => void
|
78
|
-
export type OrderJourneyStoreSetStepsEnabledHandler = (
|
79
|
-
stepKeys: OrderJourneyStepKey[],
|
80
|
-
) => void
|
81
|
-
export type OrderJourneyStoreSetStepsPopulatedAreHiddenHandler = (
|
82
|
-
areHidden: boolean,
|
83
|
-
) => void
|
84
|
-
export type OrderJourneyStoreSetHidePrefilledfieldsHandler = (
|
85
|
-
areHidden: boolean,
|
86
|
-
) => void
|
87
|
-
export type OrderJourneyStoreSetPaymentMethodSelectedHandler = (
|
88
|
-
selectedMethod: OrderJourneyPaymentMethod,
|
89
|
-
) => void
|
90
|
-
export type OrderJourneyStoreSetPaymentMethodsEnabledHandler = (
|
91
|
-
methods: OrderJourneyPaymentMethod[],
|
92
|
-
) => void
|
93
|
-
|
94
|
-
export type OrderJourneyStoreFunctions = {
|
95
|
-
setStepActiveIndex: OrderJourneyStoreSetActiveStepIndexHandler
|
96
|
-
setStepsEnabled: OrderJourneyStoreSetStepsEnabledHandler
|
97
|
-
setOrderErrors: OrderJourneyStoreSetOrderErrorsHandler
|
98
|
-
setPaymentMethodActive: OrderJourneyStoreSetPaymentMethodSelectedHandler
|
99
|
-
setPaymentMethodsEnabled: OrderJourneyStoreSetPaymentMethodsEnabledHandler
|
100
|
-
/* Onboarding */
|
101
|
-
setOnboardingStep: OrderJourneyStoreSetSearchRecommendProductsStepHandler
|
102
|
-
/* Select Products */
|
103
|
-
setSelectProductsStep: OrderJourneyStoreSetSelectProductsStepHandler
|
104
|
-
/* Add Contracts */
|
105
|
-
setAddContractsStep: OrderJourneyStoreSetAddContractsStepHandler
|
106
|
-
/* Select Contracts */
|
107
|
-
setSelectContractsStep: OrderJourneyStoreSetSelectContractsStepHandler
|
108
|
-
/* Basket Summary */
|
109
|
-
setBasketSummaryStep: OrderJourneyStoreSetBasketSummaryStepHandler
|
110
|
-
/* Target Group */
|
111
|
-
setTargetGroupStep: OrderJourneyStoreSetTargetGroupStepHandler
|
112
|
-
/* Recruiter Info */
|
113
|
-
setRecruiterInfoStep: OrderJourneyStoreSetRecruiterInfoStepHandler
|
114
|
-
/* Posting Details */
|
115
|
-
setPostingDetailsStep: OrderJourneyStoreSetPostingDetailsStepHandler
|
116
|
-
/* Organization */
|
117
|
-
setOrganizationStep: OrderJourneyStoreSetOrganizationStepHandler
|
118
|
-
/* Contact Info */
|
119
|
-
setContactInfoStep: OrderJourneyStoreSetContactInfoStepHandler
|
120
|
-
/* Working Location */
|
121
|
-
setWorkingLocationStep: OrderJourneyStoreSetWorkingLocationStepHandler
|
122
|
-
/* URLs */
|
123
|
-
setURLsStep: OrderJourneyStoreSetURLsStepHandler
|
124
|
-
/* Contract Vacancy Fields */
|
125
|
-
setContractStepsBlurredFields: OrderJourneyStoreSetContractVacancyFieldsStepBlurredFieldsHandler
|
126
|
-
setContractStepsSubmittedSteps: OrderJourneyStoreSetContractVacancyFieldsSubmittedStepsHandler
|
127
|
-
setContractStepsErrorMessages: OrderJourneyStoreSetContractVacancyFieldsErrorMessagesHandler
|
128
|
-
setContractStepsValidators: OrderJourneyStoreSetContractVacancyFieldsValidatorsHandler
|
129
|
-
setContractStepsHideFields: OrderJourneyStoreSetContractVacancyFieldsStepHideFieldsHandler
|
130
|
-
/* UTM Codes */
|
131
|
-
setUTMCodesStep: OrderJourneyStoreSetUTMCodesStepHandler
|
132
|
-
/* Order Review */
|
133
|
-
setOrderReviewStep: OrderJourneyStoreSetOrderReviewStepHandler
|
134
|
-
/* Payment Method */
|
135
|
-
setPaymentMethodStep: OrderJourneyStoreSetPaymentMethodStepHandler
|
136
|
-
/* Order Confirmation */
|
137
|
-
setOrderConfirmationStep: OrderJourneyStoreSetOrderConfirmationStepHandler
|
138
|
-
setStepsPopulatedAreHidden: OrderJourneyStoreSetStepsPopulatedAreHiddenHandler
|
139
|
-
setHidePrefilledfields: OrderJourneyStoreSetHidePrefilledfieldsHandler
|
140
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// created from 'create-ts-index'
|
2
|
-
|
3
|
-
export * from './consts';
|
4
|
-
export * from './enums';
|
5
|
-
export * from './functions.types';
|
6
|
-
export * from './qa.types';
|
7
|
-
export * from './state.initial';
|
8
|
-
export * from './state.types';
|
9
|
-
export * from './state.validations';
|
10
|
-
export * from './types';
|
11
|
-
export * from './utils';
|
12
|
-
export * from './utils.types';
|
13
|
-
export * from './validations.types';
|