Skip to main content

@boldpenguin/sdk

12.1.0

Minor Changes

@boldpenguin/sdk-web-components

  • Revert filtering of question sets in nav menu which are empty

12.0.0

Major Changes

@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Update fields in IQuotePriceDetails type.
  • Update field types for IQuoteRequestQuote type.

  • New release

@boldpenguin/sdk-redux

  • Update BpSdkDispatch type to be more explicitly typed for the actions that can be dispatched through the store
  • Remove BpSdkThunk type, use Parameters<BpSdkDispatch> instead

@boldpenguin/sdk-requests, @boldpenguin/sdk-types

  • Remove forgotPassword and resetPassword auth request methods and its types.

@boldpenguin/sdk-web-components, @boldpenguin/sdk-utility, @boldpenguin/sdk-types

  • Update component type signatures to reflect backend services, replaced undefined with null on optional string types, removed the optional state of booleans, used enums where possible in place of strings.

Minor Changes

@boldpenguin/sdk-web-components

  • Support unexpected question types from the backend by rendering them as a text input

@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux

  • Fix VIN selection state bug

@boldpenguin/sdk-web-components

  • Allow manual lock of form

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add application form labels

@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Store locked state of app form in sdk store

@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-icons, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-demo

  • Fix mapping of question pools in stepper step question sets

    Previously, we would wholesale copy the question pools from the parent question set. This caused an issue with nested question pools as when we looked up the parent question set, it would find the first stepper step question set. That was okay because the first question set has usually been the parent; however, the addition of a question set to the start of a stepper threw off this assumption.

    Now, when we map the question pools to a stepper step question set, we only include those whose parent question ID is listed in the question set's question IDs. This ensures the nested pool will find the correct question set containing its parent question pool.

@boldpenguin/sdk-requests, @boldpenguin/sdk-types

  • Add createTenantApplicationForm method

    Calls the tenant/application_forms:create endpoint. This is similar to createApplicationForm except that this method requires a tenant ID, and it does not return the full application form.

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Added originating_copy_id to ApplicationForm

@boldpenguin/sdk-types

  • Added enum values for bind CTAs

@boldpenguin/sdk-web-components

  • Allow question set container to take a question set id as a prop to display reguardless of active question set

@boldpenguin/sdk-requests

  • Move and rename programmatic bind endpoint

@boldpenguin/sdk-redux

  • Find coverage type answer via reference type

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add allowed carrier ids to state

@boldpenguin/sdk-redux

  • Filter offline products out of selectOptInRequiredCarriers selector

@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-icons, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-demo

    1. Removes empty question sets from navigation

    Stepper steps undergo some preprocessing before being passed to the navigation component. Specifically, the parent question's question_set_id is set to the first step's question set id. The parent question set is used to populate the main question set navigation link, and the steps are used to build in the indented parts.

    Stepper navigation in text form:

    • Question set 1 (parent QS name; routes to step 1)
      • Step 1
      • Step 2
    • Question set 2

    The intent behind this is that when you click the main navigation for a question set, it will direct you to the first step in the stepper.

    Emperor's navigation component filters out empty question sets when building it, but this can create an odd situation if the first step is empty (this can happen with the new Claims and Losses MQS step). In that case, the step does not display in the navigation, but because the parent points to its question set id, it will display when the question set navigation link is clicked.

    The fix is to filter out empty question sets from the list of question sets so stepper parents only point at a step which will be displayed.

    1. Exports isQuestionSetViewableToUser() from the utilities package

    This function determines whether a question set should be displayed to a user based on its active status and whether it has answers.

Patch Changes

@boldpenguin/sdk-redux

  • De-duplicate carrier products from real-time eligibility

@boldpenguin/sdk-web-components

  • set vehicle configuration question to be required=true

@boldpenguin/sdk-redux

  • Revert update of active question set on receive question set

@boldpenguin/sdk-web-components

  • Add call_to_action to props

@boldpenguin/sdk-types

  • BP-39739 | Add new 'rate indication' value for quote request labels.

@boldpenguin/sdk-requests

  • Update delete bind reveiw to expect empty result

@boldpenguin/sdk-requests, @boldpenguin/sdk-types

  • feat: BP-38036 | Add new bind endpoint to SDK

