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
- [ "../../../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 : false , type : ( ) => Number , minimum : 1 } , rewindOffset : { required : false , type : ( ) => Number } , immediate : { required : false , type : ( ) => Boolean } } } ] , [ 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 ( "./controllers/health.controller" ) , { "HealthController" : { "healthz" : { } , "livez" : { } , "readyz" : { } } } ] , [ import ( "./controllers/v1/scanner.controller" ) , { "ScanControllerV1" : { "resetScanner" : { } , "getWatchOptions" : { type : t [ "../../../libs/common/src/dtos/chain.watch.dto" ] . ChainWatchOptionsDto } , "setWatchOptions" : { } , "pauseScanner" : { } , "startScanner" : { } } } ] , [ import ( "./controllers/v1/search.controller" ) , { "SearchControllerV1" : { "search" : { } } } ] , [ import ( "./controllers/v1/webhook.controller" ) , { "WebhookControllerV1" : { "registerWebhook" : { } , "clearAllWebHooks" : { } , "getRegisteredWebhooks" : { } } } ] ] } } ;
9
- } ;
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 {
9
+ '@nestjs/swagger' : {
10
+ models : [
11
+ [
12
+ import ( '../../../libs/common/src/dtos/common.dto' ) ,
13
+ {
14
+ DsnpUserIdParam : { userDsnpId : { required : true , type : ( ) => String } } ,
15
+ AnnouncementResponseDto : { referenceId : { required : true , type : ( ) => String } } ,
16
+ UploadResponseDto : { assetIds : { required : true , type : ( ) => [ String ] } } ,
17
+ FilesUploadDto : { files : { required : true , type : ( ) => [ Object ] } } ,
18
+ ResetScannerDto : {
19
+ blockNumber : { required : false , type : ( ) => Number , minimum : 1 } ,
20
+ rewindOffset : { required : false , type : ( ) => Number } ,
21
+ immediate : { required : false , type : ( ) => Boolean } ,
22
+ } ,
23
+ } ,
24
+ ] ,
25
+ [
26
+ import ( '../../../libs/common/src/dtos/activity.dto' ) ,
27
+ {
28
+ LocationDto : {
29
+ name : { required : true , type : ( ) => String , minLength : 1 } ,
30
+ accuracy : { required : false , type : ( ) => Number , minimum : 0 , maximum : 100 } ,
31
+ altitude : { required : false , type : ( ) => Number } ,
32
+ latitude : { required : false , type : ( ) => Number } ,
33
+ longitude : { required : false , type : ( ) => Number } ,
34
+ radius : { required : false , type : ( ) => Number , minimum : 0 } ,
35
+ units : { required : false , enum : t [ '../../../libs/common/src/dtos/activity.dto' ] . UnitTypeDto } ,
36
+ } ,
37
+ AssetReferenceDto : {
38
+ referenceId : { required : true , type : ( ) => String , minLength : 1 } ,
39
+ height : { required : false , type : ( ) => Number , minimum : 1 } ,
40
+ width : { required : false , type : ( ) => Number , minimum : 1 } ,
41
+ duration : { required : false , type : ( ) => String , pattern : 'DURATION_REGEX' } ,
42
+ } ,
43
+ TagDto : {
44
+ type : { required : true , enum : t [ '../../../libs/common/src/dtos/activity.dto' ] . TagTypeDto } ,
45
+ name : { required : false , type : ( ) => String , minLength : 1 } ,
46
+ mentionedId : { required : false , type : ( ) => String , minLength : 1 , pattern : 'DSNP_USER_URI_REGEX' } ,
47
+ } ,
48
+ AssetDto : {
49
+ type : { required : true , enum : t [ '../../../libs/common/src/dtos/activity.dto' ] . AttachmentTypeDto } ,
50
+ references : { required : false , type : ( ) => [ t [ '../../../libs/common/src/dtos/activity.dto' ] . AssetReferenceDto ] } ,
51
+ name : { required : false , type : ( ) => String , minLength : 1 } ,
52
+ href : { required : false , type : ( ) => String , minLength : 1 } ,
53
+ } ,
54
+ BaseActivityDto : {
55
+ name : { required : false , type : ( ) => String } ,
56
+ tag : { required : false , type : ( ) => [ t [ '../../../libs/common/src/dtos/activity.dto' ] . TagDto ] } ,
57
+ location : { required : false , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . LocationDto } ,
58
+ } ,
59
+ NoteActivityDto : {
60
+ content : { required : true , type : ( ) => String , minLength : 1 } ,
61
+ published : { required : true , type : ( ) => String , pattern : 'ISO8601_REGEX' } ,
62
+ assets : { required : false , type : ( ) => [ t [ '../../../libs/common/src/dtos/activity.dto' ] . AssetDto ] } ,
63
+ } ,
64
+ ProfileActivityDto : {
65
+ icon : { required : false , type : ( ) => [ t [ '../../../libs/common/src/dtos/activity.dto' ] . AssetReferenceDto ] } ,
66
+ summary : { required : false , type : ( ) => String } ,
67
+ published : { required : false , type : ( ) => String , pattern : 'ISO8601_REGEX' } ,
68
+ } ,
69
+ } ,
70
+ ] ,
71
+ [
72
+ import ( '../../../libs/common/src/dtos/announcement.dto' ) ,
73
+ {
74
+ BroadcastDto : { content : { required : true , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . NoteActivityDto } } ,
75
+ ReplyDto : {
76
+ inReplyTo : { required : true , type : ( ) => String , pattern : 'DSNP_CONTENT_URI_REGEX' } ,
77
+ content : { required : true , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . NoteActivityDto } ,
78
+ } ,
79
+ TombstoneDto : {
80
+ targetContentHash : { required : true , type : ( ) => String , pattern : 'DSNP_CONTENT_HASH_REGEX' } ,
81
+ targetAnnouncementType : { required : true , enum : t [ '../../../libs/common/src/dtos/announcement.dto' ] . ModifiableAnnouncementTypeDto } ,
82
+ } ,
83
+ UpdateDto : {
84
+ targetContentHash : { required : true , type : ( ) => String , pattern : 'DSNP_CONTENT_HASH_REGEX' } ,
85
+ targetAnnouncementType : { required : true , enum : t [ '../../../libs/common/src/dtos/announcement.dto' ] . ModifiableAnnouncementTypeDto } ,
86
+ content : { required : true , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . NoteActivityDto } ,
87
+ } ,
88
+ ReactionDto : {
89
+ emoji : { required : true , type : ( ) => String , minLength : 1 , pattern : 'DSNP_EMOJI_REGEX' } ,
90
+ apply : { required : true , type : ( ) => Number , minimum : 0 , maximum : 255 } ,
91
+ inReplyTo : { required : true , type : ( ) => String , pattern : 'DSNP_CONTENT_URI_REGEX' } ,
92
+ } ,
93
+ ProfileDto : { profile : { required : true , type : ( ) => t [ '../../../libs/common/src/dtos/activity.dto' ] . ProfileActivityDto } } ,
94
+ } ,
95
+ ] ,
96
+ [
97
+ import ( '../../../libs/common/src/dtos/chain.watch.dto' ) ,
98
+ { ChainWatchOptionsDto : { schemaIds : { required : true , type : ( ) => [ Number ] } , dsnpIds : { required : true , type : ( ) => [ String ] } } } ,
99
+ ] ,
100
+ [
101
+ import ( '../../../libs/common/src/dtos/request-job.dto' ) ,
102
+ {
103
+ ContentSearchRequestDto : {
104
+ id : { required : true , type : ( ) => String } ,
105
+ startBlock : { required : true , type : ( ) => Number , minimum : 1 } ,
106
+ endBlock : { required : true , type : ( ) => Number , minimum : 1 } ,
107
+ filters : { required : true , type : ( ) => t [ '../../../libs/common/src/dtos/chain.watch.dto' ] . ChainWatchOptionsDto } ,
108
+ } ,
109
+ } ,
110
+ ] ,
111
+ [
112
+ import ( '../../../libs/common/src/dtos/subscription.webhook.dto' ) ,
113
+ { WebhookRegistrationDto : { url : { required : true , type : ( ) => String } , announcementTypes : { required : true , type : ( ) => [ String ] } } } ,
114
+ ] ,
115
+ ] ,
116
+ controllers : [
117
+ [ import ( './controllers/health.controller' ) , { HealthController : { healthz : { } , livez : { } , readyz : { } } } ] ,
118
+ [
119
+ import ( './controllers/v1/scanner.controller' ) ,
120
+ {
121
+ ScanControllerV1 : {
122
+ resetScanner : { } ,
123
+ getWatchOptions : { type : t [ '../../../libs/common/src/dtos/chain.watch.dto' ] . ChainWatchOptionsDto } ,
124
+ setWatchOptions : { } ,
125
+ pauseScanner : { } ,
126
+ startScanner : { } ,
127
+ } ,
128
+ } ,
129
+ ] ,
130
+ [ import ( './controllers/v1/search.controller' ) , { SearchControllerV1 : { search : { } } } ] ,
131
+ [ import ( './controllers/v1/webhook.controller' ) , { WebhookControllerV1 : { registerWebhook : { } , clearAllWebHooks : { } , getRegisteredWebhooks : { } } } ] ,
132
+ ] ,
133
+ } ,
134
+ } ;
135
+ } ;
0 commit comments