@inneropen/marvin-sdk 2.0.0-next.7 → 2.0.0-next.8

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/platform.cjs CHANGED
@@ -1165,7 +1165,7 @@ var EmailTemplatesClient = class {
1165
1165
  * @param groupId - Workspace ID
1166
1166
  */
1167
1167
  async list(groupId) {
1168
- return this.http.get(`/platform/workspaces/${groupId}/email-templates`);
1168
+ return this.http.get(`/api/platform/workspaces/${groupId}/email-templates`);
1169
1169
  }
1170
1170
  /**
1171
1171
  * Get a specific email template
@@ -1173,7 +1173,7 @@ var EmailTemplatesClient = class {
1173
1173
  * @param templateId - Template ID
1174
1174
  */
1175
1175
  async get(groupId, templateId) {
1176
- return this.http.get(`/platform/workspaces/${groupId}/email-templates/${templateId}`);
1176
+ return this.http.get(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
1177
1177
  }
1178
1178
  /**
1179
1179
  * Create a new email template
@@ -1181,7 +1181,7 @@ var EmailTemplatesClient = class {
1181
1181
  * @param data - Template data
1182
1182
  */
1183
1183
  async create(groupId, data) {
1184
- return this.http.post(`/platform/workspaces/${groupId}/email-templates`, data);
1184
+ return this.http.post(`/api/platform/workspaces/${groupId}/email-templates`, data);
1185
1185
  }
1186
1186
  /**
1187
1187
  * Update an email template
@@ -1190,7 +1190,7 @@ var EmailTemplatesClient = class {
1190
1190
  * @param data - Updated template data
1191
1191
  */
1192
1192
  async update(groupId, templateId, data) {
1193
- return this.http.patch(`/platform/workspaces/${groupId}/email-templates/${templateId}`, data);
1193
+ return this.http.patch(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`, data);
1194
1194
  }
1195
1195
  /**
1196
1196
  * Delete an email template
@@ -1198,7 +1198,7 @@ var EmailTemplatesClient = class {
1198
1198
  * @param templateId - Template ID
1199
1199
  */
1200
1200
  async delete(groupId, templateId) {
1201
- await this.http.delete(`/platform/workspaces/${groupId}/email-templates/${templateId}`);
1201
+ await this.http.delete(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
1202
1202
  }
1203
1203
  /**
1204
1204
  * Send a test email using a template
@@ -1207,7 +1207,7 @@ var EmailTemplatesClient = class {
1207
1207
  * @param recipientEmail - Test recipient email address
1208
1208
  */
1209
1209
  async sendTest(groupId, templateId, recipientEmail) {
1210
- return this.http.post(`/platform/workspaces/${groupId}/email-templates/${templateId}/test`, {
1210
+ return this.http.post(`/api/platform/workspaces/${groupId}/email-templates/${templateId}/test`, {
1211
1211
  recipient_email: recipientEmail
1212
1212
  });
1213
1213
  }
package/dist/platform.js CHANGED
@@ -941,7 +941,7 @@ var EmailTemplatesClient = class {
941
941
  * @param groupId - Workspace ID
942
942
  */
943
943
  async list(groupId) {
944
- return this.http.get(`/platform/workspaces/${groupId}/email-templates`);
944
+ return this.http.get(`/api/platform/workspaces/${groupId}/email-templates`);
945
945
  }
946
946
  /**
947
947
  * Get a specific email template
@@ -949,7 +949,7 @@ var EmailTemplatesClient = class {
949
949
  * @param templateId - Template ID
950
950
  */
951
951
  async get(groupId, templateId) {
952
- return this.http.get(`/platform/workspaces/${groupId}/email-templates/${templateId}`);
952
+ return this.http.get(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
953
953
  }
954
954
  /**
955
955
  * Create a new email template
@@ -957,7 +957,7 @@ var EmailTemplatesClient = class {
957
957
  * @param data - Template data
958
958
  */
959
959
  async create(groupId, data) {
960
- return this.http.post(`/platform/workspaces/${groupId}/email-templates`, data);
960
+ return this.http.post(`/api/platform/workspaces/${groupId}/email-templates`, data);
961
961
  }
962
962
  /**
963
963
  * Update an email template
@@ -966,7 +966,7 @@ var EmailTemplatesClient = class {
966
966
  * @param data - Updated template data
967
967
  */
968
968
  async update(groupId, templateId, data) {
969
- return this.http.patch(`/platform/workspaces/${groupId}/email-templates/${templateId}`, data);
969
+ return this.http.patch(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`, data);
970
970
  }
971
971
  /**
972
972
  * Delete an email template
@@ -974,7 +974,7 @@ var EmailTemplatesClient = class {
974
974
  * @param templateId - Template ID
975
975
  */
976
976
  async delete(groupId, templateId) {
977
- await this.http.delete(`/platform/workspaces/${groupId}/email-templates/${templateId}`);
977
+ await this.http.delete(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
978
978
  }
979
979
  /**
980
980
  * Send a test email using a template
@@ -983,7 +983,7 @@ var EmailTemplatesClient = class {
983
983
  * @param recipientEmail - Test recipient email address
984
984
  */
985
985
  async sendTest(groupId, templateId, recipientEmail) {
986
- return this.http.post(`/platform/workspaces/${groupId}/email-templates/${templateId}/test`, {
986
+ return this.http.post(`/api/platform/workspaces/${groupId}/email-templates/${templateId}/test`, {
987
987
  recipient_email: recipientEmail
988
988
  });
989
989
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inneropen/marvin-sdk",
3
- "version": "2.0.0-next.7",
3
+ "version": "2.0.0-next.8",
4
4
  "description": "Official TypeScript SDK for Marvin CMS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",