@persei/perseed-api 4.34.3 → 4.34.4
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/perseed-api.mjs +33 -67
- package/dist/perseed-api.umd.js +1 -1
- package/dist/schemas/index.d.ts +6 -15
- package/package.json +6 -3
package/dist/perseed-api.mjs
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}, Symbol.toStringTag, { value: "Module" })), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
|
-
__proto__: null
|
|
5
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
6
|
-
var a = /* @__PURE__ */ ((e) => (e.OUTCOMES = "outcomes", e))(a || {}), o = /* @__PURE__ */ ((e) => (e.VALUECARD = "ValueCard", e.SECTIONCARD = "SectionCard", e.PATIENTLIST = "PatientList", e))(o || {});
|
|
7
|
-
const m = {
|
|
8
|
-
data_loaders: n,
|
|
9
|
-
widgets: c
|
|
10
|
-
}, i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
|
-
__proto__: null,
|
|
12
|
-
DashboardWidgetType: o,
|
|
13
|
-
DataLoaderType: a,
|
|
14
|
-
default: m
|
|
15
|
-
}, Symbol.toStringTag, { value: "Module" })), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
|
-
__proto__: null
|
|
17
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
-
var s = /* @__PURE__ */ ((e) => (e.QUESTIONNAIRE_CREATE = "questionnaire.create", e.CRF_CREATE = "crf.create", e.CRF_UPDATE = "crf.update", e.CRF_DELETE = "crf.delete", e))(s || {}), r = /* @__PURE__ */ ((e) => (e.JSON_LOGIC = "jsonLogic", e.CUSTOM = "custom", e))(r || {}), l = /* @__PURE__ */ ((e) => (e.CREATION = "creation", e.UPDATE = "update", e))(l || {}), t = /* @__PURE__ */ ((e) => (e.TEXT = "text", e.DATE = "date", e.TIME = "time", e.BOOLEAN = "boolean", e.NUMBER = "number", e.SELECT = "select", e.MULTISELECT = "multiselect", e))(t || {});
|
|
19
|
-
function u(e) {
|
|
1
|
+
var s = /* @__PURE__ */ ((e) => (e.OUTCOMES = "outcomes", e))(s || {}), r = /* @__PURE__ */ ((e) => (e.VALUECARD = "ValueCard", e.SECTIONCARD = "SectionCard", e.PATIENTLIST = "PatientList", e))(r || {}), t = /* @__PURE__ */ ((e) => (e.QUESTIONNAIRE_CREATE = "questionnaire.create", e.CRF_CREATE = "crf.create", e.CRF_UPDATE = "crf.update", e.CRF_DELETE = "crf.delete", e))(t || {}), l = /* @__PURE__ */ ((e) => (e.JSON_LOGIC = "jsonLogic", e.CUSTOM = "custom", e))(l || {}), o = /* @__PURE__ */ ((e) => (e.CREATION = "creation", e.UPDATE = "update", e))(o || {}), a = /* @__PURE__ */ ((e) => (e.TEXT = "text", e.DATE = "date", e.TIME = "time", e.BOOLEAN = "boolean", e.NUMBER = "number", e.SELECT = "select", e.MULTISELECT = "multiselect", e))(a || {});
|
|
2
|
+
function n(e) {
|
|
20
3
|
return {
|
|
21
4
|
models: {
|
|
22
5
|
user: {
|
|
@@ -26,122 +9,122 @@ function u(e) {
|
|
|
26
9
|
fields: [
|
|
27
10
|
{
|
|
28
11
|
name: "username",
|
|
29
|
-
type:
|
|
12
|
+
type: a.TEXT,
|
|
30
13
|
label: e("introspection-schema.models.user.username", "Username")
|
|
31
14
|
},
|
|
32
15
|
{
|
|
33
16
|
name: "created_user",
|
|
34
|
-
type:
|
|
17
|
+
type: a.TEXT,
|
|
35
18
|
label: e("introspection-schema.models.user.created_user", "Created user")
|
|
36
19
|
},
|
|
37
20
|
{
|
|
38
21
|
name: "created_mode",
|
|
39
|
-
type:
|
|
22
|
+
type: a.TEXT,
|
|
40
23
|
label: e("introspection-schema.models.user.created_mode", "Created mode")
|
|
41
24
|
},
|
|
42
25
|
{
|
|
43
26
|
name: "mod_user",
|
|
44
|
-
type:
|
|
27
|
+
type: a.NUMBER,
|
|
45
28
|
label: e("introspection-schema.models.user.mod_user", "User modified")
|
|
46
29
|
},
|
|
47
30
|
{
|
|
48
31
|
name: "mod_time",
|
|
49
|
-
type:
|
|
32
|
+
type: a.DATE,
|
|
50
33
|
label: e("introspection-schema.models.user.time", "Update date")
|
|
51
34
|
},
|
|
52
35
|
{
|
|
53
36
|
name: "email",
|
|
54
|
-
type:
|
|
37
|
+
type: a.TEXT,
|
|
55
38
|
label: e("introspection-schema.models.user.email", "Email")
|
|
56
39
|
},
|
|
57
40
|
{
|
|
58
41
|
name: "password",
|
|
59
|
-
type:
|
|
42
|
+
type: a.TEXT,
|
|
60
43
|
label: e("introspection-schema.models.user.password", "Password")
|
|
61
44
|
},
|
|
62
45
|
{
|
|
63
46
|
name: "displayName",
|
|
64
|
-
type:
|
|
47
|
+
type: a.TEXT,
|
|
65
48
|
label: e("introspection-schema.models.user.display-name", "Display name")
|
|
66
49
|
},
|
|
67
50
|
{
|
|
68
51
|
name: "blocked",
|
|
69
|
-
type:
|
|
52
|
+
type: a.BOOLEAN,
|
|
70
53
|
label: e("introspection-schema.models.user.blocked", "Blocked")
|
|
71
54
|
},
|
|
72
55
|
{
|
|
73
56
|
name: "timestamp",
|
|
74
|
-
type:
|
|
57
|
+
type: a.DATE,
|
|
75
58
|
label: e("introspection-schema.models.user.timestamp", "Creation date")
|
|
76
59
|
},
|
|
77
60
|
{
|
|
78
61
|
name: "state",
|
|
79
|
-
type:
|
|
62
|
+
type: a.BOOLEAN,
|
|
80
63
|
label: e("introspection-schema.models.user.state", "State")
|
|
81
64
|
},
|
|
82
65
|
{
|
|
83
66
|
name: "newRegister",
|
|
84
|
-
type:
|
|
67
|
+
type: a.BOOLEAN,
|
|
85
68
|
label: e("introspection-schema.models.user.new-register", "New register")
|
|
86
69
|
},
|
|
87
70
|
{
|
|
88
71
|
name: "password_changed_date",
|
|
89
|
-
type:
|
|
72
|
+
type: a.DATE,
|
|
90
73
|
label: e("introspection-schema.models.user.password-changed-date", "Password changed date")
|
|
91
74
|
},
|
|
92
75
|
{
|
|
93
76
|
name: "token",
|
|
94
|
-
type:
|
|
77
|
+
type: a.TEXT,
|
|
95
78
|
label: e("introspection-schema.models.user.token", "Token")
|
|
96
79
|
},
|
|
97
80
|
{
|
|
98
81
|
name: "type",
|
|
99
|
-
type:
|
|
82
|
+
type: a.TEXT,
|
|
100
83
|
label: e("introspection-schema.models.user.type", "Type")
|
|
101
84
|
},
|
|
102
85
|
{
|
|
103
86
|
name: "expiry_date",
|
|
104
|
-
type:
|
|
87
|
+
type: a.DATE,
|
|
105
88
|
label: e("introspection-schema.models.user.expiry-date", "Expiry date")
|
|
106
89
|
},
|
|
107
90
|
{
|
|
108
91
|
name: "allow_upload",
|
|
109
|
-
type:
|
|
92
|
+
type: a.BOOLEAN,
|
|
110
93
|
label: e("introspection-schema.models.user.allow-upload", "Allow upload")
|
|
111
94
|
},
|
|
112
95
|
{
|
|
113
96
|
name: "allow_change_color",
|
|
114
|
-
type:
|
|
97
|
+
type: a.BOOLEAN,
|
|
115
98
|
label: e("introspection-schema.models.user.allow-change-color", "Allow change color")
|
|
116
99
|
},
|
|
117
100
|
{
|
|
118
101
|
name: "clinic_request",
|
|
119
|
-
type:
|
|
102
|
+
type: a.BOOLEAN,
|
|
120
103
|
label: e("introspection-schema.models.user.clinic-request", "Clinic request")
|
|
121
104
|
},
|
|
122
105
|
{
|
|
123
106
|
name: "favourite",
|
|
124
|
-
type:
|
|
107
|
+
type: a.BOOLEAN,
|
|
125
108
|
label: e("introspection-schema.models.user.favourite", "Favourite")
|
|
126
109
|
},
|
|
127
110
|
{
|
|
128
111
|
name: "last_access",
|
|
129
|
-
type:
|
|
112
|
+
type: a.DATE,
|
|
130
113
|
label: e("introspection-schema.models.user.last-access", "Last access")
|
|
131
114
|
},
|
|
132
115
|
{
|
|
133
116
|
name: "temporary_password",
|
|
134
|
-
type:
|
|
117
|
+
type: a.TEXT,
|
|
135
118
|
label: e("introspection-schema.models.user.temporary-password", "Temporary password")
|
|
136
119
|
},
|
|
137
120
|
{
|
|
138
121
|
name: "currentFailedCount",
|
|
139
|
-
type:
|
|
122
|
+
type: a.NUMBER,
|
|
140
123
|
label: e("introspection-schema.models.user.current-failed-count", "Current failed count")
|
|
141
124
|
},
|
|
142
125
|
{
|
|
143
126
|
name: "tokenDate",
|
|
144
|
-
type:
|
|
127
|
+
type: a.DATE,
|
|
145
128
|
label: e("introspection-schema.models.user.token-date", "Token date")
|
|
146
129
|
}
|
|
147
130
|
]
|
|
@@ -149,29 +132,12 @@ function u(e) {
|
|
|
149
132
|
}
|
|
150
133
|
};
|
|
151
134
|
}
|
|
152
|
-
const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153
|
-
__proto__: null,
|
|
154
|
-
ApiAction: s,
|
|
155
|
-
ConditionsFormat: r,
|
|
156
|
-
IntrospectionSchemaType: t,
|
|
157
|
-
TriggerAction: l,
|
|
158
|
-
getIntrospectionSchema: u
|
|
159
|
-
}, Symbol.toStringTag, { value: "Module" })), _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
160
|
-
__proto__: null
|
|
161
|
-
}, Symbol.toStringTag, { value: "Module" })), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
162
|
-
__proto__: null
|
|
163
|
-
}, Symbol.toStringTag, { value: "Module" })), E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
164
|
-
__proto__: null
|
|
165
|
-
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
166
|
-
dashboard: i,
|
|
167
|
-
authentication_security: d,
|
|
168
|
-
notification_configuration: p,
|
|
169
|
-
outcomes: _,
|
|
170
|
-
questionnaire: b,
|
|
171
|
-
user_settings: E
|
|
172
|
-
}, y = {
|
|
173
|
-
schemas: T
|
|
174
|
-
};
|
|
175
135
|
export {
|
|
176
|
-
|
|
136
|
+
t as ApiAction,
|
|
137
|
+
l as ConditionsFormat,
|
|
138
|
+
r as DashboardWidgetType,
|
|
139
|
+
s as DataLoaderType,
|
|
140
|
+
a as IntrospectionSchemaType,
|
|
141
|
+
o as TriggerAction,
|
|
142
|
+
n as getIntrospectionSchema
|
|
177
143
|
};
|
package/dist/perseed-api.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(s,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(s=typeof globalThis<"u"?globalThis:s||self,t(s["perseed-api"]={}))})(this,function(s){"use strict";var t=(e=>(e.OUTCOMES="outcomes",e))(t||{}),o=(e=>(e.VALUECARD="ValueCard",e.SECTIONCARD="SectionCard",e.PATIENTLIST="PatientList",e))(o||{}),r=(e=>(e.QUESTIONNAIRE_CREATE="questionnaire.create",e.CRF_CREATE="crf.create",e.CRF_UPDATE="crf.update",e.CRF_DELETE="crf.delete",e))(r||{}),n=(e=>(e.JSON_LOGIC="jsonLogic",e.CUSTOM="custom",e))(n||{}),l=(e=>(e.CREATION="creation",e.UPDATE="update",e))(l||{}),a=(e=>(e.TEXT="text",e.DATE="date",e.TIME="time",e.BOOLEAN="boolean",e.NUMBER="number",e.SELECT="select",e.MULTISELECT="multiselect",e))(a||{});function m(e){return{models:{user:{label:e("introspection-schema.models.user.label","User"),relations:[],canJoinPatient:!0,fields:[{name:"username",type:a.TEXT,label:e("introspection-schema.models.user.username","Username")},{name:"created_user",type:a.TEXT,label:e("introspection-schema.models.user.created_user","Created user")},{name:"created_mode",type:a.TEXT,label:e("introspection-schema.models.user.created_mode","Created mode")},{name:"mod_user",type:a.NUMBER,label:e("introspection-schema.models.user.mod_user","User modified")},{name:"mod_time",type:a.DATE,label:e("introspection-schema.models.user.time","Update date")},{name:"email",type:a.TEXT,label:e("introspection-schema.models.user.email","Email")},{name:"password",type:a.TEXT,label:e("introspection-schema.models.user.password","Password")},{name:"displayName",type:a.TEXT,label:e("introspection-schema.models.user.display-name","Display name")},{name:"blocked",type:a.BOOLEAN,label:e("introspection-schema.models.user.blocked","Blocked")},{name:"timestamp",type:a.DATE,label:e("introspection-schema.models.user.timestamp","Creation date")},{name:"state",type:a.BOOLEAN,label:e("introspection-schema.models.user.state","State")},{name:"newRegister",type:a.BOOLEAN,label:e("introspection-schema.models.user.new-register","New register")},{name:"password_changed_date",type:a.DATE,label:e("introspection-schema.models.user.password-changed-date","Password changed date")},{name:"token",type:a.TEXT,label:e("introspection-schema.models.user.token","Token")},{name:"type",type:a.TEXT,label:e("introspection-schema.models.user.type","Type")},{name:"expiry_date",type:a.DATE,label:e("introspection-schema.models.user.expiry-date","Expiry date")},{name:"allow_upload",type:a.BOOLEAN,label:e("introspection-schema.models.user.allow-upload","Allow upload")},{name:"allow_change_color",type:a.BOOLEAN,label:e("introspection-schema.models.user.allow-change-color","Allow change color")},{name:"clinic_request",type:a.BOOLEAN,label:e("introspection-schema.models.user.clinic-request","Clinic request")},{name:"favourite",type:a.BOOLEAN,label:e("introspection-schema.models.user.favourite","Favourite")},{name:"last_access",type:a.DATE,label:e("introspection-schema.models.user.last-access","Last access")},{name:"temporary_password",type:a.TEXT,label:e("introspection-schema.models.user.temporary-password","Temporary password")},{name:"currentFailedCount",type:a.NUMBER,label:e("introspection-schema.models.user.current-failed-count","Current failed count")},{name:"tokenDate",type:a.DATE,label:e("introspection-schema.models.user.token-date","Token date")}]}}}}s.ApiAction=r,s.ConditionsFormat=n,s.DashboardWidgetType=o,s.DataLoaderType=t,s.IntrospectionSchemaType=a,s.TriggerAction=l,s.getIntrospectionSchema=m,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const schemas: {
|
|
8
|
-
dashboard: typeof dashboard;
|
|
9
|
-
authentication_security: typeof authentication_security;
|
|
10
|
-
notification_configuration: typeof notification_configuration;
|
|
11
|
-
outcomes: typeof outcomes;
|
|
12
|
-
questionnaire: typeof questionnaire;
|
|
13
|
-
user_settings: typeof user_settings;
|
|
14
|
-
};
|
|
15
|
-
export default schemas;
|
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@persei/perseed-api",
|
|
3
|
-
"version": "4.34.
|
|
3
|
+
"version": "4.34.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./dist/perseed-api.umd.cjs",
|
|
6
6
|
"module": "./dist/perseed-api.js",
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"require": "./dist/perseed-api.umd.cjs"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"files": [
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
15
17
|
"scripts": {
|
|
16
18
|
"publish": "npm run precommit && npm run build && npm publish",
|
|
17
19
|
"build": "tsc && vite build",
|
|
@@ -173,5 +175,6 @@
|
|
|
173
175
|
"vite": "^6.2.4",
|
|
174
176
|
"vite-plugin-dts": "^4.5.3",
|
|
175
177
|
"yamljs": "^0.3.0"
|
|
176
|
-
}
|
|
178
|
+
},
|
|
179
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
177
180
|
}
|