@pgds/api-interface 1.6.4 → 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 (53) hide show
  1. package/lib/auth/mustbeConfig.js +9 -21
  2. package/lib/auth/mustbeConfig.js.map +1 -1
  3. package/lib/utils/utils.js +19 -16
  4. package/lib/utils/utils.js.map +1 -1
  5. package/package.json +1 -1
  6. package/api/notes/createNoteEndpoint.d.ts +0 -8
  7. package/api/notes/getNoteByIdEndpoint.d.ts +0 -7
  8. package/api/notes/getNotesByReferenceIdEndpoint.d.ts +0 -7
  9. package/api/notes/removeNoteEndpoint.d.ts +0 -7
  10. package/api/notes/updateNoteEndpoint.d.ts +0 -7
  11. package/api/prescriptions/createPrescriptionEndpoint.d.ts +0 -7
  12. package/api/prescriptions/getAllPrescriptionsByOrganizationIdEndpoint.d.ts +0 -7
  13. package/api/prescriptions/getAllPrescriptionsEndpoint.d.ts +0 -7
  14. package/api/prescriptions/getPrescriptionByIdEndpoint.d.ts +0 -7
  15. package/api/prescriptions/removePrescriptionEndpoint.d.ts +0 -7
  16. package/api/prescriptions/updatePrescriptionEndpoint.d.ts +0 -7
  17. package/api/productTypes/createProductTypeEndpoint.d.ts +0 -7
  18. package/api/productTypes/customization/getThingProductTypeCustomizationEndpoint.d.ts +0 -7
  19. package/api/productTypes/customization/updateOrganizationIdForProductTypeCustomizationsEndpoint.d.ts +0 -7
  20. package/api/productTypes/customization/upsertProductTypeCustomizationEndpoint.d.ts +0 -7
  21. package/api/productTypes/getAvailableProductTypesEndpoint.d.ts +0 -7
  22. package/api/productTypes/getProductTypeByIdOrCodeEndpoint.d.ts +0 -7
  23. package/api/productTypes/getProductTypeByThingIdEndpoint.d.ts +0 -7
  24. package/api/productTypes/getProductTypesEndpoint.d.ts +0 -7
  25. package/api/productTypes/internal/deleteProductTypeCustomizationsByQueryEndpoint.d.ts +0 -7
  26. package/api/productTypes/internal/getProductTypesAndCustomizationsEndpoint.d.ts +0 -7
  27. package/api/productTypes/removeProductTypeEndpoint.d.ts +0 -7
  28. package/api/productTypes/sharing/createProductTypeSharingEndpoint.d.ts +0 -7
  29. package/api/productTypes/sharing/getAllProductTypeSharingEndpoint.d.ts +0 -7
  30. package/api/productTypes/sharing/getProductTypeAclsByShareIdEndpoint.d.ts +0 -7
  31. package/api/productTypes/sharing/getProductTypeSharingByIdEndpoint.d.ts +0 -7
  32. package/api/productTypes/sharing/removeProductTypeSharingEndpoint.d.ts +0 -7
  33. package/api/productTypes/updateProductTypeCapabilitiesEndpoint.d.ts +0 -7
  34. package/api/productTypes/updateProductTypeEndpoint.d.ts +0 -7
  35. package/api/routes.d.ts +0 -1
  36. package/api/schemas/notes/createNoteSchema.d.ts +0 -28
  37. package/api/schemas/notes/getNotesByReferenceIdSchema.d.ts +0 -36
  38. package/api/schemas/notes/getNotesByUserIdSchema.d.ts +0 -40
  39. package/api/schemas/notes/notesSchemasShared.d.ts +0 -5
  40. package/api/schemas/notes/updateNoteSchema.d.ts +0 -12
  41. package/api/schemas/notes/updateOrganizationIdRequestSchema.d.ts +0 -15
  42. package/api/schemas/prescriptions/createPrescriptionSchema.d.ts +0 -36
  43. package/api/schemas/prescriptions/prescriptionIdSchema.d.ts +0 -11
  44. package/api/schemas/prescriptions/updatePrescriptionSchema.d.ts +0 -39
  45. package/api/schemas/productTypes/createProductTypeSchema.d.ts +0 -63
  46. package/api/schemas/productTypes/createProductTypeSharingSchema.d.ts +0 -31
  47. package/api/schemas/productTypes/customization/productTypeCustomizationSchema.d.ts +0 -59
  48. package/api/schemas/productTypes/customization/updateOrganizationIdSchema.d.ts +0 -15
  49. package/api/schemas/productTypes/customization/upsertProductTypeCustomizationSchema.d.ts +0 -68
  50. package/api/schemas/productTypes/productTypesSchemasShared.d.ts +0 -84
  51. package/api/schemas/productTypes/updateCapabilitiesSchema.d.ts +0 -344
  52. package/api/schemas/productTypes/updateProductTypeSchema.d.ts +0 -60
  53. package/api/schemas/schemasShared.d.ts +0 -9
