@foris/avocado-not-front 1.6.0 → 1.7.0

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.
@@ -40,3 +40,13 @@ export declare const put: <T>(api: string, headers?: ApiConfig['headers'] | Reco
40
40
  * @returns {call, controller}
41
41
  */
42
42
  export declare const patch: <T>(api: string, headers?: ApiConfig['headers'] | Record<string, string>, data?: {}, params?: {}, abort?: boolean, userFlow?: string) => AxiosCall<T>;
43
+ /**
44
+ * Axios Delete
45
+ * @param api
46
+ * @param headers
47
+ * @param data
48
+ * @param params
49
+ * @param abort
50
+ * @returns {call, controller}
51
+ */
52
+ export declare const deleteRequest: <T>(api: string, headers?: ApiConfig['headers'] | Record<string, string>, data?: {}, params?: {}, abort?: boolean, userFlow?: string) => AxiosCall<T>;
@@ -5,7 +5,7 @@ export interface NotFrontBaseProps {
5
5
  export type NotFrontActionType = 'GO_TO_NEXT_UI' | 'FETCH_AND_GO_TO_NEXT_UI' | 'REDIRECT' | 'GET_DATA_SOURCE' | 'AUTOCLOSE_AND_REDIRECT' | 'CLOSE_MODAL' | 'CLOSE_DRAWER' | 'OPEN_DRAWER';
6
6
  interface BaseDataSource {
7
7
  url: string;
8
- method: 'post' | 'get' | 'put' | 'patch';
8
+ method: 'post' | 'get' | 'put' | 'patch' | 'delete';
9
9
  headers?: Record<string, string>;
10
10
  params?: any;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foris/avocado-not-front",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },