@juhuu/sdk-ts 1.2.200 → 1.2.202

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
@@ -13,6 +13,7 @@ type ExtractType<T> = T extends {
13
13
  type UserGroup = "retailer" | "engineer" | "operator" | "user";
14
14
  type Frontend = "dashboard" | "app";
15
15
  type ApiKeyStatus = "enabled" | "disabled";
16
+ type FlowStatus = "error" | "ready";
16
17
  type QuickAction = {
17
18
  icon: string | null;
18
19
  name: LocaleString;
@@ -938,6 +939,7 @@ declare class FlowsService extends Service {
938
939
  retrieve(FlowRetrieveParams: JUHUU.Flow.Retrieve.Params, FlowRetrieveOptions?: JUHUU.Flow.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Retrieve.Response>>;
939
940
  update(FlowUpdateParams: JUHUU.Flow.Update.Params, FlowUpdateOptions?: JUHUU.Flow.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Update.Response>>;
940
941
  delete(FlowDeleteParams: JUHUU.Flow.Delete.Params, FlowDeleteOptions?: JUHUU.Flow.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Delete.Response>>;
942
+ execute(FlowExecuteParams: JUHUU.Flow.Execute.Params, FlowExecuteOptions?: JUHUU.Flow.Execute.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Execute.Response>>;
941
943
  }
942
944
 
943
945
  declare class Juhuu {
@@ -3591,6 +3593,10 @@ declare namespace JUHUU {
3591
3593
  startNode: FlowBlock;
3592
3594
  nodeArray: FlowBlock[];
3593
3595
  edgeArray: FlowEdge[];
3596
+ propertyId: string;
3597
+ exectionEnvironmentArray: ("dashboard" | "app" | "backend")[];
3598
+ status: FlowStatus;
3599
+ errorMessage: string | null;
3594
3600
  };
3595
3601
  namespace Create {
3596
3602
  type Params = {
@@ -3647,6 +3653,15 @@ declare namespace JUHUU {
3647
3653
  flow: JUHUU.Flow.Object;
3648
3654
  };
3649
3655
  }
3656
+ namespace Execute {
3657
+ type Params = {
3658
+ flowId: string;
3659
+ };
3660
+ type Options = JUHUU.RequestOptions;
3661
+ type Response = {
3662
+ flow: JUHUU.Flow.Object;
3663
+ };
3664
+ }
3650
3665
  }
3651
3666
  namespace DeviceTemplate {
3652
3667
  type Object = {
@@ -3814,4 +3829,4 @@ declare namespace JUHUU {
3814
3829
  }
3815
3830
  }
3816
3831
 
3817
- export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowEdge, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
3832
+ export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowEdge, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ type ExtractType<T> = T extends {
13
13
  type UserGroup = "retailer" | "engineer" | "operator" | "user";
14
14
  type Frontend = "dashboard" | "app";
15
15
  type ApiKeyStatus = "enabled" | "disabled";
16
+ type FlowStatus = "error" | "ready";
16
17
  type QuickAction = {
17
18
  icon: string | null;
18
19
  name: LocaleString;
@@ -938,6 +939,7 @@ declare class FlowsService extends Service {
938
939
  retrieve(FlowRetrieveParams: JUHUU.Flow.Retrieve.Params, FlowRetrieveOptions?: JUHUU.Flow.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Retrieve.Response>>;
939
940
  update(FlowUpdateParams: JUHUU.Flow.Update.Params, FlowUpdateOptions?: JUHUU.Flow.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Update.Response>>;
940
941
  delete(FlowDeleteParams: JUHUU.Flow.Delete.Params, FlowDeleteOptions?: JUHUU.Flow.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Delete.Response>>;
942
+ execute(FlowExecuteParams: JUHUU.Flow.Execute.Params, FlowExecuteOptions?: JUHUU.Flow.Execute.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Execute.Response>>;
941
943
  }
942
944
 
943
945
  declare class Juhuu {
@@ -3591,6 +3593,10 @@ declare namespace JUHUU {
3591
3593
  startNode: FlowBlock;
3592
3594
  nodeArray: FlowBlock[];
3593
3595
  edgeArray: FlowEdge[];
3596
+ propertyId: string;
3597
+ exectionEnvironmentArray: ("dashboard" | "app" | "backend")[];
3598
+ status: FlowStatus;
3599
+ errorMessage: string | null;
3594
3600
  };
3595
3601
  namespace Create {
3596
3602
  type Params = {
@@ -3647,6 +3653,15 @@ declare namespace JUHUU {
3647
3653
  flow: JUHUU.Flow.Object;
3648
3654
  };
3649
3655
  }
3656
+ namespace Execute {
3657
+ type Params = {
3658
+ flowId: string;
3659
+ };
3660
+ type Options = JUHUU.RequestOptions;
3661
+ type Response = {
3662
+ flow: JUHUU.Flow.Object;
3663
+ };
3664
+ }
3650
3665
  }
3651
3666
  namespace DeviceTemplate {
3652
3667
  type Object = {
@@ -3814,4 +3829,4 @@ declare namespace JUHUU {
3814
3829
  }
3815
3830
  }
3816
3831
 
3817
- export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowEdge, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
3832
+ export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowEdge, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, type QuickAction, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TaxCode, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
package/dist/index.js CHANGED
@@ -3424,6 +3424,17 @@ var FlowsService = class extends Service {
3424
3424
  FlowDeleteOptions
3425
3425
  );
3426
3426
  }
3427
+ async execute(FlowExecuteParams, FlowExecuteOptions) {
3428
+ return await super.sendRequest(
3429
+ {
3430
+ method: "POST",
3431
+ url: "flows/" + FlowExecuteParams.flowId,
3432
+ body: {},
3433
+ authenticationNotOptional: true
3434
+ },
3435
+ FlowExecuteOptions
3436
+ );
3437
+ }
3427
3438
  };
3428
3439
 
3429
3440
  // src/types/types.ts
package/dist/index.mjs CHANGED
@@ -3380,6 +3380,17 @@ var FlowsService = class extends Service {
3380
3380
  FlowDeleteOptions
3381
3381
  );
3382
3382
  }
3383
+ async execute(FlowExecuteParams, FlowExecuteOptions) {
3384
+ return await super.sendRequest(
3385
+ {
3386
+ method: "POST",
3387
+ url: "flows/" + FlowExecuteParams.flowId,
3388
+ body: {},
3389
+ authenticationNotOptional: true
3390
+ },
3391
+ FlowExecuteOptions
3392
+ );
3393
+ }
3383
3394
  };
3384
3395
 
3385
3396
  // src/types/types.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.200",
3
+ "version": "1.2.202",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",