@fragus/sam-types 1.2.7 → 1.2.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,5 +1,5 @@
1
1
  {
2
- "version": "1.2.7",
2
+ "version": "1.2.9",
3
3
  "name": "@fragus/sam-types",
4
4
  "description": "Typescript interfaces for all types used to communicate between SAM client(s) and the SAM API",
5
5
  "author": "Fragus",
@@ -72,8 +72,6 @@ export interface IContractDetailsBasic {
72
72
  mileage: number
73
73
  maxEndMileage?: number
74
74
  warrantyReference?: string
75
- /** The customer is a provider's internal-use fixed customer: no PDF, no owner change. */
76
- isFixedCustomer?: boolean
77
75
  }
78
76
 
79
77
  /**
@@ -20,6 +20,7 @@ export interface IContractCreationData {
20
20
  templates: IGenericContractTemplateResponse[]
21
21
  templatesAllDisabled?: boolean
22
22
  hiddenNetPrice: boolean
23
+ hideRetailPriceTooltip: boolean
23
24
  }
24
25
 
25
26
  export interface IProviderHasAccessToProductsRequest {
@@ -229,7 +230,7 @@ export interface IAvailableFreeWarrantyDurationPrice {
229
230
  finlandPriceId?: number
230
231
  totalPrice: PriceSpecification
231
232
  isEnabledAndAvailable?: boolean | null // Dependent of optional user setting for this DurationPrice-group or default setting in WarrantyData.
232
- debug?: any // For debugging purposes.
233
+ debug?: unknown // For debugging purposes.
233
234
  }
234
235
 
235
236
  export interface IAvailableFreeWarranty {
@@ -57,6 +57,14 @@ export interface IStandardV4PricingToolContractCalculationRequest extends IContr
57
57
  v4ProductId: number // V4 contract product / "template" id.
58
58
  }
59
59
 
60
+ /**
61
+ * The V4 retail price, set only for providers using it; the dealer price fields stay unchanged.
62
+ */
63
+ export interface IRetailPriceCalculation {
64
+ amountPrPayment: PriceSpecification
65
+ contractCost: PriceSpecification
66
+ }
67
+
60
68
  /**
61
69
  * The type returned by a price calculation.
62
70
  */
@@ -78,6 +86,7 @@ export interface IContractCalculationResponse {
78
86
  providerCost: PriceSpecification
79
87
  providerPayments: number
80
88
  providerShare: PriceSpecification
81
- x_debugData?: any // For debugging purposes.
89
+ retailPrice?: IRetailPriceCalculation
90
+ x_debugData?: Record<string, unknown> | null // For debugging purposes.
82
91
  serviceInfo?: string[] // Service information, mainly for ax.
83
92
  }
@@ -32,8 +32,6 @@ export interface IContractProviderInfo extends IEssentialContractProviderInfo {
32
32
  inactive: boolean
33
33
  isUsingV4PricingTool: boolean
34
34
  isUseV4PTOnlyForSigning: boolean
35
- fragusInvoicing?: boolean
36
- isInternalUse?: boolean
37
35
  }
38
36
 
39
37
  export interface ICreateTestContractProvider {
@@ -7,15 +7,6 @@ export interface IAdminUserInfo {
7
7
  email: string
8
8
  }
9
9
 
10
- /**
11
- * When the logged-in user's password was last set and when it expires, as ISO dates. Both are null for a password
12
- * set before expiry was introduced and not dated yet, which never expires.
13
- */
14
- export interface IPasswordStatus {
15
- changedAt: string | null
16
- expiresAt: string | null
17
- }
18
-
19
10
  export interface IUserPasswordChangeRequest {
20
11
  password: string
21
12
  newPassword: string
@@ -41,6 +41,9 @@ export interface IContractProviderRequest extends IProviderCustomizationResponse
41
41
  optionsConditions?: string
42
42
  fetchWarrantiesFromV4: boolean
43
43
  hiddenNetPrice: boolean
44
+ useRetailPrice?: boolean
45
+ /** Only allowed together with `useRetailPrice`. */
46
+ hideRetailPriceTooltip?: boolean
44
47
  v4ProviderId: number | null
45
48
  /** Groups the provider joins on create; an update ignores it. */
46
49
  contractProviderGroupIds?: number[]
@@ -93,26 +96,11 @@ export interface IContractProviderResponse extends IProviderCustomizationRespons
93
96
  created: Date
94
97
  updated: Date
95
98
  hiddenNetPrice: boolean
96
- /** Read-only, from the provider's `FRAGUS_INVOICING` flag. */
97
- fragusInvoicing?: boolean
98
- /** Read-only, from the provider's `INTERNAL_USE` flag. */
99
- isInternalUse?: boolean
100
- fixedCustomer?: IFixedCustomerData | null
99
+ useRetailPrice: boolean
100
+ hideRetailPriceTooltip: boolean
101
101
  v4ProviderId: number | null
102
102
  }
103
103
 
104
- /** The fixed customer of an internal-use provider; its country is the provider's. */
105
- export interface IFixedCustomerData {
106
- name: string
107
- companyName: string
108
- cvr: string
109
- phone: string
110
- email: string
111
- address1: string
112
- postalCode: string
113
- city: string
114
- }
115
-
116
104
  export interface IContractProviderListItemResponse {
117
105
  administrativeName: string
118
106
  contractProviderId: number
@@ -139,7 +127,6 @@ export type TContractProviderSettingsSection =
139
127
  | 'conditions'
140
128
  | 'customization'
141
129
  | 'cvrCode'
142
- | 'fixedCustomer'
143
130
 
144
131
  export interface IContractProviderSettingsResponse {
145
132
  administrativeName: string
@@ -169,8 +156,6 @@ export interface IContractProviderSettingsResponse {
169
156
  webLogoBannerUrl: string | null
170
157
  }
171
158
  hasParent: boolean
172
- /** Null while the provider is not in internal use. */
173
- fixedCustomer?: IFixedCustomerData | null
174
159
  }
175
160
 
176
161
  export type TContractProviderSettingsSectionValue =
@@ -180,7 +165,6 @@ export type TContractProviderSettingsSectionValue =
180
165
  | TProviderConditionsValue
181
166
  | TProviderCustomizationValue
182
167
  | TProviderCvrCodeValue
183
- | IFixedCustomerData
184
168
 
185
169
  export type TProviderGeneralInfoValue = Pick<
186
170
  IContractProviderSettingsResponse,
@@ -209,6 +193,8 @@ export interface IContractProviderOverviewDetails {
209
193
  disableContractTemplates: boolean
210
194
  fetchWarrantiesFromV4: boolean
211
195
  hiddenNetPrice: boolean
196
+ useRetailPrice: boolean
197
+ hideRetailPriceTooltip: boolean
212
198
  }
213
199
 
214
200
  export interface IPaginatedContractProviderListResponse {
@@ -1,4 +1,4 @@
1
- export type TContractProviderFlagKey = 'RENAULT_UNIQ_PDF_FORMAT' | 'FRAGUS_INVOICING' | 'INTERNAL_USE'
1
+ export type TContractProviderFlagKey = 'RENAULT_UNIQ_PDF_FORMAT'
2
2
 
3
3
  /** Exactly one of the two ids is sent: a flag row is owned by a provider or by a group. */
4
4
  export interface ContractProviderFlagRequest {
@@ -9,15 +9,6 @@ export interface ApiError {
9
9
  messageReplacements?: { [key in string]: string }
10
10
  }
11
11
 
12
- /**
13
- * The answer to a login whose password has expired. The token is a reset-password token, so the app can send the user
14
- * to its reset-password page to choose a new one.
15
- */
16
- export interface IPasswordExpiredError {
17
- message: 'PASSWORD_EXPIRED'
18
- resetToken: string
19
- }
20
-
21
12
  export interface INoContractsAvailableErrorParams {
22
13
  matchedData: VehiclePartial
23
14
  lookupCountry: null | {
package/types/index.d.ts CHANGED
@@ -182,7 +182,6 @@ export * from './priceCalculation';
182
182
  export * from './priceSpecification';
183
183
  export * from './product';
184
184
  export * from './providerBranding';
185
- export * from './providerInvoice';
186
185
  export * from './queryParams';
187
186
  export * from './reports/reports';
188
187
  export * from './resetPassword';
@@ -219,6 +218,5 @@ export * from './pinLookup';
219
218
  export * from './ISendEmail';
220
219
  export * from './emailCampaign';
221
220
  export * from './contractProviderFlags';
222
- export * from './fragusInvoicing';
223
221
  export * from './providerDocument';
224
222
  export * from './contractProviderGroup';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AAAA,IAAY,aAgBX;AAhBD,WAAY,aAAa;IACvB,mDAAS,CAAA;IACT,qDAAW,CAAA;IACX,mEAAkB,CAAA;IAClB,mEAAkB,CAAA;IAClB,qEAAmB,CAAA;IACnB,uDAAY,CAAA;IACZ,qEAAmB,CAAA;IACnB,2FAA8B,CAAA;IAC9B,6DAAe,CAAA;IACf,qFAA2B,CAAA;IAC3B,+DAAgB,CAAA;IAChB,2DAAc,CAAA;IACd,yDAAa,CAAA;IACb,yDAAa,CAAA;IACb,uEAAoB,CAAA;AACtB,CAAC,EAhBW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAgBxB;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,uDAAY,CAAA;IACZ,2DAAc,CAAA;IACd,+DAAgB,CAAA;AAClB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAY,MAMX;AAND,WAAY,MAAM;I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IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,2DAAO,CAAA;IACP,iEAAU,CAAA;IACV,6DAAQ,CAAA;AACV,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,6EAAc,CAAA;IACd,+EAAW,CAAA;IACX,mFAAa,CAAA;IACb,uFAAe,CAAA;AACjB,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,mDAAS,CAAA;IACT,6DAAU,CAAA;IACV,+CAAG,CAAA;IACH,uDAAO,CAAA;AACT,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,6CAAS,CAAA;IACT,6CAAK,CAAA;IACL,yCAAG,CAAA;IACH,iDAAO,CAAA;IACP,iDAAO,CAAA;IACP,mDAAQ,CAAA;AACV,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,6DAAQ,CAAA;IACR,+DAAK,CAAA;IACL,uEAAS,CAAA;AACX,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,iFAAqB,CAAA;IACrB,2DAAM,CAAA;AACR,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAsED,qCAA+B"}
package/types/index.ts CHANGED
@@ -201,7 +201,6 @@ export * from './priceCalculation'
201
201
  export * from './priceSpecification'
202
202
  export * from './product'
203
203
  export * from './providerBranding'
204
- export * from './providerInvoice'
205
204
  export * from './queryParams'
206
205
  export * from './reports/reports'
207
206
  export * from './resetPassword'
@@ -238,6 +237,5 @@ export * from './pinLookup'
238
237
  export * from './ISendEmail'
239
238
  export * from './emailCampaign'
240
239
  export * from './contractProviderFlags'
241
- export * from './fragusInvoicing'
242
240
  export * from './providerDocument'
243
241
  export * from './contractProviderGroup'
@@ -2,7 +2,7 @@ import { SettlementPaymentType } from './index'
2
2
  import { PriceSpecification } from './priceSpecification'
3
3
 
4
4
  /** Supported payment gateways. */
5
- export type PaymentGateway = 'Stripe' | 'B2B' | 'V4' | 'NONE' | 'Mock' | 'FragusSubscription' | 'FragusPrePaid'
5
+ export type PaymentGateway = 'Stripe' | 'B2B' | 'V4' | 'NONE' | 'Mock'
6
6
 
7
7
  /** Supported payment types. */
8
8
  export type PaymentType = 'automatic' | 'manual'
@@ -0,0 +1 @@
1
+ export type ContractProviderErrors = 'HIDE_RETAIL_PRICE_TOOLTIP_REQUIRES_USE_RETAIL_PRICE'
@@ -3,8 +3,6 @@ export type ContractResponseErrors =
3
3
  | PostContractResponseErrors
4
4
  | ContractActivationPreventedBySystemForThisVehicle
5
5
  | WarrantyCheckErrors
6
- | FragusInvoicingErrors
7
- | InternalUseErrors
8
6
 
9
7
  type ContractUpdateErrors = 'CONTRACT_TRANSITION_INVALID_OR_ILLEGAL'
10
8
  type PostContractResponseErrors = 'CONTRACT_MISSING_OR_INVALID_INFORMATION' | 'ITEM_SERIALNO_ACTIVE_CONTRACT_EXISTS'
@@ -23,19 +21,3 @@ type WarrantyCheckErrors =
23
21
  | 'WARRANTY_MODEL_NOT_FOUND'
24
22
  | 'WARRANTY_NOT_AVAILABLE_FOR_VEHICLE'
25
23
 
26
- type FragusInvoicingErrors =
27
- | 'FRAGUS_INVOICING_WEBCALC_NOT_AVAILABLE'
28
- | 'FRAGUS_INVOICING_HAS_FRAGUS_CONTRACTS'
29
- | 'FRAGUS_INVOICING_DEALER_PAID_NOT_AVAILABLE'
30
- | 'FRAGUS_INVOICING_HAS_INTERNAL_USE'
31
-
32
- type InternalUseErrors =
33
- | 'INTERNAL_USE_REQUIRES_FRAGUS_INVOICING'
34
- | 'INTERNAL_USE_NOT_ENABLED'
35
- | 'INTERNAL_USE_OFFER_NOT_AVAILABLE'
36
- | 'INTERNAL_USE_STRIPE_NOT_AVAILABLE'
37
- | 'INTERNAL_USE_WEBCALC_NOT_AVAILABLE'
38
- | 'INTERNAL_USE_FIXED_CUSTOMER_NO_LOGIN'
39
- | 'INTERNAL_USE_OWNER_CHANGE_NOT_AVAILABLE'
40
- | 'INTERNAL_USE_FIXED_CUSTOMER_READ_ONLY'
41
- | 'INTERNAL_USE_FIXED_CUSTOMER_NOT_ALLOWED'
@@ -1,6 +1,7 @@
1
1
  import { AdjustmentRequestResponseErrors } from './adjustmentRequestResponseErrors'
2
2
  import { AdminPaymentErrors } from './adminPaymentErrors'
3
3
  import { CalculatorResponseErrors } from './calculatorResponseErrors'
4
+ import { ContractProviderErrors } from './contractProviderErrors'
4
5
  import { ContractProviderGroupErrors } from './contractProviderGroupErrors'
5
6
  import { ContractResponseErrors } from './contractResponseErrors'
6
7
  import { GenericResponseErrors } from './genericResponseTypes'
@@ -18,6 +19,7 @@ export type ResponseErrors =
18
19
  | AdjustmentRequestResponseErrors
19
20
  | AdminPaymentErrors
20
21
  | CalculatorResponseErrors
22
+ | ContractProviderErrors
21
23
  | ContractProviderGroupErrors
22
24
  | ContractResponseErrors
23
25
  | GenericResponseErrors
@@ -4,9 +4,3 @@ export type PasswordErrors =
4
4
  | 'WRONG_CURRENT_PASSWORD'
5
5
  | 'WRONG_PASSWORD'
6
6
  | 'MISSING_PASSWORD'
7
- /** Login refused because the password is over a year old; see IPasswordExpiredError. */
8
- | 'PASSWORD_EXPIRED'
9
- /** A new password refused for being a common one, or for containing the user's email or name. */
10
- | 'PASSWORD_TOO_COMMON'
11
- /** A new password refused for being the same as the current one. */
12
- | 'PASSWORD_UNCHANGED'
@@ -1 +1 @@
1
- export declare type UserAndCustomerErrors = 'GENERIC_CONTACT_PERSON_NOT_FOUND' | 'GENERIC_CUSTOMER_ALREADY_EXISTS' | 'GENERIC_CUSTOMER_EMAIL_ALREADY_EXISTS_AS_USER' | 'GENERIC_CUSTOMER_NOT_FOUND' | 'GENERIC_FORBIDDEN_ROLE' | 'REPORTS_USER_NO_ADMIN_LOGIN' | 'GENERIC_NODE_ROLE_NOT_FOUND' | 'GENERIC_USER_ALREADY_EXISTS' | 'GENERIC_USER_CONFIGURATION_NOT_FOUND' | 'GENERIC_USER_NOT_FOUND' | 'GENERIC_USERNAME_OR_PASSWORD_NOT_FOUND';
1
+ export declare type UserAndCustomerErrors = 'GENERIC_CONTACT_PERSON_NOT_FOUND' | 'GENERIC_CUSTOMER_ALREADY_EXISTS' | 'GENERIC_CUSTOMER_EMAIL_ALREADY_EXISTS_AS_USER' | 'GENERIC_CUSTOMER_NOT_FOUND' | 'GENERIC_FORBIDDEN_ROLE' | 'GENERIC_NODE_ROLE_NOT_FOUND' | 'GENERIC_USER_ALREADY_EXISTS' | 'GENERIC_USER_CONFIGURATION_NOT_FOUND' | 'GENERIC_USER_NOT_FOUND' | 'GENERIC_USERNAME_OR_PASSWORD_NOT_FOUND';
@@ -4,7 +4,6 @@ export type UserAndCustomerErrors =
4
4
  | 'GENERIC_CUSTOMER_EMAIL_ALREADY_EXISTS_AS_USER' // The customer's email already exists as a (Seller/Admin/SuperAdmin/...) -User.
5
5
  | 'GENERIC_CUSTOMER_NOT_FOUND'
6
6
  | 'GENERIC_FORBIDDEN_ROLE'
7
- | 'REPORTS_USER_NO_ADMIN_LOGIN' // Admin login refused: the user only has the reports role, used through the report API.
8
7
  | 'GENERIC_NODE_ROLE_NOT_FOUND'
9
8
  | 'GENERIC_USER_ALREADY_EXISTS'
10
9
  | 'GENERIC_USER_CONFIGURATION_NOT_FOUND'
package/types/user.d.ts CHANGED
@@ -7,6 +7,4 @@ export interface IUserResponse {
7
7
  contactPerson: IContactPersonResponse
8
8
  userRole: UserRole
9
9
  disabledAt: Date | null
10
- /** Failed logins since the last successful one. */
11
- failedLoginAttempts?: number
12
10
  }
@@ -1,2 +1,2 @@
1
1
  export declare type TV4PTProductType = 'ServiceAgreement' | 'Warranty' | 'WarrantyAndServiceAgreement';
2
- export declare type TV4PTPaymentType = 'DealerPaid' | 'CustomerSubscription' | 'FragusSubscription' | 'FragusPrePaid';
2
+ export declare type TV4PTPaymentType = 'DealerPaid' | 'CustomerSubscription';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAQA,yFAAyF;AACzF,kFAAkF;AAClF,6EAA6E;AAC7E,gFAAgF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAMA,yFAAyF;AACzF,kFAAkF;AAClF,6EAA6E;AAC7E,gFAAgF"}
@@ -4,8 +4,6 @@ export type TV4PTProductType = 'ServiceAgreement' | 'Warranty' | 'WarrantyAndSer
4
4
  export type TV4PTPaymentType =
5
5
  | 'DealerPaid' // One-time dealer payment via V4.
6
6
  | 'CustomerSubscription' // Customer monthly subscription.
7
- | 'FragusSubscription' // Fragus Invoicing, sent to V4 as 'CustomerSubscription'.
8
- | 'FragusPrePaid' // Fragus Invoicing, sent to V4 as 'DealerPaid'.
9
7
  // | 'CustomerPaymentCard' // Deprecated, use 'CustomerSubscription' instead. /2023-01-01
10
8
  // | 'Subscription' // Deprecated, use 'CustomerSubscription' instead. /2023-01-01
11
9
  // | 'DealerPaidMonthly' // Deprecated, use 'DealerPaid' instead. /2023-01-01
@@ -1,19 +0,0 @@
1
- import { IFixedCustomerData } from './contractProvider'
2
-
3
- export interface IFragusInvoicingProviderRequest {
4
- contractProviderId: number
5
- }
6
-
7
- export interface IFragusInvoicingProviderResponse {
8
- contractProviderId: number
9
- contractProviderName: string
10
- country: string
11
- updatedByUser: string
12
- isInternalUse: boolean
13
- /** The saved fixed customer, or a prefill built from the provider's contact person. */
14
- fixedCustomer: IFixedCustomerData
15
- }
16
-
17
- export interface IInternalUseRequest {
18
- fixedCustomer: IFixedCustomerData
19
- }
@@ -1,30 +0,0 @@
1
- import { PriceSpecification } from './priceSpecification'
2
-
3
- export type ProviderInvoiceState = 'Pending' | 'Paid' | 'Canceled'
4
-
5
- export type BillingEntrySource = 'Stripe' | 'Fragus'
6
-
7
- export type BillingEntryKind = 'Subscription' | 'PrePaid'
8
-
9
- export interface IProviderInvoiceListRecord {
10
- id: number
11
- period: string // YYYY-MM
12
- state: ProviderInvoiceState
13
- amount: PriceSpecification
14
- contractCount: number
15
- created: string // ISO
16
- }
17
-
18
- export interface IContractBillingEntry {
19
- id: number
20
- contractPrettyId: string
21
- source: BillingEntrySource
22
- kind: BillingEntryKind
23
- coverageStart: string // ISO
24
- coverageEnd: string // ISO, exclusive
25
- amount: PriceSpecification
26
- }
27
-
28
- export interface IProviderInvoiceDetails extends IProviderInvoiceListRecord {
29
- entries: IContractBillingEntry[]
30
- }