kwikid-forms 0.6.34 → 0.6.36

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.
@@ -1,4 +1,4 @@
1
- import { TAction, TRule, TSource, TValidation } from "kwikid-toolkit";
1
+ import { TAction, TRule, TSource, TEngine } from "kwikid-toolkit";
2
2
  import { TTrigger } from "./form-view.triggers.definition";
3
3
  export declare enum EApiStatusType {
4
4
  DEFAULT = "default",
@@ -12,20 +12,20 @@ export declare type TApiRequestBodyParam = {
12
12
  sources: Array<TSource>;
13
13
  value: any;
14
14
  };
15
- export declare type TApiRequestBody = TValidation & {
15
+ export declare type TApiRequestBody = TEngine & {
16
16
  value: any;
17
17
  params: Array<TApiRequestBodyParam>;
18
- validation: TValidation;
18
+ validation: TEngine;
19
19
  };
20
20
  export declare type TApiRequestHeadersParam = {
21
21
  key: string;
22
22
  sources: Array<TSource>;
23
23
  value: any;
24
24
  };
25
- export declare type TApiRequestHeaders = TValidation & {
25
+ export declare type TApiRequestHeaders = TEngine & {
26
26
  value: any;
27
27
  params: Array<any>;
28
- validation: TValidation;
28
+ validation: TEngine;
29
29
  };
30
30
  export declare type TApiTimer = {
31
31
  maxTime: number;
@@ -41,10 +41,10 @@ export declare type TApiRequest = {
41
41
  body: TApiRequestBody;
42
42
  };
43
43
  export declare type TApiResponseBody = any;
44
- export declare type TApiResponse = TValidation & {
44
+ export declare type TApiResponse = TEngine & {
45
45
  is_valid: boolean;
46
46
  body: TApiResponseBody;
47
- validation: TValidation;
47
+ validation: TEngine;
48
48
  value?: any;
49
49
  };
50
50
  export declare type TApiStatusType = EApiStatusType.DEFAULT | EApiStatusType.LOADING | EApiStatusType.RETRY | EApiStatusType.SUCCESS | EApiStatusType.FAILED;
@@ -1,4 +1,4 @@
1
- import { TAction, TRule, TSource, TValidation } from "kwikid-toolkit";
1
+ import { TAction, TRule, TSource, TEngine } from "kwikid-toolkit";
2
2
  import { TApi } from "./form-view.apis.definition";
3
3
  import { TMessage } from "./form-view.commons.definition";
4
4
  import { TValidator } from "./form-view.form-validations.definition";
@@ -253,7 +253,7 @@ export declare type TField = {
253
253
  messages: Array<TMessage>;
254
254
  default: TFieldDefault;
255
255
  validators: TValidator;
256
- validation: TValidation;
256
+ validation: TEngine;
257
257
  api?: TApi;
258
258
  properties: TFieldProperties;
259
259
  options?: Array<any>;
@@ -1,4 +1,4 @@
1
- import { TValidation } from "kwikid-toolkit";
1
+ import { TEngine } from "kwikid-toolkit";
2
2
  import { TFieldApiCall } from "../definitions/form-view.fields.definition";
3
3
  export declare class Apis {
4
4
  private _object;
@@ -14,5 +14,5 @@ export declare class Apis {
14
14
  setRequestHeaders(): Promise<TFieldApiCall>;
15
15
  validateRequestHeaders(): Promise<TFieldApiCall>;
16
16
  validateResponse(): Promise<TFieldApiCall>;
17
- callNextApi(validation: TValidation): Promise<any>;
17
+ callNextApi(validation: TEngine): Promise<any>;
18
18
  }
@@ -16,7 +16,7 @@ export declare const removeFormFieldMessage: (field: any, message: {
16
16
  type: string;
17
17
  message: string;
18
18
  }) => any;
19
- export declare const setApiTimerMessage: (field: any, timer?: any) => any;
19
+ export declare const setApiTimerMessage: (field: any, timer?: {}) => any;
20
20
  export declare function showFormFieldError(fields: any, errors: any, key: string, error: boolean): any;
21
21
  export declare const convertFormFieldTypeDateToKwikUIFormat: (date: string) => TuiDay;
22
22
  export declare const convertFormFieldTypeTimeToKwikUIFormat: (time: string) => TuiTime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwikid-forms",
3
- "version": "0.6.34",
3
+ "version": "0.6.36",
4
4
  "description": "KwikID's JSON Configuration based Forms Renderer and Builder",
5
5
  "author": {
6
6
  "name": "Baiju Dodhia"
@@ -24,8 +24,8 @@
24
24
  "axios": "^1.6.8",
25
25
  "jsonpath": "^1.1.1",
26
26
  "kwikid-camera": "0.0.21",
27
- "kwikid-toolkit": "^0.2.6",
28
- "kwikui": "^0.3.13",
27
+ "kwikid-toolkit": "^0.2.12",
28
+ "kwikui": "^0.3.15",
29
29
  "lodash": "^4.17.21",
30
30
  "tslib": "^2.2.0"
31
31
  },