@workwell-global/component-library 1.1.21 → 1.1.22

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.
@@ -0,0 +1,117 @@
1
+ export type T365Base = {
2
+ '@odata.etag'?: string | null
3
+ versionnumber?: number | null
4
+ 'versionnumber@OData.Community.Display.V1.FormattedValue'?: string | null
5
+ _createdby_value?: string | null
6
+ '_createdby_value@OData.Community.Display.V1.FormattedValue'?: string | null
7
+ createdon?: string | null
8
+ 'createdon@OData.Community.Display.V1.FormattedValue'?: string | null
9
+ _createdonbehalfby_value?: string | null
10
+ '_createdonbehalfby_value@OData.Community.Display.V1.FormattedValue'?:
11
+ | string
12
+ | null
13
+ _modifiedby_value?: string | null
14
+ '_modifiedby_value@OData.Community.Display.V1.FormattedValue'?: string | null
15
+ modifiedon?: string | null
16
+ 'modifiedon@OData.Community.Display.V1.FormattedValue'?: string | null
17
+ _modifiedonbehalfby_value?: string | null
18
+ '_modifiedonbehalfby_value@OData.Community.Display.V1.FormattedValue'?:
19
+ | string
20
+ | null
21
+ statecode?: number | null
22
+ 'statecode@OData.Community.Display.V1.FormattedValue'?: string | null
23
+ statuscode?: number | null
24
+ 'statuscode@OData.Community.Display.V1.FormattedValue'?: string | null
25
+ importsequencenumber?: number | null
26
+ 'importsequencenumber@OData.Community.Display.V1.FormattedValue'?:
27
+ | string
28
+ | null
29
+ overriddencreatedon?: string | null
30
+ 'overriddencreatedon@OData.Community.Display.V1.FormattedValue'?:
31
+ | string
32
+ | null
33
+ timezoneruleversionnumber?: number | string | null
34
+ 'timezoneruleversionnumber@OData.Community.Display.V1.FormattedValue'?:
35
+ | string
36
+ | null
37
+ utcconversiontimezonecode?: string | number | null
38
+ 'utcconversiontimezonecode@OData.Community.Display.V1.FormattedValue'?:
39
+ | string
40
+ | null
41
+ exchangerate?: number | null
42
+ 'exchangerate@OData.Community.Display.V1.FormattedValue'?: string | null
43
+ _transactioncurrencyid_value?: string | null
44
+ '_transactioncurrencyid_value@OData.Community.Display.V1.FormattedValue'?:
45
+ | string
46
+ | null
47
+ }
48
+
49
+ export type T365OrgBase = T365Base & {
50
+ _organizationid_value?: string | null
51
+ '_organizationid_value@OData.Community.Display.V1.FormattedValue'?:
52
+ | string
53
+ | null
54
+ }
55
+
56
+ export type T365OwnershipBase = T365Base & {
57
+ _ownerid_value?: string | null
58
+ '_ownerid_value@OData.Community.Display.V1.FormattedValue'?: string | null
59
+ _owningbusinessunit_value?: string | null
60
+ '_owningbusinessunit_value@OData.Community.Display.V1.FormattedValue'?:
61
+ | string
62
+ | null
63
+ _owningteam_value?: string | null
64
+ '_owningteam_value@OData.Community.Display.V1.FormattedValue'?: string | null // Added
65
+ _owninguser_value?: string | null
66
+ '_owninguser_value@OData.Community.Display.V1.FormattedValue'?: string | null
67
+ }
68
+
69
+ export type TAPIBase = {
70
+ etag?: string | null
71
+ versionNumber?: number | null
72
+ versionNumberFormattedValue?: string | null
73
+ importSequenceNumber?: number | null
74
+ importSequenceNumberFormattedValue?: string | null
75
+ overriddenCreatedOn?: string | null
76
+ overriddenCreatedOnFormattedValue?: string | null
77
+ timezoneRuleVersionNumber?: number | string | null
78
+ timezoneRuleVersionNumberFormattedValue?: string | null
79
+ utcConversionTimezoneCode?: number | string | null
80
+ utcConversionTimezoneCodeFormattedValue?: string | null
81
+ createdOn?: string | null
82
+ createdOnFormattedValue?: string | null
83
+ createdByValue?: string | null
84
+ createdByFormattedValue?: string | null
85
+ createdOnBehalfByValue?: string | null
86
+ createdOnBehalfByFormattedValue?: string | null
87
+ modifiedOn?: string | null
88
+ modifiedOnFormattedValue?: string | null
89
+ modifiedByValue?: string | null
90
+ modifiedByFormattedValue?: string | null
91
+ modifiedOnBehalfByValue?: string | null
92
+ modifiedOnBehalfByFormattedValue?: string | null
93
+ stateCode?: number | null
94
+ stateCodeFormattedValue?: string | null
95
+ statusCode?: number | null
96
+ statusCodeFormattedValue?: string | null
97
+ exchangeRate?: number | null
98
+ exchangeRateFormattedValue?: string | null
99
+ transactionCurrencyIdValue?: string | null
100
+ transactionCurrencyIdFormattedValue?: string | null
101
+ }
102
+
103
+ export type TAPIOwnershipBase = TAPIBase & {
104
+ ownerIdValue?: string | null
105
+ ownerIdFormattedValue?: string | null
106
+ owningBusinessUnitValue?: string | null
107
+ owningBusinessUnitFormattedValue?: string | null
108
+ owningTeamValue?: string | null
109
+ owningTeamFormattedValue?: string | null
110
+ owningUserValue?: string | null
111
+ owningUserFormattedValue?: string | null
112
+ }
113
+
114
+ export type TAPIOrgBase = TAPIBase & {
115
+ organizationIdValue?: string | null
116
+ organizationIdFormattedValue?: string | null
117
+ }
@@ -1,6 +1,6 @@
1
1
  import { T365DocumentBase, TDocumentBase } from './TDocumentBase'
