@vonq/hapi-elements-types 1.17.0 → 1.18.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 +14 -1
- package/_window/auth.types.ts +2 -2
- package/_window/service.types.ts +13 -0
- package/_window/state.types.ts +38 -13
- package/_window/utils.types.ts +4 -2
- package/_window/window.ts +36 -3
- package/alert/enums.ts +1 -1
- package/alert/types.ts +5 -3
- package/ats/state.types.ts +5 -2
- package/ats/types.ts +13 -7
- package/basket/state.types.ts +2 -1
- package/basket/utils.types.ts +4 -0
- package/campaign/service.types.ts +1 -0
- package/campaign/types.ts +26 -5
- package/campaign/validations.types.ts +1 -1
- package/common/enums.ts +4 -0
- package/common/events/EventCommand/enums.ts +2 -2
- package/common/types.ts +3 -0
- package/common/validator/types.ts +1 -0
- package/contract/types.ts +7 -0
- package/language/qa.types.ts +1 -4
- package/language/state.types.ts +0 -16
- package/language/validations.types.ts +0 -4
- package/modal/enums.ts +4 -1
- package/modal/service.types.ts +0 -1
- package/modal/types.ts +8 -0
- package/modal/utils.types.ts +10 -0
- package/orderJourney/enums.ts +1 -0
- package/orderJourney/qa.types.ts +0 -3
- package/package.json +1 -1
- package/product/api.types.ts +5 -0
- package/product/service.types.ts +3 -0
- package/product/state.types.ts +3 -0
- package/product/types.ts +6 -0
- package/product/utils.types.ts +2 -0
- package/talentMindCompany/api.types.ts +18 -0
- package/talentMindCompany/service.types.ts +15 -0
- package/talentMindCompany/state.types.ts +5 -0
- package/talentMindCompany/types.ts +6 -0
- package/talentMindCompany/validations.types.ts +5 -0
- package/talentMindEvaluation/api.types.ts +25 -0
- package/talentMindEvaluation/service.types.ts +25 -0
- package/talentMindEvaluation/state.types.ts +6 -0
- package/talentMindEvaluation/types.ts +15 -0
- package/talentMindEvaluation/validations.types.ts +5 -0
- package/talentMindJob/api.types.ts +26 -0
- package/talentMindJob/service.types.ts +28 -0
- package/talentMindJob/state.types.ts +6 -0
- package/talentMindJob/types.ts +12 -0
- package/talentMindJob/validations.types.ts +5 -0
- package/talentMindResume/api.types.ts +30 -0
- package/talentMindResume/service.types.ts +34 -0
- package/talentMindResume/state.types.ts +6 -0
- package/talentMindResume/types.ts +119 -0
- package/talentMindResume/validations.types.ts +5 -0
- package/wallet/service.types.ts +6 -1
- package/wallet/state.types.ts +3 -1
- package/wallet/types.ts +7 -2
- package/wallet/validations.types.ts +15 -3
package/modal/enums.ts
CHANGED
@@ -8,11 +8,14 @@ export enum ModalKeys {
|
|
8
8
|
basket = "layout-basket-modal",
|
9
9
|
productInfo = "product-info",
|
10
10
|
campaignTakeOfflineConfirmation = "campaign-confirm-take-offline",
|
11
|
-
|
11
|
+
campaignCopyJourney = "campaign-confirm-copy",
|
12
|
+
campaignStatusDetail = "campaign-status-detail",
|
12
13
|
campaignCopySelection = "contract-copy-selection",
|
13
14
|
basketRemoveProductConfirmation = "remove-product-from-basket",
|
14
15
|
contractRemoveConfirmation = "contract-remove-confirmation",
|
15
16
|
contractGroupConflictInfo = "contract-group-conflict-info",
|
16
17
|
filePicker = "file-picker",
|
17
18
|
contractPostingRequirementsSmartFillSuccess = "contract-posting-requirements-smart-fill-success",
|
19
|
+
talentMindEvaluateJobWithResume = "talentmind-evaluate-job-with-resume",
|
20
|
+
talentMindEvaluateResumeWithJob = "talentmind-evaluate-resume-with-job",
|
18
21
|
}
|
package/modal/service.types.ts
CHANGED
package/modal/types.ts
CHANGED
@@ -3,6 +3,8 @@ import { Contract } from "../contract/types"
|
|
3
3
|
import { ModalKeys, ModalZone } from "./enums"
|
4
4
|
import { AnyNonFunction } from "../common/types"
|
5
5
|
import { Campaign, TransformedPostingRequirement } from "../campaign"
|
6
|
+
import { TalentMindResume } from "../talentMindResume/types"
|
7
|
+
import { TalentMindJob } from "../talentMindJob/types"
|
6
8
|
|
7
9
|
export type ProductDetailModalProps = {
|
8
10
|
id: string
|
@@ -34,6 +36,12 @@ export type FilePickerOptions = {
|
|
34
36
|
}
|
35
37
|
export type BasketModalProps = {}
|
36
38
|
export type WalletModalProps = {}
|
39
|
+
export type TalentMindEvaluateJobWithResumeModalProps = {
|
40
|
+
resume: TalentMindResume
|
41
|
+
}
|
42
|
+
export type TalentMindEvaluateResumeWithJobModalProps = {
|
43
|
+
job: TalentMindJob
|
44
|
+
}
|
37
45
|
|
38
46
|
export type ModalProps = AnyNonFunction<
|
39
47
|
| ProductDetailModalProps
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { WindowHapiUtils } from "../_window/utils.types"
|
2
|
+
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
3
|
+
import { ModalKeys } from "./enums"
|
4
|
+
|
5
|
+
export type WindowHapiUtilsModal = WindowHapiModuleWithConstructorArgs<
|
6
|
+
{
|
7
|
+
modalKeys: typeof ModalKeys
|
8
|
+
},
|
9
|
+
{ readonly utils: WindowHapiUtils }
|
10
|
+
>
|
package/orderJourney/enums.ts
CHANGED
package/orderJourney/qa.types.ts
CHANGED
@@ -8,9 +8,6 @@ export type WindowHapiQAOrderJourney = WindowHapiModuleWithConstructorArgs<
|
|
8
8
|
setEnabledPaymentMethods: (
|
9
9
|
methods: OrderJourneyPaymentMethod[],
|
10
10
|
) => OrderJourneyPaymentMethod[]
|
11
|
-
setPaymentMethodActive: (
|
12
|
-
method: OrderJourneyPaymentMethod | null,
|
13
|
-
) => OrderJourneyPaymentMethod | null
|
14
11
|
},
|
15
12
|
{ readonly qa: WindowHapiQA }
|
16
13
|
>
|
package/package.json
CHANGED
package/product/api.types.ts
CHANGED
@@ -5,6 +5,7 @@ import {
|
|
5
5
|
ProductJobFunction,
|
6
6
|
ProductJobTitle,
|
7
7
|
ProductLocation,
|
8
|
+
ProductOrderDeliveryTime,
|
8
9
|
ProductSupportingContractsComplete,
|
9
10
|
ProductSupportingContractsPartial,
|
10
11
|
ProductWithSupportForContractsFilters,
|
@@ -23,6 +24,7 @@ export type WindowHapiAPIProductConfigs = {
|
|
23
24
|
getJobFunctions: AxiosRequestConfig
|
24
25
|
getJobTitles: AxiosRequestConfig
|
25
26
|
getLocations: AxiosRequestConfig
|
27
|
+
calculateDeliveryTime: AxiosRequestConfig
|
26
28
|
}
|
27
29
|
export type WindowHapiAPIProductRequests = {
|
28
30
|
getProduct: (productId: number | string) => Promise<Product>
|
@@ -48,6 +50,9 @@ export type WindowHapiAPIProductRequests = {
|
|
48
50
|
text?: string,
|
49
51
|
) => Promise<PaginatedAPIResponseV1<ProductJobTitle>>
|
50
52
|
getLocations: (searchParam: string) => Promise<ProductLocation[]>
|
53
|
+
calculateDeliveryTime: (
|
54
|
+
productIds: (string | number)[],
|
55
|
+
) => Promise<ProductOrderDeliveryTime>
|
51
56
|
}
|
52
57
|
export type WindowHapiAPIProduct = WindowHapiModuleWithConstructorArgs<
|
53
58
|
WindowHapiAPIModule<
|
package/product/service.types.ts
CHANGED
@@ -51,8 +51,11 @@ export type ProductServiceGetIndustriesHandler = () => Promise<
|
|
51
51
|
ProductIndustry[]
|
52
52
|
>
|
53
53
|
|
54
|
+
export type ProductServiceSetArbitraryJobTitle = (text: string) => void
|
55
|
+
|
54
56
|
export type WindowHapiServiceProduct = WindowHapiModuleWithConstructorArgs<
|
55
57
|
{
|
58
|
+
setArbitraryJobTitle: ProductServiceSetArbitraryJobTitle
|
56
59
|
getProductWithContractsSupportById: HapiServiceFunctionWithLifecycleHooks<ProductServiceGetProductWithContractsSupportByIdHandler>
|
57
60
|
getProductsWithContractsSupport: HapiServiceFunctionWithLifecycleHooks<ProductServiceGetProductsWithContractsSupportHandler>
|
58
61
|
getFilteredProducts: HapiServiceFunctionWithLifecycleHooks<ProductServiceGetFilteredProductsHandler>
|
package/product/state.types.ts
CHANGED
@@ -7,6 +7,7 @@ import {
|
|
7
7
|
ProductSupportingContractsPartial,
|
8
8
|
} from "./types"
|
9
9
|
import { PaginationResponseV1 } from "../common/types"
|
10
|
+
import { ProductPriceCurrency } from "./enums"
|
10
11
|
|
11
12
|
export type ProductState = {
|
12
13
|
/* Products */
|
@@ -19,6 +20,8 @@ export type ProductState = {
|
|
19
20
|
productsAreLoading: boolean
|
20
21
|
productNameInput: string
|
21
22
|
jobRegionsIdsSelected: number[]
|
23
|
+
/* Product Price Display Currency */
|
24
|
+
displayCurrency: ProductPriceCurrency
|
22
25
|
/* Locations */
|
23
26
|
jobRegions: ProductLocation[]
|
24
27
|
/* Job Titles */
|
package/product/types.ts
CHANGED
@@ -112,6 +112,12 @@ export type ProductLocation = {
|
|
112
112
|
within?: ProductLocation
|
113
113
|
} & ProductLocationPartial
|
114
114
|
|
115
|
+
export type ProductOrderDeliveryTime = {
|
116
|
+
days_to_process: number
|
117
|
+
days_to_setup: number
|
118
|
+
total_days: number
|
119
|
+
}
|
120
|
+
|
115
121
|
export type ProductFilterQueryParams = {
|
116
122
|
productNameInput: string
|
117
123
|
locationsIdsSelected: number[]
|
package/product/utils.types.ts
CHANGED
@@ -2,9 +2,11 @@ import { ProductFilterQueryParams, ProductUserProvidedFilters } from "./types"
|
|
2
2
|
import { PaginationResponseV1 } from "../common/types"
|
3
3
|
import { WindowHapiUtils } from "../_window/utils.types"
|
4
4
|
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
5
|
+
import { ProductPriceCurrency } from "./enums"
|
5
6
|
|
6
7
|
export type WindowHapiUtilsProduct = WindowHapiModuleWithConstructorArgs<
|
7
8
|
{
|
9
|
+
currencyKeys: typeof ProductPriceCurrency
|
8
10
|
getUserProvidedFilters: () => ProductUserProvidedFilters
|
9
11
|
getProductsQueryParams: (
|
10
12
|
params: Partial<ProductFilterQueryParams>,
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { RawAxiosRequestConfig } from "axios"
|
2
|
+
import { WindowHapiAPI, WindowHapiAPIModule } from "../_window/api.types"
|
3
|
+
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
4
|
+
|
5
|
+
export type WindowHapiAPITalentMindCompanyConfigs = {
|
6
|
+
getCompanies: RawAxiosRequestConfig
|
7
|
+
}
|
8
|
+
export type WindowHapiAPITalentMindCompanyRequests = {
|
9
|
+
getCompanies: () => Promise<any>
|
10
|
+
}
|
11
|
+
export type WindowHapiAPITalentMindCompany =
|
12
|
+
WindowHapiModuleWithConstructorArgs<
|
13
|
+
WindowHapiAPIModule<
|
14
|
+
WindowHapiAPITalentMindCompanyRequests,
|
15
|
+
WindowHapiAPITalentMindCompanyConfigs
|
16
|
+
>,
|
17
|
+
{ readonly api: WindowHapiAPI }
|
18
|
+
>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import {
|
2
|
+
HapiServiceFunctionWithLifecycleHooks,
|
3
|
+
WindowHapiService,
|
4
|
+
} from "../_window/service.types"
|
5
|
+
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
6
|
+
|
7
|
+
export type TalentMindCompanyServiceGetCompaniesHandler = () => Promise<any>
|
8
|
+
|
9
|
+
export type WindowHapiServiceTalentMindCompany =
|
10
|
+
WindowHapiModuleWithConstructorArgs<
|
11
|
+
{
|
12
|
+
getCompanies: HapiServiceFunctionWithLifecycleHooks<TalentMindCompanyServiceGetCompaniesHandler>
|
13
|
+
},
|
14
|
+
{ readonly service: WindowHapiService }
|
15
|
+
>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { RawAxiosRequestConfig } from "axios"
|
2
|
+
import { WindowHapiAPI, WindowHapiAPIModule } from "../_window/api.types"
|
3
|
+
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
4
|
+
import { TalentMindCreateEvaluationForm, TalentMindEvaluation } from "./types"
|
5
|
+
|
6
|
+
export type WindowHapiAPITalentMindEvaluationConfigs = {
|
7
|
+
getEvaluations: RawAxiosRequestConfig
|
8
|
+
getEvaluation: RawAxiosRequestConfig
|
9
|
+
createEvaluation: RawAxiosRequestConfig
|
10
|
+
}
|
11
|
+
export type WindowHapiAPITalentMindEvaluationRequests = {
|
12
|
+
getEvaluations: () => Promise<TalentMindEvaluation[]>
|
13
|
+
getEvaluation: () => Promise<TalentMindEvaluation>
|
14
|
+
createEvaluation: (
|
15
|
+
form: TalentMindCreateEvaluationForm,
|
16
|
+
) => Promise<TalentMindEvaluation>
|
17
|
+
}
|
18
|
+
export type WindowHapiAPITalentMindEvaluation =
|
19
|
+
WindowHapiModuleWithConstructorArgs<
|
20
|
+
WindowHapiAPIModule<
|
21
|
+
WindowHapiAPITalentMindEvaluationRequests,
|
22
|
+
WindowHapiAPITalentMindEvaluationConfigs
|
23
|
+
>,
|
24
|
+
{ readonly api: WindowHapiAPI }
|
25
|
+
>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import {
|
2
|
+
HapiServiceFunctionWithLifecycleHooks,
|
3
|
+
WindowHapiService,
|
4
|
+
} from "../_window/service.types"
|
5
|
+
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
6
|
+
import { TalentMindCreateEvaluationForm, TalentMindEvaluation } from "./types"
|
7
|
+
|
8
|
+
export type TalentMindEvaluationServiceGetEvaluationsHandler = () => Promise<
|
9
|
+
TalentMindEvaluation[]
|
10
|
+
>
|
11
|
+
export type TalentMindEvaluationServiceGetEvaluationHandler =
|
12
|
+
() => Promise<TalentMindEvaluation>
|
13
|
+
export type TalentMindEvaluationServiceCreateEvaluationHandler = (
|
14
|
+
resumeForm: TalentMindCreateEvaluationForm,
|
15
|
+
) => Promise<TalentMindEvaluation>
|
16
|
+
|
17
|
+
export type WindowHapiServiceTalentMindEvaluation =
|
18
|
+
WindowHapiModuleWithConstructorArgs<
|
19
|
+
{
|
20
|
+
getEvaluations: HapiServiceFunctionWithLifecycleHooks<TalentMindEvaluationServiceGetEvaluationsHandler>
|
21
|
+
getEvaluation: HapiServiceFunctionWithLifecycleHooks<TalentMindEvaluationServiceGetEvaluationHandler>
|
22
|
+
createEvaluation: HapiServiceFunctionWithLifecycleHooks<TalentMindEvaluationServiceCreateEvaluationHandler>
|
23
|
+
},
|
24
|
+
{ readonly service: WindowHapiService }
|
25
|
+
>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export type TalentMindEvaluation = {
|
2
|
+
id: number
|
3
|
+
is_qualified: false
|
4
|
+
followup_questions: string[] | null
|
5
|
+
job: number
|
6
|
+
resume: number
|
7
|
+
score: number
|
8
|
+
strengths: string[] | null
|
9
|
+
weaknesses: string[] | null
|
10
|
+
}
|
11
|
+
|
12
|
+
export type TalentMindCreateEvaluationForm = {
|
13
|
+
resume: number | null
|
14
|
+
job: number | null
|
15
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { RawAxiosRequestConfig } from "axios"
|
2
|
+
import { WindowHapiAPI, WindowHapiAPIModule } from "../_window/api.types"
|
3
|
+
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
4
|
+
import { TalentMindCreateJobForm, TalentMindJob } from "./types"
|
5
|
+
|
6
|
+
export type WindowHapiAPITalentMindJobConfigs = {
|
7
|
+
getJobs: RawAxiosRequestConfig
|
8
|
+
getJob: RawAxiosRequestConfig
|
9
|
+
createJob: RawAxiosRequestConfig
|
10
|
+
updateJob: RawAxiosRequestConfig
|
11
|
+
deleteJob: RawAxiosRequestConfig
|
12
|
+
}
|
13
|
+
export type WindowHapiAPITalentMindJobRequests = {
|
14
|
+
getJobs: () => Promise<TalentMindJob[]>
|
15
|
+
getJob: () => Promise<TalentMindJob>
|
16
|
+
createJob: (jobForm: TalentMindCreateJobForm) => Promise<TalentMindJob>
|
17
|
+
updateJob: () => Promise<TalentMindJob>
|
18
|
+
deleteJob: (jobId: number) => Promise<any>
|
19
|
+
}
|
20
|
+
export type WindowHapiAPITalentMindJob = WindowHapiModuleWithConstructorArgs<
|
21
|
+
WindowHapiAPIModule<
|
22
|
+
WindowHapiAPITalentMindJobRequests,
|
23
|
+
WindowHapiAPITalentMindJobConfigs
|
24
|
+
>,
|
25
|
+
{ readonly api: WindowHapiAPI }
|
26
|
+
>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import {
|
2
|
+
HapiServiceFunctionWithLifecycleHooks,
|
3
|
+
WindowHapiService,
|
4
|
+
} from "../_window/service.types"
|
5
|
+
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
6
|
+
import { TalentMindCreateJobForm, TalentMindJob } from "../talentMindJob/types"
|
7
|
+
|
8
|
+
export type TalentMindJobServiceGetJobsHandler = () => Promise<any>
|
9
|
+
export type TalentMindJobServiceGetJobHandler = () => Promise<TalentMindJob>
|
10
|
+
export type TalentMindJobServiceCreateJobHandler = (
|
11
|
+
resumeForm: TalentMindCreateJobForm,
|
12
|
+
) => Promise<TalentMindJob>
|
13
|
+
export type TalentMindJobServiceUpdateJobHandler = () => Promise<TalentMindJob>
|
14
|
+
export type TalentMindJobServiceDeleteJobHandler = (
|
15
|
+
resumeId: number,
|
16
|
+
) => Promise<void>
|
17
|
+
|
18
|
+
export type WindowHapiServiceTalentMindJob =
|
19
|
+
WindowHapiModuleWithConstructorArgs<
|
20
|
+
{
|
21
|
+
getJobs: HapiServiceFunctionWithLifecycleHooks<TalentMindJobServiceGetJobsHandler>
|
22
|
+
getJob: HapiServiceFunctionWithLifecycleHooks<TalentMindJobServiceGetJobHandler>
|
23
|
+
createJob: HapiServiceFunctionWithLifecycleHooks<TalentMindJobServiceCreateJobHandler>
|
24
|
+
updateJob: HapiServiceFunctionWithLifecycleHooks<TalentMindJobServiceUpdateJobHandler>
|
25
|
+
deleteJob: HapiServiceFunctionWithLifecycleHooks<TalentMindJobServiceDeleteJobHandler>
|
26
|
+
},
|
27
|
+
{ readonly service: WindowHapiService }
|
28
|
+
>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export type TalentMindJob = {
|
2
|
+
id: number
|
3
|
+
title: string
|
4
|
+
description: string
|
5
|
+
requirements: string
|
6
|
+
location: string
|
7
|
+
company: number
|
8
|
+
}
|
9
|
+
|
10
|
+
export type TalentMindCreateJobForm = Omit<TalentMindJob, "id" | "company"> & {
|
11
|
+
company: number | null
|
12
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { RawAxiosRequestConfig } from "axios"
|
2
|
+
import { WindowHapiAPI, WindowHapiAPIModule } from "../_window/api.types"
|
3
|
+
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
4
|
+
import { TalentMindCreateResumeForm, TalentMindResume } from "./types"
|
5
|
+
|
6
|
+
export type WindowHapiAPITalentMindResumeConfigs = {
|
7
|
+
getResumes: RawAxiosRequestConfig
|
8
|
+
searchResumes: RawAxiosRequestConfig
|
9
|
+
getResume: RawAxiosRequestConfig
|
10
|
+
createResume: RawAxiosRequestConfig
|
11
|
+
updateResume: RawAxiosRequestConfig
|
12
|
+
deleteResume: RawAxiosRequestConfig
|
13
|
+
}
|
14
|
+
export type WindowHapiAPITalentMindResumeRequests = {
|
15
|
+
getResumes: () => Promise<TalentMindResume[]>
|
16
|
+
searchResumes: () => Promise<TalentMindResume[]>
|
17
|
+
getResume: () => Promise<TalentMindResume>
|
18
|
+
createResume: (
|
19
|
+
resumeForm: TalentMindCreateResumeForm,
|
20
|
+
) => Promise<TalentMindResume>
|
21
|
+
updateResume: () => Promise<TalentMindResume>
|
22
|
+
deleteResume: (resumeId: number) => Promise<void>
|
23
|
+
}
|
24
|
+
export type WindowHapiAPITalentMindResume = WindowHapiModuleWithConstructorArgs<
|
25
|
+
WindowHapiAPIModule<
|
26
|
+
WindowHapiAPITalentMindResumeRequests,
|
27
|
+
WindowHapiAPITalentMindResumeConfigs
|
28
|
+
>,
|
29
|
+
{ readonly api: WindowHapiAPI }
|
30
|
+
>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import {
|
2
|
+
HapiServiceFunctionWithLifecycleHooks,
|
3
|
+
WindowHapiService,
|
4
|
+
} from "../_window/service.types"
|
5
|
+
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
6
|
+
import { TalentMindCreateResumeForm, TalentMindResume } from "./types"
|
7
|
+
|
8
|
+
export type TalentMindResumeServiceGetResumesHandler = () => Promise<
|
9
|
+
TalentMindResume[]
|
10
|
+
>
|
11
|
+
export type TalentMindResumeServiceSearchResumesHandler = () => Promise<any>
|
12
|
+
export type TalentMindResumeServiceGetResumeHandler =
|
13
|
+
() => Promise<TalentMindResume>
|
14
|
+
export type TalentMindResumeServiceCreateResumeHandler = (
|
15
|
+
resumeForm: TalentMindCreateResumeForm,
|
16
|
+
) => Promise<TalentMindResume>
|
17
|
+
export type TalentMindResumeServiceUpdateResumeHandler =
|
18
|
+
() => Promise<TalentMindResume>
|
19
|
+
export type TalentMindResumeServiceDeleteResumeHandler = (
|
20
|
+
resumeId: number,
|
21
|
+
) => Promise<void>
|
22
|
+
|
23
|
+
export type WindowHapiServiceTalentMindResume =
|
24
|
+
WindowHapiModuleWithConstructorArgs<
|
25
|
+
{
|
26
|
+
getResumes: HapiServiceFunctionWithLifecycleHooks<TalentMindResumeServiceGetResumesHandler>
|
27
|
+
searchResumes: HapiServiceFunctionWithLifecycleHooks<TalentMindResumeServiceSearchResumesHandler>
|
28
|
+
getResume: HapiServiceFunctionWithLifecycleHooks<TalentMindResumeServiceGetResumeHandler>
|
29
|
+
createResume: HapiServiceFunctionWithLifecycleHooks<TalentMindResumeServiceCreateResumeHandler>
|
30
|
+
updateResume: HapiServiceFunctionWithLifecycleHooks<TalentMindResumeServiceUpdateResumeHandler>
|
31
|
+
deleteResume: HapiServiceFunctionWithLifecycleHooks<TalentMindResumeServiceDeleteResumeHandler>
|
32
|
+
},
|
33
|
+
{ readonly service: WindowHapiService }
|
34
|
+
>
|
@@ -0,0 +1,119 @@
|
|
1
|
+
export type TalentMindResumeAward = {
|
2
|
+
title: string
|
3
|
+
date: string
|
4
|
+
awarder: string
|
5
|
+
summary: string
|
6
|
+
}
|
7
|
+
|
8
|
+
export type TalentMindResumeBasic = {
|
9
|
+
email: string
|
10
|
+
label: string
|
11
|
+
location: string | null
|
12
|
+
name: string
|
13
|
+
phone: string
|
14
|
+
picture: string
|
15
|
+
profiles: any[]
|
16
|
+
summary: string
|
17
|
+
website: string | null
|
18
|
+
}
|
19
|
+
|
20
|
+
export type TalentMindResumeEducation = {
|
21
|
+
area: string
|
22
|
+
courses: string | null
|
23
|
+
endDate: string | null
|
24
|
+
gpa: string | null
|
25
|
+
institution: string | null
|
26
|
+
startDate: string | null
|
27
|
+
studyType: string
|
28
|
+
}
|
29
|
+
|
30
|
+
export type TalentMindResumeInterest = {
|
31
|
+
name: string
|
32
|
+
keywords: string[] | null
|
33
|
+
}
|
34
|
+
|
35
|
+
export type TalentMindResumeLanguage = {
|
36
|
+
language: string
|
37
|
+
fluency: string
|
38
|
+
}
|
39
|
+
|
40
|
+
export type TalentMindResumeMeta = {
|
41
|
+
version: string
|
42
|
+
lastUpdated: string
|
43
|
+
}
|
44
|
+
|
45
|
+
export type TalentMindResumePublication = {
|
46
|
+
name: string
|
47
|
+
publisher: string
|
48
|
+
releaseDate: string
|
49
|
+
summary: string
|
50
|
+
website: string
|
51
|
+
}
|
52
|
+
|
53
|
+
export type TalentMindResumeReference = {
|
54
|
+
name: string
|
55
|
+
reference: string
|
56
|
+
}
|
57
|
+
|
58
|
+
export type TalentMindResumeSkill = {
|
59
|
+
name: string
|
60
|
+
level: string | null
|
61
|
+
keywords: string | null
|
62
|
+
}
|
63
|
+
|
64
|
+
export type TalentMindResumeVolunteer = {
|
65
|
+
endDate: string
|
66
|
+
highlights: string[] | null
|
67
|
+
organization: string
|
68
|
+
position: string
|
69
|
+
startDate: string
|
70
|
+
summary: string
|
71
|
+
website: string
|
72
|
+
}
|
73
|
+
|
74
|
+
export type TalentMindResumeWorkLocation = {
|
75
|
+
address: string | null
|
76
|
+
city: string | null
|
77
|
+
countryCode: string | null
|
78
|
+
postalCode: string | null
|
79
|
+
region: string | null
|
80
|
+
}
|
81
|
+
|
82
|
+
export type TalentMindResumeWork = {
|
83
|
+
description: string | null
|
84
|
+
endDate: string | null
|
85
|
+
highlights: string[] | null
|
86
|
+
location: TalentMindResumeWorkLocation | null
|
87
|
+
name: string
|
88
|
+
position: string
|
89
|
+
startDate: string | null
|
90
|
+
summary: string | null
|
91
|
+
url: string | null
|
92
|
+
}
|
93
|
+
|
94
|
+
export type TalentMindResumeStructuredDocument = {
|
95
|
+
awards: TalentMindResumeAward[]
|
96
|
+
basics: TalentMindResumeBasic
|
97
|
+
education: TalentMindResumeEducation[]
|
98
|
+
interests: TalentMindResumeInterest[]
|
99
|
+
languages: TalentMindResumeLanguage[]
|
100
|
+
meta: TalentMindResumeMeta
|
101
|
+
publications: TalentMindResumePublication[]
|
102
|
+
references: TalentMindResumeReference[]
|
103
|
+
skills: TalentMindResumeSkill[]
|
104
|
+
volunteer: TalentMindResumeVolunteer[]
|
105
|
+
work: TalentMindResumeWork[]
|
106
|
+
}
|
107
|
+
|
108
|
+
export type TalentMindResume = {
|
109
|
+
id: string | number
|
110
|
+
name: string
|
111
|
+
remote_url: string | null
|
112
|
+
raw_text: string | null
|
113
|
+
structured_document: TalentMindResumeStructuredDocument | null
|
114
|
+
}
|
115
|
+
|
116
|
+
export type TalentMindCreateResumeForm = Pick<
|
117
|
+
TalentMindResume,
|
118
|
+
"name" | "raw_text" | "remote_url"
|
119
|
+
>
|
package/wallet/service.types.ts
CHANGED
@@ -4,13 +4,16 @@ import {
|
|
4
4
|
WindowHapiService,
|
5
5
|
} from "../_window/service.types"
|
6
6
|
import { WindowHapiModuleWithConstructorArgs } from "../_window"
|
7
|
+
import { ProductPriceCurrency } from "../product"
|
7
8
|
|
8
9
|
export type WalletServiceGetATSSettingsHandler =
|
9
10
|
() => Promise<WalletATSSettings>
|
10
11
|
export type WalletServiceGetWalletHandler = (
|
11
12
|
preventSettingIsLoading?: boolean,
|
12
13
|
) => Promise<Wallet>
|
13
|
-
export type WalletServiceCreateWalletHandler = (
|
14
|
+
export type WalletServiceCreateWalletHandler = (
|
15
|
+
currency?: ProductPriceCurrency,
|
16
|
+
) => Promise<Wallet>
|
14
17
|
|
15
18
|
export type WindowHapiServiceWallet = WindowHapiModuleWithConstructorArgs<
|
16
19
|
{
|
@@ -21,6 +24,8 @@ export type WindowHapiServiceWallet = WindowHapiModuleWithConstructorArgs<
|
|
21
24
|
paymentParams: WalletPaymentIntentRequest,
|
22
25
|
) => Promise<void>
|
23
26
|
resetTopUpState: () => void
|
27
|
+
resetDirectChargeState: () => void
|
28
|
+
resetCheckoutFormState: () => void
|
24
29
|
},
|
25
30
|
{ readonly service: WindowHapiService }
|
26
31
|
>
|
package/wallet/state.types.ts
CHANGED
@@ -7,8 +7,10 @@ import {
|
|
7
7
|
|
8
8
|
export type WalletState = {
|
9
9
|
wallet: Wallet | null
|
10
|
-
|
10
|
+
balance: number
|
11
|
+
currency: ProductPriceCurrency
|
11
12
|
balanceIsEnoughToOrderCampaign: boolean
|
13
|
+
billingDetailsAreComplete: boolean
|
12
14
|
walletIsLoading: boolean
|
13
15
|
paymentIntentRequestBody: WalletPaymentIntentRequest | null
|
14
16
|
paymentIntentClientSecret: string | null
|