@@ -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
- };
@@ -1,63 +0,0 @@
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
- };
@@ -1,31 +0,0 @@
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
- };
@@ -1,59 +0,0 @@
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
- };
@@ -1,15 +0,0 @@
1
- export declare const UpdateOrganizationIdRequestBodySchema: {
2
- type: string;
3
- properties: {
4
- thingIds: {
5
- type: string;
6
- items: {
7
- type: string;
8
- };
9
- };
10
- newOrganizationId: {
11
- type: string;
12
- };
13
- };
14
- required: string[];
15
- };
@@ -1,68 +0,0 @@
1
- export declare const upsertProductTypeCustomizationSchema: {
2
- type: string;
3
- oneOf: ({
4
- properties: {
5
- organizationId: {
6
- type: string;
7
- };
8
- customization: {
9
- type: string;
10
- properties: {
11
- name: {
12
- type: string[];
13
- minLength: number;
14
- };
15
- heartbeat: {
16
- type: string;
17
- properties: {
18
- interval: {
19
- type: string[];
20
- default: number;
21
- };
22
- timeout: {
23
- type: string[];
24
- default: number;
25
- };
26
- };
27
- additionalProperties: boolean;
28
- };
29
- };
30
- additionalProperties: boolean;
31
- };
32
- thingId?: undefined;
33
- };
34
- required: string[];
35
- additionalProperties: boolean;
36
- } | {
37
- properties: {
38
- thingId: {
39
- type: string;
40
- };
41
- organizationId: {
42
- type: string;
43
- };
44
- customization: {
45
- type: string;
46
- properties: {
47
- heartbeat: {
48
- type: string;
49
- properties: {
50
- interval: {
51
- type: string[];
52
- default: number;
53
- };
54
- timeout: {
55
- type: string[];
56
- default: number;
57
- };
58
- };
59
- additionalProperties: boolean;
60
- };
61
- };
62
- additionalProperties: boolean;
63
- };
64
- };
65
- required: string[];
66
- additionalProperties: boolean;
67
- })[];
68
- };
@@ -1,84 +0,0 @@
1
- export declare const heartbeat: {
2
- type: string;
3
- properties: {
4
- interval: {
5
- type: string[];
6
- default: number;
7
- };
8
- timeout: {
9
- type: string[];
10
- default: number;
11
- };
12
- };
13
- additionalProperties: boolean;
14
- };
15
- export declare const productTypeShareIdSchema: {
16
- type: string;
17
- properties: {
18
- shareId: {
19
- type: string;
20
- minLength: number;
21
- };
22
- productTypeId: {
23
- type: string;
24
- minLength: number;
25
- };
26
- };
27
- required: string[];
28
- additionalProperties: boolean;
29
- };
30
- export declare const productTypeIdSchema: {
31
- type: string;
32
- properties: {
33
- productTypeId: {
34
- type: string;
35
- minLength: number;
36
- };
37
- };
38
- required: string[];
39
- additionalProperties: boolean;
40
- };
41
- export declare const thingCustomization: {
42
- type: string;
43
- properties: {
44
- heartbeat: {
45
- type: string;
46
- properties: {
47
- interval: {
48
- type: string[];
49
- default: number;
50
- };
51
- timeout: {
52
- type: string[];
53
- default: number;
54
- };
55
- };
56
- additionalProperties: boolean;
57
- };
58
- };
59
- additionalProperties: boolean;
60
- };
61
- export declare const organizationCustomization: {
62
- type: string;
63
- properties: {
64
- name: {
65
- type: string[];
66
- minLength: number;
67
- };
68
- heartbeat: {
69
- type: string;
70
- properties: {
71
- interval: {
72
- type: string[];
73
- default: number;
74
- };
75
- timeout: {
76
- type: string[];
77
- default: number;
78
- };
79
- };
80
- additionalProperties: boolean;
81
- };
82
- };
83
- additionalProperties: boolean;
84
- };