primarycare-binder 1.1.18 → 1.1.19
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/index.cjs.js +193 -7
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -40086,7 +40086,33 @@ var query$3 = {
|
|
|
40086
40086
|
// }`
|
|
40087
40087
|
// }
|
|
40088
40088
|
avc_login: function avc_login(id) {
|
|
40089
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment._key == '").concat(id, "' && Appointment.activestatus==true\",\n \"return_fields\": \"merge(Appointment,{orgid:document(Appointment.orgid)},{resourcecode:(for pt in Practitioner filter pt._id == Appointment.resourcecode return merge(pt,{name:document(pt.name)}))},{practitionerID:(for pract in Practitioner filter pract.id in Appointment.practitionerID return merge(pract,{name:(for hm in HumanNameMaster filter hm._id in pract.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))},{practitioner_role:(for prid in PractitionerRole filter prid._id in pract.practitioner_role return merge(prid,{role:(for rol in CodeableConceptMaster filter rol._id == prid.role return merge(rol,{coding:document(rol.coding)}))}))},{practitioner_type:(for typ in CodeableConceptMaster filter typ._id == pract.practitioner_type return merge(typ,{coding:document(typ.coding)}))},{photo:document(pract.photo)},{gender:document(pract.gender)}))},{PersonID:(for
|
|
40089
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment._key == '").concat(id, "' && Appointment.activestatus==true\",\n \"return_fields\": \"merge(Appointment,{orgid:document(Appointment.orgid)},{resourcecode:(for pt in Practitioner filter pt._id == Appointment.resourcecode return merge(pt,{name:document(pt.name)}))},{practitionerID:(for pract in Practitioner filter pract.id in Appointment.practitionerID return merge(pract,{name:(for hm in HumanNameMaster filter hm._id in pract.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))},{practitioner_role:(for prid in PractitionerRole filter prid._id in pract.practitioner_role return merge(prid,{role:(for rol in CodeableConceptMaster filter rol._id == prid.role return merge(rol,{coding:document(rol.coding)}))}))},{practitioner_type:(for typ in CodeableConceptMaster filter typ._id == pract.practitioner_type return merge(typ,{coding:document(typ.coding)}))},{photo:document(pract.photo)},{gender:document(pract.gender)}))},{PersonID:(for pid in Person filter pid.Id in Appointment.PersonID return merge(pid,{name:(for hm in HumanNameMaster filter hm._id in pid.name return merge(hm,{use:document(hm.use),prefix:document(hm.prefix),suffix:document(hm.suffix)})),photo:document(pid.photo),age_type:document(pid.age_type)},{telecom:document(pid.telecom)},{gender:document(pid.gender)},{personID:(for psid in Person filter psid.Id == pid.personID return merge(psid,{name:document(psid.name)}))}))},{PatientID:(for pat in Patient filter pat.personID in Appointment.PersonID return merge(pat,{name:(for hm in HumanNameMaster filter hm._id in pat.name return merge(hm,{use:document(hm.use),prefix:document(hm.prefix),suffix:document(hm.suffix)})),photo:document(pat.photo),age_type:document(pat.age_type)},{telecom:document(pat.telecom)},{gender:document(pat.gender)},{personID:(for psid in Person filter psid.Id == pat.personID return merge(psid,{name:document(psid.name)}))}))})\"\n }");
|
|
40090
|
+
},
|
|
40091
|
+
avc_participant_joined_qu: function avc_participant_joined_qu(id) {
|
|
40092
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n }");
|
|
40093
|
+
}
|
|
40094
|
+
};
|
|
40095
|
+
|
|
40096
|
+
var generateJson = {
|
|
40097
|
+
insert_json: function insert_json(data, appInfo) {
|
|
40098
|
+
var _appInfo$dataJson, _appInfo$dataJson$Per, _appInfo$dataJson2, _appInfo$dataJson2$re;
|
|
40099
|
+
|
|
40100
|
+
debugger;
|
|
40101
|
+
return [{
|
|
40102
|
+
db_name: dbName,
|
|
40103
|
+
entity: "ConsentTrx",
|
|
40104
|
+
is_metadata: true,
|
|
40105
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
40106
|
+
doc: {
|
|
40107
|
+
id: 0,
|
|
40108
|
+
formid: data === null || data === void 0 ? void 0 : data.formId,
|
|
40109
|
+
patientid: appInfo === null || appInfo === void 0 ? void 0 : (_appInfo$dataJson = appInfo.dataJson) === null || _appInfo$dataJson === void 0 ? void 0 : (_appInfo$dataJson$Per = _appInfo$dataJson.PersonID[0]) === null || _appInfo$dataJson$Per === void 0 ? void 0 : _appInfo$dataJson$Per._id,
|
|
40110
|
+
practitionerid: appInfo === null || appInfo === void 0 ? void 0 : (_appInfo$dataJson2 = appInfo.dataJson) === null || _appInfo$dataJson2 === void 0 ? void 0 : (_appInfo$dataJson2$re = _appInfo$dataJson2.resourcecode[0]) === null || _appInfo$dataJson2$re === void 0 ? void 0 : _appInfo$dataJson2$re.practitioner_id,
|
|
40111
|
+
terms: true,
|
|
40112
|
+
sysinfo: data === null || data === void 0 ? void 0 : data.answer,
|
|
40113
|
+
appnum: appInfo === null || appInfo === void 0 ? void 0 : appInfo.app_id
|
|
40114
|
+
}
|
|
40115
|
+
}];
|
|
40090
40116
|
}
|
|
40091
40117
|
};
|
|
40092
40118
|
|
|
@@ -40117,6 +40143,41 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40117
40143
|
_data$resourcerole,
|
|
40118
40144
|
_data$orgid$name,
|
|
40119
40145
|
_data$orgid,
|
|
40146
|
+
_data$PatientID,
|
|
40147
|
+
_data$PatientID$,
|
|
40148
|
+
_data$PatientID$$name,
|
|
40149
|
+
_data$PatientID$$name2,
|
|
40150
|
+
_data$PatientID2,
|
|
40151
|
+
_data$PatientID2$,
|
|
40152
|
+
_data$PatientID2$$nam,
|
|
40153
|
+
_data$PatientID2$$nam2,
|
|
40154
|
+
_data$PatientID3,
|
|
40155
|
+
_data$PatientID3$,
|
|
40156
|
+
_data$PatientID3$$nam,
|
|
40157
|
+
_data$PatientID3$$nam2,
|
|
40158
|
+
_data$PatientID4,
|
|
40159
|
+
_data$PatientID4$,
|
|
40160
|
+
_data$PatientID4$$nam,
|
|
40161
|
+
_data$PatientID4$$nam2,
|
|
40162
|
+
_data$PatientID5,
|
|
40163
|
+
_data$PatientID5$,
|
|
40164
|
+
_data$PatientID6,
|
|
40165
|
+
_data$PatientID6$,
|
|
40166
|
+
_data$PatientID7,
|
|
40167
|
+
_data$PatientID7$,
|
|
40168
|
+
_data$PatientID7$$age,
|
|
40169
|
+
_data$PatientID$0$gen,
|
|
40170
|
+
_data$PatientID8,
|
|
40171
|
+
_data$PatientID8$,
|
|
40172
|
+
_data$PatientID8$$gen,
|
|
40173
|
+
_data$PatientID$0$ali,
|
|
40174
|
+
_data$PatientID9,
|
|
40175
|
+
_data$PatientID9$,
|
|
40176
|
+
_data$PatientID$0$tel,
|
|
40177
|
+
_data$PatientID10,
|
|
40178
|
+
_data$PatientID10$,
|
|
40179
|
+
_data$PatientID10$$te,
|
|
40180
|
+
_data$PatientID10$$te2,
|
|
40120
40181
|
_data$PersonID,
|
|
40121
40182
|
_data$PersonID$,
|
|
40122
40183
|
_data$PersonID$$name,
|
|
@@ -40175,6 +40236,7 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40175
40236
|
case 6:
|
|
40176
40237
|
resp = _context.sent;
|
|
40177
40238
|
data = (resp === null || resp === void 0 ? void 0 : (_resp$result = resp.result) === null || _resp$result === void 0 ? void 0 : _resp$result[0]) || [];
|
|
40239
|
+
debugger;
|
|
40178
40240
|
res_data = {
|
|
40179
40241
|
date: (_data$start = data === null || data === void 0 ? void 0 : data.start) !== null && _data$start !== void 0 ? _data$start : "",
|
|
40180
40242
|
app_id: (_data$appno = data === null || data === void 0 ? void 0 : data.appno) !== null && _data$appno !== void 0 ? _data$appno : "",
|
|
@@ -40189,6 +40251,13 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40189
40251
|
org_name: (_data$orgid$name = data === null || data === void 0 ? void 0 : (_data$orgid = data.orgid) === null || _data$orgid === void 0 ? void 0 : _data$orgid.name) !== null && _data$orgid$name !== void 0 ? _data$orgid$name : ""
|
|
40190
40252
|
},
|
|
40191
40253
|
patient: {
|
|
40254
|
+
name: (data === null || data === void 0 ? void 0 : (_data$PatientID = data.PatientID) === null || _data$PatientID === void 0 ? void 0 : (_data$PatientID$ = _data$PatientID[0]) === null || _data$PatientID$ === void 0 ? void 0 : (_data$PatientID$$name = _data$PatientID$.name) === null || _data$PatientID$$name === void 0 ? void 0 : (_data$PatientID$$name2 = _data$PatientID$$name[0]) === null || _data$PatientID$$name2 === void 0 ? void 0 : _data$PatientID$$name2.text) ? (data === null || data === void 0 ? void 0 : (_data$PatientID2 = data.PatientID) === null || _data$PatientID2 === void 0 ? void 0 : (_data$PatientID2$ = _data$PatientID2[0]) === null || _data$PatientID2$ === void 0 ? void 0 : (_data$PatientID2$$nam = _data$PatientID2$.name) === null || _data$PatientID2$$nam === void 0 ? void 0 : (_data$PatientID2$$nam2 = _data$PatientID2$$nam[0]) === null || _data$PatientID2$$nam2 === void 0 ? void 0 : _data$PatientID2$$nam2.text) + " " + (data === null || data === void 0 ? void 0 : (_data$PatientID3 = data.PatientID) === null || _data$PatientID3 === void 0 ? void 0 : (_data$PatientID3$ = _data$PatientID3[0]) === null || _data$PatientID3$ === void 0 ? void 0 : (_data$PatientID3$$nam = _data$PatientID3$.name) === null || _data$PatientID3$$nam === void 0 ? void 0 : (_data$PatientID3$$nam2 = _data$PatientID3$$nam[0]) === null || _data$PatientID3$$nam2 === void 0 ? void 0 : _data$PatientID3$$nam2.given) + " " + (data === null || data === void 0 ? void 0 : (_data$PatientID4 = data.PatientID) === null || _data$PatientID4 === void 0 ? void 0 : (_data$PatientID4$ = _data$PatientID4[0]) === null || _data$PatientID4$ === void 0 ? void 0 : (_data$PatientID4$$nam = _data$PatientID4$.name) === null || _data$PatientID4$$nam === void 0 ? void 0 : (_data$PatientID4$$nam2 = _data$PatientID4$$nam[0]) === null || _data$PatientID4$$nam2 === void 0 ? void 0 : _data$PatientID4$$nam2.family) : "",
|
|
40255
|
+
age: (data === null || data === void 0 ? void 0 : (_data$PatientID5 = data.PatientID) === null || _data$PatientID5 === void 0 ? void 0 : (_data$PatientID5$ = _data$PatientID5[0]) === null || _data$PatientID5$ === void 0 ? void 0 : _data$PatientID5$.age) ? (data === null || data === void 0 ? void 0 : (_data$PatientID6 = data.PatientID) === null || _data$PatientID6 === void 0 ? void 0 : (_data$PatientID6$ = _data$PatientID6[0]) === null || _data$PatientID6$ === void 0 ? void 0 : _data$PatientID6$.age) + " " + (data === null || data === void 0 ? void 0 : (_data$PatientID7 = data.PatientID) === null || _data$PatientID7 === void 0 ? void 0 : (_data$PatientID7$ = _data$PatientID7[0]) === null || _data$PatientID7$ === void 0 ? void 0 : (_data$PatientID7$$age = _data$PatientID7$.age_type) === null || _data$PatientID7$$age === void 0 ? void 0 : _data$PatientID7$$age.code) : "",
|
|
40256
|
+
gander: (_data$PatientID$0$gen = data === null || data === void 0 ? void 0 : (_data$PatientID8 = data.PatientID) === null || _data$PatientID8 === void 0 ? void 0 : (_data$PatientID8$ = _data$PatientID8[0]) === null || _data$PatientID8$ === void 0 ? void 0 : (_data$PatientID8$$gen = _data$PatientID8$.gender) === null || _data$PatientID8$$gen === void 0 ? void 0 : _data$PatientID8$$gen.display) !== null && _data$PatientID$0$gen !== void 0 ? _data$PatientID$0$gen : "",
|
|
40257
|
+
id: (_data$PatientID$0$ali = data === null || data === void 0 ? void 0 : (_data$PatientID9 = data.PatientID) === null || _data$PatientID9 === void 0 ? void 0 : (_data$PatientID9$ = _data$PatientID9[0]) === null || _data$PatientID9$ === void 0 ? void 0 : _data$PatientID9$.alias) !== null && _data$PatientID$0$ali !== void 0 ? _data$PatientID$0$ali : "",
|
|
40258
|
+
mobile: (_data$PatientID$0$tel = data === null || data === void 0 ? void 0 : (_data$PatientID10 = data.PatientID) === null || _data$PatientID10 === void 0 ? void 0 : (_data$PatientID10$ = _data$PatientID10[0]) === null || _data$PatientID10$ === void 0 ? void 0 : (_data$PatientID10$$te = _data$PatientID10$.telecom) === null || _data$PatientID10$$te === void 0 ? void 0 : (_data$PatientID10$$te2 = _data$PatientID10$$te[0]) === null || _data$PatientID10$$te2 === void 0 ? void 0 : _data$PatientID10$$te2.value) !== null && _data$PatientID$0$tel !== void 0 ? _data$PatientID$0$tel : ""
|
|
40259
|
+
},
|
|
40260
|
+
personID: {
|
|
40192
40261
|
name: (data === null || data === void 0 ? void 0 : (_data$PersonID = data.PersonID) === null || _data$PersonID === void 0 ? void 0 : (_data$PersonID$ = _data$PersonID[0]) === null || _data$PersonID$ === void 0 ? void 0 : (_data$PersonID$$name = _data$PersonID$.name) === null || _data$PersonID$$name === void 0 ? void 0 : (_data$PersonID$$name$ = _data$PersonID$$name[0]) === null || _data$PersonID$$name$ === void 0 ? void 0 : _data$PersonID$$name$.text) ? (data === null || data === void 0 ? void 0 : (_data$PersonID2 = data.PersonID) === null || _data$PersonID2 === void 0 ? void 0 : (_data$PersonID2$ = _data$PersonID2[0]) === null || _data$PersonID2$ === void 0 ? void 0 : (_data$PersonID2$$name = _data$PersonID2$.name) === null || _data$PersonID2$$name === void 0 ? void 0 : (_data$PersonID2$$name2 = _data$PersonID2$$name[0]) === null || _data$PersonID2$$name2 === void 0 ? void 0 : _data$PersonID2$$name2.text) + " " + (data === null || data === void 0 ? void 0 : (_data$PersonID3 = data.PersonID) === null || _data$PersonID3 === void 0 ? void 0 : (_data$PersonID3$ = _data$PersonID3[0]) === null || _data$PersonID3$ === void 0 ? void 0 : (_data$PersonID3$$name = _data$PersonID3$.name) === null || _data$PersonID3$$name === void 0 ? void 0 : (_data$PersonID3$$name2 = _data$PersonID3$$name[0]) === null || _data$PersonID3$$name2 === void 0 ? void 0 : _data$PersonID3$$name2.given) + " " + (data === null || data === void 0 ? void 0 : (_data$PersonID4 = data.PersonID) === null || _data$PersonID4 === void 0 ? void 0 : (_data$PersonID4$ = _data$PersonID4[0]) === null || _data$PersonID4$ === void 0 ? void 0 : (_data$PersonID4$$name = _data$PersonID4$.name) === null || _data$PersonID4$$name === void 0 ? void 0 : (_data$PersonID4$$name2 = _data$PersonID4$$name[0]) === null || _data$PersonID4$$name2 === void 0 ? void 0 : _data$PersonID4$$name2.family) : "-",
|
|
40193
40262
|
age: (data === null || data === void 0 ? void 0 : (_data$PersonID5 = data.PersonID) === null || _data$PersonID5 === void 0 ? void 0 : (_data$PersonID5$ = _data$PersonID5[0]) === null || _data$PersonID5$ === void 0 ? void 0 : _data$PersonID5$.age) ? (data === null || data === void 0 ? void 0 : (_data$PersonID6 = data.PersonID) === null || _data$PersonID6 === void 0 ? void 0 : (_data$PersonID6$ = _data$PersonID6[0]) === null || _data$PersonID6$ === void 0 ? void 0 : _data$PersonID6$.age) + " " + (data === null || data === void 0 ? void 0 : (_data$PersonID7 = data.PersonID) === null || _data$PersonID7 === void 0 ? void 0 : (_data$PersonID7$ = _data$PersonID7[0]) === null || _data$PersonID7$ === void 0 ? void 0 : (_data$PersonID7$$age_ = _data$PersonID7$.age_type) === null || _data$PersonID7$$age_ === void 0 ? void 0 : _data$PersonID7$$age_.code) : "",
|
|
40194
40263
|
gander: (_data$PersonID$0$gend = data === null || data === void 0 ? void 0 : (_data$PersonID8 = data.PersonID) === null || _data$PersonID8 === void 0 ? void 0 : (_data$PersonID8$ = _data$PersonID8[0]) === null || _data$PersonID8$ === void 0 ? void 0 : (_data$PersonID8$$gend = _data$PersonID8$.gender) === null || _data$PersonID8$$gend === void 0 ? void 0 : _data$PersonID8$$gend.display) !== null && _data$PersonID$0$gend !== void 0 ? _data$PersonID$0$gend : "",
|
|
@@ -40201,24 +40270,119 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40201
40270
|
data: res_data
|
|
40202
40271
|
}));
|
|
40203
40272
|
|
|
40204
|
-
case
|
|
40205
|
-
_context.prev =
|
|
40273
|
+
case 13:
|
|
40274
|
+
_context.prev = 13;
|
|
40206
40275
|
_context.t0 = _context["catch"](2);
|
|
40207
40276
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40208
40277
|
message: _context.t0.message
|
|
40209
40278
|
})));
|
|
40210
40279
|
|
|
40211
|
-
case
|
|
40280
|
+
case 16:
|
|
40212
40281
|
case "end":
|
|
40213
40282
|
return _context.stop();
|
|
40214
40283
|
}
|
|
40215
40284
|
}
|
|
40216
|
-
}, _callee, null, [[2,
|
|
40285
|
+
}, _callee, null, [[2, 13]]);
|
|
40286
|
+
})));
|
|
40287
|
+
var AVC_FORM_INSERT = createAsyncThunk("avcMeetApiSlice/avc_form", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
40288
|
+
var payload,
|
|
40289
|
+
_ref4,
|
|
40290
|
+
rejectWithValue,
|
|
40291
|
+
data,
|
|
40292
|
+
appInfo,
|
|
40293
|
+
queriesjson,
|
|
40294
|
+
dataResult,
|
|
40295
|
+
result,
|
|
40296
|
+
_args2 = arguments;
|
|
40297
|
+
|
|
40298
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
40299
|
+
while (1) {
|
|
40300
|
+
switch (_context2.prev = _context2.next) {
|
|
40301
|
+
case 0:
|
|
40302
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
40303
|
+
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
40304
|
+
_context2.prev = 2;
|
|
40305
|
+
data = payload.data, appInfo = payload.appInfo;
|
|
40306
|
+
queriesjson = generateJson.insert_json(data, appInfo);
|
|
40307
|
+
_context2.next = 7;
|
|
40308
|
+
return fetchData$3({
|
|
40309
|
+
body: JSON.stringify(queriesjson)
|
|
40310
|
+
}, __uspsertUrl__);
|
|
40311
|
+
|
|
40312
|
+
case 7:
|
|
40313
|
+
dataResult = _context2.sent;
|
|
40314
|
+
result = [];
|
|
40315
|
+
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40316
|
+
data: result
|
|
40317
|
+
}));
|
|
40318
|
+
|
|
40319
|
+
case 12:
|
|
40320
|
+
_context2.prev = 12;
|
|
40321
|
+
_context2.t0 = _context2["catch"](2);
|
|
40322
|
+
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40323
|
+
message: _context2.t0.message
|
|
40324
|
+
})));
|
|
40325
|
+
|
|
40326
|
+
case 15:
|
|
40327
|
+
case "end":
|
|
40328
|
+
return _context2.stop();
|
|
40329
|
+
}
|
|
40330
|
+
}
|
|
40331
|
+
}, _callee2, null, [[2, 12]]);
|
|
40332
|
+
})));
|
|
40333
|
+
var AVC_PARTICIPANT_JOINED = createAsyncThunk("avcMeetApiSlice/avc_participant_joined", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
40334
|
+
var payload,
|
|
40335
|
+
_ref6,
|
|
40336
|
+
rejectWithValue,
|
|
40337
|
+
_resp$result2,
|
|
40338
|
+
_payload$id2,
|
|
40339
|
+
id,
|
|
40340
|
+
resp,
|
|
40341
|
+
data,
|
|
40342
|
+
res_data,
|
|
40343
|
+
_args3 = arguments;
|
|
40344
|
+
|
|
40345
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
40346
|
+
while (1) {
|
|
40347
|
+
switch (_context3.prev = _context3.next) {
|
|
40348
|
+
case 0:
|
|
40349
|
+
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
40350
|
+
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
40351
|
+
_context3.prev = 2;
|
|
40352
|
+
_payload$id2 = payload.id, id = _payload$id2 === void 0 ? "" : _payload$id2;
|
|
40353
|
+
_context3.next = 6;
|
|
40354
|
+
return fetchData$3({
|
|
40355
|
+
body: query$3.avc_participant_joined_qu(id)
|
|
40356
|
+
}, __readDocumentUrl__);
|
|
40357
|
+
|
|
40358
|
+
case 6:
|
|
40359
|
+
resp = _context3.sent;
|
|
40360
|
+
data = (resp === null || resp === void 0 ? void 0 : (_resp$result2 = resp.result) === null || _resp$result2 === void 0 ? void 0 : _resp$result2[0]) || [];
|
|
40361
|
+
res_data = {};
|
|
40362
|
+
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40363
|
+
data: res_data
|
|
40364
|
+
}));
|
|
40365
|
+
|
|
40366
|
+
case 12:
|
|
40367
|
+
_context3.prev = 12;
|
|
40368
|
+
_context3.t0 = _context3["catch"](2);
|
|
40369
|
+
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40370
|
+
message: _context3.t0.message
|
|
40371
|
+
})));
|
|
40372
|
+
|
|
40373
|
+
case 15:
|
|
40374
|
+
case "end":
|
|
40375
|
+
return _context3.stop();
|
|
40376
|
+
}
|
|
40377
|
+
}
|
|
40378
|
+
}, _callee3, null, [[2, 12]]);
|
|
40217
40379
|
})));
|
|
40218
40380
|
var avcMeetApiSlice = createSlice({
|
|
40219
40381
|
name: "avcMeetApiSlice",
|
|
40220
40382
|
initialState: {
|
|
40221
|
-
avc_info: _objectSpread2({}, defaultState.Info)
|
|
40383
|
+
avc_info: _objectSpread2({}, defaultState.Info),
|
|
40384
|
+
avc_form: _objectSpread2({}, defaultState.Info),
|
|
40385
|
+
avc_participant_joined: _objectSpread2({}, defaultState.Info)
|
|
40222
40386
|
},
|
|
40223
40387
|
extraReducers: (_extraReducers$3 = {}, _defineProperty(_extraReducers$3, AVC_LOGIN.fulfilled, function (state, action) {
|
|
40224
40388
|
var _action$payload;
|
|
@@ -40230,10 +40394,32 @@ var avcMeetApiSlice = createSlice({
|
|
|
40230
40394
|
var _action$payload2;
|
|
40231
40395
|
|
|
40232
40396
|
state.avc_info = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : [];
|
|
40397
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.fulfilled, function (state, action) {
|
|
40398
|
+
var _action$payload3;
|
|
40399
|
+
|
|
40400
|
+
state.avc_form = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : [];
|
|
40401
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.pending, function (state, action) {
|
|
40402
|
+
state.avc_form.loading = true;
|
|
40403
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.rejected, function (state, action) {
|
|
40404
|
+
var _action$payload4;
|
|
40405
|
+
|
|
40406
|
+
state.avc_form = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : [];
|
|
40407
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.fulfilled, function (state, action) {
|
|
40408
|
+
var _action$payload5;
|
|
40409
|
+
|
|
40410
|
+
state.avc_participant_joined = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : [];
|
|
40411
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.pending, function (state, action) {
|
|
40412
|
+
state.avc_participant_joined.loading = true;
|
|
40413
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.rejected, function (state, action) {
|
|
40414
|
+
var _action$payload6;
|
|
40415
|
+
|
|
40416
|
+
state.avc_participant_joined = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : [];
|
|
40233
40417
|
}), _extraReducers$3)
|
|
40234
40418
|
});
|
|
40235
40419
|
var avcMeetApiActions = {
|
|
40236
|
-
AVC_LOGIN: AVC_LOGIN
|
|
40420
|
+
AVC_LOGIN: AVC_LOGIN,
|
|
40421
|
+
AVC_FORM_INSERT: AVC_FORM_INSERT,
|
|
40422
|
+
AVC_PARTICIPANT_JOINED: AVC_PARTICIPANT_JOINED
|
|
40237
40423
|
};
|
|
40238
40424
|
var avcMeetApiSlice$1 = avcMeetApiSlice.reducer;
|
|
40239
40425
|
|