@bisondesk/core-sdk 1.0.588 → 1.0.589

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 (80) hide show
  1. package/lib/apis/crm.js.map +1 -1
  2. package/lib/apis/debtors.js.map +1 -1
  3. package/lib/apis/email-templates.js.map +1 -1
  4. package/lib/apis/insights.d.ts.map +1 -1
  5. package/lib/apis/insights.js.map +1 -1
  6. package/lib/apis/leasing-administration.js.map +1 -1
  7. package/lib/apis/leasing.d.ts +1 -1
  8. package/lib/apis/leasing.d.ts.map +1 -1
  9. package/lib/apis/leasing.js.map +1 -1
  10. package/lib/apis/offers.d.ts.map +1 -1
  11. package/lib/apis/offers.js.map +1 -1
  12. package/lib/apis/opportunities.d.ts.map +1 -1
  13. package/lib/apis/opportunities.js.map +1 -1
  14. package/lib/apis/tenants.js.map +1 -1
  15. package/lib/apis/users.d.ts.map +1 -1
  16. package/lib/apis/users.js +1 -1
  17. package/lib/apis/users.js.map +1 -1
  18. package/lib/apis/vehicle-sales.js.map +1 -1
  19. package/lib/apis/vehicles.js.map +1 -1
  20. package/lib/types/leasing-administration.js.map +1 -1
  21. package/lib/types/leasing.d.ts.map +1 -1
  22. package/lib/types/leasing.js.map +1 -1
  23. package/lib/types/offers.d.ts.map +1 -1
  24. package/lib/types/offers.js +1 -4
  25. package/lib/types/offers.js.map +1 -1
  26. package/lib/types/prospects.d.ts +4 -5
  27. package/lib/types/prospects.d.ts.map +1 -1
  28. package/lib/types/prospects.js.map +1 -1
  29. package/lib/types/quotes.d.ts.map +1 -1
  30. package/lib/types/quotes.js.map +1 -1
  31. package/lib/types/recently-viewed.js.map +1 -1
  32. package/lib/types/vehicles.d.ts +1 -1
  33. package/lib/types/vehicles.d.ts.map +1 -1
  34. package/lib/types/vehicles.js.map +1 -1
  35. package/lib/utils/debtors-dossiers.js.map +1 -1
  36. package/lib/utils/forms.js.map +1 -1
  37. package/lib/utils/integrations/vehicles.js.map +1 -1
  38. package/lib/utils/interests.js.map +1 -1
  39. package/lib/utils/leasing.d.ts +1 -1
  40. package/lib/utils/leasing.d.ts.map +1 -1
  41. package/lib/utils/leasing.js.map +1 -1
  42. package/lib/utils/opportunities.js.map +1 -1
  43. package/lib/utils/search.d.ts +1 -1
  44. package/lib/utils/search.d.ts.map +1 -1
  45. package/lib/utils/search.js.map +1 -1
  46. package/lib/utils/slug.js.map +1 -1
  47. package/lib/utils/vehicles.js.map +1 -1
  48. package/lib/utils/vehicles.test.js +1 -1
  49. package/lib/utils/vehicles.test.js.map +1 -1
  50. package/package.json +15 -10
  51. package/src/apis/crm.ts +14 -14
  52. package/src/apis/debtors.ts +1 -1
  53. package/src/apis/email-templates.ts +2 -2
  54. package/src/apis/insights.ts +3 -3
  55. package/src/apis/leasing-administration.ts +2 -2
  56. package/src/apis/leasing.ts +19 -19
  57. package/src/apis/offers.ts +9 -12
  58. package/src/apis/opportunities.ts +21 -24
  59. package/src/apis/tenants.ts +3 -3
  60. package/src/apis/users.ts +2 -2
  61. package/src/apis/vehicle-sales.ts +4 -4
  62. package/src/apis/vehicles.ts +12 -12
  63. package/src/types/leasing-administration.ts +3 -3
  64. package/src/types/leasing.ts +2 -2
  65. package/src/types/offers.ts +1 -4
  66. package/src/types/prospects.ts +4 -5
  67. package/src/types/quotes.ts +5 -5
  68. package/src/types/recently-viewed.ts +1 -1
  69. package/src/types/vehicles.ts +1 -1
  70. package/src/utils/debtors-dossiers.ts +1 -1
  71. package/src/utils/forms.ts +1 -1
  72. package/src/utils/integrations/vehicles.ts +1 -1
  73. package/src/utils/interests.ts +2 -2
  74. package/src/utils/leasing.ts +6 -6
  75. package/src/utils/opportunities.ts +1 -1
  76. package/src/utils/search.ts +16 -16
  77. package/src/utils/slug.ts +1 -1
  78. package/src/utils/vehicles.test.ts +1 -1
  79. package/src/utils/vehicles.ts +1 -1
  80. package/tsconfig.tsbuildinfo +1 -1
