@persei/perseed-api 4.34.5 → 4.34.7

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,5 +1,276 @@
1
- var c = /* @__PURE__ */ ((e) => (e.OUTCOMES = "outcomes", e))(c || {}), p = /* @__PURE__ */ ((e) => (e.VALUECARD = "ValueCard", e.SECTIONCARD = "SectionCard", e.PATIENTLIST = "PatientList", e))(p || {}), i = /* @__PURE__ */ ((e) => (e.QUESTIONNAIRE_CREATE = "questionnaire.create", e.CRF_CREATE = "crf.create", e.CRF_UPDATE = "crf.update", e.CRF_DELETE = "crf.delete", e.EXTERNAL_API_CALL = "external_api_call", e))(i || {}), d = /* @__PURE__ */ ((e) => (e.JSON_LOGIC = "jsonLogic", e.CUSTOM = "custom", e))(d || {}), m = /* @__PURE__ */ ((e) => (e.CREATION = "creation", e.UPDATE = "update", e))(m || {}), s = /* @__PURE__ */ ((e) => (e.TEXT = "text", e.DATE = "date", e.TIME = "time", e.BOOLEAN = "boolean", e.NUMBER = "number", e.SELECT = "select", e.MULTISELECT = "multiselect", e))(s || {});
2
- const u = {}, E = {}, h = {}, T = {}, _ = {
1
+ const d = "YYYY-MM-DD", b = "HH:mm:ss", F = "HH:mm", P = "YYYY-MM-DD HH:mm", y = d, w = "YYYY-MM-DD HH:mm:ss", n = {
2
+ DECIMAL: 1,
3
+ INTEGER: 2,
4
+ MULTIPLE_SELECTION: 3,
5
+ SELECTION: 4,
6
+ DYNAMIC_SELECTION: 5,
7
+ DATE: 6,
8
+ HEADER: 7,
9
+ SUBHEADER: 8,
10
+ WARNING: 9,
11
+ SUBFORM: 10,
12
+ MEMO: 11,
13
+ TEXT: 12,
14
+ TEXT_AREA: 13,
15
+ YES_NO: 14,
16
+ TIME: 15,
17
+ LINK_HREF: 16,
18
+ COUNTRY: 17,
19
+ HOSPITAL: 18,
20
+ USERS: 19,
21
+ DYNAMIC_FILE: 20,
22
+ DYNAMIC_LINK_HREF: 21,
23
+ SCAN_CODE: 22,
24
+ PARAGRAPH: 23,
25
+ FILE: 24
26
+ }, t = {
27
+ DECIMAL_NAME: "decimal",
28
+ INTEGER_NAME: "integer",
29
+ MULTIPLE_SELECTION_NAME: "multiple_selection",
30
+ SELECTION_NAME: "selection",
31
+ DYNAMIC_SELECTION_NAME: "dynamic_selection",
32
+ DATE_NAME: "date",
33
+ HEADER_NAME: "header",
34
+ SUBHEADER_NAME: "subheader",
35
+ WARNING_NAME: "warning",
36
+ SUBFORM_NAME: "subform",
37
+ MEMO_NAME: "memo",
38
+ TEXT_NAME: "text",
39
+ TEXT_AREA_NAME: "text_area",
40
+ YES_NO_NAME: "yes_no",
41
+ TIME_NAME: "time",
42
+ LINK_HREF_NAME: "link_href",
43
+ COUNTRY_NAME: "country",
44
+ HOSPITAL_NAME: "hospital",
45
+ USERS_NAME: "users",
46
+ DYNAMIC_FILE_NAME: "dynamic_file",
47
+ DYNAMIC_LINK_HREF_NAME: "dynamic_link_href",
48
+ SCAN_CODE_NAME: "scan_code",
49
+ PARAGRAPH_NAME: "paragraph",
50
+ FILE_NAME: "file"
51
+ };
52
+ var p = /* @__PURE__ */ ((e) => (e[e.STANDARD = 1] = "STANDARD", e[e.FOLLOW_UP = 2] = "FOLLOW_UP", e[e.ADVERSE_EVENT = 3] = "ADVERSE_EVENT", e[e.QUESTIONNAIRE = 5] = "QUESTIONNAIRE", e[e.STUDY = 6] = "STUDY", e))(p || {});
53
+ const g = () => {
54
+ let e = {};
55
+ return Object.keys(n).forEach((a) => {
56
+ e = {
57
+ ...e,
58
+ [n[a]]: t[`${a}_NAME`]
59
+ };
60
+ }), e;
61
+ }, Y = ["number", t.DECIMAL_NAME, t.INTEGER_NAME], H = ["date"], B = ["object", t.SCAN_CODE_NAME], m = {
62
+ CREATION_TIME: "creation_time",
63
+ CREATION_USER: "creation_user",
64
+ CRF_NAME: "crf_name",
65
+ CRF_STATUS: "crf_status",
66
+ HOSPITAL: "hospital",
67
+ HOSPITAL_STATUS: "hospital_status",
68
+ ID: "id",
69
+ LOCK_STATE: "lock_state",
70
+ LOCK_USER: "lock_user",
71
+ LOCK_DATE: "lock_date",
72
+ MODIFICATION_TIME: "mod_time",
73
+ MODIFICATION_USER: "mod_user",
74
+ PATIENT_ID: "patient_id",
75
+ PATIENT_NUMBER: "patient_number",
76
+ PATIENT_NUMBER_STATUS: "patient_number_status",
77
+ RECORD_ID: "record_id",
78
+ SIGNATURE_DATE: "signature_date",
79
+ SIGNATURE_STATE: "signature_state",
80
+ SIGNATURE_USER: "signature_user",
81
+ STATUS: "status",
82
+ USER_IP: "user_ip",
83
+ DATE_OF_QUESTIONNAIRE: "date_of_questionnaire",
84
+ TIME_OF_QUESTIONNAIRE: "time_of_questionnaire",
85
+ VERSION: "version",
86
+ REFERENCE: "reference",
87
+ SUBFORM_ID: "subform_id"
88
+ }, x = Object.values(m), V = {
89
+ added: "A",
90
+ edited: "E",
91
+ deleted: "D"
92
+ }, X = {
93
+ PATIENT: "patient",
94
+ SEPARATOR: "_"
95
+ }, k = {
96
+ AUDIT: "audit"
97
+ }, q = "~", G = "_status", Q = "_status", W = {
98
+ filled: "filled",
99
+ unk: "UNK",
100
+ na: "NA",
101
+ nd: "ND"
102
+ }, T = /^[0-9a-f]{33}_status$/, K = function(e) {
103
+ return !T.test(e);
104
+ }, j = ["UNK", "NA", "ND"], z = "^[0-1][0-9]:[0-5][0-9]$|^[0-2][0-3]:[0-5][0-9]$", J = {
105
+ DEPENDENT_SOURCE: "dependent_source",
106
+ ENCRYPTED: "encrypted",
107
+ ENCRYPTED_LEVEL: "encrypted_level",
108
+ EXTERNAL_SHARING: "external_sharing",
109
+ SHOW_EMBEDDED_PDF: "show_embedded_pdf",
110
+ HIDDEN: "hidden",
111
+ IS_CRF_MAIN_FIELD: "is_crf_main_field",
112
+ MIN_VALUE: "min-value",
113
+ MIN_VALUE_VALIDATION: "validation_of_less_than",
114
+ MAX_VALUE: "max-value",
115
+ MAX_VALUE_VALIDATION: "validation_of_higher_than",
116
+ NEXT_FORM: "next_form",
117
+ MULTIPLE: "is_multiple",
118
+ ORDER: "order",
119
+ READ_ONLY: "readonly",
120
+ REQUIRED: "is_required",
121
+ REQUIRED_TYPE: "type_of_required",
122
+ SELECTION_VALUE: "value_of_selection",
123
+ SELECTION_VALUE_SLIDER: "value_of_selection_slider",
124
+ SOURCE_FIELD: "source_field",
125
+ TYPE: "type",
126
+ TYPE_QUESTIONARY: "questionary",
127
+ QUESTION_DAYS: "question_days",
128
+ QUESTION_TIME: "question_time",
129
+ QUESTION_HOURS: "question_hours",
130
+ QUESTION_MINUTES: "question_minutes",
131
+ REMINDER_DAYS: "reminder_days",
132
+ REMINDER_HOURS: "reminder_hours",
133
+ REMINDER_MINUTES: "reminder_minutes",
134
+ REMINDER_SUBJECT: "reminder_subject",
135
+ REMINDER_MESSAGE: "reminder_message",
136
+ MAX_NUMBER_REMINDER: "max_number_reminder",
137
+ NUMBER_QUESTION_PAGE: "number_question_page",
138
+ UNTIL: "until",
139
+ NUMBER_OF_QUESTIONAIRES: "number_of_questionaires",
140
+ QUESTION_COMMENTS: "question_comments",
141
+ TYPE_OF_QUESTIONNAIRE: "type_of_questionnaire",
142
+ HISTORY_OF_QUESTIONNAIRE: "history_of_questionnaire",
143
+ HISTORY: "history",
144
+ CRF_HISTORY: "crf_history",
145
+ PROCEDURE_CONDITION: "procedure_condition",
146
+ HREF_VALUE: "href_value",
147
+ HREF_TYPE: "href_type",
148
+ SIZE: "size",
149
+ FILE_TYPE: "file_type",
150
+ INPUT_TYPE: "input_type",
151
+ PARAGRAPH_CONTENT: "paragraph_content",
152
+ FILE_VALUE: "file_value",
153
+ WINDOW_REFERENCE: "window_reference",
154
+ START_DATE_DAYS: "start_date_days",
155
+ HAS_DEFAULT_VALUE: "has_default_value",
156
+ SPECIFIC_VALUE: "specific_value",
157
+ DEFAULT_VALUE: "default_value",
158
+ UNIQUE: "unique",
159
+ HELP: "help",
160
+ SELECTOR_TYPE: "selector_type",
161
+ SLIDER_SELECTOR: "slider_selector",
162
+ SLIDER_SCALE_ORIENTATION: "slider_scale_orientation",
163
+ UNTIL_DATE: "until",
164
+ PAGE_BREAK: "page_break",
165
+ WINDOW_BEFORE: "window_before",
166
+ WINDOW_AFTER: "window_after",
167
+ WINDOW_PERIOD: "window_period"
168
+ }, Z = {
169
+ STRICT: "strict",
170
+ FLEXIBLE: "flexible"
171
+ }, $ = {
172
+ ACTIVE: "1"
173
+ }, ee = {
174
+ SLIDER: "slider",
175
+ DROPDOWN: "dropdown",
176
+ RADIO_BUTTON: "radio_button",
177
+ CHECK_BOX: "check_box"
178
+ }, o = {
179
+ STARS: "0",
180
+ SCALE_RATING: "1",
181
+ IMAGES: "2"
182
+ }, se = {
183
+ [o.STARS]: "stars",
184
+ [o.SCALE_RATING]: "scale",
185
+ [o.IMAGES]: "images"
186
+ }, i = {
187
+ HORIZONTAL: "0",
188
+ VERTICAL: "1"
189
+ }, ae = {
190
+ [i.HORIZONTAL]: "horizontal",
191
+ [i.VERTICAL]: "vertical"
192
+ }, te = {
193
+ NEW_WINDOW: "newwindow",
194
+ EMBEDDED_HTML: "embeddedhtml"
195
+ }, oe = {
196
+ 1: ["image/jpg", "image/jpeg", "image/bmp", "image/gif", "image/png"],
197
+ // Images
198
+ 2: [
199
+ "application/pdf",
200
+ "application/x-pdf",
201
+ "text/csv",
202
+ "application/vnd.ms-excel",
203
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
204
+ "application/vnd.oasis.opendocument.text",
205
+ "application/msword",
206
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
207
+ ],
208
+ // Documents
209
+ 3: ["application/pdf", "application/x-pdf"],
210
+ // PDF
211
+ 4: [
212
+ "application/dicom",
213
+ "application/gzip",
214
+ "application/x-gzip",
215
+ "application/tar",
216
+ "application/tar+gzip",
217
+ "application/zip",
218
+ "application/x-rar-compressed",
219
+ "application/x-zip-compressed",
220
+ "application/x-7z-compressed",
221
+ "application/octet-stream"
222
+ ],
223
+ // DICOM
224
+ 5: [
225
+ "video/x-msvideo",
226
+ "video/x-mkv",
227
+ "video/x-matroska",
228
+ "video/mpeg",
229
+ "video/mpeg4",
230
+ "video/mpg",
231
+ "video/ogg",
232
+ "video/webm",
233
+ "video/3gpp",
234
+ "video/3gpp2",
235
+ "video/mp4",
236
+ "video/divx",
237
+ "video/avi",
238
+ "video/quicktime",
239
+ "video/x-ms-wmv",
240
+ "video/x-flv"
241
+ ]
242
+ // Video
243
+ }, re = [
244
+ {
245
+ id: "1",
246
+ name: "patient_number",
247
+ type: "Zend\\Form\\Element\\Text",
248
+ label: "Patient Id",
249
+ required: "1",
250
+ crf_name: "patient",
251
+ status: "1"
252
+ },
253
+ {
254
+ type: "4",
255
+ name: "hospital",
256
+ label: "Hospital",
257
+ required: "0",
258
+ id: "2",
259
+ crf_name: "patient",
260
+ status: "1"
261
+ },
262
+ {
263
+ id: "1000000001",
264
+ name: "procedure",
265
+ type: "customzation",
266
+ label: "Procedures",
267
+ required: "1",
268
+ crf_name: "",
269
+ status: "1"
270
+ }
271
+ ];
272
+ var A = /* @__PURE__ */ ((e) => (e.OUTCOMES = "outcomes", e))(A || {}), I = /* @__PURE__ */ ((e) => (e.VALUECARD = "ValueCard", e.SECTIONCARD = "SectionCard", e.PATIENTLIST = "PatientList", e))(I || {}), N = /* @__PURE__ */ ((e) => (e.QUESTIONNAIRE_CREATE = "questionnaire.create", e.CRF_CREATE = "crf.create", e.CRF_UPDATE = "crf.update", e.CRF_DELETE = "crf.delete", e.EXTERNAL_API_CALL = "external_api_call", e))(N || {}), u = /* @__PURE__ */ ((e) => (e.JSON_LOGIC = "jsonLogic", e.CUSTOM = "custom", e))(u || {}), R = /* @__PURE__ */ ((e) => (e.CREATION = "creation", e.UPDATE = "update", e))(R || {}), s = /* @__PURE__ */ ((e) => (e.TEXT = "text", e.DATE = "date", e.TIME = "time", e.BOOLEAN = "boolean", e.NUMBER = "number", e.SELECT = "select", e.MULTISELECT = "multiselect", e))(s || {});
273
+ const S = {}, O = {}, L = {}, D = {}, M = {
3
274
  hostName: "mysql",
4
275
  ecosystem: {
5
276
  demo: {
@@ -106,23 +377,23 @@ const u = {}, E = {}, h = {}, T = {}, _ = {
106
377
  deviceId: "ecoadmin@api"
107
378
  }
108
379
  }
109
- }, b = {}, o = {};
110
- let n;
111
- o.existsSync("./credentials/local.json") && (n = JSON.parse(o.readFileSync("./credentials/local.json").toString()));
112
- const v = {
113
- local: n || u,
114
- local_tmp: E,
115
- test: _,
116
- testing: b,
117
- preproduction: h,
118
- production: T
380
+ }, U = {}, _ = {};
381
+ let c;
382
+ _.existsSync("./credentials/local.json") && (c = JSON.parse(_.readFileSync("./credentials/local.json").toString()));
383
+ const C = {
384
+ local: c || S,
385
+ local_tmp: O,
386
+ test: M,
387
+ testing: U,
388
+ preproduction: L,
389
+ production: D
119
390
  };
120
- function L(e) {
391
+ function v(e) {
121
392
  return e.replace(/\/$/, "");
122
393
  }
123
- const y = process.env.NODE_ENV || "local";
394
+ const h = process.env.NODE_ENV || "local";
124
395
  process.env.PROXY_FILES;
125
- L(process.env.API_BASE_URL || "https://api.perseed.eu");
396
+ v(process.env.API_BASE_URL || "https://api.perseed.eu");
126
397
  process.env.JWT_SECRET;
127
398
  process.env.REFRESH_JWT_SECRET;
128
399
  process.env.JWT_ISSUERS;
@@ -134,9 +405,9 @@ process.env.DEFAULT_TZ;
134
405
  process.env.SENTRY_DSN;
135
406
  parseInt(process.env.JOB_RETRIES ?? "5");
136
407
  process.env.BODY_SIZE_LIMIT;
137
- const O = v[y], a = O.externalApis;
138
- function w(e) {
139
- const r = {
408
+ const f = C[h], r = f.externalApis;
409
+ function Ee(e) {
410
+ const a = {
140
411
  models: {
141
412
  user: {
142
413
  label: e("introspection-schema.models.user.label", "User"),
@@ -267,18 +538,55 @@ function w(e) {
267
538
  }
268
539
  }
269
540
  };
270
- return a && Object.keys(a).length && (r.externalApis = Object.entries(a).map(([l, t]) => ({
541
+ return r && Object.keys(r).length && (a.externalApis = Object.entries(r).map(([l, E]) => ({
271
542
  value: l,
272
- label: t.label,
273
- methods: t.method
274
- }))), r;
543
+ label: E.label,
544
+ methods: E.method
545
+ }))), a;
275
546
  }
276
547
  export {
277
- i as ApiAction,
278
- d as ConditionsFormat,
279
- p as DashboardWidgetType,
280
- c as DataLoaderType,
548
+ V as AUDIT_FLAGS,
549
+ N as ApiAction,
550
+ m as CORE,
551
+ u as ConditionsFormat,
552
+ P as DATETIME_SHORT_FORMAT,
553
+ d as DATE_FORMAT,
554
+ H as DATE_TYPE,
555
+ re as DEFAULT_CONFIGURATION_PATIENT_LIST,
556
+ oe as DYNAMIC_FILE_VALID_FORMATS,
557
+ I as DashboardWidgetType,
558
+ A as DataLoaderType,
559
+ x as EXCLUDE_FIELDS,
560
+ n as FIELDS,
561
+ t as FIELD_NAMES,
562
+ g as FIELD_NAMES_MAP,
563
+ W as FIELD_STATUS,
564
+ G as FIELD_SUFFIX,
565
+ X as FORM_NAMES,
566
+ k as FORM_SUFFIX,
567
+ p as FORM_TYPES,
568
+ te as HREF_TYPE,
281
569
  s as IntrospectionSchemaType,
282
- m as TriggerAction,
283
- w as getIntrospectionSchema
570
+ J as META_NAMES,
571
+ Z as META_RESTRICTION,
572
+ $ as META_STATUS,
573
+ q as MULTIPLE_SELECTION_SEPARATOR,
574
+ w as MYSQL_DATETIME_FORMAT,
575
+ y as MYSQL_DATE_FORMAT,
576
+ j as NO_FILL_STATUS,
577
+ Y as NUMBER_TYPE,
578
+ B as OBJECT_TYPE,
579
+ ee as SELECTOR_TYPE,
580
+ F as SHORT_TIME_FORMAT,
581
+ ae as SLIDER_SCALE_ORIENTATION_TYPE,
582
+ i as SLIDER_SCALE_TYPE,
583
+ se as SLIDER_SELECTOR_TYPE,
584
+ o as SLIDER_TYPE,
585
+ T as STATUS_FIELD_REGEXP,
586
+ Q as STATUS_SUFFIX,
587
+ b as TIME_FORMAT,
588
+ z as TIME_SCHEMA,
589
+ R as TriggerAction,
590
+ Ee as getIntrospectionSchema,
591
+ K as isNotStatusField
284
592
  };
@@ -1 +1 @@
1
- (function(a,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(a=typeof globalThis<"u"?globalThis:a||self,r(a["perseed-api"]={}))})(this,function(a){"use strict";var r=(e=>(e.OUTCOMES="outcomes",e))(r||{}),o=(e=>(e.VALUECARD="ValueCard",e.SECTIONCARD="SectionCard",e.PATIENTLIST="PatientList",e))(o||{}),n=(e=>(e.QUESTIONNAIRE_CREATE="questionnaire.create",e.CRF_CREATE="crf.create",e.CRF_UPDATE="crf.update",e.CRF_DELETE="crf.delete",e.EXTERNAL_API_CALL="external_api_call",e))(n||{}),i=(e=>(e.JSON_LOGIC="jsonLogic",e.CUSTOM="custom",e))(i||{}),l=(e=>(e.CREATION="creation",e.UPDATE="update",e))(l||{}),s=(e=>(e.TEXT="text",e.DATE="date",e.TIME="time",e.BOOLEAN="boolean",e.NUMBER="number",e.SELECT="select",e.MULTISELECT="multiselect",e))(s||{});const u={},E={},h={},T={},b={hostName:"mysql",ecosystem:{demo:{userLogin:{username:"admin",password:"Sebas3210",deviceId:"abc123",api:!0}},reseaarch:{userLogin:{username:"testapi2",password:"123456",deviceId:"abc123",api:!0}},caaring:{userLogin:{username:"root",password:"pass4mike",deviceId:"abc123",api:!0}},ecoapi:{userLogin:{username:"root",password:"123456",deviceId:"abc123",api:!0}},clinicaal:{},clitinerary:{}},global:{dbCredentials:{username:"root",password:"root",database:"perseed"}},rabbitOptions:{protocol:"amqp",hostname:"localhost",port:5672,username:"perseedweb00-dev",password:"Z8rLHAkw",locale:"en_US",frameMax:0,heartbeat:0,vhost:"/"},AWS:{accessKeyId:"AKIA4Z2DUBRURKXKII5S",secretAccessKey:"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",apiVersion:"latest",tmpPath:"tmp/",bucket:{name:"testing.perseed-files-eu",region:"eu-central-1"},cloudFront:{keypairId:"K1BWQQVLE4YU4F",privateKeyPath:"/var/www/perseed_api/config/private_key.pem",assetsUrl:"https://test.assets.perseed.eu"}},SMS:{apiKey:"4|XildLvmjqzABeekAgj9EaLiwpxdGMWgassPaxewu",defaultSender:"Caaring"},perseedAPI:{caaring:{username:"ecoadmin",password:"1CarefulWithPersonalInfo2@",deviceId:"ecoadmin@api"},clinicaal:{username:"perseedapiCLI",password:"Ukz4s7LL&Ne3KA#",deviceId:"ecoadmin@api"},onqos:{username:"perseedapiCLI",password:"Ukz4s7LL&Ne3KA#",deviceId:"ecoadmin@api"},demo:{username:"admin",password:"Sebas3210",deviceId:"admin@api"},reseaarch:{username:"ecoadmin",password:"1CarefulWithPersonalInfo2@",deviceId:"ecoadmin@api"},testrcr:{username:"ecoadmin",password:"1CarefulWithPersonalInfo2",deviceId:"ecoadmin@api"}}},_={},c={};let p;c.existsSync("./credentials/local.json")&&(p=JSON.parse(c.readFileSync("./credentials/local.json").toString()));const y={local:p||u,local_tmp:E,test:b,testing:_,preproduction:h,production:T};function v(e){return e.replace(/\/$/,"")}const L=process.env.NODE_ENV||"local";process.env.PROXY_FILES,v(process.env.API_BASE_URL||"https://api.perseed.eu"),process.env.JWT_SECRET,process.env.REFRESH_JWT_SECRET,process.env.JWT_ISSUERS,process.env.FULL_LOG,(process.env.CSP_FRAME_ANCESTORS||"https://tmp.perseed.eu,https://tmp.api.perseed.eu,https://perseed.eu,https://api.perseed.eu,https://perseed.test,https://app.caaring.com,https://app.clinicaal.com,https://app.onqos.com,https://app.reseaarch.com,https://app.clitinerary.com").split(","),process.env.ZERO_DATES_SUPPORT,process.env.DEBUG_ERRORS?process.env.DEBUG_ERRORS:process.env.NODE_ENV,process.env.DEFAULT_TZ,process.env.SENTRY_DSN,parseInt(process.env.JOB_RETRIES??"5"),process.env.BODY_SIZE_LIMIT;const t=y[L].externalApis;function A(e){const d={models:{user:{label:e("introspection-schema.models.user.label","User"),relations:[],canJoinPatient:!0,fields:[{name:"username",type:s.TEXT,label:e("introspection-schema.models.user.username","Username")},{name:"created_user",type:s.TEXT,label:e("introspection-schema.models.user.created_user","Created user")},{name:"created_mode",type:s.TEXT,label:e("introspection-schema.models.user.created_mode","Created mode")},{name:"mod_user",type:s.NUMBER,label:e("introspection-schema.models.user.mod_user","User modified")},{name:"mod_time",type:s.DATE,label:e("introspection-schema.models.user.time","Update date")},{name:"email",type:s.TEXT,label:e("introspection-schema.models.user.email","Email")},{name:"password",type:s.TEXT,label:e("introspection-schema.models.user.password","Password")},{name:"displayName",type:s.TEXT,label:e("introspection-schema.models.user.display-name","Display name")},{name:"blocked",type:s.BOOLEAN,label:e("introspection-schema.models.user.blocked","Blocked")},{name:"timestamp",type:s.DATE,label:e("introspection-schema.models.user.timestamp","Creation date")},{name:"state",type:s.BOOLEAN,label:e("introspection-schema.models.user.state","State")},{name:"newRegister",type:s.BOOLEAN,label:e("introspection-schema.models.user.new-register","New register")},{name:"password_changed_date",type:s.DATE,label:e("introspection-schema.models.user.password-changed-date","Password changed date")},{name:"token",type:s.TEXT,label:e("introspection-schema.models.user.token","Token")},{name:"type",type:s.TEXT,label:e("introspection-schema.models.user.type","Type")},{name:"expiry_date",type:s.DATE,label:e("introspection-schema.models.user.expiry-date","Expiry date")},{name:"allow_upload",type:s.BOOLEAN,label:e("introspection-schema.models.user.allow-upload","Allow upload")},{name:"allow_change_color",type:s.BOOLEAN,label:e("introspection-schema.models.user.allow-change-color","Allow change color")},{name:"clinic_request",type:s.BOOLEAN,label:e("introspection-schema.models.user.clinic-request","Clinic request")},{name:"favourite",type:s.BOOLEAN,label:e("introspection-schema.models.user.favourite","Favourite")},{name:"last_access",type:s.DATE,label:e("introspection-schema.models.user.last-access","Last access")},{name:"temporary_password",type:s.TEXT,label:e("introspection-schema.models.user.temporary-password","Temporary password")},{name:"currentFailedCount",type:s.NUMBER,label:e("introspection-schema.models.user.current-failed-count","Current failed count")},{name:"tokenDate",type:s.DATE,label:e("introspection-schema.models.user.token-date","Token date")}]}}};return t&&Object.keys(t).length&&(d.externalApis=Object.entries(t).map(([O,m])=>({value:O,label:m.label,methods:m.method}))),d}a.ApiAction=n,a.ConditionsFormat=i,a.DashboardWidgetType=o,a.DataLoaderType=r,a.IntrospectionSchemaType=s,a.TriggerAction=l,a.getIntrospectionSchema=A,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
1
+ (function(a,E){typeof exports=="object"&&typeof module<"u"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(a=typeof globalThis<"u"?globalThis:a||self,E(a["perseed-api"]={}))})(this,function(a){"use strict";const E="YYYY-MM-DD",R="HH:mm:ss",L="HH:mm",O="YYYY-MM-DD HH:mm",D=E,M="YYYY-MM-DD HH:mm:ss",o={DECIMAL:1,INTEGER:2,MULTIPLE_SELECTION:3,SELECTION:4,DYNAMIC_SELECTION:5,DATE:6,HEADER:7,SUBHEADER:8,WARNING:9,SUBFORM:10,MEMO:11,TEXT:12,TEXT_AREA:13,YES_NO:14,TIME:15,LINK_HREF:16,COUNTRY:17,HOSPITAL:18,USERS:19,DYNAMIC_FILE:20,DYNAMIC_LINK_HREF:21,SCAN_CODE:22,PARAGRAPH:23,FILE:24},t={DECIMAL_NAME:"decimal",INTEGER_NAME:"integer",MULTIPLE_SELECTION_NAME:"multiple_selection",SELECTION_NAME:"selection",DYNAMIC_SELECTION_NAME:"dynamic_selection",DATE_NAME:"date",HEADER_NAME:"header",SUBHEADER_NAME:"subheader",WARNING_NAME:"warning",SUBFORM_NAME:"subform",MEMO_NAME:"memo",TEXT_NAME:"text",TEXT_AREA_NAME:"text_area",YES_NO_NAME:"yes_no",TIME_NAME:"time",LINK_HREF_NAME:"link_href",COUNTRY_NAME:"country",HOSPITAL_NAME:"hospital",USERS_NAME:"users",DYNAMIC_FILE_NAME:"dynamic_file",DYNAMIC_LINK_HREF_NAME:"dynamic_link_href",SCAN_CODE_NAME:"scan_code",PARAGRAPH_NAME:"paragraph",FILE_NAME:"file"};var c=(e=>(e[e.STANDARD=1]="STANDARD",e[e.FOLLOW_UP=2]="FOLLOW_UP",e[e.ADVERSE_EVENT=3]="ADVERSE_EVENT",e[e.QUESTIONNAIRE=5]="QUESTIONNAIRE",e[e.STUDY=6]="STUDY",e))(c||{});const U=()=>{let e={};return Object.keys(o).forEach(n=>{e={...e,[o[n]]:t[`${n}_NAME`]}}),e},C=["number",t.DECIMAL_NAME,t.INTEGER_NAME],F=["date"],f=["object",t.SCAN_CODE_NAME],T={CREATION_TIME:"creation_time",CREATION_USER:"creation_user",CRF_NAME:"crf_name",CRF_STATUS:"crf_status",HOSPITAL:"hospital",HOSPITAL_STATUS:"hospital_status",ID:"id",LOCK_STATE:"lock_state",LOCK_USER:"lock_user",LOCK_DATE:"lock_date",MODIFICATION_TIME:"mod_time",MODIFICATION_USER:"mod_user",PATIENT_ID:"patient_id",PATIENT_NUMBER:"patient_number",PATIENT_NUMBER_STATUS:"patient_number_status",RECORD_ID:"record_id",SIGNATURE_DATE:"signature_date",SIGNATURE_STATE:"signature_state",SIGNATURE_USER:"signature_user",STATUS:"status",USER_IP:"user_ip",DATE_OF_QUESTIONNAIRE:"date_of_questionnaire",TIME_OF_QUESTIONNAIRE:"time_of_questionnaire",VERSION:"version",REFERENCE:"reference",SUBFORM_ID:"subform_id"},h=Object.values(T),v={added:"A",edited:"E",deleted:"D"},P={PATIENT:"patient",SEPARATOR:"_"},b={AUDIT:"audit"},y="~",g="_status",Y="_status",w={filled:"filled",unk:"UNK",na:"NA",nd:"ND"},d=/^[0-9a-f]{33}_status$/,H=function(e){return!d.test(e)},B=["UNK","NA","ND"],X="^[0-1][0-9]:[0-5][0-9]$|^[0-2][0-3]:[0-5][0-9]$",G={DEPENDENT_SOURCE:"dependent_source",ENCRYPTED:"encrypted",ENCRYPTED_LEVEL:"encrypted_level",EXTERNAL_SHARING:"external_sharing",SHOW_EMBEDDED_PDF:"show_embedded_pdf",HIDDEN:"hidden",IS_CRF_MAIN_FIELD:"is_crf_main_field",MIN_VALUE:"min-value",MIN_VALUE_VALIDATION:"validation_of_less_than",MAX_VALUE:"max-value",MAX_VALUE_VALIDATION:"validation_of_higher_than",NEXT_FORM:"next_form",MULTIPLE:"is_multiple",ORDER:"order",READ_ONLY:"readonly",REQUIRED:"is_required",REQUIRED_TYPE:"type_of_required",SELECTION_VALUE:"value_of_selection",SELECTION_VALUE_SLIDER:"value_of_selection_slider",SOURCE_FIELD:"source_field",TYPE:"type",TYPE_QUESTIONARY:"questionary",QUESTION_DAYS:"question_days",QUESTION_TIME:"question_time",QUESTION_HOURS:"question_hours",QUESTION_MINUTES:"question_minutes",REMINDER_DAYS:"reminder_days",REMINDER_HOURS:"reminder_hours",REMINDER_MINUTES:"reminder_minutes",REMINDER_SUBJECT:"reminder_subject",REMINDER_MESSAGE:"reminder_message",MAX_NUMBER_REMINDER:"max_number_reminder",NUMBER_QUESTION_PAGE:"number_question_page",UNTIL:"until",NUMBER_OF_QUESTIONAIRES:"number_of_questionaires",QUESTION_COMMENTS:"question_comments",TYPE_OF_QUESTIONNAIRE:"type_of_questionnaire",HISTORY_OF_QUESTIONNAIRE:"history_of_questionnaire",HISTORY:"history",CRF_HISTORY:"crf_history",PROCEDURE_CONDITION:"procedure_condition",HREF_VALUE:"href_value",HREF_TYPE:"href_type",SIZE:"size",FILE_TYPE:"file_type",INPUT_TYPE:"input_type",PARAGRAPH_CONTENT:"paragraph_content",FILE_VALUE:"file_value",WINDOW_REFERENCE:"window_reference",START_DATE_DAYS:"start_date_days",HAS_DEFAULT_VALUE:"has_default_value",SPECIFIC_VALUE:"specific_value",DEFAULT_VALUE:"default_value",UNIQUE:"unique",HELP:"help",SELECTOR_TYPE:"selector_type",SLIDER_SELECTOR:"slider_selector",SLIDER_SCALE_ORIENTATION:"slider_scale_orientation",UNTIL_DATE:"until",PAGE_BREAK:"page_break",WINDOW_BEFORE:"window_before",WINDOW_AFTER:"window_after",WINDOW_PERIOD:"window_period"},V={STRICT:"strict",FLEXIBLE:"flexible"},k={ACTIVE:"1"},q={SLIDER:"slider",DROPDOWN:"dropdown",RADIO_BUTTON:"radio_button",CHECK_BOX:"check_box"},i={STARS:"0",SCALE_RATING:"1",IMAGES:"2"},Q={[i.STARS]:"stars",[i.SCALE_RATING]:"scale",[i.IMAGES]:"images"},_={HORIZONTAL:"0",VERTICAL:"1"},W={[_.HORIZONTAL]:"horizontal",[_.VERTICAL]:"vertical"},K={NEW_WINDOW:"newwindow",EMBEDDED_HTML:"embeddedhtml"},j={1:["image/jpg","image/jpeg","image/bmp","image/gif","image/png"],2:["application/pdf","application/x-pdf","text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.oasis.opendocument.text","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],3:["application/pdf","application/x-pdf"],4:["application/dicom","application/gzip","application/x-gzip","application/tar","application/tar+gzip","application/zip","application/x-rar-compressed","application/x-zip-compressed","application/x-7z-compressed","application/octet-stream"],5:["video/x-msvideo","video/x-mkv","video/x-matroska","video/mpeg","video/mpeg4","video/mpg","video/ogg","video/webm","video/3gpp","video/3gpp2","video/mp4","video/divx","video/avi","video/quicktime","video/x-ms-wmv","video/x-flv"]},z=[{id:"1",name:"patient_number",type:"Zend\\Form\\Element\\Text",label:"Patient Id",required:"1",crf_name:"patient",status:"1"},{type:"4",name:"hospital",label:"Hospital",required:"0",id:"2",crf_name:"patient",status:"1"},{id:"1000000001",name:"procedure",type:"customzation",label:"Procedures",required:"1",crf_name:"",status:"1"}];var l=(e=>(e.OUTCOMES="outcomes",e))(l||{}),A=(e=>(e.VALUECARD="ValueCard",e.SECTIONCARD="SectionCard",e.PATIENTLIST="PatientList",e))(A||{}),p=(e=>(e.QUESTIONNAIRE_CREATE="questionnaire.create",e.CRF_CREATE="crf.create",e.CRF_UPDATE="crf.update",e.CRF_DELETE="crf.delete",e.EXTERNAL_API_CALL="external_api_call",e))(p||{}),m=(e=>(e.JSON_LOGIC="jsonLogic",e.CUSTOM="custom",e))(m||{}),I=(e=>(e.CREATION="creation",e.UPDATE="update",e))(I||{}),s=(e=>(e.TEXT="text",e.DATE="date",e.TIME="time",e.BOOLEAN="boolean",e.NUMBER="number",e.SELECT="select",e.MULTISELECT="multiselect",e))(s||{});const J={},Z={},$={},x={},ee={hostName:"mysql",ecosystem:{demo:{userLogin:{username:"admin",password:"Sebas3210",deviceId:"abc123",api:!0}},reseaarch:{userLogin:{username:"testapi2",password:"123456",deviceId:"abc123",api:!0}},caaring:{userLogin:{username:"root",password:"pass4mike",deviceId:"abc123",api:!0}},ecoapi:{userLogin:{username:"root",password:"123456",deviceId:"abc123",api:!0}},clinicaal:{},clitinerary:{}},global:{dbCredentials:{username:"root",password:"root",database:"perseed"}},rabbitOptions:{protocol:"amqp",hostname:"localhost",port:5672,username:"perseedweb00-dev",password:"Z8rLHAkw",locale:"en_US",frameMax:0,heartbeat:0,vhost:"/"},AWS:{accessKeyId:"AKIA4Z2DUBRURKXKII5S",secretAccessKey:"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",apiVersion:"latest",tmpPath:"tmp/",bucket:{name:"testing.perseed-files-eu",region:"eu-central-1"},cloudFront:{keypairId:"K1BWQQVLE4YU4F",privateKeyPath:"/var/www/perseed_api/config/private_key.pem",assetsUrl:"https://test.assets.perseed.eu"}},SMS:{apiKey:"4|XildLvmjqzABeekAgj9EaLiwpxdGMWgassPaxewu",defaultSender:"Caaring"},perseedAPI:{caaring:{username:"ecoadmin",password:"1CarefulWithPersonalInfo2@",deviceId:"ecoadmin@api"},clinicaal:{username:"perseedapiCLI",password:"Ukz4s7LL&Ne3KA#",deviceId:"ecoadmin@api"},onqos:{username:"perseedapiCLI",password:"Ukz4s7LL&Ne3KA#",deviceId:"ecoadmin@api"},demo:{username:"admin",password:"Sebas3210",deviceId:"admin@api"},reseaarch:{username:"ecoadmin",password:"1CarefulWithPersonalInfo2@",deviceId:"ecoadmin@api"},testrcr:{username:"ecoadmin",password:"1CarefulWithPersonalInfo2",deviceId:"ecoadmin@api"}}},ae={},N={};let S;N.existsSync("./credentials/local.json")&&(S=JSON.parse(N.readFileSync("./credentials/local.json").toString()));const se={local:S||J,local_tmp:Z,test:ee,testing:ae,preproduction:$,production:x};function Ee(e){return e.replace(/\/$/,"")}const te=process.env.NODE_ENV||"local";process.env.PROXY_FILES,Ee(process.env.API_BASE_URL||"https://api.perseed.eu"),process.env.JWT_SECRET,process.env.REFRESH_JWT_SECRET,process.env.JWT_ISSUERS,process.env.FULL_LOG,(process.env.CSP_FRAME_ANCESTORS||"https://tmp.perseed.eu,https://tmp.api.perseed.eu,https://perseed.eu,https://api.perseed.eu,https://perseed.test,https://app.caaring.com,https://app.clinicaal.com,https://app.onqos.com,https://app.reseaarch.com,https://app.clitinerary.com").split(","),process.env.ZERO_DATES_SUPPORT,process.env.DEBUG_ERRORS?process.env.DEBUG_ERRORS:process.env.NODE_ENV,process.env.DEFAULT_TZ,process.env.SENTRY_DSN,parseInt(process.env.JOB_RETRIES??"5"),process.env.BODY_SIZE_LIMIT;const r=se[te].externalApis;function ne(e){const n={models:{user:{label:e("introspection-schema.models.user.label","User"),relations:[],canJoinPatient:!0,fields:[{name:"username",type:s.TEXT,label:e("introspection-schema.models.user.username","Username")},{name:"created_user",type:s.TEXT,label:e("introspection-schema.models.user.created_user","Created user")},{name:"created_mode",type:s.TEXT,label:e("introspection-schema.models.user.created_mode","Created mode")},{name:"mod_user",type:s.NUMBER,label:e("introspection-schema.models.user.mod_user","User modified")},{name:"mod_time",type:s.DATE,label:e("introspection-schema.models.user.time","Update date")},{name:"email",type:s.TEXT,label:e("introspection-schema.models.user.email","Email")},{name:"password",type:s.TEXT,label:e("introspection-schema.models.user.password","Password")},{name:"displayName",type:s.TEXT,label:e("introspection-schema.models.user.display-name","Display name")},{name:"blocked",type:s.BOOLEAN,label:e("introspection-schema.models.user.blocked","Blocked")},{name:"timestamp",type:s.DATE,label:e("introspection-schema.models.user.timestamp","Creation date")},{name:"state",type:s.BOOLEAN,label:e("introspection-schema.models.user.state","State")},{name:"newRegister",type:s.BOOLEAN,label:e("introspection-schema.models.user.new-register","New register")},{name:"password_changed_date",type:s.DATE,label:e("introspection-schema.models.user.password-changed-date","Password changed date")},{name:"token",type:s.TEXT,label:e("introspection-schema.models.user.token","Token")},{name:"type",type:s.TEXT,label:e("introspection-schema.models.user.type","Type")},{name:"expiry_date",type:s.DATE,label:e("introspection-schema.models.user.expiry-date","Expiry date")},{name:"allow_upload",type:s.BOOLEAN,label:e("introspection-schema.models.user.allow-upload","Allow upload")},{name:"allow_change_color",type:s.BOOLEAN,label:e("introspection-schema.models.user.allow-change-color","Allow change color")},{name:"clinic_request",type:s.BOOLEAN,label:e("introspection-schema.models.user.clinic-request","Clinic request")},{name:"favourite",type:s.BOOLEAN,label:e("introspection-schema.models.user.favourite","Favourite")},{name:"last_access",type:s.DATE,label:e("introspection-schema.models.user.last-access","Last access")},{name:"temporary_password",type:s.TEXT,label:e("introspection-schema.models.user.temporary-password","Temporary password")},{name:"currentFailedCount",type:s.NUMBER,label:e("introspection-schema.models.user.current-failed-count","Current failed count")},{name:"tokenDate",type:s.DATE,label:e("introspection-schema.models.user.token-date","Token date")}]}}};return r&&Object.keys(r).length&&(n.externalApis=Object.entries(r).map(([ie,u])=>({value:ie,label:u.label,methods:u.method}))),n}a.AUDIT_FLAGS=v,a.ApiAction=p,a.CORE=T,a.ConditionsFormat=m,a.DATETIME_SHORT_FORMAT=O,a.DATE_FORMAT=E,a.DATE_TYPE=F,a.DEFAULT_CONFIGURATION_PATIENT_LIST=z,a.DYNAMIC_FILE_VALID_FORMATS=j,a.DashboardWidgetType=A,a.DataLoaderType=l,a.EXCLUDE_FIELDS=h,a.FIELDS=o,a.FIELD_NAMES=t,a.FIELD_NAMES_MAP=U,a.FIELD_STATUS=w,a.FIELD_SUFFIX=g,a.FORM_NAMES=P,a.FORM_SUFFIX=b,a.FORM_TYPES=c,a.HREF_TYPE=K,a.IntrospectionSchemaType=s,a.META_NAMES=G,a.META_RESTRICTION=V,a.META_STATUS=k,a.MULTIPLE_SELECTION_SEPARATOR=y,a.MYSQL_DATETIME_FORMAT=M,a.MYSQL_DATE_FORMAT=D,a.NO_FILL_STATUS=B,a.NUMBER_TYPE=C,a.OBJECT_TYPE=f,a.SELECTOR_TYPE=q,a.SHORT_TIME_FORMAT=L,a.SLIDER_SCALE_ORIENTATION_TYPE=W,a.SLIDER_SCALE_TYPE=_,a.SLIDER_SELECTOR_TYPE=Q,a.SLIDER_TYPE=i,a.STATUS_FIELD_REGEXP=d,a.STATUS_SUFFIX=Y,a.TIME_FORMAT=R,a.TIME_SCHEMA=X,a.TriggerAction=I,a.getIntrospectionSchema=ne,a.isNotStatusField=H,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@persei/perseed-api",
3
- "version": "4.34.5",
3
+ "version": "4.34.7",
4
4
  "private": false,
5
5
  "main": "./dist/perseed-api.umd.cjs",
6
6
  "module": "./dist/perseed-api.js",
@@ -1 +0,0 @@
1
- export * from './types';
@@ -1,29 +0,0 @@
1
- /**
2
- * Available MFA methods
3
- */
4
- export type MFAMethodCode = 'sms' | 'email';
5
- /**
6
- * MFA method definition and configuration
7
- */
8
- export interface MFAMethod {
9
- code: MFAMethodCode;
10
- }
11
- /**
12
- * Global authentication security definition
13
- */
14
- export interface AuthenticationSecurityDefinition {
15
- mfaMethods?: MFAMethod[];
16
- required?: boolean;
17
- default?: MFAMethodCode;
18
- }
19
- export interface MFALoginData {
20
- type: MFAMethodCode;
21
- value: string;
22
- }
23
- /**
24
- * req.body object mfa validation
25
- */
26
- export interface ReqBodyWithMFA {
27
- mfa?: MFALoginData;
28
- [key: string]: any;
29
- }
@@ -1,6 +0,0 @@
1
- import { DataLoaderType } from '../types';
2
- import { OutcomesParams } from '../../outcomes/types';
3
- export interface WidgetOutcomesDataLoader {
4
- type: DataLoaderType.OUTCOMES;
5
- params: OutcomesParams;
6
- }
@@ -1 +0,0 @@
1
- export * from './Outcomes';
@@ -1,5 +0,0 @@
1
- export interface I18nTextLocales {
2
- [locale: string]: string;
3
- default: string;
4
- }
5
- export type I18nTextTranslation = I18nTextLocales | string;
@@ -1,5 +0,0 @@
1
- export * from './data_loaders';
2
- export * from './widgets';
3
- export * from './types';
4
- export * from './i18n';
5
- export * from './col.d';
@@ -1,49 +0,0 @@
1
- import { ColProps } from './col';
2
- import { PatientListProps, SectionCardProps, ValueCardProps } from './widgets';
3
- /**
4
- * Any changes here may need changes in Caaring-js packages/perseed-react-ui-components/src/dashboards/types.ts
5
- */
6
- export declare enum DataLoaderType {
7
- OUTCOMES = "outcomes"
8
- }
9
- export interface GenericWidgetDataLoader {
10
- type: DataLoaderType;
11
- params: Record<string, any>;
12
- }
13
- export type WidgetDataLoader<T> = T extends {
14
- type: infer Type;
15
- params: infer Params;
16
- } ? {
17
- type: Type;
18
- params: Params;
19
- } : never;
20
- interface BaseWidget {
21
- size?: number | ColProps;
22
- }
23
- export declare enum DashboardWidgetType {
24
- VALUECARD = "ValueCard",
25
- SECTIONCARD = "SectionCard",
26
- PATIENTLIST = "PatientList"
27
- }
28
- export type Widget = BaseWidget & ({
29
- type: DashboardWidgetType.SECTIONCARD;
30
- params: SectionCardProps;
31
- } | {
32
- type: DashboardWidgetType.VALUECARD;
33
- params: ValueCardProps;
34
- } | {
35
- type: DashboardWidgetType.PATIENTLIST;
36
- params: PatientListProps;
37
- });
38
- export interface DashboardConfig {
39
- widgets?: Widget[];
40
- }
41
- export interface CreateDashboardPayload {
42
- title: string;
43
- active?: boolean;
44
- config?: DashboardConfig;
45
- icon?: string | null;
46
- weight?: number;
47
- }
48
- export type UpdateDashboardPayload = Partial<CreateDashboardPayload>;
49
- export {};
@@ -1,16 +0,0 @@
1
- export interface PatientListProps {
2
- loadUserProfiles?: boolean;
3
- loadAdherence?: boolean;
4
- extraFields?: string[];
5
- loadPushTokens?: boolean;
6
- loadUserAccessData?: boolean;
7
- programId?: number | null;
8
- prevAdherenceDays?: number | null;
9
- filter?: FilterParams;
10
- }
11
- export interface FilterParams {
12
- conditions?: Record<string, unknown>;
13
- relatedData?: {
14
- join?: string[];
15
- };
16
- }
@@ -1,9 +0,0 @@
1
- import { Widget } from '../types';
2
- import { I18nTextTranslation } from '../i18n';
3
- export interface SectionCardProps {
4
- icon: string;
5
- background?: string;
6
- titleBackground?: string;
7
- title: I18nTextTranslation;
8
- widgets: Widget[];
9
- }
@@ -1,13 +0,0 @@
1
- import { I18nTextTranslation } from '../i18n';
2
- import { WidgetDataLoader } from '../types';
3
- import { WidgetOutcomesDataLoader } from '../data_loaders/Outcomes';
4
- export interface ValueCardProps {
5
- title: I18nTextTranslation;
6
- icon: string;
7
- text: I18nTextTranslation;
8
- subtext?: I18nTextTranslation;
9
- titleTextColor?: string;
10
- bodyTextColor?: string;
11
- data?: Record<string, any>;
12
- dataLoader?: WidgetDataLoader<WidgetOutcomesDataLoader>;
13
- }
@@ -1,3 +0,0 @@
1
- export * from './PatientListProps';
2
- export * from './SectionCardProps';
3
- export * from './ValueCardProps';
@@ -1,6 +0,0 @@
1
- export * from './dashboard';
2
- export * from './authentication_security';
3
- export * from './notification_configuration';
4
- export * from './outcomes';
5
- export * from './questionnaire';
6
- export * from './user_settings';
@@ -1,2 +0,0 @@
1
- export * from './types';
2
- export * from './introspectionShema';
@@ -1,3 +0,0 @@
1
- import { TFunction } from 'i18next';
2
- import { IntrospectionSchema } from './types';
3
- export declare function getIntrospectionSchema(t: TFunction): IntrospectionSchema;