@connectedxm/admin-sdk 6.33.1 → 7.0.1
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 +7 -26
- package/AdminApi.ts +3 -9
- package/README.md +9 -39
- package/api.ts +150 -1782
- package/dist/AdminApi.d.ts +2 -4
- package/dist/AdminApi.js +1 -3
- package/dist/api.d.ts +97 -946
- package/dist/api.js +131 -1311
- package/dist/esm/AdminApi.d.ts +2 -4
- package/dist/esm/AdminApi.js +2 -4
- package/dist/esm/api.d.ts +97 -946
- package/dist/esm/api.js +102 -1273
- package/docs/BaseThread.md +0 -2
- package/docs/BaseThreadMessage.md +4 -2
- package/docs/EventsApi.md +0 -64
- package/docs/{GetThreadCircles200Response.md → GetThreadAccounts200Response.md} +4 -4
- package/docs/GroupsApi.md +0 -64
- package/docs/Thread.md +4 -2
- package/docs/{ThreadMember.md → ThreadAccount.md} +9 -5
- package/docs/{ThreadMemberUpdateInputs.md → ThreadAccountUpdateInputs.md} +5 -3
- package/docs/{ThreadCircleCreateInputs.md → ThreadAllOfCount.md} +5 -5
- package/docs/ThreadCreateInputs.md +2 -6
- package/docs/ThreadMessage.md +6 -2
- package/docs/{BaseThreadMember.md → ThreadMessageRead.md} +9 -11
- package/docs/{ThreadsMembersApi.md → ThreadsAccountsApi.md} +31 -40
- package/docs/ThreadsApi.md +0 -3
- package/docs/{UpdateThreadMember200Response.md → UpdateThreadAccount200Response.md} +4 -4
- package/package.json +1 -1
- package/docs/BaseThreadCircle.md +0 -28
- package/docs/BaseThreadCircleAccount.md +0 -24
- package/docs/CreateThreadCircle200Response.md +0 -24
- package/docs/CreateThreadCircleAccount200Response.md +0 -24
- package/docs/GetThreadCircleAccounts200Response.md +0 -26
- package/docs/GetThreadMembers200Response.md +0 -26
- package/docs/ThreadCircle.md +0 -28
- package/docs/ThreadCircleAccount.md +0 -24
- package/docs/ThreadCircleAccountCreateInputs.md +0 -22
- package/docs/ThreadCircleAccountRole.md +0 -12
- package/docs/ThreadCircleAccountUpdateInputs.md +0 -20
- package/docs/ThreadCircleType.md +0 -10
- package/docs/ThreadCircleUpdateInputs.md +0 -20
- package/docs/ThreadInvitation.md +0 -42
- package/docs/ThreadInvitationStatus.md +0 -10
- package/docs/ThreadMemberRole.md +0 -10
- package/docs/ThreadType.md +0 -14
- package/docs/ThreadsCirclesAccountsApi.md +0 -299
- package/docs/ThreadsCirclesApi.md +0 -348
package/api.ts
CHANGED
|
@@ -2528,45 +2528,19 @@ export interface BaseThread {
|
|
|
2528
2528
|
'subject': string;
|
|
2529
2529
|
'imageId': string | null;
|
|
2530
2530
|
'image': BaseImage | null;
|
|
2531
|
-
'type': ThreadType;
|
|
2532
2531
|
'lastMessageAt': string | null;
|
|
2533
2532
|
'lastMessage': string | null;
|
|
2534
2533
|
'createdAt': string;
|
|
2535
2534
|
}
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
export interface BaseThreadCircle {
|
|
2539
|
-
'id': string;
|
|
2540
|
-
'name': string;
|
|
2541
|
-
'createdAt': string;
|
|
2542
|
-
'updatedAt': string;
|
|
2543
|
-
'type': ThreadCircleType;
|
|
2544
|
-
}
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
export interface BaseThreadCircleAccount {
|
|
2548
|
-
'accountId': string;
|
|
2549
|
-
'role': ThreadCircleAccountRole;
|
|
2550
|
-
'account': BaseAccount;
|
|
2551
|
-
}
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
export interface BaseThreadMember {
|
|
2555
|
-
'id': string;
|
|
2556
|
-
'accountId': string;
|
|
2557
|
-
'lastReadAt': string | null;
|
|
2558
|
-
'notifications': boolean;
|
|
2559
|
-
'account': BaseAccount;
|
|
2560
|
-
'blocked': boolean;
|
|
2561
|
-
}
|
|
2562
2535
|
export interface BaseThreadMessage {
|
|
2563
2536
|
'id': string;
|
|
2564
2537
|
'body': string;
|
|
2565
2538
|
'accountId': string | null;
|
|
2566
|
-
'
|
|
2539
|
+
'threadAccount': ThreadAccount | null;
|
|
2567
2540
|
'createdAt': string;
|
|
2568
2541
|
'editedAt': string | null;
|
|
2569
2542
|
'sentAt': string;
|
|
2543
|
+
'deletedAt'?: string | null;
|
|
2570
2544
|
}
|
|
2571
2545
|
export interface BaseThreadMessageEntity {
|
|
2572
2546
|
'type': string;
|
|
@@ -4409,26 +4383,6 @@ export enum CreateThread200ResponseStatusEnum {
|
|
|
4409
4383
|
Ok = 'ok'
|
|
4410
4384
|
}
|
|
4411
4385
|
|
|
4412
|
-
export interface CreateThreadCircle200Response {
|
|
4413
|
-
'status': CreateThreadCircle200ResponseStatusEnum;
|
|
4414
|
-
'message': string;
|
|
4415
|
-
'data': ThreadCircle;
|
|
4416
|
-
}
|
|
4417
|
-
|
|
4418
|
-
export enum CreateThreadCircle200ResponseStatusEnum {
|
|
4419
|
-
Ok = 'ok'
|
|
4420
|
-
}
|
|
4421
|
-
|
|
4422
|
-
export interface CreateThreadCircleAccount200Response {
|
|
4423
|
-
'status': CreateThreadCircleAccount200ResponseStatusEnum;
|
|
4424
|
-
'message': string;
|
|
4425
|
-
'data': ThreadCircleAccount;
|
|
4426
|
-
}
|
|
4427
|
-
|
|
4428
|
-
export enum CreateThreadCircleAccount200ResponseStatusEnum {
|
|
4429
|
-
Ok = 'ok'
|
|
4430
|
-
}
|
|
4431
|
-
|
|
4432
4386
|
export interface CreateThreadMessage200Response {
|
|
4433
4387
|
'status': CreateThreadMessage200ResponseStatusEnum;
|
|
4434
4388
|
'message': string;
|
|
@@ -9854,36 +9808,14 @@ export enum GetTaxLogs200ResponseStatusEnum {
|
|
|
9854
9808
|
Ok = 'ok'
|
|
9855
9809
|
}
|
|
9856
9810
|
|
|
9857
|
-
export interface
|
|
9858
|
-
'status':
|
|
9859
|
-
'message': string;
|
|
9860
|
-
'data': Array<ThreadCircleAccount>;
|
|
9861
|
-
'count'?: number;
|
|
9862
|
-
}
|
|
9863
|
-
|
|
9864
|
-
export enum GetThreadCircleAccounts200ResponseStatusEnum {
|
|
9865
|
-
Ok = 'ok'
|
|
9866
|
-
}
|
|
9867
|
-
|
|
9868
|
-
export interface GetThreadCircles200Response {
|
|
9869
|
-
'status': GetThreadCircles200ResponseStatusEnum;
|
|
9870
|
-
'message': string;
|
|
9871
|
-
'data': Array<ThreadCircle>;
|
|
9872
|
-
'count'?: number;
|
|
9873
|
-
}
|
|
9874
|
-
|
|
9875
|
-
export enum GetThreadCircles200ResponseStatusEnum {
|
|
9876
|
-
Ok = 'ok'
|
|
9877
|
-
}
|
|
9878
|
-
|
|
9879
|
-
export interface GetThreadMembers200Response {
|
|
9880
|
-
'status': GetThreadMembers200ResponseStatusEnum;
|
|
9811
|
+
export interface GetThreadAccounts200Response {
|
|
9812
|
+
'status': GetThreadAccounts200ResponseStatusEnum;
|
|
9881
9813
|
'message': string;
|
|
9882
|
-
'data': Array<
|
|
9814
|
+
'data': Array<ThreadAccount>;
|
|
9883
9815
|
'count'?: number;
|
|
9884
9816
|
}
|
|
9885
9817
|
|
|
9886
|
-
export enum
|
|
9818
|
+
export enum GetThreadAccounts200ResponseStatusEnum {
|
|
9887
9819
|
Ok = 'ok'
|
|
9888
9820
|
}
|
|
9889
9821
|
|
|
@@ -13678,119 +13610,45 @@ export interface Thread {
|
|
|
13678
13610
|
'subject': string;
|
|
13679
13611
|
'imageId': string | null;
|
|
13680
13612
|
'image': BaseImage | null;
|
|
13681
|
-
'type': ThreadType;
|
|
13682
13613
|
'lastMessageAt': string | null;
|
|
13683
13614
|
'lastMessage': string | null;
|
|
13684
13615
|
'createdAt': string;
|
|
13616
|
+
'accounts': Array<ThreadAccount>;
|
|
13617
|
+
'_count'?: ThreadAllOfCount;
|
|
13685
13618
|
}
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
export interface ThreadCircle {
|
|
13689
|
-
'id': string;
|
|
13690
|
-
'name': string;
|
|
13691
|
-
'createdAt': string;
|
|
13692
|
-
'updatedAt': string;
|
|
13693
|
-
'type': ThreadCircleType;
|
|
13694
|
-
}
|
|
13695
|
-
|
|
13696
|
-
|
|
13697
|
-
export interface ThreadCircleAccount {
|
|
13698
|
-
'accountId': string;
|
|
13699
|
-
'role': ThreadCircleAccountRole;
|
|
13700
|
-
'account': BaseAccount;
|
|
13701
|
-
}
|
|
13702
|
-
|
|
13703
|
-
|
|
13704
|
-
export interface ThreadCircleAccountCreateInputs {
|
|
13705
|
-
'accountId': string;
|
|
13706
|
-
'role': ThreadCircleAccountRole;
|
|
13707
|
-
}
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
export enum ThreadCircleAccountRole {
|
|
13712
|
-
Member = 'member',
|
|
13713
|
-
Manager = 'manager',
|
|
13714
|
-
Invited = 'invited'
|
|
13715
|
-
}
|
|
13716
|
-
|
|
13717
|
-
|
|
13718
|
-
export interface ThreadCircleAccountUpdateInputs {
|
|
13719
|
-
'role'?: ThreadCircleAccountRole | null;
|
|
13720
|
-
}
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
export interface ThreadCircleCreateInputs {
|
|
13724
|
-
'name': string;
|
|
13725
|
-
}
|
|
13726
|
-
|
|
13727
|
-
export enum ThreadCircleType {
|
|
13728
|
-
Private = 'private',
|
|
13729
|
-
Direct = 'direct'
|
|
13730
|
-
}
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
export interface ThreadCircleUpdateInputs {
|
|
13734
|
-
'name'?: string | null;
|
|
13735
|
-
}
|
|
13736
|
-
export interface ThreadCreateInputs {
|
|
13737
|
-
'subject'?: string | null;
|
|
13738
|
-
'imageId'?: string | null;
|
|
13739
|
-
'groupId'?: string;
|
|
13740
|
-
'circleId'?: string;
|
|
13741
|
-
'eventId'?: string;
|
|
13742
|
-
}
|
|
13743
|
-
export interface ThreadInvitation {
|
|
13619
|
+
export interface ThreadAccount {
|
|
13744
13620
|
'id': string;
|
|
13745
|
-
'organizationId': string;
|
|
13746
13621
|
'threadId': string;
|
|
13747
|
-
'thread': BaseThread;
|
|
13748
|
-
'status': ThreadInvitationStatus;
|
|
13749
|
-
'role': ThreadMemberRole;
|
|
13750
|
-
'invitedById': string;
|
|
13751
|
-
'invitedBy': BaseAccount;
|
|
13752
|
-
'invitedId': string;
|
|
13753
|
-
'invited': BaseAccount;
|
|
13754
|
-
'createdAt': string;
|
|
13755
|
-
'updatedAt': string;
|
|
13756
|
-
}
|
|
13757
|
-
|
|
13758
|
-
|
|
13759
|
-
|
|
13760
|
-
export enum ThreadInvitationStatus {
|
|
13761
|
-
Invited = 'invited',
|
|
13762
|
-
Rejected = 'rejected'
|
|
13763
|
-
}
|
|
13764
|
-
|
|
13765
|
-
|
|
13766
|
-
export interface ThreadMember {
|
|
13767
|
-
'id': string;
|
|
13768
13622
|
'accountId': string;
|
|
13623
|
+
'account': BaseAccount;
|
|
13769
13624
|
'lastReadAt': string | null;
|
|
13625
|
+
'typingAt': string | null;
|
|
13770
13626
|
'notifications': boolean;
|
|
13771
|
-
'account': BaseAccount;
|
|
13772
13627
|
'blocked': boolean;
|
|
13773
13628
|
'createdAt': string;
|
|
13774
13629
|
'updatedAt': string;
|
|
13775
13630
|
}
|
|
13776
|
-
|
|
13777
|
-
|
|
13778
|
-
Member = 'member',
|
|
13779
|
-
Moderator = 'moderator'
|
|
13780
|
-
}
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
export interface ThreadMemberUpdateInputs {
|
|
13631
|
+
export interface ThreadAccountUpdateInputs {
|
|
13632
|
+
'notifications'?: boolean;
|
|
13784
13633
|
'blocked'?: boolean;
|
|
13785
13634
|
}
|
|
13635
|
+
export interface ThreadAllOfCount {
|
|
13636
|
+
'messages'?: number;
|
|
13637
|
+
}
|
|
13638
|
+
export interface ThreadCreateInputs {
|
|
13639
|
+
'accountIds': Array<string>;
|
|
13640
|
+
'subject'?: string | null;
|
|
13641
|
+
'imageId'?: string | null;
|
|
13642
|
+
}
|
|
13786
13643
|
export interface ThreadMessage {
|
|
13787
13644
|
'id': string;
|
|
13788
13645
|
'body': string;
|
|
13789
13646
|
'accountId': string | null;
|
|
13790
|
-
'
|
|
13647
|
+
'threadAccount': ThreadAccount | null;
|
|
13791
13648
|
'createdAt': string;
|
|
13792
13649
|
'editedAt': string | null;
|
|
13793
13650
|
'sentAt': string;
|
|
13651
|
+
'deletedAt'?: string | null;
|
|
13794
13652
|
'type': ThreadMessageType;
|
|
13795
13653
|
'reactions': Array<ThreadMessageReaction>;
|
|
13796
13654
|
'entities': Array<ThreadMessageEntity>;
|
|
@@ -13799,6 +13657,7 @@ export interface ThreadMessage {
|
|
|
13799
13657
|
'files': Array<BaseFile>;
|
|
13800
13658
|
'images': Array<BaseImage>;
|
|
13801
13659
|
'videos': Array<BaseVideo>;
|
|
13660
|
+
'reads'?: Array<ThreadMessageRead>;
|
|
13802
13661
|
}
|
|
13803
13662
|
|
|
13804
13663
|
|
|
@@ -13835,6 +13694,13 @@ export interface ThreadMessageReactionCreateInputs {
|
|
|
13835
13694
|
export interface ThreadMessageReactionUpdateInputs {
|
|
13836
13695
|
'emojiName'?: string;
|
|
13837
13696
|
}
|
|
13697
|
+
export interface ThreadMessageRead {
|
|
13698
|
+
'id': string;
|
|
13699
|
+
'threadId': string;
|
|
13700
|
+
'messageId': string;
|
|
13701
|
+
'accountId': string;
|
|
13702
|
+
'readAt': string;
|
|
13703
|
+
}
|
|
13838
13704
|
|
|
13839
13705
|
export enum ThreadMessageType {
|
|
13840
13706
|
User = 'user',
|
|
@@ -13847,15 +13713,6 @@ export interface ThreadMessageUpdateInputs {
|
|
|
13847
13713
|
'body': string;
|
|
13848
13714
|
'entities': Array<object>;
|
|
13849
13715
|
}
|
|
13850
|
-
|
|
13851
|
-
export enum ThreadType {
|
|
13852
|
-
Circle = 'circle',
|
|
13853
|
-
Group = 'group',
|
|
13854
|
-
Event = 'event',
|
|
13855
|
-
Stream = 'stream'
|
|
13856
|
-
}
|
|
13857
|
-
|
|
13858
|
-
|
|
13859
13716
|
export interface ThreadUpdateInputs {
|
|
13860
13717
|
'subject'?: string | null;
|
|
13861
13718
|
'imageId'?: string | null;
|
|
@@ -14075,13 +13932,13 @@ export enum UpdateSeriesQuestionTranslation200ResponseStatusEnum {
|
|
|
14075
13932
|
Ok = 'ok'
|
|
14076
13933
|
}
|
|
14077
13934
|
|
|
14078
|
-
export interface
|
|
14079
|
-
'status':
|
|
13935
|
+
export interface UpdateThreadAccount200Response {
|
|
13936
|
+
'status': UpdateThreadAccount200ResponseStatusEnum;
|
|
14080
13937
|
'message': string;
|
|
14081
|
-
'data':
|
|
13938
|
+
'data': ThreadAccount;
|
|
14082
13939
|
}
|
|
14083
13940
|
|
|
14084
|
-
export enum
|
|
13941
|
+
export enum UpdateThreadAccount200ResponseStatusEnum {
|
|
14085
13942
|
Ok = 'ok'
|
|
14086
13943
|
}
|
|
14087
13944
|
|
|
@@ -38028,66 +37885,6 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
38028
37885
|
options: localVarRequestOptions,
|
|
38029
37886
|
};
|
|
38030
37887
|
},
|
|
38031
|
-
/**
|
|
38032
|
-
* Get Event Threads endpoint
|
|
38033
|
-
* @summary Get Event Threads
|
|
38034
|
-
* @param {string} eventId The event identifier
|
|
38035
|
-
* @param {number} [page] Page number
|
|
38036
|
-
* @param {number} [pageSize] Number of items per page
|
|
38037
|
-
* @param {string} [orderBy] Field to order by
|
|
38038
|
-
* @param {string} [search] Search query
|
|
38039
|
-
* @param {*} [options] Override http request option.
|
|
38040
|
-
* @throws {RequiredError}
|
|
38041
|
-
*/
|
|
38042
|
-
getEventThreads: async (eventId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38043
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
38044
|
-
assertParamExists('getEventThreads', 'eventId', eventId)
|
|
38045
|
-
const localVarPath = `/events/{eventId}/threads`
|
|
38046
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
38047
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38048
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38049
|
-
let baseOptions;
|
|
38050
|
-
if (configuration) {
|
|
38051
|
-
baseOptions = configuration.baseOptions;
|
|
38052
|
-
}
|
|
38053
|
-
|
|
38054
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
38055
|
-
const localVarHeaderParameter = {} as any;
|
|
38056
|
-
const localVarQueryParameter = {} as any;
|
|
38057
|
-
|
|
38058
|
-
// authentication ApiKeyAuth required
|
|
38059
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
38060
|
-
|
|
38061
|
-
// authentication OrganizationId required
|
|
38062
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
38063
|
-
|
|
38064
|
-
if (page !== undefined) {
|
|
38065
|
-
localVarQueryParameter['page'] = page;
|
|
38066
|
-
}
|
|
38067
|
-
|
|
38068
|
-
if (pageSize !== undefined) {
|
|
38069
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
38070
|
-
}
|
|
38071
|
-
|
|
38072
|
-
if (orderBy !== undefined) {
|
|
38073
|
-
localVarQueryParameter['orderBy'] = orderBy;
|
|
38074
|
-
}
|
|
38075
|
-
|
|
38076
|
-
if (search !== undefined) {
|
|
38077
|
-
localVarQueryParameter['search'] = search;
|
|
38078
|
-
}
|
|
38079
|
-
|
|
38080
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
38081
|
-
|
|
38082
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38083
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38084
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38085
|
-
|
|
38086
|
-
return {
|
|
38087
|
-
url: toPathString(localVarUrlObj),
|
|
38088
|
-
options: localVarRequestOptions,
|
|
38089
|
-
};
|
|
38090
|
-
},
|
|
38091
37888
|
/**
|
|
38092
37889
|
* Get Event Tiers endpoint
|
|
38093
37890
|
* @summary Get Event Tiers
|
|
@@ -38363,23 +38160,6 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
38363
38160
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventPayments']?.[localVarOperationServerIndex]?.url;
|
|
38364
38161
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38365
38162
|
},
|
|
38366
|
-
/**
|
|
38367
|
-
* Get Event Threads endpoint
|
|
38368
|
-
* @summary Get Event Threads
|
|
38369
|
-
* @param {string} eventId The event identifier
|
|
38370
|
-
* @param {number} [page] Page number
|
|
38371
|
-
* @param {number} [pageSize] Number of items per page
|
|
38372
|
-
* @param {string} [orderBy] Field to order by
|
|
38373
|
-
* @param {string} [search] Search query
|
|
38374
|
-
* @param {*} [options] Override http request option.
|
|
38375
|
-
* @throws {RequiredError}
|
|
38376
|
-
*/
|
|
38377
|
-
async getEventThreads(eventId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
|
|
38378
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventThreads(eventId, page, pageSize, orderBy, search, options);
|
|
38379
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
38380
|
-
const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventThreads']?.[localVarOperationServerIndex]?.url;
|
|
38381
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38382
|
-
},
|
|
38383
38163
|
/**
|
|
38384
38164
|
* Get Event Tiers endpoint
|
|
38385
38165
|
* @summary Get Event Tiers
|
|
@@ -38514,16 +38294,6 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
38514
38294
|
getEventPayments(requestParameters: EventsApiGetEventPaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountPayments200Response> {
|
|
38515
38295
|
return localVarFp.getEventPayments(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
38516
38296
|
},
|
|
38517
|
-
/**
|
|
38518
|
-
* Get Event Threads endpoint
|
|
38519
|
-
* @summary Get Event Threads
|
|
38520
|
-
* @param {EventsApiGetEventThreadsRequest} requestParameters Request parameters.
|
|
38521
|
-
* @param {*} [options] Override http request option.
|
|
38522
|
-
* @throws {RequiredError}
|
|
38523
|
-
*/
|
|
38524
|
-
getEventThreads(requestParameters: EventsApiGetEventThreadsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountThreads200Response> {
|
|
38525
|
-
return localVarFp.getEventThreads(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
38526
|
-
},
|
|
38527
38297
|
/**
|
|
38528
38298
|
* Get Event Tiers endpoint
|
|
38529
38299
|
* @summary Get Event Tiers
|
|
@@ -38686,36 +38456,6 @@ export interface EventsApiGetEventPaymentsRequest {
|
|
|
38686
38456
|
readonly search?: string
|
|
38687
38457
|
}
|
|
38688
38458
|
|
|
38689
|
-
/**
|
|
38690
|
-
* Request parameters for getEventThreads operation in EventsApi.
|
|
38691
|
-
*/
|
|
38692
|
-
export interface EventsApiGetEventThreadsRequest {
|
|
38693
|
-
/**
|
|
38694
|
-
* The event identifier
|
|
38695
|
-
*/
|
|
38696
|
-
readonly eventId: string
|
|
38697
|
-
|
|
38698
|
-
/**
|
|
38699
|
-
* Page number
|
|
38700
|
-
*/
|
|
38701
|
-
readonly page?: number
|
|
38702
|
-
|
|
38703
|
-
/**
|
|
38704
|
-
* Number of items per page
|
|
38705
|
-
*/
|
|
38706
|
-
readonly pageSize?: number
|
|
38707
|
-
|
|
38708
|
-
/**
|
|
38709
|
-
* Field to order by
|
|
38710
|
-
*/
|
|
38711
|
-
readonly orderBy?: string
|
|
38712
|
-
|
|
38713
|
-
/**
|
|
38714
|
-
* Search query
|
|
38715
|
-
*/
|
|
38716
|
-
readonly search?: string
|
|
38717
|
-
}
|
|
38718
|
-
|
|
38719
38459
|
/**
|
|
38720
38460
|
* Request parameters for getEventTiers operation in EventsApi.
|
|
38721
38461
|
*/
|
|
@@ -38865,17 +38605,6 @@ export class EventsApi extends BaseAPI {
|
|
|
38865
38605
|
return EventsApiFp(this.configuration).getEventPayments(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
38866
38606
|
}
|
|
38867
38607
|
|
|
38868
|
-
/**
|
|
38869
|
-
* Get Event Threads endpoint
|
|
38870
|
-
* @summary Get Event Threads
|
|
38871
|
-
* @param {EventsApiGetEventThreadsRequest} requestParameters Request parameters.
|
|
38872
|
-
* @param {*} [options] Override http request option.
|
|
38873
|
-
* @throws {RequiredError}
|
|
38874
|
-
*/
|
|
38875
|
-
public getEventThreads(requestParameters: EventsApiGetEventThreadsRequest, options?: RawAxiosRequestConfig) {
|
|
38876
|
-
return EventsApiFp(this.configuration).getEventThreads(requestParameters.eventId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
38877
|
-
}
|
|
38878
|
-
|
|
38879
38608
|
/**
|
|
38880
38609
|
* Get Event Tiers endpoint
|
|
38881
38610
|
* @summary Get Event Tiers
|
|
@@ -102222,66 +101951,6 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
102222
101951
|
options: localVarRequestOptions,
|
|
102223
101952
|
};
|
|
102224
101953
|
},
|
|
102225
|
-
/**
|
|
102226
|
-
* Get Group Threads endpoint
|
|
102227
|
-
* @summary Get Group Threads
|
|
102228
|
-
* @param {string} groupId The group identifier
|
|
102229
|
-
* @param {number} [page] Page number
|
|
102230
|
-
* @param {number} [pageSize] Number of items per page
|
|
102231
|
-
* @param {string} [orderBy] Field to order by
|
|
102232
|
-
* @param {string} [search] Search query
|
|
102233
|
-
* @param {*} [options] Override http request option.
|
|
102234
|
-
* @throws {RequiredError}
|
|
102235
|
-
*/
|
|
102236
|
-
getGroupThreads: async (groupId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102237
|
-
// verify required parameter 'groupId' is not null or undefined
|
|
102238
|
-
assertParamExists('getGroupThreads', 'groupId', groupId)
|
|
102239
|
-
const localVarPath = `/groups/{groupId}/threads`
|
|
102240
|
-
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
102241
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102242
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
102243
|
-
let baseOptions;
|
|
102244
|
-
if (configuration) {
|
|
102245
|
-
baseOptions = configuration.baseOptions;
|
|
102246
|
-
}
|
|
102247
|
-
|
|
102248
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
102249
|
-
const localVarHeaderParameter = {} as any;
|
|
102250
|
-
const localVarQueryParameter = {} as any;
|
|
102251
|
-
|
|
102252
|
-
// authentication ApiKeyAuth required
|
|
102253
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
102254
|
-
|
|
102255
|
-
// authentication OrganizationId required
|
|
102256
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
102257
|
-
|
|
102258
|
-
if (page !== undefined) {
|
|
102259
|
-
localVarQueryParameter['page'] = page;
|
|
102260
|
-
}
|
|
102261
|
-
|
|
102262
|
-
if (pageSize !== undefined) {
|
|
102263
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
102264
|
-
}
|
|
102265
|
-
|
|
102266
|
-
if (orderBy !== undefined) {
|
|
102267
|
-
localVarQueryParameter['orderBy'] = orderBy;
|
|
102268
|
-
}
|
|
102269
|
-
|
|
102270
|
-
if (search !== undefined) {
|
|
102271
|
-
localVarQueryParameter['search'] = search;
|
|
102272
|
-
}
|
|
102273
|
-
|
|
102274
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
102275
|
-
|
|
102276
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
102277
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
102278
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
102279
|
-
|
|
102280
|
-
return {
|
|
102281
|
-
url: toPathString(localVarUrlObj),
|
|
102282
|
-
options: localVarRequestOptions,
|
|
102283
|
-
};
|
|
102284
|
-
},
|
|
102285
101954
|
/**
|
|
102286
101955
|
* Get Groups endpoint
|
|
102287
101956
|
* @summary Get Groups
|
|
@@ -102460,23 +102129,6 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
102460
102129
|
const localVarOperationServerBasePath = operationServerMap['GroupsApi.getGroupActivities']?.[localVarOperationServerIndex]?.url;
|
|
102461
102130
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
102462
102131
|
},
|
|
102463
|
-
/**
|
|
102464
|
-
* Get Group Threads endpoint
|
|
102465
|
-
* @summary Get Group Threads
|
|
102466
|
-
* @param {string} groupId The group identifier
|
|
102467
|
-
* @param {number} [page] Page number
|
|
102468
|
-
* @param {number} [pageSize] Number of items per page
|
|
102469
|
-
* @param {string} [orderBy] Field to order by
|
|
102470
|
-
* @param {string} [search] Search query
|
|
102471
|
-
* @param {*} [options] Override http request option.
|
|
102472
|
-
* @throws {RequiredError}
|
|
102473
|
-
*/
|
|
102474
|
-
async getGroupThreads(groupId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
|
|
102475
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupThreads(groupId, page, pageSize, orderBy, search, options);
|
|
102476
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
102477
|
-
const localVarOperationServerBasePath = operationServerMap['GroupsApi.getGroupThreads']?.[localVarOperationServerIndex]?.url;
|
|
102478
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
102479
|
-
},
|
|
102480
102132
|
/**
|
|
102481
102133
|
* Get Groups endpoint
|
|
102482
102134
|
* @summary Get Groups
|
|
@@ -102558,16 +102210,6 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
102558
102210
|
getGroupActivities(requestParameters: GroupsApiGetGroupActivitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountActivities200Response> {
|
|
102559
102211
|
return localVarFp.getGroupActivities(requestParameters.groupId, requestParameters.featured, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
102560
102212
|
},
|
|
102561
|
-
/**
|
|
102562
|
-
* Get Group Threads endpoint
|
|
102563
|
-
* @summary Get Group Threads
|
|
102564
|
-
* @param {GroupsApiGetGroupThreadsRequest} requestParameters Request parameters.
|
|
102565
|
-
* @param {*} [options] Override http request option.
|
|
102566
|
-
* @throws {RequiredError}
|
|
102567
|
-
*/
|
|
102568
|
-
getGroupThreads(requestParameters: GroupsApiGetGroupThreadsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountThreads200Response> {
|
|
102569
|
-
return localVarFp.getGroupThreads(requestParameters.groupId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
102570
|
-
},
|
|
102571
102213
|
/**
|
|
102572
102214
|
* Get Groups endpoint
|
|
102573
102215
|
* @summary Get Groups
|
|
@@ -102658,36 +102300,6 @@ export interface GroupsApiGetGroupActivitiesRequest {
|
|
|
102658
102300
|
readonly search?: string
|
|
102659
102301
|
}
|
|
102660
102302
|
|
|
102661
|
-
/**
|
|
102662
|
-
* Request parameters for getGroupThreads operation in GroupsApi.
|
|
102663
|
-
*/
|
|
102664
|
-
export interface GroupsApiGetGroupThreadsRequest {
|
|
102665
|
-
/**
|
|
102666
|
-
* The group identifier
|
|
102667
|
-
*/
|
|
102668
|
-
readonly groupId: string
|
|
102669
|
-
|
|
102670
|
-
/**
|
|
102671
|
-
* Page number
|
|
102672
|
-
*/
|
|
102673
|
-
readonly page?: number
|
|
102674
|
-
|
|
102675
|
-
/**
|
|
102676
|
-
* Number of items per page
|
|
102677
|
-
*/
|
|
102678
|
-
readonly pageSize?: number
|
|
102679
|
-
|
|
102680
|
-
/**
|
|
102681
|
-
* Field to order by
|
|
102682
|
-
*/
|
|
102683
|
-
readonly orderBy?: string
|
|
102684
|
-
|
|
102685
|
-
/**
|
|
102686
|
-
* Search query
|
|
102687
|
-
*/
|
|
102688
|
-
readonly search?: string
|
|
102689
|
-
}
|
|
102690
|
-
|
|
102691
102303
|
/**
|
|
102692
102304
|
* Request parameters for getGroups operation in GroupsApi.
|
|
102693
102305
|
*/
|
|
@@ -102783,17 +102395,6 @@ export class GroupsApi extends BaseAPI {
|
|
|
102783
102395
|
return GroupsApiFp(this.configuration).getGroupActivities(requestParameters.groupId, requestParameters.featured, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
102784
102396
|
}
|
|
102785
102397
|
|
|
102786
|
-
/**
|
|
102787
|
-
* Get Group Threads endpoint
|
|
102788
|
-
* @summary Get Group Threads
|
|
102789
|
-
* @param {GroupsApiGetGroupThreadsRequest} requestParameters Request parameters.
|
|
102790
|
-
* @param {*} [options] Override http request option.
|
|
102791
|
-
* @throws {RequiredError}
|
|
102792
|
-
*/
|
|
102793
|
-
public getGroupThreads(requestParameters: GroupsApiGetGroupThreadsRequest, options?: RawAxiosRequestConfig) {
|
|
102794
|
-
return GroupsApiFp(this.configuration).getGroupThreads(requestParameters.groupId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
102795
|
-
}
|
|
102796
|
-
|
|
102797
102398
|
/**
|
|
102798
102399
|
* Get Groups endpoint
|
|
102799
102400
|
* @summary Get Groups
|
|
@@ -146064,7 +145665,6 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
146064
145665
|
/**
|
|
146065
145666
|
* Get Threads endpoint
|
|
146066
145667
|
* @summary Get Threads
|
|
146067
|
-
* @param {ThreadType} [type] Filter by type
|
|
146068
145668
|
* @param {number} [page] Page number
|
|
146069
145669
|
* @param {number} [pageSize] Number of items per page
|
|
146070
145670
|
* @param {string} [orderBy] Field to order by
|
|
@@ -146072,7 +145672,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
146072
145672
|
* @param {*} [options] Override http request option.
|
|
146073
145673
|
* @throws {RequiredError}
|
|
146074
145674
|
*/
|
|
146075
|
-
getThreads: async (
|
|
145675
|
+
getThreads: async (page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146076
145676
|
const localVarPath = `/threads`;
|
|
146077
145677
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146078
145678
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -146091,10 +145691,6 @@ export const ThreadsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
146091
145691
|
// authentication OrganizationId required
|
|
146092
145692
|
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
146093
145693
|
|
|
146094
|
-
if (type !== undefined) {
|
|
146095
|
-
localVarQueryParameter['type'] = type;
|
|
146096
|
-
}
|
|
146097
|
-
|
|
146098
145694
|
if (page !== undefined) {
|
|
146099
145695
|
localVarQueryParameter['page'] = page;
|
|
146100
145696
|
}
|
|
@@ -146218,7 +145814,6 @@ export const ThreadsApiFp = function(configuration?: Configuration) {
|
|
|
146218
145814
|
/**
|
|
146219
145815
|
* Get Threads endpoint
|
|
146220
145816
|
* @summary Get Threads
|
|
146221
|
-
* @param {ThreadType} [type] Filter by type
|
|
146222
145817
|
* @param {number} [page] Page number
|
|
146223
145818
|
* @param {number} [pageSize] Number of items per page
|
|
146224
145819
|
* @param {string} [orderBy] Field to order by
|
|
@@ -146226,8 +145821,8 @@ export const ThreadsApiFp = function(configuration?: Configuration) {
|
|
|
146226
145821
|
* @param {*} [options] Override http request option.
|
|
146227
145822
|
* @throws {RequiredError}
|
|
146228
145823
|
*/
|
|
146229
|
-
async getThreads(
|
|
146230
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getThreads(
|
|
145824
|
+
async getThreads(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountThreads200Response>> {
|
|
145825
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThreads(page, pageSize, orderBy, search, options);
|
|
146231
145826
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
146232
145827
|
const localVarOperationServerBasePath = operationServerMap['ThreadsApi.getThreads']?.[localVarOperationServerIndex]?.url;
|
|
146233
145828
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -146293,7 +145888,7 @@ export const ThreadsApiFactory = function (configuration?: Configuration, basePa
|
|
|
146293
145888
|
* @throws {RequiredError}
|
|
146294
145889
|
*/
|
|
146295
145890
|
getThreads(requestParameters: ThreadsApiGetThreadsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountThreads200Response> {
|
|
146296
|
-
return localVarFp.getThreads(requestParameters.
|
|
145891
|
+
return localVarFp.getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
146297
145892
|
},
|
|
146298
145893
|
/**
|
|
146299
145894
|
* Update Thread endpoint
|
|
@@ -146339,11 +145934,6 @@ export interface ThreadsApiGetThreadRequest {
|
|
|
146339
145934
|
* Request parameters for getThreads operation in ThreadsApi.
|
|
146340
145935
|
*/
|
|
146341
145936
|
export interface ThreadsApiGetThreadsRequest {
|
|
146342
|
-
/**
|
|
146343
|
-
* Filter by type
|
|
146344
|
-
*/
|
|
146345
|
-
readonly type?: ThreadType
|
|
146346
|
-
|
|
146347
145937
|
/**
|
|
146348
145938
|
* Page number
|
|
146349
145939
|
*/
|
|
@@ -146422,7 +146012,7 @@ export class ThreadsApi extends BaseAPI {
|
|
|
146422
146012
|
* @throws {RequiredError}
|
|
146423
146013
|
*/
|
|
146424
146014
|
public getThreads(requestParameters: ThreadsApiGetThreadsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
146425
|
-
return ThreadsApiFp(this.configuration).getThreads(requestParameters.
|
|
146015
|
+
return ThreadsApiFp(this.configuration).getThreads(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
146426
146016
|
}
|
|
146427
146017
|
|
|
146428
146018
|
/**
|
|
@@ -146440,63 +146030,26 @@ export class ThreadsApi extends BaseAPI {
|
|
|
146440
146030
|
|
|
146441
146031
|
|
|
146442
146032
|
/**
|
|
146443
|
-
*
|
|
146033
|
+
* ThreadsAccountsApi - axios parameter creator
|
|
146444
146034
|
*/
|
|
146445
|
-
export const
|
|
146035
|
+
export const ThreadsAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
146446
146036
|
return {
|
|
146447
146037
|
/**
|
|
146448
|
-
*
|
|
146449
|
-
* @summary
|
|
146450
|
-
* @param {
|
|
146451
|
-
* @param {
|
|
146452
|
-
* @throws {RequiredError}
|
|
146453
|
-
*/
|
|
146454
|
-
createThreadCircle: async (threadCircleCreateInputs: ThreadCircleCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146455
|
-
// verify required parameter 'threadCircleCreateInputs' is not null or undefined
|
|
146456
|
-
assertParamExists('createThreadCircle', 'threadCircleCreateInputs', threadCircleCreateInputs)
|
|
146457
|
-
const localVarPath = `/threads/circles`;
|
|
146458
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146459
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146460
|
-
let baseOptions;
|
|
146461
|
-
if (configuration) {
|
|
146462
|
-
baseOptions = configuration.baseOptions;
|
|
146463
|
-
}
|
|
146464
|
-
|
|
146465
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
146466
|
-
const localVarHeaderParameter = {} as any;
|
|
146467
|
-
const localVarQueryParameter = {} as any;
|
|
146468
|
-
|
|
146469
|
-
// authentication ApiKeyAuth required
|
|
146470
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
146471
|
-
|
|
146472
|
-
// authentication OrganizationId required
|
|
146473
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
146474
|
-
|
|
146475
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
146476
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
146477
|
-
|
|
146478
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146479
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146480
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146481
|
-
localVarRequestOptions.data = serializeDataIfNeeded(threadCircleCreateInputs, localVarRequestOptions, configuration)
|
|
146482
|
-
|
|
146483
|
-
return {
|
|
146484
|
-
url: toPathString(localVarUrlObj),
|
|
146485
|
-
options: localVarRequestOptions,
|
|
146486
|
-
};
|
|
146487
|
-
},
|
|
146488
|
-
/**
|
|
146489
|
-
* Delete Thread Circle endpoint
|
|
146490
|
-
* @summary Delete Thread Circle
|
|
146491
|
-
* @param {string} circleId The circle identifier
|
|
146038
|
+
* Delete Thread Account endpoint
|
|
146039
|
+
* @summary Delete Thread Account
|
|
146040
|
+
* @param {string} threadId The thread identifier
|
|
146041
|
+
* @param {string} accountId The account identifier
|
|
146492
146042
|
* @param {*} [options] Override http request option.
|
|
146493
146043
|
* @throws {RequiredError}
|
|
146494
146044
|
*/
|
|
146495
|
-
|
|
146496
|
-
// verify required parameter '
|
|
146497
|
-
assertParamExists('
|
|
146498
|
-
|
|
146499
|
-
|
|
146045
|
+
deleteThreadAccount: async (threadId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146046
|
+
// verify required parameter 'threadId' is not null or undefined
|
|
146047
|
+
assertParamExists('deleteThreadAccount', 'threadId', threadId)
|
|
146048
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
146049
|
+
assertParamExists('deleteThreadAccount', 'accountId', accountId)
|
|
146050
|
+
const localVarPath = `/threads/{threadId}/accounts/{accountId}`
|
|
146051
|
+
.replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
|
|
146052
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
146500
146053
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146501
146054
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146502
146055
|
let baseOptions;
|
|
@@ -146526,109 +146079,9 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
146526
146079
|
};
|
|
146527
146080
|
},
|
|
146528
146081
|
/**
|
|
146529
|
-
* Get Thread
|
|
146530
|
-
* @summary Get Thread
|
|
146531
|
-
* @param {string}
|
|
146532
|
-
* @param {*} [options] Override http request option.
|
|
146533
|
-
* @throws {RequiredError}
|
|
146534
|
-
*/
|
|
146535
|
-
getThreadCircle: async (circleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146536
|
-
// verify required parameter 'circleId' is not null or undefined
|
|
146537
|
-
assertParamExists('getThreadCircle', 'circleId', circleId)
|
|
146538
|
-
const localVarPath = `/threads/circles/{circleId}`
|
|
146539
|
-
.replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
|
|
146540
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146541
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146542
|
-
let baseOptions;
|
|
146543
|
-
if (configuration) {
|
|
146544
|
-
baseOptions = configuration.baseOptions;
|
|
146545
|
-
}
|
|
146546
|
-
|
|
146547
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
146548
|
-
const localVarHeaderParameter = {} as any;
|
|
146549
|
-
const localVarQueryParameter = {} as any;
|
|
146550
|
-
|
|
146551
|
-
// authentication ApiKeyAuth required
|
|
146552
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
146553
|
-
|
|
146554
|
-
// authentication OrganizationId required
|
|
146555
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
146556
|
-
|
|
146557
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
146558
|
-
|
|
146559
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146560
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146561
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146562
|
-
|
|
146563
|
-
return {
|
|
146564
|
-
url: toPathString(localVarUrlObj),
|
|
146565
|
-
options: localVarRequestOptions,
|
|
146566
|
-
};
|
|
146567
|
-
},
|
|
146568
|
-
/**
|
|
146569
|
-
* Get Thread Circle Threads endpoint
|
|
146570
|
-
* @summary Get Thread Circle Threads
|
|
146571
|
-
* @param {string} circleId The circle identifier
|
|
146572
|
-
* @param {number} [page] Page number
|
|
146573
|
-
* @param {number} [pageSize] Number of items per page
|
|
146574
|
-
* @param {string} [orderBy] Field to order by
|
|
146575
|
-
* @param {string} [search] Search query
|
|
146576
|
-
* @param {*} [options] Override http request option.
|
|
146577
|
-
* @throws {RequiredError}
|
|
146578
|
-
*/
|
|
146579
|
-
getThreadCircleThreads: async (circleId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146580
|
-
// verify required parameter 'circleId' is not null or undefined
|
|
146581
|
-
assertParamExists('getThreadCircleThreads', 'circleId', circleId)
|
|
146582
|
-
const localVarPath = `/threads/circles/{circleId}/threads`
|
|
146583
|
-
.replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
|
|
146584
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146585
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146586
|
-
let baseOptions;
|
|
146587
|
-
if (configuration) {
|
|
146588
|
-
baseOptions = configuration.baseOptions;
|
|
146589
|
-
}
|
|
146590
|
-
|
|
146591
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
146592
|
-
const localVarHeaderParameter = {} as any;
|
|
146593
|
-
const localVarQueryParameter = {} as any;
|
|
146594
|
-
|
|
146595
|
-
// authentication ApiKeyAuth required
|
|
146596
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
146597
|
-
|
|
146598
|
-
// authentication OrganizationId required
|
|
146599
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
146600
|
-
|
|
146601
|
-
if (page !== undefined) {
|
|
146602
|
-
localVarQueryParameter['page'] = page;
|
|
146603
|
-
}
|
|
146604
|
-
|
|
146605
|
-
if (pageSize !== undefined) {
|
|
146606
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
146607
|
-
}
|
|
146608
|
-
|
|
146609
|
-
if (orderBy !== undefined) {
|
|
146610
|
-
localVarQueryParameter['orderBy'] = orderBy;
|
|
146611
|
-
}
|
|
146612
|
-
|
|
146613
|
-
if (search !== undefined) {
|
|
146614
|
-
localVarQueryParameter['search'] = search;
|
|
146615
|
-
}
|
|
146616
|
-
|
|
146617
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
146618
|
-
|
|
146619
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146620
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146621
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146622
|
-
|
|
146623
|
-
return {
|
|
146624
|
-
url: toPathString(localVarUrlObj),
|
|
146625
|
-
options: localVarRequestOptions,
|
|
146626
|
-
};
|
|
146627
|
-
},
|
|
146628
|
-
/**
|
|
146629
|
-
* Get Thread Circles endpoint
|
|
146630
|
-
* @summary Get Thread Circles
|
|
146631
|
-
* @param {ThreadCircleType} type Filter by type
|
|
146082
|
+
* Get Thread Accounts endpoint
|
|
146083
|
+
* @summary Get Thread Accounts
|
|
146084
|
+
* @param {string} threadId The thread identifier
|
|
146632
146085
|
* @param {number} [page] Page number
|
|
146633
146086
|
* @param {number} [pageSize] Number of items per page
|
|
146634
146087
|
* @param {string} [orderBy] Field to order by
|
|
@@ -146636,10 +146089,11 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
146636
146089
|
* @param {*} [options] Override http request option.
|
|
146637
146090
|
* @throws {RequiredError}
|
|
146638
146091
|
*/
|
|
146639
|
-
|
|
146640
|
-
// verify required parameter '
|
|
146641
|
-
assertParamExists('
|
|
146642
|
-
const localVarPath = `/threads/
|
|
146092
|
+
getThreadAccounts: async (threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146093
|
+
// verify required parameter 'threadId' is not null or undefined
|
|
146094
|
+
assertParamExists('getThreadAccounts', 'threadId', threadId)
|
|
146095
|
+
const localVarPath = `/threads/{threadId}/accounts`
|
|
146096
|
+
.replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
|
|
146643
146097
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146644
146098
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146645
146099
|
let baseOptions;
|
|
@@ -146657,10 +146111,6 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
146657
146111
|
// authentication OrganizationId required
|
|
146658
146112
|
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
146659
146113
|
|
|
146660
|
-
if (type !== undefined) {
|
|
146661
|
-
localVarQueryParameter['type'] = type;
|
|
146662
|
-
}
|
|
146663
|
-
|
|
146664
146114
|
if (page !== undefined) {
|
|
146665
146115
|
localVarQueryParameter['page'] = page;
|
|
146666
146116
|
}
|
|
@@ -146689,20 +146139,24 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
146689
146139
|
};
|
|
146690
146140
|
},
|
|
146691
146141
|
/**
|
|
146692
|
-
* Update Thread
|
|
146693
|
-
* @summary Update Thread
|
|
146694
|
-
* @param {string}
|
|
146695
|
-
* @param {
|
|
146142
|
+
* Update Thread Account endpoint
|
|
146143
|
+
* @summary Update Thread Account
|
|
146144
|
+
* @param {string} threadId The thread identifier
|
|
146145
|
+
* @param {string} accountId The account identifier
|
|
146146
|
+
* @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
|
|
146696
146147
|
* @param {*} [options] Override http request option.
|
|
146697
146148
|
* @throws {RequiredError}
|
|
146698
146149
|
*/
|
|
146699
|
-
|
|
146700
|
-
// verify required parameter '
|
|
146701
|
-
assertParamExists('
|
|
146702
|
-
// verify required parameter '
|
|
146703
|
-
assertParamExists('
|
|
146704
|
-
|
|
146705
|
-
|
|
146150
|
+
updateThreadAccount: async (threadId: string, accountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146151
|
+
// verify required parameter 'threadId' is not null or undefined
|
|
146152
|
+
assertParamExists('updateThreadAccount', 'threadId', threadId)
|
|
146153
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
146154
|
+
assertParamExists('updateThreadAccount', 'accountId', accountId)
|
|
146155
|
+
// verify required parameter 'threadAccountUpdateInputs' is not null or undefined
|
|
146156
|
+
assertParamExists('updateThreadAccount', 'threadAccountUpdateInputs', threadAccountUpdateInputs)
|
|
146157
|
+
const localVarPath = `/threads/{threadId}/accounts/{accountId}`
|
|
146158
|
+
.replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
|
|
146159
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
146706
146160
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146707
146161
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146708
146162
|
let baseOptions;
|
|
@@ -146726,7 +146180,7 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
146726
146180
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146727
146181
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146728
146182
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146729
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
146183
|
+
localVarRequestOptions.data = serializeDataIfNeeded(threadAccountUpdateInputs, localVarRequestOptions, configuration)
|
|
146730
146184
|
|
|
146731
146185
|
return {
|
|
146732
146186
|
url: toPathString(localVarUrlObj),
|
|
@@ -146737,71 +146191,29 @@ export const ThreadsCirclesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
146737
146191
|
};
|
|
146738
146192
|
|
|
146739
146193
|
/**
|
|
146740
|
-
*
|
|
146194
|
+
* ThreadsAccountsApi - functional programming interface
|
|
146741
146195
|
*/
|
|
146742
|
-
export const
|
|
146743
|
-
const localVarAxiosParamCreator =
|
|
146196
|
+
export const ThreadsAccountsApiFp = function(configuration?: Configuration) {
|
|
146197
|
+
const localVarAxiosParamCreator = ThreadsAccountsApiAxiosParamCreator(configuration)
|
|
146744
146198
|
return {
|
|
146745
146199
|
/**
|
|
146746
|
-
*
|
|
146747
|
-
* @summary
|
|
146748
|
-
* @param {
|
|
146749
|
-
* @param {
|
|
146750
|
-
* @throws {RequiredError}
|
|
146751
|
-
*/
|
|
146752
|
-
async createThreadCircle(threadCircleCreateInputs: ThreadCircleCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircle200Response>> {
|
|
146753
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createThreadCircle(threadCircleCreateInputs, options);
|
|
146754
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
146755
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesApi.createThreadCircle']?.[localVarOperationServerIndex]?.url;
|
|
146756
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
146757
|
-
},
|
|
146758
|
-
/**
|
|
146759
|
-
* Delete Thread Circle endpoint
|
|
146760
|
-
* @summary Delete Thread Circle
|
|
146761
|
-
* @param {string} circleId The circle identifier
|
|
146762
|
-
* @param {*} [options] Override http request option.
|
|
146763
|
-
* @throws {RequiredError}
|
|
146764
|
-
*/
|
|
146765
|
-
async deleteThreadCircle(circleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
146766
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteThreadCircle(circleId, options);
|
|
146767
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
146768
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesApi.deleteThreadCircle']?.[localVarOperationServerIndex]?.url;
|
|
146769
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
146770
|
-
},
|
|
146771
|
-
/**
|
|
146772
|
-
* Get Thread Circle endpoint
|
|
146773
|
-
* @summary Get Thread Circle
|
|
146774
|
-
* @param {string} circleId The circle identifier
|
|
146775
|
-
* @param {*} [options] Override http request option.
|
|
146776
|
-
* @throws {RequiredError}
|
|
146777
|
-
*/
|
|
146778
|
-
async getThreadCircle(circleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircle200Response>> {
|
|
146779
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadCircle(circleId, options);
|
|
146780
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
146781
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesApi.getThreadCircle']?.[localVarOperationServerIndex]?.url;
|
|
146782
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
146783
|
-
},
|
|
146784
|
-
/**
|
|
146785
|
-
* Get Thread Circle Threads endpoint
|
|
146786
|
-
* @summary Get Thread Circle Threads
|
|
146787
|
-
* @param {string} circleId The circle identifier
|
|
146788
|
-
* @param {number} [page] Page number
|
|
146789
|
-
* @param {number} [pageSize] Number of items per page
|
|
146790
|
-
* @param {string} [orderBy] Field to order by
|
|
146791
|
-
* @param {string} [search] Search query
|
|
146200
|
+
* Delete Thread Account endpoint
|
|
146201
|
+
* @summary Delete Thread Account
|
|
146202
|
+
* @param {string} threadId The thread identifier
|
|
146203
|
+
* @param {string} accountId The account identifier
|
|
146792
146204
|
* @param {*} [options] Override http request option.
|
|
146793
146205
|
* @throws {RequiredError}
|
|
146794
146206
|
*/
|
|
146795
|
-
async
|
|
146796
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
146207
|
+
async deleteThreadAccount(threadId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
146208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteThreadAccount(threadId, accountId, options);
|
|
146797
146209
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
146798
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
146210
|
+
const localVarOperationServerBasePath = operationServerMap['ThreadsAccountsApi.deleteThreadAccount']?.[localVarOperationServerIndex]?.url;
|
|
146799
146211
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
146800
146212
|
},
|
|
146801
146213
|
/**
|
|
146802
|
-
* Get Thread
|
|
146803
|
-
* @summary Get Thread
|
|
146804
|
-
* @param {
|
|
146214
|
+
* Get Thread Accounts endpoint
|
|
146215
|
+
* @summary Get Thread Accounts
|
|
146216
|
+
* @param {string} threadId The thread identifier
|
|
146805
146217
|
* @param {number} [page] Page number
|
|
146806
146218
|
* @param {number} [pageSize] Number of items per page
|
|
146807
146219
|
* @param {string} [orderBy] Field to order by
|
|
@@ -146809,133 +146221,92 @@ export const ThreadsCirclesApiFp = function(configuration?: Configuration) {
|
|
|
146809
146221
|
* @param {*} [options] Override http request option.
|
|
146810
146222
|
* @throws {RequiredError}
|
|
146811
146223
|
*/
|
|
146812
|
-
async
|
|
146813
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
146224
|
+
async getThreadAccounts(threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetThreadAccounts200Response>> {
|
|
146225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadAccounts(threadId, page, pageSize, orderBy, search, options);
|
|
146814
146226
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
146815
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
146227
|
+
const localVarOperationServerBasePath = operationServerMap['ThreadsAccountsApi.getThreadAccounts']?.[localVarOperationServerIndex]?.url;
|
|
146816
146228
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
146817
146229
|
},
|
|
146818
146230
|
/**
|
|
146819
|
-
* Update Thread
|
|
146820
|
-
* @summary Update Thread
|
|
146821
|
-
* @param {string}
|
|
146822
|
-
* @param {
|
|
146231
|
+
* Update Thread Account endpoint
|
|
146232
|
+
* @summary Update Thread Account
|
|
146233
|
+
* @param {string} threadId The thread identifier
|
|
146234
|
+
* @param {string} accountId The account identifier
|
|
146235
|
+
* @param {ThreadAccountUpdateInputs} threadAccountUpdateInputs
|
|
146823
146236
|
* @param {*} [options] Override http request option.
|
|
146824
146237
|
* @throws {RequiredError}
|
|
146825
146238
|
*/
|
|
146826
|
-
async
|
|
146827
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
146239
|
+
async updateThreadAccount(threadId: string, accountId: string, threadAccountUpdateInputs: ThreadAccountUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateThreadAccount200Response>> {
|
|
146240
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThreadAccount(threadId, accountId, threadAccountUpdateInputs, options);
|
|
146828
146241
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
146829
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
146242
|
+
const localVarOperationServerBasePath = operationServerMap['ThreadsAccountsApi.updateThreadAccount']?.[localVarOperationServerIndex]?.url;
|
|
146830
146243
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
146831
146244
|
},
|
|
146832
146245
|
}
|
|
146833
146246
|
};
|
|
146834
146247
|
|
|
146835
146248
|
/**
|
|
146836
|
-
*
|
|
146249
|
+
* ThreadsAccountsApi - factory interface
|
|
146837
146250
|
*/
|
|
146838
|
-
export const
|
|
146839
|
-
const localVarFp =
|
|
146251
|
+
export const ThreadsAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
146252
|
+
const localVarFp = ThreadsAccountsApiFp(configuration)
|
|
146840
146253
|
return {
|
|
146841
146254
|
/**
|
|
146842
|
-
*
|
|
146843
|
-
* @summary
|
|
146844
|
-
* @param {
|
|
146845
|
-
* @param {*} [options] Override http request option.
|
|
146846
|
-
* @throws {RequiredError}
|
|
146847
|
-
*/
|
|
146848
|
-
createThreadCircle(requestParameters: ThreadsCirclesApiCreateThreadCircleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircle200Response> {
|
|
146849
|
-
return localVarFp.createThreadCircle(requestParameters.threadCircleCreateInputs, options).then((request) => request(axios, basePath));
|
|
146850
|
-
},
|
|
146851
|
-
/**
|
|
146852
|
-
* Delete Thread Circle endpoint
|
|
146853
|
-
* @summary Delete Thread Circle
|
|
146854
|
-
* @param {ThreadsCirclesApiDeleteThreadCircleRequest} requestParameters Request parameters.
|
|
146855
|
-
* @param {*} [options] Override http request option.
|
|
146856
|
-
* @throws {RequiredError}
|
|
146857
|
-
*/
|
|
146858
|
-
deleteThreadCircle(requestParameters: ThreadsCirclesApiDeleteThreadCircleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
146859
|
-
return localVarFp.deleteThreadCircle(requestParameters.circleId, options).then((request) => request(axios, basePath));
|
|
146860
|
-
},
|
|
146861
|
-
/**
|
|
146862
|
-
* Get Thread Circle endpoint
|
|
146863
|
-
* @summary Get Thread Circle
|
|
146864
|
-
* @param {ThreadsCirclesApiGetThreadCircleRequest} requestParameters Request parameters.
|
|
146865
|
-
* @param {*} [options] Override http request option.
|
|
146866
|
-
* @throws {RequiredError}
|
|
146867
|
-
*/
|
|
146868
|
-
getThreadCircle(requestParameters: ThreadsCirclesApiGetThreadCircleRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircle200Response> {
|
|
146869
|
-
return localVarFp.getThreadCircle(requestParameters.circleId, options).then((request) => request(axios, basePath));
|
|
146870
|
-
},
|
|
146871
|
-
/**
|
|
146872
|
-
* Get Thread Circle Threads endpoint
|
|
146873
|
-
* @summary Get Thread Circle Threads
|
|
146874
|
-
* @param {ThreadsCirclesApiGetThreadCircleThreadsRequest} requestParameters Request parameters.
|
|
146255
|
+
* Delete Thread Account endpoint
|
|
146256
|
+
* @summary Delete Thread Account
|
|
146257
|
+
* @param {ThreadsAccountsApiDeleteThreadAccountRequest} requestParameters Request parameters.
|
|
146875
146258
|
* @param {*} [options] Override http request option.
|
|
146876
146259
|
* @throws {RequiredError}
|
|
146877
146260
|
*/
|
|
146878
|
-
|
|
146879
|
-
return localVarFp.
|
|
146261
|
+
deleteThreadAccount(requestParameters: ThreadsAccountsApiDeleteThreadAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
146262
|
+
return localVarFp.deleteThreadAccount(requestParameters.threadId, requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
146880
146263
|
},
|
|
146881
146264
|
/**
|
|
146882
|
-
* Get Thread
|
|
146883
|
-
* @summary Get Thread
|
|
146884
|
-
* @param {
|
|
146265
|
+
* Get Thread Accounts endpoint
|
|
146266
|
+
* @summary Get Thread Accounts
|
|
146267
|
+
* @param {ThreadsAccountsApiGetThreadAccountsRequest} requestParameters Request parameters.
|
|
146885
146268
|
* @param {*} [options] Override http request option.
|
|
146886
146269
|
* @throws {RequiredError}
|
|
146887
146270
|
*/
|
|
146888
|
-
|
|
146889
|
-
return localVarFp.
|
|
146271
|
+
getThreadAccounts(requestParameters: ThreadsAccountsApiGetThreadAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetThreadAccounts200Response> {
|
|
146272
|
+
return localVarFp.getThreadAccounts(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
146890
146273
|
},
|
|
146891
146274
|
/**
|
|
146892
|
-
* Update Thread
|
|
146893
|
-
* @summary Update Thread
|
|
146894
|
-
* @param {
|
|
146275
|
+
* Update Thread Account endpoint
|
|
146276
|
+
* @summary Update Thread Account
|
|
146277
|
+
* @param {ThreadsAccountsApiUpdateThreadAccountRequest} requestParameters Request parameters.
|
|
146895
146278
|
* @param {*} [options] Override http request option.
|
|
146896
146279
|
* @throws {RequiredError}
|
|
146897
146280
|
*/
|
|
146898
|
-
|
|
146899
|
-
return localVarFp.
|
|
146281
|
+
updateThreadAccount(requestParameters: ThreadsAccountsApiUpdateThreadAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateThreadAccount200Response> {
|
|
146282
|
+
return localVarFp.updateThreadAccount(requestParameters.threadId, requestParameters.accountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(axios, basePath));
|
|
146900
146283
|
},
|
|
146901
146284
|
};
|
|
146902
146285
|
};
|
|
146903
146286
|
|
|
146904
146287
|
/**
|
|
146905
|
-
* Request parameters for
|
|
146906
|
-
*/
|
|
146907
|
-
export interface ThreadsCirclesApiCreateThreadCircleRequest {
|
|
146908
|
-
readonly threadCircleCreateInputs: ThreadCircleCreateInputs
|
|
146909
|
-
}
|
|
146910
|
-
|
|
146911
|
-
/**
|
|
146912
|
-
* Request parameters for deleteThreadCircle operation in ThreadsCirclesApi.
|
|
146288
|
+
* Request parameters for deleteThreadAccount operation in ThreadsAccountsApi.
|
|
146913
146289
|
*/
|
|
146914
|
-
export interface
|
|
146290
|
+
export interface ThreadsAccountsApiDeleteThreadAccountRequest {
|
|
146915
146291
|
/**
|
|
146916
|
-
* The
|
|
146292
|
+
* The thread identifier
|
|
146917
146293
|
*/
|
|
146918
|
-
readonly
|
|
146919
|
-
}
|
|
146294
|
+
readonly threadId: string
|
|
146920
146295
|
|
|
146921
|
-
/**
|
|
146922
|
-
* Request parameters for getThreadCircle operation in ThreadsCirclesApi.
|
|
146923
|
-
*/
|
|
146924
|
-
export interface ThreadsCirclesApiGetThreadCircleRequest {
|
|
146925
146296
|
/**
|
|
146926
|
-
* The
|
|
146297
|
+
* The account identifier
|
|
146927
146298
|
*/
|
|
146928
|
-
readonly
|
|
146299
|
+
readonly accountId: string
|
|
146929
146300
|
}
|
|
146930
146301
|
|
|
146931
146302
|
/**
|
|
146932
|
-
* Request parameters for
|
|
146303
|
+
* Request parameters for getThreadAccounts operation in ThreadsAccountsApi.
|
|
146933
146304
|
*/
|
|
146934
|
-
export interface
|
|
146305
|
+
export interface ThreadsAccountsApiGetThreadAccountsRequest {
|
|
146935
146306
|
/**
|
|
146936
|
-
* The
|
|
146307
|
+
* The thread identifier
|
|
146937
146308
|
*/
|
|
146938
|
-
readonly
|
|
146309
|
+
readonly threadId: string
|
|
146939
146310
|
|
|
146940
146311
|
/**
|
|
146941
146312
|
* Page number
|
|
@@ -146959,1012 +146330,9 @@ export interface ThreadsCirclesApiGetThreadCircleThreadsRequest {
|
|
|
146959
146330
|
}
|
|
146960
146331
|
|
|
146961
146332
|
/**
|
|
146962
|
-
* Request parameters for
|
|
146333
|
+
* Request parameters for updateThreadAccount operation in ThreadsAccountsApi.
|
|
146963
146334
|
*/
|
|
146964
|
-
export interface
|
|
146965
|
-
/**
|
|
146966
|
-
* Filter by type
|
|
146967
|
-
*/
|
|
146968
|
-
readonly type: ThreadCircleType
|
|
146969
|
-
|
|
146970
|
-
/**
|
|
146971
|
-
* Page number
|
|
146972
|
-
*/
|
|
146973
|
-
readonly page?: number
|
|
146974
|
-
|
|
146975
|
-
/**
|
|
146976
|
-
* Number of items per page
|
|
146977
|
-
*/
|
|
146978
|
-
readonly pageSize?: number
|
|
146979
|
-
|
|
146980
|
-
/**
|
|
146981
|
-
* Field to order by
|
|
146982
|
-
*/
|
|
146983
|
-
readonly orderBy?: string
|
|
146984
|
-
|
|
146985
|
-
/**
|
|
146986
|
-
* Search query
|
|
146987
|
-
*/
|
|
146988
|
-
readonly search?: string
|
|
146989
|
-
}
|
|
146990
|
-
|
|
146991
|
-
/**
|
|
146992
|
-
* Request parameters for updateThreadCircle operation in ThreadsCirclesApi.
|
|
146993
|
-
*/
|
|
146994
|
-
export interface ThreadsCirclesApiUpdateThreadCircleRequest {
|
|
146995
|
-
/**
|
|
146996
|
-
* The circle identifier
|
|
146997
|
-
*/
|
|
146998
|
-
readonly circleId: string
|
|
146999
|
-
|
|
147000
|
-
readonly threadCircleUpdateInputs: ThreadCircleUpdateInputs
|
|
147001
|
-
}
|
|
147002
|
-
|
|
147003
|
-
/**
|
|
147004
|
-
* ThreadsCirclesApi - object-oriented interface
|
|
147005
|
-
*/
|
|
147006
|
-
export class ThreadsCirclesApi extends BaseAPI {
|
|
147007
|
-
/**
|
|
147008
|
-
* Create Thread Circle endpoint
|
|
147009
|
-
* @summary Create Thread Circle
|
|
147010
|
-
* @param {ThreadsCirclesApiCreateThreadCircleRequest} requestParameters Request parameters.
|
|
147011
|
-
* @param {*} [options] Override http request option.
|
|
147012
|
-
* @throws {RequiredError}
|
|
147013
|
-
*/
|
|
147014
|
-
public createThreadCircle(requestParameters: ThreadsCirclesApiCreateThreadCircleRequest, options?: RawAxiosRequestConfig) {
|
|
147015
|
-
return ThreadsCirclesApiFp(this.configuration).createThreadCircle(requestParameters.threadCircleCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
147016
|
-
}
|
|
147017
|
-
|
|
147018
|
-
/**
|
|
147019
|
-
* Delete Thread Circle endpoint
|
|
147020
|
-
* @summary Delete Thread Circle
|
|
147021
|
-
* @param {ThreadsCirclesApiDeleteThreadCircleRequest} requestParameters Request parameters.
|
|
147022
|
-
* @param {*} [options] Override http request option.
|
|
147023
|
-
* @throws {RequiredError}
|
|
147024
|
-
*/
|
|
147025
|
-
public deleteThreadCircle(requestParameters: ThreadsCirclesApiDeleteThreadCircleRequest, options?: RawAxiosRequestConfig) {
|
|
147026
|
-
return ThreadsCirclesApiFp(this.configuration).deleteThreadCircle(requestParameters.circleId, options).then((request) => request(this.axios, this.basePath));
|
|
147027
|
-
}
|
|
147028
|
-
|
|
147029
|
-
/**
|
|
147030
|
-
* Get Thread Circle endpoint
|
|
147031
|
-
* @summary Get Thread Circle
|
|
147032
|
-
* @param {ThreadsCirclesApiGetThreadCircleRequest} requestParameters Request parameters.
|
|
147033
|
-
* @param {*} [options] Override http request option.
|
|
147034
|
-
* @throws {RequiredError}
|
|
147035
|
-
*/
|
|
147036
|
-
public getThreadCircle(requestParameters: ThreadsCirclesApiGetThreadCircleRequest, options?: RawAxiosRequestConfig) {
|
|
147037
|
-
return ThreadsCirclesApiFp(this.configuration).getThreadCircle(requestParameters.circleId, options).then((request) => request(this.axios, this.basePath));
|
|
147038
|
-
}
|
|
147039
|
-
|
|
147040
|
-
/**
|
|
147041
|
-
* Get Thread Circle Threads endpoint
|
|
147042
|
-
* @summary Get Thread Circle Threads
|
|
147043
|
-
* @param {ThreadsCirclesApiGetThreadCircleThreadsRequest} requestParameters Request parameters.
|
|
147044
|
-
* @param {*} [options] Override http request option.
|
|
147045
|
-
* @throws {RequiredError}
|
|
147046
|
-
*/
|
|
147047
|
-
public getThreadCircleThreads(requestParameters: ThreadsCirclesApiGetThreadCircleThreadsRequest, options?: RawAxiosRequestConfig) {
|
|
147048
|
-
return ThreadsCirclesApiFp(this.configuration).getThreadCircleThreads(requestParameters.circleId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
147049
|
-
}
|
|
147050
|
-
|
|
147051
|
-
/**
|
|
147052
|
-
* Get Thread Circles endpoint
|
|
147053
|
-
* @summary Get Thread Circles
|
|
147054
|
-
* @param {ThreadsCirclesApiGetThreadCirclesRequest} requestParameters Request parameters.
|
|
147055
|
-
* @param {*} [options] Override http request option.
|
|
147056
|
-
* @throws {RequiredError}
|
|
147057
|
-
*/
|
|
147058
|
-
public getThreadCircles(requestParameters: ThreadsCirclesApiGetThreadCirclesRequest, options?: RawAxiosRequestConfig) {
|
|
147059
|
-
return ThreadsCirclesApiFp(this.configuration).getThreadCircles(requestParameters.type, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
147060
|
-
}
|
|
147061
|
-
|
|
147062
|
-
/**
|
|
147063
|
-
* Update Thread Circle endpoint
|
|
147064
|
-
* @summary Update Thread Circle
|
|
147065
|
-
* @param {ThreadsCirclesApiUpdateThreadCircleRequest} requestParameters Request parameters.
|
|
147066
|
-
* @param {*} [options] Override http request option.
|
|
147067
|
-
* @throws {RequiredError}
|
|
147068
|
-
*/
|
|
147069
|
-
public updateThreadCircle(requestParameters: ThreadsCirclesApiUpdateThreadCircleRequest, options?: RawAxiosRequestConfig) {
|
|
147070
|
-
return ThreadsCirclesApiFp(this.configuration).updateThreadCircle(requestParameters.circleId, requestParameters.threadCircleUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
147071
|
-
}
|
|
147072
|
-
}
|
|
147073
|
-
|
|
147074
|
-
|
|
147075
|
-
|
|
147076
|
-
/**
|
|
147077
|
-
* ThreadsCirclesAccountsApi - axios parameter creator
|
|
147078
|
-
*/
|
|
147079
|
-
export const ThreadsCirclesAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
147080
|
-
return {
|
|
147081
|
-
/**
|
|
147082
|
-
* Create Thread Circle Account endpoint
|
|
147083
|
-
* @summary Create Thread Circle Account
|
|
147084
|
-
* @param {string} circleId The circle identifier
|
|
147085
|
-
* @param {ThreadCircleAccountCreateInputs} threadCircleAccountCreateInputs
|
|
147086
|
-
* @param {*} [options] Override http request option.
|
|
147087
|
-
* @throws {RequiredError}
|
|
147088
|
-
*/
|
|
147089
|
-
createThreadCircleAccount: async (circleId: string, threadCircleAccountCreateInputs: ThreadCircleAccountCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147090
|
-
// verify required parameter 'circleId' is not null or undefined
|
|
147091
|
-
assertParamExists('createThreadCircleAccount', 'circleId', circleId)
|
|
147092
|
-
// verify required parameter 'threadCircleAccountCreateInputs' is not null or undefined
|
|
147093
|
-
assertParamExists('createThreadCircleAccount', 'threadCircleAccountCreateInputs', threadCircleAccountCreateInputs)
|
|
147094
|
-
const localVarPath = `/threads/circles/{circleId}/accounts`
|
|
147095
|
-
.replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
|
|
147096
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147097
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147098
|
-
let baseOptions;
|
|
147099
|
-
if (configuration) {
|
|
147100
|
-
baseOptions = configuration.baseOptions;
|
|
147101
|
-
}
|
|
147102
|
-
|
|
147103
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
147104
|
-
const localVarHeaderParameter = {} as any;
|
|
147105
|
-
const localVarQueryParameter = {} as any;
|
|
147106
|
-
|
|
147107
|
-
// authentication ApiKeyAuth required
|
|
147108
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
147109
|
-
|
|
147110
|
-
// authentication OrganizationId required
|
|
147111
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
147112
|
-
|
|
147113
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
147114
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
147115
|
-
|
|
147116
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147117
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147118
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147119
|
-
localVarRequestOptions.data = serializeDataIfNeeded(threadCircleAccountCreateInputs, localVarRequestOptions, configuration)
|
|
147120
|
-
|
|
147121
|
-
return {
|
|
147122
|
-
url: toPathString(localVarUrlObj),
|
|
147123
|
-
options: localVarRequestOptions,
|
|
147124
|
-
};
|
|
147125
|
-
},
|
|
147126
|
-
/**
|
|
147127
|
-
* Delete Thread Circle Account endpoint
|
|
147128
|
-
* @summary Delete Thread Circle Account
|
|
147129
|
-
* @param {string} circleId The circle identifier
|
|
147130
|
-
* @param {string} accountId The account identifier
|
|
147131
|
-
* @param {*} [options] Override http request option.
|
|
147132
|
-
* @throws {RequiredError}
|
|
147133
|
-
*/
|
|
147134
|
-
deleteThreadCircleAccount: async (circleId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147135
|
-
// verify required parameter 'circleId' is not null or undefined
|
|
147136
|
-
assertParamExists('deleteThreadCircleAccount', 'circleId', circleId)
|
|
147137
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
147138
|
-
assertParamExists('deleteThreadCircleAccount', 'accountId', accountId)
|
|
147139
|
-
const localVarPath = `/threads/circles/{circleId}/accounts/{accountId}`
|
|
147140
|
-
.replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)))
|
|
147141
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
147142
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147143
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147144
|
-
let baseOptions;
|
|
147145
|
-
if (configuration) {
|
|
147146
|
-
baseOptions = configuration.baseOptions;
|
|
147147
|
-
}
|
|
147148
|
-
|
|
147149
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
147150
|
-
const localVarHeaderParameter = {} as any;
|
|
147151
|
-
const localVarQueryParameter = {} as any;
|
|
147152
|
-
|
|
147153
|
-
// authentication ApiKeyAuth required
|
|
147154
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
147155
|
-
|
|
147156
|
-
// authentication OrganizationId required
|
|
147157
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
147158
|
-
|
|
147159
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
147160
|
-
|
|
147161
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147162
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147163
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147164
|
-
|
|
147165
|
-
return {
|
|
147166
|
-
url: toPathString(localVarUrlObj),
|
|
147167
|
-
options: localVarRequestOptions,
|
|
147168
|
-
};
|
|
147169
|
-
},
|
|
147170
|
-
/**
|
|
147171
|
-
* Get Thread Circle Account endpoint
|
|
147172
|
-
* @summary Get Thread Circle Account
|
|
147173
|
-
* @param {string} circleId The circle identifier
|
|
147174
|
-
* @param {string} accountId The account identifier
|
|
147175
|
-
* @param {*} [options] Override http request option.
|
|
147176
|
-
* @throws {RequiredError}
|
|
147177
|
-
*/
|
|
147178
|
-
getThreadCircleAccount: async (circleId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147179
|
-
// verify required parameter 'circleId' is not null or undefined
|
|
147180
|
-
assertParamExists('getThreadCircleAccount', 'circleId', circleId)
|
|
147181
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
147182
|
-
assertParamExists('getThreadCircleAccount', 'accountId', accountId)
|
|
147183
|
-
const localVarPath = `/threads/circles/{circleId}/accounts/{accountId}`
|
|
147184
|
-
.replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)))
|
|
147185
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
147186
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147187
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147188
|
-
let baseOptions;
|
|
147189
|
-
if (configuration) {
|
|
147190
|
-
baseOptions = configuration.baseOptions;
|
|
147191
|
-
}
|
|
147192
|
-
|
|
147193
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
147194
|
-
const localVarHeaderParameter = {} as any;
|
|
147195
|
-
const localVarQueryParameter = {} as any;
|
|
147196
|
-
|
|
147197
|
-
// authentication ApiKeyAuth required
|
|
147198
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
147199
|
-
|
|
147200
|
-
// authentication OrganizationId required
|
|
147201
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
147202
|
-
|
|
147203
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
147204
|
-
|
|
147205
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147206
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147207
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147208
|
-
|
|
147209
|
-
return {
|
|
147210
|
-
url: toPathString(localVarUrlObj),
|
|
147211
|
-
options: localVarRequestOptions,
|
|
147212
|
-
};
|
|
147213
|
-
},
|
|
147214
|
-
/**
|
|
147215
|
-
* Get Thread Circle Accounts endpoint
|
|
147216
|
-
* @summary Get Thread Circle Accounts
|
|
147217
|
-
* @param {string} circleId The circle identifier
|
|
147218
|
-
* @param {ThreadCircleAccountRole} [role] Filter by role
|
|
147219
|
-
* @param {number} [page] Page number
|
|
147220
|
-
* @param {number} [pageSize] Number of items per page
|
|
147221
|
-
* @param {string} [orderBy] Field to order by
|
|
147222
|
-
* @param {string} [search] Search query
|
|
147223
|
-
* @param {*} [options] Override http request option.
|
|
147224
|
-
* @throws {RequiredError}
|
|
147225
|
-
*/
|
|
147226
|
-
getThreadCircleAccounts: async (circleId: string, role?: ThreadCircleAccountRole, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147227
|
-
// verify required parameter 'circleId' is not null or undefined
|
|
147228
|
-
assertParamExists('getThreadCircleAccounts', 'circleId', circleId)
|
|
147229
|
-
const localVarPath = `/threads/circles/{circleId}/accounts`
|
|
147230
|
-
.replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)));
|
|
147231
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147232
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147233
|
-
let baseOptions;
|
|
147234
|
-
if (configuration) {
|
|
147235
|
-
baseOptions = configuration.baseOptions;
|
|
147236
|
-
}
|
|
147237
|
-
|
|
147238
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
147239
|
-
const localVarHeaderParameter = {} as any;
|
|
147240
|
-
const localVarQueryParameter = {} as any;
|
|
147241
|
-
|
|
147242
|
-
// authentication ApiKeyAuth required
|
|
147243
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
147244
|
-
|
|
147245
|
-
// authentication OrganizationId required
|
|
147246
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
147247
|
-
|
|
147248
|
-
if (role !== undefined) {
|
|
147249
|
-
localVarQueryParameter['role'] = role;
|
|
147250
|
-
}
|
|
147251
|
-
|
|
147252
|
-
if (page !== undefined) {
|
|
147253
|
-
localVarQueryParameter['page'] = page;
|
|
147254
|
-
}
|
|
147255
|
-
|
|
147256
|
-
if (pageSize !== undefined) {
|
|
147257
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
147258
|
-
}
|
|
147259
|
-
|
|
147260
|
-
if (orderBy !== undefined) {
|
|
147261
|
-
localVarQueryParameter['orderBy'] = orderBy;
|
|
147262
|
-
}
|
|
147263
|
-
|
|
147264
|
-
if (search !== undefined) {
|
|
147265
|
-
localVarQueryParameter['search'] = search;
|
|
147266
|
-
}
|
|
147267
|
-
|
|
147268
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
147269
|
-
|
|
147270
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147271
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147272
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147273
|
-
|
|
147274
|
-
return {
|
|
147275
|
-
url: toPathString(localVarUrlObj),
|
|
147276
|
-
options: localVarRequestOptions,
|
|
147277
|
-
};
|
|
147278
|
-
},
|
|
147279
|
-
/**
|
|
147280
|
-
* Update Thread Circle Account endpoint
|
|
147281
|
-
* @summary Update Thread Circle Account
|
|
147282
|
-
* @param {string} circleId The circle identifier
|
|
147283
|
-
* @param {string} accountId The account identifier
|
|
147284
|
-
* @param {ThreadCircleAccountUpdateInputs} threadCircleAccountUpdateInputs
|
|
147285
|
-
* @param {*} [options] Override http request option.
|
|
147286
|
-
* @throws {RequiredError}
|
|
147287
|
-
*/
|
|
147288
|
-
updateThreadCircleAccount: async (circleId: string, accountId: string, threadCircleAccountUpdateInputs: ThreadCircleAccountUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147289
|
-
// verify required parameter 'circleId' is not null or undefined
|
|
147290
|
-
assertParamExists('updateThreadCircleAccount', 'circleId', circleId)
|
|
147291
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
147292
|
-
assertParamExists('updateThreadCircleAccount', 'accountId', accountId)
|
|
147293
|
-
// verify required parameter 'threadCircleAccountUpdateInputs' is not null or undefined
|
|
147294
|
-
assertParamExists('updateThreadCircleAccount', 'threadCircleAccountUpdateInputs', threadCircleAccountUpdateInputs)
|
|
147295
|
-
const localVarPath = `/threads/circles/{circleId}/accounts/{accountId}`
|
|
147296
|
-
.replace(`{${"circleId"}}`, encodeURIComponent(String(circleId)))
|
|
147297
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
147298
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147299
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147300
|
-
let baseOptions;
|
|
147301
|
-
if (configuration) {
|
|
147302
|
-
baseOptions = configuration.baseOptions;
|
|
147303
|
-
}
|
|
147304
|
-
|
|
147305
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
147306
|
-
const localVarHeaderParameter = {} as any;
|
|
147307
|
-
const localVarQueryParameter = {} as any;
|
|
147308
|
-
|
|
147309
|
-
// authentication ApiKeyAuth required
|
|
147310
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
147311
|
-
|
|
147312
|
-
// authentication OrganizationId required
|
|
147313
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
147314
|
-
|
|
147315
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
147316
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
147317
|
-
|
|
147318
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147319
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147320
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147321
|
-
localVarRequestOptions.data = serializeDataIfNeeded(threadCircleAccountUpdateInputs, localVarRequestOptions, configuration)
|
|
147322
|
-
|
|
147323
|
-
return {
|
|
147324
|
-
url: toPathString(localVarUrlObj),
|
|
147325
|
-
options: localVarRequestOptions,
|
|
147326
|
-
};
|
|
147327
|
-
},
|
|
147328
|
-
}
|
|
147329
|
-
};
|
|
147330
|
-
|
|
147331
|
-
/**
|
|
147332
|
-
* ThreadsCirclesAccountsApi - functional programming interface
|
|
147333
|
-
*/
|
|
147334
|
-
export const ThreadsCirclesAccountsApiFp = function(configuration?: Configuration) {
|
|
147335
|
-
const localVarAxiosParamCreator = ThreadsCirclesAccountsApiAxiosParamCreator(configuration)
|
|
147336
|
-
return {
|
|
147337
|
-
/**
|
|
147338
|
-
* Create Thread Circle Account endpoint
|
|
147339
|
-
* @summary Create Thread Circle Account
|
|
147340
|
-
* @param {string} circleId The circle identifier
|
|
147341
|
-
* @param {ThreadCircleAccountCreateInputs} threadCircleAccountCreateInputs
|
|
147342
|
-
* @param {*} [options] Override http request option.
|
|
147343
|
-
* @throws {RequiredError}
|
|
147344
|
-
*/
|
|
147345
|
-
async createThreadCircleAccount(circleId: string, threadCircleAccountCreateInputs: ThreadCircleAccountCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircleAccount200Response>> {
|
|
147346
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createThreadCircleAccount(circleId, threadCircleAccountCreateInputs, options);
|
|
147347
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147348
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.createThreadCircleAccount']?.[localVarOperationServerIndex]?.url;
|
|
147349
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147350
|
-
},
|
|
147351
|
-
/**
|
|
147352
|
-
* Delete Thread Circle Account endpoint
|
|
147353
|
-
* @summary Delete Thread Circle Account
|
|
147354
|
-
* @param {string} circleId The circle identifier
|
|
147355
|
-
* @param {string} accountId The account identifier
|
|
147356
|
-
* @param {*} [options] Override http request option.
|
|
147357
|
-
* @throws {RequiredError}
|
|
147358
|
-
*/
|
|
147359
|
-
async deleteThreadCircleAccount(circleId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
147360
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteThreadCircleAccount(circleId, accountId, options);
|
|
147361
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147362
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.deleteThreadCircleAccount']?.[localVarOperationServerIndex]?.url;
|
|
147363
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147364
|
-
},
|
|
147365
|
-
/**
|
|
147366
|
-
* Get Thread Circle Account endpoint
|
|
147367
|
-
* @summary Get Thread Circle Account
|
|
147368
|
-
* @param {string} circleId The circle identifier
|
|
147369
|
-
* @param {string} accountId The account identifier
|
|
147370
|
-
* @param {*} [options] Override http request option.
|
|
147371
|
-
* @throws {RequiredError}
|
|
147372
|
-
*/
|
|
147373
|
-
async getThreadCircleAccount(circleId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircleAccount200Response>> {
|
|
147374
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadCircleAccount(circleId, accountId, options);
|
|
147375
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147376
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.getThreadCircleAccount']?.[localVarOperationServerIndex]?.url;
|
|
147377
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147378
|
-
},
|
|
147379
|
-
/**
|
|
147380
|
-
* Get Thread Circle Accounts endpoint
|
|
147381
|
-
* @summary Get Thread Circle Accounts
|
|
147382
|
-
* @param {string} circleId The circle identifier
|
|
147383
|
-
* @param {ThreadCircleAccountRole} [role] Filter by role
|
|
147384
|
-
* @param {number} [page] Page number
|
|
147385
|
-
* @param {number} [pageSize] Number of items per page
|
|
147386
|
-
* @param {string} [orderBy] Field to order by
|
|
147387
|
-
* @param {string} [search] Search query
|
|
147388
|
-
* @param {*} [options] Override http request option.
|
|
147389
|
-
* @throws {RequiredError}
|
|
147390
|
-
*/
|
|
147391
|
-
async getThreadCircleAccounts(circleId: string, role?: ThreadCircleAccountRole, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetThreadCircleAccounts200Response>> {
|
|
147392
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadCircleAccounts(circleId, role, page, pageSize, orderBy, search, options);
|
|
147393
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147394
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.getThreadCircleAccounts']?.[localVarOperationServerIndex]?.url;
|
|
147395
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147396
|
-
},
|
|
147397
|
-
/**
|
|
147398
|
-
* Update Thread Circle Account endpoint
|
|
147399
|
-
* @summary Update Thread Circle Account
|
|
147400
|
-
* @param {string} circleId The circle identifier
|
|
147401
|
-
* @param {string} accountId The account identifier
|
|
147402
|
-
* @param {ThreadCircleAccountUpdateInputs} threadCircleAccountUpdateInputs
|
|
147403
|
-
* @param {*} [options] Override http request option.
|
|
147404
|
-
* @throws {RequiredError}
|
|
147405
|
-
*/
|
|
147406
|
-
async updateThreadCircleAccount(circleId: string, accountId: string, threadCircleAccountUpdateInputs: ThreadCircleAccountUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateThreadCircleAccount200Response>> {
|
|
147407
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThreadCircleAccount(circleId, accountId, threadCircleAccountUpdateInputs, options);
|
|
147408
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147409
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsCirclesAccountsApi.updateThreadCircleAccount']?.[localVarOperationServerIndex]?.url;
|
|
147410
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147411
|
-
},
|
|
147412
|
-
}
|
|
147413
|
-
};
|
|
147414
|
-
|
|
147415
|
-
/**
|
|
147416
|
-
* ThreadsCirclesAccountsApi - factory interface
|
|
147417
|
-
*/
|
|
147418
|
-
export const ThreadsCirclesAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
147419
|
-
const localVarFp = ThreadsCirclesAccountsApiFp(configuration)
|
|
147420
|
-
return {
|
|
147421
|
-
/**
|
|
147422
|
-
* Create Thread Circle Account endpoint
|
|
147423
|
-
* @summary Create Thread Circle Account
|
|
147424
|
-
* @param {ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest} requestParameters Request parameters.
|
|
147425
|
-
* @param {*} [options] Override http request option.
|
|
147426
|
-
* @throws {RequiredError}
|
|
147427
|
-
*/
|
|
147428
|
-
createThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircleAccount200Response> {
|
|
147429
|
-
return localVarFp.createThreadCircleAccount(requestParameters.circleId, requestParameters.threadCircleAccountCreateInputs, options).then((request) => request(axios, basePath));
|
|
147430
|
-
},
|
|
147431
|
-
/**
|
|
147432
|
-
* Delete Thread Circle Account endpoint
|
|
147433
|
-
* @summary Delete Thread Circle Account
|
|
147434
|
-
* @param {ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest} requestParameters Request parameters.
|
|
147435
|
-
* @param {*} [options] Override http request option.
|
|
147436
|
-
* @throws {RequiredError}
|
|
147437
|
-
*/
|
|
147438
|
-
deleteThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
147439
|
-
return localVarFp.deleteThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
147440
|
-
},
|
|
147441
|
-
/**
|
|
147442
|
-
* Get Thread Circle Account endpoint
|
|
147443
|
-
* @summary Get Thread Circle Account
|
|
147444
|
-
* @param {ThreadsCirclesAccountsApiGetThreadCircleAccountRequest} requestParameters Request parameters.
|
|
147445
|
-
* @param {*} [options] Override http request option.
|
|
147446
|
-
* @throws {RequiredError}
|
|
147447
|
-
*/
|
|
147448
|
-
getThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiGetThreadCircleAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircleAccount200Response> {
|
|
147449
|
-
return localVarFp.getThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
147450
|
-
},
|
|
147451
|
-
/**
|
|
147452
|
-
* Get Thread Circle Accounts endpoint
|
|
147453
|
-
* @summary Get Thread Circle Accounts
|
|
147454
|
-
* @param {ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest} requestParameters Request parameters.
|
|
147455
|
-
* @param {*} [options] Override http request option.
|
|
147456
|
-
* @throws {RequiredError}
|
|
147457
|
-
*/
|
|
147458
|
-
getThreadCircleAccounts(requestParameters: ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetThreadCircleAccounts200Response> {
|
|
147459
|
-
return localVarFp.getThreadCircleAccounts(requestParameters.circleId, requestParameters.role, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
147460
|
-
},
|
|
147461
|
-
/**
|
|
147462
|
-
* Update Thread Circle Account endpoint
|
|
147463
|
-
* @summary Update Thread Circle Account
|
|
147464
|
-
* @param {ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest} requestParameters Request parameters.
|
|
147465
|
-
* @param {*} [options] Override http request option.
|
|
147466
|
-
* @throws {RequiredError}
|
|
147467
|
-
*/
|
|
147468
|
-
updateThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateThreadCircleAccount200Response> {
|
|
147469
|
-
return localVarFp.updateThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, requestParameters.threadCircleAccountUpdateInputs, options).then((request) => request(axios, basePath));
|
|
147470
|
-
},
|
|
147471
|
-
};
|
|
147472
|
-
};
|
|
147473
|
-
|
|
147474
|
-
/**
|
|
147475
|
-
* Request parameters for createThreadCircleAccount operation in ThreadsCirclesAccountsApi.
|
|
147476
|
-
*/
|
|
147477
|
-
export interface ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest {
|
|
147478
|
-
/**
|
|
147479
|
-
* The circle identifier
|
|
147480
|
-
*/
|
|
147481
|
-
readonly circleId: string
|
|
147482
|
-
|
|
147483
|
-
readonly threadCircleAccountCreateInputs: ThreadCircleAccountCreateInputs
|
|
147484
|
-
}
|
|
147485
|
-
|
|
147486
|
-
/**
|
|
147487
|
-
* Request parameters for deleteThreadCircleAccount operation in ThreadsCirclesAccountsApi.
|
|
147488
|
-
*/
|
|
147489
|
-
export interface ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest {
|
|
147490
|
-
/**
|
|
147491
|
-
* The circle identifier
|
|
147492
|
-
*/
|
|
147493
|
-
readonly circleId: string
|
|
147494
|
-
|
|
147495
|
-
/**
|
|
147496
|
-
* The account identifier
|
|
147497
|
-
*/
|
|
147498
|
-
readonly accountId: string
|
|
147499
|
-
}
|
|
147500
|
-
|
|
147501
|
-
/**
|
|
147502
|
-
* Request parameters for getThreadCircleAccount operation in ThreadsCirclesAccountsApi.
|
|
147503
|
-
*/
|
|
147504
|
-
export interface ThreadsCirclesAccountsApiGetThreadCircleAccountRequest {
|
|
147505
|
-
/**
|
|
147506
|
-
* The circle identifier
|
|
147507
|
-
*/
|
|
147508
|
-
readonly circleId: string
|
|
147509
|
-
|
|
147510
|
-
/**
|
|
147511
|
-
* The account identifier
|
|
147512
|
-
*/
|
|
147513
|
-
readonly accountId: string
|
|
147514
|
-
}
|
|
147515
|
-
|
|
147516
|
-
/**
|
|
147517
|
-
* Request parameters for getThreadCircleAccounts operation in ThreadsCirclesAccountsApi.
|
|
147518
|
-
*/
|
|
147519
|
-
export interface ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest {
|
|
147520
|
-
/**
|
|
147521
|
-
* The circle identifier
|
|
147522
|
-
*/
|
|
147523
|
-
readonly circleId: string
|
|
147524
|
-
|
|
147525
|
-
/**
|
|
147526
|
-
* Filter by role
|
|
147527
|
-
*/
|
|
147528
|
-
readonly role?: ThreadCircleAccountRole
|
|
147529
|
-
|
|
147530
|
-
/**
|
|
147531
|
-
* Page number
|
|
147532
|
-
*/
|
|
147533
|
-
readonly page?: number
|
|
147534
|
-
|
|
147535
|
-
/**
|
|
147536
|
-
* Number of items per page
|
|
147537
|
-
*/
|
|
147538
|
-
readonly pageSize?: number
|
|
147539
|
-
|
|
147540
|
-
/**
|
|
147541
|
-
* Field to order by
|
|
147542
|
-
*/
|
|
147543
|
-
readonly orderBy?: string
|
|
147544
|
-
|
|
147545
|
-
/**
|
|
147546
|
-
* Search query
|
|
147547
|
-
*/
|
|
147548
|
-
readonly search?: string
|
|
147549
|
-
}
|
|
147550
|
-
|
|
147551
|
-
/**
|
|
147552
|
-
* Request parameters for updateThreadCircleAccount operation in ThreadsCirclesAccountsApi.
|
|
147553
|
-
*/
|
|
147554
|
-
export interface ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest {
|
|
147555
|
-
/**
|
|
147556
|
-
* The circle identifier
|
|
147557
|
-
*/
|
|
147558
|
-
readonly circleId: string
|
|
147559
|
-
|
|
147560
|
-
/**
|
|
147561
|
-
* The account identifier
|
|
147562
|
-
*/
|
|
147563
|
-
readonly accountId: string
|
|
147564
|
-
|
|
147565
|
-
readonly threadCircleAccountUpdateInputs: ThreadCircleAccountUpdateInputs
|
|
147566
|
-
}
|
|
147567
|
-
|
|
147568
|
-
/**
|
|
147569
|
-
* ThreadsCirclesAccountsApi - object-oriented interface
|
|
147570
|
-
*/
|
|
147571
|
-
export class ThreadsCirclesAccountsApi extends BaseAPI {
|
|
147572
|
-
/**
|
|
147573
|
-
* Create Thread Circle Account endpoint
|
|
147574
|
-
* @summary Create Thread Circle Account
|
|
147575
|
-
* @param {ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest} requestParameters Request parameters.
|
|
147576
|
-
* @param {*} [options] Override http request option.
|
|
147577
|
-
* @throws {RequiredError}
|
|
147578
|
-
*/
|
|
147579
|
-
public createThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiCreateThreadCircleAccountRequest, options?: RawAxiosRequestConfig) {
|
|
147580
|
-
return ThreadsCirclesAccountsApiFp(this.configuration).createThreadCircleAccount(requestParameters.circleId, requestParameters.threadCircleAccountCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
147581
|
-
}
|
|
147582
|
-
|
|
147583
|
-
/**
|
|
147584
|
-
* Delete Thread Circle Account endpoint
|
|
147585
|
-
* @summary Delete Thread Circle Account
|
|
147586
|
-
* @param {ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest} requestParameters Request parameters.
|
|
147587
|
-
* @param {*} [options] Override http request option.
|
|
147588
|
-
* @throws {RequiredError}
|
|
147589
|
-
*/
|
|
147590
|
-
public deleteThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiDeleteThreadCircleAccountRequest, options?: RawAxiosRequestConfig) {
|
|
147591
|
-
return ThreadsCirclesAccountsApiFp(this.configuration).deleteThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
147592
|
-
}
|
|
147593
|
-
|
|
147594
|
-
/**
|
|
147595
|
-
* Get Thread Circle Account endpoint
|
|
147596
|
-
* @summary Get Thread Circle Account
|
|
147597
|
-
* @param {ThreadsCirclesAccountsApiGetThreadCircleAccountRequest} requestParameters Request parameters.
|
|
147598
|
-
* @param {*} [options] Override http request option.
|
|
147599
|
-
* @throws {RequiredError}
|
|
147600
|
-
*/
|
|
147601
|
-
public getThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiGetThreadCircleAccountRequest, options?: RawAxiosRequestConfig) {
|
|
147602
|
-
return ThreadsCirclesAccountsApiFp(this.configuration).getThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
147603
|
-
}
|
|
147604
|
-
|
|
147605
|
-
/**
|
|
147606
|
-
* Get Thread Circle Accounts endpoint
|
|
147607
|
-
* @summary Get Thread Circle Accounts
|
|
147608
|
-
* @param {ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest} requestParameters Request parameters.
|
|
147609
|
-
* @param {*} [options] Override http request option.
|
|
147610
|
-
* @throws {RequiredError}
|
|
147611
|
-
*/
|
|
147612
|
-
public getThreadCircleAccounts(requestParameters: ThreadsCirclesAccountsApiGetThreadCircleAccountsRequest, options?: RawAxiosRequestConfig) {
|
|
147613
|
-
return ThreadsCirclesAccountsApiFp(this.configuration).getThreadCircleAccounts(requestParameters.circleId, requestParameters.role, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
147614
|
-
}
|
|
147615
|
-
|
|
147616
|
-
/**
|
|
147617
|
-
* Update Thread Circle Account endpoint
|
|
147618
|
-
* @summary Update Thread Circle Account
|
|
147619
|
-
* @param {ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest} requestParameters Request parameters.
|
|
147620
|
-
* @param {*} [options] Override http request option.
|
|
147621
|
-
* @throws {RequiredError}
|
|
147622
|
-
*/
|
|
147623
|
-
public updateThreadCircleAccount(requestParameters: ThreadsCirclesAccountsApiUpdateThreadCircleAccountRequest, options?: RawAxiosRequestConfig) {
|
|
147624
|
-
return ThreadsCirclesAccountsApiFp(this.configuration).updateThreadCircleAccount(requestParameters.circleId, requestParameters.accountId, requestParameters.threadCircleAccountUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
147625
|
-
}
|
|
147626
|
-
}
|
|
147627
|
-
|
|
147628
|
-
|
|
147629
|
-
|
|
147630
|
-
/**
|
|
147631
|
-
* ThreadsMembersApi - axios parameter creator
|
|
147632
|
-
*/
|
|
147633
|
-
export const ThreadsMembersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
147634
|
-
return {
|
|
147635
|
-
/**
|
|
147636
|
-
* Get Thread Accounts endpoint
|
|
147637
|
-
* @summary Get Thread Accounts
|
|
147638
|
-
* @param {string} threadId The thread identifier
|
|
147639
|
-
* @param {number} [page] Page number
|
|
147640
|
-
* @param {number} [pageSize] Number of items per page
|
|
147641
|
-
* @param {string} [orderBy] Field to order by
|
|
147642
|
-
* @param {string} [search] Search query
|
|
147643
|
-
* @param {*} [options] Override http request option.
|
|
147644
|
-
* @throws {RequiredError}
|
|
147645
|
-
*/
|
|
147646
|
-
getThreadAccounts: async (threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147647
|
-
// verify required parameter 'threadId' is not null or undefined
|
|
147648
|
-
assertParamExists('getThreadAccounts', 'threadId', threadId)
|
|
147649
|
-
const localVarPath = `/threads/{threadId}/accounts`
|
|
147650
|
-
.replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
|
|
147651
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147652
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147653
|
-
let baseOptions;
|
|
147654
|
-
if (configuration) {
|
|
147655
|
-
baseOptions = configuration.baseOptions;
|
|
147656
|
-
}
|
|
147657
|
-
|
|
147658
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
147659
|
-
const localVarHeaderParameter = {} as any;
|
|
147660
|
-
const localVarQueryParameter = {} as any;
|
|
147661
|
-
|
|
147662
|
-
// authentication ApiKeyAuth required
|
|
147663
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
147664
|
-
|
|
147665
|
-
// authentication OrganizationId required
|
|
147666
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
147667
|
-
|
|
147668
|
-
if (page !== undefined) {
|
|
147669
|
-
localVarQueryParameter['page'] = page;
|
|
147670
|
-
}
|
|
147671
|
-
|
|
147672
|
-
if (pageSize !== undefined) {
|
|
147673
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
147674
|
-
}
|
|
147675
|
-
|
|
147676
|
-
if (orderBy !== undefined) {
|
|
147677
|
-
localVarQueryParameter['orderBy'] = orderBy;
|
|
147678
|
-
}
|
|
147679
|
-
|
|
147680
|
-
if (search !== undefined) {
|
|
147681
|
-
localVarQueryParameter['search'] = search;
|
|
147682
|
-
}
|
|
147683
|
-
|
|
147684
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
147685
|
-
|
|
147686
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147687
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147688
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147689
|
-
|
|
147690
|
-
return {
|
|
147691
|
-
url: toPathString(localVarUrlObj),
|
|
147692
|
-
options: localVarRequestOptions,
|
|
147693
|
-
};
|
|
147694
|
-
},
|
|
147695
|
-
/**
|
|
147696
|
-
* Get Thread Members endpoint
|
|
147697
|
-
* @summary Get Thread Members
|
|
147698
|
-
* @param {string} threadId The thread identifier
|
|
147699
|
-
* @param {number} [page] Page number
|
|
147700
|
-
* @param {number} [pageSize] Number of items per page
|
|
147701
|
-
* @param {string} [orderBy] Field to order by
|
|
147702
|
-
* @param {string} [search] Search query
|
|
147703
|
-
* @param {*} [options] Override http request option.
|
|
147704
|
-
* @throws {RequiredError}
|
|
147705
|
-
*/
|
|
147706
|
-
getThreadMembers: async (threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147707
|
-
// verify required parameter 'threadId' is not null or undefined
|
|
147708
|
-
assertParamExists('getThreadMembers', 'threadId', threadId)
|
|
147709
|
-
const localVarPath = `/threads/{threadId}/members`
|
|
147710
|
-
.replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)));
|
|
147711
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147712
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147713
|
-
let baseOptions;
|
|
147714
|
-
if (configuration) {
|
|
147715
|
-
baseOptions = configuration.baseOptions;
|
|
147716
|
-
}
|
|
147717
|
-
|
|
147718
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
147719
|
-
const localVarHeaderParameter = {} as any;
|
|
147720
|
-
const localVarQueryParameter = {} as any;
|
|
147721
|
-
|
|
147722
|
-
// authentication ApiKeyAuth required
|
|
147723
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
147724
|
-
|
|
147725
|
-
// authentication OrganizationId required
|
|
147726
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
147727
|
-
|
|
147728
|
-
if (page !== undefined) {
|
|
147729
|
-
localVarQueryParameter['page'] = page;
|
|
147730
|
-
}
|
|
147731
|
-
|
|
147732
|
-
if (pageSize !== undefined) {
|
|
147733
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
147734
|
-
}
|
|
147735
|
-
|
|
147736
|
-
if (orderBy !== undefined) {
|
|
147737
|
-
localVarQueryParameter['orderBy'] = orderBy;
|
|
147738
|
-
}
|
|
147739
|
-
|
|
147740
|
-
if (search !== undefined) {
|
|
147741
|
-
localVarQueryParameter['search'] = search;
|
|
147742
|
-
}
|
|
147743
|
-
|
|
147744
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
147745
|
-
|
|
147746
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147747
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147748
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147749
|
-
|
|
147750
|
-
return {
|
|
147751
|
-
url: toPathString(localVarUrlObj),
|
|
147752
|
-
options: localVarRequestOptions,
|
|
147753
|
-
};
|
|
147754
|
-
},
|
|
147755
|
-
/**
|
|
147756
|
-
* Update Thread Member endpoint
|
|
147757
|
-
* @summary Update Thread Member
|
|
147758
|
-
* @param {string} threadId The thread identifier
|
|
147759
|
-
* @param {string} accountId The account identifier
|
|
147760
|
-
* @param {ThreadMemberUpdateInputs} threadMemberUpdateInputs
|
|
147761
|
-
* @param {*} [options] Override http request option.
|
|
147762
|
-
* @throws {RequiredError}
|
|
147763
|
-
*/
|
|
147764
|
-
updateThreadMember: async (threadId: string, accountId: string, threadMemberUpdateInputs: ThreadMemberUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147765
|
-
// verify required parameter 'threadId' is not null or undefined
|
|
147766
|
-
assertParamExists('updateThreadMember', 'threadId', threadId)
|
|
147767
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
147768
|
-
assertParamExists('updateThreadMember', 'accountId', accountId)
|
|
147769
|
-
// verify required parameter 'threadMemberUpdateInputs' is not null or undefined
|
|
147770
|
-
assertParamExists('updateThreadMember', 'threadMemberUpdateInputs', threadMemberUpdateInputs)
|
|
147771
|
-
const localVarPath = `/threads/{threadId}/members/{accountId}`
|
|
147772
|
-
.replace(`{${"threadId"}}`, encodeURIComponent(String(threadId)))
|
|
147773
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
147774
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147775
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147776
|
-
let baseOptions;
|
|
147777
|
-
if (configuration) {
|
|
147778
|
-
baseOptions = configuration.baseOptions;
|
|
147779
|
-
}
|
|
147780
|
-
|
|
147781
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
147782
|
-
const localVarHeaderParameter = {} as any;
|
|
147783
|
-
const localVarQueryParameter = {} as any;
|
|
147784
|
-
|
|
147785
|
-
// authentication ApiKeyAuth required
|
|
147786
|
-
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
147787
|
-
|
|
147788
|
-
// authentication OrganizationId required
|
|
147789
|
-
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
147790
|
-
|
|
147791
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
147792
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
147793
|
-
|
|
147794
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147795
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147796
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147797
|
-
localVarRequestOptions.data = serializeDataIfNeeded(threadMemberUpdateInputs, localVarRequestOptions, configuration)
|
|
147798
|
-
|
|
147799
|
-
return {
|
|
147800
|
-
url: toPathString(localVarUrlObj),
|
|
147801
|
-
options: localVarRequestOptions,
|
|
147802
|
-
};
|
|
147803
|
-
},
|
|
147804
|
-
}
|
|
147805
|
-
};
|
|
147806
|
-
|
|
147807
|
-
/**
|
|
147808
|
-
* ThreadsMembersApi - functional programming interface
|
|
147809
|
-
*/
|
|
147810
|
-
export const ThreadsMembersApiFp = function(configuration?: Configuration) {
|
|
147811
|
-
const localVarAxiosParamCreator = ThreadsMembersApiAxiosParamCreator(configuration)
|
|
147812
|
-
return {
|
|
147813
|
-
/**
|
|
147814
|
-
* Get Thread Accounts endpoint
|
|
147815
|
-
* @summary Get Thread Accounts
|
|
147816
|
-
* @param {string} threadId The thread identifier
|
|
147817
|
-
* @param {number} [page] Page number
|
|
147818
|
-
* @param {number} [pageSize] Number of items per page
|
|
147819
|
-
* @param {string} [orderBy] Field to order by
|
|
147820
|
-
* @param {string} [search] Search query
|
|
147821
|
-
* @param {*} [options] Override http request option.
|
|
147822
|
-
* @throws {RequiredError}
|
|
147823
|
-
*/
|
|
147824
|
-
async getThreadAccounts(threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccounts200Response>> {
|
|
147825
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadAccounts(threadId, page, pageSize, orderBy, search, options);
|
|
147826
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147827
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsMembersApi.getThreadAccounts']?.[localVarOperationServerIndex]?.url;
|
|
147828
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147829
|
-
},
|
|
147830
|
-
/**
|
|
147831
|
-
* Get Thread Members endpoint
|
|
147832
|
-
* @summary Get Thread Members
|
|
147833
|
-
* @param {string} threadId The thread identifier
|
|
147834
|
-
* @param {number} [page] Page number
|
|
147835
|
-
* @param {number} [pageSize] Number of items per page
|
|
147836
|
-
* @param {string} [orderBy] Field to order by
|
|
147837
|
-
* @param {string} [search] Search query
|
|
147838
|
-
* @param {*} [options] Override http request option.
|
|
147839
|
-
* @throws {RequiredError}
|
|
147840
|
-
*/
|
|
147841
|
-
async getThreadMembers(threadId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetThreadMembers200Response>> {
|
|
147842
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getThreadMembers(threadId, page, pageSize, orderBy, search, options);
|
|
147843
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147844
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsMembersApi.getThreadMembers']?.[localVarOperationServerIndex]?.url;
|
|
147845
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147846
|
-
},
|
|
147847
|
-
/**
|
|
147848
|
-
* Update Thread Member endpoint
|
|
147849
|
-
* @summary Update Thread Member
|
|
147850
|
-
* @param {string} threadId The thread identifier
|
|
147851
|
-
* @param {string} accountId The account identifier
|
|
147852
|
-
* @param {ThreadMemberUpdateInputs} threadMemberUpdateInputs
|
|
147853
|
-
* @param {*} [options] Override http request option.
|
|
147854
|
-
* @throws {RequiredError}
|
|
147855
|
-
*/
|
|
147856
|
-
async updateThreadMember(threadId: string, accountId: string, threadMemberUpdateInputs: ThreadMemberUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateThreadMember200Response>> {
|
|
147857
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThreadMember(threadId, accountId, threadMemberUpdateInputs, options);
|
|
147858
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147859
|
-
const localVarOperationServerBasePath = operationServerMap['ThreadsMembersApi.updateThreadMember']?.[localVarOperationServerIndex]?.url;
|
|
147860
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147861
|
-
},
|
|
147862
|
-
}
|
|
147863
|
-
};
|
|
147864
|
-
|
|
147865
|
-
/**
|
|
147866
|
-
* ThreadsMembersApi - factory interface
|
|
147867
|
-
*/
|
|
147868
|
-
export const ThreadsMembersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
147869
|
-
const localVarFp = ThreadsMembersApiFp(configuration)
|
|
147870
|
-
return {
|
|
147871
|
-
/**
|
|
147872
|
-
* Get Thread Accounts endpoint
|
|
147873
|
-
* @summary Get Thread Accounts
|
|
147874
|
-
* @param {ThreadsMembersApiGetThreadAccountsRequest} requestParameters Request parameters.
|
|
147875
|
-
* @param {*} [options] Override http request option.
|
|
147876
|
-
* @throws {RequiredError}
|
|
147877
|
-
*/
|
|
147878
|
-
getThreadAccounts(requestParameters: ThreadsMembersApiGetThreadAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccounts200Response> {
|
|
147879
|
-
return localVarFp.getThreadAccounts(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
147880
|
-
},
|
|
147881
|
-
/**
|
|
147882
|
-
* Get Thread Members endpoint
|
|
147883
|
-
* @summary Get Thread Members
|
|
147884
|
-
* @param {ThreadsMembersApiGetThreadMembersRequest} requestParameters Request parameters.
|
|
147885
|
-
* @param {*} [options] Override http request option.
|
|
147886
|
-
* @throws {RequiredError}
|
|
147887
|
-
*/
|
|
147888
|
-
getThreadMembers(requestParameters: ThreadsMembersApiGetThreadMembersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetThreadMembers200Response> {
|
|
147889
|
-
return localVarFp.getThreadMembers(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
147890
|
-
},
|
|
147891
|
-
/**
|
|
147892
|
-
* Update Thread Member endpoint
|
|
147893
|
-
* @summary Update Thread Member
|
|
147894
|
-
* @param {ThreadsMembersApiUpdateThreadMemberRequest} requestParameters Request parameters.
|
|
147895
|
-
* @param {*} [options] Override http request option.
|
|
147896
|
-
* @throws {RequiredError}
|
|
147897
|
-
*/
|
|
147898
|
-
updateThreadMember(requestParameters: ThreadsMembersApiUpdateThreadMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateThreadMember200Response> {
|
|
147899
|
-
return localVarFp.updateThreadMember(requestParameters.threadId, requestParameters.accountId, requestParameters.threadMemberUpdateInputs, options).then((request) => request(axios, basePath));
|
|
147900
|
-
},
|
|
147901
|
-
};
|
|
147902
|
-
};
|
|
147903
|
-
|
|
147904
|
-
/**
|
|
147905
|
-
* Request parameters for getThreadAccounts operation in ThreadsMembersApi.
|
|
147906
|
-
*/
|
|
147907
|
-
export interface ThreadsMembersApiGetThreadAccountsRequest {
|
|
147908
|
-
/**
|
|
147909
|
-
* The thread identifier
|
|
147910
|
-
*/
|
|
147911
|
-
readonly threadId: string
|
|
147912
|
-
|
|
147913
|
-
/**
|
|
147914
|
-
* Page number
|
|
147915
|
-
*/
|
|
147916
|
-
readonly page?: number
|
|
147917
|
-
|
|
147918
|
-
/**
|
|
147919
|
-
* Number of items per page
|
|
147920
|
-
*/
|
|
147921
|
-
readonly pageSize?: number
|
|
147922
|
-
|
|
147923
|
-
/**
|
|
147924
|
-
* Field to order by
|
|
147925
|
-
*/
|
|
147926
|
-
readonly orderBy?: string
|
|
147927
|
-
|
|
147928
|
-
/**
|
|
147929
|
-
* Search query
|
|
147930
|
-
*/
|
|
147931
|
-
readonly search?: string
|
|
147932
|
-
}
|
|
147933
|
-
|
|
147934
|
-
/**
|
|
147935
|
-
* Request parameters for getThreadMembers operation in ThreadsMembersApi.
|
|
147936
|
-
*/
|
|
147937
|
-
export interface ThreadsMembersApiGetThreadMembersRequest {
|
|
147938
|
-
/**
|
|
147939
|
-
* The thread identifier
|
|
147940
|
-
*/
|
|
147941
|
-
readonly threadId: string
|
|
147942
|
-
|
|
147943
|
-
/**
|
|
147944
|
-
* Page number
|
|
147945
|
-
*/
|
|
147946
|
-
readonly page?: number
|
|
147947
|
-
|
|
147948
|
-
/**
|
|
147949
|
-
* Number of items per page
|
|
147950
|
-
*/
|
|
147951
|
-
readonly pageSize?: number
|
|
147952
|
-
|
|
147953
|
-
/**
|
|
147954
|
-
* Field to order by
|
|
147955
|
-
*/
|
|
147956
|
-
readonly orderBy?: string
|
|
147957
|
-
|
|
147958
|
-
/**
|
|
147959
|
-
* Search query
|
|
147960
|
-
*/
|
|
147961
|
-
readonly search?: string
|
|
147962
|
-
}
|
|
147963
|
-
|
|
147964
|
-
/**
|
|
147965
|
-
* Request parameters for updateThreadMember operation in ThreadsMembersApi.
|
|
147966
|
-
*/
|
|
147967
|
-
export interface ThreadsMembersApiUpdateThreadMemberRequest {
|
|
146335
|
+
export interface ThreadsAccountsApiUpdateThreadAccountRequest {
|
|
147968
146336
|
/**
|
|
147969
146337
|
* The thread identifier
|
|
147970
146338
|
*/
|
|
@@ -147975,44 +146343,44 @@ export interface ThreadsMembersApiUpdateThreadMemberRequest {
|
|
|
147975
146343
|
*/
|
|
147976
146344
|
readonly accountId: string
|
|
147977
146345
|
|
|
147978
|
-
readonly
|
|
146346
|
+
readonly threadAccountUpdateInputs: ThreadAccountUpdateInputs
|
|
147979
146347
|
}
|
|
147980
146348
|
|
|
147981
146349
|
/**
|
|
147982
|
-
*
|
|
146350
|
+
* ThreadsAccountsApi - object-oriented interface
|
|
147983
146351
|
*/
|
|
147984
|
-
export class
|
|
146352
|
+
export class ThreadsAccountsApi extends BaseAPI {
|
|
147985
146353
|
/**
|
|
147986
|
-
*
|
|
147987
|
-
* @summary
|
|
147988
|
-
* @param {
|
|
146354
|
+
* Delete Thread Account endpoint
|
|
146355
|
+
* @summary Delete Thread Account
|
|
146356
|
+
* @param {ThreadsAccountsApiDeleteThreadAccountRequest} requestParameters Request parameters.
|
|
147989
146357
|
* @param {*} [options] Override http request option.
|
|
147990
146358
|
* @throws {RequiredError}
|
|
147991
146359
|
*/
|
|
147992
|
-
public
|
|
147993
|
-
return
|
|
146360
|
+
public deleteThreadAccount(requestParameters: ThreadsAccountsApiDeleteThreadAccountRequest, options?: RawAxiosRequestConfig) {
|
|
146361
|
+
return ThreadsAccountsApiFp(this.configuration).deleteThreadAccount(requestParameters.threadId, requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
147994
146362
|
}
|
|
147995
146363
|
|
|
147996
146364
|
/**
|
|
147997
|
-
* Get Thread
|
|
147998
|
-
* @summary Get Thread
|
|
147999
|
-
* @param {
|
|
146365
|
+
* Get Thread Accounts endpoint
|
|
146366
|
+
* @summary Get Thread Accounts
|
|
146367
|
+
* @param {ThreadsAccountsApiGetThreadAccountsRequest} requestParameters Request parameters.
|
|
148000
146368
|
* @param {*} [options] Override http request option.
|
|
148001
146369
|
* @throws {RequiredError}
|
|
148002
146370
|
*/
|
|
148003
|
-
public
|
|
148004
|
-
return
|
|
146371
|
+
public getThreadAccounts(requestParameters: ThreadsAccountsApiGetThreadAccountsRequest, options?: RawAxiosRequestConfig) {
|
|
146372
|
+
return ThreadsAccountsApiFp(this.configuration).getThreadAccounts(requestParameters.threadId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
148005
146373
|
}
|
|
148006
146374
|
|
|
148007
146375
|
/**
|
|
148008
|
-
* Update Thread
|
|
148009
|
-
* @summary Update Thread
|
|
148010
|
-
* @param {
|
|
146376
|
+
* Update Thread Account endpoint
|
|
146377
|
+
* @summary Update Thread Account
|
|
146378
|
+
* @param {ThreadsAccountsApiUpdateThreadAccountRequest} requestParameters Request parameters.
|
|
148011
146379
|
* @param {*} [options] Override http request option.
|
|
148012
146380
|
* @throws {RequiredError}
|
|
148013
146381
|
*/
|
|
148014
|
-
public
|
|
148015
|
-
return
|
|
146382
|
+
public updateThreadAccount(requestParameters: ThreadsAccountsApiUpdateThreadAccountRequest, options?: RawAxiosRequestConfig) {
|
|
146383
|
+
return ThreadsAccountsApiFp(this.configuration).updateThreadAccount(requestParameters.threadId, requestParameters.accountId, requestParameters.threadAccountUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
148016
146384
|
}
|
|
148017
146385
|
}
|
|
148018
146386
|
|