diff --git a/packages/datadirect/src/api.ts b/packages/datadirect/src/api.ts index 1ed43d0..89fb74d 100644 --- a/packages/datadirect/src/api.ts +++ b/packages/datadirect/src/api.ts @@ -5,5 +5,4 @@ export * as gradebook from './api/gradebook.js'; export * as LtiTool from './api/LtiTool.js'; export * as message from './api/message.js'; export * as schoolinfo from './api/schoolinfo.js'; -export * as Security from './api/Security.js'; export * as topic from './api/topic.js'; diff --git a/packages/datadirect/src/api/Security.ts b/packages/datadirect/src/api/Security.ts deleted file mode 100644 index 9dd3f83..0000000 --- a/packages/datadirect/src/api/Security.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as ImpersonateStart from './Security/ImpersonateStart.js'; -export * as ImpersonateStop from './Security/ImpersonateStop.js'; diff --git a/packages/datadirect/src/api/Security/ImpersonateStart.ts b/packages/datadirect/src/api/Security/ImpersonateStart.ts deleted file mode 100644 index 728a8bd..0000000 --- a/packages/datadirect/src/api/Security/ImpersonateStart.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as Endpoint from '../../Endpoint.js'; -import { Payload } from './ImpersonateStart/Payload.js'; - -/* - * TODO Handle endpoints that do not return responses - * Another piquant flavor for #178 and #61 - */ - -export * from './ImpersonateStart/Payload.js'; -// There is no returned response from this call - -export const prepare: Endpoint.Prepare = (payload, base?: string) => - Endpoint.prepare({ - payload, - base, - path: 'api/Security/ImpersonateStart/:ImpUserId/?format=json', - method: 'POST' - }); diff --git a/packages/datadirect/src/api/Security/ImpersonateStart/Payload.ts b/packages/datadirect/src/api/Security/ImpersonateStart/Payload.ts deleted file mode 100644 index 4bcb341..0000000 --- a/packages/datadirect/src/api/Security/ImpersonateStart/Payload.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { NumericString } from '@battis/descriptive-types'; - -export type Payload = { - ImpUserId: NumericString; -}; diff --git a/packages/datadirect/src/api/Security/ImpersonateStop.ts b/packages/datadirect/src/api/Security/ImpersonateStop.ts deleted file mode 100644 index 4d0f13e..0000000 --- a/packages/datadirect/src/api/Security/ImpersonateStop.ts +++ /dev/null @@ -1,12 +0,0 @@ -import * as Endpoint from '../../Endpoint.js'; -import { Payload } from './ImpersonateStop/Payload.js'; - -export * from './ImpersonateStop/Payload.js'; -// There is no returned response from this call - -export const prepare: Endpoint.Prepare = (payload, base?: string) => - Endpoint.prepare({ - payload, - base, - path: 'api/Security/ImpersonateStop' - }); diff --git a/packages/datadirect/src/api/Security/ImpersonateStop/Payload.ts b/packages/datadirect/src/api/Security/ImpersonateStop/Payload.ts deleted file mode 100644 index 3f690fa..0000000 --- a/packages/datadirect/src/api/Security/ImpersonateStop/Payload.ts +++ /dev/null @@ -1 +0,0 @@ -export type Payload = { format: 'json' };