@juhuu/sdk-ts 1.1.9 → 1.2.0
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 +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +39 -0
- package/dist/index.mjs +39 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -680,6 +680,12 @@ declare class ConnectorsService extends Service {
|
|
680
680
|
list(ConnectorListParams: JUHUU.Connector.List.Params, ConnectorListOptions?: JUHUU.Connector.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.List.Response>>;
|
681
681
|
}
|
682
682
|
|
683
|
+
declare class PayoutsService extends Service {
|
684
|
+
constructor(config: JUHUU.SetupConfig);
|
685
|
+
retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
|
686
|
+
list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
|
687
|
+
}
|
688
|
+
|
683
689
|
declare class Juhuu {
|
684
690
|
constructor(config: JUHUU.SetupConfig);
|
685
691
|
/**
|
@@ -700,6 +706,7 @@ declare class Juhuu {
|
|
700
706
|
readonly settings: SettingsService;
|
701
707
|
readonly accountingAreas: AccountingAreasService;
|
702
708
|
readonly connectors: ConnectorsService;
|
709
|
+
readonly payouts: PayoutsService;
|
703
710
|
}
|
704
711
|
declare namespace JUHUU {
|
705
712
|
interface SetupConfig {
|
package/dist/index.d.ts
CHANGED
@@ -680,6 +680,12 @@ declare class ConnectorsService extends Service {
|
|
680
680
|
list(ConnectorListParams: JUHUU.Connector.List.Params, ConnectorListOptions?: JUHUU.Connector.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.List.Response>>;
|
681
681
|
}
|
682
682
|
|
683
|
+
declare class PayoutsService extends Service {
|
684
|
+
constructor(config: JUHUU.SetupConfig);
|
685
|
+
retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
|
686
|
+
list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
|
687
|
+
}
|
688
|
+
|
683
689
|
declare class Juhuu {
|
684
690
|
constructor(config: JUHUU.SetupConfig);
|
685
691
|
/**
|
@@ -700,6 +706,7 @@ declare class Juhuu {
|
|
700
706
|
readonly settings: SettingsService;
|
701
707
|
readonly accountingAreas: AccountingAreasService;
|
702
708
|
readonly connectors: ConnectorsService;
|
709
|
+
readonly payouts: PayoutsService;
|
703
710
|
}
|
704
711
|
declare namespace JUHUU {
|
705
712
|
interface SetupConfig {
|
package/dist/index.js
CHANGED
@@ -1272,6 +1272,43 @@ var ConnectorsService = class extends Service {
|
|
1272
1272
|
}
|
1273
1273
|
};
|
1274
1274
|
|
1275
|
+
// src/payouts/payouts.service.ts
|
1276
|
+
var PayoutsService = class extends Service {
|
1277
|
+
constructor(config) {
|
1278
|
+
super(config);
|
1279
|
+
}
|
1280
|
+
async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
|
1281
|
+
const queryArray = [];
|
1282
|
+
if (PayoutRetrieveOptions?.expand !== void 0) {
|
1283
|
+
queryArray.push("expand=" + PayoutRetrieveOptions.expand.join(","));
|
1284
|
+
}
|
1285
|
+
return await super.sendRequest(
|
1286
|
+
{
|
1287
|
+
method: "GET",
|
1288
|
+
url: "payouts/" + PayoutRetrieveParams.payoutId + "?" + queryArray.join("&"),
|
1289
|
+
body: void 0,
|
1290
|
+
useAuthentication: false
|
1291
|
+
},
|
1292
|
+
PayoutRetrieveOptions
|
1293
|
+
);
|
1294
|
+
}
|
1295
|
+
async list(PayoutListParams, PayoutListOptions) {
|
1296
|
+
const queryArray = [];
|
1297
|
+
if (PayoutListParams?.propertyId !== void 0) {
|
1298
|
+
queryArray.push("propertyId=" + PayoutListParams.propertyId);
|
1299
|
+
}
|
1300
|
+
return await super.sendRequest(
|
1301
|
+
{
|
1302
|
+
method: "GET",
|
1303
|
+
url: "payouts?" + queryArray.join("&"),
|
1304
|
+
body: void 0,
|
1305
|
+
useAuthentication: false
|
1306
|
+
},
|
1307
|
+
PayoutListOptions
|
1308
|
+
);
|
1309
|
+
}
|
1310
|
+
};
|
1311
|
+
|
1275
1312
|
// src/types/types.ts
|
1276
1313
|
var LanguageCodeArray = [
|
1277
1314
|
"en",
|
@@ -1441,6 +1478,7 @@ var Juhuu = class {
|
|
1441
1478
|
this.settings = new SettingsService(config);
|
1442
1479
|
this.accountingAreas = new AccountingAreasService(config);
|
1443
1480
|
this.connectors = new ConnectorsService(config);
|
1481
|
+
this.payouts = new PayoutsService(config);
|
1444
1482
|
}
|
1445
1483
|
/**
|
1446
1484
|
* Top Level Resources
|
@@ -1460,6 +1498,7 @@ var Juhuu = class {
|
|
1460
1498
|
settings;
|
1461
1499
|
accountingAreas;
|
1462
1500
|
connectors;
|
1501
|
+
payouts;
|
1463
1502
|
};
|
1464
1503
|
var JUHUU;
|
1465
1504
|
((JUHUU2) => {
|
package/dist/index.mjs
CHANGED
@@ -1227,6 +1227,43 @@ var ConnectorsService = class extends Service {
|
|
1227
1227
|
}
|
1228
1228
|
};
|
1229
1229
|
|
1230
|
+
// src/payouts/payouts.service.ts
|
1231
|
+
var PayoutsService = class extends Service {
|
1232
|
+
constructor(config) {
|
1233
|
+
super(config);
|
1234
|
+
}
|
1235
|
+
async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
|
1236
|
+
const queryArray = [];
|
1237
|
+
if (PayoutRetrieveOptions?.expand !== void 0) {
|
1238
|
+
queryArray.push("expand=" + PayoutRetrieveOptions.expand.join(","));
|
1239
|
+
}
|
1240
|
+
return await super.sendRequest(
|
1241
|
+
{
|
1242
|
+
method: "GET",
|
1243
|
+
url: "payouts/" + PayoutRetrieveParams.payoutId + "?" + queryArray.join("&"),
|
1244
|
+
body: void 0,
|
1245
|
+
useAuthentication: false
|
1246
|
+
},
|
1247
|
+
PayoutRetrieveOptions
|
1248
|
+
);
|
1249
|
+
}
|
1250
|
+
async list(PayoutListParams, PayoutListOptions) {
|
1251
|
+
const queryArray = [];
|
1252
|
+
if (PayoutListParams?.propertyId !== void 0) {
|
1253
|
+
queryArray.push("propertyId=" + PayoutListParams.propertyId);
|
1254
|
+
}
|
1255
|
+
return await super.sendRequest(
|
1256
|
+
{
|
1257
|
+
method: "GET",
|
1258
|
+
url: "payouts?" + queryArray.join("&"),
|
1259
|
+
body: void 0,
|
1260
|
+
useAuthentication: false
|
1261
|
+
},
|
1262
|
+
PayoutListOptions
|
1263
|
+
);
|
1264
|
+
}
|
1265
|
+
};
|
1266
|
+
|
1230
1267
|
// src/types/types.ts
|
1231
1268
|
var LanguageCodeArray = [
|
1232
1269
|
"en",
|
@@ -1396,6 +1433,7 @@ var Juhuu = class {
|
|
1396
1433
|
this.settings = new SettingsService(config);
|
1397
1434
|
this.accountingAreas = new AccountingAreasService(config);
|
1398
1435
|
this.connectors = new ConnectorsService(config);
|
1436
|
+
this.payouts = new PayoutsService(config);
|
1399
1437
|
}
|
1400
1438
|
/**
|
1401
1439
|
* Top Level Resources
|
@@ -1415,6 +1453,7 @@ var Juhuu = class {
|
|
1415
1453
|
settings;
|
1416
1454
|
accountingAreas;
|
1417
1455
|
connectors;
|
1456
|
+
payouts;
|
1418
1457
|
};
|
1419
1458
|
var JUHUU;
|
1420
1459
|
((JUHUU2) => {
|