@bisondesk/core-sdk 1.0.23-B → 1.0.23

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 (225) hide show
  1. package/lib/constants.d.ts +0 -77
  2. package/lib/constants.d.ts.map +1 -1
  3. package/lib/constants.js +1 -924
  4. package/lib/constants.js.map +1 -1
  5. package/lib/types/crm.d.ts +30 -103
  6. package/lib/types/crm.d.ts.map +1 -1
  7. package/lib/types/crm.js +0 -16
  8. package/lib/types/crm.js.map +1 -1
  9. package/lib/types/definitions.d.ts +13 -15
  10. package/lib/types/definitions.d.ts.map +1 -1
  11. package/lib/types/fields.d.ts +25 -26
  12. package/lib/types/fields.d.ts.map +1 -1
  13. package/lib/types/fields.js +0 -4
  14. package/lib/types/fields.js.map +1 -1
  15. package/lib/types/interests.d.ts +25 -0
  16. package/lib/types/interests.d.ts.map +1 -0
  17. package/lib/types/{settings.js → interests.js} +1 -1
  18. package/lib/types/interests.js.map +1 -0
  19. package/lib/types/picklists.d.ts +4 -15
  20. package/lib/types/picklists.d.ts.map +1 -1
  21. package/lib/types/search.d.ts +4 -26
  22. package/lib/types/search.d.ts.map +1 -1
  23. package/lib/types/search.js.map +1 -1
  24. package/lib/types/storage.d.ts +11 -1
  25. package/lib/types/storage.d.ts.map +1 -1
  26. package/lib/types/storage.js +0 -15
  27. package/lib/types/storage.js.map +1 -1
  28. package/lib/types/tenants.d.ts +9 -32
  29. package/lib/types/tenants.d.ts.map +1 -1
  30. package/lib/types/tenants.js +0 -11
  31. package/lib/types/tenants.js.map +1 -1
  32. package/lib/types/users.d.ts +3 -11
  33. package/lib/types/users.d.ts.map +1 -1
  34. package/lib/types/utils.d.ts +0 -20
  35. package/lib/types/utils.d.ts.map +1 -1
  36. package/lib/types/utils.js +0 -6
  37. package/lib/types/utils.js.map +1 -1
  38. package/lib/types/vehicles.d.ts +92 -406
  39. package/lib/types/vehicles.d.ts.map +1 -1
  40. package/lib/types/vehicles.js +1 -54
  41. package/lib/types/vehicles.js.map +1 -1
  42. package/package.json +6 -8
  43. package/src/constants.ts +1 -930
  44. package/src/types/crm.ts +30 -118
  45. package/src/types/definitions.ts +12 -19
  46. package/src/types/fields.ts +31 -72
  47. package/src/types/interests.ts +24 -0
  48. package/src/types/picklists.ts +7 -26
  49. package/src/types/search.ts +4 -34
  50. package/src/types/storage.ts +12 -1
  51. package/src/types/tenants.ts +11 -37
  52. package/src/types/users.ts +3 -17
  53. package/src/types/utils.ts +0 -25
  54. package/src/types/vehicles.ts +93 -461
  55. package/tsconfig.tsbuildinfo +2995 -1
  56. package/lib/apis/crm.d.ts +0 -39
  57. package/lib/apis/crm.d.ts.map +0 -1
  58. package/lib/apis/crm.js +0 -201
  59. package/lib/apis/crm.js.map +0 -1
  60. package/lib/apis/documents.d.ts +0 -4
  61. package/lib/apis/documents.d.ts.map +0 -1
  62. package/lib/apis/documents.js +0 -47
  63. package/lib/apis/documents.js.map +0 -1
  64. package/lib/apis/internet-vehicles.d.ts +0 -3
  65. package/lib/apis/internet-vehicles.d.ts.map +0 -1
  66. package/lib/apis/internet-vehicles.js +0 -27
  67. package/lib/apis/internet-vehicles.js.map +0 -1
  68. package/lib/apis/leasing-administration.d.ts +0 -8
  69. package/lib/apis/leasing-administration.d.ts.map +0 -1
  70. package/lib/apis/leasing-administration.js +0 -49
  71. package/lib/apis/leasing-administration.js.map +0 -1
  72. package/lib/apis/leasing.d.ts +0 -19
  73. package/lib/apis/leasing.d.ts.map +0 -1
  74. package/lib/apis/leasing.js +0 -168
  75. package/lib/apis/leasing.js.map +0 -1
  76. package/lib/apis/opportunities.d.ts +0 -9
  77. package/lib/apis/opportunities.d.ts.map +0 -1
  78. package/lib/apis/opportunities.js +0 -94
  79. package/lib/apis/opportunities.js.map +0 -1
  80. package/lib/apis/picklists.d.ts +0 -5
  81. package/lib/apis/picklists.d.ts.map +0 -1
  82. package/lib/apis/picklists.js +0 -44
  83. package/lib/apis/picklists.js.map +0 -1
  84. package/lib/apis/tenants.d.ts +0 -7
  85. package/lib/apis/tenants.d.ts.map +0 -1
  86. package/lib/apis/tenants.js +0 -80
  87. package/lib/apis/tenants.js.map +0 -1
  88. package/lib/apis/users.d.ts +0 -3
  89. package/lib/apis/users.d.ts.map +0 -1
  90. package/lib/apis/users.js +0 -26
  91. package/lib/apis/users.js.map +0 -1
  92. package/lib/apis/utils.d.ts +0 -9
  93. package/lib/apis/utils.d.ts.map +0 -1
  94. package/lib/apis/utils.js +0 -23
  95. package/lib/apis/utils.js.map +0 -1
  96. package/lib/apis/vehicles.d.ts +0 -18
  97. package/lib/apis/vehicles.d.ts.map +0 -1
  98. package/lib/apis/vehicles.js +0 -159
  99. package/lib/apis/vehicles.js.map +0 -1
  100. package/lib/ddb-entities.d.ts +0 -2
  101. package/lib/ddb-entities.d.ts.map +0 -1
  102. package/lib/ddb-entities.js +0 -5
  103. package/lib/ddb-entities.js.map +0 -1
  104. package/lib/types/activities.d.ts +0 -38
  105. package/lib/types/activities.d.ts.map +0 -1
  106. package/lib/types/activities.js +0 -16
  107. package/lib/types/activities.js.map +0 -1
  108. package/lib/types/documents.d.ts +0 -105
  109. package/lib/types/documents.d.ts.map +0 -1
  110. package/lib/types/documents.js +0 -3
  111. package/lib/types/documents.js.map +0 -1
  112. package/lib/types/internet-vehicles.d.ts +0 -64
  113. package/lib/types/internet-vehicles.d.ts.map +0 -1
  114. package/lib/types/internet-vehicles.js +0 -3
  115. package/lib/types/internet-vehicles.js.map +0 -1
  116. package/lib/types/leads.d.ts +0 -134
  117. package/lib/types/leads.d.ts.map +0 -1
  118. package/lib/types/leads.js +0 -3
  119. package/lib/types/leads.js.map +0 -1
  120. package/lib/types/leasing-administration.d.ts +0 -107
  121. package/lib/types/leasing-administration.d.ts.map +0 -1
  122. package/lib/types/leasing-administration.js +0 -3
  123. package/lib/types/leasing-administration.js.map +0 -1
  124. package/lib/types/leasing-search.d.ts +0 -22
  125. package/lib/types/leasing-search.d.ts.map +0 -1
  126. package/lib/types/leasing-search.js +0 -3
  127. package/lib/types/leasing-search.js.map +0 -1
  128. package/lib/types/leasing-settings.d.ts +0 -113
  129. package/lib/types/leasing-settings.d.ts.map +0 -1
  130. package/lib/types/leasing-settings.js +0 -10
  131. package/lib/types/leasing-settings.js.map +0 -1
  132. package/lib/types/leasing.d.ts +0 -322
  133. package/lib/types/leasing.d.ts.map +0 -1
  134. package/lib/types/leasing.js +0 -24
  135. package/lib/types/leasing.js.map +0 -1
  136. package/lib/types/machines.d.ts +0 -38
  137. package/lib/types/machines.d.ts.map +0 -1
  138. package/lib/types/machines.js +0 -3
  139. package/lib/types/machines.js.map +0 -1
  140. package/lib/types/opportunities.d.ts +0 -448
  141. package/lib/types/opportunities.d.ts.map +0 -1
  142. package/lib/types/opportunities.js +0 -68
  143. package/lib/types/opportunities.js.map +0 -1
  144. package/lib/types/payments.d.ts +0 -38
  145. package/lib/types/payments.d.ts.map +0 -1
  146. package/lib/types/payments.js +0 -9
  147. package/lib/types/payments.js.map +0 -1
  148. package/lib/types/quotes.d.ts +0 -173
  149. package/lib/types/quotes.d.ts.map +0 -1
  150. package/lib/types/quotes.js +0 -26
  151. package/lib/types/quotes.js.map +0 -1
  152. package/lib/types/recently-viewed.d.ts +0 -33
  153. package/lib/types/recently-viewed.d.ts.map +0 -1
  154. package/lib/types/recently-viewed.js +0 -3
  155. package/lib/types/recently-viewed.js.map +0 -1
  156. package/lib/types/saved-filters.d.ts +0 -20
  157. package/lib/types/saved-filters.d.ts.map +0 -1
  158. package/lib/types/saved-filters.js +0 -3
  159. package/lib/types/saved-filters.js.map +0 -1
  160. package/lib/types/settings.d.ts +0 -50
  161. package/lib/types/settings.d.ts.map +0 -1
  162. package/lib/types/settings.js.map +0 -1
  163. package/lib/types/templates.d.ts +0 -35
  164. package/lib/types/templates.d.ts.map +0 -1
  165. package/lib/types/templates.js +0 -9
  166. package/lib/types/templates.js.map +0 -1
  167. package/lib/types/website.d.ts +0 -24
  168. package/lib/types/website.d.ts.map +0 -1
  169. package/lib/types/website.js +0 -3
  170. package/lib/types/website.js.map +0 -1
  171. package/lib/utils/forms.d.ts +0 -6
  172. package/lib/utils/forms.d.ts.map +0 -1
  173. package/lib/utils/forms.js +0 -33
  174. package/lib/utils/forms.js.map +0 -1
  175. package/lib/utils/leasing.d.ts +0 -3
  176. package/lib/utils/leasing.d.ts.map +0 -1
  177. package/lib/utils/leasing.js +0 -10
  178. package/lib/utils/leasing.js.map +0 -1
  179. package/lib/utils/slug.d.ts +0 -3
  180. package/lib/utils/slug.d.ts.map +0 -1
  181. package/lib/utils/slug.js +0 -23
  182. package/lib/utils/slug.js.map +0 -1
  183. package/lib/utils/tenants.d.ts +0 -4
  184. package/lib/utils/tenants.d.ts.map +0 -1
  185. package/lib/utils/tenants.js +0 -16
  186. package/lib/utils/tenants.js.map +0 -1
  187. package/lib/utils/vehicles.d.ts +0 -12
  188. package/lib/utils/vehicles.d.ts.map +0 -1
  189. package/lib/utils/vehicles.js +0 -73
  190. package/lib/utils/vehicles.js.map +0 -1
  191. package/src/apis/crm.ts +0 -302
  192. package/src/apis/documents.ts +0 -54
  193. package/src/apis/internet-vehicles.ts +0 -23
  194. package/src/apis/leasing-administration.ts +0 -70
  195. package/src/apis/leasing.ts +0 -257
  196. package/src/apis/opportunities.ts +0 -133
  197. package/src/apis/picklists.ts +0 -50
  198. package/src/apis/tenants.ts +0 -100
  199. package/src/apis/users.ts +0 -22
  200. package/src/apis/utils.ts +0 -23
  201. package/src/apis/vehicles.ts +0 -229
  202. package/src/ddb-entities.ts +0 -1
  203. package/src/environment.d.ts +0 -6
  204. package/src/types/activities.ts +0 -41
  205. package/src/types/documents.ts +0 -110
  206. package/src/types/internet-vehicles.ts +0 -67
  207. package/src/types/leads.ts +0 -144
  208. package/src/types/leasing-administration.ts +0 -131
  209. package/src/types/leasing-search.ts +0 -24
  210. package/src/types/leasing-settings.ts +0 -111
  211. package/src/types/leasing.ts +0 -360
  212. package/src/types/machines.ts +0 -40
  213. package/src/types/opportunities.ts +0 -496
  214. package/src/types/payments.ts +0 -40
  215. package/src/types/quotes.ts +0 -186
  216. package/src/types/recently-viewed.ts +0 -45
  217. package/src/types/saved-filters.ts +0 -21
  218. package/src/types/settings.ts +0 -51
  219. package/src/types/templates.ts +0 -40
  220. package/src/types/website.ts +0 -28
  221. package/src/utils/forms.ts +0 -32
  222. package/src/utils/leasing.ts +0 -14
  223. package/src/utils/slug.ts +0 -19
  224. package/src/utils/tenants.ts +0 -14
  225. package/src/utils/vehicles.ts +0 -92
