@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.
@@ -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
  *
@@ -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
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",