@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.
Files changed (51) hide show
  1. package/lib/auth/mustbeConfig.js +9 -21
  2. package/lib/auth/mustbeConfig.js.map +1 -1
  3. package/package.json +1 -1
  4. package/api/notes/createNoteEndpoint.d.ts +0 -8
  5. package/api/notes/getNoteByIdEndpoint.d.ts +0 -7
  6. package/api/notes/getNotesByReferenceIdEndpoint.d.ts +0 -7
  7. package/api/notes/removeNoteEndpoint.d.ts +0 -7
  8. package/api/notes/updateNoteEndpoint.d.ts +0 -7
  9. package/api/prescriptions/createPrescriptionEndpoint.d.ts +0 -7
  10. package/api/prescriptions/getAllPrescriptionsByOrganizationIdEndpoint.d.ts +0 -7
  11. package/api/prescriptions/getAllPrescriptionsEndpoint.d.ts +0 -7
  12. package/api/prescriptions/getPrescriptionByIdEndpoint.d.ts +0 -7
  13. package/api/prescriptions/removePrescriptionEndpoint.d.ts +0 -7
  14. package/api/prescriptions/updatePrescriptionEndpoint.d.ts +0 -7
  15. package/api/productTypes/createProductTypeEndpoint.d.ts +0 -7
  16. package/api/productTypes/customization/getThingProductTypeCustomizationEndpoint.d.ts +0 -7
  17. package/api/productTypes/customization/updateOrganizationIdForProductTypeCustomizationsEndpoint.d.ts +0 -7
  18. package/api/productTypes/customization/upsertProductTypeCustomizationEndpoint.d.ts +0 -7
  19. package/api/productTypes/getAvailableProductTypesEndpoint.d.ts +0 -7
  20. package/api/productTypes/getProductTypeByIdOrCodeEndpoint.d.ts +0 -7
  21. package/api/productTypes/getProductTypeByThingIdEndpoint.d.ts +0 -7
  22. package/api/productTypes/getProductTypesEndpoint.d.ts +0 -7
  23. package/api/productTypes/internal/deleteProductTypeCustomizationsByQueryEndpoint.d.ts +0 -7
  24. package/api/productTypes/internal/getProductTypesAndCustomizationsEndpoint.d.ts +0 -7
  25. package/api/productTypes/removeProductTypeEndpoint.d.ts +0 -7
  26. package/api/productTypes/sharing/createProductTypeSharingEndpoint.d.ts +0 -7
  27. package/api/productTypes/sharing/getAllProductTypeSharingEndpoint.d.ts +0 -7
  28. package/api/productTypes/sharing/getProductTypeAclsByShareIdEndpoint.d.ts +0 -7
  29. package/api/productTypes/sharing/getProductTypeSharingByIdEndpoint.d.ts +0 -7
  30. package/api/productTypes/sharing/removeProductTypeSharingEndpoint.d.ts +0 -7
  31. package/api/productTypes/updateProductTypeCapabilitiesEndpoint.d.ts +0 -7
  32. package/api/productTypes/updateProductTypeEndpoint.d.ts +0 -7
  33. package/api/routes.d.ts +0 -1
  34. package/api/schemas/notes/createNoteSchema.d.ts +0 -28
  35. package/api/schemas/notes/getNotesByReferenceIdSchema.d.ts +0 -36
  36. package/api/schemas/notes/getNotesByUserIdSchema.d.ts +0 -40
  37. package/api/schemas/notes/notesSchemasShared.d.ts +0 -5
  38. package/api/schemas/notes/updateNoteSchema.d.ts +0 -12
  39. package/api/schemas/notes/updateOrganizationIdRequestSchema.d.ts +0 -15
  40. package/api/schemas/prescriptions/createPrescriptionSchema.d.ts +0 -36
  41. package/api/schemas/prescriptions/prescriptionIdSchema.d.ts +0 -11
  42. package/api/schemas/prescriptions/updatePrescriptionSchema.d.ts +0 -39
  43. package/api/schemas/productTypes/createProductTypeSchema.d.ts +0 -63
  44. package/api/schemas/productTypes/createProductTypeSharingSchema.d.ts +0 -31
  45. package/api/schemas/productTypes/customization/productTypeCustomizationSchema.d.ts +0 -59
  46. package/api/schemas/productTypes/customization/updateOrganizationIdSchema.d.ts +0 -15
  47. package/api/schemas/productTypes/customization/upsertProductTypeCustomizationSchema.d.ts +0 -68
  48. package/api/schemas/productTypes/productTypesSchemasShared.d.ts +0 -84
  49. package/api/schemas/productTypes/updateCapabilitiesSchema.d.ts +0 -344
  50. package/api/schemas/productTypes/updateProductTypeSchema.d.ts +0 -60
  51. package/api/schemas/schemasShared.d.ts +0 -9
@@ -1,60 +0,0 @@
1
- import { ThingVersion } from "../../../constants/constants";
2
- export declare const updateProductTypeSchema: {
3
- type: string;
4
- properties: {
5
- name: {
6
- type: string;
7
- minLength: number;
8
- };
9
- description: {
10
- type: string;
11
- };
12
- dashboardUri: {
13
- type: string;
14
- };
15
- productImageUrl: {
16
- type: string;
17
- };
18
- category: {
19
- enum: readonly ["sensor", "property", "health", "other", "waterSwitch", "waterMeter", "waterSensor", "weatherSensor"];
20
- default: "sensor";
21
- };
22
- manufacturer: {
23
- type: string;
24
- };
25
- heartbeat: {
26
- type: string;
27
- properties: {
28
- interval: {
29
- type: string[];
30
- default: number;
31
- };
32
- timeout: {
33
- type: string[];
34
- default: number;
35
- };
36
- };
37
- additionalProperties: boolean;
38
- };
39
- canOnlyBeAddedByGlobal: {
40
- type: string;
41
- };
42
- serialNumberPrefix: {
43
- type: string;
44
- maxLength: number;
45
- };
46
- serialNumberQrRegex: {
47
- type: string;
48
- maxLength: number;
49
- };
50
- supportedThingVersions: {
51
- type: string;
52
- items: {
53
- type: string;
54
- enum: ThingVersion[];
55
- };
56
- default: ThingVersion[];
57
- };
58
- };
59
- additionalProperties: boolean;
60
- };
@@ -1,9 +0,0 @@
1
- export declare const idSchema: {
2
- type: string;
3
- minLength: number;
4
- };
5
- export declare const userSchema: {
6
- type: string;
7
- };
8
- /** https://en.wikipedia.org/wiki/E.164 */
9
- export declare const e164number = "^\\+?[1-9]\\d{1,14}$";