@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.
Files changed (149) hide show
  1. package/README.md +75 -0
  2. package/package.json +24 -0
  3. package/types/SettlementPaymentType.d.ts +0 -0
  4. package/types/SettlementPaymentType.js +1 -0
  5. package/types/SettlementPaymentType.js.map +1 -0
  6. package/types/SettlementPaymentType.ts +0 -0
  7. package/types/accessKey/index.d.ts +12 -0
  8. package/types/address.d.ts +18 -0
  9. package/types/admin/auth/index.d.ts +2 -0
  10. package/types/admin/auth/login.d.ts +28 -0
  11. package/types/admin/auth/roles.d.ts +10 -0
  12. package/types/admin/chart/contractCharts.d.ts +70 -0
  13. package/types/admin/chart/dashboardCharts.d.ts +57 -0
  14. package/types/admin/chart/index.d.ts +12 -0
  15. package/types/admin/contactInformation/index.d.ts +9 -0
  16. package/types/admin/contract/balanceStatistics.d.ts +37 -0
  17. package/types/admin/contract/basicInfo.d.ts +21 -0
  18. package/types/admin/contract/contractDetails.d.ts +82 -0
  19. package/types/admin/contract/health.d.ts +1 -0
  20. package/types/admin/contract/index.d.ts +6 -0
  21. package/types/admin/contract/internalContractNotes.d.ts +23 -0
  22. package/types/admin/contract/settleContract.d.ts +3 -0
  23. package/types/admin/contract/templateLookup.d.ts +20 -0
  24. package/types/admin/contractCreation/carData.d.ts +20 -0
  25. package/types/admin/contractCreation/contractCreation.d.ts +314 -0
  26. package/types/admin/contractCreation/index.d.ts +3 -0
  27. package/types/admin/contractCreation/priceCalculation.d.ts +83 -0
  28. package/types/admin/contractProvider/index.d.ts +47 -0
  29. package/types/admin/customer/customer.d.ts +29 -0
  30. package/types/admin/customer/customerList.d.ts +9 -0
  31. package/types/admin/customer/index.d.ts +2 -0
  32. package/types/admin/index.d.ts +13 -0
  33. package/types/admin/payment/index.d.ts +1 -0
  34. package/types/admin/payment/payment.d.ts +13 -0
  35. package/types/admin/product/index.d.ts +1 -0
  36. package/types/admin/product/product.d.ts +40 -0
  37. package/types/admin/stripe/index.d.ts +1 -0
  38. package/types/admin/stripe/stripeTOS.d.ts +7 -0
  39. package/types/admin/user/index.d.ts +2 -0
  40. package/types/admin/user/responseErrors/index.d.ts +3 -0
  41. package/types/admin/user/responseErrors/passwordResponseErrors.d.ts +1 -0
  42. package/types/admin/user/user.d.ts +23 -0
  43. package/types/admin/user/userList.d.ts +19 -0
  44. package/types/admin/vehicle/index.d.ts +1 -0
  45. package/types/admin/vehicle/vehicle.d.ts +58 -0
  46. package/types/admin/vehicleBlacklist/index.d.ts +16 -0
  47. package/types/admin/workshop/index.d.ts +1 -0
  48. package/types/admin/workshop/workshop.d.ts +5 -0
  49. package/types/app.d.ts +5 -0
  50. package/types/brand.d.ts +4 -0
  51. package/types/chart.d.ts +38 -0
  52. package/types/contactPerson.d.ts +16 -0
  53. package/types/contract/contract.d.ts +75 -0
  54. package/types/contract/contractActivation.d.ts +5 -0
  55. package/types/contract/contractFilter.d.ts +58 -0
  56. package/types/contract/contractList.d.ts +53 -0
  57. package/types/contract/contractOffer.d.ts +34 -0
  58. package/types/contract/contractQuery.d.ts +68 -0
  59. package/types/contractAction.d.ts +40 -0
  60. package/types/contractOption.d.ts +50 -0
  61. package/types/contractProvider.d.ts +116 -0
  62. package/types/contractTemplate.d.ts +94 -0
  63. package/types/country.d.ts +32 -0
  64. package/types/currency.d.ts +1 -0
  65. package/types/customer.d.ts +10 -0
  66. package/types/durationOptions.d.ts +31 -0
  67. package/types/errorResponse.d.ts +19 -0
  68. package/types/fuelType.d.ts +9 -0
  69. package/types/includedContractOption.d.ts +18 -0
  70. package/types/index.d.ts +210 -0
  71. package/types/index.js +166 -0
  72. package/types/index.js.map +1 -0
  73. package/types/index.ts +229 -0
  74. package/types/invoice.d.ts +13 -0
  75. package/types/locale.d.ts +24 -0
  76. package/types/localizationData.d.ts +7 -0
  77. package/types/model.d.ts +4 -0
  78. package/types/outage.d.ts +9 -0
  79. package/types/payment.d.ts +53 -0
  80. package/types/paymentFailureReason.d.ts +6 -0
  81. package/types/priceCalculation.d.ts +27 -0
  82. package/types/priceSpecification.d.ts +20 -0
  83. package/types/product.d.ts +23 -0
  84. package/types/productPartial.d.ts +18 -0
  85. package/types/providerBranding.d.ts +48 -0
  86. package/types/queryParams.d.ts +51 -0
  87. package/types/releaseNotes/index.d.ts +33 -0
  88. package/types/reports/reports.d.ts +50 -0
  89. package/types/resetPassword.d.ts +3 -0
  90. package/types/responseErrors/HttpStatusCodes.d.ts +391 -0
  91. package/types/responseErrors/adjustmentRequestResponseErrors.d.ts +1 -0
  92. package/types/responseErrors/adminPaymentErrors.d.ts +6 -0
  93. package/types/responseErrors/calculatorResponseErrors.d.ts +35 -0
  94. package/types/responseErrors/contractResponseErrors.d.ts +23 -0
  95. package/types/responseErrors/fileImportErrors.d.ts +5 -0
  96. package/types/responseErrors/genericResponseTypes.d.ts +33 -0
  97. package/types/responseErrors/importErrors.d.ts +7 -0
  98. package/types/responseErrors/index.d.ts +30 -0
  99. package/types/responseErrors/invalidProductTypeErrors.d.ts +1 -0
  100. package/types/responseErrors/invalidProductTypeErrors.js +3 -0
  101. package/types/responseErrors/invalidProductTypeErrors.js.map +1 -0
  102. package/types/responseErrors/invalidProductTypeErrors.ts +1 -0
  103. package/types/responseErrors/invoiceErrors.d.ts +1 -0
  104. package/types/responseErrors/invoiceErrors.js +3 -0
  105. package/types/responseErrors/invoiceErrors.js.map +1 -0
  106. package/types/responseErrors/invoiceErrors.ts +1 -0
  107. package/types/responseErrors/passwordResponseErrors.d.ts +6 -0
  108. package/types/responseErrors/paymentResponseErrors.d.ts +5 -0
  109. package/types/responseErrors/rateLimitErrors.d.ts +1 -0
  110. package/types/responseErrors/userAndCustomerErrors.d.ts +1 -0
  111. package/types/responseErrors/userAndCustomerErrors.js +3 -0
  112. package/types/responseErrors/userAndCustomerErrors.js.map +1 -0
  113. package/types/responseErrors/userAndCustomerErrors.ts +11 -0
  114. package/types/responseErrors/vatLookupResponseErrors.d.ts +3 -0
  115. package/types/responseErrors/vehcileBlacklistErrors.d.ts +3 -0
  116. package/types/responseErrors/vehicleBlacklistErrors.d.ts +2 -0
  117. package/types/searchQuery.d.ts +21 -0
  118. package/types/stripe/stripe.d.ts +49 -0
  119. package/types/stripe/stripeAddress.d.ts +10 -0
  120. package/types/stripe/stripeDateOfBirth.d.ts +5 -0
  121. package/types/stripe/stripeDeclineChargeOn.d.ts +4 -0
  122. package/types/stripe/stripeExternalAccount.d.ts +19 -0
  123. package/types/stripe/stripeLegalEntity.d.ts +16 -0
  124. package/types/stripe/stripeOwner.d.ts +9 -0
  125. package/types/stripe/stripeVerification.d.ts +33 -0
  126. package/types/termsOfService.d.ts +11 -0
  127. package/types/translation.d.ts +3 -0
  128. package/types/translations/index.d.ts +38 -0
  129. package/types/user.d.ts +10 -0
  130. package/types/userConfiguration/tableUserConfiguration.d.ts +15 -0
  131. package/types/userConfiguration/userConfiguration.d.ts +5 -0
  132. package/types/v4PricingTool/dealerAndProvider/index.d.ts +44 -0
  133. package/types/v4PricingTool/dealerAndProvider/index.js +3 -0
  134. package/types/v4PricingTool/dealerAndProvider/index.js.map +1 -0
  135. package/types/v4PricingTool/dealerAndProvider/index.ts +66 -0
  136. package/types/v4PricingTool/index.d.ts +2 -0
  137. package/types/v4PricingTool/productsAndContracts/index.d.ts +2 -0
  138. package/types/v4PricingTool/productsAndContracts/index.js +7 -0
  139. package/types/v4PricingTool/productsAndContracts/index.js.map +1 -0
  140. package/types/v4PricingTool/productsAndContracts/index.ts +10 -0
  141. package/types/vatLookup.d.ts +14 -0
  142. package/types/vehicle.d.ts +160 -0
  143. package/types/vehicleContracts.d.ts +15 -0
  144. package/types/vehiclePartial.d.ts +24 -0
  145. package/types/warranty.d.ts +19 -0
  146. package/types/webcalc/auth.d.ts +48 -0
  147. package/types/webcalc/index.d.ts +2 -0
  148. package/types/webcalc/offerRequest.d.ts +18 -0
  149. package/types/workshopOperation.d.ts +18 -0
