@lssm/example.pocket-family-office 0.0.0-canary-20251220002821 → 0.0.0-canary-20251220015515
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/blueprint.d.ts +4 -7
- package/dist/blueprint.d.ts.map +1 -1
- package/dist/connections/samples.d.ts +3 -7
- package/dist/connections/samples.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +491 -118
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/index.d.ts +9 -16
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -17
- package/dist/knowledge/sources.sample.d.ts +2 -6
- package/dist/knowledge/sources.sample.d.ts.map +1 -1
- package/dist/pocket-family-office.feature.d.ts +7 -7
- package/dist/pocket-family-office.feature.d.ts.map +1 -1
- package/dist/telemetry.d.ts +3 -7
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/tenant.sample.d.ts +2 -6
- package/dist/tenant.sample.d.ts.map +1 -1
- package/dist/tests/pocket-family-office.test.d.ts +2 -0
- package/dist/tests/pocket-family-office.test.d.ts.map +1 -0
- package/dist/workflows/generate-financial-summary.d.ts +2 -6
- package/dist/workflows/generate-financial-summary.d.ts.map +1 -1
- package/dist/workflows/generate-openbanking-overview.d.ts +2 -6
- package/dist/workflows/generate-openbanking-overview.d.ts.map +1 -1
- package/dist/workflows/index.d.ts +9 -9
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/ingest-email-threads.d.ts +2 -6
- package/dist/workflows/ingest-email-threads.d.ts.map +1 -1
- package/dist/workflows/process-uploaded-document.d.ts +2 -6
- package/dist/workflows/process-uploaded-document.d.ts.map +1 -1
- package/dist/workflows/refresh-openbanking-balances.d.ts +2 -6
- package/dist/workflows/refresh-openbanking-balances.d.ts.map +1 -1
- package/dist/workflows/sync-openbanking-accounts.d.ts +2 -6
- package/dist/workflows/sync-openbanking-accounts.d.ts.map +1 -1
- package/dist/workflows/sync-openbanking-transactions.d.ts +2 -6
- package/dist/workflows/sync-openbanking-transactions.d.ts.map +1 -1
- package/dist/workflows/upcoming-payments-reminder.d.ts +2 -6
- package/dist/workflows/upcoming-payments-reminder.d.ts.map +1 -1
- package/package.json +12 -11
- package/dist/blueprint.js +0 -201
- package/dist/blueprint.js.map +0 -1
- package/dist/connections/samples.js +0 -227
- package/dist/connections/samples.js.map +0 -1
- package/dist/contracts/index.js +0 -271
- package/dist/contracts/index.js.map +0 -1
- package/dist/knowledge/sources.sample.js +0 -50
- package/dist/knowledge/sources.sample.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/index.js +0 -18
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -227
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -158
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -209
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -241
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -26
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -53
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -76
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -88
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -67
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -69
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -69
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -117
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -74
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -84
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +0 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -62
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
- package/dist/libs/contracts/dist/ownership.js +0 -38
- package/dist/libs/contracts/dist/ownership.js.map +0 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +0 -3873
- package/dist/libs/contracts/dist/schema/dist/index.js.map +0 -1
- package/dist/libs/contracts/dist/spec.js +0 -35
- package/dist/libs/contracts/dist/spec.js.map +0 -1
- package/dist/pocket-family-office.feature.js +0 -47
- package/dist/pocket-family-office.feature.js.map +0 -1
- package/dist/telemetry.js +0 -171
- package/dist/telemetry.js.map +0 -1
- package/dist/tenant.sample.js +0 -90
- package/dist/tenant.sample.js.map +0 -1
- package/dist/workflows/generate-financial-summary.js +0 -61
- package/dist/workflows/generate-financial-summary.js.map +0 -1
- package/dist/workflows/generate-openbanking-overview.js +0 -58
- package/dist/workflows/generate-openbanking-overview.js.map +0 -1
- package/dist/workflows/index.js +0 -10
- package/dist/workflows/ingest-email-threads.js +0 -53
- package/dist/workflows/ingest-email-threads.js.map +0 -1
- package/dist/workflows/process-uploaded-document.js +0 -51
- package/dist/workflows/process-uploaded-document.js.map +0 -1
- package/dist/workflows/refresh-openbanking-balances.js +0 -67
- package/dist/workflows/refresh-openbanking-balances.js.map +0 -1
- package/dist/workflows/sync-openbanking-accounts.js +0 -67
- package/dist/workflows/sync-openbanking-accounts.js.map +0 -1
- package/dist/workflows/sync-openbanking-transactions.js +0 -67
- package/dist/workflows/sync-openbanking-transactions.js.map +0 -1
- package/dist/workflows/upcoming-payments-reminder.js +0 -56
- package/dist/workflows/upcoming-payments-reminder.js.map +0 -1
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { OwnersEnum, StabilityEnum, TagsEnum } from "../libs/contracts/dist/ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region src/workflows/refresh-openbanking-balances.ts
|
|
4
|
-
const BALANCE_CAPABILITY = {
|
|
5
|
-
key: "openbanking.balances.read",
|
|
6
|
-
version: 1
|
|
7
|
-
};
|
|
8
|
-
const refreshOpenBankingBalancesWorkflow = {
|
|
9
|
-
meta: {
|
|
10
|
-
name: "pfo.workflow.refresh-openbanking-balances",
|
|
11
|
-
version: 1,
|
|
12
|
-
title: "Refresh Open Banking Balances",
|
|
13
|
-
description: "Refreshes balances for synced accounts to surface the latest cash positions in dashboards.",
|
|
14
|
-
domain: "finance",
|
|
15
|
-
owners: [OwnersEnum.PlatformFinance],
|
|
16
|
-
tags: [
|
|
17
|
-
"open-banking",
|
|
18
|
-
"powens",
|
|
19
|
-
TagsEnum.Automation
|
|
20
|
-
],
|
|
21
|
-
stability: StabilityEnum.Experimental
|
|
22
|
-
},
|
|
23
|
-
definition: {
|
|
24
|
-
entryStepId: "refresh-balances",
|
|
25
|
-
steps: [{
|
|
26
|
-
id: "refresh-balances",
|
|
27
|
-
type: "automation",
|
|
28
|
-
label: "Refresh Balances",
|
|
29
|
-
description: "Trigger the Powens provider to obtain current and available balances.",
|
|
30
|
-
action: { operation: {
|
|
31
|
-
name: "openbanking.balances.refresh",
|
|
32
|
-
version: 1
|
|
33
|
-
} },
|
|
34
|
-
requiredIntegrations: ["primaryOpenBanking"],
|
|
35
|
-
requiredCapabilities: [BALANCE_CAPABILITY],
|
|
36
|
-
retry: {
|
|
37
|
-
maxAttempts: 3,
|
|
38
|
-
backoff: "exponential",
|
|
39
|
-
delayMs: 1e3
|
|
40
|
-
}
|
|
41
|
-
}, {
|
|
42
|
-
id: "fetch-balances",
|
|
43
|
-
type: "automation",
|
|
44
|
-
label: "Fetch Balances",
|
|
45
|
-
description: "Load the canonical balance snapshots for downstream workflows and dashboards.",
|
|
46
|
-
action: { operation: {
|
|
47
|
-
name: "openbanking.balances.get",
|
|
48
|
-
version: 1
|
|
49
|
-
} },
|
|
50
|
-
requiredIntegrations: ["primaryOpenBanking"],
|
|
51
|
-
requiredCapabilities: [BALANCE_CAPABILITY],
|
|
52
|
-
retry: {
|
|
53
|
-
maxAttempts: 2,
|
|
54
|
-
backoff: "linear",
|
|
55
|
-
delayMs: 750
|
|
56
|
-
}
|
|
57
|
-
}],
|
|
58
|
-
transitions: [{
|
|
59
|
-
from: "refresh-balances",
|
|
60
|
-
to: "fetch-balances"
|
|
61
|
-
}]
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
//#endregion
|
|
66
|
-
export { refreshOpenBankingBalancesWorkflow };
|
|
67
|
-
//# sourceMappingURL=refresh-openbanking-balances.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-openbanking-balances.js","names":["refreshOpenBankingBalancesWorkflow: WorkflowSpec"],"sources":["../../src/workflows/refresh-openbanking-balances.ts"],"sourcesContent":["import type { WorkflowSpec } from '@lssm/lib.contracts/workflow/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@lssm/lib.contracts/ownership';\n\nconst BALANCE_CAPABILITY = { key: 'openbanking.balances.read', version: 1 };\n\nexport const refreshOpenBankingBalancesWorkflow: WorkflowSpec = {\n meta: {\n name: 'pfo.workflow.refresh-openbanking-balances',\n version: 1,\n title: 'Refresh Open Banking Balances',\n description:\n 'Refreshes balances for synced accounts to surface the latest cash positions in dashboards.',\n domain: 'finance',\n owners: [OwnersEnum.PlatformFinance],\n tags: ['open-banking', 'powens', TagsEnum.Automation],\n stability: StabilityEnum.Experimental,\n },\n definition: {\n entryStepId: 'refresh-balances',\n steps: [\n {\n id: 'refresh-balances',\n type: 'automation',\n label: 'Refresh Balances',\n description:\n 'Trigger the Powens provider to obtain current and available balances.',\n action: {\n operation: { name: 'openbanking.balances.refresh', version: 1 },\n },\n requiredIntegrations: ['primaryOpenBanking'],\n requiredCapabilities: [BALANCE_CAPABILITY],\n retry: {\n maxAttempts: 3,\n backoff: 'exponential',\n delayMs: 1_000,\n },\n },\n {\n id: 'fetch-balances',\n type: 'automation',\n label: 'Fetch Balances',\n description:\n 'Load the canonical balance snapshots for downstream workflows and dashboards.',\n action: {\n operation: { name: 'openbanking.balances.get', version: 1 },\n },\n requiredIntegrations: ['primaryOpenBanking'],\n requiredCapabilities: [BALANCE_CAPABILITY],\n retry: {\n maxAttempts: 2,\n backoff: 'linear',\n delayMs: 750,\n },\n },\n ],\n transitions: [{ from: 'refresh-balances', to: 'fetch-balances' }],\n },\n};\n"],"mappings":";;;AAOA,MAAM,qBAAqB;CAAE,KAAK;CAA6B,SAAS;CAAG;AAE3E,MAAaA,qCAAmD;CAC9D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,gBAAgB;EACpC,MAAM;GAAC;GAAgB;GAAU,SAAS;GAAW;EACrD,WAAW,cAAc;EAC1B;CACD,YAAY;EACV,aAAa;EACb,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAAgC,SAAS;IAAG,EAChE;GACD,sBAAsB,CAAC,qBAAqB;GAC5C,sBAAsB,CAAC,mBAAmB;GAC1C,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,EACD;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAA4B,SAAS;IAAG,EAC5D;GACD,sBAAsB,CAAC,qBAAqB;GAC5C,sBAAsB,CAAC,mBAAmB;GAC1C,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,CACF;EACD,aAAa,CAAC;GAAE,MAAM;GAAoB,IAAI;GAAkB,CAAC;EAClE;CACF"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { OwnersEnum, StabilityEnum, TagsEnum } from "../libs/contracts/dist/ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region src/workflows/sync-openbanking-accounts.ts
|
|
4
|
-
const ACCOUNT_CAPABILITY = {
|
|
5
|
-
key: "openbanking.accounts.read",
|
|
6
|
-
version: 1
|
|
7
|
-
};
|
|
8
|
-
const syncOpenBankingAccountsWorkflow = {
|
|
9
|
-
meta: {
|
|
10
|
-
name: "pfo.workflow.sync-openbanking-accounts",
|
|
11
|
-
version: 1,
|
|
12
|
-
title: "Synchronise Open Banking Accounts",
|
|
13
|
-
description: "Validates Powens connectivity and synchronises bank account metadata into the canonical ledger.",
|
|
14
|
-
domain: "finance",
|
|
15
|
-
owners: [OwnersEnum.PlatformFinance],
|
|
16
|
-
tags: [
|
|
17
|
-
"open-banking",
|
|
18
|
-
"powens",
|
|
19
|
-
TagsEnum.Automation
|
|
20
|
-
],
|
|
21
|
-
stability: StabilityEnum.Experimental
|
|
22
|
-
},
|
|
23
|
-
definition: {
|
|
24
|
-
entryStepId: "sync-accounts",
|
|
25
|
-
steps: [{
|
|
26
|
-
id: "sync-accounts",
|
|
27
|
-
type: "automation",
|
|
28
|
-
label: "Sync Accounts",
|
|
29
|
-
description: "Refresh linked bank accounts via Powens and upsert canonical BankAccount records.",
|
|
30
|
-
action: { operation: {
|
|
31
|
-
name: "openbanking.accounts.sync",
|
|
32
|
-
version: 1
|
|
33
|
-
} },
|
|
34
|
-
requiredIntegrations: ["primaryOpenBanking"],
|
|
35
|
-
requiredCapabilities: [ACCOUNT_CAPABILITY],
|
|
36
|
-
retry: {
|
|
37
|
-
maxAttempts: 3,
|
|
38
|
-
backoff: "exponential",
|
|
39
|
-
delayMs: 1e3
|
|
40
|
-
}
|
|
41
|
-
}, {
|
|
42
|
-
id: "fetch-accounts",
|
|
43
|
-
type: "automation",
|
|
44
|
-
label: "Fetch Accounts",
|
|
45
|
-
description: "Retrieve the latest canonical account snapshot for downstream consumers.",
|
|
46
|
-
action: { operation: {
|
|
47
|
-
name: "openbanking.accounts.list",
|
|
48
|
-
version: 1
|
|
49
|
-
} },
|
|
50
|
-
requiredIntegrations: ["primaryOpenBanking"],
|
|
51
|
-
requiredCapabilities: [ACCOUNT_CAPABILITY],
|
|
52
|
-
retry: {
|
|
53
|
-
maxAttempts: 2,
|
|
54
|
-
backoff: "linear",
|
|
55
|
-
delayMs: 750
|
|
56
|
-
}
|
|
57
|
-
}],
|
|
58
|
-
transitions: [{
|
|
59
|
-
from: "sync-accounts",
|
|
60
|
-
to: "fetch-accounts"
|
|
61
|
-
}]
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
//#endregion
|
|
66
|
-
export { syncOpenBankingAccountsWorkflow };
|
|
67
|
-
//# sourceMappingURL=sync-openbanking-accounts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync-openbanking-accounts.js","names":["syncOpenBankingAccountsWorkflow: WorkflowSpec"],"sources":["../../src/workflows/sync-openbanking-accounts.ts"],"sourcesContent":["import type { WorkflowSpec } from '@lssm/lib.contracts/workflow/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@lssm/lib.contracts/ownership';\n\nconst ACCOUNT_CAPABILITY = { key: 'openbanking.accounts.read', version: 1 };\n\nexport const syncOpenBankingAccountsWorkflow: WorkflowSpec = {\n meta: {\n name: 'pfo.workflow.sync-openbanking-accounts',\n version: 1,\n title: 'Synchronise Open Banking Accounts',\n description:\n 'Validates Powens connectivity and synchronises bank account metadata into the canonical ledger.',\n domain: 'finance',\n owners: [OwnersEnum.PlatformFinance],\n tags: ['open-banking', 'powens', TagsEnum.Automation],\n stability: StabilityEnum.Experimental,\n },\n definition: {\n entryStepId: 'sync-accounts',\n steps: [\n {\n id: 'sync-accounts',\n type: 'automation',\n label: 'Sync Accounts',\n description:\n 'Refresh linked bank accounts via Powens and upsert canonical BankAccount records.',\n action: {\n operation: { name: 'openbanking.accounts.sync', version: 1 },\n },\n requiredIntegrations: ['primaryOpenBanking'],\n requiredCapabilities: [ACCOUNT_CAPABILITY],\n retry: {\n maxAttempts: 3,\n backoff: 'exponential',\n delayMs: 1_000,\n },\n },\n {\n id: 'fetch-accounts',\n type: 'automation',\n label: 'Fetch Accounts',\n description:\n 'Retrieve the latest canonical account snapshot for downstream consumers.',\n action: {\n operation: { name: 'openbanking.accounts.list', version: 1 },\n },\n requiredIntegrations: ['primaryOpenBanking'],\n requiredCapabilities: [ACCOUNT_CAPABILITY],\n retry: {\n maxAttempts: 2,\n backoff: 'linear',\n delayMs: 750,\n },\n },\n ],\n transitions: [{ from: 'sync-accounts', to: 'fetch-accounts' }],\n },\n};\n"],"mappings":";;;AAOA,MAAM,qBAAqB;CAAE,KAAK;CAA6B,SAAS;CAAG;AAE3E,MAAaA,kCAAgD;CAC3D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,gBAAgB;EACpC,MAAM;GAAC;GAAgB;GAAU,SAAS;GAAW;EACrD,WAAW,cAAc;EAC1B;CACD,YAAY;EACV,aAAa;EACb,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAA6B,SAAS;IAAG,EAC7D;GACD,sBAAsB,CAAC,qBAAqB;GAC5C,sBAAsB,CAAC,mBAAmB;GAC1C,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,EACD;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAA6B,SAAS;IAAG,EAC7D;GACD,sBAAsB,CAAC,qBAAqB;GAC5C,sBAAsB,CAAC,mBAAmB;GAC1C,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,CACF;EACD,aAAa,CAAC;GAAE,MAAM;GAAiB,IAAI;GAAkB,CAAC;EAC/D;CACF"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { OwnersEnum, StabilityEnum, TagsEnum } from "../libs/contracts/dist/ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region src/workflows/sync-openbanking-transactions.ts
|
|
4
|
-
const TRANSACTION_CAPABILITY = {
|
|
5
|
-
key: "openbanking.transactions.read",
|
|
6
|
-
version: 1
|
|
7
|
-
};
|
|
8
|
-
const syncOpenBankingTransactionsWorkflow = {
|
|
9
|
-
meta: {
|
|
10
|
-
name: "pfo.workflow.sync-openbanking-transactions",
|
|
11
|
-
version: 1,
|
|
12
|
-
title: "Synchronise Open Banking Transactions",
|
|
13
|
-
description: "Fetches recent transactions from Powens for each linked account and stores them in the canonical ledger.",
|
|
14
|
-
domain: "finance",
|
|
15
|
-
owners: [OwnersEnum.PlatformFinance],
|
|
16
|
-
tags: [
|
|
17
|
-
"open-banking",
|
|
18
|
-
"powens",
|
|
19
|
-
TagsEnum.Automation
|
|
20
|
-
],
|
|
21
|
-
stability: StabilityEnum.Experimental
|
|
22
|
-
},
|
|
23
|
-
definition: {
|
|
24
|
-
entryStepId: "sync-transactions",
|
|
25
|
-
steps: [{
|
|
26
|
-
id: "sync-transactions",
|
|
27
|
-
type: "automation",
|
|
28
|
-
label: "Sync Transactions",
|
|
29
|
-
description: "Call the Powens provider to pull incremental transactions for active accounts.",
|
|
30
|
-
action: { operation: {
|
|
31
|
-
name: "openbanking.transactions.sync",
|
|
32
|
-
version: 1
|
|
33
|
-
} },
|
|
34
|
-
requiredIntegrations: ["primaryOpenBanking"],
|
|
35
|
-
requiredCapabilities: [TRANSACTION_CAPABILITY],
|
|
36
|
-
retry: {
|
|
37
|
-
maxAttempts: 4,
|
|
38
|
-
backoff: "exponential",
|
|
39
|
-
delayMs: 1500
|
|
40
|
-
}
|
|
41
|
-
}, {
|
|
42
|
-
id: "list-transactions",
|
|
43
|
-
type: "automation",
|
|
44
|
-
label: "List Transactions",
|
|
45
|
-
description: "Retrieve the canonical transaction list for reporting and downstream analytics.",
|
|
46
|
-
action: { operation: {
|
|
47
|
-
name: "openbanking.transactions.list",
|
|
48
|
-
version: 1
|
|
49
|
-
} },
|
|
50
|
-
requiredIntegrations: ["primaryOpenBanking"],
|
|
51
|
-
requiredCapabilities: [TRANSACTION_CAPABILITY],
|
|
52
|
-
retry: {
|
|
53
|
-
maxAttempts: 2,
|
|
54
|
-
backoff: "linear",
|
|
55
|
-
delayMs: 1e3
|
|
56
|
-
}
|
|
57
|
-
}],
|
|
58
|
-
transitions: [{
|
|
59
|
-
from: "sync-transactions",
|
|
60
|
-
to: "list-transactions"
|
|
61
|
-
}]
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
//#endregion
|
|
66
|
-
export { syncOpenBankingTransactionsWorkflow };
|
|
67
|
-
//# sourceMappingURL=sync-openbanking-transactions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync-openbanking-transactions.js","names":["syncOpenBankingTransactionsWorkflow: WorkflowSpec"],"sources":["../../src/workflows/sync-openbanking-transactions.ts"],"sourcesContent":["import type { WorkflowSpec } from '@lssm/lib.contracts/workflow/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@lssm/lib.contracts/ownership';\n\nconst TRANSACTION_CAPABILITY = {\n key: 'openbanking.transactions.read',\n version: 1,\n};\n\nexport const syncOpenBankingTransactionsWorkflow: WorkflowSpec = {\n meta: {\n name: 'pfo.workflow.sync-openbanking-transactions',\n version: 1,\n title: 'Synchronise Open Banking Transactions',\n description:\n 'Fetches recent transactions from Powens for each linked account and stores them in the canonical ledger.',\n domain: 'finance',\n owners: [OwnersEnum.PlatformFinance],\n tags: ['open-banking', 'powens', TagsEnum.Automation],\n stability: StabilityEnum.Experimental,\n },\n definition: {\n entryStepId: 'sync-transactions',\n steps: [\n {\n id: 'sync-transactions',\n type: 'automation',\n label: 'Sync Transactions',\n description:\n 'Call the Powens provider to pull incremental transactions for active accounts.',\n action: {\n operation: { name: 'openbanking.transactions.sync', version: 1 },\n },\n requiredIntegrations: ['primaryOpenBanking'],\n requiredCapabilities: [TRANSACTION_CAPABILITY],\n retry: {\n maxAttempts: 4,\n backoff: 'exponential',\n delayMs: 1_500,\n },\n },\n {\n id: 'list-transactions',\n type: 'automation',\n label: 'List Transactions',\n description:\n 'Retrieve the canonical transaction list for reporting and downstream analytics.',\n action: {\n operation: { name: 'openbanking.transactions.list', version: 1 },\n },\n requiredIntegrations: ['primaryOpenBanking'],\n requiredCapabilities: [TRANSACTION_CAPABILITY],\n retry: {\n maxAttempts: 2,\n backoff: 'linear',\n delayMs: 1_000,\n },\n },\n ],\n transitions: [{ from: 'sync-transactions', to: 'list-transactions' }],\n },\n};\n"],"mappings":";;;AAOA,MAAM,yBAAyB;CAC7B,KAAK;CACL,SAAS;CACV;AAED,MAAaA,sCAAoD;CAC/D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,gBAAgB;EACpC,MAAM;GAAC;GAAgB;GAAU,SAAS;GAAW;EACrD,WAAW,cAAc;EAC1B;CACD,YAAY;EACV,aAAa;EACb,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAAiC,SAAS;IAAG,EACjE;GACD,sBAAsB,CAAC,qBAAqB;GAC5C,sBAAsB,CAAC,uBAAuB;GAC9C,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,EACD;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACF,QAAQ,EACN,WAAW;IAAE,MAAM;IAAiC,SAAS;IAAG,EACjE;GACD,sBAAsB,CAAC,qBAAqB;GAC5C,sBAAsB,CAAC,uBAAuB;GAC9C,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,CACF;EACD,aAAa,CAAC;GAAE,MAAM;GAAqB,IAAI;GAAqB,CAAC;EACtE;CACF"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { OwnersEnum, StabilityEnum, TagsEnum } from "../libs/contracts/dist/ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region src/workflows/upcoming-payments-reminder.ts
|
|
4
|
-
const upcomingPaymentsReminderWorkflow = {
|
|
5
|
-
meta: {
|
|
6
|
-
name: "pfo.workflow.upcoming-payments-reminder",
|
|
7
|
-
version: 1,
|
|
8
|
-
title: "Schedule Upcoming Payment Reminder",
|
|
9
|
-
description: "Collects payment metadata and schedules multi-channel reminders for bills that are due soon.",
|
|
10
|
-
domain: "finance",
|
|
11
|
-
owners: [OwnersEnum.PlatformFinance],
|
|
12
|
-
tags: [
|
|
13
|
-
"payments",
|
|
14
|
-
"reminders",
|
|
15
|
-
TagsEnum.Automation
|
|
16
|
-
],
|
|
17
|
-
stability: StabilityEnum.Beta
|
|
18
|
-
},
|
|
19
|
-
definition: {
|
|
20
|
-
entryStepId: "collect",
|
|
21
|
-
steps: [{
|
|
22
|
-
id: "collect",
|
|
23
|
-
type: "human",
|
|
24
|
-
label: "Review Upcoming Bill",
|
|
25
|
-
description: "Confirm amount, due date, and preferred delivery channels before scheduling reminder."
|
|
26
|
-
}, {
|
|
27
|
-
id: "schedule",
|
|
28
|
-
type: "automation",
|
|
29
|
-
label: "Schedule Reminder",
|
|
30
|
-
action: { operation: {
|
|
31
|
-
name: "pfo.reminders.schedule-payment",
|
|
32
|
-
version: 1
|
|
33
|
-
} },
|
|
34
|
-
requiredIntegrations: [
|
|
35
|
-
"emailOutbound",
|
|
36
|
-
"smsNotifications",
|
|
37
|
-
"calendarScheduling"
|
|
38
|
-
],
|
|
39
|
-
retry: {
|
|
40
|
-
maxAttempts: 2,
|
|
41
|
-
backoff: "linear",
|
|
42
|
-
delayMs: 1e3
|
|
43
|
-
}
|
|
44
|
-
}],
|
|
45
|
-
transitions: [{
|
|
46
|
-
from: "collect",
|
|
47
|
-
to: "schedule",
|
|
48
|
-
condition: "output?.confirmed === true",
|
|
49
|
-
label: "Reminder confirmed"
|
|
50
|
-
}]
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
export { upcomingPaymentsReminderWorkflow };
|
|
56
|
-
//# sourceMappingURL=upcoming-payments-reminder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upcoming-payments-reminder.js","names":["upcomingPaymentsReminderWorkflow: WorkflowSpec"],"sources":["../../src/workflows/upcoming-payments-reminder.ts"],"sourcesContent":["import type { WorkflowSpec } from '@lssm/lib.contracts/workflow/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@lssm/lib.contracts/ownership';\n\nexport const upcomingPaymentsReminderWorkflow: WorkflowSpec = {\n meta: {\n name: 'pfo.workflow.upcoming-payments-reminder',\n version: 1,\n title: 'Schedule Upcoming Payment Reminder',\n description:\n 'Collects payment metadata and schedules multi-channel reminders for bills that are due soon.',\n domain: 'finance',\n owners: [OwnersEnum.PlatformFinance],\n tags: ['payments', 'reminders', TagsEnum.Automation],\n stability: StabilityEnum.Beta,\n },\n definition: {\n entryStepId: 'collect',\n steps: [\n {\n id: 'collect',\n type: 'human',\n label: 'Review Upcoming Bill',\n description:\n 'Confirm amount, due date, and preferred delivery channels before scheduling reminder.',\n },\n {\n id: 'schedule',\n type: 'automation',\n label: 'Schedule Reminder',\n action: {\n operation: { name: 'pfo.reminders.schedule-payment', version: 1 },\n },\n requiredIntegrations: [\n 'emailOutbound',\n 'smsNotifications',\n 'calendarScheduling',\n ],\n retry: {\n maxAttempts: 2,\n backoff: 'linear',\n delayMs: 1000,\n },\n },\n ],\n transitions: [\n {\n from: 'collect',\n to: 'schedule',\n condition: 'output?.confirmed === true',\n label: 'Reminder confirmed',\n },\n ],\n },\n};\n"],"mappings":";;;AAOA,MAAaA,mCAAiD;CAC5D,MAAM;EACJ,MAAM;EACN,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,gBAAgB;EACpC,MAAM;GAAC;GAAY;GAAa,SAAS;GAAW;EACpD,WAAW,cAAc;EAC1B;CACD,YAAY;EACV,aAAa;EACb,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,aACE;GACH,EACD;GACE,IAAI;GACJ,MAAM;GACN,OAAO;GACP,QAAQ,EACN,WAAW;IAAE,MAAM;IAAkC,SAAS;IAAG,EAClE;GACD,sBAAsB;IACpB;IACA;IACA;IACD;GACD,OAAO;IACL,aAAa;IACb,SAAS;IACT,SAAS;IACV;GACF,CACF;EACD,aAAa,CACX;GACE,MAAM;GACN,IAAI;GACJ,WAAW;GACX,OAAO;GACR,CACF;EACF;CACF"}
|