@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.
- package/_window/api.types.ts +12 -13
- package/_window/index.ts.bak +16 -0
- package/_window/qa.types.ts +1 -0
- package/_window/sdk.types.ts +5 -2
- package/_window/service.types.ts +3 -12
- package/_window/state.types.ts +0 -24
- package/_window/ui.types.ts +8 -1
- package/_window/utils.types.ts +3 -0
- package/_window/window.ts +22 -3
- package/alert/index.ts +4 -4
- package/alert/index.ts.bak +6 -0
- package/ats/index.ts +4 -4
- package/ats/index.ts.bak +6 -0
- package/ats/types.ts +7 -1
- package/basket/index.ts +5 -5
- package/basket/index.ts.bak +7 -0
- package/basket/service.types.ts +3 -1
- package/basket/utils.types.ts +6 -2
- package/campaign/api.types.ts +5 -1
- package/campaign/enums.ts +0 -3
- package/campaign/index.ts +8 -8
- package/campaign/index.ts.bak +10 -0
- package/campaign/service.types.ts +14 -0
- package/campaign/types.ts +31 -21
- package/campaign/utils.types.ts +1 -0
- package/campaign/validations.types.ts +15 -1
- package/common/enums.ts +0 -4
- package/common/events/EventCommand/index.ts.bak +4 -0
- package/common/events/index.ts.bak +4 -0
- package/common/index.ts +7 -5
- package/common/index.ts.bak +9 -0
- package/common/logger/index.ts +4 -0
- package/common/logger/index.ts.bak +4 -0
- package/common/types.ts +20 -3
- package/common/validations.types.ts +2 -0
- package/common/validator/index.ts +3 -0
- package/common/validator/index.ts.bak +3 -0
- package/contract/api.types.ts +1 -0
- package/contract/index.ts +7 -7
- package/contract/index.ts.bak +9 -0
- package/contract/service.types.ts +7 -1
- package/contract/types.ts +2 -0
- package/contract/validations.types.ts +1 -0
- package/debugging/index.ts +3 -2
- package/debugging/index.ts.bak +5 -0
- package/index.ts +16 -16
- package/index.ts.bak +18 -0
- package/language/enums.ts +5 -0
- package/language/index.ts +6 -3
- package/language/index.ts.bak +8 -0
- package/language/service.types.ts +7 -0
- package/language/state.types.ts +3 -1
- package/language/utils.types.ts +11 -0
- package/modal/enums.ts +3 -3
- package/modal/index.ts +5 -4
- package/modal/index.ts.bak +7 -0
- package/modal/types.ts +11 -8
- package/orderJourney/index.ts +7 -6
- package/orderJourney/index.ts.bak +9 -0
- package/orderJourney/qa.types.ts +3 -1
- package/orderJourney/service.types.ts +3 -8
- package/orderJourney/state.types.ts +31 -8
- package/orderJourney/types.ts +79 -16
- package/orderJourney/validations.types.ts +13 -2
- package/package.json +2 -3
- package/product/index.ts +8 -8
- package/product/index.ts.bak +10 -0
- package/product/types.ts +4 -1
- package/routing/index.ts +2 -1
- package/routing/index.ts.bak +4 -0
- package/theming/index.ts +4 -4
- package/theming/index.ts.bak +6 -0
- package/theming/types.ts +44 -0
- package/theming/validations.types.ts +16 -0
- package/ui/index.ts.bak +3 -0
- package/wallet/index.ts +5 -5
- package/wallet/index.ts.bak +7 -0
- package/wallet/state.types.ts +1 -1
- package/wallet/types.ts +6 -1
- package/talentMindCompany/api.types.ts +0 -18
- package/talentMindCompany/service.types.ts +0 -15
- package/talentMindCompany/state.types.ts +0 -5
- package/talentMindCompany/types.ts +0 -6
- package/talentMindCompany/validations.types.ts +0 -5
- package/talentMindEvaluation/api.types.ts +0 -25
- package/talentMindEvaluation/service.types.ts +0 -25
- package/talentMindEvaluation/state.types.ts +0 -6
- package/talentMindEvaluation/types.ts +0 -15
- package/talentMindEvaluation/validations.types.ts +0 -5
- package/talentMindJob/api.types.ts +0 -26
- package/talentMindJob/service.types.ts +0 -28
- package/talentMindJob/state.types.ts +0 -6
- package/talentMindJob/types.ts +0 -12
- package/talentMindJob/validations.types.ts +0 -5
- package/talentMindResume/api.types.ts +0 -30
- package/talentMindResume/service.types.ts +0 -34
- package/talentMindResume/state.types.ts +0 -6
- package/talentMindResume/types.ts +0 -119
- package/talentMindResume/validations.types.ts +0 -5
- 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
|
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 {
|
package/common/index.ts
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
// created from 'create-ts-index'
|
2
2
|
|
3
|
-
export * from
|
4
|
-
export * from
|
5
|
-
export * from
|
6
|
-
export * from
|
7
|
-
export * from
|
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';
|
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:
|
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?:
|
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?:
|
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]>
|
package/contract/api.types.ts
CHANGED
@@ -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
|
4
|
-
export * from
|
5
|
-
export * from
|
6
|
-
export * from
|
7
|
-
export * from
|
8
|
-
export * from
|
9
|
-
export * from
|
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,
|
package/debugging/index.ts
CHANGED
package/index.ts
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
// created from 'create-ts-index'
|
2
2
|
|
3
|
-
export * from
|
4
|
-
export * from
|
5
|
-
export * from
|
6
|
-
export * from
|
7
|
-
export * from
|
8
|
-
export * from
|
9
|
-
export * from
|
10
|
-
export * from
|
11
|
-
export * from
|
12
|
-
export * from
|
13
|
-
export * from
|
14
|
-
export * from
|
15
|
-
export * from
|
16
|
-
export * from
|
17
|
-
export * from
|
18
|
-
export * from
|
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';
|
package/language/index.ts
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
// created from 'create-ts-index'
|
2
2
|
|
3
|
-
export * from
|
4
|
-
export * from
|
5
|
-
export * from
|
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';
|
package/language/state.types.ts
CHANGED
@@ -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
|
4
|
-
export * from
|
5
|
-
export * from
|
6
|
-
export * from
|
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
|
}
|
package/orderJourney/index.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
// created from 'create-ts-index'
|
2
2
|
|
3
|
-
export * from
|
4
|
-
export * from
|
5
|
-
export * from
|
6
|
-
export * from
|
7
|
-
export * from
|
8
|
-
export * from
|
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';
|
package/orderJourney/qa.types.ts
CHANGED
@@ -4,7 +4,9 @@ import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
|
4
4
|
|
5
5
|
export type WindowHapiQAOrderJourney = WindowHapiModuleWithConstructorArgs<
|
6
6
|
{
|
7
|
-
setEnabledSteps: (
|
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
|