@connectedxm/admin-sdk 7.0.1 → 7.0.3
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/.openapi-generator/FILES +1 -0
- package/AdminApi.ts +3 -0
- package/README.md +3 -0
- package/api.ts +419 -1
- package/dist/AdminApi.d.ts +2 -1
- package/dist/AdminApi.js +1 -0
- package/dist/api.d.ts +217 -1
- package/dist/api.js +304 -1
- package/dist/esm/AdminApi.d.ts +2 -1
- package/dist/esm/AdminApi.js +2 -1
- package/dist/esm/api.d.ts +217 -1
- package/dist/esm/api.js +299 -0
- package/docs/ThreadsStorageApi.md +199 -0
- package/docs/VideoSource.md +2 -0
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -12525,7 +12525,8 @@ export declare enum VideoCaptionStatusEnum {
|
|
|
12525
12525
|
export declare enum VideoSource {
|
|
12526
12526
|
Admin = "admin",
|
|
12527
12527
|
Activity = "activity",
|
|
12528
|
-
Content = "content"
|
|
12528
|
+
Content = "content",
|
|
12529
|
+
Thread = "thread"
|
|
12529
12530
|
}
|
|
12530
12531
|
export declare enum VideoStatus {
|
|
12531
12532
|
Pendingupload = "pendingupload",
|
|
@@ -80462,6 +80463,221 @@ export declare class ThreadsMessagesVideosApi extends BaseAPI {
|
|
|
80462
80463
|
*/
|
|
80463
80464
|
getThreadMessageVideos(requestParameters: ThreadsMessagesVideosApiGetThreadMessageVideosRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetThreadMessageVideos200Response, any, {}>>;
|
|
80464
80465
|
}
|
|
80466
|
+
/**
|
|
80467
|
+
* ThreadsStorageApi - axios parameter creator
|
|
80468
|
+
*/
|
|
80469
|
+
export declare const ThreadsStorageApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
80470
|
+
/**
|
|
80471
|
+
* Get Thread Storage Files endpoint
|
|
80472
|
+
* @summary Get Thread Storage Files
|
|
80473
|
+
* @param {string} threadId The thread identifier
|
|
80474
|
+
* @param {number} [page] Page number
|
|
80475
|
+
* @param {number} [pageSize] Number of items per page
|
|
80476
|
+
* @param {string} [orderBy] Field to order by
|
|
80477
|
+
* @param {string} [search] Search query
|
|
80478
|
+
* @param {*} [options] Override http request option.
|
|
80479
|
+
* @throws {RequiredError}
|
|
80480
|
+
*/
|
|
80481
|
+
getThreadStorageFiles: (threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
80482
|
+
/**
|
|
80483
|
+
* Get Thread Storage Images endpoint
|
|
80484
|
+
* @summary Get Thread Storage Images
|
|
80485
|
+
* @param {string} threadId The thread identifier
|
|
80486
|
+
* @param {number} [page] Page number
|
|
80487
|
+
* @param {number} [pageSize] Number of items per page
|
|
80488
|
+
* @param {string} [orderBy] Field to order by
|
|
80489
|
+
* @param {string} [search] Search query
|
|
80490
|
+
* @param {*} [options] Override http request option.
|
|
80491
|
+
* @throws {RequiredError}
|
|
80492
|
+
*/
|
|
80493
|
+
getThreadStorageImages: (threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
80494
|
+
/**
|
|
80495
|
+
* Get Thread Storage Videos endpoint
|
|
80496
|
+
* @summary Get Thread Storage Videos
|
|
80497
|
+
* @param {string} threadId The thread identifier
|
|
80498
|
+
* @param {number} [page] Page number
|
|
80499
|
+
* @param {number} [pageSize] Number of items per page
|
|
80500
|
+
* @param {string} [orderBy] Field to order by
|
|
80501
|
+
* @param {string} [search] Search query
|
|
80502
|
+
* @param {*} [options] Override http request option.
|
|
80503
|
+
* @throws {RequiredError}
|
|
80504
|
+
*/
|
|
80505
|
+
getThreadStorageVideos: (threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
80506
|
+
};
|
|
80507
|
+
/**
|
|
80508
|
+
* ThreadsStorageApi - functional programming interface
|
|
80509
|
+
*/
|
|
80510
|
+
export declare const ThreadsStorageApiFp: (configuration?: Configuration) => {
|
|
80511
|
+
/**
|
|
80512
|
+
* Get Thread Storage Files endpoint
|
|
80513
|
+
* @summary Get Thread Storage Files
|
|
80514
|
+
* @param {string} threadId The thread identifier
|
|
80515
|
+
* @param {number} [page] Page number
|
|
80516
|
+
* @param {number} [pageSize] Number of items per page
|
|
80517
|
+
* @param {string} [orderBy] Field to order by
|
|
80518
|
+
* @param {string} [search] Search query
|
|
80519
|
+
* @param {*} [options] Override http request option.
|
|
80520
|
+
* @throws {RequiredError}
|
|
80521
|
+
*/
|
|
80522
|
+
getThreadStorageFiles(threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFiles200Response>>;
|
|
80523
|
+
/**
|
|
80524
|
+
* Get Thread Storage Images endpoint
|
|
80525
|
+
* @summary Get Thread Storage Images
|
|
80526
|
+
* @param {string} threadId The thread identifier
|
|
80527
|
+
* @param {number} [page] Page number
|
|
80528
|
+
* @param {number} [pageSize] Number of items per page
|
|
80529
|
+
* @param {string} [orderBy] Field to order by
|
|
80530
|
+
* @param {string} [search] Search query
|
|
80531
|
+
* @param {*} [options] Override http request option.
|
|
80532
|
+
* @throws {RequiredError}
|
|
80533
|
+
*/
|
|
80534
|
+
getThreadStorageImages(threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEventPageImages200Response>>;
|
|
80535
|
+
/**
|
|
80536
|
+
* Get Thread Storage Videos endpoint
|
|
80537
|
+
* @summary Get Thread Storage Videos
|
|
80538
|
+
* @param {string} threadId The thread identifier
|
|
80539
|
+
* @param {number} [page] Page number
|
|
80540
|
+
* @param {number} [pageSize] Number of items per page
|
|
80541
|
+
* @param {string} [orderBy] Field to order by
|
|
80542
|
+
* @param {string} [search] Search query
|
|
80543
|
+
* @param {*} [options] Override http request option.
|
|
80544
|
+
* @throws {RequiredError}
|
|
80545
|
+
*/
|
|
80546
|
+
getThreadStorageVideos(threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamVideos200Response>>;
|
|
80547
|
+
};
|
|
80548
|
+
/**
|
|
80549
|
+
* ThreadsStorageApi - factory interface
|
|
80550
|
+
*/
|
|
80551
|
+
export declare const ThreadsStorageApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
80552
|
+
/**
|
|
80553
|
+
* Get Thread Storage Files endpoint
|
|
80554
|
+
* @summary Get Thread Storage Files
|
|
80555
|
+
* @param {ThreadsStorageApiGetThreadStorageFilesRequest} requestParameters Request parameters.
|
|
80556
|
+
* @param {*} [options] Override http request option.
|
|
80557
|
+
* @throws {RequiredError}
|
|
80558
|
+
*/
|
|
80559
|
+
getThreadStorageFiles(requestParameters: ThreadsStorageApiGetThreadStorageFilesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFiles200Response>;
|
|
80560
|
+
/**
|
|
80561
|
+
* Get Thread Storage Images endpoint
|
|
80562
|
+
* @summary Get Thread Storage Images
|
|
80563
|
+
* @param {ThreadsStorageApiGetThreadStorageImagesRequest} requestParameters Request parameters.
|
|
80564
|
+
* @param {*} [options] Override http request option.
|
|
80565
|
+
* @throws {RequiredError}
|
|
80566
|
+
*/
|
|
80567
|
+
getThreadStorageImages(requestParameters: ThreadsStorageApiGetThreadStorageImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEventPageImages200Response>;
|
|
80568
|
+
/**
|
|
80569
|
+
* Get Thread Storage Videos endpoint
|
|
80570
|
+
* @summary Get Thread Storage Videos
|
|
80571
|
+
* @param {ThreadsStorageApiGetThreadStorageVideosRequest} requestParameters Request parameters.
|
|
80572
|
+
* @param {*} [options] Override http request option.
|
|
80573
|
+
* @throws {RequiredError}
|
|
80574
|
+
*/
|
|
80575
|
+
getThreadStorageVideos(requestParameters: ThreadsStorageApiGetThreadStorageVideosRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamVideos200Response>;
|
|
80576
|
+
};
|
|
80577
|
+
/**
|
|
80578
|
+
* Request parameters for getThreadStorageFiles operation in ThreadsStorageApi.
|
|
80579
|
+
*/
|
|
80580
|
+
export interface ThreadsStorageApiGetThreadStorageFilesRequest {
|
|
80581
|
+
/**
|
|
80582
|
+
* The thread identifier
|
|
80583
|
+
*/
|
|
80584
|
+
readonly threadId: string;
|
|
80585
|
+
/**
|
|
80586
|
+
* Page number
|
|
80587
|
+
*/
|
|
80588
|
+
readonly page?: number;
|
|
80589
|
+
/**
|
|
80590
|
+
* Number of items per page
|
|
80591
|
+
*/
|
|
80592
|
+
readonly pageSize?: number;
|
|
80593
|
+
/**
|
|
80594
|
+
* Field to order by
|
|
80595
|
+
*/
|
|
80596
|
+
readonly orderBy?: string;
|
|
80597
|
+
/**
|
|
80598
|
+
* Search query
|
|
80599
|
+
*/
|
|
80600
|
+
readonly search?: string;
|
|
80601
|
+
}
|
|
80602
|
+
/**
|
|
80603
|
+
* Request parameters for getThreadStorageImages operation in ThreadsStorageApi.
|
|
80604
|
+
*/
|
|
80605
|
+
export interface ThreadsStorageApiGetThreadStorageImagesRequest {
|
|
80606
|
+
/**
|
|
80607
|
+
* The thread identifier
|
|
80608
|
+
*/
|
|
80609
|
+
readonly threadId: string;
|
|
80610
|
+
/**
|
|
80611
|
+
* Page number
|
|
80612
|
+
*/
|
|
80613
|
+
readonly page?: number;
|
|
80614
|
+
/**
|
|
80615
|
+
* Number of items per page
|
|
80616
|
+
*/
|
|
80617
|
+
readonly pageSize?: number;
|
|
80618
|
+
/**
|
|
80619
|
+
* Field to order by
|
|
80620
|
+
*/
|
|
80621
|
+
readonly orderBy?: string;
|
|
80622
|
+
/**
|
|
80623
|
+
* Search query
|
|
80624
|
+
*/
|
|
80625
|
+
readonly search?: string;
|
|
80626
|
+
}
|
|
80627
|
+
/**
|
|
80628
|
+
* Request parameters for getThreadStorageVideos operation in ThreadsStorageApi.
|
|
80629
|
+
*/
|
|
80630
|
+
export interface ThreadsStorageApiGetThreadStorageVideosRequest {
|
|
80631
|
+
/**
|
|
80632
|
+
* The thread identifier
|
|
80633
|
+
*/
|
|
80634
|
+
readonly threadId: string;
|
|
80635
|
+
/**
|
|
80636
|
+
* Page number
|
|
80637
|
+
*/
|
|
80638
|
+
readonly page?: number;
|
|
80639
|
+
/**
|
|
80640
|
+
* Number of items per page
|
|
80641
|
+
*/
|
|
80642
|
+
readonly pageSize?: number;
|
|
80643
|
+
/**
|
|
80644
|
+
* Field to order by
|
|
80645
|
+
*/
|
|
80646
|
+
readonly orderBy?: string;
|
|
80647
|
+
/**
|
|
80648
|
+
* Search query
|
|
80649
|
+
*/
|
|
80650
|
+
readonly search?: string;
|
|
80651
|
+
}
|
|
80652
|
+
/**
|
|
80653
|
+
* ThreadsStorageApi - object-oriented interface
|
|
80654
|
+
*/
|
|
80655
|
+
export declare class ThreadsStorageApi extends BaseAPI {
|
|
80656
|
+
/**
|
|
80657
|
+
* Get Thread Storage Files endpoint
|
|
80658
|
+
* @summary Get Thread Storage Files
|
|
80659
|
+
* @param {ThreadsStorageApiGetThreadStorageFilesRequest} requestParameters Request parameters.
|
|
80660
|
+
* @param {*} [options] Override http request option.
|
|
80661
|
+
* @throws {RequiredError}
|
|
80662
|
+
*/
|
|
80663
|
+
getThreadStorageFiles(requestParameters: ThreadsStorageApiGetThreadStorageFilesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFiles200Response, any, {}>>;
|
|
80664
|
+
/**
|
|
80665
|
+
* Get Thread Storage Images endpoint
|
|
80666
|
+
* @summary Get Thread Storage Images
|
|
80667
|
+
* @param {ThreadsStorageApiGetThreadStorageImagesRequest} requestParameters Request parameters.
|
|
80668
|
+
* @param {*} [options] Override http request option.
|
|
80669
|
+
* @throws {RequiredError}
|
|
80670
|
+
*/
|
|
80671
|
+
getThreadStorageImages(requestParameters: ThreadsStorageApiGetThreadStorageImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventPageImages200Response, any, {}>>;
|
|
80672
|
+
/**
|
|
80673
|
+
* Get Thread Storage Videos endpoint
|
|
80674
|
+
* @summary Get Thread Storage Videos
|
|
80675
|
+
* @param {ThreadsStorageApiGetThreadStorageVideosRequest} requestParameters Request parameters.
|
|
80676
|
+
* @param {*} [options] Override http request option.
|
|
80677
|
+
* @throws {RequiredError}
|
|
80678
|
+
*/
|
|
80679
|
+
getThreadStorageVideos(requestParameters: ThreadsStorageApiGetThreadStorageVideosRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetStreamVideos200Response, any, {}>>;
|
|
80680
|
+
}
|
|
80465
80681
|
/**
|
|
80466
80682
|
* TiersApi - axios parameter creator
|
|
80467
80683
|
*/
|
package/dist/esm/api.js
CHANGED
|
@@ -2645,6 +2645,7 @@ export var VideoSource;
|
|
|
2645
2645
|
VideoSource["Admin"] = "admin";
|
|
2646
2646
|
VideoSource["Activity"] = "activity";
|
|
2647
2647
|
VideoSource["Content"] = "content";
|
|
2648
|
+
VideoSource["Thread"] = "thread";
|
|
2648
2649
|
})(VideoSource || (VideoSource = {}));
|
|
2649
2650
|
export var VideoStatus;
|
|
2650
2651
|
(function (VideoStatus) {
|
|
@@ -105088,6 +105089,304 @@ export class ThreadsMessagesVideosApi extends BaseAPI {
|
|
|
105088
105089
|
return ThreadsMessagesVideosApiFp(this.configuration).getThreadMessageVideos(requestParameters.threadId, requestParameters.messageId, options).then((request) => request(this.axios, this.basePath));
|
|
105089
105090
|
}
|
|
105090
105091
|
}
|
|
105092
|
+
/**
|
|
105093
|
+
* ThreadsStorageApi - axios parameter creator
|
|
105094
|
+
*/
|
|
105095
|
+
export const ThreadsStorageApiAxiosParamCreator = function (configuration) {
|
|
105096
|
+
return {
|
|
105097
|
+
/**
|
|
105098
|
+
* Get Thread Storage Files endpoint
|
|
105099
|
+
* @summary Get Thread Storage Files
|
|
105100
|
+
* @param {string} threadId The thread identifier
|
|
105101
|
+
* @param {number} [page] Page number
|
|
105102
|
+
* @param {number} [pageSize] Number of items per page
|
|
105103
|
+
* @param {string} [orderBy] Field to order by
|
|
105104
|
+
* @param {string} [search] Search query
|
|
105105
|
+
* @param {*} [options] Override http request option.
|
|
105106
|
+
* @throws {RequiredError}
|
|
105107
|
+
*/
|
|
105108
|
+
getThreadStorageFiles: (threadId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [threadId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (threadId, page, pageSize, orderBy, search, options = {}) {
|
|
105109
|
+
// verify required parameter 'threadId' is not null or undefined
|
|
105110
|
+
assertParamExists('getThreadStorageFiles', 'threadId', threadId);
|
|
105111
|
+
const localVarPath = `/threads/{threadId}/storage/files`
|
|
105112
|
+
.replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
|
|
105113
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105114
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105115
|
+
let baseOptions;
|
|
105116
|
+
if (configuration) {
|
|
105117
|
+
baseOptions = configuration.baseOptions;
|
|
105118
|
+
}
|
|
105119
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
105120
|
+
const localVarHeaderParameter = {};
|
|
105121
|
+
const localVarQueryParameter = {};
|
|
105122
|
+
// authentication ApiKeyAuth required
|
|
105123
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
105124
|
+
// authentication OrganizationId required
|
|
105125
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
105126
|
+
if (page !== undefined) {
|
|
105127
|
+
localVarQueryParameter['page'] = page;
|
|
105128
|
+
}
|
|
105129
|
+
if (pageSize !== undefined) {
|
|
105130
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
105131
|
+
}
|
|
105132
|
+
if (orderBy !== undefined) {
|
|
105133
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
105134
|
+
}
|
|
105135
|
+
if (search !== undefined) {
|
|
105136
|
+
localVarQueryParameter['search'] = search;
|
|
105137
|
+
}
|
|
105138
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
105139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
105140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105141
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
105142
|
+
return {
|
|
105143
|
+
url: toPathString(localVarUrlObj),
|
|
105144
|
+
options: localVarRequestOptions,
|
|
105145
|
+
};
|
|
105146
|
+
}),
|
|
105147
|
+
/**
|
|
105148
|
+
* Get Thread Storage Images endpoint
|
|
105149
|
+
* @summary Get Thread Storage Images
|
|
105150
|
+
* @param {string} threadId The thread identifier
|
|
105151
|
+
* @param {number} [page] Page number
|
|
105152
|
+
* @param {number} [pageSize] Number of items per page
|
|
105153
|
+
* @param {string} [orderBy] Field to order by
|
|
105154
|
+
* @param {string} [search] Search query
|
|
105155
|
+
* @param {*} [options] Override http request option.
|
|
105156
|
+
* @throws {RequiredError}
|
|
105157
|
+
*/
|
|
105158
|
+
getThreadStorageImages: (threadId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [threadId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (threadId, page, pageSize, orderBy, search, options = {}) {
|
|
105159
|
+
// verify required parameter 'threadId' is not null or undefined
|
|
105160
|
+
assertParamExists('getThreadStorageImages', 'threadId', threadId);
|
|
105161
|
+
const localVarPath = `/threads/{threadId}/storage/images`
|
|
105162
|
+
.replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
|
|
105163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105164
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105165
|
+
let baseOptions;
|
|
105166
|
+
if (configuration) {
|
|
105167
|
+
baseOptions = configuration.baseOptions;
|
|
105168
|
+
}
|
|
105169
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
105170
|
+
const localVarHeaderParameter = {};
|
|
105171
|
+
const localVarQueryParameter = {};
|
|
105172
|
+
// authentication ApiKeyAuth required
|
|
105173
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
105174
|
+
// authentication OrganizationId required
|
|
105175
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
105176
|
+
if (page !== undefined) {
|
|
105177
|
+
localVarQueryParameter['page'] = page;
|
|
105178
|
+
}
|
|
105179
|
+
if (pageSize !== undefined) {
|
|
105180
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
105181
|
+
}
|
|
105182
|
+
if (orderBy !== undefined) {
|
|
105183
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
105184
|
+
}
|
|
105185
|
+
if (search !== undefined) {
|
|
105186
|
+
localVarQueryParameter['search'] = search;
|
|
105187
|
+
}
|
|
105188
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
105189
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
105190
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105191
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
105192
|
+
return {
|
|
105193
|
+
url: toPathString(localVarUrlObj),
|
|
105194
|
+
options: localVarRequestOptions,
|
|
105195
|
+
};
|
|
105196
|
+
}),
|
|
105197
|
+
/**
|
|
105198
|
+
* Get Thread Storage Videos endpoint
|
|
105199
|
+
* @summary Get Thread Storage Videos
|
|
105200
|
+
* @param {string} threadId The thread identifier
|
|
105201
|
+
* @param {number} [page] Page number
|
|
105202
|
+
* @param {number} [pageSize] Number of items per page
|
|
105203
|
+
* @param {string} [orderBy] Field to order by
|
|
105204
|
+
* @param {string} [search] Search query
|
|
105205
|
+
* @param {*} [options] Override http request option.
|
|
105206
|
+
* @throws {RequiredError}
|
|
105207
|
+
*/
|
|
105208
|
+
getThreadStorageVideos: (threadId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [threadId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (threadId, page, pageSize, orderBy, search, options = {}) {
|
|
105209
|
+
// verify required parameter 'threadId' is not null or undefined
|
|
105210
|
+
assertParamExists('getThreadStorageVideos', 'threadId', threadId);
|
|
105211
|
+
const localVarPath = `/threads/{threadId}/storage/videos`
|
|
105212
|
+
.replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
|
|
105213
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105214
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105215
|
+
let baseOptions;
|
|
105216
|
+
if (configuration) {
|
|
105217
|
+
baseOptions = configuration.baseOptions;
|
|
105218
|
+
}
|
|
105219
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
105220
|
+
const localVarHeaderParameter = {};
|
|
105221
|
+
const localVarQueryParameter = {};
|
|
105222
|
+
// authentication ApiKeyAuth required
|
|
105223
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
105224
|
+
// authentication OrganizationId required
|
|
105225
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
105226
|
+
if (page !== undefined) {
|
|
105227
|
+
localVarQueryParameter['page'] = page;
|
|
105228
|
+
}
|
|
105229
|
+
if (pageSize !== undefined) {
|
|
105230
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
105231
|
+
}
|
|
105232
|
+
if (orderBy !== undefined) {
|
|
105233
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
105234
|
+
}
|
|
105235
|
+
if (search !== undefined) {
|
|
105236
|
+
localVarQueryParameter['search'] = search;
|
|
105237
|
+
}
|
|
105238
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
105239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
105240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105241
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
105242
|
+
return {
|
|
105243
|
+
url: toPathString(localVarUrlObj),
|
|
105244
|
+
options: localVarRequestOptions,
|
|
105245
|
+
};
|
|
105246
|
+
}),
|
|
105247
|
+
};
|
|
105248
|
+
};
|
|
105249
|
+
/**
|
|
105250
|
+
* ThreadsStorageApi - functional programming interface
|
|
105251
|
+
*/
|
|
105252
|
+
export const ThreadsStorageApiFp = function (configuration) {
|
|
105253
|
+
const localVarAxiosParamCreator = ThreadsStorageApiAxiosParamCreator(configuration);
|
|
105254
|
+
return {
|
|
105255
|
+
/**
|
|
105256
|
+
* Get Thread Storage Files endpoint
|
|
105257
|
+
* @summary Get Thread Storage Files
|
|
105258
|
+
* @param {string} threadId The thread identifier
|
|
105259
|
+
* @param {number} [page] Page number
|
|
105260
|
+
* @param {number} [pageSize] Number of items per page
|
|
105261
|
+
* @param {string} [orderBy] Field to order by
|
|
105262
|
+
* @param {string} [search] Search query
|
|
105263
|
+
* @param {*} [options] Override http request option.
|
|
105264
|
+
* @throws {RequiredError}
|
|
105265
|
+
*/
|
|
105266
|
+
getThreadStorageFiles(threadId, page, pageSize, orderBy, search, options) {
|
|
105267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105268
|
+
var _a, _b, _c;
|
|
105269
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreadStorageFiles(threadId, page, pageSize, orderBy, search, options);
|
|
105270
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
105271
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ThreadsStorageApi.getThreadStorageFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
105272
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
105273
|
+
});
|
|
105274
|
+
},
|
|
105275
|
+
/**
|
|
105276
|
+
* Get Thread Storage Images endpoint
|
|
105277
|
+
* @summary Get Thread Storage Images
|
|
105278
|
+
* @param {string} threadId The thread identifier
|
|
105279
|
+
* @param {number} [page] Page number
|
|
105280
|
+
* @param {number} [pageSize] Number of items per page
|
|
105281
|
+
* @param {string} [orderBy] Field to order by
|
|
105282
|
+
* @param {string} [search] Search query
|
|
105283
|
+
* @param {*} [options] Override http request option.
|
|
105284
|
+
* @throws {RequiredError}
|
|
105285
|
+
*/
|
|
105286
|
+
getThreadStorageImages(threadId, page, pageSize, orderBy, search, options) {
|
|
105287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105288
|
+
var _a, _b, _c;
|
|
105289
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreadStorageImages(threadId, page, pageSize, orderBy, search, options);
|
|
105290
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
105291
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ThreadsStorageApi.getThreadStorageImages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
105292
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
105293
|
+
});
|
|
105294
|
+
},
|
|
105295
|
+
/**
|
|
105296
|
+
* Get Thread Storage Videos endpoint
|
|
105297
|
+
* @summary Get Thread Storage Videos
|
|
105298
|
+
* @param {string} threadId The thread identifier
|
|
105299
|
+
* @param {number} [page] Page number
|
|
105300
|
+
* @param {number} [pageSize] Number of items per page
|
|
105301
|
+
* @param {string} [orderBy] Field to order by
|
|
105302
|
+
* @param {string} [search] Search query
|
|
105303
|
+
* @param {*} [options] Override http request option.
|
|
105304
|
+
* @throws {RequiredError}
|
|
105305
|
+
*/
|
|
105306
|
+
getThreadStorageVideos(threadId, page, pageSize, orderBy, search, options) {
|
|
105307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105308
|
+
var _a, _b, _c;
|
|
105309
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreadStorageVideos(threadId, page, pageSize, orderBy, search, options);
|
|
105310
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
105311
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ThreadsStorageApi.getThreadStorageVideos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
105312
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
105313
|
+
});
|
|
105314
|
+
},
|
|
105315
|
+
};
|
|
105316
|
+
};
|
|
105317
|
+
/**
|
|
105318
|
+
* ThreadsStorageApi - factory interface
|
|
105319
|
+
*/
|
|
105320
|
+
export const ThreadsStorageApiFactory = function (configuration, basePath, axios) {
|
|
105321
|
+
const localVarFp = ThreadsStorageApiFp(configuration);
|
|
105322
|
+
return {
|
|
105323
|
+
/**
|
|
105324
|
+
* Get Thread Storage Files endpoint
|
|
105325
|
+
* @summary Get Thread Storage Files
|
|
105326
|
+
* @param {ThreadsStorageApiGetThreadStorageFilesRequest} requestParameters Request parameters.
|
|
105327
|
+
* @param {*} [options] Override http request option.
|
|
105328
|
+
* @throws {RequiredError}
|
|
105329
|
+
*/
|
|
105330
|
+
getThreadStorageFiles(requestParameters, options) {
|
|
105331
|
+
return localVarFp.getThreadStorageFiles(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
105332
|
+
},
|
|
105333
|
+
/**
|
|
105334
|
+
* Get Thread Storage Images endpoint
|
|
105335
|
+
* @summary Get Thread Storage Images
|
|
105336
|
+
* @param {ThreadsStorageApiGetThreadStorageImagesRequest} requestParameters Request parameters.
|
|
105337
|
+
* @param {*} [options] Override http request option.
|
|
105338
|
+
* @throws {RequiredError}
|
|
105339
|
+
*/
|
|
105340
|
+
getThreadStorageImages(requestParameters, options) {
|
|
105341
|
+
return localVarFp.getThreadStorageImages(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
105342
|
+
},
|
|
105343
|
+
/**
|
|
105344
|
+
* Get Thread Storage Videos endpoint
|
|
105345
|
+
* @summary Get Thread Storage Videos
|
|
105346
|
+
* @param {ThreadsStorageApiGetThreadStorageVideosRequest} requestParameters Request parameters.
|
|
105347
|
+
* @param {*} [options] Override http request option.
|
|
105348
|
+
* @throws {RequiredError}
|
|
105349
|
+
*/
|
|
105350
|
+
getThreadStorageVideos(requestParameters, options) {
|
|
105351
|
+
return localVarFp.getThreadStorageVideos(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
105352
|
+
},
|
|
105353
|
+
};
|
|
105354
|
+
};
|
|
105355
|
+
/**
|
|
105356
|
+
* ThreadsStorageApi - object-oriented interface
|
|
105357
|
+
*/
|
|
105358
|
+
export class ThreadsStorageApi extends BaseAPI {
|
|
105359
|
+
/**
|
|
105360
|
+
* Get Thread Storage Files endpoint
|
|
105361
|
+
* @summary Get Thread Storage Files
|
|
105362
|
+
* @param {ThreadsStorageApiGetThreadStorageFilesRequest} requestParameters Request parameters.
|
|
105363
|
+
* @param {*} [options] Override http request option.
|
|
105364
|
+
* @throws {RequiredError}
|
|
105365
|
+
*/
|
|
105366
|
+
getThreadStorageFiles(requestParameters, options) {
|
|
105367
|
+
return ThreadsStorageApiFp(this.configuration).getThreadStorageFiles(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
105368
|
+
}
|
|
105369
|
+
/**
|
|
105370
|
+
* Get Thread Storage Images endpoint
|
|
105371
|
+
* @summary Get Thread Storage Images
|
|
105372
|
+
* @param {ThreadsStorageApiGetThreadStorageImagesRequest} requestParameters Request parameters.
|
|
105373
|
+
* @param {*} [options] Override http request option.
|
|
105374
|
+
* @throws {RequiredError}
|
|
105375
|
+
*/
|
|
105376
|
+
getThreadStorageImages(requestParameters, options) {
|
|
105377
|
+
return ThreadsStorageApiFp(this.configuration).getThreadStorageImages(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
105378
|
+
}
|
|
105379
|
+
/**
|
|
105380
|
+
* Get Thread Storage Videos endpoint
|
|
105381
|
+
* @summary Get Thread Storage Videos
|
|
105382
|
+
* @param {ThreadsStorageApiGetThreadStorageVideosRequest} requestParameters Request parameters.
|
|
105383
|
+
* @param {*} [options] Override http request option.
|
|
105384
|
+
* @throws {RequiredError}
|
|
105385
|
+
*/
|
|
105386
|
+
getThreadStorageVideos(requestParameters, options) {
|
|
105387
|
+
return ThreadsStorageApiFp(this.configuration).getThreadStorageVideos(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
105388
|
+
}
|
|
105389
|
+
}
|
|
105091
105390
|
/**
|
|
105092
105391
|
* TiersApi - axios parameter creator
|
|
105093
105392
|
*/
|