@juhuu/sdk-ts 1.3.37 → 1.3.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/dist/index.d.mts CHANGED
@@ -1954,6 +1954,10 @@ interface SessionListBlock extends BaseBlock {
1954
1954
  in: {
1955
1955
  userId: DataEdgeConnection;
1956
1956
  locationId: DataEdgeConnection;
1957
+ statusArray: DataEdgeConnection;
1958
+ locationGroupId: DataEdgeConnection;
1959
+ paymentId: DataEdgeConnection;
1960
+ deviceId: DataEdgeConnection;
1957
1961
  limit: DataEdgeConnection;
1958
1962
  skip: DataEdgeConnection;
1959
1963
  };
@@ -1965,6 +1969,10 @@ interface SessionListBlock extends BaseBlock {
1965
1969
  data: {
1966
1970
  userId?: string;
1967
1971
  locationId?: string;
1972
+ statusArray?: string;
1973
+ locationGroupId?: string;
1974
+ paymentId?: string;
1975
+ deviceId?: string;
1968
1976
  limit?: number;
1969
1977
  skip?: number;
1970
1978
  };
@@ -1972,6 +1980,10 @@ interface SessionListBlock extends BaseBlock {
1972
1980
  interface SessionListBlockInputs {
1973
1981
  userId?: string;
1974
1982
  locationId?: string;
1983
+ statusArray?: string;
1984
+ locationGroupId?: string;
1985
+ paymentId?: string;
1986
+ deviceId?: string;
1975
1987
  limit?: number;
1976
1988
  skip?: number;
1977
1989
  }
package/dist/index.d.ts CHANGED
@@ -1954,6 +1954,10 @@ interface SessionListBlock extends BaseBlock {
1954
1954
  in: {
1955
1955
  userId: DataEdgeConnection;
1956
1956
  locationId: DataEdgeConnection;
1957
+ statusArray: DataEdgeConnection;
1958
+ locationGroupId: DataEdgeConnection;
1959
+ paymentId: DataEdgeConnection;
1960
+ deviceId: DataEdgeConnection;
1957
1961
  limit: DataEdgeConnection;
1958
1962
  skip: DataEdgeConnection;
1959
1963
  };
@@ -1965,6 +1969,10 @@ interface SessionListBlock extends BaseBlock {
1965
1969
  data: {
1966
1970
  userId?: string;
1967
1971
  locationId?: string;
1972
+ statusArray?: string;
1973
+ locationGroupId?: string;
1974
+ paymentId?: string;
1975
+ deviceId?: string;
1968
1976
  limit?: number;
1969
1977
  skip?: number;
1970
1978
  };
@@ -1972,6 +1980,10 @@ interface SessionListBlock extends BaseBlock {
1972
1980
  interface SessionListBlockInputs {
1973
1981
  userId?: string;
1974
1982
  locationId?: string;
1983
+ statusArray?: string;
1984
+ locationGroupId?: string;
1985
+ paymentId?: string;
1986
+ deviceId?: string;
1975
1987
  limit?: number;
1976
1988
  skip?: number;
1977
1989
  }
package/dist/index.js CHANGED
@@ -4216,7 +4216,7 @@ var FlowsService = class extends Service {
4216
4216
  FlowExecuteOptions
4217
4217
  );
4218
4218
  }
4219
- resolveInputs(block, outputStore, edgeArray) {
4219
+ resolveInputs(block, outputStore, edgeArray, logArray) {
4220
4220
  const inputs = {};
4221
4221
  if (block.in === void 0) {
4222
4222
  return inputs;
@@ -4233,9 +4233,15 @@ var FlowsService = class extends Service {
4233
4233
  }
4234
4234
  const srcOutputs = outputStore[edge.from.blockId];
4235
4235
  if (srcOutputs === void 0 || edge.from.output in srcOutputs === false) {
4236
- throw new Error(
4237
- `Missing output '${edge.from.output}' from block '${edge.from.blockId}'`
4238
- );
4236
+ const msg = `Missing output '${edge.from.output}' from block '${edge.from.blockId}', defaulting to undefined`;
4237
+ console.warn(msg);
4238
+ logArray.push({
4239
+ createdAt: /* @__PURE__ */ new Date(),
4240
+ message: msg,
4241
+ severity: "warning"
4242
+ });
4243
+ inputs[inputName] = void 0;
4244
+ continue;
4239
4245
  }
4240
4246
  inputs[inputName] = srcOutputs[edge.from.output];
4241
4247
  }
@@ -4495,7 +4501,7 @@ var FlowsService = class extends Service {
4495
4501
  message: `Running block ${block.type} (${block.id})`,
4496
4502
  severity: "info"
4497
4503
  });
4498
- const inputs = this.resolveInputs(block, outputStore, edgeArray);
4504
+ const inputs = this.resolveInputs(block, outputStore, edgeArray, logArray);
4499
4505
  const executor = mergedBlockExecutors[block.type];
4500
4506
  if (executor === void 0 || executor === null) {
4501
4507
  throw new Error(
package/dist/index.mjs CHANGED
@@ -4172,7 +4172,7 @@ var FlowsService = class extends Service {
4172
4172
  FlowExecuteOptions
4173
4173
  );
4174
4174
  }
4175
- resolveInputs(block, outputStore, edgeArray) {
4175
+ resolveInputs(block, outputStore, edgeArray, logArray) {
4176
4176
  const inputs = {};
4177
4177
  if (block.in === void 0) {
4178
4178
  return inputs;
@@ -4189,9 +4189,15 @@ var FlowsService = class extends Service {
4189
4189
  }
4190
4190
  const srcOutputs = outputStore[edge.from.blockId];
4191
4191
  if (srcOutputs === void 0 || edge.from.output in srcOutputs === false) {
4192
- throw new Error(
4193
- `Missing output '${edge.from.output}' from block '${edge.from.blockId}'`
4194
- );
4192
+ const msg = `Missing output '${edge.from.output}' from block '${edge.from.blockId}', defaulting to undefined`;
4193
+ console.warn(msg);
4194
+ logArray.push({
4195
+ createdAt: /* @__PURE__ */ new Date(),
4196
+ message: msg,
4197
+ severity: "warning"
4198
+ });
4199
+ inputs[inputName] = void 0;
4200
+ continue;
4195
4201
  }
4196
4202
  inputs[inputName] = srcOutputs[edge.from.output];
4197
4203
  }
@@ -4451,7 +4457,7 @@ var FlowsService = class extends Service {
4451
4457
  message: `Running block ${block.type} (${block.id})`,
4452
4458
  severity: "info"
4453
4459
  });
4454
- const inputs = this.resolveInputs(block, outputStore, edgeArray);
4460
+ const inputs = this.resolveInputs(block, outputStore, edgeArray, logArray);
4455
4461
  const executor = mergedBlockExecutors[block.type];
4456
4462
  if (executor === void 0 || executor === null) {
4457
4463
  throw new Error(
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "provenance": true
4
4
  },
5
5
  "name": "@juhuu/sdk-ts",
6
- "version": "1.3.37",
6
+ "version": "1.3.39",
7
7
  "description": "Typescript wrapper for JUHUU services",
8
8
  "main": "./dist/index.js",
9
9
  "module": "./dist/index.mjs",