@vonq/hapi-elements-types 1.36.0 → 1.38.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/utils.types.ts +2 -1
- package/alert/enums.ts +1 -0
- package/common/types.ts +3 -1
- package/orderJourney/state.types.ts +2 -0
- package/orderJourney/types.ts +23 -9
- package/package.json +1 -1
package/_window/utils.types.ts
CHANGED
@@ -12,7 +12,8 @@ import { WindowHapiUtilsModal } from "../modal/utils.types"
|
|
12
12
|
import { WindowHapiUtilsRouter } from "../routing/utils.types"
|
13
13
|
import { WindowHapiUtilsLanguage } from "../language/utils.types"
|
14
14
|
import { WindowHapiUtilsAlert } from "../alert/utils.types"
|
15
|
-
|
15
|
+
|
16
|
+
import { FlattenedItem } from "../common"
|
16
17
|
|
17
18
|
export type WindowHapiUtils = WindowHapiModuleWithConstructorArgs<
|
18
19
|
{
|
package/alert/enums.ts
CHANGED
@@ -9,6 +9,7 @@ export enum AlertKey {
|
|
9
9
|
campaignProductTakeOfflineSuccess = "campaign-product-take-offline-success",
|
10
10
|
"campaignCopyProductsContractsDeletedWarning" = "campaign-copy-contract-warning",
|
11
11
|
campaignOrderSuccess = "campaign-order-success",
|
12
|
+
campaignOrderFail = "campaign-order-fail",
|
12
13
|
campaignCopySuccess = "campaign-copy-success",
|
13
14
|
campaignSaveSuccess = "campaign-save-success",
|
14
15
|
buttonCopySuccess = "copy-button-success",
|
package/common/types.ts
CHANGED
@@ -218,7 +218,7 @@ export type PostingRequirementOptionRequiresField = {
|
|
218
218
|
}
|
219
219
|
}
|
220
220
|
export type PostingRequirementOption = {
|
221
|
-
default?: string
|
221
|
+
default?: string // "1" for true
|
222
222
|
key: string | number
|
223
223
|
label: string
|
224
224
|
data?: PostingRequirementOptionData
|
@@ -239,6 +239,7 @@ export type PostingRequirementOptionData = {
|
|
239
239
|
images?: PostingRequirementOptionDataImage[]
|
240
240
|
}
|
241
241
|
export type TransformedPostingRequirementOption = {
|
242
|
+
default?: boolean
|
242
243
|
value?: string | number
|
243
244
|
data?: PostingRequirementOptionData
|
244
245
|
requires?: PostingRequirementOptionRequiresField[] | null
|
@@ -284,3 +285,4 @@ export type HapiFeatureBranch = {
|
|
284
285
|
changelogUrls: { url: string; scope: string }[]
|
285
286
|
releaseDate: string
|
286
287
|
}
|
288
|
+
export type FlattenedItem = { label: string; value: any }
|
@@ -10,6 +10,7 @@ import {
|
|
10
10
|
OrderJourneyOrderErrorsCampaignIsInvalidWithTargetGroup,
|
11
11
|
OrderJourneyOrderErrorsCampaignIsInvalidWithWalletId,
|
12
12
|
OrderJourneyOrderErrorsPostingDetailsBase,
|
13
|
+
OrderJourneyOrderErrorsPostingDetailsContactInfo,
|
13
14
|
OrderJourneyOrderErrorsPostingDetailsOrganization,
|
14
15
|
OrderJourneyOrderErrorsPostingDetailsURLs,
|
15
16
|
OrderJourneyOrderErrorsPostingDetailsWorkingLocation,
|
@@ -42,6 +43,7 @@ export type OrderJourneyState = {
|
|
42
43
|
orderErrors: OrderJourneyOrderErrors | null
|
43
44
|
stepActiveOrderErrors:
|
44
45
|
| OrderJourneyOrderErrorsPostingDetailsOrganization
|
46
|
+
| OrderJourneyOrderErrorsPostingDetailsContactInfo
|
45
47
|
| OrderJourneyOrderErrorsPostingDetailsWorkingLocation
|
46
48
|
| OrderJourneyOrderErrorsPostingDetailsURLs
|
47
49
|
| OrderJourneyOrderErrorsPostingDetailsBase
|
package/orderJourney/types.ts
CHANGED
@@ -68,17 +68,23 @@ export type OrderJourneyOrderConfirmationStepData = {
|
|
68
68
|
disclaimerTexts: string[]
|
69
69
|
}
|
70
70
|
|
71
|
+
export type OrderJourneyOrderErrorsCampaignIsInvalidAlongWithPostingRequirementsInvalid =
|
72
|
+
{
|
73
|
+
orderedProducts: Record<string, any>[]
|
74
|
+
orderedProductsSpecs: Partial<{
|
75
|
+
credentials: Record<string, any>
|
76
|
+
posting_requirements: Record<string, any>
|
77
|
+
postingRequirements?: string[]
|
78
|
+
}>[]
|
79
|
+
walletId?: string
|
80
|
+
} & {
|
81
|
+
postingDetails?: OrderJourneyOrderErrorsPostingDetails
|
82
|
+
} & OrderJourneyOrderErrorsCampaignIsInvalidWithRecruiterInfo &
|
83
|
+
OrderJourneyOrderErrorsCampaignIsInvalidWithTargetGroup
|
84
|
+
|
71
85
|
export type OrderJourneyOrderErrorsCampaignIsValidButPostingRequirementsInvalid =
|
72
86
|
{
|
73
|
-
errors:
|
74
|
-
orderedProducts: Record<string, any>[]
|
75
|
-
orderedProductsSpecs: Partial<{
|
76
|
-
credentials: Record<string, any>
|
77
|
-
posting_requirements: Record<string, any>
|
78
|
-
postingRequirements?: string[]
|
79
|
-
}>[]
|
80
|
-
walletId?: string
|
81
|
-
}
|
87
|
+
errors: OrderJourneyOrderErrorsCampaignIsInvalidAlongWithPostingRequirementsInvalid
|
82
88
|
has_errors: boolean
|
83
89
|
}
|
84
90
|
|
@@ -96,6 +102,13 @@ export type OrderJourneyOrderErrorsPostingDetailsOrganization = {
|
|
96
102
|
}
|
97
103
|
}
|
98
104
|
|
105
|
+
export type OrderJourneyOrderErrorsPostingDetailsContactInfo = {
|
106
|
+
contactInfo?: {
|
107
|
+
name?: string[]
|
108
|
+
emailAddress?: string[]
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
99
112
|
export type OrderJourneyOrderErrorsPostingDetailsWorkingLocation = {
|
100
113
|
workingLocation?: {
|
101
114
|
addressLine1?: string[]
|
@@ -142,6 +155,7 @@ export type OrderJourneyOrderErrorsPostingDetailsBase = {
|
|
142
155
|
|
143
156
|
export type OrderJourneyOrderErrorsPostingDetails =
|
144
157
|
OrderJourneyOrderErrorsPostingDetailsOrganization &
|
158
|
+
OrderJourneyOrderErrorsPostingDetailsContactInfo &
|
145
159
|
OrderJourneyOrderErrorsPostingDetailsWorkingLocation &
|
146
160
|
OrderJourneyOrderErrorsPostingDetailsURLs &
|
147
161
|
OrderJourneyOrderErrorsPostingDetailsBase
|
package/package.json
CHANGED