Skip to content

Commit

Permalink
feat(membership request): data transfert objects (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Defferrard authored Aug 14, 2024
1 parent 059da84 commit 896f02d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ export * from './itemLogin/itemLogin.js';
* Item Memberships
*/
export * from './itemMembership/itemMembership.js';
export * from './membershipRequest/membershipRequest.js';

/**
* Item Memberships
* Item Published
*/
export * from './itemPublished/itemPublished.js';

Expand Down
17 changes: 17 additions & 0 deletions src/membershipRequest/membershipRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Item } from '@/item/baseItem.js';
import { Member } from '@/member/member.js';

export enum MembershipRequestStatus {
NotSubmittedOrDeleted = 'notSubmittedOrDeleted',
Pending = 'pending',
Approved = 'approved',
}

export type SimpleMembershipRequest = {
member: Member;
createdAt: string;
};

export type CompleteMembershipRequest = SimpleMembershipRequest & {
item: Item;
};

0 comments on commit 896f02d

Please sign in to comment.