@connectedxm/admin-sdk 7.0.4 → 7.0.6
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 +23 -11
- package/dist/api.d.ts +15 -8
- package/dist/api.js +10 -5
- package/dist/esm/api.d.ts +15 -8
- package/dist/esm/api.js +10 -5
- package/docs/ThreadAccount.md +2 -0
- package/docs/ThreadsApi.md +3 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2538,8 +2538,8 @@ export interface BaseThread {
|
|
|
2538
2538
|
export interface BaseThreadMessage {
|
|
2539
2539
|
'id': string;
|
|
2540
2540
|
'body': string;
|
|
2541
|
-
'accountId': string
|
|
2542
|
-
'threadAccount': ThreadAccount
|
|
2541
|
+
'accountId': string;
|
|
2542
|
+
'threadAccount': ThreadAccount;
|
|
2543
2543
|
'createdAt': string;
|
|
2544
2544
|
'editedAt': string | null;
|
|
2545
2545
|
'sentAt': string;
|
|
@@ -13625,12 +13625,13 @@ export interface Thread {
|
|
|
13625
13625
|
export interface ThreadAccount {
|
|
13626
13626
|
'id': string;
|
|
13627
13627
|
'threadId': string;
|
|
13628
|
-
'accountId': string;
|
|
13629
|
-
'account': BaseAccount;
|
|
13628
|
+
'accountId': string | null;
|
|
13629
|
+
'account': BaseAccount | null;
|
|
13630
13630
|
'lastReadAt': string | null;
|
|
13631
13631
|
'typingAt': string | null;
|
|
13632
13632
|
'notifications': boolean;
|
|
13633
13633
|
'blocked': boolean;
|
|
13634
|
+
'leftAt': string | null;
|
|
13634
13635
|
'createdAt': string;
|
|
13635
13636
|
'updatedAt': string;
|
|
13636
13637
|
}
|
|
@@ -13649,8 +13650,8 @@ export interface ThreadCreateInputs {
|
|
|
13649
13650
|
export interface ThreadMessage {
|
|
13650
13651
|
'id': string;
|
|
13651
13652
|
'body': string;
|
|
13652
|
-
'accountId': string
|
|
13653
|
-
'threadAccount': ThreadAccount
|
|
13653
|
+
'accountId': string;
|
|
13654
|
+
'threadAccount': ThreadAccount;
|
|
13654
13655
|
'createdAt': string;
|
|
13655
13656
|
'editedAt': string | null;
|
|
13656
13657
|
'sentAt': string;
|
|
@@ -145679,6 +145680,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
145679
145680
|
/**
|
|
145680
145681
|
* Get Threads endpoint
|
|
145681
145682
|
* @summary Get Threads
|
|
145683
|
+
* @param {ThreadType} [type] Filter by type
|
|
145682
145684
|
* @param {number} [page] Page number
|
|
145683
145685
|
* @param {number} [pageSize] Number of items per page
|
|
145684
145686
|
* @param {string} [orderBy] Field to order by
|
|
@@ -145686,7 +145688,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
145686
145688
|
* @param {*} [options] Override http request option.
|
|
145687
145689
|
* @throws {RequiredError}
|
|
145688
145690
|
*/
|
|
145689
|
-
getThreads: async (page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145691
|
+
getThreads: async (type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145690
145692
|
const localVarPath = `/threads`;
|
|
145691
145693
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145692
145694
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -145705,6 +145707,10 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
145705
145707
|
// authentication OrganizationId required
|
|
145706
145708
|
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
145707
145709
|
|
|
145710
|
+
if (type !== undefined) {
|
|
145711
|
+
localVarQueryParameter['type'] = type;
|
|
145712
|
+
}
|
|
145713
|
+
|
|
145708
145714
|
if (page !== undefined) {
|
|
145709
145715
|
localVarQueryParameter['page'] = page;
|
|
145710
145716
|
}
|
|
@@ -145828,6 +145834,7 @@ export const ThreadsApiFp = function(configuration?: Configuration) {
|
|
|
145828
145834
|
/**
|
|
145829
145835
|
* Get Threads endpoint
|
|
145830
145836
|
* @summary Get Threads
|
|
145837
|
+
* @param {ThreadType} [type] Filter by type
|
|
145831
145838
|
* @param {number} [page] Page number
|
|
145832
145839
|
* @param {number} [pageSize] Number of items per page
|
|
145833
145840
|
* @param {string} [orderBy] Field to order by
|
|
@@ -145835,8 +145842,8 @@ export const ThreadsApiFp = function(configuration?: Configuration) {
|
|
|
145835
145842
|
* @param {*} [options] Override http request option.
|
|
145836
145843
|
* @throws {RequiredError}
|
|
145837
145844
|
*/
|
|
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);
|
|
145845
|
+
async getThreads(type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
|
|
145846
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThreads(type, page, pageSize, orderBy, search, options);
|
|
145840
145847
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
145841
145848
|
const localVarOperationServerBasePath = operationServerMap['ThreadsApi.getThreads']?.[localVarOperationServerIndex]?.url;
|
|
145842
145849
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -145902,7 +145909,7 @@ export const ThreadsApiFactory = function (configuration?: Configuration, basePa
|
|
|
145902
145909
|
* @throws {RequiredError}
|
|
145903
145910
|
*/
|
|
145904
145911
|
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));
|
|
145912
|
+
return localVarFp.getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
145906
145913
|
},
|
|
145907
145914
|
/**
|
|
145908
145915
|
* Update Thread endpoint
|
|
@@ -145948,6 +145955,11 @@ export interface ThreadsApiGetThreadRequest {
|
|
|
145948
145955
|
* Request parameters for getThreads operation in ThreadsApi.
|
|
145949
145956
|
*/
|
|
145950
145957
|
export interface ThreadsApiGetThreadsRequest {
|
|
145958
|
+
/**
|
|
145959
|
+
* Filter by type
|
|
145960
|
+
*/
|
|
145961
|
+
readonly type?: ThreadType
|
|
145962
|
+
|
|
145951
145963
|
/**
|
|
145952
145964
|
* Page number
|
|
145953
145965
|
*/
|
|
@@ -146026,7 +146038,7 @@ export class ThreadsApi extends BaseAPI {
|
|
|
146026
146038
|
* @throws {RequiredError}
|
|
146027
146039
|
*/
|
|
146028
146040
|
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));
|
|
146041
|
+
return ThreadsApiFp(this.configuration).getThreads(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
146030
146042
|
}
|
|
146031
146043
|
|
|
146032
146044
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -2356,8 +2356,8 @@ export interface BaseThread {
|
|
|
2356
2356
|
export interface BaseThreadMessage {
|
|
2357
2357
|
'id': string;
|
|
2358
2358
|
'body': string;
|
|
2359
|
-
'accountId': string
|
|
2360
|
-
'threadAccount': ThreadAccount
|
|
2359
|
+
'accountId': string;
|
|
2360
|
+
'threadAccount': ThreadAccount;
|
|
2361
2361
|
'createdAt': string;
|
|
2362
2362
|
'editedAt': string | null;
|
|
2363
2363
|
'sentAt': string;
|
|
@@ -12128,12 +12128,13 @@ export interface Thread {
|
|
|
12128
12128
|
export interface ThreadAccount {
|
|
12129
12129
|
'id': string;
|
|
12130
12130
|
'threadId': string;
|
|
12131
|
-
'accountId': string;
|
|
12132
|
-
'account': BaseAccount;
|
|
12131
|
+
'accountId': string | null;
|
|
12132
|
+
'account': BaseAccount | null;
|
|
12133
12133
|
'lastReadAt': string | null;
|
|
12134
12134
|
'typingAt': string | null;
|
|
12135
12135
|
'notifications': boolean;
|
|
12136
12136
|
'blocked': boolean;
|
|
12137
|
+
'leftAt': string | null;
|
|
12137
12138
|
'createdAt': string;
|
|
12138
12139
|
'updatedAt': string;
|
|
12139
12140
|
}
|
|
@@ -12152,8 +12153,8 @@ export interface ThreadCreateInputs {
|
|
|
12152
12153
|
export interface ThreadMessage {
|
|
12153
12154
|
'id': string;
|
|
12154
12155
|
'body': string;
|
|
12155
|
-
'accountId': string
|
|
12156
|
-
'threadAccount': ThreadAccount
|
|
12156
|
+
'accountId': string;
|
|
12157
|
+
'threadAccount': ThreadAccount;
|
|
12157
12158
|
'createdAt': string;
|
|
12158
12159
|
'editedAt': string | null;
|
|
12159
12160
|
'sentAt': string;
|
|
@@ -79081,6 +79082,7 @@ export declare const ThreadsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
79081
79082
|
/**
|
|
79082
79083
|
* Get Threads endpoint
|
|
79083
79084
|
* @summary Get Threads
|
|
79085
|
+
* @param {ThreadType} [type] Filter by type
|
|
79084
79086
|
* @param {number} [page] Page number
|
|
79085
79087
|
* @param {number} [pageSize] Number of items per page
|
|
79086
79088
|
* @param {string} [orderBy] Field to order by
|
|
@@ -79088,7 +79090,7 @@ export declare const ThreadsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
79088
79090
|
* @param {*} [options] Override http request option.
|
|
79089
79091
|
* @throws {RequiredError}
|
|
79090
79092
|
*/
|
|
79091
|
-
getThreads: (page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
79093
|
+
getThreads: (type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
79092
79094
|
/**
|
|
79093
79095
|
* Update Thread endpoint
|
|
79094
79096
|
* @summary Update Thread
|
|
@@ -79130,6 +79132,7 @@ export declare const ThreadsApiFp: (configuration?: Configuration) => {
|
|
|
79130
79132
|
/**
|
|
79131
79133
|
* Get Threads endpoint
|
|
79132
79134
|
* @summary Get Threads
|
|
79135
|
+
* @param {ThreadType} [type] Filter by type
|
|
79133
79136
|
* @param {number} [page] Page number
|
|
79134
79137
|
* @param {number} [pageSize] Number of items per page
|
|
79135
79138
|
* @param {string} [orderBy] Field to order by
|
|
@@ -79137,7 +79140,7 @@ export declare const ThreadsApiFp: (configuration?: Configuration) => {
|
|
|
79137
79140
|
* @param {*} [options] Override http request option.
|
|
79138
79141
|
* @throws {RequiredError}
|
|
79139
79142
|
*/
|
|
79140
|
-
getThreads(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>>;
|
|
79143
|
+
getThreads(type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>>;
|
|
79141
79144
|
/**
|
|
79142
79145
|
* Update Thread endpoint
|
|
79143
79146
|
* @summary Update Thread
|
|
@@ -79221,6 +79224,10 @@ export interface ThreadsApiGetThreadRequest {
|
|
|
79221
79224
|
* Request parameters for getThreads operation in ThreadsApi.
|
|
79222
79225
|
*/
|
|
79223
79226
|
export interface ThreadsApiGetThreadsRequest {
|
|
79227
|
+
/**
|
|
79228
|
+
* Filter by type
|
|
79229
|
+
*/
|
|
79230
|
+
readonly type?: ThreadType;
|
|
79224
79231
|
/**
|
|
79225
79232
|
* Page number
|
|
79226
79233
|
*/
|
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
|
@@ -2356,8 +2356,8 @@ export interface BaseThread {
|
|
|
2356
2356
|
export interface BaseThreadMessage {
|
|
2357
2357
|
'id': string;
|
|
2358
2358
|
'body': string;
|
|
2359
|
-
'accountId': string
|
|
2360
|
-
'threadAccount': ThreadAccount
|
|
2359
|
+
'accountId': string;
|
|
2360
|
+
'threadAccount': ThreadAccount;
|
|
2361
2361
|
'createdAt': string;
|
|
2362
2362
|
'editedAt': string | null;
|
|
2363
2363
|
'sentAt': string;
|
|
@@ -12128,12 +12128,13 @@ export interface Thread {
|
|
|
12128
12128
|
export interface ThreadAccount {
|
|
12129
12129
|
'id': string;
|
|
12130
12130
|
'threadId': string;
|
|
12131
|
-
'accountId': string;
|
|
12132
|
-
'account': BaseAccount;
|
|
12131
|
+
'accountId': string | null;
|
|
12132
|
+
'account': BaseAccount | null;
|
|
12133
12133
|
'lastReadAt': string | null;
|
|
12134
12134
|
'typingAt': string | null;
|
|
12135
12135
|
'notifications': boolean;
|
|
12136
12136
|
'blocked': boolean;
|
|
12137
|
+
'leftAt': string | null;
|
|
12137
12138
|
'createdAt': string;
|
|
12138
12139
|
'updatedAt': string;
|
|
12139
12140
|
}
|
|
@@ -12152,8 +12153,8 @@ export interface ThreadCreateInputs {
|
|
|
12152
12153
|
export interface ThreadMessage {
|
|
12153
12154
|
'id': string;
|
|
12154
12155
|
'body': string;
|
|
12155
|
-
'accountId': string
|
|
12156
|
-
'threadAccount': ThreadAccount
|
|
12156
|
+
'accountId': string;
|
|
12157
|
+
'threadAccount': ThreadAccount;
|
|
12157
12158
|
'createdAt': string;
|
|
12158
12159
|
'editedAt': string | null;
|
|
12159
12160
|
'sentAt': string;
|
|
@@ -79081,6 +79082,7 @@ export declare const ThreadsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
79081
79082
|
/**
|
|
79082
79083
|
* Get Threads endpoint
|
|
79083
79084
|
* @summary Get Threads
|
|
79085
|
+
* @param {ThreadType} [type] Filter by type
|
|
79084
79086
|
* @param {number} [page] Page number
|
|
79085
79087
|
* @param {number} [pageSize] Number of items per page
|
|
79086
79088
|
* @param {string} [orderBy] Field to order by
|
|
@@ -79088,7 +79090,7 @@ export declare const ThreadsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
79088
79090
|
* @param {*} [options] Override http request option.
|
|
79089
79091
|
* @throws {RequiredError}
|
|
79090
79092
|
*/
|
|
79091
|
-
getThreads: (page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
79093
|
+
getThreads: (type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
79092
79094
|
/**
|
|
79093
79095
|
* Update Thread endpoint
|
|
79094
79096
|
* @summary Update Thread
|
|
@@ -79130,6 +79132,7 @@ export declare const ThreadsApiFp: (configuration?: Configuration) => {
|
|
|
79130
79132
|
/**
|
|
79131
79133
|
* Get Threads endpoint
|
|
79132
79134
|
* @summary Get Threads
|
|
79135
|
+
* @param {ThreadType} [type] Filter by type
|
|
79133
79136
|
* @param {number} [page] Page number
|
|
79134
79137
|
* @param {number} [pageSize] Number of items per page
|
|
79135
79138
|
* @param {string} [orderBy] Field to order by
|
|
@@ -79137,7 +79140,7 @@ export declare const ThreadsApiFp: (configuration?: Configuration) => {
|
|
|
79137
79140
|
* @param {*} [options] Override http request option.
|
|
79138
79141
|
* @throws {RequiredError}
|
|
79139
79142
|
*/
|
|
79140
|
-
getThreads(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>>;
|
|
79143
|
+
getThreads(type?: ThreadType, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>>;
|
|
79141
79144
|
/**
|
|
79142
79145
|
* Update Thread endpoint
|
|
79143
79146
|
* @summary Update Thread
|
|
@@ -79221,6 +79224,10 @@ export interface ThreadsApiGetThreadRequest {
|
|
|
79221
79224
|
* Request parameters for getThreads operation in ThreadsApi.
|
|
79222
79225
|
*/
|
|
79223
79226
|
export interface ThreadsApiGetThreadsRequest {
|
|
79227
|
+
/**
|
|
79228
|
+
* Filter by type
|
|
79229
|
+
*/
|
|
79230
|
+
readonly type?: ThreadType;
|
|
79224
79231
|
/**
|
|
79225
79232
|
* Page number
|
|
79226
79233
|
*/
|
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
|
package/docs/ThreadAccount.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**typingAt** | **string** | | [default to undefined]
|
|
14
14
|
**notifications** | **boolean** | | [default to undefined]
|
|
15
15
|
**blocked** | **boolean** | | [default to undefined]
|
|
16
|
+
**leftAt** | **string** | | [default to undefined]
|
|
16
17
|
**createdAt** | **string** | | [default to undefined]
|
|
17
18
|
**updatedAt** | **string** | | [default to undefined]
|
|
18
19
|
|
|
@@ -30,6 +31,7 @@ const instance: ThreadAccount = {
|
|
|
30
31
|
typingAt,
|
|
31
32
|
notifications,
|
|
32
33
|
blocked,
|
|
34
|
+
leftAt,
|
|
33
35
|
createdAt,
|
|
34
36
|
updatedAt,
|
|
35
37
|
};
|
package/docs/ThreadsApi.md
CHANGED
|
@@ -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|
|