@magda/registry-client 2.1.2-alpha.0 → 2.2.0-alpha.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/dist/index.d.ts +2 -1
- package/dist/index.js +5 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -579,8 +579,9 @@ declare class RecordsApi {
|
|
|
579
579
|
* @param id ID of the record to be fetched.
|
|
580
580
|
* @param record The record to save.
|
|
581
581
|
* @param xMagdaSession Magda internal session id
|
|
582
|
+
* @param merge Whether merge the supplied aspect data to existing aspect data or replace it
|
|
582
583
|
*/
|
|
583
|
-
putById(xMagdaTenantId: number, id: string, record: Record_2, xMagdaSession: string): Promise<{
|
|
584
|
+
putById(xMagdaTenantId: number, id: string, record: Record_2, xMagdaSession: string, merge?: boolean): Promise<{
|
|
584
585
|
response: http.IncomingMessage;
|
|
585
586
|
body: Record_2;
|
|
586
587
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -13319,8 +13319,9 @@ class RecordsApi {
|
|
|
13319
13319
|
* @param id ID of the record to be fetched.
|
|
13320
13320
|
* @param record The record to save.
|
|
13321
13321
|
* @param xMagdaSession Magda internal session id
|
|
13322
|
+
* @param merge Whether merge the supplied aspect data to existing aspect data or replace it
|
|
13322
13323
|
*/
|
|
13323
|
-
putById(xMagdaTenantId, id, record, xMagdaSession) {
|
|
13324
|
+
putById(xMagdaTenantId, id, record, xMagdaSession, merge) {
|
|
13324
13325
|
const localVarPath = this.basePath + '/records/{id}'
|
|
13325
13326
|
.replace('{' + 'id' + '}', String(id));
|
|
13326
13327
|
let queryParameters = {};
|
|
@@ -13342,6 +13343,9 @@ class RecordsApi {
|
|
|
13342
13343
|
if (xMagdaSession === null || xMagdaSession === undefined) {
|
|
13343
13344
|
throw new Error('Required parameter xMagdaSession was null or undefined when calling putById.');
|
|
13344
13345
|
}
|
|
13346
|
+
if (merge !== undefined) {
|
|
13347
|
+
queryParameters['merge'] = merge;
|
|
13348
|
+
}
|
|
13345
13349
|
headerParams['X-Magda-Tenant-Id'] = xMagdaTenantId;
|
|
13346
13350
|
headerParams['X-Magda-Session'] = xMagdaSession;
|
|
13347
13351
|
let useFormData = false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magda/registry-client",
|
|
3
3
|
"description": "MAGDA Registry Client",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0-alpha.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf dist tsconfig.tsbuildinfo",
|
|
7
7
|
"build": "webpack && api-extractor run -l",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@magda/typescript-common": "^2.
|
|
15
|
+
"@magda/typescript-common": "^2.2.0-alpha.0",
|
|
16
16
|
"@microsoft/api-extractor": "~7.15.2",
|
|
17
17
|
"ts-loader": "^6.2.1",
|
|
18
18
|
"typescript": "~4.2.4",
|