@juhuu/sdk-ts 1.2.130 → 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 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 = {
@@ -1544,7 +1555,9 @@ declare namespace JUHUU {
1544
1555
  articleId?: string;
1545
1556
  };
1546
1557
  type Options = JUHUU.RequestOptions;
1547
- type Response = JUHUU.Article.Object;
1558
+ type Response = {
1559
+ article: JUHUU.Article.Object;
1560
+ };
1548
1561
  }
1549
1562
  namespace Search {
1550
1563
  type Params = {
@@ -1570,6 +1583,72 @@ declare namespace JUHUU {
1570
1583
  };
1571
1584
  }
1572
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
+ }
1573
1652
  namespace Chat {
1574
1653
  type Object = {
1575
1654
  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 = {
@@ -1544,7 +1555,9 @@ declare namespace JUHUU {
1544
1555
  articleId?: string;
1545
1556
  };
1546
1557
  type Options = JUHUU.RequestOptions;
1547
- type Response = JUHUU.Article.Object;
1558
+ type Response = {
1559
+ article: JUHUU.Article.Object;
1560
+ };
1548
1561
  }
1549
1562
  namespace Search {
1550
1563
  type Params = {
@@ -1570,6 +1583,72 @@ declare namespace JUHUU {
1570
1583
  };
1571
1584
  }
1572
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
+ }
1573
1652
  namespace Chat {
1574
1653
  type Object = {
1575
1654
  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.131",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",