@contractspec/example.integration-hub 1.44.1 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connection/connection.enum.d.ts +2 -2
- package/dist/connection/connection.enum.d.ts.map +1 -1
- package/dist/connection/connection.operation.d.ts +28 -28
- package/dist/connection/connection.operation.d.ts.map +1 -1
- package/dist/connection/connection.operation.js +2 -2
- package/dist/connection/connection.operation.js.map +1 -1
- package/dist/connection/connection.presentation.js +2 -2
- package/dist/connection/connection.presentation.js.map +1 -1
- package/dist/connection/connection.schema.d.ts +16 -16
- package/dist/connection/connection.schema.d.ts.map +1 -1
- package/dist/events.d.ts +43 -43
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +9 -9
- package/dist/events.js.map +1 -1
- package/dist/example.d.ts +3 -36
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +16 -11
- package/dist/example.js.map +1 -1
- package/dist/integration/integration.enum.d.ts +2 -2
- package/dist/integration/integration.operations.d.ts +26 -26
- package/dist/integration/integration.operations.js +2 -2
- package/dist/integration/integration.operations.js.map +1 -1
- package/dist/integration/integration.presentation.js +3 -3
- package/dist/integration/integration.presentation.js.map +1 -1
- package/dist/integration/integration.schema.d.ts +16 -16
- package/dist/integration-hub.feature.js +48 -48
- package/dist/integration-hub.feature.js.map +1 -1
- package/dist/sync/sync.enum.d.ts +4 -4
- package/dist/sync/sync.operations.d.ts +129 -129
- package/dist/sync/sync.operations.d.ts.map +1 -1
- package/dist/sync/sync.operations.js +7 -7
- package/dist/sync/sync.operations.js.map +1 -1
- package/dist/sync/sync.presentation.js +6 -6
- package/dist/sync/sync.presentation.js.map +1 -1
- package/dist/sync/sync.schema.d.ts +85 -85
- package/package.json +12 -12
|
@@ -9,7 +9,7 @@ const OWNERS = ["@example.integration-hub"];
|
|
|
9
9
|
const CreateSyncConfigContract = defineCommand({
|
|
10
10
|
meta: {
|
|
11
11
|
key: "integration.syncConfig.create",
|
|
12
|
-
version: 1,
|
|
12
|
+
version: "1.0.0",
|
|
13
13
|
stability: "stable",
|
|
14
14
|
owners: [...OWNERS],
|
|
15
15
|
tags: [
|
|
@@ -30,7 +30,7 @@ const CreateSyncConfigContract = defineCommand({
|
|
|
30
30
|
sideEffects: {
|
|
31
31
|
emits: [{
|
|
32
32
|
key: "integration.syncConfig.created",
|
|
33
|
-
version: 1,
|
|
33
|
+
version: "1.0.0",
|
|
34
34
|
when: "Sync config created",
|
|
35
35
|
payload: SyncConfigModel
|
|
36
36
|
}],
|
|
@@ -63,7 +63,7 @@ const CreateSyncConfigContract = defineCommand({
|
|
|
63
63
|
const AddFieldMappingContract = defineCommand({
|
|
64
64
|
meta: {
|
|
65
65
|
key: "integration.fieldMapping.add",
|
|
66
|
-
version: 1,
|
|
66
|
+
version: "1.0.0",
|
|
67
67
|
stability: "stable",
|
|
68
68
|
owners: [...OWNERS],
|
|
69
69
|
tags: [
|
|
@@ -82,7 +82,7 @@ const AddFieldMappingContract = defineCommand({
|
|
|
82
82
|
policy: { auth: "user" },
|
|
83
83
|
sideEffects: { emits: [{
|
|
84
84
|
key: "integration.fieldMapping.added",
|
|
85
|
-
version: 1,
|
|
85
|
+
version: "1.0.0",
|
|
86
86
|
when: "Mapping added",
|
|
87
87
|
payload: FieldMappingModel
|
|
88
88
|
}] },
|
|
@@ -113,7 +113,7 @@ const AddFieldMappingContract = defineCommand({
|
|
|
113
113
|
const TriggerSyncContract = defineCommand({
|
|
114
114
|
meta: {
|
|
115
115
|
key: "integration.sync.trigger",
|
|
116
|
-
version: 1,
|
|
116
|
+
version: "1.0.0",
|
|
117
117
|
stability: "stable",
|
|
118
118
|
owners: [...OWNERS],
|
|
119
119
|
tags: [
|
|
@@ -133,7 +133,7 @@ const TriggerSyncContract = defineCommand({
|
|
|
133
133
|
sideEffects: {
|
|
134
134
|
emits: [{
|
|
135
135
|
key: "integration.sync.started",
|
|
136
|
-
version: 1,
|
|
136
|
+
version: "1.0.0",
|
|
137
137
|
when: "Sync starts",
|
|
138
138
|
payload: SyncRunModel
|
|
139
139
|
}],
|
|
@@ -162,7 +162,7 @@ const TriggerSyncContract = defineCommand({
|
|
|
162
162
|
const ListSyncRunsContract = defineQuery({
|
|
163
163
|
meta: {
|
|
164
164
|
key: "integration.syncRun.list",
|
|
165
|
-
version: 1,
|
|
165
|
+
version: "1.0.0",
|
|
166
166
|
stability: "stable",
|
|
167
167
|
owners: [...OWNERS],
|
|
168
168
|
tags: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.operations.js","names":[],"sources":["../../src/sync/sync.operations.ts"],"sourcesContent":["import {\n defineCommand,\n defineQuery,\n} from '@contractspec/lib.contracts/operations';\nimport {\n SyncConfigModel,\n SyncRunModel,\n FieldMappingModel,\n CreateSyncConfigInputModel,\n AddFieldMappingInputModel,\n TriggerSyncInputModel,\n ListSyncRunsInputModel,\n ListSyncRunsOutputModel,\n} from './sync.schema';\n\nconst OWNERS = ['@example.integration-hub'] as const;\n\n/**\n * Create a sync configuration.\n */\nexport const CreateSyncConfigContract = defineCommand({\n meta: {\n key: 'integration.syncConfig.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'config', 'create'],\n description: 'Create a sync configuration.',\n goal: 'Define how data should be synchronized.',\n context: 'Sync setup.',\n },\n io: { input: CreateSyncConfigInputModel, output: SyncConfigModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.syncConfig.created',\n version: 1,\n when: 'Sync config created',\n payload: SyncConfigModel,\n },\n ],\n audit: ['integration.syncConfig.created'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'create-sync-happy-path',\n given: ['User is authenticated'],\n when: ['User creates sync config'],\n then: ['Sync config is created', 'SyncConfigCreated event is emitted'],\n },\n ],\n examples: [\n {\n key: 'create-contact-sync',\n input: {\n name: 'Contacts Sync',\n sourceConnectionId: 'conn-1',\n targetConnectionId: 'conn-2',\n },\n output: { id: 'sync-123', status: 'active' },\n },\n ],\n },\n});\n\n/**\n * Add a field mapping to a sync config.\n */\nexport const AddFieldMappingContract = defineCommand({\n meta: {\n key: 'integration.fieldMapping.add',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'mapping', 'field'],\n description: 'Add a field mapping to a sync config.',\n goal: 'Map fields between systems.',\n context: 'Mapping configuration.',\n },\n io: { input: AddFieldMappingInputModel, output: FieldMappingModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.fieldMapping.added',\n version: 1,\n when: 'Mapping added',\n payload: FieldMappingModel,\n },\n ],\n },\n acceptance: {\n scenarios: [\n {\n key: 'add-mapping-happy-path',\n given: ['Sync config exists'],\n when: ['User adds field mapping'],\n then: ['Mapping is added', 'FieldMappingAdded event is emitted'],\n },\n ],\n examples: [\n {\n key: 'map-email',\n input: {\n syncConfigId: 'sync-123',\n sourceField: 'email',\n targetField: 'user_email',\n },\n output: { id: 'map-456', type: 'string' },\n },\n ],\n },\n});\n\n/**\n * Trigger a manual sync.\n */\nexport const TriggerSyncContract = defineCommand({\n meta: {\n key: 'integration.sync.trigger',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'trigger'],\n description: 'Trigger a manual sync.',\n goal: 'Start data synchronization.',\n context: 'Manual sync or webhook trigger.',\n },\n io: { input: TriggerSyncInputModel, output: SyncRunModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.sync.started',\n version: 1,\n when: 'Sync starts',\n payload: SyncRunModel,\n },\n ],\n audit: ['integration.sync.triggered'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'trigger-sync-happy-path',\n given: ['Sync config exists'],\n when: ['User triggers sync'],\n then: ['Sync run starts', 'SyncStarted event is emitted'],\n },\n ],\n examples: [\n {\n key: 'manual-trigger',\n input: { syncConfigId: 'sync-123' },\n output: { id: 'run-789', status: 'pending' },\n },\n ],\n },\n});\n\n/**\n * List sync run history.\n */\nexport const ListSyncRunsContract = defineQuery({\n meta: {\n key: 'integration.syncRun.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'run', 'list'],\n description: 'List sync run history.',\n goal: 'View sync history and status.',\n context: 'Sync monitoring.',\n },\n io: { input: ListSyncRunsInputModel, output: ListSyncRunsOutputModel },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'list-runs-happy-path',\n given: ['User has access to syncs'],\n when: ['User lists sync runs'],\n then: ['List of runs is returned'],\n },\n ],\n examples: [\n {\n key: 'list-recent',\n input: { limit: 10 },\n output: { items: [], total: 50 },\n },\n ],\n },\n});\n"],"mappings":";;;;AAeA,MAAM,SAAS,CAAC,2BAA2B;;;;AAK3C,MAAa,2BAA2B,cAAc;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAS;EACjD,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAA4B,QAAQ;EAAiB;CAClE,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,KAAK;GACL,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,iCAAiC;EAC1C;CACD,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,wBAAwB;GAChC,MAAM,CAAC,2BAA2B;GAClC,MAAM,CAAC,0BAA0B,qCAAqC;GACvE,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IACL,MAAM;IACN,oBAAoB;IACpB,oBAAoB;IACrB;GACD,QAAQ;IAAE,IAAI;IAAY,QAAQ;IAAU;GAC7C,CACF;EACF;CACF,CAAC;;;;AAKF,MAAa,0BAA0B,cAAc;CACnD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAA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AW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAQ;GAAO;GAAO;EAC5C,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAwB,QAAQ;EAAyB;CACtE,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,2BAA2B;GACnC,MAAM,CAAC,uBAAuB;GAC9B,MAAM,CAAC,2BAA2B;GACnC,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO,EAAE,OAAO,IAAI;GACpB,QAAQ;IAAE,OAAO,EAAE;IAAE,OAAO;IAAI;GACjC,CACF;EACF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"sync.operations.js","names":[],"sources":["../../src/sync/sync.operations.ts"],"sourcesContent":["import {\n defineCommand,\n defineQuery,\n} from '@contractspec/lib.contracts/operations';\nimport {\n SyncConfigModel,\n SyncRunModel,\n FieldMappingModel,\n CreateSyncConfigInputModel,\n AddFieldMappingInputModel,\n TriggerSyncInputModel,\n ListSyncRunsInputModel,\n ListSyncRunsOutputModel,\n} from './sync.schema';\n\nconst OWNERS = ['@example.integration-hub'] as const;\n\n/**\n * Create a sync configuration.\n */\nexport const CreateSyncConfigContract = defineCommand({\n meta: {\n key: 'integration.syncConfig.create',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'config', 'create'],\n description: 'Create a sync configuration.',\n goal: 'Define how data should be synchronized.',\n context: 'Sync setup.',\n },\n io: { input: CreateSyncConfigInputModel, output: SyncConfigModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.syncConfig.created',\n version: '1.0.0',\n when: 'Sync config created',\n payload: SyncConfigModel,\n },\n ],\n audit: ['integration.syncConfig.created'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'create-sync-happy-path',\n given: ['User is authenticated'],\n when: ['User creates sync config'],\n then: ['Sync config is created', 'SyncConfigCreated event is emitted'],\n },\n ],\n examples: [\n {\n key: 'create-contact-sync',\n input: {\n name: 'Contacts Sync',\n sourceConnectionId: 'conn-1',\n targetConnectionId: 'conn-2',\n },\n output: { id: 'sync-123', status: 'active' },\n },\n ],\n },\n});\n\n/**\n * Add a field mapping to a sync config.\n */\nexport const AddFieldMappingContract = defineCommand({\n meta: {\n key: 'integration.fieldMapping.add',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'mapping', 'field'],\n description: 'Add a field mapping to a sync config.',\n goal: 'Map fields between systems.',\n context: 'Mapping configuration.',\n },\n io: { input: AddFieldMappingInputModel, output: FieldMappingModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.fieldMapping.added',\n version: '1.0.0',\n when: 'Mapping added',\n payload: FieldMappingModel,\n },\n ],\n },\n acceptance: {\n scenarios: [\n {\n key: 'add-mapping-happy-path',\n given: ['Sync config exists'],\n when: ['User adds field mapping'],\n then: ['Mapping is added', 'FieldMappingAdded event is emitted'],\n },\n ],\n examples: [\n {\n key: 'map-email',\n input: {\n syncConfigId: 'sync-123',\n sourceField: 'email',\n targetField: 'user_email',\n },\n output: { id: 'map-456', type: 'string' },\n },\n ],\n },\n});\n\n/**\n * Trigger a manual sync.\n */\nexport const TriggerSyncContract = defineCommand({\n meta: {\n key: 'integration.sync.trigger',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'trigger'],\n description: 'Trigger a manual sync.',\n goal: 'Start data synchronization.',\n context: 'Manual sync or webhook trigger.',\n },\n io: { input: TriggerSyncInputModel, output: SyncRunModel },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'integration.sync.started',\n version: '1.0.0',\n when: 'Sync starts',\n payload: SyncRunModel,\n },\n ],\n audit: ['integration.sync.triggered'],\n },\n acceptance: {\n scenarios: [\n {\n key: 'trigger-sync-happy-path',\n given: ['Sync config exists'],\n when: ['User triggers sync'],\n then: ['Sync run starts', 'SyncStarted event is emitted'],\n },\n ],\n examples: [\n {\n key: 'manual-trigger',\n input: { syncConfigId: 'sync-123' },\n output: { id: 'run-789', status: 'pending' },\n },\n ],\n },\n});\n\n/**\n * List sync run history.\n */\nexport const ListSyncRunsContract = defineQuery({\n meta: {\n key: 'integration.syncRun.list',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['integration', 'sync', 'run', 'list'],\n description: 'List sync run history.',\n goal: 'View sync history and status.',\n context: 'Sync monitoring.',\n },\n io: { input: ListSyncRunsInputModel, output: ListSyncRunsOutputModel },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'list-runs-happy-path',\n given: ['User has access to syncs'],\n when: ['User lists sync runs'],\n then: ['List of runs is returned'],\n },\n ],\n examples: [\n {\n key: 'list-recent',\n input: { limit: 10 },\n output: { items: [], total: 50 },\n },\n ],\n },\n});\n"],"mappings":";;;;AAeA,MAAM,SAAS,CAAC,2BAA2B;;;;AAK3C,MAAa,2BAA2B,cAAc;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAS;EACjD,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAA4B,QAAQ;EAAiB;CAClE,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GACE,KAAK;GACL,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,iCAAiC;EAC1C;CACD,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,wBAAwB;GAChC,MAAM,CAAC,2BAA2B;GAClC,MAAM,CAAC,0BAA0B,qCAAqC;GACvE,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IACL,MAAM;IACN,oBAAoB;IACpB,oBAAoB;IACrB;GAC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L,OAAO,EAAE,cAAc,YAAY;GACnC,QAAQ;IAAE,IAAI;IAAW,QAAQ;IAAW;GAC7C,CACF;EACF;CACF,CAAC;;;;AAKF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAe;GAAQ;GAAO;GAAO;EAC5C,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAwB,QAAQ;EAAyB;CACtE,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,2BAA2B;GACnC,MAAM,CAAC,uBAAuB;GAC9B,MAAM,CAAC,2BAA2B;GACnC,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO,EAAE,OAAO,IAAI;GACpB,QAAQ;IAAE,OAAO,EAAE;IAAE,OAAO;IAAI;GACjC,CACF;EACF;CACF,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { StabilityEnum } from "@contractspec/lib.contracts";
|
|
|
5
5
|
const SyncConfigListPresentation = {
|
|
6
6
|
meta: {
|
|
7
7
|
key: "integration.syncConfig.list",
|
|
8
|
-
version: 1,
|
|
8
|
+
version: "1.0.0",
|
|
9
9
|
title: "Sync Config List",
|
|
10
10
|
description: "List of sync configurations",
|
|
11
11
|
domain: "integration",
|
|
@@ -32,7 +32,7 @@ const SyncConfigListPresentation = {
|
|
|
32
32
|
const SyncConfigEditorPresentation = {
|
|
33
33
|
meta: {
|
|
34
34
|
key: "integration.syncConfig.editor",
|
|
35
|
-
version: 1,
|
|
35
|
+
version: "1.0.0",
|
|
36
36
|
title: "Sync Config Editor",
|
|
37
37
|
description: "Editor for sync configuration settings",
|
|
38
38
|
domain: "integration",
|
|
@@ -59,7 +59,7 @@ const SyncConfigEditorPresentation = {
|
|
|
59
59
|
const FieldMappingEditorPresentation = {
|
|
60
60
|
meta: {
|
|
61
61
|
key: "integration.fieldMapping.editor",
|
|
62
|
-
version: 1,
|
|
62
|
+
version: "1.0.0",
|
|
63
63
|
title: "Field Mapping Editor",
|
|
64
64
|
description: "Visual field mapping editor",
|
|
65
65
|
domain: "integration",
|
|
@@ -85,7 +85,7 @@ const FieldMappingEditorPresentation = {
|
|
|
85
85
|
const SyncRunListPresentation = {
|
|
86
86
|
meta: {
|
|
87
87
|
key: "integration.syncRun.list",
|
|
88
|
-
version: 1,
|
|
88
|
+
version: "1.0.0",
|
|
89
89
|
title: "Sync Run History",
|
|
90
90
|
description: "History of sync runs",
|
|
91
91
|
domain: "integration",
|
|
@@ -112,7 +112,7 @@ const SyncRunListPresentation = {
|
|
|
112
112
|
const SyncRunDetailPresentation = {
|
|
113
113
|
meta: {
|
|
114
114
|
key: "integration.syncRun.detail",
|
|
115
|
-
version: 1,
|
|
115
|
+
version: "1.0.0",
|
|
116
116
|
title: "Sync Run Details",
|
|
117
117
|
description: "Detailed view of a sync run with logs",
|
|
118
118
|
domain: "integration",
|
|
@@ -139,7 +139,7 @@ const SyncRunDetailPresentation = {
|
|
|
139
139
|
const SyncActivityPresentation = {
|
|
140
140
|
meta: {
|
|
141
141
|
key: "integration.sync.activity",
|
|
142
|
-
version: 1,
|
|
142
|
+
version: "1.0.0",
|
|
143
143
|
title: "Sync Activity Monitor",
|
|
144
144
|
description: "Real-time sync activity monitor",
|
|
145
145
|
domain: "integration",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.presentation.js","names":["SyncConfigListPresentation: PresentationSpec","SyncConfigEditorPresentation: PresentationSpec","FieldMappingEditorPresentation: PresentationSpec","SyncRunListPresentation: PresentationSpec","SyncRunDetailPresentation: PresentationSpec","SyncActivityPresentation: PresentationSpec"],"sources":["../../src/sync/sync.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport {\n SyncConfigModel,\n SyncRunModel,\n FieldMappingModel,\n} from './sync.schema';\n\nexport const SyncConfigListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncConfig.list',\n version: 1,\n title: 'Sync Config List',\n description: 'List of sync configurations',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'config', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Show users their current sync configurations.',\n context: 'Management view for data synchronization.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncConfigList',\n props: SyncConfigModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncConfigEditorPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncConfig.editor',\n version: 1,\n title: 'Sync Config Editor',\n description: 'Editor for sync configuration settings',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'config', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow users to configure schedule, filters, and settings for a sync.',\n context: 'Configuration interface for sync jobs.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncConfigEditor',\n props: SyncConfigModel,\n },\n targets: ['react'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const FieldMappingEditorPresentation: PresentationSpec = {\n meta: {\n key: 'integration.fieldMapping.editor',\n version: 1,\n title: 'Field Mapping Editor',\n description: 'Visual field mapping editor',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'field-mapping', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow users to map source fields to target fields visually.',\n context: 'Schema mapping tool for data consistency.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'FieldMappingEditor',\n props: FieldMappingModel,\n },\n targets: ['react'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncRunListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncRun.list',\n version: 1,\n title: 'Sync Run History',\n description: 'History of sync runs',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'runs', 'history'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide a historical log of all sync attempts and their results.',\n context: 'Audit and troubleshooting view for sync jobs.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncRunList',\n props: SyncRunModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncRunDetailPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncRun.detail',\n version: 1,\n title: 'Sync Run Details',\n description: 'Detailed view of a sync run with logs',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'run', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Show granular details and logs for a specific sync run.',\n context: 'Detailed troubleshooting view.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncRunDetail',\n props: SyncRunModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncActivityPresentation: PresentationSpec = {\n meta: {\n key: 'integration.sync.activity',\n version: 1,\n title: 'Sync Activity Monitor',\n description: 'Real-time sync activity monitor',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'activity', 'realtime'],\n stability: StabilityEnum.Experimental,\n goal: 'Monitor live data flow and sync performance.',\n context: 'Real-time operations monitor.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncActivity',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n"],"mappings":";;;;AAQA,MAAaA,6BAA+C;CAC1D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAO;EAC/C,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;E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AC7B,MAAM;GAAC;GAAe;GAAQ;GAAO;GAAS;EAC9C,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,2BAA2B,EACpC;CACF;AAED,MAAaC,2BAA6C;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAY;GAAW;EACrD,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,2BAA2B,EACpC;CACF"}
|
|
1
|
+
{"version":3,"file":"sync.presentation.js","names":["SyncConfigListPresentation: PresentationSpec","SyncConfigEditorPresentation: PresentationSpec","FieldMappingEditorPresentation: PresentationSpec","SyncRunListPresentation: PresentationSpec","SyncRunDetailPresentation: PresentationSpec","SyncActivityPresentation: PresentationSpec"],"sources":["../../src/sync/sync.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\nimport {\n SyncConfigModel,\n SyncRunModel,\n FieldMappingModel,\n} from './sync.schema';\n\nexport const SyncConfigListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncConfig.list',\n version: '1.0.0',\n title: 'Sync Config List',\n description: 'List of sync configurations',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'config', 'list'],\n stability: StabilityEnum.Experimental,\n goal: 'Show users their current sync configurations.',\n context: 'Management view for data synchronization.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncConfigList',\n props: SyncConfigModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncConfigEditorPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncConfig.editor',\n version: '1.0.0',\n title: 'Sync Config Editor',\n description: 'Editor for sync configuration settings',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'config', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow users to configure schedule, filters, and settings for a sync.',\n context: 'Configuration interface for sync jobs.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncConfigEditor',\n props: SyncConfigModel,\n },\n targets: ['react'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const FieldMappingEditorPresentation: PresentationSpec = {\n meta: {\n key: 'integration.fieldMapping.editor',\n version: '1.0.0',\n title: 'Field Mapping Editor',\n description: 'Visual field mapping editor',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'field-mapping', 'editor'],\n stability: StabilityEnum.Experimental,\n goal: 'Allow users to map source fields to target fields visually.',\n context: 'Schema mapping tool for data consistency.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'FieldMappingEditor',\n props: FieldMappingModel,\n },\n targets: ['react'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncRunListPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncRun.list',\n version: '1.0.0',\n title: 'Sync Run History',\n description: 'History of sync runs',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'runs', 'history'],\n stability: StabilityEnum.Experimental,\n goal: 'Provide a historical log of all sync attempts and their results.',\n context: 'Audit and troubleshooting view for sync jobs.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncRunList',\n props: SyncRunModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncRunDetailPresentation: PresentationSpec = {\n meta: {\n key: 'integration.syncRun.detail',\n version: '1.0.0',\n title: 'Sync Run Details',\n description: 'Detailed view of a sync run with logs',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'run', 'detail'],\n stability: StabilityEnum.Experimental,\n goal: 'Show granular details and logs for a specific sync run.',\n context: 'Detailed troubleshooting view.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncRunDetail',\n props: SyncRunModel,\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n\nexport const SyncActivityPresentation: PresentationSpec = {\n meta: {\n key: 'integration.sync.activity',\n version: '1.0.0',\n title: 'Sync Activity Monitor',\n description: 'Real-time sync activity monitor',\n domain: 'integration',\n owners: ['@integration-team'],\n tags: ['integration', 'sync', 'activity', 'realtime'],\n stability: StabilityEnum.Experimental,\n goal: 'Monitor live data flow and sync performance.',\n context: 'Real-time operations monitor.',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'SyncActivity',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['integration.sync.enabled'],\n },\n};\n"],"mappings":";;;;AAQA,MAAaA,6BAA+C;CAC1D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAO;EAC/C,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,2BAA2B,EACpC;CACF;AAED,MAAaC,+BAAiD;CAC5D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAU;GAAS;EACjD,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ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,QAAQ;EACR,QAAQ,CAAC,oBAAoB;EAC7B,MAAM;GAAC;GAAe;GAAQ;GAAY;GAAW;EACrD,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,2BAA2B,EACpC;CACF"}
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema180 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/sync/sync.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A field mapping configuration.
|
|
6
6
|
*/
|
|
7
|
-
declare const FieldMappingModel:
|
|
7
|
+
declare const FieldMappingModel: _contractspec_lib_schema180.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
sourceField: {
|
|
13
|
-
type:
|
|
13
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
targetField: {
|
|
17
|
-
type:
|
|
17
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
mappingType: {
|
|
21
|
-
type:
|
|
21
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string]>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
transformExpression: {
|
|
25
|
-
type:
|
|
25
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
26
26
|
isOptional: true;
|
|
27
27
|
};
|
|
28
28
|
isRequired: {
|
|
29
|
-
type:
|
|
29
|
+
type: _contractspec_lib_schema180.FieldType<boolean, boolean>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
}>;
|
|
33
33
|
/**
|
|
34
34
|
* A sync configuration.
|
|
35
35
|
*/
|
|
36
|
-
declare const SyncConfigModel:
|
|
36
|
+
declare const SyncConfigModel: _contractspec_lib_schema180.SchemaModel<{
|
|
37
37
|
id: {
|
|
38
|
-
type:
|
|
38
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
integrationId: {
|
|
42
|
-
type:
|
|
42
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
connectionId: {
|
|
46
|
-
type:
|
|
46
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
name: {
|
|
50
|
-
type:
|
|
50
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
direction: {
|
|
54
|
-
type:
|
|
54
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string]>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
sourceObject: {
|
|
58
|
-
type:
|
|
58
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
targetObject: {
|
|
62
|
-
type:
|
|
62
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
scheduleEnabled: {
|
|
66
|
-
type:
|
|
66
|
+
type: _contractspec_lib_schema180.FieldType<boolean, boolean>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
scheduleCron: {
|
|
70
|
-
type:
|
|
70
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
71
71
|
isOptional: true;
|
|
72
72
|
};
|
|
73
73
|
isActive: {
|
|
74
|
-
type:
|
|
74
|
+
type: _contractspec_lib_schema180.FieldType<boolean, boolean>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
lastSyncAt: {
|
|
78
|
-
type:
|
|
78
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
79
79
|
isOptional: true;
|
|
80
80
|
};
|
|
81
81
|
fieldMappings: {
|
|
82
|
-
type:
|
|
82
|
+
type: _contractspec_lib_schema180.SchemaModel<{
|
|
83
83
|
id: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
sourceField: {
|
|
88
|
-
type:
|
|
88
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
targetField: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
mappingType: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string]>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
transformExpression: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
101
101
|
isOptional: true;
|
|
102
102
|
};
|
|
103
103
|
isRequired: {
|
|
104
|
-
type:
|
|
104
|
+
type: _contractspec_lib_schema180.FieldType<boolean, boolean>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
}>;
|
|
@@ -112,174 +112,174 @@ declare const SyncConfigModel: _contractspec_lib_schema247.SchemaModel<{
|
|
|
112
112
|
/**
|
|
113
113
|
* A sync run.
|
|
114
114
|
*/
|
|
115
|
-
declare const SyncRunModel:
|
|
115
|
+
declare const SyncRunModel: _contractspec_lib_schema180.SchemaModel<{
|
|
116
116
|
id: {
|
|
117
|
-
type:
|
|
117
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
syncConfigId: {
|
|
121
|
-
type:
|
|
121
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
status: {
|
|
125
|
-
type:
|
|
125
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string]>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
direction: {
|
|
129
|
-
type:
|
|
129
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string]>;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
trigger: {
|
|
133
|
-
type:
|
|
133
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
recordsProcessed: {
|
|
137
|
-
type:
|
|
137
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
138
138
|
isOptional: false;
|
|
139
139
|
};
|
|
140
140
|
recordsCreated: {
|
|
141
|
-
type:
|
|
141
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
recordsUpdated: {
|
|
145
|
-
type:
|
|
145
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
146
146
|
isOptional: false;
|
|
147
147
|
};
|
|
148
148
|
recordsFailed: {
|
|
149
|
-
type:
|
|
149
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
150
150
|
isOptional: false;
|
|
151
151
|
};
|
|
152
152
|
errorMessage: {
|
|
153
|
-
type:
|
|
153
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
154
154
|
isOptional: true;
|
|
155
155
|
};
|
|
156
156
|
startedAt: {
|
|
157
|
-
type:
|
|
157
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
158
158
|
isOptional: true;
|
|
159
159
|
};
|
|
160
160
|
completedAt: {
|
|
161
|
-
type:
|
|
161
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
162
162
|
isOptional: true;
|
|
163
163
|
};
|
|
164
164
|
createdAt: {
|
|
165
|
-
type:
|
|
165
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
}>;
|
|
169
169
|
/**
|
|
170
170
|
* Input for creating a sync config.
|
|
171
171
|
*/
|
|
172
|
-
declare const CreateSyncConfigInputModel:
|
|
172
|
+
declare const CreateSyncConfigInputModel: _contractspec_lib_schema180.SchemaModel<{
|
|
173
173
|
integrationId: {
|
|
174
|
-
type:
|
|
174
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
175
175
|
isOptional: false;
|
|
176
176
|
};
|
|
177
177
|
connectionId: {
|
|
178
|
-
type:
|
|
178
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
179
179
|
isOptional: false;
|
|
180
180
|
};
|
|
181
181
|
name: {
|
|
182
|
-
type:
|
|
182
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
183
183
|
isOptional: false;
|
|
184
184
|
};
|
|
185
185
|
direction: {
|
|
186
|
-
type:
|
|
186
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string]>;
|
|
187
187
|
isOptional: false;
|
|
188
188
|
};
|
|
189
189
|
sourceObject: {
|
|
190
|
-
type:
|
|
190
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
191
191
|
isOptional: false;
|
|
192
192
|
};
|
|
193
193
|
targetObject: {
|
|
194
|
-
type:
|
|
194
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
195
195
|
isOptional: false;
|
|
196
196
|
};
|
|
197
197
|
scheduleEnabled: {
|
|
198
|
-
type:
|
|
198
|
+
type: _contractspec_lib_schema180.FieldType<boolean, boolean>;
|
|
199
199
|
isOptional: true;
|
|
200
200
|
};
|
|
201
201
|
scheduleCron: {
|
|
202
|
-
type:
|
|
202
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
203
203
|
isOptional: true;
|
|
204
204
|
};
|
|
205
205
|
}>;
|
|
206
206
|
/**
|
|
207
207
|
* Input for adding a field mapping.
|
|
208
208
|
*/
|
|
209
|
-
declare const AddFieldMappingInputModel:
|
|
209
|
+
declare const AddFieldMappingInputModel: _contractspec_lib_schema180.SchemaModel<{
|
|
210
210
|
syncConfigId: {
|
|
211
|
-
type:
|
|
211
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
212
212
|
isOptional: false;
|
|
213
213
|
};
|
|
214
214
|
sourceField: {
|
|
215
|
-
type:
|
|
215
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
216
216
|
isOptional: false;
|
|
217
217
|
};
|
|
218
218
|
targetField: {
|
|
219
|
-
type:
|
|
219
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
mappingType: {
|
|
223
|
-
type:
|
|
223
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string]>;
|
|
224
224
|
isOptional: false;
|
|
225
225
|
};
|
|
226
226
|
transformExpression: {
|
|
227
|
-
type:
|
|
227
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
228
228
|
isOptional: true;
|
|
229
229
|
};
|
|
230
230
|
lookupConfig: {
|
|
231
|
-
type:
|
|
231
|
+
type: _contractspec_lib_schema180.FieldType<unknown, unknown>;
|
|
232
232
|
isOptional: true;
|
|
233
233
|
};
|
|
234
234
|
constantValue: {
|
|
235
|
-
type:
|
|
235
|
+
type: _contractspec_lib_schema180.FieldType<unknown, unknown>;
|
|
236
236
|
isOptional: true;
|
|
237
237
|
};
|
|
238
238
|
isRequired: {
|
|
239
|
-
type:
|
|
239
|
+
type: _contractspec_lib_schema180.FieldType<boolean, boolean>;
|
|
240
240
|
isOptional: true;
|
|
241
241
|
};
|
|
242
242
|
defaultValue: {
|
|
243
|
-
type:
|
|
243
|
+
type: _contractspec_lib_schema180.FieldType<unknown, unknown>;
|
|
244
244
|
isOptional: true;
|
|
245
245
|
};
|
|
246
246
|
}>;
|
|
247
247
|
/**
|
|
248
248
|
* Input for triggering a sync.
|
|
249
249
|
*/
|
|
250
|
-
declare const TriggerSyncInputModel:
|
|
250
|
+
declare const TriggerSyncInputModel: _contractspec_lib_schema180.SchemaModel<{
|
|
251
251
|
syncConfigId: {
|
|
252
|
-
type:
|
|
252
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
253
253
|
isOptional: false;
|
|
254
254
|
};
|
|
255
255
|
direction: {
|
|
256
|
-
type:
|
|
256
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string]>;
|
|
257
257
|
isOptional: true;
|
|
258
258
|
};
|
|
259
259
|
fullSync: {
|
|
260
|
-
type:
|
|
260
|
+
type: _contractspec_lib_schema180.FieldType<boolean, boolean>;
|
|
261
261
|
isOptional: true;
|
|
262
262
|
};
|
|
263
263
|
}>;
|
|
264
264
|
/**
|
|
265
265
|
* Input for listing sync runs.
|
|
266
266
|
*/
|
|
267
|
-
declare const ListSyncRunsInputModel:
|
|
267
|
+
declare const ListSyncRunsInputModel: _contractspec_lib_schema180.SchemaModel<{
|
|
268
268
|
syncConfigId: {
|
|
269
|
-
type:
|
|
269
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
270
270
|
isOptional: false;
|
|
271
271
|
};
|
|
272
272
|
status: {
|
|
273
|
-
type:
|
|
273
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string]>;
|
|
274
274
|
isOptional: true;
|
|
275
275
|
};
|
|
276
276
|
limit: {
|
|
277
|
-
type:
|
|
277
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
278
278
|
isOptional: true;
|
|
279
279
|
defaultValue: number;
|
|
280
280
|
};
|
|
281
281
|
offset: {
|
|
282
|
-
type:
|
|
282
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
283
283
|
isOptional: true;
|
|
284
284
|
defaultValue: number;
|
|
285
285
|
};
|
|
@@ -287,59 +287,59 @@ declare const ListSyncRunsInputModel: _contractspec_lib_schema247.SchemaModel<{
|
|
|
287
287
|
/**
|
|
288
288
|
* Output for listing sync runs.
|
|
289
289
|
*/
|
|
290
|
-
declare const ListSyncRunsOutputModel:
|
|
290
|
+
declare const ListSyncRunsOutputModel: _contractspec_lib_schema180.SchemaModel<{
|
|
291
291
|
runs: {
|
|
292
|
-
type:
|
|
292
|
+
type: _contractspec_lib_schema180.SchemaModel<{
|
|
293
293
|
id: {
|
|
294
|
-
type:
|
|
294
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
295
295
|
isOptional: false;
|
|
296
296
|
};
|
|
297
297
|
syncConfigId: {
|
|
298
|
-
type:
|
|
298
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
299
299
|
isOptional: false;
|
|
300
300
|
};
|
|
301
301
|
status: {
|
|
302
|
-
type:
|
|
302
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string]>;
|
|
303
303
|
isOptional: false;
|
|
304
304
|
};
|
|
305
305
|
direction: {
|
|
306
|
-
type:
|
|
306
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string]>;
|
|
307
307
|
isOptional: false;
|
|
308
308
|
};
|
|
309
309
|
trigger: {
|
|
310
|
-
type:
|
|
310
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
311
311
|
isOptional: false;
|
|
312
312
|
};
|
|
313
313
|
recordsProcessed: {
|
|
314
|
-
type:
|
|
314
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
315
315
|
isOptional: false;
|
|
316
316
|
};
|
|
317
317
|
recordsCreated: {
|
|
318
|
-
type:
|
|
318
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
321
|
recordsUpdated: {
|
|
322
|
-
type:
|
|
322
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
323
323
|
isOptional: false;
|
|
324
324
|
};
|
|
325
325
|
recordsFailed: {
|
|
326
|
-
type:
|
|
326
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
327
327
|
isOptional: false;
|
|
328
328
|
};
|
|
329
329
|
errorMessage: {
|
|
330
|
-
type:
|
|
330
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
331
331
|
isOptional: true;
|
|
332
332
|
};
|
|
333
333
|
startedAt: {
|
|
334
|
-
type:
|
|
334
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
335
335
|
isOptional: true;
|
|
336
336
|
};
|
|
337
337
|
completedAt: {
|
|
338
|
-
type:
|
|
338
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
339
339
|
isOptional: true;
|
|
340
340
|
};
|
|
341
341
|
createdAt: {
|
|
342
|
-
type:
|
|
342
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
343
343
|
isOptional: false;
|
|
344
344
|
};
|
|
345
345
|
}>;
|
|
@@ -347,7 +347,7 @@ declare const ListSyncRunsOutputModel: _contractspec_lib_schema247.SchemaModel<{
|
|
|
347
347
|
isOptional: false;
|
|
348
348
|
};
|
|
349
349
|
total: {
|
|
350
|
-
type:
|
|
350
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
351
351
|
isOptional: false;
|
|
352
352
|
};
|
|
353
353
|
}>;
|