@scoutflo/topology-contracts 0.3.0 → 0.4.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/src/schemas/index.d.ts +1 -1
- package/dist/src/schemas/index.js +17 -2
- package/dist/src/schemas/index.js.map +1 -1
- package/dist/src/source-sync/capability.d.ts +68 -0
- package/dist/src/source-sync/capability.js +9 -1
- package/dist/src/source-sync/capability.js.map +1 -1
- package/dist/src/source-sync/index.d.ts +1 -0
- package/dist/src/source-sync/index.js +1 -0
- package/dist/src/source-sync/index.js.map +1 -1
- package/dist/src/source-sync/lifecycle.d.ts +23978 -0
- package/dist/src/source-sync/lifecycle.js +172 -0
- package/dist/src/source-sync/lifecycle.js.map +1 -0
- package/dist/test/source-sync-lifecycle.test.d.ts +1 -0
- package/dist/test/source-sync-lifecycle.test.js +223 -0
- package/dist/test/source-sync-lifecycle.test.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { topologyProviderSchema, topologyProviderInputSchema, } from '../providers';
|
|
2
2
|
export { awsTopologyFamilySchema, kubernetesTopologyFamilySchema, integrationTopologyFamilySchema, topologyFamilySchema, } from '../families';
|
|
3
|
-
export { sourceSyncCapabilitySchema, topologySourceIntentIncludeSchema, topologySourceIntentSchema, topologySyncIntentOptionsSchema, topologySyncIntentSchema, topologySyncScopeSchema, topologySyncCompletenessStatusSchema, topologySyncCompletenessSchema, topologySyncWarningSeveritySchema, topologySyncWarningSchema, topologySourceRefStatusSchema, topologyEntitySourceRefCandidateSchema, topologyAccessRefCandidateSchema, topologySourceNodeCandidateSchema, topologyExistingEntityRefSchema, topologySourceRelationshipCandidateSchema, } from '../source-sync';
|
|
3
|
+
export { sourceSyncCapabilitySchema, sourceSyncPartialScopeApplySchema, topologySourceIntentIncludeSchema, topologySourceIntentSchema, topologySyncIntentOptionsSchema, topologySyncIntentSchema, topologySyncScopeSchema, topologySyncCompletenessStatusSchema, topologySyncCompletenessSchema, topologySyncWarningSeveritySchema, topologySyncWarningSchema, topologySourceRefStatusSchema, topologyEntitySourceRefCandidateSchema, topologyAccessRefCandidateSchema, topologySourceNodeCandidateSchema, topologyExistingEntityRefSchema, topologySourceRelationshipCandidateSchema, sourceSyncUnitStatusSchema, sourceSyncCapabilitiesResponseSchema, sourceSyncRecordSchema, sourceSyncJobSchema, sourceSyncSourceSummarySchema, sourceSyncDryRunSourceResultSchema, sourceSyncErrorSchema, sourceSyncDuplicateSchema, sourceSyncDryRunResponseSchema, sourceSyncApplySelectionSchema, sourceSyncApplyRequestSchema, sourceSyncApplyResponseSchema, sourceSyncBatchResponseSchema, sourceSyncBatchUnitsResponseSchema, } from '../source-sync';
|
|
4
4
|
export { topologyCorrelationApplyPolicySchema, topologyCorrelationRequiredEndpointSchema, topologyCorrelationRuleMetadataSchema, topologyCorrelationDecisionSchema, topologyCorrelationCandidateSchema, } from '../correlation';
|
|
5
5
|
export { topologyResourceTypeSchema, topologyRelationTypeSchema, } from '../topology';
|
|
6
6
|
export { credentialSourceEntityTypeSchema, credentialResolutionModeSchema, credentialSourceExternalRefSchema, credentialSourceResultItemSchema, credentialSourceSingleResponseSchema, credentialSourceBulkRequestSchema, credentialSourceBulkResponseSchema, topologyApiErrorCodeSchema, topologyApiErrorEnvelopeSchema, } from '../credential-source';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.gatewayTopologyContextSchema = exports.topologyBindingHintsSchema = exports.topologyBindingHintSchema = exports.topologyInvestigationContextSchema = void 0;
|
|
3
|
+
exports.credentialSourceBulkRequestSchema = exports.credentialSourceSingleResponseSchema = exports.credentialSourceResultItemSchema = exports.credentialSourceExternalRefSchema = exports.credentialResolutionModeSchema = exports.credentialSourceEntityTypeSchema = exports.topologyRelationTypeSchema = exports.topologyResourceTypeSchema = exports.topologyCorrelationCandidateSchema = exports.topologyCorrelationDecisionSchema = exports.topologyCorrelationRuleMetadataSchema = exports.topologyCorrelationRequiredEndpointSchema = exports.topologyCorrelationApplyPolicySchema = exports.sourceSyncBatchUnitsResponseSchema = exports.sourceSyncBatchResponseSchema = exports.sourceSyncApplyResponseSchema = exports.sourceSyncApplyRequestSchema = exports.sourceSyncApplySelectionSchema = exports.sourceSyncDryRunResponseSchema = exports.sourceSyncDuplicateSchema = exports.sourceSyncErrorSchema = exports.sourceSyncDryRunSourceResultSchema = exports.sourceSyncSourceSummarySchema = exports.sourceSyncJobSchema = exports.sourceSyncRecordSchema = exports.sourceSyncCapabilitiesResponseSchema = exports.sourceSyncUnitStatusSchema = exports.topologySourceRelationshipCandidateSchema = exports.topologyExistingEntityRefSchema = exports.topologySourceNodeCandidateSchema = exports.topologyAccessRefCandidateSchema = exports.topologyEntitySourceRefCandidateSchema = exports.topologySourceRefStatusSchema = exports.topologySyncWarningSchema = exports.topologySyncWarningSeveritySchema = exports.topologySyncCompletenessSchema = exports.topologySyncCompletenessStatusSchema = exports.topologySyncScopeSchema = exports.topologySyncIntentSchema = exports.topologySyncIntentOptionsSchema = exports.topologySourceIntentSchema = exports.topologySourceIntentIncludeSchema = exports.sourceSyncPartialScopeApplySchema = exports.sourceSyncCapabilitySchema = exports.topologyFamilySchema = exports.integrationTopologyFamilySchema = exports.kubernetesTopologyFamilySchema = exports.awsTopologyFamilySchema = exports.topologyProviderInputSchema = exports.topologyProviderSchema = void 0;
|
|
4
|
+
exports.gatewayTopologyContextSchema = exports.topologyBindingHintsSchema = exports.topologyBindingHintSchema = exports.topologyInvestigationContextSchema = exports.relatedServiceInfoSchema = exports.investigationResourceSchema = exports.targetServiceInfoSchema = exports.topologyInitializationStateSchema = exports.topologyPrimaryAnchorSchema = exports.topologyCandidateTargetSchema = exports.topologyReasonCodeSchema = exports.nestedTopologyResponseSchema = exports.nestedTopologyChildSchema = exports.nestedTopologyNodeSchema = exports.nestedTopologyRelationshipSchema = exports.diagnosticCriticalitySchema = exports.topologyApiErrorEnvelopeSchema = exports.topologyApiErrorCodeSchema = exports.credentialSourceBulkResponseSchema = void 0;
|
|
5
5
|
var providers_1 = require("../providers");
|
|
6
6
|
Object.defineProperty(exports, "topologyProviderSchema", { enumerable: true, get: function () { return providers_1.topologyProviderSchema; } });
|
|
7
7
|
Object.defineProperty(exports, "topologyProviderInputSchema", { enumerable: true, get: function () { return providers_1.topologyProviderInputSchema; } });
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "integrationTopologyFamilySchema", { enumerable:
|
|
|
12
12
|
Object.defineProperty(exports, "topologyFamilySchema", { enumerable: true, get: function () { return families_1.topologyFamilySchema; } });
|
|
13
13
|
var source_sync_1 = require("../source-sync");
|
|
14
14
|
Object.defineProperty(exports, "sourceSyncCapabilitySchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncCapabilitySchema; } });
|
|
15
|
+
Object.defineProperty(exports, "sourceSyncPartialScopeApplySchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncPartialScopeApplySchema; } });
|
|
15
16
|
Object.defineProperty(exports, "topologySourceIntentIncludeSchema", { enumerable: true, get: function () { return source_sync_1.topologySourceIntentIncludeSchema; } });
|
|
16
17
|
Object.defineProperty(exports, "topologySourceIntentSchema", { enumerable: true, get: function () { return source_sync_1.topologySourceIntentSchema; } });
|
|
17
18
|
Object.defineProperty(exports, "topologySyncIntentOptionsSchema", { enumerable: true, get: function () { return source_sync_1.topologySyncIntentOptionsSchema; } });
|
|
@@ -27,6 +28,20 @@ Object.defineProperty(exports, "topologyAccessRefCandidateSchema", { enumerable:
|
|
|
27
28
|
Object.defineProperty(exports, "topologySourceNodeCandidateSchema", { enumerable: true, get: function () { return source_sync_1.topologySourceNodeCandidateSchema; } });
|
|
28
29
|
Object.defineProperty(exports, "topologyExistingEntityRefSchema", { enumerable: true, get: function () { return source_sync_1.topologyExistingEntityRefSchema; } });
|
|
29
30
|
Object.defineProperty(exports, "topologySourceRelationshipCandidateSchema", { enumerable: true, get: function () { return source_sync_1.topologySourceRelationshipCandidateSchema; } });
|
|
31
|
+
Object.defineProperty(exports, "sourceSyncUnitStatusSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncUnitStatusSchema; } });
|
|
32
|
+
Object.defineProperty(exports, "sourceSyncCapabilitiesResponseSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncCapabilitiesResponseSchema; } });
|
|
33
|
+
Object.defineProperty(exports, "sourceSyncRecordSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncRecordSchema; } });
|
|
34
|
+
Object.defineProperty(exports, "sourceSyncJobSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncJobSchema; } });
|
|
35
|
+
Object.defineProperty(exports, "sourceSyncSourceSummarySchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncSourceSummarySchema; } });
|
|
36
|
+
Object.defineProperty(exports, "sourceSyncDryRunSourceResultSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncDryRunSourceResultSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "sourceSyncErrorSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncErrorSchema; } });
|
|
38
|
+
Object.defineProperty(exports, "sourceSyncDuplicateSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncDuplicateSchema; } });
|
|
39
|
+
Object.defineProperty(exports, "sourceSyncDryRunResponseSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncDryRunResponseSchema; } });
|
|
40
|
+
Object.defineProperty(exports, "sourceSyncApplySelectionSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncApplySelectionSchema; } });
|
|
41
|
+
Object.defineProperty(exports, "sourceSyncApplyRequestSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncApplyRequestSchema; } });
|
|
42
|
+
Object.defineProperty(exports, "sourceSyncApplyResponseSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncApplyResponseSchema; } });
|
|
43
|
+
Object.defineProperty(exports, "sourceSyncBatchResponseSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncBatchResponseSchema; } });
|
|
44
|
+
Object.defineProperty(exports, "sourceSyncBatchUnitsResponseSchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncBatchUnitsResponseSchema; } });
|
|
30
45
|
var correlation_1 = require("../correlation");
|
|
31
46
|
Object.defineProperty(exports, "topologyCorrelationApplyPolicySchema", { enumerable: true, get: function () { return correlation_1.topologyCorrelationApplyPolicySchema; } });
|
|
32
47
|
Object.defineProperty(exports, "topologyCorrelationRequiredEndpointSchema", { enumerable: true, get: function () { return correlation_1.topologyCorrelationRequiredEndpointSchema; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":";;;;AAAA,0CAGsB;AAFpB,mHAAA,sBAAsB,OAAA;AACtB,wHAAA,2BAA2B,OAAA;AAG7B,wCAKqB;AAJnB,mHAAA,uBAAuB,OAAA;AACvB,0HAAA,8BAA8B,OAAA;AAC9B,2HAAA,+BAA+B,OAAA;AAC/B,gHAAA,oBAAoB,OAAA;AAGtB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":";;;;AAAA,0CAGsB;AAFpB,mHAAA,sBAAsB,OAAA;AACtB,wHAAA,2BAA2B,OAAA;AAG7B,wCAKqB;AAJnB,mHAAA,uBAAuB,OAAA;AACvB,0HAAA,8BAA8B,OAAA;AAC9B,2HAAA,+BAA+B,OAAA;AAC/B,gHAAA,oBAAoB,OAAA;AAGtB,8CAgCwB;AA/BtB,yHAAA,0BAA0B,OAAA;AAC1B,gIAAA,iCAAiC,OAAA;AACjC,gIAAA,iCAAiC,OAAA;AACjC,yHAAA,0BAA0B,OAAA;AAC1B,8HAAA,+BAA+B,OAAA;AAC/B,uHAAA,wBAAwB,OAAA;AACxB,sHAAA,uBAAuB,OAAA;AACvB,mIAAA,oCAAoC,OAAA;AACpC,6HAAA,8B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AACxB,0HAAA,yBAAyB,OAAA;AACzB,6HAAA,4BAA4B,OAAA;AAC5B,yHAAA,wBAAwB,OAAA;AACxB,8HAAA,6BAA6B,OAAA;AAC7B,4HAAA,2BAA2B,OAAA;AAC3B,kIAAA,iCAAiC,OAAA;AACjC,wHAAA,uBAAuB,OAAA;AACvB,4HAAA,2BAA2B,OAAA;AAC3B,yHAAA,wBAAwB,OAAA;AACxB,mIAAA,kCAAkC,OAAA;AAClC,0HAAA,yBAAyB,OAAA;AACzB,2HAAA,0BAA0B,OAAA;AAC1B,6HAAA,4BAA4B,OAAA"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const sourceSyncCapabilityStatusSchema: z.ZodString;
|
|
3
|
+
export declare const sourceSyncPartialScopeApplySchema: z.ZodObject<{
|
|
4
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
6
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
11
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
16
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3
19
|
export declare const sourceSyncCapabilitySchema: z.ZodObject<{
|
|
4
20
|
provider: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["aws", "k8s", "gcp", "azure", "sentry", "prometheus", "grafana", "loki", "tempo", "mimir", "victoriametrics", "victorialogs", "victoriatraces", "github", "gitlab", "bitbucket", "argocd", "datadog", "groundcover", "elk", "jira", "confluence", "jsm", "custom"]>, z.ZodLiteral<"kubernetes">]>, "aws" | "k8s" | "gcp" | "azure" | "sentry" | "prometheus" | "grafana" | "loki" | "tempo" | "mimir" | "victoriametrics" | "victorialogs" | "victoriatraces" | "github" | "gitlab" | "bitbucket" | "argocd" | "datadog" | "groundcover" | "elk" | "jira" | "confluence" | "jsm" | "custom", "aws" | "k8s" | "gcp" | "azure" | "sentry" | "prometheus" | "grafana" | "loki" | "tempo" | "mimir" | "victoriametrics" | "victorialogs" | "victoriatraces" | "github" | "gitlab" | "bitbucket" | "argocd" | "datadog" | "groundcover" | "elk" | "jira" | "confluence" | "jsm" | "custom" | "kubernetes">;
|
|
5
21
|
status: z.ZodString;
|
|
@@ -8,6 +24,23 @@ export declare const sourceSyncCapabilitySchema: z.ZodObject<{
|
|
|
8
24
|
supports_apply: z.ZodBoolean;
|
|
9
25
|
supports_selected_apply: z.ZodBoolean;
|
|
10
26
|
supports_correlation: z.ZodBoolean;
|
|
27
|
+
selected_apply_modes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
partial_scope_apply: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
31
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
34
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
36
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
37
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
39
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
41
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
11
44
|
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
45
|
locality_options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
46
|
kind: z.ZodString;
|
|
@@ -28,6 +61,23 @@ export declare const sourceSyncCapabilitySchema: z.ZodObject<{
|
|
|
28
61
|
supports_apply: z.ZodBoolean;
|
|
29
62
|
supports_selected_apply: z.ZodBoolean;
|
|
30
63
|
supports_correlation: z.ZodBoolean;
|
|
64
|
+
selected_apply_modes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
65
|
+
partial_scope_apply: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
68
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
69
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
71
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
73
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
76
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
78
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
79
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
31
81
|
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
82
|
locality_options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
83
|
kind: z.ZodString;
|
|
@@ -48,6 +98,23 @@ export declare const sourceSyncCapabilitySchema: z.ZodObject<{
|
|
|
48
98
|
supports_apply: z.ZodBoolean;
|
|
49
99
|
supports_selected_apply: z.ZodBoolean;
|
|
50
100
|
supports_correlation: z.ZodBoolean;
|
|
101
|
+
selected_apply_modes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
102
|
+
partial_scope_apply: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
105
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
106
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
108
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
110
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
111
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
113
|
+
supported: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
115
|
+
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
116
|
+
lifecycle_writes: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
51
118
|
families: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
52
119
|
locality_options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
120
|
kind: z.ZodString;
|
|
@@ -61,4 +128,5 @@ export declare const sourceSyncCapabilitySchema: z.ZodObject<{
|
|
|
61
128
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
62
129
|
non_goals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
63
130
|
}, z.ZodTypeAny, "passthrough">>;
|
|
131
|
+
export type SourceSyncPartialScopeApply = z.infer<typeof sourceSyncPartialScopeApplySchema>;
|
|
64
132
|
export type SourceSyncCapability = z.infer<typeof sourceSyncCapabilitySchema>;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sourceSyncCapabilitySchema = exports.sourceSyncCapabilityStatusSchema = void 0;
|
|
3
|
+
exports.sourceSyncCapabilitySchema = exports.sourceSyncPartialScopeApplySchema = exports.sourceSyncCapabilityStatusSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const providers_1 = require("../providers");
|
|
6
6
|
const common_1 = require("./common");
|
|
7
7
|
exports.sourceSyncCapabilityStatusSchema = common_1.nonEmptyStringSchema;
|
|
8
|
+
exports.sourceSyncPartialScopeApplySchema = zod_1.z.object({
|
|
9
|
+
supported: zod_1.z.boolean().optional(),
|
|
10
|
+
mode: common_1.nonEmptyStringSchema.optional(),
|
|
11
|
+
families: zod_1.z.array(common_1.sourceSyncFamilySchema).optional(),
|
|
12
|
+
lifecycle_writes: zod_1.z.boolean().optional(),
|
|
13
|
+
}).passthrough();
|
|
8
14
|
exports.sourceSyncCapabilitySchema = zod_1.z.object({
|
|
9
15
|
provider: providers_1.topologyProviderInputSchema,
|
|
10
16
|
status: exports.sourceSyncCapabilityStatusSchema,
|
|
@@ -13,6 +19,8 @@ exports.sourceSyncCapabilitySchema = zod_1.z.object({
|
|
|
13
19
|
supports_apply: zod_1.z.boolean(),
|
|
14
20
|
supports_selected_apply: zod_1.z.boolean(),
|
|
15
21
|
supports_correlation: zod_1.z.boolean(),
|
|
22
|
+
selected_apply_modes: zod_1.z.array(common_1.nonEmptyStringSchema).optional(),
|
|
23
|
+
partial_scope_apply: exports.sourceSyncPartialScopeApplySchema.optional(),
|
|
16
24
|
families: zod_1.z.array(common_1.sourceSyncFamilySchema).optional(),
|
|
17
25
|
locality_options: zod_1.z.array(common_1.sourceSyncLocalitySchema).optional(),
|
|
18
26
|
non_goals: zod_1.z.array(common_1.nonEmptyStringSchema).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability.js","sourceRoot":"","sources":["../../../src/source-sync/capability.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA2D;AAC3D,qCAIkB;AAEL,QAAA,gCAAgC,GAAG,6BAAoB,CAAC;AAExD,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,QAAQ,EAAE,uCAA2B;IACrC,MAAM,EAAE,wCAAgC;IACxC,mBAAmB,EAAE,6BAAoB,CAAC,QAAQ,EAAE;IACpD,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE;IAC7B,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE;IAC3B,uBAAuB,EAAE,OAAC,CAAC,OAAO,EAAE;IACpC,oBAAoB,EAAE,OAAC,CAAC,OAAO,EAAE;IACjC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAsB,CAAC,CAAC,QAAQ,EAAE;IACpD,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,iCAAwB,CAAC,CAAC,QAAQ,EAAE;IAC9D,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAoB,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC,WAAW,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"capability.js","sourceRoot":"","sources":["../../../src/source-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20
|
__exportStar(require("./completeness"), exports);
|
|
21
21
|
__exportStar(require("./warning"), exports);
|
|
22
22
|
__exportStar(require("./candidate"), exports);
|
|
23
|
+
__exportStar(require("./lifecycle"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/source-sync/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,0CAAwB;AACxB,iDAA+B;AAC/B,4CAA0B;AAC1B,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/source-sync/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,0CAAwB;AACxB,iDAA+B;AAC/B,4CAA0B;AAC1B,8CAA4B;AAC5B,8CAA4B"}
|