@novu/api 3.14.4 → 3.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.
Files changed (87) hide show
  1. package/README.md +6 -6
  2. package/funcs/activityTrack.d.ts +1 -1
  3. package/funcs/activityTrack.js +1 -1
  4. package/funcs/environmentVariablesDelete.d.ts +3 -3
  5. package/funcs/environmentVariablesDelete.d.ts.map +1 -1
  6. package/funcs/environmentVariablesDelete.js +8 -8
  7. package/funcs/environmentVariablesDelete.js.map +1 -1
  8. package/funcs/environmentVariablesRetrieve.d.ts +3 -3
  9. package/funcs/environmentVariablesRetrieve.d.ts.map +1 -1
  10. package/funcs/environmentVariablesRetrieve.js +8 -8
  11. package/funcs/environmentVariablesRetrieve.js.map +1 -1
  12. package/funcs/environmentVariablesUpdate.d.ts +1 -1
  13. package/funcs/environmentVariablesUpdate.d.ts.map +1 -1
  14. package/funcs/environmentVariablesUpdate.js +6 -6
  15. package/funcs/environmentVariablesUpdate.js.map +1 -1
  16. package/funcs/environmentVariablesUsage.d.ts +1 -1
  17. package/funcs/environmentVariablesUsage.d.ts.map +1 -1
  18. package/funcs/environmentVariablesUsage.js +6 -6
  19. package/funcs/environmentVariablesUsage.js.map +1 -1
  20. package/funcs/subscribersNotificationsList.js +0 -1
  21. package/funcs/subscribersNotificationsList.js.map +1 -1
  22. package/funcs/translationsMasterUpload.js +3 -2
  23. package/funcs/translationsMasterUpload.js.map +1 -1
  24. package/funcs/translationsUpload.js +3 -2
  25. package/funcs/translationsUpload.js.map +1 -1
  26. package/jsr.json +1 -1
  27. package/lib/config.d.ts +4 -4
  28. package/lib/config.js +4 -4
  29. package/lib/config.js.map +1 -1
  30. package/lib/encodings.d.ts +1 -0
  31. package/lib/encodings.d.ts.map +1 -1
  32. package/lib/encodings.js +7 -0
  33. package/lib/encodings.js.map +1 -1
  34. package/models/components/marksubscribernotificationsasseendto.d.ts +12 -3
  35. package/models/components/marksubscribernotificationsasseendto.d.ts.map +1 -1
  36. package/models/components/marksubscribernotificationsasseendto.js +9 -2
  37. package/models/components/marksubscribernotificationsasseendto.js.map +1 -1
  38. package/models/components/updateallsubscribernotificationsdto.d.ts +12 -3
  39. package/models/components/updateallsubscribernotificationsdto.d.ts.map +1 -1
  40. package/models/components/updateallsubscribernotificationsdto.js +8 -2
  41. package/models/components/updateallsubscribernotificationsdto.js.map +1 -1
  42. package/models/operations/environmentvariablescontrollerdeleteenvironmentvariable.d.ts +5 -2
  43. package/models/operations/environmentvariablescontrollerdeleteenvironmentvariable.d.ts.map +1 -1
  44. package/models/operations/environmentvariablescontrollerdeleteenvironmentvariable.js +1 -1
  45. package/models/operations/environmentvariablescontrollerdeleteenvironmentvariable.js.map +1 -1
  46. package/models/operations/environmentvariablescontrollergetenvironmentvariable.d.ts +5 -2
  47. package/models/operations/environmentvariablescontrollergetenvironmentvariable.d.ts.map +1 -1
  48. package/models/operations/environmentvariablescontrollergetenvironmentvariable.js +1 -1
  49. package/models/operations/environmentvariablescontrollergetenvironmentvariable.js.map +1 -1
  50. package/models/operations/environmentvariablescontrollergetenvironmentvariableusage.d.ts +5 -2
  51. package/models/operations/environmentvariablescontrollergetenvironmentvariableusage.d.ts.map +1 -1
  52. package/models/operations/environmentvariablescontrollergetenvironmentvariableusage.js +1 -1
  53. package/models/operations/environmentvariablescontrollergetenvironmentvariableusage.js.map +1 -1
  54. package/models/operations/environmentvariablescontrollerupdateenvironmentvariable.d.ts +5 -2
  55. package/models/operations/environmentvariablescontrollerupdateenvironmentvariable.d.ts.map +1 -1
  56. package/models/operations/environmentvariablescontrollerupdateenvironmentvariable.js +1 -1
  57. package/models/operations/environmentvariablescontrollerupdateenvironmentvariable.js.map +1 -1
  58. package/models/operations/subscriberscontrollergetsubscribernotifications.d.ts +0 -5
  59. package/models/operations/subscriberscontrollergetsubscribernotifications.d.ts.map +1 -1
  60. package/models/operations/subscriberscontrollergetsubscribernotifications.js +0 -1
  61. package/models/operations/subscriberscontrollergetsubscribernotifications.js.map +1 -1
  62. package/package.json +1 -1
  63. package/sdk/activity.d.ts +1 -1
  64. package/sdk/activity.js +1 -1
  65. package/sdk/environmentvariables.d.ts +8 -8
  66. package/sdk/environmentvariables.d.ts.map +1 -1
  67. package/sdk/environmentvariables.js +12 -12
  68. package/sdk/environmentvariables.js.map +1 -1
  69. package/src/funcs/activityTrack.ts +1 -1
  70. package/src/funcs/environmentVariablesDelete.ts +10 -8
  71. package/src/funcs/environmentVariablesRetrieve.ts +10 -8
  72. package/src/funcs/environmentVariablesUpdate.ts +8 -6
  73. package/src/funcs/environmentVariablesUsage.ts +6 -6
  74. package/src/funcs/subscribersNotificationsList.ts +0 -1
  75. package/src/funcs/translationsMasterUpload.ts +4 -3
  76. package/src/funcs/translationsUpload.ts +4 -3
  77. package/src/lib/config.ts +4 -4
  78. package/src/lib/encodings.ts +9 -0
  79. package/src/models/components/marksubscribernotificationsasseendto.ts +31 -4
  80. package/src/models/components/updateallsubscribernotificationsdto.ts +20 -4
  81. package/src/models/operations/environmentvariablescontrollerdeleteenvironmentvariable.ts +6 -3
  82. package/src/models/operations/environmentvariablescontrollergetenvironmentvariable.ts +6 -3
  83. package/src/models/operations/environmentvariablescontrollergetenvironmentvariableusage.ts +6 -3
  84. package/src/models/operations/environmentvariablescontrollerupdateenvironmentvariable.ts +6 -3
  85. package/src/models/operations/subscriberscontrollergetsubscribernotifications.ts +0 -6
  86. package/src/sdk/activity.ts +1 -1
  87. package/src/sdk/environmentvariables.ts +12 -12
