Skip to content

Commit 08ec148

Browse files
author
nicosammito
committed
feat: add roles and slug fields to NamespaceProject view
1 parent b41c8e3 commit 08ec148

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

src/components/d-project/DNamespaceProject.view.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
Flow,
33
FlowConnection,
44
Maybe,
5-
Namespace, NamespaceProject, NamespaceProjectUserAbilities,
5+
Namespace, NamespaceProject, NamespaceProjectUserAbilities, NamespaceRoleConnection,
66
Runtime,
77
RuntimeConnection,
88
Scalars
@@ -25,8 +25,12 @@ export class DNamespaceProjectView {
2525
private readonly _namespace?: Maybe<Namespace>;
2626
/** The primary runtime for the project */
2727
private readonly _primaryRuntime?: Maybe<Runtime>;
28+
/** Roles assigned to this project */
29+
private readonly _roles?: Maybe<NamespaceRoleConnection>;
2830
/** Runtimes assigned to this project */
2931
private readonly _runtimes?: Maybe<RuntimeConnection>;
32+
/** Slug of the project used in URLs to identify flows */
33+
private readonly _slug?: Maybe<Scalars['String']['output']>;
3034
/** Time when this NamespaceProject was last updated */
3135
private readonly _updatedAt?: Maybe<Scalars['Time']['output']>;
3236
/** Abilities for the current user on this NamespaceProject */
@@ -41,7 +45,9 @@ export class DNamespaceProjectView {
4145
this._name = payload.name;
4246
this._namespace = payload.namespace;
4347
this._primaryRuntime = payload.primaryRuntime;
48+
this._roles = payload.roles;
4449
this._runtimes = payload.runtimes;
50+
this._slug = payload.slug;
4551
this._updatedAt = payload.updatedAt;
4652
this._userAbilities = payload.userAbilities;
4753
}
@@ -79,10 +85,18 @@ export class DNamespaceProjectView {
7985
return this._primaryRuntime;
8086
}
8187

88+
get roles(): Maybe<NamespaceRoleConnection> | undefined {
89+
return this._roles;
90+
}
91+
8292
get runtimes(): Maybe<RuntimeConnection> | undefined {
8393
return this._runtimes;
8494
}
8595

96+
get slug(): Maybe<Scalars["String"]["output"]> | undefined {
97+
return this._slug;
98+
}
99+
86100
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined {
87101
return this._updatedAt;
88102
}

0 commit comments

Comments
 (0)