@boldpenguin/sdk-web-components

  • Fetch updated vehicle information correctly when adding vehicle by VIN

@boldpenguin/sdk-requests

  • feat: BP-39271 | Add bind_and_pay endpoint

@boldpenguin/sdk-requests, @boldpenguin/sdk-types

  • feat: BP-39019 | Add new payment strategy endpoint

@boldpenguin/sdk-types

  • Update quote request types

@boldpenguin/sdk-redux

  • Fix for question set nav on steppers

@boldpenguin/sdk-web-components

  • Do not eagerly call save question set and proceed on address validation

11.0.1

Patch Changes

  • Add README and LICENSE files to @boldpenguin/sdk

11.0.0

Major Changes

@boldpenguin/sdk-types

  • Add IQuestionIndex type
  • Add IAnswerIndex type
  • Add IApplicationFormQuickView type
  • Add missing fields to IApplicationFormIndex type

@boldpenguin/sdk-types

  • Remove ISocketData type, use TWebsocketEvent type instead

@boldpenguin/sdk-web-components, @boldpenguin/sdk-types

  • Remove isRefilteringEnabled property from bp-sdk-business-classification-selector component and associated types + components.
  • Remove bp-sdk-business-classification-selector-nudge-container component

@boldpenguin/sdk-web-components

  • getApplicationFormCarriersProducts prop has been removed from bp-sdk-quote-request-container component
  • onlineQuotesSortFn has been renamed to quotesSortFn on bp-sdk-quote-request-container component which resolves an issue with compilation when using Angular and passing in that property
  • Most IQuoteRequest types on components have been updated to IQuotesState which will reflect the correct data being passed in
  • Added bp-sdk-quote-request-logo-container component which wraps bp-sdk-quote-request-logo component and passes data from Redux in

@boldpenguin/sdk-types

  • Remove COVERAGE_TYPES export. Use import { COVERAGE_REFERENCES } from '@boldpenguin/sdk'; instead

@boldpenguin/sdk-web-components, @boldpenguin/sdk-types

  • Add support for new question field_type: 'month_year'

@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-icons, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-demo

  • Add off-platform carrier portal url endpoint

    • Adds endpoint which returns carrier portal url (ApplicationForm.getCarrierPortalUrl())
    • Endpoint returns new type ICarrierPortalUrlResponse
    • Remove references to carrier_bind_url property on IQuoteRequest type

@boldpenguin/sdk-redux

  • Remove store export. Use import { getStore } from '@boldpenguin/sdk'; and const store = getStore() as a drop in replacement.

@boldpenguin/sdk-web-components, @boldpenguin/sdk-types

  • Remove is_readonly on IQuestion, code should reference is_readonly on parent IAnswer instead

@boldpenguin/sdk-redux, @boldpenguin/sdk-auth, @boldpenguin/sdk-core

  • New meta package to consume all of the Bold Penguin SDK. You can change over all imports to @boldpenguin/sdk or @boldpenguin/sdk/vite except where noted below:

  • Rename some Redux actions and selectors to avoid conflicts with top level SDK exports

    • logout action has been renamed to loggedOut
    • getToken selector has been renamed to selectToken
    • getTokenExpiration selector has been renamed to selectTokenExpiration
    • getUser selector has been renamed to selectUser
    • getAuthExpiration selector has been renamed to selectAuthExpiration
    • getErrors selector has been renamed to selectErrors
  • @boldpenguin/sdk-auth no longer exports the following methods, import them from @boldpenguin/sdk instead:

    • getToken
    • getTokenExpiration
    • getUser
    • hasPermission
    • isTokenExpired
  • @boldpenguin/sdk-core no longer exports the following methods, import them from @boldpenguin/sdk instead:

    • getItem
    • getPermissionsObject
    • getUser
    • getUserInfo
    • hasPermission
    • removeItem
    • setItem

@boldpenguin/sdk-requests

  • Remove deprecated createCarrierProductBuckets and deleteCarrierProductBuckets requests

@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Update IQuoteRequestQuote products type to new type IProductDetail

Minor Changes

