@juhuu/sdk-ts 1.2.197 → 1.2.198
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 +102 -4
- package/dist/index.d.ts +102 -4
- package/dist/index.js +81 -0
- package/dist/index.mjs +81 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -539,6 +539,27 @@ interface LocaleString {
|
|
539
539
|
cs?: string;
|
540
540
|
et?: string;
|
541
541
|
}
|
542
|
+
type FlowBlock = {
|
543
|
+
id: string;
|
544
|
+
type: string;
|
545
|
+
in: {
|
546
|
+
[key: string]: string;
|
547
|
+
};
|
548
|
+
out: {
|
549
|
+
[key: string]: string;
|
550
|
+
};
|
551
|
+
};
|
552
|
+
type FlowEdge = {
|
553
|
+
id: string;
|
554
|
+
from: {
|
555
|
+
blockId: string;
|
556
|
+
output: string;
|
557
|
+
};
|
558
|
+
to: {
|
559
|
+
blockId: string;
|
560
|
+
input: string;
|
561
|
+
};
|
562
|
+
};
|
542
563
|
|
543
564
|
declare class Service {
|
544
565
|
constructor(config: JUHUU.SetupConfig);
|
@@ -905,6 +926,15 @@ declare class EmzService extends Service {
|
|
905
926
|
credentials(EmzCredentialsParams: JUHUU.Emz.Credentials.Params, EmzCredentialsOptions?: JUHUU.Emz.Credentials.Options): Promise<JUHUU.HttpResponse<JUHUU.Emz.Credentials.Response>>;
|
906
927
|
}
|
907
928
|
|
929
|
+
declare class FlowsService extends Service {
|
930
|
+
constructor(config: JUHUU.SetupConfig);
|
931
|
+
create(FlowCreateParams: JUHUU.Flow.Create.Params, FlowCreateOptions?: JUHUU.Flow.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Create.Response>>;
|
932
|
+
list(FlowListParams: JUHUU.Flow.List.Params, FlowListOptions?: JUHUU.Flow.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.List.Response>>;
|
933
|
+
retrieve(FlowRetrieveParams: JUHUU.Flow.Retrieve.Params, FlowRetrieveOptions?: JUHUU.Flow.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Retrieve.Response>>;
|
934
|
+
update(FlowUpdateParams: JUHUU.Flow.Update.Params, FlowUpdateOptions?: JUHUU.Flow.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Update.Response>>;
|
935
|
+
delete(FlowDeleteParams: JUHUU.Flow.Delete.Params, FlowDeleteOptions?: JUHUU.Flow.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Delete.Response>>;
|
936
|
+
}
|
937
|
+
|
908
938
|
declare class Juhuu {
|
909
939
|
constructor(config: JUHUU.SetupConfig);
|
910
940
|
/**
|
@@ -943,6 +973,7 @@ declare class Juhuu {
|
|
943
973
|
readonly parameterAnomalyGroups: ParameterAnomalyGroupsService;
|
944
974
|
readonly parameterAnomalyGroupTrackers: ParameterAnomalyGroupTrackersService;
|
945
975
|
readonly emz: EmzService;
|
976
|
+
readonly flows: FlowsService;
|
946
977
|
}
|
947
978
|
declare namespace JUHUU {
|
948
979
|
interface SetupConfig {
|
@@ -2418,18 +2449,21 @@ declare namespace JUHUU {
|
|
2418
2449
|
toDate: Date;
|
2419
2450
|
amountCapturedTotal: number;
|
2420
2451
|
amountToPayoutTotal: number;
|
2452
|
+
amountRefundedTotal: number;
|
2421
2453
|
serviceFeeTotal: number;
|
2422
2454
|
transactionFeeTotal: number;
|
2423
2455
|
transferPaymentIdArray: string[];
|
2456
|
+
transferPaymentRefundIdArray: string[];
|
2424
2457
|
periodPaymentIdArray: string[];
|
2458
|
+
periodPaymentRefundIdArray: string[];
|
2425
2459
|
stripePayoutFee: number | null;
|
2426
2460
|
stripeTransferId: string | null;
|
2427
2461
|
stripeTransferFee: number | null;
|
2428
2462
|
stripeTransferBalanceTransactionId: string | null;
|
2429
2463
|
stripePayoutId: string | null;
|
2430
2464
|
stripePayoutBalanceTransactionId: string | null;
|
2431
|
-
|
2432
|
-
|
2465
|
+
lowestTransferInvoiceNumber: number;
|
2466
|
+
highestTransferInvoiceNumber: number;
|
2433
2467
|
approvedByUserId: string | null;
|
2434
2468
|
createdBy: "propertyAdmin" | "system";
|
2435
2469
|
createdByUserId: string | null;
|
@@ -2438,7 +2472,6 @@ declare namespace JUHUU {
|
|
2438
2472
|
receiver: Party;
|
2439
2473
|
number: number;
|
2440
2474
|
currencyCode: CurrencyCode;
|
2441
|
-
version: number;
|
2442
2475
|
creditNotePdfId: string;
|
2443
2476
|
stripeConnectedAccountId: string;
|
2444
2477
|
};
|
@@ -3543,6 +3576,71 @@ declare namespace JUHUU {
|
|
3543
3576
|
}
|
3544
3577
|
export { };
|
3545
3578
|
}
|
3579
|
+
namespace Flow {
|
3580
|
+
type Object = {
|
3581
|
+
id: string;
|
3582
|
+
readonly object: "flow";
|
3583
|
+
name: string;
|
3584
|
+
startBlock: FlowBlock;
|
3585
|
+
blocks: FlowBlock[];
|
3586
|
+
edges: FlowEdge[];
|
3587
|
+
};
|
3588
|
+
namespace Create {
|
3589
|
+
type Params = {
|
3590
|
+
name: string;
|
3591
|
+
startBlock: FlowBlock;
|
3592
|
+
blocks: FlowBlock[];
|
3593
|
+
edges: FlowEdge[];
|
3594
|
+
};
|
3595
|
+
type Options = JUHUU.RequestOptions;
|
3596
|
+
type Response = {
|
3597
|
+
flow: JUHUU.Flow.Object;
|
3598
|
+
};
|
3599
|
+
}
|
3600
|
+
namespace Retrieve {
|
3601
|
+
type Params = {
|
3602
|
+
flowId: string;
|
3603
|
+
};
|
3604
|
+
type Options = JUHUU.RequestOptions;
|
3605
|
+
type Response = {
|
3606
|
+
flow: JUHUU.Flow.Object;
|
3607
|
+
};
|
3608
|
+
}
|
3609
|
+
namespace List {
|
3610
|
+
type Params = {};
|
3611
|
+
type Options = {
|
3612
|
+
limit?: number;
|
3613
|
+
skip?: number;
|
3614
|
+
} & JUHUU.RequestOptions;
|
3615
|
+
type Response = {
|
3616
|
+
flowArray: JUHUU.Flow.Object[];
|
3617
|
+
count: number;
|
3618
|
+
hasMore: boolean;
|
3619
|
+
};
|
3620
|
+
}
|
3621
|
+
namespace Update {
|
3622
|
+
type Params = {
|
3623
|
+
flowId: string;
|
3624
|
+
name?: string;
|
3625
|
+
startBlock?: FlowBlock;
|
3626
|
+
blocks?: FlowBlock[];
|
3627
|
+
edges?: FlowEdge[];
|
3628
|
+
};
|
3629
|
+
type Options = JUHUU.RequestOptions;
|
3630
|
+
type Response = {
|
3631
|
+
flow: JUHUU.Flow.Object;
|
3632
|
+
};
|
3633
|
+
}
|
3634
|
+
namespace Delete {
|
3635
|
+
type Params = {
|
3636
|
+
flowId: string;
|
3637
|
+
};
|
3638
|
+
type Options = JUHUU.RequestOptions;
|
3639
|
+
type Response = {
|
3640
|
+
flow: JUHUU.Flow.Object;
|
3641
|
+
};
|
3642
|
+
}
|
3643
|
+
}
|
3546
3644
|
namespace DeviceTemplate {
|
3547
3645
|
type Object = {
|
3548
3646
|
id: string;
|
@@ -3710,4 +3808,4 @@ declare namespace JUHUU {
|
|
3710
3808
|
}
|
3711
3809
|
}
|
3712
3810
|
|
3713
|
-
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 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 };
|
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 };
|
package/dist/index.d.ts
CHANGED
@@ -539,6 +539,27 @@ interface LocaleString {
|
|
539
539
|
cs?: string;
|
540
540
|
et?: string;
|
541
541
|
}
|
542
|
+
type FlowBlock = {
|
543
|
+
id: string;
|
544
|
+
type: string;
|
545
|
+
in: {
|
546
|
+
[key: string]: string;
|
547
|
+
};
|
548
|
+
out: {
|
549
|
+
[key: string]: string;
|
550
|
+
};
|
551
|
+
};
|
552
|
+
type FlowEdge = {
|
553
|
+
id: string;
|
554
|
+
from: {
|
555
|
+
blockId: string;
|
556
|
+
output: string;
|
557
|
+
};
|
558
|
+
to: {
|
559
|
+
blockId: string;
|
560
|
+
input: string;
|
561
|
+
};
|
562
|
+
};
|
542
563
|
|
543
564
|
declare class Service {
|
544
565
|
constructor(config: JUHUU.SetupConfig);
|
@@ -905,6 +926,15 @@ declare class EmzService extends Service {
|
|
905
926
|
credentials(EmzCredentialsParams: JUHUU.Emz.Credentials.Params, EmzCredentialsOptions?: JUHUU.Emz.Credentials.Options): Promise<JUHUU.HttpResponse<JUHUU.Emz.Credentials.Response>>;
|
906
927
|
}
|
907
928
|
|
929
|
+
declare class FlowsService extends Service {
|
930
|
+
constructor(config: JUHUU.SetupConfig);
|
931
|
+
create(FlowCreateParams: JUHUU.Flow.Create.Params, FlowCreateOptions?: JUHUU.Flow.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Create.Response>>;
|
932
|
+
list(FlowListParams: JUHUU.Flow.List.Params, FlowListOptions?: JUHUU.Flow.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.List.Response>>;
|
933
|
+
retrieve(FlowRetrieveParams: JUHUU.Flow.Retrieve.Params, FlowRetrieveOptions?: JUHUU.Flow.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Retrieve.Response>>;
|
934
|
+
update(FlowUpdateParams: JUHUU.Flow.Update.Params, FlowUpdateOptions?: JUHUU.Flow.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Update.Response>>;
|
935
|
+
delete(FlowDeleteParams: JUHUU.Flow.Delete.Params, FlowDeleteOptions?: JUHUU.Flow.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Delete.Response>>;
|
936
|
+
}
|
937
|
+
|
908
938
|
declare class Juhuu {
|
909
939
|
constructor(config: JUHUU.SetupConfig);
|
910
940
|
/**
|
@@ -943,6 +973,7 @@ declare class Juhuu {
|
|
943
973
|
readonly parameterAnomalyGroups: ParameterAnomalyGroupsService;
|
944
974
|
readonly parameterAnomalyGroupTrackers: ParameterAnomalyGroupTrackersService;
|
945
975
|
readonly emz: EmzService;
|
976
|
+
readonly flows: FlowsService;
|
946
977
|
}
|
947
978
|
declare namespace JUHUU {
|
948
979
|
interface SetupConfig {
|
@@ -2418,18 +2449,21 @@ declare namespace JUHUU {
|
|
2418
2449
|
toDate: Date;
|
2419
2450
|
amountCapturedTotal: number;
|
2420
2451
|
amountToPayoutTotal: number;
|
2452
|
+
amountRefundedTotal: number;
|
2421
2453
|
serviceFeeTotal: number;
|
2422
2454
|
transactionFeeTotal: number;
|
2423
2455
|
transferPaymentIdArray: string[];
|
2456
|
+
transferPaymentRefundIdArray: string[];
|
2424
2457
|
periodPaymentIdArray: string[];
|
2458
|
+
periodPaymentRefundIdArray: string[];
|
2425
2459
|
stripePayoutFee: number | null;
|
2426
2460
|
stripeTransferId: string | null;
|
2427
2461
|
stripeTransferFee: number | null;
|
2428
2462
|
stripeTransferBalanceTransactionId: string | null;
|
2429
2463
|
stripePayoutId: string | null;
|
2430
2464
|
stripePayoutBalanceTransactionId: string | null;
|
2431
|
-
|
2432
|
-
|
2465
|
+
lowestTransferInvoiceNumber: number;
|
2466
|
+
highestTransferInvoiceNumber: number;
|
2433
2467
|
approvedByUserId: string | null;
|
2434
2468
|
createdBy: "propertyAdmin" | "system";
|
2435
2469
|
createdByUserId: string | null;
|
@@ -2438,7 +2472,6 @@ declare namespace JUHUU {
|
|
2438
2472
|
receiver: Party;
|
2439
2473
|
number: number;
|
2440
2474
|
currencyCode: CurrencyCode;
|
2441
|
-
version: number;
|
2442
2475
|
creditNotePdfId: string;
|
2443
2476
|
stripeConnectedAccountId: string;
|
2444
2477
|
};
|
@@ -3543,6 +3576,71 @@ declare namespace JUHUU {
|
|
3543
3576
|
}
|
3544
3577
|
export { };
|
3545
3578
|
}
|
3579
|
+
namespace Flow {
|
3580
|
+
type Object = {
|
3581
|
+
id: string;
|
3582
|
+
readonly object: "flow";
|
3583
|
+
name: string;
|
3584
|
+
startBlock: FlowBlock;
|
3585
|
+
blocks: FlowBlock[];
|
3586
|
+
edges: FlowEdge[];
|
3587
|
+
};
|
3588
|
+
namespace Create {
|
3589
|
+
type Params = {
|
3590
|
+
name: string;
|
3591
|
+
startBlock: FlowBlock;
|
3592
|
+
blocks: FlowBlock[];
|
3593
|
+
edges: FlowEdge[];
|
3594
|
+
};
|
3595
|
+
type Options = JUHUU.RequestOptions;
|
3596
|
+
type Response = {
|
3597
|
+
flow: JUHUU.Flow.Object;
|
3598
|
+
};
|
3599
|
+
}
|
3600
|
+
namespace Retrieve {
|
3601
|
+
type Params = {
|
3602
|
+
flowId: string;
|
3603
|
+
};
|
3604
|
+
type Options = JUHUU.RequestOptions;
|
3605
|
+
type Response = {
|
3606
|
+
flow: JUHUU.Flow.Object;
|
3607
|
+
};
|
3608
|
+
}
|
3609
|
+
namespace List {
|
3610
|
+
type Params = {};
|
3611
|
+
type Options = {
|
3612
|
+
limit?: number;
|
3613
|
+
skip?: number;
|
3614
|
+
} & JUHUU.RequestOptions;
|
3615
|
+
type Response = {
|
3616
|
+
flowArray: JUHUU.Flow.Object[];
|
3617
|
+
count: number;
|
3618
|
+
hasMore: boolean;
|
3619
|
+
};
|
3620
|
+
}
|
3621
|
+
namespace Update {
|
3622
|
+
type Params = {
|
3623
|
+
flowId: string;
|
3624
|
+
name?: string;
|
3625
|
+
startBlock?: FlowBlock;
|
3626
|
+
blocks?: FlowBlock[];
|
3627
|
+
edges?: FlowEdge[];
|
3628
|
+
};
|
3629
|
+
type Options = JUHUU.RequestOptions;
|
3630
|
+
type Response = {
|
3631
|
+
flow: JUHUU.Flow.Object;
|
3632
|
+
};
|
3633
|
+
}
|
3634
|
+
namespace Delete {
|
3635
|
+
type Params = {
|
3636
|
+
flowId: string;
|
3637
|
+
};
|
3638
|
+
type Options = JUHUU.RequestOptions;
|
3639
|
+
type Response = {
|
3640
|
+
flow: JUHUU.Flow.Object;
|
3641
|
+
};
|
3642
|
+
}
|
3643
|
+
}
|
3546
3644
|
namespace DeviceTemplate {
|
3547
3645
|
type Object = {
|
3548
3646
|
id: string;
|
@@ -3710,4 +3808,4 @@ declare namespace JUHUU {
|
|
3710
3808
|
}
|
3711
3809
|
}
|
3712
3810
|
|
3713
|
-
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 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 };
|
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 };
|
package/dist/index.js
CHANGED
@@ -3347,6 +3347,85 @@ var EmzService = class extends Service {
|
|
3347
3347
|
}
|
3348
3348
|
};
|
3349
3349
|
|
3350
|
+
// src/flows/flows.service.ts
|
3351
|
+
var FlowsService = class extends Service {
|
3352
|
+
constructor(config) {
|
3353
|
+
super(config);
|
3354
|
+
}
|
3355
|
+
async create(FlowCreateParams, FlowCreateOptions) {
|
3356
|
+
return await super.sendRequest(
|
3357
|
+
{
|
3358
|
+
method: "POST",
|
3359
|
+
url: "flows",
|
3360
|
+
body: {
|
3361
|
+
name: FlowCreateParams.name,
|
3362
|
+
startBlock: FlowCreateParams.startBlock,
|
3363
|
+
blocks: FlowCreateParams.blocks,
|
3364
|
+
edges: FlowCreateParams.edges
|
3365
|
+
},
|
3366
|
+
authenticationNotOptional: true
|
3367
|
+
},
|
3368
|
+
FlowCreateOptions
|
3369
|
+
);
|
3370
|
+
}
|
3371
|
+
async list(FlowListParams, FlowListOptions) {
|
3372
|
+
const queryArray = [];
|
3373
|
+
if (FlowListOptions?.limit !== void 0) {
|
3374
|
+
queryArray.push("limit=" + FlowListOptions.limit);
|
3375
|
+
}
|
3376
|
+
if (FlowListOptions?.skip !== void 0) {
|
3377
|
+
queryArray.push("skip=" + FlowListOptions.skip);
|
3378
|
+
}
|
3379
|
+
return await super.sendRequest(
|
3380
|
+
{
|
3381
|
+
method: "GET",
|
3382
|
+
url: "flows?" + queryArray.join("&"),
|
3383
|
+
body: void 0,
|
3384
|
+
authenticationNotOptional: false
|
3385
|
+
},
|
3386
|
+
FlowListOptions
|
3387
|
+
);
|
3388
|
+
}
|
3389
|
+
async retrieve(FlowRetrieveParams, FlowRetrieveOptions) {
|
3390
|
+
return await super.sendRequest(
|
3391
|
+
{
|
3392
|
+
method: "GET",
|
3393
|
+
url: "flows/" + FlowRetrieveParams.flowId,
|
3394
|
+
body: void 0,
|
3395
|
+
authenticationNotOptional: false
|
3396
|
+
},
|
3397
|
+
FlowRetrieveOptions
|
3398
|
+
);
|
3399
|
+
}
|
3400
|
+
async update(FlowUpdateParams, FlowUpdateOptions) {
|
3401
|
+
return await super.sendRequest(
|
3402
|
+
{
|
3403
|
+
method: "PATCH",
|
3404
|
+
url: "flows/" + FlowUpdateParams.flowId,
|
3405
|
+
body: {
|
3406
|
+
name: FlowUpdateParams.name,
|
3407
|
+
startBlock: FlowUpdateParams.startBlock,
|
3408
|
+
blocks: FlowUpdateParams.blocks,
|
3409
|
+
edges: FlowUpdateParams.edges
|
3410
|
+
},
|
3411
|
+
authenticationNotOptional: true
|
3412
|
+
},
|
3413
|
+
FlowUpdateOptions
|
3414
|
+
);
|
3415
|
+
}
|
3416
|
+
async delete(FlowDeleteParams, FlowDeleteOptions) {
|
3417
|
+
return await super.sendRequest(
|
3418
|
+
{
|
3419
|
+
method: "DELETE",
|
3420
|
+
url: "flows/" + FlowDeleteParams.flowId,
|
3421
|
+
authenticationNotOptional: true,
|
3422
|
+
body: void 0
|
3423
|
+
},
|
3424
|
+
FlowDeleteOptions
|
3425
|
+
);
|
3426
|
+
}
|
3427
|
+
};
|
3428
|
+
|
3350
3429
|
// src/types/types.ts
|
3351
3430
|
var LanguageCodeArray = [
|
3352
3431
|
"en",
|
@@ -3530,6 +3609,7 @@ var Juhuu = class {
|
|
3530
3609
|
this.parameterAnomalyGroups = new ParameterAnomalyGroupsService(config);
|
3531
3610
|
this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
|
3532
3611
|
this.emz = new EmzService(config);
|
3612
|
+
this.flows = new FlowsService(config);
|
3533
3613
|
}
|
3534
3614
|
/**
|
3535
3615
|
* Top Level Resources
|
@@ -3567,6 +3647,7 @@ var Juhuu = class {
|
|
3567
3647
|
parameterAnomalyGroups;
|
3568
3648
|
parameterAnomalyGroupTrackers;
|
3569
3649
|
emz;
|
3650
|
+
flows;
|
3570
3651
|
};
|
3571
3652
|
var JUHUU;
|
3572
3653
|
((JUHUU2) => {
|
package/dist/index.mjs
CHANGED
@@ -3303,6 +3303,85 @@ var EmzService = class extends Service {
|
|
3303
3303
|
}
|
3304
3304
|
};
|
3305
3305
|
|
3306
|
+
// src/flows/flows.service.ts
|
3307
|
+
var FlowsService = class extends Service {
|
3308
|
+
constructor(config) {
|
3309
|
+
super(config);
|
3310
|
+
}
|
3311
|
+
async create(FlowCreateParams, FlowCreateOptions) {
|
3312
|
+
return await super.sendRequest(
|
3313
|
+
{
|
3314
|
+
method: "POST",
|
3315
|
+
url: "flows",
|
3316
|
+
body: {
|
3317
|
+
name: FlowCreateParams.name,
|
3318
|
+
startBlock: FlowCreateParams.startBlock,
|
3319
|
+
blocks: FlowCreateParams.blocks,
|
3320
|
+
edges: FlowCreateParams.edges
|
3321
|
+
},
|
3322
|
+
authenticationNotOptional: true
|
3323
|
+
},
|
3324
|
+
FlowCreateOptions
|
3325
|
+
);
|
3326
|
+
}
|
3327
|
+
async list(FlowListParams, FlowListOptions) {
|
3328
|
+
const queryArray = [];
|
3329
|
+
if (FlowListOptions?.limit !== void 0) {
|
3330
|
+
queryArray.push("limit=" + FlowListOptions.limit);
|
3331
|
+
}
|
3332
|
+
if (FlowListOptions?.skip !== void 0) {
|
3333
|
+
queryArray.push("skip=" + FlowListOptions.skip);
|
3334
|
+
}
|
3335
|
+
return await super.sendRequest(
|
3336
|
+
{
|
3337
|
+
method: "GET",
|
3338
|
+
url: "flows?" + queryArray.join("&"),
|
3339
|
+
body: void 0,
|
3340
|
+
authenticationNotOptional: false
|
3341
|
+
},
|
3342
|
+
FlowListOptions
|
3343
|
+
);
|
3344
|
+
}
|
3345
|
+
async retrieve(FlowRetrieveParams, FlowRetrieveOptions) {
|
3346
|
+
return await super.sendRequest(
|
3347
|
+
{
|
3348
|
+
method: "GET",
|
3349
|
+
url: "flows/" + FlowRetrieveParams.flowId,
|
3350
|
+
body: void 0,
|
3351
|
+
authenticationNotOptional: false
|
3352
|
+
},
|
3353
|
+
FlowRetrieveOptions
|
3354
|
+
);
|
3355
|
+
}
|
3356
|
+
async update(FlowUpdateParams, FlowUpdateOptions) {
|
3357
|
+
return await super.sendRequest(
|
3358
|
+
{
|
3359
|
+
method: "PATCH",
|
3360
|
+
url: "flows/" + FlowUpdateParams.flowId,
|
3361
|
+
body: {
|
3362
|
+
name: FlowUpdateParams.name,
|
3363
|
+
startBlock: FlowUpdateParams.startBlock,
|
3364
|
+
blocks: FlowUpdateParams.blocks,
|
3365
|
+
edges: FlowUpdateParams.edges
|
3366
|
+
},
|
3367
|
+
authenticationNotOptional: true
|
3368
|
+
},
|
3369
|
+
FlowUpdateOptions
|
3370
|
+
);
|
3371
|
+
}
|
3372
|
+
async delete(FlowDeleteParams, FlowDeleteOptions) {
|
3373
|
+
return await super.sendRequest(
|
3374
|
+
{
|
3375
|
+
method: "DELETE",
|
3376
|
+
url: "flows/" + FlowDeleteParams.flowId,
|
3377
|
+
authenticationNotOptional: true,
|
3378
|
+
body: void 0
|
3379
|
+
},
|
3380
|
+
FlowDeleteOptions
|
3381
|
+
);
|
3382
|
+
}
|
3383
|
+
};
|
3384
|
+
|
3306
3385
|
// src/types/types.ts
|
3307
3386
|
var LanguageCodeArray = [
|
3308
3387
|
"en",
|
@@ -3486,6 +3565,7 @@ var Juhuu = class {
|
|
3486
3565
|
this.parameterAnomalyGroups = new ParameterAnomalyGroupsService(config);
|
3487
3566
|
this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
|
3488
3567
|
this.emz = new EmzService(config);
|
3568
|
+
this.flows = new FlowsService(config);
|
3489
3569
|
}
|
3490
3570
|
/**
|
3491
3571
|
* Top Level Resources
|
@@ -3523,6 +3603,7 @@ var Juhuu = class {
|
|
3523
3603
|
parameterAnomalyGroups;
|
3524
3604
|
parameterAnomalyGroupTrackers;
|
3525
3605
|
emz;
|
3606
|
+
flows;
|
3526
3607
|
};
|
3527
3608
|
var JUHUU;
|
3528
3609
|
((JUHUU2) => {
|