@xxmachina/common 19.0.0-preview.8 → 19.1.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/_shared/auth/index.d.ts +8 -1
- package/_shared/auth/passports/anonymous/index.d.ts +8 -1
- package/_shared/auth/passports/firebase/index.d.ts +19 -2
- package/_shared/auth/passports/internal/index.d.ts +17 -1
- package/_shared/auth/passports/msal/index.d.ts +26 -2
- package/_shared/meta/index.d.ts +8 -0
- package/_shared/meta/redis/index.d.ts +39 -2
- package/auth/index.d.ts +16 -1
- package/azure-auth/index.d.ts +41 -2
- package/domain/builder/index.d.ts +81 -0
- package/domain/builder/screen-item/index.d.ts +7 -1
- package/domain/index.d.ts +2 -1
- package/domain/models/index.d.ts +377 -13
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs +20 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs +41 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs +34 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs +49 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth.mjs +25 -0
- package/fesm2022/xxmachina-common-_shared-auth.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs +99 -0
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-meta.mjs +26 -0
- package/fesm2022/xxmachina-common-_shared-meta.mjs.map +1 -0
- package/fesm2022/xxmachina-common-auth.mjs +17 -0
- package/fesm2022/xxmachina-common-auth.mjs.map +1 -0
- package/fesm2022/xxmachina-common-azure-auth.mjs +160 -0
- package/fesm2022/xxmachina-common-azure-auth.mjs.map +1 -0
- package/{domain/builder/screen-item/screen-item.builder.js → fesm2022/xxmachina-common-domain-builder-screen-item.mjs} +10 -11
- package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-builder.mjs +494 -0
- package/fesm2022/xxmachina-common-domain-builder.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-models.mjs +842 -0
- package/fesm2022/xxmachina-common-domain-models.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain.mjs +7 -0
- package/fesm2022/xxmachina-common-domain.mjs.map +1 -0
- package/fesm2022/xxmachina-common-firebase-auth.mjs +36 -0
- package/fesm2022/xxmachina-common-firebase-auth.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-converters-google.mjs +39 -0
- package/fesm2022/xxmachina-common-infra-converters-google.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs +13 -0
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs +61 -0
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external-resend.mjs +10 -0
- package/fesm2022/xxmachina-common-infra-external-resend.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external.mjs +36 -0
- package/fesm2022/xxmachina-common-infra-external.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs +34 -0
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs +20 -0
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs +18 -0
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs +74 -0
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs +41 -0
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs +113 -0
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra.mjs +378 -0
- package/fesm2022/xxmachina-common-infra.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-domain-builders.mjs +79 -0
- package/fesm2022/xxmachina-common-invoice-domain-builders.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-domain-models.mjs +428 -0
- package/fesm2022/xxmachina-common-invoice-domain-models.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-domain-resolvers.mjs +41 -0
- package/fesm2022/xxmachina-common-invoice-domain-resolvers.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-domain.mjs +8 -0
- package/fesm2022/xxmachina-common-invoice-domain.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-usecase-contract.mjs +27 -0
- package/fesm2022/xxmachina-common-invoice-usecase-contract.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-usecase-invoice.mjs +191 -0
- package/fesm2022/xxmachina-common-invoice-usecase-invoice.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-usecase-order.mjs +36 -0
- package/fesm2022/xxmachina-common-invoice-usecase-order.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-usecase-partner.mjs +36 -0
- package/fesm2022/xxmachina-common-invoice-usecase-partner.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-graphql.mjs +60 -0
- package/fesm2022/xxmachina-common-services-graphql.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-query-config.mjs +44 -0
- package/fesm2022/xxmachina-common-services-query-config.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-query.mjs +65 -0
- package/fesm2022/xxmachina-common-services-query.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-speech.mjs +178 -0
- package/fesm2022/xxmachina-common-services-speech.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-transformer.mjs +27 -0
- package/fesm2022/xxmachina-common-services-transformer.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores-firestore.mjs +33 -0
- package/fesm2022/xxmachina-common-stores-firestore.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores-hasura.mjs +32 -0
- package/fesm2022/xxmachina-common-stores-hasura.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores-inmemory.mjs +102 -0
- package/fesm2022/xxmachina-common-stores-inmemory.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores.mjs +16 -0
- package/fesm2022/xxmachina-common-stores.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-assistant.mjs +67 -0
- package/fesm2022/xxmachina-common-usecase-assistant.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-database.mjs +95 -0
- package/fesm2022/xxmachina-common-usecase-database.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-graphql.mjs +51 -0
- package/fesm2022/xxmachina-common-usecase-graphql.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-link.mjs +26 -0
- package/fesm2022/xxmachina-common-usecase-link.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-project.mjs +35 -0
- package/fesm2022/xxmachina-common-usecase-project.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-spec.mjs +45 -0
- package/fesm2022/xxmachina-common-usecase-spec.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase.mjs +198 -0
- package/fesm2022/xxmachina-common-usecase.mjs.map +1 -0
- package/{utils/crypto.js → fesm2022/xxmachina-common-utils-crypto.mjs} +10 -12
- package/fesm2022/xxmachina-common-utils-crypto.mjs.map +1 -0
- package/{utils/extract-display-fields.js → fesm2022/xxmachina-common-utils.mjs} +7 -4
- package/fesm2022/xxmachina-common-utils.mjs.map +1 -0
- package/fesm2022/xxmachina-common.mjs +6 -0
- package/fesm2022/xxmachina-common.mjs.map +1 -0
- package/firebase-auth/index.d.ts +6 -0
- package/index.d.ts +1 -0
- package/infra/converters/google/index.d.ts +17 -0
- package/infra/external/data-connect/index.d.ts +7 -0
- package/infra/external/index.d.ts +24 -0
- package/infra/external/quick-js/index.d.ts +24 -0
- package/infra/external/resend/index.d.ts +16 -0
- package/infra/index.d.ts +218 -0
- package/infra/query/firestore/index.d.ts +20 -0
- package/infra/query/hasura/index.d.ts +9 -0
- package/infra/repository/dataconnect/index.d.ts +28 -0
- package/infra/repository/firestore/index.d.ts +42 -0
- package/infra/repository/hasura/index.d.ts +24 -0
- package/infra/repository/notion/index.d.ts +101 -0
- package/invoice/domain/builders/index.d.ts +31 -0
- package/invoice/domain/index.d.ts +3 -0
- package/invoice/domain/models/index.d.ts +78 -0
- package/{domain/resolvers/invoice.resolver.d.ts → invoice/domain/resolvers/index.d.ts} +6 -2
- package/invoice/usecase/contract/index.d.ts +14 -0
- package/invoice/usecase/invoice/index.d.ts +34 -0
- package/invoice/usecase/order/index.d.ts +16 -0
- package/invoice/usecase/partner/index.d.ts +16 -0
- package/package.json +238 -14
- package/services/graphql/index.d.ts +32 -0
- package/services/query/config/index.d.ts +18 -0
- package/services/query/index.d.ts +29 -0
- package/services/speech/index.d.ts +37 -0
- package/services/transformer/index.d.ts +14 -0
- package/stores/firestore/index.d.ts +17 -0
- package/stores/hasura/index.d.ts +17 -0
- package/stores/index.d.ts +22 -40
- package/stores/inmemory/index.d.ts +33 -0
- package/usecase/assistant/index.d.ts +18 -1
- package/usecase/database/index.d.ts +39 -1
- package/usecase/graphql/index.d.ts +17 -1
- package/usecase/index.d.ts +73 -1
- package/usecase/link/index.d.ts +13 -1
- package/usecase/project/index.d.ts +16 -1
- package/usecase/spec/index.d.ts +17 -1
- package/utils/crypto/index.d.ts +9 -0
- package/utils/index.d.ts +5 -1
- package/README.md +0 -11
- package/_shared/auth/auth.module.d.ts +0 -6
- package/_shared/auth/auth.module.js +0 -22
- package/_shared/auth/auth.module.js.map +0 -1
- package/_shared/auth/index.js +0 -5
- package/_shared/auth/index.js.map +0 -1
- package/_shared/auth/passports/anonymous/anonymous.strategy.d.ts +0 -6
- package/_shared/auth/passports/anonymous/anonymous.strategy.js +0 -19
- package/_shared/auth/passports/anonymous/anonymous.strategy.js.map +0 -1
- package/_shared/auth/passports/anonymous/index.js +0 -5
- package/_shared/auth/passports/anonymous/index.js.map +0 -1
- package/_shared/auth/passports/firebase/firebase.guard.d.ts +0 -6
- package/_shared/auth/passports/firebase/firebase.guard.js +0 -23
- package/_shared/auth/passports/firebase/firebase.guard.js.map +0 -1
- package/_shared/auth/passports/firebase/firebase.strategy.d.ts +0 -10
- package/_shared/auth/passports/firebase/firebase.strategy.js +0 -22
- package/_shared/auth/passports/firebase/firebase.strategy.js.map +0 -1
- package/_shared/auth/passports/firebase/index.js +0 -6
- package/_shared/auth/passports/firebase/index.js.map +0 -1
- package/_shared/auth/passports/internal/index.js +0 -5
- package/_shared/auth/passports/internal/index.js.map +0 -1
- package/_shared/auth/passports/internal/internal.strategy.d.ts +0 -14
- package/_shared/auth/passports/internal/internal.strategy.js +0 -33
- package/_shared/auth/passports/internal/internal.strategy.js.map +0 -1
- package/_shared/auth/passports/msal/index.js +0 -6
- package/_shared/auth/passports/msal/index.js.map +0 -1
- package/_shared/auth/passports/msal/msal.guard.d.ts +0 -4
- package/_shared/auth/passports/msal/msal.guard.js +0 -13
- package/_shared/auth/passports/msal/msal.guard.js.map +0 -1
- package/_shared/auth/passports/msal/msal.strategy.d.ts +0 -17
- package/_shared/auth/passports/msal/msal.strategy.js +0 -43
- package/_shared/auth/passports/msal/msal.strategy.js.map +0 -1
- package/_shared/meta/decorators.d.ts +0 -4
- package/_shared/meta/decorators.js +0 -25
- package/_shared/meta/decorators.js.map +0 -1
- package/_shared/meta/redis/index.js +0 -6
- package/_shared/meta/redis/index.js.map +0 -1
- package/_shared/meta/redis/redis.config.d.ts +0 -9
- package/_shared/meta/redis/redis.config.js +0 -10
- package/_shared/meta/redis/redis.config.js.map +0 -1
- package/_shared/meta/redis/redis.repository.d.ts +0 -23
- package/_shared/meta/redis/redis.repository.js +0 -108
- package/_shared/meta/redis/redis.repository.js.map +0 -1
- package/auth/auth.service.d.ts +0 -10
- package/auth/auth.service.js +0 -12
- package/auth/auth.service.js.map +0 -1
- package/auth/index.js +0 -5
- package/auth/index.js.map +0 -1
- package/azure-auth/auth.di.d.ts +0 -4
- package/azure-auth/auth.di.js +0 -56
- package/azure-auth/auth.di.js.map +0 -1
- package/azure-auth/auth.service.d.ts +0 -32
- package/azure-auth/auth.service.js +0 -115
- package/azure-auth/auth.service.js.map +0 -1
- package/azure-auth/index.js +0 -6
- package/azure-auth/index.js.map +0 -1
- package/domain/builder/command/command.builder.d.ts +0 -5
- package/domain/builder/command/command.builder.js +0 -30
- package/domain/builder/command/command.builder.js.map +0 -1
- package/domain/builder/command/index.d.ts +0 -1
- package/domain/builder/command/index.js +0 -5
- package/domain/builder/command/index.js.map +0 -1
- package/domain/builder/command-action/command-action.builder.d.ts +0 -40
- package/domain/builder/command-action/command-action.builder.js +0 -139
- package/domain/builder/command-action/command-action.builder.js.map +0 -1
- package/domain/builder/command-action/index.d.ts +0 -1
- package/domain/builder/command-action/index.js +0 -5
- package/domain/builder/command-action/index.js.map +0 -1
- package/domain/builder/er/er.builder.d.ts +0 -19
- package/domain/builder/er/er.builder.js +0 -112
- package/domain/builder/er/er.builder.js.map +0 -1
- package/domain/builder/er/index.d.ts +0 -1
- package/domain/builder/er/index.js +0 -5
- package/domain/builder/er/index.js.map +0 -1
- package/domain/builder/screen-item/index.js +0 -5
- package/domain/builder/screen-item/index.js.map +0 -1
- package/domain/builder/screen-item/screen-item.builder.d.ts +0 -5
- package/domain/builder/screen-item/screen-item.builder.js.map +0 -1
- package/domain/index.js +0 -5
- package/domain/index.js.map +0 -1
- package/domain/invoice/builders/email/email.builder.d.ts +0 -18
- package/domain/invoice/builders/email/email.builder.js +0 -29
- package/domain/invoice/builders/email/email.builder.js.map +0 -1
- package/domain/invoice/builders/email/index.d.ts +0 -1
- package/domain/invoice/builders/email/index.js +0 -5
- package/domain/invoice/builders/email/index.js.map +0 -1
- package/domain/invoice/builders/message/index.d.ts +0 -1
- package/domain/invoice/builders/message/index.js +0 -5
- package/domain/invoice/builders/message/index.js.map +0 -1
- package/domain/invoice/builders/message/message.builder.d.ts +0 -6
- package/domain/invoice/builders/message/message.builder.js +0 -43
- package/domain/invoice/builders/message/message.builder.js.map +0 -1
- package/domain/invoice/builders/title/index.d.ts +0 -1
- package/domain/invoice/builders/title/index.js +0 -5
- package/domain/invoice/builders/title/index.js.map +0 -1
- package/domain/invoice/builders/title/title.builder.d.ts +0 -4
- package/domain/invoice/builders/title/title.builder.js +0 -11
- package/domain/invoice/builders/title/title.builder.js.map +0 -1
- package/domain/invoice/models/backoffice/contract.d.ts +0 -10
- package/domain/invoice/models/backoffice/contract.js +0 -50
- package/domain/invoice/models/backoffice/contract.js.map +0 -1
- package/domain/invoice/models/backoffice/index.d.ts +0 -5
- package/domain/invoice/models/backoffice/index.js +0 -9
- package/domain/invoice/models/backoffice/index.js.map +0 -1
- package/domain/invoice/models/backoffice/invoice-mail.d.ts +0 -8
- package/domain/invoice/models/backoffice/invoice-mail.js +0 -7
- package/domain/invoice/models/backoffice/invoice-mail.js.map +0 -1
- package/domain/invoice/models/backoffice/invoice.d.ts +0 -19
- package/domain/invoice/models/backoffice/invoice.js +0 -91
- package/domain/invoice/models/backoffice/invoice.js.map +0 -1
- package/domain/invoice/models/backoffice/order.d.ts +0 -26
- package/domain/invoice/models/backoffice/order.js +0 -157
- package/domain/invoice/models/backoffice/order.js.map +0 -1
- package/domain/invoice/models/backoffice/partner.d.ts +0 -17
- package/domain/invoice/models/backoffice/partner.js +0 -96
- package/domain/invoice/models/backoffice/partner.js.map +0 -1
- package/domain/invoice/models/index.d.ts +0 -1
- package/domain/invoice/models/index.js +0 -5
- package/domain/invoice/models/index.js.map +0 -1
- package/domain/models/agent/assistant.d.ts +0 -9
- package/domain/models/agent/assistant.js +0 -31
- package/domain/models/agent/assistant.js.map +0 -1
- package/domain/models/agent/index.d.ts +0 -1
- package/domain/models/agent/index.js +0 -5
- package/domain/models/agent/index.js.map +0 -1
- package/domain/models/bookmarklet/bookmarklet.d.ts +0 -9
- package/domain/models/bookmarklet/bookmarklet.js +0 -34
- package/domain/models/bookmarklet/bookmarklet.js.map +0 -1
- package/domain/models/bookmarklet/index.d.ts +0 -1
- package/domain/models/bookmarklet/index.js +0 -5
- package/domain/models/bookmarklet/index.js.map +0 -1
- package/domain/models/calendar-utils.d.ts +0 -5
- package/domain/models/calendar-utils.js +0 -43
- package/domain/models/calendar-utils.js.map +0 -1
- package/domain/models/command/command.d.ts +0 -18
- package/domain/models/command/command.helper.d.ts +0 -4
- package/domain/models/command/command.helper.js +0 -14
- package/domain/models/command/command.helper.js.map +0 -1
- package/domain/models/command/command.js +0 -40
- package/domain/models/command/command.js.map +0 -1
- package/domain/models/command/index.d.ts +0 -2
- package/domain/models/command/index.js +0 -6
- package/domain/models/command/index.js.map +0 -1
- package/domain/models/database/database.d.ts +0 -4
- package/domain/models/database/database.js +0 -7
- package/domain/models/database/database.js.map +0 -1
- package/domain/models/database/index.d.ts +0 -1
- package/domain/models/database/index.js +0 -5
- package/domain/models/database/index.js.map +0 -1
- package/domain/models/endpoint/endpoint.helper.d.ts +0 -4
- package/domain/models/endpoint/endpoint.helper.js +0 -21
- package/domain/models/endpoint/endpoint.helper.js.map +0 -1
- package/domain/models/endpoint/index.d.ts +0 -1
- package/domain/models/endpoint/index.js +0 -5
- package/domain/models/endpoint/index.js.map +0 -1
- package/domain/models/index.js +0 -12
- package/domain/models/index.js.map +0 -1
- package/domain/models/links/google/google.d.ts +0 -12
- package/domain/models/links/google/google.js +0 -47
- package/domain/models/links/google/google.js.map +0 -1
- package/domain/models/links/google/index.d.ts +0 -1
- package/domain/models/links/google/index.js +0 -5
- package/domain/models/links/google/index.js.map +0 -1
- package/domain/models/openapi/index.d.ts +0 -2
- package/domain/models/openapi/index.js +0 -6
- package/domain/models/openapi/index.js.map +0 -1
- package/domain/models/openapi/openapi.d.ts +0 -32
- package/domain/models/openapi/openapi.js +0 -87
- package/domain/models/openapi/openapi.js.map +0 -1
- package/domain/models/openapi/openapi.schema.d.ts +0 -76
- package/domain/models/openapi/openapi.schema.js +0 -3
- package/domain/models/openapi/openapi.schema.js.map +0 -1
- package/domain/models/operators/assistancts/base.d.ts +0 -5
- package/domain/models/operators/assistancts/base.js +0 -13
- package/domain/models/operators/assistancts/base.js.map +0 -1
- package/domain/models/operators/assistancts/index.d.ts +0 -1
- package/domain/models/operators/assistancts/index.js +0 -5
- package/domain/models/operators/assistancts/index.js.map +0 -1
- package/domain/models/operators/base.d.ts +0 -13
- package/domain/models/operators/base.js +0 -10
- package/domain/models/operators/base.js.map +0 -1
- package/domain/models/operators/index.d.ts +0 -4
- package/domain/models/operators/index.js +0 -8
- package/domain/models/operators/index.js.map +0 -1
- package/domain/models/operators/systems/base.d.ts +0 -5
- package/domain/models/operators/systems/base.js +0 -3
- package/domain/models/operators/systems/base.js.map +0 -1
- package/domain/models/operators/systems/graphql.d.ts +0 -5
- package/domain/models/operators/systems/graphql.js +0 -3
- package/domain/models/operators/systems/graphql.js.map +0 -1
- package/domain/models/operators/systems/index.d.ts +0 -3
- package/domain/models/operators/systems/index.js +0 -7
- package/domain/models/operators/systems/index.js.map +0 -1
- package/domain/models/operators/systems/rest.d.ts +0 -6
- package/domain/models/operators/systems/rest.js +0 -3
- package/domain/models/operators/systems/rest.js.map +0 -1
- package/domain/models/operators/workflows/index.d.ts +0 -1
- package/domain/models/operators/workflows/index.js +0 -5
- package/domain/models/operators/workflows/index.js.map +0 -1
- package/domain/models/operators/workflows/workflow.d.ts +0 -9
- package/domain/models/operators/workflows/workflow.js +0 -3
- package/domain/models/operators/workflows/workflow.js.map +0 -1
- package/domain/models/project.d.ts +0 -22
- package/domain/models/project.js +0 -9
- package/domain/models/project.js.map +0 -1
- package/domain/models/query/index.d.ts +0 -2
- package/domain/models/query/index.js +0 -6
- package/domain/models/query/index.js.map +0 -1
- package/domain/models/query/query.d.ts +0 -27
- package/domain/models/query/query.helper.d.ts +0 -23
- package/domain/models/query/query.helper.js +0 -172
- package/domain/models/query/query.helper.js.map +0 -1
- package/domain/models/query/query.js +0 -122
- package/domain/models/query/query.js.map +0 -1
- package/domain/models/resource/index.d.ts +0 -2
- package/domain/models/resource/index.js +0 -6
- package/domain/models/resource/index.js.map +0 -1
- package/domain/models/resource/resource.d.ts +0 -15
- package/domain/models/resource/resource.helper.d.ts +0 -4
- package/domain/models/resource/resource.helper.js +0 -16
- package/domain/models/resource/resource.helper.js.map +0 -1
- package/domain/models/resource/resource.js +0 -73
- package/domain/models/resource/resource.js.map +0 -1
- package/domain/models/scheduler/index.d.ts +0 -1
- package/domain/models/scheduler/index.js +0 -5
- package/domain/models/scheduler/index.js.map +0 -1
- package/domain/models/scheduler/schedule.d.ts +0 -23
- package/domain/models/scheduler/schedule.js +0 -89
- package/domain/models/scheduler/schedule.js.map +0 -1
- package/domain/models/screen-item/index.d.ts +0 -1
- package/domain/models/screen-item/index.js +0 -5
- package/domain/models/screen-item/index.js.map +0 -1
- package/domain/models/screen-item/screen-item.d.ts +0 -9
- package/domain/models/screen-item/screen-item.js +0 -3
- package/domain/models/screen-item/screen-item.js.map +0 -1
- package/domain/models/spec.d.ts +0 -7
- package/domain/models/spec.js +0 -3
- package/domain/models/spec.js.map +0 -1
- package/domain/resolvers/index.d.ts +0 -1
- package/domain/resolvers/index.js +0 -5
- package/domain/resolvers/index.js.map +0 -1
- package/domain/resolvers/invoice.resolver.js +0 -31
- package/domain/resolvers/invoice.resolver.js.map +0 -1
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.d.ts +0 -0
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.js +0 -1
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.js.map +0 -1
- package/infrastructure/converters/google/google.converter.d.ts +0 -9
- package/infrastructure/converters/google/google.converter.js +0 -27
- package/infrastructure/converters/google/google.converter.js.map +0 -1
- package/infrastructure/converters/google/index.d.ts +0 -1
- package/infrastructure/converters/google/index.js +0 -5
- package/infrastructure/converters/google/index.js.map +0 -1
- package/infrastructure/external/data-connect/data-connect.service.d.ts +0 -4
- package/infrastructure/external/data-connect/data-connect.service.impl.d.ts +0 -7
- package/infrastructure/external/data-connect/data-connect.service.impl.js +0 -20
- package/infrastructure/external/data-connect/data-connect.service.impl.js.map +0 -1
- package/infrastructure/external/data-connect/data-connect.service.js +0 -11
- package/infrastructure/external/data-connect/data-connect.service.js.map +0 -1
- package/infrastructure/external/data-connect/index.d.ts +0 -1
- package/infrastructure/external/data-connect/index.js +0 -5
- package/infrastructure/external/data-connect/index.js.map +0 -1
- package/infrastructure/external/external.config.d.ts +0 -7
- package/infrastructure/external/external.config.js +0 -13
- package/infrastructure/external/external.config.js.map +0 -1
- package/infrastructure/external/external.service.d.ts +0 -8
- package/infrastructure/external/external.service.js +0 -23
- package/infrastructure/external/external.service.js.map +0 -1
- package/infrastructure/external/index.d.ts +0 -2
- package/infrastructure/external/index.js +0 -6
- package/infrastructure/external/index.js.map +0 -1
- package/infrastructure/external/quick-js/index.d.ts +0 -1
- package/infrastructure/external/quick-js/index.js +0 -5
- package/infrastructure/external/quick-js/index.js.map +0 -1
- package/infrastructure/external/quick-js/quick-js.service.d.ts +0 -7
- package/infrastructure/external/quick-js/quick-js.service.js +0 -44
- package/infrastructure/external/quick-js/quick-js.service.js.map +0 -1
- package/infrastructure/external/resend/index.d.ts +0 -1
- package/infrastructure/external/resend/index.js +0 -5
- package/infrastructure/external/resend/index.js.map +0 -1
- package/infrastructure/external/resend/resend.service.d.ts +0 -9
- package/infrastructure/external/resend/resend.service.impl.d.ts +0 -17
- package/infrastructure/external/resend/resend.service.impl.js +0 -27
- package/infrastructure/external/resend/resend.service.impl.js.map +0 -1
- package/infrastructure/external/resend/resend.service.js +0 -6
- package/infrastructure/external/resend/resend.service.js.map +0 -1
- package/infrastructure/index.d.ts +0 -2
- package/infrastructure/index.js +0 -6
- package/infrastructure/index.js.map +0 -1
- package/infrastructure/infrastructure.config.d.ts +0 -16
- package/infrastructure/infrastructure.config.js +0 -12
- package/infrastructure/infrastructure.config.js.map +0 -1
- package/infrastructure/infrastructure.service.d.ts +0 -7
- package/infrastructure/infrastructure.service.js +0 -20
- package/infrastructure/infrastructure.service.js.map +0 -1
- package/infrastructure/query/firestore/query/index.d.ts +0 -1
- package/infrastructure/query/firestore/query/index.js +0 -5
- package/infrastructure/query/firestore/query/index.js.map +0 -1
- package/infrastructure/query/firestore/query/query.query.d.ts +0 -6
- package/infrastructure/query/firestore/query/query.query.js +0 -20
- package/infrastructure/query/firestore/query/query.query.js.map +0 -1
- package/infrastructure/query/firestore/resource/index.d.ts +0 -1
- package/infrastructure/query/firestore/resource/index.js +0 -5
- package/infrastructure/query/firestore/resource/index.js.map +0 -1
- package/infrastructure/query/firestore/resource/resource.query.d.ts +0 -6
- package/infrastructure/query/firestore/resource/resource.query.js +0 -20
- package/infrastructure/query/firestore/resource/resource.query.js.map +0 -1
- package/infrastructure/query/hasura/resource/index.d.ts +0 -1
- package/infrastructure/query/hasura/resource/index.js +0 -5
- package/infrastructure/query/hasura/resource/index.js.map +0 -1
- package/infrastructure/query/hasura/resource/resource.query.d.ts +0 -3
- package/infrastructure/query/hasura/resource/resource.query.js +0 -14
- package/infrastructure/query/hasura/resource/resource.query.js.map +0 -1
- package/infrastructure/repository/dataconnect/invoice/index.d.ts +0 -1
- package/infrastructure/repository/dataconnect/invoice/index.js +0 -5
- package/infrastructure/repository/dataconnect/invoice/index.js.map +0 -1
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.d.ts +0 -4
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.d.ts +0 -10
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js +0 -54
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js.map +0 -1
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.js +0 -11
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.js.map +0 -1
- package/infrastructure/repository/dataconnect/order/index.d.ts +0 -1
- package/infrastructure/repository/dataconnect/order/index.js +0 -5
- package/infrastructure/repository/dataconnect/order/index.js.map +0 -1
- package/infrastructure/repository/dataconnect/order/order.repository.d.ts +0 -4
- package/infrastructure/repository/dataconnect/order/order.repository.impl.d.ts +0 -14
- package/infrastructure/repository/dataconnect/order/order.repository.impl.js +0 -74
- package/infrastructure/repository/dataconnect/order/order.repository.impl.js.map +0 -1
- package/infrastructure/repository/dataconnect/order/order.repository.js +0 -11
- package/infrastructure/repository/dataconnect/order/order.repository.js.map +0 -1
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.d.ts +0 -6
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js +0 -20
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js.map +0 -1
- package/infrastructure/repository/firestore/bookmarklet/index.d.ts +0 -1
- package/infrastructure/repository/firestore/bookmarklet/index.js +0 -5
- package/infrastructure/repository/firestore/bookmarklet/index.js.map +0 -1
- package/infrastructure/repository/firestore/firestore.repository.d.ts +0 -7
- package/infrastructure/repository/firestore/firestore.repository.js +0 -20
- package/infrastructure/repository/firestore/firestore.repository.js.map +0 -1
- package/infrastructure/repository/firestore/index.d.ts +0 -1
- package/infrastructure/repository/firestore/index.js +0 -5
- package/infrastructure/repository/firestore/index.js.map +0 -1
- package/infrastructure/repository/firestore/link/google/google.repository.d.ts +0 -7
- package/infrastructure/repository/firestore/link/google/google.repository.js +0 -19
- package/infrastructure/repository/firestore/link/google/google.repository.js.map +0 -1
- package/infrastructure/repository/firestore/link/google/index.d.ts +0 -1
- package/infrastructure/repository/firestore/link/google/index.js +0 -5
- package/infrastructure/repository/firestore/link/google/index.js.map +0 -1
- package/infrastructure/repository/firestore/link/index.d.ts +0 -1
- package/infrastructure/repository/firestore/link/index.js +0 -5
- package/infrastructure/repository/firestore/link/index.js.map +0 -1
- package/infrastructure/repository/firestore/link/link.repository.d.ts +0 -5
- package/infrastructure/repository/firestore/link/link.repository.js +0 -17
- package/infrastructure/repository/firestore/link/link.repository.js.map +0 -1
- package/infrastructure/repository/firestore/query/index.d.ts +0 -1
- package/infrastructure/repository/firestore/query/index.js +0 -5
- package/infrastructure/repository/firestore/query/index.js.map +0 -1
- package/infrastructure/repository/firestore/query/query.repository.d.ts +0 -6
- package/infrastructure/repository/firestore/query/query.repository.js +0 -20
- package/infrastructure/repository/firestore/query/query.repository.js.map +0 -1
- package/infrastructure/repository/firestore/resource/index.d.ts +0 -1
- package/infrastructure/repository/firestore/resource/index.js +0 -5
- package/infrastructure/repository/firestore/resource/index.js.map +0 -1
- package/infrastructure/repository/firestore/resource/resource.repository.d.ts +0 -6
- package/infrastructure/repository/firestore/resource/resource.repository.js +0 -20
- package/infrastructure/repository/firestore/resource/resource.repository.js.map +0 -1
- package/infrastructure/repository/hasura/query/index.d.ts +0 -1
- package/infrastructure/repository/hasura/query/index.js +0 -5
- package/infrastructure/repository/hasura/query/index.js.map +0 -1
- package/infrastructure/repository/hasura/query/query.repository.d.ts +0 -8
- package/infrastructure/repository/hasura/query/query.repository.js +0 -23
- package/infrastructure/repository/hasura/query/query.repository.js.map +0 -1
- package/infrastructure/repository/hasura/resource/index.d.ts +0 -1
- package/infrastructure/repository/hasura/resource/index.js +0 -5
- package/infrastructure/repository/hasura/resource/index.js.map +0 -1
- package/infrastructure/repository/hasura/resource/resource.repository.d.ts +0 -8
- package/infrastructure/repository/hasura/resource/resource.repository.js +0 -23
- package/infrastructure/repository/hasura/resource/resource.repository.js.map +0 -1
- package/infrastructure/repository/index.d.ts +0 -2
- package/infrastructure/repository/index.js +0 -6
- package/infrastructure/repository/index.js.map +0 -1
- package/infrastructure/repository/notion/contract/contract.config.d.ts +0 -9
- package/infrastructure/repository/notion/contract/contract.config.js +0 -10
- package/infrastructure/repository/notion/contract/contract.config.js.map +0 -1
- package/infrastructure/repository/notion/contract/contract.repository.d.ts +0 -8
- package/infrastructure/repository/notion/contract/contract.repository.js +0 -22
- package/infrastructure/repository/notion/contract/contract.repository.js.map +0 -1
- package/infrastructure/repository/notion/contract/index.d.ts +0 -2
- package/infrastructure/repository/notion/contract/index.js +0 -6
- package/infrastructure/repository/notion/contract/index.js.map +0 -1
- package/infrastructure/repository/notion/index.d.ts +0 -2
- package/infrastructure/repository/notion/index.js +0 -6
- package/infrastructure/repository/notion/index.js.map +0 -1
- package/infrastructure/repository/notion/invoice/index.d.ts +0 -2
- package/infrastructure/repository/notion/invoice/index.js +0 -6
- package/infrastructure/repository/notion/invoice/index.js.map +0 -1
- package/infrastructure/repository/notion/invoice/invoice.config.d.ts +0 -9
- package/infrastructure/repository/notion/invoice/invoice.config.js +0 -10
- package/infrastructure/repository/notion/invoice/invoice.config.js.map +0 -1
- package/infrastructure/repository/notion/invoice/invoice.repository.d.ts +0 -8
- package/infrastructure/repository/notion/invoice/invoice.repository.js +0 -22
- package/infrastructure/repository/notion/invoice/invoice.repository.js.map +0 -1
- package/infrastructure/repository/notion/notion.config.d.ts +0 -17
- package/infrastructure/repository/notion/notion.config.js +0 -18
- package/infrastructure/repository/notion/notion.config.js.map +0 -1
- package/infrastructure/repository/notion/notion.repository.d.ts +0 -11
- package/infrastructure/repository/notion/notion.repository.js +0 -26
- package/infrastructure/repository/notion/notion.repository.js.map +0 -1
- package/infrastructure/repository/notion/order/index.d.ts +0 -1
- package/infrastructure/repository/notion/order/index.js +0 -5
- package/infrastructure/repository/notion/order/index.js.map +0 -1
- package/infrastructure/repository/notion/order/order.config.d.ts +0 -9
- package/infrastructure/repository/notion/order/order.config.js +0 -10
- package/infrastructure/repository/notion/order/order.config.js.map +0 -1
- package/infrastructure/repository/notion/order/order.repository.d.ts +0 -8
- package/infrastructure/repository/notion/order/order.repository.js +0 -22
- package/infrastructure/repository/notion/order/order.repository.js.map +0 -1
- package/infrastructure/repository/notion/partner/index.d.ts +0 -2
- package/infrastructure/repository/notion/partner/index.js +0 -6
- package/infrastructure/repository/notion/partner/index.js.map +0 -1
- package/infrastructure/repository/notion/partner/partner.config.d.ts +0 -9
- package/infrastructure/repository/notion/partner/partner.config.js +0 -10
- package/infrastructure/repository/notion/partner/partner.config.js.map +0 -1
- package/infrastructure/repository/notion/partner/partner.repository.d.ts +0 -8
- package/infrastructure/repository/notion/partner/partner.repository.js +0 -22
- package/infrastructure/repository/notion/partner/partner.repository.js.map +0 -1
- package/infrastructure/repository/redis/index.d.ts +0 -2
- package/infrastructure/repository/redis/index.js +0 -6
- package/infrastructure/repository/redis/index.js.map +0 -1
- package/infrastructure/repository/redis/operator/index.d.ts +0 -1
- package/infrastructure/repository/redis/operator/index.js +0 -5
- package/infrastructure/repository/redis/operator/index.js.map +0 -1
- package/infrastructure/repository/redis/operator/operator.repository.d.ts +0 -5
- package/infrastructure/repository/redis/operator/operator.repository.js +0 -17
- package/infrastructure/repository/redis/operator/operator.repository.js.map +0 -1
- package/infrastructure/repository/redis/project/index.d.ts +0 -1
- package/infrastructure/repository/redis/project/index.js +0 -5
- package/infrastructure/repository/redis/project/index.js.map +0 -1
- package/infrastructure/repository/redis/project/project.repository.d.ts +0 -19
- package/infrastructure/repository/redis/project/project.repository.js +0 -33
- package/infrastructure/repository/redis/project/project.repository.js.map +0 -1
- package/infrastructure/repository/redis/redis.config.d.ts +0 -8
- package/infrastructure/repository/redis/redis.config.js +0 -10
- package/infrastructure/repository/redis/redis.config.js.map +0 -1
- package/infrastructure/repository/redis/redis.service.d.ts +0 -10
- package/infrastructure/repository/redis/redis.service.js +0 -22
- package/infrastructure/repository/redis/redis.service.js.map +0 -1
- package/infrastructure/repository/redis/spec/index.d.ts +0 -1
- package/infrastructure/repository/redis/spec/index.js +0 -5
- package/infrastructure/repository/redis/spec/index.js.map +0 -1
- package/infrastructure/repository/redis/spec/spec.repository.d.ts +0 -17
- package/infrastructure/repository/redis/spec/spec.repository.js +0 -94
- package/infrastructure/repository/redis/spec/spec.repository.js.map +0 -1
- package/infrastructure/repository/redis/system/index.d.ts +0 -1
- package/infrastructure/repository/redis/system/index.js +0 -5
- package/infrastructure/repository/redis/system/index.js.map +0 -1
- package/infrastructure/repository/redis/system/system.repository.d.ts +0 -3
- package/infrastructure/repository/redis/system/system.repository.js +0 -15
- package/infrastructure/repository/redis/system/system.repository.js.map +0 -1
- package/infrastructure/repository/repository.config.d.ts +0 -16
- package/infrastructure/repository/repository.config.js +0 -12
- package/infrastructure/repository/repository.config.js.map +0 -1
- package/infrastructure/repository/repository.service.d.ts +0 -8
- package/infrastructure/repository/repository.service.js +0 -20
- package/infrastructure/repository/repository.service.js.map +0 -1
- package/stores/index.js +0 -66
- package/stores/index.js.map +0 -1
- package/usecase/assistant/assistant.service.d.ts +0 -12
- package/usecase/assistant/assistant.service.js +0 -72
- package/usecase/assistant/assistant.service.js.map +0 -1
- package/usecase/assistant/index.js +0 -5
- package/usecase/assistant/index.js.map +0 -1
- package/usecase/database/database.service.d.ts +0 -31
- package/usecase/database/database.service.js +0 -103
- package/usecase/database/database.service.js.map +0 -1
- package/usecase/database/index.js +0 -5
- package/usecase/database/index.js.map +0 -1
- package/usecase/graphql/graphql.service.d.ts +0 -9
- package/usecase/graphql/graphql.service.js +0 -49
- package/usecase/graphql/graphql.service.js.map +0 -1
- package/usecase/graphql/index.js +0 -5
- package/usecase/graphql/index.js.map +0 -1
- package/usecase/index.js +0 -5
- package/usecase/index.js.map +0 -1
- package/usecase/invoice/index.d.ts +0 -1
- package/usecase/invoice/index.js +0 -5
- package/usecase/invoice/index.js.map +0 -1
- package/usecase/invoice/invoice.service.d.ts +0 -27
- package/usecase/invoice/invoice.service.js +0 -69
- package/usecase/invoice/invoice.service.js.map +0 -1
- package/usecase/link/index.js +0 -5
- package/usecase/link/index.js.map +0 -1
- package/usecase/link/link.service.d.ts +0 -7
- package/usecase/link/link.service.js +0 -20
- package/usecase/link/link.service.js.map +0 -1
- package/usecase/order/index.d.ts +0 -1
- package/usecase/order/index.js +0 -5
- package/usecase/order/index.js.map +0 -1
- package/usecase/order/order.service.d.ts +0 -6
- package/usecase/order/order.service.js +0 -27
- package/usecase/order/order.service.js.map +0 -1
- package/usecase/project/index.js +0 -5
- package/usecase/project/index.js.map +0 -1
- package/usecase/project/project.service.d.ts +0 -10
- package/usecase/project/project.service.js +0 -37
- package/usecase/project/project.service.js.map +0 -1
- package/usecase/spec/index.js +0 -5
- package/usecase/spec/index.js.map +0 -1
- package/usecase/spec/spec.service.d.ts +0 -11
- package/usecase/spec/spec.service.js +0 -49
- package/usecase/spec/spec.service.js.map +0 -1
- package/usecase/usecase.service.d.ts +0 -12
- package/usecase/usecase.service.js +0 -24
- package/usecase/usecase.service.js.map +0 -1
- package/utils/crypto.d.ts +0 -7
- package/utils/crypto.js.map +0 -1
- package/utils/extract-display-fields.d.ts +0 -2
- package/utils/extract-display-fields.js.map +0 -1
- package/utils/index.js +0 -5
- package/utils/index.js.map +0 -1
package/usecase/index.d.ts
CHANGED
|
@@ -1 +1,73 @@
|
|
|
1
|
-
|
|
1
|
+
import { InfrastructureService } from '@xxmachina/common/infra';
|
|
2
|
+
import { AssistantOperator, Spec, Project, Google } from '@xxmachina/common/domain/models';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import * as firebase_admin_data_connect from 'firebase-admin/data-connect';
|
|
5
|
+
import * as _nx_ddd_any_func from '@nx-ddd/any-func';
|
|
6
|
+
import { HttpClient } from '@angular/common/http';
|
|
7
|
+
|
|
8
|
+
declare class AssistantService {
|
|
9
|
+
private infra;
|
|
10
|
+
constructor(infra: InfrastructureService);
|
|
11
|
+
list(): Promise<AssistantOperator[]>;
|
|
12
|
+
create(assistant: AssistantOperator): Promise<AssistantOperator>;
|
|
13
|
+
update(assistant: AssistantOperator): Promise<void>;
|
|
14
|
+
delete(assistantid: string): Promise<void>;
|
|
15
|
+
operate(assistantId: string, input: string): Promise<string>;
|
|
16
|
+
private scrape;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssistantService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AssistantService>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class SpecService {
|
|
22
|
+
private infra;
|
|
23
|
+
constructor(infra: InfrastructureService);
|
|
24
|
+
list(): Promise<Spec[]>;
|
|
25
|
+
get(id: string): Promise<Spec>;
|
|
26
|
+
create(spec: Spec): Promise<Spec>;
|
|
27
|
+
update(spec: Partial<Spec>): Promise<void>;
|
|
28
|
+
delete(id: string): Promise<void>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpecService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpecService>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class ProjectService {
|
|
34
|
+
private infra;
|
|
35
|
+
constructor(infra: InfrastructureService);
|
|
36
|
+
list(): Promise<Project[]>;
|
|
37
|
+
get(projectId: string): Promise<Project>;
|
|
38
|
+
create(project: Project): Promise<Project>;
|
|
39
|
+
update(project: Project): Promise<void>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectService, never>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProjectService>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class LinkService {
|
|
45
|
+
infra: InfrastructureService;
|
|
46
|
+
constructor(infra: InfrastructureService);
|
|
47
|
+
saveGoogleLink(google: Google): Promise<[Google, boolean]>;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkService, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LinkService>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class GraphqlService {
|
|
53
|
+
protected http: HttpClient;
|
|
54
|
+
protected anyFunc: _nx_ddd_any_func.AnyFuncService;
|
|
55
|
+
protected dc: firebase_admin_data_connect.DataConnect;
|
|
56
|
+
constructor();
|
|
57
|
+
graphql(query: string): Promise<firebase_admin_data_connect.ExecuteGraphqlResponse<unknown>>;
|
|
58
|
+
makeQuery(instructions: string): Promise<string>;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraphqlService, never>;
|
|
60
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GraphqlService>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare class UsecaseService {
|
|
64
|
+
readonly assistant: AssistantService;
|
|
65
|
+
readonly link: LinkService;
|
|
66
|
+
readonly project: ProjectService;
|
|
67
|
+
readonly spec: SpecService;
|
|
68
|
+
readonly graphql: GraphqlService;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsecaseService, never>;
|
|
70
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UsecaseService>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { UsecaseService };
|
package/usecase/link/index.d.ts
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { Google } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { InfrastructureService } from '@xxmachina/common/infra';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
declare class LinkService {
|
|
6
|
+
infra: InfrastructureService;
|
|
7
|
+
constructor(infra: InfrastructureService);
|
|
8
|
+
saveGoogleLink(google: Google): Promise<[Google, boolean]>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LinkService>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { LinkService };
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { Project } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { InfrastructureService } from '@xxmachina/common/infra';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
declare class ProjectService {
|
|
6
|
+
private infra;
|
|
7
|
+
constructor(infra: InfrastructureService);
|
|
8
|
+
list(): Promise<Project[]>;
|
|
9
|
+
get(projectId: string): Promise<Project>;
|
|
10
|
+
create(project: Project): Promise<Project>;
|
|
11
|
+
update(project: Project): Promise<void>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProjectService>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { ProjectService };
|
package/usecase/spec/index.d.ts
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { InfrastructureService } from '@xxmachina/common/infra';
|
|
2
|
+
import { Spec } from '@xxmachina/common/domain/models';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
declare class SpecService {
|
|
6
|
+
private infra;
|
|
7
|
+
constructor(infra: InfrastructureService);
|
|
8
|
+
list(): Promise<Spec[]>;
|
|
9
|
+
get(id: string): Promise<Spec>;
|
|
10
|
+
create(spec: Spec): Promise<Spec>;
|
|
11
|
+
update(spec: Partial<Spec>): Promise<void>;
|
|
12
|
+
delete(id: string): Promise<void>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpecService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpecService>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { SpecService };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare function float32Buffer(arr: number[]): Buffer<ArrayBuffer>;
|
|
2
|
+
declare function _bufferFloat32(buffer: Buffer): Float32Array;
|
|
3
|
+
declare function bufferFloat32(buffer: Buffer): number[];
|
|
4
|
+
declare function float64Buffer(arr: number[]): Buffer<ArrayBuffer>;
|
|
5
|
+
declare function _bufferFloat64(buffer: Buffer): Float64Array;
|
|
6
|
+
declare function bufferFloat64(buffer: Buffer): number[];
|
|
7
|
+
declare function hash(input: string): string;
|
|
8
|
+
|
|
9
|
+
export { _bufferFloat32, _bufferFloat64, bufferFloat32, bufferFloat64, float32Buffer, float64Buffer, hash };
|
package/utils/index.d.ts
CHANGED
package/README.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# @x-x-machina-common
|
|
2
|
-
|
|
3
|
-
This library was generated with [Nx](https://nx.dev).
|
|
4
|
-
|
|
5
|
-
## Running unit tests
|
|
6
|
-
|
|
7
|
-
Run `nx test @x-x-machina-common` to execute the unit tests via [Jest](https://jestjs.io).
|
|
8
|
-
|
|
9
|
-
## Running lint
|
|
10
|
-
|
|
11
|
-
Run `nx lint @x-x-machina-common` to execute the lint via [ESLint](https://eslint.org/).
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var AuthModule_1;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AuthModule = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const common_1 = require("@nestjs/common");
|
|
7
|
-
const passport_1 = require("@nestjs/passport");
|
|
8
|
-
let AuthModule = AuthModule_1 = class AuthModule {
|
|
9
|
-
static forRoot() {
|
|
10
|
-
return { module: AuthModule_1, providers: [] };
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
exports.AuthModule = AuthModule;
|
|
14
|
-
exports.AuthModule = AuthModule = AuthModule_1 = tslib_1.__decorate([
|
|
15
|
-
(0, common_1.Module)({
|
|
16
|
-
imports: [passport_1.PassportModule],
|
|
17
|
-
providers: [],
|
|
18
|
-
exports: [],
|
|
19
|
-
controllers: [],
|
|
20
|
-
})
|
|
21
|
-
], AuthModule);
|
|
22
|
-
//# sourceMappingURL=auth.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/auth.module.ts"],"names":[],"mappings":";;;;;AAAA,2CAAwC;AACxC,+CAAkD;AAU3C,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACrB,MAAM,CAAC,OAAO;QACZ,OAAO,EAAE,MAAM,EAAE,YAAU,EAAE,SAAS,EAAE,EAAE,EAAE,CAAA;IAC9C,CAAC;CACF,CAAA;AAJY,gCAAU;qBAAV,UAAU;IARtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,yBAAc,CAAC;QACzB,SAAS,EAAE,EACV;QACD,OAAO,EAAE,EACR;QACD,WAAW,EAAE,EAAE;KAChB,CAAC;GACW,UAAU,CAItB"}
|
package/_shared/auth/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnonymousStrategy = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const common_1 = require("@nestjs/common");
|
|
6
|
-
const passport_1 = require("@nestjs/passport");
|
|
7
|
-
const passport_custom_1 = require("passport-custom");
|
|
8
|
-
let AnonymousStrategy = class AnonymousStrategy extends (0, passport_1.PassportStrategy)(passport_custom_1.Strategy, 'anonymous') {
|
|
9
|
-
validate(request) {
|
|
10
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
return {};
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
exports.AnonymousStrategy = AnonymousStrategy;
|
|
16
|
-
exports.AnonymousStrategy = AnonymousStrategy = tslib_1.__decorate([
|
|
17
|
-
(0, common_1.Injectable)()
|
|
18
|
-
], AnonymousStrategy);
|
|
19
|
-
//# sourceMappingURL=anonymous.strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"anonymous.strategy.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/anonymous/anonymous.strategy.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,+CAAoD;AACpD,qDAA2C;AAGpC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,IAAA,2BAAgB,EAAC,0BAAQ,EAAE,WAAW,CAAC;IACtE,QAAQ,CAAC,OAAgB;;YAC7B,OAAO,EAAE,CAAC;QACZ,CAAC;KAAA;CACF,CAAA;AAJY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CAI7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/anonymous/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ExecutionContext } from '@nestjs/common';
|
|
2
|
-
declare const FirebaseAuthGuard_base: import("@nestjs/passport").Type<import("@nestjs/passport").IAuthGuard>;
|
|
3
|
-
export declare class FirebaseAuthGuard extends FirebaseAuthGuard_base {
|
|
4
|
-
getRequest(context: ExecutionContext): any;
|
|
5
|
-
}
|
|
6
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FirebaseAuthGuard = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const common_1 = require("@nestjs/common");
|
|
6
|
-
const passport_1 = require("@nestjs/passport");
|
|
7
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
8
|
-
let FirebaseAuthGuard = class FirebaseAuthGuard extends (0, passport_1.AuthGuard)('firebase') {
|
|
9
|
-
getRequest(context) {
|
|
10
|
-
const ctx = graphql_1.GqlExecutionContext.create(context);
|
|
11
|
-
const gqlReq = ctx.getContext().req;
|
|
12
|
-
if (gqlReq) {
|
|
13
|
-
gqlReq.body = ctx.getArgs();
|
|
14
|
-
return gqlReq;
|
|
15
|
-
}
|
|
16
|
-
return context.switchToHttp().getRequest();
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
exports.FirebaseAuthGuard = FirebaseAuthGuard;
|
|
20
|
-
exports.FirebaseAuthGuard = FirebaseAuthGuard = tslib_1.__decorate([
|
|
21
|
-
(0, common_1.Injectable)()
|
|
22
|
-
], FirebaseAuthGuard);
|
|
23
|
-
//# sourceMappingURL=firebase.guard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"firebase.guard.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/firebase/firebase.guard.ts"],"names":[],"mappings":";;;;AAAA,2CAA8D;AAC9D,+CAA6C;AAC7C,6CAAsD;AAG/C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,IAAA,oBAAS,EAAC,UAAU,CAAC;IAC1D,UAAU,CAAC,OAAyB;QAClC,MAAM,GAAG,GAAG,6BAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC;QAEpC,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,CAAC,IAAI,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;YAC5B,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,OAAO,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAC7C,CAAC;CACF,CAAA;AAXY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CAW7B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FirebaseAuthStrategy } from '@tfarras/nestjs-firebase-auth';
|
|
2
|
-
import { Request } from 'express';
|
|
3
|
-
import { ParamsDictionary } from 'express-serve-static-core';
|
|
4
|
-
import { ParsedQs } from 'qs';
|
|
5
|
-
declare const FirebaseStrategy_base: new (...args: any[]) => FirebaseAuthStrategy;
|
|
6
|
-
export declare class FirebaseStrategy extends FirebaseStrategy_base {
|
|
7
|
-
constructor();
|
|
8
|
-
authenticate(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): void;
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FirebaseStrategy = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const common_1 = require("@nestjs/common");
|
|
6
|
-
const passport_1 = require("@nestjs/passport");
|
|
7
|
-
const nestjs_firebase_auth_1 = require("@tfarras/nestjs-firebase-auth");
|
|
8
|
-
const passport_jwt_1 = require("passport-jwt");
|
|
9
|
-
let FirebaseStrategy = class FirebaseStrategy extends (0, passport_1.PassportStrategy)(nestjs_firebase_auth_1.FirebaseAuthStrategy, 'firebase') {
|
|
10
|
-
constructor() {
|
|
11
|
-
super({ extractor: passport_jwt_1.ExtractJwt.fromAuthHeaderAsBearerToken() });
|
|
12
|
-
}
|
|
13
|
-
authenticate(req) {
|
|
14
|
-
return super.authenticate(req);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
exports.FirebaseStrategy = FirebaseStrategy;
|
|
18
|
-
exports.FirebaseStrategy = FirebaseStrategy = tslib_1.__decorate([
|
|
19
|
-
(0, common_1.Injectable)(),
|
|
20
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
21
|
-
], FirebaseStrategy);
|
|
22
|
-
//# sourceMappingURL=firebase.strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"firebase.strategy.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/firebase/firebase.strategy.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,+CAAoD;AACpD,wEAAqE;AACrE,+CAA0C;AAMnC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,IAAA,2BAAgB,EAAC,2CAAoB,EAAE,UAAU,CAAC;IACtF;QACE,KAAK,CAAC,EAAC,SAAS,EAAE,yBAAU,CAAC,2BAA2B,EAAE,EAAC,CAAC,CAAC;IAC/D,CAAC;IAED,YAAY,CAAC,GAAuE;QAClF,OAAO,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;CACF,CAAA;AARY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;;GACA,gBAAgB,CAQ5B"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./firebase.guard"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./firebase.strategy"), exports);
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/firebase/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,8DAAoC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/internal/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@nestjs/common";
|
|
2
|
-
import { Strategy } from 'passport-http-bearer';
|
|
3
|
-
export declare const INTERNAL_STRATEGY_TOKEN: InjectionToken;
|
|
4
|
-
export declare function provideInternalStrategyToken(token: string): {
|
|
5
|
-
provide: InjectionToken;
|
|
6
|
-
useValue: string;
|
|
7
|
-
};
|
|
8
|
-
declare const InternalStrategy_base: new (...args: any[]) => Strategy<import("passport-http-bearer").VerifyFunctions>;
|
|
9
|
-
export declare class InternalStrategy extends InternalStrategy_base {
|
|
10
|
-
private token;
|
|
11
|
-
constructor(token: string);
|
|
12
|
-
validate(token: string): Promise<boolean>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InternalStrategy = exports.INTERNAL_STRATEGY_TOKEN = void 0;
|
|
4
|
-
exports.provideInternalStrategyToken = provideInternalStrategyToken;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const common_1 = require("@nestjs/common");
|
|
7
|
-
const passport_1 = require("@nestjs/passport");
|
|
8
|
-
const passport_http_bearer_1 = require("passport-http-bearer");
|
|
9
|
-
exports.INTERNAL_STRATEGY_TOKEN = 'INTERNAL_STRATEGY_TOKEN';
|
|
10
|
-
function provideInternalStrategyToken(token) {
|
|
11
|
-
return {
|
|
12
|
-
provide: exports.INTERNAL_STRATEGY_TOKEN,
|
|
13
|
-
useValue: token,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
let InternalStrategy = class InternalStrategy extends (0, passport_1.PassportStrategy)(passport_http_bearer_1.Strategy, 'internal') {
|
|
17
|
-
constructor(token) {
|
|
18
|
-
super();
|
|
19
|
-
this.token = token;
|
|
20
|
-
}
|
|
21
|
-
validate(token) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return token === this.token;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.InternalStrategy = InternalStrategy;
|
|
28
|
-
exports.InternalStrategy = InternalStrategy = tslib_1.__decorate([
|
|
29
|
-
(0, common_1.Injectable)(),
|
|
30
|
-
tslib_1.__param(0, (0, common_1.Inject)(exports.INTERNAL_STRATEGY_TOKEN)),
|
|
31
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
32
|
-
], InternalStrategy);
|
|
33
|
-
//# sourceMappingURL=internal.strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal.strategy.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/internal/internal.strategy.ts"],"names":[],"mappings":";;;AAMA,oEAKC;;AAXD,2CAAoE;AACpE,+CAAoD;AACpD,+DAAgD;AAEnC,QAAA,uBAAuB,GAAmB,yBAAyB,CAAC;AAEjF,SAAgB,4BAA4B,CAAC,KAAa;IACxD,OAAO;QACL,OAAO,EAAE,+BAAuB;QAChC,QAAQ,EAAE,KAAK;KAChB,CAAC;AACJ,CAAC;AAGM,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,IAAA,2BAAgB,EAAC,+BAAQ,EAAE,UAAU,CAAC;IAC1E,YAC2C,KAAa;QAEtD,KAAK,EAAE,CAAC;QAFiC,UAAK,GAAL,KAAK,CAAQ;IAGxD,CAAC;IAEK,QAAQ,CAAC,KAAa;;YAC1B,OAAO,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC;QAC9B,CAAC;KAAA;CACF,CAAA;AAVY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAGR,mBAAA,IAAA,eAAM,EAAC,+BAAuB,CAAC,CAAA;;GAFvB,gBAAgB,CAU5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/msal/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,0DAAgC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsalAuthGuard = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const common_1 = require("@nestjs/common");
|
|
6
|
-
const passport_1 = require("@nestjs/passport");
|
|
7
|
-
let MsalAuthGuard = class MsalAuthGuard extends (0, passport_1.AuthGuard)('msal') {
|
|
8
|
-
};
|
|
9
|
-
exports.MsalAuthGuard = MsalAuthGuard;
|
|
10
|
-
exports.MsalAuthGuard = MsalAuthGuard = tslib_1.__decorate([
|
|
11
|
-
(0, common_1.Injectable)()
|
|
12
|
-
], MsalAuthGuard);
|
|
13
|
-
//# sourceMappingURL=msal.guard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"msal.guard.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/msal/msal.guard.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,+CAA6C;AAGtC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,IAAA,oBAAS,EAAC,MAAM,CAAC;CAAI,CAAA;AAA3C,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;GACA,aAAa,CAA8B"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Provider } from '@nestjs/common';
|
|
2
|
-
import { Strategy } from 'passport-custom';
|
|
3
|
-
export declare const MSAL_CONFIG = "MSAL_CONFIG";
|
|
4
|
-
export interface MsalConfig {
|
|
5
|
-
tenantId: string;
|
|
6
|
-
audience: string;
|
|
7
|
-
applicationId: string;
|
|
8
|
-
scopes: string[];
|
|
9
|
-
}
|
|
10
|
-
export declare function provideMsalAuth(useFactory: () => MsalConfig): Provider[];
|
|
11
|
-
declare const MsalStrategy_base: new (...args: any[]) => Strategy;
|
|
12
|
-
export declare class MsalStrategy extends MsalStrategy_base {
|
|
13
|
-
private readonly config;
|
|
14
|
-
constructor(config: MsalConfig);
|
|
15
|
-
validate(req: any): Promise<string | import("jsonwebtoken").JwtPayload>;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsalStrategy = exports.MSAL_CONFIG = void 0;
|
|
4
|
-
exports.provideMsalAuth = provideMsalAuth;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const common_1 = require("@nestjs/common");
|
|
7
|
-
const passport_1 = require("@nestjs/passport");
|
|
8
|
-
const passport_custom_1 = require("passport-custom");
|
|
9
|
-
const validate_azure_ad_token_1 = tslib_1.__importDefault(require("validate-azure-ad-token"));
|
|
10
|
-
exports.MSAL_CONFIG = 'MSAL_CONFIG';
|
|
11
|
-
function provideMsalAuth(useFactory) {
|
|
12
|
-
return [
|
|
13
|
-
{ provide: exports.MSAL_CONFIG, useFactory },
|
|
14
|
-
MsalStrategy,
|
|
15
|
-
];
|
|
16
|
-
}
|
|
17
|
-
let MsalStrategy = class MsalStrategy extends (0, passport_1.PassportStrategy)(passport_custom_1.Strategy, 'msal') {
|
|
18
|
-
constructor(config) {
|
|
19
|
-
super();
|
|
20
|
-
this.config = config;
|
|
21
|
-
}
|
|
22
|
-
validate(req) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
var _a;
|
|
25
|
-
const token = (_a = req.headers.authorization) === null || _a === void 0 ? void 0 : _a.split(' ')[1];
|
|
26
|
-
try {
|
|
27
|
-
const decoded = yield (0, validate_azure_ad_token_1.default)(token, this.config);
|
|
28
|
-
return decoded.payload;
|
|
29
|
-
}
|
|
30
|
-
catch (err) {
|
|
31
|
-
console.error('err:', err);
|
|
32
|
-
throw new common_1.UnauthorizedException();
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.MsalStrategy = MsalStrategy;
|
|
38
|
-
exports.MsalStrategy = MsalStrategy = tslib_1.__decorate([
|
|
39
|
-
(0, common_1.Injectable)(),
|
|
40
|
-
tslib_1.__param(0, (0, common_1.Inject)(exports.MSAL_CONFIG)),
|
|
41
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
42
|
-
], MsalStrategy);
|
|
43
|
-
//# sourceMappingURL=msal.strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"msal.strategy.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/_shared/auth/passports/msal/msal.strategy.ts"],"names":[],"mappings":";;;AAaA,0CAKC;;AAlBD,2CAAqF;AACrF,+CAAoD;AACpD,qDAA2C;AAC3C,8FAA+C;AAElC,QAAA,WAAW,GAAG,aAAa,CAAC;AAQzC,SAAgB,eAAe,CAAC,UAA4B;IAC1D,OAAO;QACL,EAAE,OAAO,EAAE,mBAAW,EAAE,UAAU,EAAE;QACpC,YAAY;KACb,CAAC;AACJ,CAAC;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,IAAA,2BAAgB,EAAC,0BAAQ,EAAE,MAAM,CAAC;IAClE,YACwC,MAAkB;QAExD,KAAK,EAAE,CAAC;QAF8B,WAAM,GAAN,MAAM,CAAY;IAG1D,CAAC;IAEK,QAAQ,CAAC,GAAQ;;;YACrB,MAAM,KAAK,GAAG,MAAA,GAAG,CAAC,OAAO,CAAC,aAAa,0CAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACvD,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,MAAM,IAAA,iCAAQ,EAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;gBACnD,OAAO,OAAO,CAAC,OAAO,CAAC;YACzB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAC3B,MAAM,IAAI,8BAAqB,EAAE,CAAC;YACpC,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AAjBY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;IAGR,mBAAA,IAAA,eAAM,EAAC,mBAAW,CAAC,CAAA;;GAFX,YAAY,CAiBxB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ID = exports.Field = exports.ObjectType = void 0;
|
|
5
|
-
exports.provideNestjsGraphql = provideNestjsGraphql;
|
|
6
|
-
let ObjectType, Field, ID;
|
|
7
|
-
const _decorators = {
|
|
8
|
-
ObjectType: function () {
|
|
9
|
-
return function (target) {
|
|
10
|
-
// return target;
|
|
11
|
-
};
|
|
12
|
-
},
|
|
13
|
-
Field: function () {
|
|
14
|
-
return function (target, propertyKey) {
|
|
15
|
-
// return target;
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
ID: null,
|
|
19
|
-
};
|
|
20
|
-
(_a = _decorators, exports.ObjectType = ObjectType = _a.ObjectType, exports.Field = Field = _a.Field, exports.ID = ID = _a.ID);
|
|
21
|
-
// GraphQLのデコレーターをファクトリーメソッドで提供
|
|
22
|
-
function provideNestjsGraphql(_decorators) {
|
|
23
|
-
(exports.ObjectType = ObjectType = _decorators.ObjectType, exports.Field = Field = _decorators.Field, exports.ID = ID = _decorators.ID);
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=decorators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/_shared/meta/decorators.ts"],"names":[],"mappings":";;;;AAoBA,oDAEC;AApBD,IAAI,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC;AAE1B,MAAM,WAAW,GAA+B;IAC9C,UAAU,EAAE;QACV,OAAO,UAAU,MAAW;YAC1B,iBAAiB;QACnB,CAAC,CAAA;IACH,CAAC;IACD,KAAK,EAAE;QACL,OAAO,UAAU,MAAW,EAAE,WAA4B;YACxD,iBAAiB;QACnB,CAAC,CAAA;IACH,CAAC;IACD,EAAE,EAAE,IAAI;CACT,CAAC;AACF,CAAC,KAA4B,WAAkB,EAA5C,qBAAA,UAAU,gBAAA,EAAE,gBAAA,KAAK,WAAA,EAAE,aAAA,EAAE,QAAA,CAAwB,CAAC;AAEjD,+BAA+B;AAC/B,SAAgB,oBAAoB,CAAC,WAA8B;IACjE,CAAG,qBAAA,UAAU,GAAgB,WAAW,WAA3B,EAAE,gBAAA,KAAK,GAAS,WAAW,MAApB,EAAE,aAAA,EAAE,GAAK,WAAW,GAAhB,CAAiB,CAAC;AAC5C,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./redis.config"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./redis.repository"), exports);
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/_shared/meta/redis/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,6DAAmC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
|
-
export interface RedisConfig {
|
|
3
|
-
url: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const REDIS_CONFIG: InjectionToken<RedisConfig>;
|
|
6
|
-
export declare function provideRedisConfig(config: RedisConfig): {
|
|
7
|
-
provide: InjectionToken<RedisConfig>;
|
|
8
|
-
useValue: RedisConfig;
|
|
9
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REDIS_CONFIG = void 0;
|
|
4
|
-
exports.provideRedisConfig = provideRedisConfig;
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
exports.REDIS_CONFIG = new core_1.InjectionToken('[@nx-ddd/redis] Redis Config');
|
|
7
|
-
function provideRedisConfig(config) {
|
|
8
|
-
return { provide: exports.REDIS_CONFIG, useValue: config };
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=redis.config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redis.config.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/_shared/meta/redis/redis.config.ts"],"names":[],"mappings":";;;AAQA,gDAEC;AAVD,wCAA+C;AAMlC,QAAA,YAAY,GAAG,IAAI,qBAAc,CAAc,8BAA8B,CAAC,CAAC;AAE5F,SAAgB,kBAAkB,CAAC,MAAmB;IACpD,OAAO,EAAE,OAAO,EAAE,oBAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACrD,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { RedisClientType } from 'redis';
|
|
2
|
-
import { RedisConfig } from "./redis.config";
|
|
3
|
-
export declare class Converter<E, R> {
|
|
4
|
-
fromRedis(record: R): E;
|
|
5
|
-
toRedis(entity: E): R;
|
|
6
|
-
}
|
|
7
|
-
export declare abstract class RedisRepository<E extends {
|
|
8
|
-
id: string;
|
|
9
|
-
} = any, R extends object = object> {
|
|
10
|
-
private config;
|
|
11
|
-
protected abstract entityName: string;
|
|
12
|
-
protected converter: Converter<E, R>;
|
|
13
|
-
protected client: RedisClientType;
|
|
14
|
-
constructor(config: RedisConfig);
|
|
15
|
-
init(): Promise<void>;
|
|
16
|
-
list(): Promise<Awaited<E>[]>;
|
|
17
|
-
get(id: string): Promise<E>;
|
|
18
|
-
create(entity: E): Promise<E>;
|
|
19
|
-
update(entity: any): Promise<void>;
|
|
20
|
-
delete(id: string): Promise<void>;
|
|
21
|
-
deleteAll(): Promise<void>;
|
|
22
|
-
getKey(id: string): string;
|
|
23
|
-
}
|