@magda/connector-sdk 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
|
@@ -950,8 +950,9 @@ declare class RecordsApi {
|
|
|
950
950
|
* @param id ID of the record to be fetched.
|
|
951
951
|
* @param record The record to save.
|
|
952
952
|
* @param xMagdaSession Magda internal session id
|
|
953
|
+
* @param merge Whether merge the supplied aspect data to existing aspect data or replace it
|
|
953
954
|
*/
|
|
954
|
-
putById(xMagdaTenantId: number, id: string, record: Record_2, xMagdaSession: string): Promise<{
|
|
955
|
+
putById(xMagdaTenantId: number, id: string, record: Record_2, xMagdaSession: string, merge?: boolean): Promise<{
|
|
955
956
|
response: http.IncomingMessage;
|
|
956
957
|
body: Record_2;
|
|
957
958
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -17496,8 +17496,9 @@ class RecordsApi {
|
|
|
17496
17496
|
* @param id ID of the record to be fetched.
|
|
17497
17497
|
* @param record The record to save.
|
|
17498
17498
|
* @param xMagdaSession Magda internal session id
|
|
17499
|
+
* @param merge Whether merge the supplied aspect data to existing aspect data or replace it
|
|
17499
17500
|
*/
|
|
17500
|
-
putById(xMagdaTenantId, id, record, xMagdaSession) {
|
|
17501
|
+
putById(xMagdaTenantId, id, record, xMagdaSession, merge) {
|
|
17501
17502
|
const localVarPath = this.basePath + '/records/{id}'
|
|
17502
17503
|
.replace('{' + 'id' + '}', String(id));
|
|
17503
17504
|
let queryParameters = {};
|
|
@@ -17519,6 +17520,9 @@ class RecordsApi {
|
|
|
17519
17520
|
if (xMagdaSession === null || xMagdaSession === undefined) {
|
|
17520
17521
|
throw new Error('Required parameter xMagdaSession was null or undefined when calling putById.');
|
|
17521
17522
|
}
|
|
17523
|
+
if (merge !== undefined) {
|
|
17524
|
+
queryParameters['merge'] = merge;
|
|
17525
|
+
}
|
|
17522
17526
|
headerParams['X-Magda-Tenant-Id'] = xMagdaTenantId;
|
|
17523
17527
|
headerParams['X-Magda-Session'] = xMagdaSession;
|
|
17524
17528
|
let useFormData = false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magda/connector-sdk",
|
|
3
3
|
"description": "MAGDA Connector SDK",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0-alpha.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf dist tsconfig.tsbuildinfo",
|
|
7
7
|
"compile": "webpack && webpack --env.target=web",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"browser": "dist/index-web.js",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@magda/typescript-common": "^2.
|
|
17
|
+
"@magda/typescript-common": "^2.2.0-alpha.0",
|
|
18
18
|
"@microsoft/api-extractor": "7.15.2",
|
|
19
19
|
"ts-loader": "^6.2.1",
|
|
20
20
|
"typescript": "~4.2.4",
|