vona-cli-set-api 1.0.97 → 1.0.99
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/cli/templates/create/project/basic/boilerplate/package.original.json +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-base/dist/.metadata/index.d.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-base/src/.metadata/index.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-base/src/service/menu.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-base/tsconfig.build.tsbuildinfo +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-index/tsconfig.build.tsbuildinfo +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/dist/.metadata/index.d.ts +53 -53
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/dist/config/config.d.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/src/.metadata/index.ts +69 -69
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/src/config/config.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/src/service/authInnerAdapter.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/src/service/authTokenAdapter.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/src/service/passportAdapter.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/src/service/redisToken.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/src/service/roleInnerAdapter.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/src/service/userInnerAdapter.ts +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/tsconfig.build.tsbuildinfo +1 -1
- package/cli/templates/tools/crud/boilerplate/src/service/{{resourceName}}.ts_ +1 -1
- package/package.json +2 -2
|
@@ -76,58 +76,6 @@ export interface IModuleModel {
|
|
|
76
76
|
'userRole': ModelUserRole;
|
|
77
77
|
}
|
|
78
78
|
/** model: end */
|
|
79
|
-
/** meta: begin */
|
|
80
|
-
export * from '../bean/meta.index.ts';
|
|
81
|
-
export * from '../bean/meta.version.ts';
|
|
82
|
-
import type { IMetaOptionsIndex } from 'vona-module-a-index';
|
|
83
|
-
import 'vona';
|
|
84
|
-
declare module 'vona' {
|
|
85
|
-
interface IMetaRecord {
|
|
86
|
-
'home-user:index': IMetaOptionsIndex;
|
|
87
|
-
'home-user:version': never;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
declare module 'vona-module-home-user' {
|
|
91
|
-
interface MetaIndex {
|
|
92
|
-
}
|
|
93
|
-
interface MetaVersion {
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
/** meta: end */
|
|
97
|
-
/** dto: begin */
|
|
98
|
-
export * from '../dto/auth.ts';
|
|
99
|
-
export * from '../dto/passport.ts';
|
|
100
|
-
export * from '../dto/passportJwt.ts';
|
|
101
|
-
import type { IDtoOptionsAuth } from '../dto/auth.ts';
|
|
102
|
-
import type { IDtoOptionsPassport } from '../dto/passport.ts';
|
|
103
|
-
import type { IDtoOptionsPassportJwt } from '../dto/passportJwt.ts';
|
|
104
|
-
import 'vona';
|
|
105
|
-
declare module 'vona-module-a-web' {
|
|
106
|
-
interface IDtoRecord {
|
|
107
|
-
'home-user:auth': Omit<IDtoOptionsAuth, '_fieldsMore_'>;
|
|
108
|
-
'home-user:passport': Omit<IDtoOptionsPassport, '_fieldsMore_'>;
|
|
109
|
-
'home-user:passportJwt': Omit<IDtoOptionsPassportJwt, '_fieldsMore_'>;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
declare module 'vona-module-home-user' {
|
|
113
|
-
}
|
|
114
|
-
/** dto: end */
|
|
115
|
-
/** dto: begin */
|
|
116
|
-
import type { DtoAuth } from '../dto/auth.ts';
|
|
117
|
-
import type { DtoPassport } from '../dto/passport.ts';
|
|
118
|
-
import type { DtoPassportJwt } from '../dto/passportJwt.ts';
|
|
119
|
-
declare module 'vona-module-home-user' {
|
|
120
|
-
interface IDtoOptionsAuth {
|
|
121
|
-
fields?: TypeEntityOptionsFields<DtoAuth, IDtoOptionsAuth['_fieldsMore_']>;
|
|
122
|
-
}
|
|
123
|
-
interface IDtoOptionsPassport {
|
|
124
|
-
fields?: TypeEntityOptionsFields<DtoPassport, IDtoOptionsPassport['_fieldsMore_']>;
|
|
125
|
-
}
|
|
126
|
-
interface IDtoOptionsPassportJwt {
|
|
127
|
-
fields?: TypeEntityOptionsFields<DtoPassportJwt, IDtoOptionsPassportJwt['_fieldsMore_']>;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
/** dto: end */
|
|
131
79
|
/** service: begin */
|
|
132
80
|
export * from '../service/authInnerAdapter.ts';
|
|
133
81
|
export * from '../service/authTokenAdapter.ts';
|
|
@@ -136,7 +84,7 @@ export * from '../service/redisToken.ts';
|
|
|
136
84
|
export * from '../service/roleInnerAdapter.ts';
|
|
137
85
|
export * from '../service/userInnerAdapter.ts';
|
|
138
86
|
import 'vona';
|
|
139
|
-
declare module 'vona-module-a-
|
|
87
|
+
declare module 'vona-module-a-bean' {
|
|
140
88
|
interface IServiceRecord {
|
|
141
89
|
'home-user:authInnerAdapter': never;
|
|
142
90
|
'home-user:authTokenAdapter': never;
|
|
@@ -190,6 +138,58 @@ declare module 'vona' {
|
|
|
190
138
|
}
|
|
191
139
|
}
|
|
192
140
|
/** service: end */
|
|
141
|
+
/** meta: begin */
|
|
142
|
+
export * from '../bean/meta.index.ts';
|
|
143
|
+
export * from '../bean/meta.version.ts';
|
|
144
|
+
import type { IMetaOptionsIndex } from 'vona-module-a-index';
|
|
145
|
+
import 'vona';
|
|
146
|
+
declare module 'vona' {
|
|
147
|
+
interface IMetaRecord {
|
|
148
|
+
'home-user:index': IMetaOptionsIndex;
|
|
149
|
+
'home-user:version': never;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
declare module 'vona-module-home-user' {
|
|
153
|
+
interface MetaIndex {
|
|
154
|
+
}
|
|
155
|
+
interface MetaVersion {
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
/** meta: end */
|
|
159
|
+
/** dto: begin */
|
|
160
|
+
export * from '../dto/auth.ts';
|
|
161
|
+
export * from '../dto/passport.ts';
|
|
162
|
+
export * from '../dto/passportJwt.ts';
|
|
163
|
+
import type { IDtoOptionsAuth } from '../dto/auth.ts';
|
|
164
|
+
import type { IDtoOptionsPassport } from '../dto/passport.ts';
|
|
165
|
+
import type { IDtoOptionsPassportJwt } from '../dto/passportJwt.ts';
|
|
166
|
+
import 'vona';
|
|
167
|
+
declare module 'vona-module-a-web' {
|
|
168
|
+
interface IDtoRecord {
|
|
169
|
+
'home-user:auth': Omit<IDtoOptionsAuth, '_fieldsMore_'>;
|
|
170
|
+
'home-user:passport': Omit<IDtoOptionsPassport, '_fieldsMore_'>;
|
|
171
|
+
'home-user:passportJwt': Omit<IDtoOptionsPassportJwt, '_fieldsMore_'>;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
declare module 'vona-module-home-user' {
|
|
175
|
+
}
|
|
176
|
+
/** dto: end */
|
|
177
|
+
/** dto: begin */
|
|
178
|
+
import type { DtoAuth } from '../dto/auth.ts';
|
|
179
|
+
import type { DtoPassport } from '../dto/passport.ts';
|
|
180
|
+
import type { DtoPassportJwt } from '../dto/passportJwt.ts';
|
|
181
|
+
declare module 'vona-module-home-user' {
|
|
182
|
+
interface IDtoOptionsAuth {
|
|
183
|
+
fields?: TypeEntityOptionsFields<DtoAuth, IDtoOptionsAuth['_fieldsMore_']>;
|
|
184
|
+
}
|
|
185
|
+
interface IDtoOptionsPassport {
|
|
186
|
+
fields?: TypeEntityOptionsFields<DtoPassport, IDtoOptionsPassport['_fieldsMore_']>;
|
|
187
|
+
}
|
|
188
|
+
interface IDtoOptionsPassportJwt {
|
|
189
|
+
fields?: TypeEntityOptionsFields<DtoPassportJwt, IDtoOptionsPassportJwt['_fieldsMore_']>;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/** dto: end */
|
|
193
193
|
/** controller: begin */
|
|
194
194
|
export * from '../controller/passport.ts';
|
|
195
195
|
import type { IControllerOptionsPassport } from '../controller/passport.ts';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VonaApplication } from 'vona';
|
|
2
|
-
import type { IServiceRecord } from 'vona-module-a-
|
|
2
|
+
import type { IServiceRecord } from 'vona-module-a-bean';
|
|
3
3
|
export declare function config(_app: VonaApplication): {
|
|
4
4
|
adapter: {
|
|
5
5
|
authInner: keyof IServiceRecord;
|
|
@@ -97,74 +97,6 @@ export interface IModuleModel {
|
|
|
97
97
|
'userRole': ModelUserRole;
|
|
98
98
|
}
|
|
99
99
|
/** model: end */
|
|
100
|
-
/** meta: begin */
|
|
101
|
-
export * from '../bean/meta.index.ts';
|
|
102
|
-
export * from '../bean/meta.version.ts';
|
|
103
|
-
import type { IMetaOptionsIndex } from 'vona-module-a-index';
|
|
104
|
-
import 'vona';
|
|
105
|
-
declare module 'vona' {
|
|
106
|
-
|
|
107
|
-
export interface IMetaRecord {
|
|
108
|
-
'home-user:index': IMetaOptionsIndex;
|
|
109
|
-
'home-user:version': never;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
declare module 'vona-module-home-user' {
|
|
115
|
-
|
|
116
|
-
export interface MetaIndex {
|
|
117
|
-
/** @internal */
|
|
118
|
-
get scope(): ScopeModuleHomeUser;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface MetaVersion {
|
|
122
|
-
/** @internal */
|
|
123
|
-
get scope(): ScopeModuleHomeUser;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
/** meta: end */
|
|
127
|
-
/** dto: begin */
|
|
128
|
-
export * from '../dto/auth.ts';
|
|
129
|
-
export * from '../dto/passport.ts';
|
|
130
|
-
export * from '../dto/passportJwt.ts';
|
|
131
|
-
import type { IDtoOptionsAuth } from '../dto/auth.ts';
|
|
132
|
-
import type { IDtoOptionsPassport } from '../dto/passport.ts';
|
|
133
|
-
import type { IDtoOptionsPassportJwt } from '../dto/passportJwt.ts';
|
|
134
|
-
import 'vona';
|
|
135
|
-
declare module 'vona-module-a-web' {
|
|
136
|
-
|
|
137
|
-
export interface IDtoRecord {
|
|
138
|
-
'home-user:auth': Omit<IDtoOptionsAuth, '_fieldsMore_'>;
|
|
139
|
-
'home-user:passport': Omit<IDtoOptionsPassport, '_fieldsMore_'>;
|
|
140
|
-
'home-user:passportJwt': Omit<IDtoOptionsPassportJwt, '_fieldsMore_'>;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
declare module 'vona-module-home-user' {
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
/** dto: end */
|
|
149
|
-
/** dto: begin */
|
|
150
|
-
import type { DtoAuth } from '../dto/auth.ts';
|
|
151
|
-
import type { DtoPassport } from '../dto/passport.ts';
|
|
152
|
-
import type { DtoPassportJwt } from '../dto/passportJwt.ts';
|
|
153
|
-
declare module 'vona-module-home-user' {
|
|
154
|
-
|
|
155
|
-
export interface IDtoOptionsAuth {
|
|
156
|
-
fields?: TypeEntityOptionsFields<DtoAuth, IDtoOptionsAuth['_fieldsMore_']>;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface IDtoOptionsPassport {
|
|
160
|
-
fields?: TypeEntityOptionsFields<DtoPassport, IDtoOptionsPassport['_fieldsMore_']>;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export interface IDtoOptionsPassportJwt {
|
|
164
|
-
fields?: TypeEntityOptionsFields<DtoPassportJwt, IDtoOptionsPassportJwt['_fieldsMore_']>;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
/** dto: end */
|
|
168
100
|
/** service: begin */
|
|
169
101
|
export * from '../service/authInnerAdapter.ts';
|
|
170
102
|
export * from '../service/authTokenAdapter.ts';
|
|
@@ -174,7 +106,7 @@ export * from '../service/roleInnerAdapter.ts';
|
|
|
174
106
|
export * from '../service/userInnerAdapter.ts';
|
|
175
107
|
|
|
176
108
|
import 'vona';
|
|
177
|
-
declare module 'vona-module-a-
|
|
109
|
+
declare module 'vona-module-a-bean' {
|
|
178
110
|
|
|
179
111
|
export interface IServiceRecord {
|
|
180
112
|
'home-user:authInnerAdapter': never;
|
|
@@ -250,6 +182,74 @@ declare module 'vona' {
|
|
|
250
182
|
}
|
|
251
183
|
}
|
|
252
184
|
/** service: end */
|
|
185
|
+
/** meta: begin */
|
|
186
|
+
export * from '../bean/meta.index.ts';
|
|
187
|
+
export * from '../bean/meta.version.ts';
|
|
188
|
+
import type { IMetaOptionsIndex } from 'vona-module-a-index';
|
|
189
|
+
import 'vona';
|
|
190
|
+
declare module 'vona' {
|
|
191
|
+
|
|
192
|
+
export interface IMetaRecord {
|
|
193
|
+
'home-user:index': IMetaOptionsIndex;
|
|
194
|
+
'home-user:version': never;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
}
|
|
199
|
+
declare module 'vona-module-home-user' {
|
|
200
|
+
|
|
201
|
+
export interface MetaIndex {
|
|
202
|
+
/** @internal */
|
|
203
|
+
get scope(): ScopeModuleHomeUser;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface MetaVersion {
|
|
207
|
+
/** @internal */
|
|
208
|
+
get scope(): ScopeModuleHomeUser;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/** meta: end */
|
|
212
|
+
/** dto: begin */
|
|
213
|
+
export * from '../dto/auth.ts';
|
|
214
|
+
export * from '../dto/passport.ts';
|
|
215
|
+
export * from '../dto/passportJwt.ts';
|
|
216
|
+
import type { IDtoOptionsAuth } from '../dto/auth.ts';
|
|
217
|
+
import type { IDtoOptionsPassport } from '../dto/passport.ts';
|
|
218
|
+
import type { IDtoOptionsPassportJwt } from '../dto/passportJwt.ts';
|
|
219
|
+
import 'vona';
|
|
220
|
+
declare module 'vona-module-a-web' {
|
|
221
|
+
|
|
222
|
+
export interface IDtoRecord {
|
|
223
|
+
'home-user:auth': Omit<IDtoOptionsAuth, '_fieldsMore_'>;
|
|
224
|
+
'home-user:passport': Omit<IDtoOptionsPassport, '_fieldsMore_'>;
|
|
225
|
+
'home-user:passportJwt': Omit<IDtoOptionsPassportJwt, '_fieldsMore_'>;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
}
|
|
230
|
+
declare module 'vona-module-home-user' {
|
|
231
|
+
|
|
232
|
+
}
|
|
233
|
+
/** dto: end */
|
|
234
|
+
/** dto: begin */
|
|
235
|
+
import type { DtoAuth } from '../dto/auth.ts';
|
|
236
|
+
import type { DtoPassport } from '../dto/passport.ts';
|
|
237
|
+
import type { DtoPassportJwt } from '../dto/passportJwt.ts';
|
|
238
|
+
declare module 'vona-module-home-user' {
|
|
239
|
+
|
|
240
|
+
export interface IDtoOptionsAuth {
|
|
241
|
+
fields?: TypeEntityOptionsFields<DtoAuth, IDtoOptionsAuth['_fieldsMore_']>;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface IDtoOptionsPassport {
|
|
245
|
+
fields?: TypeEntityOptionsFields<DtoPassport, IDtoOptionsPassport['_fieldsMore_']>;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface IDtoOptionsPassportJwt {
|
|
249
|
+
fields?: TypeEntityOptionsFields<DtoPassportJwt, IDtoOptionsPassportJwt['_fieldsMore_']>;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/** dto: end */
|
|
253
253
|
/** controller: begin */
|
|
254
254
|
export * from '../controller/passport.ts';
|
|
255
255
|
import type { IControllerOptionsPassport } from '../controller/passport.ts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IAuthBase, IAuthInnerAdapter } from 'vona-module-a-user';
|
|
2
2
|
import type { IAuth } from '../types/auth.ts';
|
|
3
3
|
import { BeanBase, beanFullNameFromOnionName } from 'vona';
|
|
4
|
-
import { Service } from 'vona-module-a-
|
|
4
|
+
import { Service } from 'vona-module-a-bean';
|
|
5
5
|
|
|
6
6
|
@Service()
|
|
7
7
|
export class ServiceAuthInnerAdapter extends BeanBase implements IAuthInnerAdapter {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IAuthTokenAdapter, IUserBase } from 'vona-module-a-user';
|
|
2
2
|
import type { IPayloadData } from '../types/passport.ts';
|
|
3
3
|
import { BeanBase, createHash, uuidv4 } from 'vona';
|
|
4
|
-
import { Service } from 'vona-module-a-
|
|
4
|
+
import { Service } from 'vona-module-a-bean';
|
|
5
5
|
|
|
6
6
|
@Service()
|
|
7
7
|
export class ServiceAuthTokenAdapter extends BeanBase implements IAuthTokenAdapter {
|
|
@@ -2,7 +2,7 @@ import type { IPassportAdapter, IPassportBase } from 'vona-module-a-user';
|
|
|
2
2
|
import type { IPassport, IPayloadData } from '../types/passport.ts';
|
|
3
3
|
import { BeanBase } from 'vona';
|
|
4
4
|
import { $getRoleName } from 'vona-module-a-user';
|
|
5
|
-
import { Service } from 'vona-module-a-
|
|
5
|
+
import { Service } from 'vona-module-a-bean';
|
|
6
6
|
|
|
7
7
|
@Service()
|
|
8
8
|
export class ServicePassportAdapter extends BeanBase implements IPassportAdapter {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IUserBase } from 'vona-module-a-user';
|
|
2
2
|
import type { IPayloadData } from '../types/passport.ts';
|
|
3
3
|
import { BeanBase } from 'vona';
|
|
4
|
-
import { Service } from 'vona-module-a-
|
|
4
|
+
import { Service } from 'vona-module-a-bean';
|
|
5
5
|
|
|
6
6
|
@Service()
|
|
7
7
|
export class ServiceRedisToken extends BeanBase {
|
|
@@ -2,7 +2,7 @@ import type { TableIdentity } from 'table-identity';
|
|
|
2
2
|
import type { IRoleBase, IRoleInnerAdapter } from 'vona-module-a-user';
|
|
3
3
|
import type { IRole } from '../types/role.ts';
|
|
4
4
|
import { BeanBase } from 'vona';
|
|
5
|
-
import { Service } from 'vona-module-a-
|
|
5
|
+
import { Service } from 'vona-module-a-bean';
|
|
6
6
|
|
|
7
7
|
@Service()
|
|
8
8
|
export class ServiceRoleInnerAdapter extends BeanBase implements IRoleInnerAdapter {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IAuthUserProfile, IUserBase, IUserInnerAdapter } from 'vona-module-a-user';
|
|
2
2
|
import type { IUser } from '../types/user.ts';
|
|
3
3
|
import { BeanBase } from 'vona';
|
|
4
|
-
import { Service } from 'vona-module-a-
|
|
4
|
+
import { Service } from 'vona-module-a-bean';
|
|
5
5
|
|
|
6
6
|
@Service()
|
|
7
7
|
export class ServiceUserInnerAdapter extends BeanBase implements IUserInnerAdapter {
|