@juhuu/sdk-ts 1.2.106 → 1.2.108
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 +49 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.js +15 -0
- package/dist/index.mjs +15 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -179,7 +179,7 @@ interface Party extends Person {
|
|
179
179
|
}
|
180
180
|
type VeloBrushDeviceDocumentUserManualStep = "prepareBike1" | "prepareBike2" | "chooseCycleType" | "openDoors1" | "extendBikeDrawer1" | "unfoldRamp1" | "placeBike1" | "fixBike1" | "fixBike2" | "retractBikeDrawer1" | "closeDoors1" | "selectWashProgram" | "waitForWashProgram" | "openDoors2" | "extendBikeDrawer2" | "dryBike1" | "dryBike2" | "releaseBike" | "unloadBike" | "retractBikeDrawer2" | "closeDoors2" | "lockDoors" | "error" | "emergencyStop" | "waitingForSession";
|
181
181
|
type PaymentStatus = "waitingForConfirmation" | "waitingForAmountFinalization" | "waitingForCapture" | "waitingForTransitConfirmation" | "inTransitToProvider" | "captured" | "inTransitToProperty" | "payedOut";
|
182
|
-
type PaymentRefundStatus = "waitingForArrivalAtUser" | "waitingForPayout" | "payedOut" | "failed";
|
182
|
+
type PaymentRefundStatus = "waitingForArrivalAtUser" | "waitingForPayout" | "inTransitToProperty" | "payedOut" | "failed";
|
183
183
|
type PaymentServiceProvider = "stripe";
|
184
184
|
type PayoutStatus = "waitingForApproval" | "inTransitToProperty" | "payedOut";
|
185
185
|
type BusinessType = "individual" | "company" | "non_profit" | "government_entity";
|
@@ -593,6 +593,7 @@ declare class SessionService extends Service {
|
|
593
593
|
|
594
594
|
declare class LinkService extends Service {
|
595
595
|
constructor(config: JUHUU.SetupConfig);
|
596
|
+
search(LinkSearchParams: JUHUU.Link.Search.Params, LinkSearchOptions?: JUHUU.Link.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Search.Response>>;
|
596
597
|
create(LinkCreateParams: JUHUU.Link.Create.Params, LinkCreateOptions?: JUHUU.Link.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Create.Response>>;
|
597
598
|
retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
|
598
599
|
list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
|
@@ -2505,6 +2506,17 @@ declare namespace JUHUU {
|
|
2505
2506
|
property?: JUHUU.Property.Object;
|
2506
2507
|
};
|
2507
2508
|
}
|
2509
|
+
export namespace Search {
|
2510
|
+
type Params = {
|
2511
|
+
q: string;
|
2512
|
+
};
|
2513
|
+
type Options = {} & JUHUU.RequestOptions;
|
2514
|
+
type Response = {
|
2515
|
+
linkArray: JUHUU.Link.Object[];
|
2516
|
+
count: number;
|
2517
|
+
hasMore: boolean;
|
2518
|
+
};
|
2519
|
+
}
|
2508
2520
|
export namespace List {
|
2509
2521
|
type Params = {
|
2510
2522
|
fiveLetterQr?: string;
|
@@ -2772,6 +2784,42 @@ declare namespace JUHUU {
|
|
2772
2784
|
}
|
2773
2785
|
export { };
|
2774
2786
|
}
|
2787
|
+
namespace Event {
|
2788
|
+
type Base = {
|
2789
|
+
id: string;
|
2790
|
+
readonly object: "event";
|
2791
|
+
createdAt: string;
|
2792
|
+
};
|
2793
|
+
export interface CreatePayment extends Base {
|
2794
|
+
type: "payment.create";
|
2795
|
+
payment: JUHUU.AccountingArea.Object;
|
2796
|
+
}
|
2797
|
+
export type Object = CreatePayment;
|
2798
|
+
export namespace Retrieve {
|
2799
|
+
type Params = {
|
2800
|
+
eventId: string;
|
2801
|
+
};
|
2802
|
+
type Options = {
|
2803
|
+
expand: Array<"property">;
|
2804
|
+
} & JUHUU.RequestOptions;
|
2805
|
+
type Response = {
|
2806
|
+
event: JUHUU.Event.Object;
|
2807
|
+
};
|
2808
|
+
}
|
2809
|
+
export namespace List {
|
2810
|
+
type Params = {
|
2811
|
+
propertyId?: string;
|
2812
|
+
paymentId?: string;
|
2813
|
+
};
|
2814
|
+
type Options = JUHUU.RequestOptions;
|
2815
|
+
type Response = {
|
2816
|
+
eventArray: JUHUU.Event.Object[];
|
2817
|
+
count: number;
|
2818
|
+
hasMore: boolean;
|
2819
|
+
};
|
2820
|
+
}
|
2821
|
+
export { };
|
2822
|
+
}
|
2775
2823
|
namespace DeviceTemplate {
|
2776
2824
|
type Object = {
|
2777
2825
|
id: string;
|
package/dist/index.d.ts
CHANGED
@@ -179,7 +179,7 @@ interface Party extends Person {
|
|
179
179
|
}
|
180
180
|
type VeloBrushDeviceDocumentUserManualStep = "prepareBike1" | "prepareBike2" | "chooseCycleType" | "openDoors1" | "extendBikeDrawer1" | "unfoldRamp1" | "placeBike1" | "fixBike1" | "fixBike2" | "retractBikeDrawer1" | "closeDoors1" | "selectWashProgram" | "waitForWashProgram" | "openDoors2" | "extendBikeDrawer2" | "dryBike1" | "dryBike2" | "releaseBike" | "unloadBike" | "retractBikeDrawer2" | "closeDoors2" | "lockDoors" | "error" | "emergencyStop" | "waitingForSession";
|
181
181
|
type PaymentStatus = "waitingForConfirmation" | "waitingForAmountFinalization" | "waitingForCapture" | "waitingForTransitConfirmation" | "inTransitToProvider" | "captured" | "inTransitToProperty" | "payedOut";
|
182
|
-
type PaymentRefundStatus = "waitingForArrivalAtUser" | "waitingForPayout" | "payedOut" | "failed";
|
182
|
+
type PaymentRefundStatus = "waitingForArrivalAtUser" | "waitingForPayout" | "inTransitToProperty" | "payedOut" | "failed";
|
183
183
|
type PaymentServiceProvider = "stripe";
|
184
184
|
type PayoutStatus = "waitingForApproval" | "inTransitToProperty" | "payedOut";
|
185
185
|
type BusinessType = "individual" | "company" | "non_profit" | "government_entity";
|
@@ -593,6 +593,7 @@ declare class SessionService extends Service {
|
|
593
593
|
|
594
594
|
declare class LinkService extends Service {
|
595
595
|
constructor(config: JUHUU.SetupConfig);
|
596
|
+
search(LinkSearchParams: JUHUU.Link.Search.Params, LinkSearchOptions?: JUHUU.Link.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Search.Response>>;
|
596
597
|
create(LinkCreateParams: JUHUU.Link.Create.Params, LinkCreateOptions?: JUHUU.Link.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Create.Response>>;
|
597
598
|
retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
|
598
599
|
list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
|
@@ -2505,6 +2506,17 @@ declare namespace JUHUU {
|
|
2505
2506
|
property?: JUHUU.Property.Object;
|
2506
2507
|
};
|
2507
2508
|
}
|
2509
|
+
export namespace Search {
|
2510
|
+
type Params = {
|
2511
|
+
q: string;
|
2512
|
+
};
|
2513
|
+
type Options = {} & JUHUU.RequestOptions;
|
2514
|
+
type Response = {
|
2515
|
+
linkArray: JUHUU.Link.Object[];
|
2516
|
+
count: number;
|
2517
|
+
hasMore: boolean;
|
2518
|
+
};
|
2519
|
+
}
|
2508
2520
|
export namespace List {
|
2509
2521
|
type Params = {
|
2510
2522
|
fiveLetterQr?: string;
|
@@ -2772,6 +2784,42 @@ declare namespace JUHUU {
|
|
2772
2784
|
}
|
2773
2785
|
export { };
|
2774
2786
|
}
|
2787
|
+
namespace Event {
|
2788
|
+
type Base = {
|
2789
|
+
id: string;
|
2790
|
+
readonly object: "event";
|
2791
|
+
createdAt: string;
|
2792
|
+
};
|
2793
|
+
export interface CreatePayment extends Base {
|
2794
|
+
type: "payment.create";
|
2795
|
+
payment: JUHUU.AccountingArea.Object;
|
2796
|
+
}
|
2797
|
+
export type Object = CreatePayment;
|
2798
|
+
export namespace Retrieve {
|
2799
|
+
type Params = {
|
2800
|
+
eventId: string;
|
2801
|
+
};
|
2802
|
+
type Options = {
|
2803
|
+
expand: Array<"property">;
|
2804
|
+
} & JUHUU.RequestOptions;
|
2805
|
+
type Response = {
|
2806
|
+
event: JUHUU.Event.Object;
|
2807
|
+
};
|
2808
|
+
}
|
2809
|
+
export namespace List {
|
2810
|
+
type Params = {
|
2811
|
+
propertyId?: string;
|
2812
|
+
paymentId?: string;
|
2813
|
+
};
|
2814
|
+
type Options = JUHUU.RequestOptions;
|
2815
|
+
type Response = {
|
2816
|
+
eventArray: JUHUU.Event.Object[];
|
2817
|
+
count: number;
|
2818
|
+
hasMore: boolean;
|
2819
|
+
};
|
2820
|
+
}
|
2821
|
+
export { };
|
2822
|
+
}
|
2775
2823
|
namespace DeviceTemplate {
|
2776
2824
|
type Object = {
|
2777
2825
|
id: string;
|
package/dist/index.js
CHANGED
@@ -458,6 +458,21 @@ var LinkService = class extends Service {
|
|
458
458
|
constructor(config) {
|
459
459
|
super(config);
|
460
460
|
}
|
461
|
+
async search(LinkSearchParams, LinkSearchOptions) {
|
462
|
+
const queryArray = [];
|
463
|
+
if (LinkSearchParams.q !== void 0) {
|
464
|
+
queryArray.push("q=" + LinkSearchParams.q);
|
465
|
+
}
|
466
|
+
return await super.sendRequest(
|
467
|
+
{
|
468
|
+
method: "GET",
|
469
|
+
url: "links/search?" + queryArray.join("&"),
|
470
|
+
body: void 0,
|
471
|
+
authenticationNotOptional: false
|
472
|
+
},
|
473
|
+
LinkSearchOptions
|
474
|
+
);
|
475
|
+
}
|
461
476
|
async create(LinkCreateParams, LinkCreateOptions) {
|
462
477
|
return await super.sendRequest(
|
463
478
|
{
|
package/dist/index.mjs
CHANGED
@@ -414,6 +414,21 @@ var LinkService = class extends Service {
|
|
414
414
|
constructor(config) {
|
415
415
|
super(config);
|
416
416
|
}
|
417
|
+
async search(LinkSearchParams, LinkSearchOptions) {
|
418
|
+
const queryArray = [];
|
419
|
+
if (LinkSearchParams.q !== void 0) {
|
420
|
+
queryArray.push("q=" + LinkSearchParams.q);
|
421
|
+
}
|
422
|
+
return await super.sendRequest(
|
423
|
+
{
|
424
|
+
method: "GET",
|
425
|
+
url: "links/search?" + queryArray.join("&"),
|
426
|
+
body: void 0,
|
427
|
+
authenticationNotOptional: false
|
428
|
+
},
|
429
|
+
LinkSearchOptions
|
430
|
+
);
|
431
|
+
}
|
417
432
|
async create(LinkCreateParams, LinkCreateOptions) {
|
418
433
|
return await super.sendRequest(
|
419
434
|
{
|