@apostlejs/flows 0.0.10 → 0.0.12
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 +2 -14
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FlowMetadata, WaSDKGetFlowWebPreviewPageRequestQuery, FlowParameters, WhatsappFlowDecryptedWebhookBody, WhatsappFlowResponse } from '@apostlejs/whatsapp';
|
|
2
2
|
import { z, ZodObject } from 'zod';
|
|
3
|
-
import * as ajv from 'ajv';
|
|
4
3
|
|
|
5
4
|
type AnyType = any;
|
|
6
5
|
type DistributiveOmit<T, K extends keyof AnyType> = T extends AnyType ? Omit<T, K> : never;
|
|
@@ -947,9 +946,7 @@ declare function createFlowContext<DataKeys extends string>(context: FlowHandler
|
|
|
947
946
|
};
|
|
948
947
|
screen: string;
|
|
949
948
|
};
|
|
950
|
-
success: <D>(data?: D
|
|
951
|
-
intent?: string | null;
|
|
952
|
-
}) => {
|
|
949
|
+
success: <D>(data?: D) => {
|
|
953
950
|
data: {};
|
|
954
951
|
screen: string;
|
|
955
952
|
};
|
|
@@ -1092,13 +1089,4 @@ declare const flowMediaInput: z.ZodArray<z.ZodObject<{
|
|
|
1092
1089
|
}, z.core.$strip>>;
|
|
1093
1090
|
type FlowMediaInput = z.infer<typeof flowMediaInput>;
|
|
1094
1091
|
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
declare const validateFlowJson: (nativeFlowJson: NativeFlowJSON) => Promise<{
|
|
1098
|
-
valid: boolean;
|
|
1099
|
-
errors: ajv.ErrorObject<string, Record<string, any>, unknown>[] | null | undefined;
|
|
1100
|
-
}>;
|
|
1101
|
-
|
|
1102
|
-
declare const schemas: Record<string, AnyType>;
|
|
1103
|
-
|
|
1104
|
-
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 TypedFlowScreenComponent, 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, schemas, screen, screenController, state, txt, uniqueId, validateFlowJson, zod_payload };
|
|
1092
|
+
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 TypedFlowScreenComponent, type TypedFlowScreens, buildApiResponse, complete, componentData, components, condition, createDevFlowJson, createFlowContext, createFlowControllerPool, createNativeFlowJson, createStoreFactory, 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 };
|
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.12",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"ajv": "8.17.1",
|
|
34
34
|
"ajv-formats": "3.0.1",
|
|
35
|
-
"@apostlejs/whatsapp": "0.0.
|
|
35
|
+
"@apostlejs/whatsapp": "0.0.12"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"zod": "4.0.14"
|