@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
|
|
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<
|
|
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<
|
|
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
|
|
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<
|
|
9
|
+
form: Partial<TEnhancedFormModel>;
|
|
10
10
|
}): Promise<EnhancedFormModel | FormModel>;
|
|
11
11
|
}
|
|
12
12
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -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<
|
|
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 }: {
|