@@ -1 +0,0 @@
1
- {"version":3,"file":"activities.d.ts","sourceRoot":"","sources":["../../src/types/activities.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,aAAK,YAAY,GAAG;IAClB,IAAI,EAAE,YAAY,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,WAAW,GAAG,YAAY,GAAG;IACvC,EAAE,CAAC,EAAE,SAAS,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,QAAQ,GAAG,YAAY,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivityActions = exports.ActivityType = void 0;
4
- var ActivityType;
5
- (function (ActivityType) {
6
- ActivityType["CALL"] = "call";
7
- ActivityType["MEETING"] = "meeting";
8
- ActivityType["EMAIL"] = "email";
9
- ActivityType["CHAT"] = "chat";
10
- })(ActivityType = exports.ActivityType || (exports.ActivityType = {}));
11
- var ActivityActions;
12
- (function (ActivityActions) {
13
- ActivityActions["DELETE"] = "delete";
14
- ActivityActions["EDIT"] = "edit";
15
- })(ActivityActions = exports.ActivityActions || (exports.ActivityActions = {}));
16
- //# sourceMappingURL=activities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"activities.js","sourceRoot":"","sources":["../../src/types/activities.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
@@ -1,105 +0,0 @@
1
- import { AttachmentValue, SearchPermissions } from '@bisondesk/commons-sdk/lib/types';
2
- import { Organization } from './crm';
3
- import { PublicSearchDefinition } from './definitions';
4
- export declare type FinanceLine = {
5
- associations: {
6
- others: {
7
- vehicleId: string;
8
- label: string;
9
- }[];
10
- sales: {
11
- id: string;
12
- vehicleId: string;
13
- label: string;
14
- }[];
15
- purchases: {
16
- id: string;
17
- vehicleId: string;
18
- label: string;
19
- }[];
20
- };
21
- description: string;
22
- id: string;
23
- lineCode: string;
24
- quantity: string;
25
- unitPriceExclusive: string;
26
- vatCode: string;
27
- vatCoefficient: string;
28
- };
29
- export declare type FinanceDocument = {
30
- id: string;
31
- branchId: string;
32
- type: 'Sale Finance' | 'Purchase Finance';
33
- subtype: 'Invoice' | 'Credit Note' | 'Proforma' | 'Purchase Order';
34
- reference: string;
35
- attachment: AttachmentValue;
36
- lines: FinanceLine[];
37
- notes?: string;
38
- createdAt: string;
39
- createdBy: string;
40
- issueDate: string;
41
- organizationSummary?: {
42
- id: string;
43
- code: string;
44
- name: string;
45
- country: string;
46
- vatNumber?: string;
47
- addressLine1?: string;
48
- addressLine2?: string;
49
- addressLine3?: string;
50
- postcode?: string;
51
- city?: string;
52
- email?: string;
53
- phone?: string;
54
- fax?: string;
55
- };
56
- };
57
- export declare type FinanceDocumentEvent = {
58
- id: string;
59
- actionAt: string;
60
- userId: string;
61
- tenantId: string;
62
- type: 'Sale Finance' | 'Purchase Finance';
63
- subtype: string;
64
- };
65
- export declare type FinanceBookingEvent = {
66
- id: string;
67
- branchId: string;
68
- actionAt: string;
69
- userId: string;
70
- tenantId: string;
71
- type: 'Sale Finance' | 'Purchase Finance';
72
- };
73
- export declare type FinanceBooking = {
74
- branchId: string;
75
- bookingNumber: string;
76
- documentId: string;
77
- booked: true;
78
- journal?: string;
79
- amount?: string;
80
- reportingPeriod?: number;
81
- reportingYear?: number;
82
- paid: boolean;
83
- createdAt: string;
84
- createdBy: string;
85
- modifiedAt: string;
86
- modifiedBy: string;
87
- };
88
- export declare type SearchDocumentVehicleRef = {
89
- id: string;
90
- stockNumber: string;
91
- administrativeNumber?: string;
92
- };
93
- export declare type SearchFinanceDocument = {
94
- org?: Organization;
95
- doc: FinanceDocument;
96
- booking?: FinanceBooking;
97
- vehicle?: SearchDocumentVehicleRef[];
98
- };
99
- export declare type InputSearchFinanceDocument = SearchFinanceDocument & {
100
- permissions: SearchPermissions;
101
- };
102
- export declare type DocsSearchDefinitions = {
103
- searchFinanceDoc: PublicSearchDefinition;
104
- };
105
- //# sourceMappingURL=documents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../src/types/documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,oBAAY,WAAW,GAAG;IACxB,YAAY,EAAE;QACZ,MAAM,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC/C,KAAK,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC1D,SAAS,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KAC/D,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,cAAc,GAAG,kBAAkB,CAAC;IAC1C,OAAO,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,GAAG,gBAAgB,CAAC;IACnE,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,eAAe,CAAC;IAC5B,KAAK,EAAE,WAAW,EAAE,CAAC;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CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,OAAO,CAAC;IAEd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB,GAAG,EAAE,eAAe,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACtC,CAAC;AAEF,oBAAY,0BAA0B,GAAG,qBAAqB,GAAG;IAC/D,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,gBAAgB,EAAE,sBAAsB,CAAC;CAC1C,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=documents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.js","sourceRoot":"","sources":["../../src/types/documents.ts"],"names":[],"mappings":""}
@@ -1,64 +0,0 @@
1
- import { LocationValue, PhoneNumberValue } from '@bisondesk/commons-sdk/lib/types';
2
- import { PublicSearchDefinition } from './definitions';
3
- import { AggregationRequest } from './search';
4
- import { Vehicle } from './vehicles';
5
- export declare type InternetVehicleInternalInfo = {
6
- createdAt: string;
7
- updatedAt: string;
8
- description: {
9
- title: string;
10
- remarks?: string;
11
- };
12
- };
13
- export declare type InternetVehiclePublicSearchDefinitions = {
14
- searchInternetVehicle: PublicSearchDefinition;
15
- };
16
- export declare type InternetVehicleSellerType = 'Dealer' | 'Private';
17
- export declare type PriceChange = {
18
- price: string | undefined;
19
- priceAt: string;
20
- };
21
- export declare type InternetVehiclePortal = {
22
- name: string;
23
- originalUrl: string;
24
- pingedAt: string;
25
- available: boolean;
26
- };
27
- export declare type InternetVehicleSeller = {
28
- id: string;
29
- name?: string;
30
- address: LocationValue;
31
- type?: InternetVehicleSellerType;
32
- gps?: {
33
- lat: number;
34
- lon: number;
35
- };
36
- phones: PhoneNumberValue[];
37
- };
38
- export declare type InternetVehicle = Vehicle<InternetVehicleInternalInfo>;
39
- export declare type SearchInternetVehicle = {
40
- vehicle: InternetVehicle;
41
- seller: InternetVehicleSeller;
42
- alternativeIds: string[];
43
- priceEvolution: PriceChange[];
44
- portal: InternetVehiclePortal;
45
- custom: {
46
- features: string[];
47
- };
48
- };
49
- export declare type AnalysisResponse = {
50
- [sellerId: string]: {
51
- x: string;
52
- y: number;
53
- }[];
54
- all: {
55
- x: string;
56
- y: number;
57
- }[];
58
- };
59
- export declare type AnalysisRequest = AggregationRequest & {
60
- sellerIds: string[];
61
- range: '1M' | '3M' | '6M' | '1y';
62
- granularity: '1w' | '1M';
63
- };
64
- //# sourceMappingURL=internet-vehicles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internet-vehicles.d.ts","sourceRoot":"","sources":["../../src/types/internet-vehicles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,oBAAY,2BAA2B,GAAG;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB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AAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/C,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACjC,CAAC;AAEF,oBAAY,eAAe,GAAG,kBAAkB,GAAG;IACjD,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;CAC1B,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=internet-vehicles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internet-vehicles.js","sourceRoot":"","sources":["../../src/types/internet-vehicles.ts"],"names":[],"mappings":""}
@@ -1,134 +0,0 @@
1
- import { PhoneNumberRawValue, PhoneNumberValue, SearchPermissions } from '@bisondesk/commons-sdk/lib/types';
2
- import { PublicSearchDefinition } from './definitions';
3
- import { ReferenceData } from './utils';
4
- import { SearchVehicle } from './vehicles';
5
- export declare type SearchLead = Lead;
6
- export declare type InputSearchLead = SearchLead & {
7
- permissions: SearchPermissions;
8
- };
9
- export declare type RankedSearchLead = SearchLead & {
10
- score: number;
11
- };
12
- export declare type LeadPublicSearchDefinitions = {
13
- searchLead: PublicSearchDefinition;
14
- };
15
- export declare type LeadEvent = {
16
- id: string;
17
- action: 'upsert' | 'delete';
18
- actionAt: string;
19
- userId: string;
20
- tenantId: string;
21
- };
22
- export declare type LeadContact = {
23
- accountManager?: string;
24
- companyName?: string;
25
- country: string;
26
- email?: string;
27
- name: string;
28
- phone?: PhoneNumberValue | PhoneNumberRawValue;
29
- remarks?: string;
30
- organizationId?: string;
31
- contactId?: string;
32
- orgNumber?: number;
33
- };
34
- export declare type LeadScore = {
35
- leadId: string;
36
- score: number;
37
- scores: {
38
- name: string;
39
- value: number;
40
- }[];
41
- };
42
- export declare type VehicleScore = {
43
- vehicleId: string;
44
- score: number;
45
- };
46
- export declare type LeadVehicles = {
47
- vehicles: VehicleScore[];
48
- };
49
- export declare type VehicleLeads = {
50
- leads: LeadScore[];
51
- };
52
- export declare type VehicleLeadsResponse = VehicleLeads & {
53
- leadsById: {
54
- [leadId: string]: Lead;
55
- };
56
- };
57
- export declare type LeadVehiclesResponse = LeadVehicles & {
58
- vehiclesById: {
59
- [vehicleId: string]: SearchVehicle;
60
- };
61
- };
62
- export declare type LeadStats = {
63
- lastClientConversation?: string;
64
- lastClientTx?: string;
65
- clientTxs?: number;
66
- };
67
- export declare type LeadVehicle = {
68
- createdAt: string;
69
- vehicleId: string;
70
- saleId?: string;
71
- };
72
- export declare type Lead = {
73
- id: string;
74
- createdAt: string;
75
- contact: LeadContact;
76
- interests: Interest[];
77
- vehicles: LeadVehicle[];
78
- stats?: LeadStats;
79
- };
80
- export declare type InterestVersion = {
81
- make: string;
82
- models?: string[];
83
- };
84
- export declare type Interest = {
85
- id: string;
86
- modifiedAt: string;
87
- modifiedBy: string;
88
- extended?: string[];
89
- heightened?: string[];
90
- adr?: boolean;
91
- age?: number;
92
- axleConfigurations?: string[];
93
- bodystyle?: string;
94
- cabins?: string[];
95
- category: string;
96
- crane?: boolean;
97
- damaged?: boolean;
98
- euronorms?: string[];
99
- horsepower?: number;
100
- used?: boolean;
101
- kilometers?: number;
102
- versions?: InterestVersion[];
103
- price?: number;
104
- leasing?: boolean;
105
- retarderIntarder?: boolean;
106
- suspensions?: string[];
107
- tailgate?: boolean;
108
- transmissions?: string[];
109
- autoGenerated?: boolean;
110
- remarks?: string;
111
- };
112
- export declare type InterestResponse = {
113
- interest: Interest;
114
- meta: ReferenceData;
115
- };
116
- export declare type InterestSearchRequest = {
117
- interest: Interest;
118
- offset: number;
119
- limit: number;
120
- };
121
- export declare type VehicleLeadsSearchRequest = {
122
- vehicleId: string;
123
- };
124
- export declare type InterestAutocompleteRequest = {
125
- vehicleId: string;
126
- };
127
- export declare type LeadVehiclesSearchRequest = {
128
- leadId: string;
129
- };
130
- export declare type SimilarVehiclesRequest = {
131
- offset: number;
132
- limit: number;
133
- };
134
- //# sourceMappingURL=leads.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leads.d.ts","sourceRoot":"","sources":["../../src/types/leads.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,oBAAY,UAAU,GAAG,IAAI,CAAC;AAE9B,oBAAY,eAAe,GAAG,UAAU,GAAG;IACzC,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF,oBAAY,gBAAgB,GAAG,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,oBAAY,2BAA2B,GAAG;IACxC,UAAU,EAAE,sBAAsB,CAAC;CACpC,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,gBAAgB,GAAG,mBAAmB,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,cAAc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,GAAG;IAC7B,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1F,oBAAY,yBAAyB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,oBAAY,2BAA2B,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE,oBAAY,yBAAyB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D,oBAAY,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=leads.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leads.js","sourceRoot":"","sources":["../../src/types/leads.ts"],"names":[],"mappings":""}
@@ -1,107 +0,0 @@
1
- import { AttachmentValue } from '@bisondesk/commons-sdk/lib/types';
2
- import { LeasingAdminUploadHandlers } from '../constants';
3
- export declare type LeasingAdminUploadStatus = 'success' | 'processing' | 'error';
4
- export declare type LeasingAdminUploadMetadata = {
5
- [key in string]?: unknown;
6
- };
7
- export declare type LeasingAdminUploadAttachments = {
8
- [key in string]?: AttachmentValue;
9
- };
10
- export declare type LeasingAdminUploadEvent<M extends LeasingAdminUploadMetadata = {}, A extends LeasingAdminUploadAttachments = {}> = LeasingAdminUpload<M, A> & {
11
- tenantId: string;
12
- };
13
- export declare type LeasingAdminUpload<M extends LeasingAdminUploadMetadata = {}, A extends LeasingAdminUploadAttachments = {}> = {
14
- id: string;
15
- updatedAt: string;
16
- createdAt: string;
17
- createdBy: string;
18
- status: LeasingAdminUploadStatus;
19
- attachments: A;
20
- metadata: M;
21
- handlerId: LeasingAdminUploadHandlers;
22
- };
23
- export declare type NewLeasingAdminUploadRequest<M extends LeasingAdminUploadMetadata = {}, A extends LeasingAdminUploadAttachments = {}> = {
24
- attachments: A;
25
- metadata: M;
26
- handlerId: LeasingAdminUploadHandlers;
27
- };
28
- export declare type DhondtAttachments = {
29
- json: AttachmentValue;
30
- };
31
- export declare type BelfiusAttachments = {
32
- xlsx: AttachmentValue;
33
- json?: AttachmentValue;
34
- };
35
- export declare type BelfiusMetadata = {
36
- totalLines: number;
37
- totalIncludingVat: string;
38
- };
39
- export declare type DhondtMetadata = {
40
- invoiceNumber: string;
41
- invoiceDate: string;
42
- };
43
- export declare type DhondtInvoiceLine = {
44
- BrutoPremie: number;
45
- Chassisnummer: string;
46
- Datum: string;
47
- NettoPremie: number;
48
- Plaatnummer: string;
49
- Taksen: number;
50
- VoertuigVlootNummer: string | undefined;
51
- };
52
- export declare type INGMetadata = {
53
- capital: string;
54
- emailId: string;
55
- interest: string;
56
- invoiceDate: string;
57
- invoiceNumber: string;
58
- pdfUrl: string;
59
- stockNumber: string;
60
- };
61
- export declare type INGAttachments = {
62
- email: AttachmentValue;
63
- };
64
- export declare type DiffableDhondtInvoiceLine = DhondtInvoiceLine;
65
- export declare type BelfiusRawInvoiceLine = {
66
- AMORTIZATION: number;
67
- AVENANT: number;
68
- CODE_DEVISE: string;
69
- CONTRACT: number;
70
- CUSTOMER: string;
71
- DATE_INVOICE: number;
72
- DESCRIPTION: string;
73
- DUE_DATE: number;
74
- INTEREST: number;
75
- INVOICE: number;
76
- RATE: number;
77
- RENTAL: number;
78
- REST_DESCIPT: string;
79
- VAT: number;
80
- 'VAT INCL': number;
81
- VAT_NUMBER: string;
82
- };
83
- export declare type BelfiusInvoiceLine = {
84
- capital: string;
85
- contractNr: string;
86
- interest: string;
87
- invoiceNr: string;
88
- invoiceDate: string;
89
- rentExcl: string;
90
- rentIncl: string;
91
- vatAmount: string;
92
- vehicleId: string;
93
- stockNumber: string;
94
- };
95
- export declare type DiffableBelfiusInvoiceLine = Omit<BelfiusInvoiceLine, 'invoiceNr' | 'invoiceDate' | 'capital' | 'interest'>;
96
- export declare type LineDiff<T> = {
97
- [Property in keyof T]: {
98
- value: T[Property];
99
- before: T[Property];
100
- };
101
- };
102
- export declare type Diff<T> = {
103
- added: T[];
104
- removed: T[];
105
- changed: LineDiff<T>[];
106
- };
107
- //# sourceMappingURL=leasing-administration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leasing-administration.d.ts","sourceRoot":"","sources":["../../src/types/leasing-administration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE1D,oBAAY,wBAAwB,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,CAAC;AAE1E,oBAAY,0BAA0B,GAAG;KAAG,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,OAAO;CAAE,CAAC;AACvE,oBAAY,6BAA6B,GAAG;KAAG,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,eAAe;CAAE,CAAC;AAElF,oBAAY,uBAAuB,CACjC,CAAC,SAAS,0BAA0B,GAAG,EAAE,EACzC,CAAC,SAAS,6BAA6B,GAAG,EAAE,IAC1C,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD,oBAAY,kBAAkB,CAC5B,CAAC,SAAS,0BAA0B,GAAG,EAAE,EACzC,CAAC,SAAS,6BAA6B,GAAG,EAAE,IAC1C;IACF,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,wBAAwB,CAAC;IACjC,WAAW,EAAE,CAAC,CAAC;IACf,QAAQ,EAAE,CAAC,CAA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;IACpB,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;CACxB,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=leasing-administration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leasing-administration.js","sourceRoot":"","sources":["../../src/types/leasing-administration.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import { InsuranceEntry } from '@bisondesk/commons-sdk/lib/insurance';
2
- import { SearchPermissions } from '@bisondesk/commons-sdk/lib/types';
3
- import { Organization } from './crm';
4
- import { PublicSearchDefinition } from './definitions';
5
- import { LeasingContract } from './leasing';
6
- import { Vehicle } from './vehicles';
7
- export declare type LeasingPublicSearchDefinitions = {
8
- searchLeasingContract: PublicSearchDefinition;
9
- };
10
- export declare type SearchLeasingContract = {
11
- contract: LeasingContract;
12
- org: Organization;
13
- vehicle: Vehicle;
14
- custom: {
15
- active: boolean;
16
- insurance?: InsuranceEntry;
17
- };
18
- };
19
- export declare type InputSearchLeasingContract = SearchLeasingContract & {
20
- permissions: SearchPermissions;
21
- };
22
- //# sourceMappingURL=leasing-search.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leasing-search.d.ts","sourceRoot":"","sources":["../../src/types/leasing-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,oBAAY,8BAA8B,GAAG;IAC3C,qBAAqB,EAAE,sBAAsB,CAAC;CAC/C,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,QAAQ,EAAE,eAAe,CAAC;IAC1B,GAAG,EAAE,YAAY,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE;QACN,MAAM,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,cAAc,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF,oBAAY,0BAA0B,GAAG,qBAAqB,GAAG;IAC/D,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=leasing-search.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leasing-search.js","sourceRoot":"","sources":["../../src/types/leasing-search.ts"],"names":[],"mappings":""}
@@ -1,113 +0,0 @@
1
- import { MultiLangValue } from '@bisondesk/commons-sdk/lib/types';
2
- import { Categories, OpportunityType } from '../constants';
3
- import { SortFilter } from './search';
4
- export declare type LeasingQuoteParams = {
5
- id: string;
6
- name: string;
7
- modifiedAt: string;
8
- } & {
9
- countryCode: 'be';
10
- insurance: {
11
- allRisksCost: string;
12
- allRisksTax: string;
13
- allRisksFees: string;
14
- allRisksMinimumCost: string;
15
- specialTechnicalInsuranceCost: string;
16
- specialTechnicalInsuranceTax: string;
17
- specialTechnicalInsuranceFees: string;
18
- civilLiabilitiesCost: string;
19
- civilLiabilitiesTax: string;
20
- civilLiabilitiesFees: string;
21
- roadAssistanceMonthlySalesPrice: string;
22
- roadAssistanceMonthlyCostPrice: string;
23
- margin: string;
24
- };
25
- leasing: {
26
- leasingInterestRate: string;
27
- leasingDuration: number;
28
- leasingStartupFeePercentage: string;
29
- leasingDepositPercentage: string;
30
- leasingResidualValuePercentage: string;
31
- };
32
- taxes: {
33
- oneTimeRoadTax: string;
34
- yearlyRoadTax: string;
35
- margin: string;
36
- };
37
- costs: {
38
- bankDepositPercentage: string;
39
- bankInterestRate: string;
40
- bankResidualValuePercentage: string;
41
- trackAndTrace24Cost: string;
42
- trackAndTrace36Cost: string;
43
- trackAndTrace48Cost: string;
44
- trackAndTraceMaxCost: string;
45
- };
46
- };
47
- declare type BaseLeasingQuoteExtraSettings = {
48
- referenceCode: string;
49
- active: boolean;
50
- costPrice: string;
51
- countryCode: string;
52
- deliveryPackage: boolean;
53
- displayByDefault: boolean;
54
- hint?: MultiLangValue;
55
- name: MultiLangValue;
56
- salesPrice: string;
57
- vehicleCategoryRestrictions: Categories[];
58
- departments: string[];
59
- departmentTitles?: {
60
- [department: string]: string;
61
- };
62
- opportunityTypeRestrictions: OpportunityType[];
63
- };
64
- export declare type BaseLeasingQuoteExtraInput = {
65
- agreedPrice: string;
66
- costPrice: string;
67
- hint?: MultiLangValue;
68
- name: MultiLangValue;
69
- referenceCode: string;
70
- quantity: number;
71
- id: string;
72
- departments: string[];
73
- departmentTitles?: {
74
- [department: string]: string;
75
- };
76
- };
77
- export declare type NewLeasingQuoteExtraSettings = BaseLeasingQuoteExtraSettings & {
78
- id?: undefined;
79
- };
80
- export declare type LeasingQuoteExtraSettings = BaseLeasingQuoteExtraSettings & {
81
- id: string;
82
- };
83
- export declare enum LeasingItemsPaymentSplit {
84
- Customer = "customer",
85
- Split = "split",
86
- Company = "company"
87
- }
88
- export declare type LeasingDeliveryPackageInput = BaseLeasingQuoteExtraInput & {
89
- salesPrice: string;
90
- };
91
- export declare type CustomLeasingQuoteExtraInput = BaseLeasingQuoteExtraInput & {
92
- paymentSplit: LeasingItemsPaymentSplit;
93
- leasingPercentage: string;
94
- };
95
- export declare type LeasingQuoteExtraInput = BaseLeasingQuoteExtraInput & {
96
- salesPrice: string;
97
- paymentSplit: LeasingItemsPaymentSplit;
98
- leasingPercentage: string;
99
- };
100
- export declare type LeasingQuoteExtrasRequest = {
101
- deliveryPackage?: boolean;
102
- displayByDefault?: boolean;
103
- vehicleCategory?: Categories;
104
- country: string;
105
- name?: string;
106
- active?: boolean;
107
- offset?: number;
108
- limit?: number;
109
- sortBy?: SortFilter;
110
- opportunityType?: OpportunityType;
111
- };
112
- export {};
113
- //# sourceMappingURL=leasing-settings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leasing-settings.d.ts","sourceRoot":"","sources":["../../src/types/leasing-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,oBAAY,kBAAkB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG;IAClF,WAAW,EAAE,IAAI,CAAC;IAClB,SAAS,EAAE;QACT,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,6BAA6B,EAAE,MAAM,CAAC;QACtC,4BAA4B,EAAE,MAAM,CAAC;QACrC,6BAA6B,EAAE,MAAM,CAAC;QACtC,oBAAoB,EAAE,MAAM,CAAC;QAC7B,mBAAmB,EAAE,MAAM,CAAC;QAC5B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,+BAA+B,EAAE,MAAM,CAAC;QACxC,8BAA8B,EAAE,MAAM,CAAC;QACvC,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE;QACP,mBAAmB,EAAE,MAAM,CAAC;QAC5B,eAAe,EAAE,MAAM,CAAC;QACxB,2BAA2B,EAAE,MAAM,CAAC;QACpC,wBAAwB,EAAE,MAAM,CAAC;QACjC,8BAA8B,EAAE,MAAM,CAAC;KACxC,CAAC;IACF,KAAK,EAAE;QACL,cAAc,EAAE,MAAM,CAA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;CACrD,CAAC;AAEF,oBAAY,4BAA4B,GAAG,6BAA6B,GAAG;IACzE,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB,CAAC;AAEF,oBAAY,yBAAyB,GAAG,6BAA6B,GAAG;IACtE,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,oBAAY,wBAAwB;IAClC,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,oBAAY,2BAA2B,GAAG,0BAA0B,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9F,oBAAY,4BAA4B,GAAG,0BAA0B,GAAG;IACtE,YAAY,EAAE,wBAAwB,CAAC;IACvC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,oBAAY,sBAAsB,GAAG,0BAA0B,GAAG;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LeasingItemsPaymentSplit = void 0;
4
- var LeasingItemsPaymentSplit;
5
- (function (LeasingItemsPaymentSplit) {
6
- LeasingItemsPaymentSplit["Customer"] = "customer";
7
- LeasingItemsPaymentSplit["Split"] = "split";
8
- LeasingItemsPaymentSplit["Company"] = "company";
9
- })(LeasingItemsPaymentSplit = exports.LeasingItemsPaymentSplit || (exports.LeasingItemsPaymentSplit = {}));
10
- //# sourceMappingURL=leasing-settings.js.map