@agentbadge/database 0.6.5 → 0.6.7
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/dist/database.d.ts +4 -0
- package/dist/database.js +8 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -0
- package/dist/prisma/contract.json +2289 -817
- package/dist/repositories/finops-repository.d.ts +46 -0
- package/dist/repositories/finops-repository.js +208 -0
- package/dist/repositories/finops-store.d.ts +130 -0
- package/dist/repositories/finops-store.js +151 -0
- package/dist/repositories/identity-repository.d.ts +43 -0
- package/dist/repositories/identity-repository.js +257 -0
- package/dist/repositories/identity-store.d.ts +116 -0
- package/dist/repositories/identity-store.js +177 -0
- package/package.json +1 -1
package/dist/database.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ import { type EconLedgerStore } from "./repositories/econ-ledger-store.js";
|
|
|
21
21
|
import { type TrustEdgeStore } from "./repositories/trust-edge-store.js";
|
|
22
22
|
import { type PaymentStores } from "./repositories/payment-store.js";
|
|
23
23
|
import { type CommerceStores } from "./repositories/commerce-store.js";
|
|
24
|
+
import { type FinopsStores } from "./repositories/finops-store.js";
|
|
25
|
+
import { type IdentityStores } from "./repositories/identity-store.js";
|
|
24
26
|
import { type ChatSubscriptionStore, type ScanResultStore, type Store } from "./store.js";
|
|
25
27
|
export interface DatabaseConfig {
|
|
26
28
|
url?: string;
|
|
@@ -56,6 +58,8 @@ export interface Database {
|
|
|
56
58
|
trustEdges: TrustEdgeStore;
|
|
57
59
|
payments: PaymentStores;
|
|
58
60
|
commerce: CommerceStores;
|
|
61
|
+
finops: FinopsStores;
|
|
62
|
+
identity: IdentityStores;
|
|
59
63
|
archiveCursors: ArchiveCursorStore;
|
|
60
64
|
agentRequests: AgentRequestRepository | null;
|
|
61
65
|
agentSurveys: AgentSurveyRepository | null;
|
package/dist/database.js
CHANGED
|
@@ -33,6 +33,10 @@ import { createPrismaPaymentStores } from "./repositories/payment-repository.js"
|
|
|
33
33
|
import { createInMemoryPaymentStores, } from "./repositories/payment-store.js";
|
|
34
34
|
import { createPrismaCommerceStores } from "./repositories/commerce-repository.js";
|
|
35
35
|
import { createInMemoryCommerceStores, } from "./repositories/commerce-store.js";
|
|
36
|
+
import { createPrismaFinopsStores } from "./repositories/finops-repository.js";
|
|
37
|
+
import { createInMemoryFinopsStores, } from "./repositories/finops-store.js";
|
|
38
|
+
import { createPrismaIdentityStores } from "./repositories/identity-repository.js";
|
|
39
|
+
import { createInMemoryIdentityStores, } from "./repositories/identity-store.js";
|
|
36
40
|
import { InMemoryChatSubscriptionStore, InMemoryScanResultStore, InMemoryStore, } from "./store.js";
|
|
37
41
|
export function createDatabase(config) {
|
|
38
42
|
const enabled = config.enabled !== false && Boolean(config.url);
|
|
@@ -67,6 +71,8 @@ export function createDatabase(config) {
|
|
|
67
71
|
trustEdges,
|
|
68
72
|
payments: createInMemoryPaymentStores(),
|
|
69
73
|
commerce: createInMemoryCommerceStores(),
|
|
74
|
+
finops: createInMemoryFinopsStores(),
|
|
75
|
+
identity: createInMemoryIdentityStores(),
|
|
70
76
|
archiveCursors: new InMemoryArchiveCursorStore(),
|
|
71
77
|
agentRequests: null,
|
|
72
78
|
agentSurveys: null,
|
|
@@ -111,6 +117,8 @@ export function createDatabase(config) {
|
|
|
111
117
|
trustEdges,
|
|
112
118
|
payments: createPrismaPaymentStores(db),
|
|
113
119
|
commerce: createPrismaCommerceStores(db),
|
|
120
|
+
finops: createPrismaFinopsStores(db),
|
|
121
|
+
identity: createPrismaIdentityStores(db),
|
|
114
122
|
archiveCursors: new ArchiveCursorRepository(db),
|
|
115
123
|
agentRequests: new AgentRequestRepository(db),
|
|
116
124
|
agentSurveys: new AgentSurveyRepository(db),
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,12 @@ export type { AttemptStatusPatch, PaymentAttemptInsert, PaymentAttemptRow, Payme
|
|
|
61
61
|
export { CommerceAgreementRepository, CommerceEvidenceRepository, CommerceEventRepository, CommerceOfferRepository, CommercePaymentRepository, CommerceSubmissionRepository, CommerceTaskRepository, createPrismaCommerceStores, } from "./repositories/commerce-repository.js";
|
|
62
62
|
export { createInMemoryCommerceStores, InMemoryCommerceAgreementStore, InMemoryCommerceEvidenceStore, InMemoryCommerceEventStore, InMemoryCommerceOfferStore, InMemoryCommercePaymentStore, InMemoryCommerceSubmissionStore, InMemoryCommerceTaskStore, } from "./repositories/commerce-store.js";
|
|
63
63
|
export type { AgreementStatusPatch, CommerceAgreementInsert, CommerceAgreementRow, CommerceAgreementStore, CommerceEvidenceInsert, CommerceEvidenceRow, CommerceEvidenceStore, CommerceEventInsert, CommerceEventRow, CommerceEventStore, CommerceOfferInsert, CommerceOfferRow, CommerceOfferStore, CommercePaymentInsert, CommercePaymentRow, CommercePaymentStore, CommerceStores, CommerceSubmissionInsert, CommerceSubmissionRow, CommerceSubmissionStore, CommerceTaskInsert, CommerceTaskRow, CommerceTaskStore, PaymentStatusPatch, SubmissionStatusPatch, } from "./repositories/commerce-store.js";
|
|
64
|
+
export { AdminActionRepository, createPrismaFinopsStores, ReconciliationExceptionRepository, RefundIntentRepository, } from "./repositories/finops-repository.js";
|
|
65
|
+
export { ADMIN_ACTIONS, createInMemoryFinopsStores, EXCEPTION_RESOLUTIONS, InMemoryAdminActionStore, InMemoryReconciliationExceptionStore, InMemoryRefundIntentStore, RECONCILIATION_EXCEPTION_TYPES, } from "./repositories/finops-store.js";
|
|
66
|
+
export type { AdminActionInsert, AdminActionKind, AdminActionRow, AdminActionStore, ExceptionResolution, FinopsStores, ReconciliationExceptionInsert, ReconciliationExceptionRow, ReconciliationExceptionStore, ReconciliationExceptionType, RefundIntentInsert, RefundIntentRow, RefundIntentStore, } from "./repositories/finops-store.js";
|
|
67
|
+
export { ActorRepository, createPrismaIdentityStores, EntitlementRepository, ReputationFactRepository, } from "./repositories/identity-repository.js";
|
|
68
|
+
export { createInMemoryIdentityStores, InMemoryActorStore, InMemoryEntitlementStore, InMemoryReputationFactStore, } from "./repositories/identity-store.js";
|
|
69
|
+
export type { ActorRow, ActorStore, ActorUpsert, EntitlementInsert, EntitlementRow, EntitlementStore, IdentityStores, ReputationFactInsert, ReputationFactRow, ReputationFactStore, } from "./repositories/identity-store.js";
|
|
64
70
|
export type { ForensicsStores } from "./database.js";
|
|
65
71
|
export type { BoardCardInsert, BoardCardPatch, BoardEntryInsert, ReputationWriteInsert, ReputationWritePatch, ChainTxOutboxInsert, ChainTxOutboxPatch, } from "./repositories/board-repository.js";
|
|
66
72
|
export type { PrismaDb } from "./repositories/event-repository.js";
|
package/dist/index.js
CHANGED
|
@@ -37,4 +37,8 @@ export { PaymentAttemptRepository, PaymentEventRepository, PaymentExceptionRepos
|
|
|
37
37
|
export { createInMemoryPaymentStores, InMemoryPaymentAttemptStore, InMemoryPaymentEventStore, InMemoryPaymentExceptionStore, InMemoryPaymentPriceStore, InMemoryPaymentProductStore, InMemoryPaymentReceiptStore, InMemoryPaymentStore, InMemoryUsageRecordStore, TERMINAL_ATTEMPT_STATUSES, } from "./repositories/payment-store.js";
|
|
38
38
|
export { CommerceAgreementRepository, CommerceEvidenceRepository, CommerceEventRepository, CommerceOfferRepository, CommercePaymentRepository, CommerceSubmissionRepository, CommerceTaskRepository, createPrismaCommerceStores, } from "./repositories/commerce-repository.js";
|
|
39
39
|
export { createInMemoryCommerceStores, InMemoryCommerceAgreementStore, InMemoryCommerceEvidenceStore, InMemoryCommerceEventStore, InMemoryCommerceOfferStore, InMemoryCommercePaymentStore, InMemoryCommerceSubmissionStore, InMemoryCommerceTaskStore, } from "./repositories/commerce-store.js";
|
|
40
|
+
export { AdminActionRepository, createPrismaFinopsStores, ReconciliationExceptionRepository, RefundIntentRepository, } from "./repositories/finops-repository.js";
|
|
41
|
+
export { ADMIN_ACTIONS, createInMemoryFinopsStores, EXCEPTION_RESOLUTIONS, InMemoryAdminActionStore, InMemoryReconciliationExceptionStore, InMemoryRefundIntentStore, RECONCILIATION_EXCEPTION_TYPES, } from "./repositories/finops-store.js";
|
|
42
|
+
export { ActorRepository, createPrismaIdentityStores, EntitlementRepository, ReputationFactRepository, } from "./repositories/identity-repository.js";
|
|
43
|
+
export { createInMemoryIdentityStores, InMemoryActorStore, InMemoryEntitlementStore, InMemoryReputationFactStore, } from "./repositories/identity-store.js";
|
|
40
44
|
export { param } from "@prisma/orm-postgres/relational-core/expression";
|