@juhuu/sdk-ts 1.2.130 → 1.2.132

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
@@ -827,6 +827,15 @@ declare class PaymentRefundsService extends Service {
827
827
  retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Params, PaymentRefundRetrieveInvoiceUrlOptions?: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.RetrieveInvoiceUrl.Response>>;
828
828
  }
829
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
+
830
839
  declare class Juhuu {
831
840
  constructor(config: JUHUU.SetupConfig);
832
841
  /**
@@ -858,6 +867,7 @@ declare class Juhuu {
858
867
  readonly articleEmbeddings: ArticleEmbeddingsService;
859
868
  readonly boldLock: BoldLockService;
860
869
  readonly tapkey: TapkeyService;
870
+ readonly articleGroups: ArticleGroupGroupsService;
861
871
  }
862
872
  declare namespace JUHUU {
863
873
  interface SetupConfig {
@@ -1487,6 +1497,7 @@ declare namespace JUHUU {
1487
1497
  embeddingsGenerated: boolean;
1488
1498
  autoTranslateEnabled: boolean;
1489
1499
  embeddingsGenerationEnabled: boolean;
1500
+ order: number;
1490
1501
  };
1491
1502
  namespace Create {
1492
1503
  type Params = {
@@ -1513,6 +1524,7 @@ declare namespace JUHUU {
1513
1524
  type Params = {
1514
1525
  propertyId?: string;
1515
1526
  statusArray?: JUHUU.Article.Object["status"][];
1527
+ articleGroupId?: string | null;
1516
1528
  };
1517
1529
  type Options = {
1518
1530
  limit?: number;
@@ -1544,7 +1556,9 @@ declare namespace JUHUU {
1544
1556
  articleId?: string;
1545
1557
  };
1546
1558
  type Options = JUHUU.RequestOptions;
1547
- type Response = JUHUU.Article.Object;
1559
+ type Response = {
1560
+ article: JUHUU.Article.Object;
1561
+ };
1548
1562
  }
1549
1563
  namespace Search {
1550
1564
  type Params = {
@@ -1570,6 +1584,73 @@ declare namespace JUHUU {
1570
1584
  };
1571
1585
  }
1572
1586
  }
1587
+ namespace ArticleGroup {
1588
+ type Object = {
1589
+ id: string;
1590
+ readonly object: "articleGroup";
1591
+ title: LocaleString;
1592
+ articleIdArray: string[];
1593
+ articleGroupIdArray: string[];
1594
+ createdAt: Date;
1595
+ propertyId: string | null;
1596
+ order: number;
1597
+ };
1598
+ namespace Create {
1599
+ type Params = {
1600
+ propertyId: string;
1601
+ };
1602
+ type Options = JUHUU.RequestOptions;
1603
+ type Response = {
1604
+ articleGroup: JUHUU.ArticleGroup.Object;
1605
+ };
1606
+ }
1607
+ namespace Retrieve {
1608
+ type Params = {
1609
+ articleGroupId: string;
1610
+ };
1611
+ type Options = {
1612
+ expand?: Array<"property">;
1613
+ } & JUHUU.RequestOptions;
1614
+ type Response = {
1615
+ articleGroup: JUHUU.ArticleGroup.Object;
1616
+ property?: JUHUU.Property.Object;
1617
+ };
1618
+ }
1619
+ namespace List {
1620
+ type Params = {
1621
+ propertyId?: string;
1622
+ articleGroupId?: string | null;
1623
+ };
1624
+ type Options = {
1625
+ limit?: number;
1626
+ skip?: number;
1627
+ } & JUHUU.RequestOptions;
1628
+ type Response = {
1629
+ articleGroupArray: JUHUU.ArticleGroup.Object[];
1630
+ count: number;
1631
+ hasMore: boolean;
1632
+ };
1633
+ }
1634
+ namespace Update {
1635
+ type Params = {
1636
+ articleId: string;
1637
+ title?: LocaleString;
1638
+ };
1639
+ type Options = JUHUU.RequestOptions;
1640
+ type Response = {
1641
+ articleGroup: JUHUU.ArticleGroup.Object;
1642
+ };
1643
+ }
1644
+ namespace Delete {
1645
+ type Params = {
1646
+ articleGroupId?: string;
1647
+ };
1648
+ type Options = JUHUU.RequestOptions;
1649
+ type Response = {
1650
+ articleGroup: JUHUU.ArticleGroup.Object;
1651
+ };
1652
+ }
1653
+ }
1573
1654
  namespace Chat {
1574
1655
  type Object = {
1575
1656
  id: string;
package/dist/index.d.ts CHANGED
@@ -827,6 +827,15 @@ declare class PaymentRefundsService extends Service {
827
827
  retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Params, PaymentRefundRetrieveInvoiceUrlOptions?: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.RetrieveInvoiceUrl.Response>>;
828
828
  }
829
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
+
830
839
  declare class Juhuu {
831
840
  constructor(config: JUHUU.SetupConfig);
832
841
  /**
@@ -858,6 +867,7 @@ declare class Juhuu {
858
867
  readonly articleEmbeddings: ArticleEmbeddingsService;
859
868
  readonly boldLock: BoldLockService;
860
869
  readonly tapkey: TapkeyService;
870
+ readonly articleGroups: ArticleGroupGroupsService;
861
871
  }
862
872
  declare namespace JUHUU {
863
873
  interface SetupConfig {
@@ -1487,6 +1497,7 @@ declare namespace JUHUU {
1487
1497
  embeddingsGenerated: boolean;
1488
1498
  autoTranslateEnabled: boolean;
1489
1499
  embeddingsGenerationEnabled: boolean;
1500
+ order: number;
1490
1501
  };
1491
1502
  namespace Create {
1492
1503
  type Params = {
@@ -1513,6 +1524,7 @@ declare namespace JUHUU {
1513
1524
  type Params = {
1514
1525
  propertyId?: string;
1515
1526
  statusArray?: JUHUU.Article.Object["status"][];
1527
+ articleGroupId?: string | null;
1516
1528
  };
1517
1529
  type Options = {
1518
1530
  limit?: number;
@@ -1544,7 +1556,9 @@ declare namespace JUHUU {
1544
1556
  articleId?: string;
1545
1557
  };
1546
1558
  type Options = JUHUU.RequestOptions;
1547
- type Response = JUHUU.Article.Object;
1559
+ type Response = {
1560
+ article: JUHUU.Article.Object;
1561
+ };
1548
1562
  }
1549
1563
  namespace Search {
1550
1564
  type Params = {
@@ -1570,6 +1584,73 @@ declare namespace JUHUU {
1570
1584
  };
1571
1585
  }
1572
1586
  }
1587
+ namespace ArticleGroup {
1588
+ type Object = {
1589
+ id: string;
1590
+ readonly object: "articleGroup";
1591
+ title: LocaleString;
1592
+ articleIdArray: string[];
1593
+ articleGroupIdArray: string[];
1594
+ createdAt: Date;
1595
+ propertyId: string | null;
1596
+ order: number;
1597
+ };
1598
+ namespace Create {
1599
+ type Params = {
1600
+ propertyId: string;
1601
+ };
1602
+ type Options = JUHUU.RequestOptions;
1603
+ type Response = {
1604
+ articleGroup: JUHUU.ArticleGroup.Object;
1605
+ };
1606
+ }
1607
+ namespace Retrieve {
1608
+ type Params = {
1609
+ articleGroupId: string;
1610
+ };
1611
+ type Options = {
1612
+ expand?: Array<"property">;
1613
+ } & JUHUU.RequestOptions;
1614
+ type Response = {
1615
+ articleGroup: JUHUU.ArticleGroup.Object;
1616
+ property?: JUHUU.Property.Object;
1617
+ };
1618
+ }
1619
+ namespace List {
1620
+ type Params = {
1621
+ propertyId?: string;
1622
+ articleGroupId?: string | null;
1623
+ };
1624
+ type Options = {
1625
+ limit?: number;
1626
+ skip?: number;
1627
+ } & JUHUU.RequestOptions;
1628
+ type Response = {
1629
+ articleGroupArray: JUHUU.ArticleGroup.Object[];
1630
+ count: number;
1631
+ hasMore: boolean;
1632
+ };
1633
+ }
1634
+ namespace Update {
1635
+ type Params = {
1636
+ articleId: string;
1637
+ title?: LocaleString;
1638
+ };
1639
+ type Options = JUHUU.RequestOptions;
1640
+ type Response = {
1641
+ articleGroup: JUHUU.ArticleGroup.Object;
1642
+ };
1643
+ }
1644
+ namespace Delete {
1645
+ type Params = {
1646
+ articleGroupId?: string;
1647
+ };
1648
+ type Options = JUHUU.RequestOptions;
1649
+ type Response = {
1650
+ articleGroup: JUHUU.ArticleGroup.Object;
1651
+ };
1652
+ }
1653
+ }
1573
1654
  namespace Chat {
1574
1655
  type Object = {
1575
1656
  id: string;
package/dist/index.js CHANGED
@@ -2609,6 +2609,86 @@ var PaymentRefundsService = class extends Service {
2609
2609
  }
2610
2610
  };
2611
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
+
2612
2692
  // src/types/types.ts
2613
2693
  var LanguageCodeArray = [
2614
2694
  "en",
@@ -2784,6 +2864,7 @@ var Juhuu = class {
2784
2864
  this.articleEmbeddings = new ArticleEmbeddingsService(config);
2785
2865
  this.boldLock = new BoldLockService(config);
2786
2866
  this.tapkey = new TapkeyService(config);
2867
+ this.articleGroups = new ArticleGroupGroupsService(config);
2787
2868
  }
2788
2869
  /**
2789
2870
  * Top Level Resources
@@ -2814,6 +2895,7 @@ var Juhuu = class {
2814
2895
  articleEmbeddings;
2815
2896
  boldLock;
2816
2897
  tapkey;
2898
+ articleGroups;
2817
2899
  };
2818
2900
  var JUHUU;
2819
2901
  ((JUHUU2) => {
package/dist/index.mjs CHANGED
@@ -2565,6 +2565,86 @@ var PaymentRefundsService = class extends Service {
2565
2565
  }
2566
2566
  };
2567
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
+
2568
2648
  // src/types/types.ts
2569
2649
  var LanguageCodeArray = [
2570
2650
  "en",
@@ -2740,6 +2820,7 @@ var Juhuu = class {
2740
2820
  this.articleEmbeddings = new ArticleEmbeddingsService(config);
2741
2821
  this.boldLock = new BoldLockService(config);
2742
2822
  this.tapkey = new TapkeyService(config);
2823
+ this.articleGroups = new ArticleGroupGroupsService(config);
2743
2824
  }
2744
2825
  /**
2745
2826
  * Top Level Resources
@@ -2770,6 +2851,7 @@ var Juhuu = class {
2770
2851
  articleEmbeddings;
2771
2852
  boldLock;
2772
2853
  tapkey;
2854
+ articleGroups;
2773
2855
  };
2774
2856
  var JUHUU;
2775
2857
  ((JUHUU2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.130",
3
+ "version": "1.2.132",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",