@magda/minion-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 +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -624,8 +624,9 @@ declare class RecordsApi {
|
|
|
624
624
|
* @param id ID of the record to be fetched.
|
|
625
625
|
* @param record The record to save.
|
|
626
626
|
* @param xMagdaSession Magda internal session id
|
|
627
|
+
* @param merge Whether merge the supplied aspect data to existing aspect data or replace it
|
|
627
628
|
*/
|
|
628
|
-
putById(xMagdaTenantId: number, id: string, record: Record_2, xMagdaSession: string): Promise<{
|
|
629
|
+
putById(xMagdaTenantId: number, id: string, record: Record_2, xMagdaSession: string, merge?: boolean): Promise<{
|
|
629
630
|
response: http.IncomingMessage;
|
|
630
631
|
body: Record_2;
|
|
631
632
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -39793,8 +39793,9 @@ class RecordsApi {
|
|
|
39793
39793
|
* @param id ID of the record to be fetched.
|
|
39794
39794
|
* @param record The record to save.
|
|
39795
39795
|
* @param xMagdaSession Magda internal session id
|
|
39796
|
+
* @param merge Whether merge the supplied aspect data to existing aspect data or replace it
|
|
39796
39797
|
*/
|
|
39797
|
-
putById(xMagdaTenantId, id, record, xMagdaSession) {
|
|
39798
|
+
putById(xMagdaTenantId, id, record, xMagdaSession, merge) {
|
|
39798
39799
|
const localVarPath = this.basePath + '/records/{id}'
|
|
39799
39800
|
.replace('{' + 'id' + '}', String(id));
|
|
39800
39801
|
let queryParameters = {};
|
|
@@ -39816,6 +39817,9 @@ class RecordsApi {
|
|
|
39816
39817
|
if (xMagdaSession === null || xMagdaSession === undefined) {
|
|
39817
39818
|
throw new Error('Required parameter xMagdaSession was null or undefined when calling putById.');
|
|
39818
39819
|
}
|
|
39820
|
+
if (merge !== undefined) {
|
|
39821
|
+
queryParameters['merge'] = merge;
|
|
39822
|
+
}
|
|
39819
39823
|
headerParams['X-Magda-Tenant-Id'] = xMagdaTenantId;
|
|
39820
39824
|
headerParams['X-Magda-Session'] = xMagdaSession;
|
|
39821
39825
|
let useFormData = false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magda/minion-sdk",
|
|
3
3
|
"description": "MAGDA Minion SDK",
|
|
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,8 +12,8 @@
|
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@magda/minion-framework": "^2.
|
|
16
|
-
"@magda/typescript-common": "^2.
|
|
15
|
+
"@magda/minion-framework": "^2.2.0-alpha.0",
|
|
16
|
+
"@magda/typescript-common": "^2.2.0-alpha.0",
|
|
17
17
|
"@microsoft/api-extractor": "~7.15.2",
|
|
18
18
|
"ts-loader": "^6.2.1",
|
|
19
19
|
"typescript": "~4.2.4",
|