@skedulo/pulse-solution-services 0.0.8 → 0.0.10
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/CHANGELOG.md +8 -0
- package/README.md +47 -4
- package/dist/clients/base-client.js +1 -1
- package/dist/clients/config-var-client.js +1 -1
- package/dist/clients/graphql-client.js +1 -1
- package/dist/core/execution-context.js +1 -1
- package/dist/core/index.js +1 -1
- package/dist/index.d.ts +70 -30
- package/dist/interfaces/index.js +1 -1
- package/dist/interfaces/lock-service-interfaces.js +1 -0
- package/dist/interfaces/locking-service-interfaces.js +1 -0
- package/dist/services/cache/cache-service.js +1 -1
- package/dist/services/graph-batch/configs/graph-batch-config.d.ts +18 -0
- package/dist/services/graph-batch/configs/graph-batch-config.js +1 -0
- package/dist/services/graph-batch/configs/unique-graph-batch-config.d.ts +16 -0
- package/dist/services/graph-batch/configs/unique-graph-batch-config.js +1 -0
- package/dist/services/graph-batch/graph-batch.d.ts +1 -1
- package/dist/services/graph-batch/graph-batch.js +1 -1
- package/dist/services/graph-batch/index.d.ts +3 -1
- package/dist/services/graph-batch/index.js +1 -1
- package/dist/services/graph-batch/unique-graph-batch.d.ts +28 -0
- package/dist/services/graph-batch/unique-graph-batch.js +1 -0
- package/dist/services/lock-service.js +1 -0
- package/dist/services/locking-service.js +1 -0
- package/dist/utils/datetime-utils.js +1 -1
- package/package.json +7 -6
- package/yarn.lock +382 -207
- package/dist/core/request-context.js +0 -1
- package/dist/services/graph-batch/graph-batch-config.d.ts +0 -34
- package/dist/services/graph-batch/graph-batch-config.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RequestContext=void 0;class RequestContext{constructor(e){this.bulkOperation=!1,this.readOnly=!1,this.additionalHeaders={},e&&Object.assign(this,e)}}exports.RequestContext=RequestContext;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { PaginationStrategy } from "./pagination-strategy";
|
|
3
|
-
/**
|
|
4
|
-
* Default configuration values for `GraphBatchConfig`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DEFAULT_GRAPH_BATCH_CONFIG: GraphBatchConfig;
|
|
7
|
-
/**
|
|
8
|
-
* Schema validation using `zod`
|
|
9
|
-
*/
|
|
10
|
-
declare const GraphBatchConfigSchema: z.ZodObject<{
|
|
11
|
-
strategy: z.ZodNativeEnum<typeof PaginationStrategy>;
|
|
12
|
-
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
maxBatches: z.ZodDefault<z.ZodNumber>;
|
|
14
|
-
delaySeconds: z.ZodDefault<z.ZodNumber>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
strategy: PaginationStrategy;
|
|
17
|
-
batchSize: number;
|
|
18
|
-
maxBatches: number;
|
|
19
|
-
delaySeconds: number;
|
|
20
|
-
}, {
|
|
21
|
-
strategy: PaginationStrategy;
|
|
22
|
-
batchSize?: number | undefined;
|
|
23
|
-
maxBatches?: number | undefined;
|
|
24
|
-
delaySeconds?: number | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
/**
|
|
27
|
-
* Configuration options for `GraphBatch`.
|
|
28
|
-
*/
|
|
29
|
-
export type GraphBatchConfig = z.infer<typeof GraphBatchConfigSchema>;
|
|
30
|
-
/**
|
|
31
|
-
* Merges user-provided config with default values.
|
|
32
|
-
*/
|
|
33
|
-
export declare function initializeConfig(config: Partial<GraphBatchConfig> | undefined): GraphBatchConfig;
|
|
34
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DEFAULT_GRAPH_BATCH_CONFIG=void 0,exports.initializeConfig=initializeConfig;const zod_1=require("zod"),pagination_strategy_1=require("./pagination-strategy");exports.DEFAULT_GRAPH_BATCH_CONFIG={strategy:pagination_strategy_1.PaginationStrategy.NONE,batchSize:200,maxBatches:100,delaySeconds:0};const GraphBatchConfigSchema=zod_1.z.object({strategy:zod_1.z.nativeEnum(pagination_strategy_1.PaginationStrategy),batchSize:zod_1.z.number().min(1).max(200).default(200),maxBatches:zod_1.z.number().min(1).max(500).default(100),delaySeconds:zod_1.z.number().min(0).max(15).default(0)});function initializeConfig(t){return GraphBatchConfigSchema.parse(Object.assign(Object.assign({},exports.DEFAULT_GRAPH_BATCH_CONFIG),t))}
|