@boldpenguin/sdk
14.0.0
Major Changes
@boldpenguin/sdk-requests
- Bind plan_id is only valid for the updatePaymentPlan request
@boldpenguin/sdk-types, @boldpenguin/sdk-requests
- Refactored IConfigurableText code to be an enum. Added updateAttestation endpoint
@boldpenguin/sdk-types
- Deprecate policy_number on IQuotePolicy
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Change the default to only display "legacy" messages and add the showNonLegacyMessages flag to BpSdkMessageContainer to opt into the prior behavior. Consuming applications that are using
BpSdkMessageContainerand want to continue showing all messages should add the input[showNonLegacyMessages]="true".
@boldpenguin/sdk-requests
- Adds automaticPayments to bindAndPayQuote
Minor Changes
@boldpenguin/sdk-web-components
- Freeform vehicle make/model field rehydrate bug fix
@boldpenguin/sdk-types
- Add policy_details to IQuotePolicy
@boldpenguin/sdk-web-components
- Add property to make/model container to hide search icon
@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core
- Add selector for messages on quote presentation
@boldpenguin/sdk-web-components
- Updates bp-sdk-parent-question-pool-container component to only display the bp-sdk-parent-question-pool-selector component while the user is selecting a driver
@boldpenguin/sdk-web-components
- Driver's License validation no longer calls stopPropagation
@boldpenguin/sdk-types
- Add has_pinned_quote attribute to question set type
@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core
Add ATV/UTV support to CA
Includes a bit of refactoring around naming conventions and how we support vehicles which allow free-flow inputs.
- Previously, the code used
VehicleTypeandtypeto reference values that come frommqs_vehicle_category- This mismatch causes confusion, so these have been updated to
VehicleCategoryandcategoryinternally to reflect their true meaning
- This mismatch causes confusion, so these have been updated to
- Previously, the code used
flowType,flow, andVehicleFlowTypesto reference the value ofmqs_vehicle_flow- These have been renamed to
VehicleInputMethodandinputMethodinternally since "flow" is a bit ambiguous
- These have been renamed to
- A lot of state from
vehicle-panel-containerhas been moved into aVehicleclass- This made it easier to thoroughly test the logic around validation, and to maintain state in a single object
- Removed some dead code and unused events/logic
- Previously, the code used
@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-demo
- Adds store update of calls_to_action on quotes in response to websocket app form updates, allowing for changes of button CTA without page reload
@boldpenguin/sdk-requests
- Make quoteRequestId a required parameter for deleteBindReview
@boldpenguin/sdk-types
- Added available cois to enrollment type
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-demo
- Add stale to quote request
@boldpenguin/sdk-types
- Added tenant_eo_declaration_url to raw-user-info
@boldpenguin/sdk-redux
- Fix stepper navigation bug
@boldpenguin/sdk-types
- Adds selected_automatic_payments to IQuoteRequestQuote
@boldpenguin/sdk-redux
- When application forms go from completed back to in progress, recalculate the active question set if the active question set is now completed
@boldpenguin/sdk-requests
- Add optional quote_request_id parameter to bind_review DELETE request to support non-copy bind
@boldpenguin/sdk-types
- Added policy data to app form index type and added missing types to quote request status enum.
@boldpenguin/sdk-web-components
- Add allowProgrammaticBind prop
@boldpenguin/sdk-types
- Add visibility type to IQuoteRequestPlanFee
@boldpenguin/sdk-types
- Add missing configurable text codes
@boldpenguin/sdk-types
- Add additional options to ITenantOptions interface
@boldpenguin/sdk-redux
- Map has_pinned_quote property to stepper question sets
@boldpenguin/sdk-types
- Add ACORD 25 to the AcordFormCode enum for COI work related to the BP-44156 epic.
Patch Changes
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux
Fix logic for next button disabled state
The next button logic looks for the presence of non-anchor questions to determine if it should be disabled. However, this logic doesn't account for a question set with no answers, and returns true in those cases. This means a blank question set that appears in the app form will have a disabled next button.
@boldpenguin/sdk-types
- feat: BP-44562 update quote model to add appointment type
@boldpenguin/sdk-requests, @boldpenguin/sdk-types
- feat: BP-46864 | Update SDK for placement desk endpoint
@boldpenguin/sdk-types
- Add tenant_w9_submitted field to raw-user-info
@boldpenguin/sdk-redux
- Add updateChildQuestionSetComplete reducer
@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
- Adds
createCurrentTierSkipsByAppFormIdmethod toApplicationFormRequeststhat accepts just an app form ID and allows empty response from network request. DeprecatescreateCurrentTierSkipsas it doesn't have the proper error handling.
@boldpenguin/sdk-requests
- feat: BP-46700 | Add new placement desk endpoint
@boldpenguin/sdk-utility
- Fix bug with validating drivers license numbers. The
driver-license-validatorpackage'sisValidmethod returns false when there are hyphens in the driver license number. Remove any hyphens a user inputs before validating with theisValidmethod.
@boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-redux
- feat: BP-44740 | add new endpoint for send to b and a
@boldpenguin/sdk-redux
- When a batch broadcast is received and the current active question set has been deleted, the active question set will be recalculated to the first incomplete question set (or the last question set if all are completed)
13.0.0
Major Changes
@boldpenguin/sdk-types
- Renamed plan_id to id
Minor Changes
@boldpenguin/sdk-types
- Add plan to the IQuotePolicy type
@boldpenguin/sdk-requests
- Refactored bindAndPayQuote to accept a paymentData object
@boldpenguin/sdk-requests, @boldpenguin/sdk-types
- Add action_type param to bindquote endpoint
@boldpenguin/sdk-types
- Added authorize.net properties to IPaymentStrategy
@boldpenguin/sdk-types
- Add configurable text to enrollment type
@boldpenguin/sdk-requests, @boldpenguin/sdk-types
- Add origin_url to payment strategy request
@boldpenguin/sdk-types
- Fixed typo
@boldpenguin/sdk-requests, @boldpenguin/sdk-types
- Add request for updating payment plan
Patch Changes
@boldpenguin/sdk-types
- Add remove_invalid_answers to ICreateApplicationFormParams
@boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-web-components
- feat: BP-40727 | Add sibling quotes to SDK
@boldpenguin/sdk-types
- feat: BP-41551 | Make tenant options optional
@boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-core
- added hookshotUri optional config item and selector
@boldpenguin/sdk-web-components
- Null safety check for question group in Accordion
@boldpenguin/sdk-web-components
Do not clear vehicle make and model value when an option is not found so the user's freeform answer will remain
Add null checking when vehicle selection is changed to prevent runtime error
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- feat: BP-41550 | Add tenant options to user
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
IQuotePriceDetailstype. - Update field types for
IQuoteRequestQuotetype.
- New release
@boldpenguin/sdk-redux
- Update
BpSdkDispatchtype to be more explicitly typed for the actions that can be dispatched through the store - Remove
BpSdkThunktype, useParameters<BpSdkDispatch>instead
@boldpenguin/sdk-requests, @boldpenguin/sdk-types
- Remove
forgotPasswordandresetPasswordauth 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
createTenantApplicationFormmethodCalls
the tenant/application_forms:createendpoint. This is similar tocreateApplicationFormexcept 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
- 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_idis 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.
- 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
IQuestionIndextype - Add
IAnswerIndextype - Add
IApplicationFormQuickViewtype - Add missing fields to
IApplicationFormIndextype
@boldpenguin/sdk-types
- Remove
ISocketDatatype, useTWebsocketEventtype instead
@boldpenguin/sdk-web-components, @boldpenguin/sdk-types
- Remove
isRefilteringEnabledproperty frombp-sdk-business-classification-selectorcomponent and associated types + components. - Remove
bp-sdk-business-classification-selector-nudge-containercomponent
@boldpenguin/sdk-web-components
getApplicationFormCarriersProductsprop has been removed frombp-sdk-quote-request-containercomponentonlineQuotesSortFnhas been renamed toquotesSortFnonbp-sdk-quote-request-containercomponent which resolves an issue with compilation when using Angular and passing in that property- Most
IQuoteRequesttypes on components have been updated toIQuotesStatewhich will reflect the correct data being passed in - Added
bp-sdk-quote-request-logo-containercomponent which wrapsbp-sdk-quote-request-logocomponent and passes data from Redux in
@boldpenguin/sdk-types
- Remove
COVERAGE_TYPESexport. Useimport { 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_urlproperty onIQuoteRequesttype
- Adds endpoint which returns carrier portal url (
@boldpenguin/sdk-redux
- Remove
storeexport. Useimport { getStore } from '@boldpenguin/sdk';andconst store = getStore()as a drop in replacement.
@boldpenguin/sdk-web-components, @boldpenguin/sdk-types
- Remove
is_readonlyonIQuestion, code should referenceis_readonlyon parentIAnswerinstead
@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/sdkor@boldpenguin/sdk/viteexcept 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-authno longer exports the following methods, import them from@boldpenguin/sdkinstead:- getToken
- getTokenExpiration
- getUser
- hasPermission
- isTokenExpired
@boldpenguin/sdk-coreno longer exports the following methods, import them from@boldpenguin/sdkinstead:- getItem
- getPermissionsObject
- getUser
- getUserInfo
- hasPermission
- removeItem
- setItem
@boldpenguin/sdk-requests
- Remove deprecated
createCarrierProductBucketsanddeleteCarrierProductBucketsrequests
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Update
IQuoteRequestQuoteproducts type to new typeIProductDetail
Minor Changes
@boldpenguin/sdk-utility, @boldpenguin/sdk-types
- Add
compliance_statusproperty to theIRawUserInfointerface
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
copyattribute to applicationIApplicationFormandIFormState
@boldpenguin/sdk-types
- Correct types coming from API on quotes objects to be
stringinstead ofDate
@boldpenguin/sdk-web-components
- Add wholesale supplier information to
bp-sdk-quote-requestcomponent - Add
quoteIdproperty tobp-sdk-quote-request-headercomponent - Add
shouldQuoteCardRenderSupplierLogosoption when initializing SDK to render supplier logos inbp-sdk-quote-request-logo-containercomponent
@boldpenguin/sdk-utility, @boldpenguin/sdk-types
- Add
tenant_stateproperty toIRawUserInfo - Add
tenantStateproperty toIAuthState
@boldpenguin/sdk-utility, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth
Sort messages based on priority
- Add
priorityproperty toIMessagetype - Sort messages based on priority when the message state changes
- Priority messages will display before other messages
- Add
@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.
IQuotesStatetype has been updated, it no longer just extendsIQuoteRequestto accomodate the multiple quotes change.- Add
IQuoteRequestQuotetype - Add
quotes: IQuoteRequestQuote[]property toIQuoteRequesttype
@boldpenguin/sdk-types
- Add
logo_img_url_fullproperty toITerminalThemetype
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add support for inlining messages into other parts of the application form
- Add
locationandlevelproperties toIMessagetype - Add
bp-sdk-message-outletcomponent
- Add
@boldpenguin/sdk-types
- Remove
nameproperty fromICarrierProductBuckettype
@boldpenguin/sdk-types
- Add
answer_poolsproperty toICreateApplicationFormParams. - Add
answered_by_typeandanswered_by_sourceproperties toICreateApplicationFormAnswerValue.
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
referred_byproperty toIApplicationFormandIApplicationFormIndextypes
@boldpenguin/sdk-web-components, @boldpenguin/sdk-icons
- Add Vite support to
@boldpenguin/sdk-web-componentsand@boldpenguin/sdk-iconspackages @boldpenguin/sdknow has a Vite specific entrypoint to accomodate differences in bundler import behaviors. Try importing from@boldpenguin/sdk/viteif you are having issues with the default exports
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
viewState.quotes.filteredOnlineQuotesandviewState.quotes.filteredOfflineQuotesto Redux store - Add
satisfies_application_form_product_requestproperty toIQuoteRequesttype - Pass
satisfiesApplicationFormProductRequestproperty tobp-sdk-quote-requestcomponent - Add new Redux selectors
- selectFilteredOfflineQuotes
- selectFilteredOnlineQuotes
- selectViewState
- selectViewStateQuotes
@boldpenguin/sdk-types
- Add
question_codesproperty toITranslatedMessagetype
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Handle document upload in vehicle panel state for Commercial Auto quotes
- Add
getVehicleSelectionselector - Add
lazyLoadVehicleOptionsthunk
- Add
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
getStorefrontActiveEnrolledProductsCodesRedux selector - Add
storefront_active_enrolled_product_codesproperty toIApplicationFormandIFormStatetypes
Patch Changes
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
statusproperty toIFeatureState
@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_subdomainproperty toIUsertype
@boldpenguin/sdk-types
- Add
received_by_wholesaler_atproperty toIApplicationFormtype
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
effective_dateproperty toIQuoteRequesttype
@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
tenantproperty toIApplicationFormandIApplicationFormIndextypes
@boldpenguin/sdk-redux
- Properly calculate
is_blankfor child question sets
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
logo_url_smallproperty toICarriertype 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
tenantstoIRawUserInfotype
- Add
@boldpenguin/sdk-types
- Add
labelsproperty toIQuoteRequesttype
@boldpenguin/sdk-redux
- Sync
status.remote.quotesRedux state correctly