@fragus/sam-types 1.0.0
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/README.md +75 -0
- package/package.json +24 -0
- package/types/SettlementPaymentType.d.ts +0 -0
- package/types/SettlementPaymentType.js +1 -0
- package/types/SettlementPaymentType.js.map +1 -0
- package/types/SettlementPaymentType.ts +0 -0
- package/types/accessKey/index.d.ts +12 -0
- package/types/address.d.ts +18 -0
- package/types/admin/auth/index.d.ts +2 -0
- package/types/admin/auth/login.d.ts +28 -0
- package/types/admin/auth/roles.d.ts +10 -0
- package/types/admin/chart/contractCharts.d.ts +70 -0
- package/types/admin/chart/dashboardCharts.d.ts +57 -0
- package/types/admin/chart/index.d.ts +12 -0
- package/types/admin/contactInformation/index.d.ts +9 -0
- package/types/admin/contract/balanceStatistics.d.ts +37 -0
- package/types/admin/contract/basicInfo.d.ts +21 -0
- package/types/admin/contract/contractDetails.d.ts +82 -0
- package/types/admin/contract/health.d.ts +1 -0
- package/types/admin/contract/index.d.ts +6 -0
- package/types/admin/contract/internalContractNotes.d.ts +23 -0
- package/types/admin/contract/settleContract.d.ts +3 -0
- package/types/admin/contract/templateLookup.d.ts +20 -0
- package/types/admin/contractCreation/carData.d.ts +20 -0
- package/types/admin/contractCreation/contractCreation.d.ts +314 -0
- package/types/admin/contractCreation/index.d.ts +3 -0
- package/types/admin/contractCreation/priceCalculation.d.ts +83 -0
- package/types/admin/contractProvider/index.d.ts +47 -0
- package/types/admin/customer/customer.d.ts +29 -0
- package/types/admin/customer/customerList.d.ts +9 -0
- package/types/admin/customer/index.d.ts +2 -0
- package/types/admin/index.d.ts +13 -0
- package/types/admin/payment/index.d.ts +1 -0
- package/types/admin/payment/payment.d.ts +13 -0
- package/types/admin/product/index.d.ts +1 -0
- package/types/admin/product/product.d.ts +40 -0
- package/types/admin/stripe/index.d.ts +1 -0
- package/types/admin/stripe/stripeTOS.d.ts +7 -0
- package/types/admin/user/index.d.ts +2 -0
- package/types/admin/user/responseErrors/index.d.ts +3 -0
- package/types/admin/user/responseErrors/passwordResponseErrors.d.ts +1 -0
- package/types/admin/user/user.d.ts +23 -0
- package/types/admin/user/userList.d.ts +19 -0
- package/types/admin/vehicle/index.d.ts +1 -0
- package/types/admin/vehicle/vehicle.d.ts +58 -0
- package/types/admin/vehicleBlacklist/index.d.ts +16 -0
- package/types/admin/workshop/index.d.ts +1 -0
- package/types/admin/workshop/workshop.d.ts +5 -0
- package/types/app.d.ts +5 -0
- package/types/brand.d.ts +4 -0
- package/types/chart.d.ts +38 -0
- package/types/contactPerson.d.ts +16 -0
- package/types/contract/contract.d.ts +75 -0
- package/types/contract/contractActivation.d.ts +5 -0
- package/types/contract/contractFilter.d.ts +58 -0
- package/types/contract/contractList.d.ts +53 -0
- package/types/contract/contractOffer.d.ts +34 -0
- package/types/contract/contractQuery.d.ts +68 -0
- package/types/contractAction.d.ts +40 -0
- package/types/contractOption.d.ts +50 -0
- package/types/contractProvider.d.ts +116 -0
- package/types/contractTemplate.d.ts +94 -0
- package/types/country.d.ts +32 -0
- package/types/currency.d.ts +1 -0
- package/types/customer.d.ts +10 -0
- package/types/durationOptions.d.ts +31 -0
- package/types/errorResponse.d.ts +19 -0
- package/types/fuelType.d.ts +9 -0
- package/types/includedContractOption.d.ts +18 -0
- package/types/index.d.ts +210 -0
- package/types/index.js +166 -0
- package/types/index.js.map +1 -0
- package/types/index.ts +229 -0
- package/types/invoice.d.ts +13 -0
- package/types/locale.d.ts +24 -0
- package/types/localizationData.d.ts +7 -0
- package/types/model.d.ts +4 -0
- package/types/outage.d.ts +9 -0
- package/types/payment.d.ts +53 -0
- package/types/paymentFailureReason.d.ts +6 -0
- package/types/priceCalculation.d.ts +27 -0
- package/types/priceSpecification.d.ts +20 -0
- package/types/product.d.ts +23 -0
- package/types/productPartial.d.ts +18 -0
- package/types/providerBranding.d.ts +48 -0
- package/types/queryParams.d.ts +51 -0
- package/types/releaseNotes/index.d.ts +33 -0
- package/types/reports/reports.d.ts +50 -0
- package/types/resetPassword.d.ts +3 -0
- package/types/responseErrors/HttpStatusCodes.d.ts +391 -0
- package/types/responseErrors/adjustmentRequestResponseErrors.d.ts +1 -0
- package/types/responseErrors/adminPaymentErrors.d.ts +6 -0
- package/types/responseErrors/calculatorResponseErrors.d.ts +35 -0
- package/types/responseErrors/contractResponseErrors.d.ts +23 -0
- package/types/responseErrors/fileImportErrors.d.ts +5 -0
- package/types/responseErrors/genericResponseTypes.d.ts +33 -0
- package/types/responseErrors/importErrors.d.ts +7 -0
- package/types/responseErrors/index.d.ts +30 -0
- package/types/responseErrors/invalidProductTypeErrors.d.ts +1 -0
- package/types/responseErrors/invalidProductTypeErrors.js +3 -0
- package/types/responseErrors/invalidProductTypeErrors.js.map +1 -0
- package/types/responseErrors/invalidProductTypeErrors.ts +1 -0
- package/types/responseErrors/invoiceErrors.d.ts +1 -0
- package/types/responseErrors/invoiceErrors.js +3 -0
- package/types/responseErrors/invoiceErrors.js.map +1 -0
- package/types/responseErrors/invoiceErrors.ts +1 -0
- package/types/responseErrors/passwordResponseErrors.d.ts +6 -0
- package/types/responseErrors/paymentResponseErrors.d.ts +5 -0
- package/types/responseErrors/rateLimitErrors.d.ts +1 -0
- package/types/responseErrors/userAndCustomerErrors.d.ts +1 -0
- package/types/responseErrors/userAndCustomerErrors.js +3 -0
- package/types/responseErrors/userAndCustomerErrors.js.map +1 -0
- package/types/responseErrors/userAndCustomerErrors.ts +11 -0
- package/types/responseErrors/vatLookupResponseErrors.d.ts +3 -0
- package/types/responseErrors/vehcileBlacklistErrors.d.ts +3 -0
- package/types/responseErrors/vehicleBlacklistErrors.d.ts +2 -0
- package/types/searchQuery.d.ts +21 -0
- package/types/stripe/stripe.d.ts +49 -0
- package/types/stripe/stripeAddress.d.ts +10 -0
- package/types/stripe/stripeDateOfBirth.d.ts +5 -0
- package/types/stripe/stripeDeclineChargeOn.d.ts +4 -0
- package/types/stripe/stripeExternalAccount.d.ts +19 -0
- package/types/stripe/stripeLegalEntity.d.ts +16 -0
- package/types/stripe/stripeOwner.d.ts +9 -0
- package/types/stripe/stripeVerification.d.ts +33 -0
- package/types/termsOfService.d.ts +11 -0
- package/types/translation.d.ts +3 -0
- package/types/translations/index.d.ts +38 -0
- package/types/user.d.ts +10 -0
- package/types/userConfiguration/tableUserConfiguration.d.ts +15 -0
- package/types/userConfiguration/userConfiguration.d.ts +5 -0
- package/types/v4PricingTool/dealerAndProvider/index.d.ts +44 -0
- package/types/v4PricingTool/dealerAndProvider/index.js +3 -0
- package/types/v4PricingTool/dealerAndProvider/index.js.map +1 -0
- package/types/v4PricingTool/dealerAndProvider/index.ts +66 -0
- package/types/v4PricingTool/index.d.ts +2 -0
- package/types/v4PricingTool/productsAndContracts/index.d.ts +2 -0
- package/types/v4PricingTool/productsAndContracts/index.js +7 -0
- package/types/v4PricingTool/productsAndContracts/index.js.map +1 -0
- package/types/v4PricingTool/productsAndContracts/index.ts +10 -0
- package/types/vatLookup.d.ts +14 -0
- package/types/vehicle.d.ts +160 -0
- package/types/vehicleContracts.d.ts +15 -0
- package/types/vehiclePartial.d.ts +24 -0
- package/types/warranty.d.ts +19 -0
- package/types/webcalc/auth.d.ts +48 -0
- package/types/webcalc/index.d.ts +2 -0
- package/types/webcalc/offerRequest.d.ts +18 -0
- package/types/workshopOperation.d.ts +18 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CustomerType, IsoLocale, PaymentCard, PaymentGateway, UserRole } from '..'
|
|
2
|
+
|
|
3
|
+
// TODO: remove
|
|
4
|
+
export interface IWebcalcLoginRequest {
|
|
5
|
+
providerId: number
|
|
6
|
+
username: string
|
|
7
|
+
password: string
|
|
8
|
+
}
|
|
9
|
+
// TODO: remove
|
|
10
|
+
export interface IWebcalcCustomerIdResponse {
|
|
11
|
+
id: number
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IWebcalcUserLookupResponse {
|
|
15
|
+
exists: boolean
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface IWebcalcLoginResponse {
|
|
19
|
+
id: number
|
|
20
|
+
username: string
|
|
21
|
+
email: string
|
|
22
|
+
contractProvider: {
|
|
23
|
+
id: number
|
|
24
|
+
name: string
|
|
25
|
+
email: string
|
|
26
|
+
phone: string
|
|
27
|
+
locale: IsoLocale
|
|
28
|
+
showPricesWithVat: boolean
|
|
29
|
+
supportedPaymentMethods: PaymentGateway[]
|
|
30
|
+
}
|
|
31
|
+
role: UserRole
|
|
32
|
+
customer: {
|
|
33
|
+
id: number
|
|
34
|
+
name: string
|
|
35
|
+
phone: string
|
|
36
|
+
address1: string
|
|
37
|
+
address2?: string
|
|
38
|
+
city: string
|
|
39
|
+
zip: string
|
|
40
|
+
type: CustomerType
|
|
41
|
+
email: string
|
|
42
|
+
card?: PaymentCard
|
|
43
|
+
prettyIdentifier: string
|
|
44
|
+
cvr?: string
|
|
45
|
+
ean?: string
|
|
46
|
+
companyName?: string
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IContactPersonRequest } from '../contactPerson'
|
|
2
|
+
|
|
3
|
+
export interface IWebcalcOfferRequestRequest {
|
|
4
|
+
contactPerson: IContactPersonRequest
|
|
5
|
+
requestPrice: number
|
|
6
|
+
vehicle: {
|
|
7
|
+
brandName?: string
|
|
8
|
+
modelName?: string
|
|
9
|
+
fuelTypeName?: string
|
|
10
|
+
vin?: string
|
|
11
|
+
registrationNumber?: string
|
|
12
|
+
dateVehicleFirstRegistered?: string
|
|
13
|
+
}
|
|
14
|
+
duration?: number
|
|
15
|
+
mileage?: number
|
|
16
|
+
contractTemplateId?: number
|
|
17
|
+
requestText: string
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PriceSpecification } from './index'
|
|
2
|
+
|
|
3
|
+
export type WorkshopOrderBy = 'id' | 'date'
|
|
4
|
+
export interface IWorkshopOperationCollection {
|
|
5
|
+
date: string
|
|
6
|
+
price: PriceSpecification
|
|
7
|
+
operations: IWorkshopOperation[]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IWorkshopOperation {
|
|
11
|
+
id?: number
|
|
12
|
+
price: PriceSpecification | number
|
|
13
|
+
value: number
|
|
14
|
+
mileage?: number
|
|
15
|
+
date: Date | string
|
|
16
|
+
description: string
|
|
17
|
+
contractPrettyIdentifier?: string
|
|
18
|
+
}
|