@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/infra/index.d.ts
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import * as _xxmachina_common__shared_meta_redis from '@xxmachina/common/_shared/meta/redis';
|
|
2
|
+
import { RedisConfig as RedisConfig$1, RedisRepository, Converter } from '@xxmachina/common/_shared/meta/redis';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { GoogleConfig, GoogleService } from '@nx-ddd/google';
|
|
5
|
+
import * as _nx_ddd_common_infrastructure_externals_openai_impl from '@nx-ddd/common/infrastructure/externals/openai/impl';
|
|
6
|
+
import { OpenAiConfig } from '@nx-ddd/common/infrastructure/externals/openai/impl';
|
|
7
|
+
import { AiConfig, Operator, Project, Spec, Google } from '@xxmachina/common/domain/models';
|
|
8
|
+
import { GoogleConverter } from '@xxmachina/common/infra/converters/google';
|
|
9
|
+
import { FirestoreRepository as FirestoreRepository$1 } from '@nx-ddd/firestore/repository';
|
|
10
|
+
import * as _nx_ddd_notion from '@nx-ddd/notion';
|
|
11
|
+
import { NotionRepository as NotionRepository$1 } from '@nx-ddd/notion';
|
|
12
|
+
import { Contract, Invoice, Order } from '@xxmachina/common/invoice/domain';
|
|
13
|
+
import { Partner } from '@xxmachina/common/invoice/domain/models';
|
|
14
|
+
import * as firebase_admin_data_connect from 'firebase-admin/data-connect';
|
|
15
|
+
|
|
16
|
+
interface ContractConfig {
|
|
17
|
+
databaseId: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class ContractNotionRepository extends NotionRepository$1<Contract> {
|
|
21
|
+
protected converter: _nx_ddd_notion.NotionConverter<any>;
|
|
22
|
+
protected config: ContractConfig;
|
|
23
|
+
protected accessToken: string;
|
|
24
|
+
protected databaseId: string;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContractNotionRepository, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContractNotionRepository>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface InvoiceConfig {
|
|
30
|
+
databaseId: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class InvoiceNotionRepository extends NotionRepository$1<Invoice> {
|
|
34
|
+
protected converter: _nx_ddd_notion.NotionConverter<any>;
|
|
35
|
+
protected config: InvoiceConfig;
|
|
36
|
+
protected accessToken: string;
|
|
37
|
+
protected databaseId: string;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceNotionRepository, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceNotionRepository>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface OrderConfig {
|
|
43
|
+
databaseId: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class OrderNotionRepository extends NotionRepository$1<Order> {
|
|
47
|
+
protected converter: _nx_ddd_notion.NotionConverter<any>;
|
|
48
|
+
protected config: OrderConfig;
|
|
49
|
+
protected accessToken: string;
|
|
50
|
+
protected databaseId: string;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderNotionRepository, never>;
|
|
52
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderNotionRepository>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface PartnerConfig {
|
|
56
|
+
databaseId: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare class PartnerNotionRepository extends NotionRepository$1<Partner> {
|
|
60
|
+
protected converter: _nx_ddd_notion.NotionConverter<any>;
|
|
61
|
+
protected config: PartnerConfig;
|
|
62
|
+
protected accessToken: string;
|
|
63
|
+
protected databaseId: string;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PartnerNotionRepository, never>;
|
|
65
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PartnerNotionRepository>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface NotionConfig {
|
|
69
|
+
accessToken: string;
|
|
70
|
+
contract: ContractConfig;
|
|
71
|
+
invoice: InvoiceConfig;
|
|
72
|
+
order: any;
|
|
73
|
+
partner: PartnerConfig;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class NotionRepository {
|
|
77
|
+
contract: ContractNotionRepository;
|
|
78
|
+
invoice: InvoiceNotionRepository;
|
|
79
|
+
order: OrderNotionRepository;
|
|
80
|
+
partner: PartnerNotionRepository;
|
|
81
|
+
constructor(contract: ContractNotionRepository, invoice: InvoiceNotionRepository, order: OrderNotionRepository, partner: PartnerNotionRepository);
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotionRepository, never>;
|
|
83
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotionRepository>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface ExternalConfig {
|
|
87
|
+
openAi: OpenAiConfig;
|
|
88
|
+
google: GoogleConfig;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare class ExternalService {
|
|
92
|
+
readonly openai: _nx_ddd_common_infrastructure_externals_openai_impl.OpenAiServiceImpl;
|
|
93
|
+
readonly google: GoogleService;
|
|
94
|
+
readonly dataConnect: firebase_admin_data_connect.DataConnect;
|
|
95
|
+
getAiAdapter(aiConfig: AiConfig): any;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExternalService, never>;
|
|
97
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExternalService>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface RedisConfig {
|
|
101
|
+
redis: RedisConfig$1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class OperatorRepository extends RedisRepository<Operator> {
|
|
105
|
+
protected entityName: string;
|
|
106
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperatorRepository, never>;
|
|
107
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OperatorRepository>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare class ProjectConverter extends Converter<Project, {
|
|
111
|
+
id: string;
|
|
112
|
+
settings: string;
|
|
113
|
+
}> {
|
|
114
|
+
fromRedis(record: {
|
|
115
|
+
id: string;
|
|
116
|
+
settings: string;
|
|
117
|
+
}): Project;
|
|
118
|
+
toRedis(entity: Project): {
|
|
119
|
+
id: string;
|
|
120
|
+
settings: string;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
declare class ProjectRepository extends RedisRepository<Project> {
|
|
124
|
+
protected entityName: string;
|
|
125
|
+
protected converter: ProjectConverter;
|
|
126
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectRepository, never>;
|
|
127
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProjectRepository>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare class SpecRepository extends RedisRepository<Spec> {
|
|
131
|
+
protected config: _xxmachina_common__shared_meta_redis.RedisConfig;
|
|
132
|
+
protected entityName: string;
|
|
133
|
+
create(spec: Spec): Promise<Spec>;
|
|
134
|
+
get(id: string): Promise<Spec>;
|
|
135
|
+
update(spec: Partial<Spec>): Promise<void>;
|
|
136
|
+
get indexName(): string;
|
|
137
|
+
makeIndex(): Promise<void>;
|
|
138
|
+
search(operatorId: string, embeddings: number[], n?: number): Promise<Spec[]>;
|
|
139
|
+
private toBuffer;
|
|
140
|
+
private fromBuffer;
|
|
141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpecRepository, never>;
|
|
142
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpecRepository>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare class SystemRepository {
|
|
146
|
+
protected entityName: string;
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SystemRepository, never>;
|
|
148
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SystemRepository>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
declare class RedisService {
|
|
152
|
+
readonly operator: OperatorRepository;
|
|
153
|
+
readonly project: ProjectRepository;
|
|
154
|
+
readonly spec: SpecRepository;
|
|
155
|
+
readonly system: SystemRepository;
|
|
156
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RedisService, never>;
|
|
157
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RedisService>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
interface RepositoryConfig {
|
|
161
|
+
notion: NotionConfig;
|
|
162
|
+
redis: RedisConfig;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class GoogleRepository extends FirestoreRepository$1<Google> {
|
|
166
|
+
readonly collectionPath = "users/:userId/links/:id";
|
|
167
|
+
protected converter: GoogleConverter;
|
|
168
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleRepository, never>;
|
|
169
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GoogleRepository>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare class LinkRepository {
|
|
173
|
+
google: GoogleRepository;
|
|
174
|
+
constructor(google: GoogleRepository);
|
|
175
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkRepository, never>;
|
|
176
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LinkRepository>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare class FirestoreRepository {
|
|
180
|
+
link: LinkRepository;
|
|
181
|
+
constructor(link: LinkRepository);
|
|
182
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FirestoreRepository, never>;
|
|
183
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FirestoreRepository>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare class RepositoriesService {
|
|
187
|
+
readonly firestore: FirestoreRepository;
|
|
188
|
+
readonly notion: NotionRepository;
|
|
189
|
+
readonly redis: RedisService;
|
|
190
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RepositoriesService, never>;
|
|
191
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RepositoriesService>;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
interface InfrastructureConfig {
|
|
195
|
+
external: ExternalConfig;
|
|
196
|
+
repository: RepositoryConfig;
|
|
197
|
+
}
|
|
198
|
+
declare function provideInfrastructureConfig(config: InfrastructureConfig): ((i0.Provider[] | i0.EnvironmentProviders)[] | (({
|
|
199
|
+
provide: i0.InjectionToken<ContractConfig>;
|
|
200
|
+
useValue: ContractConfig;
|
|
201
|
+
} | {
|
|
202
|
+
provide: i0.InjectionToken<string>;
|
|
203
|
+
useValue: string;
|
|
204
|
+
})[] | {
|
|
205
|
+
provide: i0.InjectionToken<_xxmachina_common__shared_meta_redis.RedisConfig>;
|
|
206
|
+
useValue: _xxmachina_common__shared_meta_redis.RedisConfig;
|
|
207
|
+
}[])[])[];
|
|
208
|
+
|
|
209
|
+
declare class InfrastructureService {
|
|
210
|
+
external: ExternalService;
|
|
211
|
+
repo: RepositoriesService;
|
|
212
|
+
constructor(external: ExternalService, repo: RepositoriesService);
|
|
213
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfrastructureService, never>;
|
|
214
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InfrastructureService>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export { InfrastructureService, provideInfrastructureConfig };
|
|
218
|
+
export type { InfrastructureConfig };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as _nx_ddd_firestore from '@nx-ddd/firestore';
|
|
2
|
+
import { Query, Resource } from '@xxmachina/common/domain/models';
|
|
3
|
+
import { FirestoreQuery } from '@nx-ddd/firestore/query/v2';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
|
|
6
|
+
declare class QueryFirestoreQuery extends FirestoreQuery<Query> {
|
|
7
|
+
readonly collectionPath = "projects/:projectId/queries/:id";
|
|
8
|
+
protected converter: _nx_ddd_firestore.IFirestoreConverter<Query<any, any>>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueryFirestoreQuery, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QueryFirestoreQuery>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class ResourceFirestoreQuery extends FirestoreQuery<Resource> {
|
|
14
|
+
readonly collectionPath = "projects/:projectId/resources/:id";
|
|
15
|
+
protected converter: _nx_ddd_firestore.IFirestoreConverter<Resource>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceFirestoreQuery, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourceFirestoreQuery>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { QueryFirestoreQuery, ResourceFirestoreQuery };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class ResourceHasuraQuery {
|
|
4
|
+
listChanges(): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceHasuraQuery, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourceHasuraQuery>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { ResourceHasuraQuery };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import * as firebase_admin_data_connect from 'firebase-admin/data-connect';
|
|
4
|
+
import { Invoice, Order } from '@xxmachina/common/invoice/domain/models';
|
|
5
|
+
|
|
6
|
+
declare class InvoiceRepository {
|
|
7
|
+
protected db: firebase_admin_data_connect.DataConnect;
|
|
8
|
+
createMany(invoices: Invoice[]): Promise<void>;
|
|
9
|
+
deleteAll(): Promise<void>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceRepository, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceRepository>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const INVOICE_REPOSITORY_TOKEN: InjectionToken<InvoiceRepository>;
|
|
15
|
+
declare function injectInvoiceRepository(): InvoiceRepository;
|
|
16
|
+
|
|
17
|
+
declare class OrderRepository {
|
|
18
|
+
protected db: firebase_admin_data_connect.DataConnect;
|
|
19
|
+
createMany(orders: Order[]): Promise<void>;
|
|
20
|
+
deleteAll(): Promise<void>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderRepository, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderRepository>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare const ORDER_REPOSITORY_TOKEN: InjectionToken<OrderRepository>;
|
|
26
|
+
declare function injectOrderRepository(): OrderRepository;
|
|
27
|
+
|
|
28
|
+
export { INVOICE_REPOSITORY_TOKEN, ORDER_REPOSITORY_TOKEN, injectInvoiceRepository, injectOrderRepository };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Google, Query, Resource } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { GoogleConverter } from '@xxmachina/common/infra/converters/google';
|
|
3
|
+
import { FirestoreRepository as FirestoreRepository$1 } from '@nx-ddd/firestore/repository';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import * as _nx_ddd_firestore from '@nx-ddd/firestore';
|
|
6
|
+
|
|
7
|
+
declare class GoogleRepository extends FirestoreRepository$1<Google> {
|
|
8
|
+
readonly collectionPath = "users/:userId/links/:id";
|
|
9
|
+
protected converter: GoogleConverter;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleRepository, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GoogleRepository>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class LinkRepository {
|
|
15
|
+
google: GoogleRepository;
|
|
16
|
+
constructor(google: GoogleRepository);
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkRepository, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LinkRepository>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class FirestoreRepository {
|
|
22
|
+
link: LinkRepository;
|
|
23
|
+
constructor(link: LinkRepository);
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FirestoreRepository, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FirestoreRepository>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class QueryFirestoreRepository extends FirestoreRepository$1<Query> {
|
|
29
|
+
readonly collectionPath = "projects/:projectId/queries/:id";
|
|
30
|
+
protected converter: _nx_ddd_firestore.IFirestoreConverter<Query<any, any>>;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueryFirestoreRepository, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QueryFirestoreRepository>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare class ResourceFirestoreRepository extends FirestoreRepository$1<Resource> {
|
|
36
|
+
readonly collectionPath = "projects/:projectId/resources/:id";
|
|
37
|
+
protected converter: _nx_ddd_firestore.IFirestoreConverter<Resource>;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceFirestoreRepository, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourceFirestoreRepository>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { FirestoreRepository, QueryFirestoreRepository, ResourceFirestoreRepository };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _nx_ddd_hasura from '@nx-ddd/hasura';
|
|
2
|
+
import { HasuraRepository } from '@nx-ddd/hasura';
|
|
3
|
+
import { Query, Resource } from '@xxmachina/common/domain/models';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
|
|
6
|
+
declare class QueryHasuraRepository extends HasuraRepository<Query> {
|
|
7
|
+
readonly tableName = "meta_queries";
|
|
8
|
+
protected converter: _nx_ddd_hasura.HasuraConverter<Query<any, any>>;
|
|
9
|
+
readonly updateColumns: string[];
|
|
10
|
+
get pkey(): string;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueryHasuraRepository, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QueryHasuraRepository>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class ResourceHasuraRepository extends HasuraRepository<Resource> {
|
|
16
|
+
readonly tableName = "meta_resources";
|
|
17
|
+
protected converter: _nx_ddd_hasura.HasuraConverter<Resource>;
|
|
18
|
+
readonly updateColumns: string[];
|
|
19
|
+
get pkey(): string;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceHasuraRepository, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourceHasuraRepository>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { QueryHasuraRepository, ResourceHasuraRepository };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import * as _nx_ddd_notion from '@nx-ddd/notion';
|
|
4
|
+
import { NotionRepository as NotionRepository$1 } from '@nx-ddd/notion';
|
|
5
|
+
import { Contract, Invoice, Order } from '@xxmachina/common/invoice/domain';
|
|
6
|
+
import { Partner } from '@xxmachina/common/invoice/domain/models';
|
|
7
|
+
|
|
8
|
+
interface ContractConfig {
|
|
9
|
+
databaseId: string;
|
|
10
|
+
}
|
|
11
|
+
declare const CONTRACT_CONFIG: InjectionToken<ContractConfig>;
|
|
12
|
+
declare function provideContractConfig(config: ContractConfig): {
|
|
13
|
+
provide: InjectionToken<ContractConfig>;
|
|
14
|
+
useValue: ContractConfig;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
declare class ContractNotionRepository extends NotionRepository$1<Contract> {
|
|
18
|
+
protected converter: _nx_ddd_notion.NotionConverter<any>;
|
|
19
|
+
protected config: ContractConfig;
|
|
20
|
+
protected accessToken: string;
|
|
21
|
+
protected databaseId: string;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContractNotionRepository, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContractNotionRepository>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface InvoiceConfig {
|
|
27
|
+
databaseId: string;
|
|
28
|
+
}
|
|
29
|
+
declare const INVOICE_CONFIG: InjectionToken<InvoiceConfig>;
|
|
30
|
+
declare function provideInvoiceConfig(config: InvoiceConfig): {
|
|
31
|
+
provide: InjectionToken<InvoiceConfig>;
|
|
32
|
+
useValue: InvoiceConfig;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
declare class InvoiceNotionRepository extends NotionRepository$1<Invoice> {
|
|
36
|
+
protected converter: _nx_ddd_notion.NotionConverter<any>;
|
|
37
|
+
protected config: InvoiceConfig;
|
|
38
|
+
protected accessToken: string;
|
|
39
|
+
protected databaseId: string;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceNotionRepository, never>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceNotionRepository>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface OrderConfig {
|
|
45
|
+
databaseId: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class OrderNotionRepository extends NotionRepository$1<Order> {
|
|
49
|
+
protected converter: _nx_ddd_notion.NotionConverter<any>;
|
|
50
|
+
protected config: OrderConfig;
|
|
51
|
+
protected accessToken: string;
|
|
52
|
+
protected databaseId: string;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderNotionRepository, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderNotionRepository>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface PartnerConfig {
|
|
58
|
+
databaseId: string;
|
|
59
|
+
}
|
|
60
|
+
declare const PARTNER_CONFIG: InjectionToken<PartnerConfig>;
|
|
61
|
+
declare function providePartnerConfig(config: PartnerConfig): {
|
|
62
|
+
provide: InjectionToken<PartnerConfig>;
|
|
63
|
+
useValue: PartnerConfig;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
declare class PartnerNotionRepository extends NotionRepository$1<Partner> {
|
|
67
|
+
protected converter: _nx_ddd_notion.NotionConverter<any>;
|
|
68
|
+
protected config: PartnerConfig;
|
|
69
|
+
protected accessToken: string;
|
|
70
|
+
protected databaseId: string;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PartnerNotionRepository, never>;
|
|
72
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PartnerNotionRepository>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface NotionConfig {
|
|
76
|
+
accessToken: string;
|
|
77
|
+
contract: ContractConfig;
|
|
78
|
+
invoice: InvoiceConfig;
|
|
79
|
+
order: any;
|
|
80
|
+
partner: PartnerConfig;
|
|
81
|
+
}
|
|
82
|
+
declare function provideNotionConfig(config: NotionConfig): ({
|
|
83
|
+
provide: i0.InjectionToken<ContractConfig>;
|
|
84
|
+
useValue: ContractConfig;
|
|
85
|
+
} | {
|
|
86
|
+
provide: i0.InjectionToken<string>;
|
|
87
|
+
useValue: string;
|
|
88
|
+
})[];
|
|
89
|
+
|
|
90
|
+
declare class NotionRepository {
|
|
91
|
+
contract: ContractNotionRepository;
|
|
92
|
+
invoice: InvoiceNotionRepository;
|
|
93
|
+
order: OrderNotionRepository;
|
|
94
|
+
partner: PartnerNotionRepository;
|
|
95
|
+
constructor(contract: ContractNotionRepository, invoice: InvoiceNotionRepository, order: OrderNotionRepository, partner: PartnerNotionRepository);
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotionRepository, never>;
|
|
97
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotionRepository>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export { CONTRACT_CONFIG, ContractNotionRepository, INVOICE_CONFIG, InvoiceNotionRepository, NotionRepository, OrderNotionRepository, PARTNER_CONFIG, PartnerNotionRepository, provideContractConfig, provideInvoiceConfig, provideNotionConfig, providePartnerConfig };
|
|
101
|
+
export type { ContractConfig, InvoiceConfig, NotionConfig, PartnerConfig };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Invoice } from '@xxmachina/common/invoice/domain/models';
|
|
2
|
+
|
|
3
|
+
declare class MessageBuilder {
|
|
4
|
+
private getInvoiceRange;
|
|
5
|
+
private getInvoicePeriod;
|
|
6
|
+
buildMyName(invoice: Invoice): string;
|
|
7
|
+
build(invoice: Invoice): string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class Email {
|
|
11
|
+
static EMPTY: {
|
|
12
|
+
to: string;
|
|
13
|
+
cc: string;
|
|
14
|
+
title: string;
|
|
15
|
+
body: string;
|
|
16
|
+
};
|
|
17
|
+
to: string;
|
|
18
|
+
cc: string;
|
|
19
|
+
title: string;
|
|
20
|
+
body: string;
|
|
21
|
+
}
|
|
22
|
+
declare class EmailBuilder {
|
|
23
|
+
protected readonly mesageBuilder: MessageBuilder;
|
|
24
|
+
build(invoice: Invoice): Email;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare class TitleBuilder {
|
|
28
|
+
build(invoice: Invoice): string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Email, EmailBuilder, MessageBuilder, TitleBuilder };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Entity } from '@nx-ddd/common/domain';
|
|
2
|
+
|
|
3
|
+
declare class Contract extends Entity {
|
|
4
|
+
id: string;
|
|
5
|
+
no: number;
|
|
6
|
+
title: string;
|
|
7
|
+
issueDate: Date;
|
|
8
|
+
orderIds: string[];
|
|
9
|
+
static from(params: Contract): Contract;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class Partner extends Entity {
|
|
13
|
+
id: string;
|
|
14
|
+
no: number;
|
|
15
|
+
name: string;
|
|
16
|
+
type: string;
|
|
17
|
+
address: string;
|
|
18
|
+
postalCode: string;
|
|
19
|
+
email: string;
|
|
20
|
+
billingEmail: string;
|
|
21
|
+
billingContact: string;
|
|
22
|
+
phoneNumber: string;
|
|
23
|
+
contact: string;
|
|
24
|
+
suffix: string;
|
|
25
|
+
bankAccount: string;
|
|
26
|
+
invoiceNumber: string;
|
|
27
|
+
static from(params: Partner): Partner;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare class Order extends Entity {
|
|
31
|
+
id: string;
|
|
32
|
+
no: number;
|
|
33
|
+
title: string;
|
|
34
|
+
eclId: string;
|
|
35
|
+
customerId: string;
|
|
36
|
+
customer?: Partner;
|
|
37
|
+
vendorId: string;
|
|
38
|
+
vendor?: Partner;
|
|
39
|
+
contractId: string;
|
|
40
|
+
invoiceId: string;
|
|
41
|
+
startDate: Date;
|
|
42
|
+
endDate: Date;
|
|
43
|
+
unitPrice: number;
|
|
44
|
+
unit: string;
|
|
45
|
+
quantity: number;
|
|
46
|
+
amountInput: number;
|
|
47
|
+
amount: number;
|
|
48
|
+
statusIn: string;
|
|
49
|
+
statusOut: string;
|
|
50
|
+
static from(params: Order): Order;
|
|
51
|
+
static get EMPTY(): Order;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare class Invoice extends Entity {
|
|
55
|
+
id: string;
|
|
56
|
+
no: number;
|
|
57
|
+
title: string;
|
|
58
|
+
subject: string;
|
|
59
|
+
customerId: string;
|
|
60
|
+
customer?: Partner;
|
|
61
|
+
vendorId: string;
|
|
62
|
+
vendor?: Partner;
|
|
63
|
+
amount: number;
|
|
64
|
+
dueDate: Date;
|
|
65
|
+
orderIds: string[];
|
|
66
|
+
orders?: Order[];
|
|
67
|
+
static from(data: Partial<Invoice>): Invoice & Partial<Invoice>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare class InvoiceMail {
|
|
71
|
+
from: string;
|
|
72
|
+
to: string;
|
|
73
|
+
subject: string;
|
|
74
|
+
content: string;
|
|
75
|
+
invoice: Invoice;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { Contract, Invoice, InvoiceMail, Order, Partner };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Invoice, Order, Partner } from
|
|
2
|
-
|
|
1
|
+
import { Invoice, Order, Partner } from '@xxmachina/common/invoice/domain/models';
|
|
2
|
+
import { BaseResolver } from '@nx-ddd/common/domain';
|
|
3
|
+
|
|
4
|
+
declare class InvoiceResolver extends BaseResolver<Invoice> {
|
|
3
5
|
orderMap: Map<string, Order>;
|
|
4
6
|
partnerMap: Map<string, Partner>;
|
|
5
7
|
constructor({ orders, partners, }?: {
|
|
@@ -9,3 +11,5 @@ export declare class InvoiceResolver {
|
|
|
9
11
|
resolve(invoice: Invoice): Invoice;
|
|
10
12
|
resolveMany(invoices: Invoice[]): Invoice[];
|
|
11
13
|
}
|
|
14
|
+
|
|
15
|
+
export { InvoiceResolver };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as _nx_ddd_hasura from '@nx-ddd/hasura';
|
|
2
|
+
import { ContractNotionRepository } from '@xxmachina/common/infra/repository/notion';
|
|
3
|
+
import { Contract } from '@xxmachina/common/invoice/domain/models';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
|
|
6
|
+
declare class ContractUsecase {
|
|
7
|
+
protected notionRepo: ContractNotionRepository;
|
|
8
|
+
protected hasuraRepo: _nx_ddd_hasura._HasuraRepository<Contract>;
|
|
9
|
+
sync(): Promise<void>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContractUsecase, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContractUsecase>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { ContractUsecase };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as _nx_ddd_core from '@nx-ddd/core';
|
|
2
|
+
import { Invoice, InvoiceMail } from '@xxmachina/common/invoice/domain/models';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
interface InvoiceConfig {
|
|
6
|
+
templateBaseUrl: string;
|
|
7
|
+
}
|
|
8
|
+
declare const INVOICE_CONFIG: _nx_ddd_core.DiToken<InvoiceConfig>;
|
|
9
|
+
declare class InvoiceUsecase {
|
|
10
|
+
private readonly notionRepo;
|
|
11
|
+
private readonly chromium;
|
|
12
|
+
private readonly config;
|
|
13
|
+
private readonly resend;
|
|
14
|
+
private readonly hasura;
|
|
15
|
+
private readonly hasuraService;
|
|
16
|
+
list(): Promise<Invoice[]>;
|
|
17
|
+
syncOne(id: string): Promise<void>;
|
|
18
|
+
sync(): Promise<{
|
|
19
|
+
synced: number;
|
|
20
|
+
}>;
|
|
21
|
+
makePdf(data: object): Promise<{
|
|
22
|
+
pdf: Buffer;
|
|
23
|
+
title: string;
|
|
24
|
+
name: string;
|
|
25
|
+
}>;
|
|
26
|
+
sendMail(mail: InvoiceMail): Promise<void>;
|
|
27
|
+
getLink(invoiceId: string): Promise<string>;
|
|
28
|
+
private transformInvoiceData;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceUsecase, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceUsecase>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { INVOICE_CONFIG, InvoiceUsecase };
|
|
34
|
+
export type { InvoiceConfig };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as _nx_ddd_hasura from '@nx-ddd/hasura';
|
|
2
|
+
import { OrderNotionRepository } from '@xxmachina/common/infra/repository/notion';
|
|
3
|
+
import { Order } from '@xxmachina/common/invoice/domain/models';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
|
|
6
|
+
declare class OrderUsecase {
|
|
7
|
+
protected notion: OrderNotionRepository;
|
|
8
|
+
protected hasuraRepo: _nx_ddd_hasura._HasuraRepository<Order>;
|
|
9
|
+
sync(): Promise<{
|
|
10
|
+
synced: number;
|
|
11
|
+
}>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderUsecase, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderUsecase>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { OrderUsecase };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as _nx_ddd_hasura from '@nx-ddd/hasura';
|
|
2
|
+
import { PartnerNotionRepository } from '@xxmachina/common/infra/repository/notion';
|
|
3
|
+
import { Partner } from '@xxmachina/common/invoice/domain/models';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
|
|
6
|
+
declare class PartnerUsecase {
|
|
7
|
+
protected notionRepo: PartnerNotionRepository;
|
|
8
|
+
protected hasuraRepo: _nx_ddd_hasura._HasuraRepository<Partner>;
|
|
9
|
+
sync(): Promise<{
|
|
10
|
+
synced: number;
|
|
11
|
+
}>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PartnerUsecase, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PartnerUsecase>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { PartnerUsecase };
|