@juhuu/sdk-ts 1.2.126 → 1.2.128

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
@@ -12,6 +12,27 @@ type ExtractType<T> = T extends {
12
12
  } ? U : never;
13
13
  type UserGroup = "retailer" | "engineer" | "operator" | "user";
14
14
  type Frontend = "dashboard" | "app";
15
+ type Capability = {
16
+ type: "customerAgreementSigned";
17
+ grantedAt: Date;
18
+ contractSignedByUserId: string;
19
+ contract: string;
20
+ } | {
21
+ type: "predictiveMaintenance";
22
+ stripePriceId: string | null;
23
+ grantedAt: Date;
24
+ requestedByUserId: string;
25
+ } | {
26
+ type: "userSupport";
27
+ stripePriceId: string | null;
28
+ grantedAt: Date;
29
+ requestedByUserId: string;
30
+ } | {
31
+ type: "aiConvenience";
32
+ stripePriceId: string | null;
33
+ grantedAt: Date;
34
+ requestedByUserId: string;
35
+ };
15
36
  interface Offer {
16
37
  tariffId: string;
17
38
  licenseTemplateIdArray?: string[];
@@ -618,6 +639,7 @@ declare class PropertiesService extends Service {
618
639
  retrieveStripeConnectPortalUrl(PropertyRetrieveStripeConnectPortalUrlParams: JUHUU.Property.RetrieveStripeConnectPortalUrl.Params, PropertyRetrieveStripeConnectPortalUrlOptions?: JUHUU.Property.RetrieveStripeConnectPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeConnectPortalUrl.Response>>;
619
640
  retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Params, PropertyRetrieveStripeCustomerPortalUrlOptions?: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeCustomerPortalUrl.Response>>;
620
641
  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, PropertyUpdateOptions?: JUHUU.Property.EnableCapability.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.EnableCapability.Response>>;
621
643
  }
622
644
 
623
645
  declare class PointsService extends Service {
@@ -2005,6 +2027,21 @@ declare namespace JUHUU {
2005
2027
  url: string;
2006
2028
  };
2007
2029
  }
2030
+ export namespace EnableCapability {
2031
+ type Params = {
2032
+ propertyId: string;
2033
+ capabilityType: Capability["type"];
2034
+ acceptTermsThatApplyToThatCapability: boolean;
2035
+ /**
2036
+ * Used for customerAgreementSigned capability type
2037
+ */
2038
+ contract?: string;
2039
+ };
2040
+ type Options = JUHUU.RequestOptions;
2041
+ type Response = {
2042
+ property: JUHUU.Property.Object;
2043
+ };
2044
+ }
2008
2045
  export namespace Update {
2009
2046
  type Params = {
2010
2047
  propertyId: string;
@@ -2036,6 +2073,7 @@ declare namespace JUHUU {
2036
2073
  primaryColor: string;
2037
2074
  backgroundColor: string;
2038
2075
  name: string;
2076
+ eligibleToCreateOnBehalfOfBusiness: boolean;
2039
2077
  };
2040
2078
  type Options = JUHUU.RequestOptions;
2041
2079
  type Response = {
@@ -3013,4 +3051,4 @@ declare namespace JUHUU {
3013
3051
  }
3014
3052
  }
3015
3053
 
3016
- export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
3054
+ export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
package/dist/index.d.ts CHANGED
@@ -12,6 +12,27 @@ type ExtractType<T> = T extends {
12
12
  } ? U : never;
13
13
  type UserGroup = "retailer" | "engineer" | "operator" | "user";
14
14
  type Frontend = "dashboard" | "app";
15
+ type Capability = {
16
+ type: "customerAgreementSigned";
17
+ grantedAt: Date;
18
+ contractSignedByUserId: string;
19
+ contract: string;
20
+ } | {
21
+ type: "predictiveMaintenance";
22
+ stripePriceId: string | null;
23
+ grantedAt: Date;
24
+ requestedByUserId: string;
25
+ } | {
26
+ type: "userSupport";
27
+ stripePriceId: string | null;
28
+ grantedAt: Date;
29
+ requestedByUserId: string;
30
+ } | {
31
+ type: "aiConvenience";
32
+ stripePriceId: string | null;
33
+ grantedAt: Date;
34
+ requestedByUserId: string;
35
+ };
15
36
  interface Offer {
16
37
  tariffId: string;
17
38
  licenseTemplateIdArray?: string[];
@@ -618,6 +639,7 @@ declare class PropertiesService extends Service {
618
639
  retrieveStripeConnectPortalUrl(PropertyRetrieveStripeConnectPortalUrlParams: JUHUU.Property.RetrieveStripeConnectPortalUrl.Params, PropertyRetrieveStripeConnectPortalUrlOptions?: JUHUU.Property.RetrieveStripeConnectPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeConnectPortalUrl.Response>>;
619
640
  retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Params, PropertyRetrieveStripeCustomerPortalUrlOptions?: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeCustomerPortalUrl.Response>>;
620
641
  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, PropertyUpdateOptions?: JUHUU.Property.EnableCapability.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.EnableCapability.Response>>;
621
643
  }
622
644
 
623
645
  declare class PointsService extends Service {
@@ -2005,6 +2027,21 @@ declare namespace JUHUU {
2005
2027
  url: string;
2006
2028
  };
2007
2029
  }
2030
+ export namespace EnableCapability {
2031
+ type Params = {
2032
+ propertyId: string;
2033
+ capabilityType: Capability["type"];
2034
+ acceptTermsThatApplyToThatCapability: boolean;
2035
+ /**
2036
+ * Used for customerAgreementSigned capability type
2037
+ */
2038
+ contract?: string;
2039
+ };
2040
+ type Options = JUHUU.RequestOptions;
2041
+ type Response = {
2042
+ property: JUHUU.Property.Object;
2043
+ };
2044
+ }
2008
2045
  export namespace Update {
2009
2046
  type Params = {
2010
2047
  propertyId: string;
@@ -2036,6 +2073,7 @@ declare namespace JUHUU {
2036
2073
  primaryColor: string;
2037
2074
  backgroundColor: string;
2038
2075
  name: string;
2076
+ eligibleToCreateOnBehalfOfBusiness: boolean;
2039
2077
  };
2040
2078
  type Options = JUHUU.RequestOptions;
2041
2079
  type Response = {
@@ -3013,4 +3051,4 @@ declare namespace JUHUU {
3013
3051
  }
3014
3052
  }
3015
3053
 
3016
- export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
3054
+ export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
package/dist/index.js CHANGED
@@ -809,16 +809,19 @@ var PropertiesService = class extends Service {
809
809
  }
810
810
  async create(PropertyCreateParams, PropertyCreateOptions) {
811
811
  const queryArray = [];
812
- return await super.sendRequest({
813
- method: "POST",
814
- url: "properties",
815
- body: {
816
- userId: PropertyCreateParams.userId,
817
- name: PropertyCreateParams.name,
818
- type: PropertyCreateParams.type
812
+ return await super.sendRequest(
813
+ {
814
+ method: "POST",
815
+ url: "properties",
816
+ body: {
817
+ userId: PropertyCreateParams.userId,
818
+ name: PropertyCreateParams.name,
819
+ type: PropertyCreateParams.type
820
+ },
821
+ authenticationNotOptional: true
819
822
  },
820
- authenticationNotOptional: true
821
- });
823
+ PropertyCreateOptions
824
+ );
822
825
  }
823
826
  async retrieve(PropertyRetrieveParams, PropertyRetrieveOptions) {
824
827
  const queryArray = [];
@@ -918,6 +921,21 @@ var PropertiesService = class extends Service {
918
921
  PropertyRetrieveStripeSubscriptionStartUrlOptions
919
922
  );
920
923
  }
924
+ async enableCapability(PropertyEnableCapabilityParams, PropertyUpdateOptions) {
925
+ return await super.sendRequest(
926
+ {
927
+ method: "PATCH",
928
+ url: "properties/" + PropertyEnableCapabilityParams.propertyId + "/enableCapability",
929
+ body: {
930
+ capabilityType: PropertyEnableCapabilityParams.capabilityType,
931
+ acceptTermsThatApplyToThatCapability: PropertyEnableCapabilityParams.acceptTermsThatApplyToThatCapability,
932
+ contract: PropertyEnableCapabilityParams.contract
933
+ },
934
+ authenticationNotOptional: true
935
+ },
936
+ PropertyUpdateOptions
937
+ );
938
+ }
921
939
  };
922
940
 
923
941
  // src/points/points.service.ts
package/dist/index.mjs CHANGED
@@ -765,16 +765,19 @@ var PropertiesService = class extends Service {
765
765
  }
766
766
  async create(PropertyCreateParams, PropertyCreateOptions) {
767
767
  const queryArray = [];
768
- return await super.sendRequest({
769
- method: "POST",
770
- url: "properties",
771
- body: {
772
- userId: PropertyCreateParams.userId,
773
- name: PropertyCreateParams.name,
774
- type: PropertyCreateParams.type
768
+ return await super.sendRequest(
769
+ {
770
+ method: "POST",
771
+ url: "properties",
772
+ body: {
773
+ userId: PropertyCreateParams.userId,
774
+ name: PropertyCreateParams.name,
775
+ type: PropertyCreateParams.type
776
+ },
777
+ authenticationNotOptional: true
775
778
  },
776
- authenticationNotOptional: true
777
- });
779
+ PropertyCreateOptions
780
+ );
778
781
  }
779
782
  async retrieve(PropertyRetrieveParams, PropertyRetrieveOptions) {
780
783
  const queryArray = [];
@@ -874,6 +877,21 @@ var PropertiesService = class extends Service {
874
877
  PropertyRetrieveStripeSubscriptionStartUrlOptions
875
878
  );
876
879
  }
880
+ async enableCapability(PropertyEnableCapabilityParams, PropertyUpdateOptions) {
881
+ return await super.sendRequest(
882
+ {
883
+ method: "PATCH",
884
+ url: "properties/" + PropertyEnableCapabilityParams.propertyId + "/enableCapability",
885
+ body: {
886
+ capabilityType: PropertyEnableCapabilityParams.capabilityType,
887
+ acceptTermsThatApplyToThatCapability: PropertyEnableCapabilityParams.acceptTermsThatApplyToThatCapability,
888
+ contract: PropertyEnableCapabilityParams.contract
889
+ },
890
+ authenticationNotOptional: true
891
+ },
892
+ PropertyUpdateOptions
893
+ );
894
+ }
877
895
  };
878
896
 
879
897
  // src/points/points.service.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.126",
3
+ "version": "1.2.128",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",