@jaypie/testkit 1.2.41 → 1.2.42
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/mock/aws.d.ts +24 -6
- package/dist/mock/core.d.ts +68 -17
- package/dist/mock/datadog.d.ts +16 -4
- package/dist/mock/express.d.ts +60 -15
- package/dist/mock/index.d.ts +220 -57
- package/dist/mock/index.js +28 -11
- package/dist/mock/index.js.map +1 -1
- package/dist/mock/kit.d.ts +12 -3
- package/dist/mock/llm.d.ts +12 -3
- package/dist/mock/logger.d.ts +7 -4
- package/dist/mock/mock/aws.d.ts +24 -6
- package/dist/mock/mock/core.d.ts +68 -17
- package/dist/mock/mock/datadog.d.ts +16 -4
- package/dist/mock/mock/express.d.ts +60 -15
- package/dist/mock/mock/kit.d.ts +12 -3
- package/dist/mock/mock/llm.d.ts +12 -3
- package/dist/mock/mock/logger.d.ts +7 -4
- package/dist/mock/mock/mongoose.d.ts +12 -3
- package/dist/mock/mock/textract.d.ts +8 -2
- package/dist/mock/mock/tildeskill.d.ts +4 -1
- package/dist/mock/mock/utils.d.ts +5 -4
- package/dist/mock/mongoose.d.ts +12 -3
- package/dist/mock/textract.d.ts +8 -2
- package/dist/mock/tildeskill.d.ts +4 -1
- package/dist/mock/utils.d.ts +5 -4
- package/package.json +2 -2
package/dist/mock/aws.d.ts
CHANGED
|
@@ -1,21 +1,39 @@
|
|
|
1
|
-
export declare const getMessages: import("vitest").
|
|
1
|
+
export declare const getMessages: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
2
|
+
(...args: any[]): any;
|
|
3
|
+
new (...args: any[]): any;
|
|
4
|
+
} & {};
|
|
2
5
|
export declare const getS3FileBuffer: (({ bucket, key }: {
|
|
3
6
|
bucket: string;
|
|
4
7
|
key: string;
|
|
5
8
|
}) => Promise<Buffer>) & {
|
|
6
9
|
mock: any;
|
|
7
10
|
};
|
|
8
|
-
export declare const getSecret: import("vitest").
|
|
9
|
-
|
|
11
|
+
export declare const getSecret: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
12
|
+
(...args: any[]): any;
|
|
13
|
+
new (...args: any[]): any;
|
|
14
|
+
} & {};
|
|
15
|
+
export declare const sendMessage: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
16
|
+
(...args: any[]): any;
|
|
17
|
+
new (...args: any[]): any;
|
|
18
|
+
} & {};
|
|
10
19
|
export declare const getEnvSecret: ((key: string) => Promise<string>) & {
|
|
11
20
|
mock: any;
|
|
12
21
|
};
|
|
13
|
-
export declare const loadEnvSecrets: import("vitest").
|
|
14
|
-
|
|
22
|
+
export declare const loadEnvSecrets: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
23
|
+
(...args: any[]): any;
|
|
24
|
+
new (...args: any[]): any;
|
|
25
|
+
} & {};
|
|
26
|
+
export declare const getSingletonMessage: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
27
|
+
(...args: any[]): any;
|
|
28
|
+
new (...args: any[]): any;
|
|
29
|
+
} & {};
|
|
15
30
|
export declare const getTextractJob: ((jobId: string) => Promise<any>) & {
|
|
16
31
|
mock: any;
|
|
17
32
|
};
|
|
18
|
-
export declare const sendBatchMessages: import("vitest").
|
|
33
|
+
export declare const sendBatchMessages: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
34
|
+
(...args: any[]): any;
|
|
35
|
+
new (...args: any[]): any;
|
|
36
|
+
} & {};
|
|
19
37
|
export declare const sendTextractJob: (({ bucket, key, featureTypes, }: {
|
|
20
38
|
bucket: string;
|
|
21
39
|
key: string;
|
package/dist/mock/core.d.ts
CHANGED
|
@@ -26,26 +26,68 @@ export declare const UnavailableError: typeof errors.UnavailableError;
|
|
|
26
26
|
export declare const UnhandledError: typeof errors.UnhandledError;
|
|
27
27
|
export declare const UnreachableCodeError: typeof errors.UnreachableCodeError;
|
|
28
28
|
export { log };
|
|
29
|
-
export declare const cloneDeep: import("vitest").
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
export declare const cloneDeep: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
30
|
+
(...args: any[]): any;
|
|
31
|
+
new (...args: any[]): any;
|
|
32
|
+
} & {};
|
|
33
|
+
export declare const envBoolean: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
34
|
+
(...args: any[]): any;
|
|
35
|
+
new (...args: any[]): any;
|
|
36
|
+
} & {};
|
|
37
|
+
export declare const envsKey: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
38
|
+
(...args: any[]): any;
|
|
39
|
+
new (...args: any[]): any;
|
|
40
|
+
} & {};
|
|
32
41
|
export declare const errorFromStatusCode: ((statusCode: number, message?: string) => Error) & {
|
|
33
42
|
mock: any;
|
|
34
43
|
};
|
|
35
|
-
export declare const formatError: import("vitest").
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
44
|
+
export declare const formatError: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
45
|
+
(...args: any[]): any;
|
|
46
|
+
new (...args: any[]): any;
|
|
47
|
+
} & {};
|
|
48
|
+
export declare const generateJaypieKey: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
49
|
+
(...args: any[]): any;
|
|
50
|
+
new (...args: any[]): any;
|
|
51
|
+
} & {};
|
|
52
|
+
export declare const hashJaypieKey: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
53
|
+
(...args: any[]): any;
|
|
54
|
+
new (...args: any[]): any;
|
|
55
|
+
} & {};
|
|
56
|
+
export declare const jaypieApiKeyId: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
57
|
+
(...args: any[]): any;
|
|
58
|
+
new (...args: any[]): any;
|
|
59
|
+
} & {};
|
|
39
60
|
export declare const jaypieErrorFromStatus: ((statusCode: number, message?: string) => Error) & {
|
|
40
61
|
mock: any;
|
|
41
62
|
};
|
|
42
|
-
export declare const getHeaderFrom: import("vitest").
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export declare const
|
|
47
|
-
|
|
48
|
-
|
|
63
|
+
export declare const getHeaderFrom: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
64
|
+
(...args: any[]): any;
|
|
65
|
+
new (...args: any[]): any;
|
|
66
|
+
} & {};
|
|
67
|
+
export declare const getObjectKeyCaseInsensitive: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
68
|
+
(...args: any[]): any;
|
|
69
|
+
new (...args: any[]): any;
|
|
70
|
+
} & {};
|
|
71
|
+
export declare const isClass: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
72
|
+
(...args: any[]): any;
|
|
73
|
+
new (...args: any[]): any;
|
|
74
|
+
} & {};
|
|
75
|
+
export declare const isJaypieError: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
76
|
+
(...args: any[]): any;
|
|
77
|
+
new (...args: any[]): any;
|
|
78
|
+
} & {};
|
|
79
|
+
export declare const resolveValue: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
80
|
+
(...args: any[]): any;
|
|
81
|
+
new (...args: any[]): any;
|
|
82
|
+
} & {};
|
|
83
|
+
export declare const safeParseFloat: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
84
|
+
(...args: any[]): any;
|
|
85
|
+
new (...args: any[]): any;
|
|
86
|
+
} & {};
|
|
87
|
+
export declare const placeholders: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
88
|
+
(...args: any[]): any;
|
|
89
|
+
new (...args: any[]): any;
|
|
90
|
+
} & {};
|
|
49
91
|
export declare const force: kit.ForceFunction;
|
|
50
92
|
export declare const jaypieHandler: ((handler: Function, options?: {
|
|
51
93
|
setup?: Function | Function[];
|
|
@@ -55,9 +97,18 @@ export declare const jaypieHandler: ((handler: Function, options?: {
|
|
|
55
97
|
}) => Function) & {
|
|
56
98
|
mock: any;
|
|
57
99
|
};
|
|
58
|
-
export declare const sleep: import("vitest").
|
|
59
|
-
|
|
60
|
-
|
|
100
|
+
export declare const sleep: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
101
|
+
(...args: any[]): any;
|
|
102
|
+
new (...args: any[]): any;
|
|
103
|
+
} & {};
|
|
104
|
+
export declare const uuid: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
105
|
+
(...args: any[]): any;
|
|
106
|
+
new (...args: any[]): any;
|
|
107
|
+
} & {};
|
|
108
|
+
export declare const validateJaypieKey: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
109
|
+
(...args: any[]): any;
|
|
110
|
+
new (...args: any[]): any;
|
|
111
|
+
} & {};
|
|
61
112
|
export declare const HTTP: {
|
|
62
113
|
readonly ALLOW: {
|
|
63
114
|
readonly ANY: "*";
|
package/dist/mock/datadog.d.ts
CHANGED
|
@@ -16,7 +16,19 @@ export declare const DATADOG: {
|
|
|
16
16
|
};
|
|
17
17
|
SITE: string;
|
|
18
18
|
};
|
|
19
|
-
export declare const hasDatadogEnv: import("vitest").
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
export declare const hasDatadogEnv: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
20
|
+
(...args: any[]): any;
|
|
21
|
+
new (...args: any[]): any;
|
|
22
|
+
} & {};
|
|
23
|
+
export declare const submitDistribution: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
24
|
+
(...args: any[]): any;
|
|
25
|
+
new (...args: any[]): any;
|
|
26
|
+
} & {};
|
|
27
|
+
export declare const submitMetric: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
28
|
+
(...args: any[]): any;
|
|
29
|
+
new (...args: any[]): any;
|
|
30
|
+
} & {};
|
|
31
|
+
export declare const submitMetricSet: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
32
|
+
(...args: any[]): any;
|
|
33
|
+
new (...args: any[]): any;
|
|
34
|
+
} & {};
|
package/dist/mock/express.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import * as original from "@jaypie/express";
|
|
2
|
-
export declare const createLambdaHandler: import("vitest").
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const createLambdaHandler: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
3
|
+
(...args: any[]): any;
|
|
4
|
+
new (...args: any[]): any;
|
|
5
|
+
} & {};
|
|
6
|
+
export declare const createLambdaStreamHandler: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
7
|
+
(...args: any[]): any;
|
|
8
|
+
new (...args: any[]): any;
|
|
9
|
+
} & {};
|
|
10
|
+
export declare const getCurrentInvoke: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
11
|
+
(...args: any[]): any;
|
|
12
|
+
new (...args: any[]): any;
|
|
13
|
+
} & {};
|
|
5
14
|
export declare const LambdaRequest: typeof original.LambdaRequest;
|
|
6
15
|
export declare const LambdaResponseBuffered: typeof original.LambdaResponseBuffered;
|
|
7
16
|
export declare const LambdaResponseStreaming: typeof original.LambdaResponseStreaming;
|
|
@@ -12,18 +21,54 @@ export declare const EXPRESS: {
|
|
|
12
21
|
readonly ROOT: RegExp;
|
|
13
22
|
};
|
|
14
23
|
};
|
|
15
|
-
export declare const badRequestRoute: import("vitest").
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export declare const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
export declare const badRequestRoute: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
25
|
+
(...args: any[]): any;
|
|
26
|
+
new (...args: any[]): any;
|
|
27
|
+
} & {};
|
|
28
|
+
export declare const echoRoute: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
29
|
+
(...args: any[]): any;
|
|
30
|
+
new (...args: any[]): any;
|
|
31
|
+
} & {};
|
|
32
|
+
export declare const forbiddenRoute: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
33
|
+
(...args: any[]): any;
|
|
34
|
+
new (...args: any[]): any;
|
|
35
|
+
} & {};
|
|
36
|
+
export declare const goneRoute: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
37
|
+
(...args: any[]): any;
|
|
38
|
+
new (...args: any[]): any;
|
|
39
|
+
} & {};
|
|
40
|
+
export declare const methodNotAllowedRoute: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
41
|
+
(...args: any[]): any;
|
|
42
|
+
new (...args: any[]): any;
|
|
43
|
+
} & {};
|
|
44
|
+
export declare const noContentRoute: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
45
|
+
(...args: any[]): any;
|
|
46
|
+
new (...args: any[]): any;
|
|
47
|
+
} & {};
|
|
48
|
+
export declare const notFoundRoute: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
49
|
+
(...args: any[]): any;
|
|
50
|
+
new (...args: any[]): any;
|
|
51
|
+
} & {};
|
|
52
|
+
export declare const notImplementedRoute: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
53
|
+
(...args: any[]): any;
|
|
54
|
+
new (...args: any[]): any;
|
|
55
|
+
} & {};
|
|
56
|
+
export declare const expressHttpCodeHandler: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
57
|
+
(...args: any[]): any;
|
|
58
|
+
new (...args: any[]): any;
|
|
59
|
+
} & {};
|
|
60
|
+
export declare const cors: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
61
|
+
(...args: any[]): any;
|
|
62
|
+
new (...args: any[]): any;
|
|
63
|
+
} & {};
|
|
64
|
+
export declare const fabricApiResponse: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
65
|
+
(...args: any[]): any;
|
|
66
|
+
new (...args: any[]): any;
|
|
67
|
+
} & {};
|
|
68
|
+
export declare const getCurrentInvokeUuid: import("vitest").MockInstance<(...args: any[]) => any> & {
|
|
69
|
+
(...args: any[]): any;
|
|
70
|
+
new (...args: any[]): any;
|
|
71
|
+
} & {};
|
|
27
72
|
export interface ExpressHandlerFunction {
|
|
28
73
|
(req: any, res: any, ...extra: any[]): Promise<any> | any;
|
|
29
74
|
}
|
package/dist/mock/index.d.ts
CHANGED
|
@@ -7,29 +7,48 @@ import * as original from '@jaypie/dynamodb';
|
|
|
7
7
|
import { ParentReference, ScanTableOptions, StorableEntity, CreateTableOptions, CreateTableResult, ExportResult, DynamoClientConfig, QueryResult, SeedOptions, SeedResult } from '@jaypie/dynamodb';
|
|
8
8
|
export { BaseQueryOptions, CreateTableOptions, CreateTableResult, ExportResult, ParentReference, QueryParams, QueryResult, ScanTableOptions, SeedOptions, SeedResult, StorableEntity } from '@jaypie/dynamodb';
|
|
9
9
|
import * as original$1 from '@jaypie/express';
|
|
10
|
+
import * as _vitest_spy from '@vitest/spy';
|
|
10
11
|
import * as original$2 from '@jaypie/llm';
|
|
11
12
|
export { FORMAT, LEVEL, Logger, log, redactAuth, sanitizeAuth } from '@jaypie/logger';
|
|
12
13
|
export { IndexableModel } from '@jaypie/fabric';
|
|
13
14
|
export { mongoose } from '@jaypie/mongoose';
|
|
14
15
|
|
|
15
|
-
declare const getMessages: vitest.
|
|
16
|
+
declare const getMessages: vitest.MockInstance<(...args: any[]) => any> & {
|
|
17
|
+
(...args: any[]): any;
|
|
18
|
+
new (...args: any[]): any;
|
|
19
|
+
} & {};
|
|
16
20
|
declare const getS3FileBuffer: (({ bucket, key }: {
|
|
17
21
|
bucket: string;
|
|
18
22
|
key: string;
|
|
19
23
|
}) => Promise<Buffer>) & {
|
|
20
24
|
mock: any;
|
|
21
25
|
};
|
|
22
|
-
declare const getSecret: vitest.
|
|
23
|
-
|
|
26
|
+
declare const getSecret: vitest.MockInstance<(...args: any[]) => any> & {
|
|
27
|
+
(...args: any[]): any;
|
|
28
|
+
new (...args: any[]): any;
|
|
29
|
+
} & {};
|
|
30
|
+
declare const sendMessage: vitest.MockInstance<(...args: any[]) => any> & {
|
|
31
|
+
(...args: any[]): any;
|
|
32
|
+
new (...args: any[]): any;
|
|
33
|
+
} & {};
|
|
24
34
|
declare const getEnvSecret: ((key: string) => Promise<string>) & {
|
|
25
35
|
mock: any;
|
|
26
36
|
};
|
|
27
|
-
declare const loadEnvSecrets: vitest.
|
|
28
|
-
|
|
37
|
+
declare const loadEnvSecrets: vitest.MockInstance<(...args: any[]) => any> & {
|
|
38
|
+
(...args: any[]): any;
|
|
39
|
+
new (...args: any[]): any;
|
|
40
|
+
} & {};
|
|
41
|
+
declare const getSingletonMessage: vitest.MockInstance<(...args: any[]) => any> & {
|
|
42
|
+
(...args: any[]): any;
|
|
43
|
+
new (...args: any[]): any;
|
|
44
|
+
} & {};
|
|
29
45
|
declare const getTextractJob: ((jobId: string) => Promise<any>) & {
|
|
30
46
|
mock: any;
|
|
31
47
|
};
|
|
32
|
-
declare const sendBatchMessages: vitest.
|
|
48
|
+
declare const sendBatchMessages: vitest.MockInstance<(...args: any[]) => any> & {
|
|
49
|
+
(...args: any[]): any;
|
|
50
|
+
new (...args: any[]): any;
|
|
51
|
+
} & {};
|
|
33
52
|
declare const sendTextractJob: (({ bucket, key, featureTypes, }: {
|
|
34
53
|
bucket: string;
|
|
35
54
|
key: string;
|
|
@@ -149,26 +168,68 @@ declare const UnavailableError: typeof errors.UnavailableError;
|
|
|
149
168
|
declare const UnhandledError: typeof errors.UnhandledError;
|
|
150
169
|
declare const UnreachableCodeError: typeof errors.UnreachableCodeError;
|
|
151
170
|
|
|
152
|
-
declare const cloneDeep: vitest.
|
|
153
|
-
|
|
154
|
-
|
|
171
|
+
declare const cloneDeep: vitest.MockInstance<(...args: any[]) => any> & {
|
|
172
|
+
(...args: any[]): any;
|
|
173
|
+
new (...args: any[]): any;
|
|
174
|
+
} & {};
|
|
175
|
+
declare const envBoolean: vitest.MockInstance<(...args: any[]) => any> & {
|
|
176
|
+
(...args: any[]): any;
|
|
177
|
+
new (...args: any[]): any;
|
|
178
|
+
} & {};
|
|
179
|
+
declare const envsKey: vitest.MockInstance<(...args: any[]) => any> & {
|
|
180
|
+
(...args: any[]): any;
|
|
181
|
+
new (...args: any[]): any;
|
|
182
|
+
} & {};
|
|
155
183
|
declare const errorFromStatusCode: ((statusCode: number, message?: string) => Error) & {
|
|
156
184
|
mock: any;
|
|
157
185
|
};
|
|
158
|
-
declare const formatError: vitest.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
186
|
+
declare const formatError: vitest.MockInstance<(...args: any[]) => any> & {
|
|
187
|
+
(...args: any[]): any;
|
|
188
|
+
new (...args: any[]): any;
|
|
189
|
+
} & {};
|
|
190
|
+
declare const generateJaypieKey: vitest.MockInstance<(...args: any[]) => any> & {
|
|
191
|
+
(...args: any[]): any;
|
|
192
|
+
new (...args: any[]): any;
|
|
193
|
+
} & {};
|
|
194
|
+
declare const hashJaypieKey: vitest.MockInstance<(...args: any[]) => any> & {
|
|
195
|
+
(...args: any[]): any;
|
|
196
|
+
new (...args: any[]): any;
|
|
197
|
+
} & {};
|
|
198
|
+
declare const jaypieApiKeyId: vitest.MockInstance<(...args: any[]) => any> & {
|
|
199
|
+
(...args: any[]): any;
|
|
200
|
+
new (...args: any[]): any;
|
|
201
|
+
} & {};
|
|
162
202
|
declare const jaypieErrorFromStatus: ((statusCode: number, message?: string) => Error) & {
|
|
163
203
|
mock: any;
|
|
164
204
|
};
|
|
165
|
-
declare const getHeaderFrom: vitest.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
declare const
|
|
170
|
-
|
|
171
|
-
|
|
205
|
+
declare const getHeaderFrom: vitest.MockInstance<(...args: any[]) => any> & {
|
|
206
|
+
(...args: any[]): any;
|
|
207
|
+
new (...args: any[]): any;
|
|
208
|
+
} & {};
|
|
209
|
+
declare const getObjectKeyCaseInsensitive: vitest.MockInstance<(...args: any[]) => any> & {
|
|
210
|
+
(...args: any[]): any;
|
|
211
|
+
new (...args: any[]): any;
|
|
212
|
+
} & {};
|
|
213
|
+
declare const isClass: vitest.MockInstance<(...args: any[]) => any> & {
|
|
214
|
+
(...args: any[]): any;
|
|
215
|
+
new (...args: any[]): any;
|
|
216
|
+
} & {};
|
|
217
|
+
declare const isJaypieError: vitest.MockInstance<(...args: any[]) => any> & {
|
|
218
|
+
(...args: any[]): any;
|
|
219
|
+
new (...args: any[]): any;
|
|
220
|
+
} & {};
|
|
221
|
+
declare const resolveValue: vitest.MockInstance<(...args: any[]) => any> & {
|
|
222
|
+
(...args: any[]): any;
|
|
223
|
+
new (...args: any[]): any;
|
|
224
|
+
} & {};
|
|
225
|
+
declare const safeParseFloat: vitest.MockInstance<(...args: any[]) => any> & {
|
|
226
|
+
(...args: any[]): any;
|
|
227
|
+
new (...args: any[]): any;
|
|
228
|
+
} & {};
|
|
229
|
+
declare const placeholders: vitest.MockInstance<(...args: any[]) => any> & {
|
|
230
|
+
(...args: any[]): any;
|
|
231
|
+
new (...args: any[]): any;
|
|
232
|
+
} & {};
|
|
172
233
|
declare const force: kit.ForceFunction;
|
|
173
234
|
declare const jaypieHandler: ((handler: Function, options?: {
|
|
174
235
|
setup?: Function | Function[];
|
|
@@ -178,9 +239,18 @@ declare const jaypieHandler: ((handler: Function, options?: {
|
|
|
178
239
|
}) => Function) & {
|
|
179
240
|
mock: any;
|
|
180
241
|
};
|
|
181
|
-
declare const sleep: vitest.
|
|
182
|
-
|
|
183
|
-
|
|
242
|
+
declare const sleep: vitest.MockInstance<(...args: any[]) => any> & {
|
|
243
|
+
(...args: any[]): any;
|
|
244
|
+
new (...args: any[]): any;
|
|
245
|
+
} & {};
|
|
246
|
+
declare const uuid: vitest.MockInstance<(...args: any[]) => any> & {
|
|
247
|
+
(...args: any[]): any;
|
|
248
|
+
new (...args: any[]): any;
|
|
249
|
+
} & {};
|
|
250
|
+
declare const validateJaypieKey: vitest.MockInstance<(...args: any[]) => any> & {
|
|
251
|
+
(...args: any[]): any;
|
|
252
|
+
new (...args: any[]): any;
|
|
253
|
+
} & {};
|
|
184
254
|
declare const HTTP: {
|
|
185
255
|
readonly ALLOW: {
|
|
186
256
|
readonly ANY: "*";
|
|
@@ -362,10 +432,22 @@ declare const DATADOG: {
|
|
|
362
432
|
};
|
|
363
433
|
SITE: string;
|
|
364
434
|
};
|
|
365
|
-
declare const hasDatadogEnv: vitest.
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
435
|
+
declare const hasDatadogEnv: vitest.MockInstance<(...args: any[]) => any> & {
|
|
436
|
+
(...args: any[]): any;
|
|
437
|
+
new (...args: any[]): any;
|
|
438
|
+
} & {};
|
|
439
|
+
declare const submitDistribution: vitest.MockInstance<(...args: any[]) => any> & {
|
|
440
|
+
(...args: any[]): any;
|
|
441
|
+
new (...args: any[]): any;
|
|
442
|
+
} & {};
|
|
443
|
+
declare const submitMetric: vitest.MockInstance<(...args: any[]) => any> & {
|
|
444
|
+
(...args: any[]): any;
|
|
445
|
+
new (...args: any[]): any;
|
|
446
|
+
} & {};
|
|
447
|
+
declare const submitMetricSet: vitest.MockInstance<(...args: any[]) => any> & {
|
|
448
|
+
(...args: any[]): any;
|
|
449
|
+
new (...args: any[]): any;
|
|
450
|
+
} & {};
|
|
369
451
|
|
|
370
452
|
declare const APEX = "@";
|
|
371
453
|
declare const ARCHIVED_SUFFIX = "#archived";
|
|
@@ -532,9 +614,18 @@ declare const destroyTable: ((params: {
|
|
|
532
614
|
mock: any;
|
|
533
615
|
};
|
|
534
616
|
|
|
535
|
-
declare const createLambdaHandler: vitest.
|
|
536
|
-
|
|
537
|
-
|
|
617
|
+
declare const createLambdaHandler: vitest.MockInstance<(...args: any[]) => any> & {
|
|
618
|
+
(...args: any[]): any;
|
|
619
|
+
new (...args: any[]): any;
|
|
620
|
+
} & {};
|
|
621
|
+
declare const createLambdaStreamHandler: vitest.MockInstance<(...args: any[]) => any> & {
|
|
622
|
+
(...args: any[]): any;
|
|
623
|
+
new (...args: any[]): any;
|
|
624
|
+
} & {};
|
|
625
|
+
declare const getCurrentInvoke: vitest.MockInstance<(...args: any[]) => any> & {
|
|
626
|
+
(...args: any[]): any;
|
|
627
|
+
new (...args: any[]): any;
|
|
628
|
+
} & {};
|
|
538
629
|
declare const LambdaRequest: typeof original$1.LambdaRequest;
|
|
539
630
|
declare const LambdaResponseBuffered: typeof original$1.LambdaResponseBuffered;
|
|
540
631
|
declare const LambdaResponseStreaming: typeof original$1.LambdaResponseStreaming;
|
|
@@ -545,18 +636,54 @@ declare const EXPRESS: {
|
|
|
545
636
|
readonly ROOT: RegExp;
|
|
546
637
|
};
|
|
547
638
|
};
|
|
548
|
-
declare const badRequestRoute: vitest.
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
declare const
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
declare const
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
639
|
+
declare const badRequestRoute: vitest.MockInstance<(...args: any[]) => any> & {
|
|
640
|
+
(...args: any[]): any;
|
|
641
|
+
new (...args: any[]): any;
|
|
642
|
+
} & {};
|
|
643
|
+
declare const echoRoute: vitest.MockInstance<(...args: any[]) => any> & {
|
|
644
|
+
(...args: any[]): any;
|
|
645
|
+
new (...args: any[]): any;
|
|
646
|
+
} & {};
|
|
647
|
+
declare const forbiddenRoute: vitest.MockInstance<(...args: any[]) => any> & {
|
|
648
|
+
(...args: any[]): any;
|
|
649
|
+
new (...args: any[]): any;
|
|
650
|
+
} & {};
|
|
651
|
+
declare const goneRoute: vitest.MockInstance<(...args: any[]) => any> & {
|
|
652
|
+
(...args: any[]): any;
|
|
653
|
+
new (...args: any[]): any;
|
|
654
|
+
} & {};
|
|
655
|
+
declare const methodNotAllowedRoute: vitest.MockInstance<(...args: any[]) => any> & {
|
|
656
|
+
(...args: any[]): any;
|
|
657
|
+
new (...args: any[]): any;
|
|
658
|
+
} & {};
|
|
659
|
+
declare const noContentRoute: vitest.MockInstance<(...args: any[]) => any> & {
|
|
660
|
+
(...args: any[]): any;
|
|
661
|
+
new (...args: any[]): any;
|
|
662
|
+
} & {};
|
|
663
|
+
declare const notFoundRoute: vitest.MockInstance<(...args: any[]) => any> & {
|
|
664
|
+
(...args: any[]): any;
|
|
665
|
+
new (...args: any[]): any;
|
|
666
|
+
} & {};
|
|
667
|
+
declare const notImplementedRoute: vitest.MockInstance<(...args: any[]) => any> & {
|
|
668
|
+
(...args: any[]): any;
|
|
669
|
+
new (...args: any[]): any;
|
|
670
|
+
} & {};
|
|
671
|
+
declare const expressHttpCodeHandler: vitest.MockInstance<(...args: any[]) => any> & {
|
|
672
|
+
(...args: any[]): any;
|
|
673
|
+
new (...args: any[]): any;
|
|
674
|
+
} & {};
|
|
675
|
+
declare const cors: vitest.MockInstance<(...args: any[]) => any> & {
|
|
676
|
+
(...args: any[]): any;
|
|
677
|
+
new (...args: any[]): any;
|
|
678
|
+
} & {};
|
|
679
|
+
declare const fabricApiResponse: vitest.MockInstance<(...args: any[]) => any> & {
|
|
680
|
+
(...args: any[]): any;
|
|
681
|
+
new (...args: any[]): any;
|
|
682
|
+
} & {};
|
|
683
|
+
declare const getCurrentInvokeUuid: vitest.MockInstance<(...args: any[]) => any> & {
|
|
684
|
+
(...args: any[]): any;
|
|
685
|
+
new (...args: any[]): any;
|
|
686
|
+
} & {};
|
|
560
687
|
interface ExpressHandlerFunction {
|
|
561
688
|
(req: any, res: any, ...extra: any[]): Promise<any> | any;
|
|
562
689
|
}
|
|
@@ -585,9 +712,18 @@ declare const expressHandler: ((handlerOrProps: ExpressHandlerParameter, propsOr
|
|
|
585
712
|
mock: any;
|
|
586
713
|
};
|
|
587
714
|
|
|
588
|
-
declare const isLocalEnv: vitest.
|
|
589
|
-
|
|
590
|
-
|
|
715
|
+
declare const isLocalEnv: vitest.MockInstance<(...args: any[]) => any> & {
|
|
716
|
+
(...args: any[]): any;
|
|
717
|
+
new (...args: any[]): any;
|
|
718
|
+
} & {};
|
|
719
|
+
declare const isNodeTestEnv: vitest.MockInstance<(...args: any[]) => any> & {
|
|
720
|
+
(...args: any[]): any;
|
|
721
|
+
new (...args: any[]): any;
|
|
722
|
+
} & {};
|
|
723
|
+
declare const isProductionEnv: vitest.MockInstance<(...args: any[]) => any> & {
|
|
724
|
+
(...args: any[]): any;
|
|
725
|
+
new (...args: any[]): any;
|
|
726
|
+
} & {};
|
|
591
727
|
|
|
592
728
|
type HandlerFunction = (...args: unknown[]) => unknown;
|
|
593
729
|
type LifecycleFunction = (...args: unknown[]) => unknown | Promise<unknown>;
|
|
@@ -640,9 +776,18 @@ declare const websocketHandler: ((handler: WebSocketHandlerFunction, props?: Lam
|
|
|
640
776
|
};
|
|
641
777
|
|
|
642
778
|
declare const LLM: typeof original$2.LLM;
|
|
643
|
-
declare const Llm: vitest.
|
|
644
|
-
|
|
645
|
-
|
|
779
|
+
declare const Llm: vitest.MockInstance<_vitest_spy.Procedure> & {
|
|
780
|
+
(...args: any[]): any;
|
|
781
|
+
new (...args: any[]): any;
|
|
782
|
+
} & {} & {
|
|
783
|
+
operate: vitest.MockInstance<(...args: any[]) => any> & {
|
|
784
|
+
(...args: any[]): any;
|
|
785
|
+
new (...args: any[]): any;
|
|
786
|
+
} & {};
|
|
787
|
+
send: vitest.MockInstance<(...args: any[]) => any> & {
|
|
788
|
+
(...args: any[]): any;
|
|
789
|
+
new (...args: any[]): any;
|
|
790
|
+
} & {};
|
|
646
791
|
};
|
|
647
792
|
declare const Toolkit: typeof original$2.Toolkit;
|
|
648
793
|
declare const JaypieToolkit: typeof original$2.JaypieToolkit;
|
|
@@ -729,14 +874,26 @@ declare module "vitest" {
|
|
|
729
874
|
}
|
|
730
875
|
}
|
|
731
876
|
|
|
732
|
-
declare const createLogger: vitest.
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
877
|
+
declare const createLogger: vitest.MockInstance<(...args: any[]) => any> & {
|
|
878
|
+
(...args: any[]): any;
|
|
879
|
+
new (...args: any[]): any;
|
|
880
|
+
} & {};
|
|
881
|
+
declare const _resetDatadogTransport: vitest.Mock<_vitest_spy.Procedure>;
|
|
882
|
+
declare const getDatadogTransport: vitest.Mock<_vitest_spy.Procedure>;
|
|
883
|
+
declare const isDatadogForwardingEnabled: vitest.Mock<_vitest_spy.Procedure>;
|
|
736
884
|
|
|
737
|
-
declare const connect: vitest.
|
|
738
|
-
|
|
739
|
-
|
|
885
|
+
declare const connect: vitest.MockInstance<(...args: any[]) => any> & {
|
|
886
|
+
(...args: any[]): any;
|
|
887
|
+
new (...args: any[]): any;
|
|
888
|
+
} & {};
|
|
889
|
+
declare const connectFromSecretEnv: vitest.MockInstance<(...args: any[]) => any> & {
|
|
890
|
+
(...args: any[]): any;
|
|
891
|
+
new (...args: any[]): any;
|
|
892
|
+
} & {};
|
|
893
|
+
declare const disconnect: vitest.MockInstance<(...args: any[]) => any> & {
|
|
894
|
+
(...args: any[]): any;
|
|
895
|
+
new (...args: any[]): any;
|
|
896
|
+
} & {};
|
|
740
897
|
|
|
741
898
|
/**
|
|
742
899
|
* Mock for MarkdownPage class from @jaypie/textract
|
|
@@ -745,12 +902,18 @@ declare const MarkdownPage: any;
|
|
|
745
902
|
/**
|
|
746
903
|
* Mock for textractJsonToMarkdown function from @jaypie/textract
|
|
747
904
|
*/
|
|
748
|
-
declare const textractJsonToMarkdown: vitest.
|
|
905
|
+
declare const textractJsonToMarkdown: vitest.MockInstance<(...args: any[]) => any> & {
|
|
906
|
+
(...args: any[]): any;
|
|
907
|
+
new (...args: any[]): any;
|
|
908
|
+
} & {};
|
|
749
909
|
|
|
750
910
|
declare const expandIncludes: ((...args: any[]) => any) & {
|
|
751
911
|
mock: any;
|
|
752
912
|
};
|
|
753
|
-
declare const isValidAlias: vitest.
|
|
913
|
+
declare const isValidAlias: vitest.MockInstance<(...args: any[]) => any> & {
|
|
914
|
+
(...args: any[]): any;
|
|
915
|
+
new (...args: any[]): any;
|
|
916
|
+
} & {};
|
|
754
917
|
declare const getAlternativeSpellings: ((...args: any[]) => any) & {
|
|
755
918
|
mock: any;
|
|
756
919
|
};
|