@juhuu/sdk-ts 1.2.129 → 1.2.130
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 +12 -15
- package/dist/index.d.ts +12 -15
- package/dist/index.js +14 -4
- package/dist/index.mjs +14 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -13,11 +13,6 @@ type ExtractType<T> = T extends {
|
|
13
13
|
type UserGroup = "retailer" | "engineer" | "operator" | "user";
|
14
14
|
type Frontend = "dashboard" | "app";
|
15
15
|
type Capability = {
|
16
|
-
type: "customerAgreementSigned";
|
17
|
-
grantedAt: Date;
|
18
|
-
contractSignedByUserId: string;
|
19
|
-
contract: string;
|
20
|
-
} | {
|
21
16
|
type: "predictiveMaintenance";
|
22
17
|
stripePriceId: string | null;
|
23
18
|
grantedAt: Date;
|
@@ -27,11 +22,6 @@ type Capability = {
|
|
27
22
|
stripePriceId: string | null;
|
28
23
|
grantedAt: Date;
|
29
24
|
requestedByUserId: string;
|
30
|
-
} | {
|
31
|
-
type: "aiConvenience";
|
32
|
-
stripePriceId: string | null;
|
33
|
-
grantedAt: Date;
|
34
|
-
requestedByUserId: string;
|
35
25
|
};
|
36
26
|
interface Offer {
|
37
27
|
tariffId: string;
|
@@ -639,7 +629,8 @@ declare class PropertiesService extends Service {
|
|
639
629
|
retrieveStripeConnectPortalUrl(PropertyRetrieveStripeConnectPortalUrlParams: JUHUU.Property.RetrieveStripeConnectPortalUrl.Params, PropertyRetrieveStripeConnectPortalUrlOptions?: JUHUU.Property.RetrieveStripeConnectPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeConnectPortalUrl.Response>>;
|
640
630
|
retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Params, PropertyRetrieveStripeCustomerPortalUrlOptions?: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeCustomerPortalUrl.Response>>;
|
641
631
|
retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Params, PropertyRetrieveStripeSubscriptionStartUrlOptions?: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Response>>;
|
642
|
-
enableCapability(PropertyEnableCapabilityParams: JUHUU.Property.EnableCapability.Params,
|
632
|
+
enableCapability(PropertyEnableCapabilityParams: JUHUU.Property.EnableCapability.Params, PropertyEnableCapabilityOptions?: JUHUU.Property.EnableCapability.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.EnableCapability.Response>>;
|
633
|
+
acceptLatestAgreement(PropertyAcceptLatestAgreementParams: JUHUU.Property.AcceptLatestAgreement.Params, PropertyAcceptLatestAgreementOptions?: JUHUU.Property.AcceptLatestAgreement.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.AcceptLatestAgreement.Response>>;
|
643
634
|
}
|
644
635
|
|
645
636
|
declare class PointsService extends Service {
|
@@ -1969,6 +1960,7 @@ declare namespace JUHUU {
|
|
1969
1960
|
stripeSubscriptionId: string | null;
|
1970
1961
|
subscriptionStatus: "manual" | "inactive" | "waitingForActivationConfirmation" | "active" | "waitingForExpiry";
|
1971
1962
|
capabilityArray: Capability[];
|
1963
|
+
agreement: string | null;
|
1972
1964
|
}
|
1973
1965
|
export interface External extends Base {
|
1974
1966
|
type: "external";
|
@@ -2033,10 +2025,15 @@ declare namespace JUHUU {
|
|
2033
2025
|
propertyId: string;
|
2034
2026
|
capabilityType: Capability["type"];
|
2035
2027
|
acceptTermsThatApplyToThatCapability: boolean;
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2028
|
+
};
|
2029
|
+
type Options = JUHUU.RequestOptions;
|
2030
|
+
type Response = {
|
2031
|
+
property: JUHUU.Property.Object;
|
2032
|
+
};
|
2033
|
+
}
|
2034
|
+
export namespace AcceptLatestAgreement {
|
2035
|
+
type Params = {
|
2036
|
+
propertyId: string;
|
2040
2037
|
};
|
2041
2038
|
type Options = JUHUU.RequestOptions;
|
2042
2039
|
type Response = {
|
package/dist/index.d.ts
CHANGED
@@ -13,11 +13,6 @@ type ExtractType<T> = T extends {
|
|
13
13
|
type UserGroup = "retailer" | "engineer" | "operator" | "user";
|
14
14
|
type Frontend = "dashboard" | "app";
|
15
15
|
type Capability = {
|
16
|
-
type: "customerAgreementSigned";
|
17
|
-
grantedAt: Date;
|
18
|
-
contractSignedByUserId: string;
|
19
|
-
contract: string;
|
20
|
-
} | {
|
21
16
|
type: "predictiveMaintenance";
|
22
17
|
stripePriceId: string | null;
|
23
18
|
grantedAt: Date;
|
@@ -27,11 +22,6 @@ type Capability = {
|
|
27
22
|
stripePriceId: string | null;
|
28
23
|
grantedAt: Date;
|
29
24
|
requestedByUserId: string;
|
30
|
-
} | {
|
31
|
-
type: "aiConvenience";
|
32
|
-
stripePriceId: string | null;
|
33
|
-
grantedAt: Date;
|
34
|
-
requestedByUserId: string;
|
35
25
|
};
|
36
26
|
interface Offer {
|
37
27
|
tariffId: string;
|
@@ -639,7 +629,8 @@ declare class PropertiesService extends Service {
|
|
639
629
|
retrieveStripeConnectPortalUrl(PropertyRetrieveStripeConnectPortalUrlParams: JUHUU.Property.RetrieveStripeConnectPortalUrl.Params, PropertyRetrieveStripeConnectPortalUrlOptions?: JUHUU.Property.RetrieveStripeConnectPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeConnectPortalUrl.Response>>;
|
640
630
|
retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Params, PropertyRetrieveStripeCustomerPortalUrlOptions?: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeCustomerPortalUrl.Response>>;
|
641
631
|
retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Params, PropertyRetrieveStripeSubscriptionStartUrlOptions?: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Response>>;
|
642
|
-
enableCapability(PropertyEnableCapabilityParams: JUHUU.Property.EnableCapability.Params,
|
632
|
+
enableCapability(PropertyEnableCapabilityParams: JUHUU.Property.EnableCapability.Params, PropertyEnableCapabilityOptions?: JUHUU.Property.EnableCapability.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.EnableCapability.Response>>;
|
633
|
+
acceptLatestAgreement(PropertyAcceptLatestAgreementParams: JUHUU.Property.AcceptLatestAgreement.Params, PropertyAcceptLatestAgreementOptions?: JUHUU.Property.AcceptLatestAgreement.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.AcceptLatestAgreement.Response>>;
|
643
634
|
}
|
644
635
|
|
645
636
|
declare class PointsService extends Service {
|
@@ -1969,6 +1960,7 @@ declare namespace JUHUU {
|
|
1969
1960
|
stripeSubscriptionId: string | null;
|
1970
1961
|
subscriptionStatus: "manual" | "inactive" | "waitingForActivationConfirmation" | "active" | "waitingForExpiry";
|
1971
1962
|
capabilityArray: Capability[];
|
1963
|
+
agreement: string | null;
|
1972
1964
|
}
|
1973
1965
|
export interface External extends Base {
|
1974
1966
|
type: "external";
|
@@ -2033,10 +2025,15 @@ declare namespace JUHUU {
|
|
2033
2025
|
propertyId: string;
|
2034
2026
|
capabilityType: Capability["type"];
|
2035
2027
|
acceptTermsThatApplyToThatCapability: boolean;
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2028
|
+
};
|
2029
|
+
type Options = JUHUU.RequestOptions;
|
2030
|
+
type Response = {
|
2031
|
+
property: JUHUU.Property.Object;
|
2032
|
+
};
|
2033
|
+
}
|
2034
|
+
export namespace AcceptLatestAgreement {
|
2035
|
+
type Params = {
|
2036
|
+
propertyId: string;
|
2040
2037
|
};
|
2041
2038
|
type Options = JUHUU.RequestOptions;
|
2042
2039
|
type Response = {
|
package/dist/index.js
CHANGED
@@ -921,19 +921,29 @@ var PropertiesService = class extends Service {
|
|
921
921
|
PropertyRetrieveStripeSubscriptionStartUrlOptions
|
922
922
|
);
|
923
923
|
}
|
924
|
-
async enableCapability(PropertyEnableCapabilityParams,
|
924
|
+
async enableCapability(PropertyEnableCapabilityParams, PropertyEnableCapabilityOptions) {
|
925
925
|
return await super.sendRequest(
|
926
926
|
{
|
927
927
|
method: "PATCH",
|
928
928
|
url: "properties/" + PropertyEnableCapabilityParams.propertyId + "/enableCapability",
|
929
929
|
body: {
|
930
930
|
capabilityType: PropertyEnableCapabilityParams.capabilityType,
|
931
|
-
acceptTermsThatApplyToThatCapability: PropertyEnableCapabilityParams.acceptTermsThatApplyToThatCapability
|
932
|
-
contract: PropertyEnableCapabilityParams.contract
|
931
|
+
acceptTermsThatApplyToThatCapability: PropertyEnableCapabilityParams.acceptTermsThatApplyToThatCapability
|
933
932
|
},
|
934
933
|
authenticationNotOptional: true
|
935
934
|
},
|
936
|
-
|
935
|
+
PropertyEnableCapabilityOptions
|
936
|
+
);
|
937
|
+
}
|
938
|
+
async acceptLatestAgreement(PropertyAcceptLatestAgreementParams, PropertyAcceptLatestAgreementOptions) {
|
939
|
+
return await super.sendRequest(
|
940
|
+
{
|
941
|
+
method: "PATCH",
|
942
|
+
url: "properties/" + PropertyAcceptLatestAgreementParams.propertyId + "/acceptLatestAgreement",
|
943
|
+
body: {},
|
944
|
+
authenticationNotOptional: true
|
945
|
+
},
|
946
|
+
PropertyAcceptLatestAgreementOptions
|
937
947
|
);
|
938
948
|
}
|
939
949
|
};
|
package/dist/index.mjs
CHANGED
@@ -877,19 +877,29 @@ var PropertiesService = class extends Service {
|
|
877
877
|
PropertyRetrieveStripeSubscriptionStartUrlOptions
|
878
878
|
);
|
879
879
|
}
|
880
|
-
async enableCapability(PropertyEnableCapabilityParams,
|
880
|
+
async enableCapability(PropertyEnableCapabilityParams, PropertyEnableCapabilityOptions) {
|
881
881
|
return await super.sendRequest(
|
882
882
|
{
|
883
883
|
method: "PATCH",
|
884
884
|
url: "properties/" + PropertyEnableCapabilityParams.propertyId + "/enableCapability",
|
885
885
|
body: {
|
886
886
|
capabilityType: PropertyEnableCapabilityParams.capabilityType,
|
887
|
-
acceptTermsThatApplyToThatCapability: PropertyEnableCapabilityParams.acceptTermsThatApplyToThatCapability
|
888
|
-
contract: PropertyEnableCapabilityParams.contract
|
887
|
+
acceptTermsThatApplyToThatCapability: PropertyEnableCapabilityParams.acceptTermsThatApplyToThatCapability
|
889
888
|
},
|
890
889
|
authenticationNotOptional: true
|
891
890
|
},
|
892
|
-
|
891
|
+
PropertyEnableCapabilityOptions
|
892
|
+
);
|
893
|
+
}
|
894
|
+
async acceptLatestAgreement(PropertyAcceptLatestAgreementParams, PropertyAcceptLatestAgreementOptions) {
|
895
|
+
return await super.sendRequest(
|
896
|
+
{
|
897
|
+
method: "PATCH",
|
898
|
+
url: "properties/" + PropertyAcceptLatestAgreementParams.propertyId + "/acceptLatestAgreement",
|
899
|
+
body: {},
|
900
|
+
authenticationNotOptional: true
|
901
|
+
},
|
902
|
+
PropertyAcceptLatestAgreementOptions
|
893
903
|
);
|
894
904
|
}
|
895
905
|
};
|