2
2
 
3
- export interface T365ContractorDocument extends T365DocumentBase {
3
+ export type T365ContractorDocument = T365DocumentBase & {
4
4
  _ww_contractor_value: string | null
5
5
  _ww_directorapproved_value?: string | null
6
6
  _ww_scats_contractingcompany_value?: string | null
@@ -21,7 +21,7 @@ export interface T365ContractorDocument extends T365DocumentBase {
21
21
  ww_workerapproved?: string | null
22
22
  }
23
23
 
24
- export interface TContractorDocumentAPI extends TDocumentBase {
24
+ export type TContractorDocumentAPI = TDocumentBase & {
25
25
  contractorValue: string | null
26
26
  directorApprovedValue?: string | null
27
27
  scatsContractingCompanyValue?: string | null
@@ -0,0 +1,51 @@
1
+ import { T365OrgBase, TAPIOrgBase } from './TBase'
2
+
3
+ export type T365Country = T365OrgBase & {
4
+ ww_scats_averageroi?: string | null
5
+ ww_code?: string | null
6
+ 'ww_issanctioned@OData.Community.Display.V1.FormattedValue'?: string | null
7
+ ww_issanctioned?: boolean | null
8
+ ww_name?: string | null
9
+ 'ww_scats_workpermitservices@OData.Community.Display.V1.FormattedValue'?:
10
+ | string
11
+ | null
12
+ ww_scats_workpermitservices?: boolean | null
13
+ _ww_scats_currency_value?: string | null
14
+ ww_vatbusinesspostinggroup?: string | null
15
+ ww_scats_fees?: string | null
16
+ ww_wwgentity?: string | null
17
+ '_ww_scats_contractingcompany_value@OData.Community.Display.V1.FormattedValue'?:
18
+ | string
19
+ | null
20
+ _ww_scats_contractingcompany_value?: string | null
21
+ ww_scats_incountryservices?: string | null
22
+ 'ww_iseu@OData.Community.Display.V1.FormattedValue'?: string | null
23
+ ww_iseu?: boolean | null
24
+ _ww_scats_partneraccountant_value?: string | null
25
+ ww_countryid?: string | null
26
+ ww_altsearchcode?: string | null
27
+ ww_scats_workpermitservicesnotes?: string | null
28
+ }
29
+
30
+ export type TCountryAPI = TAPIOrgBase & {
31
+ scatsAverageRoi?: string | null
32
+ code?: string | null
33
+ isSanctionedFormattedValue?: string | null
34
+ isSanctioned?: boolean | null
35
+ name?: string | null
36
+ scatsWorkPermitServicesFormattedValue?: string | null
37
+ scatsWorkPermitServices?: boolean | null
38
+ scatsCurrencyValue?: string | null
39
+ vatBusinessPostingGroup?: string | null
40
+ scatsFees?: string | null
41
+ wwgEntity?: string | null
42
+ scatsContractingCompanyFormattedValue?: string | null
43
+ scatsContractingCompanyValue?: string | null
44
+ scatsInCountryServices?: string | null
45
+ isEuFormattedValue?: string | null
46
+ isEu?: boolean | null
47
+ scatsPartnerAccountantValue?: string | null
48
+ countryId?: string | null
49
+ altSearchCode?: string | null
50
+ scatsWorkermitServicesNotes?: string | null
51
+ }
@@ -0,0 +1,23 @@
1
+ import { T365OrgBase, TAPIOrgBase } from './TBase'
2
+
3
+ export type T365Currency = T365OrgBase & {
4
+ currencysymbol?: string | null
5
+ isocurrencycode?: string | null
6
+ currencyname?: string | null
7
+ currencyprecision?: number | null
8
+ 'currencyprecision@OData.Community.Display.V1.FormattedValue'?: string | null
9
+ currencytype?: number | null
10
+ 'currencytype@OData.Community.Display.V1.FormattedValue'?: string | null
11
+ transactioncurrencyid?: string | null
12
+ }
13
+
14
+ export type TCurrencyAPI = TAPIOrgBase & {
15
+ currencySymbol?: string | null
16
+ isoCode?: string | null
17
+ currencyName?: string | null
18
+ currencyPrecision?: number | null
19
+ currencyPrecisionFormattedValue?: string | null
20
+ currencyType?: number | null
21
+ currencyTypeFormattedValue?: string | null
22
+ currencyId?: string | null
23
+ }
@@ -1,23 +1,9 @@
1
- export type T365DocumentBase = {
2
- '@odata.etag'?: string | null
3
- _createdby_value?: string | null
1
+ import { T365Base, TAPIBase } from './TBase'
2
+
3
+ export type T365DocumentBase = T365Base & {
4
4
  _createdonbehalfby_value?: string | null
5
- _modifiedby_value?: string | null
6
5
  _modifiedonbehalfby_value?: string | null
7
- _ownerid_value?: string | null
8
- _owningbusinessunit_value?: string | null
9
- _owningteam_value?: string | null
10
- _owninguser_value?: string | null
11
6
  _ww_account_value?: string | null
12
- createdon?: string | null
13
- importsequencenumber?: number | null
14
- modifiedon?: string | null
15
- overriddencreatedon?: string | null
16
- statecode?: number | null
17
- statuscode?: number | null
18
- timezoneruleversionnumber?: number | null
19
- utcconversiontimezonecode?: string | null
20
- versionnumber?: number | null
21
7
  ww_attachment?: string | null
22
8
  ww_attachment_name?: string | null
23
9
  ww_category?: number | null
@@ -49,50 +35,23 @@ export type T365DocumentBase = {
49
35
  ww_limitedcompanyname?: string | null
50
36
  ww_config?: string | null
51
37
  ww_identityverificationurl?: string | null
52
- 'modifiedon@OData.Community.Display.V1.FormattedValue'?: string | null
53
38
  'ww_category@OData.Community.Display.V1.FormattedValue'?: string | null
54
39
  '_ww_account_value@OData.Community.Display.V1.FormattedValue'?: string | null
55
- 'ww_documenttype@OData.Community.Display.V1.FormattedValue'?: string | null
56
- 'statecode@OData.Community.Display.V1.FormattedValue'?: string | null
57
- 'versionnumber@OData.Community.Display.V1.FormattedValue'?: string | null
58
- '_modifiedby_value@OData.Community.Display.V1.FormattedValue'?: string | null
59
- 'createdon@OData.Community.Display.V1.FormattedValue'?: string | null
60
- '_owningbusinessunit_value@OData.Community.Display.V1.FormattedValue'?:
40
+ 'ww_documenttype@OData.Community.Display.V1.FormattedValue'?:
41
+ | string
42
+ | null
43
+ | string
44
+ | null
45
+ 'ww_datereceived@OData.Community.Display.V1.FormattedValue'?:
61
46
  | string
62
47
  | null
63
- 'statuscode@OData.Community.Display.V1.FormattedValue'?: string | null
64
- '_createdby_value@OData.Community.Display.V1.FormattedValue'?: string | null
65
- 'ww_datereceived@OData.Community.Display.V1.FormattedValue'?: string | null
66
- '_ownerid_value@OData.Community.Display.V1.FormattedValue'?: string | null
67
- 'timezoneruleversionnumber@OData.Community.Display.V1.FormattedValue'?:
68
48
  | string
69
49
  | null
70
50
  }
71
51
 
72
- //we convert to pretty names
73
- // remove preceding _
74
- // remove ww_
75
- // camel case
76
- export type TDocumentBase = {
77
- '@odata.etag'?: string | null
78
- createdByValue?: string | null
79
- createdOnBehalfByValue?: string | null
80
- modifiedByValue?: string | null
81
- modifiedOnBehalfByValue?: string | null
82
- ownerIdValue?: string | null
83
- owningBusinessUnitValue?: string | null
84
- owningTeamValue?: string | null
52
+ export type TDocumentBase = TAPIBase & {
85
53
  owningUserValue?: string | null
86
54
  accountValue?: string | null
87
- createdOn?: string | null
88
- importSequenceNumber?: number | null
89
- modifiedOn?: string | null
90
- overriddenCreatedOn?: string | null
91
- stateCode?: number | null
92
- statusCode?: number | null
93
- timezoneRuleVersionNumber?: number | null
94
- utcConversionTimezoneCode?: string | null
95
- versionNumber?: number | null
96
55
  attachment?: string | null
97
56
  attachmentName?: string | null
98
57
  category?: number | null
@@ -124,18 +83,8 @@ export type TDocumentBase = {
124
83
  limitedCompanyName?: string | null
125
84
  config?: string | null
126
85
  identityVerificationurl?: string | null
127
- modifiedOnFormattedValue?: string | null
128
86
  categoryFormattedValue?: string | null
129
87
  accountFormattedValue?: string | null
130
88
  documentTypeFormattedValue?: string | null
131
- stateCodeFormattedValue?: string | null
132
- versionNumberFormattedValue?: string | null
133
- modifiedByFormattedValue?: string | null
134
- createdOnFormattedValue?: string | null
135
- owningBusinessUnitFormattedValue?: string | null
136
- statusCodeFormattedValue?: string | null
137
- createdByFormattedValue?: string | null
138
89
  dateReceivedFormattedValue?: string | null
139
- ownerIdFormattedValue?: string | null
140
- timezoneruleVersionNumberFormattedValue?: string | null
141
90
  }
@@ -6,9 +6,3 @@ export type TParsedDownloadDocumentAPI = {
6
6
  mimeType?: string
7
7
  fileSize?: number
8
8
  }
9
-
10
- export type TParsedDownloadDocumentsAPI = {
11
- status?: 'success'
12
- count?: number
13
- documents?: TParsedDownloadDocumentAPI[]
14
- }
@@ -1,20 +1,7 @@
1
- import { D365Simulation, TSimulationAPI } from './TSimulationAPI'
1
+ import { T365OwnershipBase, TAPIOwnershipBase } from './TBase'
2
+ import { T365Simulation, TSimulationAPI } from './TSimulationAPI'
2
3
 
3
- export type D365Enquiry = {
4
- '_createdby_value@OData.Community.Display.V1.FormattedValue'?: string | null
5
- _createdby_value?: string | null
6
- _createdonbehalfby_value?: string | null
7
- '_modifiedby_value@OData.Community.Display.V1.FormattedValue'?: string | null
8
- _modifiedby_value?: string | null
9
- _modifiedonbehalfby_value?: string | null
10
- '_ownerid_value@OData.Community.Display.V1.FormattedValue'?: string | null
11
- _ownerid_value?: string | null
12
- '_owningbusinessunit_value@OData.Community.Display.V1.FormattedValue'?:
13
- | string
14
- | null
15
- _owningbusinessunit_value?: string | null
16
- _owningteam_value?: string | null
17
- _owninguser_value?: string | null
4
+ export type T365Enquiry = T365OwnershipBase & {
18
5
  '_ww_agency_value@OData.Community.Display.V1.FormattedValue'?: string | null
19
6
  _ww_agency_value?: string | null
20
7
  _ww_agencybranch_value?: string | null
@@ -23,20 +10,6 @@ export type D365Enquiry = {
23
10
  | null
24
11
  _ww_agencycontact_value?: string | null
25
12
  _ww_originatingcase_value?: string | null
26
- 'createdon@OData.Community.Display.V1.FormattedValue'?: string | null
27
- createdon?: string | null
28
- importsequencenumber?: number | null
29
- 'modifiedon@OData.Community.Display.V1.FormattedValue'?: string | null
30
- modifiedon?: string | null
31
- overriddencreatedon?: string | null
32
- 'statecode@OData.Community.Display.V1.FormattedValue'?: string | null
33
- statecode?: number
34
- 'statuscode@OData.Community.Display.V1.FormattedValue'?: string | null
35
- statuscode?: number | null
36
- timezoneruleversionnumber?: string | null
37
- utcconversiontimezonecode?: string | null
38
- 'versionnumber@OData.Community.Display.V1.FormattedValue'?: string | null
39
- versionnumber?: number
40
13
  ww_approvedsimulationscount?: number
41
14
  'ww_approvedsimulationscount@OData.Community.Display.V1.FormattedValue'?: string
42
15
  ww_approvedsimulationscount_date?: string | null
@@ -85,92 +58,57 @@ export type D365Enquiry = {
85
58
  'ww_totalsimulationscount_state@OData.Community.Display.V1.FormattedValue'?:
86
59
  | string
87
60
  | null
88
- ww_salaryillustration_Enquiry_ww_enquiry?: D365Simulation[]
61
+ ww_salaryillustration_Enquiry_ww_enquiry?: T365Simulation[]
89
62
  }
90
63
 
91
- export type TEnquiryAPI = {
64
+ export type TEnquiryAPI = TAPIOwnershipBase & {
65
+ enquiryId: string
66
+ enquiryNumber?: string | null
67
+ enquiryFriendlyName?: string | null
68
+ name?: string | null
69
+
70
+ agencyValue?: string | null
71
+ agencyFormattedValue?: string | null
92
72
  agencyBranchValue?: string | null
93
73
  agencyContactValue?: string | null
94
74
  agencyContactFormattedValue?: string | null
95
- agencyValue?: string | null
96
- agencyFormattedValue?: string | null
97
-
98
- approvedSimulationsCount?: number
99
- approvedSimulationsCountDate?: string | null
100
- approvedSimulationsCountDateFormattedValue?: string | null
101
- approvedSimulationsCountFormattedValue?: string
102
- approvedSimulationsCountState?: number
103
- approvedSimulationsCountStateFormattedValue?: string
104
-
105
- createdByValue?: string | null
106
- createdByFormattedValue?: string | null
107
- createdOn?: string | null
108
- createdOnBehalfByValue?: string | null
109
- createdOnFormattedValue?: string | null
110
-
111
- disqualificationReason?: number | null
112
- disqualificationReasonFormattedValue?: string | null
75
+ originatingCaseValue?: string | null
113
76
 
114
- enquiryFriendlyName?: string | null
115
- enquiryId: string
116
- enquiryNumber?: string | null
117
77
  enquiryStatus?: number | null
118
78
  enquiryStatusFormattedValue?: string | null
119
-
120
- importSequenceNumber?: number | null
121
-
122
- modifiedByValue?: string | null
123
- modifiedByFormattedValue?: string | null
124
- modifiedOn?: string | null
125
- modifiedOnBehalfByValue?: string | null
126
- modifiedOnFormattedValue?: string | null
127
-
128
- name?: string | null
129
-
130
79
  origin?: number | null
131
80
  originFormattedValue?: string | null
132
- originatingCaseValue?: string | null
133
-
134
- overriddenCreatedOn?: string | null
135
-
136
- ownerIdValue?: string | null
137
- ownerIdFormattedValue?: string | null
81
+ disqualificationReason?: number | null
82
+ disqualificationReasonFormattedValue?: string | null
138
83
 
139
- owningBusinessUnitValue?: string | null
140
- owningBusinessUnitFormattedValue?: string | null
141
- owningTeamValue?: string | null
142
- owningUserValue?: string | null
84
+ approvedSimulationsCount?: number
85
+ approvedSimulationsCountFormattedValue?: string
86
+ approvedSimulationsCountDate?: string | null
87
+ approvedSimulationsCountDateFormattedValue?: string | null
88
+ approvedSimulationsCountState?: number
89
+ approvedSimulationsCountStateFormattedValue?: string
143
90
 
144
91
  pendingApprovalSimulationsCount?: number
92
+ pendingApprovalSimulationsCountFormattedValue?: string
145
93
  pendingApprovalSimulationsCountDate?: string | null
146
94
  pendingApprovalSimulationsCountDateFormattedValue?: string | null
147
- pendingApprovalSimulationsCountFormattedValue?: string
148
95
  pendingApprovalSimulationsCountState?: number
149
96
  pendingApprovalSimulationsCountStateFormattedValue?: string | null
150
97
 
151
98
  rejectedSimulationsCount?: number
99
+ rejectedSimulationsCountFormattedValue?: string
152
100
  rejectedSimulationsCountDate?: string
153
101
  rejectedSimulationsCountDateFormattedValue?: string | null
154
- rejectedSimulationsCountFormattedValue?: string
155
102
  rejectedSimulationsCountState?: number
156
103
  rejectedSimulationsCountStateFormattedValue?: string
157
104
 
158
- stateCode?: number
159
- stateCodeFormattedValue?: string | null
160
- statusCode?: number | null
161
- statusCodeFormattedValue?: string | null
162
-
163
- timezoneRuleVersionNumber?: string | null
164
105
  totalSimulationsCount?: number
106
+ totalSimulationsCountFormattedValue?: string
165
107
  totalSimulationsCountDate?: string | null
166
108
  totalSimulationsCountDateFormattedValue?: string | null
167
- totalSimulationsCountFormattedValue?: string
168
109
  totalSimulationsCountState?: number
169
110
  totalSimulationsCountStateFormattedValue?: string | null
170
- utcConversionTimezoneCode?: string | null
171
111
 
172
- versionNumber?: number
173
- versionNumberFormattedValue?: string | null
174
112
  simulations?: TSimulationAPI[]
175
113
  }
176
114
 
@@ -180,6 +118,6 @@ export type enquiriesQueryParams =
180
118
 
181
119
  export type enquiryQueryParams = {
182
120
  enquiryId: string
183
- expansion?: 'includeSimulations' | 'includeSimulationsWithDocuments'
184
- value?: 'true' | 'false'
121
+ includeSimulations?: boolean
122
+ expand?: 'string'
185
123
  }
@@ -1,28 +1,13 @@
1
- import { I365Document, IDocument } from '../IContractorDocument'
1
+ import { T365OwnershipBase, TAPIOwnershipBase } from './TBase'
2
2
  import {
3
3
  T365ContractorDocument,
4
4
  TContractorDocumentAPI,
5
5
  } from './TContractorDocumentAPI'
6
+ import { T365Country, TCountryAPI } from './TCountryAPI'
7
+ import { T365Currency, TCurrencyAPI } from './TCurrencyAPI'
8
+ import { T365Solution, TSolutionAPI } from './TSolutionAPI'
6
9
 
7
- export type D365Simulation = {
8
- _createdby_value?: string | null
9
- '_createdby_value@OData.Community.Display.V1.FormattedValue'?: string | null
10
- _createdonbehalfby_value?: string | null
11
- _modifiedby_value?: string | null
12
- '_modifiedby_value@OData.Community.Display.V1.FormattedValue'?: string | null
13
- _modifiedonbehalfby_value?: string | null
14
- _ownerid_value?: string | null
15
- '_ownerid_value@OData.Community.Display.V1.FormattedValue'?: string | null
16
- _owningbusinessunit_value?: string | null
17
- '_owningbusinessunit_value@OData.Community.Display.V1.FormattedValue'?:
18
- | string
19
- | null
20
- _owningteam_value?: string | null
21
- _owninguser_value?: string | null
22
- _transactioncurrencyid_value?: string | null
23
- '_transactioncurrencyid_value@OData.Community.Display.V1.FormattedValue'?:
24
- | string
25
- | null
10
+ export type T365Simulation = T365OwnershipBase & {
26
11
  _ww_enquiry_value?: string | null
27
12
  '_ww_enquiry_value@OData.Community.Display.V1.FormattedValue'?: string | null
28
13
  _ww_in_agency_value?: string | null
@@ -37,27 +22,6 @@ export type D365Simulation = {
37
22
  _ww_workcountry_value?: number | null
38
23
  _ww_worker_value?: string | null
39
24
  '_ww_worker_value@OData.Community.Display.V1.FormattedValue'?: string | null
40
- '@odata.context'?: string | null
41
- '@odata.etag'?: string | null
42
- createdon?: string | null
43
- 'createdon@OData.Community.Display.V1.FormattedValue'?: string | null
44
- exchangerate?: number | null
45
- 'exchangerate@OData.Community.Display.V1.FormattedValue'?: string | null
46
- importsequencenumber?: number | null
47
- modifiedon?: string | null
48
- 'modifiedon@OData.Community.Display.V1.FormattedValue'?: string | null
49
- overriddencreatedon?: string | null
50
- statecode?: number | null
51
- 'statecode@OData.Community.Display.V1.FormattedValue'?: string | null
52
- statuscode?: number | null
53
- 'statuscode@OData.Community.Display.V1.FormattedValue'?: string | null
54
- timezoneruleversionnumber?: number | null
55
- 'timezoneruleversionnumber@OData.Community.Display.V1.FormattedValue'?:
56
- | string
57
- | null
58
- utcconversiontimezonecode?: string | null
59
- versionnumber?: number | null
60
- 'versionnumber@OData.Community.Display.V1.FormattedValue'?: string | null
61
25
  ww_agencymarginrate?: number | null
62
26
  'ww_agencymarginrate@OData.Community.Display.V1.FormattedValue'?:
63
27
  | string
@@ -224,17 +188,16 @@ export type D365Simulation = {
224
188
  ww_workerisanexpat?: boolean | null
225
189
  'ww_workerisanexpat@OData.Community.Display.V1.FormattedValue'?: string | null
226
190
  ww_contractordocument_Simulation_ww_salaryillustration: T365ContractorDocument[]
191
+ ww_WorkCountry?: T365Country
192
+ transactioncurrencyid?: T365Currency
193
+ ww_Solution?: T365Solution
194
+ ww_SolutionType?: T365Solution
227
195
  }
228
196
 
229
- export type TSimulationAPI = {
197
+ export type TSimulationAPI = TAPIOwnershipBase & {
230
198
  agencyMarginRate?: number | null
231
199
  agencyMarginRateFormattedValue?: string | null
232
200
  contractLength?: string | null
233
- createdByFormattedValue?: string | null
234
- createdByValue?: string | null
235
- createdOn?: string | null
236
- createdOnBehalfByValue?: string | null
237
- createdOnFormattedValue?: string | null
238
201
  endClient?: string | null
239
202
  enquiryFormattedValue?: string | null
240
203
  enquiryValue?: string | null
@@ -242,10 +205,7 @@ export type TSimulationAPI = {
242
205
  estimatedConfirmedEndDateFormattedValue?: string | null
243
206
  estimatedConfirmedStartDate?: string | null
244
207
  estimatedConfirmedStartDateFormattedValue?: string | null
245
- exchangeRate?: number | null
246
- exchangeRateFormattedValue?: string | null
247
208
  illustrationURL?: string | null
248
- importSequenceNumber?: number | null
249
209
  inAgencyValue?: string | null
250
210
  inContractEndDate?: string | null
251
211
  inContractHoursWorked?: string | null
@@ -274,11 +234,6 @@ export type TSimulationAPI = {
274
234
  inUmbrellaPensionBase?: string | null
275
235
  jobDescription?: string | null
276
236
  jobTitle: string | null
277
- modifiedByFormattedValue?: string | null
278
- modifiedByValue?: string | null
279
- modifiedOn?: string | null
280
- modifiedOnBehalfByValue?: string | null
281
- modifiedOnFormattedValue?: string | null
282
237
  name?: string | null
283
238
  outPayeApprenticeLevy?: string | null
284
239
  outPayeApprenticeLevyBase?: string | null
@@ -377,13 +332,6 @@ export type TSimulationAPI = {
377
332
  outUmbTotalCompanyIncomeBase?: string | null
378
333
  outUmbTotalPayments?: string | null
379
334
  outUmbTotalPaymentsBase?: string | null
380
- overriddenCreatedOn?: string | null
381
- ownerIdFormattedValue?: string | null
382
- ownerIdValue?: string | null
383
- owningBusinessUnitFormattedValue?: string | null
384
- owningBusinessUnitValue?: string | null
385
- owningTeamValue?: string | null
386
- owningUserValue?: string | null
387
335
  paymentFrequency?: string | null
388
336
  rate: number | null
389
337
  rateFormattedValue?: string | null
@@ -406,22 +354,15 @@ export type TSimulationAPI = {
406
354
  solutionTypeFormattedValue?: string | null
407
355
  solutionTypeValue?: string | null
408
356
  solutionValue?: string | null
409
- stateCode?: number | null
410
- stateCodeFormattedValue?: string | null
411
- statusCode?: number | null
412
- statusCodeFormattedValue?: string | null
413
357
  templateFilePath?: string | null
414
- timezoneRuleVersionNumber?: number | null
415
- timezoneRuleVersionNumberFormattedValue?: string | null
416
- transactionCurrencyIdFormattedValue?: string | null
417
- transactionCurrencyIdValue?: string | null
418
- utcConversionTimezoneCode?: string | null
419
- versionNumber?: number | null
420
- versionNumberFormattedValue?: string | null
421
358
  workCountryValue?: number | null
422
359
  workerFormattedValue?: string | null
423
360
  workerIsAnExpat?: boolean | null
424
361
  workerIsAnExpatFormattedValue?: string | null
425
362
  workerValue?: string | null
426
363
  simulationDocuments: TContractorDocumentAPI[]
364
+ workCountry?: TCountryAPI | null
365
+ currency?: TCurrencyAPI | null
366
+ solution?: TSolutionAPI | null
367
+ solutionType?: TSolutionAPI | null
427
368
  }
@@ -0,0 +1,147 @@
1
+ import { T365OrgBase, TAPIOrgBase } from './TBase'
2
+
3
+ export type T365Solution = T365OrgBase & {
4
+ currentcost_base?: string | null
5
+ entityimage_timestamp?: string | null
6
+ size?: string | null
7
+ producturl?: string | null
8
+ vendorname?: string | null
9
+ entityimageid?: string | null
10
+ standardcost_base?: string | null
11
+ validfromdate?: string | null
12
+ 'msdyn_gdproptout@OData.Community.Display.V1.FormattedValue'?: string | null
13
+ msdyn_gdproptout?: string | null
14
+ description?: string | null
15
+ _modifiedbyexternalparty_value?: string | null
16
+ ww_locationcode?: string | null
17
+ ww_costcentrecode?: string | null
18
+ validtodate?: string | null
19
+ '_parentProductId_value@OData.Community.Display.V1.FormattedValue'?:
20
+ | string
21
+ | null
22
+ _parentProductId_value?: string | null
23
+ price?: string | null
24
+ msdyn_alsoknownas?: string | null
25
+ msdynce_amount?: string | null
26
+ hierarchypath?: string | null
27
+ ww_entitlementcentrecode?: string | null
28
+ quantitydecimal?: string | null
29
+ _createdbyexternalparty_value?: string | null
30
+ suppliername?: string | null
31
+ dmtimportstate?: string | null
32
+ stockweight?: string | null
33
+ _defaultuomid_value?: string | null
34
+ ww_plusuplift?: string | null
35
+ _defaultuomscheduleid_value?: string | null
36
+ ww_plusupliftfortnightly_base?: string | null
37
+ productnumber?: string | null
38
+ price_base?: string | null
39
+ entityimage_url?: string | null
40
+ vendorpartnumber?: string | null
41
+ ww_plusupliftfortnightly?: string | null
42
+ 'iskit@OData.Community.Display.V1.FormattedValue'?: string | null
43
+ iskit?: string | null
44
+ stockvolume?: string | null
45
+ stageid?: string | null
46
+ ww_plusupliftweekly_base?: string | null
47
+ 'isstockitem@OData.Community.Display.V1.FormattedValue'?: string | null
48
+ isstockitem?: string | null
49
+ name?: string | null
50
+ productid?: string | null
51
+ standardcost?: string | null
52
+ _pricelevelid_value?: string | null
53
+ processid?: string | null
54
+ ww_solutiontype?: string | null
55
+ msdyn_scopes?: string | null
56
+ ww_plusuplift_base?: string | null
57
+ 'isreparented@OData.Community.Display.V1.FormattedValue'?: string | null
58
+ isreparented?: string | null
59
+ _subjectid_value?: string | null
60
+ traversedpath?: string | null
61
+ ww_plusupliftweekly?: string | null
62
+ 'producttypecode@OData.Community.Display.V1.FormattedValue'?: string | null
63
+ producttypecode?: string | null
64
+ vendorid?: string | null
65
+ currentcost?: string | null
66
+ 'ww_specialfeesapply@OData.Community.Display.V1.FormattedValue'?:
67
+ | string
68
+ | null
69
+ ww_specialfeesapply?: string | null
70
+ msdynce_amount_base?: string | null
71
+ 'productstructure@OData.Community.Display.V1.FormattedValue'?: string | null
72
+ productstructure?: string | null
73
+ quantityonhand?: string | null
74
+ entityimage?: string | null
75
+ }
76
+
77
+ export type TSolutionAPI = TAPIOrgBase & {
78
+ currentCostBase?: string | null
79
+ entityImageTimestamp?: string | null
80
+ size?: string | null
81
+ productUrl?: string | null
82
+ vendorName?: string | null
83
+ entityImageId?: string | null
84
+ standardCostBase?: string | null
85
+ validFromDate?: string | null
86
+ msdynGdprOptOutFormatted?: string | null
87
+ msdynGdprOptOut?: string | null
88
+ description?: string | null
89
+ modifiedByExternalParty?: string | null
90
+ locationCode?: string | null
91
+ costCentreCode?: string | null
92
+ validToDate?: string | null
93
+ parentProductIdFormatted?: string | null
94
+ parentProductId?: string | null
95
+ price?: string | null
96
+ msdynAlsoKnownAs?: string | null
97
+ msdynceAmount?: string | null
98
+ hierarchyPath?: string | null
99
+ entitlementCentreCode?: string | null
100
+ quantityDecimal?: string | null
101
+ createdByExternalParty?: string | null
102
+ supplierName?: string | null
103
+ dmtImportState?: string | null
104
+ stockWeight?: string | null
105
+ defaultUomId?: string | null
106
+ plusUplift?: string | null
107
+ defaultUomScheduleId?: string | null
108
+ plusUpliftFortnightlyBase?: string | null
109
+ productNumber?: string | null
110
+ priceBase?: string | null
111
+ entityImageUrl?: string | null
112
+ vendorPartNumber?: string | null
113
+ plusUpliftFortnightly?: string | null
114
+ isKitFormatted?: string | null
115
+ isKit?: string | null
116
+ stockVolume?: string | null
117
+ stageId?: string | null
118
+ plusUpliftWeeklyBase?: string | null
119
+ isStockItemFormatted?: string | null
120
+ isStockItem?: string | null
121
+ name?: string | null
122
+ productId?: string | null
123
+ standardCost?: string | null
124
+ priceLevelId?: string | null
125
+ processId?: string | null
126
+ solutionType?: string | null
127
+ msdynScopes?: string | null
128
+ plusUpliftBase?: string | null
129
+ isReparentedFormatted?: string | null
130
+ isReparented?: string | null
131
+ subjectId?: string | null
132
+ traversedPath?: string | null
133
+ plusUpliftWeekly?: string | null
134
+ productTypeCodeFormatted?: string | null
135
+ productTypeCode?: string | null
136
+ vendorId?: string | null
137
+ currentCost?: string | null
138
+ specialFeesApplyFormatted?: string | null
139
+ specialFeesApply?: string | null
140
+ msdynceAmountBase?: string | null
141
+ productStructureFormatted?: string | null
142
+ productStructure?: string | null
143
+ quantityOnHand?: string | null
144
+ entityImage?: string | null
145
+ solutionKey?: string | null
146
+ solutionTypeKey?: string | null
147
+ }
@@ -1,15 +1,9 @@
1
1
  import { TEnquiryAPI } from '../TEnquiryAPI'
2
2
  import { enquiryFieldsBFF } from './fields/enquiryFields'
3
- import { simulationBFFFields } from './fields/simulationFields'
3
+ import { TSimulationBFF } from './TSimulationBFF'
4
4
 
5
5
  type enquirySummaryKeysBFF = (typeof enquiryFieldsBFF)[number]
6
- type simulationSummaryKeysBFF = (typeof simulationBFFFields)[number]
7
6
 
8
7
  export type TEnquiryBFF = Partial<Pick<TEnquiryAPI, enquirySummaryKeysBFF>> & {
9
- simulations: Partial<
10
- Pick<
11
- NonNullable<TEnquiryAPI['simulations']>[number],
12
- simulationSummaryKeysBFF
13
- >
14
- >[]
8
+ simulations: TSimulationBFF[]
15
9
  }
@@ -0,0 +1,11 @@
1
+ import { TEnquiryAPI } from '../TEnquiryAPI'
2
+ import { simulationBFFFields } from './fields/simulationFields'
3
+
4
+ type simulationSummaryKeysBFF = (typeof simulationBFFFields)[number]
5
+
6
+ export type TSimulationBFF = Partial<
7
+ Pick<
8
+ NonNullable<TEnquiryAPI['simulations']>[number],
9
+ simulationSummaryKeysBFF
10
+ >
11
+ >
package/models/index.ts CHANGED
@@ -10,3 +10,6 @@ export * from './api/TSimulationAPI'
10
10
  export * from './api/TContractorDocumentAPI'
11
11
  export * from './api/TCompanyDocumentAPI'
12
12
  export * from './api/TDownloadDocumentAPI'
13
+ export * from './api/TCurrencyAPI'
14
+ export * from './api/TCountryAPI'
15
+ export * from './api/TSolutionAPI'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workwell-global/component-library",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "A component library for Workwell",
5
5
  "license": "MIT",
6
6
  "main": "dist/cjs",