@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,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OperatorRepository = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const redis_1 = require("@xxmachina/common/_shared/meta/redis");
|
|
7
|
-
let OperatorRepository = class OperatorRepository extends redis_1.RedisRepository {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.entityName = 'operator';
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
exports.OperatorRepository = OperatorRepository;
|
|
14
|
-
exports.OperatorRepository = OperatorRepository = tslib_1.__decorate([
|
|
15
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
16
|
-
], OperatorRepository);
|
|
17
|
-
//# sourceMappingURL=operator.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operator.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/operator/operator.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,gEAAuE;AAIhE,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,uBAAyB;IAA1D;;QACK,eAAU,GAAG,UAAU,CAAC;IACpC,CAAC;CAAA,CAAA;AAFY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,kBAAkB,CAE9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './project.repository';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/project/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Converter, RedisRepository } from '@xxmachina/common/_shared/meta/redis';
|
|
2
|
-
import { Project } from "@xxmachina/common/domain/models";
|
|
3
|
-
export declare class ProjectConverter extends Converter<Project, {
|
|
4
|
-
id: string;
|
|
5
|
-
settings: string;
|
|
6
|
-
}> {
|
|
7
|
-
fromRedis(record: {
|
|
8
|
-
id: string;
|
|
9
|
-
settings: string;
|
|
10
|
-
}): Project;
|
|
11
|
-
toRedis(entity: Project): {
|
|
12
|
-
id: string;
|
|
13
|
-
settings: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare class ProjectRepository extends RedisRepository<Project> {
|
|
17
|
-
protected entityName: string;
|
|
18
|
-
protected converter: ProjectConverter;
|
|
19
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectRepository = exports.ProjectConverter = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const redis_1 = require("@xxmachina/common/_shared/meta/redis");
|
|
7
|
-
class ProjectConverter extends redis_1.Converter {
|
|
8
|
-
fromRedis(record) {
|
|
9
|
-
return {
|
|
10
|
-
id: record.id,
|
|
11
|
-
settings: JSON.parse(record.settings),
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
toRedis(entity) {
|
|
15
|
-
return {
|
|
16
|
-
id: entity.id,
|
|
17
|
-
settings: JSON.stringify(entity.settings),
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.ProjectConverter = ProjectConverter;
|
|
22
|
-
let ProjectRepository = class ProjectRepository extends redis_1.RedisRepository {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.entityName = 'project';
|
|
26
|
-
this.converter = new ProjectConverter();
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.ProjectRepository = ProjectRepository;
|
|
30
|
-
exports.ProjectRepository = ProjectRepository = tslib_1.__decorate([
|
|
31
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
32
|
-
], ProjectRepository);
|
|
33
|
-
//# sourceMappingURL=project.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/project/project.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,gEAAkF;AAGlF,MAAa,gBAAiB,SAAQ,iBAAkD;IACtF,SAAS,CAAC,MAAyC;QACjD,OAAO;YACL,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;SACtC,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,MAAe;QACrB,OAAO;YACL,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;SAC1C,CAAC;IACJ,CAAC;CACF;AAdD,4CAcC;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,uBAAwB;IAAxD;;QACK,eAAU,GAAG,SAAS,CAAC;QACvB,cAAS,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAC/C,CAAC;CAAA,CAAA;AAHY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,iBAAiB,CAG7B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RedisConfig as _RedisConfig } from '@xxmachina/common/_shared/meta/redis';
|
|
2
|
-
export interface RedisConfig {
|
|
3
|
-
redis: _RedisConfig;
|
|
4
|
-
}
|
|
5
|
-
export declare function provideRedisConfig(config: RedisConfig): {
|
|
6
|
-
provide: import("@angular/core").InjectionToken<_RedisConfig>;
|
|
7
|
-
useValue: _RedisConfig;
|
|
8
|
-
}[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.provideRedisConfig = provideRedisConfig;
|
|
4
|
-
const redis_1 = require("@xxmachina/common/_shared/meta/redis");
|
|
5
|
-
function provideRedisConfig(config) {
|
|
6
|
-
return [
|
|
7
|
-
(0, redis_1.provideRedisConfig)(config.redis),
|
|
8
|
-
];
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=redis.config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redis.config.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/redis.config.ts"],"names":[],"mappings":";;AAMA,gDAIC;AAVD,gEAA8H;AAM9H,SAAgB,kBAAkB,CAAC,MAAmB;IACpD,OAAO;QACL,IAAA,0BAAmB,EAAC,MAAM,CAAC,KAAK,CAAC;KAClC,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OperatorRepository } from "./operator";
|
|
2
|
-
import { ProjectRepository } from "./project";
|
|
3
|
-
import { SpecRepository } from "./spec";
|
|
4
|
-
import { SystemRepository } from "./system";
|
|
5
|
-
export declare class RedisService {
|
|
6
|
-
readonly operator: OperatorRepository;
|
|
7
|
-
readonly project: ProjectRepository;
|
|
8
|
-
readonly spec: SpecRepository;
|
|
9
|
-
readonly system: SystemRepository;
|
|
10
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RedisService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const operator_1 = require("./operator");
|
|
7
|
-
const project_1 = require("./project");
|
|
8
|
-
const spec_1 = require("./spec");
|
|
9
|
-
const system_1 = require("./system");
|
|
10
|
-
let RedisService = class RedisService {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.operator = (0, core_1.inject)(operator_1.OperatorRepository);
|
|
13
|
-
this.project = (0, core_1.inject)(project_1.ProjectRepository);
|
|
14
|
-
this.spec = (0, core_1.inject)(spec_1.SpecRepository);
|
|
15
|
-
this.system = (0, core_1.inject)(system_1.SystemRepository);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
exports.RedisService = RedisService;
|
|
19
|
-
exports.RedisService = RedisService = tslib_1.__decorate([
|
|
20
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
21
|
-
], RedisService);
|
|
22
|
-
//# sourceMappingURL=redis.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redis.service.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/redis.service.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,yCAAgD;AAChD,uCAA8C;AAC9C,iCAAwC;AACxC,qCAA4C;AAGrC,IAAM,YAAY,GAAlB,MAAM,YAAY;IAAlB;QACI,aAAQ,GAAG,IAAA,aAAM,EAAC,6BAAkB,CAAC,CAAC;QACtC,YAAO,GAAG,IAAA,aAAM,EAAC,2BAAiB,CAAC,CAAC;QACpC,SAAI,GAAG,IAAA,aAAM,EAAC,qBAAc,CAAC,CAAC;QAC9B,WAAM,GAAG,IAAA,aAAM,EAAC,yBAAgB,CAAC,CAAC;IAC7C,CAAC;CAAA,CAAA;AALY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,YAAY,CAKxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './spec.repository';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/spec/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
|
-
import { RedisConfig, RedisRepository } from '@xxmachina/common/_shared/meta/redis';
|
|
3
|
-
import { Spec } from "@xxmachina/common/domain/models";
|
|
4
|
-
export declare const VECTOR_SIZE: InjectionToken<unknown>;
|
|
5
|
-
export declare class SpecRepository extends RedisRepository<Spec> {
|
|
6
|
-
private vectorSize;
|
|
7
|
-
constructor(config: RedisConfig, vectorSize: number);
|
|
8
|
-
protected entityName: string;
|
|
9
|
-
create(spec: Spec): Promise<Spec>;
|
|
10
|
-
get(id: string): Promise<Spec>;
|
|
11
|
-
update(spec: Partial<Spec>): Promise<void>;
|
|
12
|
-
get indexName(): string;
|
|
13
|
-
makeIndex(): Promise<void>;
|
|
14
|
-
search(operatorId: string, embeddings: number[], n?: number): Promise<Spec[]>;
|
|
15
|
-
private toBuffer;
|
|
16
|
-
private fromBuffer;
|
|
17
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SpecRepository = exports.VECTOR_SIZE = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const redis_1 = require("@xxmachina/common/_shared/meta/redis");
|
|
7
|
-
const crypto_1 = require("@xxmachina/common/utils/crypto");
|
|
8
|
-
exports.VECTOR_SIZE = new core_1.InjectionToken('[@xxmachina/common] VECTOR_SIZE');
|
|
9
|
-
// MEMO(nontangent): Optionalデコレーターが動かないので、ここで初期化する。
|
|
10
|
-
exports.VECTOR_SIZE['Θopt'] = true;
|
|
11
|
-
let SpecRepository = class SpecRepository extends redis_1.RedisRepository {
|
|
12
|
-
constructor(config, vectorSize) {
|
|
13
|
-
var _a;
|
|
14
|
-
super(config);
|
|
15
|
-
this.vectorSize = vectorSize;
|
|
16
|
-
this.entityName = 'spec';
|
|
17
|
-
(_a = this.vectorSize) !== null && _a !== void 0 ? _a : (this.vectorSize = 1536);
|
|
18
|
-
}
|
|
19
|
-
create(spec) {
|
|
20
|
-
const _super = Object.create(null, {
|
|
21
|
-
create: { get: () => super.create }
|
|
22
|
-
});
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
return _super.create.call(this, Object.assign(Object.assign({}, spec), { embeddings: this.toBuffer(spec.embeddings) }));
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
get(id) {
|
|
28
|
-
const _super = Object.create(null, {
|
|
29
|
-
get: { get: () => super.get }
|
|
30
|
-
});
|
|
31
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
return _super.get.call(this, id).then(spec => (Object.assign(Object.assign({}, spec), { embeddings: this.fromBuffer(spec.embeddings) })));
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
update(spec) {
|
|
36
|
-
const _super = Object.create(null, {
|
|
37
|
-
update: { get: () => super.update }
|
|
38
|
-
});
|
|
39
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
return _super.update.call(this, Object.assign(Object.assign({}, spec), { embeddings: this.toBuffer(spec.embeddings) }));
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
get indexName() {
|
|
44
|
-
return `index:${this.entityName}`;
|
|
45
|
-
}
|
|
46
|
-
makeIndex() {
|
|
47
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
// await this.init();
|
|
49
|
-
// await this.client.ft.dropIndex(this.indexName).catch(() => {});
|
|
50
|
-
// await this.client.ft.create(this.indexName, {
|
|
51
|
-
// id: SchemaFieldTypes.TEXT,
|
|
52
|
-
// operatorId: SchemaFieldTypes.TEXT,
|
|
53
|
-
// embeddings: {
|
|
54
|
-
// type: SchemaFieldTypes.VECTOR,
|
|
55
|
-
// ALGORITHM: VectorAlgorithms.HNSW,
|
|
56
|
-
// TYPE: 'FLOAT32',
|
|
57
|
-
// DIM: this.vectorSize,
|
|
58
|
-
// DISTANCE_METRIC: 'COSINE',
|
|
59
|
-
// },
|
|
60
|
-
// });
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
search(operatorId_1, embeddings_1) {
|
|
64
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* (operatorId, embeddings, n = 3) {
|
|
65
|
-
const query = `(@operatorId:$OPERATOR_ID)=>[KNN $N @embeddings $BLOB AS score]`;
|
|
66
|
-
const results = yield this.client.ft.search(this.indexName, query, {
|
|
67
|
-
PARAMS: {
|
|
68
|
-
BLOB: this.toBuffer(embeddings),
|
|
69
|
-
N: n,
|
|
70
|
-
OPERATOR_ID: operatorId,
|
|
71
|
-
},
|
|
72
|
-
SORTBY: 'score',
|
|
73
|
-
DIALECT: 2,
|
|
74
|
-
RETURN: ['score']
|
|
75
|
-
});
|
|
76
|
-
return Promise.all(results.documents.map(doc => this.get(doc.id.slice(this.entityName.length + 1))));
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
toBuffer(embedding) {
|
|
80
|
-
return (0, crypto_1.float32Buffer)(embedding);
|
|
81
|
-
}
|
|
82
|
-
fromBuffer(buffer) {
|
|
83
|
-
return (0, crypto_1.bufferFloat32)(buffer);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
exports.SpecRepository = SpecRepository;
|
|
87
|
-
exports.SpecRepository = SpecRepository = tslib_1.__decorate([
|
|
88
|
-
(0, core_1.Injectable)({ providedIn: 'root' }),
|
|
89
|
-
tslib_1.__param(0, (0, core_1.Inject)(redis_1.REDIS_CONFIG)),
|
|
90
|
-
tslib_1.__param(1, (0, core_1.Optional)()),
|
|
91
|
-
tslib_1.__param(1, (0, core_1.Inject)(exports.VECTOR_SIZE)),
|
|
92
|
-
tslib_1.__metadata("design:paramtypes", [Object, Number])
|
|
93
|
-
], SpecRepository);
|
|
94
|
-
//# sourceMappingURL=spec.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/spec/spec.repository.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './system.repository';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/system/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemRepository = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
let SystemRepository = class SystemRepository {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.entityName = 'system';
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
exports.SystemRepository = SystemRepository;
|
|
12
|
-
exports.SystemRepository = SystemRepository = tslib_1.__decorate([
|
|
13
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
14
|
-
], SystemRepository);
|
|
15
|
-
//# sourceMappingURL=system.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/system/system.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAGpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAAtB;QACK,eAAU,GAAG,QAAQ,CAAC;IAClC,CAAC;CAAA,CAAA;AAFY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,gBAAgB,CAE5B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NotionConfig } from "./notion";
|
|
2
|
-
import { RedisConfig } from "./redis";
|
|
3
|
-
export interface RepositoryConfig {
|
|
4
|
-
notion: NotionConfig;
|
|
5
|
-
redis: RedisConfig;
|
|
6
|
-
}
|
|
7
|
-
export declare function provideRepositoryConfig(config: RepositoryConfig): (({
|
|
8
|
-
provide: import("@angular/core").InjectionToken<import("./notion/contract").ContractConfig>;
|
|
9
|
-
useValue: import("./notion/contract").ContractConfig;
|
|
10
|
-
} | {
|
|
11
|
-
provide: import("@angular/core").InjectionToken<string>;
|
|
12
|
-
useValue: string;
|
|
13
|
-
})[] | {
|
|
14
|
-
provide: import("@angular/core").InjectionToken<import("../../_shared/meta/redis").RedisConfig>;
|
|
15
|
-
useValue: import("../../_shared/meta/redis").RedisConfig;
|
|
16
|
-
}[])[];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.provideRepositoryConfig = provideRepositoryConfig;
|
|
4
|
-
const notion_1 = require("./notion");
|
|
5
|
-
const redis_1 = require("./redis");
|
|
6
|
-
function provideRepositoryConfig(config) {
|
|
7
|
-
return [
|
|
8
|
-
(0, notion_1.provideNotionConfig)(config.notion),
|
|
9
|
-
(0, redis_1.provideRedisConfig)(config.redis),
|
|
10
|
-
];
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=repository.config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repository.config.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/repository.config.ts"],"names":[],"mappings":";;AAQA,0DAKC;AAbD,qCAA6D;AAC7D,mCAA0D;AAO1D,SAAgB,uBAAuB,CAAC,MAAwB;IAC9D,OAAO;QACL,IAAA,4BAAmB,EAAC,MAAM,CAAC,MAAM,CAAC;QAClC,IAAA,0BAAkB,EAAC,MAAM,CAAC,KAAK,CAAC;KACjC,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FirestoreRepository } from "./firestore";
|
|
2
|
-
import { NotionRepository } from "./notion";
|
|
3
|
-
import { RedisService } from "./redis";
|
|
4
|
-
export declare class RepositoriesService {
|
|
5
|
-
readonly firestore: FirestoreRepository;
|
|
6
|
-
readonly notion: NotionRepository;
|
|
7
|
-
readonly redis: RedisService;
|
|
8
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RepositoriesService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@angular/core");
|
|
6
|
-
const firestore_1 = require("./firestore");
|
|
7
|
-
const notion_1 = require("./notion");
|
|
8
|
-
const redis_1 = require("./redis");
|
|
9
|
-
let RepositoriesService = class RepositoriesService {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.firestore = (0, core_1.inject)(firestore_1.FirestoreRepository);
|
|
12
|
-
this.notion = (0, core_1.inject)(notion_1.NotionRepository);
|
|
13
|
-
this.redis = (0, core_1.inject)(redis_1.RedisService);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.RepositoriesService = RepositoriesService;
|
|
17
|
-
exports.RepositoriesService = RepositoriesService = tslib_1.__decorate([
|
|
18
|
-
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
19
|
-
], RepositoriesService);
|
|
20
|
-
//# sourceMappingURL=repository.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repository.service.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/repository.service.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,2CAAkD;AAClD,qCAA4C;AAC5C,mCAAuC;AAGhC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAAzB;QACI,cAAS,GAAG,IAAA,aAAM,EAAC,+BAAmB,CAAC,CAAC;QACxC,WAAM,GAAG,IAAA,aAAM,EAAC,yBAAgB,CAAC,CAAC;QAClC,UAAK,GAAG,IAAA,aAAM,EAAC,oBAAY,CAAC,CAAC;IACxC,CAAC;CAAA,CAAA;AAJY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,mBAAmB,CAI/B"}
|
package/stores/index.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.provideQueryStore = provideQueryStore;
|
|
4
|
-
exports.provideResourceStore = provideResourceStore;
|
|
5
|
-
exports.getFirestoreQueryStore = getFirestoreQueryStore;
|
|
6
|
-
exports.getFirestoreResourceStore = getFirestoreResourceStore;
|
|
7
|
-
exports.getHasuraQueryStore = getHasuraQueryStore;
|
|
8
|
-
exports.getHasuraResourceStore = getHasuraResourceStore;
|
|
9
|
-
const core_1 = require("@angular/core");
|
|
10
|
-
const entities_1 = require("@ng-atomic/common/stores/entities");
|
|
11
|
-
const auth_1 = require("@xxmachina/common/auth");
|
|
12
|
-
const rxjs_1 = require("rxjs");
|
|
13
|
-
const models_1 = require("@xxmachina/common/domain/models");
|
|
14
|
-
const query_1 = require("@xxmachina/common/infrastructure/query/firestore/query");
|
|
15
|
-
const resource_1 = require("@xxmachina/common/infrastructure/query/firestore/resource");
|
|
16
|
-
const query_2 = require("@xxmachina/common/infrastructure/repository/hasura/query");
|
|
17
|
-
const resource_2 = require("@xxmachina/common/infrastructure/repository/hasura/resource");
|
|
18
|
-
const query_3 = require("@xxmachina/common/infrastructure/repository/firestore/query");
|
|
19
|
-
const resource_3 = require("@xxmachina/common/infrastructure/repository/firestore/resource");
|
|
20
|
-
function provideQueryStore(useFactory) {
|
|
21
|
-
return (0, entities_1.provideEntityStoreAdapter)(models_1.Query, useFactory);
|
|
22
|
-
}
|
|
23
|
-
function provideResourceStore(useFactory) {
|
|
24
|
-
return (0, entities_1.provideEntityStoreAdapter)(models_1.Resource, useFactory);
|
|
25
|
-
}
|
|
26
|
-
function getFirestoreQueryStore() {
|
|
27
|
-
const query = (0, core_1.inject)(query_1.QueryFirestoreQuery);
|
|
28
|
-
const repo = (0, core_1.inject)(query_3.QueryFirestoreRepository);
|
|
29
|
-
return {
|
|
30
|
-
list: () => query.listChanges({ projectId: 'default' }).pipe((0, rxjs_1.map)(items => items.map((item) => models_1.QueryHelper.convertToV2(item)))),
|
|
31
|
-
create: (item) => repo.create(item),
|
|
32
|
-
update: (item) => repo.update(item).then(() => { }),
|
|
33
|
-
save: (item) => repo.save(item).then(() => item),
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function getFirestoreResourceStore() {
|
|
37
|
-
const query = (0, core_1.inject)(resource_1.ResourceFirestoreQuery);
|
|
38
|
-
const repo = (0, core_1.inject)(resource_3.ResourceFirestoreRepository);
|
|
39
|
-
return {
|
|
40
|
-
list: () => query.listChanges({ projectId: 'default' }),
|
|
41
|
-
create: (item) => repo.create(item),
|
|
42
|
-
update: (item) => repo.update(item).then(() => { }),
|
|
43
|
-
save: (item) => repo.save(item).then(() => item),
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function getHasuraQueryStore() {
|
|
47
|
-
const repo = (0, core_1.inject)(query_2.QueryHasuraRepository);
|
|
48
|
-
const auth = (0, core_1.inject)(auth_1.AuthService);
|
|
49
|
-
return {
|
|
50
|
-
list: () => auth.auth$.pipe((0, rxjs_1.map)(auth => !!auth), (0, rxjs_1.distinctUntilChanged)(), (0, rxjs_1.switchMap)((isAuthenticated) => isAuthenticated ? repo.listChanges() : (0, rxjs_1.of)([]))),
|
|
51
|
-
create: (item) => repo.create(item),
|
|
52
|
-
update: (item) => repo.update(item).then(() => { }),
|
|
53
|
-
save: (item) => repo.save(item).then(() => item),
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function getHasuraResourceStore() {
|
|
57
|
-
const repo = (0, core_1.inject)(resource_2.ResourceHasuraRepository);
|
|
58
|
-
const auth = (0, core_1.inject)(auth_1.AuthService);
|
|
59
|
-
return {
|
|
60
|
-
list: () => auth.auth$.pipe((0, rxjs_1.map)(auth => !!auth), (0, rxjs_1.distinctUntilChanged)(), (0, rxjs_1.switchMap)((isAuthenticated) => isAuthenticated ? repo.listChanges() : (0, rxjs_1.of)([]))),
|
|
61
|
-
create: (item) => repo.create(item),
|
|
62
|
-
update: (item) => repo.update(item).then(() => { }),
|
|
63
|
-
save: (item) => repo.save(item).then(() => item),
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=index.js.map
|
package/stores/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@xxmachina/common/src/lib/stores/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { InfrastructureService } from "@xxmachina/common/infrastructure";
|
|
2
|
-
import { AssistantOperator } from "@xxmachina/common/domain/models";
|
|
3
|
-
export declare class AssistantService {
|
|
4
|
-
private infra;
|
|
5
|
-
constructor(infra: InfrastructureService);
|
|
6
|
-
list(): Promise<AssistantOperator[]>;
|
|
7
|
-
create(assistant: AssistantOperator): Promise<AssistantOperator>;
|
|
8
|
-
update(assistant: AssistantOperator): Promise<void>;
|
|
9
|
-
delete(assistantid: string): Promise<void>;
|
|
10
|
-
operate(assistantId: string, input: string): Promise<string>;
|
|
11
|
-
private scrape;
|
|
12
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AssistantService = 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 AssistantService = class AssistantService {
|
|
9
|
-
constructor(infra) {
|
|
10
|
-
this.infra = infra;
|
|
11
|
-
}
|
|
12
|
-
list() {
|
|
13
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
return yield this.infra.repo.redis.operator.list();
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
create(assistant) {
|
|
18
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
return this.infra.repo.redis.operator.create(assistant);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
update(assistant) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
return this.infra.repo.redis.operator.update(assistant);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
delete(assistantid) {
|
|
28
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
return this.infra.repo.redis.operator.delete(assistantid);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
operate(assistantId, input) {
|
|
33
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const project = yield this.infra.repo.redis.project.get('default');
|
|
35
|
-
const assistant = yield this.infra.repo.redis.operator.get(assistantId);
|
|
36
|
-
const adapter = this.infra.external.getAiAdapter(project.settings.ai);
|
|
37
|
-
const embeddings = yield adapter.embedding(input);
|
|
38
|
-
const specs = yield this.infra.repo.redis.spec.search(assistant.id, embeddings);
|
|
39
|
-
const messages = [
|
|
40
|
-
{ role: 'system', content: assistant.description },
|
|
41
|
-
...specs.map(spec => [
|
|
42
|
-
{ role: 'system', content: spec.input },
|
|
43
|
-
{ role: 'assistant', content: spec.output },
|
|
44
|
-
]).flat(),
|
|
45
|
-
{ role: 'user', content: input },
|
|
46
|
-
];
|
|
47
|
-
console.debug('messages', messages);
|
|
48
|
-
const output_ = yield adapter.chatComplete(messages);
|
|
49
|
-
const output = this.scrape(assistant.outputInterfaceId, output_);
|
|
50
|
-
yield this.infra.repo.redis.spec.create({
|
|
51
|
-
input, output, embeddings, id: (0, crypto_1.hash)(input), operatorId: assistant.id,
|
|
52
|
-
}).catch(() => { });
|
|
53
|
-
return output;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
scrape(interface_, output) {
|
|
57
|
-
var _a, _b;
|
|
58
|
-
if (interface_ === 'interface:codeblock') {
|
|
59
|
-
const [_, ...lines] = ((_b = (_a = output.split('```')) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '').split('\n');
|
|
60
|
-
return `\`\`\`\n${lines.join('\n')}\n\`\`\``;
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return output;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
exports.AssistantService = AssistantService;
|
|
68
|
-
exports.AssistantService = AssistantService = tslib_1.__decorate([
|
|
69
|
-
(0, core_1.Injectable)({ providedIn: 'root' }),
|
|
70
|
-
tslib_1.__metadata("design:paramtypes", [infrastructure_1.InfrastructureService])
|
|
71
|
-
], AssistantService);
|
|
72
|
-
//# sourceMappingURL=assistant.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assistant.service.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/assistant/assistant.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/@xxmachina/common/src/lib/usecase/assistant/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export interface DatabaseConfig {
|
|
3
|
-
notionApiKey: string;
|
|
4
|
-
databaseIdToName: {
|
|
5
|
-
[key: string]: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export declare function provideDatabaseConfig(useFactory: () => DatabaseConfig): {
|
|
9
|
-
provide: InjectionToken<DatabaseConfig>;
|
|
10
|
-
useFactory: () => DatabaseConfig;
|
|
11
|
-
};
|
|
12
|
-
export declare class DatabaseService {
|
|
13
|
-
protected config: DatabaseConfig;
|
|
14
|
-
protected notion: import("@nx-ddd/notion/notion/notion.service.impl").NotionService;
|
|
15
|
-
get(databaseId: string): Promise<import("@notionhq/client/build/src/api-endpoints").GetDatabaseResponse>;
|
|
16
|
-
update(databaseId: string, body: any): Promise<import("@notionhq/client/build/src/api-endpoints").UpdateDatabaseResponse>;
|
|
17
|
-
listDatabases(): Promise<any[]>;
|
|
18
|
-
generateMermaidER(): Promise<string>;
|
|
19
|
-
getPageItems(dbId: string, name: string): Promise<any[]>;
|
|
20
|
-
getParent(parent: {
|
|
21
|
-
type: 'database_id';
|
|
22
|
-
database_id: string;
|
|
23
|
-
} | {
|
|
24
|
-
type: 'page_id';
|
|
25
|
-
page_id: string;
|
|
26
|
-
} | {
|
|
27
|
-
type: 'block_id';
|
|
28
|
-
block_id: string;
|
|
29
|
-
}): Promise<import("@notionhq/client/build/src/api-endpoints").PartialDatabaseObjectResponse | import("@notionhq/client/build/src/api-endpoints").PartialPageObjectResponse | import("@notionhq/client/build/src/api-endpoints").PartialBlockObjectResponse>;
|
|
30
|
-
getPath(obj: any): Promise<string>;
|
|
31
|
-
}
|