@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.
Files changed (210) hide show
  1. package/{src/_window → _window}/api.types.ts +9 -7
  2. package/_window/auth.types.ts +13 -0
  3. package/_window/config.types.ts +5 -0
  4. package/{src/_window → _window}/events.types.ts +15 -14
  5. package/_window/instances.types.ts +27 -0
  6. package/{src/_window → _window}/qa.types.ts +7 -5
  7. package/{src/_window → _window}/routing.types.ts +6 -4
  8. package/{src/_window → _window}/sdk.types.ts +29 -27
  9. package/{src/_window → _window}/service.types.ts +9 -7
  10. package/{src/_window → _window}/state.types.ts +55 -53
  11. package/_window/ui.types.ts +15 -0
  12. package/{src/_window → _window}/utils.types.ts +7 -5
  13. package/{src/_window → _window}/validation.types.ts +7 -5
  14. package/_window/window.ts +140 -0
  15. package/alert/index.ts +6 -0
  16. package/{src/alert → alert}/service.types.ts +2 -2
  17. package/alert/state.types.ts +9 -0
  18. package/{src/ats → ats}/api.types.ts +2 -2
  19. package/ats/index.ts +6 -0
  20. package/{src/ats → ats}/service.types.ts +2 -2
  21. package/{src/ats → ats}/state.types.ts +1 -1
  22. package/basket/index.ts +7 -0
  23. package/{src/basket → basket}/service.types.ts +2 -2
  24. package/{src/basket → basket}/state.types.ts +1 -1
  25. package/{src/basket → basket}/utils.types.ts +2 -2
  26. package/{src/campaign → campaign}/api.types.ts +2 -2
  27. package/campaign/index.ts +10 -0
  28. package/campaign/qa.types.ts +12 -0
  29. package/{src/campaign → campaign}/service.types.ts +2 -2
  30. package/{src/campaign → campaign}/state.types.ts +1 -1
  31. package/{src/campaign → campaign}/utils.types.ts +2 -2
  32. package/{enums.ts → common/enums.ts} +2 -1
  33. package/{src/common → common}/events/types.ts +6 -6
  34. package/common/index.ts +7 -0
  35. package/common/logger/types.ts +18 -0
  36. package/{src/common → common}/qa.types.ts +2 -2
  37. package/{src/common → common}/types.ts +5 -6
  38. package/common/validator/types.ts +4 -0
  39. package/{src/contract → contract}/api.types.ts +2 -2
  40. package/contract/index.ts +9 -0
  41. package/{src/contract → contract}/qa.types.ts +2 -2
  42. package/{src/contract → contract}/service.types.ts +2 -2
  43. package/{src/contract → contract}/state.types.ts +1 -1
  44. package/{src/contract → contract}/utils.types.ts +2 -2
  45. package/{src/common/logger-datadog → debugging}/index.ts +1 -1
  46. package/{src/debugging → debugging}/state.types.ts +1 -1
  47. package/index.ts +18 -0
  48. package/language/index.ts +5 -0
  49. package/{src/language → language}/qa.types.ts +2 -2
  50. package/{src/language → language}/state.types.ts +1 -1
  51. package/modal/index.ts +6 -0
  52. package/{src/modal → modal}/service.types.ts +2 -2
  53. package/{src/modal → modal}/state.types.ts +1 -1
  54. package/orderJourney/index.ts +8 -0
  55. package/{src/orderJourney → orderJourney}/qa.types.ts +2 -2
  56. package/{src/orderJourney → orderJourney}/state.types.ts +1 -1
  57. package/{src/orderJourney → orderJourney}/utils.types.ts +2 -2
  58. package/package.json +16 -5
  59. package/{src/product → product}/api.types.ts +2 -2
  60. package/product/index.ts +10 -0
  61. package/{src/product → product}/qa.types.ts +2 -2
  62. package/{src/product → product}/service.types.ts +2 -2
  63. package/{src/product → product}/state.types.ts +1 -1
  64. package/{src/product → product}/utils.types.ts +2 -2
  65. package/routing/index.ts +3 -0
  66. package/theming/index.ts +6 -0
  67. package/{src/theming → theming}/qa.types.ts +2 -2
  68. package/{src/theming → theming}/state.types.ts +1 -1
  69. package/{src/theming → theming}/types.ts +38 -1
  70. package/tsconfig.json +7 -12
  71. package/{src/ui → ui}/service.types.ts +2 -2
  72. package/{src/wallet → wallet}/api.types.ts +2 -2
  73. package/wallet/index.ts +7 -0
  74. package/{src/wallet → wallet}/service.types.ts +2 -2
  75. package/{src/wallet → wallet}/state.types.ts +1 -1
  76. package/src/_window/auth.types.ts +0 -11
  77. package/src/_window/config.types.ts +0 -30
  78. package/src/_window/instances.types.ts +0 -18
  79. package/src/_window/ui.types.ts +0 -13
  80. package/src/_window/window.ts +0 -56
  81. package/src/alert/functions.types.ts +0 -13
  82. package/src/alert/index.ts +0 -9
  83. package/src/alert/state.initial.ts +0 -16
  84. package/src/alert/state.types.ts +0 -27
  85. package/src/alert/state.validations.ts +0 -11
  86. package/src/ats/functions.types.ts +0 -7
  87. package/src/ats/index.ts +0 -9
  88. package/src/ats/state.initial.ts +0 -5
  89. package/src/ats/state.validations.ts +0 -6
  90. package/src/basket/consts.ts +0 -1
  91. package/src/basket/functions.types.ts +0 -40
  92. package/src/basket/index.ts +0 -12
  93. package/src/basket/state.initial.ts +0 -11
  94. package/src/basket/state.validations.ts +0 -12
  95. package/src/basket/utils.ts +0 -79
  96. package/src/campaign/consts.ts +0 -1
  97. package/src/campaign/functions.types.ts +0 -90
  98. package/src/campaign/index.ts +0 -15
  99. package/src/campaign/qa.types.ts +0 -12
  100. package/src/campaign/state.initial.ts +0 -84
  101. package/src/campaign/state.validations.ts +0 -16
  102. package/src/campaign/utils.ts +0 -53
  103. package/src/common/LocalStorage.ts +0 -123
  104. package/src/common/browser.ts +0 -2
  105. package/src/common/color.ts +0 -9
  106. package/src/common/immutable.ts +0 -28
  107. package/src/common/index.ts +0 -22
  108. package/src/common/instances/Instance.ts +0 -13
  109. package/src/common/instances/consts.ts +0 -1
  110. package/src/common/instances/index.ts +0 -4
  111. package/src/common/json.ts +0 -25
  112. package/src/common/logger/Logger.ts +0 -70
  113. package/src/common/logger/index.ts +0 -5
  114. package/src/common/logger/types.ts +0 -7
  115. package/src/common/logger-datadog/LoggerDatadog.ts +0 -42
  116. package/src/common/misc.ts +0 -114
  117. package/src/common/promise.ts +0 -161
  118. package/src/common/proxy.ts +0 -77
  119. package/src/common/regExTest.ts +0 -12
  120. package/src/common/tree.ts +0 -148
  121. package/src/common/utm.ts +0 -19
  122. package/src/common/validators.ts +0 -21
  123. package/src/common/webComponents.ts +0 -26
  124. package/src/config/functions.types.ts +0 -23
  125. package/src/config/index.ts +0 -5
  126. package/src/config/state.initial.ts +0 -11
  127. package/src/config/state.types.ts +0 -15
  128. package/src/consts.ts +0 -980
  129. package/src/contract/consts.ts +0 -1
  130. package/src/contract/functions.types.ts +0 -112
  131. package/src/contract/index.ts +0 -14
  132. package/src/contract/state.initial.ts +0 -39
  133. package/src/contract/state.validations.ts +0 -21
  134. package/src/contract/utils.ts +0 -36
  135. package/src/debugging/functions.types.ts +0 -34
  136. package/src/debugging/index.ts +0 -6
  137. package/src/debugging/state.initial.ts +0 -10
  138. package/src/debugging/state.validations.ts +0 -10
  139. package/src/index.ts +0 -22
  140. package/src/language/consts.ts +0 -6
  141. package/src/language/en.ts +0 -530
  142. package/src/language/functions.types.ts +0 -29
  143. package/src/language/index.ts +0 -11
  144. package/src/language/state.initial.ts +0 -13
  145. package/src/language/state.validations.ts +0 -10
  146. package/src/language/utils.ts +0 -17
  147. package/src/modal/consts.ts +0 -6
  148. package/src/modal/functions.types.ts +0 -22
  149. package/src/modal/index.ts +0 -11
  150. package/src/modal/state.initial.ts +0 -9
  151. package/src/modal/state.validations.ts +0 -6
  152. package/src/modal/store.types.ts +0 -5
  153. package/src/orderJourney/consts.ts +0 -289
  154. package/src/orderJourney/functions.types.ts +0 -140
  155. package/src/orderJourney/index.ts +0 -13
  156. package/src/orderJourney/state.initial.ts +0 -401
  157. package/src/orderJourney/state.validations.ts +0 -78
  158. package/src/orderJourney/utils.ts +0 -7
  159. package/src/product/consts.ts +0 -1
  160. package/src/product/functions.types.ts +0 -156
  161. package/src/product/index.ts +0 -14
  162. package/src/product/state.initial.ts +0 -28
  163. package/src/product/state.validations.ts +0 -25
  164. package/src/routing/functions.types.ts +0 -48
  165. package/src/routing/index.ts +0 -5
  166. package/src/routing/state.initial.ts +0 -10
  167. package/src/theming/consts.ts +0 -7727
  168. package/src/theming/functions.types.ts +0 -13
  169. package/src/theming/index.ts +0 -11
  170. package/src/theming/state.initial.ts +0 -16
  171. package/src/theming/state.validations.ts +0 -8
  172. package/src/theming/utils.ts +0 -581
  173. package/src/types.ts +0 -229
  174. package/src/utils.ts +0 -3
  175. package/src/wallet/consts.ts +0 -3
  176. package/src/wallet/functions.types.ts +0 -58
  177. package/src/wallet/index.ts +0 -11
  178. package/src/wallet/state.initial.ts +0 -18
  179. package/src/wallet/state.validations.ts +0 -18
  180. /package/{src/_window → _window}/index.ts +0 -0
  181. /package/{src/alert → alert}/enums.ts +0 -0
  182. /package/{src/alert → alert}/types.ts +0 -0
  183. /package/{src/ats → ats}/types.ts +0 -0
  184. /package/{src/basket → basket}/types.ts +0 -0
  185. /package/{src/basket → basket}/validations.types.ts +0 -0
  186. /package/{src/campaign → campaign}/enums.ts +0 -0
  187. /package/{src/campaign → campaign}/types.ts +0 -0
  188. /package/{src/campaign → campaign}/validations.types.ts +0 -0
  189. /package/{src/common → common}/events/EventCommand/enums.ts +0 -0
  190. /package/{src/common → common}/events/EventCommand/index.ts +0 -0
  191. /package/{src/common → common}/events/EventCommand/types.ts +0 -0
  192. /package/{src/common → common}/events/index.ts +0 -0
  193. /package/{src/common → common}/logger/enums.ts +0 -0
  194. /package/{src/common → common}/validations.types.ts +0 -0
  195. /package/{src/contract → contract}/types.ts +0 -0
  196. /package/{src/contract → contract}/validations.types.ts +0 -0
  197. /package/{src/language → language}/validations.types.ts +0 -0
  198. /package/{src/modal → modal}/enums.ts +0 -0
  199. /package/{src/modal → modal}/types.ts +0 -0
  200. /package/{src/orderJourney → orderJourney}/enums.ts +0 -0
  201. /package/{src/orderJourney → orderJourney}/types.ts +0 -0
  202. /package/{src/orderJourney → orderJourney}/validations.types.ts +0 -0
  203. /package/{src/product → product}/enums.ts +0 -0
  204. /package/{src/product → product}/types.ts +0 -0
  205. /package/{src/product → product}/validations.types.ts +0 -0
  206. /package/{src/routing → routing}/state.types.ts +0 -0
  207. /package/{src/theming → theming}/validations.types.ts +0 -0
  208. /package/{src/ui → ui}/index.ts +0 -0
  209. /package/{src/wallet → wallet}/types.ts +0 -0
  210. /package/{src/wallet → wallet}/validations.types.ts +0 -0
