File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
packages/backend/src/api/endpoints Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @clerk/backend ' : patch
3+ ---
4+
5+ Add deprecation warning for ` EmailAPI.createEmail ` .
6+
7+ This endpoint is no longer available and the function will be removed in the next major version.
Original file line number Diff line number Diff line change 1+ import { deprecated } from '@clerk/shared/deprecated' ;
2+
13import type { Email } from '../resources/Email' ;
24import { AbstractAPI } from './AbstractApi' ;
35
@@ -10,8 +12,18 @@ type EmailParams = {
1012
1113const basePath = '/emails' ;
1214
15+ /**
16+ * @deprecated This endpoint is no longer available and the function will be removed in the next major version.
17+ */
1318export class EmailAPI extends AbstractAPI {
19+ /**
20+ * @deprecated This endpoint is no longer available and the function will be removed in the next major version.
21+ */
1422 public async createEmail ( params : EmailParams ) {
23+ deprecated (
24+ 'EmailAPI.createEmail' ,
25+ 'This endpoint is no longer available and the function will be removed in the next major version.' ,
26+ ) ;
1527 return this . request < Email > ( {
1628 method : 'POST' ,
1729 path : basePath ,
You can’t perform that action at this time.
0 commit comments