@ukwhatn/wikidot 4.3.1 → 4.4.0
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/errors.cjs +20 -10
- package/dist/index.cjs +515 -348
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +495 -340
- package/package.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -422,10 +422,17 @@ interface SiteRef {
|
|
|
422
422
|
* Execute AMC request
|
|
423
423
|
*/
|
|
424
424
|
amcRequest(bodies: AMCRequestBody[]): WikidotResultAsync<AMCResponse[]>;
|
|
425
|
+
amcRequest(bodies: AMCRequestBody[], options: {
|
|
426
|
+
returnExceptions: true;
|
|
427
|
+
}): WikidotResultAsync<(AMCResponse | WikidotError)[]>;
|
|
425
428
|
/**
|
|
426
429
|
* Execute single AMC request
|
|
427
430
|
*/
|
|
428
431
|
amcRequestSingle(body: AMCRequestBody): WikidotResultAsync<AMCResponse>;
|
|
432
|
+
/**
|
|
433
|
+
* Execute AMC request with partial failure tolerance
|
|
434
|
+
*/
|
|
435
|
+
amcRequestWithRetry(bodies: AMCRequestBody[]): WikidotResultAsync<(AMCResponse | null)[]>;
|
|
429
436
|
}
|
|
430
437
|
/**
|
|
431
438
|
* Forum category reference interface
|
|
@@ -2058,9 +2065,20 @@ declare class Site {
|
|
|
2058
2065
|
/**
|
|
2059
2066
|
* Execute AMC request to this site
|
|
2060
2067
|
* @param bodies - Request body array
|
|
2068
|
+
* @param options - Request options
|
|
2061
2069
|
* @returns AMC response array
|
|
2062
2070
|
*/
|
|
2063
2071
|
amcRequest(bodies: AMCRequestBody[]): WikidotResultAsync<AMCResponse[]>;
|
|
2072
|
+
amcRequest(bodies: AMCRequestBody[], options: {
|
|
2073
|
+
returnExceptions: true;
|
|
2074
|
+
}): WikidotResultAsync<(AMCResponse | WikidotError)[]>;
|
|
2075
|
+
/**
|
|
2076
|
+
* Execute AMC request with partial failure tolerance.
|
|
2077
|
+
* Failed requests are retried once. Still-failed requests return null.
|
|
2078
|
+
* @param bodies - Request body array
|
|
2079
|
+
* @returns AMC response array (null for permanently failed requests)
|
|
2080
|
+
*/
|
|
2081
|
+
amcRequestWithRetry(bodies: AMCRequestBody[]): WikidotResultAsync<(AMCResponse | null)[]>;
|
|
2064
2082
|
/**
|
|
2065
2083
|
* Execute a single AMC request
|
|
2066
2084
|
* @param body - Request body
|
package/dist/index.d.ts
CHANGED
|
@@ -422,10 +422,17 @@ interface SiteRef {
|
|
|
422
422
|
* Execute AMC request
|
|
423
423
|
*/
|
|
424
424
|
amcRequest(bodies: AMCRequestBody[]): WikidotResultAsync<AMCResponse[]>;
|
|
425
|
+
amcRequest(bodies: AMCRequestBody[], options: {
|
|
426
|
+
returnExceptions: true;
|
|
427
|
+
}): WikidotResultAsync<(AMCResponse | WikidotError)[]>;
|
|
425
428
|
/**
|
|
426
429
|
* Execute single AMC request
|
|
427
430
|
*/
|
|
428
431
|
amcRequestSingle(body: AMCRequestBody): WikidotResultAsync<AMCResponse>;
|
|
432
|
+
/**
|
|
433
|
+
* Execute AMC request with partial failure tolerance
|
|
434
|
+
*/
|
|
435
|
+
amcRequestWithRetry(bodies: AMCRequestBody[]): WikidotResultAsync<(AMCResponse | null)[]>;
|
|
429
436
|
}
|
|
430
437
|
/**
|
|
431
438
|
* Forum category reference interface
|
|
@@ -2058,9 +2065,20 @@ declare class Site {
|
|
|
2058
2065
|
/**
|
|
2059
2066
|
* Execute AMC request to this site
|
|
2060
2067
|
* @param bodies - Request body array
|
|
2068
|
+
* @param options - Request options
|
|
2061
2069
|
* @returns AMC response array
|
|
2062
2070
|
*/
|
|
2063
2071
|
amcRequest(bodies: AMCRequestBody[]): WikidotResultAsync<AMCResponse[]>;
|
|
2072
|
+
amcRequest(bodies: AMCRequestBody[], options: {
|
|
2073
|
+
returnExceptions: true;
|
|
2074
|
+
}): WikidotResultAsync<(AMCResponse | WikidotError)[]>;
|
|
2075
|
+
/**
|
|
2076
|
+
* Execute AMC request with partial failure tolerance.
|
|
2077
|
+
* Failed requests are retried once. Still-failed requests return null.
|
|
2078
|
+
* @param bodies - Request body array
|
|
2079
|
+
* @returns AMC response array (null for permanently failed requests)
|
|
2080
|
+
*/
|
|
2081
|
+
amcRequestWithRetry(bodies: AMCRequestBody[]): WikidotResultAsync<(AMCResponse | null)[]>;
|
|
2064
2082
|
/**
|
|
2065
2083
|
* Execute a single AMC request
|
|
2066
2084
|
* @param body - Request body
|