@blues-inc/notehub-js 6.7.0-beta.8 → 6.7.0-beta.80
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/README.md +148 -157
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +11 -9
- package/dist/api/AuthorizationApi.js +11 -50
- package/dist/api/DescriptionApi.js +49 -33
- package/dist/api/DeviceApi.js +272 -141
- package/dist/api/EventApi.js +65 -204
- package/dist/api/ExternalDevicesApi.js +19 -13
- package/dist/api/JobsApi.js +57 -39
- package/dist/api/MonitorApi.js +27 -17
- package/dist/api/OrganizationApi.js +25 -19
- package/dist/api/ProjectApi.js +257 -169
- package/dist/api/RouteApi.js +53 -41
- package/dist/api/SkillsApi.js +58 -106
- package/dist/api/UsageApi.js +73 -63
- package/dist/api/WebhookApi.js +67 -45
- package/dist/index.js +42 -70
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +14 -9
- package/dist/model/AlertDataInner.js +9 -4
- package/dist/model/AlertNotificationsInner.js +14 -4
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +5 -5
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +2 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +3 -2
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +4 -3
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +37 -25
- package/dist/model/CreateProductRequest.js +7 -6
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +5 -5
- package/dist/model/CreateUpdateRepository.js +3 -1
- package/dist/model/CreatedRepository.js +5 -5
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +4 -4
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/DescriptionRecord.js +6 -6
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +27 -8
- package/dist/model/DeviceDfuHistory.js +3 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +2 -2
- package/dist/model/DeviceDfuStateMachine.js +2 -1
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +3 -3
- package/dist/model/DeviceDfuStatusPage.js +2 -2
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +5 -5
- package/dist/model/DeviceTowerInfo.js +6 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +29 -6
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +7 -7
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +11 -10
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +2 -2
- package/dist/model/GetApiUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
- package/dist/model/GetDevicePlans200Response.js +2 -1
- package/dist/model/GetDevicePublicKey200Response.js +5 -3
- package/dist/model/GetDevicePublicKeys200Response.js +2 -2
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +3 -1
- package/dist/model/GetDeviceSessions200Response.js +2 -2
- package/dist/model/GetDevices200Response.js +2 -2
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
- package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
- package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
- package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
- package/dist/model/GetOrganizations200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +2 -2
- package/dist/model/GetSessionsUsage200Response.js +3 -3
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +7 -4
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +2 -2
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +3 -3
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +13 -7
- package/dist/model/Monitor.js +18 -12
- package/dist/model/MonitorAlertRoutesInner.js +60 -14
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -1
- package/dist/model/NotefileSchema.js +5 -3
- package/dist/model/NotehubRoute.js +7 -3
- package/dist/model/NotehubRouteSummary.js +6 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +5 -3
- package/dist/model/Product.js +8 -4
- package/dist/model/Project.js +7 -4
- package/dist/model/ProjectMember.js +5 -4
- package/dist/model/ProjectSecret.js +7 -7
- package/dist/model/ProvisionDeviceRequest.js +5 -5
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +3 -3
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/{Login200Response.js → RepositoryRecord.js} +52 -24
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +9 -9
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +6 -4
- package/dist/model/SignalDevice200Response.js +2 -2
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +1 -1
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +7 -7
- package/dist/model/SkillSummary.js +16 -3
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.js +1 -1
- package/dist/model/SlackBearerNotification.js +31 -8
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +31 -8
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/{SkillCatalog.js → TwilioNotification.js} +66 -69
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +7 -6
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +3 -3
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +2 -2
- package/dist/model/UsageRouteLogsData.js +2 -2
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +4 -4
- package/package.json +1 -1
- package/dist/api/BillingAccountApi.js +0 -167
- package/dist/model/GetBillingAccounts200Response.js +0 -111
- package/dist/model/GetEventsByCursor200Response.js +0 -157
- package/dist/model/LoginRequest.js +0 -103
package/dist/api/RouteApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.80
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -46,7 +46,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Create
|
|
49
|
+
* Create a route
|
|
50
|
+
* Create a route that sends a project's events to a destination such as a URL, an MQTT broker or a cloud service. Set `type` and fill in the object it names. Omit `fleets` to send every fleet's events. Unknown FleetUIDs are ignored, so `fleets: []` or a list of only unknown UIDs gives a route that sends nothing. Requires the Owner or Developer role. Returns 400 for invalid settings.
|
|
50
51
|
* @param {String} projectOrProductUID
|
|
51
52
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
52
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
@@ -77,7 +78,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
/**
|
|
80
|
-
* Create
|
|
81
|
+
* Create a route
|
|
82
|
+
* Create a route that sends a project's events to a destination such as a URL, an MQTT broker or a cloud service. Set `type` and fill in the object it names. Omit `fleets` to send every fleet's events. Unknown FleetUIDs are ignored, so `fleets: []` or a list of only unknown UIDs gives a route that sends nothing. Requires the Owner or Developer role. Returns 400 for invalid settings.
|
|
81
83
|
* @param {String} projectOrProductUID
|
|
82
84
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
83
85
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
@@ -91,9 +93,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
/**
|
|
94
|
-
* Delete
|
|
96
|
+
* Delete a route
|
|
97
|
+
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
95
98
|
* @param {String} projectOrProductUID
|
|
96
|
-
* @param {String} routeUID
|
|
99
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
97
100
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
98
101
|
*/
|
|
99
102
|
}, {
|
|
@@ -123,9 +126,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
/**
|
|
126
|
-
* Delete
|
|
129
|
+
* Delete a route
|
|
130
|
+
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
127
131
|
* @param {String} projectOrProductUID
|
|
128
|
-
* @param {String} routeUID
|
|
132
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
129
133
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
130
134
|
*/
|
|
131
135
|
}, {
|
|
@@ -137,9 +141,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
/**
|
|
140
|
-
* Get
|
|
144
|
+
* Get a route
|
|
145
|
+
* Get one route's full settings: destination, filter, transform and fleets. Secrets such as passwords and keys come back as `(omitted)`. Requires the Owner or Developer role. Viewers can use `GetRoutes`. Returns 404 if the route doesn't exist.
|
|
141
146
|
* @param {String} projectOrProductUID
|
|
142
|
-
* @param {String} routeUID
|
|
147
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
143
148
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
144
149
|
*/
|
|
145
150
|
}, {
|
|
@@ -169,9 +174,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
169
174
|
}
|
|
170
175
|
|
|
171
176
|
/**
|
|
172
|
-
* Get
|
|
177
|
+
* Get a route
|
|
178
|
+
* Get one route's full settings: destination, filter, transform and fleets. Secrets such as passwords and keys come back as `(omitted)`. Requires the Owner or Developer role. Viewers can use `GetRoutes`. Returns 404 if the route doesn't exist.
|
|
173
179
|
* @param {String} projectOrProductUID
|
|
174
|
-
* @param {String} routeUID
|
|
180
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
175
181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
176
182
|
*/
|
|
177
183
|
}, {
|
|
@@ -183,23 +189,24 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
189
|
}
|
|
184
190
|
|
|
185
191
|
/**
|
|
186
|
-
*
|
|
192
|
+
* List a route's logs
|
|
193
|
+
* List a route's attempts to send events, newest first, with each one's event, response status, body and duration. Filter by device, notefile, date, success or HTTP status. For one event, use `GetRouteLogsByEvent`. Paginated. Returns 404 if the route doesn't exist.
|
|
187
194
|
* @param {String} projectOrProductUID
|
|
188
|
-
* @param {String} routeUID
|
|
195
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
189
196
|
* @param {Object} opts Optional parameters
|
|
190
|
-
* @param {Number} opts.pageSize (default to
|
|
197
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
191
198
|
* @param {Number} opts.pageNum (default to 1)
|
|
192
|
-
* @param {String} opts.cursor If supplied,
|
|
193
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
194
|
-
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
195
|
-
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
199
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
200
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
201
|
+
* @param {module:model/String} opts.sortBy Field to sort by. - `date`: when the attempt was made - `event`: the order the events arrived in, then the attempt time (default to 'date')
|
|
202
|
+
* @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
|
|
196
203
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
197
204
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
198
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
199
|
-
* @param {Boolean} opts.mostRecentOnly
|
|
200
|
-
* @param {String} opts.files
|
|
201
|
-
* @param {Array.<module:model/String>} opts.routingStatus
|
|
202
|
-
* @param {Array.<String>} opts.responseStatus
|
|
205
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
206
|
+
* @param {Boolean} opts.mostRecentOnly If true, return only the latest attempt for each event.
|
|
207
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
208
|
+
* @param {Array.<module:model/String>} opts.routingStatus Return only attempts with this outcome. - `success`: the destination accepted the event - `failure`: the attempt failed
|
|
209
|
+
* @param {Array.<String>} opts.responseStatus Response status codes to include, e.g. `500`.
|
|
203
210
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
|
|
204
211
|
*/
|
|
205
212
|
}, {
|
|
@@ -244,23 +251,24 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
244
251
|
}
|
|
245
252
|
|
|
246
253
|
/**
|
|
247
|
-
*
|
|
254
|
+
* List a route's logs
|
|
255
|
+
* List a route's attempts to send events, newest first, with each one's event, response status, body and duration. Filter by device, notefile, date, success or HTTP status. For one event, use `GetRouteLogsByEvent`. Paginated. Returns 404 if the route doesn't exist.
|
|
248
256
|
* @param {String} projectOrProductUID
|
|
249
|
-
* @param {String} routeUID
|
|
257
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
250
258
|
* @param {Object} opts Optional parameters
|
|
251
|
-
* @param {Number} opts.pageSize (default to
|
|
259
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
252
260
|
* @param {Number} opts.pageNum (default to 1)
|
|
253
|
-
* @param {String} opts.cursor If supplied,
|
|
254
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
255
|
-
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
256
|
-
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
261
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
262
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
263
|
+
* @param {module:model/String} opts.sortBy Field to sort by. - `date`: when the attempt was made - `event`: the order the events arrived in, then the attempt time (default to 'date')
|
|
264
|
+
* @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
|
|
257
265
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
258
266
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
259
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
260
|
-
* @param {Boolean} opts.mostRecentOnly
|
|
261
|
-
* @param {String} opts.files
|
|
262
|
-
* @param {Array.<module:model/String>} opts.routingStatus
|
|
263
|
-
* @param {Array.<String>} opts.responseStatus
|
|
267
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
268
|
+
* @param {Boolean} opts.mostRecentOnly If true, return only the latest attempt for each event.
|
|
269
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
270
|
+
* @param {Array.<module:model/String>} opts.routingStatus Return only attempts with this outcome. - `success`: the destination accepted the event - `failure`: the attempt failed
|
|
271
|
+
* @param {Array.<String>} opts.responseStatus Response status codes to include, e.g. `500`.
|
|
264
272
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
265
273
|
*/
|
|
266
274
|
}, {
|
|
@@ -272,7 +280,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
272
280
|
}
|
|
273
281
|
|
|
274
282
|
/**
|
|
275
|
-
*
|
|
283
|
+
* List routes
|
|
284
|
+
* List a project's routes with their type and label and whether they're disabled, without their settings. For a route's settings, use `GetRoute`.
|
|
276
285
|
* @param {String} projectOrProductUID
|
|
277
286
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotehubRouteSummary>} and HTTP response
|
|
278
287
|
*/
|
|
@@ -298,7 +307,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
298
307
|
}
|
|
299
308
|
|
|
300
309
|
/**
|
|
301
|
-
*
|
|
310
|
+
* List routes
|
|
311
|
+
* List a project's routes with their type and label and whether they're disabled, without their settings. For a route's settings, use `GetRoute`.
|
|
302
312
|
* @param {String} projectOrProductUID
|
|
303
313
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotehubRouteSummary>}
|
|
304
314
|
*/
|
|
@@ -311,9 +321,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
311
321
|
}
|
|
312
322
|
|
|
313
323
|
/**
|
|
314
|
-
* Update route
|
|
324
|
+
* Update a route
|
|
325
|
+
* Change a route's settings. Fields you leave out keep their values, and a secret sent back as `(omitted)` is kept, but leaving out `notes` clears it. Requires the Owner or Developer role. Returns 404 if the route doesn't exist, and 400 for invalid settings.
|
|
315
326
|
* @param {String} projectOrProductUID
|
|
316
|
-
* @param {String} routeUID
|
|
327
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
317
328
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
318
329
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
319
330
|
*/
|
|
@@ -348,9 +359,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
348
359
|
}
|
|
349
360
|
|
|
350
361
|
/**
|
|
351
|
-
* Update route
|
|
362
|
+
* Update a route
|
|
363
|
+
* Change a route's settings. Fields you leave out keep their values, and a secret sent back as `(omitted)` is kept, but leaving out `notes` clears it. Requires the Owner or Developer role. Returns 404 if the route doesn't exist, and 400 for invalid settings.
|
|
352
364
|
* @param {String} projectOrProductUID
|
|
353
|
-
* @param {String} routeUID
|
|
365
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
354
366
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
355
367
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
356
368
|
*/
|
package/dist/api/SkillsApi.js
CHANGED
|
@@ -7,7 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
9
|
var _Skill = _interopRequireDefault(require("../model/Skill"));
|
|
10
|
-
var _SkillCatalog = _interopRequireDefault(require("../model/SkillCatalog"));
|
|
11
10
|
var _SkillSet = _interopRequireDefault(require("../model/SkillSet"));
|
|
12
11
|
var _SkillWrite = _interopRequireDefault(require("../model/SkillWrite"));
|
|
13
12
|
var _SkillWriteResult = _interopRequireDefault(require("../model/SkillWriteResult"));
|
|
@@ -32,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
32
31
|
/**
|
|
33
32
|
* Skills service.
|
|
34
33
|
* @module api/SkillsApi
|
|
35
|
-
* @version 6.7.0-beta.
|
|
34
|
+
* @version 6.7.0-beta.80
|
|
36
35
|
*/
|
|
37
36
|
var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
38
37
|
/**
|
|
@@ -48,35 +47,34 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
/**
|
|
51
|
-
* Delete a
|
|
52
|
-
* Delete a
|
|
50
|
+
* Delete a project skill
|
|
51
|
+
* Delete a skill and all its stored versions. Requires `If-Match` set to the revision from `GetSkill`. Requires the Owner or Developer role. Subprojects must write to their parent project.
|
|
53
52
|
* @param {String} projectOrProductUID
|
|
54
|
-
* @param {String}
|
|
53
|
+
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
55
54
|
* @param {String} ifMatch Required; use one strong ETag or quoted skill revision. Wildcards and weak tags are rejected.
|
|
56
55
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
57
56
|
*/
|
|
58
57
|
return _createClass(SkillsApi, [{
|
|
59
58
|
key: "deleteSkillWithHttpInfo",
|
|
60
|
-
value: function deleteSkillWithHttpInfo(projectOrProductUID,
|
|
59
|
+
value: function deleteSkillWithHttpInfo(projectOrProductUID, skillName, ifMatch) {
|
|
61
60
|
var postBody = null;
|
|
62
61
|
// verify the required parameter 'projectOrProductUID' is set
|
|
63
62
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
64
63
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteSkill");
|
|
65
64
|
}
|
|
66
|
-
// verify the required parameter '
|
|
67
|
-
if (
|
|
68
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
65
|
+
// verify the required parameter 'skillName' is set
|
|
66
|
+
if (skillName === undefined || skillName === null) {
|
|
67
|
+
throw new _Error["default"]("Missing the required parameter 'skillName' when calling deleteSkill");
|
|
69
68
|
}
|
|
70
69
|
// verify the required parameter 'ifMatch' is set
|
|
71
70
|
if (ifMatch === undefined || ifMatch === null) {
|
|
72
71
|
throw new _Error["default"]("Missing the required parameter 'ifMatch' when calling deleteSkill");
|
|
73
72
|
}
|
|
74
73
|
var pathParams = {
|
|
75
|
-
projectOrProductUID: projectOrProductUID
|
|
76
|
-
|
|
77
|
-
var queryParams = {
|
|
78
|
-
name: name
|
|
74
|
+
projectOrProductUID: projectOrProductUID,
|
|
75
|
+
skillName: skillName
|
|
79
76
|
};
|
|
77
|
+
var queryParams = {};
|
|
80
78
|
var headerParams = {
|
|
81
79
|
"If-Match": ifMatch
|
|
82
80
|
};
|
|
@@ -85,30 +83,30 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
85
83
|
var contentTypes = [];
|
|
86
84
|
var accepts = ["application/json"];
|
|
87
85
|
var returnType = null;
|
|
88
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/skills/
|
|
86
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/skills/{skillName}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
/**
|
|
92
|
-
* Delete a
|
|
93
|
-
* Delete a
|
|
90
|
+
* Delete a project skill
|
|
91
|
+
* Delete a skill and all its stored versions. Requires `If-Match` set to the revision from `GetSkill`. Requires the Owner or Developer role. Subprojects must write to their parent project.
|
|
94
92
|
* @param {String} projectOrProductUID
|
|
95
|
-
* @param {String}
|
|
93
|
+
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
96
94
|
* @param {String} ifMatch Required; use one strong ETag or quoted skill revision. Wildcards and weak tags are rejected.
|
|
97
95
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
98
96
|
*/
|
|
99
97
|
}, {
|
|
100
98
|
key: "deleteSkill",
|
|
101
|
-
value: function deleteSkill(projectOrProductUID,
|
|
102
|
-
return this.deleteSkillWithHttpInfo(projectOrProductUID,
|
|
99
|
+
value: function deleteSkill(projectOrProductUID, skillName, ifMatch) {
|
|
100
|
+
return this.deleteSkillWithHttpInfo(projectOrProductUID, skillName, ifMatch).then(function (response_and_data) {
|
|
103
101
|
return response_and_data.data;
|
|
104
102
|
});
|
|
105
103
|
}
|
|
106
104
|
|
|
107
105
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
106
|
+
* Get a project skill
|
|
107
|
+
* Get one skill's metadata and exact Markdown content. Use `links.self` from `GetSkills`, or URL-encode the whole skill name as one path parameter. `If-Match` requires a revision; `If-None-Match` skips unchanged content. Any role can read it, and so can anonymous callers when the project's default access is Viewer.
|
|
110
108
|
* @param {String} projectOrProductUID
|
|
111
|
-
* @param {String}
|
|
109
|
+
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
112
110
|
* @param {Object} opts Optional parameters
|
|
113
111
|
* @param {String} opts.ifMatch Optionally require one strong ETag or quoted skill revision; wildcards and weak tags are rejected.
|
|
114
112
|
* @param {String} opts.ifNoneMatch Return 304 if an ETag for this skill matches, or use * to match any existing skill at this name.
|
|
@@ -116,23 +114,22 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
116
114
|
*/
|
|
117
115
|
}, {
|
|
118
116
|
key: "getSkillWithHttpInfo",
|
|
119
|
-
value: function getSkillWithHttpInfo(projectOrProductUID,
|
|
117
|
+
value: function getSkillWithHttpInfo(projectOrProductUID, skillName, opts) {
|
|
120
118
|
opts = opts || {};
|
|
121
119
|
var postBody = null;
|
|
122
120
|
// verify the required parameter 'projectOrProductUID' is set
|
|
123
121
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
124
122
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getSkill");
|
|
125
123
|
}
|
|
126
|
-
// verify the required parameter '
|
|
127
|
-
if (
|
|
128
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
124
|
+
// verify the required parameter 'skillName' is set
|
|
125
|
+
if (skillName === undefined || skillName === null) {
|
|
126
|
+
throw new _Error["default"]("Missing the required parameter 'skillName' when calling getSkill");
|
|
129
127
|
}
|
|
130
128
|
var pathParams = {
|
|
131
|
-
projectOrProductUID: projectOrProductUID
|
|
132
|
-
|
|
133
|
-
var queryParams = {
|
|
134
|
-
name: name
|
|
129
|
+
projectOrProductUID: projectOrProductUID,
|
|
130
|
+
skillName: skillName
|
|
135
131
|
};
|
|
132
|
+
var queryParams = {};
|
|
136
133
|
var headerParams = {
|
|
137
134
|
"If-Match": opts["ifMatch"],
|
|
138
135
|
"If-None-Match": opts["ifNoneMatch"]
|
|
@@ -142,14 +139,14 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
142
139
|
var contentTypes = [];
|
|
143
140
|
var accepts = ["application/json"];
|
|
144
141
|
var returnType = _Skill["default"];
|
|
145
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/skills/
|
|
142
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/skills/{skillName}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
146
143
|
}
|
|
147
144
|
|
|
148
145
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
146
|
+
* Get a project skill
|
|
147
|
+
* Get one skill's metadata and exact Markdown content. Use `links.self` from `GetSkills`, or URL-encode the whole skill name as one path parameter. `If-Match` requires a revision; `If-None-Match` skips unchanged content. Any role can read it, and so can anonymous callers when the project's default access is Viewer.
|
|
151
148
|
* @param {String} projectOrProductUID
|
|
152
|
-
* @param {String}
|
|
149
|
+
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
153
150
|
* @param {Object} opts Optional parameters
|
|
154
151
|
* @param {String} opts.ifMatch Optionally require one strong ETag or quoted skill revision; wildcards and weak tags are rejected.
|
|
155
152
|
* @param {String} opts.ifNoneMatch Return 304 if an ETag for this skill matches, or use * to match any existing skill at this name.
|
|
@@ -157,17 +154,18 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
157
154
|
*/
|
|
158
155
|
}, {
|
|
159
156
|
key: "getSkill",
|
|
160
|
-
value: function getSkill(projectOrProductUID,
|
|
161
|
-
return this.getSkillWithHttpInfo(projectOrProductUID,
|
|
157
|
+
value: function getSkill(projectOrProductUID, skillName, opts) {
|
|
158
|
+
return this.getSkillWithHttpInfo(projectOrProductUID, skillName, opts).then(function (response_and_data) {
|
|
162
159
|
return response_and_data.data;
|
|
163
160
|
});
|
|
164
161
|
}
|
|
165
162
|
|
|
166
163
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
164
|
+
* List project skills
|
|
165
|
+
* List a project's skills, the Markdown guides agents read, with metadata only unless `includeContent=true`. Not paginated; a project with none returns `skills: []`. On 413, list metadata and use `GetSkill` for each document. Subprojects read their parent's skills. Any role can read them, and so can anonymous callers when the project's default access is Viewer.
|
|
169
166
|
* @param {String} projectOrProductUID
|
|
170
167
|
* @param {Object} opts Optional parameters
|
|
168
|
+
* @param {Boolean} opts.includeContent Use true to include exact Markdown content. Omit or use false for metadata only. (default to false)
|
|
171
169
|
* @param {String} opts.ifNoneMatch Return 304 if an ETag from GetSkills matches, or use * to match any current representation.
|
|
172
170
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SkillSet} and HTTP response
|
|
173
171
|
*/
|
|
@@ -183,7 +181,9 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
181
|
var pathParams = {
|
|
184
182
|
projectOrProductUID: projectOrProductUID
|
|
185
183
|
};
|
|
186
|
-
var queryParams = {
|
|
184
|
+
var queryParams = {
|
|
185
|
+
includeContent: opts["includeContent"]
|
|
186
|
+
};
|
|
187
187
|
var headerParams = {
|
|
188
188
|
"If-None-Match": opts["ifNoneMatch"]
|
|
189
189
|
};
|
|
@@ -196,10 +196,11 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
*
|
|
200
|
-
*
|
|
199
|
+
* List project skills
|
|
200
|
+
* List a project's skills, the Markdown guides agents read, with metadata only unless `includeContent=true`. Not paginated; a project with none returns `skills: []`. On 413, list metadata and use `GetSkill` for each document. Subprojects read their parent's skills. Any role can read them, and so can anonymous callers when the project's default access is Viewer.
|
|
201
201
|
* @param {String} projectOrProductUID
|
|
202
202
|
* @param {Object} opts Optional parameters
|
|
203
|
+
* @param {Boolean} opts.includeContent Use true to include exact Markdown content. Omit or use false for metadata only. (default to false)
|
|
203
204
|
* @param {String} opts.ifNoneMatch Return 304 if an ETag from GetSkills matches, or use * to match any current representation.
|
|
204
205
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SkillSet}
|
|
205
206
|
*/
|
|
@@ -212,58 +213,10 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
216
|
+
* Create or replace a project skill
|
|
217
|
+
* Create a skill with `If-None-Match: *`, or replace it with `If-Match` set to the revision from `GetSkill`. Send `content` and optional `kinds`; omit `kinds` to keep them, or send `[]` to clear them. An identical write returns unchanged. Requires the Owner or Developer role. Subprojects must write to their parent project.
|
|
217
218
|
* @param {String} projectOrProductUID
|
|
218
|
-
* @param {
|
|
219
|
-
* @param {String} opts.ifNoneMatch Return 304 if an ETag from ListSkills matches, or use * to match any current representation.
|
|
220
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SkillCatalog} and HTTP response
|
|
221
|
-
*/
|
|
222
|
-
}, {
|
|
223
|
-
key: "listSkillsWithHttpInfo",
|
|
224
|
-
value: function listSkillsWithHttpInfo(projectOrProductUID, opts) {
|
|
225
|
-
opts = opts || {};
|
|
226
|
-
var postBody = null;
|
|
227
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
228
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
229
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listSkills");
|
|
230
|
-
}
|
|
231
|
-
var pathParams = {
|
|
232
|
-
projectOrProductUID: projectOrProductUID
|
|
233
|
-
};
|
|
234
|
-
var queryParams = {};
|
|
235
|
-
var headerParams = {
|
|
236
|
-
"If-None-Match": opts["ifNoneMatch"]
|
|
237
|
-
};
|
|
238
|
-
var formParams = {};
|
|
239
|
-
var authNames = ["personalAccessToken"];
|
|
240
|
-
var contentTypes = [];
|
|
241
|
-
var accepts = ["application/json"];
|
|
242
|
-
var returnType = _SkillCatalog["default"];
|
|
243
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/skills/list", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* List Project Skills (Product Skills) metadata
|
|
248
|
-
* Browse Project Skills (also called Product Skills) using a project UID or product UID. Returns every skill's name, kinds, size, revision, timestamps and links in one call, without content. Use GetSkills for all content or GetSkill for one document. Requires Viewer access; default public Viewer access allows nonmembers and unauthenticated callers.
|
|
249
|
-
* @param {String} projectOrProductUID
|
|
250
|
-
* @param {Object} opts Optional parameters
|
|
251
|
-
* @param {String} opts.ifNoneMatch Return 304 if an ETag from ListSkills matches, or use * to match any current representation.
|
|
252
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SkillCatalog}
|
|
253
|
-
*/
|
|
254
|
-
}, {
|
|
255
|
-
key: "listSkills",
|
|
256
|
-
value: function listSkills(projectOrProductUID, opts) {
|
|
257
|
-
return this.listSkillsWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
258
|
-
return response_and_data.data;
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Create or replace a Project Skill (Product Skill)
|
|
264
|
-
* Create or replace a Markdown document in Project Skills (also called Product Skills), using a project UID or product UID. Requires Developer access or above; replacement checks both Create and Delete permissions. Create with If-None-Match: *, or replace with If-Match: \"revision\" from GetSkill. Content is preserved exactly. Omit kinds to preserve existing kinds, or send [] to clear them. An identical write returns unchanged.
|
|
265
|
-
* @param {String} projectOrProductUID
|
|
266
|
-
* @param {String} name Logical relative Markdown path, e.g. index.md or references/devices.md. Case-insensitive identity; spelling is preserved. At most 512 UTF-8 bytes. No traversal, absolute paths, backslashes, colons or non-normalized paths.
|
|
219
|
+
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
267
220
|
* @param {module:model/SkillWrite} skillWrite
|
|
268
221
|
* @param {Object} opts Optional parameters
|
|
269
222
|
* @param {String} opts.ifMatch Required for replacement; use one strong ETag or quoted skill revision. Wildcards and weak tags are rejected.
|
|
@@ -272,27 +225,26 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
272
225
|
*/
|
|
273
226
|
}, {
|
|
274
227
|
key: "putSkillWithHttpInfo",
|
|
275
|
-
value: function putSkillWithHttpInfo(projectOrProductUID,
|
|
228
|
+
value: function putSkillWithHttpInfo(projectOrProductUID, skillName, skillWrite, opts) {
|
|
276
229
|
opts = opts || {};
|
|
277
230
|
var postBody = skillWrite;
|
|
278
231
|
// verify the required parameter 'projectOrProductUID' is set
|
|
279
232
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
280
233
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putSkill");
|
|
281
234
|
}
|
|
282
|
-
// verify the required parameter '
|
|
283
|
-
if (
|
|
284
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
235
|
+
// verify the required parameter 'skillName' is set
|
|
236
|
+
if (skillName === undefined || skillName === null) {
|
|
237
|
+
throw new _Error["default"]("Missing the required parameter 'skillName' when calling putSkill");
|
|
285
238
|
}
|
|
286
239
|
// verify the required parameter 'skillWrite' is set
|
|
287
240
|
if (skillWrite === undefined || skillWrite === null) {
|
|
288
241
|
throw new _Error["default"]("Missing the required parameter 'skillWrite' when calling putSkill");
|
|
289
242
|
}
|
|
290
243
|
var pathParams = {
|
|
291
|
-
projectOrProductUID: projectOrProductUID
|
|
292
|
-
|
|
293
|
-
var queryParams = {
|
|
294
|
-
name: name
|
|
244
|
+
projectOrProductUID: projectOrProductUID,
|
|
245
|
+
skillName: skillName
|
|
295
246
|
};
|
|
247
|
+
var queryParams = {};
|
|
296
248
|
var headerParams = {
|
|
297
249
|
"If-Match": opts["ifMatch"],
|
|
298
250
|
"If-None-Match": opts["ifNoneMatch"]
|
|
@@ -302,14 +254,14 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
302
254
|
var contentTypes = ["application/json"];
|
|
303
255
|
var accepts = ["application/json"];
|
|
304
256
|
var returnType = _SkillWriteResult["default"];
|
|
305
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/skills/
|
|
257
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/skills/{skillName}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
306
258
|
}
|
|
307
259
|
|
|
308
260
|
/**
|
|
309
|
-
* Create or replace a
|
|
310
|
-
* Create
|
|
261
|
+
* Create or replace a project skill
|
|
262
|
+
* Create a skill with `If-None-Match: *`, or replace it with `If-Match` set to the revision from `GetSkill`. Send `content` and optional `kinds`; omit `kinds` to keep them, or send `[]` to clear them. An identical write returns unchanged. Requires the Owner or Developer role. Subprojects must write to their parent project.
|
|
311
263
|
* @param {String} projectOrProductUID
|
|
312
|
-
* @param {String}
|
|
264
|
+
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
313
265
|
* @param {module:model/SkillWrite} skillWrite
|
|
314
266
|
* @param {Object} opts Optional parameters
|
|
315
267
|
* @param {String} opts.ifMatch Required for replacement; use one strong ETag or quoted skill revision. Wildcards and weak tags are rejected.
|
|
@@ -318,8 +270,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
318
270
|
*/
|
|
319
271
|
}, {
|
|
320
272
|
key: "putSkill",
|
|
321
|
-
value: function putSkill(projectOrProductUID,
|
|
322
|
-
return this.putSkillWithHttpInfo(projectOrProductUID,
|
|
273
|
+
value: function putSkill(projectOrProductUID, skillName, skillWrite, opts) {
|
|
274
|
+
return this.putSkillWithHttpInfo(projectOrProductUID, skillName, skillWrite, opts).then(function (response_and_data) {
|
|
323
275
|
return response_and_data.data;
|
|
324
276
|
});
|
|
325
277
|
}
|