@workwell-global/component-library 1.1.25 → 1.1.28

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.
@@ -139,5 +139,10 @@ export type enquiriesQueryParams =
139
139
  export type enquiryQueryParams = {
140
140
  enquiryId: string
141
141
  includeSimulations?: boolean
142
- expand?: 'string'
142
+ expand?: string
143
+ }
144
+
145
+ export type enquirySimSoftDeleteParams = {
146
+ disqualificationReason?: string
147
+ disqualificationDetailReason?: string
143
148
  }
@@ -36,6 +36,7 @@ export type T365Simulation = T365OwnershipBase & {
36
36
  'ww_estimatedconfirmedstartdate@OData.Community.Display.V1.FormattedValue'?:
37
37
  | string
38
38
  | null
39
+ ww_expirydate?: string | null
39
40
  ww_illustrationurl?: string | null
40
41
  ww_in_contractenddate?: string | null
41
42
  ww_in_contracthoursworked?: string | null
@@ -184,6 +185,7 @@ export type T365Simulation = T365OwnershipBase & {
184
185
  'ww_simulationstatus@OData.Community.Display.V1.FormattedValue'?:
185
186
  | string
186
187
  | null
188
+ ww_simulationname: string | null
187
189
  ww_templatefilepath?: string | null
188
190
  ww_workerisanexpat?: boolean | null
189
191
  'ww_workerisanexpat@OData.Community.Display.V1.FormattedValue'?: string | null
@@ -205,6 +207,7 @@ export type TSimulationAPI = TAPIOwnershipBase & {
205
207
  estimatedConfirmedEndDateFormattedValue?: string | null
206
208
  estimatedConfirmedStartDate?: string | null
207
209
  estimatedConfirmedStartDateFormattedValue?: string | null
210
+ expiryDate?: string | null
208
211
  illustrationURL?: string | null
209
212
  inAgencyValue?: string | null
210
213
  inContractEndDate?: string | null
@@ -348,6 +351,7 @@ export type TSimulationAPI = TAPIOwnershipBase & {
348
351
  simulationDocumentName?: string | null
349
352
  simulationId: string | null
350
353
  simulationFriendlyId?: string | null
354
+ simulationName?: string | null
351
355
  simulationStatus: number | null
352
356
  simulationStatusFormattedValue?: string | null
353
357
  solutionFormattedValue?: string | null
@@ -366,3 +370,8 @@ export type TSimulationAPI = TAPIOwnershipBase & {
366
370
  solution?: TSolutionAPI | null
367
371
  solutionType?: TSolutionAPI | null
368
372
  }
373
+
374
+ type CreatePatch<T, Base> = Partial<Omit<T, keyof Base>>
375
+
376
+ export type TSimulationPatchAPI = CreatePatch<TSimulationAPI, TAPIOwnershipBase>
377
+ export type T365SimulationPatch = CreatePatch<T365Simulation, T365OwnershipBase>
@@ -1,6 +1,5 @@
1
1
  import { TSolutionAPI } from '../../../TSolutionAPI'
2
2
 
3
- export const getEnquirySimSolutionsFieldsBFF = [
3
+ export const getEnquirySimSolutionFieldsBFF = [
4
4
  'solutionKey',
5
- 'solutionTypeKey',
6
5
  ] as const satisfies readonly (keyof TSolutionAPI)[]
@@ -0,0 +1,5 @@
1
+ import { TSolutionAPI } from '../../../TSolutionAPI'
2
+
3
+ export const getEnquirySimSolutionTypeFieldsBFF = [
4
+ 'solutionTypeKey',
5
+ ] as const satisfies readonly (keyof TSolutionAPI)[]
@@ -3,6 +3,7 @@ import { getEnquirySimulationFieldsBFF } from '../_fields/enquiryDetail/getEnqui
3
3
  import { TGetEnquirySimWorkCountryBFF } from './TGetEnquirySimWorkCountryBFF'
4
4
  import { TGetEnquirySimCurrencyBFF } from './TGetEnquirySimCurrencyBFF'
5
5
  import { TGetEnquirySimSolutionBFF } from './TGetEnquirySimSolutionBFF'
6
+ import { TGetEnquirySimSolutionTypeBFF } from './TGetEnquirySimSolutionTypeBFF'
6
7
  import { TGetEnquirySimDocumentBFF } from './TGetEnquirySimDocumentBFF'
7
8
 
8
9
  type simulationSummaryKeysBFF = (typeof getEnquirySimulationFieldsBFF)[number]
@@ -12,7 +13,7 @@ export type TGetEnquirySimBFF = Partial<
12
13
  workCountry: TGetEnquirySimWorkCountryBFF
13
14
  currency: TGetEnquirySimCurrencyBFF
14
15
  solution: TGetEnquirySimSolutionBFF
15
- solutionType: TGetEnquirySimSolutionBFF
16
- simulationDocuments: TGetEnquirySimDocumentBFF
16
+ solutionType: TGetEnquirySimSolutionTypeBFF
17
+ simulationDocuments: TGetEnquirySimDocumentBFF[]
17
18
  }
18
19
  >
@@ -1,8 +1,6 @@
1
1
  import { TSolutionAPI } from '../../TSolutionAPI'
2
- import { getEnquirySimSolutionsFieldsBFF } from '../_fields/enquiryDetail/getEnquirySimSolutionFields'
2
+ import { getEnquirySimSolutionFieldsBFF } from '../_fields/enquiryDetail/getEnquirySimSolutionFields'
3
3
 
4
- type enquirySimSolution = (typeof getEnquirySimSolutionsFieldsBFF)[number]
4
+ type enquirySimSolution = (typeof getEnquirySimSolutionFieldsBFF)[number]
5
5
 
6
- export type TGetEnquirySimSolutionBFF = Partial<
7
- Pick<TSolutionAPI, enquirySimSolution>
8
- >
6
+ export type TGetEnquirySimSolutionBFF = TSolutionAPI[enquirySimSolution]
@@ -0,0 +1,7 @@
1
+ import { TSolutionAPI } from '../../TSolutionAPI'
2
+ import { getEnquirySimSolutionTypeFieldsBFF } from '../_fields/enquiryDetail/getEnquirySimSolutionTypeFields'
3
+
4
+ type enquirySimSolutionType =
5
+ (typeof getEnquirySimSolutionTypeFieldsBFF)[number]
6
+
7
+ export type TGetEnquirySimSolutionTypeBFF = TSolutionAPI[enquirySimSolutionType]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workwell-global/component-library",
3
- "version": "1.1.25",
3
+ "version": "1.1.28",
4
4
  "description": "A component library for Workwell",
5
5
  "license": "MIT",
6
6
  "main": "dist/cjs",