@ukwhatn/wikidot 4.4.0 → 4.4.1
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 +46 -25
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +46 -25
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -199,6 +199,10 @@ interface AMCConfig {
|
|
|
199
199
|
backoffFactor: number;
|
|
200
200
|
/** Maximum concurrent requests */
|
|
201
201
|
semaphoreLimit: number;
|
|
202
|
+
/** Batch size for amcRequestWithRetry */
|
|
203
|
+
retryBatchSize: number;
|
|
204
|
+
/** Maximum retry attempts for amcRequestWithRetry */
|
|
205
|
+
retryMaxRetries: number;
|
|
202
206
|
}
|
|
203
207
|
/** Default AMC configuration */
|
|
204
208
|
declare const DEFAULT_AMC_CONFIG: AMCConfig;
|
|
@@ -432,7 +436,10 @@ interface SiteRef {
|
|
|
432
436
|
/**
|
|
433
437
|
* Execute AMC request with partial failure tolerance
|
|
434
438
|
*/
|
|
435
|
-
amcRequestWithRetry(bodies: AMCRequestBody[]
|
|
439
|
+
amcRequestWithRetry(bodies: AMCRequestBody[], options?: {
|
|
440
|
+
batchSize?: number;
|
|
441
|
+
maxRetries?: number;
|
|
442
|
+
}): WikidotResultAsync<(AMCResponse | null)[]>;
|
|
436
443
|
}
|
|
437
444
|
/**
|
|
438
445
|
* Forum category reference interface
|
|
@@ -2074,11 +2081,15 @@ declare class Site {
|
|
|
2074
2081
|
}): WikidotResultAsync<(AMCResponse | WikidotError)[]>;
|
|
2075
2082
|
/**
|
|
2076
2083
|
* Execute AMC request with partial failure tolerance.
|
|
2077
|
-
*
|
|
2084
|
+
* Requests are split into batches and failed requests are retried.
|
|
2078
2085
|
* @param bodies - Request body array
|
|
2086
|
+
* @param options - Optional batch size and max retries
|
|
2079
2087
|
* @returns AMC response array (null for permanently failed requests)
|
|
2080
2088
|
*/
|
|
2081
|
-
amcRequestWithRetry(bodies: AMCRequestBody[]
|
|
2089
|
+
amcRequestWithRetry(bodies: AMCRequestBody[], options?: {
|
|
2090
|
+
batchSize?: number;
|
|
2091
|
+
maxRetries?: number;
|
|
2092
|
+
}): WikidotResultAsync<(AMCResponse | null)[]>;
|
|
2082
2093
|
/**
|
|
2083
2094
|
* Execute a single AMC request
|
|
2084
2095
|
* @param body - Request body
|
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,10 @@ interface AMCConfig {
|
|
|
199
199
|
backoffFactor: number;
|
|
200
200
|
/** Maximum concurrent requests */
|
|
201
201
|
semaphoreLimit: number;
|
|
202
|
+
/** Batch size for amcRequestWithRetry */
|
|
203
|
+
retryBatchSize: number;
|
|
204
|
+
/** Maximum retry attempts for amcRequestWithRetry */
|
|
205
|
+
retryMaxRetries: number;
|
|
202
206
|
}
|
|
203
207
|
/** Default AMC configuration */
|
|
204
208
|
declare const DEFAULT_AMC_CONFIG: AMCConfig;
|
|
@@ -432,7 +436,10 @@ interface SiteRef {
|
|
|
432
436
|
/**
|
|
433
437
|
* Execute AMC request with partial failure tolerance
|
|
434
438
|
*/
|
|
435
|
-
amcRequestWithRetry(bodies: AMCRequestBody[]
|
|
439
|
+
amcRequestWithRetry(bodies: AMCRequestBody[], options?: {
|
|
440
|
+
batchSize?: number;
|
|
441
|
+
maxRetries?: number;
|
|
442
|
+
}): WikidotResultAsync<(AMCResponse | null)[]>;
|
|
436
443
|
}
|
|
437
444
|
/**
|
|
438
445
|
* Forum category reference interface
|
|
@@ -2074,11 +2081,15 @@ declare class Site {
|
|
|
2074
2081
|
}): WikidotResultAsync<(AMCResponse | WikidotError)[]>;
|
|
2075
2082
|
/**
|
|
2076
2083
|
* Execute AMC request with partial failure tolerance.
|
|
2077
|
-
*
|
|
2084
|
+
* Requests are split into batches and failed requests are retried.
|
|
2078
2085
|
* @param bodies - Request body array
|
|
2086
|
+
* @param options - Optional batch size and max retries
|
|
2079
2087
|
* @returns AMC response array (null for permanently failed requests)
|
|
2080
2088
|
*/
|
|
2081
|
-
amcRequestWithRetry(bodies: AMCRequestBody[]
|
|
2089
|
+
amcRequestWithRetry(bodies: AMCRequestBody[], options?: {
|
|
2090
|
+
batchSize?: number;
|
|
2091
|
+
maxRetries?: number;
|
|
2092
|
+
}): WikidotResultAsync<(AMCResponse | null)[]>;
|
|
2082
2093
|
/**
|
|
2083
2094
|
* Execute a single AMC request
|
|
2084
2095
|
* @param body - Request body
|