1
1
/* eslint-disable */
2
2
export default async ( ) => {
3
- const t = {
4
- [ '../../../libs/common/src/dtos/activity.dto' ] : await import ( '../../../libs/common/src/dtos/activity.dto' ) ,
5
- [ '../../../libs/common/src/dtos/announcement.dto' ] : await import ( '../../../libs/common/src/dtos/announcement.dto' ) ,
6
- } ;
7
- return {
8
- '@nestjs/swagger' : {
9
- models : [
10
- [
11
- import ( '../../../libs/common/src/dtos/common.dto' ) ,
12
- {
13
- DsnpUserIdParam : { userDsnpId : { required : true , type : ( ) => String } } ,
14
- AnnouncementResponseDto : { referenceId : { required : true , type : ( ) => String } } ,
15
- UploadResponseDto : { assetIds : { required : true , type : ( ) => [ String ] } } ,
16
- FilesUploadDto : { files : { required : true , type : ( ) => [ Object ] } } ,
17
- } ,
18
- ] ,
19
- [
20
- import ( '../../../libs/common/src/dtos/activity.dto' ) ,
21
- {
22
- LocationDto : {
23
- name : { required : true , type : ( ) => String , minLength : 1 } ,
24
- accuracy : { required : false , type : ( ) => Number , minimum : 0 , maximum : 100 } ,
25
- altitude : { required : false , type : ( ) => Number } ,
26
- latitude : { required : false , type : ( ) => Number } ,
27
- longitude : { required : false , type : ( ) => Number } ,
28
- radius : { required : false , type : ( ) => Number , minimum : 0 } ,
29
- units : { required : false , enum : t [ '../../../libs/common/src/dtos/activity.dto' ] . UnitTypeDto } ,
30
- } ,
31
- AssetReferenceDto : {
32
- referenceId : { required : true , type : ( ) => String , minLength : 1 } ,
33
- height : { required : false , type : ( ) => Number , minimum : 1 } ,
34
- width : { required : false , type : ( ) => Number , minimum : 1 } ,
35
- duration : { required : false , type : ( ) => String , pattern : 'DURATION_REGEX' } ,
36
- } ,
37
- TagDto : {
38
- type : { required : true , enum : t [ '../../../libs/common/src/dtos/activity.dto' ] . TagTypeDto } ,
39
- name : { required : false , type : ( ) => String , minLength : 1 } ,
40
- mentionedId : { required : false , type : ( ) => String , minLength : 1 , pattern : 'DSNP_USER_URI_REGEX' } ,
41
- } ,
42
- AssetDto : {
43
- type : { required : true , enum : t [ '../../../libs/common/src/dtos/activity.dto' ] . AttachmentTypeDto } ,
44
- references : { required : false , type : ( ) => [ t [ '../../../libs/common/src/dtos/activity.dto' ] . AssetReferenceDto ] } ,
45
- name : { required : false , type : ( ) => String , minLength : 1 } ,
46
- href : { required : false , type : ( ) => String , minLength : 1 } ,
47
- } ,
48
- BaseActivityDto : {
49
- name : { required : false , type : ( ) => String } ,
50
- tag : { required : false , type : ( ) => [ t [ '../../../libs/common/src/dtos/activity.dto' ] . TagDto ] } ,
51
- location : { required : false , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . LocationDto } ,
52
- } ,
53
- NoteActivityDto : {
54
- content : { required : true , type : ( ) => String , minLength : 1 } ,
55
- published : { required : true , type : ( ) => String , pattern : 'ISO8601_REGEX' } ,
56
- assets : { required : false , type : ( ) => [ t [ '../../../libs/common/src/dtos/activity.dto' ] . AssetDto ] } ,
57
- } ,
58
- ProfileActivityDto : {
59
- icon : { required : false , type : ( ) => [ t [ '../../../libs/common/src/dtos/activity.dto' ] . AssetReferenceDto ] } ,
60
- summary : { required : false , type : ( ) => String } ,
61
- published : { required : false , type : ( ) => String , pattern : 'ISO8601_REGEX' } ,
62
- } ,
63
- } ,
64
- ] ,
65
- [
66
- import ( '../../../libs/common/src/dtos/announcement.dto' ) ,
67
- {
68
- BroadcastDto : { content : { required : true , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . NoteActivityDto } } ,
69
- ReplyDto : {
70
- inReplyTo : { required : true , type : ( ) => String , pattern : 'DSNP_CONTENT_URI_REGEX' } ,
71
- content : { required : true , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . NoteActivityDto } ,
72
- } ,
73
- TombstoneDto : {
74
- targetContentHash : { required : true , type : ( ) => String , pattern : 'DSNP_CONTENT_HASH_REGEX' } ,
75
- targetAnnouncementType : { required : true , enum : t [ '../../../libs/common/src/dtos/announcement.dto' ] . ModifiableAnnouncementTypeDto } ,
76
- } ,
77
- UpdateDto : {
78
- targetContentHash : { required : true , type : ( ) => String , pattern : 'DSNP_CONTENT_HASH_REGEX' } ,
79
- targetAnnouncementType : { required : true , enum : t [ '../../../libs/common/src/dtos/announcement.dto' ] . ModifiableAnnouncementTypeDto } ,
80
- content : { required : true , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . NoteActivityDto } ,
81
- } ,
82
- ReactionDto : {
83
- emoji : { required : true , type : ( ) => String , minLength : 1 , pattern : 'DSNP_EMOJI_REGEX' } ,
84
- apply : { required : true , type : ( ) => Number , minimum : 0 , maximum : 255 } ,
85
- inReplyTo : { required : true , type : ( ) => String , pattern : 'DSNP_CONTENT_URI_REGEX' } ,
86
- } ,
87
- ProfileDto : { profile : { required : true , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . ProfileActivityDto } } ,
88
- } ,
89
- ] ,
90
- ] ,
91
- controllers : [ [ import ( './api.controller' ) , { ApiController : { health : { } } } ] ] ,
92
- } ,
93
- } ;
94
- } ;
3
+ const t = {
4
+ [ "../../../libs/common/src/dtos/activity.dto" ] : await import ( "../../../libs/common/src/dtos/activity.dto" ) ,
5
+ [ "../../../libs/common/src/dtos/announcement.dto" ] : await import ( "../../../libs/common/src/dtos/announcement.dto" ) ,
6
+ [ "../../../libs/common/src/dtos/chain.watch.dto" ] : await import ( "../../../libs/common/src/dtos/chain.watch.dto" )
7
+ } ;
8
+ return { "@nestjs/swagger" : { "models" : [ [ import ( "../../../libs/common/src/dtos/common.dto" ) , { "DsnpUserIdParam" : { userDsnpId : { required : true , type : ( ) => String } } , "AnnouncementResponseDto" : { referenceId : { required : true , type : ( ) => String } } , "UploadResponseDto" : { assetIds : { required : true , type : ( ) => [ String ] } } , "FilesUploadDto" : { files : { required : true , type : ( ) => [ Object ] } } , "ResetScannerDto" : { blockNumber : { required : true , type : ( ) => Number } } } ] , [ import ( "../../../libs/common/src/dtos/activity.dto" ) , { "LocationDto" : { name : { required : true , type : ( ) => String , minLength : 1 } , accuracy : { required : false , type : ( ) => Number , minimum : 0 , maximum : 100 } , altitude : { required : false , type : ( ) => Number } , latitude : { required : false , type : ( ) => Number } , longitude : { required : false , type : ( ) => Number } , radius : { required : false , type : ( ) => Number , minimum : 0 } , units : { required : false , enum : t [ "../../../libs/common/src/dtos/activity.dto" ] . UnitTypeDto } } , "AssetReferenceDto" : { referenceId : { required : true , type : ( ) => String , minLength : 1 } , height : { required : false , type : ( ) => Number , minimum : 1 } , width : { required : false , type : ( ) => Number , minimum : 1 } , duration : { required : false , type : ( ) => String , pattern : "DURATION_REGEX" } } , "TagDto" : { type : { required : true , enum : t [ "../../../libs/common/src/dtos/activity.dto" ] . TagTypeDto } , name : { required : false , type : ( ) => String , minLength : 1 } , mentionedId : { required : false , type : ( ) => String , minLength : 1 , pattern : "DSNP_USER_URI_REGEX" } } , "AssetDto" : { type : { required : true , enum : t [ "../../../libs/common/src/dtos/activity.dto" ] . AttachmentTypeDto } , references : { required : false , type : ( ) => [ t [ "../../../libs/common/src/dtos/activity.dto" ] . AssetReferenceDto ] } , name : { required : false , type : ( ) => String , minLength : 1 } , href : { required : false , type : ( ) => String , minLength : 1 } } , "BaseActivityDto" : { name : { required : false , type : ( ) => String } , tag : { required : false , type : ( ) => [ t [ "../../../libs/common/src/dtos/activity.dto" ] . TagDto ] } , location : { required : false , type : ( ) => t [ "../../../libs/common/src/dtos/activity.dto" ] . LocationDto } } , "NoteActivityDto" : { content : { required : true , type : ( ) => String , minLength : 1 } , published : { required : true , type : ( ) => String , pattern : "ISO8601_REGEX" } , assets : { required : false , type : ( ) => [ t [ "../../../libs/common/src/dtos/activity.dto" ] . AssetDto ] } } , "ProfileActivityDto" : { icon : { required : false , type : ( ) => [ t [ "../../../libs/common/src/dtos/activity.dto" ] . AssetReferenceDto ] } , summary : { required : false , type : ( ) => String } , published : { required : false , type : ( ) => String , pattern : "ISO8601_REGEX" } } } ] , [ import ( "../../../libs/common/src/dtos/announcement.dto" ) , { "BroadcastDto" : { content : { required : true , type : ( ) => t [ "../../../libs/common/src/dtos/activity.dto" ] . NoteActivityDto } } , "ReplyDto" : { inReplyTo : { required : true , type : ( ) => String , pattern : "DSNP_CONTENT_URI_REGEX" } , content : { required : true , type : ( ) => t [ "../../../libs/common/src/dtos/activity.dto" ] . NoteActivityDto } } , "TombstoneDto" : { targetContentHash : { required : true , type : ( ) => String , pattern : "DSNP_CONTENT_HASH_REGEX" } , targetAnnouncementType : { required : true , enum : t [ "../../../libs/common/src/dtos/announcement.dto" ] . ModifiableAnnouncementTypeDto } } , "UpdateDto" : { targetContentHash : { required : true , type : ( ) => String , pattern : "DSNP_CONTENT_HASH_REGEX" } , targetAnnouncementType : { required : true , enum : t [ "../../../libs/common/src/dtos/announcement.dto" ] . ModifiableAnnouncementTypeDto } , content : { required : true , type : ( ) => t [ "../../../libs/common/src/dtos/activity.dto" ] . NoteActivityDto } } , "ReactionDto" : { emoji : { required : true , type : ( ) => String , minLength : 1 , pattern : "DSNP_EMOJI_REGEX" } , apply : { required : true , type : ( ) => Number , minimum : 0 , maximum : 255 } , inReplyTo : { required : true , type : ( ) => String , pattern : "DSNP_CONTENT_URI_REGEX" } } , "ProfileDto" : { profile : { required : true , type : ( ) => t [ "../../../libs/common/src/dtos/activity.dto" ] . ProfileActivityDto } } } ] , [ import ( "../../../libs/common/src/dtos/chain.watch.dto" ) , { "ChainWatchOptionsDto" : { schemaIds : { required : true , type : ( ) => [ Number ] } , dsnpIds : { required : true , type : ( ) => [ String ] } } } ] , [ import ( "../../../libs/common/src/dtos/request-job.dto" ) , { "ContentSearchRequestDto" : { id : { required : true , type : ( ) => String } , startBlock : { required : true , type : ( ) => Number , minimum : 1 } , endBlock : { required : true , type : ( ) => Number , minimum : 1 } , filters : { required : true , type : ( ) => t [ "../../../libs/common/src/dtos/chain.watch.dto" ] . ChainWatchOptionsDto } } } ] , [ import ( "../../../libs/common/src/dtos/subscription.webhook.dto" ) , { "WebhookRegistrationDto" : { url : { required : true , type : ( ) => String } , announcementTypes : { required : true , type : ( ) => [ String ] } } } ] ] , "controllers" : [ [ import ( "./api.controller" ) , { "ApiController" : { "health" : { } , "resetScanner" : { type : String } , "setWatchOptions" : { } , "pauseScanner" : { } , "startScanner" : { } , "search" : { } , "registerWebhook" : { } , "clearAllWebHooks" : { } , "getRegisteredWebhooks" : { } } } ] ] } } ;
9
+ } ;
0 commit comments