@juhuu/sdk-ts 1.2.192 → 1.2.193
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 +40 -1
- package/dist/index.d.ts +40 -1
- package/dist/index.js +42 -0
- package/dist/index.mjs +42 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -642,6 +642,7 @@ declare class PropertiesService extends Service {
|
|
642
642
|
retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Params, PropertyRetrieveStripeSubscriptionStartUrlOptions?: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Response>>;
|
643
643
|
enableCapability(PropertyEnableCapabilityParams: JUHUU.Property.EnableCapability.Params, PropertyEnableCapabilityOptions?: JUHUU.Property.EnableCapability.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.EnableCapability.Response>>;
|
644
644
|
acceptLatestAgreement(PropertyAcceptLatestAgreementParams: JUHUU.Property.AcceptLatestAgreement.Params, PropertyAcceptLatestAgreementOptions?: JUHUU.Property.AcceptLatestAgreement.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.AcceptLatestAgreement.Response>>;
|
645
|
+
delete(PropertyDeleteParams: JUHUU.Property.Delete.Params, PropertyDeleteOptions?: JUHUU.Property.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Delete.Response>>;
|
645
646
|
}
|
646
647
|
|
647
648
|
declare class PointsService extends Service {
|
@@ -752,6 +753,7 @@ declare class ConnectorsService extends Service {
|
|
752
753
|
|
753
754
|
declare class PayoutsService extends Service {
|
754
755
|
constructor(config: JUHUU.SetupConfig);
|
756
|
+
create(PayoutCreateParams: JUHUU.Payout.Create.Params, PayoutCreateOptions?: JUHUU.Payout.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Create.Response>>;
|
755
757
|
retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
|
756
758
|
list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
|
757
759
|
}
|
@@ -767,6 +769,7 @@ declare class SimsService extends Service {
|
|
767
769
|
create(SimCreateParams: JUHUU.Sim.Create.Params, SimCreateOptions?: JUHUU.Sim.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Create.Response>>;
|
768
770
|
retrieve(SimRetrieveParams: JUHUU.Sim.Retrieve.Params, SimRetrieveOptions?: JUHUU.Sim.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Retrieve.Response>>;
|
769
771
|
list(SimListParams: JUHUU.Sim.List.Params, SimListOptions?: JUHUU.Sim.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.List.Response>>;
|
772
|
+
update(SimUpdateParams: JUHUU.Sim.Update.Params, SimUpdateOptions?: JUHUU.Sim.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Update.Response>>;
|
770
773
|
updateFromProvider(SimUpdateFromProviderParams: JUHUU.Sim.UpdateFromProvider.Params, SimUpdateFromProviderOptions?: JUHUU.Sim.UpdateFromProvider.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.UpdateFromProvider.Response>>;
|
771
774
|
delete(SimDeleteParams: JUHUU.Sim.Delete.Params, SimDeleteOptions?: JUHUU.Sim.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Delete.Response>>;
|
772
775
|
}
|
@@ -2365,6 +2368,13 @@ declare namespace JUHUU {
|
|
2365
2368
|
property: JUHUU.Property.Object;
|
2366
2369
|
};
|
2367
2370
|
}
|
2371
|
+
export namespace Delete {
|
2372
|
+
type Params = {
|
2373
|
+
propertyId: string;
|
2374
|
+
};
|
2375
|
+
type Options = JUHUU.RequestOptions;
|
2376
|
+
type Response = JUHUU.Property.Object;
|
2377
|
+
}
|
2368
2378
|
export { };
|
2369
2379
|
}
|
2370
2380
|
namespace Point {
|
@@ -2446,6 +2456,18 @@ declare namespace JUHUU {
|
|
2446
2456
|
creditNotePdfId: string;
|
2447
2457
|
stripeConnectedAccountId: string;
|
2448
2458
|
};
|
2459
|
+
namespace Create {
|
2460
|
+
type Params = {
|
2461
|
+
propertyId: string;
|
2462
|
+
fromDate: number;
|
2463
|
+
toDate: number;
|
2464
|
+
statementDescription: string;
|
2465
|
+
};
|
2466
|
+
type Options = JUHUU.RequestOptions;
|
2467
|
+
type Response = {
|
2468
|
+
payout: JUHUU.Payout.Object;
|
2469
|
+
};
|
2470
|
+
}
|
2449
2471
|
namespace Retrieve {
|
2450
2472
|
type Params = {
|
2451
2473
|
payoutId: string;
|
@@ -3529,6 +3551,7 @@ declare namespace JUHUU {
|
|
3529
3551
|
namespace Create {
|
3530
3552
|
type Params = {
|
3531
3553
|
propertyId: string;
|
3554
|
+
name?: string;
|
3532
3555
|
};
|
3533
3556
|
type Options = JUHUU.RequestOptions;
|
3534
3557
|
type Response = {
|
@@ -3734,7 +3757,23 @@ declare namespace JUHUU {
|
|
3734
3757
|
propertyId?: string;
|
3735
3758
|
};
|
3736
3759
|
type Options = JUHUU.RequestOptions;
|
3737
|
-
type Response =
|
3760
|
+
type Response = {
|
3761
|
+
simArray: JUHUU.Sim.Object[];
|
3762
|
+
count: number;
|
3763
|
+
hasMore: boolean;
|
3764
|
+
};
|
3765
|
+
}
|
3766
|
+
namespace Update {
|
3767
|
+
type Params = {
|
3768
|
+
simId: string;
|
3769
|
+
name?: string;
|
3770
|
+
description?: string | null;
|
3771
|
+
dataQuotaThresholdPercentage?: number | null;
|
3772
|
+
};
|
3773
|
+
type Options = JUHUU.RequestOptions;
|
3774
|
+
type Response = {
|
3775
|
+
sim: JUHUU.Sim.Object;
|
3776
|
+
};
|
3738
3777
|
}
|
3739
3778
|
namespace UpdateFromProvider {
|
3740
3779
|
type Params = {
|
package/dist/index.d.ts
CHANGED
@@ -642,6 +642,7 @@ declare class PropertiesService extends Service {
|
|
642
642
|
retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Params, PropertyRetrieveStripeSubscriptionStartUrlOptions?: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Response>>;
|
643
643
|
enableCapability(PropertyEnableCapabilityParams: JUHUU.Property.EnableCapability.Params, PropertyEnableCapabilityOptions?: JUHUU.Property.EnableCapability.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.EnableCapability.Response>>;
|
644
644
|
acceptLatestAgreement(PropertyAcceptLatestAgreementParams: JUHUU.Property.AcceptLatestAgreement.Params, PropertyAcceptLatestAgreementOptions?: JUHUU.Property.AcceptLatestAgreement.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.AcceptLatestAgreement.Response>>;
|
645
|
+
delete(PropertyDeleteParams: JUHUU.Property.Delete.Params, PropertyDeleteOptions?: JUHUU.Property.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Delete.Response>>;
|
645
646
|
}
|
646
647
|
|
647
648
|
declare class PointsService extends Service {
|
@@ -752,6 +753,7 @@ declare class ConnectorsService extends Service {
|
|
752
753
|
|
753
754
|
declare class PayoutsService extends Service {
|
754
755
|
constructor(config: JUHUU.SetupConfig);
|
756
|
+
create(PayoutCreateParams: JUHUU.Payout.Create.Params, PayoutCreateOptions?: JUHUU.Payout.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Create.Response>>;
|
755
757
|
retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
|
756
758
|
list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
|
757
759
|
}
|
@@ -767,6 +769,7 @@ declare class SimsService extends Service {
|
|
767
769
|
create(SimCreateParams: JUHUU.Sim.Create.Params, SimCreateOptions?: JUHUU.Sim.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Create.Response>>;
|
768
770
|
retrieve(SimRetrieveParams: JUHUU.Sim.Retrieve.Params, SimRetrieveOptions?: JUHUU.Sim.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Retrieve.Response>>;
|
769
771
|
list(SimListParams: JUHUU.Sim.List.Params, SimListOptions?: JUHUU.Sim.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.List.Response>>;
|
772
|
+
update(SimUpdateParams: JUHUU.Sim.Update.Params, SimUpdateOptions?: JUHUU.Sim.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Update.Response>>;
|
770
773
|
updateFromProvider(SimUpdateFromProviderParams: JUHUU.Sim.UpdateFromProvider.Params, SimUpdateFromProviderOptions?: JUHUU.Sim.UpdateFromProvider.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.UpdateFromProvider.Response>>;
|
771
774
|
delete(SimDeleteParams: JUHUU.Sim.Delete.Params, SimDeleteOptions?: JUHUU.Sim.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Delete.Response>>;
|
772
775
|
}
|
@@ -2365,6 +2368,13 @@ declare namespace JUHUU {
|
|
2365
2368
|
property: JUHUU.Property.Object;
|
2366
2369
|
};
|
2367
2370
|
}
|
2371
|
+
export namespace Delete {
|
2372
|
+
type Params = {
|
2373
|
+
propertyId: string;
|
2374
|
+
};
|
2375
|
+
type Options = JUHUU.RequestOptions;
|
2376
|
+
type Response = JUHUU.Property.Object;
|
2377
|
+
}
|
2368
2378
|
export { };
|
2369
2379
|
}
|
2370
2380
|
namespace Point {
|
@@ -2446,6 +2456,18 @@ declare namespace JUHUU {
|
|
2446
2456
|
creditNotePdfId: string;
|
2447
2457
|
stripeConnectedAccountId: string;
|
2448
2458
|
};
|
2459
|
+
namespace Create {
|
2460
|
+
type Params = {
|
2461
|
+
propertyId: string;
|
2462
|
+
fromDate: number;
|
2463
|
+
toDate: number;
|
2464
|
+
statementDescription: string;
|
2465
|
+
};
|
2466
|
+
type Options = JUHUU.RequestOptions;
|
2467
|
+
type Response = {
|
2468
|
+
payout: JUHUU.Payout.Object;
|
2469
|
+
};
|
2470
|
+
}
|
2449
2471
|
namespace Retrieve {
|
2450
2472
|
type Params = {
|
2451
2473
|
payoutId: string;
|
@@ -3529,6 +3551,7 @@ declare namespace JUHUU {
|
|
3529
3551
|
namespace Create {
|
3530
3552
|
type Params = {
|
3531
3553
|
propertyId: string;
|
3554
|
+
name?: string;
|
3532
3555
|
};
|
3533
3556
|
type Options = JUHUU.RequestOptions;
|
3534
3557
|
type Response = {
|
@@ -3734,7 +3757,23 @@ declare namespace JUHUU {
|
|
3734
3757
|
propertyId?: string;
|
3735
3758
|
};
|
3736
3759
|
type Options = JUHUU.RequestOptions;
|
3737
|
-
type Response =
|
3760
|
+
type Response = {
|
3761
|
+
simArray: JUHUU.Sim.Object[];
|
3762
|
+
count: number;
|
3763
|
+
hasMore: boolean;
|
3764
|
+
};
|
3765
|
+
}
|
3766
|
+
namespace Update {
|
3767
|
+
type Params = {
|
3768
|
+
simId: string;
|
3769
|
+
name?: string;
|
3770
|
+
description?: string | null;
|
3771
|
+
dataQuotaThresholdPercentage?: number | null;
|
3772
|
+
};
|
3773
|
+
type Options = JUHUU.RequestOptions;
|
3774
|
+
type Response = {
|
3775
|
+
sim: JUHUU.Sim.Object;
|
3776
|
+
};
|
3738
3777
|
}
|
3739
3778
|
namespace UpdateFromProvider {
|
3740
3779
|
type Params = {
|
package/dist/index.js
CHANGED
@@ -1100,6 +1100,17 @@ var PropertiesService = class extends Service {
|
|
1100
1100
|
PropertyAcceptLatestAgreementOptions
|
1101
1101
|
);
|
1102
1102
|
}
|
1103
|
+
async delete(PropertyDeleteParams, PropertyDeleteOptions) {
|
1104
|
+
return await super.sendRequest(
|
1105
|
+
{
|
1106
|
+
method: "DELETE",
|
1107
|
+
url: "properties/" + PropertyDeleteParams.propertyId,
|
1108
|
+
authenticationNotOptional: true,
|
1109
|
+
body: void 0
|
1110
|
+
},
|
1111
|
+
PropertyDeleteOptions
|
1112
|
+
);
|
1113
|
+
}
|
1103
1114
|
};
|
1104
1115
|
|
1105
1116
|
// src/points/points.service.ts
|
@@ -2010,6 +2021,22 @@ var PayoutsService = class extends Service {
|
|
2010
2021
|
constructor(config) {
|
2011
2022
|
super(config);
|
2012
2023
|
}
|
2024
|
+
async create(PayoutCreateParams, PayoutCreateOptions) {
|
2025
|
+
return await super.sendRequest(
|
2026
|
+
{
|
2027
|
+
method: "POST",
|
2028
|
+
url: "payouts",
|
2029
|
+
body: {
|
2030
|
+
propertyId: PayoutCreateParams.propertyId,
|
2031
|
+
fromDate: PayoutCreateParams.fromDate,
|
2032
|
+
toDate: PayoutCreateParams.toDate,
|
2033
|
+
statementDescription: PayoutCreateParams.statementDescription
|
2034
|
+
},
|
2035
|
+
authenticationNotOptional: true
|
2036
|
+
},
|
2037
|
+
PayoutCreateOptions
|
2038
|
+
);
|
2039
|
+
}
|
2013
2040
|
async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
|
2014
2041
|
const queryArray = [];
|
2015
2042
|
if (PayoutRetrieveOptions?.expand !== void 0) {
|
@@ -2131,6 +2158,21 @@ var SimsService = class extends Service {
|
|
2131
2158
|
SimListOptions
|
2132
2159
|
);
|
2133
2160
|
}
|
2161
|
+
async update(SimUpdateParams, SimUpdateOptions) {
|
2162
|
+
return await super.sendRequest(
|
2163
|
+
{
|
2164
|
+
method: "PATCH",
|
2165
|
+
url: "sims/" + SimUpdateParams.simId,
|
2166
|
+
body: {
|
2167
|
+
name: SimUpdateParams.name,
|
2168
|
+
description: SimUpdateParams.description,
|
2169
|
+
dataQuotaThresholdPercentage: SimUpdateParams.dataQuotaThresholdPercentage
|
2170
|
+
},
|
2171
|
+
authenticationNotOptional: true
|
2172
|
+
},
|
2173
|
+
SimUpdateOptions
|
2174
|
+
);
|
2175
|
+
}
|
2134
2176
|
async updateFromProvider(SimUpdateFromProviderParams, SimUpdateFromProviderOptions) {
|
2135
2177
|
return await super.sendRequest(
|
2136
2178
|
{
|
package/dist/index.mjs
CHANGED
@@ -1056,6 +1056,17 @@ var PropertiesService = class extends Service {
|
|
1056
1056
|
PropertyAcceptLatestAgreementOptions
|
1057
1057
|
);
|
1058
1058
|
}
|
1059
|
+
async delete(PropertyDeleteParams, PropertyDeleteOptions) {
|
1060
|
+
return await super.sendRequest(
|
1061
|
+
{
|
1062
|
+
method: "DELETE",
|
1063
|
+
url: "properties/" + PropertyDeleteParams.propertyId,
|
1064
|
+
authenticationNotOptional: true,
|
1065
|
+
body: void 0
|
1066
|
+
},
|
1067
|
+
PropertyDeleteOptions
|
1068
|
+
);
|
1069
|
+
}
|
1059
1070
|
};
|
1060
1071
|
|
1061
1072
|
// src/points/points.service.ts
|
@@ -1966,6 +1977,22 @@ var PayoutsService = class extends Service {
|
|
1966
1977
|
constructor(config) {
|
1967
1978
|
super(config);
|
1968
1979
|
}
|
1980
|
+
async create(PayoutCreateParams, PayoutCreateOptions) {
|
1981
|
+
return await super.sendRequest(
|
1982
|
+
{
|
1983
|
+
method: "POST",
|
1984
|
+
url: "payouts",
|
1985
|
+
body: {
|
1986
|
+
propertyId: PayoutCreateParams.propertyId,
|
1987
|
+
fromDate: PayoutCreateParams.fromDate,
|
1988
|
+
toDate: PayoutCreateParams.toDate,
|
1989
|
+
statementDescription: PayoutCreateParams.statementDescription
|
1990
|
+
},
|
1991
|
+
authenticationNotOptional: true
|
1992
|
+
},
|
1993
|
+
PayoutCreateOptions
|
1994
|
+
);
|
1995
|
+
}
|
1969
1996
|
async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
|
1970
1997
|
const queryArray = [];
|
1971
1998
|
if (PayoutRetrieveOptions?.expand !== void 0) {
|
@@ -2087,6 +2114,21 @@ var SimsService = class extends Service {
|
|
2087
2114
|
SimListOptions
|
2088
2115
|
);
|
2089
2116
|
}
|
2117
|
+
async update(SimUpdateParams, SimUpdateOptions) {
|
2118
|
+
return await super.sendRequest(
|
2119
|
+
{
|
2120
|
+
method: "PATCH",
|
2121
|
+
url: "sims/" + SimUpdateParams.simId,
|
2122
|
+
body: {
|
2123
|
+
name: SimUpdateParams.name,
|
2124
|
+
description: SimUpdateParams.description,
|
2125
|
+
dataQuotaThresholdPercentage: SimUpdateParams.dataQuotaThresholdPercentage
|
2126
|
+
},
|
2127
|
+
authenticationNotOptional: true
|
2128
|
+
},
|
2129
|
+
SimUpdateOptions
|
2130
|
+
);
|
2131
|
+
}
|
2090
2132
|
async updateFromProvider(SimUpdateFromProviderParams, SimUpdateFromProviderOptions) {
|
2091
2133
|
return await super.sendRequest(
|
2092
2134
|
{
|