farseer-cli 1.0.10 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/commands/app.js +348 -344
- package/dist/commands/app.js.map +7 -0
- package/dist/commands/apps.js +110 -82
- package/dist/commands/apps.js.map +7 -0
- package/dist/commands/cells.js +161 -0
- package/dist/commands/cells.js.map +7 -0
- package/dist/commands/checkout.js +140 -155
- package/dist/commands/checkout.js.map +7 -0
- package/dist/commands/config.js +128 -126
- package/dist/commands/config.js.map +7 -0
- package/dist/commands/dashboards.js +130 -0
- package/dist/commands/dashboards.js.map +7 -0
- package/dist/commands/diff.js +171 -193
- package/dist/commands/diff.js.map +7 -0
- package/dist/commands/dimensions.js +222 -119
- package/dist/commands/dimensions.js.map +7 -0
- package/dist/commands/files.js +96 -77
- package/dist/commands/files.js.map +7 -0
- package/dist/commands/formula.js +116 -0
- package/dist/commands/formula.js.map +7 -0
- package/dist/commands/install.js +74 -76
- package/dist/commands/install.js.map +7 -0
- package/dist/commands/list.js +91 -73
- package/dist/commands/list.js.map +7 -0
- package/dist/commands/login.js +137 -98
- package/dist/commands/login.js.map +7 -0
- package/dist/commands/logout.js +59 -41
- package/dist/commands/logout.js.map +7 -0
- package/dist/commands/mcp-server.js +36 -23
- package/dist/commands/mcp-server.js.map +7 -0
- package/dist/commands/model.js +186 -175
- package/dist/commands/model.js.map +7 -0
- package/dist/commands/pull.js +264 -274
- package/dist/commands/pull.js.map +7 -0
- package/dist/commands/push.js +209 -221
- package/dist/commands/push.js.map +7 -0
- package/dist/commands/run.js +276 -321
- package/dist/commands/run.js.map +7 -0
- package/dist/commands/sheets.js +200 -0
- package/dist/commands/sheets.js.map +7 -0
- package/dist/commands/status.js +149 -169
- package/dist/commands/status.js.map +7 -0
- package/dist/commands/variables.js +247 -188
- package/dist/commands/variables.js.map +7 -0
- package/dist/commands/whoami.js +65 -44
- package/dist/commands/whoami.js.map +7 -0
- package/dist/index.js +179 -115
- package/dist/index.js.map +7 -0
- package/dist/mcp/index.js +33 -16
- package/dist/mcp/index.js.map +7 -0
- package/dist/mcp/prompts/workflows.js +191 -145
- package/dist/mcp/prompts/workflows.js.map +7 -0
- package/dist/mcp/resources/documentation.js +158 -148
- package/dist/mcp/resources/documentation.js.map +7 -0
- package/dist/mcp/server.js +56 -33
- package/dist/mcp/server.js.map +7 -0
- package/dist/mcp/tools/appTools.js +309 -277
- package/dist/mcp/tools/appTools.js.map +7 -0
- package/dist/mcp/tools/authTools.js +130 -121
- package/dist/mcp/tools/authTools.js.map +7 -0
- package/dist/mcp/tools/cellTools.js +148 -0
- package/dist/mcp/tools/cellTools.js.map +7 -0
- package/dist/mcp/tools/dashboardTools.js +133 -0
- package/dist/mcp/tools/dashboardTools.js.map +7 -0
- package/dist/mcp/tools/dataTools.js +270 -267
- package/dist/mcp/tools/dataTools.js.map +7 -0
- package/dist/mcp/tools/modelTools.js +575 -229
- package/dist/mcp/tools/modelTools.js.map +7 -0
- package/dist/mcp/tools/runTools.js +201 -203
- package/dist/mcp/tools/runTools.js.map +7 -0
- package/dist/mcp/tools/sheetTools.js +240 -0
- package/dist/mcp/tools/sheetTools.js.map +7 -0
- package/dist/mcp/tools/syncTools.js +335 -314
- package/dist/mcp/tools/syncTools.js.map +7 -0
- package/dist/mcp/utils/helpers.js +117 -123
- package/dist/mcp/utils/helpers.js.map +7 -0
- package/dist/services/appSyncService.js +381 -437
- package/dist/services/appSyncService.js.map +7 -0
- package/dist/services/configService.js +154 -143
- package/dist/services/configService.js.map +7 -0
- package/dist/services/farseerApi.js +422 -399
- package/dist/services/farseerApi.js.map +7 -0
- package/dist/services/farseerFactory.js +208 -273
- package/dist/services/farseerFactory.js.map +7 -0
- package/dist/services/farseerService.js +467 -486
- package/dist/services/farseerService.js.map +7 -0
- package/dist/services/syncService.js +661 -731
- package/dist/services/syncService.js.map +7 -0
- package/dist/utils/constants.js +52 -19
- package/dist/utils/constants.js.map +7 -0
- package/dist/utils/entityResolver.js +78 -0
- package/dist/utils/entityResolver.js.map +7 -0
- package/dist/utils/helpers.js +331 -365
- package/dist/utils/helpers.js.map +7 -0
- package/dist/utils/logger.js +74 -42
- package/dist/utils/logger.js.map +7 -0
- package/package.json +3 -2
|
@@ -1,382 +1,362 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var farseerService_exports = {};
|
|
30
|
+
__export(farseerService_exports, {
|
|
31
|
+
FarseerService: () => FarseerService,
|
|
32
|
+
loginWithBrowser: () => loginWithBrowser,
|
|
33
|
+
refreshAccessToken: () => refreshAccessToken,
|
|
34
|
+
resolveRealm: () => resolveRealm
|
|
17
35
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.FarseerService = void 0;
|
|
37
|
-
exports.loginWithPassword = loginWithPassword;
|
|
38
|
-
exports.loginWithBrowser = loginWithBrowser;
|
|
39
|
-
exports.refreshAccessToken = refreshAccessToken;
|
|
40
|
-
const farseer = __importStar(require("farseer-client"));
|
|
41
|
-
const configService_1 = require("./configService");
|
|
36
|
+
module.exports = __toCommonJS(farseerService_exports);
|
|
37
|
+
var farseer = __toESM(require("farseer-client"));
|
|
38
|
+
var import_configService = require("./configService");
|
|
42
39
|
class FarseerService {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
catch {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
async getFilesFolder() {
|
|
84
|
-
try {
|
|
85
|
-
const item = await this.client.getItemByPath(['Files']);
|
|
86
|
-
return {
|
|
87
|
-
id: item.id,
|
|
88
|
-
name: item.name,
|
|
89
|
-
type: item.type,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
catch {
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
async listFiles(folderPath = ['Files']) {
|
|
97
|
-
const files = [];
|
|
98
|
-
try {
|
|
99
|
-
const folder = await this.client.getItemByPath(folderPath);
|
|
100
|
-
const folderContent = await this.client.folders.listItemsBatch([{ id: folder.id }]);
|
|
101
|
-
for (const item of folderContent[0]?.items || []) {
|
|
102
|
-
// Build path relative to Files folder
|
|
103
|
-
const itemPath = [...folderPath.slice(1), item.name].join('/');
|
|
104
|
-
if (item.type === farseer.FolderItemType.Folder) {
|
|
105
|
-
// Recursively get files from subfolders
|
|
106
|
-
const subFiles = await this.listFiles([...folderPath, item.name]);
|
|
107
|
-
files.push(...subFiles);
|
|
108
|
-
}
|
|
109
|
-
else if (item.type === farseer.FolderItemType.FarseerFile && 'reference' in item) {
|
|
110
|
-
// Accept all file types
|
|
111
|
-
files.push({
|
|
112
|
-
name: item.name,
|
|
113
|
-
path: itemPath,
|
|
114
|
-
reference: item.reference,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
catch (error) {
|
|
120
|
-
// Folder might not exist
|
|
121
|
-
return [];
|
|
122
|
-
}
|
|
123
|
-
return files;
|
|
124
|
-
}
|
|
125
|
-
async getFileContent(reference) {
|
|
126
|
-
const blob = await this.client.farseerFiles.get(reference);
|
|
127
|
-
return await blob.text();
|
|
128
|
-
}
|
|
129
|
-
async createFile(content, fileName, folderPath = ['Files']) {
|
|
130
|
-
// Ensure folder structure exists
|
|
131
|
-
await this.ensureFolderPath(folderPath);
|
|
132
|
-
const folder = await this.client.getItemByPath(folderPath);
|
|
133
|
-
const blob = content instanceof Buffer ? new Blob([content]) : new Blob([content]);
|
|
134
|
-
const file = new farseer.WebFile([blob], fileName);
|
|
135
|
-
await this.client.farseerFiles.create(file, 'GENERAL', folder.id.toString());
|
|
136
|
-
}
|
|
137
|
-
async updateFile(reference, content, fileName) {
|
|
138
|
-
const blob = content instanceof Buffer ? new Blob([content]) : new Blob([content]);
|
|
139
|
-
const file = new farseer.WebFile([blob], fileName);
|
|
140
|
-
await this.client.farseerFiles.update(reference, file);
|
|
40
|
+
constructor(credential) {
|
|
41
|
+
this.credential = credential;
|
|
42
|
+
this.client = new farseer.FarseerClient({
|
|
43
|
+
basePath: credential.basePath,
|
|
44
|
+
headers: {
|
|
45
|
+
"X-TENANT-ID": credential.tenantId,
|
|
46
|
+
"X-API-KEY": credential.apiKey
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
static fromUserAuth(tenant, basePath) {
|
|
51
|
+
const auth = (0, import_configService.getUserAuth)();
|
|
52
|
+
if (!auth) return null;
|
|
53
|
+
const service = new FarseerService({
|
|
54
|
+
type: "apiKey",
|
|
55
|
+
tenantId: tenant,
|
|
56
|
+
apiKey: "",
|
|
57
|
+
basePath
|
|
58
|
+
});
|
|
59
|
+
service.client = new farseer.FarseerClient({
|
|
60
|
+
basePath,
|
|
61
|
+
headers: {
|
|
62
|
+
"X-TENANT-ID": tenant
|
|
63
|
+
},
|
|
64
|
+
accessToken: auth.accessToken
|
|
65
|
+
});
|
|
66
|
+
return service;
|
|
67
|
+
}
|
|
68
|
+
async testConnection() {
|
|
69
|
+
try {
|
|
70
|
+
await this.client.getItemByPath(["Files"]);
|
|
71
|
+
return true;
|
|
72
|
+
} catch {
|
|
73
|
+
return false;
|
|
141
74
|
}
|
|
142
|
-
|
|
143
|
-
|
|
75
|
+
}
|
|
76
|
+
async getFilesFolder() {
|
|
77
|
+
try {
|
|
78
|
+
const item = await this.client.getItemByPath(["Files"]);
|
|
79
|
+
return {
|
|
80
|
+
id: item.id,
|
|
81
|
+
name: item.name,
|
|
82
|
+
type: item.type
|
|
83
|
+
};
|
|
84
|
+
} catch {
|
|
85
|
+
return null;
|
|
144
86
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
}
|
|
87
|
+
}
|
|
88
|
+
async listFiles(folderPath = ["Files"]) {
|
|
89
|
+
const files = [];
|
|
90
|
+
try {
|
|
91
|
+
const folder = await this.client.getItemByPath(folderPath);
|
|
92
|
+
const folderContent = await this.client.folders.listItemsBatch([{ id: folder.id }]);
|
|
93
|
+
for (const item of folderContent[0]?.items || []) {
|
|
94
|
+
const itemPath = [...folderPath.slice(1), item.name].join("/");
|
|
95
|
+
if (item.type === farseer.FolderItemType.Folder) {
|
|
96
|
+
const subFiles = await this.listFiles([...folderPath, item.name]);
|
|
97
|
+
files.push(...subFiles);
|
|
98
|
+
} else if (item.type === farseer.FolderItemType.FarseerFile && "reference" in item) {
|
|
99
|
+
files.push({
|
|
100
|
+
name: item.name,
|
|
101
|
+
path: itemPath,
|
|
102
|
+
reference: item.reference
|
|
103
|
+
});
|
|
164
104
|
}
|
|
105
|
+
}
|
|
106
|
+
} catch (error) {
|
|
107
|
+
return [];
|
|
165
108
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
109
|
+
return files;
|
|
110
|
+
}
|
|
111
|
+
async getFileContent(reference) {
|
|
112
|
+
const blob = await this.client.farseerFiles.get(reference);
|
|
113
|
+
return await blob.text();
|
|
114
|
+
}
|
|
115
|
+
async createFile(content, fileName, folderPath = ["Files"]) {
|
|
116
|
+
await this.ensureFolderPath(folderPath);
|
|
117
|
+
const folder = await this.client.getItemByPath(folderPath);
|
|
118
|
+
const blob = content instanceof Buffer ? new Blob([content]) : new Blob([content]);
|
|
119
|
+
const file = new farseer.WebFile([blob], fileName);
|
|
120
|
+
await this.client.farseerFiles.create(file, "GENERAL", folder.id.toString());
|
|
121
|
+
}
|
|
122
|
+
async updateFile(reference, content, fileName) {
|
|
123
|
+
const blob = content instanceof Buffer ? new Blob([content]) : new Blob([content]);
|
|
124
|
+
const file = new farseer.WebFile([blob], fileName);
|
|
125
|
+
await this.client.farseerFiles.update(reference, file);
|
|
126
|
+
}
|
|
127
|
+
async deleteFile(reference) {
|
|
128
|
+
await this.client.farseerFiles.remove(reference);
|
|
129
|
+
}
|
|
130
|
+
async ensureFolderPath(folderPath) {
|
|
131
|
+
const currentPath = [];
|
|
132
|
+
for (const segment of folderPath) {
|
|
133
|
+
currentPath.push(segment);
|
|
134
|
+
try {
|
|
135
|
+
await this.client.getItemByPath(currentPath);
|
|
136
|
+
} catch {
|
|
137
|
+
if (currentPath.length > 1) {
|
|
138
|
+
const parentPath = currentPath.slice(0, -1);
|
|
139
|
+
const parent = await this.client.getItemByPath(parentPath);
|
|
140
|
+
await this.client.folders.create({
|
|
141
|
+
parentId: parent.id,
|
|
142
|
+
name: segment,
|
|
143
|
+
allowedTypes: []
|
|
144
|
+
});
|
|
185
145
|
}
|
|
186
|
-
|
|
146
|
+
}
|
|
187
147
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
catch (error) {
|
|
205
|
-
// Metadata fetch failed - non-critical, continue without it
|
|
206
|
-
return null;
|
|
148
|
+
}
|
|
149
|
+
async getFileByPath(filePath) {
|
|
150
|
+
const pathParts = ["Files", ...filePath.split("/")];
|
|
151
|
+
const fileName = pathParts.pop();
|
|
152
|
+
const folderPath = pathParts;
|
|
153
|
+
try {
|
|
154
|
+
const folder = await this.client.getItemByPath(folderPath);
|
|
155
|
+
const folderContent = await this.client.folders.listItemsBatch([{ id: folder.id }]);
|
|
156
|
+
for (const item of folderContent[0]?.items || []) {
|
|
157
|
+
if (item.name === fileName && item.type === farseer.FolderItemType.FarseerFile && "reference" in item) {
|
|
158
|
+
return {
|
|
159
|
+
name: item.name,
|
|
160
|
+
path: filePath,
|
|
161
|
+
reference: item.reference
|
|
162
|
+
};
|
|
207
163
|
}
|
|
164
|
+
}
|
|
165
|
+
} catch {
|
|
166
|
+
return null;
|
|
208
167
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
const response = await this.apiRequest('/remoteJobs', 'GET');
|
|
227
|
-
return response.map((app) => ({
|
|
228
|
-
id: app.id,
|
|
229
|
-
name: app.name,
|
|
230
|
-
type: 'REMOTE_JOB',
|
|
231
|
-
reference: String(app.id),
|
|
232
|
-
}));
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Get app details by reference ID
|
|
236
|
-
*/
|
|
237
|
-
async getApp(referenceId) {
|
|
238
|
-
try {
|
|
239
|
-
return await this.apiRequest(`/remoteJobs/${referenceId}`, 'GET');
|
|
240
|
-
}
|
|
241
|
-
catch {
|
|
242
|
-
return null;
|
|
243
|
-
}
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
async getFileMetadata(reference) {
|
|
171
|
+
try {
|
|
172
|
+
const metadata = await this.client.farseerFiles.getMetadata(reference);
|
|
173
|
+
return {
|
|
174
|
+
uploadTime: metadata.uploadTime?.toISOString(),
|
|
175
|
+
uploader: metadata.uploader ? {
|
|
176
|
+
id: metadata.uploader.id,
|
|
177
|
+
email: metadata.uploader.email || "",
|
|
178
|
+
firstName: metadata.uploader.firstName || "",
|
|
179
|
+
lastName: metadata.uploader.lastName || ""
|
|
180
|
+
} : void 0,
|
|
181
|
+
size: metadata.size
|
|
182
|
+
};
|
|
183
|
+
} catch (error) {
|
|
184
|
+
return null;
|
|
244
185
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
186
|
+
}
|
|
187
|
+
async getFileContentAsBuffer(reference) {
|
|
188
|
+
const blob = await this.client.farseerFiles.get(reference);
|
|
189
|
+
const arrayBuffer = await blob.arrayBuffer();
|
|
190
|
+
return Buffer.from(arrayBuffer);
|
|
191
|
+
}
|
|
192
|
+
isTextFile(filename) {
|
|
193
|
+
const ext = filename.toLowerCase().split(".").pop() || "";
|
|
194
|
+
return ["ts", "js", "mjs", "cjs", "json", "txt", "md", "csv", "xml", "html", "css", "yaml", "yml"].includes(
|
|
195
|
+
ext
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
isBinaryFile(filename) {
|
|
199
|
+
return !this.isTextFile(filename);
|
|
200
|
+
}
|
|
201
|
+
// ==================== Apps (Remote Jobs) API ====================
|
|
202
|
+
/**
|
|
203
|
+
* List all apps (Remote Jobs) on the tenant
|
|
204
|
+
*/
|
|
205
|
+
async listApps() {
|
|
206
|
+
const response = await this.apiRequest("/remoteJobs", "GET");
|
|
207
|
+
return response.map((app) => ({
|
|
208
|
+
id: app.id,
|
|
209
|
+
name: app.name,
|
|
210
|
+
type: "REMOTE_JOB",
|
|
211
|
+
reference: String(app.id)
|
|
212
|
+
}));
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Get app details by reference ID
|
|
216
|
+
*/
|
|
217
|
+
async getApp(referenceId) {
|
|
218
|
+
try {
|
|
219
|
+
const app = await this.apiRequest(`/remoteJobs/${referenceId}`, "GET");
|
|
220
|
+
if (app && (!app.scriptFiles || app.scriptFiles.length === 0) && app.sourceFolderId) {
|
|
221
|
+
app.scriptFiles = await this.resolveAppScripts(app.sourceFolderId);
|
|
222
|
+
}
|
|
223
|
+
return app;
|
|
224
|
+
} catch {
|
|
225
|
+
return null;
|
|
255
226
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
folderId: appsFolderId,
|
|
267
|
-
name,
|
|
268
|
-
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Resolve script files from an app's source folder
|
|
230
|
+
*/
|
|
231
|
+
async resolveAppScripts(sourceFolderId) {
|
|
232
|
+
try {
|
|
233
|
+
const folderContent = await this.client.folders.listItemsBatch([{ id: sourceFolderId }]);
|
|
234
|
+
return (folderContent[0]?.items || []).filter((item) => item.type === farseer.FolderItemType.FarseerFile && "reference" in item).map((item) => ({ id: item.reference, name: item.name }));
|
|
235
|
+
} catch {
|
|
236
|
+
return [];
|
|
269
237
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
});
|
|
280
|
-
// API returns 204 No Content, so fetch the updated app
|
|
281
|
-
const app = await this.getApp(referenceId);
|
|
282
|
-
if (!app) {
|
|
283
|
-
throw new Error('Failed to fetch updated app');
|
|
284
|
-
}
|
|
285
|
-
return app;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Get app by name
|
|
241
|
+
*/
|
|
242
|
+
async getAppByName(name) {
|
|
243
|
+
const apps = await this.listApps();
|
|
244
|
+
const app = apps.find((a) => a.name.toLowerCase() === name.toLowerCase());
|
|
245
|
+
if (!app) {
|
|
246
|
+
return null;
|
|
286
247
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
248
|
+
return this.getApp(app.reference);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Create a new app
|
|
252
|
+
*/
|
|
253
|
+
async createApp(name) {
|
|
254
|
+
const appsFolderId = await this.getAppsFolderId();
|
|
255
|
+
if (!appsFolderId) {
|
|
256
|
+
throw new Error("Apps folder not found");
|
|
292
257
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
258
|
+
return await this.apiRequest("/remoteJobs", "POST", {
|
|
259
|
+
folderId: appsFolderId,
|
|
260
|
+
name
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Update an app
|
|
265
|
+
*/
|
|
266
|
+
async updateApp(referenceId, update) {
|
|
267
|
+
await this.apiRequest(`/remoteJobs/${referenceId}`, "PUT", {
|
|
268
|
+
...update,
|
|
269
|
+
schedule: null,
|
|
270
|
+
runnerName: null,
|
|
271
|
+
predefinedActions: []
|
|
272
|
+
});
|
|
273
|
+
const app = await this.getApp(referenceId);
|
|
274
|
+
if (!app) {
|
|
275
|
+
throw new Error("Failed to fetch updated app");
|
|
304
276
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
277
|
+
return app;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Delete an app
|
|
281
|
+
*/
|
|
282
|
+
async deleteApp(referenceId) {
|
|
283
|
+
await this.apiRequest(`/remoteJobs/${referenceId}`, "DELETE");
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Get script files available for apps
|
|
287
|
+
*/
|
|
288
|
+
async getScriptFiles() {
|
|
289
|
+
const allFiles = await this.listFiles(["Files"]);
|
|
290
|
+
return allFiles.filter((f) => f.name.endsWith(".ts") || f.name.endsWith(".js")).map((f) => ({
|
|
291
|
+
id: f.reference,
|
|
292
|
+
name: f.name
|
|
293
|
+
}));
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Export the entire model structure
|
|
297
|
+
*/
|
|
298
|
+
async exportModel() {
|
|
299
|
+
return this.apiRequest("/model/export", "POST");
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Get the Apps folder ID
|
|
303
|
+
*/
|
|
304
|
+
async getAppsFolderId() {
|
|
305
|
+
try {
|
|
306
|
+
const item = await this.client.getItemByPath(["Apps"]);
|
|
307
|
+
return item.id;
|
|
308
|
+
} catch {
|
|
309
|
+
return null;
|
|
310
310
|
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Make a direct API request (for endpoints not in farseer-client)
|
|
314
|
+
*/
|
|
315
|
+
async apiRequest(endpoint, method, body) {
|
|
316
|
+
const url = `${this.credential.basePath}${endpoint}`;
|
|
317
|
+
const headers = {
|
|
318
|
+
"Content-Type": "application/json",
|
|
319
|
+
"X-TENANT-ID": this.credential.tenantId,
|
|
320
|
+
"X-API-KEY": this.credential.apiKey,
|
|
321
|
+
"x-api-version": "3.3.0"
|
|
322
|
+
};
|
|
323
|
+
const response = await fetch(url, {
|
|
324
|
+
method,
|
|
325
|
+
headers,
|
|
326
|
+
body: body ? JSON.stringify(body) : void 0
|
|
327
|
+
});
|
|
328
|
+
if (!response.ok) {
|
|
329
|
+
throw new Error(`HTTP ${response.status}: ${await response.text()}`);
|
|
322
330
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
*/
|
|
326
|
-
async apiRequest(endpoint, method, body) {
|
|
327
|
-
const url = `${this.credential.basePath}${endpoint}`;
|
|
328
|
-
const headers = {
|
|
329
|
-
'Content-Type': 'application/json',
|
|
330
|
-
'X-TENANT-ID': this.credential.tenantId,
|
|
331
|
-
'X-API-KEY': this.credential.apiKey,
|
|
332
|
-
'x-api-version': '3.3.0',
|
|
333
|
-
};
|
|
334
|
-
const response = await fetch(url, {
|
|
335
|
-
method,
|
|
336
|
-
headers,
|
|
337
|
-
body: body ? JSON.stringify(body) : undefined,
|
|
338
|
-
});
|
|
339
|
-
if (!response.ok) {
|
|
340
|
-
throw new Error(`HTTP ${response.status}: ${await response.text()}`);
|
|
341
|
-
}
|
|
342
|
-
if (response.status === 204) {
|
|
343
|
-
return undefined;
|
|
344
|
-
}
|
|
345
|
-
return response.json();
|
|
331
|
+
if (response.status === 204) {
|
|
332
|
+
return void 0;
|
|
346
333
|
}
|
|
334
|
+
return response.json();
|
|
335
|
+
}
|
|
347
336
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
337
|
+
async function resolveRealm(realm) {
|
|
338
|
+
const candidates = [realm];
|
|
339
|
+
const upper = realm.toUpperCase();
|
|
340
|
+
if (upper !== realm) {
|
|
341
|
+
candidates.push(upper);
|
|
342
|
+
}
|
|
343
|
+
const lower = realm.toLowerCase();
|
|
344
|
+
if (lower !== realm && lower !== upper) {
|
|
345
|
+
candidates.push(lower);
|
|
346
|
+
}
|
|
347
|
+
for (const candidate of candidates) {
|
|
351
348
|
try {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
body: new URLSearchParams({
|
|
358
|
-
grant_type: 'password',
|
|
359
|
-
client_id: 'security-admin-console',
|
|
360
|
-
username: email,
|
|
361
|
-
password: password,
|
|
362
|
-
}),
|
|
363
|
-
});
|
|
364
|
-
if (!response.ok) {
|
|
365
|
-
return null;
|
|
366
|
-
}
|
|
367
|
-
const data = (await response.json());
|
|
368
|
-
return {
|
|
369
|
-
accessToken: data.access_token,
|
|
370
|
-
refreshToken: data.refresh_token,
|
|
371
|
-
expiresIn: data.expires_in,
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
catch {
|
|
375
|
-
return null;
|
|
349
|
+
const response = await fetch(`https://login.farseer.io/auth/realms/${candidate}`, { method: "GET" });
|
|
350
|
+
if (response.ok) {
|
|
351
|
+
return candidate;
|
|
352
|
+
}
|
|
353
|
+
} catch {
|
|
376
354
|
}
|
|
355
|
+
}
|
|
356
|
+
return null;
|
|
377
357
|
}
|
|
378
358
|
function getErrorPage(title, message) {
|
|
379
|
-
|
|
359
|
+
return `
|
|
380
360
|
<html>
|
|
381
361
|
<head>
|
|
382
362
|
<title>Farseer CLI - Error</title>
|
|
@@ -439,64 +419,60 @@ function getErrorPage(title, message) {
|
|
|
439
419
|
</html>
|
|
440
420
|
`;
|
|
441
421
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
const
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
497
|
-
const data = (await tokenResponse.json());
|
|
498
|
-
res.writeHead(200, { 'Content-Type': 'text/html' });
|
|
499
|
-
res.end(`
|
|
422
|
+
async function loginWithBrowser(realm = "master") {
|
|
423
|
+
const http = await import("http");
|
|
424
|
+
const crypto = await import("crypto");
|
|
425
|
+
const { exec } = await import("child_process");
|
|
426
|
+
const { promisify } = await import("util");
|
|
427
|
+
const execAsync = promisify(exec);
|
|
428
|
+
const KEYCLOAK_BASE = `https://login.farseer.io/auth/realms/${realm}/protocol/openid-connect`;
|
|
429
|
+
const CLIENT_ID = "auth";
|
|
430
|
+
const REDIRECT_PORT = 8787;
|
|
431
|
+
const REDIRECT_URI = `http://localhost:${REDIRECT_PORT}/callback`;
|
|
432
|
+
const codeVerifier = crypto.randomBytes(32).toString("base64url");
|
|
433
|
+
const codeChallenge = crypto.createHash("sha256").update(codeVerifier).digest("base64url");
|
|
434
|
+
const state = crypto.randomBytes(16).toString("hex");
|
|
435
|
+
return new Promise((resolve) => {
|
|
436
|
+
const server = http.createServer(async (req, res) => {
|
|
437
|
+
const url = new URL(req.url || "", `http://localhost:${REDIRECT_PORT}`);
|
|
438
|
+
if (url.pathname === "/callback") {
|
|
439
|
+
const code = url.searchParams.get("code");
|
|
440
|
+
const returnedState = url.searchParams.get("state");
|
|
441
|
+
const error = url.searchParams.get("error");
|
|
442
|
+
if (error) {
|
|
443
|
+
res.writeHead(200, { "Content-Type": "text/html" });
|
|
444
|
+
res.end(getErrorPage("Login Failed", `Error: ${error}`));
|
|
445
|
+
server.close();
|
|
446
|
+
resolve(null);
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
if (!code || returnedState !== state) {
|
|
450
|
+
res.writeHead(400, { "Content-Type": "text/html" });
|
|
451
|
+
res.end(getErrorPage("Invalid Response", "Missing code or state mismatch."));
|
|
452
|
+
server.close();
|
|
453
|
+
resolve(null);
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
try {
|
|
457
|
+
const tokenResponse = await fetch(`${KEYCLOAK_BASE}/token`, {
|
|
458
|
+
method: "POST",
|
|
459
|
+
headers: {
|
|
460
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
461
|
+
},
|
|
462
|
+
body: new URLSearchParams({
|
|
463
|
+
grant_type: "authorization_code",
|
|
464
|
+
client_id: CLIENT_ID,
|
|
465
|
+
code,
|
|
466
|
+
redirect_uri: REDIRECT_URI,
|
|
467
|
+
code_verifier: codeVerifier
|
|
468
|
+
})
|
|
469
|
+
});
|
|
470
|
+
if (!tokenResponse.ok) {
|
|
471
|
+
throw new Error("Token exchange failed");
|
|
472
|
+
}
|
|
473
|
+
const data = await tokenResponse.json();
|
|
474
|
+
res.writeHead(200, { "Content-Type": "text/html" });
|
|
475
|
+
res.end(`
|
|
500
476
|
<html>
|
|
501
477
|
<head>
|
|
502
478
|
<title>Farseer CLI - Login</title>
|
|
@@ -567,81 +543,86 @@ async function loginWithBrowser(realm = 'master') {
|
|
|
567
543
|
</body>
|
|
568
544
|
</html>
|
|
569
545
|
`);
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
accessToken: data.access_token,
|
|
573
|
-
refreshToken: data.refresh_token,
|
|
574
|
-
expiresIn: data.expires_in,
|
|
575
|
-
});
|
|
576
|
-
}
|
|
577
|
-
catch {
|
|
578
|
-
res.writeHead(500, { 'Content-Type': 'text/html' });
|
|
579
|
-
res.end(getErrorPage('Token Exchange Failed', 'Could not complete login.'));
|
|
580
|
-
server.close();
|
|
581
|
-
resolve(null);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
});
|
|
585
|
-
server.listen(REDIRECT_PORT, async () => {
|
|
586
|
-
// Build authorization URL
|
|
587
|
-
const authUrl = new URL(`${KEYCLOAK_BASE}/auth`);
|
|
588
|
-
authUrl.searchParams.set('client_id', CLIENT_ID);
|
|
589
|
-
authUrl.searchParams.set('redirect_uri', REDIRECT_URI);
|
|
590
|
-
authUrl.searchParams.set('response_type', 'code');
|
|
591
|
-
authUrl.searchParams.set('scope', 'openid offline_access');
|
|
592
|
-
authUrl.searchParams.set('state', state);
|
|
593
|
-
authUrl.searchParams.set('code_challenge', codeChallenge);
|
|
594
|
-
authUrl.searchParams.set('code_challenge_method', 'S256');
|
|
595
|
-
// Open browser
|
|
596
|
-
const url = authUrl.toString();
|
|
597
|
-
try {
|
|
598
|
-
if (process.platform === 'darwin') {
|
|
599
|
-
await execAsync(`open "${url}"`);
|
|
600
|
-
}
|
|
601
|
-
else if (process.platform === 'win32') {
|
|
602
|
-
await execAsync(`start "${url}"`);
|
|
603
|
-
}
|
|
604
|
-
else {
|
|
605
|
-
await execAsync(`xdg-open "${url}"`);
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
catch {
|
|
609
|
-
// If we can't open browser, show URL to user
|
|
610
|
-
console.log(`\nOpen this URL in your browser:\n${url}\n`);
|
|
611
|
-
}
|
|
612
|
-
});
|
|
613
|
-
// Timeout after 5 minutes
|
|
614
|
-
setTimeout(() => {
|
|
615
|
-
server.close();
|
|
616
|
-
resolve(null);
|
|
617
|
-
}, 5 * 60 * 1000);
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
async function refreshAccessToken(refreshToken, realm = 'master') {
|
|
621
|
-
const tokenUrl = `https://login.farseer.io/auth/realms/${realm}/protocol/openid-connect/token`;
|
|
622
|
-
try {
|
|
623
|
-
const response = await fetch(tokenUrl, {
|
|
624
|
-
method: 'POST',
|
|
625
|
-
headers: {
|
|
626
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
627
|
-
},
|
|
628
|
-
body: new URLSearchParams({
|
|
629
|
-
grant_type: 'refresh_token',
|
|
630
|
-
client_id: 'auth',
|
|
631
|
-
refresh_token: refreshToken,
|
|
632
|
-
}),
|
|
633
|
-
});
|
|
634
|
-
if (!response.ok) {
|
|
635
|
-
return null;
|
|
636
|
-
}
|
|
637
|
-
const data = (await response.json());
|
|
638
|
-
return {
|
|
546
|
+
server.close();
|
|
547
|
+
resolve({
|
|
639
548
|
accessToken: data.access_token,
|
|
640
549
|
refreshToken: data.refresh_token,
|
|
641
|
-
expiresIn: data.expires_in
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
550
|
+
expiresIn: data.expires_in
|
|
551
|
+
});
|
|
552
|
+
} catch {
|
|
553
|
+
res.writeHead(500, { "Content-Type": "text/html" });
|
|
554
|
+
res.end(getErrorPage("Token Exchange Failed", "Could not complete login."));
|
|
555
|
+
server.close();
|
|
556
|
+
resolve(null);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
server.listen(REDIRECT_PORT, async () => {
|
|
561
|
+
const authUrl = new URL(`${KEYCLOAK_BASE}/auth`);
|
|
562
|
+
authUrl.searchParams.set("client_id", CLIENT_ID);
|
|
563
|
+
authUrl.searchParams.set("redirect_uri", REDIRECT_URI);
|
|
564
|
+
authUrl.searchParams.set("response_type", "code");
|
|
565
|
+
authUrl.searchParams.set("scope", "openid offline_access");
|
|
566
|
+
authUrl.searchParams.set("state", state);
|
|
567
|
+
authUrl.searchParams.set("code_challenge", codeChallenge);
|
|
568
|
+
authUrl.searchParams.set("code_challenge_method", "S256");
|
|
569
|
+
const url = authUrl.toString();
|
|
570
|
+
try {
|
|
571
|
+
if (process.platform === "darwin") {
|
|
572
|
+
await execAsync(`open "${url}"`);
|
|
573
|
+
} else if (process.platform === "win32") {
|
|
574
|
+
await execAsync(`start "${url}"`);
|
|
575
|
+
} else {
|
|
576
|
+
await execAsync(`xdg-open "${url}"`);
|
|
577
|
+
}
|
|
578
|
+
} catch {
|
|
579
|
+
console.log(`
|
|
580
|
+
Open this URL in your browser:
|
|
581
|
+
${url}
|
|
582
|
+
`);
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
setTimeout(
|
|
586
|
+
() => {
|
|
587
|
+
server.close();
|
|
588
|
+
resolve(null);
|
|
589
|
+
},
|
|
590
|
+
5 * 60 * 1e3
|
|
591
|
+
);
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
async function refreshAccessToken(refreshToken, realm = "master") {
|
|
595
|
+
const tokenUrl = `https://login.farseer.io/auth/realms/${realm}/protocol/openid-connect/token`;
|
|
596
|
+
try {
|
|
597
|
+
const response = await fetch(tokenUrl, {
|
|
598
|
+
method: "POST",
|
|
599
|
+
headers: {
|
|
600
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
601
|
+
},
|
|
602
|
+
body: new URLSearchParams({
|
|
603
|
+
grant_type: "refresh_token",
|
|
604
|
+
client_id: "auth",
|
|
605
|
+
refresh_token: refreshToken
|
|
606
|
+
})
|
|
607
|
+
});
|
|
608
|
+
if (!response.ok) {
|
|
609
|
+
return null;
|
|
646
610
|
}
|
|
611
|
+
const data = await response.json();
|
|
612
|
+
return {
|
|
613
|
+
accessToken: data.access_token,
|
|
614
|
+
refreshToken: data.refresh_token,
|
|
615
|
+
expiresIn: data.expires_in
|
|
616
|
+
};
|
|
617
|
+
} catch {
|
|
618
|
+
return null;
|
|
619
|
+
}
|
|
647
620
|
}
|
|
621
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
622
|
+
0 && (module.exports = {
|
|
623
|
+
FarseerService,
|
|
624
|
+
loginWithBrowser,
|
|
625
|
+
refreshAccessToken,
|
|
626
|
+
resolveRealm
|
|
627
|
+
});
|
|
628
|
+
//# sourceMappingURL=farseerService.js.map
|