@infrab4a/connect-nestjs 2.8.3 → 2.8.4
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/index.cjs.d.ts +1 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +1411 -0
- package/index.cjs.mjs +2 -0
- package/index.esm.js +1394 -0
- package/package.json +13 -3
- package/src/consts/es-config.const.d.ts +1 -0
- package/src/consts/hasura-options.const.d.ts +1 -0
- package/src/consts/index.d.ts +4 -0
- package/src/consts/storage.const.d.ts +1 -0
- package/src/consts/vertex-config.const.d.ts +1 -0
- package/src/index.d.ts +7 -0
- package/src/infra/elasticsearch/adapters/index.d.ts +1 -0
- package/src/infra/elasticsearch/adapters/native-elasticsearch-adapter.d.ts +19 -0
- package/src/infra/elasticsearch/index.d.ts +1 -0
- package/src/infra/firebase/firestore/index.d.ts +2 -0
- package/src/infra/firebase/firestore/services/connect-collection-reference.d.ts +19 -0
- package/src/infra/firebase/firestore/services/connect-collection.service.d.ts +32 -0
- package/src/infra/firebase/firestore/services/connect-document-reference.d.ts +11 -0
- package/src/infra/firebase/firestore/services/connect-document.service.d.ts +17 -0
- package/src/infra/firebase/firestore/services/connect-firestore.d.ts +7 -0
- package/src/infra/firebase/firestore/services/connect-firestore.service.d.ts +8 -0
- package/src/infra/firebase/firestore/services/index.d.ts +6 -0
- package/src/infra/firebase/firestore/types/connect-query-snapshot.type.d.ts +4 -0
- package/src/infra/firebase/firestore/types/index.d.ts +1 -0
- package/src/infra/firebase/firestore/vo/connect-base-document-snapshot.vo.d.ts +12 -0
- package/src/infra/firebase/firestore/vo/index.d.ts +1 -0
- package/src/infra/firebase/index.d.ts +1 -0
- package/src/infra/index.d.ts +4 -0
- package/src/infra/pagarme/adapters/index.d.ts +3 -0
- package/src/infra/pagarme/adapters/pagarme-bank-slip-api.adapter.d.ts +9 -0
- package/src/infra/pagarme/adapters/pagarme-card-api.adapter.d.ts +21 -0
- package/src/infra/pagarme/adapters/pagarme-pix-api.adapter.d.ts +8 -0
- package/src/infra/pagarme/index.d.ts +1 -0
- package/src/infra/vertex-ai/adapters/discovery-engine-adapter.d.ts +17 -0
- package/src/infra/vertex-ai/adapters/index.d.ts +1 -0
- package/src/infra/vertex-ai/helpers/index.d.ts +1 -0
- package/src/infra/vertex-ai/helpers/product-vertex-ai.helper.d.ts +7 -0
- package/src/infra/vertex-ai/index.d.ts +3 -0
- package/src/infra/vertex-ai/types/index.d.ts +2 -0
- package/src/infra/vertex-ai/types/vertex-config.d.ts +23 -0
- package/src/infra/vertex-ai/types/vertex-search-result.d.ts +18 -0
- package/src/nest-connect.module.d.ts +13 -0
- package/src/nest-elastic-search.module.d.ts +5 -0
- package/src/nest-firestore.module.d.ts +10 -0
- package/src/nest-hasura-graphql.module.d.ts +13 -0
- package/src/nest-storage.module.d.ts +2 -0
- package/src/nest-vertex-ai-search.module.d.ts +5 -0
- package/eslint.config.js +0 -17
- package/project.json +0 -45
- package/src/consts/es-config.const.ts +0 -1
- package/src/consts/hasura-options.const.ts +0 -1
- package/src/consts/index.ts +0 -4
- package/src/consts/storage.const.ts +0 -1
- package/src/consts/vertex-config.const.ts +0 -1
- package/src/index.ts +0 -7
- package/src/infra/elasticsearch/adapters/index.ts +0 -1
- package/src/infra/elasticsearch/adapters/native-elasticsearch-adapter.ts +0 -137
- package/src/infra/elasticsearch/index.ts +0 -1
- package/src/infra/firebase/firestore/index.ts +0 -2
- package/src/infra/firebase/firestore/services/connect-collection-reference.ts +0 -27
- package/src/infra/firebase/firestore/services/connect-collection.service.ts +0 -137
- package/src/infra/firebase/firestore/services/connect-document-reference.ts +0 -12
- package/src/infra/firebase/firestore/services/connect-document.service.ts +0 -51
- package/src/infra/firebase/firestore/services/connect-firestore.service.ts +0 -24
- package/src/infra/firebase/firestore/services/connect-firestore.ts +0 -9
- package/src/infra/firebase/firestore/services/index.ts +0 -6
- package/src/infra/firebase/firestore/types/connect-query-snapshot.type.ts +0 -6
- package/src/infra/firebase/firestore/types/index.ts +0 -1
- package/src/infra/firebase/firestore/vo/connect-base-document-snapshot.vo.ts +0 -27
- package/src/infra/firebase/firestore/vo/index.ts +0 -1
- package/src/infra/firebase/index.ts +0 -1
- package/src/infra/index.ts +0 -4
- package/src/infra/pagarme/adapters/index.ts +0 -3
- package/src/infra/pagarme/adapters/pagarme-bank-slip-api.adapter.ts +0 -97
- package/src/infra/pagarme/adapters/pagarme-card-api.adapter.ts +0 -221
- package/src/infra/pagarme/adapters/pagarme-pix-api.adapter.ts +0 -70
- package/src/infra/pagarme/index.ts +0 -1
- package/src/infra/vertex-ai/adapters/discovery-engine-adapter.ts +0 -148
- package/src/infra/vertex-ai/adapters/index.ts +0 -1
- package/src/infra/vertex-ai/helpers/index.ts +0 -1
- package/src/infra/vertex-ai/helpers/product-vertex-ai.helper.ts +0 -52
- package/src/infra/vertex-ai/index.ts +0 -3
- package/src/infra/vertex-ai/types/index.ts +0 -2
- package/src/infra/vertex-ai/types/vertex-config.ts +0 -23
- package/src/infra/vertex-ai/types/vertex-search-result.ts +0 -17
- package/src/nest-connect.module.ts +0 -36
- package/src/nest-elastic-search.module.ts +0 -26
- package/src/nest-firestore.module.ts +0 -403
- package/src/nest-hasura-graphql.module.ts +0 -284
- package/src/nest-storage.module.ts +0 -16
- package/src/nest-vertex-ai-search.module.ts +0 -26
- package/src/types/pagarme.d.ts +0 -24
- package/tsconfig.json +0 -15
- package/tsconfig.lib.json +0 -7
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ProductsVertexSearch } from '@infrab4a/connect'
|
|
2
|
-
import { DynamicModule, Module } from '@nestjs/common'
|
|
3
|
-
|
|
4
|
-
import { VERTEX_CONFIG } from './consts'
|
|
5
|
-
import { DiscoveryEngineVertexAdapter, VertexConfig } from './infra'
|
|
6
|
-
|
|
7
|
-
@Module({
|
|
8
|
-
providers: [
|
|
9
|
-
DiscoveryEngineVertexAdapter,
|
|
10
|
-
{
|
|
11
|
-
provide: ProductsVertexSearch,
|
|
12
|
-
useFactory: (adapter: DiscoveryEngineVertexAdapter): ProductsVertexSearch => new ProductsVertexSearch(adapter),
|
|
13
|
-
inject: [DiscoveryEngineVertexAdapter],
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
exports: [ProductsVertexSearch],
|
|
17
|
-
})
|
|
18
|
-
export class NestVertexSeachModule {
|
|
19
|
-
public static initializeApp(options: VertexConfig): DynamicModule {
|
|
20
|
-
return {
|
|
21
|
-
module: NestVertexSeachModule,
|
|
22
|
-
providers: [{ provide: VERTEX_CONFIG, useValue: options }],
|
|
23
|
-
exports: [VERTEX_CONFIG],
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
package/src/types/pagarme.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare module 'pagarme' {
|
|
2
|
-
interface PagarmeClient {
|
|
3
|
-
transactions: {
|
|
4
|
-
create(payload: any): Promise<any>
|
|
5
|
-
find(query: { id: number }): Promise<any>
|
|
6
|
-
}
|
|
7
|
-
cards: {
|
|
8
|
-
find(query: any): Promise<any>
|
|
9
|
-
create(payload: any): Promise<any>
|
|
10
|
-
}
|
|
11
|
-
security: {
|
|
12
|
-
encrypt(payload: any): Promise<any>
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface PagarmeModule {
|
|
17
|
-
client: {
|
|
18
|
-
connect(options: { api_key: string }): Promise<PagarmeClient>
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const pagarme: PagarmeModule
|
|
23
|
-
export = pagarme
|
|
24
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declarationMap": true,
|
|
5
|
-
"inlineSources": true,
|
|
6
|
-
"noEmit": true
|
|
7
|
-
},
|
|
8
|
-
"exclude": [
|
|
9
|
-
"**/*.spec.ts"
|
|
10
|
-
],
|
|
11
|
-
"references": [
|
|
12
|
-
{ "path": "../connect" }
|
|
13
|
-
],
|
|
14
|
-
"include": ["./src", "./src/types/**/*"]
|
|
15
|
-
}
|
package/tsconfig.lib.json
DELETED
package/tsconfig.lib.prod.json
DELETED
package/tsconfig.spec.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"extends": "../../tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "../../dist/spec",
|
|
6
|
-
"types": [
|
|
7
|
-
"jasmine"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"src/test.ts"
|
|
12
|
-
],
|
|
13
|
-
"include": [
|
|
14
|
-
"**/*.spec.ts",
|
|
15
|
-
"**/*.d.ts"
|
|
16
|
-
]
|
|
17
|
-
}
|