@juhuu/sdk-ts 1.2.83 → 1.2.85
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 +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +7 -3
- package/dist/index.mjs +7 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -1871,7 +1871,9 @@ declare namespace JUHUU {
|
|
1871
1871
|
};
|
1872
1872
|
}
|
1873
1873
|
export namespace List {
|
1874
|
-
type Params = {
|
1874
|
+
type Params = {
|
1875
|
+
userId?: string;
|
1876
|
+
};
|
1875
1877
|
type Options = JUHUU.RequestOptions;
|
1876
1878
|
type Response = JUHUU.Property.Object[];
|
1877
1879
|
}
|
@@ -1904,10 +1906,10 @@ declare namespace JUHUU {
|
|
1904
1906
|
}
|
1905
1907
|
export namespace Onboarding {
|
1906
1908
|
type Params = {
|
1907
|
-
propertyId: string;
|
1908
1909
|
logo: string;
|
1909
|
-
primaryColor
|
1910
|
-
backgroundColor
|
1910
|
+
primaryColor: string;
|
1911
|
+
backgroundColor: string;
|
1912
|
+
name: string;
|
1911
1913
|
};
|
1912
1914
|
type Options = JUHUU.RequestOptions;
|
1913
1915
|
type Response = {
|
package/dist/index.d.ts
CHANGED
@@ -1871,7 +1871,9 @@ declare namespace JUHUU {
|
|
1871
1871
|
};
|
1872
1872
|
}
|
1873
1873
|
export namespace List {
|
1874
|
-
type Params = {
|
1874
|
+
type Params = {
|
1875
|
+
userId?: string;
|
1876
|
+
};
|
1875
1877
|
type Options = JUHUU.RequestOptions;
|
1876
1878
|
type Response = JUHUU.Property.Object[];
|
1877
1879
|
}
|
@@ -1904,10 +1906,10 @@ declare namespace JUHUU {
|
|
1904
1906
|
}
|
1905
1907
|
export namespace Onboarding {
|
1906
1908
|
type Params = {
|
1907
|
-
propertyId: string;
|
1908
1909
|
logo: string;
|
1909
|
-
primaryColor
|
1910
|
-
backgroundColor
|
1910
|
+
primaryColor: string;
|
1911
|
+
backgroundColor: string;
|
1912
|
+
name: string;
|
1911
1913
|
};
|
1912
1914
|
type Options = JUHUU.RequestOptions;
|
1913
1915
|
type Response = {
|
package/dist/index.js
CHANGED
@@ -792,6 +792,9 @@ var PropertiesService = class extends Service {
|
|
792
792
|
}
|
793
793
|
async list(PropertyListParams, PropertyListOptions) {
|
794
794
|
const queryArray = [];
|
795
|
+
if (PropertyListParams.userId !== void 0) {
|
796
|
+
queryArray.push("userId=" + PropertyListParams.userId);
|
797
|
+
}
|
795
798
|
return await super.sendRequest(
|
796
799
|
{
|
797
800
|
method: "GET",
|
@@ -826,12 +829,13 @@ var PropertiesService = class extends Service {
|
|
826
829
|
async onboarding(PropertyOnboardingParams, PropertyOnboardingOptions) {
|
827
830
|
return await super.sendRequest(
|
828
831
|
{
|
829
|
-
method: "
|
830
|
-
url: "properties/
|
832
|
+
method: "POST",
|
833
|
+
url: "properties/onboarding",
|
831
834
|
body: {
|
832
835
|
primaryColor: PropertyOnboardingParams.primaryColor,
|
833
836
|
backgroundColor: PropertyOnboardingParams.backgroundColor,
|
834
|
-
logo: PropertyOnboardingParams.logo
|
837
|
+
logo: PropertyOnboardingParams.logo,
|
838
|
+
name: PropertyOnboardingParams.name
|
835
839
|
},
|
836
840
|
authenticationNotOptional: true
|
837
841
|
},
|
package/dist/index.mjs
CHANGED
@@ -748,6 +748,9 @@ var PropertiesService = class extends Service {
|
|
748
748
|
}
|
749
749
|
async list(PropertyListParams, PropertyListOptions) {
|
750
750
|
const queryArray = [];
|
751
|
+
if (PropertyListParams.userId !== void 0) {
|
752
|
+
queryArray.push("userId=" + PropertyListParams.userId);
|
753
|
+
}
|
751
754
|
return await super.sendRequest(
|
752
755
|
{
|
753
756
|
method: "GET",
|
@@ -782,12 +785,13 @@ var PropertiesService = class extends Service {
|
|
782
785
|
async onboarding(PropertyOnboardingParams, PropertyOnboardingOptions) {
|
783
786
|
return await super.sendRequest(
|
784
787
|
{
|
785
|
-
method: "
|
786
|
-
url: "properties/
|
788
|
+
method: "POST",
|
789
|
+
url: "properties/onboarding",
|
787
790
|
body: {
|
788
791
|
primaryColor: PropertyOnboardingParams.primaryColor,
|
789
792
|
backgroundColor: PropertyOnboardingParams.backgroundColor,
|
790
|
-
logo: PropertyOnboardingParams.logo
|
793
|
+
logo: PropertyOnboardingParams.logo,
|
794
|
+
name: PropertyOnboardingParams.name
|
791
795
|
},
|
792
796
|
authenticationNotOptional: true
|
793
797
|
},
|