reach-api-sdk 1.0.222 → 1.0.224

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.
@@ -61910,6 +61910,17 @@ type TenantFaqPost = {
61910
61910
  declare class TenantFaqsService {
61911
61911
  readonly httpRequest: BaseHttpRequest;
61912
61912
  constructor(httpRequest: BaseHttpRequest);
61913
+ /**
61914
+ * Reorders tenant FAQs.
61915
+ * @returns TenantFaq OK
61916
+ * @throws ApiError
61917
+ */
61918
+ reorder({ requestBody, }: {
61919
+ /**
61920
+ * The FAQ ids with their indexes.
61921
+ */
61922
+ requestBody?: Array<SortIndex>;
61923
+ }): CancelablePromise<Array<TenantFaq>>;
61913
61924
  /**
61914
61925
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
61915
61926
  * @returns TenantFaq OK
package/dist/reach-sdk.js CHANGED
@@ -43712,6 +43712,26 @@ const request = (config, options, axiosClient = axios) => {
43712
43712
  constructor(httpRequest) {
43713
43713
  this.httpRequest = httpRequest;
43714
43714
  }
43715
+ /**
43716
+ * Reorders tenant FAQs.
43717
+ * @returns TenantFaq OK
43718
+ * @throws ApiError
43719
+ */
43720
+ reorder({
43721
+ requestBody
43722
+ }) {
43723
+ return this.httpRequest.request({
43724
+ method: "POST",
43725
+ url: "/api/tenant-faqs/reorder",
43726
+ body: requestBody,
43727
+ mediaType: "application/json",
43728
+ errors: {
43729
+ 400: `Bad Request`,
43730
+ 422: `Unprocessable Content`,
43731
+ 500: `Internal Server Error`
43732
+ }
43733
+ });
43734
+ }
43715
43735
  /**
43716
43736
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
43717
43737
  * @returns TenantFaq OK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.222",
3
+ "version": "1.0.224",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -128757,6 +128757,85 @@ paths:
128757
128757
  text/json:
128758
128758
  schema:
128759
128759
  $ref: '#/components/schemas/ValidationResultModel'
128760
+ /api/tenant-faqs/reorder:
128761
+ post:
128762
+ tags:
128763
+ - TenantFaqs
128764
+ summary: Reorders tenant FAQs.
128765
+ operationId: Reorder
128766
+ requestBody:
128767
+ description: The FAQ ids with their indexes.
128768
+ content:
128769
+ application/json:
128770
+ schema:
128771
+ type: array
128772
+ items:
128773
+ $ref: '#/components/schemas/SortIndex'
128774
+ text/json:
128775
+ schema:
128776
+ type: array
128777
+ items:
128778
+ $ref: '#/components/schemas/SortIndex'
128779
+ application/*+json:
128780
+ schema:
128781
+ type: array
128782
+ items:
128783
+ $ref: '#/components/schemas/SortIndex'
128784
+ responses:
128785
+ '200':
128786
+ description: OK
128787
+ content:
128788
+ text/plain:
128789
+ schema:
128790
+ type: array
128791
+ items:
128792
+ $ref: '#/components/schemas/TenantFaq'
128793
+ application/json:
128794
+ schema:
128795
+ type: array
128796
+ items:
128797
+ $ref: '#/components/schemas/TenantFaq'
128798
+ text/json:
128799
+ schema:
128800
+ type: array
128801
+ items:
128802
+ $ref: '#/components/schemas/TenantFaq'
128803
+ '400':
128804
+ description: Bad Request
128805
+ content:
128806
+ text/plain:
128807
+ schema:
128808
+ $ref: '#/components/schemas/ReachError'
128809
+ application/json:
128810
+ schema:
128811
+ $ref: '#/components/schemas/ReachError'
128812
+ text/json:
128813
+ schema:
128814
+ $ref: '#/components/schemas/ReachError'
128815
+ '500':
128816
+ description: Internal Server Error
128817
+ content:
128818
+ text/plain:
128819
+ schema:
128820
+ $ref: '#/components/schemas/ReachError'
128821
+ application/json:
128822
+ schema:
128823
+ $ref: '#/components/schemas/ReachError'
128824
+ text/json:
128825
+ schema:
128826
+ $ref: '#/components/schemas/ReachError'
128827
+ '422':
128828
+ description: Unprocessable Content
128829
+ content:
128830
+ text/plain:
128831
+ schema:
128832
+ $ref: '#/components/schemas/ValidationResultModel'
128833
+ application/json:
128834
+ schema:
128835
+ $ref: '#/components/schemas/ValidationResultModel'
128836
+ text/json:
128837
+ schema:
128838
+ $ref: '#/components/schemas/ValidationResultModel'
128760
128839
  /api/tenant-faqs/v2-temporary-route:
128761
128840
  post:
128762
128841
  tags:
@@ -3,6 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
6
+ import type { SortIndex } from '../models/SortIndex';
6
7
  import type { TenantFaq } from '../models/TenantFaq';
7
8
  import type { TenantFaqPage } from '../models/TenantFaqPage';
8
9
  import type { TenantFaqPatch } from '../models/TenantFaqPatch';
@@ -14,6 +15,32 @@ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
14
15
  export class TenantFaqsService {
15
16
  constructor(public readonly httpRequest: BaseHttpRequest) {}
16
17
 
18
+ /**
19
+ * Reorders tenant FAQs.
20
+ * @returns TenantFaq OK
21
+ * @throws ApiError
22
+ */
23
+ public reorder({
24
+ requestBody,
25
+ }: {
26
+ /**
27
+ * The FAQ ids with their indexes.
28
+ */
29
+ requestBody?: Array<SortIndex>;
30
+ }): CancelablePromise<Array<TenantFaq>> {
31
+ return this.httpRequest.request({
32
+ method: 'POST',
33
+ url: '/api/tenant-faqs/reorder',
34
+ body: requestBody,
35
+ mediaType: 'application/json',
36
+ errors: {
37
+ 400: `Bad Request`,
38
+ 422: `Unprocessable Content`,
39
+ 500: `Internal Server Error`,
40
+ },
41
+ });
42
+ }
43
+
17
44
  /**
18
45
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
19
46
  * @returns TenantFaq OK