@itentialopensource/adapter-digicert_pki 0.1.1 → 1.1.0

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 (125) hide show
  1. package/.eslintignore +0 -1
  2. package/.jshintrc +3 -0
  3. package/CALLS.md +957 -3
  4. package/CHANGELOG.md +16 -1
  5. package/CONTRIBUTING.md +1 -160
  6. package/ENHANCE.md +2 -2
  7. package/README.md +31 -22
  8. package/adapter.js +13682 -334
  9. package/adapterBase.js +538 -873
  10. package/changelogs/changelog.md +16 -0
  11. package/entities/ACME/action.json +166 -0
  12. package/entities/ACME/mockdatafiles/createAcmeAuthentication-default.json +21 -0
  13. package/entities/ACME/mockdatafiles/getAcmeAuthentication-default.json +21 -0
  14. package/entities/ACME/mockdatafiles/listAcmeAuthentication-default.json +41 -0
  15. package/entities/ACME/mockdatafiles/updateAcmeAuthentication-default.json +21 -0
  16. package/entities/ACME/schema.json +125 -0
  17. package/entities/AuthenticationCACertificates/action.json +107 -0
  18. package/entities/AuthenticationCACertificates/schema.json +155 -0
  19. package/entities/AuthenticationCATemplates/action.json +187 -0
  20. package/entities/AuthenticationCATemplates/mockdatafiles/createAuthenticationCATemplate-default.json +33 -0
  21. package/entities/AuthenticationCATemplates/mockdatafiles/getAuthenticationCATemplate-default.json +33 -0
  22. package/entities/AuthenticationCATemplates/mockdatafiles/updateAuthenticationCATemplate-default.json +33 -0
  23. package/entities/AuthenticationCATemplates/schema.json +137 -0
  24. package/entities/AuthenticationCertificates/action.json +166 -0
  25. package/entities/AuthenticationCertificates/mockdatafiles/addAuthenticationCertificate-default.json +48 -0
  26. package/entities/AuthenticationCertificates/mockdatafiles/getAuthenticationCertificateDetails-default.json +49 -0
  27. package/entities/AuthenticationCertificates/mockdatafiles/listAuthenticationCertificates-default.json +93 -0
  28. package/entities/AuthenticationCertificates/mockdatafiles/updateAuthenticationCertificate-default.json +48 -0
  29. package/entities/AuthenticationCertificates/schema.json +202 -0
  30. package/entities/BatchCertificateEnrollment/action.json +268 -0
  31. package/entities/BatchCertificateEnrollment/mockdatafiles/batchCSREnroll-default.json +22 -0
  32. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGen-default.json +22 -0
  33. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGenMac-default.json +22 -0
  34. package/entities/BatchCertificateEnrollment/mockdatafiles/downloadCertificates-default.json +18 -0
  35. package/entities/BatchCertificateEnrollment/mockdatafiles/getBatchJobSettings-default.json +22 -0
  36. package/entities/BatchCertificateEnrollment/mockdatafiles/regenerateBatchJobPasscode-default.json +22 -0
  37. package/entities/BatchCertificateEnrollment/mockdatafiles/updateBatchJobSettings-default.json +22 -0
  38. package/entities/BatchCertificateEnrollment/schema.json +284 -0
  39. package/entities/CertificateProfiles/action.json +206 -0
  40. package/entities/CertificateProfiles/mockdatafiles/listCertificateProfiles-default.json +219 -0
  41. package/entities/CertificateProfiles/schema.json +116 -0
  42. package/entities/CertificateRequests/action.json +25 -0
  43. package/entities/CertificateRequests/mockdatafiles/getRequestStatus-default.json +5 -0
  44. package/entities/CertificateRequests/schema.json +30 -0
  45. package/entities/CertificateTemplates/action.json +186 -0
  46. package/entities/CertificateTemplates/schema.json +104 -0
  47. package/entities/Certificates/action.json +312 -0
  48. package/entities/Certificates/mockdatafiles/downloadApprovedCertificate-default.json +47 -0
  49. package/entities/Certificates/mockdatafiles/renewBySerial-default.json +23 -0
  50. package/entities/Certificates/mockdatafiles/renewCertificate-default.json +31 -0
  51. package/entities/Certificates/schema.json +462 -0
  52. package/entities/DeviceProfiles/action.json +126 -0
  53. package/entities/DeviceProfiles/mockdatafiles/createDeviceProfile-default.json +28 -0
  54. package/entities/DeviceProfiles/mockdatafiles/getDeviceProfile-default.json +28 -0
  55. package/entities/DeviceProfiles/mockdatafiles/listdeviceprofiles-default.json +53 -0
  56. package/entities/DeviceProfiles/mockdatafiles/updateDeviceProfile-default.json +28 -0
  57. package/entities/DeviceProfiles/schema.json +57 -0
  58. package/entities/Devices/action.json +166 -0
  59. package/entities/Devices/mockdatafiles/archiveDevice-default.json +33 -0
  60. package/entities/Devices/mockdatafiles/disableDevice-default.json +33 -0
  61. package/entities/Devices/mockdatafiles/enableDevice-default.json +33 -0
  62. package/entities/Devices/mockdatafiles/restoreDevice-default.json +33 -0
  63. package/entities/Devices/schema.json +103 -0
  64. package/entities/DevicesV2/action.json +186 -0
  65. package/entities/DevicesV2/mockdatafiles/archiveDeviceV2-default.json +33 -0
  66. package/entities/DevicesV2/mockdatafiles/disableDeviceV2-default.json +33 -0
  67. package/entities/DevicesV2/mockdatafiles/enableDeviceV2-default.json +33 -0
  68. package/entities/DevicesV2/mockdatafiles/restoreDeviceV2-default.json +33 -0
  69. package/entities/DevicesV2/schema.json +115 -0
  70. package/entities/Divisions/action.json +288 -0
  71. package/entities/Divisions/schema.json +164 -0
  72. package/entities/EnrollmentProfilePasscodes/action.json +186 -0
  73. package/entities/EnrollmentProfilePasscodes/schema.json +181 -0
  74. package/entities/EnrollmentProfiles/action.json +191 -0
  75. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfile-default.json +153 -0
  76. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfileSpecification-default.json +125 -0
  77. package/entities/EnrollmentProfiles/mockdatafiles/updateEnrollmentProfile-default.json +117 -0
  78. package/entities/EnrollmentProfiles/schema.json +148 -0
  79. package/entities/ExternalBatchCertificateEnrollment/action.json +150 -0
  80. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/batchEnrollExternal-default.json +16 -0
  81. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCertificateValue-default.json +154 -0
  82. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCommonName-default.json +150 -0
  83. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCertificateValue-default.json +36 -0
  84. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCommonName-default.json +130 -0
  85. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndUniqueId-default.json +42 -0
  86. package/entities/ExternalBatchCertificateEnrollment/schema.json +102 -0
  87. package/entities/Gateways/action.json +187 -0
  88. package/entities/Gateways/schema.json +126 -0
  89. package/entities/ICAs/action.json +46 -0
  90. package/entities/ICAs/schema.json +163 -0
  91. package/entities/OCSPGroups/action.json +167 -0
  92. package/entities/OCSPGroups/schema.json +466 -0
  93. package/metadata.json +49 -0
  94. package/package.json +22 -25
  95. package/pronghorn.json +23155 -266
  96. package/propertiesSchema.json +455 -42
  97. package/refs?service=git-upload-pack +0 -0
  98. package/report/adapter-openapi.json +3224 -0
  99. package/report/adapter-openapi.yaml +2185 -0
  100. package/report/adapterInfo.json +8 -8
  101. package/report/updateReport1691508686598.json +120 -0
  102. package/report/updateReport1692203137726.json +120 -0
  103. package/report/updateReport1694467869659.json +120 -0
  104. package/report/updateReport1698422457936.json +120 -0
  105. package/sampleProperties.json +67 -6
  106. package/test/integration/adapterTestBasicGet.js +1 -1
  107. package/test/integration/adapterTestConnectivity.js +91 -42
  108. package/test/integration/adapterTestIntegration.js +4704 -32
  109. package/test/unit/adapterBaseTestUnit.js +388 -313
  110. package/test/unit/adapterTestUnit.js +5211 -148
  111. package/utils/adapterInfo.js +1 -1
  112. package/utils/addAuth.js +1 -1
  113. package/utils/artifactize.js +1 -1
  114. package/utils/checkMigrate.js +1 -1
  115. package/utils/entitiesToDB.js +1 -0
  116. package/utils/findPath.js +1 -1
  117. package/utils/methodDocumentor.js +71 -23
  118. package/utils/modify.js +13 -15
  119. package/utils/packModificationScript.js +1 -1
  120. package/utils/taskMover.js +309 -0
  121. package/utils/tbScript.js +3 -10
  122. package/utils/tbUtils.js +2 -3
  123. package/utils/testRunner.js +1 -1
  124. package/utils/troubleshootingAdapter.js +1 -3
  125. package/workflows/README.md +0 -3
