@connectedxm/admin-sdk 7.0.4 → 7.0.5

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/api.ts CHANGED
@@ -145679,6 +145679,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
145679
145679
  /**
145680
145680
  * Get Threads endpoint
145681
145681
  * @summary Get Threads
145682
+ * @param {ThreadType} [type] Filter by type
145682
145683
  * @param {number} [page] Page number
145683
145684
  * @param {number} [pageSize] Number of items per page
145684
145685
  * @param {string} [orderBy] Field to order by
@@ -145686,7 +145687,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
145686
145687
  * @param {*} [options] Override http request option.
145687
145688
  * @throws {RequiredError}
145688
145689
  */
145689
- getThreads: async (page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
145690
+ getThreads: async (type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
145690
145691
  const localVarPath = `/threads`;
145691
145692
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
145692
145693
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -145705,6 +145706,10 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
145705
145706
  // authentication OrganizationId required
145706
145707
  await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
145707
145708
 
145709
+ if (type !== undefined) {
145710
+ localVarQueryParameter['type'] = type;
145711
+ }
145712
+
145708
145713
  if (page !== undefined) {
145709
145714
  localVarQueryParameter['page'] = page;
145710
145715
  }
@@ -145828,6 +145833,7 @@ export const ThreadsApiFp = function(configuration?: Configuration) {
145828
145833
  /**
145829
145834
  * Get Threads endpoint
145830
145835
  * @summary Get Threads
145836
+ * @param {ThreadType} [type] Filter by type
145831
145837
  * @param {number} [page] Page number
145832
145838
  * @param {number} [pageSize] Number of items per page
145833
145839
  * @param {string} [orderBy] Field to order by
@@ -145835,8 +145841,8 @@ export const ThreadsApiFp = function(configuration?: Configuration) {
145835
145841
  * @param {*} [options] Override http request option.
145836
145842
  * @throws {RequiredError}
145837
145843
  */
145838
- async getThreads(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
145839
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThreads(page, pageSize, orderBy, search, options);
145844
+ async getThreads(type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
145845
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThreads(type, page, pageSize, orderBy, search, options);
145840
145846
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
145841
145847
  const localVarOperationServerBasePath = operationServerMap['ThreadsApi.getThreads']?.[localVarOperationServerIndex]?.url;
145842
145848
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -145902,7 +145908,7 @@ export const ThreadsApiFactory = function (configuration?: Configuration, basePa
145902
145908
  * @throws {RequiredError}
145903
145909
  */
145904
145910
  getThreads(requestParameters: ThreadsApiGetThreadsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountThreads200Response> {
145905
- return localVarFp.getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
145911
+ return localVarFp.getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
145906
145912
  },
145907
145913
  /**
145908
145914
  * Update Thread endpoint
@@ -145948,6 +145954,11 @@ export interface ThreadsApiGetThreadRequest {
145948
145954
  * Request parameters for getThreads operation in ThreadsApi.
145949
145955
  */
145950
145956
  export interface ThreadsApiGetThreadsRequest {
145957
+ /**
145958
+ * Filter by type
145959
+ */
145960
+ readonly type?: ThreadType
145961
+
145951
145962
  /**
145952
145963
  * Page number
145953
145964
  */
@@ -146026,7 +146037,7 @@ export class ThreadsApi extends BaseAPI {
146026
146037
  * @throws {RequiredError}
146027
146038
  */
146028
146039
  public getThreads(requestParameters: ThreadsApiGetThreadsRequest = {}, options?: RawAxiosRequestConfig) {
146029
- return ThreadsApiFp(this.configuration).getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
146040
+ return ThreadsApiFp(this.configuration).getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
146030
146041
  }
146031
146042
 
146032
146043
  /**
package/dist/api.d.ts CHANGED
@@ -79081,6 +79081,7 @@ export declare const ThreadsApiAxiosParamCreator: (configuration?: Configuration
79081
79081
  /**
79082
79082
  * Get Threads endpoint
79083
79083
  * @summary Get Threads
79084
+ * @param {ThreadType} [type] Filter by type
79084
79085
  * @param {number} [page] Page number
79085
79086
  * @param {number} [pageSize] Number of items per page
79086
79087
  * @param {string} [orderBy] Field to order by
@@ -79088,7 +79089,7 @@ export declare const ThreadsApiAxiosParamCreator: (configuration?: Configuration
79088
79089
  * @param {*} [options] Override http request option.
79089
79090
  * @throws {RequiredError}
79090
79091
  */
79091
- getThreads: (page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
79092
+ getThreads: (type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
79092
79093
  /**
79093
79094
  * Update Thread endpoint
79094
79095
  * @summary Update Thread
@@ -79130,6 +79131,7 @@ export declare const ThreadsApiFp: (configuration?: Configuration) => {
79130
79131
  /**
79131
79132
  * Get Threads endpoint
79132
79133
  * @summary Get Threads
79134
+ * @param {ThreadType} [type] Filter by type
79133
79135
  * @param {number} [page] Page number
79134
79136
  * @param {number} [pageSize] Number of items per page
79135
79137
  * @param {string} [orderBy] Field to order by
@@ -79137,7 +79139,7 @@ export declare const ThreadsApiFp: (configuration?: Configuration) => {
79137
79139
  * @param {*} [options] Override http request option.
79138
79140
  * @throws {RequiredError}
79139
79141
  */
79140
- getThreads(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>>;
79142
+ getThreads(type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>>;
79141
79143
  /**
79142
79144
  * Update Thread endpoint
79143
79145
  * @summary Update Thread
@@ -79221,6 +79223,10 @@ export interface ThreadsApiGetThreadRequest {
79221
79223
  * Request parameters for getThreads operation in ThreadsApi.
79222
79224
  */
79223
79225
  export interface ThreadsApiGetThreadsRequest {
79226
+ /**
79227
+ * Filter by type
79228
+ */
79229
+ readonly type?: ThreadType;
79224
79230
  /**
79225
79231
  * Page number
79226
79232
  */
package/dist/api.js CHANGED
@@ -103751,6 +103751,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
103751
103751
  /**
103752
103752
  * Get Threads endpoint
103753
103753
  * @summary Get Threads
103754
+ * @param {ThreadType} [type] Filter by type
103754
103755
  * @param {number} [page] Page number
103755
103756
  * @param {number} [pageSize] Number of items per page
103756
103757
  * @param {string} [orderBy] Field to order by
@@ -103758,7 +103759,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
103758
103759
  * @param {*} [options] Override http request option.
103759
103760
  * @throws {RequiredError}
103760
103761
  */
103761
- getThreads: (page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (page, pageSize, orderBy, search, options = {}) {
103762
+ getThreads: (type_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [type_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (type, page, pageSize, orderBy, search, options = {}) {
103762
103763
  const localVarPath = `/threads`;
103763
103764
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
103764
103765
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -103773,6 +103774,9 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
103773
103774
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
103774
103775
  // authentication OrganizationId required
103775
103776
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
103777
+ if (type !== undefined) {
103778
+ localVarQueryParameter['type'] = type;
103779
+ }
103776
103780
  if (page !== undefined) {
103777
103781
  localVarQueryParameter['page'] = page;
103778
103782
  }
@@ -103893,6 +103897,7 @@ const ThreadsApiFp = function (configuration) {
103893
103897
  /**
103894
103898
  * Get Threads endpoint
103895
103899
  * @summary Get Threads
103900
+ * @param {ThreadType} [type] Filter by type
103896
103901
  * @param {number} [page] Page number
103897
103902
  * @param {number} [pageSize] Number of items per page
103898
103903
  * @param {string} [orderBy] Field to order by
@@ -103900,10 +103905,10 @@ const ThreadsApiFp = function (configuration) {
103900
103905
  * @param {*} [options] Override http request option.
103901
103906
  * @throws {RequiredError}
103902
103907
  */
103903
- getThreads(page, pageSize, orderBy, search, options) {
103908
+ getThreads(type, page, pageSize, orderBy, search, options) {
103904
103909
  return __awaiter(this, void 0, void 0, function* () {
103905
103910
  var _a, _b, _c;
103906
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(page, pageSize, orderBy, search, options);
103911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(type, page, pageSize, orderBy, search, options);
103907
103912
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
103908
103913
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ThreadsApi.getThreads']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
103909
103914
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -103973,7 +103978,7 @@ const ThreadsApiFactory = function (configuration, basePath, axios) {
103973
103978
  * @throws {RequiredError}
103974
103979
  */
103975
103980
  getThreads(requestParameters = {}, options) {
103976
- return localVarFp.getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
103981
+ return localVarFp.getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
103977
103982
  },
103978
103983
  /**
103979
103984
  * Update Thread endpoint
@@ -104030,7 +104035,7 @@ class ThreadsApi extends base_1.BaseAPI {
104030
104035
  * @throws {RequiredError}
104031
104036
  */
104032
104037
  getThreads(requestParameters = {}, options) {
104033
- return (0, exports.ThreadsApiFp)(this.configuration).getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
104038
+ return (0, exports.ThreadsApiFp)(this.configuration).getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
104034
104039
  }
104035
104040
  /**
104036
104041
  * Update Thread endpoint
package/dist/esm/api.d.ts CHANGED
@@ -79081,6 +79081,7 @@ export declare const ThreadsApiAxiosParamCreator: (configuration?: Configuration
79081
79081
  /**
79082
79082
  * Get Threads endpoint
79083
79083
  * @summary Get Threads
79084
+ * @param {ThreadType} [type] Filter by type
79084
79085
  * @param {number} [page] Page number
79085
79086
  * @param {number} [pageSize] Number of items per page
79086
79087
  * @param {string} [orderBy] Field to order by
@@ -79088,7 +79089,7 @@ export declare const ThreadsApiAxiosParamCreator: (configuration?: Configuration
79088
79089
  * @param {*} [options] Override http request option.
79089
79090
  * @throws {RequiredError}
79090
79091
  */
79091
- getThreads: (page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
79092
+ getThreads: (type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
79092
79093
  /**
79093
79094
  * Update Thread endpoint
79094
79095
  * @summary Update Thread
@@ -79130,6 +79131,7 @@ export declare const ThreadsApiFp: (configuration?: Configuration) => {
79130
79131
  /**
79131
79132
  * Get Threads endpoint
79132
79133
  * @summary Get Threads
79134
+ * @param {ThreadType} [type] Filter by type
79133
79135
  * @param {number} [page] Page number
79134
79136
  * @param {number} [pageSize] Number of items per page
79135
79137
  * @param {string} [orderBy] Field to order by
@@ -79137,7 +79139,7 @@ export declare const ThreadsApiFp: (configuration?: Configuration) => {
79137
79139
  * @param {*} [options] Override http request option.
79138
79140
  * @throws {RequiredError}
79139
79141
  */
79140
- getThreads(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>>;
79142
+ getThreads(type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>>;
79141
79143
  /**
79142
79144
  * Update Thread endpoint
79143
79145
  * @summary Update Thread
@@ -79221,6 +79223,10 @@ export interface ThreadsApiGetThreadRequest {
79221
79223
  * Request parameters for getThreads operation in ThreadsApi.
79222
79224
  */
79223
79225
  export interface ThreadsApiGetThreadsRequest {
79226
+ /**
79227
+ * Filter by type
79228
+ */
79229
+ readonly type?: ThreadType;
79224
79230
  /**
79225
79231
  * Page number
79226
79232
  */
package/dist/esm/api.js CHANGED
@@ -102986,6 +102986,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
102986
102986
  /**
102987
102987
  * Get Threads endpoint
102988
102988
  * @summary Get Threads
102989
+ * @param {ThreadType} [type] Filter by type
102989
102990
  * @param {number} [page] Page number
102990
102991
  * @param {number} [pageSize] Number of items per page
102991
102992
  * @param {string} [orderBy] Field to order by
@@ -102993,7 +102994,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
102993
102994
  * @param {*} [options] Override http request option.
102994
102995
  * @throws {RequiredError}
102995
102996
  */
102996
- getThreads: (page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (page, pageSize, orderBy, search, options = {}) {
102997
+ getThreads: (type_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [type_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (type, page, pageSize, orderBy, search, options = {}) {
102997
102998
  const localVarPath = `/threads`;
102998
102999
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
102999
103000
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -103008,6 +103009,9 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
103008
103009
  yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
103009
103010
  // authentication OrganizationId required
103010
103011
  yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
103012
+ if (type !== undefined) {
103013
+ localVarQueryParameter['type'] = type;
103014
+ }
103011
103015
  if (page !== undefined) {
103012
103016
  localVarQueryParameter['page'] = page;
103013
103017
  }
@@ -103127,6 +103131,7 @@ export const ThreadsApiFp = function (configuration) {
103127
103131
  /**
103128
103132
  * Get Threads endpoint
103129
103133
  * @summary Get Threads
103134
+ * @param {ThreadType} [type] Filter by type
103130
103135
  * @param {number} [page] Page number
103131
103136
  * @param {number} [pageSize] Number of items per page
103132
103137
  * @param {string} [orderBy] Field to order by
@@ -103134,10 +103139,10 @@ export const ThreadsApiFp = function (configuration) {
103134
103139
  * @param {*} [options] Override http request option.
103135
103140
  * @throws {RequiredError}
103136
103141
  */
103137
- getThreads(page, pageSize, orderBy, search, options) {
103142
+ getThreads(type, page, pageSize, orderBy, search, options) {
103138
103143
  return __awaiter(this, void 0, void 0, function* () {
103139
103144
  var _a, _b, _c;
103140
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(page, pageSize, orderBy, search, options);
103145
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(type, page, pageSize, orderBy, search, options);
103141
103146
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
103142
103147
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ThreadsApi.getThreads']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
103143
103148
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -103206,7 +103211,7 @@ export const ThreadsApiFactory = function (configuration, basePath, axios) {
103206
103211
  * @throws {RequiredError}
103207
103212
  */
103208
103213
  getThreads(requestParameters = {}, options) {
103209
- return localVarFp.getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
103214
+ return localVarFp.getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
103210
103215
  },
103211
103216
  /**
103212
103217
  * Update Thread endpoint
@@ -103262,7 +103267,7 @@ export class ThreadsApi extends BaseAPI {
103262
103267
  * @throws {RequiredError}
103263
103268
  */
103264
103269
  getThreads(requestParameters = {}, options) {
103265
- return ThreadsApiFp(this.configuration).getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
103270
+ return ThreadsApiFp(this.configuration).getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
103266
103271
  }
103267
103272
  /**
103268
103273
  * Update Thread endpoint
@@ -180,12 +180,14 @@ import {
180
180
  const configuration = new Configuration();
181
181
  const apiInstance = new ThreadsApi(configuration);
182
182
 
183
+ let type: ThreadType; //Filter by type (optional) (default to undefined)
183
184
  let page: number; //Page number (optional) (default to 1)
184
185
  let pageSize: number; //Number of items per page (optional) (default to 25)
185
186
  let orderBy: string; //Field to order by (optional) (default to undefined)
186
187
  let search: string; //Search query (optional) (default to undefined)
187
188
 
188
189
  const { status, data } = await apiInstance.getThreads(
190
+ type,
189
191
  page,
190
192
  pageSize,
191
193
  orderBy,
@@ -197,6 +199,7 @@ const { status, data } = await apiInstance.getThreads(
197
199
 
198
200
  |Name | Type | Description | Notes|
199
201
  |------------- | ------------- | ------------- | -------------|
202
+ | **type** | **ThreadType** | Filter by type | (optional) defaults to undefined|
200
203
  | **page** | [**number**] | Page number | (optional) defaults to 1|
201
204
  | **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
202
205
  | **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin-sdk",
3
- "version": "7.0.4",
3
+ "version": "7.0.5",
4
4
  "description": "OpenAPI client for @connectedxm/admin-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {