@juhuu/sdk-ts 1.1.2 → 1.1.4

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
@@ -583,6 +583,7 @@ declare class PropertiesService extends Service {
583
583
  retrieve(PropertyRetrieveParams: JUHUU.Property.Retrieve.Params, PropertyRetrieveOptions?: JUHUU.Property.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Retrieve.Response>>;
584
584
  list(PropertyListParams: JUHUU.Property.List.Params, PropertyListOptions?: JUHUU.Property.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.List.Response>>;
585
585
  update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
586
+ stripeAccountUrl(PropertyStripeAccountUrlParams: JUHUU.Property.StripeAccountUrl.Params, PropertyStripeAccountUrlOptions?: JUHUU.Property.StripeAccountUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.StripeAccountUrl.Response>>;
586
587
  delete(): Promise<void>;
587
588
  terminate(): Promise<void>;
588
589
  }
@@ -590,6 +591,7 @@ declare class PropertiesService extends Service {
590
591
  declare class PointsService extends Service {
591
592
  constructor(config: JUHUU.SetupConfig);
592
593
  map(PointListParams: JUHUU.Point.Map.Params, PointListOptions?: JUHUU.Point.Map.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.Map.Response>>;
594
+ list(PointListParams: JUHUU.Point.List.Params, PointListOptions?: JUHUU.Point.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.List.Response>>;
593
595
  private toRadians;
594
596
  calculateDistance(lat1: number, lon1: number, lat2: number, lon2: number): number;
595
597
  calculateAltitudeForTopDownView(topLeftLat: number, topLeftLon: number, bottomRightLat: number, bottomRightLon: number): number;
@@ -1132,6 +1134,15 @@ declare namespace JUHUU {
1132
1134
  type Options = JUHUU.RequestOptions;
1133
1135
  type Response = JUHUU.Property.Object[];
1134
1136
  }
1137
+ export namespace StripeAccountUrl {
1138
+ type Params = {
1139
+ propertyId: string;
1140
+ };
1141
+ type Options = JUHUU.RequestOptions;
1142
+ type Response = {
1143
+ url: string;
1144
+ };
1145
+ }
1135
1146
  export namespace Update {
1136
1147
  type Params = {
1137
1148
  propertyId: string;
@@ -1142,7 +1153,7 @@ declare namespace JUHUU {
1142
1153
  website?: string;
1143
1154
  phone?: string;
1144
1155
  faqUrl?: string;
1145
- colorScheme?: ColorScheme;
1156
+ colorScheme?: Partial<ColorScheme>;
1146
1157
  contactUrl?: string;
1147
1158
  };
1148
1159
  type Options = JUHUU.RequestOptions;
@@ -1188,6 +1199,13 @@ declare namespace JUHUU {
1188
1199
  type Options = JUHUU.RequestOptions;
1189
1200
  type Response = JUHUU.Point.Object[];
1190
1201
  }
1202
+ export namespace List {
1203
+ type Params = {
1204
+ propertyId?: string;
1205
+ };
1206
+ type Options = JUHUU.RequestOptions;
1207
+ type Response = JUHUU.Location.Object[];
1208
+ }
1191
1209
  export { };
1192
1210
  }
1193
1211
  namespace Payout {
@@ -1365,6 +1383,7 @@ declare namespace JUHUU {
1365
1383
  export namespace List {
1366
1384
  type Params = {
1367
1385
  rentableDeviceGroupLocationId?: string;
1386
+ propertyId?: string;
1368
1387
  };
1369
1388
  type Options = JUHUU.RequestOptions;
1370
1389
  type Response = JUHUU.Location.Object[];
package/dist/index.d.ts CHANGED
@@ -583,6 +583,7 @@ declare class PropertiesService extends Service {
583
583
  retrieve(PropertyRetrieveParams: JUHUU.Property.Retrieve.Params, PropertyRetrieveOptions?: JUHUU.Property.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Retrieve.Response>>;
584
584
  list(PropertyListParams: JUHUU.Property.List.Params, PropertyListOptions?: JUHUU.Property.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.List.Response>>;
585
585
  update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
586
+ stripeAccountUrl(PropertyStripeAccountUrlParams: JUHUU.Property.StripeAccountUrl.Params, PropertyStripeAccountUrlOptions?: JUHUU.Property.StripeAccountUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.StripeAccountUrl.Response>>;
586
587
  delete(): Promise<void>;
587
588
  terminate(): Promise<void>;
588
589
  }
@@ -590,6 +591,7 @@ declare class PropertiesService extends Service {
590
591
  declare class PointsService extends Service {
591
592
  constructor(config: JUHUU.SetupConfig);
592
593
  map(PointListParams: JUHUU.Point.Map.Params, PointListOptions?: JUHUU.Point.Map.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.Map.Response>>;
594
+ list(PointListParams: JUHUU.Point.List.Params, PointListOptions?: JUHUU.Point.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.List.Response>>;
593
595
  private toRadians;
594
596
  calculateDistance(lat1: number, lon1: number, lat2: number, lon2: number): number;
595
597
  calculateAltitudeForTopDownView(topLeftLat: number, topLeftLon: number, bottomRightLat: number, bottomRightLon: number): number;
@@ -1132,6 +1134,15 @@ declare namespace JUHUU {
1132
1134
  type Options = JUHUU.RequestOptions;
1133
1135
  type Response = JUHUU.Property.Object[];
1134
1136
  }
1137
+ export namespace StripeAccountUrl {
1138
+ type Params = {
1139
+ propertyId: string;
1140
+ };
1141
+ type Options = JUHUU.RequestOptions;
1142
+ type Response = {
1143
+ url: string;
1144
+ };
1145
+ }
1135
1146
  export namespace Update {
1136
1147
  type Params = {
1137
1148
  propertyId: string;
@@ -1142,7 +1153,7 @@ declare namespace JUHUU {
1142
1153
  website?: string;
1143
1154
  phone?: string;
1144
1155
  faqUrl?: string;
1145
- colorScheme?: ColorScheme;
1156
+ colorScheme?: Partial<ColorScheme>;
1146
1157
  contactUrl?: string;
1147
1158
  };
1148
1159
  type Options = JUHUU.RequestOptions;
@@ -1188,6 +1199,13 @@ declare namespace JUHUU {
1188
1199
  type Options = JUHUU.RequestOptions;
1189
1200
  type Response = JUHUU.Point.Object[];
1190
1201
  }
1202
+ export namespace List {
1203
+ type Params = {
1204
+ propertyId?: string;
1205
+ };
1206
+ type Options = JUHUU.RequestOptions;
1207
+ type Response = JUHUU.Location.Object[];
1208
+ }
1191
1209
  export { };
1192
1210
  }
1193
1211
  namespace Payout {
@@ -1365,6 +1383,7 @@ declare namespace JUHUU {
1365
1383
  export namespace List {
1366
1384
  type Params = {
1367
1385
  rentableDeviceGroupLocationId?: string;
1386
+ propertyId?: string;
1368
1387
  };
1369
1388
  type Options = JUHUU.RequestOptions;
1370
1389
  type Response = JUHUU.Location.Object[];
package/dist/index.js CHANGED
@@ -688,6 +688,17 @@ var PropertiesService = class extends Service {
688
688
  PropertyUpdateOptions
689
689
  );
690
690
  }
691
+ async stripeAccountUrl(PropertyStripeAccountUrlParams, PropertyStripeAccountUrlOptions) {
692
+ return await super.sendRequest(
693
+ {
694
+ method: "GET",
695
+ url: "properties/" + PropertyStripeAccountUrlParams.propertyId + "/stripeAccountUrl",
696
+ body: void 0,
697
+ useAuthentication: true
698
+ },
699
+ PropertyStripeAccountUrlOptions
700
+ );
701
+ }
691
702
  async delete() {
692
703
  }
693
704
  async terminate() {
@@ -719,6 +730,21 @@ var PointsService = class extends Service {
719
730
  PointListOptions
720
731
  );
721
732
  }
733
+ async list(PointListParams, PointListOptions) {
734
+ const queryArray = [];
735
+ if (PointListParams?.propertyId !== void 0) {
736
+ queryArray.push("propertyId=" + PointListParams.propertyId);
737
+ }
738
+ return await super.sendRequest(
739
+ {
740
+ method: "GET",
741
+ url: "points?" + queryArray.join("&"),
742
+ body: void 0,
743
+ useAuthentication: false
744
+ },
745
+ PointListOptions
746
+ );
747
+ }
722
748
  toRadians(degrees) {
723
749
  return degrees * Math.PI / 180;
724
750
  }
@@ -922,6 +948,9 @@ var LocationsService = class extends Service {
922
948
  "rentableDeviceGroupLocationId=" + LocationListParams.rentableDeviceGroupLocationId
923
949
  );
924
950
  }
951
+ if (LocationListParams?.propertyId !== void 0) {
952
+ queryArray.push("propertyId=" + LocationListParams.propertyId);
953
+ }
925
954
  return await super.sendRequest(
926
955
  {
927
956
  method: "GET",
package/dist/index.mjs CHANGED
@@ -643,6 +643,17 @@ var PropertiesService = class extends Service {
643
643
  PropertyUpdateOptions
644
644
  );
645
645
  }
646
+ async stripeAccountUrl(PropertyStripeAccountUrlParams, PropertyStripeAccountUrlOptions) {
647
+ return await super.sendRequest(
648
+ {
649
+ method: "GET",
650
+ url: "properties/" + PropertyStripeAccountUrlParams.propertyId + "/stripeAccountUrl",
651
+ body: void 0,
652
+ useAuthentication: true
653
+ },
654
+ PropertyStripeAccountUrlOptions
655
+ );
656
+ }
646
657
  async delete() {
647
658
  }
648
659
  async terminate() {
@@ -674,6 +685,21 @@ var PointsService = class extends Service {
674
685
  PointListOptions
675
686
  );
676
687
  }
688
+ async list(PointListParams, PointListOptions) {
689
+ const queryArray = [];
690
+ if (PointListParams?.propertyId !== void 0) {
691
+ queryArray.push("propertyId=" + PointListParams.propertyId);
692
+ }
693
+ return await super.sendRequest(
694
+ {
695
+ method: "GET",
696
+ url: "points?" + queryArray.join("&"),
697
+ body: void 0,
698
+ useAuthentication: false
699
+ },
700
+ PointListOptions
701
+ );
702
+ }
677
703
  toRadians(degrees) {
678
704
  return degrees * Math.PI / 180;
679
705
  }
@@ -877,6 +903,9 @@ var LocationsService = class extends Service {
877
903
  "rentableDeviceGroupLocationId=" + LocationListParams.rentableDeviceGroupLocationId
878
904
  );
879
905
  }
906
+ if (LocationListParams?.propertyId !== void 0) {
907
+ queryArray.push("propertyId=" + LocationListParams.propertyId);
908
+ }
880
909
  return await super.sendRequest(
881
910
  {
882
911
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.1.002",
3
+ "version": "1.1.004",
4
4
  "description": "Typescript wrapper for juhuu services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",