@nattyjs/types 0.0.1-beta.52 → 0.0.1-beta.53

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +85 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -311,11 +311,95 @@ type PropertyMeta = {
311
311
  optional?: boolean;
312
312
  enumValues?: (string | number)[];
313
313
  validators?: ValidatorMeta[];
314
+ defaultValue?: any;
315
+ defaultValueText?: string;
314
316
  };
315
317
 
316
318
  type TypeMeta = {
319
+ kind: "object";
317
320
  name: string;
318
321
  properties: PropertyMeta[];
322
+ } | {
323
+ kind: "enum";
324
+ name: string;
325
+ baseType: "string" | "number";
326
+ enumValues: (string | number)[];
327
+ };
328
+
329
+ type JsDocHeader = {
330
+ name: string;
331
+ required: boolean;
332
+ type?: string;
333
+ description?: string;
334
+ };
335
+
336
+ type JsDocParam = {
337
+ name: string;
338
+ type?: string;
339
+ description?: string;
340
+ };
341
+
342
+ type JsDocResponse = {
343
+ status: number;
344
+ description?: string;
345
+ type?: string;
346
+ };
347
+
348
+ type JsDocInfo = {
349
+ summary?: string;
350
+ description?: string;
351
+ tags?: string[];
352
+ params?: JsDocParam[];
353
+ returns?: string;
354
+ headers?: JsDocHeader[];
355
+ security?: string[];
356
+ responses?: JsDocResponse[];
357
+ deprecated?: string | true;
358
+ custom?: Record<string, string[]>;
359
+ };
360
+
361
+ type JsDocThrow = {
362
+ status?: number;
363
+ description?: string;
364
+ };
365
+
366
+ type RouteParamMeta = {
367
+ name: string;
368
+ in: "path" | "query";
369
+ required: boolean;
370
+ tsType?: string;
371
+ };
372
+
373
+ type RouteMeta = {
374
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
375
+ path: string;
376
+ controller: string;
377
+ action: string;
378
+ params?: RouteParamMeta[];
379
+ requestBody?: {
380
+ name: string;
381
+ tsType: string;
382
+ required?: boolean;
383
+ };
384
+ responseType?: string;
385
+ doc?: JsDocInfo;
386
+ auth?: {
387
+ isAnonymous?: boolean;
388
+ schemes?: string[];
389
+ };
390
+ };
391
+
392
+ type ClassDocBundle = {
393
+ className: string;
394
+ classDoc: JsDocInfo;
395
+ methods: Array<{
396
+ name: string;
397
+ doc: JsDocInfo;
398
+ }>;
399
+ properties: Array<{
400
+ name: string;
401
+ doc: JsDocInfo;
402
+ }>;
319
403
  };
320
404
 
321
- export { BuildOptions, ClassTypeInfo, Cookie, DbFieldConfig, DecoratorInfo, DecoratorParams, ExceptionTypeInfo, HttpRequestBodyInfo, HttpRequestBodyInit, HttpRequestInit, HttpResponseInit, IExceptionContext, IHttpResult, IModelBindingContext, MethodInfo, ModelBinding, ModelConfig, NattyTestModule, ParameterInfo, ProblemDetail, PropConfig, PropertyDecoratorConfig, PropertyMeta, RequestRouteInfo, RouteConfig, TypeInfo, TypeMeta, TypesInfo, ValidatorMeta };
405
+ export { BuildOptions, ClassDocBundle, ClassTypeInfo, Cookie, DbFieldConfig, DecoratorInfo, DecoratorParams, ExceptionTypeInfo, HttpRequestBodyInfo, HttpRequestBodyInit, HttpRequestInit, HttpResponseInit, IExceptionContext, IHttpResult, IModelBindingContext, JsDocHeader, JsDocInfo, JsDocParam, JsDocResponse, JsDocThrow, MethodInfo, ModelBinding, ModelConfig, NattyTestModule, ParameterInfo, ProblemDetail, PropConfig, PropertyDecoratorConfig, PropertyMeta, RequestRouteInfo, RouteConfig, RouteMeta, TypeInfo, TypeMeta, TypesInfo, ValidatorMeta };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/types",
3
- "version": "0.0.1-beta.52",
3
+ "version": "0.0.1-beta.53",
4
4
  "keywords": [],
5
5
  "author": "ajayojha <ojhaajay@outlook.com>",
6
6
  "license": "ISC",