File tree Expand file tree Collapse file tree 4 files changed +0
-39
lines changed
packages/clients/src/api/account/v2 Expand file tree Collapse file tree 4 files changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ import {
99import {
1010 marshalCreateProjectRequest ,
1111 marshalUpdateProjectRequest ,
12- unmarshalCaptchaProvider ,
1312 unmarshalListProjectsResponse ,
1413 unmarshalProject ,
1514} from './marshalling.gen'
1615import type {
17- CaptchaProvider ,
1816 CreateProjectRequest ,
1917 DeleteProjectRequest ,
2018 GetProjectRequest ,
@@ -151,18 +149,4 @@ export class API extends ParentAPI {
151149 } ,
152150 unmarshalProject ,
153151 )
154-
155- /**
156- * Get a Captcha provider.
157- *
158- * @returns A Promise of CaptchaProvider
159- */
160- getCaptchaProvider = ( ) =>
161- this . client . fetch < CaptchaProvider > (
162- {
163- method : 'GET' ,
164- path : `/account/v2/captcha-provider` ,
165- } ,
166- unmarshalCaptchaProvider ,
167- )
168152}
Original file line number Diff line number Diff line change 22// If you have any remark or suggestion do not hesitate to open an issue.
33export { API } from './api.gen'
44export type {
5- CaptchaProvider ,
6- CaptchaProviderName ,
75 CreateProjectRequest ,
86 DeleteProjectRequest ,
97 GetProjectRequest ,
Original file line number Diff line number Diff line change 77} from '../../../bridge'
88import type { DefaultValues } from '../../../bridge'
99import type {
10- CaptchaProvider ,
1110 CreateProjectRequest ,
1211 ListProjectsResponse ,
1312 Project ,
@@ -31,16 +30,6 @@ export const unmarshalProject = (data: unknown) => {
3130 } as Project
3231}
3332
34- export const unmarshalCaptchaProvider = ( data : unknown ) => {
35- if ( ! isJSONObject ( data ) ) {
36- throw new TypeError (
37- `Unmarshalling the type 'CaptchaProvider' failed as data isn't a dictionary.` ,
38- )
39- }
40-
41- return { name : data . name } as CaptchaProvider
42- }
43-
4433export const unmarshalListProjectsResponse = ( data : unknown ) => {
4534 if ( ! isJSONObject ( data ) ) {
4635 throw new TypeError (
Original file line number Diff line number Diff line change 11// This file was automatically generated. DO NOT EDIT.
22// If you have any remark or suggestion do not hesitate to open an issue.
33
4- export type CaptchaProviderName =
5- | 'unknown_name'
6- | 'recaptcha_v2'
7- | 'friendly_captcha'
8- | 'hcaptcha'
9-
104export type ListProjectsRequestOrderBy =
115 | 'created_at_asc'
126 | 'created_at_desc'
137 | 'name_asc'
148 | 'name_desc'
159
16- export interface CaptchaProvider {
17- name : CaptchaProviderName
18- }
19-
2010/** List projects response. */
2111export interface ListProjectsResponse {
2212 /** Total number of Projects. */
You can’t perform that action at this time.
0 commit comments