@boldpenguin/sdk-utility, @boldpenguin/sdk-types

  • Add compliance_status property to the IRawUserInfo interface

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add copy attribute to application IApplicationForm and IFormState

@boldpenguin/sdk-types

  • Correct types coming from API on quotes objects to be string instead of Date

@boldpenguin/sdk-web-components

  • Add wholesale supplier information to bp-sdk-quote-request component
  • Add quoteId property to bp-sdk-quote-request-header component
  • Add shouldQuoteCardRenderSupplierLogos option when initializing SDK to render supplier logos in bp-sdk-quote-request-logo-container component

@boldpenguin/sdk-utility, @boldpenguin/sdk-types

  • Add tenant_state property to IRawUserInfo
  • Add tenantState property to IAuthState

@boldpenguin/sdk-utility, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth

  • Sort messages based on priority

    • Add priority property to IMessage type
    • Sort messages based on priority when the message state changes
      • Priority messages will display before other messages

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Quotes slice will now process new nested quotes being sent from backend. This change should be transparent to consuming applications.
  • IQuotesState type has been updated, it no longer just extends IQuoteRequest to accomodate the multiple quotes change.
  • Add IQuoteRequestQuote type
  • Add quotes: IQuoteRequestQuote[] property to IQuoteRequest type

@boldpenguin/sdk-types

  • Add logo_img_url_full property to ITerminalTheme type

@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add support for inlining messages into other parts of the application form
    • Add location and level properties to IMessage type
    • Add bp-sdk-message-outlet component

@boldpenguin/sdk-types

  • Remove name property from ICarrierProductBucket type

@boldpenguin/sdk-types

  • Add answer_pools property to ICreateApplicationFormParams.
  • Add answered_by_type and answered_by_source properties to ICreateApplicationFormAnswerValue.

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add referred_by property to IApplicationForm and IApplicationFormIndex types

@boldpenguin/sdk-web-components, @boldpenguin/sdk-icons

  • Add Vite support to @boldpenguin/sdk-web-components and @boldpenguin/sdk-icons packages
  • @boldpenguin/sdk now has a Vite specific entrypoint to accomodate differences in bundler import behaviors. Try importing from @boldpenguin/sdk/vite if you are having issues with the default exports

@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add viewState.quotes.filteredOnlineQuotes and viewState.quotes.filteredOfflineQuotes to Redux store
  • Add satisfies_application_form_product_request property to IQuoteRequest type
  • Pass satisfiesApplicationFormProductRequest property to bp-sdk-quote-request component
  • Add new Redux selectors
    • selectFilteredOfflineQuotes
    • selectFilteredOnlineQuotes
    • selectViewState
    • selectViewStateQuotes

@boldpenguin/sdk-types

  • Add question_codes property to ITranslatedMessage type

@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Handle document upload in vehicle panel state for Commercial Auto quotes
    • Add getVehicleSelection selector
    • Add lazyLoadVehicleOptions thunk

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add getStorefrontActiveEnrolledProductsCodes Redux selector
  • Add storefront_active_enrolled_product_codes property to IApplicationForm and IFormState types

Patch Changes

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add status property to IFeatureState

@boldpenguin/sdk-web-components

  • Pass minDate and maxDate args in month-year components

@boldpenguin/sdk-web-components

  • Remove pattern property from bp-sdk-month-year components

@boldpenguin/sdk-types

  • Add template_subdomain property to IUser type

@boldpenguin/sdk-types

  • Add received_by_wholesaler_at property to IApplicationForm type

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add effective_date property to IQuoteRequest type

@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-icons, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-demo

  • Add tenant property to IApplicationForm and IApplicationFormIndex types

@boldpenguin/sdk-redux

  • Properly calculate is_blank for child question sets

@boldpenguin/sdk-redux, @boldpenguin/sdk-types

  • Add logo_url_small property to ICarrier type and associated Redux store

@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-icons, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-demo

  • Some users will have access to select functionality on certain tenants. This list of "tenants" is exposed in the user data and has properties explaining which functionality on that tenant the user may access.
    • Add tenants to IRawUserInfo type

@boldpenguin/sdk-types

  • Add labels property to IQuoteRequest type

@boldpenguin/sdk-redux

  • Sync status.remote.quotes Redux state correctly