@avst-api/confluence-server
Advanced tools
Comparing version 0.1.0 to 0.1.1
export interface AnyError extends Record<any, any> { | ||
} | ||
export interface TypedPromise<T, C = any> { | ||
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: C) => TResult2 | PromiseLike<TResult2>) | undefined | null): TypedPromise<TResult1 | TResult2, C>; | ||
catch<TResult = never>(onrejected?: ((reason: C) => TResult | PromiseLike<TResult>) | undefined | null): TypedPromise<T | TResult, C>; | ||
} | ||
//# sourceMappingURL=common.d.ts.map |
{ | ||
"name": "@avst-api/confluence-server", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Adaptavist Managed API for Confluence Server", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
import { HeadersType as Headers } from '@avst-api/commons'; | ||
export declare function httpGet<Ok, Err>(connection: string, urlPath: string, headers?: Headers): Promise<import("@avst-api/commons").Response<Ok | Err>>; | ||
export declare function httpPost<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers): Promise<import("@avst-api/commons").Response<Ok | Err>>; | ||
export declare function httpPut<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers): Promise<import("@avst-api/commons").Response<Ok | Err>>; | ||
export declare function httpDelete<Ok, Err>(connection: string, urlPath: string, headers?: Headers): Promise<import("@avst-api/commons").Response<Ok | Err>>; | ||
export declare function httpGet<Ok, Err>(connection: string, urlPath: string, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>; | ||
export declare function httpPost<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>; | ||
export declare function httpPut<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>; | ||
export declare function httpDelete<Ok, Err>(connection: string, urlPath: string, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>; | ||
//# sourceMappingURL=common.d.ts.map |
import { performHttpCall } from '@avst-api/commons'; | ||
export function httpGet(connection, urlPath, headers) { | ||
return performHttpCall(connection, urlPath, 'GET', undefined, headers); | ||
export function httpGet(connection, urlPath, headers, skipBodyParsing = false) { | ||
return performHttpCall(connection, urlPath, 'GET', undefined, headers, skipBodyParsing); | ||
} | ||
export function httpPost(connection, urlPath, request, headers) { | ||
return performHttpCall(connection, urlPath, 'POST', request, headers); | ||
export function httpPost(connection, urlPath, request, headers, skipBodyParsing = false) { | ||
return performHttpCall(connection, urlPath, 'POST', request, headers, skipBodyParsing); | ||
} | ||
export function httpPut(connection, urlPath, request, headers) { | ||
return performHttpCall(connection, urlPath, 'PUT', request, headers); | ||
export function httpPut(connection, urlPath, request, headers, skipBodyParsing = false) { | ||
return performHttpCall(connection, urlPath, 'PUT', request, headers, skipBodyParsing); | ||
} | ||
export function httpDelete(connection, urlPath, headers) { | ||
return performHttpCall(connection, urlPath, 'DELETE', undefined, headers); | ||
export function httpDelete(connection, urlPath, headers, skipBodyParsing = false) { | ||
return performHttpCall(connection, urlPath, 'DELETE', undefined, headers, skipBodyParsing); | ||
} |
@@ -51,3 +51,3 @@ import { httpPost, httpDelete, httpGet, httpPut } from "../raw-api/common"; | ||
const queryParams = { status }; | ||
return httpDelete(instanceId, constructUrl(`/rest/api/content/${id}`, queryParams), headers); | ||
return httpDelete(instanceId, constructUrl(`/rest/api/content/${id}`, queryParams), headers, true); | ||
} | ||
@@ -54,0 +54,0 @@ /** |
@@ -29,3 +29,3 @@ import { httpGet, httpPost, httpDelete } from "../../raw-api/common"; | ||
const { connectionId: instanceId, headers, id, label } = options; | ||
return httpDelete(instanceId, `/rest/api/content/${id}/label/${label}`, headers); | ||
return httpDelete(instanceId, `/rest/api/content/${id}/label/${label}`, headers, true); | ||
} |
@@ -21,3 +21,3 @@ import { httpPost, httpDelete } from "../../raw-api/common"; | ||
const queryParams = { key, username }; | ||
return httpDelete(instanceId, constructUrl(`/rest/api/user/watch/content/${contentId}`, queryParams), headers); | ||
return httpDelete(instanceId, constructUrl(`/rest/api/user/watch/content/${contentId}`, queryParams), headers, true); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
181564
2672