@bisondesk/core-sdk 1.0.317 → 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/internet-opportunities.d.ts +31 -0
- package/lib/types/internet-opportunities.d.ts.map +1 -0
- package/lib/types/internet-opportunities.js +2 -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 +37 -0
- 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-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-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-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-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/documents.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { TENANT_ID_ADMIN_HEADER } from '@bisondesk/commons-sdk/constants';
|
|
2
|
-
import { XError } from '@bisondesk/commons-sdk/errors';
|
|
3
|
-
import { getAdminAuth } from '@bisondesk/commons-sdk/fetch';
|
|
4
|
-
import fetch, { Response } from 'node-fetch';
|
|
5
|
-
import { FinanceBooking, FinanceDocument } from '../types/documents';
|
|
6
|
-
|
|
7
|
-
export const upsertFinanceDoc = async (
|
|
8
|
-
tenantId: string,
|
|
9
|
-
doc: FinanceDocument
|
|
10
|
-
): Promise<FinanceDocument> => {
|
|
11
|
-
const auth = await getAdminAuth();
|
|
12
|
-
const response: Response = await fetch(`${process.env.CORE_API_ORIGIN}/api/documents/finance`, {
|
|
13
|
-
method: 'POST',
|
|
14
|
-
headers: {
|
|
15
|
-
'Content-Type': 'application/json',
|
|
16
|
-
Authorization: auth,
|
|
17
|
-
[TENANT_ID_ADMIN_HEADER]: tenantId,
|
|
18
|
-
},
|
|
19
|
-
body: JSON.stringify(doc),
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
if (response.status === 200) {
|
|
23
|
-
return response.json();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const body = await response.text();
|
|
27
|
-
throw new XError('core-sdk.documents.upsert-finance-doc-fail', {
|
|
28
|
-
tenantId,
|
|
29
|
-
doc,
|
|
30
|
-
response: body,
|
|
31
|
-
status: response.status,
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const upsertFinanceBooking = async (
|
|
36
|
-
tenantId: string,
|
|
37
|
-
booking: FinanceBooking
|
|
38
|
-
): Promise<FinanceBooking> => {
|
|
39
|
-
const auth = await getAdminAuth();
|
|
40
|
-
const response: Response = await fetch(
|
|
41
|
-
`${process.env.CORE_API_ORIGIN}/api/documents/finance/booking`,
|
|
42
|
-
{
|
|
43
|
-
method: 'POST',
|
|
44
|
-
headers: {
|
|
45
|
-
'Content-Type': 'application/json',
|
|
46
|
-
Authorization: auth,
|
|
47
|
-
[TENANT_ID_ADMIN_HEADER]: tenantId,
|
|
48
|
-
},
|
|
49
|
-
body: JSON.stringify(booking),
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
if (response.status === 200) {
|
|
54
|
-
return response.json();
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const body = await response.text();
|
|
58
|
-
throw new XError('core-sdk.documents.upsert-finance-booking-fail', {
|
|
59
|
-
tenantId,
|
|
60
|
-
booking,
|
|
61
|
-
response: body,
|
|
62
|
-
status: response.status,
|
|
63
|
-
});
|
|
64
|
-
};
|
package/src/types/documents.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { AttachmentValue, SearchPermissions } from '@bisondesk/commons-sdk/types';
|
|
2
|
-
import { Organization } from './crm';
|
|
3
|
-
import { PublicSearchDefinition } from './definitions';
|
|
4
|
-
|
|
5
|
-
export enum FinanceDocumentActions {
|
|
6
|
-
PAY_FINANCE_DOCUMENT = 'pay_finance_document',
|
|
7
|
-
DELETE_FINANCE_DOCUMENT = 'delete_finance_document',
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type FinanceLine = {
|
|
11
|
-
associations: {
|
|
12
|
-
others: { vehicleId: string; label: string }[];
|
|
13
|
-
sales: { id: string; vehicleId: string; label: string }[];
|
|
14
|
-
purchases: { id: string; vehicleId: string; label: string }[];
|
|
15
|
-
};
|
|
16
|
-
description: string;
|
|
17
|
-
id: string;
|
|
18
|
-
lineCode: string;
|
|
19
|
-
quantity: string;
|
|
20
|
-
unitPriceExclusive: string;
|
|
21
|
-
vatCode: string;
|
|
22
|
-
vatCoefficient: string;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type NewExistingLeasingFinanceDocument = {
|
|
26
|
-
id?: undefined;
|
|
27
|
-
type: 'Sale Finance';
|
|
28
|
-
subtype: 'Invoice' | 'Credit Note';
|
|
29
|
-
issueDate: string;
|
|
30
|
-
contractId: string;
|
|
31
|
-
amount: string;
|
|
32
|
-
paidAt?: string;
|
|
33
|
-
dueDate?: string;
|
|
34
|
-
attachment: AttachmentValue;
|
|
35
|
-
invoiceNumber: string;
|
|
36
|
-
vatPercentage: string;
|
|
37
|
-
period: string;
|
|
38
|
-
description: string;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export type FinanceDocument = {
|
|
42
|
-
id: string;
|
|
43
|
-
branchId: string;
|
|
44
|
-
|
|
45
|
-
type: 'Sale Finance' | 'Purchase Finance';
|
|
46
|
-
subtype: 'Invoice' | 'Credit Note' | 'Proforma' | 'Purchase Order';
|
|
47
|
-
reference: string;
|
|
48
|
-
|
|
49
|
-
attachment: AttachmentValue;
|
|
50
|
-
lines: FinanceLine[];
|
|
51
|
-
notes?: string;
|
|
52
|
-
|
|
53
|
-
createdAt: string;
|
|
54
|
-
createdBy: string;
|
|
55
|
-
issueDate: string;
|
|
56
|
-
paidAt?: string;
|
|
57
|
-
paymentNotes?: string;
|
|
58
|
-
amount?: string;
|
|
59
|
-
dueDate?: string;
|
|
60
|
-
|
|
61
|
-
organizationSummary?: {
|
|
62
|
-
id: string;
|
|
63
|
-
code: string;
|
|
64
|
-
name: string;
|
|
65
|
-
country: string;
|
|
66
|
-
vatNumber?: string;
|
|
67
|
-
|
|
68
|
-
addressLine1?: string;
|
|
69
|
-
addressLine2?: string;
|
|
70
|
-
addressLine3?: string;
|
|
71
|
-
postcode?: string;
|
|
72
|
-
city?: string;
|
|
73
|
-
|
|
74
|
-
email?: string;
|
|
75
|
-
phone?: string;
|
|
76
|
-
fax?: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export type FinanceDocumentEvent = {
|
|
81
|
-
id: string;
|
|
82
|
-
actionAt: string;
|
|
83
|
-
action: 'upsert' | 'delete';
|
|
84
|
-
userId: string;
|
|
85
|
-
tenantId: string;
|
|
86
|
-
type: 'Sale Finance' | 'Purchase Finance';
|
|
87
|
-
subtype: string; // Invoice, Credit Note, etc.
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export type FinanceBookingEvent = {
|
|
91
|
-
id: string;
|
|
92
|
-
branchId: string;
|
|
93
|
-
actionAt: string;
|
|
94
|
-
userId: string;
|
|
95
|
-
tenantId: string;
|
|
96
|
-
type: 'Sale Finance' | 'Purchase Finance';
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export type FinanceBooking = {
|
|
100
|
-
branchId: string; // same tenantId can have different companies
|
|
101
|
-
bookingNumber: string; // same booking number can and will exist across different "branches", unique => BranchId / Journal / Booking Number
|
|
102
|
-
documentId: string;
|
|
103
|
-
|
|
104
|
-
booked: true;
|
|
105
|
-
journal?: string;
|
|
106
|
-
amount?: string;
|
|
107
|
-
reportingPeriod?: number;
|
|
108
|
-
reportingYear?: number;
|
|
109
|
-
paid: boolean;
|
|
110
|
-
|
|
111
|
-
createdAt: string;
|
|
112
|
-
createdBy: string;
|
|
113
|
-
modifiedAt: string;
|
|
114
|
-
modifiedBy: string;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export type SearchDocumentVehicleRef = {
|
|
118
|
-
id: string;
|
|
119
|
-
stockNumber: string;
|
|
120
|
-
administrativeNumber?: string;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
export type SearchFinanceDocument = {
|
|
124
|
-
org?: Organization;
|
|
125
|
-
doc: FinanceDocument;
|
|
126
|
-
booking?: FinanceBooking;
|
|
127
|
-
vehicle?: SearchDocumentVehicleRef[];
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
export type InputSearchFinanceDocument = SearchFinanceDocument & {
|
|
131
|
-
permissions: SearchPermissions;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export type DocsSearchDefinitions = {
|
|
135
|
-
searchFinanceDoc: PublicSearchDefinition;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export type FinanceDocumentPayment = { documentId: string } & (
|
|
139
|
-
| { paid: true; paidAt: string; comment?: string }
|
|
140
|
-
| { paid: false; paidAt?: undefined; comment?: undefined }
|
|
141
|
-
);
|
package/src/types/storage.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@bisondesk/commons-sdk/storage';
|
package/tsconfig.cjs.json
DELETED
package/tsconfig.esm.json
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|