@zealicsolutions/web-ui 1.0.44-beta-11 → 1.0.44-beta-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.
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
- import type { AxiosResponse } from 'axios';
2
+ import type { ResponseDTO } from 'typescript';
3
3
  export interface Option {
4
4
  id: string;
5
5
  name: string;
6
6
  }
7
7
  export interface ApiInterface {
8
8
  pickList: {
9
- get: (dataModelFieldId?: string) => Promise<AxiosResponse<Option[]>>;
9
+ get(dataModelFieldId?: string): Promise<ResponseDTO<Option[]>>;
10
10
  };
11
11
  }
12
12
  export declare const ApiContext: import("react").Context<ApiInterface>;
@@ -1,2 +1,2 @@
1
- import{__awaiter as t,__generator as r}from"../../node_modules/tslib/tslib.es6.js";import{createContext as e}from"react";var i=e({pickList:{get:function(e){return t(void 0,void 0,void 0,(function(){return r(this,(function(t){return[2,{data:[],status:200,statusText:"OK",headers:{},config:{},request:{}}]}))}))}}});export{i as ApiContext};
1
+ import{__awaiter as t,__generator as i}from"../../node_modules/tslib/tslib.es6.js";import{createContext as o}from"react";var r=o({pickList:{get:function(o){return t(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,{data:[]}]}))}))}}});export{r as ApiContext};
2
2
  //# sourceMappingURL=ApiContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiContext.js","sources":["../../../../../src/contexts/ApiContext/ApiContext.ts"],"sourcesContent":[null],"names":["ApiContext","createContext","pickList","get","_dataModelFieldId","__awaiter","data","status","statusText","headers","config","request"],"mappings":"yHAeO,IAAMA,EAAaC,EAA4B,CACpDC,SAAU,CACRC,IAAK,SAAOC,GAAyB,OAAAC,OAAA,OAAA,OAAA,GAAA,sCASnC,MAAA,CAAA,EAR0C,CACxCC,KAAM,GACNC,OAAQ,IACRC,WAAY,KACZC,QAAS,CAAyB,EAClCC,OAAQ,CAAwB,EAChCC,QAAS,CAAE,MAGd,GAAA"}
1
+ {"version":3,"file":"ApiContext.js","sources":["../../../../../src/contexts/ApiContext/ApiContext.ts"],"sourcesContent":[null],"names":["ApiContext","createContext","pickList","get","_dataModelFieldId","__awaiter","data"],"mappings":"yHAeA,IAQaA,EAAaC,EARO,CAC/BC,SAAU,CACRC,IAAK,SAAOC,GAA0B,OAAAC,OAAA,OAAA,OAAA,GAAA,sCAAqC,MAAA,CAAA,EAAC,CAC1EC,KAAM,OACN,GAAA"}
@@ -14,4 +14,7 @@ declare type StrictUnionHelper<T, TAll> = T extends any ? T & Partial<Record<Exc
14
14
  export declare type StrictUnion<T> = StrictUnionHelper<T, T>;
15
15
  export declare type AnyObject = Record<string, unknown>;
16
16
  export declare type LooseObject = Record<string, any>;
17
+ export declare type ResponseDTO<T> = {
18
+ readonly data: T;
19
+ };
17
20
  export {};
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import * as _emotion_react from '@emotion/react';
6
6
  import { CSSObject, Theme, Interpolation } from '@emotion/react';
7
7
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
8
8
  import { ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
9
- import { StylesType, AnyObject as AnyObject$1, Callback as Callback$1, OverrideStyles, StyledTransientProps, Nullable, StrictUnion } from 'typescript';
9
+ import { StylesType, AnyObject as AnyObject$1, Callback as Callback$1, OverrideStyles, StyledTransientProps, ResponseDTO, Nullable, StrictUnion } from 'typescript';
10
10
  import { RefCallBack } from 'react-hook-form/dist/types';
11
11
  import { DataModelFieldFormatCodeTypes as DataModelFieldFormatCodeTypes$1, FormStateType as FormStateType$1, ConfigurationItemInfo as ConfigurationItemInfo$1, ContainerComponentProps as ContainerComponentProps$1, Molecule as Molecule$1, ContainerType as ContainerType$1, MoleculeTypes as MoleculeTypes$1, MoleculeItemTypes as MoleculeItemTypes$2, StateConfigType as StateConfigType$1, MetadataType as MetadataType$1, PasswordSetupMoleculeType as PasswordSetupMoleculeType$1, ContainerProps as ContainerProps$1, LinkProperties as LinkProperties$1, TextProperties as TextProperties$1, ObjectStateProperties as ObjectStateProperties$1, StateProperties as StateProperties$1 } from 'containers';
12
12
  import { InputFieldTypes } from 'fieldsConfiguration/types';
@@ -20,7 +20,6 @@ import { IconNames as IconNames$1, TouchableOpacityProps as TouchableOpacityProp
20
20
  import { OrganismDTO } from 'organisms/types';
21
21
  import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
22
22
  import { PasswordRuleValidation as PasswordRuleValidation$2 } from 'molecules/PasswordSetup/PasswordSetup';
23
- import { AxiosResponse } from 'axios';
24
23
  export * from 'helpers/constants';
25
24
  import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
26
25
  import { IconRendererProps as IconRendererProps$1 } from 'molecules/Icon';
@@ -688,7 +687,7 @@ interface Option {
688
687
  }
689
688
  interface ApiInterface {
690
689
  pickList: {
691
- get: (dataModelFieldId?: string) => Promise<AxiosResponse<Option[]>>;
690
+ get(dataModelFieldId?: string): Promise<ResponseDTO<Option[]>>;
692
691
  };
693
692
  }
694
693
  declare const ApiContext: react.Context<ApiInterface>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "1.0.44-beta-11",
3
+ "version": "1.0.44-beta-12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"