@@ -0,0 +1,94 @@
1
+ import { IFileItem } from './admin/contract/contractDetails'
2
+ import { IContractOptionResponse } from './contractOption'
3
+ import { PriceSpecification } from './priceSpecification'
4
+ import { ITermsOfServiceRequest, ITermsOfServiceResponse } from './termsOfService'
5
+ import { TV4PTPaymentType, TV4PTProductType } from './v4PricingTool'
6
+
7
+ export type PriceSource = 'Pricelist' | 'Autoexperten' | 'V4PricingTool'
8
+
9
+ export interface IContractTemplateCloneRequest {
10
+ templateIds: number[]
11
+ providerId: number
12
+ includePrices: boolean
13
+ }
14
+
15
+ export interface IGenericContractTemplateRequest {
16
+ providerId: number
17
+ name: string
18
+ description: string
19
+ image: string
20
+ minAge: number
21
+ maxAge: number
22
+ defaultDuration: number
23
+ defaultMileage: number
24
+ minimumPaymentsCount: number | null
25
+ properties: IContractOptionResponse[]
26
+ options: IContractOptionResponse[]
27
+ calculationMethod: number
28
+ priceSource: PriceSource
29
+ termsOfService: ITermsOfServiceRequest
30
+ archived?: boolean
31
+ formattedDescription: string | null
32
+ weight: number
33
+ underdrivenCharge: PriceSpecification
34
+ overdrivenCharge: PriceSpecification
35
+ totalPriceFactorInTenthOfCents: number | null
36
+ disableServiceInfoFile: boolean | null
37
+ }
38
+
39
+ export interface IContractTemplateRequest extends IGenericContractTemplateRequest {
40
+ underdrivenCharge: PriceSpecification
41
+ overdrivenCharge: PriceSpecification
42
+ showOnWebcalc: boolean
43
+ }
44
+
45
+ export interface IProductContractTemplateRequest extends IGenericContractTemplateRequest {
46
+ defaultHours: number
47
+ defaultYearlyServices: number
48
+ }
49
+
50
+ export interface IGenericContractTemplateResponse {
51
+ id: number
52
+ name: string // Internal name (used in price files etc)
53
+ image: string
54
+ imageUrl?: string | null
55
+ description: string // External name (shown to customer)
56
+ properties: IContractOptionResponse[]
57
+ options: IContractOptionResponse[]
58
+ calculationMethod: number
59
+ priceSource: PriceSource
60
+ minAge: number
61
+ maxAge: number
62
+ defaultDuration: number | null
63
+ defaultMileage: number | null
64
+ minimumPaymentsCount: number | null
65
+ termsOfService: ITermsOfServiceResponse
66
+ providerId: number | null
67
+ v4ProductId?: number
68
+ formattedDescription: string | null
69
+ weight: number
70
+ maxEndAge?: number
71
+ serviceVariantName: string
72
+ serviceVariantId: string
73
+ isProductTemplate?: boolean
74
+ maxEndMileage?: number
75
+ totalPriceFactorInTenthOfCents: number | null
76
+ disableServiceInfoFile: boolean | null
77
+ }
78
+
79
+ export interface IContractTemplateResponse extends IGenericContractTemplateResponse {
80
+ underdrivenCharge: PriceSpecification
81
+ overdrivenCharge: PriceSpecification
82
+ showOnWebcalc: boolean
83
+ v4ProductType: null | TV4PTProductType
84
+ v4SupportedPaymentTypes: TV4PTPaymentType[]
85
+ // v4FilesForCustomerAtActivation: { name: string; url: string }[] // Files attached in activation email to end-customer.
86
+ filesContainerAlongContract: null | IFileItem[] // Optional extra files, except the TOS file.
87
+ }
88
+ export interface IProductContractTemplateResponse extends IGenericContractTemplateResponse {
89
+ defaultHours: number
90
+ defaultYearlyServices: number
91
+ maxEndHours?: number
92
+ maxEndServices?: number
93
+ maxEndMileage?: number
94
+ }
@@ -0,0 +1,32 @@
1
+ import { TCurrency } from '../types/currency'
2
+
3
+ /**
4
+ * @deprecated (Since 20222-08-31) Please use the own local config (cfgCountries or supportedCountries (in src/config)) file instead. (This is set individually on each repo: API, Admin and SuperAdmin for finer control.)
5
+ */
6
+ export type IsoCountryCodeSupported = 'DK' | 'SE' | 'FI'
7
+
8
+ /**
9
+ * ISO 3166-1 two letter (Alpha-2) codes for countries.
10
+ *
11
+ * @link https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
12
+ */
13
+ export type TIsoCountry = 'DK' | 'SE' | 'FI' | 'NO' | 'EE' | 'LV' | 'LT' | 'DE' | 'UA' | 'GB' | 'US'
14
+
15
+ export interface ICountryRequest {
16
+ isoName: string
17
+ }
18
+
19
+ export interface ICountryResponse extends ICountry {
20
+ currency: TCurrency
21
+ vatPct: number
22
+ locale?: string | undefined
23
+ languageName?: string // Eg. 'Swedish'.
24
+ languageNameLocal?: string // Eg. 'Svenska'.
25
+ }
26
+
27
+ export interface ICountry {
28
+ countryId?: number
29
+ isoName: string
30
+ countryName?: string // Country name in English, eg. 'Finland'.
31
+ countryNameLocal?: string // Country name in local language, eg. 'Suomi'.
32
+ }
@@ -0,0 +1 @@
1
+ export type TCurrency = 'DKK' | 'SEK' | 'EUR' | 'NOK'
@@ -0,0 +1,10 @@
1
+ export interface Customer {
2
+ id?: number
3
+ name: string
4
+ phone: string
5
+ address1: string
6
+ address2: string
7
+ zip: string
8
+ city: string
9
+ email: string
10
+ }
@@ -0,0 +1,31 @@
1
+ import { PriceSpecification } from './priceSpecification'
2
+
3
+ // ----------------------------------------------------------------------------
4
+ // These below are mainly used in VERSION 1 of ContractFlowDurationMileage ('ContractFlowDurationMileageVer1')
5
+ export interface IDurationOptionsOptionPrice {
6
+ contractId: number
7
+ price: PriceSpecification
8
+ }
9
+ export interface IDurationOptionsOption {
10
+ mileage: number
11
+ prices: IDurationOptionsOptionPrice[]
12
+ }
13
+ export interface DurationOptions {
14
+ options: IDurationOptionsOption[]
15
+ duration: number
16
+ }
17
+ // ----------------------------------------------------------------------------
18
+
19
+ // ----------------------------------------------------------------------------
20
+ // These below are mainly used in VERSION 2 of ContractFlowDurationMileage ('ContractFlowDurationMileageVer2')
21
+ export type TMileageDurationsMap = { [key: string]: IMileageDurations }
22
+
23
+ export interface IMileageDurations {
24
+ options: IMileageDurationItem[]
25
+ }
26
+
27
+ export interface IMileageDurationItem {
28
+ mileage: number // Eg. 60000. In km.
29
+ months: number[] // Eg. [24,36,48,60].
30
+ }
31
+ // ----------------------------------------------------------------------------
@@ -0,0 +1,19 @@
1
+ import { ResponseErrors } from './responseErrors'
2
+ import { VehiclePartial } from './vehiclePartial'
3
+
4
+ export interface ApiError {
5
+ message: ResponseErrors
6
+ errorCode?: number
7
+ debug?: object
8
+ params?: INoContractsAvailableErrorParams
9
+ messageReplacements?: { [key in string]: string }
10
+ }
11
+
12
+ export interface INoContractsAvailableErrorParams {
13
+ matchedData: VehiclePartial
14
+ lookupCountry: null | {
15
+ id: number | null
16
+ isoName: string
17
+ }
18
+ debug?: any
19
+ }
@@ -0,0 +1,9 @@
1
+ export interface FuelType {
2
+ name: string
3
+ id?: number
4
+ }
5
+
6
+ export interface IFuelTypeRequest {
7
+ mapToFuelType?: boolean
8
+ forProduct?: boolean | undefined
9
+ }
@@ -0,0 +1,18 @@
1
+ import { IContractResponse } from './contract/contract'
2
+ import { PriceSpecification } from './priceSpecification'
3
+ import { ITermsOfServiceResponse } from './termsOfService'
4
+
5
+ export interface IIncludedContractOption {
6
+ id: number
7
+ optionId: number
8
+ description: string
9
+ conditionText: string
10
+ weight: number
11
+ price: PriceSpecification
12
+ assoc: 'PROPERTY' | 'ADDITIONAL'
13
+ abbreviation: string
14
+ termsOfService?: ITermsOfServiceResponse | null
15
+ application_fee: number
16
+ calculation_method: number | null
17
+ warrantyId: number | null
18
+ }
@@ -0,0 +1,210 @@
1
+ export declare enum ContractState {
2
+ Draft = 1,
3
+ Offer = 100,
4
+ OfferExpired = 110,
5
+ OfferRevoked = 120,
6
+ OfferRejected = 130,
7
+ Active = 200,
8
+ ActivePrePaid = 210,
9
+ ActivePendingTermination = 250,
10
+ Suspended = 400,
11
+ CancelledSubscription = 450,
12
+ Terminated = 500,
13
+ Extended = 510,
14
+ Expired = 600,
15
+ Settled = 900,
16
+ SettledPrePaid = 950
17
+ }
18
+ export declare enum WarrantyState {
19
+ Active = 200,
20
+ Rejected = 300,
21
+ Terminated = 500
22
+ }
23
+ export declare enum DbType {
24
+ int = 1,
25
+ text = 2,
26
+ date = 3,
27
+ monetary = 4,
28
+ mileage = 5
29
+ }
30
+ export declare enum AggregateType {
31
+ sum = 1,
32
+ concat = 2,
33
+ count = 3
34
+ }
35
+ export declare enum FormattingLocale {
36
+ 'sv-SE' = 0,
37
+ 'uk-UA' = 1,
38
+ 'da-DK' = 2,
39
+ 'en-GB' = 3,
40
+ 'fi-FI' = 4,
41
+ 'en-US' = 5
42
+ }
43
+ export declare enum ContractActionType {
44
+ createInV4AndActivate = 90,
45
+ create = 100,
46
+ sendDraft = 120,
47
+ buyNow = 130,
48
+ failedBuyNow = 135,
49
+ createOffer = 140,
50
+ sendOfferReminderMail = 150,
51
+ softBounce = 1510,
52
+ hardBounce = 1512,
53
+ dnsError = 1513,
54
+ sendContractTerminationMail = 151,
55
+ sendOfferReminderMail2 = 152,
56
+ sendContractActivationMail = 153,
57
+ sendOfferReminderMail3 = 154,
58
+ sendContractSuspendedMail = 155,
59
+ sendContractOfferCreatedMail = 156,
60
+ resendContractOfferMail = 1565,
61
+ sendOfferToOneselfMail = 1566,
62
+ sendContractReactivationMail = 157,
63
+ sendContractAdjustmentMail = 158,
64
+ sendContractSettlementMail = 159,
65
+ rejectOffer = 160,
66
+ acceptOffer = 180,
67
+ approveOffer = 200,
68
+ activate = 300,
69
+ sendMirrorAndActivateInV4 = 1300,
70
+ expire = 400,
71
+ expireContract = 410,
72
+ sendContractExpiredMail = 411,
73
+ changeVehicleData = 420,
74
+ changeCustomerData = 440,
75
+ changePaymentData = 460,
76
+ modify = 500,
77
+ createPendingTermination = 550,
78
+ cancelPendingTermination = 560,
79
+ suspend = 600,
80
+ cancelSubscription = 650,
81
+ successfulInvoicePayment = 690,
82
+ reactivate = 700,
83
+ sendAndReactivateInV4 = 1700,
84
+ extending = 710,
85
+ pauseSubscription = 720,
86
+ terminate = 800,
87
+ sendAndInactivateInV4 = 1800,
88
+ registerCashPayment = 810,
89
+ registerCashPayout = 820,
90
+ registerProviderPayment = 830,
91
+ createStripeInvoice = 860,
92
+ registerPaidInvoice = 870,
93
+ settle = 900,
94
+ archive = 1000,
95
+ other = 9999
96
+ }
97
+ export declare enum PaymentFailureReason {
98
+ expiredCard = 10,
99
+ authenticationRequired = 20,
100
+ insufficientFunds = 30,
101
+ withdrawalCountLimitExceeded = 40,
102
+ invalidAmount = 50,
103
+ fraudLostStolen = 60,
104
+ attemptPaymentAgain = 70,
105
+ incorrectData = 80,
106
+ contactCardIssuer = 90,
107
+ unknownReason = 100
108
+ }
109
+ export declare enum ResponseWarnings {
110
+ GenericWarning = 499
111
+ }
112
+ export declare type FileUploadToStorageType = 'General-Storage' | 'Logo-Banner-Storage' | 'Logo-Square-Storage';
113
+ export declare enum OutageSeverityLevel {
114
+ Low = 1,
115
+ Medium = 2,
116
+ High = 3
117
+ }
118
+ export declare enum SettlementPaymentType {
119
+ cashPayout = 1,
120
+ cashPayment = 2,
121
+ stripePayment = 3,
122
+ providerPayment = 4
123
+ }
124
+ export declare enum ReleaseSystem {
125
+ Admin = 1,
126
+ Superadmin = 2,
127
+ Api = 3,
128
+ WebShop = 4
129
+ }
130
+ export declare enum ReleaseTag {
131
+ ADDED = 1,
132
+ FIXED = 2,
133
+ NEW = 3,
134
+ REMOVED = 4,
135
+ UPDATED = 5,
136
+ IMPROVED = 6
137
+ }
138
+ export declare enum AccessKeyPermission {
139
+ Read = 1,
140
+ Write = 2,
141
+ ReadWrite = 3
142
+ }
143
+ export declare enum AccessKeyService {
144
+ WorkshopOperation = 1,
145
+ Report = 2
146
+ }
147
+ export * from './address';
148
+ export * from './admin';
149
+ export * from './app';
150
+ export * from './brand';
151
+ export * from './chart';
152
+ export * from './contactPerson';
153
+ export * from './contract/contract';
154
+ export * from './contract/contractActivation';
155
+ export * from './contract/contractFilter';
156
+ export * from './contract/contractList';
157
+ export * from './contract/contractOffer';
158
+ export * from './contract/contractQuery';
159
+ export * from './contractAction';
160
+ export * from './contractOption';
161
+ export * from './contractProvider';
162
+ export * from './contractTemplate';
163
+ export * from './country';
164
+ export * from './currency';
165
+ export * from './customer';
166
+ export * from './durationOptions';
167
+ export * from './errorResponse';
168
+ export * from './fuelType';
169
+ export * from './includedContractOption';
170
+ export * from './invoice';
171
+ export * from './locale';
172
+ export * from './localizationData';
173
+ export * from './model';
174
+ export * from './outage';
175
+ export * from './payment';
176
+ export * from './priceCalculation';
177
+ export * from './priceSpecification';
178
+ export * from './product';
179
+ export * from './providerBranding';
180
+ export * from './queryParams';
181
+ export * from './reports/reports';
182
+ export * from './resetPassword';
183
+ export * from './responseErrors/calculatorResponseErrors';
184
+ export * from './responseErrors/contractResponseErrors';
185
+ export * from './responseErrors/genericResponseTypes';
186
+ export * from './responseErrors/index';
187
+ export * from './stripe/stripe';
188
+ export * from './stripe/stripeAddress';
189
+ export * from './stripe/stripeDateOfBirth';
190
+ export * from './stripe/stripeDeclineChargeOn';
191
+ export * from './stripe/stripeExternalAccount';
192
+ export * from './stripe/stripeLegalEntity';
193
+ export * from './stripe/stripeOwner';
194
+ export * from './stripe/stripeVerification';
195
+ export * from './termsOfService';
196
+ export * from './translation';
197
+ export * from './user';
198
+ export * from './userConfiguration/tableUserConfiguration';
199
+ export * from './userConfiguration/userConfiguration';
200
+ export * from './vatLookup';
201
+ export * from './vehicle';
202
+ export * from './vehiclePartial';
203
+ export * from './vehicleContracts';
204
+ export * from './webcalc';
205
+ export * from './workshopOperation';
206
+ export * from './releaseNotes';
207
+ export * from './paymentFailureReason';
208
+ export * from './translations';
209
+ export * from './v4PricingTool';
210
+ export * from './accessKey';
package/types/index.js ADDED
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ContractState;
4
+ (function (ContractState) {
5
+ ContractState[ContractState["Draft"] = 1] = "Draft";
6
+ ContractState[ContractState["Offer"] = 100] = "Offer";
7
+ ContractState[ContractState["OfferExpired"] = 110] = "OfferExpired";
8
+ ContractState[ContractState["OfferRevoked"] = 120] = "OfferRevoked";
9
+ ContractState[ContractState["OfferRejected"] = 130] = "OfferRejected";
10
+ ContractState[ContractState["Active"] = 200] = "Active";
11
+ ContractState[ContractState["ActivePrePaid"] = 210] = "ActivePrePaid";
12
+ ContractState[ContractState["ActivePendingTermination"] = 250] = "ActivePendingTermination";
13
+ ContractState[ContractState["Suspended"] = 400] = "Suspended";
14
+ ContractState[ContractState["CancelledSubscription"] = 450] = "CancelledSubscription";
15
+ ContractState[ContractState["Terminated"] = 500] = "Terminated";
16
+ ContractState[ContractState["Extended"] = 510] = "Extended";
17
+ ContractState[ContractState["Expired"] = 600] = "Expired";
18
+ ContractState[ContractState["Settled"] = 900] = "Settled";
19
+ ContractState[ContractState["SettledPrePaid"] = 950] = "SettledPrePaid";
20
+ })(ContractState = exports.ContractState || (exports.ContractState = {}));
21
+ var WarrantyState;
22
+ (function (WarrantyState) {
23
+ WarrantyState[WarrantyState["Active"] = 200] = "Active";
24
+ WarrantyState[WarrantyState["Rejected"] = 300] = "Rejected";
25
+ WarrantyState[WarrantyState["Terminated"] = 500] = "Terminated";
26
+ })(WarrantyState = exports.WarrantyState || (exports.WarrantyState = {}));
27
+ var DbType;
28
+ (function (DbType) {
29
+ DbType[DbType["int"] = 1] = "int";
30
+ DbType[DbType["text"] = 2] = "text";
31
+ DbType[DbType["date"] = 3] = "date";
32
+ DbType[DbType["monetary"] = 4] = "monetary";
33
+ DbType[DbType["mileage"] = 5] = "mileage";
34
+ })(DbType = exports.DbType || (exports.DbType = {}));
35
+ var AggregateType;
36
+ (function (AggregateType) {
37
+ AggregateType[AggregateType["sum"] = 1] = "sum";
38
+ AggregateType[AggregateType["concat"] = 2] = "concat";
39
+ AggregateType[AggregateType["count"] = 3] = "count";
40
+ })(AggregateType = exports.AggregateType || (exports.AggregateType = {}));
41
+ var FormattingLocale;
42
+ (function (FormattingLocale) {
43
+ FormattingLocale[FormattingLocale["sv-SE"] = 0] = "sv-SE";
44
+ FormattingLocale[FormattingLocale["uk-UA"] = 1] = "uk-UA";
45
+ FormattingLocale[FormattingLocale["da-DK"] = 2] = "da-DK";
46
+ FormattingLocale[FormattingLocale["en-GB"] = 3] = "en-GB";
47
+ FormattingLocale[FormattingLocale["fi-FI"] = 4] = "fi-FI";
48
+ FormattingLocale[FormattingLocale["en-US"] = 5] = "en-US";
49
+ })(FormattingLocale = exports.FormattingLocale || (exports.FormattingLocale = {}));
50
+ var ContractActionType;
51
+ (function (ContractActionType) {
52
+ ContractActionType[ContractActionType["createInV4AndActivate"] = 90] = "createInV4AndActivate";
53
+ ContractActionType[ContractActionType["create"] = 100] = "create";
54
+ ContractActionType[ContractActionType["sendDraft"] = 120] = "sendDraft";
55
+ ContractActionType[ContractActionType["buyNow"] = 130] = "buyNow";
56
+ ContractActionType[ContractActionType["failedBuyNow"] = 135] = "failedBuyNow";
57
+ ContractActionType[ContractActionType["createOffer"] = 140] = "createOffer";
58
+ ContractActionType[ContractActionType["sendOfferReminderMail"] = 150] = "sendOfferReminderMail";
59
+ ContractActionType[ContractActionType["softBounce"] = 1510] = "softBounce";
60
+ ContractActionType[ContractActionType["hardBounce"] = 1512] = "hardBounce";
61
+ ContractActionType[ContractActionType["dnsError"] = 1513] = "dnsError";
62
+ ContractActionType[ContractActionType["sendContractTerminationMail"] = 151] = "sendContractTerminationMail";
63
+ ContractActionType[ContractActionType["sendOfferReminderMail2"] = 152] = "sendOfferReminderMail2";
64
+ ContractActionType[ContractActionType["sendContractActivationMail"] = 153] = "sendContractActivationMail";
65
+ ContractActionType[ContractActionType["sendOfferReminderMail3"] = 154] = "sendOfferReminderMail3";
66
+ ContractActionType[ContractActionType["sendContractSuspendedMail"] = 155] = "sendContractSuspendedMail";
67
+ ContractActionType[ContractActionType["sendContractOfferCreatedMail"] = 156] = "sendContractOfferCreatedMail";
68
+ ContractActionType[ContractActionType["resendContractOfferMail"] = 1565] = "resendContractOfferMail";
69
+ ContractActionType[ContractActionType["sendOfferToOneselfMail"] = 1566] = "sendOfferToOneselfMail";
70
+ ContractActionType[ContractActionType["sendContractReactivationMail"] = 157] = "sendContractReactivationMail";
71
+ ContractActionType[ContractActionType["sendContractAdjustmentMail"] = 158] = "sendContractAdjustmentMail";
72
+ ContractActionType[ContractActionType["sendContractSettlementMail"] = 159] = "sendContractSettlementMail";
73
+ ContractActionType[ContractActionType["rejectOffer"] = 160] = "rejectOffer";
74
+ ContractActionType[ContractActionType["acceptOffer"] = 180] = "acceptOffer";
75
+ ContractActionType[ContractActionType["approveOffer"] = 200] = "approveOffer";
76
+ ContractActionType[ContractActionType["activate"] = 300] = "activate";
77
+ ContractActionType[ContractActionType["sendMirrorAndActivateInV4"] = 1300] = "sendMirrorAndActivateInV4";
78
+ ContractActionType[ContractActionType["expire"] = 400] = "expire";
79
+ ContractActionType[ContractActionType["expireContract"] = 410] = "expireContract";
80
+ ContractActionType[ContractActionType["sendContractExpiredMail"] = 411] = "sendContractExpiredMail";
81
+ ContractActionType[ContractActionType["changeVehicleData"] = 420] = "changeVehicleData";
82
+ ContractActionType[ContractActionType["changeCustomerData"] = 440] = "changeCustomerData";
83
+ ContractActionType[ContractActionType["changePaymentData"] = 460] = "changePaymentData";
84
+ ContractActionType[ContractActionType["modify"] = 500] = "modify";
85
+ ContractActionType[ContractActionType["createPendingTermination"] = 550] = "createPendingTermination";
86
+ ContractActionType[ContractActionType["cancelPendingTermination"] = 560] = "cancelPendingTermination";
87
+ ContractActionType[ContractActionType["suspend"] = 600] = "suspend";
88
+ ContractActionType[ContractActionType["cancelSubscription"] = 650] = "cancelSubscription";
89
+ ContractActionType[ContractActionType["successfulInvoicePayment"] = 690] = "successfulInvoicePayment";
90
+ ContractActionType[ContractActionType["reactivate"] = 700] = "reactivate";
91
+ ContractActionType[ContractActionType["sendAndReactivateInV4"] = 1700] = "sendAndReactivateInV4";
92
+ ContractActionType[ContractActionType["extending"] = 710] = "extending";
93
+ ContractActionType[ContractActionType["pauseSubscription"] = 720] = "pauseSubscription";
94
+ ContractActionType[ContractActionType["terminate"] = 800] = "terminate";
95
+ ContractActionType[ContractActionType["sendAndInactivateInV4"] = 1800] = "sendAndInactivateInV4";
96
+ ContractActionType[ContractActionType["registerCashPayment"] = 810] = "registerCashPayment";
97
+ ContractActionType[ContractActionType["registerCashPayout"] = 820] = "registerCashPayout";
98
+ ContractActionType[ContractActionType["registerProviderPayment"] = 830] = "registerProviderPayment";
99
+ ContractActionType[ContractActionType["createStripeInvoice"] = 860] = "createStripeInvoice";
100
+ ContractActionType[ContractActionType["registerPaidInvoice"] = 870] = "registerPaidInvoice";
101
+ ContractActionType[ContractActionType["settle"] = 900] = "settle";
102
+ ContractActionType[ContractActionType["archive"] = 1000] = "archive";
103
+ ContractActionType[ContractActionType["other"] = 9999] = "other";
104
+ })(ContractActionType = exports.ContractActionType || (exports.ContractActionType = {}));
105
+ var PaymentFailureReason;
106
+ (function (PaymentFailureReason) {
107
+ PaymentFailureReason[PaymentFailureReason["expiredCard"] = 10] = "expiredCard";
108
+ PaymentFailureReason[PaymentFailureReason["authenticationRequired"] = 20] = "authenticationRequired";
109
+ PaymentFailureReason[PaymentFailureReason["insufficientFunds"] = 30] = "insufficientFunds";
110
+ PaymentFailureReason[PaymentFailureReason["withdrawalCountLimitExceeded"] = 40] = "withdrawalCountLimitExceeded";
111
+ PaymentFailureReason[PaymentFailureReason["invalidAmount"] = 50] = "invalidAmount";
112
+ // If the amount appears to be correct, the customer needs to check with their card issuer.
113
+ PaymentFailureReason[PaymentFailureReason["fraudLostStolen"] = 60] = "fraudLostStolen";
114
+ // The card is reported lost or stolen. The specific reason for the decline shouldn't be reported to the customer.
115
+ // Instead, it needs to be presented as a generic_decline.
116
+ PaymentFailureReason[PaymentFailureReason["attemptPaymentAgain"] = 70] = "attemptPaymentAgain";
117
+ // Recommended you not retry charges more than four times.
118
+ PaymentFailureReason[PaymentFailureReason["incorrectData"] = 80] = "incorrectData";
119
+ PaymentFailureReason[PaymentFailureReason["contactCardIssuer"] = 90] = "contactCardIssuer";
120
+ PaymentFailureReason[PaymentFailureReason["unknownReason"] = 100] = "unknownReason";
121
+ })(PaymentFailureReason = exports.PaymentFailureReason || (exports.PaymentFailureReason = {}));
122
+ var ResponseWarnings;
123
+ (function (ResponseWarnings) {
124
+ ResponseWarnings[ResponseWarnings["GenericWarning"] = 499] = "GenericWarning";
125
+ })(ResponseWarnings = exports.ResponseWarnings || (exports.ResponseWarnings = {}));
126
+ var OutageSeverityLevel;
127
+ (function (OutageSeverityLevel) {
128
+ OutageSeverityLevel[OutageSeverityLevel["Low"] = 1] = "Low";
129
+ OutageSeverityLevel[OutageSeverityLevel["Medium"] = 2] = "Medium";
130
+ OutageSeverityLevel[OutageSeverityLevel["High"] = 3] = "High";
131
+ })(OutageSeverityLevel = exports.OutageSeverityLevel || (exports.OutageSeverityLevel = {}));
132
+ var SettlementPaymentType;
133
+ (function (SettlementPaymentType) {
134
+ SettlementPaymentType[SettlementPaymentType["cashPayout"] = 1] = "cashPayout";
135
+ SettlementPaymentType[SettlementPaymentType["cashPayment"] = 2] = "cashPayment";
136
+ SettlementPaymentType[SettlementPaymentType["stripePayment"] = 3] = "stripePayment";
137
+ SettlementPaymentType[SettlementPaymentType["providerPayment"] = 4] = "providerPayment";
138
+ })(SettlementPaymentType = exports.SettlementPaymentType || (exports.SettlementPaymentType = {}));
139
+ var ReleaseSystem;
140
+ (function (ReleaseSystem) {
141
+ ReleaseSystem[ReleaseSystem["Admin"] = 1] = "Admin";
142
+ ReleaseSystem[ReleaseSystem["Superadmin"] = 2] = "Superadmin";
143
+ ReleaseSystem[ReleaseSystem["Api"] = 3] = "Api";
144
+ ReleaseSystem[ReleaseSystem["WebShop"] = 4] = "WebShop";
145
+ })(ReleaseSystem = exports.ReleaseSystem || (exports.ReleaseSystem = {}));
146
+ var ReleaseTag;
147
+ (function (ReleaseTag) {
148
+ ReleaseTag[ReleaseTag["ADDED"] = 1] = "ADDED";
149
+ ReleaseTag[ReleaseTag["FIXED"] = 2] = "FIXED";
150
+ ReleaseTag[ReleaseTag["NEW"] = 3] = "NEW";
151
+ ReleaseTag[ReleaseTag["REMOVED"] = 4] = "REMOVED";
152
+ ReleaseTag[ReleaseTag["UPDATED"] = 5] = "UPDATED";
153
+ ReleaseTag[ReleaseTag["IMPROVED"] = 6] = "IMPROVED";
154
+ })(ReleaseTag = exports.ReleaseTag || (exports.ReleaseTag = {}));
155
+ var AccessKeyPermission;
156
+ (function (AccessKeyPermission) {
157
+ AccessKeyPermission[AccessKeyPermission["Read"] = 1] = "Read";
158
+ AccessKeyPermission[AccessKeyPermission["Write"] = 2] = "Write";
159
+ AccessKeyPermission[AccessKeyPermission["ReadWrite"] = 3] = "ReadWrite";
160
+ })(AccessKeyPermission = exports.AccessKeyPermission || (exports.AccessKeyPermission = {}));
161
+ var AccessKeyService;
162
+ (function (AccessKeyService) {
163
+ AccessKeyService[AccessKeyService["WorkshopOperation"] = 1] = "WorkshopOperation";
164
+ AccessKeyService[AccessKeyService["Report"] = 2] = "Report";
165
+ })(AccessKeyService = exports.AccessKeyService || (exports.AccessKeyService = {}));
166
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,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