@adonoustech/bacon-core 5.0.0 → 6.0.0
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/CHANGELOG.md +2 -2
- package/LICENSE +200 -200
- package/README.md +11 -11
- package/dist/cjs/base/BaconBaseAWSObjectStrategyEvt.js +12 -12
- package/dist/cjs/base/BaconBaseActor.js +12 -12
- package/dist/cjs/base/BaconBaseActorFactory.js +27 -27
- package/dist/cjs/base/BaconBaseActorInitTrigSvc.js +42 -42
- package/dist/cjs/base/BaconBaseBrokerRequestEvent.js +11 -11
- package/dist/cjs/base/BaconBaseLoggerEvt.js +8 -8
- package/dist/cjs/base/BaconBaseLoggerEvtFact.js +20 -20
- package/dist/cjs/base/index.js +11 -11
- package/dist/cjs/concrete/Bacon3PClient.js +11 -11
- package/dist/cjs/concrete/BaconAccessLoggerEvent.js +13 -13
- package/dist/cjs/concrete/BaconActionItem.js +7 -7
- package/dist/cjs/concrete/BaconActionItemSnippet.js +13 -13
- package/dist/cjs/concrete/BaconAdminInitRequestEvt.js +13 -13
- package/dist/cjs/concrete/BaconAiContextCompletionReqEvt.js +9 -9
- package/dist/cjs/concrete/BaconCognitoAdminRequestEvent.js +11 -11
- package/dist/cjs/concrete/BaconEmailRequestEvent.js +11 -11
- package/dist/cjs/concrete/BaconGenericLoggerEvent.js +13 -13
- package/dist/cjs/concrete/BaconIoTPermsBrokerRequestEvent.js +11 -11
- package/dist/cjs/concrete/BaconPermissionsLoggerEvent.js +13 -13
- package/dist/cjs/concrete/BaconS3GetObjectStrategy.js +11 -11
- package/dist/cjs/concrete/BaconS3PutObjectStrategy.js +11 -11
- package/dist/cjs/concrete/BaconSP.js +11 -11
- package/dist/cjs/concrete/BaconStripeReqEvent.js +12 -12
- package/dist/cjs/concrete/BaconSuperAdmin.js +11 -11
- package/dist/cjs/concrete/BaconUploadObject.js +13 -13
- package/dist/cjs/concrete/index.js +21 -21
- package/dist/cjs/constants/bacon-idps.js +4 -4
- package/dist/cjs/constants/index.js +4 -4
- package/dist/cjs/enums/bacon-accounting-action-item-email-templates.js +8 -8
- package/dist/cjs/enums/bacon-accounting-email-templates.js +14 -14
- package/dist/cjs/enums/bacon-actor-init-statuses.js +9 -9
- package/dist/cjs/enums/bacon-actor-init-trig-sources.js +31 -31
- package/dist/cjs/enums/bacon-actor-oidc-props.js +37 -37
- package/dist/cjs/enums/bacon-actor-statuses.js +13 -13
- package/dist/cjs/enums/bacon-actor-types.js +14 -14
- package/dist/cjs/enums/bacon-ai-task-descriptions.js +8 -8
- package/dist/cjs/enums/bacon-auth-mfa-types.js +10 -10
- package/dist/cjs/enums/bacon-aws-object-request-instructions.js +9 -9
- package/dist/cjs/enums/bacon-aws-regions.js +31 -31
- package/dist/cjs/enums/bacon-bl-kinds.js +18 -18
- package/dist/cjs/enums/bacon-logger-codes.js +42 -42
- package/dist/cjs/enums/bacon-logger-evt-types.js +12 -12
- package/dist/cjs/enums/bacon-object-layer-kinds.js +9 -9
- package/dist/cjs/enums/bacon-routes.js +28 -28
- package/dist/cjs/enums/client-acct-intake-bo-filing-frequencies.js +14 -0
- package/dist/cjs/enums/client-acct-intake-business-entity-types.js +16 -0
- package/dist/cjs/enums/index.js +22 -20
- package/dist/cjs/index.js +17 -17
- package/dist/cjs/interfaces/i-actor-init-status.js +3 -3
- package/dist/cjs/interfaces/i-actor-init-trig-ctx.js +3 -3
- package/dist/cjs/interfaces/i-actor-init-trig-req.js +3 -3
- package/dist/cjs/interfaces/i-actor-init-trig-resp.js +3 -3
- package/dist/cjs/interfaces/i-actor-init-trig-user-attr.js +3 -3
- package/dist/cjs/interfaces/i-actor-init-trigger-evt.js +3 -3
- package/dist/cjs/interfaces/i-actor-status.js +3 -3
- package/dist/cjs/interfaces/i-bacon-action-item-settings.js +3 -3
- package/dist/cjs/interfaces/i-bacon-action-item-snippet.js +2 -2
- package/dist/cjs/interfaces/i-bacon-admin-master-entry.js +3 -3
- package/dist/cjs/interfaces/i-bacon-authenticator-app.js +3 -3
- package/dist/cjs/interfaces/i-bacon-base-logger-event.js +3 -3
- package/dist/cjs/interfaces/i-bacon-client-checklist-item.js +3 -3
- package/dist/cjs/interfaces/i-bacon-client-error.js +3 -3
- package/dist/cjs/interfaces/i-bacon-cognito-request.js +3 -3
- package/dist/cjs/interfaces/i-bacon-file.js +3 -3
- package/dist/cjs/interfaces/i-bacon-mfa-status.js +3 -3
- package/dist/cjs/interfaces/i-bacon-object-layer-result.js +3 -3
- package/dist/cjs/interfaces/i-bacon-storage-item.js +3 -3
- package/dist/cjs/interfaces/i-bacon-totp-verification-model.js +3 -3
- package/dist/cjs/interfaces/i-bacon-totp-verification-result.js +3 -3
- package/dist/cjs/interfaces/i-bacon-ui-passthrough-input-event.js +5 -5
- package/dist/cjs/interfaces/i-bacon-update-mfa-pref-result.js +3 -3
- package/dist/cjs/interfaces/i-bacon-upload-request.js +3 -3
- package/dist/cjs/interfaces/i-client-acct-admin-fields.js +3 -0
- package/dist/cjs/interfaces/i-client-acct-business-info.js +3 -0
- package/dist/cjs/interfaces/i-client-acct-business-owner.js +3 -0
- package/dist/cjs/interfaces/i-client-acct-employee-info.js +3 -0
- package/dist/cjs/interfaces/i-client-acct-intake.js +13 -0
- package/dist/cjs/interfaces/i-cognito-admin-request-payload.js +3 -3
- package/dist/cjs/interfaces/i-flat-node.js +3 -3
- package/dist/cjs/interfaces/i-iot-perms-request-payload.js +3 -3
- package/dist/cjs/interfaces/i-oidc-address-claim.js +3 -3
- package/dist/cjs/interfaces/i-oidc-identity.js +3 -3
- package/dist/cjs/interfaces/i-oidc-profile.js +3 -3
- package/dist/cjs/interfaces/i-token-time.js +3 -3
- package/dist/cjs/interfaces/i-user.js +3 -3
- package/dist/cjs/interfaces/index.js +41 -36
- package/dist/cjs/maps/bacon-route-to-microservice.js +25 -25
- package/dist/cjs/maps/index.js +4 -4
- package/dist/cjs/static/Bacon3PClientFactory.js +13 -13
- package/dist/cjs/static/BaconAccessLoggerEvtFactory.js +13 -13
- package/dist/cjs/static/BaconGenericLoggerEvtFactory.js +13 -13
- package/dist/cjs/static/BaconPermissionsLoggerEventFactory.js +13 -13
- package/dist/cjs/static/BaconSPFactory.js +13 -13
- package/dist/cjs/static/BaconSuperAdminFactory.js +13 -13
- package/dist/cjs/static/index.js +10 -10
- package/dist/cjs/utils/TypeUtils.js +15 -15
- package/dist/cjs/utils/index.js +4 -4
- package/dist/es/base/BaconBaseAWSObjectStrategyEvt.js +10 -10
- package/dist/es/base/BaconBaseActor.js +10 -10
- package/dist/es/base/BaconBaseActorFactory.js +26 -26
- package/dist/es/base/BaconBaseActorInitTrigSvc.js +42 -42
- package/dist/es/base/BaconBaseBrokerRequestEvent.js +9 -9
- package/dist/es/base/BaconBaseLoggerEvt.js +7 -7
- package/dist/es/base/BaconBaseLoggerEvtFact.js +19 -19
- package/dist/es/base/index.js +8 -8
- package/dist/es/concrete/Bacon3PClient.js +11 -11
- package/dist/es/concrete/BaconAccessLoggerEvent.js +14 -14
- package/dist/es/concrete/BaconActionItem.js +7 -7
- package/dist/es/concrete/BaconActionItemSnippet.js +11 -11
- package/dist/es/concrete/BaconAdminInitRequestEvt.js +14 -14
- package/dist/es/concrete/BaconAiContextCompletionReqEvt.js +11 -11
- package/dist/es/concrete/BaconCognitoAdminRequestEvent.js +11 -11
- package/dist/es/concrete/BaconEmailRequestEvent.js +11 -11
- package/dist/es/concrete/BaconGenericLoggerEvent.js +14 -14
- package/dist/es/concrete/BaconIoTPermsBrokerRequestEvent.js +11 -11
- package/dist/es/concrete/BaconPermissionsLoggerEvent.js +14 -14
- package/dist/es/concrete/BaconS3GetObjectStrategy.js +11 -11
- package/dist/es/concrete/BaconS3PutObjectStrategy.js +11 -11
- package/dist/es/concrete/BaconSP.js +11 -11
- package/dist/es/concrete/BaconStripeReqEvent.js +10 -10
- package/dist/es/concrete/BaconSuperAdmin.js +11 -11
- package/dist/es/concrete/BaconUploadObject.js +11 -11
- package/dist/es/concrete/index.js +18 -18
- package/dist/es/constants/bacon-idps.js +1 -1
- package/dist/es/constants/index.js +1 -1
- package/dist/es/enums/bacon-accounting-action-item-email-templates.js +5 -5
- package/dist/es/enums/bacon-accounting-email-templates.js +11 -11
- package/dist/es/enums/bacon-actor-init-statuses.js +6 -6
- package/dist/es/enums/bacon-actor-init-trig-sources.js +28 -28
- package/dist/es/enums/bacon-actor-oidc-props.js +34 -34
- package/dist/es/enums/bacon-actor-statuses.js +10 -10
- package/dist/es/enums/bacon-actor-types.js +11 -11
- package/dist/es/enums/bacon-ai-task-descriptions.js +5 -5
- package/dist/es/enums/bacon-auth-mfa-types.js +7 -7
- package/dist/es/enums/bacon-aws-object-request-instructions.js +6 -6
- package/dist/es/enums/bacon-aws-regions.js +28 -28
- package/dist/es/enums/bacon-bl-kinds.js +15 -15
- package/dist/es/enums/bacon-logger-codes.js +39 -39
- package/dist/es/enums/bacon-logger-evt-types.js +9 -9
- package/dist/es/enums/bacon-object-layer-kinds.js +6 -6
- package/dist/es/enums/bacon-routes.js +24 -24
- package/dist/es/enums/client-acct-intake-bo-filing-frequencies.js +11 -0
- package/dist/es/enums/client-acct-intake-business-entity-types.js +13 -0
- package/dist/es/enums/index.js +19 -17
- package/dist/es/index.js +14 -14
- package/dist/es/interfaces/i-actor-init-status.js +2 -2
- package/dist/es/interfaces/i-actor-init-trig-ctx.js +2 -2
- package/dist/es/interfaces/i-actor-init-trig-req.js +2 -2
- package/dist/es/interfaces/i-actor-init-trig-resp.js +2 -2
- package/dist/es/interfaces/i-actor-init-trig-user-attr.js +2 -2
- package/dist/es/interfaces/i-actor-init-trigger-evt.js +2 -2
- package/dist/es/interfaces/i-actor-status.js +2 -2
- package/dist/es/interfaces/i-bacon-action-item-settings.js +2 -2
- package/dist/es/interfaces/i-bacon-action-item-snippet.js +1 -1
- package/dist/es/interfaces/i-bacon-admin-master-entry.js +2 -2
- package/dist/es/interfaces/i-bacon-authenticator-app.js +2 -2
- package/dist/es/interfaces/i-bacon-base-logger-event.js +2 -2
- package/dist/es/interfaces/i-bacon-client-checklist-item.js +2 -2
- package/dist/es/interfaces/i-bacon-client-error.js +2 -2
- package/dist/es/interfaces/i-bacon-cognito-request.js +2 -2
- package/dist/es/interfaces/i-bacon-file.js +2 -2
- package/dist/es/interfaces/i-bacon-mfa-status.js +2 -2
- package/dist/es/interfaces/i-bacon-object-layer-result.js +2 -2
- package/dist/es/interfaces/i-bacon-storage-item.js +2 -2
- package/dist/es/interfaces/i-bacon-totp-verification-model.js +2 -2
- package/dist/es/interfaces/i-bacon-totp-verification-result.js +2 -2
- package/dist/es/interfaces/i-bacon-ui-passthrough-input-event.js +4 -4
- package/dist/es/interfaces/i-bacon-update-mfa-pref-result.js +2 -2
- package/dist/es/interfaces/i-bacon-upload-request.js +2 -2
- package/dist/es/interfaces/i-client-acct-admin-fields.js +2 -0
- package/dist/es/interfaces/i-client-acct-business-info.js +2 -0
- package/dist/es/interfaces/i-client-acct-business-owner.js +2 -0
- package/dist/es/interfaces/i-client-acct-employee-info.js +2 -0
- package/dist/es/interfaces/i-client-acct-intake.js +10 -0
- package/dist/es/interfaces/i-cognito-admin-request-payload.js +2 -2
- package/dist/es/interfaces/i-flat-node.js +2 -2
- package/dist/es/interfaces/i-iot-perms-request-payload.js +2 -2
- package/dist/es/interfaces/i-oidc-address-claim.js +2 -2
- package/dist/es/interfaces/i-oidc-identity.js +2 -2
- package/dist/es/interfaces/i-oidc-profile.js +2 -2
- package/dist/es/interfaces/i-token-time.js +2 -2
- package/dist/es/interfaces/i-user.js +2 -2
- package/dist/es/interfaces/index.js +38 -33
- package/dist/es/maps/bacon-route-to-microservice.js +22 -22
- package/dist/es/maps/index.js +1 -1
- package/dist/es/static/Bacon3PClientFactory.js +16 -16
- package/dist/es/static/BaconAccessLoggerEvtFactory.js +16 -16
- package/dist/es/static/BaconGenericLoggerEvtFactory.js +16 -16
- package/dist/es/static/BaconPermissionsLoggerEventFactory.js +16 -16
- package/dist/es/static/BaconSPFactory.js +16 -16
- package/dist/es/static/BaconSuperAdminFactory.js +16 -16
- package/dist/es/static/index.js +7 -7
- package/dist/es/utils/TypeUtils.js +11 -11
- package/dist/es/utils/index.js +1 -1
- package/dist/types/base/BaconBaseAWSObjectStrategyEvt.d.ts +8 -8
- package/dist/types/base/BaconBaseActor.d.ts +7 -7
- package/dist/types/base/BaconBaseActorFactory.d.ts +11 -11
- package/dist/types/base/BaconBaseActorInitTrigSvc.d.ts +39 -39
- package/dist/types/base/BaconBaseBrokerRequestEvent.d.ts +6 -6
- package/dist/types/base/BaconBaseLoggerEvt.d.ts +12 -12
- package/dist/types/base/BaconBaseLoggerEvtFact.d.ts +13 -13
- package/dist/types/base/index.d.ts +7 -7
- package/dist/types/concrete/Bacon3PClient.d.ts +5 -5
- package/dist/types/concrete/BaconAccessLoggerEvent.d.ts +4 -4
- package/dist/types/concrete/BaconActionItem.d.ts +37 -37
- package/dist/types/concrete/BaconActionItemSnippet.d.ts +7 -7
- package/dist/types/concrete/BaconAdminInitRequestEvt.d.ts +6 -6
- package/dist/types/concrete/BaconAiContextCompletionReqEvt.d.ts +7 -7
- package/dist/types/concrete/BaconCognitoAdminRequestEvent.d.ts +6 -6
- package/dist/types/concrete/BaconEmailRequestEvent.d.ts +5 -5
- package/dist/types/concrete/BaconGenericLoggerEvent.d.ts +4 -4
- package/dist/types/concrete/BaconIoTPermsBrokerRequestEvent.d.ts +6 -6
- package/dist/types/concrete/BaconPermissionsLoggerEvent.d.ts +4 -4
- package/dist/types/concrete/BaconS3GetObjectStrategy.d.ts +5 -5
- package/dist/types/concrete/BaconS3PutObjectStrategy.d.ts +5 -5
- package/dist/types/concrete/BaconSP.d.ts +5 -5
- package/dist/types/concrete/BaconStripeReqEvent.d.ts +7 -7
- package/dist/types/concrete/BaconSuperAdmin.d.ts +5 -5
- package/dist/types/concrete/BaconUploadObject.d.ts +7 -7
- package/dist/types/concrete/index.d.ts +17 -17
- package/dist/types/constants/bacon-idps.d.ts +1 -1
- package/dist/types/constants/index.d.ts +1 -1
- package/dist/types/enums/bacon-accounting-action-item-email-templates.d.ts +3 -3
- package/dist/types/enums/bacon-accounting-email-templates.d.ts +9 -9
- package/dist/types/enums/bacon-actor-init-statuses.d.ts +4 -4
- package/dist/types/enums/bacon-actor-init-trig-sources.d.ts +26 -26
- package/dist/types/enums/bacon-actor-oidc-props.d.ts +32 -32
- package/dist/types/enums/bacon-actor-statuses.d.ts +8 -8
- package/dist/types/enums/bacon-actor-types.d.ts +9 -9
- package/dist/types/enums/bacon-ai-task-descriptions.d.ts +3 -3
- package/dist/types/enums/bacon-auth-mfa-types.d.ts +5 -5
- package/dist/types/enums/bacon-aws-object-request-instructions.d.ts +4 -4
- package/dist/types/enums/bacon-aws-regions.d.ts +26 -26
- package/dist/types/enums/bacon-bl-kinds.d.ts +13 -13
- package/dist/types/enums/bacon-logger-codes.d.ts +37 -37
- package/dist/types/enums/bacon-logger-evt-types.d.ts +7 -7
- package/dist/types/enums/bacon-object-layer-kinds.d.ts +4 -4
- package/dist/types/enums/bacon-routes.d.ts +11 -11
- package/dist/types/enums/client-acct-intake-bo-filing-frequencies.d.ts +9 -0
- package/dist/types/enums/client-acct-intake-business-entity-types.d.ts +11 -0
- package/dist/types/enums/index.d.ts +18 -16
- package/dist/types/index.d.ts +13 -13
- package/dist/types/interfaces/i-actor-init-status.d.ts +4 -4
- package/dist/types/interfaces/i-actor-init-trig-ctx.d.ts +4 -4
- package/dist/types/interfaces/i-actor-init-trig-req.d.ts +5 -5
- package/dist/types/interfaces/i-actor-init-trig-resp.d.ts +5 -5
- package/dist/types/interfaces/i-actor-init-trig-user-attr.d.ts +3 -3
- package/dist/types/interfaces/i-actor-init-trigger-evt.d.ts +14 -14
- package/dist/types/interfaces/i-actor-status.d.ts +4 -4
- package/dist/types/interfaces/i-bacon-action-item-settings.d.ts +6 -6
- package/dist/types/interfaces/i-bacon-action-item-snippet.d.ts +2 -2
- package/dist/types/interfaces/i-bacon-admin-master-entry.d.ts +4 -4
- package/dist/types/interfaces/i-bacon-authenticator-app.d.ts +7 -7
- package/dist/types/interfaces/i-bacon-base-logger-event.d.ts +9 -9
- package/dist/types/interfaces/i-bacon-client-checklist-item.d.ts +8 -8
- package/dist/types/interfaces/i-bacon-client-error.d.ts +4 -4
- package/dist/types/interfaces/i-bacon-cognito-request.d.ts +4 -4
- package/dist/types/interfaces/i-bacon-file.d.ts +9 -9
- package/dist/types/interfaces/i-bacon-mfa-status.d.ts +7 -7
- package/dist/types/interfaces/i-bacon-object-layer-result.d.ts +7 -7
- package/dist/types/interfaces/i-bacon-storage-item.d.ts +8 -8
- package/dist/types/interfaces/i-bacon-totp-verification-model.d.ts +3 -3
- package/dist/types/interfaces/i-bacon-totp-verification-result.d.ts +7 -7
- package/dist/types/interfaces/i-bacon-ui-passthrough-input-event.d.ts +60 -60
- package/dist/types/interfaces/i-bacon-update-mfa-pref-result.d.ts +7 -7
- package/dist/types/interfaces/i-bacon-upload-request.d.ts +5 -5
- package/dist/types/interfaces/i-client-acct-admin-fields.d.ts +14 -0
- package/dist/types/interfaces/i-client-acct-business-info.d.ts +22 -0
- package/dist/types/interfaces/i-client-acct-business-owner.d.ts +20 -0
- package/dist/types/interfaces/i-client-acct-employee-info.d.ts +12 -0
- package/dist/types/interfaces/i-client-acct-intake.d.ts +33 -0
- package/dist/types/interfaces/i-cognito-admin-request-payload.d.ts +9 -9
- package/dist/types/interfaces/i-flat-node.d.ts +6 -6
- package/dist/types/interfaces/i-iot-perms-request-payload.d.ts +3 -3
- package/dist/types/interfaces/i-oidc-address-claim.d.ts +8 -8
- package/dist/types/interfaces/i-oidc-identity.d.ts +8 -8
- package/dist/types/interfaces/i-oidc-profile.d.ts +41 -41
- package/dist/types/interfaces/i-token-time.d.ts +4 -4
- package/dist/types/interfaces/i-user.d.ts +6 -6
- package/dist/types/interfaces/index.d.ts +37 -32
- package/dist/types/maps/bacon-route-to-microservice.d.ts +5 -5
- package/dist/types/maps/index.d.ts +1 -1
- package/dist/types/static/Bacon3PClientFactory.d.ts +6 -6
- package/dist/types/static/BaconAccessLoggerEvtFactory.d.ts +5 -5
- package/dist/types/static/BaconGenericLoggerEvtFactory.d.ts +5 -5
- package/dist/types/static/BaconPermissionsLoggerEventFactory.d.ts +5 -5
- package/dist/types/static/BaconSPFactory.d.ts +6 -6
- package/dist/types/static/BaconSuperAdminFactory.d.ts +6 -6
- package/dist/types/static/index.d.ts +6 -6
- package/dist/types/utils/TypeUtils.d.ts +68 -68
- package/dist/types/utils/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/base/BaconBaseAWSObjectStrategyEvt.ts +23 -23
- package/src/base/BaconBaseActor.ts +17 -17
- package/src/base/BaconBaseActorFactory.ts +27 -27
- package/src/base/BaconBaseActorInitTrigSvc.ts +47 -47
- package/src/base/BaconBaseBrokerRequestEvent.ts +13 -13
- package/src/base/BaconBaseLoggerEvt.ts +15 -15
- package/src/base/BaconBaseLoggerEvtFact.ts +21 -21
- package/src/base/index.ts +6 -6
- package/src/concrete/Bacon3PClient.ts +9 -9
- package/src/concrete/BaconAccessLoggerEvent.ts +9 -9
- package/src/concrete/BaconActionItem.ts +37 -37
- package/src/concrete/BaconActionItemSnippet.ts +14 -14
- package/src/concrete/BaconAdminInitRequestEvt.ts +16 -16
- package/src/concrete/BaconAiContextCompletionReqEvt.ts +10 -10
- package/src/concrete/BaconCognitoAdminRequestEvent.ts +14 -14
- package/src/concrete/BaconEmailRequestEvent.ts +9 -9
- package/src/concrete/BaconGenericLoggerEvent.ts +10 -10
- package/src/concrete/BaconIoTPermsBrokerRequestEvent.ts +12 -12
- package/src/concrete/BaconPermissionsLoggerEvent.ts +9 -9
- package/src/concrete/BaconS3GetObjectStrategy.ts +14 -14
- package/src/concrete/BaconS3PutObjectStrategy.ts +13 -13
- package/src/concrete/BaconSP.ts +9 -9
- package/src/concrete/BaconStripeReqEvent.ts +14 -14
- package/src/concrete/BaconSuperAdmin.ts +9 -9
- package/src/concrete/BaconUploadObject.ts +17 -17
- package/src/concrete/index.ts +17 -17
- package/src/enums/bacon-accounting-action-item-email-templates.ts +2 -2
- package/src/enums/bacon-accounting-email-templates.ts +9 -9
- package/src/enums/bacon-actor-init-statuses.ts +3 -3
- package/src/enums/bacon-actor-init-trig-sources.ts +25 -25
- package/src/enums/bacon-actor-oidc-props.ts +31 -31
- package/src/enums/bacon-actor-statuses.ts +7 -7
- package/src/enums/bacon-actor-types.ts +8 -8
- package/src/enums/bacon-ai-task-descriptions.ts +2 -2
- package/src/enums/bacon-auth-mfa-types.ts +4 -4
- package/src/enums/bacon-aws-object-request-instructions.ts +3 -3
- package/src/enums/bacon-aws-regions.ts +25 -25
- package/src/enums/bacon-bl-kinds.ts +12 -12
- package/src/enums/bacon-logger-codes.ts +36 -36
- package/src/enums/bacon-logger-evt-types.ts +6 -6
- package/src/enums/bacon-object-layer-kinds.ts +3 -3
- package/src/enums/bacon-routes.ts +26 -26
- package/src/enums/client-acct-intake-bo-filing-frequencies.ts +9 -0
- package/src/enums/client-acct-intake-business-entity-types.ts +11 -0
- package/src/enums/index.ts +18 -16
- package/src/index.ts +15 -15
- package/src/interfaces/i-actor-init-status.ts +6 -6
- package/src/interfaces/i-actor-init-trig-ctx.ts +3 -3
- package/src/interfaces/i-actor-init-trig-req.ts +5 -5
- package/src/interfaces/i-actor-init-trig-resp.ts +4 -4
- package/src/interfaces/i-actor-init-trig-user-attr.ts +2 -2
- package/src/interfaces/i-actor-init-trigger-evt.ts +14 -14
- package/src/interfaces/i-actor-status.ts +6 -6
- package/src/interfaces/i-bacon-action-item-settings.ts +5 -5
- package/src/interfaces/i-bacon-admin-master-entry.ts +3 -3
- package/src/interfaces/i-bacon-authenticator-app.ts +6 -6
- package/src/interfaces/i-bacon-base-logger-event.ts +9 -9
- package/src/interfaces/i-bacon-client-checklist-item.ts +7 -7
- package/src/interfaces/i-bacon-client-error.ts +3 -3
- package/src/interfaces/i-bacon-cognito-request.ts +3 -3
- package/src/interfaces/i-bacon-file.ts +8 -8
- package/src/interfaces/i-bacon-mfa-status.ts +7 -7
- package/src/interfaces/i-bacon-object-layer-result.ts +6 -6
- package/src/interfaces/i-bacon-storage-item.ts +7 -7
- package/src/interfaces/i-bacon-totp-verification-model.ts +2 -2
- package/src/interfaces/i-bacon-totp-verification-result.ts +6 -6
- package/src/interfaces/i-bacon-ui-passthrough-input-event.ts +64 -64
- package/src/interfaces/i-bacon-update-mfa-pref-result.ts +6 -6
- package/src/interfaces/i-bacon-upload-request.ts +5 -5
- package/src/interfaces/i-client-acct-admin-fields.ts +14 -0
- package/src/interfaces/i-client-acct-business-info.ts +23 -0
- package/src/interfaces/i-client-acct-business-owner.ts +20 -0
- package/src/interfaces/i-client-acct-employee-info.ts +13 -0
- package/src/interfaces/i-client-acct-intake.ts +35 -0
- package/src/interfaces/i-cognito-admin-request-payload.ts +8 -8
- package/src/interfaces/i-flat-node.ts +5 -5
- package/src/interfaces/i-iot-perms-request-payload.ts +2 -2
- package/src/interfaces/i-oidc-address-claim.ts +7 -7
- package/src/interfaces/i-oidc-identity.ts +7 -7
- package/src/interfaces/i-oidc-profile.ts +44 -44
- package/src/interfaces/i-token-time.ts +3 -3
- package/src/interfaces/i-user.ts +5 -5
- package/src/interfaces/index.ts +37 -32
- package/src/maps/bacon-route-to-microservice.ts +24 -24
- package/src/static/Bacon3PClientFactory.ts +12 -12
- package/src/static/BaconAccessLoggerEvtFactory.ts +11 -11
- package/src/static/BaconGenericLoggerEvtFactory.ts +11 -11
- package/src/static/BaconPermissionsLoggerEventFactory.ts +11 -11
- package/src/static/BaconSPFactory.ts +13 -13
- package/src/static/BaconSuperAdminFactory.ts +12 -12
- package/src/static/index.ts +5 -5
- package/src/utils/TypeUtils.ts +86 -86
- package/tsconfig.cjs.json +10 -10
- package/tsconfig.es.json +11 -11
- package/tsconfig.json +17 -17
- package/dist/cjs/base/BaconBaseAWSDataReqStr.js +0 -20
- package/dist/cjs/concrete/BaconDDBReqDelStr.js +0 -17
- package/dist/cjs/concrete/BaconDDBReqGetStr.js +0 -17
- package/dist/cjs/concrete/BaconDDBReqPutStr.js +0 -17
- package/dist/cjs/concrete/BaconDDBReqQueryStr.js +0 -17
- package/dist/cjs/concrete/BaconDDBReqScanStr.js +0 -17
- package/dist/cjs/concrete/BaconDDBReqUpdateStr.js +0 -17
- package/dist/cjs/enums/bacon-aws-data-req-instructions.js +0 -12
- package/dist/cjs/enums/bacon-data-layer-kinds.js +0 -13
- package/dist/cjs/interfaces/i-bacon-admin-init-request-evt.js +0 -3
- package/dist/cjs/interfaces/i-bacon-totp-verification.js +0 -3
- package/dist/es/base/BaconBaseAWSDataReqStr.js +0 -18
- package/dist/es/concrete/BaconDDBReqDelStr.js +0 -17
- package/dist/es/concrete/BaconDDBReqGetStr.js +0 -17
- package/dist/es/concrete/BaconDDBReqPutStr.js +0 -17
- package/dist/es/concrete/BaconDDBReqQueryStr.js +0 -17
- package/dist/es/concrete/BaconDDBReqScanStr.js +0 -17
- package/dist/es/concrete/BaconDDBReqUpdateStr.js +0 -17
- package/dist/es/enums/bacon-aws-data-req-instructions.js +0 -9
- package/dist/es/enums/bacon-data-layer-kinds.js +0 -10
- package/dist/es/interfaces/i-bacon-admin-init-request-evt.js +0 -2
- package/dist/es/interfaces/i-bacon-totp-verification.js +0 -2
- package/dist/types/base/BaconBaseAWSDataReqStr.d.ts +0 -17
- package/dist/types/concrete/BaconDDBReqDelStr.d.ts +0 -10
- package/dist/types/concrete/BaconDDBReqGetStr.d.ts +0 -10
- package/dist/types/concrete/BaconDDBReqPutStr.d.ts +0 -10
- package/dist/types/concrete/BaconDDBReqQueryStr.d.ts +0 -10
- package/dist/types/concrete/BaconDDBReqScanStr.d.ts +0 -10
- package/dist/types/concrete/BaconDDBReqUpdateStr.d.ts +0 -10
- package/dist/types/enums/bacon-aws-data-req-instructions.d.ts +0 -7
- package/dist/types/enums/bacon-data-layer-kinds.d.ts +0 -8
- package/dist/types/interfaces/i-bacon-admin-init-request-evt.d.ts +0 -19
- package/dist/types/interfaces/i-bacon-totp-verification.d.ts +0 -3
package/src/index.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bacon Core
|
|
3
|
-
*
|
|
4
|
-
* @module bacon-core
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export * from './base';
|
|
8
|
-
export * from './concrete';
|
|
9
|
-
export * from './constants';
|
|
10
|
-
export * from './enums';
|
|
11
|
-
export * from './interfaces';
|
|
12
|
-
export * from './maps';
|
|
13
|
-
export * from './static';
|
|
14
|
-
export * from './utils';
|
|
15
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Bacon Core
|
|
3
|
+
*
|
|
4
|
+
* @module bacon-core
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export * from './base';
|
|
8
|
+
export * from './concrete';
|
|
9
|
+
export * from './constants';
|
|
10
|
+
export * from './enums';
|
|
11
|
+
export * from './interfaces';
|
|
12
|
+
export * from './maps';
|
|
13
|
+
export * from './static';
|
|
14
|
+
export * from './utils';
|
|
15
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaconActorInitStatuses } from "../enums/bacon-actor-init-statuses";
|
|
2
|
-
|
|
3
|
-
export interface IBaconActorInitStatus {
|
|
4
|
-
|
|
5
|
-
actorInitStatus: BaconActorInitStatuses;
|
|
6
|
-
|
|
1
|
+
import { BaconActorInitStatuses } from "../enums/bacon-actor-init-statuses";
|
|
2
|
+
|
|
3
|
+
export interface IBaconActorInitStatus {
|
|
4
|
+
|
|
5
|
+
actorInitStatus: BaconActorInitStatuses;
|
|
6
|
+
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface IBaconActorInitTrigCtx {
|
|
2
|
-
awsSdkVersion: string;
|
|
3
|
-
clientId: string;
|
|
1
|
+
export interface IBaconActorInitTrigCtx {
|
|
2
|
+
awsSdkVersion: string;
|
|
3
|
+
clientId: string;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IOIDCProfile } from "./i-oidc-profile"
|
|
2
|
-
|
|
3
|
-
export interface IBaconActorInitTrigReq {
|
|
4
|
-
userAttributes: IOIDCProfile;
|
|
5
|
-
validationData: any;
|
|
1
|
+
import { IOIDCProfile } from "./i-oidc-profile"
|
|
2
|
+
|
|
3
|
+
export interface IBaconActorInitTrigReq {
|
|
4
|
+
userAttributes: IOIDCProfile;
|
|
5
|
+
validationData: any;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface IBaconActorInitTrigResp {
|
|
2
|
-
autoConfirmUser: boolean;
|
|
3
|
-
autoVerifyEmail: boolean;
|
|
4
|
-
autoVerifyPhone: boolean;
|
|
1
|
+
export interface IBaconActorInitTrigResp {
|
|
2
|
+
autoConfirmUser: boolean;
|
|
3
|
+
autoVerifyEmail: boolean;
|
|
4
|
+
autoVerifyPhone: boolean;
|
|
5
5
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface IBaconActorInitTrigUserAttr {
|
|
2
|
-
[key: string]: String
|
|
1
|
+
export interface IBaconActorInitTrigUserAttr {
|
|
2
|
+
[key: string]: String
|
|
3
3
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { BaconActorInitTriggerSources, BaconAWSRegions } from "../enums";
|
|
2
|
-
import { IBaconActorInitTrigCtx } from "./i-actor-init-trig-ctx";
|
|
3
|
-
import { IBaconActorInitTrigReq } from "./i-actor-init-trig-req";
|
|
4
|
-
import { IBaconActorInitTrigResp } from "./i-actor-init-trig-resp";
|
|
5
|
-
|
|
6
|
-
export interface IBaconActorInitTriggerEvent {
|
|
7
|
-
version: string;
|
|
8
|
-
triggerSource: BaconActorInitTriggerSources;
|
|
9
|
-
region: BaconAWSRegions;
|
|
10
|
-
userPoolId: string;
|
|
11
|
-
userName: string;
|
|
12
|
-
callerContext: IBaconActorInitTrigCtx;
|
|
13
|
-
request: IBaconActorInitTrigReq;
|
|
14
|
-
response: IBaconActorInitTrigResp;
|
|
1
|
+
import { BaconActorInitTriggerSources, BaconAWSRegions } from "../enums";
|
|
2
|
+
import { IBaconActorInitTrigCtx } from "./i-actor-init-trig-ctx";
|
|
3
|
+
import { IBaconActorInitTrigReq } from "./i-actor-init-trig-req";
|
|
4
|
+
import { IBaconActorInitTrigResp } from "./i-actor-init-trig-resp";
|
|
5
|
+
|
|
6
|
+
export interface IBaconActorInitTriggerEvent {
|
|
7
|
+
version: string;
|
|
8
|
+
triggerSource: BaconActorInitTriggerSources;
|
|
9
|
+
region: BaconAWSRegions;
|
|
10
|
+
userPoolId: string;
|
|
11
|
+
userName: string;
|
|
12
|
+
callerContext: IBaconActorInitTrigCtx;
|
|
13
|
+
request: IBaconActorInitTrigReq;
|
|
14
|
+
response: IBaconActorInitTrigResp;
|
|
15
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
2
|
-
|
|
3
|
-
export interface IBaconActorStatus {
|
|
4
|
-
|
|
5
|
-
actorStatus: BaconActorStatuses;
|
|
6
|
-
|
|
1
|
+
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
2
|
+
|
|
3
|
+
export interface IBaconActorStatus {
|
|
4
|
+
|
|
5
|
+
actorStatus: BaconActorStatuses;
|
|
6
|
+
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface IBaconActionItemSettings {
|
|
2
|
-
acceptUpload: boolean;
|
|
3
|
-
autoReminder: boolean;
|
|
4
|
-
highImportance: boolean;
|
|
5
|
-
phoneReminder: boolean;
|
|
1
|
+
export interface IBaconActionItemSettings {
|
|
2
|
+
acceptUpload: boolean;
|
|
3
|
+
autoReminder: boolean;
|
|
4
|
+
highImportance: boolean;
|
|
5
|
+
phoneReminder: boolean;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface IBaconAdminMasterEntry {
|
|
2
|
-
sub: string;
|
|
3
|
-
federatedId: string;
|
|
1
|
+
export interface IBaconAdminMasterEntry {
|
|
2
|
+
sub: string;
|
|
3
|
+
federatedId: string;
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface IBaconAuthenticatorApp {
|
|
2
|
-
name: string;
|
|
3
|
-
deepLink: string;
|
|
4
|
-
universalLink?: string;
|
|
5
|
-
playStoreUrl?: string;
|
|
6
|
-
appStoreUrl?: string;
|
|
1
|
+
export interface IBaconAuthenticatorApp {
|
|
2
|
+
name: string;
|
|
3
|
+
deepLink: string;
|
|
4
|
+
universalLink?: string;
|
|
5
|
+
playStoreUrl?: string;
|
|
6
|
+
appStoreUrl?: string;
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BaconBusinessLayerKinds, BaconLoggerEventTypes } from "../enums";
|
|
2
|
-
import { IOIDCProfile } from "./i-oidc-profile";
|
|
3
|
-
|
|
4
|
-
export interface IBaconBaseLoggerEvent {
|
|
5
|
-
kind: BaconBusinessLayerKinds;
|
|
6
|
-
eventType: BaconLoggerEventTypes;
|
|
7
|
-
error: string;
|
|
8
|
-
actor: IOIDCProfile;
|
|
9
|
-
timestamp: string;
|
|
1
|
+
import { BaconBusinessLayerKinds, BaconLoggerEventTypes } from "../enums";
|
|
2
|
+
import { IOIDCProfile } from "./i-oidc-profile";
|
|
3
|
+
|
|
4
|
+
export interface IBaconBaseLoggerEvent {
|
|
5
|
+
kind: BaconBusinessLayerKinds;
|
|
6
|
+
eventType: BaconLoggerEventTypes;
|
|
7
|
+
error: string;
|
|
8
|
+
actor: IOIDCProfile;
|
|
9
|
+
timestamp: string;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface IBaconClientChecklistItem {
|
|
2
|
-
action: string;
|
|
3
|
-
description: string;
|
|
4
|
-
index: number;
|
|
5
|
-
id: string;
|
|
6
|
-
explanation: string;
|
|
7
|
-
status: 'complete' | 'incomplete'
|
|
1
|
+
export interface IBaconClientChecklistItem {
|
|
2
|
+
action: string;
|
|
3
|
+
description: string;
|
|
4
|
+
index: number;
|
|
5
|
+
id: string;
|
|
6
|
+
explanation: string;
|
|
7
|
+
status: 'complete' | 'incomplete'
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface IBaconClientError {
|
|
2
|
-
canonicalMessage: string;
|
|
3
|
-
errorMessage: any;
|
|
1
|
+
export interface IBaconClientError {
|
|
2
|
+
canonicalMessage: string;
|
|
3
|
+
errorMessage: any;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface BaconCognitoRequest {
|
|
2
|
-
action: "createUser" | "deleteUser" | "updateUserAttributes" | "signIn";
|
|
3
|
-
payload: any;
|
|
1
|
+
export interface BaconCognitoRequest {
|
|
2
|
+
action: "createUser" | "deleteUser" | "updateUserAttributes" | "signIn";
|
|
3
|
+
payload: any;
|
|
4
4
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface IBaconFile {
|
|
2
|
-
lastModified?: number;
|
|
3
|
-
lastModifiedDate?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
size?: number;
|
|
6
|
-
type?: string;
|
|
7
|
-
currentKey?: string;
|
|
8
|
-
destinationKey?: string;
|
|
1
|
+
export interface IBaconFile {
|
|
2
|
+
lastModified?: number;
|
|
3
|
+
lastModifiedDate?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
type?: string;
|
|
7
|
+
currentKey?: string;
|
|
8
|
+
destinationKey?: string;
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaconAuthMfaTypes } from "../enums";
|
|
2
|
-
|
|
3
|
-
export interface IBaconMfaStatus {
|
|
4
|
-
isEnabled: boolean;
|
|
5
|
-
isTOTPEnabled: boolean;
|
|
6
|
-
isSMSEnabled: boolean;
|
|
7
|
-
preferredMethod?: BaconAuthMfaTypes;
|
|
1
|
+
import { BaconAuthMfaTypes } from "../enums";
|
|
2
|
+
|
|
3
|
+
export interface IBaconMfaStatus {
|
|
4
|
+
isEnabled: boolean;
|
|
5
|
+
isTOTPEnabled: boolean;
|
|
6
|
+
isSMSEnabled: boolean;
|
|
7
|
+
preferredMethod?: BaconAuthMfaTypes;
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface IBaconObjectLayerResult {
|
|
2
|
-
statusCode: number;
|
|
3
|
-
headers: {
|
|
4
|
-
[key: string]: string
|
|
5
|
-
},
|
|
6
|
-
body: string
|
|
1
|
+
export interface IBaconObjectLayerResult {
|
|
2
|
+
statusCode: number;
|
|
3
|
+
headers: {
|
|
4
|
+
[key: string]: string
|
|
5
|
+
},
|
|
6
|
+
body: string
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface IBaconStorageItem {
|
|
2
|
-
eTag: string;
|
|
3
|
-
key: string;
|
|
4
|
-
path?: string;
|
|
5
|
-
lastModified: string;
|
|
6
|
-
size: number;
|
|
7
|
-
index: number
|
|
1
|
+
export interface IBaconStorageItem {
|
|
2
|
+
eTag: string;
|
|
3
|
+
key: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
lastModified: string;
|
|
6
|
+
size: number;
|
|
7
|
+
index: number
|
|
8
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface IBaconTotpVerificationNModel {
|
|
2
|
-
code: string;
|
|
1
|
+
export interface IBaconTotpVerificationNModel {
|
|
2
|
+
code: string;
|
|
3
3
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface IBaconTotpVerificationResult {
|
|
2
|
-
success: boolean;
|
|
3
|
-
error?: {
|
|
4
|
-
code: string;
|
|
5
|
-
message: string;
|
|
6
|
-
};
|
|
1
|
+
export interface IBaconTotpVerificationResult {
|
|
2
|
+
success: boolean;
|
|
3
|
+
error?: {
|
|
4
|
+
code: string;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
7
|
}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
// represents incoming APIGW HTTP API lambda event
|
|
2
|
-
// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
3
|
-
|
|
4
|
-
// as of today, there are no typescript definitions for this event type
|
|
5
|
-
export interface IBaconUIPassthroughInputEvent
|
|
6
|
-
{
|
|
7
|
-
"version"?: string,
|
|
8
|
-
"routeKey"?: string,
|
|
9
|
-
"rawPath"?: string,
|
|
10
|
-
"rawQueryString"?: string,
|
|
11
|
-
"cookies"?: string[],
|
|
12
|
-
"headers"?: {
|
|
13
|
-
[header: string]: string
|
|
14
|
-
},
|
|
15
|
-
"queryStringParameters"?: {
|
|
16
|
-
[param: string]: string
|
|
17
|
-
},
|
|
18
|
-
"requestContext"?: {
|
|
19
|
-
"accountId": string,
|
|
20
|
-
"apiId": string,
|
|
21
|
-
"authentication": {
|
|
22
|
-
"clientCert": {
|
|
23
|
-
"clientCertPem": string,
|
|
24
|
-
"subjectDN": string,
|
|
25
|
-
"issuerDN": string,
|
|
26
|
-
"serialNumber": string,
|
|
27
|
-
"validity": {
|
|
28
|
-
"notBefore": string,
|
|
29
|
-
"notAfter": string
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"authorizer": {
|
|
34
|
-
"jwt": {
|
|
35
|
-
"claims": {
|
|
36
|
-
[claim: string]: string
|
|
37
|
-
},
|
|
38
|
-
"scopes": string[]
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"domainName": string,
|
|
42
|
-
"domainPrefix": string,
|
|
43
|
-
"http": {
|
|
44
|
-
"method": string,
|
|
45
|
-
"path": string,
|
|
46
|
-
"protocol": string,
|
|
47
|
-
"sourceIp": string,
|
|
48
|
-
"userAgent": string
|
|
49
|
-
},
|
|
50
|
-
"requestId": string,
|
|
51
|
-
"routeKey": string,
|
|
52
|
-
"stage": string,
|
|
53
|
-
"time": string,
|
|
54
|
-
"timeEpoch": number
|
|
55
|
-
},
|
|
56
|
-
"body"?: string,
|
|
57
|
-
"pathParameters": {
|
|
58
|
-
"proxy": string, // hardcoding proxy here because it's the only path parameter we use
|
|
59
|
-
},
|
|
60
|
-
"isBase64Encoded"?: false,
|
|
61
|
-
"stageVariables"?: {
|
|
62
|
-
"stageVariable1": string,
|
|
63
|
-
"stageVariable2": string
|
|
64
|
-
}
|
|
1
|
+
// represents incoming APIGW HTTP API lambda event
|
|
2
|
+
// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
3
|
+
|
|
4
|
+
// as of today, there are no typescript definitions for this event type
|
|
5
|
+
export interface IBaconUIPassthroughInputEvent
|
|
6
|
+
{
|
|
7
|
+
"version"?: string,
|
|
8
|
+
"routeKey"?: string,
|
|
9
|
+
"rawPath"?: string,
|
|
10
|
+
"rawQueryString"?: string,
|
|
11
|
+
"cookies"?: string[],
|
|
12
|
+
"headers"?: {
|
|
13
|
+
[header: string]: string
|
|
14
|
+
},
|
|
15
|
+
"queryStringParameters"?: {
|
|
16
|
+
[param: string]: string
|
|
17
|
+
},
|
|
18
|
+
"requestContext"?: {
|
|
19
|
+
"accountId": string,
|
|
20
|
+
"apiId": string,
|
|
21
|
+
"authentication": {
|
|
22
|
+
"clientCert": {
|
|
23
|
+
"clientCertPem": string,
|
|
24
|
+
"subjectDN": string,
|
|
25
|
+
"issuerDN": string,
|
|
26
|
+
"serialNumber": string,
|
|
27
|
+
"validity": {
|
|
28
|
+
"notBefore": string,
|
|
29
|
+
"notAfter": string
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"authorizer": {
|
|
34
|
+
"jwt": {
|
|
35
|
+
"claims": {
|
|
36
|
+
[claim: string]: string
|
|
37
|
+
},
|
|
38
|
+
"scopes": string[]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"domainName": string,
|
|
42
|
+
"domainPrefix": string,
|
|
43
|
+
"http": {
|
|
44
|
+
"method": string,
|
|
45
|
+
"path": string,
|
|
46
|
+
"protocol": string,
|
|
47
|
+
"sourceIp": string,
|
|
48
|
+
"userAgent": string
|
|
49
|
+
},
|
|
50
|
+
"requestId": string,
|
|
51
|
+
"routeKey": string,
|
|
52
|
+
"stage": string,
|
|
53
|
+
"time": string,
|
|
54
|
+
"timeEpoch": number
|
|
55
|
+
},
|
|
56
|
+
"body"?: string,
|
|
57
|
+
"pathParameters": {
|
|
58
|
+
"proxy": string, // hardcoding proxy here because it's the only path parameter we use
|
|
59
|
+
},
|
|
60
|
+
"isBase64Encoded"?: false,
|
|
61
|
+
"stageVariables"?: {
|
|
62
|
+
"stageVariable1": string,
|
|
63
|
+
"stageVariable2": string
|
|
64
|
+
}
|
|
65
65
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface IBaconUpdateMFAPreferenceResult {
|
|
2
|
-
success: boolean;
|
|
3
|
-
error?: {
|
|
4
|
-
code: string;
|
|
5
|
-
message: string;
|
|
6
|
-
};
|
|
1
|
+
export interface IBaconUpdateMFAPreferenceResult {
|
|
2
|
+
success: boolean;
|
|
3
|
+
error?: {
|
|
4
|
+
code: string;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IBaconFile } from "./i-bacon-file";
|
|
2
|
-
|
|
3
|
-
export interface IBaconUploadRequest {
|
|
4
|
-
files: IBaconFile[];
|
|
5
|
-
destination: string;
|
|
1
|
+
import { IBaconFile } from "./i-bacon-file";
|
|
2
|
+
|
|
3
|
+
export interface IBaconUploadRequest {
|
|
4
|
+
files: IBaconFile[];
|
|
5
|
+
destination: string;
|
|
6
6
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin-only hidden fields for client accounting intake
|
|
3
|
+
* These fields are set by admin via the admin dashboard, not by the client
|
|
4
|
+
*/
|
|
5
|
+
export interface IClientAcctAdminFields {
|
|
6
|
+
/** Whether we provide payroll services for this client */
|
|
7
|
+
providesPayroll: boolean;
|
|
8
|
+
/** Whether we provide state tax filings (B&O) for this client */
|
|
9
|
+
providesStateTaxFilingsBnO: boolean;
|
|
10
|
+
/** Whether this is a business tax client */
|
|
11
|
+
isBusinessTaxClient: boolean;
|
|
12
|
+
/** Whether this is a personal tax client */
|
|
13
|
+
isPersonalTaxClient: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ClientAcctIntakeBusinessEntityTypes } from "../enums/client-acct-intake-business-entity-types";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Business information section of the client accounting intake form
|
|
5
|
+
*/
|
|
6
|
+
export interface IClientAcctBusinessInfo {
|
|
7
|
+
/** Client acquisition date - hidden field, auto-set on creation */
|
|
8
|
+
clientAcquisitionDate: string;
|
|
9
|
+
/** Legal business name as registered with government agencies */
|
|
10
|
+
legalBusinessName: string;
|
|
11
|
+
/** IRS Tax ID (EIN) - format XX-XXXXXXX, optional */
|
|
12
|
+
irsTaxIdEIN: string;
|
|
13
|
+
/** Business entity type */
|
|
14
|
+
businessEntityType: ClientAcctIntakeBusinessEntityTypes;
|
|
15
|
+
/** Date of incorporation or formation date/date on business license */
|
|
16
|
+
dateOfIncorporation: string;
|
|
17
|
+
/** Date of S-Corporation election - applicable only for S-Corps */
|
|
18
|
+
dateOfSCorpElection: string;
|
|
19
|
+
/** State of incorporation / state where business is registered */
|
|
20
|
+
stateOfIncorporation: string;
|
|
21
|
+
/** State Tax ID - optional */
|
|
22
|
+
stateTaxId: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Business owner entry for client accounting intake form
|
|
3
|
+
* Supports up to 10 owners per client
|
|
4
|
+
*/
|
|
5
|
+
export interface IClientAcctBusinessOwner {
|
|
6
|
+
/** Full name of the business owner */
|
|
7
|
+
ownerName: string;
|
|
8
|
+
/** Email address of the owner */
|
|
9
|
+
ownerEmail: string;
|
|
10
|
+
/** Cellphone number of the owner */
|
|
11
|
+
ownerCellphone: string;
|
|
12
|
+
/** Date of birth - ISO date string */
|
|
13
|
+
ownerDOB: string;
|
|
14
|
+
/** Social Security Number - format XXX-XX-XXXX */
|
|
15
|
+
ownerSSN: string;
|
|
16
|
+
/** Percent ownership for partnerships/QJV (0-100) */
|
|
17
|
+
percentOwnership: number;
|
|
18
|
+
/** Number of shares owned for S-Corp/C-Corp */
|
|
19
|
+
sharesOwned: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ClientAcctIntakeBOFilingFrequencies } from "../enums/client-acct-intake-bo-filing-frequencies";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Employee information section of the client accounting intake form
|
|
5
|
+
*/
|
|
6
|
+
export interface IClientAcctEmployeeInfo {
|
|
7
|
+
/** Number of shareholders on payroll - applicable for S-Corp/C-Corp */
|
|
8
|
+
shareholdersOnPayroll: number;
|
|
9
|
+
/** Number of non-shareholder employees on payroll */
|
|
10
|
+
nonShareholderEmployees: number;
|
|
11
|
+
/** Business and Operations (B&O) tax filing frequency - WA state specific */
|
|
12
|
+
boTaxFilingFrequency: ClientAcctIntakeBOFilingFrequencies;
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IClientAcctAdminFields } from "./i-client-acct-admin-fields";
|
|
2
|
+
import { IClientAcctBusinessInfo } from "./i-client-acct-business-info";
|
|
3
|
+
import { IClientAcctBusinessOwner } from "./i-client-acct-business-owner";
|
|
4
|
+
import { IClientAcctEmployeeInfo } from "./i-client-acct-employee-info";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Complete client accounting intake data model
|
|
8
|
+
* Stored in DynamoDB under the key 'client-acct-intake'
|
|
9
|
+
*/
|
|
10
|
+
export interface IClientAcctIntakeData {
|
|
11
|
+
/** Business information section */
|
|
12
|
+
businessInfo: IClientAcctBusinessInfo;
|
|
13
|
+
/** Array of business owners - maximum 10 entries */
|
|
14
|
+
businessOwners: IClientAcctBusinessOwner[];
|
|
15
|
+
/** Employee information section */
|
|
16
|
+
employeeInfo: IClientAcctEmployeeInfo;
|
|
17
|
+
/** Admin-only hidden fields */
|
|
18
|
+
adminFields: IClientAcctAdminFields;
|
|
19
|
+
/** ISO timestamp of last modification */
|
|
20
|
+
lastModified: string;
|
|
21
|
+
/** Whether the intake form is complete and submitted */
|
|
22
|
+
isComplete: boolean;
|
|
23
|
+
/** ISO timestamp of when the intake was submitted */
|
|
24
|
+
submittedAt: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Constants for client accounting intake
|
|
29
|
+
*/
|
|
30
|
+
export const CLIENT_ACCT_INTAKE_CONSTANTS = {
|
|
31
|
+
/** Maximum number of business owners allowed */
|
|
32
|
+
MAX_BUSINESS_OWNERS: 10,
|
|
33
|
+
/** DynamoDB object key for intake data */
|
|
34
|
+
DB_OBJECT_KEY: "client-acct-intake"
|
|
35
|
+
} as const;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface BaconCognitoAdminRequestPayload {
|
|
2
|
-
username: string;
|
|
3
|
-
customAttributes?: {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
};
|
|
6
|
-
userAttributes?: {
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
};
|
|
1
|
+
export interface BaconCognitoAdminRequestPayload {
|
|
2
|
+
username: string;
|
|
3
|
+
customAttributes?: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
userAttributes?: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface IFlatNode {
|
|
2
|
-
expandable: boolean;
|
|
3
|
-
name: string;
|
|
4
|
-
level: number;
|
|
5
|
-
isExpanded?: boolean;
|
|
1
|
+
export interface IFlatNode {
|
|
2
|
+
expandable: boolean;
|
|
3
|
+
name: string;
|
|
4
|
+
level: number;
|
|
5
|
+
isExpanded?: boolean;
|
|
6
6
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface BaconIOTPermsRequestPayload {
|
|
2
|
-
identityId: string;
|
|
1
|
+
export interface BaconIOTPermsRequestPayload {
|
|
2
|
+
identityId: string;
|
|
3
3
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface IOIDCAddressClaim {
|
|
2
|
-
street_address?: string;
|
|
3
|
-
formatted?: string;
|
|
4
|
-
locality?: string;
|
|
5
|
-
region?: string;
|
|
6
|
-
postal_code?: string;
|
|
7
|
-
country?: string;
|
|
1
|
+
export interface IOIDCAddressClaim {
|
|
2
|
+
street_address?: string;
|
|
3
|
+
formatted?: string;
|
|
4
|
+
locality?: string;
|
|
5
|
+
region?: string;
|
|
6
|
+
postal_code?: string;
|
|
7
|
+
country?: string;
|
|
8
8
|
}
|