@@ -58,13 +58,13 @@ export class EnvironmentVariables extends ClientSDK {
58
58
  }
59
59
 
60
60
  /**
61
- * Retrieve a variable
61
+ * Get environment variable
62
62
  *
63
63
  * @remarks
64
- * Returns a single environment variable by id. Secret values are masked.
64
+ * Returns a single environment variable by key. Secret values are masked.
65
65
  */
66
66
  async retrieve(
67
- variableId: string,
67
+ variableKey: string,
68
68
  idempotencyKey?: string | undefined,
69
69
  options?: RequestOptions,
70
70
  ): Promise<
@@ -72,7 +72,7 @@ export class EnvironmentVariables extends ClientSDK {
72
72
  > {
73
73
  return unwrapAsync(environmentVariablesRetrieve(
74
74
  this,
75
- variableId,
75
+ variableKey,
76
76
  idempotencyKey,
77
77
  options,
78
78
  ));
@@ -87,7 +87,7 @@ export class EnvironmentVariables extends ClientSDK {
87
87
  async update(
88
88
  updateEnvironmentVariableRequestDto:
89
89
  components.UpdateEnvironmentVariableRequestDto,
90
- variableId: string,
90
+ variableKey: string,
91
91
  idempotencyKey?: string | undefined,
92
92
  options?: RequestOptions,
93
93
  ): Promise<
@@ -96,20 +96,20 @@ export class EnvironmentVariables extends ClientSDK {
96
96
  return unwrapAsync(environmentVariablesUpdate(
97
97
  this,
98
98
  updateEnvironmentVariableRequestDto,
99
- variableId,
99
+ variableKey,
100
100
  idempotencyKey,
101
101
  options,
102
102
  ));
103
103
  }
104
104
 
105
105
  /**
106
- * Delete a variable
106
+ * Delete environment variable
107
107
  *
108
108
  * @remarks
109
- * Deletes an environment variable by id.
109
+ * Deletes an environment variable by key.
110
110
  */
111
111
  async delete(
112
- variableId: string,
112
+ variableKey: string,
113
113
  idempotencyKey?: string | undefined,
114
114
  options?: RequestOptions,
115
115
  ): Promise<
@@ -118,7 +118,7 @@ export class EnvironmentVariables extends ClientSDK {
118
118
  > {
119
119
  return unwrapAsync(environmentVariablesDelete(
120
120
  this,
121
- variableId,
121
+ variableKey,
122
122
  idempotencyKey,
123
123
  options,
124
124
  ));
@@ -131,7 +131,7 @@ export class EnvironmentVariables extends ClientSDK {
131
131
  * Returns the workflows that reference this environment variable via `{{env.KEY}}` in their step controls. **variableId** is required.
132
132
  */
133
133
  async usage(
134
- variableId: string,
134
+ variableKey: string,
135
135
  idempotencyKey?: string | undefined,
136
136
  options?: RequestOptions,
137
137
  ): Promise<
@@ -139,7 +139,7 @@ export class EnvironmentVariables extends ClientSDK {
139
139
  > {
140
140
  return unwrapAsync(environmentVariablesUsage(
141
141
  this,
142
- variableId,
142
+ variableKey,
143
143
  idempotencyKey,
144
144
  options,
145
145
  ));