@juhuu/sdk-ts 1.1.1 → 1.1.2

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
@@ -582,7 +582,7 @@ declare class PropertiesService extends Service {
582
582
  create(PropertyCreateParams: JUHUU.Property.Create.Params, PropertyCreateOptions?: JUHUU.Property.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Create.Response>>;
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
- update(): Promise<void>;
585
+ update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
586
586
  delete(): Promise<void>;
587
587
  terminate(): Promise<void>;
588
588
  }
@@ -1132,6 +1132,24 @@ declare namespace JUHUU {
1132
1132
  type Options = JUHUU.RequestOptions;
1133
1133
  type Response = JUHUU.Property.Object[];
1134
1134
  }
1135
+ export namespace Update {
1136
+ type Params = {
1137
+ propertyId: string;
1138
+ name?: string;
1139
+ legalName?: string;
1140
+ billingAddress?: Partial<Address>;
1141
+ email?: string;
1142
+ website?: string;
1143
+ phone?: string;
1144
+ faqUrl?: string;
1145
+ colorScheme?: ColorScheme;
1146
+ contactUrl?: string;
1147
+ };
1148
+ type Options = JUHUU.RequestOptions;
1149
+ type Response = {
1150
+ property: JUHUU.Property.Object;
1151
+ };
1152
+ }
1135
1153
  export { };
1136
1154
  }
1137
1155
  namespace Point {
package/dist/index.d.ts CHANGED
@@ -582,7 +582,7 @@ declare class PropertiesService extends Service {
582
582
  create(PropertyCreateParams: JUHUU.Property.Create.Params, PropertyCreateOptions?: JUHUU.Property.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Create.Response>>;
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
- update(): Promise<void>;
585
+ update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
586
586
  delete(): Promise<void>;
587
587
  terminate(): Promise<void>;
588
588
  }
@@ -1132,6 +1132,24 @@ declare namespace JUHUU {
1132
1132
  type Options = JUHUU.RequestOptions;
1133
1133
  type Response = JUHUU.Property.Object[];
1134
1134
  }
1135
+ export namespace Update {
1136
+ type Params = {
1137
+ propertyId: string;
1138
+ name?: string;
1139
+ legalName?: string;
1140
+ billingAddress?: Partial<Address>;
1141
+ email?: string;
1142
+ website?: string;
1143
+ phone?: string;
1144
+ faqUrl?: string;
1145
+ colorScheme?: ColorScheme;
1146
+ contactUrl?: string;
1147
+ };
1148
+ type Options = JUHUU.RequestOptions;
1149
+ type Response = {
1150
+ property: JUHUU.Property.Object;
1151
+ };
1152
+ }
1135
1153
  export { };
1136
1154
  }
1137
1155
  namespace Point {
package/dist/index.js CHANGED
@@ -667,7 +667,26 @@ var PropertiesService = class extends Service {
667
667
  PropertyListOptions
668
668
  );
669
669
  }
670
- async update() {
670
+ async update(PropertyUpdateParams, PropertyUpdateOptions) {
671
+ return await super.sendRequest(
672
+ {
673
+ method: "PATCH",
674
+ url: "properties/" + PropertyUpdateParams.propertyId,
675
+ body: {
676
+ name: PropertyUpdateParams.name,
677
+ legalName: PropertyUpdateParams.legalName,
678
+ billingAddress: PropertyUpdateParams.billingAddress,
679
+ email: PropertyUpdateParams.email,
680
+ website: PropertyUpdateParams.website,
681
+ phone: PropertyUpdateParams.phone,
682
+ faqUrl: PropertyUpdateParams.faqUrl,
683
+ colorScheme: PropertyUpdateParams.colorScheme,
684
+ contactUrl: PropertyUpdateParams.contactUrl
685
+ },
686
+ useAuthentication: true
687
+ },
688
+ PropertyUpdateOptions
689
+ );
671
690
  }
672
691
  async delete() {
673
692
  }
package/dist/index.mjs CHANGED
@@ -622,7 +622,26 @@ var PropertiesService = class extends Service {
622
622
  PropertyListOptions
623
623
  );
624
624
  }
625
- async update() {
625
+ async update(PropertyUpdateParams, PropertyUpdateOptions) {
626
+ return await super.sendRequest(
627
+ {
628
+ method: "PATCH",
629
+ url: "properties/" + PropertyUpdateParams.propertyId,
630
+ body: {
631
+ name: PropertyUpdateParams.name,
632
+ legalName: PropertyUpdateParams.legalName,
633
+ billingAddress: PropertyUpdateParams.billingAddress,
634
+ email: PropertyUpdateParams.email,
635
+ website: PropertyUpdateParams.website,
636
+ phone: PropertyUpdateParams.phone,
637
+ faqUrl: PropertyUpdateParams.faqUrl,
638
+ colorScheme: PropertyUpdateParams.colorScheme,
639
+ contactUrl: PropertyUpdateParams.contactUrl
640
+ },
641
+ useAuthentication: true
642
+ },
643
+ PropertyUpdateOptions
644
+ );
626
645
  }
627
646
  async delete() {
628
647
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.1.001",
3
+ "version": "1.1.002",
4
4
  "description": "Typescript wrapper for juhuu services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",