File tree 2 files changed +19
-0
lines changed
packages/backend/src/api/endpoints
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
+
1
3
import type { Email } from '../resources/Email' ;
2
4
import { AbstractAPI } from './AbstractApi' ;
3
5
@@ -10,8 +12,18 @@ type EmailParams = {
10
12
11
13
const basePath = '/emails' ;
12
14
15
+ /**
16
+ * @deprecated This endpoint is no longer available and the function will be removed in the next major version.
17
+ */
13
18
export 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
+ */
14
22
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
+ ) ;
15
27
return this . request < Email > ( {
16
28
method : 'POST' ,
17
29
path : basePath ,
You can’t perform that action at this time.
0 commit comments