@juhuu/sdk-ts 1.2.46 → 1.2.47
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 +5 -39
- package/dist/index.d.ts +5 -39
- package/dist/index.js +44 -48
- package/dist/index.mjs +44 -48
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -577,7 +577,6 @@ declare class LinkService extends Service {
|
|
577
577
|
|
578
578
|
declare class UsersService extends Service {
|
579
579
|
constructor(config: JUHUU.SetupConfig);
|
580
|
-
create(UserCreateParams: JUHUU.User.Create.Params, UserCreateOptions?: JUHUU.User.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Create.Response>>;
|
581
580
|
retrieve(UserRetrieveParams: JUHUU.User.Retrieve.Params, UserRetrieveOptions?: JUHUU.User.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Retrieve.Response>>;
|
582
581
|
exists(UserExistsParams: JUHUU.User.Exists.Params, UserExistsOptions?: JUHUU.User.Exists.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Exists.Response>>;
|
583
582
|
registerEmailPassword(UserRegisterEmailPasswordParams: JUHUU.User.RegisterEmailPassword.Params, UserRegisterEmailPasswordOptions?: JUHUU.User.RegisterEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RegisterEmailPassword.Response>>;
|
@@ -712,10 +711,8 @@ declare class ConnectorsService extends Service {
|
|
712
711
|
|
713
712
|
declare class PayoutsService extends Service {
|
714
713
|
constructor(config: JUHUU.SetupConfig);
|
715
|
-
create(PayoutCreateParams: JUHUU.Payout.Create.Params, PayoutCreateOptions?: JUHUU.Payout.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Create.Response>>;
|
716
714
|
retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
|
717
715
|
list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
|
718
|
-
delete(PayoutDeleteParams: JUHUU.Payout.Delete.Params, PayoutDeleteOptions?: JUHUU.Payout.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Delete.Response>>;
|
719
716
|
}
|
720
717
|
|
721
718
|
declare class ConnectorMessagesService extends Service {
|
@@ -957,8 +954,8 @@ declare namespace JUHUU {
|
|
957
954
|
locationGroupId?: string;
|
958
955
|
};
|
959
956
|
type Options = {
|
960
|
-
limit
|
961
|
-
skip
|
957
|
+
limit?: number;
|
958
|
+
skip?: number;
|
962
959
|
} & JUHUU.RequestOptions;
|
963
960
|
type Response = JUHUU.Session.Object[];
|
964
961
|
}
|
@@ -1057,16 +1054,6 @@ declare namespace JUHUU {
|
|
1057
1054
|
contactPerson: Person;
|
1058
1055
|
}
|
1059
1056
|
export type Object = Standard | Management;
|
1060
|
-
export namespace Create {
|
1061
|
-
type Params = {
|
1062
|
-
type: string;
|
1063
|
-
name: string;
|
1064
|
-
};
|
1065
|
-
type Options = JUHUU.RequestOptions;
|
1066
|
-
type Response = {
|
1067
|
-
user: JUHUU.User.Object;
|
1068
|
-
};
|
1069
|
-
}
|
1070
1057
|
export namespace Retrieve {
|
1071
1058
|
type Params = {
|
1072
1059
|
userId: string;
|
@@ -1260,11 +1247,6 @@ declare namespace JUHUU {
|
|
1260
1247
|
type Params = {
|
1261
1248
|
propertyId: string;
|
1262
1249
|
name: string;
|
1263
|
-
creditPostingRowDescription?: string;
|
1264
|
-
orderNumber?: string;
|
1265
|
-
BGTXT?: string | null;
|
1266
|
-
SGTXT?: string | null;
|
1267
|
-
ZUONR?: string | null;
|
1268
1250
|
};
|
1269
1251
|
type Options = JUHUU.RequestOptions;
|
1270
1252
|
type Response = {
|
@@ -1656,9 +1638,9 @@ declare namespace JUHUU {
|
|
1656
1638
|
export namespace Create {
|
1657
1639
|
type Params = {
|
1658
1640
|
propertyId: string;
|
1659
|
-
name
|
1641
|
+
name: LocaleString;
|
1660
1642
|
type: string;
|
1661
|
-
regex
|
1643
|
+
regex: string;
|
1662
1644
|
};
|
1663
1645
|
type Options = JUHUU.RequestOptions;
|
1664
1646
|
type Response = {
|
@@ -1881,15 +1863,6 @@ declare namespace JUHUU {
|
|
1881
1863
|
creditNotePdfId: string;
|
1882
1864
|
stripeConnectedAccountId: string;
|
1883
1865
|
};
|
1884
|
-
namespace Create {
|
1885
|
-
type Params = {
|
1886
|
-
propertyId: string;
|
1887
|
-
};
|
1888
|
-
type Options = JUHUU.RequestOptions;
|
1889
|
-
type Response = {
|
1890
|
-
payout: JUHUU.Payout.Object;
|
1891
|
-
};
|
1892
|
-
}
|
1893
1866
|
namespace Retrieve {
|
1894
1867
|
type Params = {
|
1895
1868
|
payoutId: string;
|
@@ -1909,13 +1882,6 @@ declare namespace JUHUU {
|
|
1909
1882
|
type Options = JUHUU.RequestOptions;
|
1910
1883
|
type Response = JUHUU.Payout.Object[];
|
1911
1884
|
}
|
1912
|
-
namespace Delete {
|
1913
|
-
type Params = {
|
1914
|
-
payoutId?: string;
|
1915
|
-
};
|
1916
|
-
type Options = JUHUU.RequestOptions;
|
1917
|
-
type Response = JUHUU.Payout.Object[];
|
1918
|
-
}
|
1919
1885
|
}
|
1920
1886
|
namespace Payment {
|
1921
1887
|
type Object = {
|
@@ -2468,7 +2434,7 @@ declare namespace JUHUU {
|
|
2468
2434
|
namespace Create {
|
2469
2435
|
type Params = {
|
2470
2436
|
propertyId: string;
|
2471
|
-
name
|
2437
|
+
name?: string;
|
2472
2438
|
productId: string;
|
2473
2439
|
};
|
2474
2440
|
type Options = JUHUU.RequestOptions;
|
package/dist/index.d.ts
CHANGED
@@ -577,7 +577,6 @@ declare class LinkService extends Service {
|
|
577
577
|
|
578
578
|
declare class UsersService extends Service {
|
579
579
|
constructor(config: JUHUU.SetupConfig);
|
580
|
-
create(UserCreateParams: JUHUU.User.Create.Params, UserCreateOptions?: JUHUU.User.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Create.Response>>;
|
581
580
|
retrieve(UserRetrieveParams: JUHUU.User.Retrieve.Params, UserRetrieveOptions?: JUHUU.User.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Retrieve.Response>>;
|
582
581
|
exists(UserExistsParams: JUHUU.User.Exists.Params, UserExistsOptions?: JUHUU.User.Exists.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Exists.Response>>;
|
583
582
|
registerEmailPassword(UserRegisterEmailPasswordParams: JUHUU.User.RegisterEmailPassword.Params, UserRegisterEmailPasswordOptions?: JUHUU.User.RegisterEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RegisterEmailPassword.Response>>;
|
@@ -712,10 +711,8 @@ declare class ConnectorsService extends Service {
|
|
712
711
|
|
713
712
|
declare class PayoutsService extends Service {
|
714
713
|
constructor(config: JUHUU.SetupConfig);
|
715
|
-
create(PayoutCreateParams: JUHUU.Payout.Create.Params, PayoutCreateOptions?: JUHUU.Payout.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Create.Response>>;
|
716
714
|
retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
|
717
715
|
list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
|
718
|
-
delete(PayoutDeleteParams: JUHUU.Payout.Delete.Params, PayoutDeleteOptions?: JUHUU.Payout.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Delete.Response>>;
|
719
716
|
}
|
720
717
|
|
721
718
|
declare class ConnectorMessagesService extends Service {
|
@@ -957,8 +954,8 @@ declare namespace JUHUU {
|
|
957
954
|
locationGroupId?: string;
|
958
955
|
};
|
959
956
|
type Options = {
|
960
|
-
limit
|
961
|
-
skip
|
957
|
+
limit?: number;
|
958
|
+
skip?: number;
|
962
959
|
} & JUHUU.RequestOptions;
|
963
960
|
type Response = JUHUU.Session.Object[];
|
964
961
|
}
|
@@ -1057,16 +1054,6 @@ declare namespace JUHUU {
|
|
1057
1054
|
contactPerson: Person;
|
1058
1055
|
}
|
1059
1056
|
export type Object = Standard | Management;
|
1060
|
-
export namespace Create {
|
1061
|
-
type Params = {
|
1062
|
-
type: string;
|
1063
|
-
name: string;
|
1064
|
-
};
|
1065
|
-
type Options = JUHUU.RequestOptions;
|
1066
|
-
type Response = {
|
1067
|
-
user: JUHUU.User.Object;
|
1068
|
-
};
|
1069
|
-
}
|
1070
1057
|
export namespace Retrieve {
|
1071
1058
|
type Params = {
|
1072
1059
|
userId: string;
|
@@ -1260,11 +1247,6 @@ declare namespace JUHUU {
|
|
1260
1247
|
type Params = {
|
1261
1248
|
propertyId: string;
|
1262
1249
|
name: string;
|
1263
|
-
creditPostingRowDescription?: string;
|
1264
|
-
orderNumber?: string;
|
1265
|
-
BGTXT?: string | null;
|
1266
|
-
SGTXT?: string | null;
|
1267
|
-
ZUONR?: string | null;
|
1268
1250
|
};
|
1269
1251
|
type Options = JUHUU.RequestOptions;
|
1270
1252
|
type Response = {
|
@@ -1656,9 +1638,9 @@ declare namespace JUHUU {
|
|
1656
1638
|
export namespace Create {
|
1657
1639
|
type Params = {
|
1658
1640
|
propertyId: string;
|
1659
|
-
name
|
1641
|
+
name: LocaleString;
|
1660
1642
|
type: string;
|
1661
|
-
regex
|
1643
|
+
regex: string;
|
1662
1644
|
};
|
1663
1645
|
type Options = JUHUU.RequestOptions;
|
1664
1646
|
type Response = {
|
@@ -1881,15 +1863,6 @@ declare namespace JUHUU {
|
|
1881
1863
|
creditNotePdfId: string;
|
1882
1864
|
stripeConnectedAccountId: string;
|
1883
1865
|
};
|
1884
|
-
namespace Create {
|
1885
|
-
type Params = {
|
1886
|
-
propertyId: string;
|
1887
|
-
};
|
1888
|
-
type Options = JUHUU.RequestOptions;
|
1889
|
-
type Response = {
|
1890
|
-
payout: JUHUU.Payout.Object;
|
1891
|
-
};
|
1892
|
-
}
|
1893
1866
|
namespace Retrieve {
|
1894
1867
|
type Params = {
|
1895
1868
|
payoutId: string;
|
@@ -1909,13 +1882,6 @@ declare namespace JUHUU {
|
|
1909
1882
|
type Options = JUHUU.RequestOptions;
|
1910
1883
|
type Response = JUHUU.Payout.Object[];
|
1911
1884
|
}
|
1912
|
-
namespace Delete {
|
1913
|
-
type Params = {
|
1914
|
-
payoutId?: string;
|
1915
|
-
};
|
1916
|
-
type Options = JUHUU.RequestOptions;
|
1917
|
-
type Response = JUHUU.Payout.Object[];
|
1918
|
-
}
|
1919
1885
|
}
|
1920
1886
|
namespace Payment {
|
1921
1887
|
type Object = {
|
@@ -2468,7 +2434,7 @@ declare namespace JUHUU {
|
|
2468
2434
|
namespace Create {
|
2469
2435
|
type Params = {
|
2470
2436
|
propertyId: string;
|
2471
|
-
name
|
2437
|
+
name?: string;
|
2472
2438
|
productId: string;
|
2473
2439
|
};
|
2474
2440
|
type Options = JUHUU.RequestOptions;
|
package/dist/index.js
CHANGED
@@ -439,7 +439,9 @@ var LinkService = class extends Service {
|
|
439
439
|
method: "POST",
|
440
440
|
url: "links",
|
441
441
|
body: {
|
442
|
-
propertyId: LinkCreateParams.propertyId
|
442
|
+
propertyId: LinkCreateParams.propertyId,
|
443
|
+
name: LinkCreateParams.name,
|
444
|
+
fiveLetterQr: LinkCreateParams.fiveLetterQr
|
443
445
|
},
|
444
446
|
useAuthentication: true
|
445
447
|
},
|
@@ -494,19 +496,6 @@ var UsersService = class extends Service {
|
|
494
496
|
constructor(config) {
|
495
497
|
super(config);
|
496
498
|
}
|
497
|
-
async create(UserCreateParams, UserCreateOptions) {
|
498
|
-
return await super.sendRequest(
|
499
|
-
{
|
500
|
-
method: "POST",
|
501
|
-
url: "users",
|
502
|
-
body: {
|
503
|
-
userId: UserCreateParams
|
504
|
-
},
|
505
|
-
useAuthentication: true
|
506
|
-
},
|
507
|
-
UserCreateOptions
|
508
|
-
);
|
509
|
-
}
|
510
499
|
async retrieve(UserRetrieveParams, UserRetrieveOptions) {
|
511
500
|
const queryArray = [];
|
512
501
|
return await super.sendRequest(
|
@@ -886,7 +875,9 @@ var DevicesService = class extends Service {
|
|
886
875
|
method: "POST",
|
887
876
|
url: "devices",
|
888
877
|
body: {
|
889
|
-
propertyId: DeviceCreateParams.propertyId
|
878
|
+
propertyId: DeviceCreateParams.propertyId,
|
879
|
+
deviceTemplateId: DeviceCreateParams.deviceTemplateId,
|
880
|
+
name: DeviceCreateParams.name
|
890
881
|
},
|
891
882
|
useAuthentication: true
|
892
883
|
},
|
@@ -1016,7 +1007,9 @@ var DeviceTemplatesService = class extends Service {
|
|
1016
1007
|
method: "POST",
|
1017
1008
|
url: "deviceTemplates",
|
1018
1009
|
body: {
|
1019
|
-
propertyId: DeviceTemplateCreateParams.propertyId
|
1010
|
+
propertyId: DeviceTemplateCreateParams.propertyId,
|
1011
|
+
productId: DeviceTemplateCreateParams.productId,
|
1012
|
+
name: DeviceTemplateCreateParams.name
|
1020
1013
|
},
|
1021
1014
|
useAuthentication: true
|
1022
1015
|
},
|
@@ -1077,7 +1070,9 @@ var LocationsService = class extends Service {
|
|
1077
1070
|
method: "POST",
|
1078
1071
|
url: "locations",
|
1079
1072
|
body: {
|
1080
|
-
propertyId: LocationCreateParams.propertyId
|
1073
|
+
propertyId: LocationCreateParams.propertyId,
|
1074
|
+
name: LocationCreateParams.name,
|
1075
|
+
type: LocationCreateParams.type
|
1081
1076
|
},
|
1082
1077
|
useAuthentication: true
|
1083
1078
|
},
|
@@ -1167,7 +1162,8 @@ var TermsService = class extends Service {
|
|
1167
1162
|
method: "POST",
|
1168
1163
|
url: "terms",
|
1169
1164
|
body: {
|
1170
|
-
|
1165
|
+
propertyId: TermCreateParams.propertyId,
|
1166
|
+
name: TermCreateParams.name
|
1171
1167
|
},
|
1172
1168
|
useAuthentication: true
|
1173
1169
|
},
|
@@ -1241,7 +1237,12 @@ var TariffsService = class extends Service {
|
|
1241
1237
|
method: "POST",
|
1242
1238
|
url: "tariffs",
|
1243
1239
|
body: {
|
1244
|
-
tariffId: TariffCreateParams.propertyId
|
1240
|
+
tariffId: TariffCreateParams.propertyId,
|
1241
|
+
duration: TariffCreateParams.duration,
|
1242
|
+
currencyCode: TariffCreateParams.currencyCode,
|
1243
|
+
amount: TariffCreateParams.amount,
|
1244
|
+
continue: TariffCreateParams.continue,
|
1245
|
+
name: TariffCreateParams.name
|
1245
1246
|
},
|
1246
1247
|
useAuthentication: true
|
1247
1248
|
},
|
@@ -1395,7 +1396,8 @@ var ProductService = class extends Service {
|
|
1395
1396
|
method: "POST",
|
1396
1397
|
url: "products",
|
1397
1398
|
body: {
|
1398
|
-
propertyId: ProductCreateParams.propertyId
|
1399
|
+
propertyId: ProductCreateParams.propertyId,
|
1400
|
+
name: ProductCreateParams.name
|
1399
1401
|
},
|
1400
1402
|
useAuthentication: true
|
1401
1403
|
},
|
@@ -1489,7 +1491,8 @@ var AccountingAreasService = class extends Service {
|
|
1489
1491
|
method: "POST",
|
1490
1492
|
url: "accountingAreas",
|
1491
1493
|
body: {
|
1492
|
-
propertyId: AccountingAreaCreateParams.propertyId
|
1494
|
+
propertyId: AccountingAreaCreateParams.propertyId,
|
1495
|
+
name: AccountingAreaCreateParams.name
|
1493
1496
|
},
|
1494
1497
|
useAuthentication: true
|
1495
1498
|
},
|
@@ -1552,7 +1555,19 @@ var ConnectorsService = class extends Service {
|
|
1552
1555
|
method: "POST",
|
1553
1556
|
url: "connectors",
|
1554
1557
|
body: {
|
1555
|
-
propertyId: ConnectorCreateParams.propertyId
|
1558
|
+
propertyId: ConnectorCreateParams.propertyId,
|
1559
|
+
name: ConnectorCreateParams.name,
|
1560
|
+
username: ConnectorCreateParams.username,
|
1561
|
+
password: ConnectorCreateParams.password,
|
1562
|
+
clientId: ConnectorCreateParams.clientId,
|
1563
|
+
host: ConnectorCreateParams.host,
|
1564
|
+
port: ConnectorCreateParams.port,
|
1565
|
+
mqttRetain: ConnectorCreateParams.mqttRetain,
|
1566
|
+
mqttQos: ConnectorCreateParams.mqttQos,
|
1567
|
+
description: ConnectorCreateParams.description,
|
1568
|
+
simId: ConnectorCreateParams.simId,
|
1569
|
+
connectionMode: ConnectorCreateParams.connectionMode,
|
1570
|
+
type: ConnectorCreateParams.type
|
1556
1571
|
},
|
1557
1572
|
useAuthentication: true
|
1558
1573
|
},
|
@@ -1607,19 +1622,6 @@ var PayoutsService = class extends Service {
|
|
1607
1622
|
constructor(config) {
|
1608
1623
|
super(config);
|
1609
1624
|
}
|
1610
|
-
async create(PayoutCreateParams, PayoutCreateOptions) {
|
1611
|
-
return await super.sendRequest(
|
1612
|
-
{
|
1613
|
-
method: "POST",
|
1614
|
-
url: "payouts",
|
1615
|
-
body: {
|
1616
|
-
propertyId: PayoutCreateParams.propertyId
|
1617
|
-
},
|
1618
|
-
useAuthentication: true
|
1619
|
-
},
|
1620
|
-
PayoutCreateOptions
|
1621
|
-
);
|
1622
|
-
}
|
1623
1625
|
async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
|
1624
1626
|
const queryArray = [];
|
1625
1627
|
if (PayoutRetrieveOptions?.expand !== void 0) {
|
@@ -1650,17 +1652,6 @@ var PayoutsService = class extends Service {
|
|
1650
1652
|
PayoutListOptions
|
1651
1653
|
);
|
1652
1654
|
}
|
1653
|
-
async delete(PayoutDeleteParams, PayoutDeleteOptions) {
|
1654
|
-
return await super.sendRequest(
|
1655
|
-
{
|
1656
|
-
method: "DELETE",
|
1657
|
-
url: "payouts/" + PayoutDeleteParams.payoutId,
|
1658
|
-
useAuthentication: true,
|
1659
|
-
body: void 0
|
1660
|
-
},
|
1661
|
-
PayoutDeleteOptions
|
1662
|
-
);
|
1663
|
-
}
|
1664
1655
|
};
|
1665
1656
|
|
1666
1657
|
// src/connectorMessages/connectorMessages.service.ts
|
@@ -1717,7 +1708,9 @@ var SimsService = class extends Service {
|
|
1717
1708
|
method: "POST",
|
1718
1709
|
url: "sims",
|
1719
1710
|
body: {
|
1720
|
-
simId: SimCreateParams.propertyId
|
1711
|
+
simId: SimCreateParams.propertyId,
|
1712
|
+
iccid: SimCreateParams.iccid,
|
1713
|
+
name: SimCreateParams.name
|
1721
1714
|
},
|
1722
1715
|
useAuthentication: true
|
1723
1716
|
},
|
@@ -1785,7 +1778,10 @@ var LicenseTemplatesService = class extends Service {
|
|
1785
1778
|
method: "POST",
|
1786
1779
|
url: "licenseTemplates",
|
1787
1780
|
body: {
|
1788
|
-
propertyId: LicenseTemplateCreateParams.propertyId
|
1781
|
+
propertyId: LicenseTemplateCreateParams.propertyId,
|
1782
|
+
type: LicenseTemplateCreateParams.type,
|
1783
|
+
regex: LicenseTemplateCreateParams.regex,
|
1784
|
+
name: LicenseTemplateCreateParams.name
|
1789
1785
|
},
|
1790
1786
|
useAuthentication: true
|
1791
1787
|
},
|
package/dist/index.mjs
CHANGED
@@ -394,7 +394,9 @@ var LinkService = class extends Service {
|
|
394
394
|
method: "POST",
|
395
395
|
url: "links",
|
396
396
|
body: {
|
397
|
-
propertyId: LinkCreateParams.propertyId
|
397
|
+
propertyId: LinkCreateParams.propertyId,
|
398
|
+
name: LinkCreateParams.name,
|
399
|
+
fiveLetterQr: LinkCreateParams.fiveLetterQr
|
398
400
|
},
|
399
401
|
useAuthentication: true
|
400
402
|
},
|
@@ -449,19 +451,6 @@ var UsersService = class extends Service {
|
|
449
451
|
constructor(config) {
|
450
452
|
super(config);
|
451
453
|
}
|
452
|
-
async create(UserCreateParams, UserCreateOptions) {
|
453
|
-
return await super.sendRequest(
|
454
|
-
{
|
455
|
-
method: "POST",
|
456
|
-
url: "users",
|
457
|
-
body: {
|
458
|
-
userId: UserCreateParams
|
459
|
-
},
|
460
|
-
useAuthentication: true
|
461
|
-
},
|
462
|
-
UserCreateOptions
|
463
|
-
);
|
464
|
-
}
|
465
454
|
async retrieve(UserRetrieveParams, UserRetrieveOptions) {
|
466
455
|
const queryArray = [];
|
467
456
|
return await super.sendRequest(
|
@@ -841,7 +830,9 @@ var DevicesService = class extends Service {
|
|
841
830
|
method: "POST",
|
842
831
|
url: "devices",
|
843
832
|
body: {
|
844
|
-
propertyId: DeviceCreateParams.propertyId
|
833
|
+
propertyId: DeviceCreateParams.propertyId,
|
834
|
+
deviceTemplateId: DeviceCreateParams.deviceTemplateId,
|
835
|
+
name: DeviceCreateParams.name
|
845
836
|
},
|
846
837
|
useAuthentication: true
|
847
838
|
},
|
@@ -971,7 +962,9 @@ var DeviceTemplatesService = class extends Service {
|
|
971
962
|
method: "POST",
|
972
963
|
url: "deviceTemplates",
|
973
964
|
body: {
|
974
|
-
propertyId: DeviceTemplateCreateParams.propertyId
|
965
|
+
propertyId: DeviceTemplateCreateParams.propertyId,
|
966
|
+
productId: DeviceTemplateCreateParams.productId,
|
967
|
+
name: DeviceTemplateCreateParams.name
|
975
968
|
},
|
976
969
|
useAuthentication: true
|
977
970
|
},
|
@@ -1032,7 +1025,9 @@ var LocationsService = class extends Service {
|
|
1032
1025
|
method: "POST",
|
1033
1026
|
url: "locations",
|
1034
1027
|
body: {
|
1035
|
-
propertyId: LocationCreateParams.propertyId
|
1028
|
+
propertyId: LocationCreateParams.propertyId,
|
1029
|
+
name: LocationCreateParams.name,
|
1030
|
+
type: LocationCreateParams.type
|
1036
1031
|
},
|
1037
1032
|
useAuthentication: true
|
1038
1033
|
},
|
@@ -1122,7 +1117,8 @@ var TermsService = class extends Service {
|
|
1122
1117
|
method: "POST",
|
1123
1118
|
url: "terms",
|
1124
1119
|
body: {
|
1125
|
-
|
1120
|
+
propertyId: TermCreateParams.propertyId,
|
1121
|
+
name: TermCreateParams.name
|
1126
1122
|
},
|
1127
1123
|
useAuthentication: true
|
1128
1124
|
},
|
@@ -1196,7 +1192,12 @@ var TariffsService = class extends Service {
|
|
1196
1192
|
method: "POST",
|
1197
1193
|
url: "tariffs",
|
1198
1194
|
body: {
|
1199
|
-
tariffId: TariffCreateParams.propertyId
|
1195
|
+
tariffId: TariffCreateParams.propertyId,
|
1196
|
+
duration: TariffCreateParams.duration,
|
1197
|
+
currencyCode: TariffCreateParams.currencyCode,
|
1198
|
+
amount: TariffCreateParams.amount,
|
1199
|
+
continue: TariffCreateParams.continue,
|
1200
|
+
name: TariffCreateParams.name
|
1200
1201
|
},
|
1201
1202
|
useAuthentication: true
|
1202
1203
|
},
|
@@ -1350,7 +1351,8 @@ var ProductService = class extends Service {
|
|
1350
1351
|
method: "POST",
|
1351
1352
|
url: "products",
|
1352
1353
|
body: {
|
1353
|
-
propertyId: ProductCreateParams.propertyId
|
1354
|
+
propertyId: ProductCreateParams.propertyId,
|
1355
|
+
name: ProductCreateParams.name
|
1354
1356
|
},
|
1355
1357
|
useAuthentication: true
|
1356
1358
|
},
|
@@ -1444,7 +1446,8 @@ var AccountingAreasService = class extends Service {
|
|
1444
1446
|
method: "POST",
|
1445
1447
|
url: "accountingAreas",
|
1446
1448
|
body: {
|
1447
|
-
propertyId: AccountingAreaCreateParams.propertyId
|
1449
|
+
propertyId: AccountingAreaCreateParams.propertyId,
|
1450
|
+
name: AccountingAreaCreateParams.name
|
1448
1451
|
},
|
1449
1452
|
useAuthentication: true
|
1450
1453
|
},
|
@@ -1507,7 +1510,19 @@ var ConnectorsService = class extends Service {
|
|
1507
1510
|
method: "POST",
|
1508
1511
|
url: "connectors",
|
1509
1512
|
body: {
|
1510
|
-
propertyId: ConnectorCreateParams.propertyId
|
1513
|
+
propertyId: ConnectorCreateParams.propertyId,
|
1514
|
+
name: ConnectorCreateParams.name,
|
1515
|
+
username: ConnectorCreateParams.username,
|
1516
|
+
password: ConnectorCreateParams.password,
|
1517
|
+
clientId: ConnectorCreateParams.clientId,
|
1518
|
+
host: ConnectorCreateParams.host,
|
1519
|
+
port: ConnectorCreateParams.port,
|
1520
|
+
mqttRetain: ConnectorCreateParams.mqttRetain,
|
1521
|
+
mqttQos: ConnectorCreateParams.mqttQos,
|
1522
|
+
description: ConnectorCreateParams.description,
|
1523
|
+
simId: ConnectorCreateParams.simId,
|
1524
|
+
connectionMode: ConnectorCreateParams.connectionMode,
|
1525
|
+
type: ConnectorCreateParams.type
|
1511
1526
|
},
|
1512
1527
|
useAuthentication: true
|
1513
1528
|
},
|
@@ -1562,19 +1577,6 @@ var PayoutsService = class extends Service {
|
|
1562
1577
|
constructor(config) {
|
1563
1578
|
super(config);
|
1564
1579
|
}
|
1565
|
-
async create(PayoutCreateParams, PayoutCreateOptions) {
|
1566
|
-
return await super.sendRequest(
|
1567
|
-
{
|
1568
|
-
method: "POST",
|
1569
|
-
url: "payouts",
|
1570
|
-
body: {
|
1571
|
-
propertyId: PayoutCreateParams.propertyId
|
1572
|
-
},
|
1573
|
-
useAuthentication: true
|
1574
|
-
},
|
1575
|
-
PayoutCreateOptions
|
1576
|
-
);
|
1577
|
-
}
|
1578
1580
|
async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
|
1579
1581
|
const queryArray = [];
|
1580
1582
|
if (PayoutRetrieveOptions?.expand !== void 0) {
|
@@ -1605,17 +1607,6 @@ var PayoutsService = class extends Service {
|
|
1605
1607
|
PayoutListOptions
|
1606
1608
|
);
|
1607
1609
|
}
|
1608
|
-
async delete(PayoutDeleteParams, PayoutDeleteOptions) {
|
1609
|
-
return await super.sendRequest(
|
1610
|
-
{
|
1611
|
-
method: "DELETE",
|
1612
|
-
url: "payouts/" + PayoutDeleteParams.payoutId,
|
1613
|
-
useAuthentication: true,
|
1614
|
-
body: void 0
|
1615
|
-
},
|
1616
|
-
PayoutDeleteOptions
|
1617
|
-
);
|
1618
|
-
}
|
1619
1610
|
};
|
1620
1611
|
|
1621
1612
|
// src/connectorMessages/connectorMessages.service.ts
|
@@ -1672,7 +1663,9 @@ var SimsService = class extends Service {
|
|
1672
1663
|
method: "POST",
|
1673
1664
|
url: "sims",
|
1674
1665
|
body: {
|
1675
|
-
simId: SimCreateParams.propertyId
|
1666
|
+
simId: SimCreateParams.propertyId,
|
1667
|
+
iccid: SimCreateParams.iccid,
|
1668
|
+
name: SimCreateParams.name
|
1676
1669
|
},
|
1677
1670
|
useAuthentication: true
|
1678
1671
|
},
|
@@ -1740,7 +1733,10 @@ var LicenseTemplatesService = class extends Service {
|
|
1740
1733
|
method: "POST",
|
1741
1734
|
url: "licenseTemplates",
|
1742
1735
|
body: {
|
1743
|
-
propertyId: LicenseTemplateCreateParams.propertyId
|
1736
|
+
propertyId: LicenseTemplateCreateParams.propertyId,
|
1737
|
+
type: LicenseTemplateCreateParams.type,
|
1738
|
+
regex: LicenseTemplateCreateParams.regex,
|
1739
|
+
name: LicenseTemplateCreateParams.name
|
1744
1740
|
},
|
1745
1741
|
useAuthentication: true
|
1746
1742
|
},
|