@xxmachina/common 19.24.1 → 19.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/xxmachina-common-_shared-auth.mjs.map +1 -1
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs +3 -3
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs.map +1 -1
- package/fesm2022/xxmachina-common-_shared-meta.mjs.map +1 -1
- package/fesm2022/xxmachina-common-auth-azure.mjs +4 -4
- package/fesm2022/xxmachina-common-auth-azure.mjs.map +1 -1
- package/fesm2022/xxmachina-common-auth-core.mjs +3 -3
- package/fesm2022/xxmachina-common-auth-core.mjs.map +1 -1
- package/fesm2022/xxmachina-common-auth-firebase.mjs.map +1 -1
- package/fesm2022/xxmachina-common-auth-passports-anonymous.mjs.map +1 -1
- package/fesm2022/xxmachina-common-auth-passports-firebase.mjs.map +1 -1
- package/fesm2022/xxmachina-common-auth-passports-internal.mjs.map +1 -1
- package/fesm2022/xxmachina-common-auth-passports-msal.mjs.map +1 -1
- package/fesm2022/xxmachina-common-auth-passports.mjs.map +1 -1
- package/fesm2022/xxmachina-common-auth.mjs +3 -3
- package/fesm2022/xxmachina-common-auth.mjs.map +1 -1
- package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs.map +1 -1
- package/fesm2022/xxmachina-common-domain-builder.mjs.map +1 -1
- package/fesm2022/xxmachina-common-domain-models-presenter.mjs.map +1 -1
- package/fesm2022/xxmachina-common-domain-models.mjs.map +1 -1
- package/fesm2022/xxmachina-common-domain.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-converters-google.mjs +3 -3
- package/fesm2022/xxmachina-common-infra-converters-google.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs +5 -5
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-external-resend.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-external.mjs +3 -3
- package/fesm2022/xxmachina-common-infra-external.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs +6 -6
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs +3 -3
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs +15 -15
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs +6 -6
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs +15 -15
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra.mjs +114 -111
- package/fesm2022/xxmachina-common-infra.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-domain-builders.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-domain-models.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-domain-resolvers.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-domain.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-usecase-contract.mjs +3 -3
- package/fesm2022/xxmachina-common-invoice-usecase-contract.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-usecase-invoice.mjs +3 -3
- package/fesm2022/xxmachina-common-invoice-usecase-invoice.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-usecase-order.mjs +3 -3
- package/fesm2022/xxmachina-common-invoice-usecase-order.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-usecase-partner.mjs +3 -3
- package/fesm2022/xxmachina-common-invoice-usecase-partner.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-graphql.mjs +9 -9
- package/fesm2022/xxmachina-common-services-graphql.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-query-config.mjs +3 -3
- package/fesm2022/xxmachina-common-services-query-config.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-query.mjs +6 -6
- package/fesm2022/xxmachina-common-services-query.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-speech.mjs +10 -10
- package/fesm2022/xxmachina-common-services-speech.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-transformer.mjs +3 -3
- package/fesm2022/xxmachina-common-services-transformer.mjs.map +1 -1
- package/fesm2022/xxmachina-common-stores-firestore.mjs.map +1 -1
- package/fesm2022/xxmachina-common-stores-hasura.mjs.map +1 -1
- package/fesm2022/xxmachina-common-stores-inmemory.mjs +3 -3
- package/fesm2022/xxmachina-common-stores-inmemory.mjs.map +1 -1
- package/fesm2022/xxmachina-common-stores.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-assistant.mjs +3 -3
- package/fesm2022/xxmachina-common-usecase-assistant.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-database.mjs +3 -3
- package/fesm2022/xxmachina-common-usecase-database.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-graphql.mjs +3 -3
- package/fesm2022/xxmachina-common-usecase-graphql.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-link.mjs +3 -3
- package/fesm2022/xxmachina-common-usecase-link.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-project.mjs +3 -3
- package/fesm2022/xxmachina-common-usecase-project.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-spec.mjs +3 -3
- package/fesm2022/xxmachina-common-usecase-spec.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase.mjs +18 -18
- package/fesm2022/xxmachina-common-usecase.mjs.map +1 -1
- package/fesm2022/xxmachina-common-utils-crypto.mjs.map +1 -1
- package/fesm2022/xxmachina-common-utils.mjs.map +1 -1
- package/fesm2022/xxmachina-common.mjs.map +1 -1
- package/package.json +143 -143
- package/{_shared/auth/index.d.ts → types/xxmachina-common-_shared-auth.d.ts} +1 -1
- package/types/xxmachina-common-_shared-auth.d.ts.map +1 -0
- package/{_shared/meta/redis/index.d.ts → types/xxmachina-common-_shared-meta-redis.d.ts} +1 -1
- package/types/xxmachina-common-_shared-meta-redis.d.ts.map +1 -0
- package/{_shared/meta/index.d.ts → types/xxmachina-common-_shared-meta.d.ts} +1 -1
- package/types/xxmachina-common-_shared-meta.d.ts.map +1 -0
- package/{auth/azure/index.d.ts → types/xxmachina-common-auth-azure.d.ts} +1 -1
- package/types/xxmachina-common-auth-azure.d.ts.map +1 -0
- package/{auth/index.d.ts → types/xxmachina-common-auth-core.d.ts} +1 -1
- package/types/xxmachina-common-auth-core.d.ts.map +1 -0
- package/{auth/firebase/index.d.ts → types/xxmachina-common-auth-firebase.d.ts} +1 -1
- package/types/xxmachina-common-auth-firebase.d.ts.map +1 -0
- package/{auth/passports/anonymous/index.d.ts → types/xxmachina-common-auth-passports-anonymous.d.ts} +1 -1
- package/types/xxmachina-common-auth-passports-anonymous.d.ts.map +1 -0
- package/{auth/passports/firebase/index.d.ts → types/xxmachina-common-auth-passports-firebase.d.ts} +1 -1
- package/types/xxmachina-common-auth-passports-firebase.d.ts.map +1 -0
- package/{auth/passports/internal/index.d.ts → types/xxmachina-common-auth-passports-internal.d.ts} +1 -1
- package/types/xxmachina-common-auth-passports-internal.d.ts.map +1 -0
- package/{auth/passports/msal/index.d.ts → types/xxmachina-common-auth-passports-msal.d.ts} +1 -1
- package/types/xxmachina-common-auth-passports-msal.d.ts.map +1 -0
- package/{auth/passports/index.d.ts → types/xxmachina-common-auth-passports.d.ts} +1 -1
- package/types/xxmachina-common-auth-passports.d.ts.map +1 -0
- package/{auth/core/index.d.ts → types/xxmachina-common-auth.d.ts} +1 -1
- package/types/xxmachina-common-auth.d.ts.map +1 -0
- package/{domain/builder/screen-item/index.d.ts → types/xxmachina-common-domain-builder-screen-item.d.ts} +1 -1
- package/types/xxmachina-common-domain-builder-screen-item.d.ts.map +1 -0
- package/{domain/builder/index.d.ts → types/xxmachina-common-domain-builder.d.ts} +1 -1
- package/types/xxmachina-common-domain-builder.d.ts.map +1 -0
- package/{domain/models/presenter/index.d.ts → types/xxmachina-common-domain-models-presenter.d.ts} +1 -1
- package/types/xxmachina-common-domain-models-presenter.d.ts.map +1 -0
- package/{domain/models/index.d.ts → types/xxmachina-common-domain-models.d.ts} +1 -1
- package/types/xxmachina-common-domain-models.d.ts.map +1 -0
- package/{domain/index.d.ts → types/xxmachina-common-domain.d.ts} +1 -1
- package/types/xxmachina-common-domain.d.ts.map +1 -0
- package/{infra/converters/google/index.d.ts → types/xxmachina-common-infra-converters-google.d.ts} +1 -1
- package/types/xxmachina-common-infra-converters-google.d.ts.map +1 -0
- package/{infra/external/data-connect/index.d.ts → types/xxmachina-common-infra-external-data-connect.d.ts} +1 -1
- package/types/xxmachina-common-infra-external-data-connect.d.ts.map +1 -0
- package/{infra/external/quick-js/index.d.ts → types/xxmachina-common-infra-external-quick-js.d.ts} +1 -1
- package/types/xxmachina-common-infra-external-quick-js.d.ts.map +1 -0
- package/{infra/external/resend/index.d.ts → types/xxmachina-common-infra-external-resend.d.ts} +1 -1
- package/types/xxmachina-common-infra-external-resend.d.ts.map +1 -0
- package/{infra/external/index.d.ts → types/xxmachina-common-infra-external.d.ts} +3 -3
- package/types/xxmachina-common-infra-external.d.ts.map +1 -0
- package/{infra/query/firestore/index.d.ts → types/xxmachina-common-infra-query-firestore.d.ts} +1 -1
- package/types/xxmachina-common-infra-query-firestore.d.ts.map +1 -0
- package/{infra/query/hasura/index.d.ts → types/xxmachina-common-infra-query-hasura.d.ts} +1 -1
- package/types/xxmachina-common-infra-query-hasura.d.ts.map +1 -0
- package/{infra/repository/dataconnect/index.d.ts → types/xxmachina-common-infra-repository-dataconnect.d.ts} +1 -1
- package/types/xxmachina-common-infra-repository-dataconnect.d.ts.map +1 -0
- package/{infra/repository/firestore/index.d.ts → types/xxmachina-common-infra-repository-firestore.d.ts} +1 -1
- package/types/xxmachina-common-infra-repository-firestore.d.ts.map +1 -0
- package/{infra/repository/hasura/index.d.ts → types/xxmachina-common-infra-repository-hasura.d.ts} +1 -1
- package/types/xxmachina-common-infra-repository-hasura.d.ts.map +1 -0
- package/{infra/repository/notion/index.d.ts → types/xxmachina-common-infra-repository-notion.d.ts} +1 -1
- package/types/xxmachina-common-infra-repository-notion.d.ts.map +1 -0
- package/{infra/index.d.ts → types/xxmachina-common-infra.d.ts} +73 -44
- package/types/xxmachina-common-infra.d.ts.map +1 -0
- package/{invoice/domain/builders/index.d.ts → types/xxmachina-common-invoice-domain-builders.d.ts} +1 -1
- package/types/xxmachina-common-invoice-domain-builders.d.ts.map +1 -0
- package/{invoice/domain/models/index.d.ts → types/xxmachina-common-invoice-domain-models.d.ts} +1 -1
- package/types/xxmachina-common-invoice-domain-models.d.ts.map +1 -0
- package/{invoice/domain/resolvers/index.d.ts → types/xxmachina-common-invoice-domain-resolvers.d.ts} +1 -1
- package/types/xxmachina-common-invoice-domain-resolvers.d.ts.map +1 -0
- package/{invoice/domain/index.d.ts → types/xxmachina-common-invoice-domain.d.ts} +1 -1
- package/types/xxmachina-common-invoice-domain.d.ts.map +1 -0
- package/{invoice/usecase/contract/index.d.ts → types/xxmachina-common-invoice-usecase-contract.d.ts} +1 -1
- package/types/xxmachina-common-invoice-usecase-contract.d.ts.map +1 -0
- package/{invoice/usecase/invoice/index.d.ts → types/xxmachina-common-invoice-usecase-invoice.d.ts} +1 -1
- package/types/xxmachina-common-invoice-usecase-invoice.d.ts.map +1 -0
- package/{invoice/usecase/order/index.d.ts → types/xxmachina-common-invoice-usecase-order.d.ts} +1 -1
- package/types/xxmachina-common-invoice-usecase-order.d.ts.map +1 -0
- package/{invoice/usecase/partner/index.d.ts → types/xxmachina-common-invoice-usecase-partner.d.ts} +1 -1
- package/types/xxmachina-common-invoice-usecase-partner.d.ts.map +1 -0
- package/{services/graphql/index.d.ts → types/xxmachina-common-services-graphql.d.ts} +1 -1
- package/types/xxmachina-common-services-graphql.d.ts.map +1 -0
- package/{services/query/config/index.d.ts → types/xxmachina-common-services-query-config.d.ts} +1 -1
- package/types/xxmachina-common-services-query-config.d.ts.map +1 -0
- package/{services/query/index.d.ts → types/xxmachina-common-services-query.d.ts} +1 -1
- package/types/xxmachina-common-services-query.d.ts.map +1 -0
- package/{services/speech/index.d.ts → types/xxmachina-common-services-speech.d.ts} +1 -1
- package/types/xxmachina-common-services-speech.d.ts.map +1 -0
- package/{services/transformer/index.d.ts → types/xxmachina-common-services-transformer.d.ts} +1 -1
- package/types/xxmachina-common-services-transformer.d.ts.map +1 -0
- package/{stores/firestore/index.d.ts → types/xxmachina-common-stores-firestore.d.ts} +1 -1
- package/types/xxmachina-common-stores-firestore.d.ts.map +1 -0
- package/{stores/hasura/index.d.ts → types/xxmachina-common-stores-hasura.d.ts} +1 -1
- package/types/xxmachina-common-stores-hasura.d.ts.map +1 -0
- package/{stores/inmemory/index.d.ts → types/xxmachina-common-stores-inmemory.d.ts} +1 -1
- package/types/xxmachina-common-stores-inmemory.d.ts.map +1 -0
- package/{stores/index.d.ts → types/xxmachina-common-stores.d.ts} +6 -6
- package/types/xxmachina-common-stores.d.ts.map +1 -0
- package/{usecase/assistant/index.d.ts → types/xxmachina-common-usecase-assistant.d.ts} +1 -1
- package/types/xxmachina-common-usecase-assistant.d.ts.map +1 -0
- package/{usecase/database/index.d.ts → types/xxmachina-common-usecase-database.d.ts} +1 -1
- package/types/xxmachina-common-usecase-database.d.ts.map +1 -0
- package/{usecase/graphql/index.d.ts → types/xxmachina-common-usecase-graphql.d.ts} +1 -1
- package/types/xxmachina-common-usecase-graphql.d.ts.map +1 -0
- package/{usecase/link/index.d.ts → types/xxmachina-common-usecase-link.d.ts} +1 -1
- package/types/xxmachina-common-usecase-link.d.ts.map +1 -0
- package/{usecase/project/index.d.ts → types/xxmachina-common-usecase-project.d.ts} +1 -1
- package/types/xxmachina-common-usecase-project.d.ts.map +1 -0
- package/{usecase/spec/index.d.ts → types/xxmachina-common-usecase-spec.d.ts} +1 -1
- package/types/xxmachina-common-usecase-spec.d.ts.map +1 -0
- package/{usecase/index.d.ts → types/xxmachina-common-usecase.d.ts} +1 -1
- package/types/xxmachina-common-usecase.d.ts.map +1 -0
- package/{utils/crypto/index.d.ts → types/xxmachina-common-utils-crypto.d.ts} +1 -1
- package/types/xxmachina-common-utils-crypto.d.ts.map +1 -0
- package/{utils/index.d.ts → types/xxmachina-common-utils.d.ts} +1 -1
- package/types/xxmachina-common-utils.d.ts.map +1 -0
- package/types/xxmachina-common.d.ts +2 -0
- package/types/xxmachina-common.d.ts.map +1 -0
- package/_shared/auth/index.d.ts.map +0 -1
- package/_shared/meta/index.d.ts.map +0 -1
- package/_shared/meta/redis/index.d.ts.map +0 -1
- package/auth/azure/index.d.ts.map +0 -1
- package/auth/core/index.d.ts.map +0 -1
- package/auth/firebase/index.d.ts.map +0 -1
- package/auth/index.d.ts.map +0 -1
- package/auth/passports/anonymous/index.d.ts.map +0 -1
- package/auth/passports/firebase/index.d.ts.map +0 -1
- package/auth/passports/index.d.ts.map +0 -1
- package/auth/passports/internal/index.d.ts.map +0 -1
- package/auth/passports/msal/index.d.ts.map +0 -1
- package/domain/builder/index.d.ts.map +0 -1
- package/domain/builder/screen-item/index.d.ts.map +0 -1
- package/domain/index.d.ts.map +0 -1
- package/domain/models/index.d.ts.map +0 -1
- package/domain/models/presenter/index.d.ts.map +0 -1
- package/index.d.ts +0 -2
- package/index.d.ts.map +0 -1
- package/infra/converters/google/index.d.ts.map +0 -1
- package/infra/external/data-connect/index.d.ts.map +0 -1
- package/infra/external/index.d.ts.map +0 -1
- package/infra/external/quick-js/index.d.ts.map +0 -1
- package/infra/external/resend/index.d.ts.map +0 -1
- package/infra/index.d.ts.map +0 -1
- package/infra/query/firestore/index.d.ts.map +0 -1
- package/infra/query/hasura/index.d.ts.map +0 -1
- package/infra/repository/dataconnect/index.d.ts.map +0 -1
- package/infra/repository/firestore/index.d.ts.map +0 -1
- package/infra/repository/hasura/index.d.ts.map +0 -1
- package/infra/repository/notion/index.d.ts.map +0 -1
- package/invoice/domain/builders/index.d.ts.map +0 -1
- package/invoice/domain/index.d.ts.map +0 -1
- package/invoice/domain/models/index.d.ts.map +0 -1
- package/invoice/domain/resolvers/index.d.ts.map +0 -1
- package/invoice/usecase/contract/index.d.ts.map +0 -1
- package/invoice/usecase/invoice/index.d.ts.map +0 -1
- package/invoice/usecase/order/index.d.ts.map +0 -1
- package/invoice/usecase/partner/index.d.ts.map +0 -1
- package/services/graphql/index.d.ts.map +0 -1
- package/services/query/config/index.d.ts.map +0 -1
- package/services/query/index.d.ts.map +0 -1
- package/services/speech/index.d.ts.map +0 -1
- package/services/transformer/index.d.ts.map +0 -1
- package/stores/firestore/index.d.ts.map +0 -1
- package/stores/hasura/index.d.ts.map +0 -1
- package/stores/index.d.ts.map +0 -1
- package/stores/inmemory/index.d.ts.map +0 -1
- package/usecase/assistant/index.d.ts.map +0 -1
- package/usecase/database/index.d.ts.map +0 -1
- package/usecase/graphql/index.d.ts.map +0 -1
- package/usecase/index.d.ts.map +0 -1
- package/usecase/link/index.d.ts.map +0 -1
- package/usecase/project/index.d.ts.map +0 -1
- package/usecase/spec/index.d.ts.map +0 -1
- package/utils/crypto/index.d.ts.map +0 -1
- package/utils/index.d.ts.map +0 -1
|
@@ -3,14 +3,14 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { Injectable, InjectionToken, inject } from '@angular/core';
|
|
4
4
|
import { injectOpenAiService } from '@nx-ddd/common/infrastructure/externals/openai';
|
|
5
5
|
import { injectDataConnectService } from '@xxmachina/common/infra/external/data-connect';
|
|
6
|
+
import { NotionRepository as NotionRepository$1, createConverter, getDatabaseId, provideNotionConfig as provideNotionConfig$1, NOTION_ACCESS_TOKEN } from '@nx-ddd/notion';
|
|
7
|
+
import { Contract, Invoice, Order } from '@xxmachina/common/invoice/domain';
|
|
8
|
+
import { Partner } from '@xxmachina/common/invoice/domain/models';
|
|
6
9
|
import { provideRedisConfig as provideRedisConfig$1, RedisRepository, Converter, REDIS_CONFIG } from '@xxmachina/common/_shared/meta/redis';
|
|
7
10
|
import { float32Buffer, bufferFloat32 } from '@xxmachina/common/utils/crypto';
|
|
8
11
|
import { GoogleConverter } from '@xxmachina/common/infra/converters/google';
|
|
9
12
|
import { FirestoreRepository as FirestoreRepository$1, injectConverter } from '@nx-ddd/firestore';
|
|
10
13
|
import { Query, Resource } from '@xxmachina/common/domain/models';
|
|
11
|
-
import { NotionRepository as NotionRepository$1, createConverter, getDatabaseId, provideNotionConfig as provideNotionConfig$1 } from '@nx-ddd/notion';
|
|
12
|
-
import { Contract, Invoice, Order } from '@xxmachina/common/invoice/domain';
|
|
13
|
-
import { Partner } from '@xxmachina/common/invoice/domain/models';
|
|
14
14
|
|
|
15
15
|
function provideExternalConfig(config) {
|
|
16
16
|
return [
|
|
@@ -24,14 +24,77 @@ class ExternalService {
|
|
|
24
24
|
getAiAdapter(aiConfig) {
|
|
25
25
|
return {};
|
|
26
26
|
}
|
|
27
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ExternalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
28
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ExternalService, providedIn: 'root' });
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ExternalService, decorators: [{
|
|
31
|
+
type: Injectable,
|
|
32
|
+
args: [{ providedIn: 'root' }]
|
|
33
|
+
}] });
|
|
34
|
+
|
|
35
|
+
const CONTRACT_CONFIG = new InjectionToken('CONTRACT_CONFIG');
|
|
36
|
+
function provideContractConfig(config) {
|
|
37
|
+
return { provide: CONTRACT_CONFIG, useValue: config };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class ContractNotionRepository extends NotionRepository$1 {
|
|
41
|
+
converter = createConverter(Contract);
|
|
42
|
+
databaseId = getDatabaseId(Contract);
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ContractNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ContractNotionRepository, providedIn: 'root' });
|
|
45
|
+
}
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ContractNotionRepository, decorators: [{
|
|
47
|
+
type: Injectable,
|
|
48
|
+
args: [{ providedIn: 'root' }]
|
|
49
|
+
}] });
|
|
50
|
+
|
|
51
|
+
const INVOICE_CONFIG = new InjectionToken('Invoice Config');
|
|
52
|
+
function provideInvoiceConfig(config) {
|
|
53
|
+
return { provide: INVOICE_CONFIG, useValue: config };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
class InvoiceNotionRepository extends NotionRepository$1 {
|
|
57
|
+
converter = createConverter(Invoice);
|
|
58
|
+
databaseId = getDatabaseId(Invoice);
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InvoiceNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
60
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InvoiceNotionRepository, providedIn: 'root' });
|
|
61
|
+
}
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InvoiceNotionRepository, decorators: [{
|
|
63
|
+
type: Injectable,
|
|
64
|
+
args: [{ providedIn: 'root' }]
|
|
65
|
+
}] });
|
|
66
|
+
|
|
67
|
+
const ORDER_CONFIG = new InjectionToken('ORDER_CONFIG');
|
|
68
|
+
function provideOrderConfig(config) {
|
|
69
|
+
return { provide: ORDER_CONFIG, useValue: config };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const PARTNER_CONFIG = new InjectionToken('PARTNER_CONFIG');
|
|
73
|
+
function providePartnerConfig(config) {
|
|
74
|
+
return { provide: PARTNER_CONFIG, useValue: config };
|
|
29
75
|
}
|
|
30
|
-
|
|
76
|
+
|
|
77
|
+
class PartnerNotionRepository extends NotionRepository$1 {
|
|
78
|
+
converter = createConverter(Partner);
|
|
79
|
+
databaseId = getDatabaseId(Partner);
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: PartnerNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
81
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: PartnerNotionRepository, providedIn: 'root' });
|
|
82
|
+
}
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: PartnerNotionRepository, decorators: [{
|
|
31
84
|
type: Injectable,
|
|
32
85
|
args: [{ providedIn: 'root' }]
|
|
33
86
|
}] });
|
|
34
87
|
|
|
88
|
+
function provideNotionConfig(config) {
|
|
89
|
+
return [
|
|
90
|
+
provideContractConfig(config.contract),
|
|
91
|
+
provideInvoiceConfig(config.invoice),
|
|
92
|
+
provideOrderConfig(config.order),
|
|
93
|
+
providePartnerConfig(config.partner),
|
|
94
|
+
provideNotionConfig$1({ accessToken: config.accessToken }),
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
|
|
35
98
|
function provideRedisConfig(config) {
|
|
36
99
|
return [
|
|
37
100
|
provideRedisConfig$1(config.redis),
|
|
@@ -40,10 +103,10 @@ function provideRedisConfig(config) {
|
|
|
40
103
|
|
|
41
104
|
class OperatorRepository extends RedisRepository {
|
|
42
105
|
entityName = 'operator';
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OperatorRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
107
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OperatorRepository, providedIn: 'root' });
|
|
45
108
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OperatorRepository, decorators: [{
|
|
47
110
|
type: Injectable,
|
|
48
111
|
args: [{ providedIn: 'root' }]
|
|
49
112
|
}] });
|
|
@@ -65,10 +128,10 @@ class ProjectConverter extends Converter {
|
|
|
65
128
|
class ProjectRepository extends RedisRepository {
|
|
66
129
|
entityName = 'project';
|
|
67
130
|
converter = new ProjectConverter();
|
|
68
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
131
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ProjectRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
132
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ProjectRepository, providedIn: 'root' });
|
|
70
133
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ProjectRepository, decorators: [{
|
|
72
135
|
type: Injectable,
|
|
73
136
|
args: [{ providedIn: 'root' }]
|
|
74
137
|
}] });
|
|
@@ -131,20 +194,20 @@ class SpecRepository extends RedisRepository {
|
|
|
131
194
|
fromBuffer(buffer) {
|
|
132
195
|
return bufferFloat32(buffer);
|
|
133
196
|
}
|
|
134
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
135
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
197
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SpecRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
198
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SpecRepository, providedIn: 'root' });
|
|
136
199
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SpecRepository, decorators: [{
|
|
138
201
|
type: Injectable,
|
|
139
202
|
args: [{ providedIn: 'root' }]
|
|
140
203
|
}] });
|
|
141
204
|
|
|
142
205
|
class SystemRepository {
|
|
143
206
|
entityName = 'system';
|
|
144
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
145
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
207
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SystemRepository, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
208
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SystemRepository, providedIn: 'root' });
|
|
146
209
|
}
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SystemRepository, decorators: [{
|
|
148
211
|
type: Injectable,
|
|
149
212
|
args: [{ providedIn: 'root' }]
|
|
150
213
|
}] });
|
|
@@ -154,10 +217,10 @@ class RedisService {
|
|
|
154
217
|
project = inject(ProjectRepository);
|
|
155
218
|
spec = inject(SpecRepository);
|
|
156
219
|
system = inject(SystemRepository);
|
|
157
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
158
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
220
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RedisService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
221
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RedisService, providedIn: 'root' });
|
|
159
222
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RedisService, decorators: [{
|
|
161
224
|
type: Injectable,
|
|
162
225
|
args: [{ providedIn: 'root' }]
|
|
163
226
|
}] });
|
|
@@ -165,6 +228,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
165
228
|
function provideRepositoryConfig(config) {
|
|
166
229
|
return [
|
|
167
230
|
provideRedisConfig(config.redis),
|
|
231
|
+
...(config.notion?.accessToken
|
|
232
|
+
? [provideNotionConfig(config.notion)]
|
|
233
|
+
: [{ provide: NOTION_ACCESS_TOKEN, useValue: '' }]),
|
|
168
234
|
];
|
|
169
235
|
}
|
|
170
236
|
|
|
@@ -178,10 +244,10 @@ function provideInfrastructureConfig(config) {
|
|
|
178
244
|
class GoogleRepository extends FirestoreRepository$1 {
|
|
179
245
|
collectionPath = 'users/:userId/links/:id';
|
|
180
246
|
converter = inject(GoogleConverter);
|
|
181
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
182
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
247
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: GoogleRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
248
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: GoogleRepository, providedIn: 'root' });
|
|
183
249
|
}
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: GoogleRepository, decorators: [{
|
|
185
251
|
type: Injectable,
|
|
186
252
|
args: [{ providedIn: 'root' }]
|
|
187
253
|
}] });
|
|
@@ -191,10 +257,10 @@ class LinkRepository {
|
|
|
191
257
|
constructor(google) {
|
|
192
258
|
this.google = google;
|
|
193
259
|
}
|
|
194
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
195
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
260
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: LinkRepository, deps: [{ token: GoogleRepository }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
261
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: LinkRepository, providedIn: 'root' });
|
|
196
262
|
}
|
|
197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: LinkRepository, decorators: [{
|
|
198
264
|
type: Injectable,
|
|
199
265
|
args: [{ providedIn: 'root' }]
|
|
200
266
|
}], ctorParameters: () => [{ type: GoogleRepository }] });
|
|
@@ -206,10 +272,10 @@ class FirestoreRepository {
|
|
|
206
272
|
link) {
|
|
207
273
|
this.link = link;
|
|
208
274
|
}
|
|
209
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
210
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
275
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: FirestoreRepository, deps: [{ token: LinkRepository }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
276
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: FirestoreRepository, providedIn: 'root' });
|
|
211
277
|
}
|
|
212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: FirestoreRepository, decorators: [{
|
|
213
279
|
type: Injectable,
|
|
214
280
|
args: [{ providedIn: 'root' }]
|
|
215
281
|
}], ctorParameters: () => [{ type: LinkRepository }] });
|
|
@@ -217,10 +283,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
217
283
|
class QueryFirestoreRepository extends FirestoreRepository$1 {
|
|
218
284
|
collectionPath = 'projects/:projectId/queries/:id';
|
|
219
285
|
converter = injectConverter(Query);
|
|
220
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
221
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
286
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: QueryFirestoreRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
287
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: QueryFirestoreRepository, providedIn: 'root' });
|
|
222
288
|
}
|
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: QueryFirestoreRepository, decorators: [{
|
|
224
290
|
type: Injectable,
|
|
225
291
|
args: [{ providedIn: 'root' }]
|
|
226
292
|
}] });
|
|
@@ -228,42 +294,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
228
294
|
class ResourceFirestoreRepository extends FirestoreRepository$1 {
|
|
229
295
|
collectionPath = 'projects/:projectId/resources/:id';
|
|
230
296
|
converter = injectConverter(Resource);
|
|
231
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
232
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
233
|
-
}
|
|
234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ResourceFirestoreRepository, decorators: [{
|
|
235
|
-
type: Injectable,
|
|
236
|
-
args: [{ providedIn: 'root' }]
|
|
237
|
-
}] });
|
|
238
|
-
|
|
239
|
-
const CONTRACT_CONFIG = new InjectionToken('CONTRACT_CONFIG');
|
|
240
|
-
function provideContractConfig(config) {
|
|
241
|
-
return { provide: CONTRACT_CONFIG, useValue: config };
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
class ContractNotionRepository extends NotionRepository$1 {
|
|
245
|
-
converter = createConverter(Contract);
|
|
246
|
-
databaseId = getDatabaseId(Contract);
|
|
247
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ContractNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
248
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ContractNotionRepository, providedIn: 'root' });
|
|
249
|
-
}
|
|
250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ContractNotionRepository, decorators: [{
|
|
251
|
-
type: Injectable,
|
|
252
|
-
args: [{ providedIn: 'root' }]
|
|
253
|
-
}] });
|
|
254
|
-
|
|
255
|
-
const INVOICE_CONFIG = new InjectionToken('Invoice Config');
|
|
256
|
-
function provideInvoiceConfig(config) {
|
|
257
|
-
return { provide: INVOICE_CONFIG, useValue: config };
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
class InvoiceNotionRepository extends NotionRepository$1 {
|
|
261
|
-
converter = createConverter(Invoice);
|
|
262
|
-
databaseId = getDatabaseId(Invoice);
|
|
263
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: InvoiceNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
264
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: InvoiceNotionRepository, providedIn: 'root' });
|
|
297
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ResourceFirestoreRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
298
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ResourceFirestoreRepository, providedIn: 'root' });
|
|
265
299
|
}
|
|
266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ResourceFirestoreRepository, decorators: [{
|
|
267
301
|
type: Injectable,
|
|
268
302
|
args: [{ providedIn: 'root' }]
|
|
269
303
|
}] });
|
|
@@ -271,45 +305,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
271
305
|
class OrderNotionRepository extends NotionRepository$1 {
|
|
272
306
|
converter = createConverter(Order);
|
|
273
307
|
databaseId = getDatabaseId(Order);
|
|
274
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
275
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
308
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OrderNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
309
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OrderNotionRepository, providedIn: 'root' });
|
|
276
310
|
}
|
|
277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OrderNotionRepository, decorators: [{
|
|
278
312
|
type: Injectable,
|
|
279
313
|
args: [{ providedIn: 'root' }]
|
|
280
314
|
}] });
|
|
281
315
|
|
|
282
|
-
const PARTNER_CONFIG = new InjectionToken('PARTNER_CONFIG');
|
|
283
|
-
function providePartnerConfig(config) {
|
|
284
|
-
return { provide: PARTNER_CONFIG, useValue: config };
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
class PartnerNotionRepository extends NotionRepository$1 {
|
|
288
|
-
converter = createConverter(Partner);
|
|
289
|
-
databaseId = getDatabaseId(Partner);
|
|
290
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: PartnerNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
291
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: PartnerNotionRepository, providedIn: 'root' });
|
|
292
|
-
}
|
|
293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: PartnerNotionRepository, decorators: [{
|
|
294
|
-
type: Injectable,
|
|
295
|
-
args: [{ providedIn: 'root' }]
|
|
296
|
-
}] });
|
|
297
|
-
|
|
298
|
-
const ORDER_CONFIG = new InjectionToken('ORDER_CONFIG');
|
|
299
|
-
function provideOrderConfig(config) {
|
|
300
|
-
return { provide: ORDER_CONFIG, useValue: config };
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
function provideNotionConfig(config) {
|
|
304
|
-
return [
|
|
305
|
-
provideContractConfig(config.contract),
|
|
306
|
-
provideInvoiceConfig(config.invoice),
|
|
307
|
-
provideOrderConfig(config.order),
|
|
308
|
-
providePartnerConfig(config.partner),
|
|
309
|
-
provideNotionConfig$1({ accessToken: config.accessToken }),
|
|
310
|
-
];
|
|
311
|
-
}
|
|
312
|
-
|
|
313
316
|
class NotionRepository {
|
|
314
317
|
contract;
|
|
315
318
|
invoice;
|
|
@@ -321,10 +324,10 @@ class NotionRepository {
|
|
|
321
324
|
this.order = order;
|
|
322
325
|
this.partner = partner;
|
|
323
326
|
}
|
|
324
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
325
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
327
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: NotionRepository, deps: [{ token: ContractNotionRepository }, { token: InvoiceNotionRepository }, { token: OrderNotionRepository }, { token: PartnerNotionRepository }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
328
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: NotionRepository, providedIn: 'root' });
|
|
326
329
|
}
|
|
327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: NotionRepository, decorators: [{
|
|
328
331
|
type: Injectable,
|
|
329
332
|
args: [{ providedIn: 'root' }]
|
|
330
333
|
}], ctorParameters: () => [{ type: ContractNotionRepository }, { type: InvoiceNotionRepository }, { type: OrderNotionRepository }, { type: PartnerNotionRepository }] });
|
|
@@ -333,10 +336,10 @@ class RepositoriesService {
|
|
|
333
336
|
firestore = inject(FirestoreRepository);
|
|
334
337
|
notion = inject(NotionRepository);
|
|
335
338
|
redis = inject(RedisService);
|
|
336
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
337
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
339
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RepositoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
340
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RepositoriesService, providedIn: 'root' });
|
|
338
341
|
}
|
|
339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RepositoriesService, decorators: [{
|
|
340
343
|
type: Injectable,
|
|
341
344
|
args: [{ providedIn: 'root' }]
|
|
342
345
|
}] });
|
|
@@ -348,10 +351,10 @@ class InfrastructureService {
|
|
|
348
351
|
this.external = external;
|
|
349
352
|
this.repo = repo;
|
|
350
353
|
}
|
|
351
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
352
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
354
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InfrastructureService, deps: [{ token: ExternalService }, { token: RepositoriesService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
355
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InfrastructureService, providedIn: 'root' });
|
|
353
356
|
}
|
|
354
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InfrastructureService, decorators: [{
|
|
355
358
|
type: Injectable,
|
|
356
359
|
args: [{ providedIn: 'root' }]
|
|
357
360
|
}], ctorParameters: () => [{ type: ExternalService }, { type: RepositoriesService }] });
|