@flowcore/data-pump 0.7.1 → 0.7.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
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.2](https://github.com/flowcore-io/data-pump/compare/v0.7.1...v0.7.2) (2025-04-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **data-source:** :poop: add debug logs for options and translations ([ec93b67](https://github.com/flowcore-io/data-pump/commit/ec93b675eaab743d5dd1aba7842c1aa2fa6e6474))
9
+
3
10
  ## [0.7.1](https://github.com/flowcore-io/data-pump/compare/v0.7.0...v0.7.1) (2025-04-02)
4
11
 
5
12
 
@@ -1 +1 @@
1
- {"version":3,"file":"data-source.d.ts","sourceRoot":"","sources":["../../src/data-pump/data-source.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACzG,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,oBAAoB,CAAA;IAC1B,UAAU,EAAE,0BAA0B,CAAA;IACtC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,qBAAa,kBAAkB;IAQjB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAPpC,OAAO,CAAC,cAAc,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,CAAQ;IACzB,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,YAAY,CAAC,CAAU;IAC/B,OAAO,CAAC,WAAW,CAAC,CAAU;gBAED,OAAO,EAAE,yBAAyB;IAI/D,IAAW,MAAM,WAEhB;IAED,IAAW,QAAQ,WAElB;IAED,IAAW,QAAQ,WAElB;IAED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Ae;IA0Bf,cAAc,CAAC,KAAK,UAAQ;IAyB5B,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAa7D,oBAAoB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,UAAQ,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAiBnF,SAAS,CAAC,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;CAgBvF"}
@@ -45,6 +45,7 @@ export class FlowcoreDataSource {
45
45
  value: void 0
46
46
  });
47
47
  this.flowcoreClient = getFlowcoreClient(this.options.auth, this.options.baseUrlOverride);
48
+ console.log("this.options", this.options);
48
49
  }
