@vonq/hapi-elements-types 1.36.0 → 1.37.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/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
@@ -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
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@vonq/hapi-elements-types",
4
- "version": "1.36.0",
4
+ "version": "1.37.0",
5
5
  "description": "This package contains Typescript definitions for HAPI Elements",
6
6
  "author": "VONQ HAPI Team",
7
7
  "license": "BSD-3-Clause",