@vonq/hapi-elements-types 1.52.0 → 1.53.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/campaign/api.types.ts +1 -0
- package/campaign/types.ts +6 -1
- package/campaign/utils.types.ts +8 -0
- package/common/enums.ts +6 -0
- package/contract/enums.ts +3 -0
- package/contract/service.types.ts +4 -0
- package/contract/types.ts +3 -4
- package/package.json +1 -1
package/campaign/api.types.ts
CHANGED
|
@@ -57,6 +57,7 @@ export type WindowHapiAPICampaignRequests = {
|
|
|
57
57
|
) => Promise<ProductSupportingContractsComplete>
|
|
58
58
|
getCampaignApplications: (
|
|
59
59
|
campaignId: string,
|
|
60
|
+
queryParams?: Record<string, any>,
|
|
60
61
|
) => Promise<PaginatedAPIResponseV1<CampaignApplication>>
|
|
61
62
|
generateCampaignApplicationFile: (
|
|
62
63
|
campaignId: string,
|
package/campaign/types.ts
CHANGED
|
@@ -103,11 +103,16 @@ export type CampaignPostingDetails = {
|
|
|
103
103
|
yearsOfExperience: number
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
export type CampaignPostingCPAResultsCommonFields = {
|
|
107
|
+
applications: number
|
|
108
|
+
}
|
|
109
|
+
|
|
106
110
|
export type CampaignPosting = {
|
|
107
111
|
clicks: number
|
|
108
112
|
name: string
|
|
109
113
|
productId: string
|
|
110
|
-
cpaResults?: Record<ProductCPAHiringGoalUnit, number>
|
|
114
|
+
cpaResults?: Record<ProductCPAHiringGoalUnit, number> &
|
|
115
|
+
CampaignPostingCPAResultsCommonFields
|
|
111
116
|
}
|
|
112
117
|
|
|
113
118
|
export type CampaignRecruiterInfo = {
|
package/campaign/utils.types.ts
CHANGED
|
@@ -11,9 +11,11 @@ import {
|
|
|
11
11
|
CampaignEditRequestBody,
|
|
12
12
|
CampaignOrderRequestBody,
|
|
13
13
|
CampaignOrderRequestBodyOrderedProductsSpec,
|
|
14
|
+
CampaignPostingRequirementsSuggestionsGetRequestResponse,
|
|
14
15
|
CampaignPostingRequirementsValidateResponse,
|
|
15
16
|
CampaignTargetGroup,
|
|
16
17
|
CampaignTargetGroupData,
|
|
18
|
+
CampaignVacancyFieldsSuggestionsGetRequestResponse,
|
|
17
19
|
} from "./types"
|
|
18
20
|
import { Product } from "../product/types"
|
|
19
21
|
import { Contract } from "../contract/types"
|
|
@@ -93,6 +95,12 @@ export type WindowHapiUtilsCampaign = WindowHapiModuleWithConstructorArgs<
|
|
|
93
95
|
prefillData: RecursivePartial<CampaignCreateForm>,
|
|
94
96
|
excludedDotNotatedObjectPathsOfCampaignForm?: string[],
|
|
95
97
|
) => CampaignCreateForm
|
|
98
|
+
getUpdatedCampaignFormWithPostingRequirementsSmartFillResponse: (
|
|
99
|
+
response: CampaignPostingRequirementsSuggestionsGetRequestResponse,
|
|
100
|
+
) => CampaignCreateForm | CampaignEditForm
|
|
101
|
+
getUpdatedCampaignFormWithVacancyFieldsSmartFillResponse: (
|
|
102
|
+
response: CampaignVacancyFieldsSuggestionsGetRequestResponse,
|
|
103
|
+
) => CampaignCreateForm | CampaignEditForm
|
|
96
104
|
},
|
|
97
105
|
{ readonly utils: WindowHapiUtils }
|
|
98
106
|
>
|
package/common/enums.ts
CHANGED
package/contract/enums.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export enum ContractDirectApplyChannelName {
|
|
2
2
|
SEEK_AUSTRALIA = "seekAustralia",
|
|
3
3
|
INFOJOBS_SPAIN = "infoJobsSpain",
|
|
4
|
+
INDEED_GLOBAL = "indeedGlobal",
|
|
5
|
+
NAUKRI_GLOBAL = "naukriGlobal",
|
|
6
|
+
LINKEDIN_GLOBAL = "linkedinGlobal",
|
|
4
7
|
}
|
|
5
8
|
|
|
6
9
|
export enum ContractDirectApplyPostingRequirementQuestionnaireType {
|
|
@@ -93,23 +93,27 @@ export type ContractServicePrefillContractChannelPostingRequirementQuestionnaire
|
|
|
93
93
|
(
|
|
94
94
|
channelName: ContractDirectApplyChannelName,
|
|
95
95
|
questionsBody: ContractDirectApplyPostingRequirementQuestionnaireQuestionBody[],
|
|
96
|
+
questionnairePostingRequirementName?: string,
|
|
96
97
|
) => Promise<true>
|
|
97
98
|
|
|
98
99
|
export type ContractServiceSetContractChannelPostingRequirementQuestionnaireOptionsDirectApplyHandler =
|
|
99
100
|
(
|
|
100
101
|
channelName: ContractDirectApplyChannelName,
|
|
101
102
|
partialOptions: OrderJourneyChannelPostingRequirementsStepOptions,
|
|
103
|
+
questionnairePostingRequirementName?: string,
|
|
102
104
|
) => Promise<void>
|
|
103
105
|
|
|
104
106
|
export type ContractServiceGetContractChannelPostingRequirementQuestionnaireBodyForDirectApplyHandler =
|
|
105
107
|
(
|
|
106
108
|
channelName: ContractDirectApplyChannelName,
|
|
107
109
|
questionsBody: ContractDirectApplyPostingRequirementQuestionnaireQuestionBody[],
|
|
110
|
+
questionnairePostingRequirementName?: string,
|
|
108
111
|
) => Promise<ContractServiceGetContractChannelPostingRequirementQuestionnaireBodyForDirectApplyResponse>
|
|
109
112
|
|
|
110
113
|
export type ContractServiceGetContractChannelPostingRequirementQuestionnaireRulesForDirectApplyHandler =
|
|
111
114
|
(
|
|
112
115
|
channelName: ContractDirectApplyChannelName,
|
|
116
|
+
questionnairePostingRequirementName?: string,
|
|
113
117
|
) => Promise<ContractServiceGetContractChannelPostingRequirementQuestionnaireRulesForDirectApplyResponse>
|
|
114
118
|
|
|
115
119
|
export type ContractServiceGetContractPostingRequirementOptionsFromCacheOrAPIHandler =
|
package/contract/types.ts
CHANGED
|
@@ -67,7 +67,6 @@ export type ContractGroupUpdateForm = {
|
|
|
67
67
|
|
|
68
68
|
export type ContractChannel = ProductLogos &
|
|
69
69
|
ProductType & {
|
|
70
|
-
allows_edit?: boolean
|
|
71
70
|
id: number
|
|
72
71
|
name: string
|
|
73
72
|
url: string
|
|
@@ -112,9 +111,9 @@ export type ContractGroupSelected = ContractGroup | "add-new" | null
|
|
|
112
111
|
|
|
113
112
|
export type ContractDirectApplyChannelPrefillVariablesMap = {
|
|
114
113
|
id: number
|
|
115
|
-
applyMethodPostingRequirementName: string
|
|
116
|
-
applyMethodDirectApplyOptionKey: string
|
|
117
|
-
questionnairePostingRequirementName: string
|
|
114
|
+
applyMethodPostingRequirementName: string | null
|
|
115
|
+
applyMethodDirectApplyOptionKey: string | null
|
|
116
|
+
questionnairePostingRequirementName: string | null
|
|
118
117
|
}
|
|
119
118
|
export type ContractDirectApplyPostingRequirementQuestionnaireOpenQuestionType =
|
|
120
119
|
ContractDirectApplyPostingRequirementQuestionnaireType.TEXT
|
package/package.json
CHANGED