rest-client-sdk 7.2.2 → 7.3.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/README.md +6 -1
- package/dist/index.cjs +24 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +24 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/client/AbstractClient.d.ts +9 -0
- package/package.json +1 -1
|
@@ -55,6 +55,15 @@ declare class AbstractClient<D extends MetadataDefinition> {
|
|
|
55
55
|
* @param {Record<string, unknown>} requestParams parameters that will be send as second parameter to the `fetch` call
|
|
56
56
|
*/
|
|
57
57
|
update(entity: D['entity'], queryParam?: Record<string, unknown>, requestParams?: Record<string, unknown>): Promise<D['entity']>;
|
|
58
|
+
/**
|
|
59
|
+
* partially update an entity using the `PATCH` HTTP verb
|
|
60
|
+
*
|
|
61
|
+
* @param {Record<string, unknown>} entity the entity to update
|
|
62
|
+
* @param {Record<string, unknown>} queryParam query parameters that will be added to the request
|
|
63
|
+
* @param {Record<string, unknown>} requestParams parameters that will be send as second parameter to the `fetch` call
|
|
64
|
+
*/
|
|
65
|
+
patch(entity: D['entity'], queryParam?: Record<string, unknown>, requestParams?: Record<string, unknown>): Promise<D['entity']>;
|
|
66
|
+
private _update;
|
|
58
67
|
/**
|
|
59
68
|
* delete an entity
|
|
60
69
|
*
|