@connectedxm/admin 7.0.7 → 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 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
- accountId,
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/${accountId}`
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
- accountId,
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/${accountId}`,
42855
+ `/threads/${threadId}/accounts/${threadAccountId}`,
42856
42856
  threadAccount
42857
42857
  );
42858
42858
  if (queryClient && data.status === "ok") {
package/dist/index.d.cts CHANGED
@@ -33267,13 +33267,13 @@ declare const useUpdateSurvey: (options?: Omit<ConnectedXMMutationOptions<Awaite
33267
33267
  */
33268
33268
  interface DeleteThreadAccountParams extends MutationParams {
33269
33269
  threadId: string;
33270
- accountId: string;
33270
+ threadAccountId: string;
33271
33271
  }
33272
33272
  /**
33273
33273
  * @category Methods
33274
33274
  * @group Threads
33275
33275
  */
33276
- declare const DeleteThreadAccount: ({ threadId, accountId, adminApiParams, queryClient, }: DeleteThreadAccountParams) => Promise<ConnectedXMResponse<null>>;
33276
+ declare const DeleteThreadAccount: ({ threadId, threadAccountId, adminApiParams, queryClient, }: DeleteThreadAccountParams) => Promise<ConnectedXMResponse<null>>;
33277
33277
  /**
33278
33278
  * @category Mutations
33279
33279
  * @group Threads
@@ -33286,14 +33286,14 @@ declare const useDeleteThreadAccount: (options?: Omit<ConnectedXMMutationOptions
33286
33286
  */
33287
33287
  interface UpdateThreadAccountParams extends MutationParams {
33288
33288
  threadId: string;
33289
- accountId: string;
33289
+ threadAccountId: string;
33290
33290
  threadAccount: ThreadAccountUpdateInputs;
33291
33291
  }
33292
33292
  /**
33293
33293
  * @category Methods
33294
33294
  * @group Threads
33295
33295
  */
33296
- declare const UpdateThreadAccount: ({ threadId, accountId, threadAccount, adminApiParams, queryClient, }: UpdateThreadAccountParams) => Promise<ConnectedXMResponse<ThreadAccount>>;
33296
+ declare const UpdateThreadAccount: ({ threadId, threadAccountId, threadAccount, adminApiParams, queryClient, }: UpdateThreadAccountParams) => Promise<ConnectedXMResponse<ThreadAccount>>;
33297
33297
  /**
33298
33298
  * @category Mutations
33299
33299
  * @group Threads
package/dist/index.d.ts CHANGED
@@ -33267,13 +33267,13 @@ declare const useUpdateSurvey: (options?: Omit<ConnectedXMMutationOptions<Awaite
33267
33267
  */
33268
33268
  interface DeleteThreadAccountParams extends MutationParams {
33269
33269
  threadId: string;
33270
- accountId: string;
33270
+ threadAccountId: string;
33271
33271
  }
33272
33272
  /**
33273
33273
  * @category Methods
33274
33274
  * @group Threads
33275
33275
  */
33276
- declare const DeleteThreadAccount: ({ threadId, accountId, adminApiParams, queryClient, }: DeleteThreadAccountParams) => Promise<ConnectedXMResponse<null>>;
33276
+ declare const DeleteThreadAccount: ({ threadId, threadAccountId, adminApiParams, queryClient, }: DeleteThreadAccountParams) => Promise<ConnectedXMResponse<null>>;
33277
33277
  /**
33278
33278
  * @category Mutations
33279
33279
  * @group Threads
@@ -33286,14 +33286,14 @@ declare const useDeleteThreadAccount: (options?: Omit<ConnectedXMMutationOptions
33286
33286
  */
33287
33287
  interface UpdateThreadAccountParams extends MutationParams {
33288
33288
  threadId: string;
33289
- accountId: string;
33289
+ threadAccountId: string;
33290
33290
  threadAccount: ThreadAccountUpdateInputs;
33291
33291
  }
33292
33292
  /**
33293
33293
  * @category Methods
33294
33294
  * @group Threads
33295
33295
  */
33296
- declare const UpdateThreadAccount: ({ threadId, accountId, threadAccount, adminApiParams, queryClient, }: UpdateThreadAccountParams) => Promise<ConnectedXMResponse<ThreadAccount>>;
33296
+ declare const UpdateThreadAccount: ({ threadId, threadAccountId, threadAccount, adminApiParams, queryClient, }: UpdateThreadAccountParams) => Promise<ConnectedXMResponse<ThreadAccount>>;
33297
33297
  /**
33298
33298
  * @category Mutations
33299
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
- accountId,
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/${accountId}`
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
- accountId,
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/${accountId}`,
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/{accountId}": {
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": "accountId",
89124
+ "name": "threadAccountId",
89125
89125
  "schema": {
89126
89126
  "type": "string"
89127
89127
  },
89128
- "description": "The account identifier",
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": "accountId",
89194
+ "name": "threadAccountId",
89195
89195
  "schema": {
89196
89196
  "type": "string"
89197
89197
  },
89198
- "description": "The account identifier",
89198
+ "description": "The threadAccount identifier",
89199
89199
  "required": true
89200
89200
  }
89201
89201
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "7.0.7",
3
+ "version": "7.0.8",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",