@flowcore/cli 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@
7
7
 
8
8
 
9
9
 
10
+ ## [1.0.2](https://github.com/flowcore-io/flowcore-cli/compare/v1.0.1...v1.0.2) (2024-01-09)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * dont set start if it is defined ([72a275d](https://github.com/flowcore-io/flowcore-cli/commit/72a275d4b63195a4e594581550df8bd1fa6a6c8b))
16
+
10
17
  ## [1.0.1](https://github.com/flowcore-io/flowcore-cli/compare/v1.0.0...v1.0.1) (2024-01-09)
11
18
 
12
19
 
package/README.md CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @flowcore/cli
17
17
  $ flowcore COMMAND
18
18
  running command...
19
19
  $ flowcore (--version)
20
- @flowcore/cli/1.0.1 linux-x64 node-v20.10.0
20
+ @flowcore/cli/1.0.2 linux-x64 node-v20.10.0
21
21
  $ flowcore --help [COMMAND]
22
22
  USAGE
23
23
  $ flowcore COMMAND
@@ -103,7 +103,7 @@ EXAMPLES
103
103
  $ flowcore config set -l https://auth.flowcore.io/realms/flowcore/.well-known/openid-configuration -c my-client-id -p
104
104
  ```
105
105
 
106
- _See code: [src/commands/config/set.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.1/src/commands/config/set.ts)_
106
+ _See code: [src/commands/config/set.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.2/src/commands/config/set.ts)_
107
107
 
108
108
  ## `flowcore config show`
109
109
 
@@ -123,7 +123,7 @@ EXAMPLES
123
123
  $ flowcore config show
124
124
  ```
125
125
 
126
- _See code: [src/commands/config/show.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.1/src/commands/config/show.ts)_
126
+ _See code: [src/commands/config/show.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.2/src/commands/config/show.ts)_
127
127
 
128
128
  ## `flowcore help [COMMANDS]`
129
129
 
@@ -166,7 +166,7 @@ EXAMPLES
166
166
  $ flowcore login --port 8080
167
167
  ```
168
168
 
169
- _See code: [src/commands/login.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.1/src/commands/login.ts)_
169
+ _See code: [src/commands/login.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.2/src/commands/login.ts)_
170
170
 
171
171
  ## `flowcore plugins`
172
172
 
@@ -469,7 +469,7 @@ EXAMPLES
469
469
  $ flowcore stream https://staging.flowcore.io/flowcore/flowcore-platform/organization.0/event.organization.subscription.updated-requested.0.stream
470
470
  ```
471
471
 
472
- _See code: [src/commands/stream.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.1/src/commands/stream.ts)_
472
+ _See code: [src/commands/stream.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.2/src/commands/stream.ts)_
473
473
 
474
474
  ## `flowcore version`
475
475
 
@@ -506,5 +506,5 @@ DESCRIPTION
506
506
  Check what user you are logged in as
507
507
  ```
508
508
 
509
- _See code: [src/commands/whoami.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.1/src/commands/whoami.ts)_
509
+ _See code: [src/commands/whoami.ts](https://github.com/flowcore-io/flowcore-cli/blob/v1.0.2/src/commands/whoami.ts)_
510
510
  <!-- commandsstop -->
@@ -67,8 +67,14 @@ export default class Stream extends BaseCommand {
67
67
  firstTimeBucket = createTimebucket(dayjs());
68
68
  ux.warn(`First time bucket not found, setting to current time (${ux.colorize("yellowBright", firstTimeBucket)})`);
69
69
  }
70
- firstTimeBucket = this.setTimeBucket(dayjs(), flags.start || "1d");
71
- ux.log(ux.colorize("green", `Setting first time bucket to ${ux.colorize("yellow", flags.start || "1d")} ago (${ux.colorize("yellowBright", firstTimeBucket)})`));
70
+ if (flags.start) {
71
+ firstTimeBucket = this.setTimeBucket(dayjs(), flags.start);
72
+ ux.log(ux.colorize("green", `Setting first time bucket to ${ux.colorize("yellow", flags.start)} ago (${ux.colorize("yellowBright", firstTimeBucket)})`));
73
+ }
74
+ if (!firstTimeBucket) {
75
+ firstTimeBucket = this.setTimeBucket(dayjs(), "1d");
76
+ ux.log(ux.colorize("green", `Setting first time bucket to ${ux.colorize("yellow", "1d")} ago (${ux.colorize("yellowBright", firstTimeBucket)})`));
77
+ }
72
78
  let lastTimeBucket = eventRangeRequest.datacore.flowtypes.find(ft => ft.aggregator === aggregator)?.events.find(e => e.name === eventType)?.catalog.range.lastTimeBucket;
73
79
  if (!lastTimeBucket) {
74
80
  lastTimeBucket = createTimebucket(dayjs());
@@ -249,5 +249,5 @@
249
249
  ]
250
250
  }
251
251
  },
252
- "version": "1.0.1"
252
+ "version": "1.0.2"
253
253
  }
package/package.json CHANGED
@@ -86,7 +86,7 @@
86
86
  "prestart": "npm run build",
87
87
  "update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
88
88
  },
89
- "version": "1.0.1",
89
+ "version": "1.0.2",
90
90
  "bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
91
91
  "keywords": [
92
92
  "flowcore",