@pgds/api-interface 1.6.5 → 1.6.6
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/lib/auth/mustbeConfig.js +9 -21
- package/lib/auth/mustbeConfig.js.map +1 -1
- package/package.json +1 -1
- package/api/notes/createNoteEndpoint.d.ts +0 -8
- package/api/notes/getNoteByIdEndpoint.d.ts +0 -7
- package/api/notes/getNotesByReferenceIdEndpoint.d.ts +0 -7
- package/api/notes/removeNoteEndpoint.d.ts +0 -7
- package/api/notes/updateNoteEndpoint.d.ts +0 -7
- package/api/prescriptions/createPrescriptionEndpoint.d.ts +0 -7
- package/api/prescriptions/getAllPrescriptionsByOrganizationIdEndpoint.d.ts +0 -7
- package/api/prescriptions/getAllPrescriptionsEndpoint.d.ts +0 -7
- package/api/prescriptions/getPrescriptionByIdEndpoint.d.ts +0 -7
- package/api/prescriptions/removePrescriptionEndpoint.d.ts +0 -7
- package/api/prescriptions/updatePrescriptionEndpoint.d.ts +0 -7
- package/api/productTypes/createProductTypeEndpoint.d.ts +0 -7
- package/api/productTypes/customization/getThingProductTypeCustomizationEndpoint.d.ts +0 -7
- package/api/productTypes/customization/updateOrganizationIdForProductTypeCustomizationsEndpoint.d.ts +0 -7
- package/api/productTypes/customization/upsertProductTypeCustomizationEndpoint.d.ts +0 -7
- package/api/productTypes/getAvailableProductTypesEndpoint.d.ts +0 -7
- package/api/productTypes/getProductTypeByIdOrCodeEndpoint.d.ts +0 -7
- package/api/productTypes/getProductTypeByThingIdEndpoint.d.ts +0 -7
- package/api/productTypes/getProductTypesEndpoint.d.ts +0 -7
- package/api/productTypes/internal/deleteProductTypeCustomizationsByQueryEndpoint.d.ts +0 -7
- package/api/productTypes/internal/getProductTypesAndCustomizationsEndpoint.d.ts +0 -7
- package/api/productTypes/removeProductTypeEndpoint.d.ts +0 -7
- package/api/productTypes/sharing/createProductTypeSharingEndpoint.d.ts +0 -7
- package/api/productTypes/sharing/getAllProductTypeSharingEndpoint.d.ts +0 -7
- package/api/productTypes/sharing/getProductTypeAclsByShareIdEndpoint.d.ts +0 -7
- package/api/productTypes/sharing/getProductTypeSharingByIdEndpoint.d.ts +0 -7
- package/api/productTypes/sharing/removeProductTypeSharingEndpoint.d.ts +0 -7
- package/api/productTypes/updateProductTypeCapabilitiesEndpoint.d.ts +0 -7
- package/api/productTypes/updateProductTypeEndpoint.d.ts +0 -7
- package/api/routes.d.ts +0 -1
- package/api/schemas/notes/createNoteSchema.d.ts +0 -28
- package/api/schemas/notes/getNotesByReferenceIdSchema.d.ts +0 -36
- package/api/schemas/notes/getNotesByUserIdSchema.d.ts +0 -40
- package/api/schemas/notes/notesSchemasShared.d.ts +0 -5
- package/api/schemas/notes/updateNoteSchema.d.ts +0 -12
- package/api/schemas/notes/updateOrganizationIdRequestSchema.d.ts +0 -15
- package/api/schemas/prescriptions/createPrescriptionSchema.d.ts +0 -36
- package/api/schemas/prescriptions/prescriptionIdSchema.d.ts +0 -11
- package/api/schemas/prescriptions/updatePrescriptionSchema.d.ts +0 -39
- package/api/schemas/productTypes/createProductTypeSchema.d.ts +0 -63
- package/api/schemas/productTypes/createProductTypeSharingSchema.d.ts +0 -31
- package/api/schemas/productTypes/customization/productTypeCustomizationSchema.d.ts +0 -59
- package/api/schemas/productTypes/customization/updateOrganizationIdSchema.d.ts +0 -15
- package/api/schemas/productTypes/customization/upsertProductTypeCustomizationSchema.d.ts +0 -68
- package/api/schemas/productTypes/productTypesSchemasShared.d.ts +0 -84
- package/api/schemas/productTypes/updateCapabilitiesSchema.d.ts +0 -344
- package/api/schemas/productTypes/updateProductTypeSchema.d.ts +0 -60
- package/api/schemas/schemasShared.d.ts +0 -9
package/lib/auth/mustbeConfig.js
CHANGED
|
@@ -139,9 +139,9 @@ function configureMustBe() {
|
|
|
139
139
|
}
|
|
140
140
|
function parseUser(req) {
|
|
141
141
|
return __awaiter(this, void 0, void 0, function () {
|
|
142
|
-
var userId, organizationId, activities, activeLogin, organizationHierarchy, _a,
|
|
143
|
-
return __generator(this, function (
|
|
144
|
-
switch (
|
|
142
|
+
var userId, organizationId, activities, activeLogin, organizationHierarchy, _a, user;
|
|
143
|
+
return __generator(this, function (_b) {
|
|
144
|
+
switch (_b.label) {
|
|
145
145
|
case 0:
|
|
146
146
|
userId = req.header(constants_1.AUTH_USER_HEADER, undefined);
|
|
147
147
|
organizationId = req.header(constants_1.AUTH_ORGANIZATION_HEADER, undefined);
|
|
@@ -149,20 +149,12 @@ function parseUser(req) {
|
|
|
149
149
|
activeLogin = req.header(constants_1.AUTH_ACTIVE_LOGIN_HEADER, undefined);
|
|
150
150
|
if (!constants_2.GLOBAL_CI) return [3 /*break*/, 1];
|
|
151
151
|
_a = JSON.parse(req.header(constants_1.AUTH_ORGANIZATION_HIERARCHY_HEADER, "{}"));
|
|
152
|
-
return [3 /*break*/,
|
|
153
|
-
case 1:
|
|
154
|
-
if (!organizationId) return [3 /*break*/, 3];
|
|
155
|
-
return [4 /*yield*/, organizationHierarchyRepo_1.default.getOrganizationHierarchy(organizationId)];
|
|
152
|
+
return [3 /*break*/, 3];
|
|
153
|
+
case 1: return [4 /*yield*/, organizationHierarchyRepo_1.default.getOrganizationHierarchy(organizationId)];
|
|
156
154
|
case 2:
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
_a = _b.sent();
|
|
156
|
+
_b.label = 3;
|
|
159
157
|
case 3:
|
|
160
|
-
_b = {};
|
|
161
|
-
_c.label = 4;
|
|
162
|
-
case 4:
|
|
163
|
-
_a = _b;
|
|
164
|
-
_c.label = 5;
|
|
165
|
-
case 5:
|
|
166
158
|
organizationHierarchy = _a;
|
|
167
159
|
user = new ReqUser_1.ReqUser({ userId: userId, organizationId: organizationId, activities: activities, activeLogin: activeLogin, organizationHierarchy: organizationHierarchy });
|
|
168
160
|
req.user = user;
|
|
@@ -175,12 +167,8 @@ function userIsUndefined(user) {
|
|
|
175
167
|
if (!user) {
|
|
176
168
|
return true;
|
|
177
169
|
}
|
|
178
|
-
var userId = user.userId, organizationId = user.organizationId, activeLogin = user.activeLogin,
|
|
179
|
-
if (!userId &&
|
|
180
|
-
!organizationId &&
|
|
181
|
-
!activeLogin &&
|
|
182
|
-
!(childOrganizationIds === null || childOrganizationIds === void 0 ? void 0 : childOrganizationIds.length) &&
|
|
183
|
-
!Object.keys(user.organizationHierarchy).length) {
|
|
170
|
+
var userId = user.userId, organizationId = user.organizationId, activeLogin = user.activeLogin, organizationHierarchy = user.organizationHierarchy;
|
|
171
|
+
if (!userId && !organizationId && !activeLogin && !Object.keys(organizationHierarchy).length) {
|
|
184
172
|
return true;
|
|
185
173
|
}
|
|
186
174
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mustbeConfig.js","sourceRoot":"","sources":["mustbeConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,0CAqCC;
|
|
1
|
+
{"version":3,"file":"mustbeConfig.js","sourceRoot":"","sources":["mustbeConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,0CAqCC;AA6CD,4CAkBC;AA1ID,4DAAgD;AAChD,6CAOyB;AACzB,+DAA+D;AAC/D,wDAAwD;AACxD,6CAAwD;AACxD,wGAAkF;AAClF,4DAAsF;AACtF,0CAA4C;AAC5C,oDAAmD;AAEnD,IAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAQjC,+DAA+D;AAC/D,IAAM,YAAY,GAAG,CAAC;IACpB,IAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IAExD,OAAO;QACL,UAAU,EAAE,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;QACtD,aAAa,EAAE,Y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,GAAG,EAAE,IAAI,CAAC,CAAC;IAEvD,IAAM,aAAa,GAAG,IAAI,MAAM,CAAC,WAAI,gBAAgB,MAAG,CAAC,CAAC;IAC1D,IAAM,cAAc,GAAG,IAAI,MAAM,CAAC,WAAI,iBAAiB,MAAG,CAAC,CAAC;IAE5D,IAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAElF,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { JsonResponse, Request } from "../..";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
(): void;
|
|
4
|
-
requestHandler: (req: Request<any, any>, res?: import("../..").Response<any>, next?: import("../..").Next) => Promise<JsonResponse<any> | void>;
|
|
5
|
-
PATH: string;
|
|
6
|
-
unregister(): void;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../..").Request<any, any>, res?: import("../../..").Response<any>, next?: import("../../..").Next) => Promise<import("../../..").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
package/api/productTypes/customization/updateOrganizationIdForProductTypeCustomizationsEndpoint.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../../").Request<any, any>, res?: import("../../../").Response<any>, next?: import("../../../").Next) => Promise<import("../../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../../").Request<any, any>, res?: import("../../../").Response<any>, next?: import("../../../").Next) => Promise<import("../../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../../").Request<any, any>, res?: import("../../../").Response<any>, next?: import("../../../").Next) => Promise<import("../../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../../").Request<any, any>, res?: import("../../../").Response<any>, next?: import("../../../").Next) => Promise<import("../../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../../").Request<any, any>, res?: import("../../../").Response<any>, next?: import("../../../").Next) => Promise<import("../../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../../").Request<any, any>, res?: import("../../../").Response<any>, next?: import("../../../").Next) => Promise<import("../../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../../").Request<any, any>, res?: import("../../../").Response<any>, next?: import("../../../").Next) => Promise<import("../../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../../").Request<any, any>, res?: import("../../../").Response<any>, next?: import("../../../").Next) => Promise<import("../../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../../").Request<any, any>, res?: import("../../../").Response<any>, next?: import("../../../").Next) => Promise<import("../../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
(): void;
|
|
3
|
-
requestHandler: (req: import("../../").Request<any, any>, res?: import("../../").Response<any>, next?: import("../../").Next) => Promise<import("../../").JsonResponse<any> | void>;
|
|
4
|
-
PATH: string;
|
|
5
|
-
unregister(): void;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
package/api/routes.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function registerEndpoints(): void;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NoteReferenceType } from "../../../constants/constants";
|
|
2
|
-
export declare const createNoteSchema: {
|
|
3
|
-
type: string;
|
|
4
|
-
properties: {
|
|
5
|
-
reference: {
|
|
6
|
-
type: string;
|
|
7
|
-
properties: {
|
|
8
|
-
referenceId: {
|
|
9
|
-
type: string;
|
|
10
|
-
minLength: number;
|
|
11
|
-
};
|
|
12
|
-
referenceType: {
|
|
13
|
-
type: string;
|
|
14
|
-
enum: NoteReferenceType[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
required: string[];
|
|
18
|
-
additionalProperties: boolean;
|
|
19
|
-
};
|
|
20
|
-
content: {
|
|
21
|
-
type: string;
|
|
22
|
-
description: string;
|
|
23
|
-
minLength: number;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
required: string[];
|
|
27
|
-
additionalProperties: boolean;
|
|
28
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { NoteReferenceType } from "../../../constants/constants";
|
|
2
|
-
export declare const getNotesByReferenceIdSchema: {
|
|
3
|
-
type: string;
|
|
4
|
-
properties: {
|
|
5
|
-
q: {
|
|
6
|
-
type: string;
|
|
7
|
-
};
|
|
8
|
-
page: {
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
size: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
sortBy: {
|
|
15
|
-
type: string;
|
|
16
|
-
enum: string[];
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
sortOrder: {
|
|
20
|
-
type: string;
|
|
21
|
-
enum: string[];
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
referenceId: {
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
referenceType: {
|
|
28
|
-
type: string;
|
|
29
|
-
enum: NoteReferenceType[];
|
|
30
|
-
};
|
|
31
|
-
createdBy: {
|
|
32
|
-
type: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
additionalProperties: boolean;
|
|
36
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { NoteReferenceType } from "../../../constants/constants";
|
|
2
|
-
export declare const getNotesByUserIdSchema: {
|
|
3
|
-
type: string;
|
|
4
|
-
properties: {
|
|
5
|
-
userId: {
|
|
6
|
-
type: string;
|
|
7
|
-
minLength: number;
|
|
8
|
-
};
|
|
9
|
-
q: {
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
page: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
size: {
|
|
16
|
-
type: string;
|
|
17
|
-
};
|
|
18
|
-
sortBy: {
|
|
19
|
-
type: string;
|
|
20
|
-
enum: string[];
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
sortOrder: {
|
|
24
|
-
type: string;
|
|
25
|
-
enum: string[];
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
referenceId: {
|
|
29
|
-
type: string;
|
|
30
|
-
};
|
|
31
|
-
referenceType: {
|
|
32
|
-
type: string;
|
|
33
|
-
enum: NoteReferenceType[];
|
|
34
|
-
};
|
|
35
|
-
createdBy: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
additionalProperties: boolean;
|
|
40
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const createPrescriptionSchema: {
|
|
2
|
-
type: string;
|
|
3
|
-
properties: {
|
|
4
|
-
organization: {
|
|
5
|
-
type: string;
|
|
6
|
-
};
|
|
7
|
-
showForCustomer: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
imageUrl: {
|
|
11
|
-
type: string;
|
|
12
|
-
maxLength: number;
|
|
13
|
-
};
|
|
14
|
-
stack: {
|
|
15
|
-
type: string;
|
|
16
|
-
};
|
|
17
|
-
name: {
|
|
18
|
-
type: string;
|
|
19
|
-
minLength: number;
|
|
20
|
-
};
|
|
21
|
-
status: {
|
|
22
|
-
type: string;
|
|
23
|
-
maxLength: number;
|
|
24
|
-
};
|
|
25
|
-
products: {
|
|
26
|
-
type: string;
|
|
27
|
-
default: never[];
|
|
28
|
-
};
|
|
29
|
-
language: {
|
|
30
|
-
type: string;
|
|
31
|
-
maxLength: number;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
required: string[];
|
|
35
|
-
additionalProperties: boolean;
|
|
36
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare const updatePrescriptionSchema: {
|
|
2
|
-
type: string;
|
|
3
|
-
properties: {
|
|
4
|
-
organization: {
|
|
5
|
-
type: string;
|
|
6
|
-
};
|
|
7
|
-
name: {
|
|
8
|
-
type: string;
|
|
9
|
-
minLength: number;
|
|
10
|
-
};
|
|
11
|
-
showForCustomer: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
imageUrl: {
|
|
15
|
-
type: string;
|
|
16
|
-
maxLength: number;
|
|
17
|
-
};
|
|
18
|
-
status: {
|
|
19
|
-
type: string;
|
|
20
|
-
maxLength: number;
|
|
21
|
-
};
|
|
22
|
-
owner: {
|
|
23
|
-
type: string;
|
|
24
|
-
};
|
|
25
|
-
stack: {
|
|
26
|
-
type: string;
|
|
27
|
-
};
|
|
28
|
-
products: {
|
|
29
|
-
type: string;
|
|
30
|
-
default: never[];
|
|
31
|
-
};
|
|
32
|
-
language: {
|
|
33
|
-
type: string;
|
|
34
|
-
maxLength: number;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
required: string[];
|
|
38
|
-
additionalProperties: boolean;
|
|
39
|
-
};
|