@lssm/example.integration-hub 0.0.0-canary-20251220041653 → 0.0.0-canary-20251221114240
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/connection/connection.enum.d.ts +2 -2
- package/dist/connection/connection.operation.d.ts +107 -0
- package/dist/connection/connection.operation.d.ts.map +1 -0
- package/dist/connection/{connection.contracts.js → connection.operation.js} +3 -3
- package/dist/connection/connection.operation.js.map +1 -0
- package/dist/connection/connection.schema.d.ts +16 -16
- package/dist/connection/index.d.ts +1 -1
- package/dist/connection/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/integration/integration.contracts.d.ts +25 -25
- package/dist/integration/integration.contracts.d.ts.map +1 -1
- package/dist/integration/integration.contracts.js +1 -1
- package/dist/integration/integration.contracts.js.map +1 -1
- package/dist/integration/integration.enum.d.ts +2 -2
- package/dist/integration/integration.enum.d.ts.map +1 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/libs/contracts/dist/index.js +3 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +1 -1
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/libs/contracts/dist/operation.js.map +1 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +98 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/dist/sync/sync.contracts.d.ts +4 -4
- package/dist/sync/sync.contracts.d.ts.map +1 -1
- package/dist/sync/sync.contracts.js +1 -1
- package/dist/sync/sync.contracts.js.map +1 -1
- package/package.json +16 -16
- package/dist/connection/connection.contracts.d.ts +0 -107
- package/dist/connection/connection.contracts.d.ts.map +0 -1
- package/dist/connection/connection.contracts.js.map +0 -1
- package/dist/libs/contracts/dist/spec.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.integration-hub",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251221114240",
|
|
4
4
|
"description": "Integration Hub example with sync engine and field mappings for ContractSpec",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,27 +18,27 @@
|
|
|
18
18
|
"lint:check": "eslint src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
22
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
23
|
-
"@lssm/lib.bus": "0.0.0-canary-
|
|
24
|
-
"@lssm/lib.identity-rbac": "0.0.0-canary-
|
|
25
|
-
"@lssm/lib.files": "0.0.0-canary-
|
|
26
|
-
"@lssm/lib.feature-flags": "0.0.0-canary-
|
|
27
|
-
"@lssm/lib.jobs": "0.0.0-canary-
|
|
28
|
-
"@lssm/module.audit-trail": "0.0.0-canary-
|
|
29
|
-
"@lssm/module.notifications": "0.0.0-canary-
|
|
21
|
+
"@lssm/lib.schema": "0.0.0-canary-20251221114240",
|
|
22
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251221114240",
|
|
23
|
+
"@lssm/lib.bus": "0.0.0-canary-20251221114240",
|
|
24
|
+
"@lssm/lib.identity-rbac": "0.0.0-canary-20251221114240",
|
|
25
|
+
"@lssm/lib.files": "0.0.0-canary-20251221114240",
|
|
26
|
+
"@lssm/lib.feature-flags": "0.0.0-canary-20251221114240",
|
|
27
|
+
"@lssm/lib.jobs": "0.0.0-canary-20251221114240",
|
|
28
|
+
"@lssm/module.audit-trail": "0.0.0-canary-20251221114240",
|
|
29
|
+
"@lssm/module.notifications": "0.0.0-canary-20251221114240",
|
|
30
30
|
"zod": "^4.1.13"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
34
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
33
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251221114240",
|
|
34
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251221114240",
|
|
35
35
|
"typescript": "^5.9.3"
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|
|
38
38
|
".": "./dist/index.js",
|
|
39
39
|
"./connection": "./dist/connection/index.js",
|
|
40
|
-
"./connection/connection.contracts": "./dist/connection/connection.contracts.js",
|
|
41
40
|
"./connection/connection.enum": "./dist/connection/connection.enum.js",
|
|
41
|
+
"./connection/connection.operation": "./dist/connection/connection.operation.js",
|
|
42
42
|
"./connection/connection.presentation": "./dist/connection/connection.presentation.js",
|
|
43
43
|
"./connection/connection.schema": "./dist/connection/connection.schema.js",
|
|
44
44
|
"./docs": "./dist/docs/index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"exports": {
|
|
70
70
|
".": "./dist/index.js",
|
|
71
71
|
"./connection": "./dist/connection/index.js",
|
|
72
|
-
"./connection/connection.contracts": "./dist/connection/connection.
|
|
72
|
+
"./connection/connection.contracts": "./dist/connection/connection.operations.js",
|
|
73
73
|
"./connection/connection.enum": "./dist/connection/connection.enum.js",
|
|
74
74
|
"./connection/connection.presentation": "./dist/connection/connection.presentation.js",
|
|
75
75
|
"./connection/connection.schema": "./dist/connection/connection.schema.js",
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
"./example": "./dist/example.js",
|
|
80
80
|
"./integration": "./dist/integration/index.js",
|
|
81
81
|
"./integration-hub.feature": "./dist/integration-hub.feature.js",
|
|
82
|
-
"./integration/integration.contracts": "./dist/integration/integration.
|
|
82
|
+
"./integration/integration.contracts": "./dist/integration/integration.operations.js",
|
|
83
83
|
"./integration/integration.enum": "./dist/integration/integration.enum.js",
|
|
84
84
|
"./integration/integration.presentation": "./dist/integration/integration.presentation.js",
|
|
85
85
|
"./integration/integration.schema": "./dist/integration/integration.schema.js",
|
|
86
86
|
"./sync": "./dist/sync/index.js",
|
|
87
87
|
"./sync-engine": "./dist/sync-engine/index.js",
|
|
88
|
-
"./sync/sync.contracts": "./dist/sync/sync.
|
|
88
|
+
"./sync/sync.contracts": "./dist/sync/sync.operations.js",
|
|
89
89
|
"./sync/sync.enum": "./dist/sync/sync.enum.js",
|
|
90
90
|
"./sync/sync.presentation": "./dist/sync/sync.presentation.js",
|
|
91
91
|
"./sync/sync.schema": "./dist/sync/sync.schema.js",
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import * as _lssm_lib_schema63 from "@lssm/lib.schema";
|
|
2
|
-
import * as _lssm_lib_contracts9 from "@lssm/lib.contracts";
|
|
3
|
-
|
|
4
|
-
//#region src/connection/connection.contracts.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Create a connection to an external system.
|
|
7
|
-
*/
|
|
8
|
-
declare const CreateConnectionContract: _lssm_lib_contracts9.ContractSpec<_lssm_lib_schema63.SchemaModel<{
|
|
9
|
-
integrationId: {
|
|
10
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
11
|
-
isOptional: false;
|
|
12
|
-
};
|
|
13
|
-
name: {
|
|
14
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
15
|
-
isOptional: false;
|
|
16
|
-
};
|
|
17
|
-
authType: {
|
|
18
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
19
|
-
isOptional: false;
|
|
20
|
-
};
|
|
21
|
-
credentials: {
|
|
22
|
-
type: _lssm_lib_schema63.FieldType<unknown, unknown>;
|
|
23
|
-
isOptional: true;
|
|
24
|
-
};
|
|
25
|
-
}>, _lssm_lib_schema63.SchemaModel<{
|
|
26
|
-
id: {
|
|
27
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
28
|
-
isOptional: false;
|
|
29
|
-
};
|
|
30
|
-
integrationId: {
|
|
31
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
32
|
-
isOptional: false;
|
|
33
|
-
};
|
|
34
|
-
name: {
|
|
35
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
36
|
-
isOptional: false;
|
|
37
|
-
};
|
|
38
|
-
status: {
|
|
39
|
-
type: _lssm_lib_schema63.EnumType<[string, string, string, string, string]>;
|
|
40
|
-
isOptional: false;
|
|
41
|
-
};
|
|
42
|
-
authType: {
|
|
43
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
44
|
-
isOptional: false;
|
|
45
|
-
};
|
|
46
|
-
externalAccountName: {
|
|
47
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
48
|
-
isOptional: true;
|
|
49
|
-
};
|
|
50
|
-
connectedAt: {
|
|
51
|
-
type: _lssm_lib_schema63.FieldType<Date, string>;
|
|
52
|
-
isOptional: true;
|
|
53
|
-
};
|
|
54
|
-
lastHealthCheck: {
|
|
55
|
-
type: _lssm_lib_schema63.FieldType<Date, string>;
|
|
56
|
-
isOptional: true;
|
|
57
|
-
};
|
|
58
|
-
healthStatus: {
|
|
59
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
60
|
-
isOptional: true;
|
|
61
|
-
};
|
|
62
|
-
}>, {
|
|
63
|
-
name: string;
|
|
64
|
-
version: number;
|
|
65
|
-
when: string;
|
|
66
|
-
payload: _lssm_lib_schema63.SchemaModel<{
|
|
67
|
-
id: {
|
|
68
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
69
|
-
isOptional: false;
|
|
70
|
-
};
|
|
71
|
-
integrationId: {
|
|
72
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
73
|
-
isOptional: false;
|
|
74
|
-
};
|
|
75
|
-
name: {
|
|
76
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
77
|
-
isOptional: false;
|
|
78
|
-
};
|
|
79
|
-
status: {
|
|
80
|
-
type: _lssm_lib_schema63.EnumType<[string, string, string, string, string]>;
|
|
81
|
-
isOptional: false;
|
|
82
|
-
};
|
|
83
|
-
authType: {
|
|
84
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
85
|
-
isOptional: false;
|
|
86
|
-
};
|
|
87
|
-
externalAccountName: {
|
|
88
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
89
|
-
isOptional: true;
|
|
90
|
-
};
|
|
91
|
-
connectedAt: {
|
|
92
|
-
type: _lssm_lib_schema63.FieldType<Date, string>;
|
|
93
|
-
isOptional: true;
|
|
94
|
-
};
|
|
95
|
-
lastHealthCheck: {
|
|
96
|
-
type: _lssm_lib_schema63.FieldType<Date, string>;
|
|
97
|
-
isOptional: true;
|
|
98
|
-
};
|
|
99
|
-
healthStatus: {
|
|
100
|
-
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
101
|
-
isOptional: true;
|
|
102
|
-
};
|
|
103
|
-
}>;
|
|
104
|
-
}[]>;
|
|
105
|
-
//#endregion
|
|
106
|
-
export { CreateConnectionContract };
|
|
107
|
-
//# sourceMappingURL=connection.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.contracts.d.ts","names":[],"sources":["../../src/connection/connection.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAWa,+CAAwB,gCAAA;EAAxB,aAAA,EAAA;IAwBX,IAAA,EAAA,kBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;sCAxBmC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;UAAA,kBAAA,CAAA;;;;;;;;;;;;qCAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,KAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.contracts.js","names":[],"sources":["../../src/connection/connection.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts/spec';\nimport {\n ConnectionModel,\n CreateConnectionInputModel,\n} from './connection.schema';\n\nconst OWNERS = ['@example.integration-hub'] as const;\n\n/**\n * Create a connection to an external system.\n */\nexport const CreateConnectionContract = defineCommand({\n meta: {\n name: 'integration.connection.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'connection', 'create'],\n description: 'Create a connection to an external system.',\n goal: 'Authenticate with external systems.',\n context: 'Connection setup.',\n },\n io: { input: CreateConnectionInputModel, output: ConnectionModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'integration.connection.created',\n version: 1,\n when: 'Connection created',\n payload: ConnectionModel,\n },\n ],\n audit: ['integration.connection.created'],\n },\n});\n"],"mappings":";;;;AAMA,MAAM,SAAS,CAAC,2BAA2B;;;;AAK3C,MAAa,2BAA2B,cAAc;CACpD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAc;GAAS;EAC7C,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAA4B,QAAQ;EAAiB;CAClE,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,iCAAiC;EAC1C;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec.js","names":[],"sources":["../../../../../../libs/contracts/dist/spec.js"],"sourcesContent":["//#region src/spec.ts\nconst isEmitDeclRef = (e) => \"ref\" in e;\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery, isEmitDeclRef };"],"mappings":";;;;;AAMA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
|