zudello-integration-sdk 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudello-integration-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Zudello Integrations SDK",
5
5
  "main": "./src/index.js",
6
6
  "repository": {
@@ -117,6 +117,14 @@ class Logger {
117
117
  getLogs() {
118
118
  return this.logs
119
119
  }
120
+
121
+ /**
122
+ * Logs setter.
123
+ * @param {array} logs Array of log objects
124
+ */
125
+ setLogs(logs = []) {
126
+ this.logs = logs
127
+ }
120
128
  }
121
129
 
122
130
  module.exports = Logger
@@ -45,7 +45,7 @@ class Metadata {
45
45
 
46
46
  /**
47
47
  * Retrieves all metadata and global metadata.
48
- *
48
+ *
49
49
  * @returns {Object} An object containing both metadata and globalMetadata arrays.
50
50
  */
51
51
  getAll() {
@@ -55,6 +55,17 @@ class Metadata {
55
55
  }
56
56
  }
57
57
 
58
+ /**
59
+ * Metadata setter.
60
+ *
61
+ * @param {array} metadata Metadata
62
+ * @param {array} globalMetadata Global Metadata
63
+ */
64
+ setAll(metadata = [], globalMetadata = []) {
65
+ this.metadata = metadata
66
+ this.globalMetadata = globalMetadata
67
+ }
68
+
58
69
  /**
59
70
  * Sets the value for a specified key in either metadata or global metadata.
60
71
  *
package/src/utils/tags.js CHANGED
@@ -27,6 +27,14 @@ class Tags {
27
27
  getAll() {
28
28
  return this.tags
29
29
  }
30
+
31
+ /**
32
+ * Tags setter.
33
+ * @param {array} tags An array of tags.
34
+ */
35
+ setAll(tags = []) {
36
+ this.tags = tags
37
+ }
30
38
  }
31
39
 
32
40
  module.exports = Tags