@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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface IOIDCIdentity {
|
|
2
|
-
userId: string;
|
|
3
|
-
providerName: string;
|
|
4
|
-
providerType: string;
|
|
5
|
-
issuer: string | undefined;
|
|
6
|
-
primary: boolean;
|
|
7
|
-
dateCreated: number
|
|
1
|
+
export interface IOIDCIdentity {
|
|
2
|
+
userId: string;
|
|
3
|
+
providerName: string;
|
|
4
|
+
providerType: string;
|
|
5
|
+
issuer: string | undefined;
|
|
6
|
+
primary: boolean;
|
|
7
|
+
dateCreated: number
|
|
8
8
|
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { IOIDCAddressClaim } from "./i-oidc-address-claim";
|
|
2
|
-
import { IOIDCIdentity } from "./i-oidc-identity";
|
|
3
|
-
|
|
4
|
-
export interface IOIDCProfile {
|
|
5
|
-
sub: string;
|
|
6
|
-
name?: string; // Depending on OIDC provider, they may only provide given_name
|
|
7
|
-
email: string;
|
|
8
|
-
phone_number?: string;
|
|
9
|
-
given_name?: string;
|
|
10
|
-
family_name?: string;
|
|
11
|
-
middle_name?: string;
|
|
12
|
-
nickname?: string;
|
|
13
|
-
preferred_username?: string;
|
|
14
|
-
profile?: string;
|
|
15
|
-
picture?: string;
|
|
16
|
-
website?: string;
|
|
17
|
-
email_verified?: boolean;
|
|
18
|
-
gender?: string;
|
|
19
|
-
birthdate?: string;
|
|
20
|
-
zoneinfo?: string;
|
|
21
|
-
locale?: string;
|
|
22
|
-
phone_number_verified?: boolean;
|
|
23
|
-
address?: IOIDCAddressClaim;
|
|
24
|
-
userPoolId?: string;
|
|
25
|
-
region?: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Cognito's PreAuthentication_Authentication event
|
|
29
|
-
* includes the "identities" property as a string.
|
|
30
|
-
* The caller must parse this value before accessing the contents
|
|
31
|
-
* in a strongly typed manner.
|
|
32
|
-
*
|
|
33
|
-
* We can parse this into an object implementing IOIDCIdentity
|
|
34
|
-
*/
|
|
35
|
-
identities?: string; // PreAuthentication_Authentication
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Cognito's PostConfirmation_ConfirmSignUp event
|
|
39
|
-
* includes the cognito:user_status property as a string.
|
|
40
|
-
* This property will contain one of the following values:
|
|
41
|
-
* EXTERNAL_PROVIDER if the user has authenticated with an external IdP
|
|
42
|
-
* CONFIRMED if the user has not authenticated with an external IdP
|
|
43
|
-
*/
|
|
44
|
-
'cognito:user_status'?: string; // PostConfirmation_ConfirmSignUp
|
|
1
|
+
import { IOIDCAddressClaim } from "./i-oidc-address-claim";
|
|
2
|
+
import { IOIDCIdentity } from "./i-oidc-identity";
|
|
3
|
+
|
|
4
|
+
export interface IOIDCProfile {
|
|
5
|
+
sub: string;
|
|
6
|
+
name?: string; // Depending on OIDC provider, they may only provide given_name
|
|
7
|
+
email: string;
|
|
8
|
+
phone_number?: string;
|
|
9
|
+
given_name?: string;
|
|
10
|
+
family_name?: string;
|
|
11
|
+
middle_name?: string;
|
|
12
|
+
nickname?: string;
|
|
13
|
+
preferred_username?: string;
|
|
14
|
+
profile?: string;
|
|
15
|
+
picture?: string;
|
|
16
|
+
website?: string;
|
|
17
|
+
email_verified?: boolean;
|
|
18
|
+
gender?: string;
|
|
19
|
+
birthdate?: string;
|
|
20
|
+
zoneinfo?: string;
|
|
21
|
+
locale?: string;
|
|
22
|
+
phone_number_verified?: boolean;
|
|
23
|
+
address?: IOIDCAddressClaim;
|
|
24
|
+
userPoolId?: string;
|
|
25
|
+
region?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Cognito's PreAuthentication_Authentication event
|
|
29
|
+
* includes the "identities" property as a string.
|
|
30
|
+
* The caller must parse this value before accessing the contents
|
|
31
|
+
* in a strongly typed manner.
|
|
32
|
+
*
|
|
33
|
+
* We can parse this into an object implementing IOIDCIdentity
|
|
34
|
+
*/
|
|
35
|
+
identities?: string; // PreAuthentication_Authentication
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Cognito's PostConfirmation_ConfirmSignUp event
|
|
39
|
+
* includes the cognito:user_status property as a string.
|
|
40
|
+
* This property will contain one of the following values:
|
|
41
|
+
* EXTERNAL_PROVIDER if the user has authenticated with an external IdP
|
|
42
|
+
* CONFIRMED if the user has not authenticated with an external IdP
|
|
43
|
+
*/
|
|
44
|
+
'cognito:user_status'?: string; // PostConfirmation_ConfirmSignUp
|
|
45
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface ITokenTime {
|
|
2
|
-
accessTokenExpiryDateTime: number;
|
|
3
|
-
refreshTokenExpiryDateTime: number;
|
|
1
|
+
export interface ITokenTime {
|
|
2
|
+
accessTokenExpiryDateTime: number;
|
|
3
|
+
refreshTokenExpiryDateTime: number;
|
|
4
4
|
}
|
package/src/interfaces/i-user.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IOIDCProfile } from "./i-oidc-profile";
|
|
2
|
-
export interface IUser {
|
|
3
|
-
id: string;
|
|
4
|
-
username: string;
|
|
5
|
-
attributes: IOIDCProfile;
|
|
1
|
+
import { IOIDCProfile } from "./i-oidc-profile";
|
|
2
|
+
export interface IUser {
|
|
3
|
+
id: string;
|
|
4
|
+
username: string;
|
|
5
|
+
attributes: IOIDCProfile;
|
|
6
6
|
}
|
package/src/interfaces/index.ts
CHANGED
|
@@ -1,32 +1,37 @@
|
|
|
1
|
-
export * from './i-actor-init-status';
|
|
2
|
-
export * from './i-actor-init-trig-ctx';
|
|
3
|
-
export * from './i-actor-init-trig-req';
|
|
4
|
-
export * from './i-actor-init-trig-resp';
|
|
5
|
-
export * from './i-actor-init-trig-user-attr';
|
|
6
|
-
export * from './i-actor-init-trigger-evt';
|
|
7
|
-
export * from './i-actor-status';
|
|
8
|
-
export * from './i-bacon-action-item-settings';
|
|
9
|
-
export * from './i-
|
|
10
|
-
export * from './i-
|
|
11
|
-
export * from './i-
|
|
12
|
-
export * from './i-
|
|
13
|
-
export * from './i-
|
|
14
|
-
export * from './i-bacon-
|
|
15
|
-
export * from './i-bacon-
|
|
16
|
-
export * from './i-bacon-
|
|
17
|
-
export * from './i-bacon-
|
|
18
|
-
export * from './i-bacon-
|
|
19
|
-
export * from './i-bacon-
|
|
20
|
-
export * from './i-bacon-
|
|
21
|
-
export * from './i-bacon-
|
|
22
|
-
export * from './i-bacon-
|
|
23
|
-
export * from './i-bacon-
|
|
24
|
-
export * from './i-bacon-
|
|
25
|
-
export * from './i-
|
|
26
|
-
export * from './i-
|
|
27
|
-
export * from './i-
|
|
28
|
-
export * from './i-
|
|
29
|
-
export * from './i-
|
|
30
|
-
export * from './i-
|
|
31
|
-
export * from './i-
|
|
32
|
-
export * from './i-
|
|
1
|
+
export * from './i-actor-init-status';
|
|
2
|
+
export * from './i-actor-init-trig-ctx';
|
|
3
|
+
export * from './i-actor-init-trig-req';
|
|
4
|
+
export * from './i-actor-init-trig-resp';
|
|
5
|
+
export * from './i-actor-init-trig-user-attr';
|
|
6
|
+
export * from './i-actor-init-trigger-evt';
|
|
7
|
+
export * from './i-actor-status';
|
|
8
|
+
export * from './i-bacon-action-item-settings';
|
|
9
|
+
export * from './i-client-acct-admin-fields';
|
|
10
|
+
export * from './i-client-acct-business-info';
|
|
11
|
+
export * from './i-client-acct-business-owner';
|
|
12
|
+
export * from './i-client-acct-employee-info';
|
|
13
|
+
export * from './i-client-acct-intake';
|
|
14
|
+
export * from './i-bacon-action-item-snippet';
|
|
15
|
+
export * from './i-bacon-admin-master-entry';
|
|
16
|
+
export * from './i-bacon-authenticator-app';
|
|
17
|
+
export * from './i-bacon-base-logger-event';
|
|
18
|
+
export * from './i-bacon-client-checklist-item';
|
|
19
|
+
export * from './i-bacon-client-error';
|
|
20
|
+
export * from './i-bacon-cognito-request';
|
|
21
|
+
export * from './i-bacon-file';
|
|
22
|
+
export * from './i-bacon-mfa-status';
|
|
23
|
+
export * from './i-bacon-object-layer-result';
|
|
24
|
+
export * from './i-bacon-storage-item';
|
|
25
|
+
export * from './i-bacon-totp-verification-model';
|
|
26
|
+
export * from './i-bacon-totp-verification-result';
|
|
27
|
+
export * from './i-bacon-update-mfa-pref-result';
|
|
28
|
+
export * from './i-bacon-upload-request';
|
|
29
|
+
export * from './i-bacon-ui-passthrough-input-event';
|
|
30
|
+
export * from './i-cognito-admin-request-payload';
|
|
31
|
+
export * from './i-flat-node';
|
|
32
|
+
export * from './i-oidc-address-claim';
|
|
33
|
+
export * from './i-oidc-identity';
|
|
34
|
+
export * from './i-oidc-profile';
|
|
35
|
+
export * from './i-iot-perms-request-payload';
|
|
36
|
+
export * from './i-user';
|
|
37
|
+
export * from './i-token-time';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { BaconRoutes } from "../enums";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Access microservice name from route. This runs in the context of a microservice,
|
|
5
|
-
* so the actual service names will be located in env variables. This allows for retrieving
|
|
6
|
-
* the microservice name regardless of the environment. These environment variables should be configured
|
|
7
|
-
* in passthrough services with APIGW events
|
|
8
|
-
* */
|
|
9
|
-
// Check if process is defined, and if so, use its env, otherwise use an empty object.
|
|
10
|
-
const env = typeof process !== 'undefined' ? process.env : {};
|
|
11
|
-
|
|
12
|
-
const BaconRouteToMicroserviceMap: { [routeKey in BaconRoutes]?: string } = {
|
|
13
|
-
[BaconRoutes.ActionItemsAIRoute]: env.actionItemsAIService,
|
|
14
|
-
[BaconRoutes.AdminRoute]: env.adminService,
|
|
15
|
-
[BaconRoutes.DataRoute]: env.dataService,
|
|
16
|
-
[BaconRoutes.EmailRoute]: env.emailService,
|
|
17
|
-
[BaconRoutes.LoggerRoute]: env.loggerService,
|
|
18
|
-
[BaconRoutes.ObjectRoute]: env.objectService,
|
|
19
|
-
[BaconRoutes.QBORoute]: env.qboService,
|
|
20
|
-
[BaconRoutes.StripeRoute]: env.stripeService,
|
|
21
|
-
// add more routes here
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { BaconRouteToMicroserviceMap };
|
|
1
|
+
import { BaconRoutes } from "../enums";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Access microservice name from route. This runs in the context of a microservice,
|
|
5
|
+
* so the actual service names will be located in env variables. This allows for retrieving
|
|
6
|
+
* the microservice name regardless of the environment. These environment variables should be configured
|
|
7
|
+
* in passthrough services with APIGW events
|
|
8
|
+
* */
|
|
9
|
+
// Check if process is defined, and if so, use its env, otherwise use an empty object.
|
|
10
|
+
const env = typeof process !== 'undefined' ? process.env : {};
|
|
11
|
+
|
|
12
|
+
const BaconRouteToMicroserviceMap: { [routeKey in BaconRoutes]?: string } = {
|
|
13
|
+
[BaconRoutes.ActionItemsAIRoute]: env.actionItemsAIService,
|
|
14
|
+
[BaconRoutes.AdminRoute]: env.adminService,
|
|
15
|
+
[BaconRoutes.DataRoute]: env.dataService,
|
|
16
|
+
[BaconRoutes.EmailRoute]: env.emailService,
|
|
17
|
+
[BaconRoutes.LoggerRoute]: env.loggerService,
|
|
18
|
+
[BaconRoutes.ObjectRoute]: env.objectService,
|
|
19
|
+
[BaconRoutes.QBORoute]: env.qboService,
|
|
20
|
+
[BaconRoutes.StripeRoute]: env.stripeService,
|
|
21
|
+
// add more routes here
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { BaconRouteToMicroserviceMap };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
-
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
-
import { Bacon3PClient } from "../concrete/Bacon3PClient";
|
|
4
|
-
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
5
|
-
|
|
6
|
-
export class Bacon3PClientFactory extends BaconBaseActorFactory {
|
|
7
|
-
|
|
8
|
-
static createActor(profile: IOIDCProfile): BaconBaseActor {
|
|
9
|
-
const actor: BaconBaseActor = new Bacon3PClient(profile);
|
|
10
|
-
return actor;
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
+
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
+
import { Bacon3PClient } from "../concrete/Bacon3PClient";
|
|
4
|
+
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
5
|
+
|
|
6
|
+
export class Bacon3PClientFactory extends BaconBaseActorFactory {
|
|
7
|
+
|
|
8
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor {
|
|
9
|
+
const actor: BaconBaseActor = new Bacon3PClient(profile);
|
|
10
|
+
return actor;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
13
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BaconBaseLoggerEvent } from "../base/BaconBaseLoggerEvt";
|
|
2
|
-
import { BaconBaseLoggerEventFactory } from "../base/BaconBaseLoggerEvtFact";
|
|
3
|
-
import { BaconAccessLoggerEvent } from "../concrete/BaconAccessLoggerEvent";
|
|
4
|
-
|
|
5
|
-
export class BaconAccessLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
6
|
-
|
|
7
|
-
static createLoggerEvent(): BaconBaseLoggerEvent {
|
|
8
|
-
const loggerEvent: BaconBaseLoggerEvent = new BaconAccessLoggerEvent();
|
|
9
|
-
return loggerEvent;
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
import { BaconBaseLoggerEvent } from "../base/BaconBaseLoggerEvt";
|
|
2
|
+
import { BaconBaseLoggerEventFactory } from "../base/BaconBaseLoggerEvtFact";
|
|
3
|
+
import { BaconAccessLoggerEvent } from "../concrete/BaconAccessLoggerEvent";
|
|
4
|
+
|
|
5
|
+
export class BaconAccessLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
6
|
+
|
|
7
|
+
static createLoggerEvent(): BaconBaseLoggerEvent {
|
|
8
|
+
const loggerEvent: BaconBaseLoggerEvent = new BaconAccessLoggerEvent();
|
|
9
|
+
return loggerEvent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BaconBaseLoggerEvent } from "../base/BaconBaseLoggerEvt";
|
|
2
|
-
import { BaconBaseLoggerEventFactory } from "../base/BaconBaseLoggerEvtFact";
|
|
3
|
-
import { BaconGenericLoggerEvent } from "../concrete/BaconGenericLoggerEvent";
|
|
4
|
-
|
|
5
|
-
export class BaconGenericLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
6
|
-
|
|
7
|
-
static createLoggerEvent(): BaconBaseLoggerEvent {
|
|
8
|
-
const loggerEvent: BaconBaseLoggerEvent = new BaconGenericLoggerEvent();
|
|
9
|
-
return loggerEvent;
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
import { BaconBaseLoggerEvent } from "../base/BaconBaseLoggerEvt";
|
|
2
|
+
import { BaconBaseLoggerEventFactory } from "../base/BaconBaseLoggerEvtFact";
|
|
3
|
+
import { BaconGenericLoggerEvent } from "../concrete/BaconGenericLoggerEvent";
|
|
4
|
+
|
|
5
|
+
export class BaconGenericLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
6
|
+
|
|
7
|
+
static createLoggerEvent(): BaconBaseLoggerEvent {
|
|
8
|
+
const loggerEvent: BaconBaseLoggerEvent = new BaconGenericLoggerEvent();
|
|
9
|
+
return loggerEvent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BaconBaseLoggerEvent } from "../base";
|
|
2
|
-
import { BaconBaseLoggerEventFactory } from "../base";
|
|
3
|
-
import { BaconPermissionsLoggerEvent } from "../concrete";
|
|
4
|
-
|
|
5
|
-
export class BaconPermissionsLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
6
|
-
|
|
7
|
-
static createLoggerEvent(): BaconBaseLoggerEvent {
|
|
8
|
-
const loggerEvent: BaconBaseLoggerEvent = new BaconPermissionsLoggerEvent();
|
|
9
|
-
return loggerEvent;
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
import { BaconBaseLoggerEvent } from "../base";
|
|
2
|
+
import { BaconBaseLoggerEventFactory } from "../base";
|
|
3
|
+
import { BaconPermissionsLoggerEvent } from "../concrete";
|
|
4
|
+
|
|
5
|
+
export class BaconPermissionsLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
6
|
+
|
|
7
|
+
static createLoggerEvent(): BaconBaseLoggerEvent {
|
|
8
|
+
const loggerEvent: BaconBaseLoggerEvent = new BaconPermissionsLoggerEvent();
|
|
9
|
+
return loggerEvent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
12
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
-
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
-
import { BaconSP } from "../concrete/BaconSP";
|
|
4
|
-
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
5
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
6
|
-
|
|
7
|
-
export class BaconSPFactory extends BaconBaseActorFactory {
|
|
8
|
-
|
|
9
|
-
static createActor(profile: IOIDCProfile): BaconBaseActor {
|
|
10
|
-
const actor: BaconBaseActor = new BaconSP(profile);
|
|
11
|
-
return actor;
|
|
12
|
-
}
|
|
13
|
-
|
|
1
|
+
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
+
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
+
import { BaconSP } from "../concrete/BaconSP";
|
|
4
|
+
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
5
|
+
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
6
|
+
|
|
7
|
+
export class BaconSPFactory extends BaconBaseActorFactory {
|
|
8
|
+
|
|
9
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor {
|
|
10
|
+
const actor: BaconBaseActor = new BaconSP(profile);
|
|
11
|
+
return actor;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
14
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
-
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
-
import { BaconSuperAdmin } from "../concrete/BaconSuperAdmin";
|
|
4
|
-
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
5
|
-
|
|
6
|
-
export class BaconSuperAdminFactory extends BaconBaseActorFactory {
|
|
7
|
-
|
|
8
|
-
static createActor(profile: IOIDCProfile): BaconBaseActor {
|
|
9
|
-
const actor: BaconBaseActor = new BaconSuperAdmin(profile);
|
|
10
|
-
return actor;
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
+
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
+
import { BaconSuperAdmin } from "../concrete/BaconSuperAdmin";
|
|
4
|
+
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
5
|
+
|
|
6
|
+
export class BaconSuperAdminFactory extends BaconBaseActorFactory {
|
|
7
|
+
|
|
8
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor {
|
|
9
|
+
const actor: BaconBaseActor = new BaconSuperAdmin(profile);
|
|
10
|
+
return actor;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
13
|
}
|
package/src/static/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './Bacon3PClientFactory';
|
|
2
|
-
export * from './BaconAccessLoggerEvtFactory';
|
|
3
|
-
export * from './BaconGenericLoggerEvtFactory';
|
|
4
|
-
export * from './BaconSPFactory';
|
|
5
|
-
export * from './BaconSuperAdminFactory';
|
|
1
|
+
export * from './Bacon3PClientFactory';
|
|
2
|
+
export * from './BaconAccessLoggerEvtFactory';
|
|
3
|
+
export * from './BaconGenericLoggerEvtFactory';
|
|
4
|
+
export * from './BaconSPFactory';
|
|
5
|
+
export * from './BaconSuperAdminFactory';
|
|
6
6
|
export * from './BaconPermissionsLoggerEventFactory';
|
package/src/utils/TypeUtils.ts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core type utilities for flexible type creation and manipulation
|
|
3
|
-
* Minimum TypeScript Version: 4.5
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Makes specified properties optional while keeping others required
|
|
8
|
-
* @example
|
|
9
|
-
* interface User { id: string; name: string; email: string; }
|
|
10
|
-
* type PartialUser = MakePropertiesOptional<User, 'name' | 'email'>;
|
|
11
|
-
* Result: { id: string; name?: string; email?: string; }
|
|
12
|
-
*/
|
|
13
|
-
export type MakePropertiesOptional<T, K extends keyof T = never> = {
|
|
14
|
-
[P in keyof T as P extends K ? never : P]: T[P];
|
|
15
|
-
} & {
|
|
16
|
-
[P in K]?: T[P];
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Creates a type with explicitly defined required and optional properties
|
|
21
|
-
* Safer alternative to complex deep path manipulation
|
|
22
|
-
* @example
|
|
23
|
-
* interface Product { id: string; name: string; price: number; description?: string; }
|
|
24
|
-
* type BasicProduct = ConfigurableType<Product, 'id' | 'name', 'price' | 'description'>;
|
|
25
|
-
* Result: { id: string; name: string; price?: number; description?: string; }
|
|
26
|
-
*/
|
|
27
|
-
export type ConfigurableType<
|
|
28
|
-
T,
|
|
29
|
-
Required extends keyof T,
|
|
30
|
-
Optional extends keyof T = never
|
|
31
|
-
> = {
|
|
32
|
-
[P in Required]: T[P];
|
|
33
|
-
} & {
|
|
34
|
-
[P in Optional]?: T[P];
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Makes all properties optional except specified ones
|
|
39
|
-
* Safe version that doesn't rely on complex string manipulation
|
|
40
|
-
* @example
|
|
41
|
-
* interface Settings { id: string; config: { theme: string; }; data?: any; }
|
|
42
|
-
* type PartialSettings = DeepPartialExcept<Settings, 'id'>;
|
|
43
|
-
* Result: { id: string; config?: { theme?: string; }; data?: any; }
|
|
44
|
-
*/
|
|
45
|
-
export type DeepPartialExcept<T, K extends keyof T> = {
|
|
46
|
-
[P in K]: T[P];
|
|
47
|
-
} & {
|
|
48
|
-
[P in Exclude<keyof T, K>]?: T[P] extends object
|
|
49
|
-
? DeepPartialExcept<T[P], keyof T[P]>
|
|
50
|
-
: T[P];
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Type builder utilities for more explicit type construction
|
|
55
|
-
* Uses stable type system features
|
|
56
|
-
*/
|
|
57
|
-
export type RequiredProps<T, K extends keyof T> = {
|
|
58
|
-
[P in K]: T[P];
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export type OptionalProps<T, K extends keyof T> = {
|
|
62
|
-
[P in K]?: T[P];
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Type builder for creating types with explicit required/optional properties
|
|
67
|
-
* @example
|
|
68
|
-
* interface User { id: string; name: string; email: string; profile?: any; }
|
|
69
|
-
*
|
|
70
|
-
* const userType = createTypeBuilder<User>()
|
|
71
|
-
* .required(['id', 'email'])
|
|
72
|
-
* .optional(['name', 'profile']);
|
|
73
|
-
*
|
|
74
|
-
* type PartialUser = typeof userType;
|
|
75
|
-
*/
|
|
76
|
-
export interface TypeBuilder<T> {
|
|
77
|
-
required<K extends keyof T>(keys: K[]): RequiredProps<T, K> & TypeBuilder<T>;
|
|
78
|
-
optional<K extends keyof T>(keys: K[]): OptionalProps<T, K> & TypeBuilder<T>;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export const createTypeBuilder = <T>(): TypeBuilder<T> => {
|
|
82
|
-
return {
|
|
83
|
-
required: <K extends keyof T>(keys: K[]) => createTypeBuilder<T>(),
|
|
84
|
-
optional: <K extends keyof T>(keys: K[]) => createTypeBuilder<T>(),
|
|
85
|
-
} as TypeBuilder<T>;
|
|
86
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Core type utilities for flexible type creation and manipulation
|
|
3
|
+
* Minimum TypeScript Version: 4.5
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Makes specified properties optional while keeping others required
|
|
8
|
+
* @example
|
|
9
|
+
* interface User { id: string; name: string; email: string; }
|
|
10
|
+
* type PartialUser = MakePropertiesOptional<User, 'name' | 'email'>;
|
|
11
|
+
* Result: { id: string; name?: string; email?: string; }
|
|
12
|
+
*/
|
|
13
|
+
export type MakePropertiesOptional<T, K extends keyof T = never> = {
|
|
14
|
+
[P in keyof T as P extends K ? never : P]: T[P];
|
|
15
|
+
} & {
|
|
16
|
+
[P in K]?: T[P];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Creates a type with explicitly defined required and optional properties
|
|
21
|
+
* Safer alternative to complex deep path manipulation
|
|
22
|
+
* @example
|
|
23
|
+
* interface Product { id: string; name: string; price: number; description?: string; }
|
|
24
|
+
* type BasicProduct = ConfigurableType<Product, 'id' | 'name', 'price' | 'description'>;
|
|
25
|
+
* Result: { id: string; name: string; price?: number; description?: string; }
|
|
26
|
+
*/
|
|
27
|
+
export type ConfigurableType<
|
|
28
|
+
T,
|
|
29
|
+
Required extends keyof T,
|
|
30
|
+
Optional extends keyof T = never
|
|
31
|
+
> = {
|
|
32
|
+
[P in Required]: T[P];
|
|
33
|
+
} & {
|
|
34
|
+
[P in Optional]?: T[P];
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Makes all properties optional except specified ones
|
|
39
|
+
* Safe version that doesn't rely on complex string manipulation
|
|
40
|
+
* @example
|
|
41
|
+
* interface Settings { id: string; config: { theme: string; }; data?: any; }
|
|
42
|
+
* type PartialSettings = DeepPartialExcept<Settings, 'id'>;
|
|
43
|
+
* Result: { id: string; config?: { theme?: string; }; data?: any; }
|
|
44
|
+
*/
|
|
45
|
+
export type DeepPartialExcept<T, K extends keyof T> = {
|
|
46
|
+
[P in K]: T[P];
|
|
47
|
+
} & {
|
|
48
|
+
[P in Exclude<keyof T, K>]?: T[P] extends object
|
|
49
|
+
? DeepPartialExcept<T[P], keyof T[P]>
|
|
50
|
+
: T[P];
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Type builder utilities for more explicit type construction
|
|
55
|
+
* Uses stable type system features
|
|
56
|
+
*/
|
|
57
|
+
export type RequiredProps<T, K extends keyof T> = {
|
|
58
|
+
[P in K]: T[P];
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type OptionalProps<T, K extends keyof T> = {
|
|
62
|
+
[P in K]?: T[P];
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Type builder for creating types with explicit required/optional properties
|
|
67
|
+
* @example
|
|
68
|
+
* interface User { id: string; name: string; email: string; profile?: any; }
|
|
69
|
+
*
|
|
70
|
+
* const userType = createTypeBuilder<User>()
|
|
71
|
+
* .required(['id', 'email'])
|
|
72
|
+
* .optional(['name', 'profile']);
|
|
73
|
+
*
|
|
74
|
+
* type PartialUser = typeof userType;
|
|
75
|
+
*/
|
|
76
|
+
export interface TypeBuilder<T> {
|
|
77
|
+
required<K extends keyof T>(keys: K[]): RequiredProps<T, K> & TypeBuilder<T>;
|
|
78
|
+
optional<K extends keyof T>(keys: K[]): OptionalProps<T, K> & TypeBuilder<T>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export const createTypeBuilder = <T>(): TypeBuilder<T> => {
|
|
82
|
+
return {
|
|
83
|
+
required: <K extends keyof T>(keys: K[]) => createTypeBuilder<T>(),
|
|
84
|
+
optional: <K extends keyof T>(keys: K[]) => createTypeBuilder<T>(),
|
|
85
|
+
} as TypeBuilder<T>;
|
|
86
|
+
};
|
package/tsconfig.cjs.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"declarationDir": "./dist/types",
|
|
4
|
-
"rootDir": "./src",
|
|
5
|
-
"outDir": "./dist/cjs",
|
|
6
|
-
"baseUrl": "."
|
|
7
|
-
},
|
|
8
|
-
"extends": "../../tsconfig.cjs.json",
|
|
9
|
-
"include": ["src/"],
|
|
10
|
-
"exclude": ["node_modules/*"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declarationDir": "./dist/types",
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"outDir": "./dist/cjs",
|
|
6
|
+
"baseUrl": "."
|
|
7
|
+
},
|
|
8
|
+
"extends": "../../tsconfig.cjs.json",
|
|
9
|
+
"include": ["src/"],
|
|
10
|
+
"exclude": ["node_modules/*"]
|
|
11
11
|
}
|
package/tsconfig.es.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
|
|
4
|
-
"declarationDir": "./dist/types",
|
|
5
|
-
"rootDir": "./src",
|
|
6
|
-
"outDir": "./dist/es",
|
|
7
|
-
"baseUrl": "."
|
|
8
|
-
},
|
|
9
|
-
"extends": "../../tsconfig.es.json",
|
|
10
|
-
"include": ["src/"],
|
|
11
|
-
"exclude": ["node_modules/*"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
|
|
4
|
+
"declarationDir": "./dist/types",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./dist/es",
|
|
7
|
+
"baseUrl": "."
|
|
8
|
+
},
|
|
9
|
+
"extends": "../../tsconfig.es.json",
|
|
10
|
+
"include": ["src/"],
|
|
11
|
+
"exclude": ["node_modules/*"]
|
|
12
12
|
}
|