@vonq/hapi-elements-types 1.22.0 → 1.24.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 (100) hide show
  1. package/_window/api.types.ts +12 -13
  2. package/_window/index.ts.bak +16 -0
  3. package/_window/qa.types.ts +1 -0
  4. package/_window/sdk.types.ts +5 -2
  5. package/_window/service.types.ts +3 -12
  6. package/_window/state.types.ts +0 -24
  7. package/_window/ui.types.ts +8 -1
  8. package/_window/utils.types.ts +3 -0
  9. package/_window/window.ts +22 -3
  10. package/alert/index.ts +4 -4
  11. package/alert/index.ts.bak +6 -0
  12. package/ats/index.ts +4 -4
  13. package/ats/index.ts.bak +6 -0
  14. package/ats/types.ts +7 -1
  15. package/basket/index.ts +5 -5
  16. package/basket/index.ts.bak +7 -0
  17. package/basket/service.types.ts +3 -1
  18. package/basket/utils.types.ts +6 -2
  19. package/campaign/api.types.ts +5 -1
  20. package/campaign/enums.ts +0 -3
  21. package/campaign/index.ts +8 -8
  22. package/campaign/index.ts.bak +10 -0
  23. package/campaign/service.types.ts +14 -0
  24. package/campaign/types.ts +31 -21
  25. package/campaign/utils.types.ts +1 -0
  26. package/campaign/validations.types.ts +15 -1
  27. package/common/enums.ts +0 -4
  28. package/common/events/EventCommand/index.ts.bak +4 -0
  29. package/common/events/index.ts.bak +4 -0
  30. package/common/index.ts +7 -5
  31. package/common/index.ts.bak +9 -0
  32. package/common/logger/index.ts +4 -0
  33. package/common/logger/index.ts.bak +4 -0
  34. package/common/types.ts +20 -3
  35. package/common/validations.types.ts +2 -0
  36. package/common/validator/index.ts +3 -0
  37. package/common/validator/index.ts.bak +3 -0
  38. package/contract/api.types.ts +1 -0
  39. package/contract/index.ts +7 -7
  40. package/contract/index.ts.bak +9 -0
  41. package/contract/service.types.ts +7 -1
  42. package/contract/types.ts +2 -0
  43. package/contract/validations.types.ts +1 -0
  44. package/debugging/index.ts +3 -2
  45. package/debugging/index.ts.bak +5 -0
  46. package/index.ts +16 -16
  47. package/index.ts.bak +18 -0
  48. package/language/enums.ts +5 -0
  49. package/language/index.ts +6 -3
  50. package/language/index.ts.bak +8 -0
  51. package/language/service.types.ts +7 -0
  52. package/language/state.types.ts +3 -1
  53. package/language/utils.types.ts +11 -0
  54. package/modal/enums.ts +3 -3
  55. package/modal/index.ts +5 -4
  56. package/modal/index.ts.bak +7 -0
  57. package/modal/types.ts +11 -8
  58. package/orderJourney/index.ts +7 -6
  59. package/orderJourney/index.ts.bak +9 -0
  60. package/orderJourney/qa.types.ts +3 -1
  61. package/orderJourney/service.types.ts +3 -8
  62. package/orderJourney/state.types.ts +31 -8
  63. package/orderJourney/types.ts +79 -16
  64. package/orderJourney/validations.types.ts +13 -2
  65. package/package.json +2 -3
  66. package/product/index.ts +8 -8
  67. package/product/index.ts.bak +10 -0
  68. package/product/types.ts +4 -1
  69. package/routing/index.ts +2 -1
  70. package/routing/index.ts.bak +4 -0
  71. package/theming/index.ts +4 -4
  72. package/theming/index.ts.bak +6 -0
  73. package/theming/types.ts +44 -0
  74. package/theming/validations.types.ts +16 -0
  75. package/ui/index.ts.bak +3 -0
  76. package/wallet/index.ts +5 -5
  77. package/wallet/index.ts.bak +7 -0
  78. package/wallet/state.types.ts +1 -1
  79. package/wallet/types.ts +6 -1
  80. package/talentMindCompany/api.types.ts +0 -18
  81. package/talentMindCompany/service.types.ts +0 -15
  82. package/talentMindCompany/state.types.ts +0 -5
  83. package/talentMindCompany/types.ts +0 -6
  84. package/talentMindCompany/validations.types.ts +0 -5
  85. package/talentMindEvaluation/api.types.ts +0 -25
  86. package/talentMindEvaluation/service.types.ts +0 -25
  87. package/talentMindEvaluation/state.types.ts +0 -6
  88. package/talentMindEvaluation/types.ts +0 -15
  89. package/talentMindEvaluation/validations.types.ts +0 -5
  90. package/talentMindJob/api.types.ts +0 -26
  91. package/talentMindJob/service.types.ts +0 -28
  92. package/talentMindJob/state.types.ts +0 -6
  93. package/talentMindJob/types.ts +0 -12
  94. package/talentMindJob/validations.types.ts +0 -5
  95. package/talentMindResume/api.types.ts +0 -30
  96. package/talentMindResume/service.types.ts +0 -34
  97. package/talentMindResume/state.types.ts +0 -6
  98. package/talentMindResume/types.ts +0 -119
  99. package/talentMindResume/validations.types.ts +0 -5
  100. package/tsconfig.json +0 -36
