@juhuu/sdk-ts 1.2.129 → 1.2.131
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 +92 -16
- package/dist/index.d.ts +92 -16
- package/dist/index.js +96 -4
- package/dist/index.mjs +96 -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 {
|
@@ -836,6 +827,15 @@ declare class PaymentRefundsService extends Service {
|
|
836
827
|
retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Params, PaymentRefundRetrieveInvoiceUrlOptions?: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.RetrieveInvoiceUrl.Response>>;
|
837
828
|
}
|
838
829
|
|
830
|
+
declare class ArticleGroupGroupsService extends Service {
|
831
|
+
constructor(config: JUHUU.SetupConfig);
|
832
|
+
create(ArticleGroupCreateParams: JUHUU.ArticleGroup.Create.Params, ArticleGroupCreateOptions?: JUHUU.ArticleGroup.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Create.Response>>;
|
833
|
+
list(ArticleGroupListParams: JUHUU.ArticleGroup.List.Params, ArticleGroupListOptions?: JUHUU.ArticleGroup.List.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.List.Response>>;
|
834
|
+
retrieve(ArticleGroupRetrieveParams: JUHUU.ArticleGroup.Retrieve.Params, ArticleGroupRetrieveOptions?: JUHUU.ArticleGroup.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Retrieve.Response>>;
|
835
|
+
update(ArticleGroupUpdateParams: JUHUU.ArticleGroup.Update.Params, ArticleGroupUpdateOptions?: JUHUU.ArticleGroup.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Update.Response>>;
|
836
|
+
delete(ArticleGroupDeleteParams: JUHUU.ArticleGroup.Delete.Params, ArticleGroupDeleteOptions?: JUHUU.ArticleGroup.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Delete.Response>>;
|
837
|
+
}
|
838
|
+
|
839
839
|
declare class Juhuu {
|
840
840
|
constructor(config: JUHUU.SetupConfig);
|
841
841
|
/**
|
@@ -867,6 +867,7 @@ declare class Juhuu {
|
|
867
867
|
readonly articleEmbeddings: ArticleEmbeddingsService;
|
868
868
|
readonly boldLock: BoldLockService;
|
869
869
|
readonly tapkey: TapkeyService;
|
870
|
+
readonly articleGroups: ArticleGroupGroupsService;
|
870
871
|
}
|
871
872
|
declare namespace JUHUU {
|
872
873
|
interface SetupConfig {
|
@@ -1496,6 +1497,7 @@ declare namespace JUHUU {
|
|
1496
1497
|
embeddingsGenerated: boolean;
|
1497
1498
|
autoTranslateEnabled: boolean;
|
1498
1499
|
embeddingsGenerationEnabled: boolean;
|
1500
|
+
order: number;
|
1499
1501
|
};
|
1500
1502
|
namespace Create {
|
1501
1503
|
type Params = {
|
@@ -1553,7 +1555,9 @@ declare namespace JUHUU {
|
|
1553
1555
|
articleId?: string;
|
1554
1556
|
};
|
1555
1557
|
type Options = JUHUU.RequestOptions;
|
1556
|
-
type Response =
|
1558
|
+
type Response = {
|
1559
|
+
article: JUHUU.Article.Object;
|
1560
|
+
};
|
1557
1561
|
}
|
1558
1562
|
namespace Search {
|
1559
1563
|
type Params = {
|
@@ -1579,6 +1583,72 @@ declare namespace JUHUU {
|
|
1579
1583
|
};
|
1580
1584
|
}
|
1581
1585
|
}
|
1586
|
+
namespace ArticleGroup {
|
1587
|
+
type Object = {
|
1588
|
+
id: string;
|
1589
|
+
readonly object: "articleGroup";
|
1590
|
+
title: LocaleString;
|
1591
|
+
articleIdArray: string[];
|
1592
|
+
articleGroupIdArray: string[];
|
1593
|
+
createdAt: Date;
|
1594
|
+
propertyId: string | null;
|
1595
|
+
order: number;
|
1596
|
+
};
|
1597
|
+
namespace Create {
|
1598
|
+
type Params = {
|
1599
|
+
propertyId: string;
|
1600
|
+
};
|
1601
|
+
type Options = JUHUU.RequestOptions;
|
1602
|
+
type Response = {
|
1603
|
+
articleGroup: JUHUU.ArticleGroup.Object;
|
1604
|
+
};
|
1605
|
+
}
|
1606
|
+
namespace Retrieve {
|
1607
|
+
type Params = {
|
1608
|
+
articleGroupId: string;
|
1609
|
+
};
|
1610
|
+
type Options = {
|
1611
|
+
expand?: Array<"property">;
|
1612
|
+
} & JUHUU.RequestOptions;
|
1613
|
+
type Response = {
|
1614
|
+
articleGroup: JUHUU.ArticleGroup.Object;
|
1615
|
+
property?: JUHUU.Property.Object;
|
1616
|
+
};
|
1617
|
+
}
|
1618
|
+
namespace List {
|
1619
|
+
type Params = {
|
1620
|
+
propertyId?: string;
|
1621
|
+
};
|
1622
|
+
type Options = {
|
1623
|
+
limit?: number;
|
1624
|
+
skip?: number;
|
1625
|
+
} & JUHUU.RequestOptions;
|
1626
|
+
type Response = {
|
1627
|
+
articleGroupArray: JUHUU.ArticleGroup.Object[];
|
1628
|
+
count: number;
|
1629
|
+
hasMore: boolean;
|
1630
|
+
};
|
1631
|
+
}
|
1632
|
+
namespace Update {
|
1633
|
+
type Params = {
|
1634
|
+
articleId: string;
|
1635
|
+
title?: LocaleString;
|
1636
|
+
};
|
1637
|
+
type Options = JUHUU.RequestOptions;
|
1638
|
+
type Response = {
|
1639
|
+
articleGroup: JUHUU.ArticleGroup.Object;
|
1640
|
+
};
|
1641
|
+
}
|
1642
|
+
namespace Delete {
|
1643
|
+
type Params = {
|
1644
|
+
articleGroupId?: string;
|
1645
|
+
};
|
1646
|
+
type Options = JUHUU.RequestOptions;
|
1647
|
+
type Response = {
|
1648
|
+
articleGroup: JUHUU.ArticleGroup.Object;
|
1649
|
+
};
|
1650
|
+
}
|
1651
|
+
}
|
1582
1652
|
namespace Chat {
|
1583
1653
|
type Object = {
|
1584
1654
|
id: string;
|
@@ -1969,6 +2039,7 @@ declare namespace JUHUU {
|
|
1969
2039
|
stripeSubscriptionId: string | null;
|
1970
2040
|
subscriptionStatus: "manual" | "inactive" | "waitingForActivationConfirmation" | "active" | "waitingForExpiry";
|
1971
2041
|
capabilityArray: Capability[];
|
2042
|
+
agreement: string | null;
|
1972
2043
|
}
|
1973
2044
|
export interface External extends Base {
|
1974
2045
|
type: "external";
|
@@ -2033,10 +2104,15 @@ declare namespace JUHUU {
|
|
2033
2104
|
propertyId: string;
|
2034
2105
|
capabilityType: Capability["type"];
|
2035
2106
|
acceptTermsThatApplyToThatCapability: boolean;
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2107
|
+
};
|
2108
|
+
type Options = JUHUU.RequestOptions;
|
2109
|
+
type Response = {
|
2110
|
+
property: JUHUU.Property.Object;
|
2111
|
+
};
|
2112
|
+
}
|
2113
|
+
export namespace AcceptLatestAgreement {
|
2114
|
+
type Params = {
|
2115
|
+
propertyId: string;
|
2040
2116
|
};
|
2041
2117
|
type Options = JUHUU.RequestOptions;
|
2042
2118
|
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 {
|
@@ -836,6 +827,15 @@ declare class PaymentRefundsService extends Service {
|
|
836
827
|
retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Params, PaymentRefundRetrieveInvoiceUrlOptions?: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.RetrieveInvoiceUrl.Response>>;
|
837
828
|
}
|
838
829
|
|
830
|
+
declare class ArticleGroupGroupsService extends Service {
|
831
|
+
constructor(config: JUHUU.SetupConfig);
|
832
|
+
create(ArticleGroupCreateParams: JUHUU.ArticleGroup.Create.Params, ArticleGroupCreateOptions?: JUHUU.ArticleGroup.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Create.Response>>;
|
833
|
+
list(ArticleGroupListParams: JUHUU.ArticleGroup.List.Params, ArticleGroupListOptions?: JUHUU.ArticleGroup.List.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.List.Response>>;
|
834
|
+
retrieve(ArticleGroupRetrieveParams: JUHUU.ArticleGroup.Retrieve.Params, ArticleGroupRetrieveOptions?: JUHUU.ArticleGroup.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Retrieve.Response>>;
|
835
|
+
update(ArticleGroupUpdateParams: JUHUU.ArticleGroup.Update.Params, ArticleGroupUpdateOptions?: JUHUU.ArticleGroup.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Update.Response>>;
|
836
|
+
delete(ArticleGroupDeleteParams: JUHUU.ArticleGroup.Delete.Params, ArticleGroupDeleteOptions?: JUHUU.ArticleGroup.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Delete.Response>>;
|
837
|
+
}
|
838
|
+
|
839
839
|
declare class Juhuu {
|
840
840
|
constructor(config: JUHUU.SetupConfig);
|
841
841
|
/**
|
@@ -867,6 +867,7 @@ declare class Juhuu {
|
|
867
867
|
readonly articleEmbeddings: ArticleEmbeddingsService;
|
868
868
|
readonly boldLock: BoldLockService;
|
869
869
|
readonly tapkey: TapkeyService;
|
870
|
+
readonly articleGroups: ArticleGroupGroupsService;
|
870
871
|
}
|
871
872
|
declare namespace JUHUU {
|
872
873
|
interface SetupConfig {
|
@@ -1496,6 +1497,7 @@ declare namespace JUHUU {
|
|
1496
1497
|
embeddingsGenerated: boolean;
|
1497
1498
|
autoTranslateEnabled: boolean;
|
1498
1499
|
embeddingsGenerationEnabled: boolean;
|
1500
|
+
order: number;
|
1499
1501
|
};
|
1500
1502
|
namespace Create {
|
1501
1503
|
type Params = {
|
@@ -1553,7 +1555,9 @@ declare namespace JUHUU {
|
|
1553
1555
|
articleId?: string;
|
1554
1556
|
};
|
1555
1557
|
type Options = JUHUU.RequestOptions;
|
1556
|
-
type Response =
|
1558
|
+
type Response = {
|
1559
|
+
article: JUHUU.Article.Object;
|
1560
|
+
};
|
1557
1561
|
}
|
1558
1562
|
namespace Search {
|
1559
1563
|
type Params = {
|
@@ -1579,6 +1583,72 @@ declare namespace JUHUU {
|
|
1579
1583
|
};
|
1580
1584
|
}
|
1581
1585
|
}
|
1586
|
+
namespace ArticleGroup {
|
1587
|
+
type Object = {
|
1588
|
+
id: string;
|
1589
|
+
readonly object: "articleGroup";
|
1590
|
+
title: LocaleString;
|
1591
|
+
articleIdArray: string[];
|
1592
|
+
articleGroupIdArray: string[];
|
1593
|
+
createdAt: Date;
|
1594
|
+
propertyId: string | null;
|
1595
|
+
order: number;
|
1596
|
+
};
|
1597
|
+
namespace Create {
|
1598
|
+
type Params = {
|
1599
|
+
propertyId: string;
|
1600
|
+
};
|
1601
|
+
type Options = JUHUU.RequestOptions;
|
1602
|
+
type Response = {
|
1603
|
+
articleGroup: JUHUU.ArticleGroup.Object;
|
1604
|
+
};
|
1605
|
+
}
|
1606
|
+
namespace Retrieve {
|
1607
|
+
type Params = {
|
1608
|
+
articleGroupId: string;
|
1609
|
+
};
|
1610
|
+
type Options = {
|
1611
|
+
expand?: Array<"property">;
|
1612
|
+
} & JUHUU.RequestOptions;
|
1613
|
+
type Response = {
|
1614
|
+
articleGroup: JUHUU.ArticleGroup.Object;
|
1615
|
+
property?: JUHUU.Property.Object;
|
1616
|
+
};
|
1617
|
+
}
|
1618
|
+
namespace List {
|
1619
|
+
type Params = {
|
1620
|
+
propertyId?: string;
|
1621
|
+
};
|
1622
|
+
type Options = {
|
1623
|
+
limit?: number;
|
1624
|
+
skip?: number;
|
1625
|
+
} & JUHUU.RequestOptions;
|
1626
|
+
type Response = {
|
1627
|
+
articleGroupArray: JUHUU.ArticleGroup.Object[];
|
1628
|
+
count: number;
|
1629
|
+
hasMore: boolean;
|
1630
|
+
};
|
1631
|
+
}
|
1632
|
+
namespace Update {
|
1633
|
+
type Params = {
|
1634
|
+
articleId: string;
|
1635
|
+
title?: LocaleString;
|
1636
|
+
};
|
1637
|
+
type Options = JUHUU.RequestOptions;
|
1638
|
+
type Response = {
|
1639
|
+
articleGroup: JUHUU.ArticleGroup.Object;
|
1640
|
+
};
|
1641
|
+
}
|
1642
|
+
namespace Delete {
|
1643
|
+
type Params = {
|
1644
|
+
articleGroupId?: string;
|
1645
|
+
};
|
1646
|
+
type Options = JUHUU.RequestOptions;
|
1647
|
+
type Response = {
|
1648
|
+
articleGroup: JUHUU.ArticleGroup.Object;
|
1649
|
+
};
|
1650
|
+
}
|
1651
|
+
}
|
1582
1652
|
namespace Chat {
|
1583
1653
|
type Object = {
|
1584
1654
|
id: string;
|
@@ -1969,6 +2039,7 @@ declare namespace JUHUU {
|
|
1969
2039
|
stripeSubscriptionId: string | null;
|
1970
2040
|
subscriptionStatus: "manual" | "inactive" | "waitingForActivationConfirmation" | "active" | "waitingForExpiry";
|
1971
2041
|
capabilityArray: Capability[];
|
2042
|
+
agreement: string | null;
|
1972
2043
|
}
|
1973
2044
|
export interface External extends Base {
|
1974
2045
|
type: "external";
|
@@ -2033,10 +2104,15 @@ declare namespace JUHUU {
|
|
2033
2104
|
propertyId: string;
|
2034
2105
|
capabilityType: Capability["type"];
|
2035
2106
|
acceptTermsThatApplyToThatCapability: boolean;
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2107
|
+
};
|
2108
|
+
type Options = JUHUU.RequestOptions;
|
2109
|
+
type Response = {
|
2110
|
+
property: JUHUU.Property.Object;
|
2111
|
+
};
|
2112
|
+
}
|
2113
|
+
export namespace AcceptLatestAgreement {
|
2114
|
+
type Params = {
|
2115
|
+
propertyId: string;
|
2040
2116
|
};
|
2041
2117
|
type Options = JUHUU.RequestOptions;
|
2042
2118
|
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
|
};
|
@@ -2599,6 +2609,86 @@ var PaymentRefundsService = class extends Service {
|
|
2599
2609
|
}
|
2600
2610
|
};
|
2601
2611
|
|
2612
|
+
// src/articleGroups/articleGroups.service.ts
|
2613
|
+
var ArticleGroupGroupsService = class extends Service {
|
2614
|
+
constructor(config) {
|
2615
|
+
super(config);
|
2616
|
+
}
|
2617
|
+
async create(ArticleGroupCreateParams, ArticleGroupCreateOptions) {
|
2618
|
+
return await super.sendRequest(
|
2619
|
+
{
|
2620
|
+
method: "POST",
|
2621
|
+
url: "articleGroups",
|
2622
|
+
body: {
|
2623
|
+
propertyId: ArticleGroupCreateParams.propertyId
|
2624
|
+
},
|
2625
|
+
authenticationNotOptional: true
|
2626
|
+
},
|
2627
|
+
ArticleGroupCreateOptions
|
2628
|
+
);
|
2629
|
+
}
|
2630
|
+
async list(ArticleGroupListParams, ArticleGroupListOptions) {
|
2631
|
+
const queryArray = [];
|
2632
|
+
if (ArticleGroupListOptions?.limit !== void 0) {
|
2633
|
+
queryArray.push("limit=" + ArticleGroupListOptions.limit);
|
2634
|
+
}
|
2635
|
+
if (ArticleGroupListParams?.propertyId !== void 0) {
|
2636
|
+
queryArray.push("propertyId=" + ArticleGroupListParams.propertyId);
|
2637
|
+
}
|
2638
|
+
if (ArticleGroupListOptions?.skip !== void 0) {
|
2639
|
+
queryArray.push("skip=" + ArticleGroupListOptions.skip);
|
2640
|
+
}
|
2641
|
+
return await super.sendRequest(
|
2642
|
+
{
|
2643
|
+
method: "GET",
|
2644
|
+
url: "articleGroups?" + queryArray.join("&"),
|
2645
|
+
body: void 0,
|
2646
|
+
authenticationNotOptional: false
|
2647
|
+
},
|
2648
|
+
ArticleGroupListOptions
|
2649
|
+
);
|
2650
|
+
}
|
2651
|
+
async retrieve(ArticleGroupRetrieveParams, ArticleGroupRetrieveOptions) {
|
2652
|
+
const queryArray = [];
|
2653
|
+
if (ArticleGroupRetrieveOptions?.expand !== void 0) {
|
2654
|
+
queryArray.push("expand=" + ArticleGroupRetrieveOptions.expand.join(","));
|
2655
|
+
}
|
2656
|
+
return await super.sendRequest(
|
2657
|
+
{
|
2658
|
+
method: "GET",
|
2659
|
+
url: "articleGroups/" + ArticleGroupRetrieveParams.articleGroupId + "?" + queryArray.join("&"),
|
2660
|
+
body: void 0,
|
2661
|
+
authenticationNotOptional: false
|
2662
|
+
},
|
2663
|
+
ArticleGroupRetrieveOptions
|
2664
|
+
);
|
2665
|
+
}
|
2666
|
+
async update(ArticleGroupUpdateParams, ArticleGroupUpdateOptions) {
|
2667
|
+
return await super.sendRequest(
|
2668
|
+
{
|
2669
|
+
method: "PATCH",
|
2670
|
+
url: "articleGroups/" + ArticleGroupUpdateParams.articleId,
|
2671
|
+
body: {
|
2672
|
+
title: ArticleGroupUpdateParams.title
|
2673
|
+
},
|
2674
|
+
authenticationNotOptional: true
|
2675
|
+
},
|
2676
|
+
ArticleGroupUpdateOptions
|
2677
|
+
);
|
2678
|
+
}
|
2679
|
+
async delete(ArticleGroupDeleteParams, ArticleGroupDeleteOptions) {
|
2680
|
+
return await super.sendRequest(
|
2681
|
+
{
|
2682
|
+
method: "DELETE",
|
2683
|
+
url: "articleGroups/" + ArticleGroupDeleteParams.articleGroupId,
|
2684
|
+
authenticationNotOptional: true,
|
2685
|
+
body: void 0
|
2686
|
+
},
|
2687
|
+
ArticleGroupDeleteOptions
|
2688
|
+
);
|
2689
|
+
}
|
2690
|
+
};
|
2691
|
+
|
2602
2692
|
// src/types/types.ts
|
2603
2693
|
var LanguageCodeArray = [
|
2604
2694
|
"en",
|
@@ -2774,6 +2864,7 @@ var Juhuu = class {
|
|
2774
2864
|
this.articleEmbeddings = new ArticleEmbeddingsService(config);
|
2775
2865
|
this.boldLock = new BoldLockService(config);
|
2776
2866
|
this.tapkey = new TapkeyService(config);
|
2867
|
+
this.articleGroups = new ArticleGroupGroupsService(config);
|
2777
2868
|
}
|
2778
2869
|
/**
|
2779
2870
|
* Top Level Resources
|
@@ -2804,6 +2895,7 @@ var Juhuu = class {
|
|
2804
2895
|
articleEmbeddings;
|
2805
2896
|
boldLock;
|
2806
2897
|
tapkey;
|
2898
|
+
articleGroups;
|
2807
2899
|
};
|
2808
2900
|
var JUHUU;
|
2809
2901
|
((JUHUU2) => {
|
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
|
};
|
@@ -2555,6 +2565,86 @@ var PaymentRefundsService = class extends Service {
|
|
2555
2565
|
}
|
2556
2566
|
};
|
2557
2567
|
|
2568
|
+
// src/articleGroups/articleGroups.service.ts
|
2569
|
+
var ArticleGroupGroupsService = class extends Service {
|
2570
|
+
constructor(config) {
|
2571
|
+
super(config);
|
2572
|
+
}
|
2573
|
+
async create(ArticleGroupCreateParams, ArticleGroupCreateOptions) {
|
2574
|
+
return await super.sendRequest(
|
2575
|
+
{
|
2576
|
+
method: "POST",
|
2577
|
+
url: "articleGroups",
|
2578
|
+
body: {
|
2579
|
+
propertyId: ArticleGroupCreateParams.propertyId
|
2580
|
+
},
|
2581
|
+
authenticationNotOptional: true
|
2582
|
+
},
|
2583
|
+
ArticleGroupCreateOptions
|
2584
|
+
);
|
2585
|
+
}
|
2586
|
+
async list(ArticleGroupListParams, ArticleGroupListOptions) {
|
2587
|
+
const queryArray = [];
|
2588
|
+
if (ArticleGroupListOptions?.limit !== void 0) {
|
2589
|
+
queryArray.push("limit=" + ArticleGroupListOptions.limit);
|
2590
|
+
}
|
2591
|
+
if (ArticleGroupListParams?.propertyId !== void 0) {
|
2592
|
+
queryArray.push("propertyId=" + ArticleGroupListParams.propertyId);
|
2593
|
+
}
|
2594
|
+
if (ArticleGroupListOptions?.skip !== void 0) {
|
2595
|
+
queryArray.push("skip=" + ArticleGroupListOptions.skip);
|
2596
|
+
}
|
2597
|
+
return await super.sendRequest(
|
2598
|
+
{
|
2599
|
+
method: "GET",
|
2600
|
+
url: "articleGroups?" + queryArray.join("&"),
|
2601
|
+
body: void 0,
|
2602
|
+
authenticationNotOptional: false
|
2603
|
+
},
|
2604
|
+
ArticleGroupListOptions
|
2605
|
+
);
|
2606
|
+
}
|
2607
|
+
async retrieve(ArticleGroupRetrieveParams, ArticleGroupRetrieveOptions) {
|
2608
|
+
const queryArray = [];
|
2609
|
+
if (ArticleGroupRetrieveOptions?.expand !== void 0) {
|
2610
|
+
queryArray.push("expand=" + ArticleGroupRetrieveOptions.expand.join(","));
|
2611
|
+
}
|
2612
|
+
return await super.sendRequest(
|
2613
|
+
{
|
2614
|
+
method: "GET",
|
2615
|
+
url: "articleGroups/" + ArticleGroupRetrieveParams.articleGroupId + "?" + queryArray.join("&"),
|
2616
|
+
body: void 0,
|
2617
|
+
authenticationNotOptional: false
|
2618
|
+
},
|
2619
|
+
ArticleGroupRetrieveOptions
|
2620
|
+
);
|
2621
|
+
}
|
2622
|
+
async update(ArticleGroupUpdateParams, ArticleGroupUpdateOptions) {
|
2623
|
+
return await super.sendRequest(
|
2624
|
+
{
|
2625
|
+
method: "PATCH",
|
2626
|
+
url: "articleGroups/" + ArticleGroupUpdateParams.articleId,
|
2627
|
+
body: {
|
2628
|
+
title: ArticleGroupUpdateParams.title
|
2629
|
+
},
|
2630
|
+
authenticationNotOptional: true
|
2631
|
+
},
|
2632
|
+
ArticleGroupUpdateOptions
|
2633
|
+
);
|
2634
|
+
}
|
2635
|
+
async delete(ArticleGroupDeleteParams, ArticleGroupDeleteOptions) {
|
2636
|
+
return await super.sendRequest(
|
2637
|
+
{
|
2638
|
+
method: "DELETE",
|
2639
|
+
url: "articleGroups/" + ArticleGroupDeleteParams.articleGroupId,
|
2640
|
+
authenticationNotOptional: true,
|
2641
|
+
body: void 0
|
2642
|
+
},
|
2643
|
+
ArticleGroupDeleteOptions
|
2644
|
+
);
|
2645
|
+
}
|
2646
|
+
};
|
2647
|
+
|
2558
2648
|
// src/types/types.ts
|
2559
2649
|
var LanguageCodeArray = [
|
2560
2650
|
"en",
|
@@ -2730,6 +2820,7 @@ var Juhuu = class {
|
|
2730
2820
|
this.articleEmbeddings = new ArticleEmbeddingsService(config);
|
2731
2821
|
this.boldLock = new BoldLockService(config);
|
2732
2822
|
this.tapkey = new TapkeyService(config);
|
2823
|
+
this.articleGroups = new ArticleGroupGroupsService(config);
|
2733
2824
|
}
|
2734
2825
|
/**
|
2735
2826
|
* Top Level Resources
|
@@ -2760,6 +2851,7 @@ var Juhuu = class {
|
|
2760
2851
|
articleEmbeddings;
|
2761
2852
|
boldLock;
|
2762
2853
|
tapkey;
|
2854
|
+
articleGroups;
|
2763
2855
|
};
|
2764
2856
|
var JUHUU;
|
2765
2857
|
((JUHUU2) => {
|