File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,29 @@ declare module "{{ language.params.npmPackage|caseDash }}" {
174
174
private static parseValues(value: QueryTypes): string;
175
175
}
176
176
177
+ export class ID {
178
+ static unique = (): string;
179
+ static custom = (id: string): string;
180
+ }
181
+
182
+ export class Permission {
183
+ static read = (role: string): string;
184
+ static write = (role: string): string;
185
+ static create = (role: string): string;
186
+ static update = (role: string): string;
187
+ static delete = (role: string): string;
188
+ }
189
+
190
+ export class Role {
191
+ static any = (): string;
192
+ static user = (id: string, status?: string): string;
193
+ static users = (status?: string): string;
194
+ static guests = (): string;
195
+ static team = (id: string, role?: string): string;
196
+ static member = (id: string): string;
197
+ static status = (status: string): string;
198
+ }
199
+
177
200
{% for service in spec .services %}
178
201
export class {{ service .name | caseUcfirst }} extends Service {
179
202
constructor(client: Client{% for parameter in service .globalParams %}, {{ parameter .name | caseCamel | escapeKeyword }}: {{ parameter | typeName }}{% if not parameter .required %}|null{% endif %}{% endfor %});
You can’t perform that action at this time.
0 commit comments