airbyte-faros-destination 0.16.38 → 0.16.39
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/gitlab/faros_commits.js.map +1 -1
- package/lib/converters/gitlab/faros_groups.js +1 -1
- package/lib/converters/gitlab/faros_groups.js.map +1 -1
- package/lib/converters/gitlab/faros_issues.d.ts +8 -0
- package/lib/converters/gitlab/faros_issues.js +102 -0
- package/lib/converters/gitlab/faros_issues.js.map +1 -0
- package/lib/converters/gitlab/faros_projects.js +4 -4
- package/lib/converters/gitlab/faros_projects.js.map +1 -1
- package/lib/converters/gitlab/faros_tags.d.ts +1 -1
- package/lib/converters/gitlab/faros_tags.js +1 -1
- package/lib/converters/gitlab/faros_tags.js.map +1 -1
- package/lib/converters/gitlab/faros_users.d.ts +3 -2
- package/lib/converters/gitlab/faros_users.js +6 -1
- package/lib/converters/gitlab/faros_users.js.map +1 -1
- package/lib/converters/googledrive/activity.d.ts +11 -0
- package/lib/converters/googledrive/activity.js +184 -0
- package/lib/converters/googledrive/activity.js.map +1 -0
- package/lib/converters/googledrive/common.d.ts +8 -0
- package/lib/converters/googledrive/common.js +18 -0
- package/lib/converters/googledrive/common.js.map +1 -0
- package/lib/converters/googledrive/workspace.d.ts +7 -0
- package/lib/converters/googledrive/workspace.js +32 -0
- package/lib/converters/googledrive/workspace.js.map +1 -0
- package/lib/converters/googledrive/workspace_users.d.ts +7 -0
- package/lib/converters/googledrive/workspace_users.js +50 -0
- package/lib/converters/googledrive/workspace_users.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faros_commits.js","sourceRoot":"","sources":["../../../src/converters/gitlab/faros_commits.ts"],"names":[],"mappings":";;;AAEA,qDAAsC;AACtC,mCAA+B;AAG/B,qCAAyC;AAEzC,MAAa,YAAa,SAAQ,wBAAe;IAAjD;;QACW,sBAAiB,GAA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AAC,UAAU,CAAC;oBAC1C,UAAU;iBACX;aACF;SACF,CAAC;IACJ,CAAC;CACF;AArCD,oCAqCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faros_groups.js","sourceRoot":"","sources":["../../../src/converters/gitlab/faros_groups.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"faros_groups.js","sourceRoot":"","sources":["../../../src/converters/gitlab/faros_groups.ts"],"names":[],"mappings":";;;AAEA,qDAAsC;AAGtC,qCAAyC;AAEzC,MAAa,WAAY,SAAQ,wBAAe;IAAhD;;QACW,sBAAiB,GAAoC;YAC5D,kBAAkB;SACnB,CAAC;IAuBJ,CAAC;IArBC,KAAK,CAAC,OAAO,CACX,MAAqB;QAErB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACtC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAwB,CAAC;QACrD,MAAM,GAAG,GAAwB,EAAE,CAAC;QAEpC,GAAG,CAAC,IAAI,CAAC;YACP,KAAK,EAAE,kBAAkB;YACzB,MAAM,EAAE;gBACN,GAAG,EAAE,KAAK,CAAC,EAAE;gBACb,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,IAAI,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAC;gBAC1C,SAAS,EAAE,uBAAK,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC;gBACzC,MAAM;aACP;SACF,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AA1BD,kCA0BC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AirbyteRecord } from 'faros-airbyte-cdk';
|
|
2
|
+
import { DestinationModel, DestinationRecord } from '../converter';
|
|
3
|
+
import { GitlabConverter } from './common';
|
|
4
|
+
export declare class FarosIssues extends GitlabConverter {
|
|
5
|
+
readonly destinationModels: ReadonlyArray<DestinationModel>;
|
|
6
|
+
id(record: AirbyteRecord): string;
|
|
7
|
+
convert(record: AirbyteRecord): Promise<ReadonlyArray<DestinationRecord>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FarosIssues = void 0;
|
|
4
|
+
const faros_js_client_1 = require("faros-js-client");
|
|
5
|
+
const lodash_1 = require("lodash");
|
|
6
|
+
const common_1 = require("./common");
|
|
7
|
+
class FarosIssues extends common_1.GitlabConverter {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.destinationModels = [
|
|
11
|
+
'tms_Label',
|
|
12
|
+
'tms_Task',
|
|
13
|
+
'tms_TaskAssignment',
|
|
14
|
+
'tms_TaskBoardRelationship',
|
|
15
|
+
'tms_TaskProjectRelationship',
|
|
16
|
+
'tms_TaskTag',
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
id(record) {
|
|
20
|
+
var _a;
|
|
21
|
+
const issue = (_a = record === null || record === void 0 ? void 0 : record.record) === null || _a === void 0 ? void 0 : _a.data;
|
|
22
|
+
return String(issue === null || issue === void 0 ? void 0 : issue.id);
|
|
23
|
+
}
|
|
24
|
+
async convert(record) {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
const issue = record.record.data;
|
|
27
|
+
const res = [];
|
|
28
|
+
if (!(issue === null || issue === void 0 ? void 0 : issue.id)) {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
const uid = String(issue.id);
|
|
32
|
+
const taskKey = { uid, source: this.streamName.source };
|
|
33
|
+
// Create project key from project_path and group_id
|
|
34
|
+
const projectKey = {
|
|
35
|
+
uid: `${(0, lodash_1.toLower)(issue.group_id)}/${(0, lodash_1.toLower)(issue.project_path)}`,
|
|
36
|
+
source: this.streamName.source,
|
|
37
|
+
};
|
|
38
|
+
// Handle assignees
|
|
39
|
+
(_a = issue.assignee_usernames) === null || _a === void 0 ? void 0 : _a.forEach((username) => {
|
|
40
|
+
if (username) {
|
|
41
|
+
res.push({
|
|
42
|
+
model: 'tms_TaskAssignment',
|
|
43
|
+
record: {
|
|
44
|
+
task: taskKey,
|
|
45
|
+
assignee: { uid: username, source: this.streamName.source },
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
// Handle labels
|
|
51
|
+
(_b = issue.labels) === null || _b === void 0 ? void 0 : _b.forEach((label) => {
|
|
52
|
+
// Labels can be either string or SimpleLabelSchema
|
|
53
|
+
const labelName = typeof label === 'string' ? label : label.name;
|
|
54
|
+
if (labelName) {
|
|
55
|
+
res.push({ model: 'tms_Label', record: { name: labelName } });
|
|
56
|
+
res.push({
|
|
57
|
+
model: 'tms_TaskTag',
|
|
58
|
+
record: {
|
|
59
|
+
task: taskKey,
|
|
60
|
+
label: { name: labelName },
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
// Create the task record
|
|
66
|
+
const category = issue.state === 'opened' ? 'Todo' : 'Done';
|
|
67
|
+
res.push({
|
|
68
|
+
model: 'tms_Task',
|
|
69
|
+
record: {
|
|
70
|
+
uid,
|
|
71
|
+
name: issue.title,
|
|
72
|
+
description: faros_js_client_1.Utils.cleanAndTruncate(issue.description, common_1.GitlabCommon.MAX_DESCRIPTION_LENGTH),
|
|
73
|
+
status: { category, detail: issue.state },
|
|
74
|
+
creator: issue.author_username
|
|
75
|
+
? { uid: issue.author_username, source: this.streamName.source }
|
|
76
|
+
: null,
|
|
77
|
+
createdAt: faros_js_client_1.Utils.toDate(issue.created_at),
|
|
78
|
+
updatedAt: faros_js_client_1.Utils.toDate(issue.updated_at),
|
|
79
|
+
source: this.streamName.source,
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
// Link task to project
|
|
83
|
+
res.push({
|
|
84
|
+
model: 'tms_TaskProjectRelationship',
|
|
85
|
+
record: {
|
|
86
|
+
task: taskKey,
|
|
87
|
+
project: projectKey,
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
// Link task to board (at project level)
|
|
91
|
+
res.push({
|
|
92
|
+
model: 'tms_TaskBoardRelationship',
|
|
93
|
+
record: {
|
|
94
|
+
task: taskKey,
|
|
95
|
+
board: projectKey,
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
return res;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.FarosIssues = FarosIssues;
|
|
102
|
+
//# sourceMappingURL=faros_issues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faros_issues.js","sourceRoot":"","sources":["../../../src/converters/gitlab/faros_issues.ts"],"names":[],"mappings":";;;AAEA,qDAAsC;AACtC,mCAA+B;AAG/B,qCAAuD;AAEvD,MAAa,WAAY,SAAQ,wBAAe;IAAhD;;QACW,sBAAiB,GAAoC;YAC5D,WAAW;YACX,UAAU;YACV,oBAAoB;YACpB,2BAA2B;YAC3B,6BAA6B;YAC7B,aAAa;SACd,CAAC;IAkGJ,CAAC;IAhGC,EAAE,CAAC,MAAqB;;QACtB,MAAM,KAAK,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,0CAAE,IAAwB,CAAC;QACvD,OAAO,MAAM,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,OAAO,CACX,MAAqB;;QAErB,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAwB,CAAC;QACrD,MAAM,GAAG,GAAwB,EAAE,CAAC;QAEpC,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,EAAE,CAAA,EAAE,CAAC;YACf,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAA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GD,kCA0GC"}
|
|
@@ -16,7 +16,7 @@ class FarosProjects extends common_1.GitlabConverter {
|
|
|
16
16
|
];
|
|
17
17
|
}
|
|
18
18
|
async convert(record, ctx) {
|
|
19
|
-
var _a, _b;
|
|
19
|
+
var _a, _b, _c, _d;
|
|
20
20
|
const project = record.record.data;
|
|
21
21
|
const organization = {
|
|
22
22
|
uid: project.group_id,
|
|
@@ -50,7 +50,7 @@ class FarosProjects extends common_1.GitlabConverter {
|
|
|
50
50
|
model: 'tms_Project',
|
|
51
51
|
record: {
|
|
52
52
|
...projectKey,
|
|
53
|
-
name: project.name
|
|
53
|
+
name: (_a = project.name) !== null && _a !== void 0 ? _a : projectName,
|
|
54
54
|
description: faros_js_client_1.Utils.cleanAndTruncate(project.description),
|
|
55
55
|
createdAt: faros_js_client_1.Utils.toDate(project.created_at),
|
|
56
56
|
updatedAt: faros_js_client_1.Utils.toDate(project.updated_at),
|
|
@@ -60,7 +60,7 @@ class FarosProjects extends common_1.GitlabConverter {
|
|
|
60
60
|
model: 'tms_TaskBoard',
|
|
61
61
|
record: {
|
|
62
62
|
...projectKey,
|
|
63
|
-
name: project.name
|
|
63
|
+
name: (_b = project.name) !== null && _b !== void 0 ? _b : projectName,
|
|
64
64
|
},
|
|
65
65
|
});
|
|
66
66
|
res.push({
|
|
@@ -70,7 +70,7 @@ class FarosProjects extends common_1.GitlabConverter {
|
|
|
70
70
|
project: projectKey,
|
|
71
71
|
},
|
|
72
72
|
});
|
|
73
|
-
const isCommunity = ((
|
|
73
|
+
const isCommunity = ((_d = (_c = ctx === null || ctx === void 0 ? void 0 : ctx.config) === null || _c === void 0 ? void 0 : _c.edition_configs) === null || _d === void 0 ? void 0 : _d.edition) === types_1.Edition.COMMUNITY;
|
|
74
74
|
const writeInclusion = project.syncRepoData && !isCommunity;
|
|
75
75
|
if (writeInclusion) {
|
|
76
76
|
res.push({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faros_projects.js","sourceRoot":"","sources":["../../../src/converters/gitlab/faros_projects.ts"],"names":[],"mappings":";;;AAEA,qDAAsC;AACtC,mCAA+B;AAE/B,8CAA2C;AAE3C,qCAAyC;AAEzC,MAAa,aAAc,SAAQ,wBAAe;IAAlD;;QACW,sBAAiB,GAAoC;YAC5D,gBAAgB;YAChB,aAAa;YACb,eAAe;YACf,kCAAkC;SACnC,CAAC;IAkFJ,CAAC;IAhFC,KAAK,CAAC,OAAO,CACX,MAAqB,EACrB,GAAkB;;QAElB,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"faros_projects.js","sourceRoot":"","sources":["../../../src/converters/gitlab/faros_projects.ts"],"names":[],"mappings":";;;AAEA,qDAAsC;AACtC,mCAA+B;AAE/B,8CAA2C;AAE3C,qCAAyC;AAEzC,MAAa,aAAc,SAAQ,wBAAe;IAAlD;;QACW,sBAAiB,GAAoC;YAC5D,gBAAgB;YAChB,aAAa;YACb,eAAe;YACf,kCAAkC;SACnC,CAAC;IAkFJ,CAAC;IAhFC,KAAK,CAAC,OAAO,CACX,MAAqB,EACrB,GAAkB;;QAElB,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAA0B,CAAC;QACzD,MAAM,YAAY,GAAG;YACnB,GAAG,EAAE,OAAO,CAAC,QAAQ;YACrB,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM;SAC/B,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,gBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAE1C,MAAM,GAAG,GAAwB;YAC/B;gBACE,KAAK,EAAE,gBAAgB;gBACvB,MAAM,EAAE;oBACN,IAAI,EAAE,WAAW;oBACjB,GAAG,EAAE,WAAW;oBAChB,QAAQ,EAAE,OAAO,CAAC,mBAAmB;oBACrC,OAAO,EAAE,OAAO,CAAC,UAAU,KAAK,SAAS;oBACzC,WAAW,EAAE,uBAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,WA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M,0CAAE,eAAe,0CAAE,OAAO,MAAK,eAAO,CAAC,SAAS,CAAC;QAE9D,MAAM,cAAc,GAAG,OAAO,CAAC,YAAY,IAAI,CAAC,WAAW,CAAC;QAC5D,IAAI,cAAc,EAAE,CAAC;YACnB,GAAG,CAAC,IAAI,CAAC;gBACP,KAAK,EAAE,4BAA4B;gBACnC,MAAM,EAAE;oBACN,UAAU,EAAE,EAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAC;oBAC/D,SAAS,EAAE,EAAC,QAAQ,EAAE,UAAU,EAAC;iBAClC;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAxFD,sCAwFC"}
|
|
@@ -3,6 +3,6 @@ import { DestinationModel, DestinationRecord } from '../converter';
|
|
|
3
3
|
import { GitlabConverter } from './common';
|
|
4
4
|
export declare class FarosTags extends GitlabConverter {
|
|
5
5
|
readonly destinationModels: ReadonlyArray<DestinationModel>;
|
|
6
|
-
id(record: AirbyteRecord):
|
|
6
|
+
id(record: AirbyteRecord): string;
|
|
7
7
|
convert(record: AirbyteRecord): Promise<ReadonlyArray<DestinationRecord>>;
|
|
8
8
|
}
|
|
@@ -11,7 +11,7 @@ class FarosTags extends common_1.GitlabConverter {
|
|
|
11
11
|
id(record) {
|
|
12
12
|
var _a;
|
|
13
13
|
const tag = (_a = record === null || record === void 0 ? void 0 : record.record) === null || _a === void 0 ? void 0 : _a.data;
|
|
14
|
-
return `${tag === null || tag === void 0 ? void 0 : tag.
|
|
14
|
+
return `${tag === null || tag === void 0 ? void 0 : tag.project_path}_${tag === null || tag === void 0 ? void 0 : tag.name}`;
|
|
15
15
|
}
|
|
16
16
|
async convert(record) {
|
|
17
17
|
const source = this.streamName.source;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faros_tags.js","sourceRoot":"","sources":["../../../src/converters/gitlab/faros_tags.ts"],"names":[],"mappings":";;;
|
|
1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 +1,8 @@
|
|
|
1
1
|
import { AirbyteRecord } from 'faros-airbyte-cdk';
|
|
2
|
-
import { DestinationModel, DestinationRecord
|
|
2
|
+
import { DestinationModel, DestinationRecord } from '../converter';
|
|
3
3
|
import { GitlabConverter } from './common';
|
|
4
4
|
export declare class FarosUsers extends GitlabConverter {
|
|
5
5
|
readonly destinationModels: ReadonlyArray<DestinationModel>;
|
|
6
|
-
|
|
6
|
+
id(record: AirbyteRecord): string;
|
|
7
|
+
convert(record: AirbyteRecord): Promise<ReadonlyArray<DestinationRecord>>;
|
|
7
8
|
}
|
|
@@ -12,7 +12,12 @@ class FarosUsers extends common_1.GitlabConverter {
|
|
|
12
12
|
'vcs_UserEmail',
|
|
13
13
|
];
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
id(record) {
|
|
16
|
+
var _a;
|
|
17
|
+
const user = (_a = record === null || record === void 0 ? void 0 : record.record) === null || _a === void 0 ? void 0 : _a.data;
|
|
18
|
+
return `${user === null || user === void 0 ? void 0 : user.group_id}_${user === null || user === void 0 ? void 0 : user.username}`;
|
|
19
|
+
}
|
|
20
|
+
async convert(record) {
|
|
16
21
|
const user = record.record.data;
|
|
17
22
|
if (!(user === null || user === void 0 ? void 0 : user.username)) {
|
|
18
23
|
return [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faros_users.js","sourceRoot":"","sources":["../../../src/converters/gitlab/faros_users.ts"],"names":[],"mappings":";;;AAEA,mCAAuD;AAGvD,qCAAyC;AAEzC,MAAa,UAAW,SAAQ,wBAAe;IAA/C;;QACW,sBAAiB,GAAoC;YAC5D,gBAAgB;YAChB,UAAU;YACV,eAAe;SAChB,CAAC;
|
|
1
|
+
{"version":3,"file":"faros_users.js","sourceRoot":"","sources":["../../../src/converters/gitlab/faros_users.ts"],"names":[],"mappings":";;;AAEA,mCAAuD;AAGvD,qCAAyC;AAEzC,MAAa,UAAW,SAAQ,wBAAe;IAA/C;;QACW,sBAAiB,GAAoC;YAC5D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AU,CAAC,MAAM,EAAC;oBAC1D,YAAY,EAAE;wBACZ,GAAG,EAAE,IAAA,gBAAO,EAAC,IAAI,CAAC,QAAQ,CAAC;wBAC3B,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM;qBAC/B;iBACF;aACF,CAAC,CAAC;QACL,CAAC;QAED,qBAAqB;QACrB,GAAG,CAAC,IAAI,CAAC;YACP,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,IAAA,eAAM,EACZ;gBACE,GAAG,EAAE,IAAI,CAAC,QAAQ;gBAClB,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM;gBAC9B,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,IAAI,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAC;aACzC,EACD,CAAC,KAAK,EAAE,EAAE,CAAC,IAAA,cAAK,EAAC,KAAK,CAAC,IAAI,IAAA,gBAAO,EAAC,KAAK,CAAC,CAC1C;SACF,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAjED,gCAiEC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AirbyteRecord } from 'faros-airbyte-cdk';
|
|
2
|
+
import { DestinationModel, DestinationRecord } from '../converter';
|
|
3
|
+
import { GoogleDriveConverter } from './common';
|
|
4
|
+
export declare class Activity extends GoogleDriveConverter {
|
|
5
|
+
private readonly seenItems;
|
|
6
|
+
readonly destinationModels: ReadonlyArray<DestinationModel>;
|
|
7
|
+
convert(record: AirbyteRecord): Promise<ReadonlyArray<DestinationRecord>>;
|
|
8
|
+
onProcessingComplete(): Promise<ReadonlyArray<DestinationRecord>>;
|
|
9
|
+
private getDocumentType;
|
|
10
|
+
private getActivityType;
|
|
11
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Activity = void 0;
|
|
4
|
+
const common_1 = require("faros-airbyte-common/common");
|
|
5
|
+
const faros_js_client_1 = require("faros-js-client");
|
|
6
|
+
const common_2 = require("./common");
|
|
7
|
+
var ActionType;
|
|
8
|
+
(function (ActionType) {
|
|
9
|
+
ActionType["Create"] = "create";
|
|
10
|
+
ActionType["Edit"] = "edit";
|
|
11
|
+
ActionType["Move"] = "move";
|
|
12
|
+
ActionType["Rename"] = "rename";
|
|
13
|
+
ActionType["Delete"] = "delete";
|
|
14
|
+
ActionType["Restore"] = "restore";
|
|
15
|
+
ActionType["PermissionChange"] = "permissionChange";
|
|
16
|
+
ActionType["Comment"] = "comment";
|
|
17
|
+
ActionType["Custom"] = "custom";
|
|
18
|
+
})(ActionType || (ActionType = {}));
|
|
19
|
+
class Activity extends common_2.GoogleDriveConverter {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.seenItems = {};
|
|
23
|
+
this.destinationModels = [
|
|
24
|
+
'dms_Activity',
|
|
25
|
+
'dms_Document',
|
|
26
|
+
'dms_Location',
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
async convert(record) {
|
|
30
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
31
|
+
const source = this.streamName.source;
|
|
32
|
+
const activity = record.record.data;
|
|
33
|
+
const res = [];
|
|
34
|
+
const action = Object.keys(activity.primaryActionDetail || {})[0];
|
|
35
|
+
const userId = (_e = (_d = (_c = (_b = (_a = activity.actors) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.knownUser) === null || _d === void 0 ? void 0 : _d.personName) === null || _e === void 0 ? void 0 : _e.split('people/')[1];
|
|
36
|
+
const target = (_f = activity.targets) === null || _f === void 0 ? void 0 : _f[0];
|
|
37
|
+
const driveItem = (target === null || target === void 0 ? void 0 : target.driveItem) || ((_g = target === null || target === void 0 ? void 0 : target.fileComment) === null || _g === void 0 ? void 0 : _g.parent);
|
|
38
|
+
const isFile = !!(driveItem === null || driveItem === void 0 ? void 0 : driveItem.driveFile);
|
|
39
|
+
if (!action || !userId || !driveItem || !isFile) {
|
|
40
|
+
return res;
|
|
41
|
+
}
|
|
42
|
+
const itemId = driveItem.name.split('items/')[1];
|
|
43
|
+
const timestamp = (_h = faros_js_client_1.Utils.toDate(activity.timestamp)) === null || _h === void 0 ? void 0 : _h.getTime();
|
|
44
|
+
if (timestamp > ((_k = (_j = this.seenItems[itemId]) === null || _j === void 0 ? void 0 : _j.latestTimestamp) !== null && _k !== void 0 ? _k : 0)) {
|
|
45
|
+
this.seenItems[itemId] = {
|
|
46
|
+
...driveItem,
|
|
47
|
+
latestTimestamp: timestamp,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
if (action === ActionType.Create) {
|
|
51
|
+
this.seenItems[itemId].createdAt = activity.timestamp;
|
|
52
|
+
}
|
|
53
|
+
res.push({
|
|
54
|
+
model: 'dms_Activity',
|
|
55
|
+
record: {
|
|
56
|
+
uid: (0, common_1.digest)([action, userId, itemId, activity.timestamp].join('__')),
|
|
57
|
+
source,
|
|
58
|
+
timestamp: activity.timestamp,
|
|
59
|
+
document: {
|
|
60
|
+
uid: itemId,
|
|
61
|
+
source,
|
|
62
|
+
},
|
|
63
|
+
user: {
|
|
64
|
+
uid: userId,
|
|
65
|
+
source,
|
|
66
|
+
},
|
|
67
|
+
type: this.getActivityType(action),
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
return res;
|
|
71
|
+
}
|
|
72
|
+
async onProcessingComplete() {
|
|
73
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
74
|
+
const source = this.streamName.source;
|
|
75
|
+
const res = [];
|
|
76
|
+
const seenOwners = {};
|
|
77
|
+
for (const [itemId, item] of Object.entries(this.seenItems)) {
|
|
78
|
+
const ownerId = (_d = (_c = (_b = (_a = item.owner) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.knownUser) === null || _c === void 0 ? void 0 : _c.personName) !== null && _d !== void 0 ? _d : (_f = (_e = item.owner) === null || _e === void 0 ? void 0 : _e.drive) === null || _f === void 0 ? void 0 : _f.name;
|
|
79
|
+
if (ownerId &&
|
|
80
|
+
item.latestTimestamp > ((_h = (_g = seenOwners[ownerId]) === null || _g === void 0 ? void 0 : _g.latestTimestamp) !== null && _h !== void 0 ? _h : 0)) {
|
|
81
|
+
seenOwners[ownerId] = {
|
|
82
|
+
...item.owner,
|
|
83
|
+
latestTimestamp: item.latestTimestamp,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
res.push({
|
|
87
|
+
model: 'dms_Document',
|
|
88
|
+
record: {
|
|
89
|
+
uid: itemId,
|
|
90
|
+
source,
|
|
91
|
+
title: item.title,
|
|
92
|
+
type: this.getDocumentType(item.mimeType),
|
|
93
|
+
location: {
|
|
94
|
+
uid: ownerId,
|
|
95
|
+
source,
|
|
96
|
+
},
|
|
97
|
+
...(item.createdAt && { createdAt: item.createdAt }),
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
for (const [ownerId, owner] of Object.entries(seenOwners)) {
|
|
102
|
+
if ((_j = owner.user) === null || _j === void 0 ? void 0 : _j.knownUser) {
|
|
103
|
+
res.push({
|
|
104
|
+
model: 'dms_Location',
|
|
105
|
+
record: {
|
|
106
|
+
uid: ownerId,
|
|
107
|
+
source,
|
|
108
|
+
type: { category: 'Personal', detail: 'My Drive' },
|
|
109
|
+
owner: {
|
|
110
|
+
uid: ownerId.split('people/')[1],
|
|
111
|
+
source,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
else if (owner.drive) {
|
|
117
|
+
res.push({
|
|
118
|
+
model: 'dms_Location',
|
|
119
|
+
record: {
|
|
120
|
+
uid: ownerId,
|
|
121
|
+
source,
|
|
122
|
+
title: owner.drive.title,
|
|
123
|
+
type: { category: 'Shared', detail: 'Shared drives' },
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return res;
|
|
129
|
+
}
|
|
130
|
+
getDocumentType(mimeType) {
|
|
131
|
+
if ([
|
|
132
|
+
'application/vnd.google-apps.spreadsheet',
|
|
133
|
+
'application/vnd.ms-excel',
|
|
134
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
135
|
+
].includes(mimeType)) {
|
|
136
|
+
return { category: 'Spreadsheet', detail: mimeType };
|
|
137
|
+
}
|
|
138
|
+
if ([
|
|
139
|
+
'application/vnd.google-apps.document',
|
|
140
|
+
'application/vnd.ms-word',
|
|
141
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
142
|
+
'application/pdf',
|
|
143
|
+
].includes(mimeType)) {
|
|
144
|
+
return { category: 'Document', detail: mimeType };
|
|
145
|
+
}
|
|
146
|
+
if ([
|
|
147
|
+
'application/vnd.google-apps.presentation',
|
|
148
|
+
'application/vnd.ms-powerpoint',
|
|
149
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
150
|
+
].includes(mimeType)) {
|
|
151
|
+
return { category: 'Presentation', detail: mimeType };
|
|
152
|
+
}
|
|
153
|
+
return { category: 'Custom', detail: mimeType };
|
|
154
|
+
}
|
|
155
|
+
getActivityType(action) {
|
|
156
|
+
if (action === ActionType.Create) {
|
|
157
|
+
return { category: 'Create', detail: action };
|
|
158
|
+
}
|
|
159
|
+
if (action === ActionType.Edit) {
|
|
160
|
+
return { category: 'Edit', detail: action };
|
|
161
|
+
}
|
|
162
|
+
if (action === ActionType.Move) {
|
|
163
|
+
return { category: 'Move', detail: action };
|
|
164
|
+
}
|
|
165
|
+
if (action === ActionType.Rename) {
|
|
166
|
+
return { category: 'Rename', detail: action };
|
|
167
|
+
}
|
|
168
|
+
if (action === ActionType.Delete) {
|
|
169
|
+
return { category: 'Delete', detail: action };
|
|
170
|
+
}
|
|
171
|
+
if (action === ActionType.Restore) {
|
|
172
|
+
return { category: 'Restore', detail: action };
|
|
173
|
+
}
|
|
174
|
+
if (action === ActionType.PermissionChange) {
|
|
175
|
+
return { category: 'PermissionChange', detail: action };
|
|
176
|
+
}
|
|
177
|
+
if (action === ActionType.Comment) {
|
|
178
|
+
return { category: 'Comment', detail: action };
|
|
179
|
+
}
|
|
180
|
+
return { category: 'Custom', detail: action };
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
exports.Activity = Activity;
|
|
184
|
+
//# sourceMappingURL=activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.js","sourceRoot":"","sources":["../../../src/converters/googledrive/activity.ts"],"names":[],"mappings":";;;AACA,wDAAmD;AAEnD,qDAAsC;AAGtC,qCAA8C;AAE9C,IAAK,UAUJ;AAVD,WAAK,UAAU;IACb,+BAAiB,CAAA;IACjB,2BAAa,CAAA;IACb,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,mDAAqC,CAAA;IACrC,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;AACnB,CAAC,EAVI,UAAU,KAAV,UAAU,QAUd;AAOD,MAAa,QAAS,SAAQ,6BAAoB;IAAlD;;QACmB,cAAS,GAA6B,EAAE,CAAC;QAEjD,sBAAiB,GAAoC;YAC5D,cAAc;YACd,cAAc;YACd,cAAc;SACf,CAAC;IAqLJ,CAAC;IAnLC,KAAK,CAAC,OAAO,CACX,MAAqB;;QAErB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAA0B,CAAC;QAE1D,MAAM,GAAG,GAAwB,EAAE,CAAC;QAEpC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,mBAAmB,IA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AAC;YACjC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC;QAC9C,CAAC;QACD,IAAI,MAAM,KAAK,UAAU,CAAC,MAAM,EAAE,CAAC;YACjC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC;QAC9C,CAAC;QACD,IAAI,MAAM,KAAK,UAAU,CAAC,OAAO,EAAE,CAAC;YAClC,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC;QAC/C,CAAC;QACD,IAAI,MAAM,KAAK,UAAU,CAAC,gBAAgB,EAAE,CAAC;YAC3C,OAAO,EAAC,QAAQ,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC;QACxD,CAAC;QACD,IAAI,MAAM,KAAK,UAAU,CAAC,OAAO,EAAE,CAAC;YAClC,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC;QAC/C,CAAC;QACD,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC;IAC9C,CAAC;CACF;AA5LD,4BA4LC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AirbyteRecord } from 'faros-airbyte-cdk';
|
|
2
|
+
import { Converter } from '../converter';
|
|
3
|
+
/** GoogleDrive converter base */
|
|
4
|
+
export declare abstract class GoogleDriveConverter extends Converter {
|
|
5
|
+
source: string;
|
|
6
|
+
/** Every GoogleDrive record have id property */
|
|
7
|
+
id(record: AirbyteRecord): any;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GoogleDriveConverter = void 0;
|
|
4
|
+
const converter_1 = require("../converter");
|
|
5
|
+
/** GoogleDrive converter base */
|
|
6
|
+
class GoogleDriveConverter extends converter_1.Converter {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.source = 'GoogleDrive';
|
|
10
|
+
}
|
|
11
|
+
/** Every GoogleDrive record have id property */
|
|
12
|
+
id(record) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
return (_b = (_a = record === null || record === void 0 ? void 0 : record.record) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.id;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.GoogleDriveConverter = GoogleDriveConverter;
|
|
18
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/converters/googledrive/common.ts"],"names":[],"mappings":";;;AAEA,4CAAuC;AAEvC,iCAAiC;AACjC,MAAsB,oBAAqB,SAAQ,qBAAS;IAA5D;;QACE,WAAM,GAAG,aAAa,CAAC;IAMzB,CAAC;IAJC,gDAAgD;IAChD,EAAE,CAAC,MAAqB;;QACtB,OAAO,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,0CAAE,IAAI,0CAAE,EAAE,CAAC;IAClC,CAAC;CACF;AAPD,oDAOC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AirbyteRecord } from 'faros-airbyte-cdk';
|
|
2
|
+
import { DestinationModel, DestinationRecord } from '../converter';
|
|
3
|
+
import { GoogleDriveConverter } from './common';
|
|
4
|
+
export declare class Workspace extends GoogleDriveConverter {
|
|
5
|
+
readonly destinationModels: ReadonlyArray<DestinationModel>;
|
|
6
|
+
convert(record: AirbyteRecord): Promise<ReadonlyArray<DestinationRecord>>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Workspace = void 0;
|
|
4
|
+
const faros_js_client_1 = require("faros-js-client");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
class Workspace extends common_1.GoogleDriveConverter {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.destinationModels = [
|
|
10
|
+
'dms_Organization',
|
|
11
|
+
];
|
|
12
|
+
}
|
|
13
|
+
async convert(record) {
|
|
14
|
+
var _a;
|
|
15
|
+
const source = this.streamName.source;
|
|
16
|
+
const workspace = record.record.data;
|
|
17
|
+
return [
|
|
18
|
+
{
|
|
19
|
+
model: 'dms_Organization',
|
|
20
|
+
record: {
|
|
21
|
+
uid: workspace.id,
|
|
22
|
+
source,
|
|
23
|
+
name: (_a = workspace.postalAddress) === null || _a === void 0 ? void 0 : _a.organizationName,
|
|
24
|
+
domain: workspace.customerDomain,
|
|
25
|
+
createdAt: faros_js_client_1.Utils.toDate(workspace.customerCreationTime),
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Workspace = Workspace;
|
|
32
|
+
//# sourceMappingURL=workspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../src/converters/googledrive/workspace.ts"],"names":[],"mappings":";;;AAEA,qDAAsC;AAGtC,qCAA8C;AAE9C,MAAa,SAAU,SAAQ,6BAAoB;IAAnD;;QACW,sBAAiB,GAAoC;YAC5D,kBAAkB;SACnB,CAAC;IAqBJ,CAAC;IAnBC,KAAK,CAAC,OAAO,CACX,MAAqB;;QAErB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACtC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAyB,CAAC;QAE1D,OAAO;YACL;gBACE,KAAK,EAAE,kBAAkB;gBACzB,MAAM,EAAE;oBACN,GAAG,EAAE,SAAS,CAAC,EAAE;oBACjB,MAAM;oBACN,IAAI,EAAE,MAAA,SAAS,CAAC,aAAa,0CAAE,gBAAgB;oBAC/C,MAAM,EAAE,SAAS,CAAC,cAAc;oBAChC,SAAS,EAAE,uBAAK,CAAC,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;iBACxD;aACF;SACF,CAAC;IACJ,CAAC;CACF;AAxBD,8BAwBC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AirbyteRecord } from 'faros-airbyte-cdk';
|
|
2
|
+
import { DestinationModel, DestinationRecord } from '../converter';
|
|
3
|
+
import { GoogleDriveConverter } from './common';
|
|
4
|
+
export declare class WorkspaceUsers extends GoogleDriveConverter {
|
|
5
|
+
readonly destinationModels: ReadonlyArray<DestinationModel>;
|
|
6
|
+
convert(record: AirbyteRecord): Promise<ReadonlyArray<DestinationRecord>>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkspaceUsers = void 0;
|
|
4
|
+
const faros_js_client_1 = require("faros-js-client");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
class WorkspaceUsers extends common_1.GoogleDriveConverter {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.destinationModels = [
|
|
10
|
+
'dms_User',
|
|
11
|
+
'dms_Membership',
|
|
12
|
+
];
|
|
13
|
+
}
|
|
14
|
+
async convert(record) {
|
|
15
|
+
var _a;
|
|
16
|
+
const source = this.streamName.source;
|
|
17
|
+
const user = record.record.data;
|
|
18
|
+
return [
|
|
19
|
+
{
|
|
20
|
+
model: 'dms_User',
|
|
21
|
+
record: {
|
|
22
|
+
uid: user.id,
|
|
23
|
+
source,
|
|
24
|
+
name: (_a = user.name) === null || _a === void 0 ? void 0 : _a.fullName,
|
|
25
|
+
email: user.primaryEmail,
|
|
26
|
+
type: {
|
|
27
|
+
category: 'User',
|
|
28
|
+
detail: null,
|
|
29
|
+
},
|
|
30
|
+
createdAt: faros_js_client_1.Utils.toDate(user.creationTime),
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
model: 'dms_Membership',
|
|
35
|
+
record: {
|
|
36
|
+
organization: {
|
|
37
|
+
uid: user.customerId,
|
|
38
|
+
source,
|
|
39
|
+
},
|
|
40
|
+
user: {
|
|
41
|
+
uid: user.id,
|
|
42
|
+
source,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.WorkspaceUsers = WorkspaceUsers;
|
|
50
|
+
//# sourceMappingURL=workspace_users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace_users.js","sourceRoot":"","sources":["../../../src/converters/googledrive/workspace_users.ts"],"names":[],"mappings":";;;AAEA,qDAAsC;AAGtC,qCAA8C;AAE9C,MAAa,cAAe,SAAQ,6BAAoB;IAAxD;;QACW,sBAAiB,GAAoC;YAC5D,UAAU;YACV,gBAAgB;SACjB,CAAC;IAsCJ,CAAC;IApCC,KAAK,CAAC,OAAO,CACX,MAAqB;;QAErB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QACtC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAqB,CAAC;QAEjD,OAAO;YACL;gBACE,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE;oBACN,GAAG,EAAE,IAAI,CAAC,EAAE;oBACZ,MAAM;oBACN,IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ;oBACzB,KAAK,EAAE,IAAI,CAAC,YAAY;oBACxB,IAAI,EAAE;wBACJ,QAAQ,EAAE,MAAM;wBAChB,MAAM,EAAE,IAAI;qBACb;oBACD,SAAS,EAAE,uBAAK,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;iBAC3C;aACF;YACD;gBACE,KAAK,EAAE,gBAAgB;gBACvB,MAAM,EAAE;oBACN,YAAY,EAAE;wBACZ,GAAG,EAAE,IAAI,CAAC,UAAU;wBACpB,MAAM;qBACP;oBACD,IAAI,EAAE;wBACJ,GAAG,EAAE,IAAI,CAAC,EAAE;wBACZ,MAAM;qBACP;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF;AA1CD,wCA0CC"}
|