@@ -13,6 +13,7 @@ import {
13
13
  } from "zod"
14
14
  import { ZodProductDuration } from "../product/validations.types"
15
15
  import { OrderJourneyPaymentMethod } from "../orderJourney"
16
+ import { CampaignDraftStatus } from "./types"
16
17
 
17
18
  export type ZodCampaignTotalPrice = ZodObject<{
18
19
  amount: ZodNumber
@@ -156,7 +157,17 @@ export type ZodCampaignDraft = ZodObject<{
156
157
  paymentStatus: ZodString
157
158
  }>
158
159
 
159
- export type ZodCampaigns = ZodArray<ZodUnion<[ZodCampaign, ZodCampaignDraft]>>
160
+ export type ZodCampaignDraftStatus = ZodObject<{
161
+ status: ZodString
162
+ }>
163
+
164
+ export type ZodCampaignDraftV2 = ZodObject<{
165
+ draft: ZodOptional<ZodCampaignDraftStatus>
166
+ }>
167
+
168
+ export type ZodCampaigns = ZodArray<
169
+ ZodUnion<[ZodCampaign, ZodCampaignDraft, ZodCampaignDraftV2]>
170
+ >
160
171
  export type ZodCampaignCreateFormPostingDetails = ZodObject<{
161
172
  title: ZodString
162
173
  description: ZodString
@@ -183,6 +194,7 @@ export type ZodCampaignCreateFormTargetGroup = ZodObject<{
183
194
  >
184
195
  }>
185
196
  export type ZodCampaignCreateForm = ZodObject<{
197
+ labels: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>
186
198
  companyId: ZodString
187
199
  campaignName: ZodOptional<ZodNullable<ZodString>>
188
200
  poNumber: ZodOptional<ZodNullable<ZodString>>
@@ -197,7 +209,9 @@ export type ZodCampaignCreateForm = ZodObject<{
197
209
  }>
198
210
  export type WindowHapiValidationsCampaign = {
199
211
  status: string[]
212
+ draftStatus: CampaignDraftStatus[]
200
213
  statusRegex: RegExp
214
+ draftStatusRegex: RegExp
201
215
  supportedEmploymentType: string[]
202
216
  employmentTypeRegex: RegExp
203
217
  employmentType: ZodCampaignEmploymentType
package/common/enums.ts CHANGED
@@ -33,10 +33,6 @@ export enum WindowHapiModuleName {
33
33
  alert = "alert",
34
34
  modal = "modal",
35
35
  "ui" = "ui",
36
- talentMindCompany = "talentMindCompany",
37
- talentMindJob = "talentMindJob",
38
- talentMindResume = "talentMindResume",
39
- talentMindEvaluation = "talentMindEvaluation",
40
36
  }
41
37
 
42
38
  export enum WindowHapiSDKModuleName {
@@ -0,0 +1,4 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './enums';
4
+ export * from './types';
@@ -0,0 +1,4 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './EventCommand';
4
+ export * from './types';
package/common/index.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  // created from 'create-ts-index'
2
2
 
3
- export * from "./events"
4
- export * from "./qa.types"
5
- export * from "./types"
6
- export * from "./validations.types"
7
- export * from "./enums"
3
+ export * from './events';
4
+ export * from './logger';
5
+ export * from './validator';
6
+ export * from './enums';
7
+ export * from './qa.types';
8
+ export * from './types';
9
+ export * from './validations.types';
@@ -0,0 +1,9 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './events';
4
+ export * from './logger';
5
+ export * from './validator';
6
+ export * from './enums';
7
+ export * from './qa.types';
8
+ export * from './types';
9
+ export * from './validations.types';
@@ -0,0 +1,4 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './enums';
4
+ export * from './types';
@@ -0,0 +1,4 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './enums';
4
+ export * from './types';
package/common/types.ts CHANGED
@@ -54,9 +54,14 @@ export type HapiInputErrorMessageOrValidity =
54
54
  | boolean
55
55
  | undefined
56
56
  | null
57
+ export type UseValidatorResultValidityOrErrorMessages = Record<
58
+ string,
59
+ HapiInputErrorMessageOrValidity
60
+ >
57
61
  export type UseValidatorResult = {
58
- validityOrErrorMessages: Record<string, HapiInputErrorMessageOrValidity>
62
+ validityOrErrorMessages: UseValidatorResultValidityOrErrorMessages
59
63
  areAllValid: boolean
64
+ hasBackendTakenOver?: boolean
60
65
  }
61
66
  export type ValidatorKey =
62
67
  | Exclude<
@@ -127,6 +132,7 @@ export type PostingRequirementType =
127
132
  | "AUTOCOMPLETE"
128
133
  | "STATISCH"
129
134
  | "FILE-URL"
135
+ | "HTMLAREA"
130
136
 
131
137
  export type PostingRequirementRuleName =
132
138
  | "int"
@@ -217,16 +223,26 @@ export type PostingRequirementOption = {
217
223
  default?: string
218
224
  key: string
219
225
  label: string
220
- data?: any[]
226
+ data?: PostingRequirementOptionData
221
227
  labels?: Record<"default", string>
222
228
  sort: string
223
229
  parent?: string
224
230
  requires?: PostingRequirementOptionRequiresField[] | null
225
231
  show?: string[]
226
232
  }
233
+ export type PostingRequirementOptionDataImage = {
234
+ image: {
235
+ title: string
236
+ src: string
237
+ }
238
+ }
239
+ export type PostingRequirementOptionData = {
240
+ description?: string
241
+ images?: PostingRequirementOptionDataImage[]
242
+ }
227
243
  export type TransformedPostingRequirementOption = {
228
244
  value?: string
229
- data?: any[]
245
+ data?: PostingRequirementOptionData
230
246
  requires?: PostingRequirementOptionRequiresField[] | null
231
247
  label: string
232
248
  show?: string[]
@@ -245,6 +261,7 @@ export type PostingRequirementsAutocompleteRequestOption = {
245
261
  }
246
262
  export type FormFacetsFieldType =
247
263
  | "input"
264
+ | "input-html"
248
265
  | "textarea"
249
266
  | "select"
250
267
  | "select-multi"
@@ -59,6 +59,7 @@ export type WindowHapiValidationsCommon = {
59
59
  genericBoolean: ZodBoolean
60
60
  genericNumber: ZodNumber
61
61
  genericNumberArray: ZodArray<ZodNumber>
62
+ genericNumberOrNull: ZodNullable<ZodNumber>
62
63
  genericString: ZodString
63
64
  genericStringArray: ZodArray<ZodString>
64
65
  genericObject: ZodObject<any>
@@ -67,6 +68,7 @@ export type WindowHapiValidationsCommon = {
67
68
  ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>
68
69
  >
69
70
  genericRecordBoolean: ZodRecord<ZodString, ZodBoolean>
71
+ genericBooleanOrNull: ZodNullable<ZodBoolean>
70
72
  genericRecordAny: ZodRecord<ZodString, ZodAny>
71
73
  genericRecordString: ZodRecord<ZodString, ZodString>
72
74
  genericStringOrNumber: ZodUnion<[ZodNumber, ZodString]>
@@ -0,0 +1,3 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './types';
@@ -22,6 +22,7 @@ export type WindowHapiAPIContractConfigs = {
22
22
  export type WindowHapiAPIContractRequests = {
23
23
  getContracts: (
24
24
  limitOffset?: PaginationLimitOffset,
25
+ labels?: Record<string, string> | null,
25
26
  ) => Promise<PaginatedAPIResponseV1<Contract>>
26
27
  getContractsByIds: (
27
28
  contractIds: (string | number)[],
package/contract/index.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  // created from 'create-ts-index'
2
2
 
3
- export * from "./api.types"
4
- export * from "./qa.types"
5
- export * from "./service.types"
6
- export * from "./state.types"
7
- export * from "./types"
8
- export * from "./utils.types"
9
- export * from "./validations.types"
3
+ export * from './api.types';
4
+ export * from './qa.types';
5
+ export * from './service.types';
6
+ export * from './state.types';
7
+ export * from './types';
8
+ export * from './utils.types';
9
+ export * from './validations.types';
@@ -0,0 +1,9 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './api.types';
4
+ export * from './qa.types';
5
+ export * from './service.types';
6
+ export * from './state.types';
7
+ export * from './types';
8
+ export * from './utils.types';
9
+ export * from './validations.types';
@@ -5,8 +5,8 @@ import {
5
5
  import { OrderJourneyStepKey } from "../orderJourney/enums"
6
6
  import { Contract, ContractCredential, ContractGroup } from "./types"
7
7
  import {
8
- PostingRequirementsAutocompleteRequestOption,
9
8
  PaginatedAPIResponseV1,
9
+ PostingRequirementsAutocompleteRequestOption,
10
10
  } from "../common/types"
11
11
  import { WindowHapiModuleWithConstructorArgs } from "../_window"
12
12
 
@@ -21,6 +21,11 @@ export type ContractServiceGetContractsHandler = (
21
21
  export type ContractServiceGetContractGroupsHandler = () => Promise<
22
22
  ContractGroup[]
23
23
  >
24
+ export type ContractServiceGetContractsLabeledHandler = (
25
+ offset?: number,
26
+ limit?: number,
27
+ labels?: Record<string, string> | null,
28
+ ) => Promise<PaginatedAPIResponseV1<Contract>>
24
29
  export type ContractServiceCreateContractHandler = () => Promise<Contract>
25
30
  export type ContractServiceRemoveContractHandler = (
26
31
  contractId: string,
@@ -34,6 +39,7 @@ export type ContractServiceGetContractHandler = (
34
39
  export type WindowHapiServiceContract = WindowHapiModuleWithConstructorArgs<
35
40
  {
36
41
  getContractPostingRequirementOptions: HapiServiceFunctionWithLifecycleHooks<ContractServiceGetContractPostingRequirementOptionsHandler>
42
+ getContractsLabeled: HapiServiceFunctionWithLifecycleHooks<ContractServiceGetContractsLabeledHandler>
37
43
  getContracts: HapiServiceFunctionWithLifecycleHooks<ContractServiceGetContractsHandler>
38
44
  getContractGroups: HapiServiceFunctionWithLifecycleHooks<ContractServiceGetContractGroupsHandler>
39
45
  createContract: HapiServiceFunctionWithLifecycleHooks<ContractServiceCreateContractHandler>
package/contract/types.ts CHANGED
@@ -34,6 +34,7 @@ export type ContractCreateForm = {
34
34
  followed_instructions: boolean
35
35
  posting_duration_days: number | null
36
36
  allow_renegotiation: boolean
37
+ labels: Record<string, string> | null
37
38
  }
38
39
 
39
40
  export type ContractGroupCreateForm = {
@@ -48,6 +49,7 @@ export type ContractChannel = ProductLogos &
48
49
  }
49
50
 
50
51
  export type Contract = {
52
+ labels: Record<string, string> | null
51
53
  channel?: ContractChannel
52
54
  alias: string
53
55
  channel_id: number
@@ -67,6 +67,7 @@ export type ZodContractCreateForm = ZodObject<{
67
67
  ]
68
68
  >
69
69
  allow_renegotiation: ZodOptional<ZodBoolean>
70
+ labels: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>
70
71
  }>
71
72
  export type ZodContractPostingRequirementAutocompleteRequestOptions = ZodRecord<
72
73
  ZodString,
@@ -1,4 +1,5 @@
1
1
  // created from 'create-ts-index'
2
2
 
3
- export * from "./state.types"
4
- export * from "./types"
3
+ export * from './service.types';
4
+ export * from './state.types';
5
+ export * from './types';
@@ -0,0 +1,5 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './service.types';
4
+ export * from './state.types';
5
+ export * from './types';
package/index.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  // created from 'create-ts-index'
2
2
 
3
- export * from "./_window"
4
- export * from "./alert"
5
- export * from "./ats"
6
- export * from "./basket"
7
- export * from "./campaign"
8
- export * from "./common"
9
- export * from "./contract"
10
- export * from "./debugging"
11
- export * from "./language"
12
- export * from "./modal"
13
- export * from "./orderJourney"
14
- export * from "./product"
15
- export * from "./routing"
16
- export * from "./theming"
17
- export * from "./ui"
18
- export * from "./wallet"
3
+ export * from './_window';
4
+ export * from './alert';
5
+ export * from './ats';
6
+ export * from './basket';
7
+ export * from './campaign';
8
+ export * from './common';
9
+ export * from './contract';
10
+ export * from './debugging';
11
+ export * from './language';
12
+ export * from './modal';
13
+ export * from './orderJourney';
14
+ export * from './product';
15
+ export * from './routing';
16
+ export * from './theming';
17
+ export * from './ui';
18
+ export * from './wallet';
package/index.ts.bak ADDED
@@ -0,0 +1,18 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './_window';
4
+ export * from './alert';
5
+ export * from './ats';
6
+ export * from './basket';
7
+ export * from './campaign';
8
+ export * from './common';
9
+ export * from './contract';
10
+ export * from './debugging';
11
+ export * from './language';
12
+ export * from './modal';
13
+ export * from './orderJourney';
14
+ export * from './product';
15
+ export * from './routing';
16
+ export * from './theming';
17
+ export * from './ui';
18
+ export * from './wallet';
@@ -0,0 +1,5 @@
1
+ export enum LanguageSupportedLocale {
2
+ "en" = "en",
3
+ "nl" = "nl",
4
+ "de" = "de",
5
+ }
package/language/index.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  // created from 'create-ts-index'
2
2
 
3
- export * from "./qa.types"
4
- export * from "./state.types"
5
- export * from "./validations.types"
3
+ export * from './enums';
4
+ export * from './qa.types';
5
+ export * from './service.types';
6
+ export * from './state.types';
7
+ export * from './utils.types';
8
+ export * from './validations.types';
@@ -0,0 +1,8 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './enums';
4
+ export * from './qa.types';
5
+ export * from './service.types';
6
+ export * from './state.types';
7
+ export * from './utils.types';
8
+ export * from './validations.types';
@@ -0,0 +1,7 @@
1
+ import { WindowHapiService } from "../_window/service.types"
2
+ import { WindowHapiModuleWithConstructorArgs } from "../_window"
3
+
4
+ export type WindowHapiServiceLanguage = WindowHapiModuleWithConstructorArgs<
5
+ {},
6
+ { readonly service: WindowHapiService }
7
+ >
@@ -1,9 +1,11 @@
1
+ import { LanguageSupportedLocale } from "./enums"
2
+
1
3
  export type LanguageStoreLocaleTranslations = Record<string, string>
2
4
  export type LanguageStoreTranslations = Record<
3
5
  string,
4
6
  LanguageStoreLocaleTranslations
5
7
  >
6
8
  export type LanguageState = {
7
- locale: string
9
+ locale: LanguageSupportedLocale | string
8
10
  translations: LanguageStoreTranslations
9
11
  }
@@ -0,0 +1,11 @@
1
+ import { WindowHapiUtils } from "../_window/utils.types"
2
+ import { WindowHapiModuleWithConstructorArgs } from "../_window"
3
+ import { LanguageSupportedLocale } from "./enums"
4
+
5
+ export type WindowHapiUtilsLanguage = WindowHapiModuleWithConstructorArgs<
6
+ {
7
+ localeKeys: typeof LanguageSupportedLocale
8
+ localesSupportedByBackend: LanguageSupportedLocale[]
9
+ },
10
+ { readonly utils: WindowHapiUtils }
11
+ >
package/modal/enums.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export enum ModalZone {
2
2
  "primary" = "primary",
3
3
  "secondary" = "secondary",
4
+ "tercary" = "tercary",
4
5
  }
5
6
 
6
7
  export enum ModalKeys {
@@ -14,12 +15,12 @@ export enum ModalKeys {
14
15
  campaignCopySelection = "contract-copy-selection",
15
16
  campaignEdit = "campaign-edit",
16
17
  basketRemoveProductConfirmation = "remove-product-from-basket",
18
+ basketProductBundleParentClashConfirmation = "basket-product-bundle-parent-clash-confirmation",
19
+ basketProductBundleChildClashConfirmation = "basket-product-bundle-child-clash-confirmation",
17
20
  contractRemoveConfirmation = "contract-remove-confirmation",
18
21
  contractGroupConflictInfo = "contract-group-conflict-info",
19
22
  filePicker = "file-picker",
20
23
  contractPostingRequirementsSmartFillSuccess = "contract-posting-requirements-smart-fill-success",
21
- talentMindEvaluateJobWithResume = "talentmind-evaluate-job-with-resume",
22
- talentMindEvaluateResumeWithJob = "talentmind-evaluate-resume-with-job",
23
24
  "mediaEditor" = "media-editor",
24
25
  "uploadWidget" = "upload-widget",
25
26
  "mediaLibrary" = "media-library",
@@ -27,6 +28,5 @@ export enum ModalKeys {
27
28
 
28
29
  export enum FilePickerModalPropsActionFor {
29
30
  postingOrganization = "posting-organization",
30
- talentmindResume = "talentmind-resume",
31
31
  postingRequirements = "posting-requirements",
32
32
  }
package/modal/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  // created from 'create-ts-index'
2
2
 
3
- export * from "./enums"
4
- export * from "./service.types"
5
- export * from "./state.types"
6
- export * from "./types"
3
+ export * from './enums';
4
+ export * from './service.types';
5
+ export * from './state.types';
6
+ export * from './types';
7
+ export * from './utils.types';
@@ -0,0 +1,7 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './enums';
4
+ export * from './service.types';
5
+ export * from './state.types';
6
+ export * from './types';
7
+ export * from './utils.types';
package/modal/types.ts CHANGED
@@ -3,10 +3,9 @@ import { Contract } from "../contract/types"
3
3
  import { FilePickerModalPropsActionFor, ModalKeys, ModalZone } from "./enums"
4
4
  import { AnyNonFunction, TransformedPostingRequirement } from "../common/types"
5
5
  import { Campaign } from "../campaign"
6
- import { TalentMindResume } from "../talentMindResume/types"
7
- import { TalentMindJob } from "../talentMindJob/types"
8
6
  import { OrderJourneyPaymentMethod } from "../orderJourney"
9
7
  import { PickerDisplayMode } from "filestack-js"
8
+ import { HapiSiteTheme } from "../theming"
10
9
 
11
10
  export type ProductDetailModalProps = {
12
11
  id: string
@@ -29,6 +28,14 @@ export type CampaignCopySelectionModalProps = {
29
28
  products: (Product | Contract)[]
30
29
  campaign: Campaign
31
30
  }
31
+ export type BasketProductBundleParentClashConfirmationModalProps = {
32
+ bundleProduct: Product
33
+ childProduct: Product
34
+ }
35
+ export type BasketProductBundleParentClashConfirmationProps = {
36
+ bundleProduct: Product
37
+ childProducts: Product[]
38
+ }
32
39
  export type CampaignEditModalProps = {
33
40
  campaign?: Campaign
34
41
  }
@@ -59,12 +66,6 @@ export type WalletModalProps = {
59
66
  paymentMethod: OrderJourneyPaymentMethod | null
60
67
  }
61
68
  export type WalletPurchaseOrderModalProps = {}
62
- export type TalentMindEvaluateJobWithResumeModalProps = {
63
- resume: TalentMindResume
64
- }
65
- export type TalentMindEvaluateResumeWithJobModalProps = {
66
- job: TalentMindJob
67
- }
68
69
 
69
70
  export type FilePickerModalPropsActionDataPostingRequirements = {
70
71
  requirement: TransformedPostingRequirement
@@ -99,6 +100,7 @@ export type ModalOptions = {
99
100
  showBackdrop?: boolean
100
101
  unstyled?: boolean
101
102
  disableVerticalScroll?: boolean
103
+ siteTheme?: HapiSiteTheme
102
104
  }
103
105
 
104
106
  export type Modal = {
@@ -111,4 +113,5 @@ export type Modal = {
111
113
  export type Modals = {
112
114
  [ModalZone.primary]: Modal | null
113
115
  [ModalZone.secondary]: Modal | null
116
+ [ModalZone.tercary]: Modal | null
114
117
  }
@@ -1,8 +1,9 @@
1
1
  // created from 'create-ts-index'
2
2
 
3
- export * from "./enums"
4
- export * from "./qa.types"
5
- export * from "./state.types"
6
- export * from "./types"
7
- export * from "./utils.types"
8
- export * from "./validations.types"
3
+ export * from './enums';
4
+ export * from './qa.types';
5
+ export * from './service.types';
6
+ export * from './state.types';
7
+ export * from './types';
8
+ export * from './utils.types';
9
+ export * from './validations.types';
@@ -0,0 +1,9 @@
1
+ // created from 'create-ts-index'
2
+
3
+ export * from './enums';
4
+ export * from './qa.types';
5
+ export * from './service.types';
6
+ export * from './state.types';
7
+ export * from './types';
8
+ export * from './utils.types';
9
+ export * from './validations.types';
@@ -4,7 +4,9 @@ import { WindowHapiModuleWithConstructorArgs } from "../_window"
4
4
 
5
5
  export type WindowHapiQAOrderJourney = WindowHapiModuleWithConstructorArgs<
6
6
  {
7
- setEnabledSteps: (steps: OrderJourneyStepKey[]) => OrderJourneyStepKey[]
7
+ setEnabledSteps: (
8
+ steps: OrderJourneyStepKey[] | OrderJourneyStepKey[][],
9
+ ) => OrderJourneyStepKey[] | OrderJourneyStepKey[][]
8
10
  setEnabledPaymentMethods: (
9
11
  methods: OrderJourneyPaymentMethod[],
10
12
  ) => OrderJourneyPaymentMethod[]
@@ -17,6 +17,7 @@ export type WindowHapiServiceOrderJourney = WindowHapiModuleWithConstructorArgs<
17
17
  switchToNextStep: HapiServiceFunctionWithLifecycleHooks<OrderJourneyServiceSwitchToNextStepHandler>
18
18
  switchToPreviousStep: HapiServiceFunctionWithLifecycleHooks<OrderJourneyServiceSwitchToPreviousStepHandler>
19
19
  restartJourney: HapiServiceFunctionWithLifecycleHooks<OrderJourneyServiceRestartJourneyHandler>
20
+ unblurOnboardingStepFields: () => void
20
21
  getValidators: () => Record<string, NestedValidatorKeys>
21
22
  getErrorMessages: () => Record<string, Record<string, any> | undefined>
22
23
  getBlurredFields: () => Record<string, Record<string, any> | undefined>
@@ -47,10 +48,7 @@ export type WindowHapiServiceOrderJourney = WindowHapiModuleWithConstructorArgs<
47
48
  setContractStepsErrorMessages: (
48
49
  messages: Record<
49
50
  string,
50
- Record<
51
- string,
52
- MessageDescriptor | MessageDescriptor[] | boolean
53
- >
51
+ Record<string, MessageDescriptor | boolean>
54
52
  >,
55
53
  ) => void
56
54
  setContractStepsSubmittedSteps: (steps: Record<string, boolean>) => void
@@ -64,10 +62,7 @@ export type WindowHapiServiceOrderJourney = WindowHapiModuleWithConstructorArgs<
64
62
  setProductStepsErrorMessages: (
65
63
  messages: Record<
66
64
  string,
67
- Record<
68
- string,
69
- MessageDescriptor | MessageDescriptor[] | boolean
70
- >
65
+ Record<string, MessageDescriptor | boolean>
71
66
  >,
72
67
  ) => void
73
68
  setProductStepsSubmittedSteps: (steps: Record<string, boolean>) => void