Skip to content

Commit 6856a32

Browse files
committed
fixed collection dto
1 parent 11357a3 commit 6856a32

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

dist/pocketbase.cjs.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ interface OTPConfig {
6565
interface MFAConfig {
6666
enabled: boolean;
6767
duration: number;
68+
rule: string;
6869
}
6970
interface PasswordAuthConfig {
7071
enabled: boolean;
@@ -73,6 +74,7 @@ interface PasswordAuthConfig {
7374
interface OAuth2Provider {
7475
pkce?: boolean;
7576
clientId: string;
77+
name: string;
7678
clientSecret: string;
7779
authUrl: string;
7880
tokenUrl: string;
@@ -84,9 +86,7 @@ interface OAuth2Config {
8486
mappedFields: {
8587
[key: string]: string;
8688
};
87-
Providers: {
88-
[key: string]: OAuth2Provider;
89-
};
89+
providers: Array<OAuth2Provider>;
9090
}
9191
interface EmailTemplate {
9292
subject: string;

dist/pocketbase.es.d.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ interface OTPConfig {
8686
interface MFAConfig {
8787
enabled: boolean;
8888
duration: number;
89+
rule: string;
8990
}
9091
interface PasswordAuthConfig {
9192
enabled: boolean;
@@ -94,6 +95,7 @@ interface PasswordAuthConfig {
9495
interface OAuth2Provider {
9596
pkce?: boolean;
9697
clientId: string;
98+
name: string;
9799
clientSecret: string;
98100
authUrl: string;
99101
tokenUrl: string;
@@ -105,9 +107,7 @@ interface OAuth2Config {
105107
mappedFields: {
106108
[key: string]: string;
107109
};
108-
Providers: {
109-
[key: string]: OAuth2Provider;
110-
};
110+
providers: Array<OAuth2Provider>;
111111
}
112112
interface EmailTemplate {
113113
subject: string;

dist/pocketbase.es.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ interface OTPConfig {
8686
interface MFAConfig {
8787
enabled: boolean;
8888
duration: number;
89+
rule: string;
8990
}
9091
interface PasswordAuthConfig {
9192
enabled: boolean;
@@ -94,6 +95,7 @@ interface PasswordAuthConfig {
9495
interface OAuth2Provider {
9596
pkce?: boolean;
9697
clientId: string;
98+
name: string;
9799
clientSecret: string;
98100
authUrl: string;
99101
tokenUrl: string;
@@ -105,9 +107,7 @@ interface OAuth2Config {
105107
mappedFields: {
106108
[key: string]: string;
107109
};
108-
Providers: {
109-
[key: string]: OAuth2Provider;
110-
};
110+
providers: Array<OAuth2Provider>;
111111
}
112112
interface EmailTemplate {
113113
subject: string;

dist/pocketbase.iife.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ interface OTPConfig {
6565
interface MFAConfig {
6666
enabled: boolean;
6767
duration: number;
68+
rule: string;
6869
}
6970
interface PasswordAuthConfig {
7071
enabled: boolean;
@@ -73,6 +74,7 @@ interface PasswordAuthConfig {
7374
interface OAuth2Provider {
7475
pkce?: boolean;
7576
clientId: string;
77+
name: string;
7678
clientSecret: string;
7779
authUrl: string;
7880
tokenUrl: string;
@@ -84,9 +86,7 @@ interface OAuth2Config {
8486
mappedFields: {
8587
[key: string]: string;
8688
};
87-
Providers: {
88-
[key: string]: OAuth2Provider;
89-
};
89+
providers: Array<OAuth2Provider>;
9090
}
9191
interface EmailTemplate {
9292
subject: string;

dist/pocketbase.umd.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ interface OTPConfig {
6565
interface MFAConfig {
6666
enabled: boolean;
6767
duration: number;
68+
rule: string;
6869
}
6970
interface PasswordAuthConfig {
7071
enabled: boolean;
@@ -73,6 +74,7 @@ interface PasswordAuthConfig {
7374
interface OAuth2Provider {
7475
pkce?: boolean;
7576
clientId: string;
77+
name: string;
7678
clientSecret: string;
7779
authUrl: string;
7880
tokenUrl: string;
@@ -84,9 +86,7 @@ interface OAuth2Config {
8486
mappedFields: {
8587
[key: string]: string;
8688
};
87-
Providers: {
88-
[key: string]: OAuth2Provider;
89-
};
89+
providers: Array<OAuth2Provider>;
9090
}
9191
interface EmailTemplate {
9292
subject: string;

src/tools/dtos.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface OTPConfig {
6161
export interface MFAConfig {
6262
enabled: boolean;
6363
duration: number;
64+
rule: string;
6465
}
6566

6667
export interface PasswordAuthConfig {
@@ -71,6 +72,7 @@ export interface PasswordAuthConfig {
7172
export interface OAuth2Provider {
7273
pkce?: boolean;
7374
clientId: string;
75+
name: string;
7476
clientSecret: string;
7577
authUrl: string;
7678
tokenUrl: string;
@@ -81,7 +83,7 @@ export interface OAuth2Provider {
8183
export interface OAuth2Config {
8284
enabled: boolean;
8385
mappedFields: { [key: string]: string };
84-
Providers: { [key: string]: OAuth2Provider };
86+
providers: Array<OAuth2Provider>;
8587
}
8688

8789
export interface EmailTemplate {

0 commit comments

Comments
 (0)