@cakemail-org/ui-components-v2 2.0.74 → 2.0.75

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 { EnhancedFormModel, FormModel, SummaryEnhancedFormModel, TEnhancedFormModel, TFormModel } from "../../models";
1
+ import { EnhancedFormModel, FormModel, SummaryEnhancedFormModel, TEnhancedFormModel } from "../../models";
2
2
  import { TGenericListParams, TGenericListReturn } from "../../types/services";
3
3
  export declare class FormsFactory {
4
4
  static get({ id }: {
@@ -6,7 +6,7 @@ export declare class FormsFactory {
6
6
  }): Promise<FormModel | EnhancedFormModel>;
7
7
  static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<FormModel | SummaryEnhancedFormModel>>;
8
8
  static create({ form }: {
9
- form: Partial<TFormModel | TEnhancedFormModel>;
9
+ form: Partial<TEnhancedFormModel>;
10
10
  }): Promise<EnhancedFormModel | FormModel>;
11
11
  }
12
12
  export * from "./types";
package/dist/cjs/index.js CHANGED
@@ -9757,7 +9757,7 @@ function createForm(_a) {
9757
9757
  return callApi({
9758
9758
  url: uiKitConfig.GATEWAY_PROXY + "/forms",
9759
9759
  fetchOptions: {
9760
- body: form,
9760
+ body: __assign(__assign({}, form), { type: "enhanced" }),
9761
9761
  method: exports.EMethods.post
9762
9762
  }
9763
9763
  });
@@ -1,7 +1,7 @@
1
1
  import { EnhancedFormModel, FormModel } from "../../models";
2
2
  import { TGenericListParams } from "../../types";
3
3
  export declare function createForm({ form }: {
4
- form: Partial<FormModel | EnhancedFormModel>;
4
+ form: Partial<EnhancedFormModel>;
5
5
  }): Promise<any>;
6
6
  export declare function listForms({ useImpersonationTree, ...options }: TGenericListParams): Promise<any>;
7
7
  export declare function patchForm({ id, data }: {
@@ -1,4 +1,4 @@
1
- import { EnhancedFormModel, FormModel, SummaryEnhancedFormModel, TEnhancedFormModel, TFormModel } from "../../models";
1
+ import { EnhancedFormModel, FormModel, SummaryEnhancedFormModel, TEnhancedFormModel } from "../../models";
2
2
  import { TGenericListParams, TGenericListReturn } from "../../types/services";
3
3
  export declare class FormsFactory {
4
4
  static get({ id }: {
@@ -6,7 +6,7 @@ export declare class FormsFactory {
6
6
  }): Promise<FormModel | EnhancedFormModel>;
7
7
  static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<FormModel | SummaryEnhancedFormModel>>;
8
8
  static create({ form }: {
9
- form: Partial<TFormModel | TEnhancedFormModel>;
9
+ form: Partial<TEnhancedFormModel>;
10
10
  }): Promise<EnhancedFormModel | FormModel>;
11
11
  }
12
12
  export * from "./types";
package/dist/esm/index.js CHANGED
@@ -9737,7 +9737,7 @@ function createForm(_a) {
9737
9737
  return callApi({
9738
9738
  url: uiKitConfig.GATEWAY_PROXY + "/forms",
9739
9739
  fetchOptions: {
9740
- body: form,
9740
+ body: __assign(__assign({}, form), { type: "enhanced" }),
9741
9741
  method: EMethods.post
9742
9742
  }
9743
9743
  });
@@ -1,7 +1,7 @@
1
1
  import { EnhancedFormModel, FormModel } from "../../models";
2
2
  import { TGenericListParams } from "../../types";
3
3
  export declare function createForm({ form }: {
4
- form: Partial<FormModel | EnhancedFormModel>;
4
+ form: Partial<EnhancedFormModel>;
5
5
  }): Promise<any>;
6
6
  export declare function listForms({ useImpersonationTree, ...options }: TGenericListParams): Promise<any>;
7
7
  export declare function patchForm({ id, data }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.0.74",
3
+ "version": "2.0.75",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",