@juhuu/sdk-ts 1.2.275 → 1.2.277

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
@@ -1709,10 +1709,9 @@ declare class FlowsService extends Service {
1709
1709
  update(FlowUpdateParams: JUHUU.Flow.Update.Params, FlowUpdateOptions?: JUHUU.Flow.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Update.Response>>;
1710
1710
  delete(FlowDeleteParams: JUHUU.Flow.Delete.Params, FlowDeleteOptions?: JUHUU.Flow.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Delete.Response>>;
1711
1711
  execute(FlowExecuteParams: JUHUU.Flow.Execute.Params, FlowExecuteOptions?: JUHUU.Flow.Execute.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Execute.Response>>;
1712
- private areInputsAvailable;
1713
1712
  private resolveInputs;
1714
- private isInputConnected;
1715
- private blockExecutors;
1713
+ isInputConnected(block: FlowBlock, inputName: string): boolean;
1714
+ blockExecutors: Partial<Record<FlowBlock["type"], BlockExecutor>>;
1716
1715
  executeLocally(FlowExecuteLocallyParams: JUHUU.Flow.ExecuteLocally.Params, FlowExecuteLocallyOptions?: JUHUU.Flow.ExecuteLocally.Options): Promise<JUHUU.Flow.ExecuteLocally.Response>;
1717
1716
  }
1718
1717
 
@@ -4043,7 +4042,7 @@ declare namespace JUHUU {
4043
4042
  id: string;
4044
4043
  readonly object: "link";
4045
4044
  propertyId: string | null;
4046
- referenceObject: "location";
4045
+ referenceObject: "location" | "panel";
4047
4046
  referenceObjectId: string;
4048
4047
  name: string;
4049
4048
  image: string | null;
@@ -4059,6 +4058,8 @@ declare namespace JUHUU {
4059
4058
  name?: string;
4060
4059
  fiveLetterQr?: string;
4061
4060
  type: JUHUU.Link.Object["type"];
4061
+ referenceObject?: JUHUU.Link.Object["referenceObject"];
4062
+ referenceObjectId?: string;
4062
4063
  };
4063
4064
  type Options = JUHUU.RequestOptions;
4064
4065
  type Response = {
@@ -4101,6 +4102,8 @@ declare namespace JUHUU {
4101
4102
  type Params = {
4102
4103
  linkId: string;
4103
4104
  name?: string;
4105
+ referenceObject?: JUHUU.Link.Object["referenceObject"];
4106
+ referenceObjectId?: string;
4104
4107
  };
4105
4108
  type Options = JUHUU.RequestOptions;
4106
4109
  type Response = {
package/dist/index.d.ts CHANGED
@@ -1709,10 +1709,9 @@ declare class FlowsService extends Service {
1709
1709
  update(FlowUpdateParams: JUHUU.Flow.Update.Params, FlowUpdateOptions?: JUHUU.Flow.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Update.Response>>;
1710
1710
  delete(FlowDeleteParams: JUHUU.Flow.Delete.Params, FlowDeleteOptions?: JUHUU.Flow.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Delete.Response>>;
1711
1711
  execute(FlowExecuteParams: JUHUU.Flow.Execute.Params, FlowExecuteOptions?: JUHUU.Flow.Execute.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Execute.Response>>;
1712
- private areInputsAvailable;
1713
1712
  private resolveInputs;
1714
- private isInputConnected;
1715
- private blockExecutors;
1713
+ isInputConnected(block: FlowBlock, inputName: string): boolean;
1714
+ blockExecutors: Partial<Record<FlowBlock["type"], BlockExecutor>>;
1716
1715
  executeLocally(FlowExecuteLocallyParams: JUHUU.Flow.ExecuteLocally.Params, FlowExecuteLocallyOptions?: JUHUU.Flow.ExecuteLocally.Options): Promise<JUHUU.Flow.ExecuteLocally.Response>;
1717
1716
  }
1718
1717
 
@@ -4043,7 +4042,7 @@ declare namespace JUHUU {
4043
4042
  id: string;
4044
4043
  readonly object: "link";
4045
4044
  propertyId: string | null;
4046
- referenceObject: "location";
4045
+ referenceObject: "location" | "panel";
4047
4046
  referenceObjectId: string;
4048
4047
  name: string;
4049
4048
  image: string | null;
@@ -4059,6 +4058,8 @@ declare namespace JUHUU {
4059
4058
  name?: string;
4060
4059
  fiveLetterQr?: string;
4061
4060
  type: JUHUU.Link.Object["type"];
4061
+ referenceObject?: JUHUU.Link.Object["referenceObject"];
4062
+ referenceObjectId?: string;
4062
4063
  };
4063
4064
  type Options = JUHUU.RequestOptions;
4064
4065
  type Response = {
@@ -4101,6 +4102,8 @@ declare namespace JUHUU {
4101
4102
  type Params = {
4102
4103
  linkId: string;
4103
4104
  name?: string;
4105
+ referenceObject?: JUHUU.Link.Object["referenceObject"];
4106
+ referenceObjectId?: string;
4104
4107
  };
4105
4108
  type Options = JUHUU.RequestOptions;
4106
4109
  type Response = {
package/dist/index.js CHANGED
@@ -745,7 +745,9 @@ var LinkService = class extends Service {
745
745
  body: {
746
746
  propertyId: LinkCreateParams.propertyId,
747
747
  name: LinkCreateParams.name,
748
- fiveLetterQr: LinkCreateParams.fiveLetterQr
748
+ fiveLetterQr: LinkCreateParams.fiveLetterQr,
749
+ referenceObject: LinkCreateParams.referenceObject,
750
+ referenceObjectId: LinkCreateParams.referenceObjectId
749
751
  },
750
752
  authenticationNotOptional: true
751
753
  },
@@ -791,7 +793,9 @@ var LinkService = class extends Service {
791
793
  method: "PATCH",
792
794
  url: "links/" + LinkUpdateParams.linkId,
793
795
  body: {
794
- name: LinkUpdateParams.name
796
+ name: LinkUpdateParams.name,
797
+ referenceObject: LinkUpdateParams.referenceObject,
798
+ referenceObjectId: LinkUpdateParams.referenceObjectId
795
799
  },
796
800
  authenticationNotOptional: true
797
801
  },
@@ -3688,22 +3692,6 @@ var FlowsService = class extends Service {
3688
3692
  FlowExecuteOptions
3689
3693
  );
3690
3694
  }
3691
- areInputsAvailable(block, outputStore, edgeArray) {
3692
- if (block.in === null || block.in === void 0) {
3693
- return true;
3694
- }
3695
- return Object.values(block.in).every((edgeId) => {
3696
- const edge = edgeArray.find((e) => e.id === edgeId);
3697
- if (edge === void 0) {
3698
- return false;
3699
- }
3700
- if (edge.type === "control") {
3701
- return true;
3702
- }
3703
- const srcOutputs = outputStore[edge.from.blockId];
3704
- return srcOutputs !== null && srcOutputs !== void 0 && edge.from.output in srcOutputs;
3705
- });
3706
- }
3707
3695
  resolveInputs(block, outputStore, edgeArray) {
3708
3696
  const inputs = {};
3709
3697
  if (block.in === void 0) {
package/dist/index.mjs CHANGED
@@ -701,7 +701,9 @@ var LinkService = class extends Service {
701
701
  body: {
702
702
  propertyId: LinkCreateParams.propertyId,
703
703
  name: LinkCreateParams.name,
704
- fiveLetterQr: LinkCreateParams.fiveLetterQr
704
+ fiveLetterQr: LinkCreateParams.fiveLetterQr,
705
+ referenceObject: LinkCreateParams.referenceObject,
706
+ referenceObjectId: LinkCreateParams.referenceObjectId
705
707
  },
706
708
  authenticationNotOptional: true
707
709
  },
@@ -747,7 +749,9 @@ var LinkService = class extends Service {
747
749
  method: "PATCH",
748
750
  url: "links/" + LinkUpdateParams.linkId,
749
751
  body: {
750
- name: LinkUpdateParams.name
752
+ name: LinkUpdateParams.name,
753
+ referenceObject: LinkUpdateParams.referenceObject,
754
+ referenceObjectId: LinkUpdateParams.referenceObjectId
751
755
  },
752
756
  authenticationNotOptional: true
753
757
  },
@@ -3644,22 +3648,6 @@ var FlowsService = class extends Service {
3644
3648
  FlowExecuteOptions
3645
3649
  );
3646
3650
  }
3647
- areInputsAvailable(block, outputStore, edgeArray) {
3648
- if (block.in === null || block.in === void 0) {
3649
- return true;
3650
- }
3651
- return Object.values(block.in).every((edgeId) => {
3652
- const edge = edgeArray.find((e) => e.id === edgeId);
3653
- if (edge === void 0) {
3654
- return false;
3655
- }
3656
- if (edge.type === "control") {
3657
- return true;
3658
- }
3659
- const srcOutputs = outputStore[edge.from.blockId];
3660
- return srcOutputs !== null && srcOutputs !== void 0 && edge.from.output in srcOutputs;
3661
- });
3662
- }
3663
3651
  resolveInputs(block, outputStore, edgeArray) {
3664
3652
  const inputs = {};
3665
3653
  if (block.in === void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.275",
3
+ "version": "1.2.277",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",