@fragus/sam-types 1.2.8 → 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.8",
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
  /**
@@ -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
@@ -98,26 +98,9 @@ export interface IContractProviderResponse extends IProviderCustomizationRespons
98
98
  hiddenNetPrice: boolean
99
99
  useRetailPrice: boolean
100
100
  hideRetailPriceTooltip: boolean
101
- /** Read-only, from the provider's `FRAGUS_INVOICING` flag. */
102
- fragusInvoicing?: boolean
103
- /** Read-only, from the provider's `INTERNAL_USE` flag. */
104
- isInternalUse?: boolean
105
- fixedCustomer?: IFixedCustomerData | null
106
101
  v4ProviderId: number | null
107
102
  }
108
103
 
109
- /** The fixed customer of an internal-use provider; its country is the provider's. */
110
- export interface IFixedCustomerData {
111
- name: string
112
- companyName: string
113
- cvr: string
114
- phone: string
115
- email: string
116
- address1: string
117
- postalCode: string
118
- city: string
119
- }
120
-
121
104
  export interface IContractProviderListItemResponse {
122
105
  administrativeName: string
123
106
  contractProviderId: number
@@ -144,7 +127,6 @@ export type TContractProviderSettingsSection =
144
127
  | 'conditions'
145
128
  | 'customization'
146
129
  | 'cvrCode'
147
- | 'fixedCustomer'
148
130
 
149
131
  export interface IContractProviderSettingsResponse {
150
132
  administrativeName: string
@@ -174,8 +156,6 @@ export interface IContractProviderSettingsResponse {
174
156
  webLogoBannerUrl: string | null
175
157
  }
176
158
  hasParent: boolean
177
- /** Null while the provider is not in internal use. */
178
- fixedCustomer?: IFixedCustomerData | null
179
159
  }
180
160
 
181
161
  export type TContractProviderSettingsSectionValue =
@@ -185,7 +165,6 @@ export type TContractProviderSettingsSectionValue =
185
165
  | TProviderConditionsValue
186
166
  | TProviderCustomizationValue
187
167
  | TProviderCvrCodeValue
188
- | IFixedCustomerData
189
168
 
190
169
  export type TProviderGeneralInfoValue = Pick<
191
170
  IContractProviderSettingsResponse,
@@ -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;IAChB,iCAAO,CAAA;IACP,mCAAI,CAAA;IACJ,mCAAI,CAAA;IACJ,2CAAQ,CAAA;IACR,yCAAO,CAAA;AACT,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,+CAAO,CAAA;IACP,qDAAM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;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'
@@ -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'
@@ -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
- }