@@ -8,7 +8,7 @@ import { NewVehicle, Vehicle, VehiclePricingHistory, VehiclePurchase } from '../
8
8
 
9
9
  export const getVehicle = async (
10
10
  tenantId: string,
11
- vehicleId: string
11
+ vehicleId: string,
12
12
  ): Promise<DataRecord<Vehicle> | undefined> => {
13
13
  const auth = await getAdminAuth();
14
14
  const url = `${process.env.CORE_API_ORIGIN}/api/vehicles/${vehicleId}`;
@@ -29,7 +29,7 @@ export const getVehicle = async (
29
29
 
30
30
  export const getVehiclesByChassisNumber = async (
31
31
  tenantId: string,
32
- vin: string
32
+ vin: string,
33
33
  ): Promise<DataRecord<Vehicle>[] | undefined> => {
34
34
  const auth = await getAdminAuth();
35
35
  return fetchJson(`${process.env.CORE_API_ORIGIN}/api/vehicles/vin/${vin}`, {
@@ -42,7 +42,7 @@ export const getVehiclesByChassisNumber = async (
42
42
 
43
43
  export const getVehiclePriceHistory = async (
44
44
  tenantId: string,
45
- vehicleId: string
45
+ vehicleId: string,
46
46
  ): Promise<VehiclePricingHistory[] | undefined> => {
47
47
  const auth = await getAdminAuth();
48
48
  return fetchJson(`${process.env.CORE_API_ORIGIN}/api/vehicles/${vehicleId}/price-history`, {
@@ -55,7 +55,7 @@ export const getVehiclePriceHistory = async (
55
55
 
56
56
  export const getVehiclePurchase = async (
57
57
  tenantId: string,
58
- vehicleId: string
58
+ vehicleId: string,
59
59
  ): Promise<DataRecord<VehiclePurchase> | undefined> => {
60
60
  const auth = await getAdminAuth();
61
61
  const url = `${process.env.CORE_API_ORIGIN}/api/vehicles/${vehicleId}/purchase`;
@@ -76,7 +76,7 @@ export const getVehiclePurchase = async (
76
76
 
77
77
  export const getVehicleByStockNumber = async (
78
78
  tenantId: string,
79
- stockNumber: string
79
+ stockNumber: string,
80
80
  ): Promise<Vehicle | undefined> => {
81
81
  const auth = await getAdminAuth();
82
82
  const url = `${process.env.CORE_API_ORIGIN}/api/vehicles/stock-number/${stockNumber}`;
@@ -97,7 +97,7 @@ export const getVehicleByStockNumber = async (
97
97
 
98
98
  export const getVehicleByPurchaseStockNumber = async (
99
99
  tenantId: string,
100
- stockNumber: string
100
+ stockNumber: string,
101
101
  ): Promise<Vehicle | undefined> => {
102
102
  const auth = await getAdminAuth();
103
103
  const url = `${process.env.CORE_API_ORIGIN}/api/vehicles/purchase-stock-number/${stockNumber}`;
@@ -120,7 +120,7 @@ export const listVehiclesMarketing = async (
120
120
  tenantId: string,
121
121
  offset: number,
122
122
  limit: number,
123
- opts?: { serviceId: string }
123
+ opts?: { serviceId: string },
124
124
  ): Promise<{ id: string; data: VehicleMarketing }[]> => {
125
125
  const auth = await getAdminAuth();
126
126
  const url = `${process.env.CORE_API_ORIGIN}/api/vehicles/marketing/list?offset=${offset}&limit=${limit}`;
@@ -142,7 +142,7 @@ export const listVehiclesMarketing = async (
142
142
 
143
143
  export const getVehicleMarketing = async (
144
144
  tenantId: string,
145
- vehicleId: string
145
+ vehicleId: string,
146
146
  ): Promise<VehicleMarketing | undefined> => {
147
147
  const auth = await getAdminAuth();
148
148
  const url = `${process.env.CORE_API_ORIGIN}/api/vehicles/${vehicleId}/marketing`;
@@ -164,7 +164,7 @@ export const getVehicleMarketing = async (
164
164
  export const saveMarketing = async (
165
165
  tenantId: string,
166
166
  vehicleId: string,
167
- marketing: VehicleMarketing
167
+ marketing: VehicleMarketing,
168
168
  ): Promise<VehicleMarketing> => {
169
169
  const auth = await getAdminAuth();
170
170
 
@@ -191,7 +191,7 @@ export const saveVehiclePurchase = async (
191
191
  tenantId: string,
192
192
  vehicleId: string,
193
193
  purchase: VehiclePurchase,
194
- opts?: { serviceId: string }
194
+ opts?: { serviceId: string },
195
195
  ): Promise<Vehicle> => {
196
196
  const auth = await getAdminAuth();
197
197
  const url = `${process.env.CORE_API_ORIGIN}/api/vehicles/${vehicleId}/purchase`;
@@ -217,7 +217,7 @@ export const saveVehiclePurchase = async (
217
217
  export const saveVehicle = async (
218
218
  tenantId: string,
219
219
  vehicle: NewVehicle | Vehicle,
220
- opts?: { serviceId: string }
220
+ opts?: { serviceId: string },
221
221
  ): Promise<Vehicle> => {
222
222
  const auth = await getAdminAuth();
223
223
  const url = `${process.env.CORE_API_ORIGIN}/api/vehicles`;
@@ -243,7 +243,7 @@ export const saveVehicle = async (
243
243
  export const deleteVehicle = async (
244
244
  tenantId: string,
245
245
  vehicleId: string,
246
- opts?: { serviceId: string }
246
+ opts?: { serviceId: string },
247
247
  ): Promise<void> => {
248
248
  const auth = await getAdminAuth();
249
249
  const url = `${process.env.CORE_API_ORIGIN}/api/vehicles/${vehicleId}`;
@@ -8,12 +8,12 @@ export type LeasingAdminUploadAttachments = { [key in string]?: AttachmentValue
8
8
 
9
9
  export type LeasingAdminUploadEvent<
10
10
  M extends LeasingAdminUploadMetadata = {},
11
- A extends LeasingAdminUploadAttachments = {}
11
+ A extends LeasingAdminUploadAttachments = {},
12
12
  > = LeasingAdminUpload<M, A> & { tenantId: string };
13
13
 
14
14
  export type LeasingAdminUpload<
15
15
  M extends LeasingAdminUploadMetadata = {},
16
- A extends LeasingAdminUploadAttachments = {}
16
+ A extends LeasingAdminUploadAttachments = {},
17
17
  > = {
18
18
  id: string;
19
19
  updatedAt: string;
@@ -28,7 +28,7 @@ export type LeasingAdminUpload<
28
28
 
29
29
  export type NewLeasingAdminUploadRequest<
30
30
  M extends LeasingAdminUploadMetadata = {},
31
- A extends LeasingAdminUploadAttachments = {}
31
+ A extends LeasingAdminUploadAttachments = {},
32
32
  > = {
33
33
  attachments: A;
34
34
  metadata: M;
@@ -147,8 +147,8 @@ export type NewLeasingContract<
147
147
  T = LeasingContractHyperportal | LeasingContractBisondesk | LeasingContractInternal,
148
148
  > = BaseLeasingContract<T> & {
149
149
  readonly expectedEndDate?: string | undefined;
150
- readonly debt?: LeasingContractDebtInfo | undefined;
151
- };
150
+ readonly debt?: LeasingContractDebtInfo | undefined;
151
+ };
152
152
 
153
153
  export type NextLeasingRentRowRequest = {
154
154
  vehicleId: string;
@@ -65,10 +65,7 @@ export enum OfferWarningsCode {
65
65
  NO_SUPPLIER = 'no_supplier',
66
66
  }
67
67
 
68
- export const OfferStatusOrder: OfferStatus[] = [
69
- OfferStatus.PROSPECTION,
70
- OfferStatus.NEGOTIATION,
71
- ];
68
+ export const OfferStatusOrder: OfferStatus[] = [OfferStatus.PROSPECTION, OfferStatus.NEGOTIATION];
72
69
 
73
70
  // Synthetic kanban column ID — not a real status, but displayed as a kanban column
74
71
  export const OfferStillAvailableColumnId = 'still_available';
@@ -1,11 +1,10 @@
1
- import { MultiLangValue } from '@bisondesk/commons-sdk/types';
2
- import { BaseEvent } from './internal-events.js';
3
- import { BaseSearchRequest } from './search.js';
1
+ import { Task } from '@bisondesk/commons-sdk/tasks';
2
+ import { MultiLangValue, NextList } from '@bisondesk/commons-sdk/types';
4
3
  import { Contact, Organization } from './crm.js';
5
4
  import { Interest } from './interests.js';
5
+ import { BaseEvent } from './internal-events.js';
6
+ import { BaseSearchRequest } from './search.js';
6
7
  import { DataRecord, ReferenceData } from './utils.js';
7
- import { NextList } from '@bisondesk/commons-sdk/types';
8
- import { Task } from '@bisondesk/commons-sdk/tasks';
9
8
 
10
9
  export enum ProspectActions {
11
10
  CLOSE = 'close',
@@ -1,11 +1,11 @@
1
1
  import { AttachmentValue, LocationValue } from '@bisondesk/commons-sdk/types';
2
2
  import { OpportunityType } from '../constants.js';
3
3
  import {
4
- CustomLeasingQuoteExtraInput,
5
- CustomSalesQuoteExtraInput,
6
- LeasingDeliveryPackageInput,
7
- LeasingQuoteExtraInput,
8
- SalesQuoteExtraInput,
4
+ CustomLeasingQuoteExtraInput,
5
+ CustomSalesQuoteExtraInput,
6
+ LeasingDeliveryPackageInput,
7
+ LeasingQuoteExtraInput,
8
+ SalesQuoteExtraInput,
9
9
  } from './leasing-settings.js';
10
10
  import { MatchingRuleValue } from './roi-ratings.js';
11
11
  import { PricePercentageMode } from './utils.js';
@@ -33,7 +33,7 @@ export type ViewedItemHandler = (
33
33
  requester: Requester,
34
34
  req: ViewedItemsRequest,
35
35
  itemsBusinessEntity: BusinessEntityIds,
36
- items: RawViewedItem[]
36
+ items: RawViewedItem[],
37
37
  ) => Promise<ViewedItem[]>;
38
38
 
39
39
  export type ViewedItemsContextHandlers = {
@@ -8,10 +8,10 @@ import {
8
8
  ShareEmailRequest,
9
9
  ShareWhatsappRequest,
10
10
  } from '@bisondesk/commons-sdk/types';
11
- import { ComplexFilter, Filter } from './search.js';
12
11
  import { BaseEvent } from './internal-events.js';
13
12
  import { VehicleSaleLogisticsStatus } from './opportunities.js';
14
13
  import { OpportunityReservation } from './reservations.js';
14
+ import { ComplexFilter, Filter } from './search.js';
15
15
  import { DataRecord, ReferenceData } from './utils.js';
16
16
  import { VehicleBusinessOverviewXL } from './vehicle-performance.js';
17
17
  import { VehicleSaleInfo } from './vehicle-sales.js';
@@ -28,7 +28,7 @@ const compareDebtorsDossierStatus = (input: CompareInput) => {
28
28
  };
29
29
 
30
30
  export const getPreviousStatus = (
31
- currentStatus: DebtorsDossierStatus
31
+ currentStatus: DebtorsDossierStatus,
32
32
  ): DebtorsDossierStatus | undefined => {
33
33
  const currentIndex = DebtorsDossierStatusOrder.indexOf(currentStatus);
34
34
  if (currentIndex <= 0) {
@@ -7,7 +7,7 @@ export const computePricePercentage = (
7
7
  totalAmount: string,
8
8
  percentage: string,
9
9
  partialAmount: string = '0',
10
- mode: PricePercentageMode = PricePercentageMode.PERCENTAGE
10
+ mode: PricePercentageMode = PricePercentageMode.PERCENTAGE,
11
11
  ): { percentageAmount: string; currencyAmount: string } => {
12
12
  const output: { percentageAmount: string; currencyAmount: string } = {
13
13
  percentageAmount: percentage,
@@ -1,5 +1,5 @@
1
1
  export const guessDrivingCabFromTitle = (
2
- title: string
2
+ title: string,
3
3
  ): 'Sleep / Large' | 'Sleep / Medium' | 'Day' | undefined => {
4
4
  const largeKeywords = [
5
5
  'active space', // Iveco
@@ -9,7 +9,7 @@ import { VehicleExternalInfo } from '../types/vehicles.js';
9
9
  export const mapVehicleToInterest = (
10
10
  userId: string,
11
11
  vehicleExternalInfo: VehicleExternalInfo,
12
- referenceDate: Date = new UTCDate()
12
+ referenceDate: Date = new UTCDate(),
13
13
  ): Interest => {
14
14
  return {
15
15
  id: generateId(),
@@ -135,7 +135,7 @@ const toMaxPrice = (value?: number | string) =>
135
135
 
136
136
  const toMinHorsepower = (
137
137
  vehicleExternalInfo: VehicleExternalInfo,
138
- shiftRatio: number
138
+ shiftRatio: number,
139
139
  ): number | undefined => {
140
140
  const hasHorsepower = vehicleExternalInfo.powertrain?.engine?.power?.hp != null;
141
141
  const isHorsepowerImportant = isHeavyVehicle(vehicleExternalInfo);
@@ -2,26 +2,26 @@ import { UTCDate } from '@date-fns/utc';
2
2
  import { format } from 'date-fns';
3
3
  import { Decimal } from 'decimal.js';
4
4
  import { last, map, sortBy, uniqBy } from 'lodash-es';
5
- import {
6
- CustomLeasingQuoteExtraInput,
7
- LeasingItemsPaymentSplit,
8
- } from '../types/leasing-settings.js';
9
5
  import {
10
6
  ConditionsRef,
11
7
  LeasingContract,
12
8
  LeasingContractClient,
13
9
  OpportunityRef,
14
10
  } from '../types/leasing.js';
11
+ import {
12
+ CustomLeasingQuoteExtraInput,
13
+ LeasingItemsPaymentSplit,
14
+ } from '../types/leasing-settings.js';
15
15
 
16
16
  /* sort from oldest to most recent client */
17
17
  export const sortContractClients = (clients: LeasingContractClient[]): LeasingContractClient[] =>
18
18
  sortBy(
19
19
  map(
20
20
  uniqBy(clients, (c) => c.takeoverId),
21
- (c) => ({ ...c, since: format(new UTCDate(c.since), 'yyyy-MM-dd') }) // doing a map to also fix legacy data
21
+ (c) => ({ ...c, since: format(new UTCDate(c.since), 'yyyy-MM-dd') }), // doing a map to also fix legacy data
22
22
  ),
23
23
  (cli) => cli.since,
24
- (cli) => (cli.takeoverId ? parseInt(cli.takeoverId.replace(/[^0-9]/g, '')) : 0)
24
+ (cli) => (cli.takeoverId ? parseInt(cli.takeoverId.replace(/[^0-9]/g, '')) : 0),
25
25
  );
26
26
 
27
27
  export const getDealRef = ({
@@ -18,7 +18,7 @@ const compareOpportunityStatus = (input: CompareInput) => {
18
18
  };
19
19
 
20
20
  export const getPreviousStatus = (
21
- currentStatus: OpportunityStatus
21
+ currentStatus: OpportunityStatus,
22
22
  ): OpportunityStatus | undefined => {
23
23
  const currentIndex = OpportunityStatusOrder.indexOf(currentStatus);
24
24
  if (currentIndex === 0) {
@@ -1,9 +1,9 @@
1
1
  import { joinWithSeparator } from '@bisondesk/commons-sdk/formatting';
2
2
  import { BusinessEntityIds } from '../constants.js';
3
3
  import { Contact, Organization, SearchOrganization } from '../types/crm.js';
4
+ import { LeasingContract } from '../types/leasing.js';
4
5
  import { DebtorsDossier, SearchDebtorsDossier } from '../types/leasing-debtors.js';
5
6
  import { SearchLeasingContract } from '../types/leasing-search.js';
6
- import { LeasingContract } from '../types/leasing.js';
7
7
  import { Opportunity, SearchOpportunity } from '../types/opportunities.js';
8
8
  import { SearchVehicle, Vehicle } from '../types/vehicles.js';
9
9
 
@@ -54,8 +54,8 @@ export const mappings: {
54
54
  const customer = getCustomerInformation(opp.org, opp.contact);
55
55
  return joinWithSeparator(
56
56
  [customer?.code, customer?.title, opp.vehicle?.external.identification.stockNumber].filter(
57
- Boolean
58
- )
57
+ Boolean,
58
+ ),
59
59
  );
60
60
  },
61
61
  getTags: (opp: Opportunity) => [opp.id],
@@ -135,12 +135,12 @@ const getMapping = (businessEntityId: BusinessEntityIds) => {
135
135
 
136
136
  export const getTagsForBusinessEntity = (
137
137
  businessEntityId: BusinessEntityIds,
138
- entity: GlobalBusinessEntity
138
+ entity: GlobalBusinessEntity,
139
139
  ): string[] => getMapping(businessEntityId).getTags(entity);
140
140
 
141
141
  export const getTagsForSearchBusinessEntity = (
142
142
  businessEntityId: BusinessEntityIds,
143
- entity: GlobalSearchEntity
143
+ entity: GlobalSearchEntity,
144
144
  ) => {
145
145
  const tags = getMapping(businessEntityId).getTagsForSearchEntity?.(entity);
146
146
 
@@ -150,57 +150,57 @@ export const getTagsForSearchBusinessEntity = (
150
150
 
151
151
  return getTagsForBusinessEntity(
152
152
  businessEntityId,
153
- getMainEntityFromSearchEntity(businessEntityId, entity)
153
+ getMainEntityFromSearchEntity(businessEntityId, entity),
154
154
  );
155
155
  };
156
156
 
157
157
  export const getDescriptionForBusinessEntity = (
158
158
  businessEntityId: BusinessEntityIds,
159
- entity: GlobalBusinessEntity
159
+ entity: GlobalBusinessEntity,
160
160
  ) => joinWithSeparator(getTagsForBusinessEntity(businessEntityId, entity));
161
161
 
162
162
  export const getDescriptionForSearchBusinessEntity = (
163
163
  businessEntityId: BusinessEntityIds,
164
- entity: GlobalSearchEntity
164
+ entity: GlobalSearchEntity,
165
165
  ) => {
166
166
  return (
167
167
  getMapping(businessEntityId).getDescription?.(entity) ??
168
168
  getDescriptionForBusinessEntity(
169
169
  businessEntityId,
170
- getMainEntityFromSearchEntity(businessEntityId, entity)
170
+ getMainEntityFromSearchEntity(businessEntityId, entity),
171
171
  )
172
172
  );
173
173
  };
174
174
 
175
175
  export const getMainEntityFromSearchEntity = (
176
176
  businessEntityId: BusinessEntityIds,
177
- entity: GlobalSearchEntity
177
+ entity: GlobalSearchEntity,
178
178
  ) => getMapping(businessEntityId).getMainEntity(entity);
179
179
 
180
180
  export const getTitleForBusinessEntity = (
181
181
  businessEntityId: BusinessEntityIds,
182
- entity: GlobalBusinessEntity
182
+ entity: GlobalBusinessEntity,
183
183
  ) => getMapping(businessEntityId).getTitle(entity);
184
184
 
185
185
  export const getTitleForSearchBusinessEntity = (
186
186
  businessEntityId: BusinessEntityIds,
187
- searchEntity: GlobalSearchEntity
187
+ searchEntity: GlobalSearchEntity,
188
188
  ) =>
189
189
  getTitleForBusinessEntity(
190
190
  businessEntityId,
191
- getMainEntityFromSearchEntity(businessEntityId, searchEntity)
191
+ getMainEntityFromSearchEntity(businessEntityId, searchEntity),
192
192
  );
193
193
 
194
194
  export const getMetaForBusinessEntity = (
195
195
  businessEntityId: BusinessEntityIds,
196
- entity: GlobalBusinessEntity
196
+ entity: GlobalBusinessEntity,
197
197
  ) => getMapping(businessEntityId).getMeta?.(entity);
198
198
 
199
199
  export const getMetaForSearchBusinessEntity = (
200
200
  businessEntityId: BusinessEntityIds,
201
- searchEntity: GlobalSearchEntity
201
+ searchEntity: GlobalSearchEntity,
202
202
  ) =>
203
203
  getMetaForBusinessEntity(
204
204
  businessEntityId,
205
- getMainEntityFromSearchEntity(businessEntityId, searchEntity)
205
+ getMainEntityFromSearchEntity(businessEntityId, searchEntity),
206
206
  );
package/src/utils/slug.ts CHANGED
@@ -14,6 +14,6 @@ export const getVehicleSlug = (vehicle: Vehicle): string => {
14
14
  vehicle.external.powertrain?.axles?.configuration,
15
15
  ]
16
16
  .filter((f) => !!f)
17
- .join(' ')
17
+ .join(' '),
18
18
  );
19
19
  };
@@ -1,9 +1,9 @@
1
+ import { XError } from '@bisondesk/commons-sdk/errors';
1
2
  import {
2
3
  convertLettersToNumber,
3
4
  convertNumberToLetters,
4
5
  getNextRelatedStockNumber,
5
6
  } from './vehicles.js';
6
- import { XError } from '@bisondesk/commons-sdk/errors';
7
7
 
8
8
  describe('stock number utils', () => {
9
9
  describe('convertNumberToLetters', () => {
@@ -133,7 +133,7 @@ export const getVehicleDescription = (
133
133
  showStockNumber?: boolean;
134
134
  showAxleConfiguration?: boolean;
135
135
  lang?: string;
136
- }
136
+ },
137
137
  ) => {
138
138
  const dimensions = [
139
139
  external.superstructure?.dimensions?.extended,