airbyte-faros-destination 0.18.13 → 0.18.15
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/lib/converters/faros-event/cd_events.d.ts +14 -0
- package/lib/converters/faros-event/cd_events.js +175 -0
- package/lib/converters/faros-event/cd_events.js.map +1 -0
- package/lib/converters/faros-event/ci_events.d.ts +14 -0
- package/lib/converters/faros-event/ci_events.js +93 -0
- package/lib/converters/faros-event/ci_events.js.map +1 -0
- package/lib/converters/faros-event/common.d.ts +42 -0
- package/lib/converters/faros-event/common.js +343 -0
- package/lib/converters/faros-event/common.js.map +1 -0
- package/lib/converters/faros-event/types/cd.d.ts +2603 -0
- package/lib/converters/faros-event/types/cd.js +104 -0
- package/lib/converters/faros-event/types/cd.js.map +1 -0
- package/lib/converters/faros-event/types/ci.d.ts +1919 -0
- package/lib/converters/faros-event/types/ci.js +33 -0
- package/lib/converters/faros-event/types/ci.js.map +1 -0
- package/lib/converters/faros-event/types/common.d.ts +1134 -0
- package/lib/converters/faros-event/types/common.js +307 -0
- package/lib/converters/faros-event/types/common.js.map +1 -0
- package/lib/converters/faros-event/types/index.d.ts +22 -0
- package/lib/converters/faros-event/types/index.js +72 -0
- package/lib/converters/faros-event/types/index.js.map +1 -0
- package/lib/converters/faros-event/types/keys.d.ts +51 -0
- package/lib/converters/faros-event/types/keys.js +3 -0
- package/lib/converters/faros-event/types/keys.js.map +1 -0
- package/lib/converters/faros-event/types/params.d.ts +24 -0
- package/lib/converters/faros-event/types/params.js +15 -0
- package/lib/converters/faros-event/types/params.js.map +1 -0
- package/lib/converters/faros-event/utils.d.ts +113 -0
- package/lib/converters/faros-event/utils.js +388 -0
- package/lib/converters/faros-event/utils.js.map +1 -0
- package/lib/converters/notion/common.d.ts +24 -24
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -3
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cdValidationSchema = exports.cdFullValidationSchema = exports.deployValidationSchema = exports.ONE_OF_URI_OR_DEPLOY_IDS_ERROR_MESSAGE = exports.ONE_OF_CD_OBJECT = void 0;
|
|
4
|
+
const common_1 = require("./common");
|
|
5
|
+
exports.ONE_OF_CD_OBJECT = "must have either property 'deploy', 'artifact', 'commit', or 'run'";
|
|
6
|
+
const ONE_OF_ARTIFACT_OR_COMMIT_ERROR_MESSAGE = "must have either property 'artifact' or 'commit'";
|
|
7
|
+
exports.ONE_OF_URI_OR_DEPLOY_IDS_ERROR_MESSAGE =
|
|
8
|
+
// eslint-disable-next-line max-len
|
|
9
|
+
'information is incomplete. The data must contain either deploy.uri OR deploy.id, deploy.environment, deploy.application, deploy.source';
|
|
10
|
+
const deploymentSchemaDefinition = {
|
|
11
|
+
uri: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
pattern: `^${common_1.URI_CHARS}*://${common_1.URI_CHARS}*/${common_1.URI_CHARS}*/${common_1.URI_CHARS}*$`,
|
|
14
|
+
maxLength: 1000,
|
|
15
|
+
},
|
|
16
|
+
id: common_1.stringValidationSchema,
|
|
17
|
+
environment: common_1.stringValidationSchema,
|
|
18
|
+
environmentDetails: common_1.stringValidationSchema,
|
|
19
|
+
application: common_1.stringValidationSchema,
|
|
20
|
+
applicationPlatform: common_1.stringValidationSchema,
|
|
21
|
+
applicationTags: common_1.farosTagsValidationSchema,
|
|
22
|
+
applicationPaths: common_1.farosPathsValidationSchema,
|
|
23
|
+
requestedAt: common_1.timestampValidationSchema,
|
|
24
|
+
url: common_1.stringValidationSchema,
|
|
25
|
+
source: common_1.stringValidationSchema,
|
|
26
|
+
status: common_1.stringValidationSchema,
|
|
27
|
+
statusDetails: { type: 'string' }, // Truncated later
|
|
28
|
+
startTime: common_1.timestampValidationSchema,
|
|
29
|
+
endTime: common_1.timestampValidationSchema,
|
|
30
|
+
tags: common_1.farosTagsValidationSchema,
|
|
31
|
+
};
|
|
32
|
+
exports.deployValidationSchema = {
|
|
33
|
+
type: 'object',
|
|
34
|
+
properties: deploymentSchemaDefinition,
|
|
35
|
+
oneOf: [
|
|
36
|
+
{
|
|
37
|
+
required: ['uri'],
|
|
38
|
+
errorMessage: {
|
|
39
|
+
required: exports.ONE_OF_URI_OR_DEPLOY_IDS_ERROR_MESSAGE,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
required: ['source', 'application', 'environment', 'id'],
|
|
44
|
+
errorMessage: {
|
|
45
|
+
required: exports.ONE_OF_URI_OR_DEPLOY_IDS_ERROR_MESSAGE,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
errorMessage: {
|
|
50
|
+
oneOf: exports.ONE_OF_URI_OR_DEPLOY_IDS_ERROR_MESSAGE,
|
|
51
|
+
},
|
|
52
|
+
dependencies: {
|
|
53
|
+
statusDetails: { required: ['status'] },
|
|
54
|
+
},
|
|
55
|
+
additionalProperties: false,
|
|
56
|
+
};
|
|
57
|
+
exports.cdFullValidationSchema = {
|
|
58
|
+
type: 'object',
|
|
59
|
+
properties: {
|
|
60
|
+
deploy: { ...exports.deployValidationSchema, required: ['status'] },
|
|
61
|
+
artifact: common_1.artifactValidationSchema,
|
|
62
|
+
commit: common_1.commitValidationSchema,
|
|
63
|
+
run: { ...common_1.runValidationSchema, required: ['status'] },
|
|
64
|
+
},
|
|
65
|
+
required: ['deploy'],
|
|
66
|
+
oneOf: [
|
|
67
|
+
{
|
|
68
|
+
required: ['artifact'],
|
|
69
|
+
errorMessage: {
|
|
70
|
+
required: ONE_OF_ARTIFACT_OR_COMMIT_ERROR_MESSAGE,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
required: ['commit'],
|
|
75
|
+
errorMessage: {
|
|
76
|
+
required: ONE_OF_ARTIFACT_OR_COMMIT_ERROR_MESSAGE,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
errorMessage: {
|
|
81
|
+
oneOf: ONE_OF_ARTIFACT_OR_COMMIT_ERROR_MESSAGE,
|
|
82
|
+
},
|
|
83
|
+
additionalProperties: false,
|
|
84
|
+
};
|
|
85
|
+
exports.cdValidationSchema = {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: {
|
|
88
|
+
deploy: exports.deployValidationSchema,
|
|
89
|
+
artifact: common_1.artifactValidationSchema,
|
|
90
|
+
commit: common_1.commitValidationSchema,
|
|
91
|
+
run: common_1.runValidationSchema,
|
|
92
|
+
},
|
|
93
|
+
anyOf: [
|
|
94
|
+
{ required: ['deploy'] },
|
|
95
|
+
{ required: ['artifact'] },
|
|
96
|
+
{ required: ['commit'] },
|
|
97
|
+
{ required: ['run'] },
|
|
98
|
+
],
|
|
99
|
+
errorMessage: {
|
|
100
|
+
anyOf: exports.ONE_OF_CD_OBJECT,
|
|
101
|
+
},
|
|
102
|
+
additionalProperties: false,
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=cd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cd.js","sourceRoot":"","sources":["../../../../src/converters/faros-event/types/cd.ts"],"names":[],"mappings":";;;AAAA,qCAckB;AAEL,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAEvE,MAAM,uCAAuC,GAC3C,kDAAkD,CAAC;AAExC,QAAA,sCAAsC;AACjD,mCAAmC;AACnC,wIAAwI,CAAC;AAqB3I,MAAM,0BAA0B,GAAG;IACjC,GAAG,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,IAAI,kBAAS,OAAO,kBAAS,KAAK,kBAAS,KAAK,kBAAS,IAAI;QACtE,SAAS,EAAE,IAAI;KAChB;IACD,EAAE,EAAE,+BAAsB;IAC1B,WAAW,EAAE,+BAAsB;IACnC,kBAAkB,EAAE,+BAAsB;IAC1C,WAAW,EAAE,+BAAsB;IACnC,mBAAmB,EAAE,+BAAsB;IAC3C,eAAe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