Skip to content

Commit 54cf657

Browse files
committed
Auto-gen docs from v6.0.1
1 parent 7b3b45c commit 54cf657

18 files changed

+1883
-1832
lines changed

apps/sequelize-guard-docs/content/docs/api.mdx

Lines changed: 0 additions & 1832 deletions
This file was deleted.

apps/sequelize-guard-docs/content/docs/api/classes/SequelizeGuard.mdx

Lines changed: 844 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
---
2+
title: API Reference
3+
description: Complete API reference for sequelize-guard
4+
icon: ShieldCheck
5+
---
6+
7+
**sequelize-guard v6.0.1**
8+
9+
***
10+
11+
# sequelize-guard v6.0.1
12+
13+
SequelizeGuard - Authorization Library for Sequelize
14+
15+
## Classes
16+
17+
- [SequelizeGuard](./classes/SequelizeGuard.mdx)
18+
19+
## Interfaces
20+
21+
- [RoleCreationResult](./interfaces/RoleCreationResult.mdx)
22+
- [AddPermsToRoleResult](./interfaces/AddPermsToRoleResult.mdx)
23+
- [RemovePermsFromRoleResult](./interfaces/RemovePermsFromRoleResult.mdx)
24+
- [CreatePermsOptions](./interfaces/CreatePermsOptions.mdx)
25+
- [CreateRolesOptions](./interfaces/CreateRolesOptions.mdx)
26+
- [FindRolesArgs](./interfaces/FindRolesArgs.mdx)
27+
- [FindPermsArgs](./interfaces/FindPermsArgs.mdx)
28+
- [BulkPermissionInput](./interfaces/BulkPermissionInput.mdx)
29+
- [PermissionData](./interfaces/PermissionData.mdx)
30+
- [RoleData](./interfaces/RoleData.mdx)
31+
- [GuardOptions](./interfaces/GuardOptions.mdx)
32+
- [GuardInternalOptions](./interfaces/GuardInternalOptions.mdx)
33+
34+
## Type Aliases
35+
36+
- [RoleCreationParam](./type-aliases/RoleCreationParam.mdx)
37+
- [GuardEventCallback](./type-aliases/GuardEventCallback.mdx)
38+
- [UnsubscribeFn](./type-aliases/UnsubscribeFn.mdx)
39+
40+
## Variables
41+
42+
### migration
43+
44+
> **migration**: `object`
45+
46+
Defined in: [migrations/guard-migrations.ts:108](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/migrations/guard-migrations.ts#L108)
47+
48+
#### Type Declaration
49+
50+
##### up()
51+
52+
> **up**: (`queryInterface`, `_Sequelize`, `options`) => `Promise`\<`void`\>
53+
54+
Run migrations to create Guard tables
55+
56+
###### Parameters
57+
58+
###### queryInterface
59+
60+
`QueryInterface`
61+
62+
###### \_Sequelize
63+
64+
`Sequelize`
65+
66+
###### options
67+
68+
[`GuardOptions`](./interfaces/GuardOptions.mdx) = `{}`
69+
70+
###### Returns
71+
72+
`Promise`\<`void`\>
73+
74+
##### down()
75+
76+
> **down**: (`queryInterface`, `_Sequelize`, `options`) => `Promise`\<`void`\>
77+
78+
Rollback migrations - drop Guard tables
79+
80+
###### Parameters
81+
82+
###### queryInterface
83+
84+
`QueryInterface`
85+
86+
###### \_Sequelize
87+
88+
`Sequelize`
89+
90+
###### options
91+
92+
[`GuardOptions`](./interfaces/GuardOptions.mdx) = `{}`
93+
94+
###### Returns
95+
96+
`Promise`\<`void`\>
97+
98+
## References
99+
100+
### default
101+
102+
Renames and re-exports [SequelizeGuard](./classes/SequelizeGuard.mdx)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "Interface: AddPermsToRoleResult"
3+
---
4+
5+
[**sequelize-guard v6.0.1**](../index.mdx)
6+
7+
***
8+
9+
[sequelize-guard](../index.mdx) / AddPermsToRoleResult
10+
11+
# Interface: AddPermsToRoleResult
12+
13+
Defined in: [types/api.ts:19](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L19)
14+
15+
Result from adding permissions to role
16+
17+
## Properties
18+
19+
### role
20+
21+
> **role**: `GuardRoleModel`
22+
23+
Defined in: [types/api.ts:20](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L20)
24+
25+
***
26+
27+
### permissions
28+
29+
> **permissions**: `GuardPermissionModel`[]
30+
31+
Defined in: [types/api.ts:21](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L21)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "Interface: BulkPermissionInput"
3+
---
4+
5+
[**sequelize-guard v6.0.1**](../index.mdx)
6+
7+
***
8+
9+
[sequelize-guard](../index.mdx) / BulkPermissionInput
10+
11+
# Interface: BulkPermissionInput
12+
13+
Defined in: [types/api.ts:74](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L74)
14+
15+
Bulk permission creation input
16+
17+
## Properties
18+
19+
### resource
20+
21+
> **resource**: `string`
22+
23+
Defined in: [types/api.ts:75](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L75)
24+
25+
***
26+
27+
### actions
28+
29+
> **actions**: `string` \| `string`[]
30+
31+
Defined in: [types/api.ts:76](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L76)
32+
33+
***
34+
35+
### name?
36+
37+
> `optional` **name**: `string`
38+
39+
Defined in: [types/api.ts:77](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L77)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: "Interface: CreatePermsOptions"
3+
---
4+
5+
[**sequelize-guard v6.0.1**](../index.mdx)
6+
7+
***
8+
9+
[sequelize-guard](../index.mdx) / CreatePermsOptions
10+
11+
# Interface: CreatePermsOptions
12+
13+
Defined in: [types/api.ts:36](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L36)
14+
15+
Options for creating permissions
16+
17+
## Properties
18+
19+
### name?
20+
21+
> `optional` **name**: `string`
22+
23+
Defined in: [types/api.ts:37](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L37)
24+
25+
***
26+
27+
### names?
28+
29+
> `optional` **names**: `string`[]
30+
31+
Defined in: [types/api.ts:38](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L38)
32+
33+
***
34+
35+
### all?
36+
37+
> `optional` **all**: `boolean`
38+
39+
Defined in: [types/api.ts:39](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L39)
40+
41+
***
42+
43+
### json?
44+
45+
> `optional` **json**: `boolean`
46+
47+
Defined in: [types/api.ts:40](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L40)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "Interface: CreateRolesOptions"
3+
---
4+
5+
[**sequelize-guard v6.0.1**](../index.mdx)
6+
7+
***
8+
9+
[sequelize-guard](../index.mdx) / CreateRolesOptions
10+
11+
# Interface: CreateRolesOptions
12+
13+
Defined in: [types/api.ts:46](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L46)
14+
15+
Options for creating roles
16+
17+
## Properties
18+
19+
### json?
20+
21+
> `optional` **json**: `boolean`
22+
23+
Defined in: [types/api.ts:47](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L47)
24+
25+
***
26+
27+
### all?
28+
29+
> `optional` **all**: `boolean`
30+
31+
Defined in: [types/api.ts:48](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L48)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: "Interface: FindPermsArgs"
3+
---
4+
5+
[**sequelize-guard v6.0.1**](../index.mdx)
6+
7+
***
8+
9+
[sequelize-guard](../index.mdx) / FindPermsArgs
10+
11+
# Interface: FindPermsArgs
12+
13+
Defined in: [types/api.ts:64](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L64)
14+
15+
Arguments for finding permissions
16+
17+
## Properties
18+
19+
### name?
20+
21+
> `optional` **name**: `string`
22+
23+
Defined in: [types/api.ts:65](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L65)
24+
25+
***
26+
27+
### resource?
28+
29+
> `optional` **resource**: `string`
30+
31+
Defined in: [types/api.ts:66](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L66)
32+
33+
***
34+
35+
### action?
36+
37+
> `optional` **action**: `string`
38+
39+
Defined in: [types/api.ts:67](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L67)
40+
41+
***
42+
43+
### search?
44+
45+
> `optional` **search**: `boolean`
46+
47+
Defined in: [types/api.ts:68](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L68)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: "Interface: FindRolesArgs"
3+
---
4+
5+
[**sequelize-guard v6.0.1**](../index.mdx)
6+
7+
***
8+
9+
[sequelize-guard](../index.mdx) / FindRolesArgs
10+
11+
# Interface: FindRolesArgs
12+
13+
Defined in: [types/api.ts:54](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L54)
14+
15+
Arguments for finding roles
16+
17+
## Properties
18+
19+
### name?
20+
21+
> `optional` **name**: `string`
22+
23+
Defined in: [types/api.ts:55](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L55)
24+
25+
***
26+
27+
### names?
28+
29+
> `optional` **names**: `string`[]
30+
31+
Defined in: [types/api.ts:56](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L56)
32+
33+
***
34+
35+
### search?
36+
37+
> `optional` **search**: `boolean`
38+
39+
Defined in: [types/api.ts:57](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L57)
40+
41+
***
42+
43+
### withParent?
44+
45+
> `optional` **withParent**: `boolean`
46+
47+
Defined in: [types/api.ts:58](https://github.com/lotivo/sequelize-guard/blob/a09a0c94502546a7feeb95441ce15b47b8a10ac5/packages/sequelize-guard/src/types/api.ts#L58)

0 commit comments

Comments
 (0)