invite link basics

This commit is contained in:
vabene1111
2022-06-01 17:42:07 +02:00
parent f41e4c62d4
commit 2afab2aec8
9 changed files with 714 additions and 9 deletions

View File

@ -663,6 +663,41 @@ export class Models {
},
},
}
static INVITE_LINK = {
name: "InviteLink",
apiName: "InviteLink",
paginated: false,
create: {
params: [["email", "group", "valid_until"]],
form: {
email: {
form_field: true,
type: "text",
field: "email",
label: "Email",
placeholder: "",
},
group: {
form_field: true,
type: "lookup",
field: "group",
list: "GROUP",
list_label: "name",
label: "Group",
placeholder: "",
},
valid_until: {
form_field: true,
type: "date",
field: "valid_until",
label: "Valid Until",
placeholder: "",
},
},
},
}
static USER = {
name: "User",
apiName: "User",