49
50
  get tenant() {
50
51
  return this.options.dataSource.tenant;
@@ -66,6 +67,7 @@ export class FlowcoreDataSource {
66
67
  this.tenantId = this.options.dataSource.tenant;
67
68
  }
68
69
  else {
70
+ console.log("translating tenant", this.options.dataSource.tenant, this.options.directMode);
69
71
  const command = new TenantTranslateNameToIdCommand({
70
72
  tenant: this.options.dataSource.tenant,
71
73
  });
@@ -82,6 +84,7 @@ export class FlowcoreDataSource {
82
84
  this.dataCoreId = this.options.dataSource.dataCore;
83
85
  }
84
86
  else {
87
+ console.log("translating dataCore", this.options.dataSource.dataCore, this.options.directMode);
85
88
  const command = new DataCoreFetchCommand({
86
89
  tenant: this.options.dataSource.tenant,
87
90
  dataCore: this.options.dataSource.dataCore,
@@ -99,6 +102,7 @@ export class FlowcoreDataSource {
99
102
  this.flowTypeId = this.options.dataSource.flowType;
100
103
  }
101
104
  else {
105
+ console.log("translating flowType", this.options.dataSource.flowType, this.options.directMode);
102
106
  const command = new FlowTypeFetchCommand({
103
107
  dataCoreId: await this.getDataCoreId(),
104
108
  flowType: this.options.dataSource.flowType,
@@ -116,6 +120,7 @@ export class FlowcoreDataSource {
116
120
  this.eventTypeIds = this.options.dataSource.eventTypes;
117
121
  }
118
122
  else {
123
+ console.log("translating eventTypes", this.options.dataSource.eventTypes, this.options.directMode);
119
124
  const command = new EventTypeListCommand({
120
125
  flowTypeId: await this.getFlowTypeId(),
121
126
  });
@@ -138,6 +143,7 @@ export class FlowcoreDataSource {
138
143
  }
139
144
  let cursor;
140
145
  const timeBuckets = [];
146
+ console.log("getting timeBuckets, directMode: ", this.options.directMode);
141
147
  do {
142
148
  const result = await this.flowcoreClient.execute(new TimeBucketListCommand({
143
149
  tenant: this.options.dataSource.tenant,
@@ -176,6 +182,7 @@ export class FlowcoreDataSource {
176
182
  timeBuckets[timeBuckets.length - 1]);
177
183
  }
178
184
  async getEvents(from, amount, toEventId) {
185
+ console.log("getEvents, directMode: ", this.options.directMode);
179
186
  const eventTypeIds = await this.getEventTypeIds();
180
187
  const result = await this.flowcoreClient.execute(new EventListCommand({
181
188
  tenant: this.options.dataSource.tenant,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/data-pump",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Flowcore Data Pump",
5
5
  "homepage": "https://github.com/flowcore-io/flowcore-data-pump#readme",
6
6
  "repository": {
@@ -1 +1 @@
1
- {"version":3,"file":"data-source.d.ts","sourceRoot":"","sources":["../../src/data-pump/data-source.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACzG,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,oBAAoB,CAAA;IAC1B,UAAU,EAAE,0BAA0B,CAAA;IACtC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,qBAAa,kBAAkB;IAQjB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAPpC,OAAO,CAAC,cAAc,CAAgB;IACtC,OAAO,CAA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AAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,YAAY,CAAC,CAAU;IAC/B,OAAO,CAAC,WAAW,CAAC,CAAU;gBAED,OAAO,EAAE,yBAAyB;IAK/D,IAAW,MAAM,WAEhB;IAED,IAAW,QAAQ,WAElB;IAED,IAAW,QAAQ,WAElB;IAED,IAAW,UAAU,aAEpB;IAEY,WAAW;IAkBX,aAAa;IAmBb,aAAa;IAmBb,eAAe;IA0Bf,cAAc,CAAC,KAAK,UAAQ;IAyB5B,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAa7D,oBAAoB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,UAAQ,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAiBnF,SAAS,CAAC,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;CAgBvF"}
@@ -48,6 +48,7 @@ class FlowcoreDataSource {
48
48
  value: void 0
49
49
  });
50
50
  this.flowcoreClient = (0, flowcore_client_js_1.getFlowcoreClient)(this.options.auth, this.options.baseUrlOverride);
51
+ console.log("this.options", this.options);
51
52
  }
52
53
  get tenant() {
53
54
  return this.options.dataSource.tenant;
@@ -69,6 +70,7 @@ class FlowcoreDataSource {
69
70
  this.tenantId = this.options.dataSource.tenant;
70
71
  }
71
72
  else {
73
+ console.log("translating tenant", this.options.dataSource.tenant, this.options.directMode);
72
74
  const command = new mod_js_1.TenantTranslateNameToIdCommand({
73
75
  tenant: this.options.dataSource.tenant,
74
76
  });
@@ -85,6 +87,7 @@ class FlowcoreDataSource {
85
87
  this.dataCoreId = this.options.dataSource.dataCore;
86
88
  }
87
89
  else {
90
+ console.log("translating dataCore", this.options.dataSource.dataCore, this.options.directMode);
88
91
  const command = new mod_js_1.DataCoreFetchCommand({
89
92
  tenant: this.options.dataSource.tenant,
90
93
  dataCore: this.options.dataSource.dataCore,
@@ -102,6 +105,7 @@ class FlowcoreDataSource {
102
105
  this.flowTypeId = this.options.dataSource.flowType;
103
106
  }
104
107
  else {
108
+ console.log("translating flowType", this.options.dataSource.flowType, this.options.directMode);
105
109
  const command = new mod_js_1.FlowTypeFetchCommand({
106
110
  dataCoreId: await this.getDataCoreId(),
107
111
  flowType: this.options.dataSource.flowType,
@@ -119,6 +123,7 @@ class FlowcoreDataSource {
119
123
  this.eventTypeIds = this.options.dataSource.eventTypes;
120
124
  }
121
125
  else {
126
+ console.log("translating eventTypes", this.options.dataSource.eventTypes, this.options.directMode);
122
127
  const command = new mod_js_1.EventTypeListCommand({
123
128
  flowTypeId: await this.getFlowTypeId(),
124
129
  });
@@ -141,6 +146,7 @@ class FlowcoreDataSource {
141
146
  }
142
147
  let cursor;
143
148
  const timeBuckets = [];
149
+ console.log("getting timeBuckets, directMode: ", this.options.directMode);
144
150
  do {
145
151
  const result = await this.flowcoreClient.execute(new mod_js_1.TimeBucketListCommand({
146
152
  tenant: this.options.dataSource.tenant,
@@ -179,6 +185,7 @@ class FlowcoreDataSource {
179
185
  timeBuckets[timeBuckets.length - 1]);
180
186
  }
181
187
  async getEvents(from, amount, toEventId) {
188
+ console.log("getEvents, directMode: ", this.options.directMode);
182
189
  const eventTypeIds = await this.getEventTypeIds();
183
190
  const result = await this.flowcoreClient.execute(new mod_js_1.EventListCommand({
184
191
  tenant: this.options.dataSource.tenant,