@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,3 +1,3 @@
|
|
|
1
|
-
export interface BaconIOTPermsRequestPayload {
|
|
2
|
-
identityId: string;
|
|
3
|
-
}
|
|
1
|
+
export interface BaconIOTPermsRequestPayload {
|
|
2
|
+
identityId: string;
|
|
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;
|
|
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;
|
|
8
|
+
}
|
|
@@ -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;
|
|
8
|
-
}
|
|
1
|
+
export interface IOIDCIdentity {
|
|
2
|
+
userId: string;
|
|
3
|
+
providerName: string;
|
|
4
|
+
providerType: string;
|
|
5
|
+
issuer: string | undefined;
|
|
6
|
+
primary: boolean;
|
|
7
|
+
dateCreated: number;
|
|
8
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { IOIDCAddressClaim } from "./i-oidc-address-claim";
|
|
2
|
-
export interface IOIDCProfile {
|
|
3
|
-
sub: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
email: string;
|
|
6
|
-
phone_number?: string;
|
|
7
|
-
given_name?: string;
|
|
8
|
-
family_name?: string;
|
|
9
|
-
middle_name?: string;
|
|
10
|
-
nickname?: string;
|
|
11
|
-
preferred_username?: string;
|
|
12
|
-
profile?: string;
|
|
13
|
-
picture?: string;
|
|
14
|
-
website?: string;
|
|
15
|
-
email_verified?: boolean;
|
|
16
|
-
gender?: string;
|
|
17
|
-
birthdate?: string;
|
|
18
|
-
zoneinfo?: string;
|
|
19
|
-
locale?: string;
|
|
20
|
-
phone_number_verified?: boolean;
|
|
21
|
-
address?: IOIDCAddressClaim;
|
|
22
|
-
userPoolId?: string;
|
|
23
|
-
region?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Cognito's PreAuthentication_Authentication event
|
|
26
|
-
* includes the "identities" property as a string.
|
|
27
|
-
* The caller must parse this value before accessing the contents
|
|
28
|
-
* in a strongly typed manner.
|
|
29
|
-
*
|
|
30
|
-
* We can parse this into an object implementing IOIDCIdentity
|
|
31
|
-
*/
|
|
32
|
-
identities?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Cognito's PostConfirmation_ConfirmSignUp event
|
|
35
|
-
* includes the cognito:user_status property as a string.
|
|
36
|
-
* This property will contain one of the following values:
|
|
37
|
-
* EXTERNAL_PROVIDER if the user has authenticated with an external IdP
|
|
38
|
-
* CONFIRMED if the user has not authenticated with an external IdP
|
|
39
|
-
*/
|
|
40
|
-
'cognito:user_status'?: string;
|
|
41
|
-
}
|
|
1
|
+
import { IOIDCAddressClaim } from "./i-oidc-address-claim";
|
|
2
|
+
export interface IOIDCProfile {
|
|
3
|
+
sub: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
email: string;
|
|
6
|
+
phone_number?: string;
|
|
7
|
+
given_name?: string;
|
|
8
|
+
family_name?: string;
|
|
9
|
+
middle_name?: string;
|
|
10
|
+
nickname?: string;
|
|
11
|
+
preferred_username?: string;
|
|
12
|
+
profile?: string;
|
|
13
|
+
picture?: string;
|
|
14
|
+
website?: string;
|
|
15
|
+
email_verified?: boolean;
|
|
16
|
+
gender?: string;
|
|
17
|
+
birthdate?: string;
|
|
18
|
+
zoneinfo?: string;
|
|
19
|
+
locale?: string;
|
|
20
|
+
phone_number_verified?: boolean;
|
|
21
|
+
address?: IOIDCAddressClaim;
|
|
22
|
+
userPoolId?: string;
|
|
23
|
+
region?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Cognito's PreAuthentication_Authentication event
|
|
26
|
+
* includes the "identities" property as a string.
|
|
27
|
+
* The caller must parse this value before accessing the contents
|
|
28
|
+
* in a strongly typed manner.
|
|
29
|
+
*
|
|
30
|
+
* We can parse this into an object implementing IOIDCIdentity
|
|
31
|
+
*/
|
|
32
|
+
identities?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Cognito's PostConfirmation_ConfirmSignUp event
|
|
35
|
+
* includes the cognito:user_status property as a string.
|
|
36
|
+
* This property will contain one of the following values:
|
|
37
|
+
* EXTERNAL_PROVIDER if the user has authenticated with an external IdP
|
|
38
|
+
* CONFIRMED if the user has not authenticated with an external IdP
|
|
39
|
+
*/
|
|
40
|
+
'cognito:user_status'?: string;
|
|
41
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface ITokenTime {
|
|
2
|
-
accessTokenExpiryDateTime: number;
|
|
3
|
-
refreshTokenExpiryDateTime: number;
|
|
4
|
-
}
|
|
1
|
+
export interface ITokenTime {
|
|
2
|
+
accessTokenExpiryDateTime: number;
|
|
3
|
+
refreshTokenExpiryDateTime: number;
|
|
4
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IOIDCProfile } from "./i-oidc-profile";
|
|
2
|
-
export interface IUser {
|
|
3
|
-
id: string;
|
|
4
|
-
username: string;
|
|
5
|
-
attributes: IOIDCProfile;
|
|
6
|
-
}
|
|
1
|
+
import { IOIDCProfile } from "./i-oidc-profile";
|
|
2
|
+
export interface IUser {
|
|
3
|
+
id: string;
|
|
4
|
+
username: string;
|
|
5
|
+
attributes: IOIDCProfile;
|
|
6
|
+
}
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import { BaconRoutes } from "../enums";
|
|
2
|
-
declare const BaconRouteToMicroserviceMap: {
|
|
3
|
-
[routeKey in BaconRoutes]?: string;
|
|
4
|
-
};
|
|
5
|
-
export { BaconRouteToMicroserviceMap };
|
|
1
|
+
import { BaconRoutes } from "../enums";
|
|
2
|
+
declare const BaconRouteToMicroserviceMap: {
|
|
3
|
+
[routeKey in BaconRoutes]?: string;
|
|
4
|
+
};
|
|
5
|
+
export { BaconRouteToMicroserviceMap };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './bacon-route-to-microservice';
|
|
1
|
+
export * from './bacon-route-to-microservice';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
-
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
-
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
-
export declare class Bacon3PClientFactory extends BaconBaseActorFactory {
|
|
5
|
-
static createActor(profile: IOIDCProfile): BaconBaseActor;
|
|
6
|
-
}
|
|
1
|
+
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
+
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
+
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
+
export declare class Bacon3PClientFactory extends BaconBaseActorFactory {
|
|
5
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor;
|
|
6
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaconBaseLoggerEvent } from "../base/BaconBaseLoggerEvt";
|
|
2
|
-
import { BaconBaseLoggerEventFactory } from "../base/BaconBaseLoggerEvtFact";
|
|
3
|
-
export declare class BaconAccessLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
4
|
-
static createLoggerEvent(): BaconBaseLoggerEvent;
|
|
5
|
-
}
|
|
1
|
+
import { BaconBaseLoggerEvent } from "../base/BaconBaseLoggerEvt";
|
|
2
|
+
import { BaconBaseLoggerEventFactory } from "../base/BaconBaseLoggerEvtFact";
|
|
3
|
+
export declare class BaconAccessLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
4
|
+
static createLoggerEvent(): BaconBaseLoggerEvent;
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaconBaseLoggerEvent } from "../base/BaconBaseLoggerEvt";
|
|
2
|
-
import { BaconBaseLoggerEventFactory } from "../base/BaconBaseLoggerEvtFact";
|
|
3
|
-
export declare class BaconGenericLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
4
|
-
static createLoggerEvent(): BaconBaseLoggerEvent;
|
|
5
|
-
}
|
|
1
|
+
import { BaconBaseLoggerEvent } from "../base/BaconBaseLoggerEvt";
|
|
2
|
+
import { BaconBaseLoggerEventFactory } from "../base/BaconBaseLoggerEvtFact";
|
|
3
|
+
export declare class BaconGenericLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
4
|
+
static createLoggerEvent(): BaconBaseLoggerEvent;
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaconBaseLoggerEvent } from "../base";
|
|
2
|
-
import { BaconBaseLoggerEventFactory } from "../base";
|
|
3
|
-
export declare class BaconPermissionsLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
4
|
-
static createLoggerEvent(): BaconBaseLoggerEvent;
|
|
5
|
-
}
|
|
1
|
+
import { BaconBaseLoggerEvent } from "../base";
|
|
2
|
+
import { BaconBaseLoggerEventFactory } from "../base";
|
|
3
|
+
export declare class BaconPermissionsLoggerEventFactory extends BaconBaseLoggerEventFactory {
|
|
4
|
+
static createLoggerEvent(): BaconBaseLoggerEvent;
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
-
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
-
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
-
export declare class BaconSPFactory extends BaconBaseActorFactory {
|
|
5
|
-
static createActor(profile: IOIDCProfile): BaconBaseActor;
|
|
6
|
-
}
|
|
1
|
+
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
+
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
+
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
+
export declare class BaconSPFactory extends BaconBaseActorFactory {
|
|
5
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
-
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
-
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
-
export declare class BaconSuperAdminFactory extends BaconBaseActorFactory {
|
|
5
|
-
static createActor(profile: IOIDCProfile): BaconBaseActor;
|
|
6
|
-
}
|
|
1
|
+
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
|
+
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
|
+
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
+
export declare class BaconSuperAdminFactory extends BaconBaseActorFactory {
|
|
5
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './Bacon3PClientFactory';
|
|
2
|
-
export * from './BaconAccessLoggerEvtFactory';
|
|
3
|
-
export * from './BaconGenericLoggerEvtFactory';
|
|
4
|
-
export * from './BaconSPFactory';
|
|
5
|
-
export * from './BaconSuperAdminFactory';
|
|
6
|
-
export * from './BaconPermissionsLoggerEventFactory';
|
|
1
|
+
export * from './Bacon3PClientFactory';
|
|
2
|
+
export * from './BaconAccessLoggerEvtFactory';
|
|
3
|
+
export * from './BaconGenericLoggerEvtFactory';
|
|
4
|
+
export * from './BaconSPFactory';
|
|
5
|
+
export * from './BaconSuperAdminFactory';
|
|
6
|
+
export * from './BaconPermissionsLoggerEventFactory';
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core type utilities for flexible type creation and manipulation
|
|
3
|
-
* Minimum TypeScript Version: 4.5
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Makes specified properties optional while keeping others required
|
|
7
|
-
* @example
|
|
8
|
-
* interface User { id: string; name: string; email: string; }
|
|
9
|
-
* type PartialUser = MakePropertiesOptional<User, 'name' | 'email'>;
|
|
10
|
-
* Result: { id: string; name?: string; email?: string; }
|
|
11
|
-
*/
|
|
12
|
-
export type MakePropertiesOptional<T, K extends keyof T = never> = {
|
|
13
|
-
[P in keyof T as P extends K ? never : P]: T[P];
|
|
14
|
-
} & {
|
|
15
|
-
[P in K]?: T[P];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Creates a type with explicitly defined required and optional properties
|
|
19
|
-
* Safer alternative to complex deep path manipulation
|
|
20
|
-
* @example
|
|
21
|
-
* interface Product { id: string; name: string; price: number; description?: string; }
|
|
22
|
-
* type BasicProduct = ConfigurableType<Product, 'id' | 'name', 'price' | 'description'>;
|
|
23
|
-
* Result: { id: string; name: string; price?: number; description?: string; }
|
|
24
|
-
*/
|
|
25
|
-
export type ConfigurableType<T, Required extends keyof T, Optional extends keyof T = never> = {
|
|
26
|
-
[P in Required]: T[P];
|
|
27
|
-
} & {
|
|
28
|
-
[P in Optional]?: T[P];
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Makes all properties optional except specified ones
|
|
32
|
-
* Safe version that doesn't rely on complex string manipulation
|
|
33
|
-
* @example
|
|
34
|
-
* interface Settings { id: string; config: { theme: string; }; data?: any; }
|
|
35
|
-
* type PartialSettings = DeepPartialExcept<Settings, 'id'>;
|
|
36
|
-
* Result: { id: string; config?: { theme?: string; }; data?: any; }
|
|
37
|
-
*/
|
|
38
|
-
export type DeepPartialExcept<T, K extends keyof T> = {
|
|
39
|
-
[P in K]: T[P];
|
|
40
|
-
} & {
|
|
41
|
-
[P in Exclude<keyof T, K>]?: T[P] extends object ? DeepPartialExcept<T[P], keyof T[P]> : T[P];
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Type builder utilities for more explicit type construction
|
|
45
|
-
* Uses stable type system features
|
|
46
|
-
*/
|
|
47
|
-
export type RequiredProps<T, K extends keyof T> = {
|
|
48
|
-
[P in K]: T[P];
|
|
49
|
-
};
|
|
50
|
-
export type OptionalProps<T, K extends keyof T> = {
|
|
51
|
-
[P in K]?: T[P];
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Type builder for creating types with explicit required/optional properties
|
|
55
|
-
* @example
|
|
56
|
-
* interface User { id: string; name: string; email: string; profile?: any; }
|
|
57
|
-
*
|
|
58
|
-
* const userType = createTypeBuilder<User>()
|
|
59
|
-
* .required(['id', 'email'])
|
|
60
|
-
* .optional(['name', 'profile']);
|
|
61
|
-
*
|
|
62
|
-
* type PartialUser = typeof userType;
|
|
63
|
-
*/
|
|
64
|
-
export interface TypeBuilder<T> {
|
|
65
|
-
required<K extends keyof T>(keys: K[]): RequiredProps<T, K> & TypeBuilder<T>;
|
|
66
|
-
optional<K extends keyof T>(keys: K[]): OptionalProps<T, K> & TypeBuilder<T>;
|
|
67
|
-
}
|
|
68
|
-
export declare const createTypeBuilder: <T>() => TypeBuilder<T>;
|
|
1
|
+
/**
|
|
2
|
+
* Core type utilities for flexible type creation and manipulation
|
|
3
|
+
* Minimum TypeScript Version: 4.5
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Makes specified properties optional while keeping others required
|
|
7
|
+
* @example
|
|
8
|
+
* interface User { id: string; name: string; email: string; }
|
|
9
|
+
* type PartialUser = MakePropertiesOptional<User, 'name' | 'email'>;
|
|
10
|
+
* Result: { id: string; name?: string; email?: string; }
|
|
11
|
+
*/
|
|
12
|
+
export type MakePropertiesOptional<T, K extends keyof T = never> = {
|
|
13
|
+
[P in keyof T as P extends K ? never : P]: T[P];
|
|
14
|
+
} & {
|
|
15
|
+
[P in K]?: T[P];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Creates a type with explicitly defined required and optional properties
|
|
19
|
+
* Safer alternative to complex deep path manipulation
|
|
20
|
+
* @example
|
|
21
|
+
* interface Product { id: string; name: string; price: number; description?: string; }
|
|
22
|
+
* type BasicProduct = ConfigurableType<Product, 'id' | 'name', 'price' | 'description'>;
|
|
23
|
+
* Result: { id: string; name: string; price?: number; description?: string; }
|
|
24
|
+
*/
|
|
25
|
+
export type ConfigurableType<T, Required extends keyof T, Optional extends keyof T = never> = {
|
|
26
|
+
[P in Required]: T[P];
|
|
27
|
+
} & {
|
|
28
|
+
[P in Optional]?: T[P];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Makes all properties optional except specified ones
|
|
32
|
+
* Safe version that doesn't rely on complex string manipulation
|
|
33
|
+
* @example
|
|
34
|
+
* interface Settings { id: string; config: { theme: string; }; data?: any; }
|
|
35
|
+
* type PartialSettings = DeepPartialExcept<Settings, 'id'>;
|
|
36
|
+
* Result: { id: string; config?: { theme?: string; }; data?: any; }
|
|
37
|
+
*/
|
|
38
|
+
export type DeepPartialExcept<T, K extends keyof T> = {
|
|
39
|
+
[P in K]: T[P];
|
|
40
|
+
} & {
|
|
41
|
+
[P in Exclude<keyof T, K>]?: T[P] extends object ? DeepPartialExcept<T[P], keyof T[P]> : T[P];
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Type builder utilities for more explicit type construction
|
|
45
|
+
* Uses stable type system features
|
|
46
|
+
*/
|
|
47
|
+
export type RequiredProps<T, K extends keyof T> = {
|
|
48
|
+
[P in K]: T[P];
|
|
49
|
+
};
|
|
50
|
+
export type OptionalProps<T, K extends keyof T> = {
|
|
51
|
+
[P in K]?: T[P];
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Type builder for creating types with explicit required/optional properties
|
|
55
|
+
* @example
|
|
56
|
+
* interface User { id: string; name: string; email: string; profile?: any; }
|
|
57
|
+
*
|
|
58
|
+
* const userType = createTypeBuilder<User>()
|
|
59
|
+
* .required(['id', 'email'])
|
|
60
|
+
* .optional(['name', 'profile']);
|
|
61
|
+
*
|
|
62
|
+
* type PartialUser = typeof userType;
|
|
63
|
+
*/
|
|
64
|
+
export interface TypeBuilder<T> {
|
|
65
|
+
required<K extends keyof T>(keys: K[]): RequiredProps<T, K> & TypeBuilder<T>;
|
|
66
|
+
optional<K extends keyof T>(keys: K[]): OptionalProps<T, K> & TypeBuilder<T>;
|
|
67
|
+
}
|
|
68
|
+
export declare const createTypeBuilder: <T>() => TypeBuilder<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './TypeUtils';
|
|
1
|
+
export * from './TypeUtils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonoustech/bacon-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
6
6
|
"build:es": "tsc -p tsconfig.es.json",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"bugs": {
|
|
40
40
|
"url": "https://github.com/AdonousTech/bacon-core/issues"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0d6214f54623568a0a08fb67625c432639a40a87"
|
|
43
43
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { GetObjectCommandInput, PutObjectCommandInput } from "@aws-sdk/client-s3";
|
|
2
|
-
import {
|
|
3
|
-
BaconAWSObjectRequestInstructions,
|
|
4
|
-
BaconObjectLayerKinds,
|
|
5
|
-
} from "../enums";
|
|
6
|
-
|
|
7
|
-
export abstract class BaconBaseAWSObjectStrategyEvt {
|
|
8
|
-
instruction: BaconAWSObjectRequestInstructions;
|
|
9
|
-
kind: BaconObjectLayerKinds;
|
|
10
|
-
inputCommand: GetObjectCommandInput | PutObjectCommandInput; // <continue expand as necessary>
|
|
11
|
-
|
|
12
|
-
constructor(
|
|
13
|
-
instruction: BaconAWSObjectRequestInstructions,
|
|
14
|
-
kind: BaconObjectLayerKinds,
|
|
15
|
-
inputCommand: GetObjectCommandInput | PutObjectCommandInput
|
|
16
|
-
) {
|
|
17
|
-
|
|
18
|
-
this.instruction = instruction;
|
|
19
|
-
this.kind = kind;
|
|
20
|
-
this.inputCommand = inputCommand;
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
import { GetObjectCommandInput, PutObjectCommandInput } from "@aws-sdk/client-s3";
|
|
2
|
+
import {
|
|
3
|
+
BaconAWSObjectRequestInstructions,
|
|
4
|
+
BaconObjectLayerKinds,
|
|
5
|
+
} from "../enums";
|
|
6
|
+
|
|
7
|
+
export abstract class BaconBaseAWSObjectStrategyEvt {
|
|
8
|
+
instruction: BaconAWSObjectRequestInstructions;
|
|
9
|
+
kind: BaconObjectLayerKinds;
|
|
10
|
+
inputCommand: GetObjectCommandInput | PutObjectCommandInput; // <continue expand as necessary>
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
instruction: BaconAWSObjectRequestInstructions,
|
|
14
|
+
kind: BaconObjectLayerKinds,
|
|
15
|
+
inputCommand: GetObjectCommandInput | PutObjectCommandInput
|
|
16
|
+
) {
|
|
17
|
+
|
|
18
|
+
this.instruction = instruction;
|
|
19
|
+
this.kind = kind;
|
|
20
|
+
this.inputCommand = inputCommand;
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
2
|
-
|
|
3
|
-
export abstract class BaconBaseActor implements IOIDCProfile {
|
|
4
|
-
|
|
5
|
-
sub: string;
|
|
6
|
-
name: string | undefined;
|
|
7
|
-
email: string;
|
|
8
|
-
|
|
9
|
-
constructor(profile: IOIDCProfile) {
|
|
10
|
-
|
|
11
|
-
this.sub = profile.sub;
|
|
12
|
-
this.name = profile.name;
|
|
13
|
-
this.email = profile.email;
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
2
|
+
|
|
3
|
+
export abstract class BaconBaseActor implements IOIDCProfile {
|
|
4
|
+
|
|
5
|
+
sub: string;
|
|
6
|
+
name: string | undefined;
|
|
7
|
+
email: string;
|
|
8
|
+
|
|
9
|
+
constructor(profile: IOIDCProfile) {
|
|
10
|
+
|
|
11
|
+
this.sub = profile.sub;
|
|
12
|
+
this.name = profile.name;
|
|
13
|
+
this.email = profile.email;
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
18
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { BaconSuperAdmin } from "../concrete/BaconSuperAdmin";
|
|
2
|
-
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
3
|
-
import { BaconBaseActor } from "./BaconBaseActor";
|
|
4
|
-
|
|
5
|
-
export abstract class BaconBaseActorFactory {
|
|
6
|
-
constructor() {}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Override for specific actor type
|
|
10
|
-
* Returns non-functional BaconSuperAdmin by default.
|
|
11
|
-
* @returns {BaconBaseActor}
|
|
12
|
-
* @memberof BaconBaseActorFactory
|
|
13
|
-
*/
|
|
14
|
-
createActor(): BaconBaseActor {
|
|
15
|
-
|
|
16
|
-
// This is just a seed profile. The goal is to override this method and pass in
|
|
17
|
-
// an appropriate profile object to the constructor of the derived class.
|
|
18
|
-
const defaultProfile: IOIDCProfile = {
|
|
19
|
-
sub: '',
|
|
20
|
-
name: '',
|
|
21
|
-
email: '',
|
|
22
|
-
phone_number: ''
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const bsa: BaconSuperAdmin = new BaconSuperAdmin(defaultProfile);
|
|
26
|
-
return bsa;
|
|
27
|
-
}
|
|
1
|
+
import { BaconSuperAdmin } from "../concrete/BaconSuperAdmin";
|
|
2
|
+
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
3
|
+
import { BaconBaseActor } from "./BaconBaseActor";
|
|
4
|
+
|
|
5
|
+
export abstract class BaconBaseActorFactory {
|
|
6
|
+
constructor() {}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Override for specific actor type
|
|
10
|
+
* Returns non-functional BaconSuperAdmin by default.
|
|
11
|
+
* @returns {BaconBaseActor}
|
|
12
|
+
* @memberof BaconBaseActorFactory
|
|
13
|
+
*/
|
|
14
|
+
createActor(): BaconBaseActor {
|
|
15
|
+
|
|
16
|
+
// This is just a seed profile. The goal is to override this method and pass in
|
|
17
|
+
// an appropriate profile object to the constructor of the derived class.
|
|
18
|
+
const defaultProfile: IOIDCProfile = {
|
|
19
|
+
sub: '',
|
|
20
|
+
name: '',
|
|
21
|
+
email: '',
|
|
22
|
+
phone_number: ''
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const bsa: BaconSuperAdmin = new BaconSuperAdmin(defaultProfile);
|
|
26
|
+
return bsa;
|
|
27
|
+
}
|
|
28
28
|
}
|