@narrative.io/data-collaboration-sdk-ts 2.14.0 → 2.15.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/build/mappings/index.d.ts +9 -0
- package/build/mappings/index.js +11 -0
- package/package.json +1 -1
|
@@ -82,6 +82,15 @@ declare class MappingsApi extends BaseApi {
|
|
|
82
82
|
* @async
|
|
83
83
|
*/
|
|
84
84
|
rejectMapping(mappingId: string): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Promotes a mapping to global scope.
|
|
87
|
+
*
|
|
88
|
+
* @param {string} mappingId - The ID of the mapping to promote.
|
|
89
|
+
* @returns {Promise<void>} A promise that resolves when the mapping is succesfully promoted.
|
|
90
|
+
* @public
|
|
91
|
+
* @async
|
|
92
|
+
*/
|
|
93
|
+
promoteMapping(mappingId: string): Promise<void>;
|
|
85
94
|
/**
|
|
86
95
|
* Updates a mapping.
|
|
87
96
|
*
|
package/build/mappings/index.js
CHANGED
|
@@ -118,6 +118,17 @@ class MappingsApi extends BaseApi {
|
|
|
118
118
|
async rejectMapping(mappingId) {
|
|
119
119
|
await this.post(`${resourceName}/${mappingId}/reject`);
|
|
120
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* Promotes a mapping to global scope.
|
|
123
|
+
*
|
|
124
|
+
* @param {string} mappingId - The ID of the mapping to promote.
|
|
125
|
+
* @returns {Promise<void>} A promise that resolves when the mapping is succesfully promoted.
|
|
126
|
+
* @public
|
|
127
|
+
* @async
|
|
128
|
+
*/
|
|
129
|
+
async promoteMapping(mappingId) {
|
|
130
|
+
await this.post(`${resourceName}/${mappingId}/promote`);
|
|
131
|
+
}
|
|
121
132
|
/**
|
|
122
133
|
* Updates a mapping.
|
|
123
134
|
*
|