@vonq/hapi-elements-types 1.21.0 → 1.22.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/service.types.ts +3 -4
- package/_window/window.ts +2 -0
- package/common/types.ts +8 -0
- package/contract/state.types.ts +1 -0
- package/orderJourney/state.types.ts +1 -0
- package/orderJourney/types.ts +41 -5
- package/package.json +1 -1
- package/product/types.ts +2 -0
- package/product/validations.types.ts +1 -0
package/_window/service.types.ts
CHANGED
@@ -20,10 +20,9 @@ import { WindowHapiServiceTalentMindResume } from "../talentMindResume/service.t
|
|
20
20
|
import { WindowHapiServiceTalentMindEvaluation } from "../talentMindEvaluation/service.types"
|
21
21
|
import { WindowHapiServiceDebugging } from "../debugging/service.types"
|
22
22
|
|
23
|
-
export type HapiServiceFunctionLifecycleHookCallbackHandler = (
|
24
|
-
|
25
|
-
|
26
|
-
| Promise<void | never>
|
23
|
+
export type HapiServiceFunctionLifecycleHookCallbackHandler = (
|
24
|
+
...args: any[]
|
25
|
+
) => void | never | Promise<void | never>
|
27
26
|
|
28
27
|
export type HapiServiceFunctionLifecycleHookHandler = (
|
29
28
|
callback: HapiServiceFunctionLifecycleHookCallbackHandler,
|
package/_window/window.ts
CHANGED
@@ -12,6 +12,7 @@ import { WindowHapiService } from "./service.types"
|
|
12
12
|
import { WindowHapiQA } from "./qa.types"
|
13
13
|
import { WindowHapiLogger } from "../common/logger/types"
|
14
14
|
import {
|
15
|
+
HapiFeatureBranch,
|
15
16
|
HapiWebComponent,
|
16
17
|
RecursivePartial,
|
17
18
|
WindowHapiSubmoduleName,
|
@@ -126,6 +127,7 @@ export type WindowHapiConfigSubmodule = {
|
|
126
127
|
htmlTemplates: Record<string, string>
|
127
128
|
walletCurrency: ProductPriceCurrency
|
128
129
|
isUsingGETMethod: boolean
|
130
|
+
featureBranches: HapiFeatureBranch[]
|
129
131
|
}
|
130
132
|
|
131
133
|
export type WindowHapiClassInterface = {
|
package/common/types.ts
CHANGED
@@ -266,3 +266,11 @@ export type ProductPostingRequirementFieldAutocompleteRequestOption = {
|
|
266
266
|
key: string
|
267
267
|
value: string | string[]
|
268
268
|
}
|
269
|
+
|
270
|
+
export type HapiFeatureBranch = {
|
271
|
+
name: string
|
272
|
+
url: string
|
273
|
+
docsUrl: string
|
274
|
+
changelogUrls: { url: string; scope: string }[]
|
275
|
+
releaseDate: string
|
276
|
+
}
|
package/contract/state.types.ts
CHANGED
@@ -29,6 +29,7 @@ export type OrderJourneyState = {
|
|
29
29
|
paymentMethodsEnabled: OrderJourneyPaymentMethod[]
|
30
30
|
hidePrefilledFields: boolean
|
31
31
|
orderErrors: OrderJourneyOrderErrors | null
|
32
|
+
stepActiveOrderErrors: OrderJourneyOrderErrors | null
|
32
33
|
/* Onboarding */
|
33
34
|
onboardingStep: OrderJourneyStep
|
34
35
|
onboardingStepData: Record<string, any>
|
package/orderJourney/types.ts
CHANGED
@@ -87,13 +87,49 @@ export type OrderJourneyOrderErrorsCampaignIsValidButPostingRequirementsInvalid
|
|
87
87
|
has_errors: boolean
|
88
88
|
}
|
89
89
|
|
90
|
+
export type OrderJourneyOrderErrorsRecruiterInfo = {
|
91
|
+
name?: string[]
|
92
|
+
emailAddress?: string[]
|
93
|
+
}
|
94
|
+
|
95
|
+
export type OrderJourneyOrderErrorsTargetGroup = string[]
|
96
|
+
|
97
|
+
export type OrderJourneyOrderErrorsPostingDetails = {
|
98
|
+
title?: string[]
|
99
|
+
description?: string[]
|
100
|
+
employmentType?: string[]
|
101
|
+
organization?: {
|
102
|
+
name?: string[]
|
103
|
+
companyLogo?: string[]
|
104
|
+
}
|
105
|
+
salaryIndication?: {
|
106
|
+
period?: string[]
|
107
|
+
to?: string[]
|
108
|
+
from?: string[]
|
109
|
+
currency?: string[]
|
110
|
+
}
|
111
|
+
weeklyWorkingHours?: {
|
112
|
+
from?: string[]
|
113
|
+
to?: string[]
|
114
|
+
}
|
115
|
+
workingLocation?: {
|
116
|
+
addressLine1?: string[]
|
117
|
+
addressLine2?: string[]
|
118
|
+
city?: string[]
|
119
|
+
country?: string[]
|
120
|
+
postcode?: string[]
|
121
|
+
}
|
122
|
+
jobPageUrl?: string[]
|
123
|
+
applicationUrl?: string[]
|
124
|
+
}
|
125
|
+
|
90
126
|
export type OrderJourneyOrderErrorsCampaignIsInvalid = {
|
91
|
-
postingDetails
|
92
|
-
recruiterInfo
|
93
|
-
targetGroup
|
94
|
-
orderedProducts
|
127
|
+
postingDetails?: OrderJourneyOrderErrorsPostingDetails
|
128
|
+
recruiterInfo?: OrderJourneyOrderErrorsRecruiterInfo
|
129
|
+
targetGroup?: OrderJourneyOrderErrorsTargetGroup
|
130
|
+
orderedProducts?: string[]
|
95
131
|
orderedProductsSpecs?: any[]
|
96
|
-
walletId
|
132
|
+
walletId?: string
|
97
133
|
}
|
98
134
|
|
99
135
|
// HAPI Backend validation works in this order:
|
package/package.json
CHANGED
package/product/types.ts
CHANGED
@@ -52,6 +52,7 @@ export type Product = {
|
|
52
52
|
audience_group: "niche" | "generic"
|
53
53
|
cross_postings: string[]
|
54
54
|
channel: ProductSupportingContractsPartial
|
55
|
+
bundle_products_ids?: string[]
|
55
56
|
description: string | null
|
56
57
|
title: string
|
57
58
|
duration: ProductDuration
|
@@ -78,6 +79,7 @@ export type ProductBoardType =
|
|
78
79
|
| "social media"
|
79
80
|
| "publication"
|
80
81
|
| "community"
|
82
|
+
| "product_bundle"
|
81
83
|
|
82
84
|
export type ProductType = {
|
83
85
|
type: ProductBoardType
|
@@ -99,6 +99,7 @@ export type ZodProductWithSupportForContractsFilters = ZodObject<{
|
|
99
99
|
}>
|
100
100
|
|
101
101
|
export type ZodProduct = ZodObject<{
|
102
|
+
bundle_products_ids: ZodOptional<ZodArray<ZodString>>
|
102
103
|
allow_orders: ZodBoolean
|
103
104
|
audience_group: ZodString
|
104
105
|
cross_postings: ZodProductCrossPostings
|