@itentialopensource/adapter-netbox_v33 0.1.1
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 +5 -0
- package/.eslintrc.js +18 -0
- package/.gitlab/.gitkeep +0 -0
- package/.gitlab/issue_templates/.gitkeep +0 -0
- package/.gitlab/issue_templates/Default.md +17 -0
- package/.gitlab/issue_templates/bugReportTemplate.md +42 -0
- package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
- package/.jshintrc +3 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +170 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +172 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +337 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +74593 -0
- package/adapterBase.js +1787 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Circuits/action.json +935 -0
- package/entities/Circuits/mockdatafiles/getCircuitsCircuitTerminations-default.json +414 -0
- package/entities/Circuits/mockdatafiles/getCircuitsCircuitTypes-default.json +171 -0
- package/entities/Circuits/mockdatafiles/getCircuitsCircuits-default.json +475 -0
- package/entities/Circuits/mockdatafiles/getCircuitsProviderNetworks-default.json +349 -0
- package/entities/Circuits/mockdatafiles/getCircuitsProviders-default.json +960 -0
- package/entities/Circuits/schema.json +1780 -0
- package/entities/Dcim/action.json +7515 -0
- package/entities/Dcim/mockdatafiles/getDcimCableTerminations-default.json +77 -0
- package/entities/Dcim/mockdatafiles/getDcimCables-default.json +133 -0
- package/entities/Dcim/mockdatafiles/getDcimConsolePortTemplates-default.json +95 -0
- package/entities/Dcim/mockdatafiles/getDcimConsolePorts-default.json +686 -0
- package/entities/Dcim/mockdatafiles/getDcimConsoleServerPortTemplates-default.json +315 -0
- package/entities/Dcim/mockdatafiles/getDcimConsoleServerPorts-default.json +353 -0
- package/entities/Dcim/mockdatafiles/getDcimDeviceBayTemplates-default.json +215 -0
- package/entities/Dcim/mockdatafiles/getDcimDeviceBays-default.json +324 -0
- package/entities/Dcim/mockdatafiles/getDcimDeviceRoles-default.json +104 -0
- package/entities/Dcim/mockdatafiles/getDcimDeviceTypes-default.json +414 -0
- package/entities/Dcim/mockdatafiles/getDcimDevices-default.json +703 -0
- package/entities/Dcim/mockdatafiles/getDcimFrontPortTemplates-default.json +163 -0
- package/entities/Dcim/mockdatafiles/getDcimFrontPorts-default.json +1008 -0
- package/entities/Dcim/mockdatafiles/getDcimInterfaceTemplates-default.json +60 -0
- package/entities/Dcim/mockdatafiles/getDcimInterfaces-default.json +1224 -0
- package/entities/Dcim/mockdatafiles/getDcimInventoryItemRoles-default.json +480 -0
- package/entities/Dcim/mockdatafiles/getDcimInventoryItemTemplates-default.json +295 -0
- package/entities/Dcim/mockdatafiles/getDcimInventoryItems-default.json +515 -0
- package/entities/Dcim/mockdatafiles/getDcimLocations-default.json +248 -0
- package/entities/Dcim/mockdatafiles/getDcimManufacturers-default.json +407 -0
- package/entities/Dcim/mockdatafiles/getDcimModuleBayTemplates-default.json +115 -0
- package/entities/Dcim/mockdatafiles/getDcimModuleBays-default.json +641 -0
- package/entities/Dcim/mockdatafiles/getDcimModuleTypes-default.json +121 -0
- package/entities/Dcim/mockdatafiles/getDcimModules-default.json +109 -0
- package/entities/Dcim/mockdatafiles/getDcimPlatforms-default.json +381 -0
- package/entities/Dcim/mockdatafiles/getDcimPowerFeeds-default.json +567 -0
- package/entities/Dcim/mockdatafiles/getDcimPowerOutletTemplates-default.json +493 -0
- package/entities/Dcim/mockdatafiles/getDcimPowerOutlets-default.json +207 -0
- package/entities/Dcim/mockdatafiles/getDcimPowerPanels-default.json +111 -0
- package/entities/Dcim/mockdatafiles/getDcimPowerPortTemplates-default.json +283 -0
- package/entities/Dcim/mockdatafiles/getDcimPowerPorts-default.json +89 -0
- package/entities/Dcim/mockdatafiles/getDcimRackReservations-default.json +735 -0
- package/entities/Dcim/mockdatafiles/getDcimRackRoles-default.json +69 -0
- package/entities/Dcim/mockdatafiles/getDcimRacks-default.json +1019 -0
- package/entities/Dcim/mockdatafiles/getDcimRacksIdElevation-default.json +50 -0
- package/entities/Dcim/mockdatafiles/getDcimRearPortTemplates-default.json +53 -0
- package/entities/Dcim/mockdatafiles/getDcimRearPorts-default.json +127 -0
- package/entities/Dcim/mockdatafiles/getDcimRegions-default.json +79 -0
- package/entities/Dcim/mockdatafiles/getDcimSiteGroups-default.json +711 -0
- package/entities/Dcim/mockdatafiles/getDcimSites-default.json +319 -0
- package/entities/Dcim/mockdatafiles/getDcimVirtualChassis-default.json +248 -0
- package/entities/Dcim/schema.json +5339 -0
- package/entities/Extras/action.json +1690 -0
- package/entities/Extras/mockdatafiles/getExtrasConfigContexts-default.json +6348 -0
- package/entities/Extras/mockdatafiles/getExtrasContentTypes-default.json +21 -0
- package/entities/Extras/mockdatafiles/getExtrasCustomFields-default.json +466 -0
- package/entities/Extras/mockdatafiles/getExtrasCustomLinks-default.json +71 -0
- package/entities/Extras/mockdatafiles/getExtrasExportTemplates-default.json +63 -0
- package/entities/Extras/mockdatafiles/getExtrasImageAttachments-default.json +91 -0
- package/entities/Extras/mockdatafiles/getExtrasJobResults-default.json +28 -0
- package/entities/Extras/mockdatafiles/getExtrasJournalEntries-default.json +106 -0
- package/entities/Extras/mockdatafiles/getExtrasObjectChanges-default.json +99 -0
- package/entities/Extras/mockdatafiles/getExtrasTags-default.json +55 -0
- package/entities/Extras/mockdatafiles/getExtrasWebhooks-default.json +64 -0
- package/entities/Extras/schema.json +2939 -0
- package/entities/Ipam/action.json +3262 -0
- package/entities/Ipam/mockdatafiles/getIpamAggregates-default.json +703 -0
- package/entities/Ipam/mockdatafiles/getIpamAsns-default.json +465 -0
- package/entities/Ipam/mockdatafiles/getIpamFhrpGroupAssignments-default.json +43 -0
- package/entities/Ipam/mockdatafiles/getIpamFhrpGroups-default.json +148 -0
- package/entities/Ipam/mockdatafiles/getIpamIpAddresses-default.json +1231 -0
- package/entities/Ipam/mockdatafiles/getIpamIpRanges-default.json +681 -0
- package/entities/Ipam/mockdatafiles/getIpamIpRangesIdAvailableIps-default.json +14 -0
- package/entities/Ipam/mockdatafiles/getIpamL2vpnTerminations-default.json +473 -0
- package/entities/Ipam/mockdatafiles/getIpamL2vpns-default.json +1142 -0
- package/entities/Ipam/mockdatafiles/getIpamPrefixes-default.json +791 -0
- package/entities/Ipam/mockdatafiles/getIpamPrefixesIdAvailableIps-default.json +14 -0
- package/entities/Ipam/mockdatafiles/getIpamPrefixesIdAvailablePrefixes-default.json +26 -0
- package/entities/Ipam/mockdatafiles/getIpamRirs-default.json +211 -0
- package/entities/Ipam/mockdatafiles/getIpamRoles-default.json +367 -0
- package/entities/Ipam/mockdatafiles/getIpamRouteTargets-default.json +197 -0
- package/entities/Ipam/mockdatafiles/getIpamServiceTemplates-default.json +256 -0
- package/entities/Ipam/mockdatafiles/getIpamServices-default.json +670 -0
- package/entities/Ipam/mockdatafiles/getIpamVlanGroups-default.json +618 -0
- package/entities/Ipam/mockdatafiles/getIpamVlanGroupsIdAvailableVlans-default.json +24 -0
- package/entities/Ipam/mockdatafiles/getIpamVlans-default.json +324 -0
- package/entities/Ipam/mockdatafiles/getIpamVrfs-default.json +1122 -0
- package/entities/Ipam/mockdatafiles/postIpamIpRangesIdAvailableIps-default.json +176 -0
- package/entities/Ipam/mockdatafiles/postIpamPrefixesIdAvailableIps-default.json +645 -0
- package/entities/Ipam/mockdatafiles/postIpamPrefixesIdAvailablePrefixes-default.json +292 -0
- package/entities/Ipam/mockdatafiles/postIpamVlanGroupsIdAvailableVlans-default.json +343 -0
- package/entities/Ipam/schema.json +2764 -0
- package/entities/Status/action.json +25 -0
- package/entities/Status/schema.json +19 -0
- package/entities/Tenancy/action.json +1096 -0
- package/entities/Tenancy/mockdatafiles/getTenancyContactAssignments-default.json +223 -0
- package/entities/Tenancy/mockdatafiles/getTenancyContactGroups-default.json +87 -0
- package/entities/Tenancy/mockdatafiles/getTenancyContactRoles-default.json +211 -0
- package/entities/Tenancy/mockdatafiles/getTenancyContacts-default.json +787 -0
- package/entities/Tenancy/mockdatafiles/getTenancyTenantGroups-default.json +191 -0
- package/entities/Tenancy/mockdatafiles/getTenancyTenants-default.json +404 -0
- package/entities/Tenancy/schema.json +1348 -0
- package/entities/Users/action.json +773 -0
- package/entities/Users/mockdatafiles/getUsersGroups-default.json +49 -0
- package/entities/Users/mockdatafiles/getUsersPermissions-default.json +554 -0
- package/entities/Users/mockdatafiles/getUsersTokens-default.json +97 -0
- package/entities/Users/mockdatafiles/getUsersUsers-default.json +451 -0
- package/entities/Users/schema.json +1068 -0
- package/entities/Virtualization/action.json +914 -0
- package/entities/Virtualization/mockdatafiles/getVirtualizationClusterGroups-default.json +161 -0
- package/entities/Virtualization/mockdatafiles/getVirtualizationClusterTypes-default.json +507 -0
- package/entities/Virtualization/mockdatafiles/getVirtualizationClusters-default.json +255 -0
- package/entities/Virtualization/mockdatafiles/getVirtualizationInterfaces-default.json +1367 -0
- package/entities/Virtualization/mockdatafiles/getVirtualizationVirtualMachines-default.json +261 -0
- package/entities/Virtualization/schema.json +1559 -0
- package/entities/Wireless/action.json +550 -0
- package/entities/Wireless/mockdatafiles/getWirelessWirelessLanGroups-default.json +439 -0
- package/entities/Wireless/mockdatafiles/getWirelessWirelessLans-default.json +107 -0
- package/entities/Wireless/mockdatafiles/getWirelessWirelessLinks-default.json +739 -0
- package/entities/Wireless/schema.json +1090 -0
- package/error.json +190 -0
- package/package.json +86 -0
- package/pronghorn.json +176740 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1248 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/Netbox_v33.json +86073 -0
- package/report/creationReport.json +3963 -0
- package/sampleProperties.json +195 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +23531 -0
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +25231 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +178 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +246 -0
- package/utils/tbUtils.js +490 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +195 -0
- package/workflows/README.md +3 -0
package/error.json
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
{
|
|
2
|
+
"errors": [
|
|
3
|
+
{
|
|
4
|
+
"key": "Unable To Save To Database",
|
|
5
|
+
"icode": "AD.100",
|
|
6
|
+
"displayString": "Error on saving to Database $VARIABLE$",
|
|
7
|
+
"recommendation": "Verify the database connectivity and credentials"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"key": "Database Error",
|
|
11
|
+
"icode": "AD.101",
|
|
12
|
+
"displayString": "Database Error: $VARIABLE$",
|
|
13
|
+
"recommendation": "Verify the database connectivity, schema and permissions"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "Database Credentials",
|
|
17
|
+
"icode": "AD.102",
|
|
18
|
+
"displayString": "Database Error: Invalid Credentials",
|
|
19
|
+
"recommendation": "Verify the database credentials"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "No Queue Item",
|
|
23
|
+
"icode": "AD.110",
|
|
24
|
+
"displayString": "Queue Item $VARIABLE$ not found in queue",
|
|
25
|
+
"recommendation": "Make sure the queue is working properly"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "Unable To Create Queue",
|
|
29
|
+
"icode": "AD.111",
|
|
30
|
+
"displayString": "Unable to create queue: $VARIABLE$",
|
|
31
|
+
"recommendation": "Verify access to the database, redis or system memory"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "Queue Full",
|
|
35
|
+
"icode": "AD.112",
|
|
36
|
+
"displayString": "Request $VARIABLE$ Transaction $VARIABLE$ rejected - queue full at $VARIABLE$",
|
|
37
|
+
"recommendation": "Make sure the queue is working properly"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "Unable To Clear Queue",
|
|
41
|
+
"icode": "AD.113",
|
|
42
|
+
"displayString": "Unable to clear queue: $VARIABLE$",
|
|
43
|
+
"recommendation": "Make sure the queue exists"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"key": "Unable To Claim Turn",
|
|
47
|
+
"icode": "AD.114",
|
|
48
|
+
"displayString": "Request $VARIABLE$ Transaction $VARIABLE$ unable to claim license: $VARIABLE$",
|
|
49
|
+
"recommendation": "Make sure the queue is working properly"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"key": "Unable To Free Turn",
|
|
53
|
+
"icode": "AD.115",
|
|
54
|
+
"displayString": "Request $VARIABLE$ Transaction $VARIABLE$ unable to free license: $VARIABLE$",
|
|
55
|
+
"recommendation": "Make sure the queue is working properly"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "Item In Wrong State",
|
|
59
|
+
"icode": "AD.116",
|
|
60
|
+
"displayString": "Queue item is in the wrong state: $VARIABLE$ ",
|
|
61
|
+
"recommendation": "Make sure the queue is working properly"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"key": "Missing Data",
|
|
65
|
+
"icode": "AD.300",
|
|
66
|
+
"displayString": "$VARIABLE$ is required",
|
|
67
|
+
"recommendation": "Please provide the required data"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"key": "Missing File",
|
|
71
|
+
"icode": "AD.301",
|
|
72
|
+
"displayString": "Can not open file $VARIABLE$",
|
|
73
|
+
"recommendation": "Verify the file exists and has proper permissions"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"key": "Invalid Action File",
|
|
77
|
+
"icode": "AD.302",
|
|
78
|
+
"displayString": "Invalid action file: $VARIABLE$ in $VARIABLE$",
|
|
79
|
+
"recommendation": "Verify the action file"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"key": "Unsupported Protocol",
|
|
83
|
+
"icode": "AD.303",
|
|
84
|
+
"displayString": "Protocol $VARIABLE$ not currently supported",
|
|
85
|
+
"recommendation": "Verify the protocol on the action"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"key": "Invalid Schema File",
|
|
89
|
+
"icode": "AD.304",
|
|
90
|
+
"displayString": "Invalid schema file: $VARIABLE$ in $VARIABLE$",
|
|
91
|
+
"recommendation": "Verify the action file"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"key": "Invalid Properties",
|
|
95
|
+
"icode": "AD.305",
|
|
96
|
+
"displayString": "Invalid properties: $VARIABLE$",
|
|
97
|
+
"recommendation": "Verify the properties for the adapter"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"key": "Missing Properties",
|
|
101
|
+
"icode": "AD.306",
|
|
102
|
+
"displayString": "Property $VARIABLE$ is required",
|
|
103
|
+
"recommendation": "Please provide the required property"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"key": "Query Not Translated",
|
|
107
|
+
"icode": "AD.310",
|
|
108
|
+
"displayString": "Query Not Translated",
|
|
109
|
+
"recommendation": "Verify the information passed in the query object"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"key": "Payload Not Translated",
|
|
113
|
+
"icode": "AD.311",
|
|
114
|
+
"displayString": "Payload Not Translated",
|
|
115
|
+
"recommendation": "Verify the information passed in the payload object"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"key": "Schema Validation Failure",
|
|
119
|
+
"icode": "AD.312",
|
|
120
|
+
"displayString": "Schema validation failed on $VARIABLE$",
|
|
121
|
+
"recommendation": "Verify the information provided is in the correct format with everything required"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"key": "Entity Cache Not Loading",
|
|
125
|
+
"icode": "AD.320",
|
|
126
|
+
"displayString": "Could not load entity: $VARIABLE$, into cache",
|
|
127
|
+
"recommendation": "Verify the cache is working properly"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "Error Verifying Entity Cache",
|
|
131
|
+
"icode": "AD.321",
|
|
132
|
+
"displayString": "Could not verify entity in cache",
|
|
133
|
+
"recommendation": "Verify the cache is working properly"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"key": "Unable To Authenticate",
|
|
137
|
+
"icode": "AD.400",
|
|
138
|
+
"displayString": "Unable to authenticate with $VARIABLE$, response $VARIABLE$",
|
|
139
|
+
"recommendation": "Verify the user credentials and check the response for more information"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"key": "Unable To Encode",
|
|
143
|
+
"icode": "AD.401",
|
|
144
|
+
"displayString": "Can not perform base64 encoding on $VARIABLE$",
|
|
145
|
+
"recommendation": "Check the authentication format"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"key": "Unable To Get Token",
|
|
149
|
+
"icode": "AD.402",
|
|
150
|
+
"displayString": "Unable to get token for user: $VARIABLE$",
|
|
151
|
+
"recommendation": "Verify the user credentials and the system information"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"key": "Error On Request",
|
|
155
|
+
"icode": "AD.500",
|
|
156
|
+
"displayString": "Error $VARIABLE$ received on request",
|
|
157
|
+
"recommendation": "Verify the request is accurate via debug logs and postman"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"key": "Request Timeout",
|
|
161
|
+
"icode": "AD.501",
|
|
162
|
+
"displayString": "The Adapter has run out of time for the request",
|
|
163
|
+
"recommendation": "Increase your adapter request.attempt_timeout property"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"key": "Invalid Response",
|
|
167
|
+
"icode": "AD.502",
|
|
168
|
+
"displayString": "Invalid response received for $VARIABLE$",
|
|
169
|
+
"recommendation": "Verify the request is accurate via debug logs and postman"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"key": "Failure Response",
|
|
173
|
+
"icode": "AD.503",
|
|
174
|
+
"displayString": "Failure response received for $VARIABLE$",
|
|
175
|
+
"recommendation": "Check the reason for failure in the stack trace"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"key": "Suspended Adapter",
|
|
179
|
+
"icode": "AD.600",
|
|
180
|
+
"displayString": "Adapter is suspended",
|
|
181
|
+
"recommendation": "Check if external system is functional and unsuspend if appropriate"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"key": "Caught Exception",
|
|
185
|
+
"icode": "AD.900",
|
|
186
|
+
"displayString": "Caught Exception $VARIABLE$",
|
|
187
|
+
"recommendation": "Evaluate why the exception took place"
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@itentialopensource/adapter-netbox_v33",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "This adapter integrates with system described as: Netbox v3.3",
|
|
5
|
+
"main": "adapter.js",
|
|
6
|
+
"wizardVersion": "2.44.15",
|
|
7
|
+
"engineVersion": "1.62.7",
|
|
8
|
+
"adapterType": "http",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
11
|
+
"preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
|
|
12
|
+
"deinstall": "node utils/removeHooks.js",
|
|
13
|
+
"lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
|
|
14
|
+
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
|
15
|
+
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
16
|
+
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
|
17
|
+
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
|
18
|
+
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
|
19
|
+
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
|
20
|
+
"adapter:install": "npm i && node utils/tbScript.js install",
|
|
21
|
+
"adapter:checkMigrate": "node utils/checkMigrate.js",
|
|
22
|
+
"adapter:findPath": "node utils/findPath.js",
|
|
23
|
+
"adapter:migrate": "node utils/modify.js -m",
|
|
24
|
+
"adapter:update": "node utils/modify.js -u",
|
|
25
|
+
"adapter:revert": "node utils/modify.js -r",
|
|
26
|
+
"troubleshoot": "node utils/tbScript.js troubleshoot",
|
|
27
|
+
"healthcheck": "node utils/tbScript.js healthcheck",
|
|
28
|
+
"basicget": "node utils/tbScript.js basicget",
|
|
29
|
+
"connectivity": "node utils/tbScript.js connectivity",
|
|
30
|
+
"deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
|
|
31
|
+
"build": "npm run deploy"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"Itential",
|
|
35
|
+
"IAP",
|
|
36
|
+
"Automation",
|
|
37
|
+
"Integration",
|
|
38
|
+
"App-Artifacts",
|
|
39
|
+
"Adapter",
|
|
40
|
+
"Inventory",
|
|
41
|
+
"Netbox_v33",
|
|
42
|
+
"Pre-Release"
|
|
43
|
+
],
|
|
44
|
+
"license": "Apache-2.0",
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">= 8.0.0",
|
|
47
|
+
"npm": ">= 6.0.0"
|
|
48
|
+
},
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "git@gitlab.com:itentialopensource/adapters/inventory/adapter-netbox_v33.git"
|
|
52
|
+
},
|
|
53
|
+
"author": "Itential",
|
|
54
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/inventory/adapter-netbox_v33#readme",
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@itentialopensource/adapter-utils": "^4.48.0",
|
|
57
|
+
"ajv": "^6.12.0",
|
|
58
|
+
"axios": "^0.21.0",
|
|
59
|
+
"commander": "^2.20.0",
|
|
60
|
+
"esprima": "^4.0.1",
|
|
61
|
+
"fs-extra": "^8.1.0",
|
|
62
|
+
"json-query": "^2.2.2",
|
|
63
|
+
"mocha": "^9.0.1",
|
|
64
|
+
"mocha-param": "^2.0.1",
|
|
65
|
+
"mongodb": "^4.1.0",
|
|
66
|
+
"network-diagnostics": "^0.5.3",
|
|
67
|
+
"nyc": "^15.1.0",
|
|
68
|
+
"readline-sync": "^1.4.10",
|
|
69
|
+
"semver": "^7.3.2",
|
|
70
|
+
"winston": "^3.3.3",
|
|
71
|
+
"prompts": "^2.4.2"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"chai": "^4.3.4",
|
|
75
|
+
"eslint": "^7.29.0",
|
|
76
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
|
77
|
+
"eslint-plugin-import": "^2.23.4",
|
|
78
|
+
"eslint-plugin-json": "^3.0.0",
|
|
79
|
+
"package-json-validator": "^0.6.3",
|
|
80
|
+
"testdouble": "^3.16.1"
|
|
81
|
+
},
|
|
82
|
+
"resolutions": {
|
|
83
|
+
"minimist": "^1.2.5"
|
|
84
|
+
},
|
|
85
|
+
"private": false
|
|
86
|
+
}
|