@@ -167,13 +167,35 @@ declare module "{{ language.params.npmPackage|caseDash }}" {
167
167
168
168
static limit(value: number): string;
169
169
170
- static offset = (value: number): string;
170
+ static offset(value: number): string;
171
171
172
172
private static addQuery(attribute: string, method: string, value: QueryTypes): string;
173
173
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
+ }
198
+
177
199
{% for service in spec .services %}
178
200
export class {{ service .name | caseUcfirst }} extends Service {
179
201
constructor(client: Client{% for parameter in service .globalParams %}, {{ parameter .name | caseCamel | escapeKeyword }}: {{ parameter | typeName }}{% if not parameter .required %}|null{% endif %}{% endfor %});
0 commit comments