@@ -0,0 +1,53 @@
1
+ {
2
+ "limit": 20,
3
+ "offset": 0,
4
+ "pagination": true,
5
+ "next": false,
6
+ "total": 2,
7
+ "records": [
8
+ {
9
+ "device_api_allow_read": true,
10
+ "device_api_allow_write": true,
11
+ "device_api_allow_revoke": true,
12
+ "device_api_allow_renew_certificate": true,
13
+ "device_api_allow_enroll_certificate": false,
14
+ "name": "Example device profile",
15
+ "description": "Example description",
16
+ "id": "7af1665a-312b-4623-bc42-4ecdc3a991e4",
17
+ "status": "ACTIVE",
18
+ "fields": [
19
+ {
20
+ "id": "a23359cf-4d46-4a6f-8836-b57ade0ba490",
21
+ "name": "mandatory",
22
+ "mandatory": true
23
+ },
24
+ {
25
+ "id": "5cec6af9-03d4-42a2-8a6f-398e02f9ff06",
26
+ "name": "optional",
27
+ "mandatory": false
28
+ }
29
+ ],
30
+ "division": {
31
+ "id": "7916bac3-9e40-42bc-9ca1-9e6be33ed4f5",
32
+ "name": "IoT Account"
33
+ },
34
+ "account_id": "5765eaa2-4e4d-4505-8f43-4193aeef2137"
35
+ },
36
+ {
37
+ "device_api_allow_read": false,
38
+ "device_api_allow_write": false,
39
+ "device_api_allow_revoke": false,
40
+ "device_api_allow_renew_certificate": false,
41
+ "device_api_allow_enroll_certificate": false,
42
+ "name": "Example device profile 2",
43
+ "id": "14b5b58b-170a-4282-ad6a-f7323361a88e",
44
+ "status": "ACTIVE",
45
+ "fields": [],
46
+ "division": {
47
+ "id": "16ab78eb-09c3-449a-86a8-542c95edd310",
48
+ "name": "External Account"
49
+ },
50
+ "account_id": "5c84f89c-46d3-4554-a2d2-c3daa81b153f"
51
+ }
52
+ ]
53
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "id": "dcfe811c-ecf1-4d2e-bf44-462963bc4ade",
3
+ "name": "Device profile example",
4
+ "description": "An example device profile",
5
+ "status": "ACTIVE",
6
+ "device_api_allow_read": true,
7
+ "device_api_allow_write": true,
8
+ "device_api_allow_revoke": true,
9
+ "device_api_allow_renew_certificate": true,
10
+ "device_api_allow_enroll_certificate": false,
11
+ "fields": [
12
+ {
13
+ "id": "226ca489-1ce2-49ef-ab23-5968ae6440ef",
14
+ "name": "mandatory",
15
+ "mandatory": true
16
+ },
17
+ {
18
+ "id": "661820ce-4d8b-45bd-af2b-4baf924b8650",
19
+ "name": "optional",
20
+ "mandatory": false
21
+ }
22
+ ],
23
+ "division": {
24
+ "id": "d5faa1e-623a-47a9-831b-b9397c33395f",
25
+ "name": "IoT Account"
26
+ },
27
+ "account_id": "f92834ce-cdea-1584-b154-193bb198345e"
28
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "createDeviceProfile",
14
+ "listdeviceprofiles",
15
+ "getDeviceProfile",
16
+ "updateDeviceProfile",
17
+ "deleteDeviceProfile",
18
+ "restoreDeviceProfile"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ },
22
+ "accountId": {
23
+ "type": "string",
24
+ "description": "Limits results to device profiles for an account with the given ID.",
25
+ "parse": false,
26
+ "encode": false,
27
+ "encrypt": {
28
+ "type": "AES",
29
+ "key": ""
30
+ },
31
+ "external_name": "account_id"
32
+ },
33
+ "divisionId": {
34
+ "type": "string",
35
+ "description": "Limits results to device profiles for a division with the given ID.",
36
+ "parse": false,
37
+ "encode": false,
38
+ "encrypt": {
39
+ "type": "AES",
40
+ "key": ""
41
+ },
42
+ "external_name": "division_id"
43
+ },
44
+ "deviceProfileId": {
45
+ "type": "string",
46
+ "description": "Device profile ID (UUID)",
47
+ "parse": false,
48
+ "encode": false,
49
+ "encrypt": {
50
+ "type": "AES",
51
+ "key": ""
52
+ },
53
+ "external_name": "device_profile_id"
54
+ }
55
+ },
56
+ "definitions": {}
57
+ }
@@ -0,0 +1,166 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "createDevice",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/v1/device?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getDeviceList",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/api/v1/device?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getDeviceDetails",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/api/v1/device/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "updateDevice",
67
+ "protocol": "REST",
68
+ "method": "PUT",
69
+ "entitypath": "{base_path}/{version}/api/v1/device/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "archiveDevice",
87
+ "protocol": "REST",
88
+ "method": "DELETE",
89
+ "entitypath": "{base_path}/{version}/api/v1/device/{pathv1}?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": "mockdatafiles/archiveDevice-default.json"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "enableDevice",
107
+ "protocol": "REST",
108
+ "method": "PUT",
109
+ "entitypath": "{base_path}/{version}/api/v1/device/{pathv1}/enable?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": "mockdatafiles/enableDevice-default.json"
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "disableDevice",
127
+ "protocol": "REST",
128
+ "method": "PUT",
129
+ "entitypath": "{base_path}/{version}/api/v1/device/{pathv1}/disable?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "requestDatatype": "JSON",
135
+ "responseDatatype": "JSON",
136
+ "headers": {},
137
+ "responseObjects": [
138
+ {
139
+ "type": "default",
140
+ "key": "",
141
+ "mockFile": "mockdatafiles/disableDevice-default.json"
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "name": "restoreDevice",
147
+ "protocol": "REST",
148
+ "method": "PUT",
149
+ "entitypath": "{base_path}/{version}/api/v1/device/{pathv1}/undelete?{query}",
150
+ "requestSchema": "schema.json",
151
+ "responseSchema": "schema.json",
152
+ "timeout": 0,
153
+ "sendEmpty": false,
154
+ "requestDatatype": "JSON",
155
+ "responseDatatype": "JSON",
156
+ "headers": {},
157
+ "responseObjects": [
158
+ {
159
+ "type": "default",
160
+ "key": "",
161
+ "mockFile": "mockdatafiles/restoreDevice-default.json"
162
+ }
163
+ ]
164
+ }
165
+ ]
166
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "id": "64c02969-3890-4da8-a5ef-b574fd72887e",
3
+ "account_id": "1d1ec1ec-6502-11e9-a923-1681be663d3e",
4
+ "division": {
5
+ "id": "fd5faa1e-623a-47a9-831b-b9397c33395f",
6
+ "name": "Mock Division 1"
7
+ },
8
+ "device_identifier": "New Device",
9
+ "device_profile": {
10
+ "id": "a81a431a-be7b-4f2e-8afd-b2778491511f",
11
+ "name": "Device Profile"
12
+ },
13
+ "created": "2020-04-22T07:13:20Z",
14
+ "updated": "2020-04-24T09:23:21Z",
15
+ "status": "DELETED",
16
+ "fields": [
17
+ {
18
+ "id": "417c328e-604c-4e94-9112-ee58f12277fb",
19
+ "name": "Mandatory Field",
20
+ "value": "updated mandatory value",
21
+ "mandatory": true
22
+ },
23
+ {
24
+ "id": "90eb4de2-ae8a-48a0-a904-d30c5ab6e1de",
25
+ "name": "Optional Field",
26
+ "value": "updated optional value",
27
+ "mandatory": false
28
+ }
29
+ ],
30
+ "device_api_allow_read": true,
31
+ "device_api_allow_write": true,
32
+ "device_api_allow_renew_certificate": true
33
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "id": "64c02969-3890-4da8-a5ef-b574fd72887e",
3
+ "account_id": "1d1ec1ec-6502-11e9-a923-1681be663d3e",
4
+ "division": {
5
+ "id": "fd5faa1e-623a-47a9-831b-b9397c33395f",
6
+ "name": "Mock Division 1"
7
+ },
8
+ "device_identifier": "New Device",
9
+ "device_profile": {
10
+ "id": "a81a431a-be7b-4f2e-8afd-b2778491511f",
11
+ "name": "Device Profile"
12
+ },
13
+ "created": "2020-04-22T07:13:20Z",
14
+ "updated": "2020-04-24T09:23:21Z",
15
+ "status": "DISABLED",
16
+ "fields": [
17
+ {
18
+ "id": "417c328e-604c-4e94-9112-ee58f12277fb",
19
+ "name": "Mandatory Field",
20
+ "value": "updated mandatory value",
21
+ "mandatory": true
22
+ },
23
+ {
24
+ "id": "90eb4de2-ae8a-48a0-a904-d30c5ab6e1de",
25
+ "name": "Optional Field",
26
+ "value": "updated optional value",
27
+ "mandatory": false
28
+ }
29
+ ],
30
+ "device_api_allow_read": true,
31
+ "device_api_allow_write": true,
32
+ "device_api_allow_renew_certificate": true
33
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "id": "64c02969-3890-4da8-a5ef-b574fd72887e",
3
+ "account_id": "1d1ec1ec-6502-11e9-a923-1681be663d3e",
4
+ "division": {
5
+ "id": "fd5faa1e-623a-47a9-831b-b9397c33395f",
6
+ "name": "Mock Division 1"
7
+ },
8
+ "device_identifier": "New Device",
9
+ "device_profile": {
10
+ "id": "a81a431a-be7b-4f2e-8afd-b2778491511f",
11
+ "name": "Device Profile"
12
+ },
13
+ "created": "2020-04-22T07:13:20Z",
14
+ "updated": "2020-04-24T09:23:21Z",
15
+ "status": "ACTIVE",
16
+ "fields": [
17
+ {
18
+ "id": "417c328e-604c-4e94-9112-ee58f12277fb",
19
+ "name": "Mandatory Field",
20
+ "value": "updated mandatory value",
21
+ "mandatory": true
22
+ },
23
+ {
24
+ "id": "90eb4de2-ae8a-48a0-a904-d30c5ab6e1de",
25
+ "name": "Optional Field",
26
+ "value": "updated optional value",
27
+ "mandatory": false
28
+ }
29
+ ],
30
+ "device_api_allow_read": true,
31
+ "device_api_allow_write": true,
32
+ "device_api_allow_renew_certificate": true
33
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "id": "64c02969-3890-4da8-a5ef-b574fd72887e",
3
+ "account_id": "1d1ec1ec-6502-11e9-a923-1681be663d3e",
4
+ "division": {
5
+ "id": "fd5faa1e-623a-47a9-831b-b9397c33395f",
6
+ "name": "Mock Division 1"
7
+ },
8
+ "device_identifier": "New Device",
9
+ "device_profile": {
10
+ "id": "a81a431a-be7b-4f2e-8afd-b2778491511f",
11
+ "name": "Device Profile"
12
+ },
13
+ "created": "2020-04-22T07:13:20Z",
14
+ "updated": "2020-04-24T09:23:21Z",
15
+ "status": "ACTIVE",
16
+ "fields": [
17
+ {
18
+ "id": "417c328e-604c-4e94-9112-ee58f12277fb",
19
+ "name": "Mandatory Field",
20
+ "value": "updated mandatory value",
21
+ "mandatory": true
22
+ },
23
+ {
24
+ "id": "90eb4de2-ae8a-48a0-a904-d30c5ab6e1de",
25
+ "name": "Optional Field",
26
+ "value": "updated optional value",
27
+ "mandatory": false
28
+ }
29
+ ],
30
+ "device_api_allow_read": true,
31
+ "device_api_allow_write": true,
32
+ "device_api_allow_renew_certificate": true
33
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "createDevice",
14
+ "getDeviceList",
15
+ "getDeviceDetails",
16
+ "updateDevice",
17
+ "archiveDevice",
18
+ "enableDevice",
19
+ "disableDevice",
20
+ "restoreDevice"
21
+ ],
22
+ "external_name": "ph_request_type"
23
+ },
24
+ "deviceIdentifier": {
25
+ "type": "string",
26
+ "description": "Limits response data to records that use a specific device identifier.",
27
+ "parse": false,
28
+ "encode": false,
29
+ "encrypt": {
30
+ "type": "AES",
31
+ "key": ""
32
+ },
33
+ "external_name": "device_identifier"
34
+ },
35
+ "createdFrom": {
36
+ "type": "string",
37
+ "description": "Limits response data to device records created after the given date. Format: `YYYY-MM-DD`",
38
+ "parse": false,
39
+ "encode": false,
40
+ "encrypt": {
41
+ "type": "AES",
42
+ "key": ""
43
+ },
44
+ "external_name": "created_from"
45
+ },
46
+ "createdTo": {
47
+ "type": "string",
48
+ "description": "Limits response data to device records created before the given date. Format: `YYYY-MM-DD`",
49
+ "parse": false,
50
+ "encode": false,
51
+ "encrypt": {
52
+ "type": "AES",
53
+ "key": ""
54
+ },
55
+ "external_name": "created_to"
56
+ },
57
+ "divisionId": {
58
+ "type": "string",
59
+ "description": "Limits response data to device records associated with a specific division ID.",
60
+ "parse": false,
61
+ "encode": false,
62
+ "encrypt": {
63
+ "type": "AES",
64
+ "key": ""
65
+ },
66
+ "external_name": "division_id"
67
+ },
68
+ "updatedFrom": {
69
+ "type": "string",
70
+ "description": "Limits response data to device records updated after a specific date. Format: `YYYY-MM-DD`",
71
+ "parse": false,
72
+ "encode": false,
73
+ "encrypt": {
74
+ "type": "AES",
75
+ "key": ""
76
+ },
77
+ "external_name": "updated_from"
78
+ },
79
+ "updatedTo": {
80
+ "type": "string",
81
+ "description": "Limits response data to device records updated before a specific date. Format: `YYYY-MM-DD`",
82
+ "parse": false,
83
+ "encode": false,
84
+ "encrypt": {
85
+ "type": "AES",
86
+ "key": ""
87
+ },
88
+ "external_name": "updated_to"
89
+ },
90
+ "deviceProfileId": {
91
+ "type": "string",
92
+ "description": "Limits response data to device records with a specific device profile ID.",
93
+ "parse": false,
94
+ "encode": false,
95
+ "encrypt": {
96
+ "type": "AES",
97
+ "key": ""
98
+ },
99
+ "external_name": "device_profile_id"
100
+ }
101
+ },
102
+ "definitions": {}
103
+ }