@vonq/hapi-elements-types 1.17.0 → 1.19.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/routing.types.ts +1 -0
- package/_window/service.types.ts +13 -0
- package/_window/state.types.ts +38 -13
- package/_window/utils.types.ts +17 -2
- package/_window/window.ts +36 -3
- package/alert/enums.ts +2 -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 +5 -2
- package/basket/utils.types.ts +7 -0
- package/basket/validations.types.ts +7 -0
- package/campaign/api.types.ts +11 -0
- package/campaign/service.types.ts +33 -2
- package/campaign/state.types.ts +2 -1
- package/campaign/types.ts +87 -18
- package/campaign/utils.types.ts +21 -0
- 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 +100 -0
- package/common/validator/types.ts +1 -0
- package/contract/service.types.ts +5 -7
- package/contract/types.ts +2 -76
- package/contract/validations.types.ts +6 -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 +5 -1
- package/modal/service.types.ts +0 -1
- package/modal/types.ts +32 -4
- package/modal/utils.types.ts +10 -0
- package/orderJourney/enums.ts +2 -0
- package/orderJourney/qa.types.ts +0 -3
- package/orderJourney/service.types.ts +20 -0
- package/orderJourney/state.types.ts +11 -1
- package/orderJourney/types.ts +37 -0
- package/orderJourney/validations.types.ts +3 -0
- package/package.json +1 -1
- package/product/api.types.ts +20 -1
- package/product/enums.ts +8 -0
- package/product/service.types.ts +23 -1
- package/product/state.types.ts +6 -0
- package/product/types.ts +23 -16
- package/product/utils.types.ts +3 -0
- package/product/validations.types.ts +3 -2
- package/routing/utils.types.ts +14 -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/theming/types.ts +1 -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
@@ -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/theming/types.ts
CHANGED
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
|
package/wallet/types.ts
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
import { ProductPriceCurrency } from "../product/enums"
|
2
2
|
|
3
3
|
export type WalletBalanceInCents = {
|
4
|
-
USD: number
|
4
|
+
USD: number //deprecated
|
5
|
+
amount: string //float
|
6
|
+
currency: ProductPriceCurrency
|
5
7
|
}
|
6
8
|
|
7
9
|
export type Wallet = {
|
8
10
|
balance: WalletBalanceInCents
|
9
11
|
created_date: string
|
10
12
|
has_billing_details: boolean
|
13
|
+
missing_billing_keys: string[]
|
11
14
|
id: string
|
12
15
|
}
|
13
16
|
|
@@ -19,7 +22,8 @@ export type WalletATSSettings = {
|
|
19
22
|
}
|
20
23
|
|
21
24
|
export type WalletCreateForm = {
|
22
|
-
customerName
|
25
|
+
customerName?: string | null
|
26
|
+
currency?: ProductPriceCurrency
|
23
27
|
}
|
24
28
|
|
25
29
|
export type WalletBillingPortalLinkResponse = {
|
@@ -61,5 +65,6 @@ export type WalletPaymentIntentRequest = {
|
|
61
65
|
partnerId: string
|
62
66
|
amount: number
|
63
67
|
agreeTerms: boolean
|
68
|
+
draftCampaignId?: string
|
64
69
|
paymentMethodTypes?: WalletPaymentIntentPaymentMethod[]
|
65
70
|
}
|
@@ -1,16 +1,28 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
ZodArray,
|
3
|
+
ZodBoolean,
|
4
|
+
ZodNullable,
|
5
|
+
ZodNumber,
|
6
|
+
ZodObject,
|
7
|
+
ZodOptional,
|
8
|
+
ZodString,
|
9
|
+
} from "zod"
|
10
|
+
import { ProductPriceCurrency } from "../product"
|
2
11
|
|
3
12
|
export type ZodWalletBalance = ZodObject<{
|
4
|
-
|
13
|
+
amount: ZodString
|
14
|
+
currency: ZodString
|
5
15
|
}>
|
6
16
|
export type ZodWallet = ZodObject<{
|
7
17
|
balance: ZodWalletBalance
|
8
18
|
created_date: ZodString
|
9
19
|
has_billing_details: ZodBoolean
|
10
20
|
id: ZodString
|
21
|
+
missing_billing_keys: ZodArray<ZodString>
|
11
22
|
}>
|
12
23
|
export type ZodWalletCreateForm = ZodObject<{
|
13
|
-
customerName: ZodString
|
24
|
+
customerName: ZodOptional<ZodNullable<ZodString>>
|
25
|
+
currency: ZodString
|
14
26
|
}>
|
15
27
|
export type WindowHapiValidationsWallet = {
|
16
28
|
wallet: ZodNullable<ZodWallet>
|