mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 04:00:09 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
42
package/@stackframe/react/dist/esm/lib/stack-app/contact-channels/index.js
vendored
Normal file
42
package/@stackframe/react/dist/esm/lib/stack-app/contact-channels/index.js
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
// src/lib/stack-app/contact-channels/index.ts
|
||||
function contactChannelCreateOptionsToCrud(userId, options) {
|
||||
return {
|
||||
value: options.value,
|
||||
type: options.type,
|
||||
used_for_auth: options.usedForAuth,
|
||||
is_primary: options.isPrimary,
|
||||
user_id: userId
|
||||
};
|
||||
}
|
||||
function contactChannelUpdateOptionsToCrud(options) {
|
||||
return {
|
||||
value: options.value,
|
||||
used_for_auth: options.usedForAuth,
|
||||
is_primary: options.isPrimary
|
||||
};
|
||||
}
|
||||
function serverContactChannelUpdateOptionsToCrud(options) {
|
||||
return {
|
||||
value: options.value,
|
||||
is_verified: options.isVerified,
|
||||
used_for_auth: options.usedForAuth,
|
||||
is_primary: options.isPrimary
|
||||
};
|
||||
}
|
||||
function serverContactChannelCreateOptionsToCrud(userId, options) {
|
||||
return {
|
||||
type: options.type,
|
||||
value: options.value,
|
||||
is_verified: options.isVerified,
|
||||
user_id: userId,
|
||||
used_for_auth: options.usedForAuth,
|
||||
is_primary: options.isPrimary
|
||||
};
|
||||
}
|
||||
export {
|
||||
contactChannelCreateOptionsToCrud,
|
||||
contactChannelUpdateOptionsToCrud,
|
||||
serverContactChannelCreateOptionsToCrud,
|
||||
serverContactChannelUpdateOptionsToCrud
|
||||
};
|
||||
//# sourceMappingURL=index.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue