@juhuu/sdk-ts 1.2.191 → 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 CHANGED
@@ -600,6 +600,7 @@ declare class LinkService extends Service {
600
600
  create(LinkCreateParams: JUHUU.Link.Create.Params, LinkCreateOptions?: JUHUU.Link.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Create.Response>>;
601
601
  retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
602
602
  list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
603
+ update(LinkUpdateParams: JUHUU.Link.Update.Params, LinkUpdateOptions?: JUHUU.Link.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Update.Response>>;
603
604
  delete(LinkDeleteParams: JUHUU.Link.Delete.Params, LinkDeleteOptions?: JUHUU.Link.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Delete.Response>>;
604
605
  }
605
606
 
@@ -641,6 +642,7 @@ declare class PropertiesService extends Service {
641
642
  retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Params, PropertyRetrieveStripeSubscriptionStartUrlOptions?: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Response>>;
642
643
  enableCapability(PropertyEnableCapabilityParams: JUHUU.Property.EnableCapability.Params, PropertyEnableCapabilityOptions?: JUHUU.Property.EnableCapability.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.EnableCapability.Response>>;
643
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>>;
644
646
  }
645
647
 
646
648
  declare class PointsService extends Service {
@@ -751,6 +753,7 @@ declare class ConnectorsService extends Service {
751
753
 
752
754
  declare class PayoutsService extends Service {
753
755
  constructor(config: JUHUU.SetupConfig);
756
+ create(PayoutCreateParams: JUHUU.Payout.Create.Params, PayoutCreateOptions?: JUHUU.Payout.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Create.Response>>;
754
757
  retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
755
758
  list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
756
759
  }
@@ -766,6 +769,7 @@ declare class SimsService extends Service {
766
769
  create(SimCreateParams: JUHUU.Sim.Create.Params, SimCreateOptions?: JUHUU.Sim.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Create.Response>>;
767
770
  retrieve(SimRetrieveParams: JUHUU.Sim.Retrieve.Params, SimRetrieveOptions?: JUHUU.Sim.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Retrieve.Response>>;
768
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>>;
769
773
  updateFromProvider(SimUpdateFromProviderParams: JUHUU.Sim.UpdateFromProvider.Params, SimUpdateFromProviderOptions?: JUHUU.Sim.UpdateFromProvider.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.UpdateFromProvider.Response>>;
770
774
  delete(SimDeleteParams: JUHUU.Sim.Delete.Params, SimDeleteOptions?: JUHUU.Sim.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Delete.Response>>;
771
775
  }
@@ -2364,6 +2368,13 @@ declare namespace JUHUU {
2364
2368
  property: JUHUU.Property.Object;
2365
2369
  };
2366
2370
  }
2371
+ export namespace Delete {
2372
+ type Params = {
2373
+ propertyId: string;
2374
+ };
2375
+ type Options = JUHUU.RequestOptions;
2376
+ type Response = JUHUU.Property.Object;
2377
+ }
2367
2378
  export { };
2368
2379
  }
2369
2380
  namespace Point {
@@ -2445,6 +2456,18 @@ declare namespace JUHUU {
2445
2456
  creditNotePdfId: string;
2446
2457
  stripeConnectedAccountId: string;
2447
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
+ }
2448
2471
  namespace Retrieve {
2449
2472
  type Params = {
2450
2473
  payoutId: string;
@@ -2910,6 +2933,16 @@ declare namespace JUHUU {
2910
2933
  type Options = {};
2911
2934
  type Response = JUHUU.Link.Object[];
2912
2935
  }
2936
+ export namespace Update {
2937
+ type Params = {
2938
+ linkId: string;
2939
+ name?: string;
2940
+ };
2941
+ type Options = JUHUU.RequestOptions;
2942
+ type Response = {
2943
+ link: JUHUU.Link.Object;
2944
+ };
2945
+ }
2913
2946
  export namespace Delete {
2914
2947
  type Params = {
2915
2948
  linkId: string;
@@ -3518,6 +3551,7 @@ declare namespace JUHUU {
3518
3551
  namespace Create {
3519
3552
  type Params = {
3520
3553
  propertyId: string;
3554
+ name?: string;
3521
3555
  };
3522
3556
  type Options = JUHUU.RequestOptions;
3523
3557
  type Response = {
@@ -3723,7 +3757,23 @@ declare namespace JUHUU {
3723
3757
  propertyId?: string;
3724
3758
  };
3725
3759
  type Options = JUHUU.RequestOptions;
3726
- type Response = JUHUU.Sim.Object[];
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
+ };
3727
3777
  }
3728
3778
  namespace UpdateFromProvider {
3729
3779
  type Params = {
package/dist/index.d.ts CHANGED
@@ -600,6 +600,7 @@ declare class LinkService extends Service {
600
600
  create(LinkCreateParams: JUHUU.Link.Create.Params, LinkCreateOptions?: JUHUU.Link.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Create.Response>>;
601
601
  retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
602
602
  list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
603
+ update(LinkUpdateParams: JUHUU.Link.Update.Params, LinkUpdateOptions?: JUHUU.Link.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Update.Response>>;
603
604
  delete(LinkDeleteParams: JUHUU.Link.Delete.Params, LinkDeleteOptions?: JUHUU.Link.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Delete.Response>>;
604
605
  }
605
606
 
@@ -641,6 +642,7 @@ declare class PropertiesService extends Service {
641
642
  retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Params, PropertyRetrieveStripeSubscriptionStartUrlOptions?: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Response>>;
642
643
  enableCapability(PropertyEnableCapabilityParams: JUHUU.Property.EnableCapability.Params, PropertyEnableCapabilityOptions?: JUHUU.Property.EnableCapability.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.EnableCapability.Response>>;
643
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>>;
644
646
  }
645
647
 
646
648
  declare class PointsService extends Service {
@@ -751,6 +753,7 @@ declare class ConnectorsService extends Service {
751
753
 
752
754
  declare class PayoutsService extends Service {
753
755
  constructor(config: JUHUU.SetupConfig);
756
+ create(PayoutCreateParams: JUHUU.Payout.Create.Params, PayoutCreateOptions?: JUHUU.Payout.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Create.Response>>;
754
757
  retrieve(PayoutRetrieveParams: JUHUU.Payout.Retrieve.Params, PayoutRetrieveOptions?: JUHUU.Payout.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.Retrieve.Response>>;
755
758
  list(PayoutListParams: JUHUU.Payout.List.Params, PayoutListOptions?: JUHUU.Payout.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payout.List.Response>>;
756
759
  }
@@ -766,6 +769,7 @@ declare class SimsService extends Service {
766
769
  create(SimCreateParams: JUHUU.Sim.Create.Params, SimCreateOptions?: JUHUU.Sim.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Create.Response>>;
767
770
  retrieve(SimRetrieveParams: JUHUU.Sim.Retrieve.Params, SimRetrieveOptions?: JUHUU.Sim.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Retrieve.Response>>;
768
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>>;
769
773
  updateFromProvider(SimUpdateFromProviderParams: JUHUU.Sim.UpdateFromProvider.Params, SimUpdateFromProviderOptions?: JUHUU.Sim.UpdateFromProvider.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.UpdateFromProvider.Response>>;
770
774
  delete(SimDeleteParams: JUHUU.Sim.Delete.Params, SimDeleteOptions?: JUHUU.Sim.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Sim.Delete.Response>>;
771
775
  }
@@ -2364,6 +2368,13 @@ declare namespace JUHUU {
2364
2368
  property: JUHUU.Property.Object;
2365
2369
  };
2366
2370
  }
2371
+ export namespace Delete {
2372
+ type Params = {
2373
+ propertyId: string;
2374
+ };
2375
+ type Options = JUHUU.RequestOptions;
2376
+ type Response = JUHUU.Property.Object;
2377
+ }
2367
2378
  export { };
2368
2379
  }
2369
2380
  namespace Point {
@@ -2445,6 +2456,18 @@ declare namespace JUHUU {
2445
2456
  creditNotePdfId: string;
2446
2457
  stripeConnectedAccountId: string;
2447
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
+ }
2448
2471
  namespace Retrieve {
2449
2472
  type Params = {
2450
2473
  payoutId: string;
@@ -2910,6 +2933,16 @@ declare namespace JUHUU {
2910
2933
  type Options = {};
2911
2934
  type Response = JUHUU.Link.Object[];
2912
2935
  }
2936
+ export namespace Update {
2937
+ type Params = {
2938
+ linkId: string;
2939
+ name?: string;
2940
+ };
2941
+ type Options = JUHUU.RequestOptions;
2942
+ type Response = {
2943
+ link: JUHUU.Link.Object;
2944
+ };
2945
+ }
2913
2946
  export namespace Delete {
2914
2947
  type Params = {
2915
2948
  linkId: string;
@@ -3518,6 +3551,7 @@ declare namespace JUHUU {
3518
3551
  namespace Create {
3519
3552
  type Params = {
3520
3553
  propertyId: string;
3554
+ name?: string;
3521
3555
  };
3522
3556
  type Options = JUHUU.RequestOptions;
3523
3557
  type Response = {
@@ -3723,7 +3757,23 @@ declare namespace JUHUU {
3723
3757
  propertyId?: string;
3724
3758
  };
3725
3759
  type Options = JUHUU.RequestOptions;
3726
- type Response = JUHUU.Sim.Object[];
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
+ };
3727
3777
  }
3728
3778
  namespace UpdateFromProvider {
3729
3779
  type Params = {
package/dist/index.js CHANGED
@@ -637,6 +637,19 @@ var LinkService = class extends Service {
637
637
  LinkListOptions
638
638
  );
639
639
  }
640
+ async update(LinkUpdateParams, LinkUpdateOptions) {
641
+ return await super.sendRequest(
642
+ {
643
+ method: "PATCH",
644
+ url: "links/" + LinkUpdateParams.linkId,
645
+ body: {
646
+ name: LinkUpdateParams.name
647
+ },
648
+ authenticationNotOptional: true
649
+ },
650
+ LinkUpdateOptions
651
+ );
652
+ }
640
653
  async delete(LinkDeleteParams, LinkDeleteOptions) {
641
654
  return await super.sendRequest(
642
655
  {
@@ -1087,6 +1100,17 @@ var PropertiesService = class extends Service {
1087
1100
  PropertyAcceptLatestAgreementOptions
1088
1101
  );
1089
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
+ }
1090
1114
  };
1091
1115
 
1092
1116
  // src/points/points.service.ts
@@ -1997,6 +2021,22 @@ var PayoutsService = class extends Service {
1997
2021
  constructor(config) {
1998
2022
  super(config);
1999
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
+ }
2000
2040
  async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
2001
2041
  const queryArray = [];
2002
2042
  if (PayoutRetrieveOptions?.expand !== void 0) {
@@ -2118,6 +2158,21 @@ var SimsService = class extends Service {
2118
2158
  SimListOptions
2119
2159
  );
2120
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
+ }
2121
2176
  async updateFromProvider(SimUpdateFromProviderParams, SimUpdateFromProviderOptions) {
2122
2177
  return await super.sendRequest(
2123
2178
  {
package/dist/index.mjs CHANGED
@@ -593,6 +593,19 @@ var LinkService = class extends Service {
593
593
  LinkListOptions
594
594
  );
595
595
  }
596
+ async update(LinkUpdateParams, LinkUpdateOptions) {
597
+ return await super.sendRequest(
598
+ {
599
+ method: "PATCH",
600
+ url: "links/" + LinkUpdateParams.linkId,
601
+ body: {
602
+ name: LinkUpdateParams.name
603
+ },
604
+ authenticationNotOptional: true
605
+ },
606
+ LinkUpdateOptions
607
+ );
608
+ }
596
609
  async delete(LinkDeleteParams, LinkDeleteOptions) {
597
610
  return await super.sendRequest(
598
611
  {
@@ -1043,6 +1056,17 @@ var PropertiesService = class extends Service {
1043
1056
  PropertyAcceptLatestAgreementOptions
1044
1057
  );
1045
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
+ }
1046
1070
  };
1047
1071
 
1048
1072
  // src/points/points.service.ts
@@ -1953,6 +1977,22 @@ var PayoutsService = class extends Service {
1953
1977
  constructor(config) {
1954
1978
  super(config);
1955
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
+ }
1956
1996
  async retrieve(PayoutRetrieveParams, PayoutRetrieveOptions) {
1957
1997
  const queryArray = [];
1958
1998
  if (PayoutRetrieveOptions?.expand !== void 0) {
@@ -2074,6 +2114,21 @@ var SimsService = class extends Service {
2074
2114
  SimListOptions
2075
2115
  );
2076
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
+ }
2077
2132
  async updateFromProvider(SimUpdateFromProviderParams, SimUpdateFromProviderOptions) {
2078
2133
  return await super.sendRequest(
2079
2134
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.191",
3
+ "version": "1.2.193",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",