@fragus/sam-types 1.0.7 → 1.0.9
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/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TIsoCountry } from 'country'
|
|
2
|
+
|
|
1
3
|
export type UserRole = 'system' | 'superadmin' | 'admin' | 'seller' | 'customer' | 'reports' | 'observer'
|
|
2
4
|
|
|
3
5
|
export interface UserRoleRecord {
|
|
@@ -8,3 +10,5 @@ export interface UserRoleRecord {
|
|
|
8
10
|
inactive?: boolean
|
|
9
11
|
}
|
|
10
12
|
}
|
|
13
|
+
|
|
14
|
+
export type TUserRolesByCountry = Record<TIsoCountry, UserRoleRecord[]>
|
|
@@ -112,3 +112,64 @@ export interface IContractProviderListItemResponse {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
export type ProviderState = 'Active' | 'Inactive'
|
|
115
|
+
|
|
116
|
+
export type TContractProviderSettingsSection =
|
|
117
|
+
| 'general'
|
|
118
|
+
| 'contactPerson'
|
|
119
|
+
| 'address'
|
|
120
|
+
| 'conditions'
|
|
121
|
+
| 'customization'
|
|
122
|
+
| 'cvrCode'
|
|
123
|
+
|
|
124
|
+
export interface IContractProviderSettingsResponse {
|
|
125
|
+
administrativeName: string
|
|
126
|
+
logo: string
|
|
127
|
+
logoUrl: string | null
|
|
128
|
+
termsOfTradeRef: string
|
|
129
|
+
termsOfTradeRefUrl: string
|
|
130
|
+
cvrCode: string
|
|
131
|
+
generalConditions: string
|
|
132
|
+
optionsConditions: string
|
|
133
|
+
contactPerson: {
|
|
134
|
+
contactFormUrl: string
|
|
135
|
+
name: string
|
|
136
|
+
email: string
|
|
137
|
+
phone: string
|
|
138
|
+
}
|
|
139
|
+
address: {
|
|
140
|
+
address1: string
|
|
141
|
+
postalCode: string
|
|
142
|
+
city: string
|
|
143
|
+
}
|
|
144
|
+
customization: {
|
|
145
|
+
webTitle: string | null
|
|
146
|
+
isUseWhiteBGOnWeb: boolean
|
|
147
|
+
isShowLogoOnWeb: boolean
|
|
148
|
+
webLogoBanner: string | null
|
|
149
|
+
webLogoBannerUrl: string | null
|
|
150
|
+
}
|
|
151
|
+
hasParent: boolean
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type TContractProviderSettingsSectionValue =
|
|
155
|
+
| TProviderGeneralInfoValue
|
|
156
|
+
| TProviderContactPersonValue
|
|
157
|
+
| TProviderAddressValue
|
|
158
|
+
| TProviderConditionsValue
|
|
159
|
+
| TProviderCustomizationValue
|
|
160
|
+
| TProviderCvrCodeValue
|
|
161
|
+
|
|
162
|
+
export type TProviderGeneralInfoValue = Pick<
|
|
163
|
+
IContractProviderSettingsResponse,
|
|
164
|
+
'administrativeName' | 'logo' | 'termsOfTradeRef'
|
|
165
|
+
>
|
|
166
|
+
export type TProviderCvrCodeValue = Pick<IContractProviderSettingsResponse, 'cvrCode'> & {
|
|
167
|
+
vatLookupResult?: TProviderAddressValue & Pick<IContractProviderSettingsResponse, 'administrativeName'>
|
|
168
|
+
}
|
|
169
|
+
export type TProviderConditionsValue = Pick<
|
|
170
|
+
IContractProviderSettingsResponse,
|
|
171
|
+
'generalConditions' | 'optionsConditions'
|
|
172
|
+
>
|
|
173
|
+
export type TProviderContactPersonValue = IContractProviderSettingsResponse['contactPerson']
|
|
174
|
+
export type TProviderAddressValue = IContractProviderSettingsResponse['address']
|
|
175
|
+
export type TProviderCustomizationValue = IContractProviderSettingsResponse['customization']
|