@internxt/cli 1.0.17 → 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
CHANGED
|
@@ -31,7 +31,7 @@ $ npm install -g @internxt/cli
|
|
|
31
31
|
$ internxt COMMAND
|
|
32
32
|
running command...
|
|
33
33
|
$ internxt (--version)
|
|
34
|
-
@internxt/cli/1.
|
|
34
|
+
@internxt/cli/1.1.1 darwin-arm64 node-v20.10.0
|
|
35
35
|
$ internxt --help [COMMAND]
|
|
36
36
|
USAGE
|
|
37
37
|
$ internxt COMMAND
|
|
@@ -82,7 +82,7 @@ EXAMPLES
|
|
|
82
82
|
$ internxt config
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.
|
|
85
|
+
_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/config.ts)_
|
|
86
86
|
|
|
87
87
|
## `internxt create-folder`
|
|
88
88
|
|
|
@@ -103,7 +103,7 @@ EXAMPLES
|
|
|
103
103
|
$ internxt create-folder
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.
|
|
106
|
+
_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/create-folder.ts)_
|
|
107
107
|
|
|
108
108
|
## `internxt download`
|
|
109
109
|
|
|
@@ -126,7 +126,7 @@ EXAMPLES
|
|
|
126
126
|
$ internxt download
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
_See code: [src/commands/download.ts](https://github.com/internxt/cli/blob/v1.
|
|
129
|
+
_See code: [src/commands/download.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/download.ts)_
|
|
130
130
|
|
|
131
131
|
## `internxt list`
|
|
132
132
|
|
|
@@ -160,7 +160,7 @@ EXAMPLES
|
|
|
160
160
|
$ internxt list
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
-
_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.
|
|
163
|
+
_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/list.ts)_
|
|
164
164
|
|
|
165
165
|
## `internxt login`
|
|
166
166
|
|
|
@@ -186,7 +186,7 @@ EXAMPLES
|
|
|
186
186
|
$ internxt login
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
-
_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.
|
|
189
|
+
_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/login.ts)_
|
|
190
190
|
|
|
191
191
|
## `internxt logout`
|
|
192
192
|
|
|
@@ -203,7 +203,7 @@ EXAMPLES
|
|
|
203
203
|
$ internxt logout
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.
|
|
206
|
+
_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/logout.ts)_
|
|
207
207
|
|
|
208
208
|
## `internxt logs`
|
|
209
209
|
|
|
@@ -220,7 +220,7 @@ EXAMPLES
|
|
|
220
220
|
$ internxt logs
|
|
221
221
|
```
|
|
222
222
|
|
|
223
|
-
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.
|
|
223
|
+
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/logs.ts)_
|
|
224
224
|
|
|
225
225
|
## `internxt move`
|
|
226
226
|
|
|
@@ -245,7 +245,7 @@ EXAMPLES
|
|
|
245
245
|
$ internxt move
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
_See code: [src/commands/move.ts](https://github.com/internxt/cli/blob/v1.
|
|
248
|
+
_See code: [src/commands/move.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/move.ts)_
|
|
249
249
|
|
|
250
250
|
## `internxt trash`
|
|
251
251
|
|
|
@@ -269,7 +269,7 @@ EXAMPLES
|
|
|
269
269
|
$ internxt trash
|
|
270
270
|
```
|
|
271
271
|
|
|
272
|
-
_See code: [src/commands/trash.ts](https://github.com/internxt/cli/blob/v1.
|
|
272
|
+
_See code: [src/commands/trash.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/trash.ts)_
|
|
273
273
|
|
|
274
274
|
## `internxt upload`
|
|
275
275
|
|
|
@@ -293,7 +293,7 @@ EXAMPLES
|
|
|
293
293
|
$ internxt upload
|
|
294
294
|
```
|
|
295
295
|
|
|
296
|
-
_See code: [src/commands/upload.ts](https://github.com/internxt/cli/blob/v1.
|
|
296
|
+
_See code: [src/commands/upload.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/upload.ts)_
|
|
297
297
|
|
|
298
298
|
## `internxt webdav ACTION`
|
|
299
299
|
|
|
@@ -316,7 +316,7 @@ EXAMPLES
|
|
|
316
316
|
$ internxt webdav status
|
|
317
317
|
```
|
|
318
318
|
|
|
319
|
-
_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.
|
|
319
|
+
_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/webdav.ts)_
|
|
320
320
|
|
|
321
321
|
## `internxt whoami`
|
|
322
322
|
|
|
@@ -333,7 +333,7 @@ EXAMPLES
|
|
|
333
333
|
$ internxt whoami
|
|
334
334
|
```
|
|
335
335
|
|
|
336
|
-
_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.
|
|
336
|
+
_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.1.1/src/commands/whoami.ts)_
|
|
337
337
|
<!-- commandsstop -->
|
|
338
338
|
|
|
339
339
|
# Current Limitations
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { apiObject } from '@rudderstack/rudder-sdk-node';
|
|
1
2
|
import { ConfigService } from './config.service';
|
|
2
3
|
export declare const AnalyticsEvents: {
|
|
3
4
|
CLILogin: string;
|
|
@@ -9,8 +10,10 @@ export declare class AnalyticsService {
|
|
|
9
10
|
static readonly instance: AnalyticsService;
|
|
10
11
|
constructor(config: ConfigService);
|
|
11
12
|
private getRudderstack;
|
|
13
|
+
private platformShortName;
|
|
14
|
+
private platformFamily;
|
|
12
15
|
track(eventKey: keyof typeof AnalyticsEvents, options: {
|
|
13
16
|
app: 'internxt-cli' | 'internxt-webdav';
|
|
14
17
|
userId: string;
|
|
15
|
-
}, params?:
|
|
18
|
+
}, params?: apiObject): Promise<void>;
|
|
16
19
|
}
|
|
@@ -7,6 +7,7 @@ exports.AnalyticsService = exports.AnalyticsEvents = void 0;
|
|
|
7
7
|
const rudder_sdk_node_1 = __importDefault(require("@rudderstack/rudder-sdk-node"));
|
|
8
8
|
const config_service_1 = require("./config.service");
|
|
9
9
|
const package_json_1 = __importDefault(require("../../package.json"));
|
|
10
|
+
const os_1 = __importDefault(require("os"));
|
|
10
11
|
exports.AnalyticsEvents = {
|
|
11
12
|
CLILogin: 'CLI Login',
|
|
12
13
|
WebDAVEnabled: 'WebDAV Enabled',
|
|
@@ -23,19 +24,49 @@ class AnalyticsService {
|
|
|
23
24
|
dataPlaneUrl: this.config.get('RUDDERSTACK_DATAPLANE_URL'),
|
|
24
25
|
});
|
|
25
26
|
}
|
|
27
|
+
platformShortName(platform) {
|
|
28
|
+
switch (platform) {
|
|
29
|
+
case 'darwin':
|
|
30
|
+
return 'MAC';
|
|
31
|
+
case 'win32':
|
|
32
|
+
return 'WIN';
|
|
33
|
+
case 'linux':
|
|
34
|
+
return 'LINUX';
|
|
35
|
+
default:
|
|
36
|
+
return '';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
platformFamily(platform) {
|
|
40
|
+
switch (platform) {
|
|
41
|
+
case 'darwin':
|
|
42
|
+
return 'Mac';
|
|
43
|
+
case 'win32':
|
|
44
|
+
return 'Windows';
|
|
45
|
+
case 'linux':
|
|
46
|
+
return 'Linux';
|
|
47
|
+
default:
|
|
48
|
+
return 'Unknown';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
26
51
|
track(eventKey, options, params = {}) {
|
|
27
52
|
return new Promise((resolve) => {
|
|
28
53
|
const rudderstack = this.getRudderstack();
|
|
29
54
|
rudderstack.track({
|
|
30
55
|
event: exports.AnalyticsEvents[eventKey],
|
|
31
56
|
userId: options.userId,
|
|
32
|
-
|
|
57
|
+
context: {
|
|
33
58
|
app: {
|
|
34
59
|
name: options.app,
|
|
35
60
|
version: package_json_1.default.version,
|
|
36
61
|
},
|
|
37
|
-
|
|
62
|
+
os: {
|
|
63
|
+
family: this.platformFamily(os_1.default.platform()),
|
|
64
|
+
name: os_1.default.type(),
|
|
65
|
+
short_name: this.platformShortName(process.platform),
|
|
66
|
+
version: os_1.default.release(),
|
|
67
|
+
},
|
|
38
68
|
},
|
|
69
|
+
properties: params,
|
|
39
70
|
}, () => {
|
|
40
71
|
resolve();
|
|
41
72
|
});
|
package/oclif.manifest.json
CHANGED