@inneropen/marvin-sdk 2.0.0-next.23 → 2.0.0-next.25
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/{chunk-CIFRKLJS.js → chunk-DCTX4NSF.js} +24 -126
- package/dist/index-D5zkKa4N.d.cts +3394 -0
- package/dist/index-D5zkKa4N.d.ts +3394 -0
- package/dist/index.cjs +24 -126
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/{marvin-B6kWCfmU.d.ts → marvin-DDpwJbmj.d.ts} +83 -104
- package/dist/{marvin-ixVRMtIS.d.cts → marvin-DcQimSKv.d.cts} +83 -104
- package/dist/platform.cjs +1 -14
- package/dist/platform.d.cts +28 -3521
- package/dist/platform.d.ts +28 -3521
- package/dist/platform.js +1 -14
- package/dist/publish.cjs +24 -126
- package/dist/publish.d.cts +3 -3
- package/dist/publish.d.ts +3 -3
- package/dist/publish.js +1 -1
- package/dist/types/index.d.cts +1 -218
- package/dist/types/index.d.ts +1 -218
- package/package.json +1 -1
package/dist/platform.cjs
CHANGED
|
@@ -1568,53 +1568,40 @@ var EmailTemplatesClient = class {
|
|
|
1568
1568
|
http;
|
|
1569
1569
|
/**
|
|
1570
1570
|
* List all email templates for the workspace
|
|
1571
|
-
* @param groupId - Workspace ID
|
|
1572
1571
|
*/
|
|
1573
1572
|
async list(groupId) {
|
|
1574
1573
|
return this.http.get(`/api/platform/workspaces/${groupId}/email-templates`);
|
|
1575
1574
|
}
|
|
1576
1575
|
/**
|
|
1577
1576
|
* Get a specific email template
|
|
1578
|
-
* @param groupId - Workspace ID
|
|
1579
|
-
* @param templateId - Template ID
|
|
1580
1577
|
*/
|
|
1581
1578
|
async get(groupId, templateId) {
|
|
1582
1579
|
return this.http.get(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
|
|
1583
1580
|
}
|
|
1584
1581
|
/**
|
|
1585
1582
|
* Create a new email template
|
|
1586
|
-
* @param groupId - Workspace ID
|
|
1587
|
-
* @param data - Template data
|
|
1588
1583
|
*/
|
|
1589
1584
|
async create(groupId, data) {
|
|
1590
1585
|
return this.http.post(`/api/platform/workspaces/${groupId}/email-templates`, data);
|
|
1591
1586
|
}
|
|
1592
1587
|
/**
|
|
1593
1588
|
* Update an email template
|
|
1594
|
-
* @param groupId - Workspace ID
|
|
1595
|
-
* @param templateId - Template ID
|
|
1596
|
-
* @param data - Updated template data
|
|
1597
1589
|
*/
|
|
1598
1590
|
async update(groupId, templateId, data) {
|
|
1599
1591
|
return this.http.patch(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`, data);
|
|
1600
1592
|
}
|
|
1601
1593
|
/**
|
|
1602
1594
|
* Delete an email template
|
|
1603
|
-
* @param groupId - Workspace ID
|
|
1604
|
-
* @param templateId - Template ID
|
|
1605
1595
|
*/
|
|
1606
1596
|
async delete(groupId, templateId) {
|
|
1607
1597
|
await this.http.delete(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
|
|
1608
1598
|
}
|
|
1609
1599
|
/**
|
|
1610
1600
|
* Send a test email using a template
|
|
1611
|
-
* @param groupId - Workspace ID
|
|
1612
|
-
* @param templateId - Template ID
|
|
1613
|
-
* @param recipientEmail - Test recipient email address
|
|
1614
1601
|
*/
|
|
1615
1602
|
async sendTest(groupId, templateId, recipientEmail) {
|
|
1616
1603
|
return this.http.post(`/api/platform/workspaces/${groupId}/email-templates/${templateId}/test`, {
|
|
1617
|
-
|
|
1604
|
+
email: recipientEmail
|
|
1618
1605
|
});
|
|
1619
1606
|
}
|
|
1620
1607
|
};
|