@connectedxm/admin 7.0.6 → 7.0.8
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/dist/index.cjs +4 -4
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +4 -4
- package/openapi.json +5 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -42820,13 +42820,13 @@ var useUpdateSurvey = (options = {}) => {
|
|
|
42820
42820
|
// src/mutations/threads/accounts/useDeleteThreadAccount.ts
|
|
42821
42821
|
var DeleteThreadAccount = async ({
|
|
42822
42822
|
threadId,
|
|
42823
|
-
|
|
42823
|
+
threadAccountId,
|
|
42824
42824
|
adminApiParams,
|
|
42825
42825
|
queryClient
|
|
42826
42826
|
}) => {
|
|
42827
42827
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
42828
42828
|
const { data } = await connectedXM.delete(
|
|
42829
|
-
`/threads/${threadId}/accounts/${
|
|
42829
|
+
`/threads/${threadId}/accounts/${threadAccountId}`
|
|
42830
42830
|
);
|
|
42831
42831
|
if (queryClient && data.status === "ok") {
|
|
42832
42832
|
queryClient.invalidateQueries({
|
|
@@ -42845,14 +42845,14 @@ var useDeleteThreadAccount = (options = {}) => {
|
|
|
42845
42845
|
// src/mutations/threads/accounts/useUpdateThreadAccount.ts
|
|
42846
42846
|
var UpdateThreadAccount = async ({
|
|
42847
42847
|
threadId,
|
|
42848
|
-
|
|
42848
|
+
threadAccountId,
|
|
42849
42849
|
threadAccount,
|
|
42850
42850
|
adminApiParams,
|
|
42851
42851
|
queryClient
|
|
42852
42852
|
}) => {
|
|
42853
42853
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
42854
42854
|
const { data } = await connectedXM.put(
|
|
42855
|
-
`/threads/${threadId}/accounts/${
|
|
42855
|
+
`/threads/${threadId}/accounts/${threadAccountId}`,
|
|
42856
42856
|
threadAccount
|
|
42857
42857
|
);
|
|
42858
42858
|
if (queryClient && data.status === "ok") {
|
package/dist/index.d.cts
CHANGED
|
@@ -3497,7 +3497,6 @@ interface ThreadMessageRead {
|
|
|
3497
3497
|
interface BaseThreadMessage {
|
|
3498
3498
|
id: string;
|
|
3499
3499
|
body: string;
|
|
3500
|
-
accountId: string;
|
|
3501
3500
|
threadAccount: ThreadAccount;
|
|
3502
3501
|
createdAt: string;
|
|
3503
3502
|
editedAt: string | null;
|
|
@@ -33268,13 +33267,13 @@ declare const useUpdateSurvey: (options?: Omit<ConnectedXMMutationOptions<Awaite
|
|
|
33268
33267
|
*/
|
|
33269
33268
|
interface DeleteThreadAccountParams extends MutationParams {
|
|
33270
33269
|
threadId: string;
|
|
33271
|
-
|
|
33270
|
+
threadAccountId: string;
|
|
33272
33271
|
}
|
|
33273
33272
|
/**
|
|
33274
33273
|
* @category Methods
|
|
33275
33274
|
* @group Threads
|
|
33276
33275
|
*/
|
|
33277
|
-
declare const DeleteThreadAccount: ({ threadId,
|
|
33276
|
+
declare const DeleteThreadAccount: ({ threadId, threadAccountId, adminApiParams, queryClient, }: DeleteThreadAccountParams) => Promise<ConnectedXMResponse<null>>;
|
|
33278
33277
|
/**
|
|
33279
33278
|
* @category Mutations
|
|
33280
33279
|
* @group Threads
|
|
@@ -33287,14 +33286,14 @@ declare const useDeleteThreadAccount: (options?: Omit<ConnectedXMMutationOptions
|
|
|
33287
33286
|
*/
|
|
33288
33287
|
interface UpdateThreadAccountParams extends MutationParams {
|
|
33289
33288
|
threadId: string;
|
|
33290
|
-
|
|
33289
|
+
threadAccountId: string;
|
|
33291
33290
|
threadAccount: ThreadAccountUpdateInputs;
|
|
33292
33291
|
}
|
|
33293
33292
|
/**
|
|
33294
33293
|
* @category Methods
|
|
33295
33294
|
* @group Threads
|
|
33296
33295
|
*/
|
|
33297
|
-
declare const UpdateThreadAccount: ({ threadId,
|
|
33296
|
+
declare const UpdateThreadAccount: ({ threadId, threadAccountId, threadAccount, adminApiParams, queryClient, }: UpdateThreadAccountParams) => Promise<ConnectedXMResponse<ThreadAccount>>;
|
|
33298
33297
|
/**
|
|
33299
33298
|
* @category Mutations
|
|
33300
33299
|
* @group Threads
|
package/dist/index.d.ts
CHANGED
|
@@ -3497,7 +3497,6 @@ interface ThreadMessageRead {
|
|
|
3497
3497
|
interface BaseThreadMessage {
|
|
3498
3498
|
id: string;
|
|
3499
3499
|
body: string;
|
|
3500
|
-
accountId: string;
|
|
3501
3500
|
threadAccount: ThreadAccount;
|
|
3502
3501
|
createdAt: string;
|
|
3503
3502
|
editedAt: string | null;
|
|
@@ -33268,13 +33267,13 @@ declare const useUpdateSurvey: (options?: Omit<ConnectedXMMutationOptions<Awaite
|
|
|
33268
33267
|
*/
|
|
33269
33268
|
interface DeleteThreadAccountParams extends MutationParams {
|
|
33270
33269
|
threadId: string;
|
|
33271
|
-
|
|
33270
|
+
threadAccountId: string;
|
|
33272
33271
|
}
|
|
33273
33272
|
/**
|
|
33274
33273
|
* @category Methods
|
|
33275
33274
|
* @group Threads
|
|
33276
33275
|
*/
|
|
33277
|
-
declare const DeleteThreadAccount: ({ threadId,
|
|
33276
|
+
declare const DeleteThreadAccount: ({ threadId, threadAccountId, adminApiParams, queryClient, }: DeleteThreadAccountParams) => Promise<ConnectedXMResponse<null>>;
|
|
33278
33277
|
/**
|
|
33279
33278
|
* @category Mutations
|
|
33280
33279
|
* @group Threads
|
|
@@ -33287,14 +33286,14 @@ declare const useDeleteThreadAccount: (options?: Omit<ConnectedXMMutationOptions
|
|
|
33287
33286
|
*/
|
|
33288
33287
|
interface UpdateThreadAccountParams extends MutationParams {
|
|
33289
33288
|
threadId: string;
|
|
33290
|
-
|
|
33289
|
+
threadAccountId: string;
|
|
33291
33290
|
threadAccount: ThreadAccountUpdateInputs;
|
|
33292
33291
|
}
|
|
33293
33292
|
/**
|
|
33294
33293
|
* @category Methods
|
|
33295
33294
|
* @group Threads
|
|
33296
33295
|
*/
|
|
33297
|
-
declare const UpdateThreadAccount: ({ threadId,
|
|
33296
|
+
declare const UpdateThreadAccount: ({ threadId, threadAccountId, threadAccount, adminApiParams, queryClient, }: UpdateThreadAccountParams) => Promise<ConnectedXMResponse<ThreadAccount>>;
|
|
33298
33297
|
/**
|
|
33299
33298
|
* @category Mutations
|
|
33300
33299
|
* @group Threads
|
package/dist/index.js
CHANGED
|
@@ -39254,13 +39254,13 @@ var useUpdateSurvey = (options = {}) => {
|
|
|
39254
39254
|
// src/mutations/threads/accounts/useDeleteThreadAccount.ts
|
|
39255
39255
|
var DeleteThreadAccount = async ({
|
|
39256
39256
|
threadId,
|
|
39257
|
-
|
|
39257
|
+
threadAccountId,
|
|
39258
39258
|
adminApiParams,
|
|
39259
39259
|
queryClient
|
|
39260
39260
|
}) => {
|
|
39261
39261
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
39262
39262
|
const { data } = await connectedXM.delete(
|
|
39263
|
-
`/threads/${threadId}/accounts/${
|
|
39263
|
+
`/threads/${threadId}/accounts/${threadAccountId}`
|
|
39264
39264
|
);
|
|
39265
39265
|
if (queryClient && data.status === "ok") {
|
|
39266
39266
|
queryClient.invalidateQueries({
|
|
@@ -39279,14 +39279,14 @@ var useDeleteThreadAccount = (options = {}) => {
|
|
|
39279
39279
|
// src/mutations/threads/accounts/useUpdateThreadAccount.ts
|
|
39280
39280
|
var UpdateThreadAccount = async ({
|
|
39281
39281
|
threadId,
|
|
39282
|
-
|
|
39282
|
+
threadAccountId,
|
|
39283
39283
|
threadAccount,
|
|
39284
39284
|
adminApiParams,
|
|
39285
39285
|
queryClient
|
|
39286
39286
|
}) => {
|
|
39287
39287
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
39288
39288
|
const { data } = await connectedXM.put(
|
|
39289
|
-
`/threads/${threadId}/accounts/${
|
|
39289
|
+
`/threads/${threadId}/accounts/${threadAccountId}`,
|
|
39290
39290
|
threadAccount
|
|
39291
39291
|
);
|
|
39292
39292
|
if (queryClient && data.status === "ok") {
|
package/openapi.json
CHANGED
|
@@ -89104,7 +89104,7 @@
|
|
|
89104
89104
|
]
|
|
89105
89105
|
}
|
|
89106
89106
|
},
|
|
89107
|
-
"/threads/{threadId}/accounts/{
|
|
89107
|
+
"/threads/{threadId}/accounts/{threadAccountId}": {
|
|
89108
89108
|
"put": {
|
|
89109
89109
|
"operationId": "UpdateThreadAccount",
|
|
89110
89110
|
"summary": "Update Thread Account",
|
|
@@ -89121,11 +89121,11 @@
|
|
|
89121
89121
|
},
|
|
89122
89122
|
{
|
|
89123
89123
|
"in": "path",
|
|
89124
|
-
"name": "
|
|
89124
|
+
"name": "threadAccountId",
|
|
89125
89125
|
"schema": {
|
|
89126
89126
|
"type": "string"
|
|
89127
89127
|
},
|
|
89128
|
-
"description": "The
|
|
89128
|
+
"description": "The threadAccount identifier",
|
|
89129
89129
|
"required": true
|
|
89130
89130
|
}
|
|
89131
89131
|
],
|
|
@@ -89191,11 +89191,11 @@
|
|
|
89191
89191
|
},
|
|
89192
89192
|
{
|
|
89193
89193
|
"in": "path",
|
|
89194
|
-
"name": "
|
|
89194
|
+
"name": "threadAccountId",
|
|
89195
89195
|
"schema": {
|
|
89196
89196
|
"type": "string"
|
|
89197
89197
|
},
|
|
89198
|
-
"description": "The
|
|
89198
|
+
"description": "The threadAccount identifier",
|
|
89199
89199
|
"required": true
|
|
89200
89200
|
}
|
|
89201
89201
|
],
|
|
@@ -106554,9 +106554,6 @@
|
|
|
106554
106554
|
"body": {
|
|
106555
106555
|
"type": "string"
|
|
106556
106556
|
},
|
|
106557
|
-
"accountId": {
|
|
106558
|
-
"type": "string"
|
|
106559
|
-
},
|
|
106560
106557
|
"threadAccount": {
|
|
106561
106558
|
"$ref": "#/components/schemas/ThreadAccount"
|
|
106562
106559
|
},
|
|
@@ -106578,7 +106575,6 @@
|
|
|
106578
106575
|
"required": [
|
|
106579
106576
|
"id",
|
|
106580
106577
|
"body",
|
|
106581
|
-
"accountId",
|
|
106582
106578
|
"threadAccount",
|
|
106583
106579
|
"createdAt",
|
|
106584
106580
|
"editedAt",
|