@contractspec/example.integration-hub 1.44.1 → 1.45.1

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.
Files changed (33) hide show
  1. package/dist/connection/connection.enum.d.ts +2 -2
  2. package/dist/connection/connection.operation.d.ts +28 -28
  3. package/dist/connection/connection.operation.d.ts.map +1 -1
  4. package/dist/connection/connection.operation.js +2 -2
  5. package/dist/connection/connection.operation.js.map +1 -1
  6. package/dist/connection/connection.presentation.js +2 -2
  7. package/dist/connection/connection.presentation.js.map +1 -1
  8. package/dist/connection/connection.schema.d.ts +16 -16
  9. package/dist/events.d.ts +42 -42
  10. package/dist/events.d.ts.map +1 -1
  11. package/dist/events.js +9 -9
  12. package/dist/events.js.map +1 -1
  13. package/dist/example.d.ts +3 -36
  14. package/dist/example.d.ts.map +1 -1
  15. package/dist/example.js +16 -11
  16. package/dist/example.js.map +1 -1
  17. package/dist/integration/integration.enum.d.ts +2 -2
  18. package/dist/integration/integration.enum.d.ts.map +1 -1
  19. package/dist/integration/integration.operations.d.ts +25 -25
  20. package/dist/integration/integration.operations.js +2 -2
  21. package/dist/integration/integration.operations.js.map +1 -1
  22. package/dist/integration/integration.presentation.js +3 -3
  23. package/dist/integration/integration.presentation.js.map +1 -1
  24. package/dist/integration/integration.schema.d.ts +16 -16
  25. package/dist/integration/integration.schema.d.ts.map +1 -1
  26. package/dist/integration-hub.feature.js +48 -48
  27. package/dist/integration-hub.feature.js.map +1 -1
  28. package/dist/sync/sync.operations.d.ts +3 -3
  29. package/dist/sync/sync.operations.js +7 -7
  30. package/dist/sync/sync.operations.js.map +1 -1
  31. package/dist/sync/sync.presentation.js +6 -6
  32. package/dist/sync/sync.presentation.js.map +1 -1
  33. package/package.json +12 -12
package/dist/example.d.ts CHANGED
@@ -1,40 +1,7 @@
1
+ import { ExampleSpec } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.d.ts
2
- declare const example: {
3
- readonly id: "integration-hub";
4
- readonly title: "Integration Hub";
5
- readonly summary: "Provider-agnostic integration center with connectors, connections, field mappings, and sync logs.";
6
- readonly tags: readonly ["integrations", "sync", "etl", "connectors"];
7
- readonly kind: "template";
8
- readonly visibility: "public";
9
- readonly docs: {
10
- readonly rootDocId: "docs.examples.integration-hub";
11
- readonly goalDocId: "docs.examples.integration-hub.goal";
12
- readonly usageDocId: "docs.examples.integration-hub.usage";
13
- readonly constraintsDocId: "docs.examples.integration-hub.constraints";
14
- };
15
- readonly entrypoints: {
16
- readonly packageName: "@contractspec/example.integration-hub";
17
- readonly feature: "./feature";
18
- readonly contracts: "./contracts";
19
- readonly presentations: "./presentations";
20
- readonly handlers: "./handlers";
21
- readonly docs: "./docs";
22
- };
23
- readonly surfaces: {
24
- readonly templates: true;
25
- readonly sandbox: {
26
- readonly enabled: true;
27
- readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
28
- };
29
- readonly studio: {
30
- readonly enabled: true;
31
- readonly installable: true;
32
- };
33
- readonly mcp: {
34
- readonly enabled: true;
35
- };
36
- };
37
- };
4
+ declare const example: ExampleSpec;
38
5
  //#endregion
39
6
  export { example as default };
40
7
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA+BI,EAAA,iBAAA"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
package/dist/example.js CHANGED
@@ -1,16 +1,21 @@
1
1
  //#region src/example.ts
