@unite-us/app-create-referral 0.2.19 → 0.2.20
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.
package/dist/context/state.js
CHANGED
|
@@ -20,6 +20,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
20
20
|
var initialStateDefault = exports.initialStateDefault = {
|
|
21
21
|
// Referrals being constructed to be sent
|
|
22
22
|
referrals: [],
|
|
23
|
+
// Referral originating from Assistance Request
|
|
24
|
+
assistanceRequestId: null,
|
|
23
25
|
// Form submissions responses from the Supporting Info step
|
|
24
26
|
formResponses: null,
|
|
25
27
|
// These values are set for draft referrals
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","names":["_lodash","require","ownKeys","e","r","t","_Object$keys","_Object$getOwnPropertySymbols","o","_filterInstanceProperty","call","_Object$getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","Object","forEach","_defineProperty2","default","_Object$getOwnPropertyDescriptors","_Object$defineProperties","_Object$defineProperty","initialStateDefault","exports","referrals","formResponses","draftState","selectedPrograms","person","currentProvider","currentEmployee","enums","resourceListId","formSubmissionId","serviceIds","source","StateReducer","state","action","type","assign","data","merge"],"sources":["../../src/context/state.js"],"sourcesContent":["import { assign, merge } from 'lodash';\n\nexport const initialStateDefault = {\n // Referrals being constructed to be sent\n referrals: [],\n\n // Form submissions responses from the Supporting Info step\n formResponses: null,\n\n // These values are set for draft referrals\n draftState: null,\n\n // These values must be set from the parent apps before navigating to the flow\n // Programs with services needed to create the referrals\n selectedPrograms: null,\n // Person attached to the referral\n person: null,\n\n // This values are being set as a prop from the parent app, e.g <AppReferrals appState={{ currentProvider: ...}} />\n currentProvider: null,\n currentEmployee: null,\n enums: null,\n\n // used as query params for Search App\n resourceListId: null,\n formSubmissionId: null,\n serviceIds: null,\n\n // \"emr\" or \"app-client\"\n // currently used for the share event\n source: null\n};\n\nexport default function StateReducer(state, action) {\n switch (action.type) {\n case 'set': {\n return assign({ ...state }, { ...action.data });\n }\n case 'merge': {\n return merge({ ...state }, { ...action.data });\n }\n case 'init': {\n return {\n ...initialStateDefault,\n ...action.data\n }\n }\n default: {\n return state;\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAuC,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAH,CAAA,OAAAI,6BAAA,QAAAC,CAAA,GAAAD,6BAAA,CAAAJ,CAAA,GAAAC,CAAA,KAAAI,CAAA,GAAAC,uBAAA,CAAAD,CAAA,EAAAE,IAAA,CAAAF,CAAA,YAAAJ,CAAA,WAAAO,gCAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAG,CAAA,YAAAH,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAgB,MAAA,CAAAb,CAAA,OAAAc,OAAA,WAAAf,CAAA,QAAAgB,gBAAA,CAAAC,OAAA,EAAAlB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAkB,iCAAA,GAAAC,wBAAA,CAAApB,CAAA,EAAAmB,iCAAA,CAAAjB,CAAA,KAAAH,OAAA,CAAAgB,MAAA,CAAAb,CAAA,GAAAc,OAAA,WAAAf,CAAA,IAAAoB,sBAAA,CAAArB,CAAA,EAAAC,CAAA,EAAAO,gCAAA,CAAAN,CAAA,EAAAD,CAAA,iBAAAD,CAAA;AAEhC,IAAMsB,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG;EACjC;EACAE,SAAS,EAAE,EAAE;EAEb;EACAC,aAAa,EAAE,IAAI;EAEnB;EACAC,UAAU,EAAE,IAAI;EAEhB;EACA;EACAC,gBAAgB,EAAE,IAAI;EACtB;EACAC,MAAM,EAAE,IAAI;EAEZ;EACAC,eAAe,EAAE,IAAI;EACrBC,eAAe,EAAE,IAAI;EACrBC,KAAK,EAAE,IAAI;EAEX;EACAC,cAAc,EAAE,IAAI;EACpBC,gBAAgB,EAAE,IAAI;EACtBC,UAAU,EAAE,IAAI;EAEhB;EACA;EACAC,MAAM,EAAE;AACV,CAAC;AAEc,SAASC,YAAYA,CAACC,KAAK,EAAEC,MAAM,EAAE;EAClD,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAK,KAAK;MAAE;QACV,OAAO,IAAAC,cAAM,
|
|
1
|
+
{"version":3,"file":"state.js","names":["_lodash","require","ownKeys","e","r","t","_Object$keys","_Object$getOwnPropertySymbols","o","_filterInstanceProperty","call","_Object$getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","Object","forEach","_defineProperty2","default","_Object$getOwnPropertyDescriptors","_Object$defineProperties","_Object$defineProperty","initialStateDefault","exports","referrals","assistanceRequestId","formResponses","draftState","selectedPrograms","person","currentProvider","currentEmployee","enums","resourceListId","formSubmissionId","serviceIds","source","StateReducer","state","action","type","assign","data","merge"],"sources":["../../src/context/state.js"],"sourcesContent":["import { assign, merge } from 'lodash';\n\nexport const initialStateDefault = {\n // Referrals being constructed to be sent\n referrals: [],\n\n // Referral originating from Assistance Request\n assistanceRequestId: null,\n\n // Form submissions responses from the Supporting Info step\n formResponses: null,\n\n // These values are set for draft referrals\n draftState: null,\n\n // These values must be set from the parent apps before navigating to the flow\n // Programs with services needed to create the referrals\n selectedPrograms: null,\n // Person attached to the referral\n person: null,\n\n // This values are being set as a prop from the parent app, e.g <AppReferrals appState={{ currentProvider: ...}} />\n currentProvider: null,\n currentEmployee: null,\n enums: null,\n\n // used as query params for Search App\n resourceListId: null,\n formSubmissionId: null,\n serviceIds: null,\n\n // \"emr\" or \"app-client\"\n // currently used for the share event\n source: null\n};\n\nexport default function StateReducer(state, action) {\n switch (action.type) {\n case 'set': {\n return assign({ ...state }, { ...action.data });\n }\n case 'merge': {\n return merge({ ...state }, { ...action.data });\n }\n case 'init': {\n return {\n ...initialStateDefault,\n ...action.data\n }\n }\n default: {\n return state;\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAuC,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAH,CAAA,OAAAI,6BAAA,QAAAC,CAAA,GAAAD,6BAAA,CAAAJ,CAAA,GAAAC,CAAA,KAAAI,CAAA,GAAAC,uBAAA,CAAAD,CAAA,EAAAE,IAAA,CAAAF,CAAA,YAAAJ,CAAA,WAAAO,gCAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAG,CAAA,YAAAH,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAgB,MAAA,CAAAb,CAAA,OAAAc,OAAA,WAAAf,CAAA,QAAAgB,gBAAA,CAAAC,OAAA,EAAAlB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAkB,iCAAA,GAAAC,wBAAA,CAAApB,CAAA,EAAAmB,iCAAA,CAAAjB,CAAA,KAAAH,OAAA,CAAAgB,MAAA,CAAAb,CAAA,GAAAc,OAAA,WAAAf,CAAA,IAAAoB,sBAAA,CAAArB,CAAA,EAAAC,CAAA,EAAAO,gCAAA,CAAAN,CAAA,EAAAD,CAAA,iBAAAD,CAAA;AAEhC,IAAMsB,mBAA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