@juhuu/sdk-ts 1.2.119 → 1.2.121
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 +22 -43
- package/dist/index.d.ts +22 -43
- package/dist/index.js +22 -7
- package/dist/index.mjs +22 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -227,46 +227,6 @@ type DeepNullable<T> = {
|
|
227
227
|
};
|
228
228
|
type SessionCannotTerminateReason = "retractBikeDrawer" | "closeDoor";
|
229
229
|
type Circumstance = {
|
230
|
-
type: "wheelchairAccessible";
|
231
|
-
isWheelchairAccessible: boolean;
|
232
|
-
} | {
|
233
|
-
type: "height";
|
234
|
-
height: number;
|
235
|
-
} | {
|
236
|
-
type: "width";
|
237
|
-
width: number;
|
238
|
-
} | {
|
239
|
-
type: "videoSurveillance";
|
240
|
-
hasVideoSurveillance: boolean;
|
241
|
-
} | {
|
242
|
-
type: "stackableParking";
|
243
|
-
isStackableParking: boolean;
|
244
|
-
} | {
|
245
|
-
type: "socket";
|
246
|
-
hasFreeSocketAvailable: boolean;
|
247
|
-
socketType: "Schuko" | "CEE" | "Type2";
|
248
|
-
} | {
|
249
|
-
type: "cargoHold";
|
250
|
-
hasCargoHold: boolean;
|
251
|
-
} | {
|
252
|
-
type: "tandem";
|
253
|
-
isTandem: boolean;
|
254
|
-
} | {
|
255
|
-
type: "propulsion";
|
256
|
-
propulsion: "manual" | "electric" | "hybrid" | "combustion" | "manualAssist";
|
257
|
-
} | {
|
258
|
-
type: "childSeat";
|
259
|
-
hasChildSeat: boolean;
|
260
|
-
} | {
|
261
|
-
type: "fuelType";
|
262
|
-
fuelType: FuelType;
|
263
|
-
} | {
|
264
|
-
type: "fuelLevel";
|
265
|
-
level: number;
|
266
|
-
} | {
|
267
|
-
type: "rangeRemaining";
|
268
|
-
rangeRemaining: number;
|
269
|
-
} | {
|
270
230
|
type: "custom";
|
271
231
|
icon: string;
|
272
232
|
title: LocaleString;
|
@@ -656,6 +616,7 @@ declare class PropertiesService extends Service {
|
|
656
616
|
update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
|
657
617
|
onboarding(PropertyOnboardingParams: JUHUU.Property.Onboarding.Params, PropertyOnboardingOptions?: JUHUU.Property.Onboarding.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Onboarding.Response>>;
|
658
618
|
stripeAccountUrl(PropertyStripeAccountUrlParams: JUHUU.Property.StripeAccountUrl.Params, PropertyStripeAccountUrlOptions?: JUHUU.Property.StripeAccountUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.StripeAccountUrl.Response>>;
|
619
|
+
retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Params, PropertyRetrieveStripeCustomerPortalUrlOptions?: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeCustomerPortalUrl.Response>>;
|
659
620
|
}
|
660
621
|
|
661
622
|
declare class PointsService extends Service {
|
@@ -1950,9 +1911,9 @@ declare namespace JUHUU {
|
|
1950
1911
|
};
|
1951
1912
|
export interface Internal extends Base {
|
1952
1913
|
type: "internal";
|
1953
|
-
legalName: string;
|
1954
|
-
emailSignature: string;
|
1955
|
-
billingAddress: Address;
|
1914
|
+
legalName: string | null;
|
1915
|
+
emailSignature: string | null;
|
1916
|
+
billingAddress: Address | null;
|
1956
1917
|
vat: string;
|
1957
1918
|
invoiceImage: string;
|
1958
1919
|
invoiceNumberPrefix: string;
|
@@ -1963,6 +1924,14 @@ declare namespace JUHUU {
|
|
1963
1924
|
automaticPayoutsEnabled: boolean;
|
1964
1925
|
payoutCurrencyCode: CurrencyCode;
|
1965
1926
|
timeZone: TimeZone;
|
1927
|
+
/**
|
1928
|
+
* Used to charge the property
|
1929
|
+
*/
|
1930
|
+
stripeCustomerId: string | null;
|
1931
|
+
/**
|
1932
|
+
* Email only used for Stripe
|
1933
|
+
*/
|
1934
|
+
stripeEmail: string | null;
|
1966
1935
|
}
|
1967
1936
|
export interface External extends Base {
|
1968
1937
|
type: "external";
|
@@ -2004,6 +1973,15 @@ declare namespace JUHUU {
|
|
2004
1973
|
url: string;
|
2005
1974
|
};
|
2006
1975
|
}
|
1976
|
+
export namespace RetrieveStripeCustomerPortalUrl {
|
1977
|
+
type Params = {
|
1978
|
+
propertyId: string;
|
1979
|
+
};
|
1980
|
+
type Options = JUHUU.RequestOptions;
|
1981
|
+
type Response = {
|
1982
|
+
url: string;
|
1983
|
+
};
|
1984
|
+
}
|
2007
1985
|
export namespace Update {
|
2008
1986
|
type Params = {
|
2009
1987
|
propertyId: string;
|
@@ -2016,6 +1994,7 @@ declare namespace JUHUU {
|
|
2016
1994
|
faqUrl?: string;
|
2017
1995
|
colorScheme?: Partial<ColorScheme>;
|
2018
1996
|
contactUrl?: string;
|
1997
|
+
stripeEmail?: string;
|
2019
1998
|
};
|
2020
1999
|
type Options = JUHUU.RequestOptions;
|
2021
2000
|
type Response = {
|
package/dist/index.d.ts
CHANGED
@@ -227,46 +227,6 @@ type DeepNullable<T> = {
|
|
227
227
|
};
|
228
228
|
type SessionCannotTerminateReason = "retractBikeDrawer" | "closeDoor";
|
229
229
|
type Circumstance = {
|
230
|
-
type: "wheelchairAccessible";
|
231
|
-
isWheelchairAccessible: boolean;
|
232
|
-
} | {
|
233
|
-
type: "height";
|
234
|
-
height: number;
|
235
|
-
} | {
|
236
|
-
type: "width";
|
237
|
-
width: number;
|
238
|
-
} | {
|
239
|
-
type: "videoSurveillance";
|
240
|
-
hasVideoSurveillance: boolean;
|
241
|
-
} | {
|
242
|
-
type: "stackableParking";
|
243
|
-
isStackableParking: boolean;
|
244
|
-
} | {
|
245
|
-
type: "socket";
|
246
|
-
hasFreeSocketAvailable: boolean;
|
247
|
-
socketType: "Schuko" | "CEE" | "Type2";
|
248
|
-
} | {
|
249
|
-
type: "cargoHold";
|
250
|
-
hasCargoHold: boolean;
|
251
|
-
} | {
|
252
|
-
type: "tandem";
|
253
|
-
isTandem: boolean;
|
254
|
-
} | {
|
255
|
-
type: "propulsion";
|
256
|
-
propulsion: "manual" | "electric" | "hybrid" | "combustion" | "manualAssist";
|
257
|
-
} | {
|
258
|
-
type: "childSeat";
|
259
|
-
hasChildSeat: boolean;
|
260
|
-
} | {
|
261
|
-
type: "fuelType";
|
262
|
-
fuelType: FuelType;
|
263
|
-
} | {
|
264
|
-
type: "fuelLevel";
|
265
|
-
level: number;
|
266
|
-
} | {
|
267
|
-
type: "rangeRemaining";
|
268
|
-
rangeRemaining: number;
|
269
|
-
} | {
|
270
230
|
type: "custom";
|
271
231
|
icon: string;
|
272
232
|
title: LocaleString;
|
@@ -656,6 +616,7 @@ declare class PropertiesService extends Service {
|
|
656
616
|
update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
|
657
617
|
onboarding(PropertyOnboardingParams: JUHUU.Property.Onboarding.Params, PropertyOnboardingOptions?: JUHUU.Property.Onboarding.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Onboarding.Response>>;
|
658
618
|
stripeAccountUrl(PropertyStripeAccountUrlParams: JUHUU.Property.StripeAccountUrl.Params, PropertyStripeAccountUrlOptions?: JUHUU.Property.StripeAccountUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.StripeAccountUrl.Response>>;
|
619
|
+
retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Params, PropertyRetrieveStripeCustomerPortalUrlOptions?: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeCustomerPortalUrl.Response>>;
|
659
620
|
}
|
660
621
|
|
661
622
|
declare class PointsService extends Service {
|
@@ -1950,9 +1911,9 @@ declare namespace JUHUU {
|
|
1950
1911
|
};
|
1951
1912
|
export interface Internal extends Base {
|
1952
1913
|
type: "internal";
|
1953
|
-
legalName: string;
|
1954
|
-
emailSignature: string;
|
1955
|
-
billingAddress: Address;
|
1914
|
+
legalName: string | null;
|
1915
|
+
emailSignature: string | null;
|
1916
|
+
billingAddress: Address | null;
|
1956
1917
|
vat: string;
|
1957
1918
|
invoiceImage: string;
|
1958
1919
|
invoiceNumberPrefix: string;
|
@@ -1963,6 +1924,14 @@ declare namespace JUHUU {
|
|
1963
1924
|
automaticPayoutsEnabled: boolean;
|
1964
1925
|
payoutCurrencyCode: CurrencyCode;
|
1965
1926
|
timeZone: TimeZone;
|
1927
|
+
/**
|
1928
|
+
* Used to charge the property
|
1929
|
+
*/
|
1930
|
+
stripeCustomerId: string | null;
|
1931
|
+
/**
|
1932
|
+
* Email only used for Stripe
|
1933
|
+
*/
|
1934
|
+
stripeEmail: string | null;
|
1966
1935
|
}
|
1967
1936
|
export interface External extends Base {
|
1968
1937
|
type: "external";
|
@@ -2004,6 +1973,15 @@ declare namespace JUHUU {
|
|
2004
1973
|
url: string;
|
2005
1974
|
};
|
2006
1975
|
}
|
1976
|
+
export namespace RetrieveStripeCustomerPortalUrl {
|
1977
|
+
type Params = {
|
1978
|
+
propertyId: string;
|
1979
|
+
};
|
1980
|
+
type Options = JUHUU.RequestOptions;
|
1981
|
+
type Response = {
|
1982
|
+
url: string;
|
1983
|
+
};
|
1984
|
+
}
|
2007
1985
|
export namespace Update {
|
2008
1986
|
type Params = {
|
2009
1987
|
propertyId: string;
|
@@ -2016,6 +1994,7 @@ declare namespace JUHUU {
|
|
2016
1994
|
faqUrl?: string;
|
2017
1995
|
colorScheme?: Partial<ColorScheme>;
|
2018
1996
|
contactUrl?: string;
|
1997
|
+
stripeEmail?: string;
|
2019
1998
|
};
|
2020
1999
|
type Options = JUHUU.RequestOptions;
|
2021
2000
|
type Response = {
|
package/dist/index.js
CHANGED
@@ -822,12 +822,15 @@ var PropertiesService = class extends Service {
|
|
822
822
|
}
|
823
823
|
async retrieve(PropertyRetrieveParams, PropertyRetrieveOptions) {
|
824
824
|
const queryArray = [];
|
825
|
-
return await super.sendRequest(
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
825
|
+
return await super.sendRequest(
|
826
|
+
{
|
827
|
+
method: "GET",
|
828
|
+
url: "properties/" + PropertyRetrieveParams.propertyId + "?" + queryArray.join("&"),
|
829
|
+
body: void 0,
|
830
|
+
authenticationNotOptional: false
|
831
|
+
},
|
832
|
+
PropertyRetrieveOptions
|
833
|
+
);
|
831
834
|
}
|
832
835
|
async list(PropertyListParams, PropertyListOptions) {
|
833
836
|
const queryArray = [];
|
@@ -858,7 +861,8 @@ var PropertiesService = class extends Service {
|
|
858
861
|
phone: PropertyUpdateParams.phone,
|
859
862
|
faqUrl: PropertyUpdateParams.faqUrl,
|
860
863
|
colorScheme: PropertyUpdateParams.colorScheme,
|
861
|
-
contactUrl: PropertyUpdateParams.contactUrl
|
864
|
+
contactUrl: PropertyUpdateParams.contactUrl,
|
865
|
+
stripeEmail: PropertyUpdateParams.stripeEmail
|
862
866
|
},
|
863
867
|
authenticationNotOptional: true
|
864
868
|
},
|
@@ -892,6 +896,17 @@ var PropertiesService = class extends Service {
|
|
892
896
|
PropertyStripeAccountUrlOptions
|
893
897
|
);
|
894
898
|
}
|
899
|
+
async retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams, PropertyRetrieveStripeCustomerPortalUrlOptions) {
|
900
|
+
return await super.sendRequest(
|
901
|
+
{
|
902
|
+
method: "GET",
|
903
|
+
url: "properties/" + PropertyRetrieveStripeCustomerPortalUrlParams.propertyId + "/retrieveStripeCustomerPortalUrl",
|
904
|
+
body: void 0,
|
905
|
+
authenticationNotOptional: true
|
906
|
+
},
|
907
|
+
PropertyRetrieveStripeCustomerPortalUrlOptions
|
908
|
+
);
|
909
|
+
}
|
895
910
|
};
|
896
911
|
|
897
912
|
// src/points/points.service.ts
|
package/dist/index.mjs
CHANGED
@@ -778,12 +778,15 @@ var PropertiesService = class extends Service {
|
|
778
778
|
}
|
779
779
|
async retrieve(PropertyRetrieveParams, PropertyRetrieveOptions) {
|
780
780
|
const queryArray = [];
|
781
|
-
return await super.sendRequest(
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
781
|
+
return await super.sendRequest(
|
782
|
+
{
|
783
|
+
method: "GET",
|
784
|
+
url: "properties/" + PropertyRetrieveParams.propertyId + "?" + queryArray.join("&"),
|
785
|
+
body: void 0,
|
786
|
+
authenticationNotOptional: false
|
787
|
+
},
|
788
|
+
PropertyRetrieveOptions
|
789
|
+
);
|
787
790
|
}
|
788
791
|
async list(PropertyListParams, PropertyListOptions) {
|
789
792
|
const queryArray = [];
|
@@ -814,7 +817,8 @@ var PropertiesService = class extends Service {
|
|
814
817
|
phone: PropertyUpdateParams.phone,
|
815
818
|
faqUrl: PropertyUpdateParams.faqUrl,
|
816
819
|
colorScheme: PropertyUpdateParams.colorScheme,
|
817
|
-
contactUrl: PropertyUpdateParams.contactUrl
|
820
|
+
contactUrl: PropertyUpdateParams.contactUrl,
|
821
|
+
stripeEmail: PropertyUpdateParams.stripeEmail
|
818
822
|
},
|
819
823
|
authenticationNotOptional: true
|
820
824
|
},
|
@@ -848,6 +852,17 @@ var PropertiesService = class extends Service {
|
|
848
852
|
PropertyStripeAccountUrlOptions
|
849
853
|
);
|
850
854
|
}
|
855
|
+
async retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams, PropertyRetrieveStripeCustomerPortalUrlOptions) {
|
856
|
+
return await super.sendRequest(
|
857
|
+
{
|
858
|
+
method: "GET",
|
859
|
+
url: "properties/" + PropertyRetrieveStripeCustomerPortalUrlParams.propertyId + "/retrieveStripeCustomerPortalUrl",
|
860
|
+
body: void 0,
|
861
|
+
authenticationNotOptional: true
|
862
|
+
},
|
863
|
+
PropertyRetrieveStripeCustomerPortalUrlOptions
|
864
|
+
);
|
865
|
+
}
|
851
866
|
};
|
852
867
|
|
853
868
|
// src/points/points.service.ts
|