2
2
  const example = {
3
- id: "integration-hub",
4
- title: "Integration Hub",
5
- summary: "Provider-agnostic integration center with connectors, connections, field mappings, and sync logs.",
6
- tags: [
7
- "integrations",
8
- "sync",
9
- "etl",
10
- "connectors"
11
- ],
12
- kind: "template",
13
- visibility: "public",
3
+ meta: {
4
+ key: "integration-hub",
5
+ version: "1.0.0",
6
+ title: "Integration Hub",
7
+ description: "Provider-agnostic integration center with connectors, connections, field mappings, and sync logs.",
8
+ kind: "template",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "integrations",
14
+ "sync",
15
+ "etl",
16
+ "connectors"
17
+ ]
18
+ },
14
19
  docs: {
15
20
  rootDocId: "docs.examples.integration-hub",
16
21
  goalDocId: "docs.examples.integration-hub.goal",
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'integration-hub',\n title: 'Integration Hub',\n summary:\n 'Provider-agnostic integration center with connectors, connections, field mappings, and sync logs.',\n tags: ['integrations', 'sync', 'etl', 'connectors'],\n kind: 'template',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.integration-hub',\n goalDocId: 'docs.examples.integration-hub.goal',\n usageDocId: 'docs.examples.integration-hub.usage',\n constraintsDocId: 'docs.examples.integration-hub.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.integration-hub',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAgB;EAAQ;EAAO;EAAa;CACnD,MAAM;CACN,YAAY;CACZ,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
1
+ {"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'integration-hub',\n version: '1.0.0',\n title: 'Integration Hub',\n description:\n 'Provider-agnostic integration center with connectors, connections, field mappings, and sync logs.',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['integrations', 'sync', 'etl', 'connectors'],\n },\n docs: {\n rootDocId: 'docs.examples.integration-hub',\n goalDocId: 'docs.examples.integration-hub.goal',\n usageDocId: 'docs.examples.integration-hub.usage',\n constraintsDocId: 'docs.examples.integration-hub.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.integration-hub',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAgB;GAAQ;GAAO;GAAa;EACpD;CACD,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
@@ -1,10 +1,10 @@
1
- import * as _contractspec_lib_schema81 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema104 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/integration/integration.enum.d.ts
4
4
  /**
5
5
  * Integration status enum.
6
6
  */
7
- declare const IntegrationStatusEnum: _contractspec_lib_schema81.EnumType<[string, string, string, string, string]>;
7
+ declare const IntegrationStatusEnum: _contractspec_lib_schema104.EnumType<[string, string, string, string, string]>;
8
8
  //#endregion
9
9
  export { IntegrationStatusEnum };
10
10
  //# sourceMappingURL=integration.enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"integration.enum.d.ts","names":[],"sources":["../../src/integration/integration.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,qBAMX,EAAA,0BAAA,CANgC,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"integration.enum.d.ts","names":[],"sources":["../../src/integration/integration.enum.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,qBAMX,EAAA,2BAAA,CANgC,QAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA"}
@@ -1,95 +1,95 @@
1
1
  import * as _contractspec_lib_contracts9 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema97 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_schema81 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/integration/integration.operations.d.ts
5
5
  /**
6
6
  * Create a new integration.
7
7
  */
8
- declare const CreateIntegrationContract: _contractspec_lib_contracts9.OperationSpec<_contractspec_lib_schema97.SchemaModel<{
8
+ declare const CreateIntegrationContract: _contractspec_lib_contracts9.OperationSpec<_contractspec_lib_schema81.SchemaModel<{
9
9
  name: {
10
- type: _contractspec_lib_schema97.FieldType<string, string>;
10
+ type: _contractspec_lib_schema81.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  slug: {
14
- type: _contractspec_lib_schema97.FieldType<string, string>;
14
+ type: _contractspec_lib_schema81.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  description: {
18
- type: _contractspec_lib_schema97.FieldType<string, string>;
18
+ type: _contractspec_lib_schema81.FieldType<string, string>;
19
19
  isOptional: true;
20
20
  };
21
21
  provider: {
22
- type: _contractspec_lib_schema97.FieldType<string, string>;
22
+ type: _contractspec_lib_schema81.FieldType<string, string>;
23
23
  isOptional: false;
24
24
  };
25
25
  config: {
26
- type: _contractspec_lib_schema97.FieldType<unknown, unknown>;
26
+ type: _contractspec_lib_schema81.FieldType<unknown, unknown>;
27
27
  isOptional: true;
28
28
  };
29
29
  featureFlagKey: {
30
- type: _contractspec_lib_schema97.FieldType<string, string>;
30
+ type: _contractspec_lib_schema81.FieldType<string, string>;
31
31
  isOptional: true;
32
32
  };
33
- }>, _contractspec_lib_schema97.SchemaModel<{
33
+ }>, _contractspec_lib_schema81.SchemaModel<{
34
34
  id: {
35
- type: _contractspec_lib_schema97.FieldType<string, string>;
35
+ type: _contractspec_lib_schema81.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  name: {
39
- type: _contractspec_lib_schema97.FieldType<string, string>;
39
+ type: _contractspec_lib_schema81.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  slug: {
43
- type: _contractspec_lib_schema97.FieldType<string, string>;
43
+ type: _contractspec_lib_schema81.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  description: {
47
- type: _contractspec_lib_schema97.FieldType<string, string>;
47
+ type: _contractspec_lib_schema81.FieldType<string, string>;
48
48
  isOptional: true;
49
49
  };
50
50
  provider: {
51
- type: _contractspec_lib_schema97.FieldType<string, string>;
51
+ type: _contractspec_lib_schema81.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  status: {
55
- type: _contractspec_lib_schema97.EnumType<[string, string, string, string, string]>;
55
+ type: _contractspec_lib_schema81.EnumType<[string, string, string, string, string]>;
56
56
  isOptional: false;
57
57
  };
58
58
  createdAt: {
59
- type: _contractspec_lib_schema97.FieldType<Date, string>;
59
+ type: _contractspec_lib_schema81.FieldType<Date, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  }>, {
63
63
  key: string;
64
- version: number;
64
+ version: string;
65
65
  when: string;
66
- payload: _contractspec_lib_schema97.SchemaModel<{
66
+ payload: _contractspec_lib_schema81.SchemaModel<{
67
67
  id: {
68
- type: _contractspec_lib_schema97.FieldType<string, string>;
68
+ type: _contractspec_lib_schema81.FieldType<string, string>;
69
69
  isOptional: false;
70
70
  };
71
71
  name: {
72
- type: _contractspec_lib_schema97.FieldType<string, string>;
72
+ type: _contractspec_lib_schema81.FieldType<string, string>;
73
73
  isOptional: false;
74
74
  };
75
75
  slug: {
76
- type: _contractspec_lib_schema97.FieldType<string, string>;
76
+ type: _contractspec_lib_schema81.FieldType<string, string>;
77
77
  isOptional: false;
78
78
  };
79
79
  description: {
80
- type: _contractspec_lib_schema97.FieldType<string, string>;
80
+ type: _contractspec_lib_schema81.FieldType<string, string>;
81
81
  isOptional: true;
82
82
  };
83
83
  provider: {
84
- type: _contractspec_lib_schema97.FieldType<string, string>;
84
+ type: _contractspec_lib_schema81.FieldType<string, string>;
85
85
  isOptional: false;
86
86
  };
87
87
  status: {
88
- type: _contractspec_lib_schema97.EnumType<[string, string, string, string, string]>;
88
+ type: _contractspec_lib_schema81.EnumType<[string, string, string, string, string]>;
89
89
  isOptional: false;
90
90
  };
91
91
  createdAt: {
92
- type: _contractspec_lib_schema97.FieldType<Date, string>;
92
+ type: _contractspec_lib_schema81.FieldType<Date, string>;
93
93
  isOptional: false;
94
94
  };
95
95
  }>;
@@ -8,7 +8,7 @@ import { defineCommand } from "@contractspec/lib.contracts/operations";
8
8
  const CreateIntegrationContract = defineCommand({
9
9
  meta: {
10
10
  key: "integration.create",
11
- version: 1,
11
+ version: "1.0.0",
12
12
  stability: "stable",
13
13
  owners: ["@example.integration-hub"],
14
14
  tags: ["integration", "create"],
@@ -24,7 +24,7 @@ const CreateIntegrationContract = defineCommand({
24
24
  sideEffects: {
25
25
  emits: [{
26
26
  key: "integration.created",
27
- version: 1,
27
+ version: "1.0.0",
28
28
  when: "Integration created",
29
29
  payload: IntegrationModel
30
30
  }],
@@ -1 +1 @@
1
- {"version":3,"file":"integration.operations.js","names":[],"sources":["../../src/integration/integration.operations.ts"],"sourcesContent":["import { defineCommand } from '@contractspec/lib.contracts/operations';\nimport {\n CreateIntegrationInputModel,\n IntegrationModel,\n} from './integration.schema';\n\n/**\n * Create a new integration.\n */\nexport const CreateIntegrationContract = defineCommand({\n meta: {\n key: 'integration.create',\n version: 1,\n stability: 'stable',\n owners: ['@example.integration-hub'],\n tags: ['integration', 'create'],\n description: 'Create a new integration.',\n goal: 'Allow users to set up integrations with external systems.',\n context: 'Integration setup.',\n },\n io: { input: CreateIntegrationInputModel, output: IntegrationModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.created',\n version: 1,\n when: 'Integration created',\n payload: IntegrationModel,\n },\n ],\n audit: ['integration.created'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'create-integration-happy-path',\n given: ['User is admin'],\n when: ['User defines new integration type'],\n then: [\n 'Integration definition is created',\n 'IntegrationCreated event is emitted',\n ],\n },\n ],\n examples: [\n {\n key: 'create-slack',\n input: { name: 'Slack', category: 'communication', authType: 'oauth2' },\n output: { id: 'slack', status: 'active' },\n },\n ],\n },\n});\n"],"mappings":";;;;;;;AASA,MAAa,4BAA4B,cAAc;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,2BAA2B;EACpC,MAAM,CAAC,eAAe,SAAS;EAC/B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAA6B,QAAQ;EAAkB;CACpE,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,KAAK;GACL,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,sBAAsB;EAC/B;CACD,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,gBAAgB;GACxB,MAAM,CAAC,oCAAoC;GAC3C,MAAM,CACJ,qCACA,sCACD;GACF,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,MAAM;IAAS,UAAU;IAAiB,UAAU;IAAU;GACvE,QAAQ;IAAE,IAAI;IAAS,QAAQ;IAAU;GAC1C,CACF;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"integration.operations.js","names":[],"sources":["../../src/integration/integration.operations.ts"],"sourcesContent":["import { defineCommand } from '@contractspec/lib.contracts/operations';\nimport {\n CreateIntegrationInputModel,\n IntegrationModel,\n} from './integration.schema';\n\n/**\n * Create a new integration.\n */\nexport const CreateIntegrationContract = defineCommand({\n meta: {\n key: 'integration.create',\n version: '1.0.0',\n stability: 'stable',\n owners: ['@example.integration-hub'],\n tags: ['integration', 'create'],\n description: 'Create a new integration.',\n goal: 'Allow users to set up integrations with external systems.',\n context: 'Integration setup.',\n },\n io: { input: CreateIntegrationInputModel, output: IntegrationModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.created',\n version: '1.0.0',\n when: 'Integration created',\n payload: IntegrationModel,\n },\n ],\n audit: ['integration.created'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'create-integration-happy-path',\n given: ['User is admin'],\n when: ['User defines new integration type'],\n then: [\n 'Integration definition is created',\n 'IntegrationCreated event is emitted',\n ],\n },\n ],\n examples: [\n {\n key: 'create-slack',\n input: { name: 'Slack', category: 'communication', authType: 'oauth2' },\n output: { id: 'slack', status: 'active' },\n },\n ],\n },\n});\n"],"mappings":";;;;;;;AASA,MAAa,4BAA4B,cAAc;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,2BAA2B;EACpC,MAAM,CAAC,eAAe,SAAS;EAC/B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAA6B,QAAQ;EAAkB;CACpE,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,KAAK;GACL,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,sBAAsB;EAC/B;CACD,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,gBAAgB;GACxB,MAAM,CAAC,oCAAoC;GAC3C,MAAM,CACJ,qCACA,sCACD;GACF,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,MAAM;IAAS,UAAU;IAAiB,UAAU;IAAU;GACvE,QAAQ;IAAE,IAAI;IAAS,QAAQ;IAAU;GAC1C,CACF;EACF;CACF,CAAC"}
@@ -5,7 +5,7 @@ import { StabilityEnum } from "@contractspec/lib.contracts";
5
5
  const IntegrationListPresentation = {
6
6
  meta: {
7
7
  key: "integration.list",
8
- version: 1,
8
+ version: "1.0.0",
9
9
  title: "Integration List",
10
10
  description: "List of available integrations",
11
11
  domain: "integration",
@@ -27,7 +27,7 @@ const IntegrationListPresentation = {
27
27
  const IntegrationDetailPresentation = {
28
28
  meta: {
29
29
  key: "integration.detail",
30
- version: 1,
30
+ version: "1.0.0",
31
31
  title: "Integration Details",
32
32
  description: "Detailed view of an integration",
33
33
  domain: "integration",
@@ -49,7 +49,7 @@ const IntegrationDetailPresentation = {
49
49
  const IntegrationHealthPresentation = {
50
50
  meta: {
51
51
  key: "integration.health",
52
- version: 1,
52
+ version: "1.0.0",
53
53
  title: "Integration Health",
54
54
  description: "Integration health monitoring dashboard",
55
55
  domain: "integration",
@@ -1 +1 @@
1
- {"version":3,"file":"integration.presentation.js","names":["IntegrationListPresentation: PresentationSpec","IntegrationDetailPresentation: PresentationSpec","IntegrationHealthPresentation: PresentationSpec"],"sources":["../../src/integration/integration.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport { IntegrationModel } from './integration.schema';\n\nexport const IntegrationListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.list',\n version: 1,\n title: 'Integration List',\n description: 'List of available integrations',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Show users available integrations they can connect to.',\n context: 'The marketplace of integrations within the hub.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'IntegrationList',\n props: IntegrationModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.enabled'],\n },\n};\n\nexport const IntegrationDetailPresentation: PresentationSpec = {\n meta: {\n key: 'integration.detail',\n version: 1,\n title: 'Integration Details',\n description: 'Detailed view of an integration',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Show capabilities and documentation for a specific integration.',\n context: 'Integration showcase and support page.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'IntegrationDetail',\n props: IntegrationModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.enabled'],\n },\n};\n\nexport const IntegrationHealthPresentation: PresentationSpec = {\n meta: {\n key: 'integration.health',\n version: 1,\n title: 'Integration Health',\n description: 'Integration health monitoring dashboard',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'health', 'monitoring'],\n stability: StabilityEnum.Experimental,\n goal: 'Monitor connectivity and error rates for active integrations.',\n context: 'Operations dashboard for integration hub health.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'IntegrationHealth',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.monitoring.enabled'],\n },\n};\n"],"mappings":";;;;AAIA,MAAaA,8BAAgD;CAC3D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM,CAAC,eAAe,OAAO;EAC7B,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,sBAAsB,EAC/B;CACF;AAED,MAAaC,gCAAkD;CAC7D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM,CAAC,eAAe,SAAS;EAC/B,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,sBAAsB,EAC/B;CACF;AAED,MAAaC,gCAAkD;CAC7D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAa;EAC7C,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,iCAAiC,EAC1C;CACF"}
1
+ {"version":3,"file":"integration.presentation.js","names":["IntegrationListPresentation: PresentationSpec","IntegrationDetailPresentation: PresentationSpec","IntegrationHealthPresentation: PresentationSpec"],"sources":["../../src/integration/integration.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport { IntegrationModel } from './integration.schema';\n\nexport const IntegrationListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.list',\n version: '1.0.0',\n title: 'Integration List',\n description: 'List of available integrations',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Show users available integrations they can connect to.',\n context: 'The marketplace of integrations within the hub.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'IntegrationList',\n props: IntegrationModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.enabled'],\n },\n};\n\nexport const IntegrationDetailPresentation: PresentationSpec = {\n meta: {\n key: 'integration.detail',\n version: '1.0.0',\n title: 'Integration Details',\n description: 'Detailed view of an integration',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Show capabilities and documentation for a specific integration.',\n context: 'Integration showcase and support page.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'IntegrationDetail',\n props: IntegrationModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.enabled'],\n },\n};\n\nexport const IntegrationHealthPresentation: PresentationSpec = {\n meta: {\n key: 'integration.health',\n version: '1.0.0',\n title: 'Integration Health',\n description: 'Integration health monitoring dashboard',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'health', 'monitoring'],\n stability: StabilityEnum.Experimental,\n goal: 'Monitor connectivity and error rates for active integrations.',\n context: 'Operations dashboard for integration hub health.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'IntegrationHealth',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.monitoring.enabled'],\n },\n};\n"],"mappings":";;;;AAIA,MAAaA,8BAAgD;CAC3D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM,CAAC,eAAe,OAAO;EAC7B,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,sBAAsB,EAC/B;CACF;AAED,MAAaC,gCAAkD;CAC7D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM,CAAC,eAAe,SAAS;EAC/B,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,sBAAsB,EAC/B;CACF;AAED,MAAaC,gCAAkD;CAC7D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAU;GAAa;EAC7C,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,iCAAiC,EAC1C;CACF"}
@@ -1,65 +1,65 @@
1
- import * as _contractspec_lib_schema82 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema105 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/integration/integration.schema.d.ts
4
4
  /**
5
5
  * An integration with an external system.
6
6
  */
7
- declare const IntegrationModel: _contractspec_lib_schema82.SchemaModel<{
7
+ declare const IntegrationModel: _contractspec_lib_schema105.SchemaModel<{
8
8
  id: {
9
- type: _contractspec_lib_schema82.FieldType<string, string>;
9
+ type: _contractspec_lib_schema105.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  name: {
13
- type: _contractspec_lib_schema82.FieldType<string, string>;
13
+ type: _contractspec_lib_schema105.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  slug: {
17
- type: _contractspec_lib_schema82.FieldType<string, string>;
17
+ type: _contractspec_lib_schema105.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  description: {
21
- type: _contractspec_lib_schema82.FieldType<string, string>;
21
+ type: _contractspec_lib_schema105.FieldType<string, string>;
22
22
  isOptional: true;
23
23
  };
24
24
  provider: {
25
- type: _contractspec_lib_schema82.FieldType<string, string>;
25
+ type: _contractspec_lib_schema105.FieldType<string, string>;
26
26
  isOptional: false;
27
27
  };
28
28
  status: {
29
- type: _contractspec_lib_schema82.EnumType<[string, string, string, string, string]>;
29
+ type: _contractspec_lib_schema105.EnumType<[string, string, string, string, string]>;
30
30
  isOptional: false;
31
31
  };
32
32
  createdAt: {
33
- type: _contractspec_lib_schema82.FieldType<Date, string>;
33
+ type: _contractspec_lib_schema105.FieldType<Date, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  }>;
37
37
  /**
38
38
  * Input for creating an integration.
39
39
  */
40
- declare const CreateIntegrationInputModel: _contractspec_lib_schema82.SchemaModel<{
40
+ declare const CreateIntegrationInputModel: _contractspec_lib_schema105.SchemaModel<{
41
41
  name: {
42
- type: _contractspec_lib_schema82.FieldType<string, string>;
42
+ type: _contractspec_lib_schema105.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  slug: {
46
- type: _contractspec_lib_schema82.FieldType<string, string>;
46
+ type: _contractspec_lib_schema105.FieldType<string, string>;
47
47
  isOptional: false;
48
48
  };
49
49
  description: {
50
- type: _contractspec_lib_schema82.FieldType<string, string>;
50
+ type: _contractspec_lib_schema105.FieldType<string, string>;
51
51
  isOptional: true;
52
52
  };
53
53
  provider: {
54
- type: _contractspec_lib_schema82.FieldType<string, string>;
54
+ type: _contractspec_lib_schema105.FieldType<string, string>;
55
55
  isOptional: false;
56
56
  };
57
57
  config: {
58
- type: _contractspec_lib_schema82.FieldType<unknown, unknown>;
58
+ type: _contractspec_lib_schema105.FieldType<unknown, unknown>;
59
59
  isOptional: true;
60
60
  };
61
61
  featureFlagKey: {
62
- type: _contractspec_lib_schema82.FieldType<string, string>;
62
+ type: _contractspec_lib_schema105.FieldType<string, string>;
63
63
  isOptional: true;
64
64
  };
65
65
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"integration.schema.d.ts","names":[],"sources":["../../src/integration/integration.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAMa,cAAA,gBAWX,6BAX2B,WAW3B,CAAA;EAAA,EAAA,EAAA;UAAA,0BAAA,CAAA;;;;;;;;IAX2B,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAgBhB,UAAA,EAAA,KAAA;EAaX,CAAA;;;;;;8CAbsC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;cAA3B,wDAA2B;;UAatC,0BAAA,CAAA"}
1
+ {"version":3,"file":"integration.schema.d.ts","names":[],"sources":["../../src/integration/integration.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAMa,cAAA,gBAWX,8BAX2B,WAW3B,CAAA;EAAA,EAAA,EAAA;UAAA,2BAAA,CAAA;;;;;;;;IAX2B,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAgBhB,UAAA,EAAA,KAAA;EAaX,CAAA;;;;;;+CAbsC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;cAA3B,yDAA2B;;UAatC,2BAAA,CAAA"}