@bisondesk/core-sdk 1.0.21 → 1.0.23-B
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/apis/crm.d.ts +39 -0
- package/lib/apis/crm.d.ts.map +1 -0
- package/lib/apis/crm.js +201 -0
- package/lib/apis/crm.js.map +1 -0
- package/lib/apis/documents.d.ts +4 -0
- package/lib/apis/documents.d.ts.map +1 -0
- package/lib/apis/documents.js +47 -0
- package/lib/apis/documents.js.map +1 -0
- package/lib/apis/internet-vehicles.d.ts +3 -0
- package/lib/apis/internet-vehicles.d.ts.map +1 -0
- package/lib/apis/internet-vehicles.js +27 -0
- package/lib/apis/internet-vehicles.js.map +1 -0
- package/lib/apis/leasing-administration.d.ts +8 -0
- package/lib/apis/leasing-administration.d.ts.map +1 -0
- package/lib/apis/leasing-administration.js +49 -0
- package/lib/apis/leasing-administration.js.map +1 -0
- package/lib/apis/leasing.d.ts +19 -0
- package/lib/apis/leasing.d.ts.map +1 -0
- package/lib/apis/leasing.js +168 -0
- package/lib/apis/leasing.js.map +1 -0
- package/lib/apis/opportunities.d.ts +9 -0
- package/lib/apis/opportunities.d.ts.map +1 -0
- package/lib/apis/opportunities.js +94 -0
- package/lib/apis/opportunities.js.map +1 -0
- package/lib/apis/picklists.d.ts +5 -0
- package/lib/apis/picklists.d.ts.map +1 -0
- package/lib/apis/picklists.js +44 -0
- package/lib/apis/picklists.js.map +1 -0
- package/lib/apis/tenants.d.ts +7 -0
- package/lib/apis/tenants.d.ts.map +1 -0
- package/lib/apis/tenants.js +80 -0
- package/lib/apis/tenants.js.map +1 -0
- package/lib/apis/users.d.ts +3 -0
- package/lib/apis/users.d.ts.map +1 -0
- package/lib/apis/users.js +26 -0
- package/lib/apis/users.js.map +1 -0
- package/lib/apis/utils.d.ts +9 -0
- package/lib/apis/utils.d.ts.map +1 -0
- package/lib/apis/utils.js +23 -0
- package/lib/apis/utils.js.map +1 -0
- package/lib/apis/vehicles.d.ts +18 -0
- package/lib/apis/vehicles.d.ts.map +1 -0
- package/lib/apis/vehicles.js +159 -0
- package/lib/apis/vehicles.js.map +1 -0
- package/lib/constants.d.ts +77 -0
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +924 -1
- package/lib/constants.js.map +1 -1
- package/lib/ddb-entities.d.ts +2 -0
- package/lib/ddb-entities.d.ts.map +1 -0
- package/lib/ddb-entities.js +5 -0
- package/lib/ddb-entities.js.map +1 -0
- package/lib/types/activities.d.ts +38 -0
- package/lib/types/activities.d.ts.map +1 -0
- package/lib/types/activities.js +16 -0
- package/lib/types/activities.js.map +1 -0
- package/lib/types/crm.d.ts +103 -30
- package/lib/types/crm.d.ts.map +1 -1
- package/lib/types/crm.js +16 -0
- package/lib/types/crm.js.map +1 -1
- package/lib/types/definitions.d.ts +15 -13
- package/lib/types/definitions.d.ts.map +1 -1
- package/lib/types/documents.d.ts +105 -0
- package/lib/types/documents.d.ts.map +1 -0
- package/lib/types/{interests.js → documents.js} +1 -1
- package/lib/types/documents.js.map +1 -0
- package/lib/types/fields.d.ts +26 -25
- package/lib/types/fields.d.ts.map +1 -1
- package/lib/types/fields.js +4 -0
- package/lib/types/fields.js.map +1 -1
- package/lib/types/internet-vehicles.d.ts +64 -0
- package/lib/types/internet-vehicles.d.ts.map +1 -0
- package/lib/types/internet-vehicles.js +3 -0
- package/lib/types/internet-vehicles.js.map +1 -0
- package/lib/types/leads.d.ts +134 -0
- package/lib/types/leads.d.ts.map +1 -0
- package/lib/types/leads.js +3 -0
- package/lib/types/leads.js.map +1 -0
- package/lib/types/leasing-administration.d.ts +107 -0
- package/lib/types/leasing-administration.d.ts.map +1 -0
- package/lib/types/leasing-administration.js +3 -0
- package/lib/types/leasing-administration.js.map +1 -0
- package/lib/types/leasing-search.d.ts +22 -0
- package/lib/types/leasing-search.d.ts.map +1 -0
- package/lib/types/leasing-search.js +3 -0
- package/lib/types/leasing-search.js.map +1 -0
- package/lib/types/leasing-settings.d.ts +113 -0
- package/lib/types/leasing-settings.d.ts.map +1 -0
- package/lib/types/leasing-settings.js +10 -0
- package/lib/types/leasing-settings.js.map +1 -0
- package/lib/types/leasing.d.ts +322 -0
- package/lib/types/leasing.d.ts.map +1 -0
- package/lib/types/leasing.js +24 -0
- package/lib/types/leasing.js.map +1 -0
- package/lib/types/machines.d.ts +38 -0
- package/lib/types/machines.d.ts.map +1 -0
- package/lib/types/machines.js +3 -0
- package/lib/types/machines.js.map +1 -0
- package/lib/types/opportunities.d.ts +448 -0
- package/lib/types/opportunities.d.ts.map +1 -0
- package/lib/types/opportunities.js +68 -0
- package/lib/types/opportunities.js.map +1 -0
- package/lib/types/payments.d.ts +38 -0
- package/lib/types/payments.d.ts.map +1 -0
- package/lib/types/payments.js +9 -0
- package/lib/types/payments.js.map +1 -0
- package/lib/types/picklists.d.ts +15 -4
- package/lib/types/picklists.d.ts.map +1 -1
- package/lib/types/quotes.d.ts +173 -0
- package/lib/types/quotes.d.ts.map +1 -0
- package/lib/types/quotes.js +26 -0
- package/lib/types/quotes.js.map +1 -0
- package/lib/types/recently-viewed.d.ts +33 -0
- package/lib/types/recently-viewed.d.ts.map +1 -0
- package/lib/types/recently-viewed.js +3 -0
- package/lib/types/recently-viewed.js.map +1 -0
- package/lib/types/saved-filters.d.ts +20 -0
- package/lib/types/saved-filters.d.ts.map +1 -0
- package/lib/types/saved-filters.js +3 -0
- package/lib/types/saved-filters.js.map +1 -0
- package/lib/types/search.d.ts +26 -4
- package/lib/types/search.d.ts.map +1 -1
- package/lib/types/search.js.map +1 -1
- package/lib/types/settings.d.ts +50 -0
- package/lib/types/settings.d.ts.map +1 -0
- package/lib/types/settings.js +3 -0
- package/lib/types/settings.js.map +1 -0
- package/lib/types/storage.d.ts +1 -11
- package/lib/types/storage.d.ts.map +1 -1
- package/lib/types/storage.js +15 -0
- package/lib/types/storage.js.map +1 -1
- package/lib/types/templates.d.ts +35 -0
- package/lib/types/templates.d.ts.map +1 -0
- package/lib/types/templates.js +9 -0
- package/lib/types/templates.js.map +1 -0
- package/lib/types/tenants.d.ts +32 -9
- package/lib/types/tenants.d.ts.map +1 -1
- package/lib/types/tenants.js +11 -0
- package/lib/types/tenants.js.map +1 -1
- package/lib/types/users.d.ts +11 -3
- package/lib/types/users.d.ts.map +1 -1
- package/lib/types/utils.d.ts +20 -0
- package/lib/types/utils.d.ts.map +1 -1
- package/lib/types/utils.js +6 -0
- package/lib/types/utils.js.map +1 -1
- package/lib/types/vehicles.d.ts +406 -92
- package/lib/types/vehicles.d.ts.map +1 -1
- package/lib/types/vehicles.js +54 -1
- package/lib/types/vehicles.js.map +1 -1
- package/lib/types/website.d.ts +24 -0
- package/lib/types/website.d.ts.map +1 -0
- package/lib/types/website.js +3 -0
- package/lib/types/website.js.map +1 -0
- package/lib/utils/forms.d.ts +6 -0
- package/lib/utils/forms.d.ts.map +1 -0
- package/lib/utils/forms.js +33 -0
- package/lib/utils/forms.js.map +1 -0
- package/lib/utils/leasing.d.ts +3 -0
- package/lib/utils/leasing.d.ts.map +1 -0
- package/lib/utils/leasing.js +10 -0
- package/lib/utils/leasing.js.map +1 -0
- package/lib/utils/slug.d.ts +3 -0
- package/lib/utils/slug.d.ts.map +1 -0
- package/lib/utils/slug.js +23 -0
- package/lib/utils/slug.js.map +1 -0
- package/lib/utils/tenants.d.ts +4 -0
- package/lib/utils/tenants.d.ts.map +1 -0
- package/lib/utils/tenants.js +16 -0
- package/lib/utils/tenants.js.map +1 -0
- package/lib/utils/vehicles.d.ts +12 -0
- package/lib/utils/vehicles.d.ts.map +1 -0
- package/lib/utils/vehicles.js +73 -0
- package/lib/utils/vehicles.js.map +1 -0
- package/package.json +8 -6
- package/src/apis/crm.ts +302 -0
- package/src/apis/documents.ts +54 -0
- package/src/apis/internet-vehicles.ts +23 -0
- package/src/apis/leasing-administration.ts +70 -0
- package/src/apis/leasing.ts +257 -0
- package/src/apis/opportunities.ts +133 -0
- package/src/apis/picklists.ts +50 -0
- package/src/apis/tenants.ts +100 -0
- package/src/apis/users.ts +22 -0
- package/src/apis/utils.ts +23 -0
- package/src/apis/vehicles.ts +229 -0
- package/src/constants.ts +930 -1
- package/src/ddb-entities.ts +1 -0
- package/src/environment.d.ts +6 -0
- package/src/types/activities.ts +41 -0
- package/src/types/crm.ts +118 -30
- package/src/types/definitions.ts +19 -12
- package/src/types/documents.ts +110 -0
- package/src/types/fields.ts +72 -31
- package/src/types/internet-vehicles.ts +67 -0
- package/src/types/leads.ts +144 -0
- package/src/types/leasing-administration.ts +131 -0
- package/src/types/leasing-search.ts +24 -0
- package/src/types/leasing-settings.ts +111 -0
- package/src/types/leasing.ts +360 -0
- package/src/types/machines.ts +40 -0
- package/src/types/opportunities.ts +496 -0
- package/src/types/payments.ts +40 -0
- package/src/types/picklists.ts +26 -7
- package/src/types/quotes.ts +186 -0
- package/src/types/recently-viewed.ts +45 -0
- package/src/types/saved-filters.ts +21 -0
- package/src/types/search.ts +34 -4
- package/src/types/settings.ts +51 -0
- package/src/types/storage.ts +1 -12
- package/src/types/templates.ts +40 -0
- package/src/types/tenants.ts +37 -11
- package/src/types/users.ts +17 -3
- package/src/types/utils.ts +25 -0
- package/src/types/vehicles.ts +461 -93
- package/src/types/website.ts +28 -0
- package/src/utils/forms.ts +32 -0
- package/src/utils/leasing.ts +14 -0
- package/src/utils/slug.ts +19 -0
- package/src/utils/tenants.ts +14 -0
- package/src/utils/vehicles.ts +92 -0
- package/tsconfig.tsbuildinfo +1 -2995
- package/lib/types/interests.d.ts +0 -23
- package/lib/types/interests.d.ts.map +0 -1
- package/lib/types/interests.js.map +0 -1
- package/src/types/interests.ts +0 -20
|
@@ -0,0 +1,64 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,oBAAY,sCAAsC,GAAG;IACnD,qBAAqB,EAAE,sBAAsB,CAAC;CAC/C,CAAC;AAEF,oBAAY,yBAAyB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE7D,oBAAY,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,GAAG,CAAC,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B,CAAC;AAEF,oBAAY,eAAe,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAEnE,oBAAY,qBAAqB,GAAG;IAClC,OAAO,EAAE,eAAe,CAAC;IACzB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,CAAC,QAAQ,EAAE,MAAM,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internet-vehicles.js","sourceRoot":"","sources":["../../src/types/internet-vehicles.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,134 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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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AO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,gBAAgB,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leads.js","sourceRoot":"","sources":["../../src/types/leads.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,E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F,CAAC;AAEF,oBAAY,IAAI,CAAC,CAAC,IAAI;IACpB,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leasing-administration.js","sourceRoot":"","sources":["../../src/types/leasing-administration.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leasing-search.js","sourceRoot":"","sources":["../../src/types/leasing-search.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{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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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leasing-settings.js","sourceRoot":"","sources":["../../src/types/leasing-settings.ts"],"names":[],"mappings":";;;AAgFA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,iDAAqB,CAAA;IACrB,2CAAe,CAAA;IACf,+CAAmB,CAAA;AACrB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC"}
|