@juhuu/sdk-ts 1.2.199 → 1.2.201
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 +24 -5
- package/dist/index.d.ts +24 -5
- package/dist/index.js +13 -2
- package/dist/index.mjs +13 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -13,6 +13,12 @@ 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";
|
17
|
+
type QuickAction = {
|
18
|
+
icon: string | null;
|
19
|
+
name: LocaleString;
|
20
|
+
flowId: string;
|
21
|
+
};
|
16
22
|
type License = {
|
17
23
|
type: "url";
|
18
24
|
validUntil: Date | null;
|
@@ -933,6 +939,7 @@ declare class FlowsService extends Service {
|
|
933
939
|
retrieve(FlowRetrieveParams: JUHUU.Flow.Retrieve.Params, FlowRetrieveOptions?: JUHUU.Flow.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Retrieve.Response>>;
|
934
940
|
update(FlowUpdateParams: JUHUU.Flow.Update.Params, FlowUpdateOptions?: JUHUU.Flow.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Update.Response>>;
|
935
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>>;
|
936
943
|
}
|
937
944
|
|
938
945
|
declare class Juhuu {
|
@@ -2730,6 +2737,8 @@ declare namespace JUHUU {
|
|
2730
2737
|
disabledBy: "propertyAdmin" | "deviceNodeArray" | null;
|
2731
2738
|
visible: boolean;
|
2732
2739
|
incidentTemplateIdArray: string[];
|
2740
|
+
adminQuickActionArray: QuickAction[];
|
2741
|
+
userQuickActionArray: QuickAction[];
|
2733
2742
|
};
|
2734
2743
|
export interface RentableDeviceGroup extends Base {
|
2735
2744
|
type: "rentableDeviceGroup";
|
@@ -3581,14 +3590,16 @@ declare namespace JUHUU {
|
|
3581
3590
|
id: string;
|
3582
3591
|
readonly object: "flow";
|
3583
3592
|
name: string;
|
3584
|
-
|
3593
|
+
startNode: FlowBlock;
|
3585
3594
|
nodeArray: FlowBlock[];
|
3586
3595
|
edgeArray: FlowEdge[];
|
3596
|
+
status: FlowStatus;
|
3597
|
+
errorMessage: string | null;
|
3587
3598
|
};
|
3588
3599
|
namespace Create {
|
3589
3600
|
type Params = {
|
3590
3601
|
name: string;
|
3591
|
-
|
3602
|
+
startNode: FlowBlock;
|
3592
3603
|
nodeArray: FlowBlock[];
|
3593
3604
|
edgeArray: FlowEdge[];
|
3594
3605
|
};
|
@@ -3622,7 +3633,7 @@ declare namespace JUHUU {
|
|
3622
3633
|
type Params = {
|
3623
3634
|
flowId: string;
|
3624
3635
|
name?: string;
|
3625
|
-
|
3636
|
+
startNode?: FlowBlock;
|
3626
3637
|
nodeArray?: FlowBlock[];
|
3627
3638
|
edgeArray?: FlowEdge[];
|
3628
3639
|
};
|
@@ -3640,6 +3651,15 @@ declare namespace JUHUU {
|
|
3640
3651
|
flow: JUHUU.Flow.Object;
|
3641
3652
|
};
|
3642
3653
|
}
|
3654
|
+
namespace Execute {
|
3655
|
+
type Params = {
|
3656
|
+
flowId: string;
|
3657
|
+
};
|
3658
|
+
type Options = JUHUU.RequestOptions;
|
3659
|
+
type Response = {
|
3660
|
+
flow: JUHUU.Flow.Object;
|
3661
|
+
};
|
3662
|
+
}
|
3643
3663
|
}
|
3644
3664
|
namespace DeviceTemplate {
|
3645
3665
|
type Object = {
|
@@ -3655,7 +3675,6 @@ declare namespace JUHUU {
|
|
3655
3675
|
source: "fluctuo" | null;
|
3656
3676
|
invalidAt: Date | null;
|
3657
3677
|
commandArray: Command[];
|
3658
|
-
useQuickActionArray: Layout.PreviewButton[];
|
3659
3678
|
deviceImageDark: string;
|
3660
3679
|
deviceImageLight: string;
|
3661
3680
|
callToAction: LocaleString;
|
@@ -3808,4 +3827,4 @@ declare namespace JUHUU {
|
|
3808
3827
|
}
|
3809
3828
|
}
|
3810
3829
|
|
3811
|
-
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, 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 };
|
3830
|
+
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,12 @@ 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";
|
17
|
+
type QuickAction = {
|
18
|
+
icon: string | null;
|
19
|
+
name: LocaleString;
|
20
|
+
flowId: string;
|
21
|
+
};
|
16
22
|
type License = {
|
17
23
|
type: "url";
|
18
24
|
validUntil: Date | null;
|
@@ -933,6 +939,7 @@ declare class FlowsService extends Service {
|
|
933
939
|
retrieve(FlowRetrieveParams: JUHUU.Flow.Retrieve.Params, FlowRetrieveOptions?: JUHUU.Flow.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Retrieve.Response>>;
|
934
940
|
update(FlowUpdateParams: JUHUU.Flow.Update.Params, FlowUpdateOptions?: JUHUU.Flow.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Update.Response>>;
|
935
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>>;
|
936
943
|
}
|
937
944
|
|
938
945
|
declare class Juhuu {
|
@@ -2730,6 +2737,8 @@ declare namespace JUHUU {
|
|
2730
2737
|
disabledBy: "propertyAdmin" | "deviceNodeArray" | null;
|
2731
2738
|
visible: boolean;
|
2732
2739
|
incidentTemplateIdArray: string[];
|
2740
|
+
adminQuickActionArray: QuickAction[];
|
2741
|
+
userQuickActionArray: QuickAction[];
|
2733
2742
|
};
|
2734
2743
|
export interface RentableDeviceGroup extends Base {
|
2735
2744
|
type: "rentableDeviceGroup";
|
@@ -3581,14 +3590,16 @@ declare namespace JUHUU {
|
|
3581
3590
|
id: string;
|
3582
3591
|
readonly object: "flow";
|
3583
3592
|
name: string;
|
3584
|
-
|
3593
|
+
startNode: FlowBlock;
|
3585
3594
|
nodeArray: FlowBlock[];
|
3586
3595
|
edgeArray: FlowEdge[];
|
3596
|
+
status: FlowStatus;
|
3597
|
+
errorMessage: string | null;
|
3587
3598
|
};
|
3588
3599
|
namespace Create {
|
3589
3600
|
type Params = {
|
3590
3601
|
name: string;
|
3591
|
-
|
3602
|
+
startNode: FlowBlock;
|
3592
3603
|
nodeArray: FlowBlock[];
|
3593
3604
|
edgeArray: FlowEdge[];
|
3594
3605
|
};
|
@@ -3622,7 +3633,7 @@ declare namespace JUHUU {
|
|
3622
3633
|
type Params = {
|
3623
3634
|
flowId: string;
|
3624
3635
|
name?: string;
|
3625
|
-
|
3636
|
+
startNode?: FlowBlock;
|
3626
3637
|
nodeArray?: FlowBlock[];
|
3627
3638
|
edgeArray?: FlowEdge[];
|
3628
3639
|
};
|
@@ -3640,6 +3651,15 @@ declare namespace JUHUU {
|
|
3640
3651
|
flow: JUHUU.Flow.Object;
|
3641
3652
|
};
|
3642
3653
|
}
|
3654
|
+
namespace Execute {
|
3655
|
+
type Params = {
|
3656
|
+
flowId: string;
|
3657
|
+
};
|
3658
|
+
type Options = JUHUU.RequestOptions;
|
3659
|
+
type Response = {
|
3660
|
+
flow: JUHUU.Flow.Object;
|
3661
|
+
};
|
3662
|
+
}
|
3643
3663
|
}
|
3644
3664
|
namespace DeviceTemplate {
|
3645
3665
|
type Object = {
|
@@ -3655,7 +3675,6 @@ declare namespace JUHUU {
|
|
3655
3675
|
source: "fluctuo" | null;
|
3656
3676
|
invalidAt: Date | null;
|
3657
3677
|
commandArray: Command[];
|
3658
|
-
useQuickActionArray: Layout.PreviewButton[];
|
3659
3678
|
deviceImageDark: string;
|
3660
3679
|
deviceImageLight: string;
|
3661
3680
|
callToAction: LocaleString;
|
@@ -3808,4 +3827,4 @@ declare namespace JUHUU {
|
|
3808
3827
|
}
|
3809
3828
|
}
|
3810
3829
|
|
3811
|
-
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, 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 };
|
3830
|
+
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
@@ -3359,7 +3359,7 @@ var FlowsService = class extends Service {
|
|
3359
3359
|
url: "flows",
|
3360
3360
|
body: {
|
3361
3361
|
name: FlowCreateParams.name,
|
3362
|
-
|
3362
|
+
startNode: FlowCreateParams.startNode,
|
3363
3363
|
nodeArray: FlowCreateParams.nodeArray,
|
3364
3364
|
edgeArray: FlowCreateParams.edgeArray
|
3365
3365
|
},
|
@@ -3404,7 +3404,7 @@ var FlowsService = class extends Service {
|
|
3404
3404
|
url: "flows/" + FlowUpdateParams.flowId,
|
3405
3405
|
body: {
|
3406
3406
|
name: FlowUpdateParams.name,
|
3407
|
-
|
3407
|
+
startNode: FlowUpdateParams.startNode,
|
3408
3408
|
nodeArray: FlowUpdateParams.nodeArray,
|
3409
3409
|
edgeArray: FlowUpdateParams.edgeArray
|
3410
3410
|
},
|
@@ -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
@@ -3315,7 +3315,7 @@ var FlowsService = class extends Service {
|
|
3315
3315
|
url: "flows",
|
3316
3316
|
body: {
|
3317
3317
|
name: FlowCreateParams.name,
|
3318
|
-
|
3318
|
+
startNode: FlowCreateParams.startNode,
|
3319
3319
|
nodeArray: FlowCreateParams.nodeArray,
|
3320
3320
|
edgeArray: FlowCreateParams.edgeArray
|
3321
3321
|
},
|
@@ -3360,7 +3360,7 @@ var FlowsService = class extends Service {
|
|
3360
3360
|
url: "flows/" + FlowUpdateParams.flowId,
|
3361
3361
|
body: {
|
3362
3362
|
name: FlowUpdateParams.name,
|
3363
|
-
|
3363
|
+
startNode: FlowUpdateParams.startNode,
|
3364
3364
|
nodeArray: FlowUpdateParams.nodeArray,
|
3365
3365
|
edgeArray: FlowUpdateParams.edgeArray
|
3366
3366
|
},
|
@@ -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
|