@apostlejs/flows 0.0.5 → 0.0.7
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 +1 -1
- package/dist/index.d.cts +8 -5
- package/package.json +5 -2
package/dist/index.d.cts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { FlowMetadata, WaSDKGetFlowWebPreviewPageRequestQuery, FlowParameters, WhatsappFlowDecryptedWebhookBody, WhatsappFlowResponse } from '@apostlejs/whatsapp';
|
2
2
|
import { ZodRawShape, ZodObject, ZodTypeAny, ZodEffects, ZodDefault, z } from 'zod';
|
3
|
+
import * as ajv from 'ajv';
|
3
4
|
|
4
5
|
type AnyType = any;
|
5
6
|
type DistributiveOmit<T, K extends keyof AnyType> = T extends AnyType ? Omit<T, K> : never;
|
@@ -3283,9 +3284,11 @@ declare const flowMediaInput: z.ZodArray<z.ZodObject<{
|
|
3283
3284
|
}>, "many">;
|
3284
3285
|
type FlowMediaInput = z.infer<typeof flowMediaInput>;
|
3285
3286
|
|
3286
|
-
declare function deployFlows(oldFlows: TypedFlowJson[], newFlows: TypedFlowJson[]): Promise<
|
3287
|
-
|
3288
|
-
|
3289
|
-
|
3287
|
+
declare function deployFlows(oldFlows: TypedFlowJson[], newFlows: TypedFlowJson[]): Promise<NativeFlowJSON[]>;
|
3288
|
+
|
3289
|
+
declare const validateFlowJson: (nativeFlowJson: NativeFlowJSON) => Promise<{
|
3290
|
+
valid: boolean;
|
3291
|
+
errors: ajv.ErrorObject<string, Record<string, any>, unknown>[] | null | undefined;
|
3292
|
+
}>;
|
3290
3293
|
|
3291
|
-
export { type AdapterFactoryFn, type DevFlowJson, type FlowController, type FlowControllerPool, type FlowDispatchableAction, type FlowHandlerBaseContext, type FlowHandlerContext, type FlowMediaInput, type NativeFlowJSON, type PickFlowComponent, type Store, type StoreAdapter, type TypedComponentData, type TypedFlowJson, type TypedFlowRouting, type TypedFlowScreen, type TypedFlowScreenComponents, type TypedFlowScreens, buildApiResponse, complete, componentData, components, condition, createDevFlowJson, createFlowContext, createFlowControllerPool, createNativeFlowJson, createStoreFactory, deployFlows, dispatchFlowPayload, dynamic_action, dynamic_navigate, dynamic_refresh, snippets as f, firstScreen, flow$1 as flow, flowController, flowMediaInput, form_payload, getFlowMetadata, getScreenMetadata, inline, navigate, parseUniqueId, screen, screenController, state, txt, uniqueId, zod_payload };
|
3294
|
+
export { type AdapterFactoryFn, type DevFlowJson, type FlowController, type FlowControllerPool, type FlowDispatchableAction, type FlowHandlerBaseContext, type FlowHandlerContext, type FlowMediaInput, type NativeFlowJSON, type PickFlowComponent, type Store, type StoreAdapter, type TypedComponentData, type TypedFlowJson, type TypedFlowRouting, type TypedFlowScreen, type TypedFlowScreenComponents, type TypedFlowScreens, buildApiResponse, complete, componentData, components, condition, createDevFlowJson, createFlowContext, createFlowControllerPool, createNativeFlowJson, createStoreFactory, deployFlows, dispatchFlowPayload, dynamic_action, dynamic_navigate, dynamic_refresh, snippets as f, firstScreen, flow$1 as flow, flowController, flowMediaInput, form_payload, getFlowMetadata, getScreenMetadata, inline, navigate, parseUniqueId, screen, screenController, state, txt, uniqueId, validateFlowJson, zod_payload };
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
7
|
-
"version": "0.0.
|
7
|
+
"version": "0.0.7",
|
8
8
|
"type": "module",
|
9
9
|
"files": [
|
10
10
|
"dist"
|
@@ -23,6 +23,7 @@
|
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
25
|
"@types/node": "^22.9.1",
|
26
|
+
"esbuild-plugin-copy": "2.1.1",
|
26
27
|
"terser": "^5.39.0",
|
27
28
|
"tsup": "8.4.0",
|
28
29
|
"tsx": "^4.19.3",
|
@@ -30,9 +31,11 @@
|
|
30
31
|
"@apostlejs/config": "1.0.0"
|
31
32
|
},
|
32
33
|
"dependencies": {
|
34
|
+
"ajv": "8.17.1",
|
35
|
+
"ajv-formats": "3.0.1",
|
33
36
|
"zod": "^3.24.3",
|
34
37
|
"zod-to-json-schema": "3.24.3",
|
35
|
-
"@apostlejs/whatsapp": "0.0.
|
38
|
+
"@apostlejs/whatsapp": "0.0.7"
|
36
39
|
},
|
37
40
|
"peerDependencies": {
|
38
41
|
"zod": "^3.24.3"
|