From 7efacf764b3bc67e04a642f060f41c4129d8e315 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Wed, 15 Nov 2023 14:59:36 -0500 Subject: [PATCH] fixes post-merge --- .../src/types/response/AppsManifestCreateResponse.ts | 2 +- .../src/types/response/AppsManifestDeleteResponse.ts | 2 +- .../src/types/response/AppsManifestExportResponse.ts | 2 +- .../src/types/response/AppsManifestUpdateResponse.ts | 2 +- .../src/types/response/AppsManifestValidateResponse.ts | 2 +- .../src/types/response/ToolingTokensRotateResponse.ts | 2 +- packages/web-api/test/types/methods/files.test-d.ts | 10 ++++------ 7 files changed, 10 insertions(+), 12 deletions(-) diff --git a/packages/web-api/src/types/response/AppsManifestCreateResponse.ts b/packages/web-api/src/types/response/AppsManifestCreateResponse.ts index 98f60070f..d5e681ce6 100644 --- a/packages/web-api/src/types/response/AppsManifestCreateResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestCreateResponse.ts @@ -8,7 +8,7 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestCreateResponse = WebAPICallResult & { app_id?: string; credentials?: Credentials; diff --git a/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts b/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts index 36aa5c73d..d6cd553d2 100644 --- a/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestDeleteResponse.ts @@ -8,7 +8,7 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestDeleteResponse = WebAPICallResult & { error?: string; needed?: string; diff --git a/packages/web-api/src/types/response/AppsManifestExportResponse.ts b/packages/web-api/src/types/response/AppsManifestExportResponse.ts index b7b005eda..5693a0026 100644 --- a/packages/web-api/src/types/response/AppsManifestExportResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestExportResponse.ts @@ -8,7 +8,7 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestExportResponse = WebAPICallResult & { error?: string; manifest?: Manifest; diff --git a/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts b/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts index 7b0498454..14134a688 100644 --- a/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestUpdateResponse.ts @@ -8,7 +8,7 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestUpdateResponse = WebAPICallResult & { app_id?: string; error?: string; diff --git a/packages/web-api/src/types/response/AppsManifestValidateResponse.ts b/packages/web-api/src/types/response/AppsManifestValidateResponse.ts index fb955dc86..0360c9cc4 100644 --- a/packages/web-api/src/types/response/AppsManifestValidateResponse.ts +++ b/packages/web-api/src/types/response/AppsManifestValidateResponse.ts @@ -8,7 +8,7 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type AppsManifestValidateResponse = WebAPICallResult & { error?: string; errors?: Error[]; diff --git a/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts b/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts index 093f088d5..94e5b79a1 100644 --- a/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts +++ b/packages/web-api/src/types/response/ToolingTokensRotateResponse.ts @@ -8,7 +8,7 @@ // // ///////////////////////////////////////////////////////////////////////////////////////// -import { WebAPICallResult } from '../WebClient'; +import { WebAPICallResult } from '../../WebClient'; export type ToolingTokensRotateResponse = WebAPICallResult & { error?: string; exp?: number; diff --git a/packages/web-api/test/types/methods/files.test-d.ts b/packages/web-api/test/types/methods/files.test-d.ts index e0d78cb8e..a24baafb9 100644 --- a/packages/web-api/test/types/methods/files.test-d.ts +++ b/packages/web-api/test/types/methods/files.test-d.ts @@ -107,13 +107,12 @@ expectAssignable>([{ content: 'text', // or file contents }]); expectAssignable>([{ + ...destinationChannels, // optionally share to one or more channels content: 'text', - channels: 'C1234', // optionally share to a channel }]); expectAssignable>([{ + ...destinationThreadChannels, // or even to a specific thread content: 'text', - channels: 'C1234', - thread_ts: '12345.678', // or even to a specific thread }]); // files.uploadV2 @@ -129,13 +128,12 @@ expectAssignable>([{ content: 'text', // or file contents... }]); expectAssignable>([{ + ...destinationChannels, // optionally share to one or more channels content: 'text', - channels: 'C1234', // optionally share to a channel }]); expectAssignable>([{ + ...destinationThreadChannels, // or even to a specific thread content: 'text', - channels: 'C1234', - thread_ts: '12345.678', // or even to a specific thread }]); // files.comments.delete