@merkaly/api 0.1.10-6 → 0.1.10-9
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/package.json +1 -1
- package/src/account/connections/connection.validator.d.ts +9 -0
- package/src/account/connections/connection.validator.d.ts.map +1 -0
- package/src/account/connections/connection.validator.ts +16 -0
- package/src/account/organizations/connections/connection.validator.d.ts +9 -0
- package/src/account/organizations/connections/connection.validator.d.ts.map +1 -0
- package/src/account/organizations/connections/connection.validator.ts +15 -0
- package/src/account/users/extra/extra.validator.d.ts +1 -0
- package/src/account/users/extra/extra.validator.d.ts.map +1 -0
- package/src/account/users/extra/extra.validator.ts +0 -0
- package/src/account/users/user.validator.d.ts.map +1 -1
- package/src/account/users/user.validator.ts +1 -2
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateConnection, Strategy, UpdateConnection } from 'auth0';
|
|
2
|
+
export declare class CreateConnectionValidator implements CreateConnection {
|
|
3
|
+
name: string;
|
|
4
|
+
strategy: Strategy;
|
|
5
|
+
}
|
|
6
|
+
export declare type IdConnectionalidator = string;
|
|
7
|
+
export declare class UpdateConnectionValidator implements UpdateConnection {
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=connection.validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection.validator.d.ts","sourceRoot":"","sources":["connection.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAGpE,qBAAa,yBAA0B,YAAW,gBAAgB;IAEzD,IAAI,EAAE,MAAM,CAAA;IAGZ,QAAQ,EAAE,QAAQ,CAAA;CAC1B;AAED,oBAAY,oBAAoB,GAAG,MAAM,CAAA;AAEzC,qBAAa,yBAA0B,YAAW,gBAAgB;CAEjE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreateConnection, Strategy, UpdateConnection } from 'auth0'
|
|
2
|
+
import { IsString } from 'class-validator'
|
|
3
|
+
|
|
4
|
+
export class CreateConnectionValidator implements CreateConnection {
|
|
5
|
+
@IsString()
|
|
6
|
+
public name: string
|
|
7
|
+
|
|
8
|
+
@IsString()
|
|
9
|
+
public strategy: Strategy
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type IdConnectionalidator = string
|
|
13
|
+
|
|
14
|
+
export class UpdateConnectionValidator implements UpdateConnection {
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AddOrganizationEnabledConnection, UpdateOrganizationEnabledConnection } from 'auth0';
|
|
2
|
+
export declare class CreateConnectionValidator implements AddOrganizationEnabledConnection {
|
|
3
|
+
connection_id: string;
|
|
4
|
+
assign_membership_on_login: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class UpdateConnectionValidator implements UpdateOrganizationEnabledConnection {
|
|
7
|
+
assign_membership_on_login: boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=connection.validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection.validator.d.ts","sourceRoot":"","sources":["connection.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,mCAAmC,EAAE,MAAM,OAAO,CAAA;AAG7F,qBAAa,yBAA0B,YAAW,gCAAgC;IAEhF,aAAa,EAAE,MAAM,CAAA;IAGrB,0BAA0B,EAAE,OAAO,CAAA;CACpC;AAED,qBAAa,yBAA0B,YAAW,mCAAmC;IAEnF,0BAA0B,EAAE,OAAO,CAAA;CACpC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AddOrganizationEnabledConnection, UpdateOrganizationEnabledConnection } from 'auth0'
|
|
2
|
+
import { IsBoolean, IsString } from 'class-validator'
|
|
3
|
+
|
|
4
|
+
export class CreateConnectionValidator implements AddOrganizationEnabledConnection {
|
|
5
|
+
@IsString()
|
|
6
|
+
connection_id: string
|
|
7
|
+
|
|
8
|
+
@IsBoolean()
|
|
9
|
+
assign_membership_on_login: boolean
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class UpdateConnectionValidator implements UpdateOrganizationEnabledConnection {
|
|
13
|
+
@IsBoolean()
|
|
14
|
+
assign_membership_on_login: boolean
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=extra.validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extra.validator.d.ts","sourceRoot":"","sources":["extra.validator.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.validator.d.ts","sourceRoot":"","sources":["user.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"user.validator.d.ts","sourceRoot":"","sources":["user.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGtD,qBAAa,iBAAiB;CAC7B;AAED,qBAAa,mBAAoB,YAAW,cAAc;IAExD,KAAK,EAAE,MAAM,CAAA;IAGb,QAAQ,EAAE,MAAM,CAAA;IAIhB,IAAI,EAAE,MAAM,CAAA;IAIZ,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,oBAAY,eAAe,GAAG,MAAM,CAAA;AAEpC,qBAAa,mBAAoB,YAAW,cAAc;IAGxD,IAAI,CAAC,EAAE,MAAM,CAAA;IAIb,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CreateUserData, UpdateUserData } from 'auth0'
|
|
2
2
|
import { IsEmail, IsOptional, IsString, IsUrl } from 'class-validator'
|
|
3
|
-
import AppConfig from '../../app.config'
|
|
4
3
|
|
|
5
4
|
export class FindUserValidator {
|
|
6
5
|
}
|
|
@@ -18,7 +17,7 @@ export class CreateUserValidator implements CreateUserData {
|
|
|
18
17
|
|
|
19
18
|
@IsOptional()
|
|
20
19
|
@IsString()
|
|
21
|
-
connection: string
|
|
20
|
+
connection: string
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export type IdUserValidator = string
|