@bisondesk/core-sdk 1.0.318 → 1.0.319
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/{types/apis → apis}/crm.d.ts +3 -3
- package/lib/apis/crm.d.ts.map +1 -0
- package/lib/{esm/apis → apis}/crm.js +3 -2
- package/lib/apis/crm.js.map +1 -0
- package/lib/{types/apis → apis}/internet-vehicles.d.ts +1 -1
- package/lib/{types/apis → apis}/internet-vehicles.d.ts.map +1 -1
- package/lib/apis/internet-vehicles.js.map +1 -0
- package/lib/{types/apis → apis}/leasing-administration.d.ts +1 -1
- package/lib/{types/apis → apis}/leasing-administration.d.ts.map +1 -1
- package/lib/apis/leasing-administration.js.map +1 -0
- package/lib/{types/apis → apis}/leasing.d.ts +2 -2
- package/lib/{types/apis → apis}/leasing.d.ts.map +1 -1
- package/lib/apis/leasing.js.map +1 -0
- package/lib/{types/apis → apis}/opportunities.d.ts +3 -3
- package/lib/{types/apis → apis}/opportunities.d.ts.map +1 -1
- package/lib/{esm/apis → apis}/opportunities.js +1 -2
- package/lib/{esm/apis → apis}/opportunities.js.map +1 -1
- package/lib/{types/apis → apis}/picklists.d.ts +1 -1
- package/lib/{types/apis → apis}/picklists.d.ts.map +1 -1
- package/lib/apis/picklists.js.map +1 -0
- package/lib/{types/apis → apis}/tenants.d.ts +1 -1
- package/lib/{types/apis → apis}/tenants.d.ts.map +1 -1
- package/lib/apis/tenants.js.map +1 -0
- package/lib/{types/apis → apis}/users.d.ts +1 -1
- package/lib/{types/apis → apis}/users.d.ts.map +1 -1
- package/lib/apis/users.js.map +1 -0
- package/lib/{types/apis → apis}/vehicles.d.ts +2 -2
- package/lib/{types/apis → apis}/vehicles.d.ts.map +1 -1
- package/lib/apis/vehicles.js.map +1 -0
- package/lib/{types/constants.d.ts → constants.d.ts} +1 -1
- package/lib/{types/constants.d.ts.map → constants.d.ts.map} +1 -1
- package/lib/{esm/constants.js → constants.js} +4 -4
- package/lib/{esm/constants.js.map → constants.js.map} +1 -1
- package/lib/types/{types/crm.d.ts → crm.d.ts} +3 -3
- package/lib/types/crm.d.ts.map +1 -0
- package/lib/types/crm.js.map +1 -0
- package/lib/types/{types/definitions.d.ts → definitions.d.ts} +2 -2
- package/lib/types/{types/definitions.d.ts.map → definitions.d.ts.map} +1 -1
- package/lib/types/definitions.js.map +1 -0
- package/lib/types/{types/delivery-settings.d.ts → delivery-settings.d.ts} +2 -2
- package/lib/types/delivery-settings.d.ts.map +1 -0
- package/lib/types/delivery-settings.js.map +1 -0
- package/lib/types/{types/insights.d.ts → insights.d.ts} +2 -2
- package/lib/types/insights.d.ts.map +1 -0
- package/lib/types/insights.js.map +1 -0
- package/lib/types/{types/interests.d.ts → interests.d.ts} +2 -2
- package/lib/types/interests.d.ts.map +1 -0
- package/lib/types/interests.js.map +1 -0
- package/lib/types/{types/internet-opportunities.d.ts → internet-opportunities.d.ts} +3 -1
- package/lib/types/internet-opportunities.d.ts.map +1 -0
- package/lib/types/internet-opportunities.js.map +1 -0
- package/lib/types/{types/internet-vehicles.d.ts → internet-vehicles.d.ts} +3 -3
- package/lib/types/internet-vehicles.d.ts.map +1 -0
- package/lib/types/internet-vehicles.js.map +1 -0
- package/lib/types/{types/leasing-administration.d.ts → leasing-administration.d.ts} +1 -1
- package/lib/types/leasing-administration.d.ts.map +1 -0
- package/lib/types/leasing-administration.js.map +1 -0
- package/lib/types/{types/leasing-debtors.d.ts → leasing-debtors.d.ts} +1 -1
- package/lib/types/{types/leasing-debtors.d.ts.map → leasing-debtors.d.ts.map} +1 -1
- package/lib/types/leasing-debtors.js.map +1 -0
- package/lib/types/{types/leasing-search.d.ts → leasing-search.d.ts} +4 -4
- package/lib/types/leasing-search.d.ts.map +1 -0
- package/lib/types/leasing-search.js.map +1 -0
- package/lib/types/{types/leasing-settings.d.ts → leasing-settings.d.ts} +2 -2
- package/lib/types/leasing-settings.d.ts.map +1 -0
- package/lib/{cjs/types → types}/leasing-settings.js.map +1 -1
- package/lib/types/{types/leasing.d.ts → leasing.d.ts} +17 -2
- package/lib/types/{types/leasing.d.ts.map → leasing.d.ts.map} +1 -1
- package/lib/types/leasing.js.map +1 -0
- package/lib/types/{types/opportunities.d.ts → opportunities.d.ts} +13 -10
- package/lib/types/opportunities.d.ts.map +1 -0
- package/lib/types/opportunities.js.map +1 -0
- package/lib/types/{types/quote-settings.d.ts → quote-settings.d.ts} +1 -1
- package/lib/types/{types/quote-settings.d.ts.map → quote-settings.d.ts.map} +1 -1
- package/lib/types/quote-settings.js.map +1 -0
- package/lib/types/{types/quotes.d.ts → quotes.d.ts} +4 -4
- package/lib/types/quotes.d.ts.map +1 -0
- package/lib/types/quotes.js.map +1 -0
- package/lib/types/{types/recently-viewed.d.ts → recently-viewed.d.ts} +1 -1
- package/lib/types/recently-viewed.d.ts.map +1 -0
- package/lib/types/recently-viewed.js.map +1 -0
- package/lib/types/{types/roi-ratings.d.ts → roi-ratings.d.ts} +3 -3
- package/lib/types/roi-ratings.d.ts.map +1 -0
- package/lib/types/roi-ratings.js.map +1 -0
- package/lib/types/{types/saved-filters.d.ts → saved-filters.d.ts} +2 -2
- package/lib/types/saved-filters.d.ts.map +1 -0
- package/lib/{cjs/types → types}/saved-filters.js.map +1 -1
- package/lib/types/{types/search.d.ts → search.d.ts} +8 -2
- package/lib/types/search.d.ts.map +1 -0
- package/lib/types/search.js.map +1 -0
- package/lib/types/{types/tenants.d.ts → tenants.d.ts} +2 -1
- package/lib/types/tenants.d.ts.map +1 -0
- package/lib/types/tenants.js.map +1 -0
- package/lib/types/{types/utils.d.ts → utils.d.ts} +1 -1
- package/lib/types/utils.d.ts.map +1 -0
- package/lib/types/utils.js.map +1 -0
- package/lib/types/{types/vehicles.d.ts → vehicles.d.ts} +1 -1
- package/lib/types/{types/vehicles.d.ts.map → vehicles.d.ts.map} +1 -1
- package/lib/types/vehicles.js.map +1 -0
- package/lib/{types/utils → utils}/forms.d.ts +1 -1
- package/lib/{types/utils → utils}/forms.d.ts.map +1 -1
- package/lib/{esm/utils → utils}/forms.js +2 -2
- package/lib/utils/forms.js.map +1 -0
- package/lib/{types/utils → utils}/leasing.d.ts +1 -1
- package/lib/utils/leasing.d.ts.map +1 -0
- package/lib/utils/leasing.js +5 -0
- package/lib/utils/leasing.js.map +1 -0
- package/lib/{types/utils → utils}/opportunities.d.ts +1 -1
- package/lib/{types/utils → utils}/opportunities.d.ts.map +1 -1
- package/lib/{esm/utils → utils}/opportunities.js +1 -1
- package/lib/utils/opportunities.js.map +1 -0
- package/lib/utils/slug.d.ts +3 -0
- package/lib/{types/utils → utils}/slug.d.ts.map +1 -1
- package/lib/{esm/utils → utils}/slug.js +1 -1
- package/lib/utils/slug.js.map +1 -0
- package/lib/{types/utils → utils}/tenants.d.ts +1 -1
- package/lib/{types/utils → utils}/tenants.d.ts.map +1 -1
- package/lib/{esm/utils → utils}/tenants.js +1 -1
- package/lib/utils/tenants.js.map +1 -0
- package/lib/{types/utils → utils}/vehicles.d.ts +1 -1
- package/lib/{types/utils → utils}/vehicles.d.ts.map +1 -1
- package/lib/{esm/utils → utils}/vehicles.js +1 -1
- package/lib/utils/vehicles.js.map +1 -0
- package/package.json +15 -24
- package/src/apis/crm.ts +16 -11
- package/src/apis/internet-vehicles.ts +1 -1
- package/src/apis/leasing-administration.ts +3 -3
- package/src/apis/leasing.ts +12 -12
- package/src/apis/opportunities.ts +4 -6
- package/src/apis/picklists.ts +3 -3
- package/src/apis/tenants.ts +6 -6
- package/src/apis/users.ts +2 -2
- package/src/apis/vehicles.ts +11 -11
- package/src/constants.ts +1 -1
- package/src/types/crm.ts +3 -3
- package/src/types/definitions.ts +2 -2
- package/src/types/delivery-settings.ts +2 -2
- package/src/types/insights.ts +2 -2
- package/src/types/interests.ts +2 -2
- package/src/types/internet-opportunities.ts +3 -1
- package/src/types/internet-vehicles.ts +3 -3
- package/src/types/leasing-administration.ts +1 -1
- package/src/types/leasing-debtors.ts +1 -1
- package/src/types/leasing-search.ts +4 -4
- package/src/types/leasing-settings.ts +2 -2
- package/src/types/leasing.ts +18 -2
- package/src/types/opportunities.ts +14 -10
- package/src/types/quote-settings.ts +1 -1
- package/src/types/quotes.ts +4 -4
- package/src/types/recently-viewed.ts +1 -1
- package/src/types/roi-ratings.ts +3 -3
- package/src/types/saved-filters.ts +2 -2
- package/src/types/search.ts +10 -2
- package/src/types/tenants.ts +2 -1
- package/src/types/utils.ts +1 -1
- package/src/types/vehicles.ts +1 -1
- package/src/utils/forms.ts +2 -2
- package/src/utils/leasing.ts +5 -4
- package/src/utils/opportunities.ts +1 -1
- package/src/utils/slug.ts +2 -2
- package/src/utils/tenants.ts +2 -2
- package/src/utils/vehicles.ts +2 -2
- package/tsconfig.deploy.json +5 -0
- package/tsconfig.deploy.tsbuildinfo +1 -0
- package/tsconfig.json +1 -2
- package/tsconfig.tsbuildinfo +1 -0
- package/lib/cjs/apis/crm.js +0 -199
- package/lib/cjs/apis/crm.js.map +0 -1
- package/lib/cjs/apis/documents.js +0 -55
- package/lib/cjs/apis/documents.js.map +0 -1
- package/lib/cjs/apis/internet-vehicles.js +0 -25
- package/lib/cjs/apis/internet-vehicles.js.map +0 -1
- package/lib/cjs/apis/leasing-administration.js +0 -47
- package/lib/cjs/apis/leasing-administration.js.map +0 -1
- package/lib/cjs/apis/leasing.js +0 -167
- package/lib/cjs/apis/leasing.js.map +0 -1
- package/lib/cjs/apis/opportunities.js +0 -66
- package/lib/cjs/apis/opportunities.js.map +0 -1
- package/lib/cjs/apis/picklists.js +0 -42
- package/lib/cjs/apis/picklists.js.map +0 -1
- package/lib/cjs/apis/tenants.js +0 -78
- package/lib/cjs/apis/tenants.js.map +0 -1
- package/lib/cjs/apis/users.js +0 -24
- package/lib/cjs/apis/users.js.map +0 -1
- package/lib/cjs/apis/vehicles.js +0 -183
- package/lib/cjs/apis/vehicles.js.map +0 -1
- package/lib/cjs/constants.js +0 -940
- package/lib/cjs/constants.js.map +0 -1
- package/lib/cjs/ddb-entities.js +0 -5
- package/lib/cjs/ddb-entities.js.map +0 -1
- package/lib/cjs/types/activities.js +0 -16
- package/lib/cjs/types/activities.js.map +0 -1
- package/lib/cjs/types/comparables.js +0 -3
- package/lib/cjs/types/crm.js +0 -19
- package/lib/cjs/types/crm.js.map +0 -1
- package/lib/cjs/types/definitions.js +0 -3
- package/lib/cjs/types/definitions.js.map +0 -1
- package/lib/cjs/types/delivery-settings.js +0 -9
- package/lib/cjs/types/delivery-settings.js.map +0 -1
- package/lib/cjs/types/documents.js +0 -9
- package/lib/cjs/types/documents.js.map +0 -1
- package/lib/cjs/types/events.js +0 -10
- package/lib/cjs/types/events.js.map +0 -1
- package/lib/cjs/types/fields.js +0 -29
- package/lib/cjs/types/fields.js.map +0 -1
- package/lib/cjs/types/insights.js +0 -3
- package/lib/cjs/types/insights.js.map +0 -1
- package/lib/cjs/types/interests.js +0 -10
- package/lib/cjs/types/interests.js.map +0 -1
- package/lib/cjs/types/internet-opportunities.js +0 -3
- package/lib/cjs/types/internet-opportunities.js.map +0 -1
- package/lib/cjs/types/internet-vehicles.js +0 -3
- package/lib/cjs/types/internet-vehicles.js.map +0 -1
- package/lib/cjs/types/leasing-administration.js +0 -3
- package/lib/cjs/types/leasing-administration.js.map +0 -1
- package/lib/cjs/types/leasing-debtors.js +0 -3
- package/lib/cjs/types/leasing-debtors.js.map +0 -1
- package/lib/cjs/types/leasing-search.js +0 -3
- package/lib/cjs/types/leasing-search.js.map +0 -1
- package/lib/cjs/types/leasing-settings.js +0 -10
- package/lib/cjs/types/leasing.js +0 -33
- package/lib/cjs/types/leasing.js.map +0 -1
- package/lib/cjs/types/machines.js +0 -3
- package/lib/cjs/types/opportunities.js +0 -95
- package/lib/cjs/types/opportunities.js.map +0 -1
- package/lib/cjs/types/payments.js +0 -10
- package/lib/cjs/types/payments.js.map +0 -1
- package/lib/cjs/types/picklists.js +0 -3
- package/lib/cjs/types/quote-settings.js +0 -3
- package/lib/cjs/types/quote-settings.js.map +0 -1
- package/lib/cjs/types/quotes.js +0 -45
- package/lib/cjs/types/quotes.js.map +0 -1
- package/lib/cjs/types/recently-viewed.js +0 -3
- package/lib/cjs/types/recently-viewed.js.map +0 -1
- package/lib/cjs/types/reservations.js +0 -8
- package/lib/cjs/types/reservations.js.map +0 -1
- package/lib/cjs/types/roi-ratings.js +0 -8
- package/lib/cjs/types/roi-ratings.js.map +0 -1
- package/lib/cjs/types/saved-filters.js +0 -12
- package/lib/cjs/types/search.js +0 -36
- package/lib/cjs/types/search.js.map +0 -1
- package/lib/cjs/types/settings.js +0 -3
- package/lib/cjs/types/storage.js +0 -5
- package/lib/cjs/types/storage.js.map +0 -1
- package/lib/cjs/types/templates.js +0 -3
- package/lib/cjs/types/tenants.js +0 -19
- package/lib/cjs/types/tenants.js.map +0 -1
- package/lib/cjs/types/users.js +0 -3
- package/lib/cjs/types/utils.js +0 -9
- package/lib/cjs/types/utils.js.map +0 -1
- package/lib/cjs/types/vehicles.js +0 -63
- package/lib/cjs/types/vehicles.js.map +0 -1
- package/lib/cjs/types/website.js +0 -3
- package/lib/cjs/utils/forms.js +0 -31
- package/lib/cjs/utils/forms.js.map +0 -1
- package/lib/cjs/utils/leasing.js +0 -8
- package/lib/cjs/utils/leasing.js.map +0 -1
- package/lib/cjs/utils/opportunities.js +0 -60
- package/lib/cjs/utils/opportunities.js.map +0 -1
- package/lib/cjs/utils/slug.js +0 -21
- package/lib/cjs/utils/slug.js.map +0 -1
- package/lib/cjs/utils/tenants.js +0 -21
- package/lib/cjs/utils/tenants.js.map +0 -1
- package/lib/cjs/utils/vehicles.js +0 -60
- package/lib/cjs/utils/vehicles.js.map +0 -1
- package/lib/esm/apis/crm.js.map +0 -1
- package/lib/esm/apis/documents.js +0 -49
- package/lib/esm/apis/documents.js.map +0 -1
- package/lib/esm/apis/internet-vehicles.js.map +0 -1
- package/lib/esm/apis/leasing-administration.js.map +0 -1
- package/lib/esm/apis/leasing.js.map +0 -1
- package/lib/esm/apis/picklists.js.map +0 -1
- package/lib/esm/apis/tenants.js.map +0 -1
- package/lib/esm/apis/users.js.map +0 -1
- package/lib/esm/apis/vehicles.js.map +0 -1
- package/lib/esm/types/comparables.js.map +0 -1
- package/lib/esm/types/crm.js.map +0 -1
- package/lib/esm/types/definitions.js.map +0 -1
- package/lib/esm/types/delivery-settings.js.map +0 -1
- package/lib/esm/types/documents.js +0 -6
- package/lib/esm/types/documents.js.map +0 -1
- package/lib/esm/types/insights.js.map +0 -1
- package/lib/esm/types/interests.js.map +0 -1
- package/lib/esm/types/internet-opportunities.js.map +0 -1
- package/lib/esm/types/internet-vehicles.js.map +0 -1
- package/lib/esm/types/leasing-administration.js.map +0 -1
- package/lib/esm/types/leasing-debtors.js.map +0 -1
- package/lib/esm/types/leasing-search.js.map +0 -1
- package/lib/esm/types/leasing-settings.js.map +0 -1
- package/lib/esm/types/leasing.js.map +0 -1
- package/lib/esm/types/machines.js.map +0 -1
- package/lib/esm/types/opportunities.js.map +0 -1
- package/lib/esm/types/picklists.js.map +0 -1
- package/lib/esm/types/quote-settings.js.map +0 -1
- package/lib/esm/types/quotes.js.map +0 -1
- package/lib/esm/types/recently-viewed.js.map +0 -1
- package/lib/esm/types/roi-ratings.js.map +0 -1
- package/lib/esm/types/saved-filters.js.map +0 -1
- package/lib/esm/types/search.js.map +0 -1
- package/lib/esm/types/settings.js.map +0 -1
- package/lib/esm/types/storage.js +0 -2
- package/lib/esm/types/storage.js.map +0 -1
- package/lib/esm/types/templates.js.map +0 -1
- package/lib/esm/types/tenants.js.map +0 -1
- package/lib/esm/types/users.js.map +0 -1
- package/lib/esm/types/utils.js.map +0 -1
- package/lib/esm/types/vehicles.js.map +0 -1
- package/lib/esm/types/website.js.map +0 -1
- package/lib/esm/utils/forms.js.map +0 -1
- package/lib/esm/utils/leasing.js +0 -4
- package/lib/esm/utils/leasing.js.map +0 -1
- package/lib/esm/utils/opportunities.js.map +0 -1
- package/lib/esm/utils/slug.js.map +0 -1
- package/lib/esm/utils/tenants.js.map +0 -1
- package/lib/esm/utils/vehicles.js.map +0 -1
- package/lib/tsconfig.cjs.tsbuildinfo +0 -1
- package/lib/tsconfig.esm.tsbuildinfo +0 -1
- package/lib/types/apis/crm.d.ts.map +0 -1
- package/lib/types/apis/documents.d.ts +0 -4
- package/lib/types/apis/documents.d.ts.map +0 -1
- package/lib/types/types/crm.d.ts.map +0 -1
- package/lib/types/types/delivery-settings.d.ts.map +0 -1
- package/lib/types/types/documents.d.ts +0 -140
- package/lib/types/types/documents.d.ts.map +0 -1
- package/lib/types/types/insights.d.ts.map +0 -1
- package/lib/types/types/interests.d.ts.map +0 -1
- package/lib/types/types/internet-opportunities.d.ts.map +0 -1
- package/lib/types/types/internet-vehicles.d.ts.map +0 -1
- package/lib/types/types/leasing-administration.d.ts.map +0 -1
- package/lib/types/types/leasing-search.d.ts.map +0 -1
- package/lib/types/types/leasing-settings.d.ts.map +0 -1
- package/lib/types/types/opportunities.d.ts.map +0 -1
- package/lib/types/types/quotes.d.ts.map +0 -1
- package/lib/types/types/recently-viewed.d.ts.map +0 -1
- package/lib/types/types/roi-ratings.d.ts.map +0 -1
- package/lib/types/types/saved-filters.d.ts.map +0 -1
- package/lib/types/types/search.d.ts.map +0 -1
- package/lib/types/types/storage.d.ts +0 -2
- package/lib/types/types/storage.d.ts.map +0 -1
- package/lib/types/types/tenants.d.ts.map +0 -1
- package/lib/types/types/utils.d.ts.map +0 -1
- package/lib/types/utils/leasing.d.ts.map +0 -1
- package/lib/types/utils/slug.d.ts +0 -3
- package/src/apis/documents.ts +0 -64
- package/src/types/documents.ts +0 -141
- package/src/types/storage.ts +0 -1
- package/tsconfig.cjs.json +0 -9
- package/tsconfig.esm.json +0 -9
- /package/lib/{esm/apis → apis}/internet-vehicles.js +0 -0
- /package/lib/{esm/apis → apis}/leasing-administration.js +0 -0
- /package/lib/{esm/apis → apis}/leasing.js +0 -0
- /package/lib/{esm/apis → apis}/picklists.js +0 -0
- /package/lib/{esm/apis → apis}/tenants.js +0 -0
- /package/lib/{esm/apis → apis}/users.js +0 -0
- /package/lib/{esm/apis → apis}/vehicles.js +0 -0
- /package/lib/{types/ddb-entities.d.ts → ddb-entities.d.ts} +0 -0
- /package/lib/{types/ddb-entities.d.ts.map → ddb-entities.d.ts.map} +0 -0
- /package/lib/{esm/ddb-entities.js → ddb-entities.js} +0 -0
- /package/lib/{esm/ddb-entities.js.map → ddb-entities.js.map} +0 -0
- /package/lib/types/{types/activities.d.ts → activities.d.ts} +0 -0
- /package/lib/types/{types/activities.d.ts.map → activities.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/activities.js +0 -0
- /package/lib/{esm/types → types}/activities.js.map +0 -0
- /package/lib/types/{types/comparables.d.ts → comparables.d.ts} +0 -0
- /package/lib/types/{types/comparables.d.ts.map → comparables.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/comparables.js +0 -0
- /package/lib/{cjs/types → types}/comparables.js.map +0 -0
- /package/lib/{esm/types → types}/crm.js +0 -0
- /package/lib/{esm/types → types}/definitions.js +0 -0
- /package/lib/{esm/types → types}/delivery-settings.js +0 -0
- /package/lib/types/{types/events.d.ts → events.d.ts} +0 -0
- /package/lib/types/{types/events.d.ts.map → events.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/events.js +0 -0
- /package/lib/{esm/types → types}/events.js.map +0 -0
- /package/lib/types/{types/fields.d.ts → fields.d.ts} +0 -0
- /package/lib/types/{types/fields.d.ts.map → fields.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/fields.js +0 -0
- /package/lib/{esm/types → types}/fields.js.map +0 -0
- /package/lib/{esm/types → types}/insights.js +0 -0
- /package/lib/{esm/types → types}/interests.js +0 -0
- /package/lib/{esm/types → types}/internet-opportunities.js +0 -0
- /package/lib/{esm/types → types}/internet-vehicles.js +0 -0
- /package/lib/{esm/types → types}/leasing-administration.js +0 -0
- /package/lib/{esm/types → types}/leasing-debtors.js +0 -0
- /package/lib/{esm/types → types}/leasing-search.js +0 -0
- /package/lib/{esm/types → types}/leasing-settings.js +0 -0
- /package/lib/{esm/types → types}/leasing.js +0 -0
- /package/lib/types/{types/machines.d.ts → machines.d.ts} +0 -0
- /package/lib/types/{types/machines.d.ts.map → machines.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/machines.js +0 -0
- /package/lib/{cjs/types → types}/machines.js.map +0 -0
- /package/lib/{esm/types → types}/opportunities.js +0 -0
- /package/lib/types/{types/payments.d.ts → payments.d.ts} +0 -0
- /package/lib/types/{types/payments.d.ts.map → payments.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/payments.js +0 -0
- /package/lib/{esm/types → types}/payments.js.map +0 -0
- /package/lib/types/{types/picklists.d.ts → picklists.d.ts} +0 -0
- /package/lib/types/{types/picklists.d.ts.map → picklists.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/picklists.js +0 -0
- /package/lib/{cjs/types → types}/picklists.js.map +0 -0
- /package/lib/{esm/types → types}/quote-settings.js +0 -0
- /package/lib/{esm/types → types}/quotes.js +0 -0
- /package/lib/{esm/types → types}/recently-viewed.js +0 -0
- /package/lib/types/{types/reservations.d.ts → reservations.d.ts} +0 -0
- /package/lib/types/{types/reservations.d.ts.map → reservations.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/reservations.js +0 -0
- /package/lib/{esm/types → types}/reservations.js.map +0 -0
- /package/lib/{esm/types → types}/roi-ratings.js +0 -0
- /package/lib/{esm/types → types}/saved-filters.js +0 -0
- /package/lib/{esm/types → types}/search.js +0 -0
- /package/lib/types/{types/settings.d.ts → settings.d.ts} +0 -0
- /package/lib/types/{types/settings.d.ts.map → settings.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/settings.js +0 -0
- /package/lib/{cjs/types → types}/settings.js.map +0 -0
- /package/lib/types/{types/templates.d.ts → templates.d.ts} +0 -0
- /package/lib/types/{types/templates.d.ts.map → templates.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/templates.js +0 -0
- /package/lib/{cjs/types → types}/templates.js.map +0 -0
- /package/lib/{esm/types → types}/tenants.js +0 -0
- /package/lib/types/{types/users.d.ts → users.d.ts} +0 -0
- /package/lib/types/{types/users.d.ts.map → users.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/users.js +0 -0
- /package/lib/{cjs/types → types}/users.js.map +0 -0
- /package/lib/{esm/types → types}/utils.js +0 -0
- /package/lib/{esm/types → types}/vehicles.js +0 -0
- /package/lib/types/{types/website.d.ts → website.d.ts} +0 -0
- /package/lib/types/{types/website.d.ts.map → website.d.ts.map} +0 -0
- /package/lib/{esm/types → types}/website.js +0 -0
- /package/lib/{cjs/types → types}/website.js.map +0 -0
package/src/apis/vehicles.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { SERVICE_ID_ADMIN_HEADER, TENANT_ID_ADMIN_HEADER } from '@bisondesk/comm
|
|
|
2
2
|
import { XError } from '@bisondesk/commons-sdk/errors';
|
|
3
3
|
import { cleanHeaders, fetchJson, getAdminAuth } from '@bisondesk/commons-sdk/fetch';
|
|
4
4
|
import fetch, { Response } from 'node-fetch';
|
|
5
|
-
import { DataRecord } from '../types/utils';
|
|
6
|
-
import { NewVehicle, Vehicle, VehicleMarketing, VehiclePurchase } from '../types/vehicles';
|
|
5
|
+
import { DataRecord } from '../types/utils.js';
|
|
6
|
+
import { NewVehicle, Vehicle, VehicleMarketing, VehiclePurchase } from '../types/vehicles.js';
|
|
7
7
|
|
|
8
8
|
export const getVehicle = async (
|
|
9
9
|
tenantId: string,
|
|
@@ -21,7 +21,7 @@ export const getVehicle = async (
|
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
if (response.ok) {
|
|
24
|
-
return response.status === 200 ? response.json() : undefined;
|
|
24
|
+
return response.status === 200 ? (response.json() as any) : undefined;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
const body = await response.text();
|
|
@@ -57,7 +57,7 @@ export const getVehiclePurchase = async (
|
|
|
57
57
|
);
|
|
58
58
|
|
|
59
59
|
if (response.ok) {
|
|
60
|
-
return response.status === 200 ? response.json() : undefined;
|
|
60
|
+
return response.status === 200 ? (response.json() as any) : undefined;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
const body = await response.text();
|
|
@@ -80,7 +80,7 @@ export const getVehicleByStockNumber = async (
|
|
|
80
80
|
);
|
|
81
81
|
|
|
82
82
|
if (response.ok) {
|
|
83
|
-
return response.status === 200 ? response.json() : undefined;
|
|
83
|
+
return response.status === 200 ? (response.json() as any) : undefined;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
const body = await response.text();
|
|
@@ -103,7 +103,7 @@ export const getVehicleByPurchaseStockNumber = async (
|
|
|
103
103
|
);
|
|
104
104
|
|
|
105
105
|
if (response.ok) {
|
|
106
|
-
return response.status === 200 ? response.json() : undefined;
|
|
106
|
+
return response.status === 200 ? (response.json() as any) : undefined;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
const body = await response.text();
|
|
@@ -129,7 +129,7 @@ export const listVehiclesMarketing = async (
|
|
|
129
129
|
);
|
|
130
130
|
|
|
131
131
|
if (response.ok) {
|
|
132
|
-
return response.status === 200 ? response.json() : undefined;
|
|
132
|
+
return response.status === 200 ? (response.json() as any) : undefined;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
const body = await response.text();
|
|
@@ -152,7 +152,7 @@ export const getVehicleMarketing = async (
|
|
|
152
152
|
);
|
|
153
153
|
|
|
154
154
|
if (response.ok) {
|
|
155
|
-
return response.status === 200 ? response.json() : undefined;
|
|
155
|
+
return response.status === 200 ? (response.json() as any) : undefined;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
const body = await response.text();
|
|
@@ -180,7 +180,7 @@ export const saveMarketing = async (
|
|
|
180
180
|
);
|
|
181
181
|
|
|
182
182
|
if (response.ok) {
|
|
183
|
-
return response.json();
|
|
183
|
+
return response.json() as any;
|
|
184
184
|
}
|
|
185
185
|
const body = await response.text();
|
|
186
186
|
throw new XError(response.statusText, { body, tenantId, vehicleId, marketing });
|
|
@@ -208,7 +208,7 @@ export const saveVehiclePurchase = async (
|
|
|
208
208
|
);
|
|
209
209
|
|
|
210
210
|
if (response.ok) {
|
|
211
|
-
return response.json();
|
|
211
|
+
return response.json() as any;
|
|
212
212
|
}
|
|
213
213
|
const body = await response.text();
|
|
214
214
|
throw new XError(response.statusText, { body, tenantId, vehicleId, purchase, opts });
|
|
@@ -232,7 +232,7 @@ export const saveVehicle = async (
|
|
|
232
232
|
});
|
|
233
233
|
|
|
234
234
|
if (response.ok) {
|
|
235
|
-
return response.json();
|
|
235
|
+
return response.json() as any;
|
|
236
236
|
}
|
|
237
237
|
const body = await response.text();
|
|
238
238
|
throw new XError(response.statusText, { body, tenantId, vehicle, opts });
|
package/src/constants.ts
CHANGED
package/src/types/crm.ts
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
PhoneNumberValue,
|
|
6
6
|
SearchPermissions,
|
|
7
7
|
} from '@bisondesk/commons-sdk/types';
|
|
8
|
-
import { PublicSearchDefinition } from './definitions';
|
|
9
|
-
import { LeasingContract } from './leasing';
|
|
10
|
-
import { ReferenceData } from './utils';
|
|
8
|
+
import { PublicSearchDefinition } from './definitions.js';
|
|
9
|
+
import { LeasingContract } from './leasing.js';
|
|
10
|
+
import { ReferenceData } from './utils.js';
|
|
11
11
|
|
|
12
12
|
export type CrmEvent = CrmOrganizationEvent | CrmContactEvent;
|
|
13
13
|
|
package/src/types/definitions.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SUPPORTED_LANGUAGES } from '@bisondesk/commons-sdk/constants';
|
|
2
|
-
import { FieldTypeInfo } from './fields';
|
|
3
|
-
import { Aggregation } from './search';
|
|
2
|
+
import { FieldTypeInfo } from './fields.js';
|
|
3
|
+
import { Aggregation } from './search.js';
|
|
4
4
|
|
|
5
5
|
//
|
|
6
6
|
// These definitions are sent to the UI
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LocationValue } from '@bisondesk/commons-sdk/types';
|
|
2
|
-
import { Categories } from '../constants';
|
|
2
|
+
import { Categories } from '../constants.js';
|
|
3
3
|
|
|
4
|
-
export
|
|
4
|
+
export enum TransitPlateCountries {
|
|
5
5
|
BE = 'be',
|
|
6
6
|
AT = 'at',
|
|
7
7
|
}
|
package/src/types/insights.ts
CHANGED
package/src/types/interests.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PhoneNumberValue } from '@bisondesk/commons-sdk/types';
|
|
2
|
-
import { OpportunityType } from '../constants';
|
|
2
|
+
import { OpportunityType } from '../constants.js';
|
|
3
3
|
|
|
4
4
|
type BaseInternetOpportunity = {
|
|
5
5
|
// ids
|
|
@@ -28,6 +28,8 @@ type BaseInternetOpportunity = {
|
|
|
28
28
|
|
|
29
29
|
export type InternetOpportunityEvent = BaseInternetOpportunity & {
|
|
30
30
|
phoneNumber?: string;
|
|
31
|
+
replyToEmail?: string;
|
|
32
|
+
fromEmail?: string;
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
export type InternetOpportunity = BaseInternetOpportunity & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LocationValue, PhoneNumberValue } from '@bisondesk/commons-sdk/types';
|
|
2
|
-
import { PublicSearchDefinition } from './definitions';
|
|
3
|
-
import { AggregationRequest } from './search';
|
|
4
|
-
import { Vehicle } from './vehicles';
|
|
2
|
+
import { PublicSearchDefinition } from './definitions.js';
|
|
3
|
+
import { AggregationRequest } from './search.js';
|
|
4
|
+
import { Vehicle } from './vehicles.js';
|
|
5
5
|
|
|
6
6
|
export type InternetVehicleInternalInfo = {
|
|
7
7
|
createdAt: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { InsuranceEntry } from '@bisondesk/commons-sdk/insurance';
|
|
2
2
|
import { SearchPermissions } from '@bisondesk/commons-sdk/types';
|
|
3
|
-
import { Contact, Organization } from './crm';
|
|
4
|
-
import { PublicSearchDefinition } from './definitions';
|
|
5
|
-
import { LeasingContract } from './leasing';
|
|
6
|
-
import { Vehicle } from './vehicles';
|
|
3
|
+
import { Contact, Organization } from './crm.js';
|
|
4
|
+
import { PublicSearchDefinition } from './definitions.js';
|
|
5
|
+
import { LeasingContract } from './leasing.js';
|
|
6
|
+
import { Vehicle } from './vehicles.js';
|
|
7
7
|
|
|
8
8
|
export type LeasingPublicSearchDefinitions = {
|
|
9
9
|
searchLeasingContract: PublicSearchDefinition;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MultiLangValue } from '@bisondesk/commons-sdk/types';
|
|
2
|
-
import { Categories, OpportunityType } from '../constants';
|
|
3
|
-
import { SortFilter } from './search';
|
|
2
|
+
import { Categories, OpportunityType } from '../constants.js';
|
|
3
|
+
import { SortFilter } from './search.js';
|
|
4
4
|
|
|
5
5
|
type BaseQuoteExtraSettings = {
|
|
6
6
|
referenceCode: string;
|
package/src/types/leasing.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmailMessage } from '@bisondesk/commons-sdk/messages';
|
|
2
2
|
import { AttachmentValue, Document, LinkValue, PaginatedList } from '@bisondesk/commons-sdk/types';
|
|
3
|
-
import { SortFilter } from './search';
|
|
4
|
-
import { ReferenceData } from './utils';
|
|
3
|
+
import { SortFilter } from './search.js';
|
|
4
|
+
import { ReferenceData } from './utils.js';
|
|
5
5
|
|
|
6
6
|
export enum LeasingContractActions {
|
|
7
7
|
CREATE_FINANCE_DOCUMENT = 'create_finance_document',
|
|
@@ -392,3 +392,19 @@ export enum LEASING_EXPORT_TYPES {
|
|
|
392
392
|
RENTAL_SOLUTIONS = 'rental-solutions',
|
|
393
393
|
DEFAULT = 'default',
|
|
394
394
|
}
|
|
395
|
+
|
|
396
|
+
export type NewExistingLeasingFinanceDocument = {
|
|
397
|
+
id?: undefined;
|
|
398
|
+
type: 'Sale Finance';
|
|
399
|
+
subtype: 'Invoice' | 'Credit Note';
|
|
400
|
+
issueDate: string;
|
|
401
|
+
contractId: string;
|
|
402
|
+
amount: string;
|
|
403
|
+
paidAt?: string;
|
|
404
|
+
dueDate?: string;
|
|
405
|
+
attachment: AttachmentValue;
|
|
406
|
+
invoiceNumber: string;
|
|
407
|
+
vatPercentage: string;
|
|
408
|
+
period: string;
|
|
409
|
+
description: string;
|
|
410
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Document, NextList } from '@bisondesk/commons-sdk/types';
|
|
2
|
-
import { BusinessEntityIds, OpportunityType, WarningHints } from '../constants';
|
|
3
|
-
import { Contact, Organization } from './crm';
|
|
4
|
-
import type { InterestBffMeta, OpportunityInterest } from './interests';
|
|
5
|
-
import { Payment } from './payments';
|
|
6
|
-
import { Quote, QuoteStatus } from './quotes';
|
|
7
|
-
import { OpportunityReservation } from './reservations';
|
|
8
|
-
import { BaseSearchRequest } from './search';
|
|
9
|
-
import { DataRecord, ReferenceData } from './utils';
|
|
10
|
-
import { Vehicle } from './vehicles';
|
|
2
|
+
import { BusinessEntityIds, OpportunityType, WarningHints } from '../constants.js';
|
|
3
|
+
import { Contact, Organization } from './crm.js';
|
|
4
|
+
import type { InterestBffMeta, OpportunityInterest } from './interests.js';
|
|
5
|
+
import { Payment } from './payments.js';
|
|
6
|
+
import { Quote, QuoteStatus } from './quotes.js';
|
|
7
|
+
import { OpportunityReservation } from './reservations.js';
|
|
8
|
+
import { BaseSearchRequest } from './search.js';
|
|
9
|
+
import { DataRecord, ReferenceData } from './utils.js';
|
|
10
|
+
import { Vehicle } from './vehicles.js';
|
|
11
11
|
|
|
12
12
|
export enum OpportunityActions {
|
|
13
13
|
ADD_COMMISSION = 'add_commission',
|
|
@@ -228,6 +228,10 @@ export type OpportunityBffMeta = ReferenceData & {
|
|
|
228
228
|
warnings: OpportunityWarning[];
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
+
export type ContactMetdata = {
|
|
232
|
+
openOpportunities: number;
|
|
233
|
+
};
|
|
234
|
+
|
|
231
235
|
export type OpportunityBFF = {
|
|
232
236
|
opportunity: DataRecord<Opportunity, OpportunityBffMeta>;
|
|
233
237
|
vehicle?: DataRecord<Vehicle, VehicleBffMetadata>;
|
|
@@ -238,7 +242,7 @@ export type OpportunityBFF = {
|
|
|
238
242
|
payments: PaymentSummary | undefined;
|
|
239
243
|
reservation?: DataRecord<OpportunityReservation>;
|
|
240
244
|
customer?: {
|
|
241
|
-
contact: DataRecord<Contact>;
|
|
245
|
+
contact: DataRecord<Contact, ContactMetdata>;
|
|
242
246
|
org?: DataRecord<Organization>;
|
|
243
247
|
};
|
|
244
248
|
};
|
package/src/types/quotes.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AttachmentValue, LocationValue } from '@bisondesk/commons-sdk/types';
|
|
2
|
-
import { OpportunityType } from '../constants';
|
|
2
|
+
import { OpportunityType } from '../constants.js';
|
|
3
3
|
import {
|
|
4
4
|
CustomLeasingQuoteExtraInput,
|
|
5
5
|
CustomSalesQuoteExtraInput,
|
|
6
6
|
LeasingDeliveryPackageInput,
|
|
7
7
|
LeasingQuoteExtraInput,
|
|
8
8
|
SalesQuoteExtraInput,
|
|
9
|
-
} from './leasing-settings';
|
|
10
|
-
import { MatchingRuleValue } from './roi-ratings';
|
|
11
|
-
import { PricePercentageMode } from './utils';
|
|
9
|
+
} from './leasing-settings.js';
|
|
10
|
+
import { MatchingRuleValue } from './roi-ratings.js';
|
|
11
|
+
import { PricePercentageMode } from './utils.js';
|
|
12
12
|
|
|
13
13
|
export enum QuoteActions {
|
|
14
14
|
ACCEPT = 'accept',
|
package/src/types/roi-ratings.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AdditionalOperation, RulesLogic } from 'json-logic-js';
|
|
2
|
-
import { OpportunityType } from '../constants';
|
|
3
|
-
import { FieldTypeInfo } from './fields';
|
|
1
|
+
import type { AdditionalOperation, RulesLogic } from 'json-logic-js';
|
|
2
|
+
import { OpportunityType } from '../constants.js';
|
|
3
|
+
import { FieldTypeInfo } from './fields.js';
|
|
4
4
|
|
|
5
5
|
export enum DisplayType {
|
|
6
6
|
StarsRating = 'stars-rating',
|
package/src/types/search.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// Generic stuff
|
|
3
3
|
///////////////////////////////////////////////////////
|
|
4
4
|
|
|
5
|
-
import { SUPPORTED_LANGUAGES } from '@bisondesk/commons-sdk/constants';
|
|
5
|
+
import { BusinessEntityIds, SUPPORTED_LANGUAGES } from '@bisondesk/commons-sdk/constants';
|
|
6
6
|
import { MultiLangValue } from '@bisondesk/commons-sdk/types';
|
|
7
|
-
import { FieldTypes, NumberMeta } from './fields';
|
|
7
|
+
import { FieldTypes, NumberMeta } from './fields.js';
|
|
8
8
|
|
|
9
9
|
export enum ConditionType {
|
|
10
10
|
and = 'AND',
|
|
@@ -110,6 +110,14 @@ export type SearchRequest = {
|
|
|
110
110
|
sortBy?: SortFilter[];
|
|
111
111
|
} & (InfiniteSearchRequest | PaginatedSearchRequest);
|
|
112
112
|
|
|
113
|
+
export type MultiEntitySearchRequest = SearchRequest & {
|
|
114
|
+
entityIds: BusinessEntityIds[];
|
|
115
|
+
} & (InfiniteSearchRequest | PaginatedSearchRequest);
|
|
116
|
+
|
|
117
|
+
export type MultiEntitySearchItem<T = unknown> = {
|
|
118
|
+
businessEntityId: BusinessEntityIds;
|
|
119
|
+
} & T;
|
|
120
|
+
|
|
113
121
|
export type PublicSearchRequest = {
|
|
114
122
|
limit: number;
|
|
115
123
|
offset?: number;
|
package/src/types/tenants.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LocationValue, Region } from '@bisondesk/commons-sdk/types';
|
|
2
|
-
import { OpportunityType } from '../constants';
|
|
2
|
+
import { OpportunityType } from '../constants.js';
|
|
3
3
|
|
|
4
4
|
export type PublicTenant = {
|
|
5
5
|
defaultCountry: string;
|
|
@@ -52,6 +52,7 @@ export type Branch = {
|
|
|
52
52
|
currency: string;
|
|
53
53
|
adminNumberPrefix: string;
|
|
54
54
|
stockNumberPrefix: string;
|
|
55
|
+
vatNumber?: string;
|
|
55
56
|
vatRates: {
|
|
56
57
|
standard: string; //percentage value (e.g. 21)
|
|
57
58
|
};
|
package/src/types/utils.ts
CHANGED
package/src/types/vehicles.ts
CHANGED
package/src/utils/forms.ts
CHANGED
package/src/utils/leasing.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { UTCDate } from '@date-fns/utc';
|
|
2
|
+
import { format } from 'date-fns';
|
|
3
|
+
import { map, sortBy, uniqBy } from 'lodash-es';
|
|
4
|
+
import { LeasingContractClient } from '../types/leasing.js';
|
|
4
5
|
|
|
5
6
|
/* sort from oldest to most recent client */
|
|
6
7
|
export const sortContractClients = (clients: LeasingContractClient[]): LeasingContractClient[] =>
|
|
7
8
|
sortBy(
|
|
8
9
|
map(
|
|
9
10
|
uniqBy(clients, (c) => c.takeoverId),
|
|
10
|
-
(c) => ({ ...c, since:
|
|
11
|
+
(c) => ({ ...c, since: format(new UTCDate(c.since), 'yyyy-MM-dd') }) // doing a map to also fix legacy data
|
|
11
12
|
),
|
|
12
13
|
(cli) => cli.since,
|
|
13
14
|
(cli) => (cli.takeoverId ? parseInt(cli.takeoverId.replace(/[^0-9]/g, '')) : 0)
|
package/src/utils/slug.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import slugify from 'slugify';
|
|
2
|
-
import { Vehicle } from '../types/vehicles';
|
|
2
|
+
import { Vehicle } from '../types/vehicles.js';
|
|
3
3
|
|
|
4
4
|
export const getVehicleSlug = (vehicle: Vehicle): string => {
|
|
5
|
-
return slugify(
|
|
5
|
+
return slugify.default(
|
|
6
6
|
[
|
|
7
7
|
vehicle.external.identification.stockNumber ?? vehicle.internal.identification.stockNumber,
|
|
8
8
|
vehicle.external.general.make,
|
package/src/utils/tenants.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { XError } from '@bisondesk/commons-sdk/errors';
|
|
2
|
-
import { first } from 'lodash';
|
|
3
|
-
import { Branch, Tenant } from '../types/tenants';
|
|
2
|
+
import { first } from 'lodash-es';
|
|
3
|
+
import { Branch, Tenant } from '../types/tenants.js';
|
|
4
4
|
|
|
5
5
|
export const getBranch = (tenant: Tenant, branchId: string): Branch => {
|
|
6
6
|
const branch = tenant.branches.find((branch: Branch) => branch.id === branchId);
|
package/src/utils/vehicles.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Categories } from '../constants';
|
|
2
|
-
import { VehicleExternalInfo } from '../types/vehicles';
|
|
1
|
+
import { Categories } from '../constants.js';
|
|
2
|
+
import { VehicleExternalInfo } from '../types/vehicles.js';
|
|
3
3
|
|
|
4
4
|
export const extractCustomFeatures = (vehicle: VehicleExternalInfo): string[] => {
|
|
5
5
|
const features: {
|