@xxmachina/common 19.0.0-preview.9 → 19.1.1
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
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DatabaseService = void 0;
|
|
4
|
-
exports.provideDatabaseConfig = provideDatabaseConfig;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const core_1 = require("@angular/core");
|
|
7
|
-
const er_1 = require("@xxmachina/common/domain/builder/er");
|
|
8
|
-
const screen_item_1 = require("@xxmachina/common/domain/builder/screen-item");
|
|
9
|
-
const lodash_es_1 = require("lodash-es");
|
|
10
|
-
const notion_1 = require("@nx-ddd/notion/notion");
|
|
11
|
-
function listDatabaseProperties(database, dbName) {
|
|
12
|
-
return new screen_item_1.ScreenItemBuilder().build(database).map(item => (Object.assign(Object.assign({}, item), { dbName })));
|
|
13
|
-
}
|
|
14
|
-
const DATABASE_CONFIG = new core_1.InjectionToken('DATABASE_CONFIG');
|
|
15
|
-
function provideDatabaseConfig(useFactory) {
|
|
16
|
-
return { provide: DATABASE_CONFIG, useFactory };
|
|
17
|
-
}
|
|
18
|
-
let DatabaseService = class DatabaseService {
|
|
19
|
-
constructor() {
|
|
20
|
-
this.config = (0, core_1.inject)(DATABASE_CONFIG);
|
|
21
|
-
this.notion = (0, notion_1.injectNotion)();
|
|
22
|
-
}
|
|
23
|
-
get(databaseId) {
|
|
24
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
return this.notion.retrieveDatabase(databaseId);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
update(databaseId, body) {
|
|
29
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
return this.notion.updateDatabase(databaseId, (0, lodash_es_1.omit)(Object.assign({}, body.properties), []));
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
listDatabases() {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
var _a, _b;
|
|
36
|
-
let start_cursor;
|
|
37
|
-
const databases = [];
|
|
38
|
-
while (true) {
|
|
39
|
-
const _databases = yield this.notion.search({
|
|
40
|
-
filter: {
|
|
41
|
-
property: 'object',
|
|
42
|
-
value: 'database',
|
|
43
|
-
},
|
|
44
|
-
start_cursor,
|
|
45
|
-
});
|
|
46
|
-
for (const db of _databases.results) {
|
|
47
|
-
databases.push(Object.assign(Object.assign({}, db), { _title: (_b = (_a = db['title']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.plain_text }));
|
|
48
|
-
}
|
|
49
|
-
if (!_databases.has_more)
|
|
50
|
-
break;
|
|
51
|
-
start_cursor = _databases.next_cursor;
|
|
52
|
-
}
|
|
53
|
-
const resolve = (item) => tslib_1.__awaiter(this, void 0, void 0, function* () { return (Object.assign(Object.assign({}, item), { path: yield this.getPath(item) })); });
|
|
54
|
-
return Promise.all(databases.map(db => resolve(db)));
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
generateMermaidER() {
|
|
58
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
const databases = yield this.listDatabases();
|
|
60
|
-
return new er_1.ErBuilder().build(databases);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
getPageItems(dbId, name) {
|
|
64
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
// const dbDetails = await this.notion.retrieveDatabase(dbId);
|
|
66
|
-
// const items = listDatabaseProperties(dbDetails, name);
|
|
67
|
-
// return items;
|
|
68
|
-
return [];
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
getParent(parent) {
|
|
72
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
switch (parent.type) {
|
|
74
|
-
case 'database_id': return this.notion.retrieveDatabase(parent.database_id);
|
|
75
|
-
case 'page_id': return this.notion.retrievePage(parent.page_id);
|
|
76
|
-
case 'block_id': return this.notion.retrieveBlock(parent.block_id);
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
getPath(obj) {
|
|
81
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
82
|
-
const objects = [obj];
|
|
83
|
-
return objects.map(obj => getTitle(obj)).filter(Boolean).reverse().join('/');
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
exports.DatabaseService = DatabaseService;
|
|
88
|
-
exports.DatabaseService = DatabaseService = tslib_1.__decorate([
|
|
89
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
90
|
-
], DatabaseService);
|
|
91
|
-
function getTitle(obj) {
|
|
92
|
-
var _a, _b, _c, _d;
|
|
93
|
-
if (obj.object === 'page') {
|
|
94
|
-
return (_d = (_c = (_b = (_a = obj.properties) === null || _a === void 0 ? void 0 : _a.title) === null || _b === void 0 ? void 0 : _b.title) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.plain_text;
|
|
95
|
-
}
|
|
96
|
-
else if (obj.object === 'database') {
|
|
97
|
-
return obj._title;
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
//# sourceMappingURL=database.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"database.service.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/database/database.service.ts"],"names":[],"mappings":";;;AAmBA,sDAEC;;AArBD,wCAAmE;AACnE,4DAAgE;AAChE,8EAAiF;AAGjF,yCAAiC;AACjC,kDAAqD;AAErD,SAAS,sBAAsB,CAAC,QAAkB,EAAE,MAAc;IAChE,OAAO,IAAI,+BAAiB,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,iCAAK,IAAI,KAAE,MAAM,IAAE,CAAC,CAAC;AAClF,CAAC;AAOD,MAAM,eAAe,GAAG,IAAI,qBAAc,CAAiB,iBAAiB,CAAC,CAAC;AAE9E,SAAgB,qBAAqB,CAAC,UAAgC;IACpE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC;AAClD,CAAC;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;IAArB;QACK,WAAM,GAAG,IAAA,aAAM,EAAC,eAAe,CAAC,CAAC;QACjC,WAAM,GAAG,IAAA,qBAAY,GAAE,CAAC;IAyEpC,CAAC;IAvEO,GAAG,CAAC,UAAkB;;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAClD,CAAC;KAAA;IAEK,MAAM,CAAC,UAAkB,EAAE,IAAS;;YACxC,OAAO,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,IAAA,gBAAI,oBAC7C,IAAI,CAAC,UAAU,GACjB,EAAE,CAAC,CAAC,CAAC;QACV,CAAC;KAAA;IAEK,aAAa;;;YACjB,IAA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":";;;AAAA,6DAAmC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
export declare class GraphqlService {
|
|
3
|
-
protected http: HttpClient;
|
|
4
|
-
protected anyFunc: import("@nx-ddd/any-func").AnyFuncService;
|
|
5
|
-
protected dc: import("firebase-admin/data-connect").DataConnect;
|
|
6
|
-
constructor();
|
|
7
|
-
graphql(query: string): Promise<import("firebase-admin/data-connect").ExecuteGraphqlResponse<unknown>>;
|
|
8
|
-
makeQuery(instructions: string): Promise<string>;
|
|
9
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphqlService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const http_1 = require("@angular/common/http");
|
|
6
|
-
const core_1 = require("@angular/core");
|
|
7
|
-
const any_func_1 = require("@nx-ddd/any-func");
|
|
8
|
-
const data_connect_1 = require("@xxmachina/common/infrastructure/external/data-connect");
|
|
9
|
-
const class_validator_1 = require("class-validator");
|
|
10
|
-
class Result {
|
|
11
|
-
}
|
|
12
|
-
tslib_1.__decorate([
|
|
13
|
-
(0, class_validator_1.IsString)(),
|
|
14
|
-
tslib_1.__metadata("design:type", String)
|
|
15
|
-
], Result.prototype, "query", void 0);
|
|
16
|
-
let GraphqlService = class GraphqlService {
|
|
17
|
-
constructor() {
|
|
18
|
-
this.http = (0, core_1.inject)(http_1.HttpClient);
|
|
19
|
-
this.anyFunc = (0, any_func_1.injectAnyFunc)();
|
|
20
|
-
this.dc = (0, data_connect_1.injectDataConnectService)();
|
|
21
|
-
}
|
|
22
|
-
graphql(query) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
// return lastValueFrom(this.http.post('http://localhost:3330/api/dataConnect', {query}));
|
|
25
|
-
return this.dc.executeGraphqlRead(query);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
makeQuery(instructions) {
|
|
29
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
const schemaQuery = `{ __schema { types { name fields { name type { name } } } } }`;
|
|
31
|
-
const schemaResult = yield this.graphql(schemaQuery);
|
|
32
|
-
return this.anyFunc.call(instructions, Result, {
|
|
33
|
-
instructions: `
|
|
34
|
-
アシスタントはユーザーの要求を満たすGraphQLクエリを下記のサーバーのスキーマを元に生成します。
|
|
35
|
-
|
|
36
|
-
${JSON.stringify(schemaResult, null, 2)}
|
|
37
|
-
`,
|
|
38
|
-
model: 'gpt-4o-mini',
|
|
39
|
-
validator: (output) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.graphql(output.query).then(() => []).catch(error => [error.message]); }),
|
|
40
|
-
}).then(result => result.query);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.GraphqlService = GraphqlService;
|
|
45
|
-
exports.GraphqlService = GraphqlService = tslib_1.__decorate([
|
|
46
|
-
(0, core_1.Injectable)({ providedIn: 'root' }),
|
|
47
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
48
|
-
], GraphqlService);
|
|
49
|
-
//# sourceMappingURL=graphql.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.service.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/graphql/graphql.service.ts"],"names":[],"mappings":";;;;AAAA,+CAAkD;AAClD,wCAAmD;AACnD,+CAAiD;AACjD,yFAAkG;AAClG,qDAA2C;AAE3C,MAAM,MAAM;CAGX;AADC;IADC,IAAA,0BAAQ,GAAE;;qCACG;AAIT,IAAM,cAAc,GAApB,MAAM,cAAc;IAKzB;QAJU,SAAI,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;QAC1B,YAAO,GAAG,IAAA,wBAAa,GAAE,CAAC;QAC1B,OAAE,GAAG,IAAA,uCAAwB,GAAE,CAAC;IAE3B,CAAC;IAEV,OAAO,CAAC,KAAa;;YACzB,0FAA0F;YAC1F,OAAO,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC3C,CAAC;KAAA;IAEK,SAAS,CAAC,YAAoB;;YAClC,MAAM,WAAW,GAAG,+DAA+D,CAAC;YACpF,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE;gBAC7C,YAAY,EAAE;;;UAGV,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;OACxC;gBACD,KAAK,EAAE,aAAa;gBACpB,SAAS,EAAE,CAAO,MAAM,EAAE,EAAE,wDAAC,OAAA,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA,GAAA;aACvG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;KAAA;CAEF,CAAA;AA1BY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;;GACpB,cAAc,CA0B1B"}
|
package/usecase/graphql/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/graphql/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
|
package/usecase/index.js
DELETED
package/usecase/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@xxmachina/common/src/lib/usecase/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './invoice.service';
|
package/usecase/invoice/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/invoice/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { InvoiceRepository as NotionRepository } from '@xxmachina/common/infrastructure/repository/notion/invoice';
|
|
2
|
-
import { InvoiceMail } from '@xxmachina/common/domain/invoice/models';
|
|
3
|
-
export interface InvoiceConfig {
|
|
4
|
-
templateBaseUrl: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const INVOICE_CONFIG: {
|
|
7
|
-
token: import("@angular/core").InjectionToken<InvoiceConfig>;
|
|
8
|
-
inject: () => InvoiceConfig;
|
|
9
|
-
provide: (useFactory: () => InvoiceConfig) => {
|
|
10
|
-
provide: import("@angular/core").InjectionToken<InvoiceConfig>;
|
|
11
|
-
useFactory: () => InvoiceConfig;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare class InvoiceService {
|
|
15
|
-
protected notion: NotionRepository;
|
|
16
|
-
protected dataConnect: import("../../infrastructure/repository/dataconnect/invoice/invoice.repository.impl").InvoiceRepository;
|
|
17
|
-
protected readonly chromium: import("@nx-ddd/common/infrastructure/externals/chromium/chromium.service.impl").ChromiumService;
|
|
18
|
-
protected readonly config: InvoiceConfig;
|
|
19
|
-
protected readonly resend: import("../../infrastructure/external/resend/resend.service.impl").ResendService;
|
|
20
|
-
sync(): Promise<void>;
|
|
21
|
-
makePdf(data: object): Promise<{
|
|
22
|
-
pdf: Buffer;
|
|
23
|
-
title: string;
|
|
24
|
-
name: string;
|
|
25
|
-
}>;
|
|
26
|
-
sendMail(mail: InvoiceMail): Promise<void>;
|
|
27
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvoiceService = exports.INVOICE_CONFIG = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const invoice_1 = require("@xxmachina/common/infrastructure/repository/notion/invoice");
|
|
7
|
-
const invoice_2 = require("@xxmachina/common/infrastructure/repository/dataconnect/invoice");
|
|
8
|
-
const chromium_1 = require("@nx-ddd/common/infrastructure/externals/chromium");
|
|
9
|
-
const core_2 = require("@nx-ddd/core");
|
|
10
|
-
const resend_1 = require("@xxmachina/common/infrastructure/external/resend");
|
|
11
|
-
exports.INVOICE_CONFIG = (0, core_2.makeDI)('[@xxmachina/invoice] INVOICE_CONFIG', { optional: false });
|
|
12
|
-
let InvoiceService = class InvoiceService {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.notion = (0, core_1.inject)(invoice_1.InvoiceRepository);
|
|
15
|
-
this.dataConnect = (0, invoice_2.injectInvoiceRepository)();
|
|
16
|
-
this.chromium = chromium_1.CHROMIUM.inject();
|
|
17
|
-
this.config = exports.INVOICE_CONFIG.inject();
|
|
18
|
-
this.resend = resend_1.RESEND_SERVICE.inject();
|
|
19
|
-
}
|
|
20
|
-
sync() {
|
|
21
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const invoices = yield this.notion.list();
|
|
23
|
-
yield this.dataConnect.deleteAll();
|
|
24
|
-
yield this.dataConnect.createMany(invoices);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
makePdf(data) {
|
|
28
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
return this.chromium.start((browser) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
const context = yield browser.newContext({
|
|
31
|
-
deviceScaleFactor: 2,
|
|
32
|
-
});
|
|
33
|
-
const page = yield context.newPage();
|
|
34
|
-
page.on('console', msg => console.log('PAGE LOG:', msg.text()));
|
|
35
|
-
page.on('pageerror', err => console.log('PAGE ERROR:', err.message));
|
|
36
|
-
const url = `${this.config.templateBaseUrl}?json=${encodeURIComponent(JSON.stringify(data))}`;
|
|
37
|
-
yield page.goto(url, { waitUntil: 'networkidle' });
|
|
38
|
-
yield page.evaluate(() => document.fonts.ready);
|
|
39
|
-
yield page.waitForSelector('h1');
|
|
40
|
-
const title = yield page.title();
|
|
41
|
-
const pdf = yield page.pdf({ format: 'A4' });
|
|
42
|
-
return { pdf, title, name: `${title}.pdf` };
|
|
43
|
-
}));
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
sendMail(mail) {
|
|
47
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
const pdf = yield this.makePdf(mail.invoice);
|
|
49
|
-
yield this.resend.emails.send({
|
|
50
|
-
from: mail.from,
|
|
51
|
-
to: mail.to,
|
|
52
|
-
subject: mail.subject,
|
|
53
|
-
html: mail.content,
|
|
54
|
-
attachments: [
|
|
55
|
-
{
|
|
56
|
-
filename: pdf.name,
|
|
57
|
-
content: pdf.pdf,
|
|
58
|
-
contentType: 'application/pdf',
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
exports.InvoiceService = InvoiceService;
|
|
66
|
-
exports.InvoiceService = InvoiceService = tslib_1.__decorate([
|
|
67
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
68
|
-
], InvoiceService);
|
|
69
|
-
//# sourceMappingURL=invoice.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.service.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/invoice/invoice.service.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,wFAAmH;AACnH,6FAA0G;AAC1G,+EAA4E;AAC5E,uCAAsC;A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AM,EAAE,CAAC;GACtB,cAAc,CA+C1B"}
|
package/usecase/link/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/link/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Google } from "@xxmachina/common/domain/models/links/google";
|
|
2
|
-
import { InfrastructureService } from "@xxmachina/common/infrastructure";
|
|
3
|
-
export declare class LinkService {
|
|
4
|
-
infra: InfrastructureService;
|
|
5
|
-
constructor(infra: InfrastructureService);
|
|
6
|
-
saveGoogleLink(google: Google): Promise<[Google, boolean]>;
|
|
7
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LinkService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const infrastructure_1 = require("@xxmachina/common/infrastructure");
|
|
6
|
-
const core_1 = require("@angular/core");
|
|
7
|
-
let LinkService = class LinkService {
|
|
8
|
-
constructor(infra) {
|
|
9
|
-
this.infra = infra;
|
|
10
|
-
}
|
|
11
|
-
saveGoogleLink(google) {
|
|
12
|
-
return this.infra.repo.firestore.link.google.save(google);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
exports.LinkService = LinkService;
|
|
16
|
-
exports.LinkService = LinkService = tslib_1.__decorate([
|
|
17
|
-
(0, core_1.Injectable)({ providedIn: 'root' }),
|
|
18
|
-
tslib_1.__metadata("design:paramtypes", [infrastructure_1.InfrastructureService])
|
|
19
|
-
], LinkService);
|
|
20
|
-
//# sourceMappingURL=link.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.service.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/link/link.service.ts"],"names":[],"mappings":";;;;AACA,qEAAyE;AACzE,wCAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YACS,KAA4B;QAA5B,UAAK,GAAL,KAAK,CAAuB;IACjC,CAAC;IAEL,cAAc,CAAC,MAAc;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;CACF,CAAA;AARY,kCAAW;sBAAX,WAAW;IADvB,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;6CAGf,sCAAqB;GAF1B,WAAW,CAQvB"}
|
package/usecase/order/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './order.service';
|
package/usecase/order/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/order/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { OrderRepository as NotionRepository } from '@xxmachina/common/infrastructure/repository/notion/order';
|
|
2
|
-
export declare class OrderService {
|
|
3
|
-
protected notion: NotionRepository;
|
|
4
|
-
protected dataConnect: import("../../infrastructure/repository/dataconnect/order/order.repository.impl").OrderRepository;
|
|
5
|
-
sync(): Promise<void>;
|
|
6
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrderService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const order_1 = require("@xxmachina/common/infrastructure/repository/notion/order");
|
|
7
|
-
const order_2 = require("@xxmachina/common/infrastructure/repository/dataconnect/order");
|
|
8
|
-
let OrderService = class OrderService {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.notion = (0, core_1.inject)(order_1.OrderRepository);
|
|
11
|
-
this.dataConnect = (0, order_2.injectOrderRepository)();
|
|
12
|
-
}
|
|
13
|
-
sync() {
|
|
14
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
const orders = yield this.notion.list();
|
|
16
|
-
yield this.dataConnect.deleteAll();
|
|
17
|
-
yield this.dataConnect.createMany(orders);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.OrderService = OrderService;
|
|
22
|
-
exports.OrderService = OrderService = tslib_1.__decorate([
|
|
23
|
-
(0, core_1.Injectable)({
|
|
24
|
-
providedIn: 'root',
|
|
25
|
-
})
|
|
26
|
-
], OrderService);
|
|
27
|
-
//# sourceMappingURL=order.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"order.service.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/order/order.service.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,oFAA+G;AAC/G,yFAAsG;AAK/F,IAAM,YAAY,GAAlB,MAAM,YAAY;IAAlB;QACK,WAAM,GAAG,IAAA,aAAM,EAAC,uBAAgB,CAAC,CAAC;QAClC,gBAAW,GAAG,IAAA,6BAAqB,GAAE,CAAC;IAOlD,CAAC;IALO,IAAI;;YACR,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACxC,MAAM,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;YACnC,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAC5C,CAAC;KAAA;CACF,CAAA;AATY,oCAAY;uBAAZ,YAAY;IAHxB,IAAA,iBAAU,EAAC;QACV,UAAU,EAAE,MAAM;KACnB,CAAC;GACW,YAAY,CASxB"}
|
package/usecase/project/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/project/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Project } from "@xxmachina/common/domain/models";
|
|
2
|
-
import { InfrastructureService } from "@xxmachina/common/infrastructure";
|
|
3
|
-
export declare class ProjectService {
|
|
4
|
-
private infra;
|
|
5
|
-
constructor(infra: InfrastructureService);
|
|
6
|
-
list(): Promise<Project[]>;
|
|
7
|
-
get(projectId: string): Promise<Project>;
|
|
8
|
-
create(project: Project): Promise<Project>;
|
|
9
|
-
update(project: Project): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const infrastructure_1 = require("@xxmachina/common/infrastructure");
|
|
7
|
-
let ProjectService = class ProjectService {
|
|
8
|
-
constructor(infra) {
|
|
9
|
-
this.infra = infra;
|
|
10
|
-
}
|
|
11
|
-
list() {
|
|
12
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
|
-
return yield this.infra.repo.redis.project.list();
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
get(projectId) {
|
|
17
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
return this.infra.repo.redis.project.get(projectId);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
create(project) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return this.infra.repo.redis.project.create(project);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
update(project) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
return this.infra.repo.redis.project.update(project);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.ProjectService = ProjectService;
|
|
33
|
-
exports.ProjectService = ProjectService = tslib_1.__decorate([
|
|
34
|
-
(0, core_1.Injectable)({ providedIn: 'root' }),
|
|
35
|
-
tslib_1.__metadata("design:paramtypes", [infrastructure_1.InfrastructureService])
|
|
36
|
-
], ProjectService);
|
|
37
|
-
//# sourceMappingURL=project.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.service.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/project/project.service.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAE3C,qEAAyE;AAIlE,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YACU,KAA4B;QAA5B,UAAK,GAAL,KAAK,CAAuB;IAClC,CAAC;IAEC,IAAI;;YACR,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAe,CAAC;QACjE,CAAC;KAAA;IAEK,GAAG,CAAC,SAAiB;;YACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACtD,CAAC;KAAA;IAEK,MAAM,CAAC,OAAgB;;YAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvD,CAAC;KAAA;IAEK,MAAM,CAAC,OAAgB;;YAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvD,CAAC;KAAA;CACF,CAAA;AApBY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;6CAGd,sCAAqB;GAF3B,cAAc,CAoB1B"}
|
package/usecase/spec/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/spec/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { InfrastructureService } from "@xxmachina/common/infrastructure";
|
|
2
|
-
import { Spec } from "@xxmachina/common/domain/models";
|
|
3
|
-
export declare class SpecService {
|
|
4
|
-
private infra;
|
|
5
|
-
constructor(infra: InfrastructureService);
|
|
6
|
-
list(): Promise<Spec[]>;
|
|
7
|
-
get(id: string): Promise<Spec>;
|
|
8
|
-
create(spec: Spec): Promise<Spec>;
|
|
9
|
-
update(spec: Partial<Spec>): Promise<void>;
|
|
10
|
-
delete(id: string): Promise<void>;
|
|
11
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SpecService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const infrastructure_1 = require("@xxmachina/common/infrastructure");
|
|
7
|
-
const crypto_1 = require("@xxmachina/common/utils/crypto");
|
|
8
|
-
let SpecService = class SpecService {
|
|
9
|
-
constructor(infra) {
|
|
10
|
-
this.infra = infra;
|
|
11
|
-
}
|
|
12
|
-
list() {
|
|
13
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
return this.infra.repo.redis.spec.list();
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
get(id) {
|
|
18
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
return this.infra.repo.redis.spec.get(id);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
create(spec) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const project = yield this.infra.repo.redis.project.get('default');
|
|
25
|
-
const embeddings = yield this.infra.external.getAiAdapter(project.settings.ai).embedding(spec.input);
|
|
26
|
-
return this.infra.repo.redis.spec.create(Object.assign(Object.assign({}, spec), { embeddings, id: (0, crypto_1.hash)(spec.input) }));
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
update(spec) {
|
|
30
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
const project = yield this.infra.repo.redis.project.get('default');
|
|
32
|
-
const embeddings = yield this.infra.external.getAiAdapter(project.settings.ai).embedding(spec.input);
|
|
33
|
-
if (spec.id !== (0, crypto_1.hash)(spec.input))
|
|
34
|
-
throw new Error('id is not match with input hash');
|
|
35
|
-
return this.infra.repo.redis.spec.update(Object.assign(Object.assign({}, spec), { embeddings }));
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
delete(id) {
|
|
39
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
return this.infra.repo.redis.spec.delete(id);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.SpecService = SpecService;
|
|
45
|
-
exports.SpecService = SpecService = tslib_1.__decorate([
|
|
46
|
-
(0, core_1.Injectable)({ providedIn: 'root' }),
|
|
47
|
-
tslib_1.__metadata("design:paramtypes", [infrastructure_1.InfrastructureService])
|
|
48
|
-
], SpecService);
|
|
49
|
-
//# sourceMappingURL=spec.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec.service.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/spec/spec.service.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,qEAAyE;AAEzE,2DAAsD;AAG/C,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YACU,KAA4B;QAA5B,UAAK,GAAL,KAAK,CAAuB;IAClC,CAAC;IAEC,IAAI;;YACR,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI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C,MAAM,iCAAK,IAAI,KAAE,UAAU,IAAE,CAAC;QAClE,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU;;YACrB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC/C,CAAC;KAAA;CAEF,CAAA;AA9BY,kCAAW;sBAAX,WAAW;IADvB,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;6CAGd,sCAAqB;GAF3B,WAAW,CA8BvB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AssistantService } from "./assistant";
|
|
2
|
-
import { SpecService } from "./spec";
|
|
3
|
-
import { ProjectService } from "./project";
|
|
4
|
-
import { LinkService } from "./link";
|
|
5
|
-
import { GraphqlService } from "./graphql";
|
|
6
|
-
export declare class UsecaseService {
|
|
7
|
-
readonly assistant: AssistantService;
|
|
8
|
-
readonly link: LinkService;
|
|
9
|
-
readonly project: ProjectService;
|
|
10
|
-
readonly spec: SpecService;
|
|
11
|
-
readonly graphql: GraphqlService;
|
|
12
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UsecaseService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const assistant_1 = require("./assistant");
|
|
7
|
-
const spec_1 = require("./spec");
|
|
8
|
-
const project_1 = require("./project");
|
|
9
|
-
const link_1 = require("./link");
|
|
10
|
-
const graphql_1 = require("./graphql");
|
|
11
|
-
let UsecaseService = class UsecaseService {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.assistant = (0, core_1.inject)(assistant_1.AssistantService);
|
|
14
|
-
this.link = (0, core_1.inject)(link_1.LinkService);
|
|
15
|
-
this.project = (0, core_1.inject)(project_1.ProjectService);
|
|
16
|
-
this.spec = (0, core_1.inject)(spec_1.SpecService);
|
|
17
|
-
this.graphql = (0, core_1.inject)(graphql_1.GraphqlService);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
exports.UsecaseService = UsecaseService;
|
|
21
|
-
exports.UsecaseService = UsecaseService = tslib_1.__decorate([
|
|
22
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
23
|
-
], UsecaseService);
|
|
24
|
-
//# sourceMappingURL=usecase.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usecase.service.js","sourceRoot":"","sources":["../../../../../packages/@xxmachina/common/src/lib/usecase/usecase.service.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,2CAA+C;AAC/C,iCAAqC;AACrC,uCAA2C;AAC3C,iCAAqC;AACrC,uCAA2C;AAGpC,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QACI,cAAS,GAAG,IAAA,aAAM,EAAC,4BAAgB,CAAC,CAAA;QACpC,SAAI,GAAG,IAAA,aAAM,EAAC,kBAAW,CAAC,CAAA;QAC1B,YAAO,GAAG,IAAA,aAAM,EAAC,wBAAc,CAAC,CAAA;QAChC,SAAI,GAAG,IAAA,aAAM,EAAC,kBAAW,CAAC,CAAA;QAC1B,YAAO,GAAG,IAAA,aAAM,EAAC,wBAAc,CAAC,CAAC;IAC5C,CAAC;CAAA,CAAA;AANY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,cAAc,CAM1B"}
|
package/utils/crypto.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function float32Buffer(arr: number[]): Buffer<ArrayBufferLike>;
|
|
2
|
-
export declare function _bufferFloat32(buffer: Buffer): Float32Array;
|
|
3
|
-
export declare function bufferFloat32(buffer: Buffer): number[];
|
|
4
|
-
export declare function float64Buffer(arr: number[]): Buffer<ArrayBufferLike>;
|
|
5
|
-
export declare function _bufferFloat64(buffer: Buffer): Float64Array;
|
|
6
|
-
export declare function bufferFloat64(buffer: Buffer): number[];
|
|
7
|
-
export declare function hash(input: string): string;
|
package/utils/crypto.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crypto.js","sourceRoot":"","sources":["../../../../../packages/@xxmachina/common/src/lib/utils/crypto.ts"],"names":[],"mappings":";;AAEA,sCAEC;AAED,wCAEC;AAED,sCAEC;AAGD,sCAEC;AAED,wCAEC;AAGD,sCAEC;AAED,oBAEC;AA9BD,mCAAoC;AAEpC,SAAgB,aAAa,CAAC,GAAa;IACzC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,cAAc,CAAC,MAAc;IAC3C,OAAO,IAAI,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;AAChH,CAAC;AAED,SAAgB,aAAa,CAAC,MAAc;IAC1C,OAAO,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5C,CAAC;AAGD,SAAgB,aAAa,CAAC,GAAa;IACzC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,cAAc,CAAC,MAAc;IAC3C,OAAO,IAAI,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;AAChH,CAAC;AAGD,SAAgB,aAAa,CAAC,MAAc;IAC1C,OAAO,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,IAAI,CAAC,K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