diff --git a/src/index.ts b/src/index.ts index ca3562cc..6fe5bb28 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'; diff --git a/src/membershipRequest/membershipRequest.ts b/src/membershipRequest/membershipRequest.ts new file mode 100644 index 00000000..f614ba91 --- /dev/null +++ b/src/membershipRequest/membershipRequest.ts @@ -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; +};