codehooks-js 1.2.17 → 1.2.18
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/aggregation/index.mjs +1 -0
- package/package.json +1 -1
- package/types/index.d.ts +11 -1
package/aggregation/index.mjs
CHANGED
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -221,6 +221,11 @@ export type NoSQLAPI = {
|
|
|
221
221
|
/**
|
|
222
222
|
* - Update one data object by ID in a datastore collection.
|
|
223
223
|
* - Input document is patched with the matched database object
|
|
224
|
+
* @param query string | object
|
|
225
|
+
* @param document object
|
|
226
|
+
* @param updateoperators object
|
|
227
|
+
* @param options object - {upsert: true}
|
|
228
|
+
* @returns Promise<object>
|
|
224
229
|
*/
|
|
225
230
|
updateOne: (
|
|
226
231
|
query: string | object,
|
|
@@ -325,6 +330,11 @@ export type DatastoreAPI = {
|
|
|
325
330
|
/**
|
|
326
331
|
* - Update one data object by ID in a datastore collection.
|
|
327
332
|
* - Input document is patched with the matched database object
|
|
333
|
+
* @param collection string
|
|
334
|
+
* @param query string | object
|
|
335
|
+
* @param updateoperators object
|
|
336
|
+
* @param options object - {upsert: true}
|
|
337
|
+
* @returns Promise<any>
|
|
328
338
|
*/
|
|
329
339
|
updateOne: (
|
|
330
340
|
collection: string,
|
|
@@ -579,7 +589,7 @@ export type httpResponse = {
|
|
|
579
589
|
* @param value string
|
|
580
590
|
* @returns
|
|
581
591
|
*/
|
|
582
|
-
setHeader: (header: string, value: string) => any;
|
|
592
|
+
setHeader: (header: string, value: string | string[]) => any;
|
|
583
593
|
/**
|
|
584
594
|
* Remove any default headers from a response
|
|
585
595
|
* @param header string
|