@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.
Files changed (59) hide show
  1. package/_window/api.types.ts +14 -1
  2. package/_window/auth.types.ts +2 -2
  3. package/_window/service.types.ts +13 -0
  4. package/_window/state.types.ts +38 -13
  5. package/_window/utils.types.ts +4 -2
  6. package/_window/window.ts +36 -3
  7. package/alert/enums.ts +1 -1
  8. package/alert/types.ts +5 -3
  9. package/ats/state.types.ts +5 -2
  10. package/ats/types.ts +13 -7
  11. package/basket/state.types.ts +2 -1
  12. package/basket/utils.types.ts +4 -0
  13. package/campaign/service.types.ts +1 -0
  14. package/campaign/types.ts +26 -5
  15. package/campaign/validations.types.ts +1 -1
  16. package/common/enums.ts +4 -0
  17. package/common/events/EventCommand/enums.ts +2 -2
  18. package/common/types.ts +3 -0
  19. package/common/validator/types.ts +1 -0
  20. package/contract/types.ts +7 -0
  21. package/language/qa.types.ts +1 -4
  22. package/language/state.types.ts +0 -16
  23. package/language/validations.types.ts +0 -4
  24. package/modal/enums.ts +4 -1
  25. package/modal/service.types.ts +0 -1
  26. package/modal/types.ts +8 -0
  27. package/modal/utils.types.ts +10 -0
  28. package/orderJourney/enums.ts +1 -0
  29. package/orderJourney/qa.types.ts +0 -3
  30. package/package.json +1 -1
  31. package/product/api.types.ts +5 -0
  32. package/product/service.types.ts +3 -0
  33. package/product/state.types.ts +3 -0
  34. package/product/types.ts +6 -0
  35. package/product/utils.types.ts +2 -0
  36. package/talentMindCompany/api.types.ts +18 -0
  37. package/talentMindCompany/service.types.ts +15 -0
  38. package/talentMindCompany/state.types.ts +5 -0
  39. package/talentMindCompany/types.ts +6 -0
  40. package/talentMindCompany/validations.types.ts +5 -0
  41. package/talentMindEvaluation/api.types.ts +25 -0
  42. package/talentMindEvaluation/service.types.ts +25 -0
  43. package/talentMindEvaluation/state.types.ts +6 -0
  44. package/talentMindEvaluation/types.ts +15 -0
  45. package/talentMindEvaluation/validations.types.ts +5 -0
  46. package/talentMindJob/api.types.ts +26 -0
  47. package/talentMindJob/service.types.ts +28 -0
  48. package/talentMindJob/state.types.ts +6 -0
  49. package/talentMindJob/types.ts +12 -0
  50. package/talentMindJob/validations.types.ts +5 -0
  51. package/talentMindResume/api.types.ts +30 -0
  52. package/talentMindResume/service.types.ts +34 -0
  53. package/talentMindResume/state.types.ts +6 -0
  54. package/talentMindResume/types.ts +119 -0
  55. package/talentMindResume/validations.types.ts +5 -0
  56. package/wallet/service.types.ts +6 -1
  57. package/wallet/state.types.ts +3 -1
  58. package/wallet/types.ts +7 -2
  59. package/wallet/validations.types.ts +15 -3
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: string
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 { ZodBoolean, ZodNullable, ZodNumber, ZodObject, ZodString } from "zod"
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
- USD: ZodNumber
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>