@lssm/example.crm-pipeline 0.0.0-canary-20251220041653 → 0.0.0-canary-20251221132705
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/.turbo/turbo-build$colon$bundle.log +224 -176
- package/.turbo/turbo-build.log +200 -152
- package/CHANGELOG.md +8 -8
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/index.js +1 -1
- package/dist/deal/deal.enum.d.ts +3 -3
- package/dist/deal/deal.enum.d.ts.map +1 -1
- package/dist/deal/deal.operation.d.ts +513 -0
- package/dist/deal/deal.operation.d.ts.map +1 -0
- package/dist/deal/{deal.contracts.js → deal.operation.js} +3 -3
- package/dist/deal/deal.operation.js.map +1 -0
- package/dist/deal/deal.schema.d.ts +71 -71
- package/dist/deal/index.d.ts +1 -1
- package/dist/deal/index.js +1 -1
- package/dist/entities/company.entity.d.ts +28 -28
- package/dist/entities/contact.entity.d.ts +32 -32
- package/dist/entities/deal.entity.d.ts +53 -53
- package/dist/entities/deal.entity.d.ts.map +1 -1
- package/dist/entities/task.entity.d.ts +43 -43
- package/dist/entities/task.entity.d.ts.map +1 -1
- package/dist/events/contact.event.d.ts +8 -8
- package/dist/events/deal.event.d.ts +30 -30
- package/dist/events/task.event.d.ts +8 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +6 -0
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
- package/dist/libs/contracts/dist/data-views.js +1 -0
- 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/features.js +1 -0
- package/dist/libs/contracts/dist/forms.js +1 -0
- package/dist/libs/contracts/dist/index.js +14 -1
- package/dist/libs/contracts/dist/index.js.map +1 -0
- 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/presentations.js +1 -0
- package/dist/libs/contracts/dist/registry-utils.js +24 -0
- package/dist/libs/contracts/dist/registry-utils.js.map +1 -0
- package/dist/libs/contracts/dist/registry.js +1 -0
- package/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/contracts/dist/workflow/spec.js +1 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +122 -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/libs/identity-rbac/dist/contracts/dist/_virtual/rolldown_runtime.js +6 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/client/react/form-render.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/data-views.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/libs/identity-rbac/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/features.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/forms.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/index.js +13 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/index.js.map +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/contracts.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/onboarding-base.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/libs/identity-rbac/dist/contracts/dist/operation.js.map +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/presentations.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/registry-utils.js +24 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/registry-utils.js.map +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/registry.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/workflow/spec.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/workspace-config/contractsrc-schema.js +118 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/libs/identity-rbac/dist/contracts/dist/workspace-config/index.js +1 -0
- package/dist/libs/identity-rbac/dist/contracts/organization.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/organization.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/rbac.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/rbac.js.map +1 -1
- package/dist/libs/identity-rbac/dist/contracts/user.js +1 -1
- package/dist/libs/identity-rbac/dist/contracts/user.js.map +1 -1
- package/dist/modules/audit-trail/dist/contracts/index.js +1 -1
- package/dist/modules/audit-trail/dist/contracts/index.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +6 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/client/react/form-render.js +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/data-views.js +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/modules/audit-trail/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/features.js +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/forms.js +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/index.js +13 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/index.js.map +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/contracts.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/onboarding-base.js +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/modules/audit-trail/dist/libs/contracts/dist/operation.js.map +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/registry-utils.js +24 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/registry-utils.js.map +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/registry.js +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/workflow/spec.js +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +118 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/modules/audit-trail/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/dist/modules/notifications/dist/contracts/index.js +1 -1
- package/dist/modules/notifications/dist/contracts/index.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +6 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/client/react/form-render.js +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/data-views.js +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/modules/notifications/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/features.js +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/forms.js +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/index.js +13 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/index.js.map +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/contracts.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/onboarding-base.js +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/modules/notifications/dist/libs/contracts/dist/operation.js.map +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/registry-utils.js +24 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/registry-utils.js.map +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/registry.js +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/workflow/spec.js +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +118 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/modules/notifications/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/package.json +12 -12
- package/src/deal/{deal.contracts.ts → deal.operation.ts} +1 -1
- package/src/deal/index.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/deal/deal.contracts.d.ts +0 -513
- package/dist/deal/deal.contracts.d.ts.map +0 -1
- package/dist/deal/deal.contracts.js.map +0 -1
- package/dist/libs/contracts/dist/spec.js.map +0 -1
- package/dist/libs/identity-rbac/dist/contracts/dist/spec.js.map +0 -1
- package/dist/modules/audit-trail/dist/libs/contracts/dist/spec.js.map +0 -1
- package/dist/modules/notifications/dist/libs/contracts/dist/spec.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal.entity.d.ts","names":[],"sources":["../../src/entities/deal.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,cAKX,EAAA,
|
|
1
|
+
{"version":3,"file":"deal.entity.d.ts","names":[],"sources":["../../src/entities/deal.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,cAKX,EAAA,mBAAA,CALyB,aAKzB;AAKF;;;cAAa,oCAAc;MAwBzB,mBAAA,CAAA;;;;;;kDAxByB;EAAA,MAAA,yCAAA;EA6Bd,KAAA,yCAwCX;CAAA,CAAA;;;;cAxCW,iCAAW;MAwCtB,mBAAA,CAAA;;;;;;;8CAxCsB;EAAA,SAAA,uCAAA;EA6CX,SAAA,uCAiEX;EAAA,QAAA,yCAAA;;;;;;cAjEW,gCAAU;MAiErB,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;kDAjEqB;EAAA,QAAA,yCAAA"}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema308 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/task.entity.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Task type enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const TaskTypeEnum:
|
|
7
|
+
declare const TaskTypeEnum: _lssm_lib_schema308.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Task priority enum.
|
|
10
10
|
*/
|
|
11
|
-
declare const TaskPriorityEnum:
|
|
11
|
+
declare const TaskPriorityEnum: _lssm_lib_schema308.EntityEnumDef;
|
|
12
12
|
/**
|
|
13
13
|
* Task status enum.
|
|
14
14
|
*/
|
|
15
|
-
declare const TaskStatusEnum:
|
|
15
|
+
declare const TaskStatusEnum: _lssm_lib_schema308.EntityEnumDef;
|
|
16
16
|
/**
|
|
17
17
|
* Task entity - follow-up activities.
|
|
18
18
|
*/
|
|
19
|
-
declare const TaskEntity:
|
|
20
|
-
id:
|
|
21
|
-
title:
|
|
22
|
-
description:
|
|
23
|
-
type:
|
|
24
|
-
priority:
|
|
25
|
-
status:
|
|
26
|
-
dueDate:
|
|
27
|
-
reminderAt:
|
|
28
|
-
contactId:
|
|
29
|
-
dealId:
|
|
30
|
-
companyId:
|
|
31
|
-
organizationId:
|
|
32
|
-
assignedTo:
|
|
33
|
-
createdBy:
|
|
34
|
-
completedAt:
|
|
35
|
-
completedBy:
|
|
36
|
-
createdAt:
|
|
37
|
-
updatedAt:
|
|
38
|
-
contact:
|
|
39
|
-
deal:
|
|
40
|
-
company:
|
|
19
|
+
declare const TaskEntity: _lssm_lib_schema308.EntitySpec<{
|
|
20
|
+
id: _lssm_lib_schema308.EntityScalarField;
|
|
21
|
+
title: _lssm_lib_schema308.EntityScalarField;
|
|
22
|
+
description: _lssm_lib_schema308.EntityScalarField;
|
|
23
|
+
type: _lssm_lib_schema308.EntityEnumField;
|
|
24
|
+
priority: _lssm_lib_schema308.EntityEnumField;
|
|
25
|
+
status: _lssm_lib_schema308.EntityEnumField;
|
|
26
|
+
dueDate: _lssm_lib_schema308.EntityScalarField;
|
|
27
|
+
reminderAt: _lssm_lib_schema308.EntityScalarField;
|
|
28
|
+
contactId: _lssm_lib_schema308.EntityScalarField;
|
|
29
|
+
dealId: _lssm_lib_schema308.EntityScalarField;
|
|
30
|
+
companyId: _lssm_lib_schema308.EntityScalarField;
|
|
31
|
+
organizationId: _lssm_lib_schema308.EntityScalarField;
|
|
32
|
+
assignedTo: _lssm_lib_schema308.EntityScalarField;
|
|
33
|
+
createdBy: _lssm_lib_schema308.EntityScalarField;
|
|
34
|
+
completedAt: _lssm_lib_schema308.EntityScalarField;
|
|
35
|
+
completedBy: _lssm_lib_schema308.EntityScalarField;
|
|
36
|
+
createdAt: _lssm_lib_schema308.EntityScalarField;
|
|
37
|
+
updatedAt: _lssm_lib_schema308.EntityScalarField;
|
|
38
|
+
contact: _lssm_lib_schema308.EntityRelationField;
|
|
39
|
+
deal: _lssm_lib_schema308.EntityRelationField;
|
|
40
|
+
company: _lssm_lib_schema308.EntityRelationField;
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* Activity entity - interaction history.
|
|
44
44
|
*/
|
|
45
|
-
declare const ActivityEntity:
|
|
46
|
-
id:
|
|
47
|
-
type:
|
|
48
|
-
subject:
|
|
49
|
-
description:
|
|
50
|
-
contactId:
|
|
51
|
-
dealId:
|
|
52
|
-
companyId:
|
|
53
|
-
organizationId:
|
|
54
|
-
performedBy:
|
|
55
|
-
outcome:
|
|
56
|
-
occurredAt:
|
|
57
|
-
duration:
|
|
58
|
-
createdAt:
|
|
59
|
-
contact:
|
|
60
|
-
deal:
|
|
61
|
-
company:
|
|
45
|
+
declare const ActivityEntity: _lssm_lib_schema308.EntitySpec<{
|
|
46
|
+
id: _lssm_lib_schema308.EntityScalarField;
|
|
47
|
+
type: _lssm_lib_schema308.EntityEnumField;
|
|
48
|
+
subject: _lssm_lib_schema308.EntityScalarField;
|
|
49
|
+
description: _lssm_lib_schema308.EntityScalarField;
|
|
50
|
+
contactId: _lssm_lib_schema308.EntityScalarField;
|
|
51
|
+
dealId: _lssm_lib_schema308.EntityScalarField;
|
|
52
|
+
companyId: _lssm_lib_schema308.EntityScalarField;
|
|
53
|
+
organizationId: _lssm_lib_schema308.EntityScalarField;
|
|
54
|
+
performedBy: _lssm_lib_schema308.EntityScalarField;
|
|
55
|
+
outcome: _lssm_lib_schema308.EntityScalarField;
|
|
56
|
+
occurredAt: _lssm_lib_schema308.EntityScalarField;
|
|
57
|
+
duration: _lssm_lib_schema308.EntityScalarField;
|
|
58
|
+
createdAt: _lssm_lib_schema308.EntityScalarField;
|
|
59
|
+
contact: _lssm_lib_schema308.EntityRelationField;
|
|
60
|
+
deal: _lssm_lib_schema308.EntityRelationField;
|
|
61
|
+
company: _lssm_lib_schema308.EntityRelationField;
|
|
62
62
|
}>;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { ActivityEntity, TaskEntity, TaskPriorityEnum, TaskStatusEnum, TaskTypeEnum };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.entity.d.ts","names":[],"sources":["../../src/entities/task.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,YAKX,EAAA,
|
|
1
|
+
{"version":3,"file":"task.entity.d.ts","names":[],"sources":["../../src/entities/task.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,YAKX,EAAA,mBAAA,CALuB,aAKvB;AAKF;AAUA;AAUA;AAiDE,cArEW,gBAqEX,EAhEA,mBAAA,CAL2B,aAqE3B;;;;cA3DW,gBAKX,mBAAA,CALyB;;;;cAUd,gCAAU;MAiDrB,mBAAA,CAAA;;;;;;;;;;;;mDAjDqB;EAAA,SAAA,uCAAA;EAsDV,WAAA,uCA0CX;EAAA,WAAA,uCAAA;;;;;;;;;;cA1CW,oCAAc;MA0CzB,mBAAA,CAAA;;;;;+CA1CyB;EAAA,SAAA,uCAAA"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema350 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts4 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events/contact.event.d.ts
|
|
5
|
-
declare const ContactCreatedEvent:
|
|
5
|
+
declare const ContactCreatedEvent: _lssm_lib_contracts4.EventSpec<_lssm_lib_schema350.SchemaModel<{
|
|
6
6
|
contactId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema350.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
email: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema350.FieldType<string, string>;
|
|
12
12
|
isOptional: true;
|
|
13
13
|
};
|
|
14
14
|
organizationId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema350.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
ownerId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema350.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
createdAt: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema350.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema356 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts5 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events/deal.event.d.ts
|
|
5
|
-
declare const DealCreatedEvent:
|
|
5
|
+
declare const DealCreatedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema356.SchemaModel<{
|
|
6
6
|
dealId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
name: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
value: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema356.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
pipelineId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
stageId: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
ownerId: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
createdAt: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema356.FieldType<Date, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
}>>;
|
|
35
|
-
declare const DealMovedEvent:
|
|
35
|
+
declare const DealMovedEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema356.SchemaModel<{
|
|
36
36
|
dealId: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
fromStageId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
toStageId: {
|
|
45
|
-
type:
|
|
45
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
movedBy: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
movedAt: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema356.FieldType<Date, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
}>>;
|
|
57
|
-
declare const DealWonEvent:
|
|
57
|
+
declare const DealWonEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema356.SchemaModel<{
|
|
58
58
|
dealId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
value: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema356.FieldType<number, number>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
currency: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
contactId: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
72
72
|
isOptional: true;
|
|
73
73
|
};
|
|
74
74
|
companyId: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
76
76
|
isOptional: true;
|
|
77
77
|
};
|
|
78
78
|
ownerId: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
wonAt: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema356.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const DealLostEvent:
|
|
87
|
+
declare const DealLostEvent: _lssm_lib_contracts5.EventSpec<_lssm_lib_schema356.SchemaModel<{
|
|
88
88
|
dealId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
value: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema356.FieldType<number, number>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
reason: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
ownerId: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema356.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
lostAt: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema356.FieldType<Date, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
}>>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema384 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts9 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events/task.event.d.ts
|
|
5
|
-
declare const TaskCompletedEvent:
|
|
5
|
+
declare const TaskCompletedEvent: _lssm_lib_contracts9.EventSpec<_lssm_lib_schema384.SchemaModel<{
|
|
6
6
|
taskId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema384.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
type: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema384.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
assignedTo: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema384.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
completedBy: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema384.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
completedAt: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema384.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DealStatusFilterEnum } from "./deal/deal.enum.js";
|
|
2
2
|
import { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel } from "./deal/deal.schema.js";
|
|
3
|
-
import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "./deal/deal.
|
|
3
|
+
import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "./deal/deal.operation.js";
|
|
4
4
|
import { CrmPipelineFeature } from "./crm-pipeline.feature.js";
|
|
5
5
|
import { CompanyEntity, CompanySizeEnum } from "./entities/company.entity.js";
|
|
6
6
|
import { ContactEntity, ContactStatusEnum } from "./entities/contact.entity.js";
|
|
@@ -15,14 +15,14 @@ import { MOCK_COMPANIES, MOCK_CONTACTS, MOCK_DEALS, MOCK_STAGES, MockDeal, MockS
|
|
|
15
15
|
import { CreateDealInput, Deal, ListDealsInput, ListDealsOutput, LoseDealInput, MoveDealInput, WinDealInput, mockCreateDealHandler, mockGetDealsByStageHandler, mockGetPipelineStagesHandler, mockListDealsHandler, mockLoseDealHandler, mockMoveDealHandler, mockWinDealHandler } from "./handlers/deal.handlers.js";
|
|
16
16
|
import { CrmDashboardPresentation, PipelineMetricsPresentation } from "./presentations/dashboard.presentation.js";
|
|
17
17
|
import { DealCardPresentation, DealDetailPresentation, DealListPresentation, PipelineKanbanPresentation } from "./presentations/pipeline.presentation.js";
|
|
18
|
-
import * as
|
|
18
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
19
19
|
|
|
20
20
|
//#region src/index.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* Complete schema composition for CRM Pipeline.
|
|
23
23
|
*/
|
|
24
24
|
declare const schemaComposition: {
|
|
25
|
-
modules:
|
|
25
|
+
modules: _lssm_lib_schema0.ModuleSchemaContribution[];
|
|
26
26
|
provider: "postgresql";
|
|
27
27
|
outputPath: string;
|
|
28
28
|
};
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cAqBa;WASZ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cAqBa;WASZ,iBAAA,CAAA,wBAAA"}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { ActivityEntity, TaskEntity, TaskPriorityEnum, TaskStatusEnum, TaskTypeE
|
|
|
7
7
|
import { crmPipelineSchemaContribution } from "./entities/index.js";
|
|
8
8
|
import { DealStatusFilterEnum } from "./deal/deal.enum.js";
|
|
9
9
|
import { CreateDealInputModel, DealLostPayloadModel, DealModel, DealMovedPayloadModel, DealWonPayloadModel, ListDealsInputModel, ListDealsOutputModel, LoseDealInputModel, MoveDealInputModel, WinDealInputModel } from "./deal/deal.schema.js";
|
|
10
|
-
import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "./deal/deal.
|
|
10
|
+
import { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract } from "./deal/deal.operation.js";
|
|
11
11
|
import "./contracts/index.js";
|
|
12
12
|
import { ContactCreatedEvent } from "./events/contact.event.js";
|
|
13
13
|
import { DealCreatedEvent, DealLostEvent, DealMovedEvent, DealWonEvent } from "./events/deal.event.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolldown_runtime.js","names":[],"sources":["../../../../../../../libs/contracts/dist/_virtual/rolldown_runtime.js"],"sourcesContent":["//#region rolldown:runtime\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);\nvar __export = (all, symbols) => {\n\tlet target = {};\n\tfor (var name in all) {\n\t\t__defProp(target, name, {\n\t\t\tget: all[name],\n\t\t\tenumerable: true\n\t\t});\n\t}\n\tif (symbols) {\n\t\t__defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\t}\n\treturn target;\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\t\tkey = keys[i];\n\t\t\tif (!__hasOwnProp.call(to, key) && key !== except) {\n\t\t\t\t__defProp(to, key, {\n\t\t\t\t\tget: ((k) => from[k]).bind(null, key),\n\t\t\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __hasOwnProp.call(mod, \"module.exports\") ? mod[\"module.exports\"] : __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n//#endregion\nexport { __esmMin, __export, __toCommonJS };"],"mappings":";AAKA,IAAI,YAAY,IAAI,eAAe,OAAO,MAAM,GAAG,KAAK,EAAE,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./registry-utils.js";
|
|
@@ -3,8 +3,8 @@ import { registerDocBlocks } from "../../registry.js";
|
|
|
3
3
|
//#region ../../libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js
|
|
4
4
|
const tech_contracts_openapi_export_DocBlocks = [{
|
|
5
5
|
id: "docs.tech.contracts.openapi-export",
|
|
6
|
-
title: "OpenAPI export (OpenAPI 3.1) from
|
|
7
|
-
summary: "Generate a deterministic OpenAPI document from a
|
|
6
|
+
title: "OpenAPI export (OpenAPI 3.1) from OperationSpecRegistry",
|
|
7
|
+
summary: "Generate a deterministic OpenAPI document from a OperationSpecRegistry using jsonSchemaForSpec + REST transport metadata.",
|
|
8
8
|
kind: "reference",
|
|
9
9
|
visibility: "public",
|
|
10
10
|
route: "/docs/tech/contracts/openapi-export",
|
|
@@ -13,7 +13,7 @@ const tech_contracts_openapi_export_DocBlocks = [{
|
|
|
13
13
|
"openapi",
|
|
14
14
|
"rest"
|
|
15
15
|
],
|
|
16
|
-
body: `## OpenAPI export (OpenAPI 3.1) from
|
|
16
|
+
body: `## OpenAPI export (OpenAPI 3.1) from OperationSpecRegistry
|
|
17
17
|
|
|
18
18
|
### Purpose
|
|
19
19
|
|
|
@@ -42,9 +42,9 @@ contractspec openapi --registry ./src/registry.ts --out ./openapi.json
|
|
|
42
42
|
|
|
43
43
|
The registry module must export one of:
|
|
44
44
|
|
|
45
|
-
- \`registry:
|
|
46
|
-
- \`default():
|
|
47
|
-
- \`createRegistry():
|
|
45
|
+
- \`registry: OperationSpecRegistry\`
|
|
46
|
+
- \`default(): OperationSpecRegistry | Promise<OperationSpecRegistry>\`
|
|
47
|
+
- \`createRegistry(): OperationSpecRegistry | Promise<OperationSpecRegistry>\`
|
|
48
48
|
|
|
49
49
|
### Notes / limitations (current)
|
|
50
50
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-export.docblock.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region src/docs/tech/contracts/openapi-export.docblock.ts\nconst tech_contracts_openapi_export_DocBlocks = [{\n\tid: \"docs.tech.contracts.openapi-export\",\n\ttitle: \"OpenAPI export (OpenAPI 3.1) from
|
|
1
|
+
{"version":3,"file":"openapi-export.docblock.js","names":[],"sources":["../../../../../../../../../libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"../../registry.js\";\n\n//#region src/docs/tech/contracts/openapi-export.docblock.ts\nconst tech_contracts_openapi_export_DocBlocks = [{\n\tid: \"docs.tech.contracts.openapi-export\",\n\ttitle: \"OpenAPI export (OpenAPI 3.1) from OperationSpecRegistry\",\n\tsummary: \"Generate a deterministic OpenAPI document from a OperationSpecRegistry using jsonSchemaForSpec + REST transport metadata.\",\n\tkind: \"reference\",\n\tvisibility: \"public\",\n\troute: \"/docs/tech/contracts/openapi-export\",\n\ttags: [\n\t\t\"contracts\",\n\t\t\"openapi\",\n\t\t\"rest\"\n\t],\n\tbody: `## OpenAPI export (OpenAPI 3.1) from OperationSpecRegistry\n\n### Purpose\n\nContractSpec specs can be exported into an **OpenAPI 3.1** document for tooling (SDK generation, docs, gateways).\n\nThe export is **spec-first**:\n\n- Uses \\`jsonSchemaForSpec(spec)\\` for input/output JSON Schema (from SchemaModel → zod → JSON Schema)\n- Uses \\`spec.transport.rest.method/path\\` when present\n- Falls back to deterministic defaults:\n - Method: \\`POST\\` for commands, \\`GET\\` for queries\n - Path: \\`defaultRestPath(name, version)\\` → \\`/<dot/name>/v<version>\\`\n\n### Library API\n\n- Function: \\`openApiForRegistry(registry, options?)\\`\n- Location: \\`@lssm/lib.contracts/openapi\\`\n\n### CLI\n\nExport OpenAPI from a registry module:\n\n\\`\\`\\`bash\ncontractspec openapi --registry ./src/registry.ts --out ./openapi.json\n\\`\\`\\`\n\nThe registry module must export one of:\n\n- \\`registry: OperationSpecRegistry\\`\n- \\`default(): OperationSpecRegistry | Promise<OperationSpecRegistry>\\`\n- \\`createRegistry(): OperationSpecRegistry | Promise<OperationSpecRegistry>\\`\n\n### Notes / limitations (current)\n\n- Responses are generated as a basic \\`200\\` response (plus schemas when available).\n- Query (GET) inputs are currently represented as a JSON request body when an input schema exists.\n- Errors are not yet expanded into OpenAPI responses; that will be added when we standardize error envelopes.`\n}];\nregisterDocBlocks(tech_contracts_openapi_export_DocBlocks);\n\n//#endregion\nexport { tech_contracts_openapi_export_DocBlocks };"],"mappings":";;;AAGA,MAAM,0CAA0C,CAAC;CAChD,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EACL;EACA;EACA;EACA;CACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCN,CAAC;AACF,kBAAkB,wCAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./registry-utils.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./registry-utils.js";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { defineCommand, defineQuery } from "./
|
|
1
|
+
import { defineCommand, defineQuery } from "./operation.js";
|
|
2
|
+
import { GroupingStrategies, init_registry_utils } from "./registry-utils.js";
|
|
3
|
+
import "./data-views.js";
|
|
2
4
|
import "./schema/dist/index.js";
|
|
3
5
|
import { defineEvent } from "./events.js";
|
|
6
|
+
import "./features.js";
|
|
7
|
+
import "./forms.js";
|
|
4
8
|
import "./presentations.v2.js";
|
|
5
9
|
import "./client/react/feature-render.js";
|
|
6
10
|
import "./client/react/form-render.js";
|
|
@@ -62,6 +66,9 @@ import "./integrations/contracts.js";
|
|
|
62
66
|
import "./knowledge/contracts.js";
|
|
63
67
|
import "./regenerator/service.js";
|
|
64
68
|
import "./regenerator/index.js";
|
|
69
|
+
import { FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema } from "./workspace-config/contractsrc-schema.js";
|
|
70
|
+
import "./workspace-config/index.js";
|
|
71
|
+
import "./workflow/spec.js";
|
|
65
72
|
import "./workflow/runner.js";
|
|
66
73
|
import "./workflow/index.js";
|
|
67
74
|
import { techContractsDocs } from "./docs/tech-contracts.docs.js";
|
|
@@ -70,3 +77,9 @@ import "./docs/index.js";
|
|
|
70
77
|
import "./llm/exporters.js";
|
|
71
78
|
import "./llm/prompts.js";
|
|
72
79
|
import "./llm/index.js";
|
|
80
|
+
|
|
81
|
+
//#region ../../libs/contracts/dist/index.js
|
|
82
|
+
init_registry_utils();
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../libs/contracts/dist/index.js"],"sourcesContent":["import { CapabilityRegistry, capabilityKey, defineCapability } from \"./capabilities.js\";\nimport { GroupingStrategies, filterBy, getUniqueDomains, getUniqueOwners, getUniqueTags, groupBy, groupByMultiple, groupByToArray, init_registry_utils } from \"./registry-utils.js\";\nimport { DataViewRegistry, dataViewKey } from \"./data-views.js\";\nimport { K5 } from \"./schema/dist/index.js\";\nimport { defineEvent, eventKey } from \"./events.js\";\nimport { FeatureRegistry, installFeature, validateFeatureTargetsV2 } from \"./features.js\";\nimport { FormRegistry, buildZodWithRelations, defineFormSpec, evalPredicate } from \"./forms.js\";\nimport { schemaToMarkdown, schemaToMarkdownDetail, schemaToMarkdownList, schemaToMarkdownSummary, schemaToMarkdownTable } from \"./schema-to-markdown.js\";\nimport { TransformEngine, createDefaultTransformEngine, registerBasicValidation, registerDefaultReactRenderer, registerReactToMarkdownRenderer } from \"./presentations.v2.js\";\nimport { createEngineWithDefaults, createFeatureModule, registerFeature, renderFeaturePresentation } from \"./client/react/feature-render.js\";\nimport { createFormRenderer } from \"./client/react/form-render.js\";\nimport { shadcnDriver } from \"./client/react/drivers/shadcn.js\";\nimport { rnReusablesDriver } from \"./client/react/drivers/rn-reusables.js\";\nimport \"./client/index.js\";\nimport { defaultGqlField, defaultMcpTool, defaultRestPath, jsonSchemaForSpec } from \"./jsonschema.js\";\nimport { registerContractsOnBuilder } from \"./server/graphql-pothos.js\";\nimport { PresentationRegistry, jsonSchemaForPresentation } from \"./presentations.js\";\nimport { createMcpServer } from \"./server/mcp/createMcpServer.js\";\nimport { createFetchHandler } from \"./server/rest-generic.js\";\nimport { elysiaPlugin } from \"./server/rest-elysia.js\";\nimport { expressRouter } from \"./server/rest-express.js\";\nimport { makeNextAppHandler } from \"./server/rest-next-app.js\";\nimport { makeNextPagesHandler } from \"./server/rest-next-pages.js\";\nimport \"./server/index.js\";\nimport { defineCommand, defineQuery, isEmitDeclRef } from \"./operation.js\";\nimport { docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes } from \"./docs/presentations.js\";\nimport { DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks } from \"./docs/registry.js\";\nimport { OperationSpecRegistry, opKey } from \"./registry.js\";\nimport { Owners, OwnersEnum, StabilityEnum, Tags, TagsEnum } from \"./ownership.js\";\nimport { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema } from \"./contract-registry/schemas.js\";\nimport \"./contract-registry/index.js\";\nimport { installOp, makeEmit, op } from \"./install.js\";\nimport { openApiForRegistry } from \"./openapi.js\";\nimport { definePrompt } from \"./prompt.js\";\nimport { PromptRegistry } from \"./promptRegistry.js\";\nimport { ResourceRegistry, defineResourceTemplate, isResourceRef, resourceRef } from \"./resources.js\";\nimport { CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput } from \"./onboarding-base.js\";\nimport { openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, registerOpenBankingCapabilities } from \"./capabilities/openbanking.js\";\nimport { PolicyRegistry, makePolicyKey } from \"./policy/spec.js\";\nimport { PolicyEngine } from \"./policy/engine.js\";\nimport { OPAPolicyAdapter, buildOPAInput } from \"./policy/opa-adapter.js\";\nimport { ThemeRegistry, makeThemeRef } from \"./themes.js\";\nimport { MigrationRegistry } from \"./migrations.js\";\nimport { TelemetryRegistry, makeTelemetryKey } from \"./telemetry/spec.js\";\nimport { TelemetryTracker } from \"./telemetry/tracker.js\";\nimport { TelemetryAnomalyMonitor } from \"./telemetry/anomaly.js\";\nimport \"./telemetry/index.js\";\nimport { TestRegistry, makeTestKey } from \"./tests/spec.js\";\nimport { TestRunner } from \"./tests/runner.js\";\nimport \"./tests/index.js\";\nimport { ExperimentRegistry, makeExperimentKey } from \"./experiments/spec.js\";\nimport { ExperimentEvaluator } from \"./experiments/evaluator.js\";\nimport { AppBlueprintRegistry, makeAppBlueprintKey } from \"./app-config/spec.js\";\nimport { composeAppConfig, resolveAppConfig } from \"./app-config/runtime.js\";\nimport { IntegrationSpecRegistry, makeIntegrationSpecKey } from \"./integrations/spec.js\";\nimport { registerStripeIntegration, stripeIntegrationSpec } from \"./integrations/providers/stripe.js\";\nimport { postmarkIntegrationSpec, registerPostmarkIntegration } from \"./integrations/providers/postmark.js\";\nimport { qdrantIntegrationSpec, registerQdrantIntegration } from \"./integrations/providers/qdrant.js\";\nimport { mistralIntegrationSpec, registerMistralIntegration } from \"./integrations/providers/mistral.js\";\nimport { elevenLabsIntegrationSpec, registerElevenLabsIntegration } from \"./integrations/providers/elevenlabs.js\";\nimport { gmailIntegrationSpec, registerGmailIntegration } from \"./integrations/providers/gmail.js\";\nimport { googleCalendarIntegrationSpec, registerGoogleCalendarIntegration } from \"./integrations/providers/google-calendar.js\";\nimport { registerTwilioSmsIntegration, twilioSmsIntegrationSpec } from \"./integrations/providers/twilio-sms.js\";\nimport { gcsStorageIntegrationSpec, registerGcsStorageIntegration } from \"./integrations/providers/gcs-storage.js\";\nimport { powensIntegrationSpec, registerPowensIntegration } from \"./integrations/providers/powens.js\";\nimport { createDefaultIntegrationSpecRegistry } from \"./integrations/providers/registry.js\";\nimport { AccountBalanceRecord, BankAccountRecord, BankTransactionRecord } from \"./integrations/openbanking/models.js\";\nimport { OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, redactOpenBankingTelemetryPayload } from \"./integrations/openbanking/telemetry.js\";\nimport { OpenBankingGetAccount, OpenBankingListAccounts, OpenBankingSyncAccounts } from \"./integrations/openbanking/contracts/accounts.js\";\nimport { OpenBankingListTransactions, OpenBankingSyncTransactions } from \"./integrations/openbanking/contracts/transactions.js\";\nimport { OpenBankingGetBalances, OpenBankingRefreshBalances } from \"./integrations/openbanking/contracts/balances.js\";\nimport { OpenBankingFeature } from \"./integrations/openbanking/openbanking.feature.js\";\nimport { registerOpenBankingContracts } from \"./integrations/openbanking/contracts/index.js\";\nimport { assertPrimaryOpenBankingReady, ensurePrimaryOpenBankingIntegration } from \"./integrations/openbanking/guards.js\";\nimport \"./integrations/index.js\";\nimport { KnowledgeSpaceRegistry, makeKnowledgeSpaceKey } from \"./knowledge/spec.js\";\nimport { productCanonKnowledgeSpace, registerProductCanonKnowledgeSpace } from \"./knowledge/spaces/product-canon.js\";\nimport { registerSupportFaqKnowledgeSpace, supportFaqKnowledgeSpace } from \"./knowledge/spaces/support-faq.js\";\nimport { emailThreadsKnowledgeSpace, registerEmailThreadsKnowledgeSpace } from \"./knowledge/spaces/email-threads.js\";\nimport { registerUploadedDocsKnowledgeSpace, uploadedDocsKnowledgeSpace } from \"./knowledge/spaces/uploaded-docs.js\";\nimport { financialDocsKnowledgeSpace, registerFinancialDocsKnowledgeSpace } from \"./knowledge/spaces/financial-docs.js\";\nimport { financialOverviewKnowledgeSpace, registerFinancialOverviewKnowledgeSpace } from \"./knowledge/spaces/financial-overview.js\";\nimport \"./knowledge/index.js\";\nimport { CreateIntegrationConnection, DeleteIntegrationConnection, ListIntegrationConnections, TestIntegrationConnection, UpdateIntegrationConnection, integrationContracts, registerIntegrationContracts } from \"./integrations/contracts.js\";\nimport { CreateKnowledgeSource, DeleteKnowledgeSource, ListKnowledgeSources, TriggerKnowledgeSourceSync, UpdateKnowledgeSource, knowledgeContracts, registerKnowledgeContracts } from \"./knowledge/contracts.js\";\nimport { behaviorToEnvelope, errorToEnvelope, telemetryToEnvelope } from \"./regenerator/utils.js\";\nimport { RegeneratorService } from \"./regenerator/service.js\";\nimport { ProposalExecutor } from \"./regenerator/executor.js\";\nimport { ExecutorProposalSink } from \"./regenerator/sinks.js\";\nimport \"./regenerator/index.js\";\nimport { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema } from \"./workspace-config/contractsrc-schema.js\";\nimport \"./workspace-config/index.js\";\nimport { WorkflowRegistry } from \"./workflow/spec.js\";\nimport { WorkflowValidationError, assertWorkflowSpecValid, validateWorkflowSpec } from \"./workflow/validation.js\";\nimport { evaluateExpression } from \"./workflow/expression.js\";\nimport { WorkflowPreFlightError, WorkflowRunner } from \"./workflow/runner.js\";\nimport { InMemoryStateStore } from \"./workflow/adapters/memory-store.js\";\nimport { PrismaStateStore } from \"./workflow/adapters/db-adapter.js\";\nimport { createFileStateStore } from \"./workflow/adapters/file-adapter.js\";\nimport \"./workflow/index.js\";\nimport { techContractsDocs } from \"./docs/tech-contracts.docs.js\";\nimport { metaDocs } from \"./docs/meta.docs.js\";\nimport \"./docs/index.js\";\nimport { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, presentationToMarkdown, specToAgentPrompt, specToContextMarkdown, specToFullMarkdown } from \"./llm/exporters.js\";\nimport { AGENT_SYSTEM_PROMPTS, formatPlanForAgent, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt } from \"./llm/prompts.js\";\nimport \"./llm/index.js\";\n\n//#region src/index.ts\ninit_registry_utils();\n\n//#endregion\nexport { AGENT_SYSTEM_PROMPTS, AccountBalanceRecord, AppBlueprintRegistry, BankAccountRecord, BankTransactionRecord, CapabilityRegistry, CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema, ContractsrcSchema, CreateIntegrationConnection, CreateKnowledgeSource, DEFAULT_CONTRACTSRC, DataViewRegistry, DeleteIntegrationConnection, DeleteKnowledgeSource, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, DocRegistry, ExecutorProposalSink, ExperimentEvaluator, ExperimentRegistry, FeatureRegistry, FolderConventionsSchema, FormRegistry, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, GroupingStrategies, InMemoryStateStore, IntegrationSpecRegistry, KnowledgeSpaceRegistry, ListIntegrationConnections, ListKnowledgeSources, MigrationRegistry, OPAPolicyAdapter, OPENBANKING_PII_FIELDS, OPENBANKING_TELEMETRY_EVENTS, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, OpenBankingFeature, OpenBankingGetAccount, OpenBankingGetBalances, OpenBankingListAccounts, OpenBankingListTransactions, OpenBankingRefreshBalances, OpenBankingSyncAccounts, OpenBankingSyncTransactions, OperationSpecRegistry, Owners, OwnersEnum, PolicyEngine, PolicyRegistry, PresentationRegistry, PrismaStateStore, PromptRegistry, ProposalExecutor, RegeneratorService, ResourceRegistry, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput, StabilityEnum, Tags, TagsEnum, TelemetryAnomalyMonitor, TelemetryRegistry, TelemetryTracker, TestIntegrationConnection, TestRegistry, TestRunner, ThemeRegistry, TransformEngine, TriggerKnowledgeSourceSync, UpdateIntegrationConnection, UpdateKnowledgeSource, WorkflowPreFlightError, WorkflowRegistry, WorkflowRunner, WorkflowValidationError, assertPrimaryOpenBankingReady, assertWorkflowSpecValid, behaviorToEnvelope, buildOPAInput, buildZodWithRelations, capabilityKey, composeAppConfig, createDefaultIntegrationSpecRegistry, createDefaultTransformEngine, createEngineWithDefaults, createFeatureModule, createFetchHandler, createFileStateStore, createFormRenderer, createMcpServer, dataViewKey, defaultDocRegistry, defaultGqlField, defaultMcpTool, defaultRestPath, defineCapability, defineCommand, defineEvent, defineFormSpec, definePrompt, defineQuery, defineResourceTemplate, K5 as defineSchemaModel, docBlockToMarkdown, docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, elevenLabsIntegrationSpec, elysiaPlugin, emailThreadsKnowledgeSpace, ensurePrimaryOpenBankingIntegration, errorToEnvelope, evalPredicate, evaluateExpression, eventKey, eventToMarkdown, exportFeature, exportSpec, expressRouter, featureToMarkdown, filterBy, financialDocsKnowledgeSpace, financialOverviewKnowledgeSpace, formatPlanForAgent, gcsStorageIntegrationSpec, generateFixViolationsPrompt, generateImplementationPlan, generateImplementationPrompt, generateReviewPrompt, generateTestPrompt, generateVerificationPrompt, getUniqueDomains, getUniqueOwners, getUniqueTags, gmailIntegrationSpec, googleCalendarIntegrationSpec, groupBy, groupByMultiple, groupByToArray, installFeature, installOp, integrationContracts, isEmitDeclRef, isResourceRef, jsonSchemaForPresentation, jsonSchemaForSpec, knowledgeContracts, listRegisteredDocBlocks, makeAppBlueprintKey, makeEmit, makeExperimentKey, makeIntegrationSpecKey, makeKnowledgeSpaceKey, makeNextAppHandler, makeNextPagesHandler, makePolicyKey, makeTelemetryKey, makeTestKey, makeThemeRef, mapDocRoutes, metaDocs, mistralIntegrationSpec, op, opKey, openApiForRegistry, openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, postmarkIntegrationSpec, powensIntegrationSpec, presentationToMarkdown, productCanonKnowledgeSpace, qdrantIntegrationSpec, redactOpenBankingTelemetryPayload, registerBasicValidation, registerContractsOnBuilder, registerDefaultReactRenderer, registerDocBlocks, registerElevenLabsIntegration, registerEmailThreadsKnowledgeSpace, registerFeature, registerFinancialDocsKnowledgeSpace, registerFinancialOverviewKnowledgeSpace, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerIntegrationContracts, registerKnowledgeContracts, registerMistralIntegration, registerOpenBankingCapabilities, registerOpenBankingContracts, registerPostmarkIntegration, registerPowensIntegration, registerProductCanonKnowledgeSpace, registerQdrantIntegration, registerReactToMarkdownRenderer, registerStripeIntegration, registerSupportFaqKnowledgeSpace, registerTwilioSmsIntegration, registerUploadedDocsKnowledgeSpace, renderFeaturePresentation, resolveAppConfig, resourceRef, rnReusablesDriver, schemaToMarkdown, schemaToMarkdownDetail, schemaToMarkdownList, schemaToMarkdownSummary, schemaToMarkdownTable, shadcnDriver, specToAgentPrompt, specToContextMarkdown, specToFullMarkdown, stripeIntegrationSpec, supportFaqKnowledgeSpace, techContractsDocs, telemetryToEnvelope, twilioSmsIntegrationSpec, uploadedDocsKnowledgeSpace, validateFeatureTargetsV2, validateWorkflowSpec };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GA,qBAAqB"}
|
|
@@ -1 +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 };"],"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;EACD,eAAe;GACd,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,mBAAmB;GAClB,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,gBAAgB;GACf,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,WAAW;GACV,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,QAAQ;GACP,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ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S;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
|
+
{"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 \"../operation.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 };"],"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;EACD,eAAe;GACd,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,mBAAmB;GAClB,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,gBAAgB;GACf,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,WAAW;GACV,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,QAAQ;GACP,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,aAAa;GACZ,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,cAAc;GACb,MAAM,GAAG,iBAAiB;GAC1B,YAAY;GACZ;EACD,iBAAiB;GAChB,MAAM,GAAG,UAAU;GACnB,YAAY;GACZ;EACD,iBAAiB;GAChB,MAAM,GAAG,gBAAgB;GACzB,YAAY;GACZ;EAC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AC9C,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,4 +1,4 @@
|
|
|
1
|
-
import { defineCommand, defineQuery } from "../../../
|
|
1
|
+
import { defineCommand, defineQuery } from "../../../operation.js";
|
|
2
2
|
import { E5, x8 } from "../../../schema/dist/index.js";
|
|
3
3
|
import { BankAccountRecord } from "../models.js";
|
|
4
4
|
import { OPENBANKING_TELEMETRY_EVENTS } from "../telemetry.js";
|