You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Invalid slug: The terms 'gamevault' and 'user' are reserved slugs.",
61
63
})
62
-
@ApiProperty({
63
-
description:
64
-
"slug (url-friendly name) of the provider. This is the primary identifier. Must be formatted like a valid slug.",
65
-
example: "igdb",
66
-
})
67
64
publicslug: string;
68
65
69
66
@IsNotEmpty()
70
-
@ApiProperty({
71
-
description: "display name of the provider.",
72
-
example: "IGDB",
73
-
})
74
67
publicname: string;
75
68
76
69
@IsInt()
77
70
@IsNotEmpty()
78
-
@ApiProperty({
79
-
type: Number,
80
-
description:
81
-
"priority of usage for this provider. Lower priority providers are tried first, while higher priority providers fill in gaps.",
82
-
})
83
71
publicpriority: number;
84
72
85
73
@IsBoolean()
86
-
@ApiProperty({
87
-
type: Boolean,
88
-
description: "whether this provider is enabled or not.",
89
-
default: true,
90
-
})
91
74
publicenabled=true;
92
75
93
76
@IsInt()
94
77
@Min(0)
95
-
@ApiProperty({
96
-
type: Number,
97
-
description:
98
-
"the interval, in milliseconds, to wait between consecutive requests to prevent exceeding rate limits. this delay will be applied before each call to the provider.",
99
-
})
100
78
publicrequest_interval_ms=0;
101
79
80
+
publicgetDto(): MetadataProviderDto{
81
+
return{
82
+
slug: this.slug,
83
+
name: this.name,
84
+
priority: this.priority,
85
+
enabled: this.enabled,
86
+
};
87
+
}
88
+
102
89
/**
103
90
* Searches for a game using the provider. Only returns the minimal info of a game.
0 commit comments