@pgds/api-interface 1.6.1 → 1.6.3
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/api/notes/createNoteEndpoint.d.ts +8 -0
- package/api/notes/getNoteByIdEndpoint.d.ts +7 -0
- package/api/notes/getNotesByReferenceIdEndpoint.d.ts +7 -0
- package/api/notes/removeNoteEndpoint.d.ts +7 -0
- package/api/notes/updateNoteEndpoint.d.ts +7 -0
- package/api/prescriptions/createPrescriptionEndpoint.d.ts +7 -0
- package/api/prescriptions/getAllPrescriptionsByOrganizationIdEndpoint.d.ts +7 -0
- package/api/prescriptions/getAllPrescriptionsEndpoint.d.ts +7 -0
- package/api/prescriptions/getPrescriptionByIdEndpoint.d.ts +7 -0
- package/api/prescriptions/removePrescriptionEndpoint.d.ts +7 -0
- package/api/prescriptions/updatePrescriptionEndpoint.d.ts +7 -0
- package/api/productTypes/createProductTypeEndpoint.d.ts +7 -0
- package/api/productTypes/customization/getThingProductTypeCustomizationEndpoint.d.ts +7 -0
- package/api/productTypes/customization/updateOrganizationIdForProductTypeCustomizationsEndpoint.d.ts +7 -0
- package/api/productTypes/customization/upsertProductTypeCustomizationEndpoint.d.ts +7 -0
- package/api/productTypes/getAvailableProductTypesEndpoint.d.ts +7 -0
- package/api/productTypes/getProductTypeByIdOrCodeEndpoint.d.ts +7 -0
- package/api/productTypes/getProductTypeByThingIdEndpoint.d.ts +7 -0
- package/api/productTypes/getProductTypesEndpoint.d.ts +7 -0
- package/api/productTypes/internal/deleteProductTypeCustomizationsByQueryEndpoint.d.ts +7 -0
- package/api/productTypes/internal/getProductTypesAndCustomizationsEndpoint.d.ts +7 -0
- package/api/productTypes/removeProductTypeEndpoint.d.ts +7 -0
- package/api/productTypes/sharing/createProductTypeSharingEndpoint.d.ts +7 -0
- package/api/productTypes/sharing/getAllProductTypeSharingEndpoint.d.ts +7 -0
- package/api/productTypes/sharing/getProductTypeAclsByShareIdEndpoint.d.ts +7 -0
- package/api/productTypes/sharing/getProductTypeSharingByIdEndpoint.d.ts +7 -0
- package/api/productTypes/sharing/removeProductTypeSharingEndpoint.d.ts +7 -0
- package/api/productTypes/updateProductTypeCapabilitiesEndpoint.d.ts +7 -0
- package/api/productTypes/updateProductTypeEndpoint.d.ts +7 -0
- package/api/routes.d.ts +1 -0
- package/api/schemas/notes/createNoteSchema.d.ts +28 -0
- package/api/schemas/notes/getNotesByReferenceIdSchema.d.ts +36 -0
- package/api/schemas/notes/getNotesByUserIdSchema.d.ts +40 -0
- package/api/schemas/notes/notesSchemasShared.d.ts +5 -0
- package/api/schemas/notes/updateNoteSchema.d.ts +12 -0
- package/api/schemas/notes/updateOrganizationIdRequestSchema.d.ts +15 -0
- package/api/schemas/prescriptions/createPrescriptionSchema.d.ts +36 -0
- package/api/schemas/prescriptions/prescriptionIdSchema.d.ts +11 -0
- package/api/schemas/prescriptions/updatePrescriptionSchema.d.ts +39 -0
- package/api/schemas/productTypes/createProductTypeSchema.d.ts +63 -0
- package/api/schemas/productTypes/createProductTypeSharingSchema.d.ts +31 -0
- package/api/schemas/productTypes/customization/productTypeCustomizationSchema.d.ts +59 -0
- package/api/schemas/productTypes/customization/updateOrganizationIdSchema.d.ts +15 -0
- package/api/schemas/productTypes/customization/upsertProductTypeCustomizationSchema.d.ts +68 -0
- package/api/schemas/productTypes/productTypesSchemasShared.d.ts +84 -0
- package/api/schemas/productTypes/updateCapabilitiesSchema.d.ts +344 -0
- package/api/schemas/productTypes/updateProductTypeSchema.d.ts +60 -0
- package/api/schemas/schemasShared.d.ts +9 -0
- package/lib/generator/index.d.ts +19 -0
- package/lib/generator/index.js +165 -0
- package/lib/generator/index.js.map +1 -0
- package/lib/generator/utils/generatorUtils.d.ts +11 -0
- package/lib/generator/utils/generatorUtils.js +135 -0
- package/lib/generator/utils/generatorUtils.js.map +1 -0
- package/lib/repositories/organizationHierarchyRepo.d.ts +4 -1
- package/lib/repositories/organizationHierarchyRepo.js +15 -5
- package/lib/repositories/organizationHierarchyRepo.js.map +1 -1
- package/lib/schemas/TestRequestSchema.d.ts +4 -0
- package/lib/schemas/TestRequestSchema.js +3 -0
- package/lib/schemas/TestRequestSchema.js.map +1 -0
- package/lib/schemas/TestResponseSchema.d.ts +6 -0
- package/lib/schemas/TestResponseSchema.js +5 -0
- package/lib/schemas/TestResponseSchema.js.map +1 -0
- package/lib/server/server.js +14 -7
- package/lib/server/server.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerEndpoints(): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ThingVersion } from "../../../constants/constants";
|
|
2
|
+
export declare const createProductTypeSchema: {
|
|
3
|
+
type: string;
|
|
4
|
+
properties: {
|
|
5
|
+
name: {
|
|
6
|
+
type: string;
|
|
7
|
+
minLength: number;
|
|
8
|
+
};
|
|
9
|
+
owner: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
productCode: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
dashboardUri: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
productImageUrl: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
category: {
|
|
22
|
+
enum: readonly ["sensor", "property", "health", "other", "waterSwitch", "waterMeter", "waterSensor", "weatherSensor"];
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
manufacturer: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
description: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
heartbeat: {
|
|
32
|
+
type: string;
|
|
33
|
+
properties: {
|
|
34
|
+
interval: {
|
|
35
|
+
type: string[];
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
timeout: {
|
|
39
|
+
type: string[];
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
additionalProperties: boolean;
|
|
44
|
+
};
|
|
45
|
+
canOnlyBeAddedByGlobal: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
serialNumberPrefix: {
|
|
49
|
+
type: string;
|
|
50
|
+
maxLength: number;
|
|
51
|
+
};
|
|
52
|
+
supportedThingVersions: {
|
|
53
|
+
type: string;
|
|
54
|
+
items: {
|
|
55
|
+
type: string;
|
|
56
|
+
enum: ThingVersion[];
|
|
57
|
+
};
|
|
58
|
+
default: ThingVersion[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
required: string[];
|
|
62
|
+
additionalProperties: boolean;
|
|
63
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const createProductTypeSharingSchema: {
|
|
2
|
+
type: string;
|
|
3
|
+
properties: {
|
|
4
|
+
type: {
|
|
5
|
+
type: string;
|
|
6
|
+
pattern: string;
|
|
7
|
+
};
|
|
8
|
+
shareTo: {
|
|
9
|
+
type: string;
|
|
10
|
+
minLength: number;
|
|
11
|
+
};
|
|
12
|
+
allowRead: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
allowWrite: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
allowDelete: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
productTypeIdOrCode: {
|
|
22
|
+
type: string;
|
|
23
|
+
items: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
minItems: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
required: string[];
|
|
30
|
+
additionalProperties: boolean;
|
|
31
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const productTypeCustomizationSchema: {
|
|
2
|
+
type: string;
|
|
3
|
+
properties: {
|
|
4
|
+
productTypeCustomizationId: {
|
|
5
|
+
type: string;
|
|
6
|
+
};
|
|
7
|
+
productCode: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
organizationId: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
customization: {
|
|
14
|
+
type: string;
|
|
15
|
+
properties: {
|
|
16
|
+
name: {
|
|
17
|
+
type: string;
|
|
18
|
+
minLength: number;
|
|
19
|
+
};
|
|
20
|
+
heartbeat: {
|
|
21
|
+
type: string;
|
|
22
|
+
properties: {
|
|
23
|
+
interval: {
|
|
24
|
+
type: string[];
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
timeout: {
|
|
28
|
+
type: string[];
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
additionalProperties: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
additionalProperties: boolean;
|
|
36
|
+
};
|
|
37
|
+
metadata: {
|
|
38
|
+
type: string;
|
|
39
|
+
properties: {
|
|
40
|
+
createdBy: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
createdAt: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
modifiedBy: {
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
modifiedAt: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
required: string[];
|
|
54
|
+
additionalProperties: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
required: string[];
|
|
58
|
+
additionalProperties: boolean;
|
|
59
|
+
};
|