@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.
- package/.eslintignore +0 -1
- package/.jshintrc +3 -0
- package/CALLS.md +957 -3
- package/CHANGELOG.md +16 -1
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +31 -22
- package/adapter.js +13682 -334
- package/adapterBase.js +538 -873
- package/changelogs/changelog.md +16 -0
- package/entities/ACME/action.json +166 -0
- package/entities/ACME/mockdatafiles/createAcmeAuthentication-default.json +21 -0
- package/entities/ACME/mockdatafiles/getAcmeAuthentication-default.json +21 -0
- package/entities/ACME/mockdatafiles/listAcmeAuthentication-default.json +41 -0
- package/entities/ACME/mockdatafiles/updateAcmeAuthentication-default.json +21 -0
- package/entities/ACME/schema.json +125 -0
- package/entities/AuthenticationCACertificates/action.json +107 -0
- package/entities/AuthenticationCACertificates/schema.json +155 -0
- package/entities/AuthenticationCATemplates/action.json +187 -0
- package/entities/AuthenticationCATemplates/mockdatafiles/createAuthenticationCATemplate-default.json +33 -0
- package/entities/AuthenticationCATemplates/mockdatafiles/getAuthenticationCATemplate-default.json +33 -0
- package/entities/AuthenticationCATemplates/mockdatafiles/updateAuthenticationCATemplate-default.json +33 -0
- package/entities/AuthenticationCATemplates/schema.json +137 -0
- package/entities/AuthenticationCertificates/action.json +166 -0
- package/entities/AuthenticationCertificates/mockdatafiles/addAuthenticationCertificate-default.json +48 -0
- package/entities/AuthenticationCertificates/mockdatafiles/getAuthenticationCertificateDetails-default.json +49 -0
- package/entities/AuthenticationCertificates/mockdatafiles/listAuthenticationCertificates-default.json +93 -0
- package/entities/AuthenticationCertificates/mockdatafiles/updateAuthenticationCertificate-default.json +48 -0
- package/entities/AuthenticationCertificates/schema.json +202 -0
- package/entities/BatchCertificateEnrollment/action.json +268 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/batchCSREnroll-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGen-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGenMac-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/downloadCertificates-default.json +18 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/getBatchJobSettings-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/regenerateBatchJobPasscode-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/updateBatchJobSettings-default.json +22 -0
- package/entities/BatchCertificateEnrollment/schema.json +284 -0
- package/entities/CertificateProfiles/action.json +206 -0
- package/entities/CertificateProfiles/mockdatafiles/listCertificateProfiles-default.json +219 -0
- package/entities/CertificateProfiles/schema.json +116 -0
- package/entities/CertificateRequests/action.json +25 -0
- package/entities/CertificateRequests/mockdatafiles/getRequestStatus-default.json +5 -0
- package/entities/CertificateRequests/schema.json +30 -0
- package/entities/CertificateTemplates/action.json +186 -0
- package/entities/CertificateTemplates/schema.json +104 -0
- package/entities/Certificates/action.json +312 -0
- package/entities/Certificates/mockdatafiles/downloadApprovedCertificate-default.json +47 -0
- package/entities/Certificates/mockdatafiles/renewBySerial-default.json +23 -0
- package/entities/Certificates/mockdatafiles/renewCertificate-default.json +31 -0
- package/entities/Certificates/schema.json +462 -0
- package/entities/DeviceProfiles/action.json +126 -0
- package/entities/DeviceProfiles/mockdatafiles/createDeviceProfile-default.json +28 -0
- package/entities/DeviceProfiles/mockdatafiles/getDeviceProfile-default.json +28 -0
- package/entities/DeviceProfiles/mockdatafiles/listdeviceprofiles-default.json +53 -0
- package/entities/DeviceProfiles/mockdatafiles/updateDeviceProfile-default.json +28 -0
- package/entities/DeviceProfiles/schema.json +57 -0
- package/entities/Devices/action.json +166 -0
- package/entities/Devices/mockdatafiles/archiveDevice-default.json +33 -0
- package/entities/Devices/mockdatafiles/disableDevice-default.json +33 -0
- package/entities/Devices/mockdatafiles/enableDevice-default.json +33 -0
- package/entities/Devices/mockdatafiles/restoreDevice-default.json +33 -0
- package/entities/Devices/schema.json +103 -0
- package/entities/DevicesV2/action.json +186 -0
- package/entities/DevicesV2/mockdatafiles/archiveDeviceV2-default.json +33 -0
- package/entities/DevicesV2/mockdatafiles/disableDeviceV2-default.json +33 -0
- package/entities/DevicesV2/mockdatafiles/enableDeviceV2-default.json +33 -0
- package/entities/DevicesV2/mockdatafiles/restoreDeviceV2-default.json +33 -0
- package/entities/DevicesV2/schema.json +115 -0
- package/entities/Divisions/action.json +288 -0
- package/entities/Divisions/schema.json +164 -0
- package/entities/EnrollmentProfilePasscodes/action.json +186 -0
- package/entities/EnrollmentProfilePasscodes/schema.json +181 -0
- package/entities/EnrollmentProfiles/action.json +191 -0
- package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfile-default.json +153 -0
- package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfileSpecification-default.json +125 -0
- package/entities/EnrollmentProfiles/mockdatafiles/updateEnrollmentProfile-default.json +117 -0
- package/entities/EnrollmentProfiles/schema.json +148 -0
- package/entities/ExternalBatchCertificateEnrollment/action.json +150 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/batchEnrollExternal-default.json +16 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCertificateValue-default.json +154 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCommonName-default.json +150 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCertificateValue-default.json +36 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCommonName-default.json +130 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndUniqueId-default.json +42 -0
- package/entities/ExternalBatchCertificateEnrollment/schema.json +102 -0
- package/entities/Gateways/action.json +187 -0
- package/entities/Gateways/schema.json +126 -0
- package/entities/ICAs/action.json +46 -0
- package/entities/ICAs/schema.json +163 -0
- package/entities/OCSPGroups/action.json +167 -0
- package/entities/OCSPGroups/schema.json +466 -0
- package/metadata.json +49 -0
- package/package.json +22 -25
- package/pronghorn.json +23155 -266
- package/propertiesSchema.json +455 -42
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +3224 -0
- package/report/adapter-openapi.yaml +2185 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691508686598.json +120 -0
- package/report/updateReport1692203137726.json +120 -0
- package/report/updateReport1694467869659.json +120 -0
- package/report/updateReport1698422457936.json +120 -0
- package/sampleProperties.json +67 -6
- package/test/integration/adapterTestBasicGet.js +1 -1
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +4704 -32
- package/test/unit/adapterBaseTestUnit.js +388 -313
- package/test/unit/adapterTestUnit.js +5211 -148
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +1 -0
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +71 -23
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +3 -10
- package/utils/tbUtils.js +2 -3
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +1 -3
- package/workflows/README.md +0 -3
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "createDeviceV2",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/api/v2/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": "getDeviceListV2",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/api/v2/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": "getDeviceDetailsV2",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/api/v2/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": "updateDeviceV2",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "PUT",
|
|
69
|
+
"entitypath": "{base_path}/{version}/api/v2/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": "archiveDeviceV2",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "DELETE",
|
|
89
|
+
"entitypath": "{base_path}/{version}/api/v2/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/archiveDeviceV2-default.json"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "enableDeviceV2",
|
|
107
|
+
"protocol": "REST",
|
|
108
|
+
"method": "PUT",
|
|
109
|
+
"entitypath": "{base_path}/{version}/api/v2/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/enableDeviceV2-default.json"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "disableDeviceV2",
|
|
127
|
+
"protocol": "REST",
|
|
128
|
+
"method": "PUT",
|
|
129
|
+
"entitypath": "{base_path}/{version}/api/v2/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/disableDeviceV2-default.json"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "restoreDeviceV2",
|
|
147
|
+
"protocol": "REST",
|
|
148
|
+
"method": "PUT",
|
|
149
|
+
"entitypath": "{base_path}/{version}/api/v2/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/restoreDeviceV2-default.json"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "renewDeviceCertificateV2",
|
|
167
|
+
"protocol": "REST",
|
|
168
|
+
"method": "POST",
|
|
169
|
+
"entitypath": "{base_path}/{version}/api/v2/device/{pathv1}/renew?{query}",
|
|
170
|
+
"requestSchema": "schema.json",
|
|
171
|
+
"responseSchema": "schema.json",
|
|
172
|
+
"timeout": 0,
|
|
173
|
+
"sendEmpty": false,
|
|
174
|
+
"requestDatatype": "JSON",
|
|
175
|
+
"responseDatatype": "JSON",
|
|
176
|
+
"headers": {},
|
|
177
|
+
"responseObjects": [
|
|
178
|
+
{
|
|
179
|
+
"type": "default",
|
|
180
|
+
"key": "",
|
|
181
|
+
"mockFile": ""
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}
|
|
@@ -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,115 @@
|
|
|
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
|
+
"createDeviceV2",
|
|
14
|
+
"getDeviceListV2",
|
|
15
|
+
"getDeviceDetailsV2",
|
|
16
|
+
"updateDeviceV2",
|
|
17
|
+
"archiveDeviceV2",
|
|
18
|
+
"enableDeviceV2",
|
|
19
|
+
"disableDeviceV2",
|
|
20
|
+
"restoreDeviceV2",
|
|
21
|
+
"renewDeviceCertificateV2"
|
|
22
|
+
],
|
|
23
|
+
"external_name": "ph_request_type"
|
|
24
|
+
},
|
|
25
|
+
"deviceIdentifier": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Limits response data to records that use a specific device identifier.",
|
|
28
|
+
"parse": false,
|
|
29
|
+
"encode": false,
|
|
30
|
+
"encrypt": {
|
|
31
|
+
"type": "AES",
|
|
32
|
+
"key": ""
|
|
33
|
+
},
|
|
34
|
+
"external_name": "device_identifier"
|
|
35
|
+
},
|
|
36
|
+
"createdFrom": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Limits response data to device records created after the given date. Format: `YYYY-MM-DD`",
|
|
39
|
+
"parse": false,
|
|
40
|
+
"encode": false,
|
|
41
|
+
"encrypt": {
|
|
42
|
+
"type": "AES",
|
|
43
|
+
"key": ""
|
|
44
|
+
},
|
|
45
|
+
"external_name": "created_from"
|
|
46
|
+
},
|
|
47
|
+
"createdTo": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Limits response data to device records created before the given date. Format: `YYYY-MM-DD`",
|
|
50
|
+
"parse": false,
|
|
51
|
+
"encode": false,
|
|
52
|
+
"encrypt": {
|
|
53
|
+
"type": "AES",
|
|
54
|
+
"key": ""
|
|
55
|
+
},
|
|
56
|
+
"external_name": "created_to"
|
|
57
|
+
},
|
|
58
|
+
"divisionId": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Limits response data to device records associated with a specific division ID.",
|
|
61
|
+
"parse": false,
|
|
62
|
+
"encode": false,
|
|
63
|
+
"encrypt": {
|
|
64
|
+
"type": "AES",
|
|
65
|
+
"key": ""
|
|
66
|
+
},
|
|
67
|
+
"external_name": "division_id"
|
|
68
|
+
},
|
|
69
|
+
"updatedFrom": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Limits response data to device records updated after a specific date. Format: `YYYY-MM-DD`",
|
|
72
|
+
"parse": false,
|
|
73
|
+
"encode": false,
|
|
74
|
+
"encrypt": {
|
|
75
|
+
"type": "AES",
|
|
76
|
+
"key": ""
|
|
77
|
+
},
|
|
78
|
+
"external_name": "updated_from"
|
|
79
|
+
},
|
|
80
|
+
"updatedTo": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "Limits response data to device records updated before a specific date. Format: `YYYY-MM-DD`",
|
|
83
|
+
"parse": false,
|
|
84
|
+
"encode": false,
|
|
85
|
+
"encrypt": {
|
|
86
|
+
"type": "AES",
|
|
87
|
+
"key": ""
|
|
88
|
+
},
|
|
89
|
+
"external_name": "updated_to"
|
|
90
|
+
},
|
|
91
|
+
"deviceProfileId": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Limits response data to device records with a specific device profile ID.",
|
|
94
|
+
"parse": false,
|
|
95
|
+
"encode": false,
|
|
96
|
+
"encrypt": {
|
|
97
|
+
"type": "AES",
|
|
98
|
+
"key": ""
|
|
99
|
+
},
|
|
100
|
+
"external_name": "device_profile_id"
|
|
101
|
+
},
|
|
102
|
+
"deviceId": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "Device ID.",
|
|
105
|
+
"parse": false,
|
|
106
|
+
"encode": false,
|
|
107
|
+
"encrypt": {
|
|
108
|
+
"type": "AES",
|
|
109
|
+
"key": ""
|
|
110
|
+
},
|
|
111
|
+
"external_name": "device_id"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"definitions": {}
|
|
115
|
+
}
|