mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 20:20:16 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
70
package/@stackframe/react/dist/lib/stack-app/contact-channels/index.js
vendored
Normal file
70
package/@stackframe/react/dist/lib/stack-app/contact-channels/index.js
vendored
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/lib/stack-app/contact-channels/index.ts
|
||||
var contact_channels_exports = {};
|
||||
__export(contact_channels_exports, {
|
||||
contactChannelCreateOptionsToCrud: () => contactChannelCreateOptionsToCrud,
|
||||
contactChannelUpdateOptionsToCrud: () => contactChannelUpdateOptionsToCrud,
|
||||
serverContactChannelCreateOptionsToCrud: () => serverContactChannelCreateOptionsToCrud,
|
||||
serverContactChannelUpdateOptionsToCrud: () => serverContactChannelUpdateOptionsToCrud
|
||||
});
|
||||
module.exports = __toCommonJS(contact_channels_exports);
|
||||
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
|
||||
};
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
contactChannelCreateOptionsToCrud,
|
||||
contactChannelUpdateOptionsToCrud,
|
||||
serverContactChannelCreateOptionsToCrud,
|
||||
serverContactChannelUpdateOptionsToCrud
|
||||
});
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
package/@stackframe/react/dist/lib/stack-app/contact-channels/index.js.map
vendored
Normal file
1
package/@stackframe/react/dist/lib/stack-app/contact-channels/index.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../../../src/lib/stack-app/contact-channels/index.ts"],"sourcesContent":["\n//===========================================\n// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY\n//===========================================\nimport { ContactChannelsCrud } from \"@stackframe/stack-shared/dist/interface/crud/contact-channels\";\n\n\nexport type ContactChannel = {\n id: string,\n value: string,\n type: 'email',\n isPrimary: boolean,\n isVerified: boolean,\n usedForAuth: boolean,\n\n sendVerificationEmail(): Promise<void>,\n update(data: ContactChannelUpdateOptions): Promise<void>,\n delete(): Promise<void>,\n}\n\nexport type ContactChannelCreateOptions = {\n value: string,\n type: 'email',\n usedForAuth: boolean,\n isPrimary?: boolean,\n}\n\nexport function contactChannelCreateOptionsToCrud(userId: string, options: ContactChannelCreateOptions): ContactChannelsCrud[\"Client\"][\"Create\"] {\n return {\n value: options.value,\n type: options.type,\n used_for_auth: options.usedForAuth,\n is_primary: options.isPrimary,\n user_id: userId,\n };\n}\n\nexport type ContactChannelUpdateOptions = {\n usedForAuth?: boolean,\n value?: string,\n isPrimary?: boolean,\n}\n\nexport function contactChannelUpdateOptionsToCrud(options: ContactChannelUpdateOptions): ContactChannelsCrud[\"Client\"][\"Update\"] {\n return {\n value: options.value,\n used_for_auth: options.usedForAuth,\n is_primary: options.isPrimary,\n };\n}\n\nexport type ServerContactChannel = ContactChannel & {\n update(data: ServerContactChannelUpdateOptions): Promise<void>,\n}\nexport type ServerContactChannelUpdateOptions = ContactChannelUpdateOptions & {\n isVerified?: boolean,\n}\n\nexport function serverContactChannelUpdateOptionsToCrud(options: ServerContactChannelUpdateOptions): ContactChannelsCrud[\"Server\"][\"Update\"] {\n return {\n value: options.value,\n is_verified: options.isVerified,\n used_for_auth: options.usedForAuth,\n is_primary: options.isPrimary,\n };\n}\n\nexport type ServerContactChannelCreateOptions = ContactChannelCreateOptions & {\n isVerified?: boolean,\n}\nexport function serverContactChannelCreateOptionsToCrud(userId: string, options: ServerContactChannelCreateOptions): ContactChannelsCrud[\"Server\"][\"Create\"] {\n return {\n type: options.type,\n value: options.value,\n is_verified: options.isVerified,\n user_id: userId,\n used_for_auth: options.usedForAuth,\n is_primary: options.isPrimary,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BO,SAAS,kCAAkC,QAAgB,SAA+E;AAC/I,SAAO;AAAA,IACL,OAAO,QAAQ;AAAA,IACf,MAAM,QAAQ;AAAA,IACd,eAAe,QAAQ;AAAA,IACvB,YAAY,QAAQ;AAAA,IACpB,SAAS;AAAA,EACX;AACF;AAQO,SAAS,kCAAkC,SAA+E;AAC/H,SAAO;AAAA,IACL,OAAO,QAAQ;AAAA,IACf,eAAe,QAAQ;AAAA,IACvB,YAAY,QAAQ;AAAA,EACtB;AACF;AASO,SAAS,wCAAwC,SAAqF;AAC3I,SAAO;AAAA,IACL,OAAO,QAAQ;AAAA,IACf,aAAa,QAAQ;AAAA,IACrB,eAAe,QAAQ;AAAA,IACvB,YAAY,QAAQ;AAAA,EACtB;AACF;AAKO,SAAS,wCAAwC,QAAgB,SAAqF;AAC3J,SAAO;AAAA,IACL,MAAM,QAAQ;AAAA,IACd,OAAO,QAAQ;AAAA,IACf,aAAa,QAAQ;AAAA,IACrB,SAAS;AAAA,IACT,eAAe,QAAQ;AAAA,IACvB,YAAY,QAAQ;AAAA,EACtB;AACF;","names":[]}
|
||||
Loading…
Add table
Add a link
Reference in a new issue