@@ -1,401 +0,0 @@
1
- import { OrderJourneyStepKey } from "./enums"
2
- import { OrderJourneyStoreState } from "./state.types"
3
- import {
4
- orderJourneyAddContractsBlurredFields,
5
- orderJourneyAddContractsErrorMessages,
6
- orderJourneyBasketSummaryBlurredFields,
7
- orderJourneyDefaultEnabledSteps,
8
- orderJourneyJBasketSummaryErrorMessages,
9
- orderJourneyOrderConfirmationStepBlurredFields,
10
- orderJourneyOrderConfirmationStepErrorMessages,
11
- orderJourneyOrderReviewStepBlurredFields,
12
- orderJourneyOrderReviewStepErrorMessages,
13
- orderJourneyOrganizationStepBlurredFields,
14
- orderJourneyOrganizationStepErrorMessages,
15
- orderJourneyOrganizationStepHideFields,
16
- orderJourneyPostingDetailsStepBlurredFields,
17
- orderJourneyPostingDetailsStepErrorMessages,
18
- orderJourneyPostingDetailsStepHideFields,
19
- orderJourneyRecruiterInfoStepBlurredFields,
20
- orderJourneyRecruiterInfoStepErrorMessages,
21
- orderJourneyRecruiterInfoStepHideFields,
22
- orderJourneySearchRecommendProductsBlurredFields,
23
- orderJourneysearchRecommendProductsErrorMessages,
24
- orderJourneySearchRecommendProductsHideFields,
25
- orderJourneySelectContractsBlurredFields,
26
- orderJourneySelectContractsErrorMessages,
27
- orderJourneySelectProductsBlurredFields,
28
- orderJourneySelectProductsStepErrorMessages,
29
- orderJourneyTargetGroupStepBlurredFields,
30
- orderJourneyTargetGroupStepErrorMessages,
31
- orderJourneyTargetGroupStepHideFields,
32
- orderJourneyPaymentMethodStepBlurredFields,
33
- orderJourneyPaymentMethodStepErrorMessages,
34
- orderJourneyUTMCodesStepBlurredFields,
35
- orderJourneyUTMCodesStepErrorMessages,
36
- orderJourneyURLsStepBlurredFields,
37
- orderJourneyURLsStepErrorMessages,
38
- orderJourneyURLsStepHideFields,
39
- orderJourneyWorkingLocationStepBlurredFields,
40
- orderJourneyWorkingLocationStepErrorMessages,
41
- orderJourneyWorkingLocationStepHideFields,
42
- } from "./consts"
43
-
44
- export const initialOrderJourneyStoreState: OrderJourneyStoreState = {
45
- stepsEnabled: orderJourneyDefaultEnabledSteps,
46
- steps: [],
47
- stepFirstIndex: 0,
48
- stepLastIndex: orderJourneyDefaultEnabledSteps.length - 1,
49
- stepPrevious: null,
50
- stepPreviousIndex: -1,
51
- stepActiveIndex: 0,
52
- stepActive: null,
53
- stepNext: null,
54
- stepNextIndex: 1,
55
- stepsPopulatedAreHidden: false,
56
- paymentMethodsAvailable: [],
57
- paymentMethodsEnabled: [],
58
- paymentMethodActive: null,
59
- hidePrefilledFields: false,
60
- orderErrors: null,
61
- /* Onboarding */
62
- onboardingStep: {
63
- key: OrderJourneyStepKey.searchRecommendProducts,
64
- titleIntlDescriptor: {
65
- id: "user-journey.landing.heading",
66
- defaultMessage: "Let's target the right talent",
67
- },
68
- descriptionIntlDescriptor: {
69
- id: "user-journey.landing.heading-explanation",
70
- defaultMessage:
71
- "We will use this information to recommend you the best performing channels, so you can target the right candidates.",
72
- },
73
- errorMessagesIntlDescriptors:
74
- orderJourneysearchRecommendProductsErrorMessages,
75
- isSubmitted: false,
76
- blurredFields: orderJourneySearchRecommendProductsBlurredFields,
77
- hideFields: orderJourneySearchRecommendProductsHideFields,
78
- },
79
- onboardingStepData: {},
80
- onboardingStepValidations: {
81
- validityOrErrorMessages: {},
82
- areAllValid: true,
83
- },
84
- /* Select Products */
85
- selectProductsStep: {
86
- key: OrderJourneyStepKey.selectProducts,
87
- titleIntlDescriptor: {
88
- id: "user-journey.job-marketing.select-products",
89
- defaultMessage: "Select Products",
90
- },
91
- descriptionIntlDescriptor: {
92
- id: "user-journey.job-marketing.select-products-explanation",
93
- defaultMessage:
94
- "Based on historical performance results, the below recommended channels should yield the highest amount of clicks on your ad",
95
- },
96
- errorMessagesIntlDescriptors:
97
- orderJourneySelectProductsStepErrorMessages,
98
- isSubmitted: false,
99
- blurredFields: orderJourneySelectProductsBlurredFields,
100
- },
101
- selectProductsStepData: {},
102
- selectProductsStepValidations: {
103
- validityOrErrorMessages: {},
104
- areAllValid: true,
105
- },
106
- /* Select Contracts */
107
- addContractsStep: {
108
- key: OrderJourneyStepKey.addContracts,
109
- titleIntlDescriptor: {
110
- id: "user-journey.job-marketing.add-contracts",
111
- defaultMessage: "Add Contracts",
112
- },
113
- descriptionIntlDescriptor: {
114
- id: "user-journey.job-marketing.add-contracts-explanation",
115
- defaultMessage:
116
- "Add own contract to those that support this feature.",
117
- },
118
- errorMessagesIntlDescriptors: orderJourneyAddContractsErrorMessages,
119
- isSubmitted: false,
120
- blurredFields: orderJourneyAddContractsBlurredFields,
121
- },
122
- addContractsStepData: {},
123
- addContractsStepValidations: {
124
- validityOrErrorMessages: {},
125
- areAllValid: true,
126
- },
127
- /* Select Contracts */
128
- selectContractsStep: {
129
- key: OrderJourneyStepKey.selectContracts,
130
- titleIntlDescriptor: {
131
- id: "user-journey.job-marketing.select-contracts",
132
- defaultMessage: "Select Contracts",
133
- },
134
- descriptionIntlDescriptor: {
135
- id: "user-journey.job-marketing.select-contracts-explanation",
136
- defaultMessage: "Select your existing contracts.",
137
- },
138
- errorMessagesIntlDescriptors: orderJourneySelectContractsErrorMessages,
139
- isSubmitted: false,
140
- blurredFields: orderJourneySelectContractsBlurredFields,
141
- },
142
- selectContractsStepData: {},
143
- selectContractsStepValidations: {
144
- validityOrErrorMessages: {},
145
- areAllValid: true,
146
- },
147
- /* Basket Summary */
148
- basketSummaryStep: {
149
- key: OrderJourneyStepKey.basketSummary,
150
- titleIntlDescriptor: {
151
- id: "user-journey.job-posting.basket-summary",
152
- defaultMessage: "Basket Summary",
153
- },
154
- errorMessagesIntlDescriptors: orderJourneyJBasketSummaryErrorMessages,
155
- isSubmitted: false,
156
- blurredFields: orderJourneyBasketSummaryBlurredFields,
157
- },
158
- basketSummaryStepData: {},
159
- basketSummaryStepValidations: {
160
- validityOrErrorMessages: {},
161
- areAllValid: true,
162
- },
163
- /* Target Group */
164
- targetGroupStep: {
165
- key: OrderJourneyStepKey.targetGroup,
166
- titleIntlDescriptor: {
167
- id: "campaign.target-group.heading",
168
- defaultMessage: "Target Group",
169
- },
170
- descriptionIntlDescriptor: {
171
- id: "campaign.target-group.heading-explanation",
172
- defaultMessage: "Fill in details for your target group",
173
- },
174
- errorMessagesIntlDescriptors: orderJourneyTargetGroupStepErrorMessages,
175
- isSubmitted: false,
176
- blurredFields: orderJourneyTargetGroupStepBlurredFields,
177
- hideFields: orderJourneyTargetGroupStepHideFields,
178
- },
179
- targetGroupStepData: {},
180
- targetGroupStepValidations: {
181
- validityOrErrorMessages: {},
182
- areAllValid: true,
183
- },
184
- /* Recruiter Info */
185
- recruiterInfoStep: {
186
- key: OrderJourneyStepKey.recruiterInfo,
187
- titleIntlDescriptor: {
188
- id: "campaign.recruiter-info.heading",
189
- defaultMessage: "Recruiter Info",
190
- },
191
- descriptionIntlDescriptor: {
192
- id: "campaign.recruiter-info.heading-explanation",
193
- defaultMessage:
194
- "Recruiter is the person using the ATS to create the Campaign and it's generally part of the Company whose Id we request first.",
195
- },
196
- errorMessagesIntlDescriptors:
197
- orderJourneyRecruiterInfoStepErrorMessages,
198
- isSubmitted: false,
199
- blurredFields: orderJourneyRecruiterInfoStepBlurredFields,
200
- hideFields: orderJourneyRecruiterInfoStepHideFields,
201
- },
202
- recruiterInfoStepData: {},
203
- recruiterInfoStepValidations: {
204
- validityOrErrorMessages: {},
205
- areAllValid: true,
206
- },
207
- /* Posting Details */
208
- postingDetailsStep: {
209
- key: OrderJourneyStepKey.postingDetails,
210
- titleIntlDescriptor: {
211
- id: "campaign.posting-details.heading",
212
- defaultMessage: "Posting Details",
213
- },
214
- descriptionIntlDescriptor: {
215
- id: "campaign.posting-details.heading-explanation",
216
- defaultMessage:
217
- "Posting details represents the Job Posting information that's going to be published in the products selected in this request",
218
- },
219
- errorMessagesIntlDescriptors:
220
- orderJourneyPostingDetailsStepErrorMessages,
221
- isSubmitted: false,
222
- blurredFields: orderJourneyPostingDetailsStepBlurredFields,
223
- hideFields: orderJourneyPostingDetailsStepHideFields,
224
- },
225
- postingDetailsStepData: {},
226
- postingDetailsStepValidations: {
227
- validityOrErrorMessages: {},
228
- areAllValid: true,
229
- },
230
- /* Organization */
231
- organizationStep: {
232
- key: OrderJourneyStepKey.postingOrganization,
233
- titleIntlDescriptor: {
234
- id: "common.organization",
235
- defaultMessage: "Organization",
236
- description:
237
- "Organization of the user that is ordering the campaign",
238
- },
239
- descriptionIntlDescriptor: {
240
- id: "campaign.posting-details.line-1",
241
- defaultMessage:
242
- "The Organization for which the Job Posting is going to be directed",
243
- },
244
- errorMessagesIntlDescriptors: orderJourneyOrganizationStepErrorMessages,
245
- isSubmitted: false,
246
- blurredFields: orderJourneyOrganizationStepBlurredFields,
247
- hideFields: orderJourneyOrganizationStepHideFields,
248
- },
249
- organizationStepData: {},
250
- organizationStepValidations: {
251
- validityOrErrorMessages: {},
252
- areAllValid: true,
253
- },
254
- /* Contact Info */
255
- contactInfoStep: {
256
- key: OrderJourneyStepKey.postingContactInfo,
257
- titleIntlDescriptor: {
258
- id: "campaign.contact-info.heading",
259
- defaultMessage: "Contact Info",
260
- },
261
- descriptionIntlDescriptor: {
262
- id: "campaign.contact-info.heading-explanation",
263
- defaultMessage:
264
- "Contact Info may be different from the Recruiter Info and the applicants will use the contact info to reach for the application",
265
- },
266
- errorMessagesIntlDescriptors:
267
- orderJourneyPostingDetailsStepErrorMessages,
268
- isSubmitted: false,
269
- blurredFields: orderJourneyPostingDetailsStepBlurredFields,
270
- hideFields: orderJourneyPostingDetailsStepHideFields,
271
- },
272
- contactInfoStepData: {},
273
- contactInfoStepValidations: {
274
- validityOrErrorMessages: {},
275
- areAllValid: true,
276
- },
277
- /* Working Location */
278
- workingLocationStep: {
279
- key: OrderJourneyStepKey.postingWorkingLocation,
280
- titleIntlDescriptor: {
281
- id: "campaign.work-location.heading",
282
- defaultMessage: "Working Location",
283
- },
284
- descriptionIntlDescriptor: {
285
- id: "campaign.work-location.heading-explanation",
286
- defaultMessage: "Fill in details for the location of the work",
287
- },
288
- errorMessagesIntlDescriptors:
289
- orderJourneyWorkingLocationStepErrorMessages,
290
- isSubmitted: false,
291
- blurredFields: orderJourneyWorkingLocationStepBlurredFields,
292
- hideFields: orderJourneyWorkingLocationStepHideFields,
293
- },
294
- workingLocationStepData: {},
295
- workingLocationStepValidations: {
296
- validityOrErrorMessages: {},
297
- areAllValid: true,
298
- },
299
- /* URLs */
300
- urlsStep: {
301
- key: OrderJourneyStepKey.postingURLs,
302
- titleIntlDescriptor: {
303
- id: "campaign.urls.heading",
304
- defaultMessage: "URLs",
305
- },
306
- descriptionIntlDescriptor: {
307
- id: "campaign.urls.heading-explanation",
308
- defaultMessage:
309
- "Fill in details for your job and application pages",
310
- },
311
- errorMessagesIntlDescriptors: orderJourneyURLsStepErrorMessages,
312
- isSubmitted: false,
313
- blurredFields: orderJourneyURLsStepBlurredFields,
314
- hideFields: orderJourneyURLsStepHideFields,
315
- },
316
- urlsStepData: {},
317
- urlsStepValidations: {
318
- validityOrErrorMessages: {},
319
- areAllValid: true,
320
- },
321
- /* Contract Fields */
322
- contractSteps: [],
323
- contractStepsData: {},
324
- contractStepsValidations: {},
325
- contractStepsValidators: {},
326
- contractStepsBlurredFields: {},
327
- contractStepsErrorMessages: {},
328
- contractStepsSubmittedSteps: {},
329
- contractStepsHideFields: {},
330
- /* UTM Codes */
331
- utmCodesStep: {
332
- key: OrderJourneyStepKey.postingUTMCodes,
333
- titleIntlDescriptor: {
334
- id: "campaign.utm-codes.heading",
335
- defaultMessage: "UTM Codes",
336
- },
337
- descriptionIntlDescriptor: {
338
- id: "campaign.utm-codes.heading-explanation",
339
- defaultMessage:
340
- "We have automatically generated some UTM codes for you but you can edit them to your choosing",
341
- },
342
- errorMessagesIntlDescriptors: orderJourneyUTMCodesStepErrorMessages,
343
- isSubmitted: false,
344
- blurredFields: orderJourneyUTMCodesStepBlurredFields,
345
- },
346
- utmCodesStepData: {},
347
- utmCodesStepValidations: {
348
- validityOrErrorMessages: {},
349
- areAllValid: true,
350
- },
351
- /* Order Review */
352
- orderReviewStep: {
353
- key: OrderJourneyStepKey.orderReview,
354
- titleIntlDescriptor: {
355
- id: "user-journey.job-posting.order-review",
356
- defaultMessage: "Order Review",
357
- },
358
- descriptionIntlDescriptor: {
359
- id: "user-journey.job-posting.order-review-explanation",
360
- defaultMessage: "Review your campaign details before ordering",
361
- },
362
- errorMessagesIntlDescriptors: orderJourneyOrderReviewStepErrorMessages,
363
- isSubmitted: false,
364
- blurredFields: orderJourneyOrderReviewStepBlurredFields,
365
- },
366
- orderReviewStepData: {},
367
- orderReviewStepValidations: {
368
- validityOrErrorMessages: {},
369
- areAllValid: true,
370
- },
371
- /* Payment Method */
372
- paymentMethodStep: {
373
- key: OrderJourneyStepKey.paymentMethod,
374
- titleIntlDescriptor: {
375
- id: "user-journey.payment-method.choose",
376
- defaultMessage: "Choose your payment method",
377
- },
378
- errorMessagesIntlDescriptors:
379
- orderJourneyPaymentMethodStepErrorMessages,
380
- isSubmitted: false,
381
- blurredFields: orderJourneyPaymentMethodStepBlurredFields,
382
- },
383
- paymentMethodStepData: {},
384
- paymentMethodStepValidations: {
385
- validityOrErrorMessages: {},
386
- areAllValid: true,
387
- },
388
- /* Order Confirmation */
389
- orderConfirmationStep: {
390
- key: OrderJourneyStepKey.orderConfirmation,
391
- errorMessagesIntlDescriptors:
392
- orderJourneyOrderConfirmationStepErrorMessages,
393
- isSubmitted: false,
394
- blurredFields: orderJourneyOrderConfirmationStepBlurredFields,
395
- },
396
- orderConfirmationStepData: {},
397
- orderConfirmationStepValidations: {
398
- validityOrErrorMessages: {},
399
- areAllValid: true,
400
- },
401
- }
@@ -1,78 +0,0 @@
1
- import { OrderJourneyStoreState } from "./state.types"
2
- import { StateValidations } from "../_window/state.types"
3
-
4
- export const orderJourneyStoreStateValidations: StateValidations<OrderJourneyStoreState> =
5
- {
6
- stepsPopulatedAreHidden: "common.genericBoolean",
7
- hidePrefilledFields: "common.genericBoolean",
8
- contractStepsHideFields: "common.genericRecordBoolean",
9
- stepsEnabled: "orderJourney.stepKeys",
10
- paymentMethodActive: "orderJourney.paymentMethod",
11
- paymentMethodsEnabled: "orderJourney.paymentMethods",
12
- paymentMethodsAvailable: "orderJourney.paymentMethods",
13
- steps: "throwHasNoSetterError",
14
- stepPreviousIndex: "throwHasNoSetterError",
15
- stepActiveIndex: "common.genericNumber",
16
- stepNextIndex: "throwHasNoSetterError",
17
- stepPrevious: "throwHasNoSetterError",
18
- stepActive: "throwHasNoSetterError",
19
- stepNext: "throwHasNoSetterError",
20
- stepFirstIndex: "throwHasNoSetterError",
21
- stepLastIndex: "throwHasNoSetterError",
22
- orderErrors: "common.genericAny",
23
- onboardingStep: "orderJourney.step",
24
- onboardingStepData: "throwHasNoSetterError",
25
- onboardingStepValidations: "throwHasNoSetterError",
26
- selectProductsStep: "orderJourney.step",
27
- selectProductsStepData: "throwHasNoSetterError",
28
- selectProductsStepValidations: "throwHasNoSetterError",
29
- addContractsStep: "orderJourney.step",
30
- addContractsStepData: "throwHasNoSetterError",
31
- addContractsStepValidations: "throwHasNoSetterError",
32
- selectContractsStep: "orderJourney.step",
33
- selectContractsStepData: "throwHasNoSetterError",
34
- selectContractsStepValidations: "throwHasNoSetterError",
35
- basketSummaryStep: "orderJourney.step",
36
- basketSummaryStepData: "throwHasNoSetterError",
37
- basketSummaryStepValidations: "throwHasNoSetterError",
38
- targetGroupStep: "orderJourney.step",
39
- targetGroupStepData: "throwHasNoSetterError",
40
- targetGroupStepValidations: "throwHasNoSetterError",
41
- recruiterInfoStep: "orderJourney.step",
42
- recruiterInfoStepData: "throwHasNoSetterError",
43
- recruiterInfoStepValidations: "throwHasNoSetterError",
44
- postingDetailsStep: "orderJourney.step",
45
- postingDetailsStepData: "throwHasNoSetterError",
46
- postingDetailsStepValidations: "throwHasNoSetterError",
47
- organizationStep: "orderJourney.step",
48
- organizationStepData: "throwHasNoSetterError",
49
- organizationStepValidations: "throwHasNoSetterError",
50
- contactInfoStep: "orderJourney.step",
51
- contactInfoStepData: "throwHasNoSetterError",
52
- contactInfoStepValidations: "throwHasNoSetterError",
53
- workingLocationStep: "orderJourney.step",
54
- workingLocationStepData: "throwHasNoSetterError",
55
- workingLocationStepValidations: "throwHasNoSetterError",
56
- urlsStep: "orderJourney.step",
57
- urlsStepData: "throwHasNoSetterError",
58
- urlsStepValidations: "throwHasNoSetterError",
59
- contractSteps: "throwHasNoSetterError",
60
- contractStepsValidators: "common.genericRecordString",
61
- contractStepsBlurredFields: "common.genericRecordBoolean",
62
- contractStepsErrorMessages: "common.genericRecordString",
63
- contractStepsSubmittedSteps: "common.genericRecordBoolean",
64
- contractStepsData: "throwHasNoSetterError",
65
- contractStepsValidations: "throwHasNoSetterError",
66
- utmCodesStep: "orderJourney.step",
67
- utmCodesStepData: "throwHasNoSetterError",
68
- utmCodesStepValidations: "throwHasNoSetterError",
69
- orderReviewStep: "orderJourney.step",
70
- orderReviewStepData: "throwHasNoSetterError",
71
- orderReviewStepValidations: "throwHasNoSetterError",
72
- paymentMethodStep: "orderJourney.step",
73
- paymentMethodStepData: "throwHasNoSetterError",
74
- paymentMethodStepValidations: "throwHasNoSetterError",
75
- orderConfirmationStep: "orderJourney.step",
76
- orderConfirmationStepData: "throwHasNoSetterError",
77
- orderConfirmationStepValidations: "throwHasNoSetterError",
78
- }
@@ -1,7 +0,0 @@
1
- import { OrderJourneyStepKey } from "./enums"
2
-
3
- export const orderJourneyGetContractStepKey = (contractId: string) =>
4
- `${OrderJourneyStepKey.contractChannelPostingRequirements}-${contractId}`
5
-
6
- export const orderJourneyGetContractIdFromContractStepKey = (key: string) =>
7
- key.split(`${OrderJourneyStepKey.contractChannelPostingRequirements}-`)[1]
@@ -1 +0,0 @@
1
- export const PRODUCTS_FILTERS_MAX_MULTI_SELECT_LIMIT = 1 //when 0 it is unlimited
@@ -1,156 +0,0 @@
1
- /* Products */
2
-
3
- import {
4
- Product,
5
- ProductIndustry,
6
- ProductJobFunction,
7
- ProductJobTitle,
8
- ProductLocation,
9
- ProductSupportingContractsPartial,
10
- } from "./types"
11
- import { PaginationResponseV1 } from "../common/types"
12
-
13
- export type ProductStoreSetPaginationMetaHandler = (
14
- meta: PaginationResponseV1 | null,
15
- ) => void
16
- export type ProductStoreSetProductsHandler = (products: Product[]) => void
17
- export type ProductStoreSetRecommendedProductsHandler = (
18
- products: Product[],
19
- ) => void
20
- export type ProductStoreSetRelevantProductsHandler = (
21
- products: Product[],
22
- ) => void
23
- export type ProductStoreSetMyContractsOnlyProductsHandler = (
24
- products: Product[],
25
- ) => void
26
- export type ProductStoreSetProductsAreLoadingHandler = (
27
- isLoading: boolean,
28
- ) => void
29
- export type ProductStoreSetFilterProductNameHandler = (name: string) => void
30
- export type ProductStoreSetFilterSelectedProductRegionIdHandler = (
31
- id: number[],
32
- ) => void
33
- /* Locations */
34
- export type ProductStoreSetLocationsHandler = (
35
- locations: ProductLocation[],
36
- ) => void
37
- /* Job Titles*/
38
- export type ProductStoreSetJobTitlesHandler = (
39
- titles: ProductJobTitle[],
40
- ) => void
41
- export type ProductStoreSetFilterSelectedJobTitleIdsHandler = (
42
- id: number[],
43
- ) => void
44
- /* Job Functions */
45
- export type ProductStoreSetJobFunctionsHandler = (
46
- functions: ProductJobFunction[],
47
- ) => void
48
- export type ProductStoreSetIsLoadingJobFunctionsHandler = (
49
- isLoading: boolean,
50
- ) => void
51
- export type ProductStoreSetFilterJobFunctionHandler = (
52
- functionName: string,
53
- ) => void
54
- export type ProductStoreSetFilterSelectedJobFunctionIdsHandler = (
55
- id: number[],
56
- ) => void
57
- /* Industries */
58
- export type ProductStoreSetIndustriesHandler = (
59
- industries: ProductIndustry[],
60
- ) => void
61
- export type ProductStoreSetIsLoadingIndustriesHandler = (
62
- isLoading: boolean,
63
- ) => void
64
- export type ProductStoreSetFilterSelectedJobIndustryIdHandler = (
65
- id: number[],
66
- ) => void
67
-
68
- /* Products that only support My Contracts */
69
- export type ProductStoreSetProductsWithContractsSupportHandler = (
70
- productsWithContractsSupport: ProductSupportingContractsPartial[],
71
- ) => void
72
- export type ProductStoreSetProductsWithContractsSupportAreLoadingHandler = (
73
- isLoading: boolean,
74
- ) => void
75
-
76
- export type ProductStoreFunctions = {
77
- /* Products */
78
- /**
79
- * The function that sets the value of either `productsPaginationMeta`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
80
- */
81
- setPaginationMeta: ProductStoreSetPaginationMetaHandler
82
- /**
83
- * The function that sets the value of `products`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
84
- */
85
- setProducts: ProductStoreSetProductsHandler
86
- /**
87
- * The function that sets the value of `recommendedProducts`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
88
- */
89
- setRecommendedProducts: ProductStoreSetRecommendedProductsHandler
90
- /**
91
- * The function that sets the value of `productsAreLoading`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
92
- */
93
- setProductsAreLoading: ProductStoreSetProductsAreLoadingHandler
94
- /**
95
- * The function that sets the value of `filterProductName`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
96
- */
97
- setProductNameInput: ProductStoreSetFilterProductNameHandler
98
- /**
99
- * The function that sets the value of `filterSelectedProductRegionId`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
100
- */
101
- setJobRegionsIdsSelected: ProductStoreSetFilterSelectedProductRegionIdHandler
102
- /* Locations */
103
- /**
104
- * The function that sets the value of `locations`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
105
- */
106
- setJobRegions: ProductStoreSetLocationsHandler
107
- /* Job Titles */
108
- /**
109
- * The function that sets the value of `jobTitles`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
110
- */
111
- setJobTitles: ProductStoreSetJobTitlesHandler
112
- /**
113
- * The function that sets the value of `filterSelectedJobTitleIds`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
114
- */
115
- setJobTitlesIdsSelected: ProductStoreSetFilterSelectedJobTitleIdsHandler
116
- /* Job Functions */
117
- /**
118
- * The function that sets the value of `jobFunctions`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
119
- */
120
- setJobFunctions: ProductStoreSetJobFunctionsHandler
121
- /**
122
- * The function that sets the value of `isLoadingJobFunctions`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
123
- */
124
- setJobFunctionsAreLoading: ProductStoreSetIsLoadingJobFunctionsHandler
125
- /**
126
- * The function that sets the value of `filterJobFunction`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
127
- */
128
- setJobFunctionsInput: ProductStoreSetFilterJobFunctionHandler
129
- /**
130
- * The function that sets the value of `filterSelectedJobFunctionIds`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
131
- */
132
- setJobFunctionsIdsSelected: ProductStoreSetFilterSelectedJobFunctionIdsHandler
133
- /* Industries */
134
- /**
135
- * The function that sets the value of `industries`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
136
- */
137
- setJobIndustries: ProductStoreSetIndustriesHandler
138
- /**
139
- * The function that sets the value of `isLoadingIndustries`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
140
- */
141
- setJobIndustriesAreLoading: ProductStoreSetIsLoadingIndustriesHandler
142
- /**
143
- * The function that sets the value of `filterSelectedJobIndustryId`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
144
- */
145
- setJobIndustriesIdsSelected: ProductStoreSetFilterSelectedJobIndustryIdHandler
146
- /* Sort By */
147
- /* Products that only support My Contracts */
148
- /**
149
- * The function that sets the value of `productsWithContractsSupport`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
150
- */
151
- setProductsWithContractsSupport: ProductStoreSetProductsWithContractsSupportHandler
152
- /**
153
- * The function that sets the value of `productsWithContractsSupportAreLoading`. Refer to [ProductStoreState](/docs/sdk/products/#productstorestate) for more details.
154
- */
155
- setProductsWithContractsSupportAreLoading: ProductStoreSetProductsWithContractsSupportAreLoadingHandler
156
- }
@@ -1,14 +0,0 @@
1
- // created from 'create-ts-index'
2
-
3
- export * from './api.types';
4
- export * from './consts';
5
- export * from './enums';
6
- export * from './functions.types';
7
- export * from './qa.types';
8
- export * from './service.types';
9
- export * from './state.initial';
10
- export * from './state.types';
11
- export * from './state.validations';
12
- export * from './types';
13
- export * from './utils.types';
14
- export * from './validations.types';