@lssm/example.marketplace 0.0.0-canary-20251217083314 → 0.0.0-canary-20251219202229
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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/docs/marketplace.docblock.js +2 -1
- package/dist/docs/marketplace.docblock.js.map +1 -0
- package/dist/entities/index.d.ts +298 -297
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +2 -1
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/order.d.ts +80 -79
- package/dist/entities/order.d.ts.map +1 -0
- package/dist/entities/order.js +89 -89
- package/dist/entities/order.js.map +1 -0
- package/dist/entities/payout.d.ts +67 -66
- package/dist/entities/payout.d.ts.map +1 -0
- package/dist/entities/payout.js +74 -74
- package/dist/entities/payout.js.map +1 -0
- package/dist/entities/product.d.ts +72 -71
- package/dist/entities/product.d.ts.map +1 -0
- package/dist/entities/product.js +86 -86
- package/dist/entities/product.js.map +1 -0
- package/dist/entities/review.d.ts +58 -57
- package/dist/entities/review.d.ts.map +1 -0
- package/dist/entities/review.js +70 -70
- package/dist/entities/review.js.map +1 -0
- package/dist/entities/store.d.ts +43 -42
- package/dist/entities/store.d.ts.map +1 -0
- package/dist/entities/store.js +49 -49
- package/dist/entities/store.js.map +1 -0
- package/dist/example.d.ts +2 -1
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +2 -1
- package/dist/example.js.map +1 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/index.js +2 -6
- package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +2 -1
- package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +2 -1
- package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/libs/contracts/dist/events.js +2 -1
- package/dist/libs/contracts/dist/events.js.map +1 -0
- package/dist/libs/contracts/dist/index.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +2 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +22 -23
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/libs/contracts/dist/ownership.js +4 -2
- package/dist/libs/contracts/dist/ownership.js.map +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +2 -1
- package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +2 -1
- package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +3873 -6
- package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/spec.js +2 -1
- package/dist/libs/contracts/dist/spec.js.map +1 -0
- package/dist/libs/schema/dist/index.js +4922 -6
- package/dist/libs/schema/dist/index.js.map +1 -0
- package/dist/marketplace.feature.d.ts +2 -1
- package/dist/marketplace.feature.d.ts.map +1 -0
- package/dist/marketplace.feature.js +2 -1
- package/dist/marketplace.feature.js.map +1 -0
- package/dist/order/order.contracts.d.ts +92 -91
- package/dist/order/order.contracts.d.ts.map +1 -0
- package/dist/order/order.contracts.js +2 -1
- package/dist/order/order.contracts.js.map +1 -0
- package/dist/order/order.enum.d.ts +4 -3
- package/dist/order/order.enum.d.ts.map +1 -0
- package/dist/order/order.enum.js +4 -4
- package/dist/order/order.enum.js.map +1 -0
- package/dist/order/order.event.d.ts +41 -40
- package/dist/order/order.event.d.ts.map +1 -0
- package/dist/order/order.event.js +40 -41
- package/dist/order/order.event.js.map +1 -0
- package/dist/order/order.presentation.d.ts +2 -1
- package/dist/order/order.presentation.d.ts.map +1 -0
- package/dist/order/order.presentation.js +2 -1
- package/dist/order/order.presentation.js.map +1 -0
- package/dist/order/order.schema.d.ts +41 -40
- package/dist/order/order.schema.d.ts.map +1 -0
- package/dist/order/order.schema.js +32 -33
- package/dist/order/order.schema.js.map +1 -0
- package/dist/payout/payout.contracts.d.ts +26 -25
- package/dist/payout/payout.contracts.d.ts.map +1 -0
- package/dist/payout/payout.contracts.js +2 -1
- package/dist/payout/payout.contracts.js.map +1 -0
- package/dist/payout/payout.enum.d.ts +4 -3
- package/dist/payout/payout.enum.d.ts.map +1 -0
- package/dist/payout/payout.enum.js +4 -4
- package/dist/payout/payout.enum.js.map +1 -0
- package/dist/payout/payout.event.d.ts +19 -18
- package/dist/payout/payout.event.d.ts.map +1 -0
- package/dist/payout/payout.event.js +18 -19
- package/dist/payout/payout.event.js.map +1 -0
- package/dist/payout/payout.presentation.d.ts +2 -1
- package/dist/payout/payout.presentation.d.ts.map +1 -0
- package/dist/payout/payout.presentation.js +2 -1
- package/dist/payout/payout.presentation.js.map +1 -0
- package/dist/payout/payout.schema.d.ts +39 -38
- package/dist/payout/payout.schema.d.ts.map +1 -0
- package/dist/payout/payout.schema.js +23 -24
- package/dist/payout/payout.schema.js.map +1 -0
- package/dist/product/product.contracts.d.ts +70 -69
- package/dist/product/product.contracts.d.ts.map +1 -0
- package/dist/product/product.contracts.js +2 -1
- package/dist/product/product.contracts.js.map +1 -0
- package/dist/product/product.enum.d.ts +4 -3
- package/dist/product/product.enum.d.ts.map +1 -0
- package/dist/product/product.enum.js +4 -4
- package/dist/product/product.enum.js.map +1 -0
- package/dist/product/product.event.d.ts +22 -21
- package/dist/product/product.event.d.ts.map +1 -0
- package/dist/product/product.event.js +21 -22
- package/dist/product/product.event.js.map +1 -0
- package/dist/product/product.presentation.d.ts +2 -1
- package/dist/product/product.presentation.d.ts.map +1 -0
- package/dist/product/product.presentation.js +2 -1
- package/dist/product/product.presentation.js.map +1 -0
- package/dist/product/product.schema.d.ts +54 -53
- package/dist/product/product.schema.d.ts.map +1 -0
- package/dist/product/product.schema.js +37 -38
- package/dist/product/product.schema.js.map +1 -0
- package/dist/review/review.contracts.d.ts +61 -60
- package/dist/review/review.contracts.d.ts.map +1 -0
- package/dist/review/review.contracts.js +2 -1
- package/dist/review/review.contracts.js.map +1 -0
- package/dist/review/review.enum.d.ts +4 -3
- package/dist/review/review.enum.d.ts.map +1 -0
- package/dist/review/review.enum.js +4 -4
- package/dist/review/review.enum.js.map +1 -0
- package/dist/review/review.event.d.ts +17 -16
- package/dist/review/review.event.d.ts.map +1 -0
- package/dist/review/review.event.js +16 -17
- package/dist/review/review.event.js.map +1 -0
- package/dist/review/review.presentation.d.ts +2 -1
- package/dist/review/review.presentation.d.ts.map +1 -0
- package/dist/review/review.presentation.js +2 -1
- package/dist/review/review.presentation.js.map +1 -0
- package/dist/review/review.schema.d.ts +47 -46
- package/dist/review/review.schema.d.ts.map +1 -0
- package/dist/review/review.schema.js +32 -33
- package/dist/review/review.schema.js.map +1 -0
- package/dist/store/store.contracts.d.ts +35 -34
- package/dist/store/store.contracts.d.ts.map +1 -0
- package/dist/store/store.contracts.js +2 -1
- package/dist/store/store.contracts.js.map +1 -0
- package/dist/store/store.enum.d.ts +4 -3
- package/dist/store/store.enum.d.ts.map +1 -0
- package/dist/store/store.enum.js +4 -4
- package/dist/store/store.enum.js.map +1 -0
- package/dist/store/store.event.d.ts +16 -15
- package/dist/store/store.event.d.ts.map +1 -0
- package/dist/store/store.event.js +15 -16
- package/dist/store/store.event.js.map +1 -0
- package/dist/store/store.presentation.d.ts +2 -1
- package/dist/store/store.presentation.d.ts.map +1 -0
- package/dist/store/store.presentation.js +2 -1
- package/dist/store/store.presentation.js.map +1 -0
- package/dist/store/store.schema.d.ts +22 -21
- package/dist/store/store.schema.d.ts.map +1 -0
- package/dist/store/store.schema.js +21 -22
- package/dist/store/store.schema.js.map +1 -0
- package/package.json +14 -13
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/schema/dist/EnumType.js +0 -56
- package/dist/libs/schema/dist/FieldType.js +0 -49
- package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/schema/dist/SchemaModel.js +0 -39
- package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
- package/dist/libs/schema/dist/entity/index.js +0 -2
- package/dist/libs/schema/dist/entity/types.js +0 -1
|
@@ -1,217 +1,215 @@
|
|
|
1
1
|
import { defineCommand, defineQuery } from "../spec.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ScalarTypeEnum } from "../schema/dist/ScalarTypeEnum.js";
|
|
4
|
-
import "../schema/dist/index.js";
|
|
2
|
+
import { E5, x8 } from "../schema/dist/index.js";
|
|
5
3
|
|
|
6
4
|
//#region ../../libs/contracts/dist/integrations/contracts.js
|
|
7
|
-
const IntegrationConnectionRecord = new
|
|
5
|
+
const IntegrationConnectionRecord = new x8({
|
|
8
6
|
name: "IntegrationConnectionRecord",
|
|
9
7
|
fields: {
|
|
10
8
|
id: {
|
|
11
|
-
type:
|
|
9
|
+
type: E5.ID(),
|
|
12
10
|
isOptional: false
|
|
13
11
|
},
|
|
14
12
|
tenantId: {
|
|
15
|
-
type:
|
|
13
|
+
type: E5.ID(),
|
|
16
14
|
isOptional: false
|
|
17
15
|
},
|
|
18
16
|
integrationKey: {
|
|
19
|
-
type:
|
|
17
|
+
type: E5.NonEmptyString(),
|
|
20
18
|
isOptional: false
|
|
21
19
|
},
|
|
22
20
|
integrationVersion: {
|
|
23
|
-
type:
|
|
21
|
+
type: E5.Int_unsecure(),
|
|
24
22
|
isOptional: false
|
|
25
23
|
},
|
|
26
24
|
label: {
|
|
27
|
-
type:
|
|
25
|
+
type: E5.String_unsecure(),
|
|
28
26
|
isOptional: false
|
|
29
27
|
},
|
|
30
28
|
ownershipMode: {
|
|
31
|
-
type:
|
|
29
|
+
type: E5.String_unsecure(),
|
|
32
30
|
isOptional: false
|
|
33
31
|
},
|
|
34
32
|
externalAccountId: {
|
|
35
|
-
type:
|
|
33
|
+
type: E5.String_unsecure(),
|
|
36
34
|
isOptional: true
|
|
37
35
|
},
|
|
38
36
|
secretProvider: {
|
|
39
|
-
type:
|
|
37
|
+
type: E5.String_unsecure(),
|
|
40
38
|
isOptional: false
|
|
41
39
|
},
|
|
42
40
|
secretRef: {
|
|
43
|
-
type:
|
|
41
|
+
type: E5.String_unsecure(),
|
|
44
42
|
isOptional: false
|
|
45
43
|
},
|
|
46
44
|
status: {
|
|
47
|
-
type:
|
|
45
|
+
type: E5.String_unsecure(),
|
|
48
46
|
isOptional: false
|
|
49
47
|
},
|
|
50
48
|
environment: {
|
|
51
|
-
type:
|
|
49
|
+
type: E5.String_unsecure(),
|
|
52
50
|
isOptional: true
|
|
53
51
|
},
|
|
54
52
|
healthStatus: {
|
|
55
|
-
type:
|
|
53
|
+
type: E5.String_unsecure(),
|
|
56
54
|
isOptional: true
|
|
57
55
|
},
|
|
58
56
|
healthCheckedAt: {
|
|
59
|
-
type:
|
|
57
|
+
type: E5.DateTime(),
|
|
60
58
|
isOptional: true
|
|
61
59
|
},
|
|
62
60
|
healthLatencyMs: {
|
|
63
|
-
type:
|
|
61
|
+
type: E5.Float_unsecure(),
|
|
64
62
|
isOptional: true
|
|
65
63
|
},
|
|
66
64
|
healthErrorCode: {
|
|
67
|
-
type:
|
|
65
|
+
type: E5.String_unsecure(),
|
|
68
66
|
isOptional: true
|
|
69
67
|
},
|
|
70
68
|
healthErrorMessage: {
|
|
71
|
-
type:
|
|
69
|
+
type: E5.String_unsecure(),
|
|
72
70
|
isOptional: true
|
|
73
71
|
},
|
|
74
72
|
usageRequestCount: {
|
|
75
|
-
type:
|
|
73
|
+
type: E5.Int_unsecure(),
|
|
76
74
|
isOptional: true
|
|
77
75
|
},
|
|
78
76
|
usageSuccessCount: {
|
|
79
|
-
type:
|
|
77
|
+
type: E5.Int_unsecure(),
|
|
80
78
|
isOptional: true
|
|
81
79
|
},
|
|
82
80
|
usageErrorCount: {
|
|
83
|
-
type:
|
|
81
|
+
type: E5.Int_unsecure(),
|
|
84
82
|
isOptional: true
|
|
85
83
|
},
|
|
86
84
|
usageLastUsedAt: {
|
|
87
|
-
type:
|
|
85
|
+
type: E5.DateTime(),
|
|
88
86
|
isOptional: true
|
|
89
87
|
},
|
|
90
88
|
usageLastErrorAt: {
|
|
91
|
-
type:
|
|
89
|
+
type: E5.DateTime(),
|
|
92
90
|
isOptional: true
|
|
93
91
|
},
|
|
94
92
|
usageLastErrorCode: {
|
|
95
|
-
type:
|
|
93
|
+
type: E5.String_unsecure(),
|
|
96
94
|
isOptional: true
|
|
97
95
|
},
|
|
98
96
|
createdAt: {
|
|
99
|
-
type:
|
|
97
|
+
type: E5.DateTime(),
|
|
100
98
|
isOptional: true
|
|
101
99
|
},
|
|
102
100
|
updatedAt: {
|
|
103
|
-
type:
|
|
101
|
+
type: E5.DateTime(),
|
|
104
102
|
isOptional: true
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
});
|
|
108
|
-
const CreateIntegrationConnectionInput = new
|
|
106
|
+
const CreateIntegrationConnectionInput = new x8({
|
|
109
107
|
name: "CreateIntegrationConnectionInput",
|
|
110
108
|
fields: {
|
|
111
109
|
tenantId: {
|
|
112
|
-
type:
|
|
110
|
+
type: E5.ID(),
|
|
113
111
|
isOptional: false
|
|
114
112
|
},
|
|
115
113
|
integrationKey: {
|
|
116
|
-
type:
|
|
114
|
+
type: E5.NonEmptyString(),
|
|
117
115
|
isOptional: false
|
|
118
116
|
},
|
|
119
117
|
integrationVersion: {
|
|
120
|
-
type:
|
|
118
|
+
type: E5.Int_unsecure(),
|
|
121
119
|
isOptional: false
|
|
122
120
|
},
|
|
123
121
|
label: {
|
|
124
|
-
type:
|
|
122
|
+
type: E5.String_unsecure(),
|
|
125
123
|
isOptional: false
|
|
126
124
|
},
|
|
127
125
|
ownershipMode: {
|
|
128
|
-
type:
|
|
126
|
+
type: E5.String_unsecure(),
|
|
129
127
|
isOptional: false
|
|
130
128
|
},
|
|
131
129
|
externalAccountId: {
|
|
132
|
-
type:
|
|
130
|
+
type: E5.String_unsecure(),
|
|
133
131
|
isOptional: true
|
|
134
132
|
},
|
|
135
133
|
secretProvider: {
|
|
136
|
-
type:
|
|
134
|
+
type: E5.String_unsecure(),
|
|
137
135
|
isOptional: false
|
|
138
136
|
},
|
|
139
137
|
secretRef: {
|
|
140
|
-
type:
|
|
138
|
+
type: E5.String_unsecure(),
|
|
141
139
|
isOptional: false
|
|
142
140
|
},
|
|
143
141
|
environment: {
|
|
144
|
-
type:
|
|
142
|
+
type: E5.String_unsecure(),
|
|
145
143
|
isOptional: true
|
|
146
144
|
},
|
|
147
145
|
config: {
|
|
148
|
-
type:
|
|
146
|
+
type: E5.JSONObject(),
|
|
149
147
|
isOptional: false
|
|
150
148
|
}
|
|
151
149
|
}
|
|
152
150
|
});
|
|
153
|
-
const UpdateIntegrationConnectionInput = new
|
|
151
|
+
const UpdateIntegrationConnectionInput = new x8({
|
|
154
152
|
name: "UpdateIntegrationConnectionInput",
|
|
155
153
|
fields: {
|
|
156
154
|
connectionId: {
|
|
157
|
-
type:
|
|
155
|
+
type: E5.ID(),
|
|
158
156
|
isOptional: false
|
|
159
157
|
},
|
|
160
158
|
label: {
|
|
161
|
-
type:
|
|
159
|
+
type: E5.String_unsecure(),
|
|
162
160
|
isOptional: true
|
|
163
161
|
},
|
|
164
162
|
status: {
|
|
165
|
-
type:
|
|
163
|
+
type: E5.String_unsecure(),
|
|
166
164
|
isOptional: true
|
|
167
165
|
},
|
|
168
166
|
ownershipMode: {
|
|
169
|
-
type:
|
|
167
|
+
type: E5.String_unsecure(),
|
|
170
168
|
isOptional: true
|
|
171
169
|
},
|
|
172
170
|
externalAccountId: {
|
|
173
|
-
type:
|
|
171
|
+
type: E5.String_unsecure(),
|
|
174
172
|
isOptional: true
|
|
175
173
|
},
|
|
176
174
|
secretProvider: {
|
|
177
|
-
type:
|
|
175
|
+
type: E5.String_unsecure(),
|
|
178
176
|
isOptional: true
|
|
179
177
|
},
|
|
180
178
|
secretRef: {
|
|
181
|
-
type:
|
|
179
|
+
type: E5.String_unsecure(),
|
|
182
180
|
isOptional: true
|
|
183
181
|
},
|
|
184
182
|
config: {
|
|
185
|
-
type:
|
|
183
|
+
type: E5.JSONObject(),
|
|
186
184
|
isOptional: true
|
|
187
185
|
}
|
|
188
186
|
}
|
|
189
187
|
});
|
|
190
|
-
const DeleteIntegrationConnectionInput = new
|
|
188
|
+
const DeleteIntegrationConnectionInput = new x8({
|
|
191
189
|
name: "DeleteIntegrationConnectionInput",
|
|
192
190
|
fields: { connectionId: {
|
|
193
|
-
type:
|
|
191
|
+
type: E5.ID(),
|
|
194
192
|
isOptional: false
|
|
195
193
|
} }
|
|
196
194
|
});
|
|
197
|
-
const ListIntegrationConnectionsInput = new
|
|
195
|
+
const ListIntegrationConnectionsInput = new x8({
|
|
198
196
|
name: "ListIntegrationConnectionsInput",
|
|
199
197
|
fields: {
|
|
200
198
|
tenantId: {
|
|
201
|
-
type:
|
|
199
|
+
type: E5.ID(),
|
|
202
200
|
isOptional: false
|
|
203
201
|
},
|
|
204
202
|
category: {
|
|
205
|
-
type:
|
|
203
|
+
type: E5.String_unsecure(),
|
|
206
204
|
isOptional: true
|
|
207
205
|
},
|
|
208
206
|
status: {
|
|
209
|
-
type:
|
|
207
|
+
type: E5.String_unsecure(),
|
|
210
208
|
isOptional: true
|
|
211
209
|
}
|
|
212
210
|
}
|
|
213
211
|
});
|
|
214
|
-
const ListIntegrationConnectionsOutput = new
|
|
212
|
+
const ListIntegrationConnectionsOutput = new x8({
|
|
215
213
|
name: "ListIntegrationConnectionsOutput",
|
|
216
214
|
fields: { connections: {
|
|
217
215
|
type: IntegrationConnectionRecord,
|
|
@@ -219,42 +217,42 @@ const ListIntegrationConnectionsOutput = new SchemaModel({
|
|
|
219
217
|
isArray: true
|
|
220
218
|
} }
|
|
221
219
|
});
|
|
222
|
-
const TestIntegrationConnectionInput = new
|
|
220
|
+
const TestIntegrationConnectionInput = new x8({
|
|
223
221
|
name: "TestIntegrationConnectionInput",
|
|
224
222
|
fields: { connectionId: {
|
|
225
|
-
type:
|
|
223
|
+
type: E5.ID(),
|
|
226
224
|
isOptional: false
|
|
227
225
|
} }
|
|
228
226
|
});
|
|
229
|
-
const TestIntegrationConnectionOutput = new
|
|
227
|
+
const TestIntegrationConnectionOutput = new x8({
|
|
230
228
|
name: "TestIntegrationConnectionOutput",
|
|
231
229
|
fields: {
|
|
232
230
|
success: {
|
|
233
|
-
type:
|
|
231
|
+
type: E5.Boolean(),
|
|
234
232
|
isOptional: false
|
|
235
233
|
},
|
|
236
234
|
status: {
|
|
237
|
-
type:
|
|
235
|
+
type: E5.String_unsecure(),
|
|
238
236
|
isOptional: true
|
|
239
237
|
},
|
|
240
238
|
latencyMs: {
|
|
241
|
-
type:
|
|
239
|
+
type: E5.Float_unsecure(),
|
|
242
240
|
isOptional: true
|
|
243
241
|
},
|
|
244
242
|
error: {
|
|
245
|
-
type:
|
|
243
|
+
type: E5.String_unsecure(),
|
|
246
244
|
isOptional: true
|
|
247
245
|
},
|
|
248
246
|
errorCode: {
|
|
249
|
-
type:
|
|
247
|
+
type: E5.String_unsecure(),
|
|
250
248
|
isOptional: true
|
|
251
249
|
}
|
|
252
250
|
}
|
|
253
251
|
});
|
|
254
|
-
const DeleteIntegrationConnectionOutput = new
|
|
252
|
+
const DeleteIntegrationConnectionOutput = new x8({
|
|
255
253
|
name: "DeleteIntegrationConnectionOutput",
|
|
256
254
|
fields: { success: {
|
|
257
|
-
type:
|
|
255
|
+
type: E5.Boolean(),
|
|
258
256
|
isOptional: false
|
|
259
257
|
} }
|
|
260
258
|
});
|
|
@@ -374,4 +372,5 @@ const TestIntegrationConnection = defineCommand({
|
|
|
374
372
|
}
|
|
375
373
|
});
|
|
376
374
|
|
|
377
|
-
//#endregion
|
|
375
|
+
//#endregion
|
|
376
|
+
//# sourceMappingURL=contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.js","names":[],"sources":["../../../../../../../libs/contracts/dist/integrations/contracts.js"],"sourcesContent":["import { E5, x8 } from \"../schema/dist/index.js\";\nimport { defineCommand, defineQuery } from \"../spec.js\";\n\n//#region src/integrations/contracts.ts\nconst IntegrationConnectionRecord = new x8({\n\tname: \"IntegrationConnectionRecord\",\n\tfields: {\n\t\tid: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tintegrationKey: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\tintegrationVersion: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tlabel: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\townershipMode: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\texternalAccountId: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tsecretProvider: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tsecretRef: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tstatus: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tenvironment: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\thealthStatus: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\thealthCheckedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\thealthLatencyMs: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\thealthErrorCode: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\thealthErrorMessage: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tusageRequestCount: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tusageSuccessCount: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tusageErrorCount: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tusageLastUsedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tusageLastErrorAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tusageLastErrorCode: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcreatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tupdatedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst CreateIntegrationConnectionInput = new x8({\n\tname: \"CreateIntegrationConnectionInput\",\n\tfields: {\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tintegrationKey: {\n\t\t\ttype: E5.NonEmptyString(),\n\t\t\tisOptional: false\n\t\t},\n\t\tintegrationVersion: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tlabel: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\townershipMode: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\texternalAccountId: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tsecretProvider: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tsecretRef: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tenvironment: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tconfig: {\n\t\t\ttype: E5.JSONObject(),\n\t\t\tisOptional: false\n\t\t}\n\t}\n});\nconst UpdateIntegrationConnectionInput = new x8({\n\tname: \"UpdateIntegrationConnectionInput\",\n\tfields: {\n\t\tconnectionId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tlabel: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tstatus: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\townershipMode: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\texternalAccountId: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tsecretProvider: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tsecretRef: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tconfig: {\n\t\t\ttype: E5.JSONObject(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst DeleteIntegrationConnectionInput = new x8({\n\tname: \"DeleteIntegrationConnectionInput\",\n\tfields: { connectionId: {\n\t\ttype: E5.ID(),\n\t\tisOptional: false\n\t} }\n});\nconst ListIntegrationConnectionsInput = new x8({\n\tname: \"ListIntegrationConnectionsInput\",\n\tfields: {\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tcategory: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tstatus: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst ListIntegrationConnectionsOutput = new x8({\n\tname: \"ListIntegrationConnectionsOutput\",\n\tfields: { connections: {\n\t\ttype: IntegrationConnectionRecord,\n\t\tisOptional: false,\n\t\tisArray: true\n\t} }\n});\nconst TestIntegrationConnectionInput = new x8({\n\tname: \"TestIntegrationConnectionInput\",\n\tfields: { connectionId: {\n\t\ttype: E5.ID(),\n\t\tisOptional: false\n\t} }\n});\nconst TestIntegrationConnectionOutput = new x8({\n\tname: \"TestIntegrationConnectionOutput\",\n\tfields: {\n\t\tsuccess: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: false\n\t\t},\n\t\tstatus: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tlatencyMs: {\n\t\t\ttype: E5.Float_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\terror: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\terrorCode: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst DeleteIntegrationConnectionOutput = new x8({\n\tname: \"DeleteIntegrationConnectionOutput\",\n\tfields: { success: {\n\t\ttype: E5.Boolean(),\n\t\tisOptional: false\n\t} }\n});\nconst CreateIntegrationConnection = defineCommand({\n\tmeta: {\n\t\tname: \"integrations.connection.create\",\n\t\tversion: 1,\n\t\tdescription: \"Create a new integration connection for a tenant.\",\n\t\tgoal: \"Provision a tenant-scoped connection to an external provider.\",\n\t\tcontext: \"Used by Ops or the App Studio to configure external integrations such as Stripe or Qdrant.\",\n\t\towners: [\"platform.integrations\"],\n\t\ttags: [\"integration\", \"connections\"],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: CreateIntegrationConnectionInput,\n\t\toutput: IntegrationConnectionRecord\n\t},\n\tpolicy: {\n\t\tauth: \"admin\",\n\t\tpolicies: [{\n\t\t\tname: \"platform.integration.manage\",\n\t\t\tversion: 1\n\t\t}]\n\t}\n});\nconst UpdateIntegrationConnection = defineCommand({\n\tmeta: {\n\t\tname: \"integrations.connection.update\",\n\t\tversion: 1,\n\t\tdescription: \"Update metadata or credentials for an integration connection.\",\n\t\tgoal: \"Allow secure rotation of credentials and metadata adjustments.\",\n\t\tcontext: \"Supports rotating API keys, toggling status, or updating labels for tenant integrations.\",\n\t\towners: [\"platform.integrations\"],\n\t\ttags: [\"integration\", \"connections\"],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: UpdateIntegrationConnectionInput,\n\t\toutput: IntegrationConnectionRecord\n\t},\n\tpolicy: {\n\t\tauth: \"admin\",\n\t\tpolicies: [{\n\t\t\tname: \"platform.integration.manage\",\n\t\t\tversion: 1\n\t\t}]\n\t}\n});\nconst DeleteIntegrationConnection = defineCommand({\n\tmeta: {\n\t\tname: \"integrations.connection.delete\",\n\t\tversion: 1,\n\t\tdescription: \"Delete an integration connection for a tenant.\",\n\t\tgoal: \"Safely remove credentials and disable connector usage.\",\n\t\tcontext: \"Ensures connections are de-provisioned when no longer needed or breached.\",\n\t\towners: [\"platform.integrations\"],\n\t\ttags: [\"integration\", \"connections\"],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: DeleteIntegrationConnectionInput,\n\t\toutput: DeleteIntegrationConnectionOutput\n\t},\n\tpolicy: {\n\t\tauth: \"admin\",\n\t\tpolicies: [{\n\t\t\tname: \"platform.integration.manage\",\n\t\t\tversion: 1\n\t\t}]\n\t}\n});\nconst ListIntegrationConnections = defineQuery({\n\tmeta: {\n\t\tname: \"integrations.connection.list\",\n\t\tversion: 1,\n\t\tdescription: \"List integration connections for a tenant.\",\n\t\tgoal: \"Provide visibility into configured integrations and their status.\",\n\t\tcontext: \"Used by the App Studio and Ops flows to show bindings and health.\",\n\t\towners: [\"platform.integrations\"],\n\t\ttags: [\"integration\", \"connections\"],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: ListIntegrationConnectionsInput,\n\t\toutput: ListIntegrationConnectionsOutput\n\t},\n\tpolicy: {\n\t\tauth: \"admin\",\n\t\tpolicies: [{\n\t\t\tname: \"platform.integration.read\",\n\t\t\tversion: 1\n\t\t}]\n\t}\n});\nconst TestIntegrationConnection = defineCommand({\n\tmeta: {\n\t\tname: \"integrations.connection.test\",\n\t\tversion: 1,\n\t\tdescription: \"Run a health check against a configured integration connection.\",\n\t\tgoal: \"Validate credentials and connectivity for external providers.\",\n\t\tcontext: \"Triggered manually or by background monitors to confirm provider availability.\",\n\t\towners: [\"platform.integrations\"],\n\t\ttags: [\"integration\", \"connections\"],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: TestIntegrationConnectionInput,\n\t\toutput: TestIntegrationConnectionOutput\n\t},\n\tpolicy: {\n\t\tauth: \"admin\",\n\t\tpolicies: [{\n\t\t\tname: \"platform.integration.manage\",\n\t\t\tversion: 1\n\t\t}]\n\t}\n});\nconst integrationContracts = {\n\tCreateIntegrationConnection,\n\tUpdateIntegrationConnection,\n\tDeleteIntegrationConnection,\n\tListIntegrationConnections,\n\tTestIntegrationConnection\n};\nfunction registerIntegrationContracts(registry) {\n\treturn registry.register(CreateIntegrationConnection).register(UpdateIntegrationConnection).register(DeleteIntegrationConnection).register(ListIntegrationConnections).register(TestIntegrationConnection);\n}\n\n//#endregion\nexport { CreateIntegrationConnection, DeleteIntegrationConnection, ListIntegrationConnections, TestIntegrationConnection, UpdateIntegrationConnection, integrationContracts, registerIntegrationContracts };\n//# sourceMappingURL=contracts.js.map"],"mappings":";;;;AAIA,MAAM,8BAA8B,IAAI,GAAG;CAC1C,MAAM;CACN,QAAQ;EACP,IAAI;GACH,MAAM,GAAG,IAAI;GACb,YAAY;GACZ;EACD,UAAU;GACT,MAAM,GAAG,IAAI;GACb,YAAY;GACZ;EACD,gBAAgB;GACf,MAAM,GAAG,gBAAgB;GACzB,YAAY;GACZ;EACD,oBAAoB;GACnB,MAAM,GAAG,cAAc;GACvB,YAAY;GACZ;EACD,OAAO;GACN,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EAC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Q,CAAC,wBAAwB;EACjC,MAAM,CAAC,eAAe,cAAc;EACpC,WAAW;EACX;CACD,IAAI;EACH,OAAO;EACP,QAAQ;EACR;CACD,QAAQ;EACP,MAAM;EACN,UAAU,CAAC;GACV,MAAM;GACN,SAAS;GACT,CAAC;EACF;CACD,CAAC;AACF,MAAM,8BAA8B,cAAc;CACjD,MAAM;EACL,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,SAAS;EACT,QAAQ,CAAC,wBAAwB;EACjC,MAAM,CAAC,eAAe,cAAc;EACpC,WAAW;EACX;CACD,IAAI;EACH,OAAO;EACP,QAAQ;EACR;CACD,QAAQ;EACP,MAAM;EACN,UAAU,CAAC;GACV,MAAM;GACN,SAAS;GACT,CAAC;EACF;CACD,CAAC;AACF,MAAM,6BAA6B,YAAY;CAC9C,MAAM;EACL,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,SAAS;EACT,QAAQ,CAAC,wBAAwB;EACjC,MAAM,CAAC,eAAe,cAAc;EACpC,WAAW;EACX;CACD,IAAI;EACH,OAAO;EACP,QAAQ;EACR;CACD,QAAQ;EACP,MAAM;EACN,UAAU,CAAC;GACV,MAAM;GACN,SAAS;GACT,CAAC;EACF;CACD,CAAC;AACF,MAAM,4BAA4B,cAAc;CAC/C,MAAM;EACL,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,SAAS;EACT,QAAQ,CAAC,wBAAwB;EACjC,MAAM,CAAC,eAAe,cAAc;EACpC,WAAW;EACX;CACD,IAAI;EACH,OAAO;EACP,QAAQ;EACR;CACD,QAAQ;EACP,MAAM;EACN,UAAU,CAAC;GACV,MAAM;GACN,SAAS;GACT,CAAC;EACF;CACD,CAAC"}
|
|
@@ -1,46 +1,44 @@
|
|
|
1
1
|
import { defineCommand, defineQuery } from "../../../spec.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ScalarTypeEnum } from "../../../schema/dist/ScalarTypeEnum.js";
|
|
4
|
-
import "../../../schema/dist/index.js";
|
|
2
|
+
import { E5, x8 } from "../../../schema/dist/index.js";
|
|
5
3
|
import { BankAccountRecord } from "../models.js";
|
|
6
4
|
import { OPENBANKING_TELEMETRY_EVENTS } from "../telemetry.js";
|
|
7
5
|
|
|
8
6
|
//#region ../../libs/contracts/dist/integrations/openbanking/contracts/accounts.js
|
|
9
|
-
const OpenBankingListAccountsInput = new
|
|
7
|
+
const OpenBankingListAccountsInput = new x8({
|
|
10
8
|
name: "OpenBankingListAccountsInput",
|
|
11
9
|
description: "Parameters for listing bank accounts through the open banking provider.",
|
|
12
10
|
fields: {
|
|
13
11
|
tenantId: {
|
|
14
|
-
type:
|
|
12
|
+
type: E5.ID(),
|
|
15
13
|
isOptional: false
|
|
16
14
|
},
|
|
17
15
|
userId: {
|
|
18
|
-
type:
|
|
16
|
+
type: E5.ID(),
|
|
19
17
|
isOptional: false
|
|
20
18
|
},
|
|
21
19
|
connectionId: {
|
|
22
|
-
type:
|
|
20
|
+
type: E5.ID(),
|
|
23
21
|
isOptional: true
|
|
24
22
|
},
|
|
25
23
|
includeBalances: {
|
|
26
|
-
type:
|
|
24
|
+
type: E5.Boolean(),
|
|
27
25
|
isOptional: true
|
|
28
26
|
},
|
|
29
27
|
institutionId: {
|
|
30
|
-
type:
|
|
28
|
+
type: E5.String_unsecure(),
|
|
31
29
|
isOptional: true
|
|
32
30
|
},
|
|
33
31
|
cursor: {
|
|
34
|
-
type:
|
|
32
|
+
type: E5.String_unsecure(),
|
|
35
33
|
isOptional: true
|
|
36
34
|
},
|
|
37
35
|
pageSize: {
|
|
38
|
-
type:
|
|
36
|
+
type: E5.Int_unsecure(),
|
|
39
37
|
isOptional: true
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
});
|
|
43
|
-
const OpenBankingListAccountsOutput = new
|
|
41
|
+
const OpenBankingListAccountsOutput = new x8({
|
|
44
42
|
name: "OpenBankingListAccountsOutput",
|
|
45
43
|
description: "Paginated list of bank accounts available to the tenant and user.",
|
|
46
44
|
fields: {
|
|
@@ -50,87 +48,87 @@ const OpenBankingListAccountsOutput = new SchemaModel({
|
|
|
50
48
|
isArray: true
|
|
51
49
|
},
|
|
52
50
|
nextCursor: {
|
|
53
|
-
type:
|
|
51
|
+
type: E5.String_unsecure(),
|
|
54
52
|
isOptional: true
|
|
55
53
|
},
|
|
56
54
|
hasMore: {
|
|
57
|
-
type:
|
|
55
|
+
type: E5.Boolean(),
|
|
58
56
|
isOptional: true
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
59
|
});
|
|
62
|
-
const OpenBankingGetAccountInput = new
|
|
60
|
+
const OpenBankingGetAccountInput = new x8({
|
|
63
61
|
name: "OpenBankingGetAccountInput",
|
|
64
62
|
description: "Parameters for retrieving a specific bank account.",
|
|
65
63
|
fields: {
|
|
66
64
|
tenantId: {
|
|
67
|
-
type:
|
|
65
|
+
type: E5.ID(),
|
|
68
66
|
isOptional: false
|
|
69
67
|
},
|
|
70
68
|
accountId: {
|
|
71
|
-
type:
|
|
69
|
+
type: E5.ID(),
|
|
72
70
|
isOptional: false
|
|
73
71
|
},
|
|
74
72
|
includeBalances: {
|
|
75
|
-
type:
|
|
73
|
+
type: E5.Boolean(),
|
|
76
74
|
isOptional: true
|
|
77
75
|
},
|
|
78
76
|
includeLatestTransactions: {
|
|
79
|
-
type:
|
|
77
|
+
type: E5.Boolean(),
|
|
80
78
|
isOptional: true
|
|
81
79
|
}
|
|
82
80
|
}
|
|
83
81
|
});
|
|
84
|
-
const OpenBankingSyncAccountsInput = new
|
|
82
|
+
const OpenBankingSyncAccountsInput = new x8({
|
|
85
83
|
name: "OpenBankingSyncAccountsInput",
|
|
86
84
|
description: "Command payload to trigger an account synchronisation against the open banking provider.",
|
|
87
85
|
fields: {
|
|
88
86
|
tenantId: {
|
|
89
|
-
type:
|
|
87
|
+
type: E5.ID(),
|
|
90
88
|
isOptional: false
|
|
91
89
|
},
|
|
92
90
|
userId: {
|
|
93
|
-
type:
|
|
91
|
+
type: E5.ID(),
|
|
94
92
|
isOptional: true
|
|
95
93
|
},
|
|
96
94
|
connectionId: {
|
|
97
|
-
type:
|
|
95
|
+
type: E5.ID(),
|
|
98
96
|
isOptional: false
|
|
99
97
|
},
|
|
100
98
|
accountIds: {
|
|
101
|
-
type:
|
|
99
|
+
type: E5.ID(),
|
|
102
100
|
isArray: true,
|
|
103
101
|
isOptional: true
|
|
104
102
|
},
|
|
105
103
|
forceFullRefresh: {
|
|
106
|
-
type:
|
|
104
|
+
type: E5.Boolean(),
|
|
107
105
|
isOptional: true
|
|
108
106
|
},
|
|
109
107
|
triggerWorkflows: {
|
|
110
|
-
type:
|
|
108
|
+
type: E5.Boolean(),
|
|
111
109
|
isOptional: true
|
|
112
110
|
}
|
|
113
111
|
}
|
|
114
112
|
});
|
|
115
|
-
const OpenBankingSyncAccountsOutput = new
|
|
113
|
+
const OpenBankingSyncAccountsOutput = new x8({
|
|
116
114
|
name: "OpenBankingSyncAccountsOutput",
|
|
117
115
|
description: "Result of a bank account synchronisation run.",
|
|
118
116
|
fields: {
|
|
119
117
|
synced: {
|
|
120
|
-
type:
|
|
118
|
+
type: E5.Int_unsecure(),
|
|
121
119
|
isOptional: false
|
|
122
120
|
},
|
|
123
121
|
failed: {
|
|
124
|
-
type:
|
|
122
|
+
type: E5.Int_unsecure(),
|
|
125
123
|
isOptional: false
|
|
126
124
|
},
|
|
127
125
|
errors: {
|
|
128
|
-
type:
|
|
126
|
+
type: E5.String_unsecure(),
|
|
129
127
|
isArray: true,
|
|
130
128
|
isOptional: true
|
|
131
129
|
},
|
|
132
130
|
nextSyncSuggestedAt: {
|
|
133
|
-
type:
|
|
131
|
+
type: E5.DateTime(),
|
|
134
132
|
isOptional: true
|
|
135
133
|
}
|
|
136
134
|
}
|
|
@@ -225,4 +223,5 @@ const OpenBankingSyncAccounts = defineCommand({
|
|
|
225
223
|
}
|
|
226
224
|
});
|
|
227
225
|
|
|
228
|
-
//#endregion
|
|
226
|
+
//#endregion
|
|
227
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/integrations/openbanking/contracts/accounts.js"],"sourcesContent":["import { E5, x8 } from \"../../../schema/dist/index.js\";\nimport { defineCommand, defineQuery } from \"../../../spec.js\";\nimport { BankAccountRecord } from \"../models.js\";\nimport { OPENBANKING_TELEMETRY_EVENTS } from \"../telemetry.js\";\n\n//#region src/integrations/openbanking/contracts/accounts.ts\nconst OpenBankingListAccountsInput = new x8({\n\tname: \"OpenBankingListAccountsInput\",\n\tdescription: \"Parameters for listing bank accounts through the open banking provider.\",\n\tfields: {\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tuserId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tconnectionId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: true\n\t\t},\n\t\tincludeBalances: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: true\n\t\t},\n\t\tinstitutionId: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcursor: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\tpageSize: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst OpenBankingListAccountsOutput = new x8({\n\tname: \"OpenBankingListAccountsOutput\",\n\tdescription: \"Paginated list of bank accounts available to the tenant and user.\",\n\tfields: {\n\t\taccounts: {\n\t\t\ttype: BankAccountRecord,\n\t\t\tisOptional: false,\n\t\t\tisArray: true\n\t\t},\n\t\tnextCursor: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisOptional: true\n\t\t},\n\t\thasMore: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst OpenBankingGetAccountInput = new x8({\n\tname: \"OpenBankingGetAccountInput\",\n\tdescription: \"Parameters for retrieving a specific bank account.\",\n\tfields: {\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\taccountId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tincludeBalances: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: true\n\t\t},\n\t\tincludeLatestTransactions: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst OpenBankingSyncAccountsInput = new x8({\n\tname: \"OpenBankingSyncAccountsInput\",\n\tdescription: \"Command payload to trigger an account synchronisation against the open banking provider.\",\n\tfields: {\n\t\ttenantId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\tuserId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: true\n\t\t},\n\t\tconnectionId: {\n\t\t\ttype: E5.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\taccountIds: {\n\t\t\ttype: E5.ID(),\n\t\t\tisArray: true,\n\t\t\tisOptional: true\n\t\t},\n\t\tforceFullRefresh: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: true\n\t\t},\n\t\ttriggerWorkflows: {\n\t\t\ttype: E5.Boolean(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst OpenBankingSyncAccountsOutput = new x8({\n\tname: \"OpenBankingSyncAccountsOutput\",\n\tdescription: \"Result of a bank account synchronisation run.\",\n\tfields: {\n\t\tsynced: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\tfailed: {\n\t\t\ttype: E5.Int_unsecure(),\n\t\t\tisOptional: false\n\t\t},\n\t\terrors: {\n\t\t\ttype: E5.String_unsecure(),\n\t\t\tisArray: true,\n\t\t\tisOptional: true\n\t\t},\n\t\tnextSyncSuggestedAt: {\n\t\t\ttype: E5.DateTime(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst OpenBankingListAccounts = defineQuery({\n\tmeta: {\n\t\tname: \"openbanking.accounts.list\",\n\t\tversion: 1,\n\t\tdescription: \"List bank accounts available to a tenant/user via Powens Open Banking.\",\n\t\tgoal: \"Provide downstream workflows with the set of accounts accessible via the configured open banking connection.\",\n\t\tcontext: \"Used by Pocket Family Office dashboards and sync workflows to enumerate bank accounts prior to syncing balances or transactions.\",\n\t\towners: [\"platform.finance\"],\n\t\ttags: [\n\t\t\t\"open-banking\",\n\t\t\t\"powens\",\n\t\t\t\"accounts\"\n\t\t],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: OpenBankingListAccountsInput,\n\t\toutput: OpenBankingListAccountsOutput\n\t},\n\tpolicy: { auth: \"user\" }\n});\nconst OpenBankingGetAccount = defineQuery({\n\tmeta: {\n\t\tname: \"openbanking.accounts.get\",\n\t\tversion: 1,\n\t\tdescription: \"Retrieve the canonical bank account record for the given account identifier.\",\n\t\tgoal: \"Allow user-facing experiences and automations to display up-to-date account metadata.\",\n\t\tcontext: \"Invoked by UI surfaces and workflow automation steps that require detailed metadata for a specific bank account.\",\n\t\towners: [\"platform.finance\"],\n\t\ttags: [\n\t\t\t\"open-banking\",\n\t\t\t\"powens\",\n\t\t\t\"accounts\"\n\t\t],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: OpenBankingGetAccountInput,\n\t\toutput: BankAccountRecord\n\t},\n\tpolicy: { auth: \"user\" }\n});\nconst OpenBankingSyncAccounts = defineCommand({\n\tmeta: {\n\t\tname: \"openbanking.accounts.sync\",\n\t\tversion: 1,\n\t\tdescription: \"Initiate a synchronisation run to refresh bank account metadata from Powens.\",\n\t\tgoal: \"Keep canonical bank account records aligned with the external open banking provider.\",\n\t\tcontext: \"Triggered by scheduled workflows or manual operator actions to reconcile account metadata prior to transaction/balance syncs.\",\n\t\towners: [\"platform.finance\"],\n\t\ttags: [\n\t\t\t\"open-banking\",\n\t\t\t\"powens\",\n\t\t\t\"accounts\"\n\t\t],\n\t\tstability: \"experimental\"\n\t},\n\tio: {\n\t\tinput: OpenBankingSyncAccountsInput,\n\t\toutput: OpenBankingSyncAccountsOutput\n\t},\n\tpolicy: { auth: \"admin\" },\n\ttelemetry: {\n\t\tsuccess: {\n\t\t\tevent: { name: OPENBANKING_TELEMETRY_EVENTS.accountsSynced },\n\t\t\tproperties: ({ input, output }) => {\n\t\t\t\tconst payload = input;\n\t\t\t\tconst result = output;\n\t\t\t\treturn {\n\t\t\t\t\ttenantId: payload?.tenantId,\n\t\t\t\t\tconnectionId: payload?.connectionId,\n\t\t\t\t\tsynced: result?.synced,\n\t\t\t\t\tfailed: result?.failed\n\t\t\t\t};\n\t\t\t}\n\t\t},\n\t\tfailure: {\n\t\t\tevent: { name: OPENBANKING_TELEMETRY_EVENTS.accountsSyncFailed },\n\t\t\tproperties: ({ input, error }) => {\n\t\t\t\tconst payload = input;\n\t\t\t\treturn {\n\t\t\t\t\ttenantId: payload?.tenantId,\n\t\t\t\t\tconnectionId: payload?.connectionId,\n\t\t\t\t\terror: error instanceof Error ? error.message : String(error ?? \"unknown\")\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n});\nconst openBankingAccountContracts = {\n\tOpenBankingListAccounts,\n\tOpenBankingGetAccount,\n\tOpenBankingSyncAccounts\n};\nfunction registerOpenBankingAccountContracts(registry) {\n\treturn registry.register(OpenBankingListAccounts).register(OpenBankingGetAccount).register(OpenBankingSyncAccounts);\n}\n\n//#endregion\nexport { OpenBankingGetAccount, OpenBankingListAccounts, OpenBankingSyncAccounts, openBankingAccountContracts, registerOpenBankingAccountContracts };\n//# sourceMappingURL=accounts.js.map"],"mappings":";;;;;;AAMA,MAAM,+BAA+B,IAAI,GAAG;CAC3C,MAAM;CACN,aAAa;CACb,QAAQ;EACP,UAAU;GACT,MAAM,GAAG,IAAI;GACb,YAAY;GACZ;EACD,QAAQ;GACP,MAAM,GAAG,IAAI;GACb,YAAY;GACZ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AAQ;KAChB,QAAQ,QAAQ;KAChB;;GAEF;EACD,SAAS;GACR,OAAO,EAAE,MAAM,6BAA6B,oBAAoB;GAChE,aAAa,EAAE,OAAO,YAAY;IACjC,MAAM,UAAU;AAChB,WAAO;KACN,UAAU,SAAS;KACnB,cAAc,SAAS;KACvB,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,SAAS,UAAU;KAC1E;;GAEF;EACD;CACD,CAAC"}
|
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
import { defineCommand, defineQuery } from "../../../spec.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ScalarTypeEnum } from "../../../schema/dist/ScalarTypeEnum.js";
|
|
4
|
-
import "../../../schema/dist/index.js";
|
|
2
|
+
import { E5, x8 } from "../../../schema/dist/index.js";
|
|
5
3
|
import { AccountBalanceRecord } from "../models.js";
|
|
6
4
|
import { OPENBANKING_TELEMETRY_EVENTS } from "../telemetry.js";
|
|
7
5
|
|
|
8
6
|
//#region ../../libs/contracts/dist/integrations/openbanking/contracts/balances.js
|
|
9
|
-
const OpenBankingGetBalancesInput = new
|
|
7
|
+
const OpenBankingGetBalancesInput = new x8({
|
|
10
8
|
name: "OpenBankingGetBalancesInput",
|
|
11
9
|
description: "Parameters for retrieving bank account balances from the canonical ledger.",
|
|
12
10
|
fields: {
|
|
13
11
|
tenantId: {
|
|
14
|
-
type:
|
|
12
|
+
type: E5.ID(),
|
|
15
13
|
isOptional: false
|
|
16
14
|
},
|
|
17
15
|
accountId: {
|
|
18
|
-
type:
|
|
16
|
+
type: E5.ID(),
|
|
19
17
|
isOptional: false
|
|
20
18
|
},
|
|
21
19
|
balanceTypes: {
|
|
22
|
-
type:
|
|
20
|
+
type: E5.String_unsecure(),
|
|
23
21
|
isArray: true,
|
|
24
22
|
isOptional: true
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
});
|
|
28
|
-
const OpenBankingGetBalancesOutput = new
|
|
26
|
+
const OpenBankingGetBalancesOutput = new x8({
|
|
29
27
|
name: "OpenBankingGetBalancesOutput",
|
|
30
28
|
description: "Canonical balances for a bank account.",
|
|
31
29
|
fields: {
|
|
@@ -35,39 +33,39 @@ const OpenBankingGetBalancesOutput = new SchemaModel({
|
|
|
35
33
|
isArray: true
|
|
36
34
|
},
|
|
37
35
|
asOf: {
|
|
38
|
-
type:
|
|
36
|
+
type: E5.DateTime(),
|
|
39
37
|
isOptional: true
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
});
|
|
43
|
-
const OpenBankingRefreshBalancesInput = new
|
|
41
|
+
const OpenBankingRefreshBalancesInput = new x8({
|
|
44
42
|
name: "OpenBankingRefreshBalancesInput",
|
|
45
43
|
description: "Command payload to refresh balances for a bank account via the open banking provider.",
|
|
46
44
|
fields: {
|
|
47
45
|
tenantId: {
|
|
48
|
-
type:
|
|
46
|
+
type: E5.ID(),
|
|
49
47
|
isOptional: false
|
|
50
48
|
},
|
|
51
49
|
accountId: {
|
|
52
|
-
type:
|
|
50
|
+
type: E5.ID(),
|
|
53
51
|
isOptional: false
|
|
54
52
|
},
|
|
55
53
|
connectionId: {
|
|
56
|
-
type:
|
|
54
|
+
type: E5.ID(),
|
|
57
55
|
isOptional: true
|
|
58
56
|
},
|
|
59
57
|
balanceTypes: {
|
|
60
|
-
type:
|
|
58
|
+
type: E5.String_unsecure(),
|
|
61
59
|
isArray: true,
|
|
62
60
|
isOptional: true
|
|
63
61
|
},
|
|
64
62
|
forceRefresh: {
|
|
65
|
-
type:
|
|
63
|
+
type: E5.Boolean(),
|
|
66
64
|
isOptional: true
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
});
|
|
70
|
-
const OpenBankingRefreshBalancesOutput = new
|
|
68
|
+
const OpenBankingRefreshBalancesOutput = new x8({
|
|
71
69
|
name: "OpenBankingRefreshBalancesOutput",
|
|
72
70
|
description: "Result of a balance refresh against the open banking provider.",
|
|
73
71
|
fields: {
|
|
@@ -77,11 +75,11 @@ const OpenBankingRefreshBalancesOutput = new SchemaModel({
|
|
|
77
75
|
isArray: true
|
|
78
76
|
},
|
|
79
77
|
refreshedAt: {
|
|
80
|
-
type:
|
|
78
|
+
type: E5.DateTime(),
|
|
81
79
|
isOptional: false
|
|
82
80
|
},
|
|
83
81
|
errors: {
|
|
84
|
-
type:
|
|
82
|
+
type: E5.String_unsecure(),
|
|
85
83
|
isArray: true,
|
|
86
84
|
isOptional: true
|
|
87
85
|
}
|
|
@@ -156,4 +154,5 @@ const OpenBankingRefreshBalances = defineCommand({
|
|
|
156
154
|
}
|
|
157
155
|
});
|
|
158
156
|
|
|
159
|
-
//#endregion
|
|
157
|
+
//#endregion
|
|
158
|
+
//# sourceMappingURL=balances.js.map
|