@bisondesk/core-sdk 1.0.315 → 1.0.317
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/cjs/apis/crm.js +0 -1
- package/lib/cjs/apis/crm.js.map +1 -1
- package/lib/cjs/apis/documents.js +1 -24
- package/lib/cjs/apis/documents.js.map +1 -1
- package/lib/cjs/apis/opportunities.js.map +1 -1
- package/lib/cjs/constants.js +5 -2
- package/lib/cjs/constants.js.map +1 -1
- package/lib/cjs/types/crm.js.map +1 -1
- package/lib/cjs/types/documents.js +1 -8
- package/lib/cjs/types/documents.js.map +1 -1
- package/lib/cjs/types/leasing-debtors.js.map +1 -1
- package/lib/cjs/types/leasing-settings.js.map +1 -1
- package/lib/cjs/types/opportunities.js +7 -1
- package/lib/cjs/types/opportunities.js.map +1 -1
- package/lib/cjs/types/payments.js +2 -1
- package/lib/cjs/types/payments.js.map +1 -1
- package/lib/cjs/types/quote-settings.js +3 -0
- package/lib/cjs/types/quote-settings.js.map +1 -0
- package/lib/cjs/types/quotes.js.map +1 -1
- package/lib/cjs/types/search.js.map +1 -1
- package/lib/cjs/types/tenants.js.map +1 -1
- package/lib/cjs/types/vehicles.js.map +1 -1
- package/lib/esm/apis/crm.js +0 -1
- package/lib/esm/apis/crm.js.map +1 -1
- package/lib/esm/apis/documents.js +0 -22
- package/lib/esm/apis/documents.js.map +1 -1
- package/lib/esm/apis/opportunities.js.map +1 -1
- package/lib/esm/constants.js +3 -0
- package/lib/esm/constants.js.map +1 -1
- package/lib/esm/types/crm.js.map +1 -1
- package/lib/esm/types/documents.js +0 -7
- package/lib/esm/types/documents.js.map +1 -1
- package/lib/esm/types/leasing-debtors.js.map +1 -1
- package/lib/esm/types/leasing-settings.js.map +1 -1
- package/lib/esm/types/opportunities.js +6 -0
- package/lib/esm/types/opportunities.js.map +1 -1
- package/lib/esm/types/payments.js +1 -0
- package/lib/esm/types/payments.js.map +1 -1
- package/lib/esm/types/quote-settings.js +2 -0
- package/lib/esm/types/quote-settings.js.map +1 -0
- package/lib/esm/types/quotes.js.map +1 -1
- package/lib/esm/types/search.js.map +1 -1
- package/lib/esm/types/tenants.js.map +1 -1
- package/lib/esm/types/vehicles.js.map +1 -1
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/apis/crm.d.ts.map +1 -1
- package/lib/types/apis/documents.d.ts +0 -1
- package/lib/types/apis/documents.d.ts.map +1 -1
- package/lib/types/apis/opportunities.d.ts +1 -1
- package/lib/types/apis/opportunities.d.ts.map +1 -1
- package/lib/types/constants.d.ts +3 -0
- package/lib/types/constants.d.ts.map +1 -1
- package/lib/types/types/crm.d.ts +3 -1
- package/lib/types/types/crm.d.ts.map +1 -1
- package/lib/types/types/documents.d.ts +1 -16
- package/lib/types/types/documents.d.ts.map +1 -1
- package/lib/types/types/leasing-debtors.d.ts +3 -1
- package/lib/types/types/leasing-debtors.d.ts.map +1 -1
- package/lib/types/types/leasing-settings.d.ts +0 -71
- package/lib/types/types/leasing-settings.d.ts.map +1 -1
- package/lib/types/types/opportunities.d.ts +9 -0
- package/lib/types/types/opportunities.d.ts.map +1 -1
- package/lib/types/types/payments.d.ts +1 -0
- package/lib/types/types/payments.d.ts.map +1 -1
- package/lib/types/types/quote-settings.d.ts +89 -0
- package/lib/types/types/quote-settings.d.ts.map +1 -0
- package/lib/types/types/quotes.d.ts +8 -14
- package/lib/types/types/quotes.d.ts.map +1 -1
- package/lib/types/types/search.d.ts +1 -7
- package/lib/types/types/search.d.ts.map +1 -1
- package/lib/types/types/tenants.d.ts +1 -1
- package/lib/types/types/tenants.d.ts.map +1 -1
- package/lib/types/types/vehicles.d.ts +25 -0
- package/lib/types/types/vehicles.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/apis/crm.ts +0 -1
- package/src/apis/documents.ts +0 -29
- package/src/apis/opportunities.ts +1 -1
- package/src/constants.ts +3 -0
- package/src/types/crm.ts +3 -0
- package/src/types/documents.ts +1 -18
- package/src/types/leasing-debtors.ts +3 -1
- package/src/types/leasing-settings.ts +0 -76
- package/src/types/opportunities.ts +10 -0
- package/src/types/payments.ts +2 -0
- package/src/types/quote-settings.ts +93 -0
- package/src/types/quotes.ts +7 -16
- package/src/types/search.ts +1 -9
- package/src/types/tenants.ts +1 -1
- package/src/types/vehicles.ts +30 -0
package/lib/esm/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"/","sources":["constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAKrE,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC;AACxD,MAAM,CAAC,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;AAC9D,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC;AACjD,MAAM,CAAC,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AACvE,MAAM,CAAC,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AACvE,MAAM,CAAC,MAAM,oCAAoC,GAAG,uBAAuB,CAAC;AAC5E,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC;AACxD,MAAM,CAAC,MAAM,+BAA+B,GAAG,oBAAoB,CAAC;AACpE,MAAM,CAAC,MAAM,8BAA8B,GAAG,mBAAmB,CAAC;AAClE,MAAM,CAAC,MAAM,mCAAmC,GAAG,uBAAuB,CAAC;AAC3E,MAAM,CAAC,MAAM,uCAAuC,GAAG,2BAA2B,CAAC;AACnF,MAAM,CAAC,MAAM,8BAA8B,GAAG,oBAAoB,CAAC;AACnE,MAAM,CAAC,MAAM,sBAAsB,GAAG,YAAY,CAAC;AACnD,MAAM,CAAC,MAAM,0BAA0B,GAAG,cAAc,CAAC;AACzD,MAAM,CAAC,MAAM,wBAAwB,GAAG,a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,EAAE,QAAQ;YAClB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,KAAK;SAClB;KACF;IACD,UAAU,EAAE;QACV;YACE,EAAE,EAAE,CAAC;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,KAAK;SAClB;QACD;YACE,EAAE,EAAE,CAAC;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,KAAK;SAClB;QACD;YACE,EAAE,EAAE,CAAC;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,KAAK;SAClB;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC;AAGlD,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CAAC;AACzD,MAAM,CAAC,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;AAE7D,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACjB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB","sourcesContent":["import { VehicleAxle } from './types/vehicles';\n\nexport { BusinessEntityIds } from '@bisondesk/commons-sdk/constants';\n\n//\n// STATIC PICKLIST IDS\n//\nexport const APP_LANGUAGES_PICKLIST_ID = 'appLanguages';\nexport const CLIENT_LANGUAGES_PICKLIST_ID = 'clientLanguages';\nexport const TIMEZONES_PICKLIST_ID = 'timezones';\nexport const COUNTRIES_PICKLIST_ID = 'countries';\nexport const VEHICLE_MAIN_FEATURES_PICKLIST_ID = 'vehicleMainFeatures';\nexport const VEHICLE_STATE_FILTERS_PICKLIST_ID = 'vehicleStateFilters';\nexport const VEHICLE_SALE_DEAL_STATUS_PICKLIST_ID = 'vehicleSaleDealStatus';\nexport const VEHICLE_ROLES_PICKLIST_ID = 'vehicleRoles';\nexport const MARKETING_PLATFORMS_PICKLIST_ID = 'marketingPlatforms';\nexport const OPPORTUNITY_STATUS_PICKLIST_ID = 'opportunityStatus';\nexport const OPPORTUNITY_DEAL_STATUS_PICKLIST_ID = 'opportunityDealStatus';\nexport const OPPORTUNITY_LOGISTIC_STATUS_PICKLIST_ID = 'opportunityLogisticStatus';\nexport const OPPORTUNITY_SOURCE_PICKLIST_ID = 'opportunity_source';\nexport const DEPARTMENT_PICKLIST_ID = 'department';\nexport const AXLE_TIRE_SIZE_PICKLIST_ID = 'axleTireSize';\nexport const GEARBOX_MAKE_PICKLIST_ID = 'gearboxMake';\nexport const LOCATION_PICKLIST_ID = 'location';\nexport const SUPPLIER_VAT_RATE_PICKLIST_ID = 'supplierVATRate';\nexport const AXLE_MAKE_PICKLIST_ID = 'axleMake';\nexport const TAILGATE_MAKE_PICKLIST_ID = 'tailgateMakes';\nexport const VAT_PERCENTAGE_PICKLIST_ID = 'vatPercentages';\nexport const CRANE_MAKE_PICKLIST_ID = 'craneMakes';\nexport const ENGINEERING_DOCS_PICKLIST_ID = 'engineeringDocs';\nexport const SHIPPING_COMPANIES_PICKLIST_ID = 'shippingCompanies';\nexport const SLB_PARTNERS_PICKLIST_ID = 'slb_partners';\nexport const PURCHASE_LOGISTICS_STATUS_PICKLIST_ID = 'purchaseLogisticsStatus';\n\nexport const PICKLIST_FALLBACK_LOCALE = 'en';\n\n//\n// STATIC PICKLIST ID VALUES\nexport const WEBSITE_MARKETING_PLATFORM_ID = 'PUBLIC_WEBSITE';\n\n//\n// STATIC PICKLIST IDS FROM HyperDMS\n//\nexport const BODYWORKS_PICKLIST_ID = 'bodywork';\nexport const CABINS_PICKLIST_ID = 'cabin';\nexport const CATEGORIES_PICKLIST_ID = 'category';\nexport const CONFIGURATIONS_PICKLIST_ID = 'configuration';\nexport const EURONORMS_PICKLIST_ID = 'euronorm';\nexport const TRANSMISSIONS_PICKLIST_ID = 'gearbox';\nexport const MAKES_PICKLIST_ID = 'make';\nexport const MAKE_MODELS_PICKLIST_ID = 'make_model';\nexport const MAKE_MODEL_TYPES_PICKLIST_ID = 'make_model_type';\nexport const SUSPENSIONS_PICKLIST_ID = 'suspension';\nexport const ORG_SEGMENTS_PICKLIST_ID = 'segment';\nexport const HEIGTHENED_PICKLIST_ID = 'extended_height_dimension';\nexport const EXTENDED_PICKLIST_ID = 'extended_length_dimension';\nexport const JOB_CATEGORIES_PICKLIST_ID = 'job_category';\nexport const DOCUMENT_TYPES_PICKLIST_ID = 'document_types';\n\n//\n// STATIC VALUES FOR VEHICLE CATEGORIES\n//\nexport enum Categories {\n TractorHead = 'Tractor Head',\n Truck = 'Truck',\n Trailer = 'Trailer',\n SemiTrailer = 'Semi-Trailer',\n Van = 'Van',\n Machine = 'Machine',\n Car = 'Car',\n Superstructure = 'Superstructure',\n}\n\n//\n// PICKLIST CONSTANTS\n//\nexport const MAX_SORT_PRIORITY = 10_000;\nexport const MIN_SORT_PRIORITY = 1;\n\n//\n// SEARCH\n//\nexport const FILTER_RANGE_SEPARATOR = '__';\nexport const FILTER_MULTIPLE_SEPARATOR = '__';\n\n//\n// Lead interests\n//\nexport const MAX_AGE = 15;\nexport const MAX_KM = 1_000_000;\nexport const MAX_PRICE = 100_000;\nexport const PRICE_ROUNDING = 1000;\nexport const KM_ROUNDING = 100_000;\n\n//\n// Leasing administration\n//\nexport enum LeasingAdminUploadHandlers {\n DhondtMonthly = 'dhondt-monthly-invoice',\n DhondtProrata = 'dhondt-prorata-invoice',\n Belfius = 'belfius-monthly-invoice',\n ING = 'ing-monthly-invoice',\n}\n\nexport enum LeasingAdminEntities {\n Dhondt = 'dhondt',\n Becris = 'becris',\n ING = 'ing',\n}\n\nexport enum LeasingAdminUploadErrors {\n DuplicatedFile = 'leasing-administration.file-already-exists',\n FetchCurrentFile = 'leasing-administration.diff.fetch-current-file-failed',\n InvalidAttachment = 'leasing-administration.invalid-attachment',\n InvalidBelfiusXlsx = 'leasing-administration.belfius.invalid-xlsx',\n InvalidHandlerId = 'leasing-administration.invalid-handler',\n InvalidInvoiceFormat = 'leasing-administration.upload.invalid-invoice',\n NegativeAmount = 'leasing-administration.negative-amount',\n OngoingUpload = 'leasing-administration.ongoing-upload',\n Publish = 'leasing-administration.upload.publish-failed',\n UnknownVehicle = 'leasing-administration.belfius.unknown-vehicle',\n MissingVehicle = 'leasing-administration.belfius.missing-vehicle',\n Validation = 'leasing-administration.upload.invalid-request',\n}\n\n//\n// Lead interests\n//\nexport const INTERNET_VEHICLES_ANALYSIS_ALL_DATA = 'all';\n\n//\n// Opportunities\n//\nexport enum OpportunityType {\n LEASING = 'leasing',\n SALES = 'sales',\n}\n\n//\n// VEHICLES\n//\nexport const UNKNOWN_MAKE = 'other';\n\nexport const AXLE_CONFIG: { [config: string]: VehicleAxle[] } = {\n '4x2': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '4x4': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '6x2': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: true,\n },\n ],\n '6x4': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '6x6': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '8x2': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: true,\n },\n ],\n '8x4': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '8x6': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '8x8': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '10x4': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '10x6': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '10x8': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '10x10': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '1 axle': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '2 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '3 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '4 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '5 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '6 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 6,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '7 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 6,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 7,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '8 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 6,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 7,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 8,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '1 front, 1 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '1 front, 2 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '1 front, 3 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '2 front, 2 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '2 front, 3 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '1 middle': [\n {\n nr: 1,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '2 middle': [\n {\n nr: 1,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '3 middle': [\n {\n nr: 1,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n};\n\nexport const DEBTORS_MONTHS_UNTIL_TODAY_COUNT = 6;\n\n// Email Template IDs\nexport const VEHICLE_SHARE_TEMPLATE_ID = 'vehicle-share';\nexport const SIGNATURE_EMAIL_TEMPLATE_ID = 'signature-email';\n\nexport enum WarningHints {\n INFO = 'info',\n WARNING = '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UAAU,EAAE;QACV;YACE,EAAE,EAAE,CAAC;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,KAAK;SAClB;QACD;YACE,EAAE,EAAE,CAAC;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,KAAK;SAClB;QACD;YACE,EAAE,EAAE,CAAC;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,KAAK;SAClB;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC;AAGlD,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CAAC;AACzD,MAAM,CAAC,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;AAE7D,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACjB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB","sourcesContent":["import { VehicleAxle } from './types/vehicles';\n\nexport { BusinessEntityIds } from '@bisondesk/commons-sdk/constants';\n\n//\n// STATIC PICKLIST IDS\n//\nexport const APP_LANGUAGES_PICKLIST_ID = 'appLanguages';\nexport const CLIENT_LANGUAGES_PICKLIST_ID = 'clientLanguages';\nexport const TIMEZONES_PICKLIST_ID = 'timezones';\nexport const COUNTRIES_PICKLIST_ID = 'countries';\nexport const VEHICLE_MAIN_FEATURES_PICKLIST_ID = 'vehicleMainFeatures';\nexport const VEHICLE_STATE_FILTERS_PICKLIST_ID = 'vehicleStateFilters';\nexport const VEHICLE_SALE_DEAL_STATUS_PICKLIST_ID = 'vehicleSaleDealStatus';\nexport const VEHICLE_ROLES_PICKLIST_ID = 'vehicleRoles';\nexport const MARKETING_PLATFORMS_PICKLIST_ID = 'marketingPlatforms';\nexport const OPPORTUNITY_STATUS_PICKLIST_ID = 'opportunityStatus';\nexport const OPPORTUNITY_DEAL_STATUS_PICKLIST_ID = 'opportunityDealStatus';\nexport const OPPORTUNITY_PAYMENT_STATUS_PICKLIST_ID = 'opportunityPaymentStatus';\nexport const OPPORTUNITY_LOGISTIC_STATUS_PICKLIST_ID = 'opportunityLogisticStatus';\nexport const OPPORTUNITY_SOURCE_PICKLIST_ID = 'opportunity_source';\nexport const ORGANIZATION_RISK_TAGS_PICKLIST_ID = 'organizationRiskTags';\nexport const DEPARTMENT_PICKLIST_ID = 'department';\nexport const AXLE_TIRE_SIZE_PICKLIST_ID = 'axleTireSize';\nexport const GEARBOX_MAKE_PICKLIST_ID = 'gearboxMake';\nexport const LOCATION_PICKLIST_ID = 'location';\nexport const SUPPLIER_VAT_RATE_PICKLIST_ID = 'supplierVATRate';\nexport const AXLE_MAKE_PICKLIST_ID = 'axleMake';\nexport const TAILGATE_MAKE_PICKLIST_ID = 'tailgateMakes';\nexport const VAT_PERCENTAGE_PICKLIST_ID = 'vatPercentages';\nexport const CRANE_MAKE_PICKLIST_ID = 'craneMakes';\nexport const ENGINEERING_DOCS_PICKLIST_ID = 'engineeringDocs';\nexport const SHIPPING_COMPANIES_PICKLIST_ID = 'shippingCompanies';\nexport const SLB_PARTNERS_PICKLIST_ID = 'slb_partners';\nexport const PURCHASE_LOGISTICS_STATUS_PICKLIST_ID = 'purchaseLogisticsStatus';\nexport const QUOTE_STATUS_PICKLIST_ID = 'quoteStatus';\n\nexport const PICKLIST_FALLBACK_LOCALE = 'en';\n\n//\n// STATIC PICKLIST ID VALUES\nexport const WEBSITE_MARKETING_PLATFORM_ID = 'PUBLIC_WEBSITE';\n\n//\n// STATIC PICKLIST IDS FROM HyperDMS\n//\nexport const BODYWORKS_PICKLIST_ID = 'bodywork';\nexport const CABINS_PICKLIST_ID = 'cabin';\nexport const CATEGORIES_PICKLIST_ID = 'category';\nexport const CONFIGURATIONS_PICKLIST_ID = 'configuration';\nexport const EURONORMS_PICKLIST_ID = 'euronorm';\nexport const TRANSMISSIONS_PICKLIST_ID = 'gearbox';\nexport const MAKES_PICKLIST_ID = 'make';\nexport const MAKE_MODELS_PICKLIST_ID = 'make_model';\nexport const MAKE_MODEL_TYPES_PICKLIST_ID = 'make_model_type';\nexport const SUSPENSIONS_PICKLIST_ID = 'suspension';\nexport const ORG_SEGMENTS_PICKLIST_ID = 'segment';\nexport const HEIGTHENED_PICKLIST_ID = 'extended_height_dimension';\nexport const EXTENDED_PICKLIST_ID = 'extended_length_dimension';\nexport const JOB_CATEGORIES_PICKLIST_ID = 'job_category';\nexport const DOCUMENT_TYPES_PICKLIST_ID = 'document_types';\n\n//\n// STATIC VALUES FOR VEHICLE CATEGORIES\n//\nexport enum Categories {\n TractorHead = 'Tractor Head',\n Truck = 'Truck',\n Trailer = 'Trailer',\n SemiTrailer = 'Semi-Trailer',\n Van = 'Van',\n Machine = 'Machine',\n Car = 'Car',\n Superstructure = 'Superstructure',\n}\n\n//\n// PICKLIST CONSTANTS\n//\nexport const MAX_SORT_PRIORITY = 10_000;\nexport const MIN_SORT_PRIORITY = 1;\n\n//\n// SEARCH\n//\nexport const FILTER_RANGE_SEPARATOR = '__';\nexport const FILTER_MULTIPLE_SEPARATOR = '__';\n\n//\n// Lead interests\n//\nexport const MAX_AGE = 15;\nexport const MAX_KM = 1_000_000;\nexport const MAX_PRICE = 100_000;\nexport const PRICE_ROUNDING = 1000;\nexport const KM_ROUNDING = 100_000;\n\n//\n// Leasing administration\n//\nexport enum LeasingAdminUploadHandlers {\n DhondtMonthly = 'dhondt-monthly-invoice',\n DhondtProrata = 'dhondt-prorata-invoice',\n Belfius = 'belfius-monthly-invoice',\n ING = 'ing-monthly-invoice',\n}\n\nexport enum LeasingAdminEntities {\n Dhondt = 'dhondt',\n Becris = 'becris',\n ING = 'ing',\n}\n\nexport enum LeasingAdminUploadErrors {\n DuplicatedFile = 'leasing-administration.file-already-exists',\n FetchCurrentFile = 'leasing-administration.diff.fetch-current-file-failed',\n InvalidAttachment = 'leasing-administration.invalid-attachment',\n InvalidBelfiusXlsx = 'leasing-administration.belfius.invalid-xlsx',\n InvalidHandlerId = 'leasing-administration.invalid-handler',\n InvalidInvoiceFormat = 'leasing-administration.upload.invalid-invoice',\n NegativeAmount = 'leasing-administration.negative-amount',\n OngoingUpload = 'leasing-administration.ongoing-upload',\n Publish = 'leasing-administration.upload.publish-failed',\n UnknownVehicle = 'leasing-administration.belfius.unknown-vehicle',\n MissingVehicle = 'leasing-administration.belfius.missing-vehicle',\n Validation = 'leasing-administration.upload.invalid-request',\n}\n\n//\n// Lead interests\n//\nexport const INTERNET_VEHICLES_ANALYSIS_ALL_DATA = 'all';\n\n//\n// Opportunities\n//\nexport enum OpportunityType {\n LEASING = 'leasing',\n SALES = 'sales',\n}\n\n//\n// VEHICLES\n//\nexport const UNKNOWN_MAKE = 'other';\n\nexport const AXLE_CONFIG: { [config: string]: VehicleAxle[] } = {\n '4x2': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '4x4': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '6x2': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: true,\n },\n ],\n '6x4': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '6x6': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '8x2': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: true,\n },\n ],\n '8x4': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '8x6': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '8x8': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '10x4': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '10x6': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '10x8': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Front',\n steering: true,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '10x10': [\n {\n nr: 1,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Front',\n steering: true,\n powered: true,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: true,\n twinWheels: true,\n },\n ],\n '1 axle': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '2 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '3 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '4 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '5 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '6 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 6,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '7 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 6,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 7,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '8 axles': [\n {\n nr: 1,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 6,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 7,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 8,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '1 front, 1 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '1 front, 2 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '1 front, 3 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '2 front, 2 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '2 front, 3 rear': [\n {\n nr: 1,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Front',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 4,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 5,\n position: 'Back',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '1 middle': [\n {\n nr: 1,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '2 middle': [\n {\n nr: 1,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n '3 middle': [\n {\n nr: 1,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 2,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n {\n nr: 3,\n position: 'Middle',\n steering: false,\n powered: false,\n twinWheels: false,\n },\n ],\n};\n\nexport const DEBTORS_MONTHS_UNTIL_TODAY_COUNT = 6;\n\n// Email Template IDs\nexport const VEHICLE_SHARE_TEMPLATE_ID = 'vehicle-share';\nexport const SIGNATURE_EMAIL_TEMPLATE_ID = 'signature-email';\n\nexport enum WarningHints {\n INFO = 'info',\n WARNING = 'warning',\n ERROR = 'error',\n}\n"]}
|
package/lib/esm/types/crm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crm.js","sourceRoot":"/","sources":["types/crm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"crm.js","sourceRoot":"/","sources":["types/crm.ts"],"names":[],"mappings":"AAmIA,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,+DAAsC,CAAA;IACtC,6DAAoC,CAAA;AACtC,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC;AAED,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,2DAAsC,CAAA;IACtC,yDAAoC,CAAA;AACtC,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,+CAA6B,CAAA;AAC/B,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB","sourcesContent":["import {\n Document,\n LocationValue,\n PhoneNumberRawValue,\n PhoneNumberValue,\n SearchPermissions,\n} from '@bisondesk/commons-sdk/types';\nimport { PublicSearchDefinition } from './definitions';\nimport { LeasingContract } from './leasing';\nimport { ReferenceData } from './utils';\n\nexport type CrmEvent = CrmOrganizationEvent | CrmContactEvent;\n\nexport type CrmContactEvent = {\n contactId: string;\n organizationId?: string;\n action: 'upsert' | 'delete';\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\nexport type CrmOrganizationEvent = {\n organizationId: string;\n action: 'upsert' | 'delete';\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\ntype BaseOrganization = {\n inUse: boolean;\n countryCode: string;\n syncedAt: string;\n name: string;\n segment?: string;\n type?: 'COMPANY' | 'INDIVIDUAL';\n vatNumber?: string;\n addresses?: {\n legal?: LocationValue;\n transport?: LocationValue;\n };\n accountManagers: string[];\n billingEmails?: string[];\n skipPaymentReminders?: boolean;\n trustworthy?: boolean;\n conglomerate?: boolean;\n riskTags?: string[];\n};\n\nexport type NewOrganization = BaseOrganization & {\n id?: undefined;\n externalId?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n};\n\nexport type Organization = BaseOrganization & {\n createdAt: string;\n externalId: number;\n createdBy: string;\n id: string;\n debt?: OrganizationDebtInfo;\n blocked?: boolean;\n blockedAt?: string;\n blockedBy?: string;\n blockedReason?: string;\n documents?: Document[];\n};\n\nexport type OrganizationDebtInfo = {\n overdueSince?: string;\n overdueInvoices: number;\n overdueAmount: string;\n unpaidInvoices: number;\n unpaidAmount: string;\n};\n\nexport type SearchOrganization = {\n org: Organization;\n contract: LeasingContract[]; // important for the logic regarding leasing overdue reminders\n};\n\nexport type PotentialDuplicatesReferenceData = ReferenceData & { blockIgnore?: boolean };\n\nexport type InputSearchOrganization = SearchOrganization & {\n permissions: SearchPermissions;\n};\n\nexport type SearchContact = {\n contact: Contact;\n org?: Organization;\n};\n\nexport type InputSearchContact = SearchContact & {\n permissions: SearchPermissions;\n};\n\nexport type CrmPublicSearchDefinitions = {\n searchOrg: PublicSearchDefinition;\n searchContact: PublicSearchDefinition;\n};\n\ntype BaseContact = {\n accountManager?: string;\n countryCode?: string;\n language?: string;\n emails: string[];\n job?: string;\n /** either firstName or lastName should be filled in */\n firstName?: string;\n lastName?: string;\n organizationId?: string;\n /** will not be filled if organizationId is present */\n orgName?: string;\n};\n\nexport type NewContact = BaseContact & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n phones: Array<PhoneNumberValue | PhoneNumberRawValue>;\n};\n\nexport type Contact = BaseContact & {\n id: string;\n createdAt: string;\n createdBy: string;\n phones: PhoneNumberValue[];\n};\n\nexport enum SaveContactResolution {\n IgnoreDuplicates = 'IGNORE_DUPLICATES',\n BlockDuplicates = 'BLOCK_DUPLICATES',\n}\n\nexport enum SaveOrgResolution {\n IgnoreDuplicates = 'IGNORE_DUPLICATES',\n BlockDuplicates = 'BLOCK_DUPLICATES',\n}\n\nexport enum CrmSearchScope {\n Tenant = 'tenant',\n Conglomerate = 'conglomerate',\n}\n"]}
|
|
@@ -3,11 +3,4 @@ export var FinanceDocumentActions;
|
|
|
3
3
|
FinanceDocumentActions["PAY_FINANCE_DOCUMENT"] = "pay_finance_document";
|
|
4
4
|
FinanceDocumentActions["DELETE_FINANCE_DOCUMENT"] = "delete_finance_document";
|
|
5
5
|
})(FinanceDocumentActions || (FinanceDocumentActions = {}));
|
|
6
|
-
export var FinanceDocumentSubtype;
|
|
7
|
-
(function (FinanceDocumentSubtype) {
|
|
8
|
-
FinanceDocumentSubtype["Invoice"] = "Invoice";
|
|
9
|
-
FinanceDocumentSubtype["CreditNote"] = "Credit Note";
|
|
10
|
-
FinanceDocumentSubtype["Proforma"] = "Proforma";
|
|
11
|
-
FinanceDocumentSubtype["PurchaseOrder"] = "Purchase Order";
|
|
12
|
-
})(FinanceDocumentSubtype || (FinanceDocumentSubtype = {}));
|
|
13
6
|
//# sourceMappingURL=documents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.js","sourceRoot":"/","sources":["types/documents.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,uEAA6C,CAAA;IAC7C,6EAAmD,CAAA;AACrD,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"/","sources":["types/documents.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,uEAA6C,CAAA;IAC7C,6EAAmD,CAAA;AACrD,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC","sourcesContent":["import { AttachmentValue, SearchPermissions } from '@bisondesk/commons-sdk/types';\nimport { Organization } from './crm';\nimport { PublicSearchDefinition } from './definitions';\n\nexport enum FinanceDocumentActions {\n PAY_FINANCE_DOCUMENT = 'pay_finance_document',\n DELETE_FINANCE_DOCUMENT = 'delete_finance_document',\n}\n\nexport type FinanceLine = {\n associations: {\n others: { vehicleId: string; label: string }[];\n sales: { id: string; vehicleId: string; label: string }[];\n purchases: { id: string; vehicleId: string; label: string }[];\n };\n description: string;\n id: string;\n lineCode: string;\n quantity: string;\n unitPriceExclusive: string;\n vatCode: string;\n vatCoefficient: string;\n};\n\nexport type NewExistingLeasingFinanceDocument = {\n id?: undefined;\n type: 'Sale Finance';\n subtype: 'Invoice' | 'Credit Note';\n issueDate: string;\n contractId: string;\n amount: string;\n paidAt?: string;\n dueDate?: string;\n attachment: AttachmentValue;\n invoiceNumber: string;\n vatPercentage: string;\n period: string;\n description: string;\n};\n\nexport type FinanceDocument = {\n id: string;\n branchId: string;\n\n type: 'Sale Finance' | 'Purchase Finance';\n subtype: 'Invoice' | 'Credit Note' | 'Proforma' | 'Purchase Order';\n reference: string;\n\n attachment: AttachmentValue;\n lines: FinanceLine[];\n notes?: string;\n\n createdAt: string;\n createdBy: string;\n issueDate: string;\n paidAt?: string;\n paymentNotes?: string;\n amount?: string;\n dueDate?: string;\n\n organizationSummary?: {\n id: string;\n code: string;\n name: string;\n country: string;\n vatNumber?: string;\n\n addressLine1?: string;\n addressLine2?: string;\n addressLine3?: string;\n postcode?: string;\n city?: string;\n\n email?: string;\n phone?: string;\n fax?: string;\n };\n};\n\nexport type FinanceDocumentEvent = {\n id: string;\n actionAt: string;\n action: 'upsert' | 'delete';\n userId: string;\n tenantId: string;\n type: 'Sale Finance' | 'Purchase Finance';\n subtype: string; // Invoice, Credit Note, etc.\n};\n\nexport type FinanceBookingEvent = {\n id: string;\n branchId: string;\n actionAt: string;\n userId: string;\n tenantId: string;\n type: 'Sale Finance' | 'Purchase Finance';\n};\n\nexport type FinanceBooking = {\n branchId: string; // same tenantId can have different companies\n bookingNumber: string; // same booking number can and will exist across different \"branches\", unique => BranchId / Journal / Booking Number\n documentId: string;\n\n booked: true;\n journal?: string;\n amount?: string;\n reportingPeriod?: number;\n reportingYear?: number;\n paid: boolean;\n\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n};\n\nexport type SearchDocumentVehicleRef = {\n id: string;\n stockNumber: string;\n administrativeNumber?: string;\n};\n\nexport type SearchFinanceDocument = {\n org?: Organization;\n doc: FinanceDocument;\n booking?: FinanceBooking;\n vehicle?: SearchDocumentVehicleRef[];\n};\n\nexport type InputSearchFinanceDocument = SearchFinanceDocument & {\n permissions: SearchPermissions;\n};\n\nexport type DocsSearchDefinitions = {\n searchFinanceDoc: PublicSearchDefinition;\n};\n\nexport type FinanceDocumentPayment = { documentId: string } & (\n | { paid: true; paidAt: string; comment?: string }\n | { paid: false; paidAt?: undefined; comment?: undefined }\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leasing-debtors.js","sourceRoot":"/","sources":["types/leasing-debtors.ts"],"names":[],"mappings":"","sourcesContent":["import { Organization } from './crm';\n\nexport type MonthData = {\n activeContractIds: string[];\n date: string; // YYYY-MM\n overdueAmount: string;\n unpaidAmount: string;\n overdueContractIds: string[];\n overdueInvoiceIds: string[];\n riskLevel: number;\n monthlyInvoicedAmount: string;\n};\n\nexport type DebtorInfo = {\n clientId: string;\n months: MonthData[];\n\n // properties related to the current month\n activeContracts: number;\n overdueAmount: string;\n unpaidAmount: string;\n overdueContracts: number;\n riskLevel: number;\n monthlyInvoicedAmount: string;\n};\n\nexport type SearchDebtorInfo = {\n org: Organization;\n debtor: DebtorInfo;\n custom: {\n riskLevelLabel: string;\n };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"leasing-debtors.js","sourceRoot":"/","sources":["types/leasing-debtors.ts"],"names":[],"mappings":"","sourcesContent":["import { Contact, Organization } from './crm';\n\nexport type MonthData = {\n activeContractIds: string[];\n date: string; // YYYY-MM\n overdueAmount: string;\n unpaidAmount: string;\n overdueContractIds: string[];\n overdueInvoiceIds: string[];\n riskLevel: number;\n monthlyInvoicedAmount: string;\n};\n\nexport type DebtorInfo = {\n clientId: string;\n months: MonthData[];\n\n // properties related to the current month\n activeContracts: number;\n overdueAmount: string;\n unpaidAmount: string;\n overdueContracts: number;\n riskLevel: number;\n monthlyInvoicedAmount: string;\n};\n\nexport type SearchDebtorInfo = {\n org: Organization;\n contact?: Contact;\n debtor: DebtorInfo;\n custom: {\n riskLevelLabel: string;\n hasActiveContracts: boolean;\n };\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leasing-settings.js","sourceRoot":"/","sources":["types/leasing-settings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"leasing-settings.js","sourceRoot":"/","sources":["types/leasing-settings.ts"],"names":[],"mappings":"AAwCA,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,iDAAqB,CAAA;IACrB,2CAAe,CAAA;IACf,+CAAmB,CAAA;AACrB,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC","sourcesContent":["import { MultiLangValue } from '@bisondesk/commons-sdk/types';\nimport { Categories, OpportunityType } from '../constants';\nimport { SortFilter } from './search';\n\ntype BaseQuoteExtraSettings = {\n referenceCode: string;\n active: boolean;\n costPrice: string;\n countryCode: string;\n deliveryPackage: boolean;\n displayByDefault: boolean;\n hint?: MultiLangValue;\n name: MultiLangValue;\n salesPrice: string;\n vehicleCategoryRestrictions: Categories[];\n departments: string[];\n departmentTitles?: { [department: string]: string };\n opportunityTypeRestrictions: OpportunityType[];\n};\n\nexport type BaseQuoteExtraInput = {\n agreedPrice: string;\n costPrice: string;\n hint?: MultiLangValue;\n name: MultiLangValue;\n referenceCode: string;\n quantity: number;\n id: string;\n departments: string[];\n departmentTitles?: { [department: string]: string };\n};\n\nexport type NewQuoteExtraSettings = BaseQuoteExtraSettings & {\n id?: undefined;\n};\n\nexport type QuoteExtraSettings = BaseQuoteExtraSettings & {\n id: string;\n};\n\nexport enum LeasingItemsPaymentSplit {\n Customer = 'customer',\n Split = 'split',\n Company = 'company',\n}\n\nexport type LeasingDeliveryPackageInput = BaseQuoteExtraInput & { salesPrice: string };\n\nexport type CustomLeasingQuoteExtraInput = BaseQuoteExtraInput & {\n paymentSplit: LeasingItemsPaymentSplit;\n leasingPercentage: string;\n};\n\nexport type LeasingQuoteExtraInput = BaseQuoteExtraInput & {\n salesPrice: string;\n paymentSplit: LeasingItemsPaymentSplit;\n leasingPercentage: string;\n};\n\nexport type QuoteExtrasRequest = {\n deliveryPackage?: boolean;\n displayByDefault?: boolean;\n vehicleCategory?: Categories;\n country: string;\n name?: string;\n active?: boolean;\n offset?: number;\n limit?: number;\n sortBy?: SortFilter;\n opportunityType?: OpportunityType;\n};\n\nexport type SalesQuoteExtraInput = BaseQuoteExtraInput & {\n salesPrice: string;\n};\n\nexport type CustomSalesQuoteExtraInput = BaseQuoteExtraInput & {};\n"]}
|
|
@@ -26,6 +26,12 @@ export var OpportunityDealStatus;
|
|
|
26
26
|
OpportunityDealStatus["FIRST_PAYMENT"] = "first_payment";
|
|
27
27
|
OpportunityDealStatus["FULL_PAYMENT"] = "full_payment";
|
|
28
28
|
})(OpportunityDealStatus || (OpportunityDealStatus = {}));
|
|
29
|
+
export var OpportunityPaymentStatus;
|
|
30
|
+
(function (OpportunityPaymentStatus) {
|
|
31
|
+
OpportunityPaymentStatus["PARTIAL_PAYMENT"] = "partial_payment";
|
|
32
|
+
OpportunityPaymentStatus["FULL_PAYMENT"] = "full_payment";
|
|
33
|
+
OpportunityPaymentStatus["NO_PAYMENT"] = "no_payment";
|
|
34
|
+
})(OpportunityPaymentStatus || (OpportunityPaymentStatus = {}));
|
|
29
35
|
export var OpportunityStatus;
|
|
30
36
|
(function (OpportunityStatus) {
|
|
31
37
|
OpportunityStatus["PROSPECTION"] = "prospection";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opportunities.js","sourceRoot":"/","sources":["types/opportunities.ts"],"names":[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AyB,KAAzB,yBAAyB,QAGpC;AAED,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,sEAAuC,CAAA;IACvC,8DAA+B,CAAA;AACjC,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,QAGtC;AAED,MAAM,CAAN,IAAY,uBASX;AATD,WAAY,uBAAuB;IACjC,gFAAqD,CAAA;IACrD,2FAAgE,CAAA;IAChE,gFAAqD,CAAA;IACrD,gEAAqC,CAAA;IACrC,gGAAqE,CAAA;IACrE,oFAAyD,CAAA;IACzD,0FAA+D,CAAA;IAC/D,4FAAiE,CAAA;AACnE,CAAC,EATW,uBAAuB,KAAvB,uBAAuB,QASlC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAEnD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAAG,sBAAsB,EAAE,sBAAsB,CAAC,CAAC;AAE5F,MAAM,CAAC,MAAM,2BAA2B,GAAa,CAAC,sBAAsB,CAAC,CAAC;AAE9E,MAAM,CAAN,IAAY,2BAUX;AAVD,WAAY,2BAA2B;IACrC,sDAAuB,CAAA;IACvB,2DAA4B,CAAA;IAC5B,+DAAgC,CAAA;IAChC,wFAAyD,CAAA;IACzD,2DAA4B,CAAA;IAC5B,6DAA8B,CAAA;IAC9B,+DAAgC,CAAA;IAChC,+DAAgC,CAAA;IAChC,sDAAuB,CAAA;AACzB,CAAC,EAVW,2BAA2B,KAA3B,2BAA2B,QAUtC;AA2MD,MAAM,CAAC,MAAM,0CAA0C,GAAG,kBAAkB,CAAC;AAC7E,MAAM,CAAC,MAAM,4CAA4C,GAAG,2BAA2B,CAAC;AACxF,MAAM,CAAC,MAAM,iDAAiD,GAAG,+BAA+B,CAAC;AACjG,MAAM,CAAC,MAAM,gDAAgD,GAAG,8BAA8B,CAAC","sourcesContent":["import { Document, NextList } from '@bisondesk/commons-sdk/types';\nimport { BusinessEntityIds, OpportunityType, WarningHints } from '../constants';\nimport { Contact, Organization } from './crm';\nimport type { InterestBffMeta, OpportunityInterest } from './interests';\nimport { Payment } from './payments';\nimport { Quote, QuoteStatus } from './quotes';\nimport { OpportunityReservation } from './reservations';\nimport { BaseSearchRequest } from './search';\nimport { DataRecord, ReferenceData } from './utils';\nimport { Vehicle } from './vehicles';\n\nexport enum OpportunityActions {\n ADD_COMMISSION = 'add_commission',\n CREATE_QUOTE = 'create_quote',\n LOSE = 'lose',\n REOPEN = 'reopen',\n START_PREPARATION = 'start_preparation',\n REVERT_PREPARATION = 'revert_preparation',\n START_DELIVERY = 'start_delivery',\n REVERT_DELIVERY = 'revert_delivery',\n SET_CUSTOMER = 'set_customer',\n SET_DOCUMENTS = 'set_documents',\n SET_INTEREST = 'set_interest',\n SET_METADATA = 'set_metadata',\n SET_VEHICLE = 'set_vehicle',\n ADD_ACTIVITY = 'add_activity',\n ADD_PAYMENT = 'add_payment',\n SWITCH_VEHICLE = 'switch_vehicle',\n DELIVER_VEHICLE = 'deliver_vehicle',\n UNDO_DELIVER_VEHICLE = 'undo_deliver_vehicle',\n SET_DEAL_INFO = 'update_deal_info',\n}\n\nexport enum OpportunityDealStatus {\n SALES_AGREED = 'sales_agreed',\n FIRST_PAYMENT = 'first_payment',\n FULL_PAYMENT = 'full_payment',\n}\n\nexport enum OpportunityStatus {\n PROSPECTION = 'prospection',\n DISCOVERY = 'discovery',\n EVALUATION = 'evaluation',\n REVIEW = 'review',\n PREPARATION = 'preparation',\n DELIVERY = 'delivery',\n}\n\nexport const OpportunityStatusOrder: OpportunityStatus[] = [\n OpportunityStatus.PROSPECTION,\n OpportunityStatus.DISCOVERY,\n OpportunityStatus.EVALUATION,\n OpportunityStatus.REVIEW,\n OpportunityStatus.PREPARATION,\n OpportunityStatus.DELIVERY,\n];\n\nexport enum OpportunityLogisticStatus {\n AT_ORIGIN = 'at_origin',\n DELIVERED = 'delivered',\n}\n\nexport enum OpportunityRequirementsCode {\n VEHICLE_AT_ORIGIN = 'vehicle_at_origin',\n LEASING_SL_ACTION = 'sl_action',\n}\n\nexport enum OpportunityWarningsCode {\n QUOTE_PENDING_VALIDATION = 'quote_pending_validation',\n QUOTE_PEDING_MANAGER_APPROVAL = 'quote_pending_manager_approval',\n CONCURRENT_OPPORTUNITIES = 'concurrent_opportunities',\n VEHICLE_RESERVED = 'vehicle_reserved',\n OPPORTUNITY_NEEDS_SWITCH_VEHICLE = 'opportunity_needs_switch_vehicle',\n VEHICLE_RESERVED_DATE_INFO = 'vehicle_reserved_date_info',\n VEHICLE_RESERVED_INDEFINITELY = 'vehicle_reserved_indefinitely',\n QUOTE_MISSING_DELIVERY_DETAILS = 'quote_missing_delivery_details',\n}\n\nexport const OpportunityWonColumnId = 'closed_won';\n\nexport const OpportunityKanbanColumns = [...OpportunityStatusOrder, OpportunityWonColumnId];\n\nexport const OpportunityKanbanEndColumns: string[] = [OpportunityWonColumnId];\n\nexport enum OpportunityLostReasonValues {\n Expensive = 'expensive',\n AlreadySold = 'already_sold',\n BadExperience = 'bad_experience',\n IncorrectVehicleCondition = 'incorrect_vehicle_condition',\n NoStock = 'not_enough_stock',\n SlowDelivery = 'slow_delivery',\n HighDeposit = 'deposit_too_high',\n NoAnswer = 'client_not_answered',\n Automatic = 'automatic',\n}\n\ntype BaseBid = {\n vehicleId: string;\n opportunityId?: string;\n contactId: string;\n amount: string;\n};\n\nexport type NewBid = BaseBid & {};\n\nexport type Bid = BaseBid & {\n id: string;\n createdAt: string;\n createdBy: string;\n};\n\ntype BaseOpportunity = {\n accountManager?: string;\n administrativePerson?: string;\n type: OpportunityType;\n organizationId?: string;\n contactId?: string;\n vehicleId?: string;\n source?: string; // e.g. website, autoscout, mobile...\n branch: string;\n inquiry?: string;\n branchCountry: string;\n};\n\nexport type NewOpportunity = BaseOpportunity & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n modifiedAt?: undefined;\n modifiedBy?: undefined;\n};\n\nexport type Opportunity = BaseOpportunity & {\n id: string;\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n engagedAt?: string;\n engagedBy?: string;\n validatedAt?: string;\n validatedBy?: string;\n acceptedAt?: string;\n acceptedBy?: string;\n lastActivityAt?: string; // last time we reached out to the customer, regardless of medium\n reviewedAt?: string;\n reviewedBy?: string;\n preparedAt?: string;\n preparedBy?: string;\n lastBidAt?: string;\n lostAt?: string;\n lostBy?: string;\n wonAt?: string;\n lostReason?: OpportunityLostReasonValues;\n deliveredAt?: string;\n deliveredBy?: string;\n status: OpportunityStatus;\n dealStatus?: OpportunityDealStatus;\n logisticStatus?: OpportunityLogisticStatus;\n activeQuoteId?: string;\n amount?: string;\n documents?: Document[];\n leasingContractId?: string;\n requirementsOverride?: {\n [code: string]: { override: true; reason?: string; actionAt: string; actionBy: string };\n };\n};\n\nexport type OpportunityUpdate = {\n vehicleId?: string | null;\n accountManager?: string | null;\n administrativePerson?: string | null;\n contactId?: string | null;\n activeQuoteId?: string | null;\n reviewed?: boolean;\n prepared?: boolean;\n lost?: boolean;\n delivered?: boolean;\n lostReason?: OpportunityLostReasonValues;\n documents?: Document[];\n branch?: string;\n branchCountry?: string;\n type?: OpportunityType;\n lastActivityAt?: string | null; // null gives the possibility to delete this field if all activities are deleted\n lastBidAt?: string;\n source?: string | null;\n requirementsOverride?: {\n [code: string]: { override: true; reason?: string; actionAt: string; actionBy: string };\n };\n};\n\nexport type PaymentSummary = {\n total: string;\n paid: string;\n entries: DataRecord<Payment>[];\n};\n\nexport type VehicleBffMetadata = {\n openOpportunities: number;\n otherRelatedVehicleIds: string[];\n};\n\nexport type OpportunityStatusRequirement = { code: OpportunityRequirementsCode; title?: string };\n\ntype OportunityWarningActionLink = {\n businessEntityId: BusinessEntityIds;\n recordId: string;\n};\n\ntype OportunityWarningActionData = { [key: string]: string | number };\n\nexport type OpportunityWarning = {\n code: OpportunityWarningsCode;\n level: WarningHints;\n link?: OportunityWarningActionLink;\n data?: OportunityWarningActionData;\n showAction?: boolean;\n};\n\nexport type OpportunityBffMeta = ReferenceData & {\n requirements: OpportunityStatusRequirement[];\n warnings: OpportunityWarning[];\n};\n\nexport type OpportunityBFF = {\n opportunity: DataRecord<Opportunity, OpportunityBffMeta>;\n vehicle?: DataRecord<Vehicle, VehicleBffMetadata>;\n interest?: DataRecord<OpportunityInterest, InterestBffMeta>;\n bids: DataRecord<Bid>[];\n quotes: DataRecord<Quote>[];\n activeQuote?: DataRecord<Quote>;\n payments: PaymentSummary | undefined;\n reservation?: DataRecord<OpportunityReservation>;\n customer?: {\n contact: DataRecord<Contact>;\n org?: DataRecord<Organization>;\n };\n};\n\ntype BaseOpportunityEvent = {\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\nexport type OpportunityCreateEvent = BaseOpportunityEvent & {\n opportunity: Opportunity;\n previousOpportunity?: undefined;\n action: 'create';\n};\n\nexport type OpportunityUpdateEvent = BaseOpportunityEvent & {\n opportunity: Opportunity;\n previousOpportunity: Opportunity;\n action: 'update';\n};\n\nexport type OpportunityDeleteEvent = BaseOpportunityEvent & {\n opportunity?: undefined;\n previousOpportunity: Opportunity;\n action: 'delete';\n};\n\nexport type OpportunityEvent =\n | OpportunityCreateEvent\n | OpportunityUpdateEvent\n | OpportunityDeleteEvent;\n\nexport type QuoteEvent = {\n quote: Quote;\n opportunity: Opportunity;\n action: 'create' | 'update' | 'delete';\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\n/* Quote summary with information that should be common to different types of quotes */\nexport type QuoteInfo = {\n status: QuoteStatus;\n roi: string;\n id: string;\n};\n\nexport type SearchOpportunity = {\n contact?: Contact;\n opportunity: Opportunity;\n org?: Organization;\n vehicle?: Vehicle;\n quote?: QuoteInfo;\n custom: {\n unassigned: boolean;\n lost: boolean;\n assignees: string[];\n };\n};\n\nexport const QUOTE_NEEDS_VALIDATION_NOTIFICATION_ORIGIN = 'quote-validation';\nexport const QUOTE_VALIDATOR_FEEDBACK_NOTIFICATION_ORIGIN = 'quote-validation-feedback';\nexport const OPPORTUNITY_VEHICLE_AVAILABLE_NOTIFICATION_ORIGIN = 'opportunity-vehicle-available';\nexport const OPPORTUNITY_VEHICLE_DELIVERY_NOTIFICATION_ORIGIN = 'opportunity-vehicle-delivery';\n\nexport type OpportunityNotificationData = {\n quoteVersion?: number;\n snippet?: string;\n};\n\nexport type LeasingQuoteTemplateData = {\n opportunity: {\n id: string;\n };\n currentDate: string;\n vehicle: {\n make: string;\n model: string;\n type?: string;\n km: string | number;\n vin: string;\n mainImage: string;\n localLicensePlate: boolean;\n description: string;\n year?: string | number;\n stockNumber?: string;\n };\n accountManager: {\n fullName: string;\n email: string;\n phone: string;\n };\n customer: {\n company: string;\n fullName: string;\n vatNumber?: string;\n address?: string;\n };\n settingId: string;\n leasing: {\n deposit: string;\n startupFee: string;\n totalExtras: string;\n totalBeforeDeliveryExclVat: string;\n totalBeforeDelivery: string;\n installment: string;\n duration: number;\n monthlyInsurance: string;\n monthlyTax: string;\n monthlyTaxesInsurance: string;\n residual: string;\n offerNumber: string;\n extras: { name: string }[];\n };\n};\n\nexport type LineItemPdfTemplate = {\n description: string;\n vat: string;\n quantity: number;\n unitPriceExclVat: string;\n amount: string;\n amountExclVat: string;\n};\n\nexport type LeasingProformaTemplateData = {\n opportunity: {\n id: string;\n offerNumber: string;\n };\n currentDate: string;\n accountManager: {\n fullName: string;\n email: string;\n phone: string;\n };\n vehicle: {\n line1: string;\n line2: string;\n stockNumber: string;\n };\n c: {\n organizationId?: string;\n clientId: string;\n company: string;\n fullName: string;\n vatNumber?: string;\n email?: string;\n phone?: string;\n address?: string;\n };\n i: LineItemPdfTemplate[];\n t: {\n totalExclVat: string;\n vatAmount: string;\n displayVatMessage: boolean;\n total: string;\n monthly: string;\n monthlyExclVat: string;\n residual: string;\n residualExclVat: string;\n duration: number;\n };\n};\n\nexport type SalesProformaTemplateData = {\n opportunity: {\n id: string;\n offerNumber: string;\n };\n currentDate: string;\n expirationDate: string;\n accountManager: {\n fullName: string;\n email: string;\n phone: string;\n };\n vehicle: {\n line1: string;\n line2: string;\n stockNumber: string;\n };\n c: {\n organizationId?: string;\n clientId: string;\n company: string;\n fullName: string;\n vatNumber?: string;\n email?: string;\n phone?: string;\n address?: string;\n };\n i: LineItemPdfTemplate[];\n t: {\n totalExclVat: string;\n vatAmount: string;\n total: string;\n };\n};\n\nexport type SalesAgreementTemplateData = {\n opportunity: {\n id: string;\n offerNumber: string;\n };\n currentDate: string;\n accountManager: {\n fullName: string;\n email: string;\n phone: string;\n };\n vehicle: {\n line1: string;\n line2: string;\n stockNumber: string;\n };\n c: {\n organizationId?: string;\n clientId: string;\n company: string;\n fullName: string;\n vatNumber?: string;\n email?: string;\n phone?: string;\n address?: string;\n };\n i: LineItemPdfTemplate[];\n t: {\n totalExclVat: string;\n vatAmount: string;\n total: string;\n };\n};\n\nexport type OpportunitiesKanbanColumn = {\n status: string;\n results: SearchOpportunity[];\n totalCount: number;\n totalValue: string;\n};\n\nexport type MSearchOpportunitiesKanbanColumn = {\n column: OpportunitiesKanbanColumn;\n nextToken?: string;\n};\n\nexport type HpLeasingDealRequest = {\n tenantId: string;\n initiatedBy: 'bisondesk';\n processMetaId: string;\n processRunData: {\n entityOwner: string;\n leasingContractOwner: string;\n foreseenDeliveryDate?: string;\n deliveryAddressLeasing?: string;\n nameSalesPerson: string;\n durationLeasingInMonths: number;\n vanCourier: boolean;\n newVehicle?: boolean;\n newTrailer?: boolean;\n registrationOnTtcoBe?: string;\n yearOfConstruction?: number;\n chassisnumber?: string;\n vehicleModel?: string;\n vehicleCategory2?: string;\n licencePlate?: string;\n vatPercentage?: number;\n\n opportunityContractId: string;\n opportunityId: string;\n\n company?: string;\n customerNumber?: number; //bisondesk external id\n //MrLease fields\n vehicle?: string;\n salesPriceEur: string;\n depositFullAmountExclVat: string;\n depositToBePrepaidExclVat: string;\n vehicleMake3?: string;\n\n //TTC fields\n vehicleOriginalReference?: string;\n salesPrice: string;\n depositFullAmount: string;\n depositAmountToBePrepaid: string;\n make?: string;\n\n //Extras\n garageExtrasCodes: string[];\n allExtrasDescriptions: string[];\n administrationExtrasCodes: string[];\n logisticExtrasCodes: string[];\n customRequestDescriptions: string[];\n };\n};\n\nexport type HpLeasingDealResponse = {\n entityId: string;\n id: string;\n status: string;\n leasingContractNumber?: string;\n};\n\nexport type HpLeasingContractRequest = {\n tenantId: string;\n initiatedBy: 'bisondesk';\n processMetaId: string;\n processRunData: {\n entityOwner: string;\n company?: string;\n vehicle?: string;\n ldNumber: number;\n vanCourier: boolean;\n startDate: number;\n opportunityContractId: string;\n data: {\n leasingParameter: {\n allRisksPercentage: number;\n allRisksTaxPercentage: number;\n civilLiability: number;\n entityId: string;\n oneTimeRoadTax: number;\n specialInsurance: number;\n yearlyRoadTax: number;\n countries: string[];\n vehicleCategory: string;\n };\n\n calculatorRequest: {\n bankDeposit: number;\n bankDurationInMonths: number;\n bankInterestRatePercentage: number;\n bankResidualValue: number;\n deposit: number;\n durationInMonths: number;\n includesAllRisks: boolean;\n includesCivilLiability: boolean;\n includesOneTimeRoadTax: boolean;\n includesSpecialInsurance: boolean;\n includesYearlyRoadTax: boolean;\n insuranceAmount: number;\n interestRatePercentage: number;\n marginPercentage: number;\n monthlyAdministrationFee: 0;\n purchasePrice: number;\n residualValue: number;\n salesPrice: number;\n startupFeePercentage: number;\n };\n\n calculatorResponse: {\n ROI: number;\n ROIDifference: number;\n ROIPerYear: number;\n ROITarget: number;\n allRisksInsuranceAmount: number;\n bankContractValue: number;\n bankLeasingAmount: number;\n cashDeficit: number;\n financingAmount: number;\n leasingAmount: number;\n leasingContractValue: number;\n leasingProfit: number;\n monthlyTaxRetailPrice: number;\n oneTimeTaxCost: number;\n totalMonthlyPayment: number;\n totalProfit: number;\n vehicleProfit: number;\n };\n\n cashInValues: CashInRow[];\n\n cashOutValues: CashOutRow[];\n };\n };\n};\n\nexport type HpLeasingContractResponse = {\n entityId: string;\n id: string;\n status: string;\n createdAt: string;\n updatedAt: string;\n dateOfFinalSettlement: string;\n startDate: string;\n email: string;\n contractNumber: string;\n};\n\nexport type CashInRow = {\n time: number;\n deposit: number;\n monthlyAdministrationFee: 0; //Legacy field - Should always be 0\n residualValue: number;\n startupFee: number;\n leasingAmountWithoutAdminFee: number;\n insurancePayment: number;\n taxPayment: number;\n cashIn: number;\n cumulativeCash: number;\n};\n\nexport type CashOutRow = {\n time: number;\n deposit: number;\n residualValue: number;\n leasingAmount: number;\n insurancePayment: number;\n taxPayment: number;\n cashOut: number;\n cumulativeCash: number;\n};\n\nexport type HpDeliveryFields = {\n detailsOfStacking?: string | null;\n technicalControlNeeded: boolean | null;\n\n //PickUP Delivery\n urgentDelivery?: boolean | null;\n dateOfPickUpByCustomer?: number | null;\n modeOfTransportPickUpByCustomer?: string | null; //entity Id\n detailsOfBorderCrossing?: string | null;\n insuranceNeeded: boolean | null;\n transitPlateNeeded: boolean | null;\n licensePlateNeeded: boolean | null;\n\n //Address Delivery\n address?: string | null;\n kmToAddressOfDelivery?: number | null;\n\n //To Port Delivery\n originPortText?: string | null; //entity Id\n shippingCompany?: string | null; //string Id\n destinationPort?: string | null;\n cleaningDegassingNeeded: boolean | null;\n};\n\nexport type HpIsaProcessRequest = {\n tenantId: string;\n initiatedBy: 'bisondesk';\n processMetaId: string;\n processRunData: HpDeliveryFields & {\n entityOwner: string;\n nameSalesPerson: string;\n\n company?: string; //entityId\n proofOfSaleCustomerAgreement?: string; //entityId\n\n vehicle?: string; //entityId\n bodywork?: string; //entityId\n vehicleCategory: string; //entityId\n\n amountOfCommissionPaid: number;\n dealValidated: boolean;\n dealCancelled: boolean;\n opportunityId: string;\n deliveryType: string; //entity Id\n directDelivery?: boolean | null;\n directDeliveryReason?: string | null;\n agreedPrice?: string;\n\n //Extras\n garageExtrasCodes: string[];\n logisticsExtrasCodes: string[];\n administrationExtrasCodes: string[];\n allExtrasDescriptions: string[];\n customRequestDescriptions: string[];\n infoSpoiler: string; // entity Id\n };\n};\n\nexport type HpIsaProcessResponse = {\n entityId: string;\n id: string;\n status: string;\n};\n\nexport type SwitchOpportunityVehicleRequest = {\n opportunityId: string;\n newVehicleId: string;\n};\n\nexport type KanbanOpportunitiesSearchRequest = BaseSearchRequest & {\n nextTokens?: Record<string, string | undefined>;\n};\n\nexport type KanbanOpportunitiesNextList = Omit<\n NextList<OpportunitiesKanbanColumn, ReferenceData>,\n 'nextToken'\n> & {\n nextTokens?: Record<string, string | undefined>;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"opportunities.js","sourceRoot":"/","sources":["types/opportunities.ts"],"names":[],"mappings":"AAWA,MAAM,CAAN,IAAY,kBAoBX;AApBD,WAAY,kBAAkB;IAC5B,uDAAiC,CAAA;IACjC,mDAA6B,CAAA;IAC7B,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,6DAAuC,CAAA;IACvC,+DAAyC,CAAA;IACzC,uDAAiC,CAAA;IACjC,yDAAmC,CAAA;IACnC,mDAA6B,CAAA;IAC7B,qDAA+B,CAAA;IAC/B,mDAA6B,CAAA;IAC7B,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;IAC3B,mDAA6B,CAAA;IAC7B,iDAA2B,CAAA;IAC3B,uDAAiC,CAAA;IACjC,yDAAmC,CAAA;IACnC,mEAA6C,CAAA;IAC7C,wDAAkC,CAAA;AACpC,CAAC,EApBW,kBAAkB,KAAlB,kBAAkB,QAoB7B;AAED,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sDAA6B,CAAA;IAC7B,wDAA+B,CAAA;IAC/B,sDAA6B,CAAA;AAC/B,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC;AAED,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,+DAAmC,CAAA;IACnC,yDAA6B,CAAA;IAC7B,qDAAyB,CAAA;AAC3B,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC;AAED,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,8C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4B,CAAA;IAC5B,6DAA8B,CAAA;IAC9B,+DAAgC,CAAA;IAChC,+DAAgC,CAAA;IAChC,sDAAuB,CAAA;AACzB,CAAC,EAVW,2BAA2B,KAA3B,2BAA2B,QAUtC;AA8MD,MAAM,CAAC,MAAM,0CAA0C,GAAG,kBAAkB,CAAC;AAC7E,MAAM,CAAC,MAAM,4CAA4C,GAAG,2BAA2B,CAAC;AACxF,MAAM,CAAC,MAAM,iDAAiD,GAAG,+BAA+B,CAAC;AACjG,MAAM,CAAC,MAAM,gDAAgD,GAAG,8BAA8B,CAAC","sourcesContent":["import { Document, NextList } from '@bisondesk/commons-sdk/types';\nimport { BusinessEntityIds, OpportunityType, WarningHints } from '../constants';\nimport { Contact, Organization } from './crm';\nimport type { InterestBffMeta, OpportunityInterest } from './interests';\nimport { Payment } from './payments';\nimport { Quote, QuoteStatus } from './quotes';\nimport { OpportunityReservation } from './reservations';\nimport { BaseSearchRequest } from './search';\nimport { DataRecord, ReferenceData } from './utils';\nimport { Vehicle } from './vehicles';\n\nexport enum OpportunityActions {\n ADD_COMMISSION = 'add_commission',\n CREATE_QUOTE = 'create_quote',\n LOSE = 'lose',\n REOPEN = 'reopen',\n START_PREPARATION = 'start_preparation',\n REVERT_PREPARATION = 'revert_preparation',\n START_DELIVERY = 'start_delivery',\n REVERT_DELIVERY = 'revert_delivery',\n SET_CUSTOMER = 'set_customer',\n SET_DOCUMENTS = 'set_documents',\n SET_INTEREST = 'set_interest',\n SET_METADATA = 'set_metadata',\n SET_VEHICLE = 'set_vehicle',\n ADD_ACTIVITY = 'add_activity',\n ADD_PAYMENT = 'add_payment',\n SWITCH_VEHICLE = 'switch_vehicle',\n DELIVER_VEHICLE = 'deliver_vehicle',\n UNDO_DELIVER_VEHICLE = 'undo_deliver_vehicle',\n SET_DEAL_INFO = 'update_deal_info',\n}\n\nexport enum OpportunityDealStatus {\n SALES_AGREED = 'sales_agreed',\n FIRST_PAYMENT = 'first_payment',\n FULL_PAYMENT = 'full_payment',\n}\n\nexport enum OpportunityPaymentStatus {\n PARTIAL_PAYMENT = 'partial_payment',\n FULL_PAYMENT = 'full_payment',\n NO_PAYMENT = 'no_payment',\n}\n\nexport enum OpportunityStatus {\n PROSPECTION = 'prospection',\n DISCOVERY = 'discovery',\n EVALUATION = 'evaluation',\n REVIEW = 'review',\n PREPARATION = 'preparation',\n DELIVERY = 'delivery',\n}\n\nexport const OpportunityStatusOrder: OpportunityStatus[] = [\n OpportunityStatus.PROSPECTION,\n OpportunityStatus.DISCOVERY,\n OpportunityStatus.EVALUATION,\n OpportunityStatus.REVIEW,\n OpportunityStatus.PREPARATION,\n OpportunityStatus.DELIVERY,\n];\n\nexport enum OpportunityLogisticStatus {\n AT_ORIGIN = 'at_origin',\n DELIVERED = 'delivered',\n}\n\nexport enum OpportunityRequirementsCode {\n VEHICLE_AT_ORIGIN = 'vehicle_at_origin',\n LEASING_SL_ACTION = 'sl_action',\n}\n\nexport enum OpportunityWarningsCode {\n QUOTE_PENDING_VALIDATION = 'quote_pending_validation',\n QUOTE_PEDING_MANAGER_APPROVAL = 'quote_pending_manager_approval',\n CONCURRENT_OPPORTUNITIES = 'concurrent_opportunities',\n VEHICLE_RESERVED = 'vehicle_reserved',\n OPPORTUNITY_NEEDS_SWITCH_VEHICLE = 'opportunity_needs_switch_vehicle',\n VEHICLE_RESERVED_DATE_INFO = 'vehicle_reserved_date_info',\n VEHICLE_RESERVED_INDEFINITELY = 'vehicle_reserved_indefinitely',\n QUOTE_MISSING_DELIVERY_DETAILS = 'quote_missing_delivery_details',\n}\n\nexport const OpportunityWonColumnId = 'closed_won';\n\nexport const OpportunityKanbanColumns = [...OpportunityStatusOrder, OpportunityWonColumnId];\n\nexport const OpportunityKanbanEndColumns: string[] = [OpportunityWonColumnId];\n\nexport enum OpportunityLostReasonValues {\n Expensive = 'expensive',\n AlreadySold = 'already_sold',\n BadExperience = 'bad_experience',\n IncorrectVehicleCondition = 'incorrect_vehicle_condition',\n NoStock = 'not_enough_stock',\n SlowDelivery = 'slow_delivery',\n HighDeposit = 'deposit_too_high',\n NoAnswer = 'client_not_answered',\n Automatic = 'automatic',\n}\n\ntype BaseBid = {\n vehicleId: string;\n opportunityId?: string;\n contactId: string;\n amount: string;\n};\n\nexport type NewBid = BaseBid & {};\n\nexport type Bid = BaseBid & {\n id: string;\n createdAt: string;\n createdBy: string;\n};\n\ntype BaseOpportunity = {\n accountManager?: string;\n administrativePerson?: string;\n type: OpportunityType;\n organizationId?: string;\n contactId?: string;\n vehicleId?: string;\n source?: string; // e.g. website, autoscout, mobile...\n branch: string;\n inquiry?: string;\n branchCountry: string;\n};\n\nexport type NewOpportunity = BaseOpportunity & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n modifiedAt?: undefined;\n modifiedBy?: undefined;\n};\n\nexport type Opportunity = BaseOpportunity & {\n id: string;\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n engagedAt?: string;\n engagedBy?: string;\n validatedAt?: string;\n validatedBy?: string;\n acceptedAt?: string;\n acceptedBy?: string;\n lastActivityAt?: string; // last time we reached out to the customer, regardless of medium\n reviewedAt?: string;\n reviewedBy?: string;\n preparedAt?: string;\n preparedBy?: string;\n lastBidAt?: string;\n lostAt?: string;\n lostBy?: string;\n wonAt?: string;\n lostReason?: OpportunityLostReasonValues;\n deliveredAt?: string;\n deliveredBy?: string;\n status: OpportunityStatus;\n dealStatus?: OpportunityDealStatus;\n logisticStatus?: OpportunityLogisticStatus;\n activeQuoteId?: string;\n amount?: string;\n documents?: Document[];\n leasingContractId?: string;\n requirementsOverride?: {\n [code: string]: { override: true; reason?: string; actionAt: string; actionBy: string };\n };\n};\n\nexport type OpportunityUpdate = {\n vehicleId?: string | null;\n accountManager?: string | null;\n administrativePerson?: string | null;\n contactId?: string | null;\n activeQuoteId?: string | null;\n reviewed?: boolean;\n prepared?: boolean;\n lost?: boolean;\n delivered?: boolean;\n lostReason?: OpportunityLostReasonValues;\n documents?: Document[];\n branch?: string;\n branchCountry?: string;\n type?: OpportunityType;\n lastActivityAt?: string | null; // null gives the possibility to delete this field if all activities are deleted\n lastBidAt?: string;\n source?: string | null;\n requirementsOverride?: {\n [code: string]: { override: true; reason?: string; actionAt: string; actionBy: string };\n };\n};\n\nexport type PaymentSummary = {\n total: string;\n paid: string;\n entries: DataRecord<Payment>[];\n};\n\nexport type VehicleBffMetadata = {\n openOpportunities: number;\n otherRelatedVehicleIds: string[];\n};\n\nexport type OpportunityStatusRequirement = { code: OpportunityRequirementsCode; title?: string };\n\ntype OportunityWarningActionLink = {\n businessEntityId: BusinessEntityIds;\n recordId: string;\n};\n\ntype OportunityWarningActionData = { [key: string]: string | number };\n\nexport type OpportunityWarning = {\n code: OpportunityWarningsCode;\n level: WarningHints;\n link?: OportunityWarningActionLink;\n data?: OportunityWarningActionData;\n showAction?: boolean;\n};\n\nexport type OpportunityBffMeta = ReferenceData & {\n requirements: OpportunityStatusRequirement[];\n warnings: OpportunityWarning[];\n};\n\nexport type OpportunityBFF = {\n opportunity: DataRecord<Opportunity, OpportunityBffMeta>;\n vehicle?: DataRecord<Vehicle, VehicleBffMetadata>;\n interest?: DataRecord<OpportunityInterest, InterestBffMeta>;\n bids: DataRecord<Bid>[];\n quotes: DataRecord<Quote>[];\n activeQuote?: DataRecord<Quote>;\n payments: PaymentSummary | undefined;\n reservation?: DataRecord<OpportunityReservation>;\n customer?: {\n contact: DataRecord<Contact>;\n org?: DataRecord<Organization>;\n };\n};\n\ntype BaseOpportunityEvent = {\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\nexport type OpportunityCreateEvent = BaseOpportunityEvent & {\n opportunity: Opportunity;\n previousOpportunity?: undefined;\n action: 'create';\n};\n\nexport type OpportunityUpdateEvent = BaseOpportunityEvent & {\n opportunity: Opportunity;\n previousOpportunity: Opportunity;\n action: 'update';\n};\n\nexport type OpportunityDeleteEvent = BaseOpportunityEvent & {\n opportunity?: undefined;\n previousOpportunity: Opportunity;\n action: 'delete';\n};\n\nexport type OpportunityEvent =\n | OpportunityCreateEvent\n | OpportunityUpdateEvent\n | OpportunityDeleteEvent;\n\nexport type QuoteEvent = {\n quote: Quote;\n opportunity: Opportunity;\n action: 'create' | 'update' | 'delete';\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\n/* Quote summary with information that should be common to different types of quotes */\nexport type QuoteInfo = {\n status: QuoteStatus;\n roi: string;\n id: string;\n};\n\nexport type SearchOpportunity = {\n contact?: Contact;\n opportunity: Opportunity;\n org?: Organization;\n vehicle?: Vehicle;\n quote?: QuoteInfo;\n custom: {\n paymentStatus: OpportunityPaymentStatus;\n unassigned: boolean;\n lost: boolean;\n assignees: string[];\n vehicleCheckedIn: boolean;\n status: OpportunityStatus | 'won';\n };\n};\n\nexport const QUOTE_NEEDS_VALIDATION_NOTIFICATION_ORIGIN = 'quote-validation';\nexport const QUOTE_VALIDATOR_FEEDBACK_NOTIFICATION_ORIGIN = 'quote-validation-feedback';\nexport const OPPORTUNITY_VEHICLE_AVAILABLE_NOTIFICATION_ORIGIN = 'opportunity-vehicle-available';\nexport const OPPORTUNITY_VEHICLE_DELIVERY_NOTIFICATION_ORIGIN = 'opportunity-vehicle-delivery';\n\nexport type OpportunityNotificationData = {\n quoteVersion?: number;\n snippet?: string;\n};\n\nexport type LeasingQuoteTemplateData = {\n opportunity: {\n id: string;\n };\n currentDate: string;\n vehicle: {\n make: string;\n model: string;\n type?: string;\n km: string | number;\n vin: string;\n mainImage: string;\n localLicensePlate: boolean;\n description: string;\n year?: string | number;\n stockNumber?: string;\n };\n accountManager: {\n fullName: string;\n email: string;\n phone: string;\n };\n customer: {\n company: string;\n fullName: string;\n vatNumber?: string;\n address?: string;\n };\n settingId: string;\n leasing: {\n deposit: string;\n startupFee: string;\n totalExtras: string;\n totalBeforeDeliveryExclVat: string;\n totalBeforeDelivery: string;\n installment: string;\n duration: number;\n monthlyInsurance: string;\n monthlyTax: string;\n monthlyTaxesInsurance: string;\n residual: string;\n offerNumber: string;\n extras: { name: string }[];\n };\n};\n\nexport type LineItemPdfTemplate = {\n description: string;\n vat: string;\n quantity: number;\n unitPriceExclVat: string;\n amount: string;\n amountExclVat: string;\n};\n\nexport type LeasingProformaTemplateData = {\n opportunity: {\n id: string;\n offerNumber: string;\n };\n currentDate: string;\n accountManager: {\n fullName: string;\n email: string;\n phone: string;\n };\n vehicle: {\n line1: string;\n line2: string;\n stockNumber: string;\n };\n c: {\n organizationId?: string;\n clientId: string;\n company: string;\n fullName: string;\n vatNumber?: string;\n email?: string;\n phone?: string;\n address?: string;\n };\n i: LineItemPdfTemplate[];\n t: {\n totalExclVat: string;\n vatAmount: string;\n displayVatMessage: boolean;\n total: string;\n monthly: string;\n monthlyExclVat: string;\n residual: string;\n residualExclVat: string;\n duration: number;\n };\n};\n\nexport type SalesProformaTemplateData = {\n opportunity: {\n id: string;\n offerNumber: string;\n };\n currentDate: string;\n expirationDate: string;\n accountManager: {\n fullName: string;\n email: string;\n phone: string;\n };\n vehicle: {\n line1: string;\n line2: string;\n stockNumber: string;\n };\n c: {\n organizationId?: string;\n clientId: string;\n company: string;\n fullName: string;\n vatNumber?: string;\n email?: string;\n phone?: string;\n address?: string;\n };\n i: LineItemPdfTemplate[];\n t: {\n totalExclVat: string;\n vatAmount: string;\n total: string;\n };\n};\n\nexport type SalesAgreementTemplateData = {\n opportunity: {\n id: string;\n offerNumber: string;\n };\n currentDate: string;\n accountManager: {\n fullName: string;\n email: string;\n phone: string;\n };\n vehicle: {\n line1: string;\n line2: string;\n stockNumber: string;\n };\n c: {\n organizationId?: string;\n clientId: string;\n company: string;\n fullName: string;\n vatNumber?: string;\n email?: string;\n phone?: string;\n address?: string;\n };\n i: LineItemPdfTemplate[];\n t: {\n totalExclVat: string;\n vatAmount: string;\n total: string;\n };\n};\n\nexport type OpportunitiesKanbanColumn = {\n status: string;\n results: SearchOpportunity[];\n totalCount: number;\n totalValue: string;\n};\n\nexport type MSearchOpportunitiesKanbanColumn = {\n column: OpportunitiesKanbanColumn;\n nextToken?: string;\n};\n\nexport type HpLeasingDealRequest = {\n tenantId: string;\n initiatedBy: 'bisondesk';\n processMetaId: string;\n processRunData: {\n entityOwner: string;\n leasingContractOwner: string;\n foreseenDeliveryDate?: string;\n deliveryAddressLeasing?: string;\n nameSalesPerson: string;\n durationLeasingInMonths: number;\n vanCourier: boolean;\n newVehicle?: boolean;\n newTrailer?: boolean;\n registrationOnTtcoBe?: string;\n yearOfConstruction?: number;\n chassisnumber?: string;\n vehicleModel?: string;\n vehicleCategory2?: string;\n licencePlate?: string;\n vatPercentage?: number;\n\n opportunityContractId: string;\n opportunityId: string;\n\n company?: string;\n customerNumber?: number; //bisondesk external id\n //MrLease fields\n vehicle?: string;\n vehicleNewReferenceMl?: string;\n salesPriceEur: string;\n depositFullAmountExclVat: string;\n depositToBePrepaidExclVat: string;\n vehicleMake3?: string;\n\n //TTC fields\n vehicleOriginalReference?: string;\n salesPrice: string;\n depositFullAmount: string;\n depositAmountToBePrepaid: string;\n make?: string;\n\n //Extras\n garageExtrasCodes: string[];\n allExtrasDescriptions: string[];\n administrationExtrasCodes: string[];\n logisticExtrasCodes: string[];\n customRequestDescriptions: string[];\n };\n};\n\nexport type HpLeasingDealResponse = {\n entityId: string;\n id: string;\n status: string;\n leasingContractNumber?: string;\n};\n\nexport type HpLeasingContractRequest = {\n tenantId: string;\n initiatedBy: 'bisondesk';\n processMetaId: string;\n processRunData: {\n entityOwner: string;\n company?: string;\n vehicle?: string;\n ldNumber: number;\n vanCourier: boolean;\n startDate: number;\n opportunityContractId: string;\n data: {\n leasingParameter: {\n allRisksPercentage: number;\n allRisksTaxPercentage: number;\n civilLiability: number;\n entityId: string;\n oneTimeRoadTax: number;\n specialInsurance: number;\n yearlyRoadTax: number;\n countries: string[];\n vehicleCategory: string;\n };\n\n calculatorRequest: {\n bankDeposit: number;\n bankDurationInMonths: number;\n bankInterestRatePercentage: number;\n bankResidualValue: number;\n deposit: number;\n durationInMonths: number;\n includesAllRisks: boolean;\n includesCivilLiability: boolean;\n includesOneTimeRoadTax: boolean;\n includesSpecialInsurance: boolean;\n includesYearlyRoadTax: boolean;\n insuranceAmount: number;\n interestRatePercentage: number;\n marginPercentage: number;\n monthlyAdministrationFee: 0;\n purchasePrice: number;\n residualValue: number;\n salesPrice: number;\n startupFeePercentage: number;\n };\n\n calculatorResponse: {\n ROI: number;\n ROIDifference: number;\n ROIPerYear: number;\n ROITarget: number;\n allRisksInsuranceAmount: number;\n bankContractValue: number;\n bankLeasingAmount: number;\n cashDeficit: number;\n financingAmount: number;\n leasingAmount: number;\n leasingContractValue: number;\n leasingProfit: number;\n monthlyTaxRetailPrice: number;\n oneTimeTaxCost: number;\n totalMonthlyPayment: number;\n totalProfit: number;\n vehicleProfit: number;\n };\n\n cashInValues: CashInRow[];\n\n cashOutValues: CashOutRow[];\n };\n };\n};\n\nexport type HpLeasingContractResponse = {\n entityId: string;\n id: string;\n status: string;\n createdAt: string;\n updatedAt: string;\n dateOfFinalSettlement: string;\n startDate: string;\n email: string;\n contractNumber: string;\n};\n\nexport type CashInRow = {\n time: number;\n deposit: number;\n monthlyAdministrationFee: 0; //Legacy field - Should always be 0\n residualValue: number;\n startupFee: number;\n leasingAmountWithoutAdminFee: number;\n insurancePayment: number;\n taxPayment: number;\n cashIn: number;\n cumulativeCash: number;\n};\n\nexport type CashOutRow = {\n time: number;\n deposit: number;\n residualValue: number;\n leasingAmount: number;\n insurancePayment: number;\n taxPayment: number;\n cashOut: number;\n cumulativeCash: number;\n};\n\nexport type HpDeliveryFields = {\n detailsOfStacking?: string | null;\n technicalControlNeeded: boolean | null;\n\n //PickUP Delivery\n urgentDelivery?: boolean | null;\n dateOfPickUpByCustomer?: number | null;\n modeOfTransportPickUpByCustomer?: string | null; //entity Id\n detailsOfBorderCrossing?: string | null;\n insuranceNeeded: boolean | null;\n transitPlateNeeded: boolean | null;\n licensePlateNeeded: boolean | null;\n\n //Address Delivery\n address?: string | null;\n kmToAddressOfDelivery?: number | null;\n\n //To Port Delivery\n originPortText?: string | null; //entity Id\n shippingCompany?: string | null; //string Id\n destinationPort?: string | null;\n cleaningDegassingNeeded: boolean | null;\n};\n\nexport type HpIsaProcessRequest = {\n tenantId: string;\n initiatedBy: 'bisondesk';\n processMetaId: string;\n processRunData: HpDeliveryFields & {\n entityOwner: string;\n nameSalesPerson: string;\n\n company?: string; //entityId\n proofOfSaleCustomerAgreement?: string; //entityId\n\n vehicle?: string; //entityId\n bodywork?: string; //entityId\n vehicleCategory: string; //entityId\n\n amountOfCommissionPaid: number;\n dealValidated: boolean;\n dealCancelled: boolean;\n opportunityId: string;\n deliveryType: string; //entity Id\n directDelivery?: boolean | null;\n directDeliveryReason?: string | null;\n agreedPrice?: string;\n\n //Extras\n garageExtrasCodes: string[];\n logisticsExtrasCodes: string[];\n administrationExtrasCodes: string[];\n allExtrasDescriptions: string[];\n customRequestDescriptions: string[];\n infoSpoiler: string; // entity Id\n };\n};\n\nexport type HpIsaProcessResponse = {\n entityId: string;\n id: string;\n status: string;\n};\n\nexport type SwitchOpportunityVehicleRequest = {\n opportunityId: string;\n newVehicleId: string;\n};\n\nexport type KanbanOpportunitiesSearchRequest = BaseSearchRequest & {\n nextTokens?: Record<string, string | undefined>;\n};\n\nexport type KanbanOpportunitiesNextList = Omit<\n NextList<OpportunitiesKanbanColumn, ReferenceData>,\n 'nextToken'\n> & {\n nextTokens?: Record<string, string | undefined>;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.js","sourceRoot":"/","sources":["types/payments.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB","sourcesContent":["export enum PaymentActions {\n DELETE = 'delete',\n EDIT = 'edit',\n}\n\ntype BasePayment = {\n opportunityId: string;\n amount: string;\n description?: string;\n vehicleId: string;\n organizationId: string;\n};\n\nexport type NewPayment = BasePayment & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n modifiedAt?: undefined;\n modifiedBy?: undefined;\n deletedAt?: undefined;\n deletedBy?: undefined;\n paidAt: string;\n};\n\nexport type Payment = BasePayment & {\n id: string;\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n deletedAt?: string;\n deletedBy?: string;\n paidAt?: string;\n};\n\nexport type PaymentUpdate = {\n description?: string;\n amount?: string;\n paidAt?: string;\n};\n\nexport type PaymentCreateEvent = {\n payment: Payment;\n previousPayment?: undefined;\n action: 'create';\n actionAt: string;\n userId: string;\n tenantId: string;\n branchId: string;\n};\n\nexport type PaymentUpdateEvent = {\n payment: Payment;\n previousPayment: Payment;\n action: 'update';\n actionAt: string;\n userId: string;\n tenantId: string;\n branchId: string;\n};\n\nexport type PaymentDeleteEvent = {\n payment?: undefined;\n previousPayment: Payment;\n action: 'delete';\n actionAt: string;\n userId: string;\n tenantId: string;\n branchId: string;\n};\n\nexport type PaymentEvent = PaymentCreateEvent | PaymentUpdateEvent | PaymentDeleteEvent;\n"]}
|
|
1
|
+
{"version":3,"file":"payments.js","sourceRoot":"/","sources":["types/payments.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,sBAAsB,CAAC","sourcesContent":["export enum PaymentActions {\n DELETE = 'delete',\n EDIT = 'edit',\n}\n\nexport const PAYMENT_NOTIFICATION_ORIGIN = 'payment-notification';\n\ntype BasePayment = {\n opportunityId: string;\n amount: string;\n description?: string;\n vehicleId: string;\n organizationId: string;\n};\n\nexport type NewPayment = BasePayment & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n modifiedAt?: undefined;\n modifiedBy?: undefined;\n deletedAt?: undefined;\n deletedBy?: undefined;\n paidAt: string;\n};\n\nexport type Payment = BasePayment & {\n id: string;\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n deletedAt?: string;\n deletedBy?: string;\n paidAt?: string;\n};\n\nexport type PaymentUpdate = {\n description?: string;\n amount?: string;\n paidAt?: string;\n};\n\nexport type PaymentCreateEvent = {\n payment: Payment;\n previousPayment?: undefined;\n action: 'create';\n actionAt: string;\n userId: string;\n tenantId: string;\n branchId: string;\n};\n\nexport type PaymentUpdateEvent = {\n payment: Payment;\n previousPayment: Payment;\n action: 'update';\n actionAt: string;\n userId: string;\n tenantId: string;\n branchId: string;\n};\n\nexport type PaymentDeleteEvent = {\n payment?: undefined;\n previousPayment: Payment;\n action: 'delete';\n actionAt: string;\n userId: string;\n tenantId: string;\n branchId: string;\n};\n\nexport type PaymentEvent = PaymentCreateEvent | PaymentUpdateEvent | PaymentDeleteEvent;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quote-settings.js","sourceRoot":"/","sources":["types/quote-settings.ts"],"names":[],"mappings":"","sourcesContent":["import { DeliveryParams } from './delivery-settings';\n\nexport type UsedVehiclesSalesParams = BaseQuoteSettings & {\n modifiedBy: string;\n countryCode: 'be';\n profitabilityDealGap: string;\n exaDocumentCosts: string;\n delivery?: DeliveryParams;\n};\n\nexport type BeSpecificQuoteParams = {\n countryCode: 'be';\n other: BaseQuoteSettings['other'] & {\n leasingStartupFeePercentage: string;\n };\n insurance: {\n allRisksCost: string;\n allRisksTax: string;\n allRisksFees: string;\n allRisksMinimumCost: string;\n specialTechnicalInsuranceCost: string;\n specialTechnicalInsuranceTax: string;\n specialTechnicalInsuranceFees: string;\n civilLiabilitiesCost: string;\n civilLiabilitiesTax: string;\n civilLiabilitiesFees: string;\n roadAssistanceMonthlySalesPrice: string; // monthly Price\n roadAssistanceMonthlyCostPrice: string; // monthly Price\n margin: string;\n allRisksCheckedForLocalClients: boolean;\n specialTechnicalInsuranceCheckedForLocalClients: boolean;\n civilLiabilitiesCheckedForLocalClients: boolean;\n roadAssistanceCheckedForLocalClients: boolean;\n initialFractionPercentage: '0';\n };\n track: {\n trackAndTrace24Cost: string;\n trackAndTrace36Cost: string;\n trackAndTrace48Cost: string;\n trackAndTraceMaxCost: string;\n };\n taxes: {\n oneTimeRoadTax: string;\n yearlyRoadTax: string;\n oneTimeRoadCheckedForLocalClients: boolean;\n yearlyRoadCheckedForLocalClients: boolean;\n margin: string;\n };\n};\n\nexport type BoSpecificQuoteParams = {\n countryCode: 'bo';\n insurance: {\n allRisksCost: string;\n margin: string;\n initialFractionPercentage: string;\n };\n other: BaseQuoteSettings['other'] & {\n administrativeFee: string;\n };\n track: {\n installationCost: string;\n monthlyCost: string;\n monthlyFee: string;\n deviceCost: string;\n };\n};\n\nexport type CountrySpecificQuoteParams = BeSpecificQuoteParams | BoSpecificQuoteParams;\n\ntype BaseQuoteSettings = {\n id: string;\n modifiedAt: string;\n name: string;\n other: { minimumDepositAdjudicationPercentage: string };\n};\n\nexport type LeasingQuoteParams<P extends CountrySpecificQuoteParams = CountrySpecificQuoteParams> =\n BaseQuoteSettings & {\n leasing: {\n leasingInterestRate: string;\n leasingDuration: number;\n leasingDepositPercentage: string;\n leasingResidualValuePercentage: string;\n };\n costs: {\n bankDepositPercentage: string;\n bankInterestRate: string;\n bankResidualValuePercentage: string;\n };\n } & P;\n\nexport type QuoteSettings = LeasingQuoteParams | UsedVehiclesSalesParams;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.js","sourceRoot":"/","sources":["types/quotes.ts"],"names":[],"mappings":"AAcA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;IACvB,0CAA2B,CAAA;IAC3B,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,sCAAuB,CAAA;IACvB,mDAAoC,CAAA;IACpC,mDAAoC,CAAA;AACtC,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAED,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,kCAAa,CAAA;AACf,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AACD,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,mCAAkB,CAAA;IAClB,oCAAmB,CAAA;IACnB,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,qCAAsB,CAAA;AACxB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,wCAAkB,CAAA;IAClB,6CAAuB,CAAA;AACzB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import { AttachmentValue, LocationValue } from '@bisondesk/commons-sdk/types';\nimport { OpportunityType } from '../constants';\nimport { DeliveryParams } from './delivery-settings';\nimport {\n CustomLeasingQuoteExtraInput,\n CustomSalesQuoteExtraInput,\n LeasingDeliveryPackageInput,\n LeasingQuoteExtraInput,\n LeasingQuoteParams,\n SalesQuoteExtraInput,\n} from './leasing-settings';\nimport { MatchingRuleValue } from './roi-ratings';\nimport { PricePercentageMode } from './utils';\n\nexport enum QuoteActions {\n ACCEPT = 'accept',\n VALIDATE = 'validate',\n DONWLOAD_PDFS = 'download-pdfs',\n CANCEL = 'cancel',\n}\n\nexport enum QuoteStatus {\n CREATED = 'created',\n VALIDATED = 'validated',\n INVALIDATED = 'invalidated',\n ACCEPTED = 'accepted',\n REJECTED = 'rejected',\n CANCELLED = 'cancelled',\n MANAGER_REJECTED = 'managerRejected',\n MANAGER_ACCEPTED = 'managerAccepted',\n}\n\nexport enum QuoteMetricsScore {\n DANGER = 'danger',\n NEUTRAL = 'neutral',\n GOOD = 'good',\n}\nexport enum DeliveryTypes {\n PICK_UP = 'pickUp',\n ADDRESS = 'address',\n PORT = 'port',\n}\n\nexport enum SpoilerInfo {\n MOUNT = 'mount',\n UNMOUNT = 'unmount',\n NO_ACTION = 'noAction',\n}\n\nexport enum TransportationMode {\n BY_ROAD = 'byRoad',\n ON_LOW_BED = 'onLowBed',\n}\n\ntype BaseQuoteCalculatorInput = {\n branchId: string;\n branchCountry: string;\n customerCountry: string;\n customerVatNumber?: string;\n currency: string;\n vehicle: {\n id: string;\n category: string;\n bodywork?: string;\n agreedPrice: string;\n };\n};\n\n// Sent by the Frontend to bootstrap the calculator\nexport type LeasingCalculatorDefaultInput = BaseQuoteCalculatorInput & {\n deliveryPackage?: LeasingQuoteExtraInput;\n};\n\nexport type LeasingCalculatorInput = BaseQuoteCalculatorInput & {\n localLicensePlate: boolean;\n vanCourier: boolean;\n vehicle: BaseQuoteCalculatorInput['vehicle'] & {\n purchasePrice: string;\n };\n leasing: {\n deposit: string;\n depositMode: PricePercentageMode;\n depositPercentage: string;\n residual: string;\n residualMode: PricePercentageMode;\n residualPercentage: string;\n startupFee: string;\n startupFeeMode: PricePercentageMode;\n startupFeePercentage: string;\n interestRate: string;\n duration: number;\n contractStartDate: string;\n };\n bank: {\n interestRate: string;\n deposit: string;\n depositMode: PricePercentageMode;\n depositPercentage: string;\n residual: string;\n residualMode: PricePercentageMode;\n residualPercentage: string;\n duration: number;\n salesPrice: string;\n };\n taxes: {\n yearlyRoadTax: boolean;\n oneTimeRoadTax: boolean;\n margin: string; //Non Editable, copies the value insurance > margin\n };\n insurance: {\n margin: string;\n civilLiabilities: boolean;\n allRisks: boolean;\n specialTechnicalInsurance: boolean;\n roadAssistance: boolean;\n };\n deliveryPackage?: LeasingDeliveryPackageInput;\n extras: LeasingQuoteExtraInput[];\n customRequests: CustomLeasingQuoteExtraInput[];\n};\n\ntype BaseDeliveryType = {\n agreedPrice: string;\n spoiler?: SpoilerInfo;\n stackingVehicleNeeded?: boolean;\n detailsStacking?: string;\n};\n\nexport type PickUpDeliveryType = BaseDeliveryType & {\n type: DeliveryTypes.PICK_UP;\n urgent: boolean;\n transportationMode?: TransportationMode;\n detailsBorderCrossing?: string;\n technicalControlNeeded: boolean;\n insuranceNeeded: boolean;\n transitPlateBelgiumNeeded: boolean;\n transitPlateAustriaNeeded: boolean;\n licensePlateNeeded: boolean;\n dateOfPickUpByCustomer?: string;\n};\n\nexport type AddressDeliveryType = BaseDeliveryType & {\n type: DeliveryTypes.ADDRESS;\n address: LocationValue;\n distanceKm: string;\n technicalControlNeeded: boolean;\n};\n\nexport type PortDeliverytype = BaseDeliveryType & {\n type: DeliveryTypes.PORT;\n portOriginId: string;\n portDestination?: string;\n shippingCompany?: string;\n portToPortCostPrice: string;\n portToPortMargin: string;\n};\n\n// Sent by the Frontend to bootstrap the calculator\nexport type SalesCalculatorDefaultInput = BaseQuoteCalculatorInput & {\n extras: SalesQuoteExtraInput[];\n customRequests: CustomSalesQuoteExtraInput[];\n};\n\nexport type SalesCalculatorInput = BaseQuoteCalculatorInput & {\n vehicle: BaseQuoteCalculatorInput['vehicle'] & {\n purchasePrice: string;\n premiumPrice?: string;\n vatRate: string;\n minimumPrice: string;\n internetPrice?: string;\n comissionCost: string;\n };\n delivery?: PickUpDeliveryType | AddressDeliveryType | PortDeliverytype;\n extras: SalesQuoteExtraInput[];\n customRequests: CustomSalesQuoteExtraInput[];\n};\n\nexport type SalesQuoteRuleInput = {\n minimumPrice: number;\n internetPrice: number;\n agreedPrice: number;\n premiumPrice: number;\n stockAge: number;\n};\n\nexport type LeasingCalculatorOutput = {\n vatApplicable: boolean;\n installment: string;\n installmentPrintable: string;\n totalMonthlyAmount: string;\n monthlyTaxesInsurance: string;\n beforeDelivery: string;\n financingAmount: string;\n settingId: string;\n totalRetailAmount: string;\n finalSalesPrice: string;\n roi: {\n value: string;\n target: string;\n perYear: string;\n difference: string;\n score?: QuoteMetricsScore;\n };\n cashflow: {\n deficit: string;\n balanced: boolean;\n score: QuoteMetricsScore;\n };\n profitability: {\n leasing: string;\n vehicle: string;\n total: string;\n score: QuoteMetricsScore;\n };\n taxes: {\n yearlyRetailPrice: string;\n monthlyRetailPrice: string;\n yearlyRoadTax: string;\n oneTimeRoadTax: string;\n profit: string;\n };\n insurance: {\n beforeDelivery: string;\n yearlyRetailPrice: string;\n monthlyRetailPrice: string;\n civilLiabilities: string;\n allRisks: string;\n specialTechnicalInsurance: string;\n roadAssistance: string;\n profit: string;\n };\n trackAndTrace: {\n beforeDelivery: string;\n monthlyCost: string;\n installationCost: string; // currently this cost is being included as part of monthlyCost. In future, this will be a separate cost\n deviceCost: string; // same as above\n profit: string;\n };\n costs: {\n financingAmount: string;\n finalCostPrice: string;\n monhtly: string;\n };\n};\n\nexport type SalesCalculatorOutput = {\n totalRetailAmount: string;\n totalRetailAmountExclVat: string;\n retailAmounts: {\n vehicle: string;\n delivery: string;\n extras: string;\n };\n roi: { value: string; score?: QuoteMetricsScore };\n profit: {\n value: string;\n score: QuoteMetricsScore;\n };\n profitOverMin: {\n value: string;\n percentage: string;\n score: QuoteMetricsScore;\n };\n delivery: {\n retailPrice?: string;\n costPrice?: string;\n cleaningNeeded: boolean;\n cleaningNeededRetailPrice: string;\n transportationToPortRetailPrice?: string;\n };\n costs: {\n finalCostPrice: string;\n extras: string;\n delivery: string;\n };\n};\n\ntype BaseQuote = {\n opportunityId: string;\n preferredLanguage: string;\n clientNotes?: string;\n publicNotes?: string;\n} & (\n | {\n type: OpportunityType.LEASING;\n calculatorInput: LeasingCalculatorInput;\n calculatorOutput: LeasingCalculatorOutput;\n rating?: MatchingRuleValue;\n }\n | {\n type: OpportunityType.SALES;\n calculatorInput: SalesCalculatorInput;\n calculatorOutput: SalesCalculatorOutput;\n rating?: MatchingRuleValue;\n }\n);\n\nexport type NewQuote = BaseQuote & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n modifiedAt?: undefined;\n modifiedBy?: undefined;\n active: true;\n};\n\nexport type Quote = BaseQuote & {\n id: string;\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n validationBy?: string;\n validationAt?: string;\n cancelledBy?: string;\n cancelledAt?: string;\n customerFeedbackAt?: string;\n customerFeedbackBy?: string;\n managerFeedbackAt?: string;\n managerFeedbackBy?: string;\n version: number;\n status: QuoteStatus;\n proformaPdf?: AttachmentValue;\n quotePdf?: AttachmentValue;\n salesAgreementPdf?: AttachmentValue;\n active: boolean;\n contactId: string;\n vehicleId: string;\n organizationId: string;\n};\n\nexport type QuoteUpdate = {\n status?: QuoteStatus;\n active?: boolean;\n};\n\nexport type CalculatorLeasingIO = {\n output: LeasingCalculatorOutput;\n input: LeasingCalculatorInput;\n rating?: MatchingRuleValue;\n};\nexport type CalculatorSalesIO = {\n output: SalesCalculatorOutput;\n input: SalesCalculatorInput;\n rating?: MatchingRuleValue;\n};\nexport type CalculatorQuoteIO = CalculatorLeasingIO | CalculatorSalesIO;\n\nexport type UsedVehiclesSalesParams = {\n id: string;\n modifiedAt: string;\n modifiedBy: string;\n countryCode: 'be';\n name: string;\n profitabilityDealGap: string;\n exaDocumentCosts: string;\n delivery?: DeliveryParams;\n};\n\nexport type QuoteSettings = LeasingQuoteParams | UsedVehiclesSalesParams;\n\nexport type DeliveryLocationValue = Omit<LocationValue, 'addressLine1' | 'city'> & {\n addressLine1: string;\n city: string;\n};\n\nexport type DeliveryRoutesRequest = {\n origin: DeliveryLocationValue;\n destination: DeliveryLocationValue;\n};\n\ntype BaseCommission = {\n opportunityId: string;\n\n estimatedAmount: string;\n estimatedPaidAt: string;\n paidAmount?: string;\n paidAt?: string;\n\n notes?: string;\n};\n\nexport type NewCommission = BaseCommission & {};\n\nexport type Commission = BaseCommission & {\n stockNumber: string;\n vehicleId: string;\n\n branchId: string;\n currency: string;\n\n modifiedAt: string;\n modifiedBy: string;\n};\n\nexport type NewQuoteValidator = {\n userId: string;\n countryCode: string;\n type: OpportunityType;\n canValidateOwn?: boolean;\n};\n\nexport type QuoteValidator = NewQuoteValidator & {\n createdAt: string;\n};\n\nexport type QuoteValidatorUpdate = {\n canValidateOwn: boolean;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"quotes.js","sourceRoot":"/","sources":["types/quotes.ts"],"names":[],"mappings":"AAYA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;IACvB,0CAA2B,CAAA;IAC3B,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,sCAAuB,CAAA;IACvB,mDAAoC,CAAA;IACpC,mDAAoC,CAAA;AACtC,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAED,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,kCAAa,CAAA;AACf,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AACD,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,mCAAkB,CAAA;IAClB,oCAAmB,CAAA;IACnB,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,qCAAsB,CAAA;AACxB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,wCAAkB,CAAA;IAClB,6CAAuB,CAAA;AACzB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import { AttachmentValue, LocationValue } from '@bisondesk/commons-sdk/types';\nimport { OpportunityType } from '../constants';\nimport {\n CustomLeasingQuoteExtraInput,\n CustomSalesQuoteExtraInput,\n LeasingDeliveryPackageInput,\n LeasingQuoteExtraInput,\n SalesQuoteExtraInput,\n} from './leasing-settings';\nimport { MatchingRuleValue } from './roi-ratings';\nimport { PricePercentageMode } from './utils';\n\nexport enum QuoteActions {\n ACCEPT = 'accept',\n VALIDATE = 'validate',\n DONWLOAD_PDFS = 'download-pdfs',\n CANCEL = 'cancel',\n}\n\nexport enum QuoteStatus {\n CREATED = 'created',\n VALIDATED = 'validated',\n INVALIDATED = 'invalidated',\n ACCEPTED = 'accepted',\n REJECTED = 'rejected',\n CANCELLED = 'cancelled',\n MANAGER_REJECTED = 'managerRejected',\n MANAGER_ACCEPTED = 'managerAccepted',\n}\n\nexport enum QuoteMetricsScore {\n DANGER = 'danger',\n NEUTRAL = 'neutral',\n GOOD = 'good',\n}\nexport enum DeliveryTypes {\n PICK_UP = 'pickUp',\n ADDRESS = 'address',\n PORT = 'port',\n}\n\nexport enum SpoilerInfo {\n MOUNT = 'mount',\n UNMOUNT = 'unmount',\n NO_ACTION = 'noAction',\n}\n\nexport enum TransportationMode {\n BY_ROAD = 'byRoad',\n ON_LOW_BED = 'onLowBed',\n}\n\ntype BaseQuoteCalculatorInput = {\n branchId: string;\n branchCountry: string;\n customerCountry: string;\n customerVatNumber?: string;\n currency: string;\n vehicle: {\n id: string;\n category: string;\n bodywork?: string;\n agreedPriceExclVat: string;\n };\n};\n\n// Sent by the Frontend to bootstrap the calculator\nexport type LeasingCalculatorDefaultInput = BaseQuoteCalculatorInput & {\n deliveryPackage?: LeasingQuoteExtraInput;\n};\n\nexport type LeasingCalculatorInput = BaseQuoteCalculatorInput & {\n localLicensePlate: boolean;\n vanCourier: boolean;\n vehicle: BaseQuoteCalculatorInput['vehicle'] & {\n purchasePriceExclVat: string;\n agreedPrice: string;\n purchasePrice: string;\n };\n leasing: {\n deposit: string;\n depositMode: PricePercentageMode;\n depositPercentage: string;\n residual: string;\n residualMode: PricePercentageMode;\n residualPercentage: string;\n startupFee: string;\n startupFeeMode: PricePercentageMode;\n startupFeePercentage: string;\n interestRate: string;\n duration: number;\n contractStartDate: string;\n };\n bank: {\n interestRate: string;\n deposit: string;\n depositMode: PricePercentageMode;\n depositPercentage: string;\n residual: string;\n residualMode: PricePercentageMode;\n residualPercentage: string;\n duration: number;\n salesPrice: string;\n };\n taxes: {\n yearlyRoadTax: boolean;\n oneTimeRoadTax: boolean;\n margin: string; //Non Editable, copies the value insurance > margin\n };\n insurance: {\n margin: string;\n civilLiabilities: boolean;\n allRisks: boolean;\n specialTechnicalInsurance: boolean;\n roadAssistance: boolean;\n initialFractionPercentage: string;\n };\n deliveryPackage?: LeasingDeliveryPackageInput;\n extras: LeasingQuoteExtraInput[];\n customRequests: CustomLeasingQuoteExtraInput[];\n};\n\ntype BaseDeliveryType = {\n agreedPrice: string;\n spoiler?: SpoilerInfo;\n stackingVehicleNeeded?: boolean;\n detailsStacking?: string;\n};\n\nexport type PickUpDeliveryType = BaseDeliveryType & {\n type: DeliveryTypes.PICK_UP;\n urgent: boolean;\n transportationMode?: TransportationMode;\n detailsBorderCrossing?: string;\n technicalControlNeeded: boolean;\n insuranceNeeded: boolean;\n transitPlateBelgiumNeeded: boolean;\n transitPlateAustriaNeeded: boolean;\n licensePlateNeeded: boolean;\n dateOfPickUpByCustomer?: string;\n};\n\nexport type AddressDeliveryType = BaseDeliveryType & {\n type: DeliveryTypes.ADDRESS;\n address: LocationValue;\n distanceKm: string;\n technicalControlNeeded: boolean;\n};\n\nexport type PortDeliverytype = BaseDeliveryType & {\n type: DeliveryTypes.PORT;\n portOriginId: string;\n portDestination?: string;\n shippingCompany?: string;\n portToPortCostPrice: string;\n portToPortMargin: string;\n};\n\n// Sent by the Frontend to bootstrap the calculator\nexport type SalesCalculatorDefaultInput = BaseQuoteCalculatorInput & {\n extras: SalesQuoteExtraInput[];\n customRequests: CustomSalesQuoteExtraInput[];\n};\n\nexport type SalesCalculatorInput = BaseQuoteCalculatorInput & {\n vehicle: BaseQuoteCalculatorInput['vehicle'] & {\n purchasePrice: string;\n purchasePriceExclVat: string;\n agreedPrice: string;\n premiumPrice?: string;\n vatRate: string;\n minimumPrice: string;\n internetPrice?: string;\n comissionCost: string;\n };\n delivery?: PickUpDeliveryType | AddressDeliveryType | PortDeliverytype;\n extras: SalesQuoteExtraInput[];\n customRequests: CustomSalesQuoteExtraInput[];\n};\n\nexport type SalesQuoteRuleInput = {\n minimumPrice: number;\n internetPrice: number;\n agreedPrice: number;\n premiumPrice: number;\n stockAge: number;\n};\n\nexport type LeasingCalculatorOutput = {\n vatApplicable: boolean;\n installment: string;\n installmentPrintable: string;\n totalMonthlyAmount: string;\n monthlyTaxesInsurance: string;\n beforeDeliveryExclVat: string;\n beforeDelivery: string;\n financingAmount: string;\n settingId: string;\n totalRetailAmount: string;\n finalSalesPrice: string;\n roi: {\n value: string;\n target: string;\n perYear: string;\n difference: string;\n score?: QuoteMetricsScore;\n };\n cashflow: {\n deficit: string;\n balanced: boolean;\n score: QuoteMetricsScore;\n };\n profitability: {\n leasing: string;\n vehicle: string;\n total: string;\n score: QuoteMetricsScore;\n };\n taxes: {\n yearlyRetailPrice: string;\n monthlyRetailPrice: string;\n yearlyRoadTax: string;\n oneTimeRoadTax: string;\n profit: string;\n };\n insurance: {\n beforeDelivery: string;\n yearlyRetailPrice: string;\n monthlyRetailPrice: string;\n civilLiabilities: string;\n allRisks: string;\n specialTechnicalInsurance: string;\n roadAssistance: string;\n profit: string;\n };\n trackAndTrace: {\n beforeDelivery: string;\n monthlyCost: string;\n installationCost: string; // currently this cost is being included as part of monthlyCost. In future, this will be a separate cost\n deviceCost: string; // same as above\n profit: string;\n };\n costs: {\n financingAmount: string;\n finalCostPrice: string;\n monhtly: string;\n };\n};\n\nexport type SalesCalculatorOutput = {\n totalRetailAmount: string;\n totalRetailAmountExclVat: string;\n retailAmounts: {\n vehicle: string;\n delivery: string;\n extras: string;\n };\n roi: { value: string; score?: QuoteMetricsScore };\n profit: {\n value: string;\n score: QuoteMetricsScore;\n };\n profitOverMin: {\n value: string;\n percentage: string;\n score: QuoteMetricsScore;\n };\n delivery: {\n retailPrice?: string;\n costPrice?: string;\n cleaningNeeded: boolean;\n cleaningNeededRetailPrice: string;\n transportationToPortRetailPrice?: string;\n };\n costs: {\n finalCostPrice: string;\n extras: string;\n delivery: string;\n };\n};\n\ntype BaseQuote = {\n opportunityId: string;\n preferredLanguage: string;\n clientNotes?: string;\n publicNotes?: string;\n} & (\n | {\n type: OpportunityType.LEASING;\n calculatorInput: LeasingCalculatorInput;\n calculatorOutput: LeasingCalculatorOutput;\n rating?: MatchingRuleValue;\n }\n | {\n type: OpportunityType.SALES;\n calculatorInput: SalesCalculatorInput;\n calculatorOutput: SalesCalculatorOutput;\n rating?: MatchingRuleValue;\n }\n);\n\nexport type NewQuote = BaseQuote & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n modifiedAt?: undefined;\n modifiedBy?: undefined;\n active: true;\n};\n\nexport type Quote = BaseQuote & {\n id: string;\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n validationBy?: string;\n validationAt?: string;\n cancelledBy?: string;\n cancelledAt?: string;\n customerFeedbackAt?: string;\n customerFeedbackBy?: string;\n managerFeedbackAt?: string;\n managerFeedbackBy?: string;\n version: number;\n status: QuoteStatus;\n proformaPdf?: AttachmentValue;\n quotePdf?: AttachmentValue;\n salesAgreementPdf?: AttachmentValue;\n active: boolean;\n contactId: string;\n vehicleId: string;\n organizationId: string;\n};\n\nexport type QuoteUpdate = {\n status?: QuoteStatus;\n active?: boolean;\n};\n\nexport type CalculatorLeasingIO = {\n output: LeasingCalculatorOutput;\n input: LeasingCalculatorInput;\n rating?: MatchingRuleValue;\n};\nexport type CalculatorSalesIO = {\n output: SalesCalculatorOutput;\n input: SalesCalculatorInput;\n rating?: MatchingRuleValue;\n};\nexport type CalculatorQuoteIO = CalculatorLeasingIO | CalculatorSalesIO;\n\nexport type DeliveryLocationValue = Omit<LocationValue, 'addressLine1' | 'city'> & {\n addressLine1: string;\n city: string;\n};\n\nexport type DeliveryRoutesRequest = {\n origin: DeliveryLocationValue;\n destination: DeliveryLocationValue;\n};\n\ntype BaseCommission = {\n opportunityId: string;\n\n estimatedAmount: string;\n estimatedPaidAt: string;\n paidAmount?: string;\n paidAt?: string;\n\n notes?: string;\n};\n\nexport type NewCommission = BaseCommission & {};\n\nexport type Commission = BaseCommission & {\n stockNumber: string;\n vehicleId: string;\n\n branchId: string;\n currency: string;\n\n modifiedAt: string;\n modifiedBy: string;\n};\n\nexport type NewQuoteValidator = {\n userId: string;\n countryCode: string;\n type: OpportunityType;\n canValidateOwn?: boolean;\n};\n\nexport type QuoteValidator = NewQuoteValidator & {\n createdAt: string;\n};\n\nexport type QuoteValidatorUpdate = {\n canValidateOwn: boolean;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"/","sources":["types/search.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,0BAAS,CAAA;AACX,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,qBAiBX;AAjBD,WAAY,qBAAqB;IAE/B,wCAAe,CAAA;IACf,+CAAsB,CAAA;IACtB,kCAAS,CAAA;IACT,yCAAgB,CAAA;IAEhB,mDAA0B,CAAA;IAC1B,2CAAkB,CAAA;IAClB,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,4CAAmB,CAAA;IAEnB,8CAAqB,CAAA;IACrB,qDAA4B,CAAA;IAC5B,mDAA0B,CAAA;IAC1B,+CAAsB,CAAA;AACxB,CAAC,EAjBW,qBAAqB,KAArB,qBAAqB,QAiBhC;AA8CD,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAE3C,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"/","sources":["types/search.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,0BAAS,CAAA;AACX,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,qBAiBX;AAjBD,WAAY,qBAAqB;IAE/B,wCAAe,CAAA;IACf,+CAAsB,CAAA;IACtB,kCAAS,CAAA;IACT,yCAAgB,CAAA;IAEhB,mDAA0B,CAAA;IAC1B,2CAAkB,CAAA;IAClB,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,4CAAmB,CAAA;IAEnB,8CAAqB,CAAA;IACrB,qDAA4B,CAAA;IAC5B,mDAA0B,CAAA;IAC1B,+CAAsB,CAAA;AACxB,CAAC,EAjBW,qBAAqB,KAArB,qBAAqB,QAiBhC;AA8CD,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAE3C,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAiDD,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,kCAAe,CAAA;AACjB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","sourcesContent":["///////////////////////////////////////////////////////\n// Generic stuff\n///////////////////////////////////////////////////////\n\nimport { SUPPORTED_LANGUAGES } from '@bisondesk/commons-sdk/constants';\nimport { MultiLangValue } from '@bisondesk/commons-sdk/types';\nimport { FieldTypes, NumberMeta } from './fields';\n\nexport enum ConditionType {\n and = 'AND',\n or = 'OR',\n}\n\nexport enum ElasticsearchOperator {\n // all properties\n empty = 'EMPTY',\n notEmpty = 'NOT_EMPTY',\n is = 'IS',\n isNot = 'IS_NOT',\n // number, date properties\n greaterThanOrEqual = 'GTE',\n greaterThan = 'GT',\n lessThanEqual = 'LTE',\n lessThan = 'LT',\n between = 'BETWEEN',\n // string properties\n contains = 'CONTAINS',\n notContains = 'NOT_CONTAINS',\n startsWith = 'STARTS_WITH',\n endsWith = 'ENDS_WITH',\n}\n\nexport type Filter<OP = ElasticsearchOperator> = {\n data: string;\n fieldId: string;\n operator: OP;\n};\n\nexport type ComplexFilter<OP = ElasticsearchOperator> = {\n condition: ConditionType;\n filters: Array<Filter<OP> | ComplexFilter<OP>>;\n};\n\nexport type SearchResponse<T = any> = {\n took: number;\n timed_out: boolean;\n _scroll_id?: string;\n _shards: unknown;\n hits: {\n total: {\n value: number;\n relation: 'eq' | 'gte';\n };\n max_score: number;\n hits: Array<{\n _index: string;\n _type: string;\n _id: string;\n _score: number;\n _source?: T;\n _version?: number;\n _explanation?: unknown;\n fields?: any;\n highlight?: any;\n inner_hits?: any;\n matched_queries?: string[];\n sort?: Array<string | number>;\n }>;\n };\n aggregations?: { [aggName: string]: object };\n};\n\n///////////////////////////////////////////////////////\n// Search\n///////////////////////////////////////////////////////\n\nexport const FILTER_RANGE_SEPARATOR = '__';\n\nexport enum SortOrder {\n asc = 'asc',\n desc = 'desc',\n}\n\nexport type SortFilter = {\n fieldId: string;\n order: SortOrder;\n};\n\nexport type BaseSearchRequest = {\n fullText?: string;\n limit: number;\n query?: ComplexFilter<ElasticsearchOperator>;\n sortBy?: SortFilter[];\n};\n\ntype InfiniteSearchRequest = {\n infinite: true;\n nextToken?: string;\n};\n\ntype PaginatedSearchRequest = {\n infinite?: false;\n offset?: number;\n};\n\nexport type SearchRequest = {\n fullText?: string;\n limit: number;\n query?: ComplexFilter<ElasticsearchOperator>;\n sortBy?: SortFilter[];\n} & (InfiniteSearchRequest | PaginatedSearchRequest);\n\nexport type PublicSearchRequest = {\n limit: number;\n offset?: number;\n query?: ComplexFilter;\n sortBy?: SortFilter[];\n};\n\n///////////////////////////////////////////////////////\n// Aggregations\n///////////////////////////////////////////////////////\n\nexport type AggFilterOperator =\n | ElasticsearchOperator.is\n | ElasticsearchOperator.greaterThan\n | ElasticsearchOperator.lessThan\n | ElasticsearchOperator.greaterThanOrEqual\n | ElasticsearchOperator.lessThanEqual;\n\nexport enum AggregationType {\n term = 'TERM',\n range = 'RANGE',\n}\n\nexport type TermAggregation = {\n titles: MultiLangValue & { [local in (typeof SUPPORTED_LANGUAGES)[number]]: string };\n fieldId: string;\n type: AggregationType.term;\n\n orderBy?: 'count' | 'field';\n} & (\n | {\n fieldType: FieldTypes.picklist;\n picklistId: string;\n }\n | {\n fieldType: FieldTypes.number;\n meta?: NumberMeta;\n }\n | {\n fieldType: Exclude<FieldTypes, FieldTypes.picklist | FieldTypes.number>;\n }\n);\n\nexport type Range =\n | {\n start: number;\n end?: number;\n }\n | {\n start?: number;\n end: number;\n }\n | {\n start: number;\n end: number;\n };\n\nexport type RangeAggregation = {\n titles: MultiLangValue & { [local in (typeof SUPPORTED_LANGUAGES)[number]]: string };\n fieldId: string;\n type: AggregationType.range;\n step: number;\n ranges: Range[];\n format?: NumberMeta;\n};\n\nexport type Aggregation = TermAggregation | RangeAggregation;\n\nexport type AggregationRequest = {\n fullText?: string;\n filters: ComplexFilter<AggFilterOperator>[];\n};\n\nexport type AggregationResult = {\n value: string;\n count: number;\n from?: number;\n to?: number;\n};\n\nexport type AggregationResultSet = {\n [field: string]: AggregationResult[];\n};\n\nexport type AggregationResponse<M = {}> = {\n results: AggregationResultSet;\n meta: M;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"/","sources":["types/tenants.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,2DAA2C,CAAA;IAC3C,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,iDAAiC,CAAA;IACjC,uCAAuB,CAAA;AACzB,CAAC,EAbW,YAAY,KAAZ,YAAY,QAavB","sourcesContent":["import { LocationValue, Region } from '@bisondesk/commons-sdk/types';\nimport { OpportunityType } from '../constants';\n\nexport type PublicTenant = {\n defaultCountry: string;\n defaultCurrency: string;\n defaultLanguage: string;\n id: string; // the id is provided on creation bc we assume tenants will be created by someone on the team\n name: string;\n region: Region;\n
|
|
1
|
+
{"version":3,"file":"tenants.js","sourceRoot":"/","sources":["types/tenants.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,2DAA2C,CAAA;IAC3C,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,iDAAiC,CAAA;IACjC,uCAAuB,CAAA;AACzB,CAAC,EAbW,YAAY,KAAZ,YAAY,QAavB","sourcesContent":["import { LocationValue, Region } from '@bisondesk/commons-sdk/types';\nimport { OpportunityType } from '../constants';\n\nexport type PublicTenant = {\n defaultCountry: string;\n defaultCurrency: string;\n defaultLanguage: string;\n id: string; // the id is provided on creation bc we assume tenants will be created by someone on the team\n name: string;\n region: Region;\n subdomains: [string, ...string[]];\n\n // Pay attention to what information is added here since\n // the tenant can be obtained without authentication\n};\n\nexport enum TenantModule {\n App = 'app',\n CRM = 'crm',\n Docs = 'docs',\n Leads = 'leads',\n Leasing = 'leasing',\n Insights = 'insights',\n Opportunities = 'opportunities',\n VehiclesMasterData = 'vehicles_master_data',\n Vehicles = 'vehicles',\n Tasks = 'tasks',\n TrackAndTrace = 'track_and_trace',\n Bootstrap = 'bootstrap',\n}\n\nexport type Tenant = PublicTenant & {\n languages: [string, ...string[]];\n conglomerate?: string;\n emailDomain: string;\n hyperdmsIds?: string[];\n hyperportalId?: string;\n exactAccounting?: boolean;\n branches: [Branch, ...Branch[]];\n modules: TenantModule[];\n test?: boolean;\n opportunities: {\n types: OpportunityType[];\n };\n};\n\nexport type Branch = {\n id: string;\n name: string;\n country: string;\n exactAccounting?: boolean;\n currency: string;\n adminNumberPrefix: string;\n stockNumberPrefix: string;\n vatRates: {\n standard: string; //percentage value (e.g. 21)\n };\n location: LocationValue;\n};\n\nexport type HdmsVehiclesSync = {\n active: boolean;\n};\n\nexport type HdmsCrmSync = {\n active: boolean;\n};\n\nexport type TenantSyncSettings = {\n tenantId: string;\n hdmsVehicles: HdmsVehiclesSync | undefined;\n hdmsCrm: HdmsCrmSync | undefined;\n};\n"]}
|