@plotday/twister 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/calendar.d.ts +17 -7
- package/dist/common/calendar.d.ts.map +1 -1
- package/dist/common/messaging.d.ts +10 -5
- package/dist/common/messaging.d.ts.map +1 -1
- package/dist/common/projects.d.ts +10 -5
- package/dist/common/projects.d.ts.map +1 -1
- package/dist/common/serializable.d.ts +40 -0
- package/dist/common/serializable.d.ts.map +1 -0
- package/dist/common/serializable.js +2 -0
- package/dist/common/serializable.js.map +1 -0
- package/dist/docs/assets/hierarchy.js +1 -1
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/classes/tool.ITool.html +1 -1
- package/dist/docs/classes/tool.Tool.html +32 -33
- package/dist/docs/classes/tools_ai.AI.html +2 -2
- package/dist/docs/classes/tools_callbacks.Callbacks.html +6 -6
- package/dist/docs/classes/tools_integrations.Integrations.html +3 -3
- package/dist/docs/classes/tools_network.Network.html +12 -12
- package/dist/docs/classes/tools_plot.Plot.html +40 -30
- package/dist/docs/classes/tools_store.Store.html +29 -18
- package/dist/docs/classes/tools_tasks.Tasks.html +8 -8
- package/dist/docs/classes/tools_twists.Twists.html +5 -5
- package/dist/docs/classes/twist.Twist.html +28 -24
- package/dist/docs/enums/plot.ActivityLinkType.html +5 -5
- package/dist/docs/enums/plot.ActivityType.html +4 -4
- package/dist/docs/enums/plot.ActorType.html +4 -4
- package/dist/docs/enums/plot.ConferencingProvider.html +6 -6
- package/dist/docs/enums/tag.Tag.html +2 -2
- package/dist/docs/enums/tools_ai.AIModel.html +2 -2
- package/dist/docs/enums/tools_integrations.AuthLevel.html +3 -3
- package/dist/docs/enums/tools_integrations.AuthProvider.html +11 -11
- package/dist/docs/enums/tools_plot.ActivityAccess.html +3 -3
- package/dist/docs/enums/tools_plot.ContactAccess.html +3 -3
- package/dist/docs/enums/tools_plot.PriorityAccess.html +3 -3
- package/dist/docs/functions/index.Uuid.Generate.html +1 -1
- package/dist/docs/functions/utils_hash.quickHash.html +1 -1
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/interfaces/common_calendar.Calendar.html +5 -5
- package/dist/docs/interfaces/common_calendar.CalendarTool.html +16 -10
- package/dist/docs/interfaces/common_calendar.SyncOptions.html +3 -3
- package/dist/docs/interfaces/index.SerializableArray.html +2 -0
- package/dist/docs/interfaces/index.SerializableMap.html +2 -0
- package/dist/docs/interfaces/index.SerializableObject.html +2 -0
- package/dist/docs/interfaces/index.SerializableSet.html +2 -0
- package/dist/docs/interfaces/tools_ai.AIRequest.html +11 -11
- package/dist/docs/interfaces/tools_ai.AIResponse.html +9 -9
- package/dist/docs/interfaces/tools_ai.FilePart.html +5 -5
- package/dist/docs/interfaces/tools_ai.ImagePart.html +4 -4
- package/dist/docs/interfaces/tools_ai.ReasoningPart.html +4 -4
- package/dist/docs/interfaces/tools_ai.RedactedReasoningPart.html +3 -3
- package/dist/docs/interfaces/tools_ai.TextPart.html +3 -3
- package/dist/docs/interfaces/tools_ai.ToolCallPart.html +5 -5
- package/dist/docs/interfaces/tools_ai.ToolExecutionOptions.html +4 -4
- package/dist/docs/interfaces/tools_ai.ToolResultPart.html +5 -5
- package/dist/docs/interfaces/tools_twists.TwistSource.html +3 -3
- package/dist/docs/interfaces/utils_types.ToolShed.html +5 -5
- package/dist/docs/modules/index.html +1 -1
- package/dist/docs/modules/plot.html +1 -1
- package/dist/docs/modules/utils_types.html +1 -1
- package/dist/docs/types/common_calendar.CalendarAuth.html +2 -2
- package/dist/docs/types/index.Serializable.html +17 -0
- package/dist/docs/types/index.Uuid.html +1 -1
- package/dist/docs/types/plot.Activity.html +1 -1
- package/dist/docs/types/plot.ActivityCommon.html +9 -9
- package/dist/docs/types/plot.ActivityLink.html +1 -1
- package/dist/docs/types/plot.ActivityMeta.html +5 -3
- package/dist/docs/types/plot.ActivityUpdate.html +2 -2
- package/dist/docs/types/plot.ActivityWithNotes.html +1 -1
- package/dist/docs/types/plot.Actor.html +15 -5
- package/dist/docs/types/plot.ActorId.html +1 -1
- package/dist/docs/types/plot.ContentType.html +1 -1
- package/dist/docs/types/plot.NewActivity.html +1 -1
- package/dist/docs/types/plot.NewActivityWithNotes.html +1 -1
- package/dist/docs/types/plot.NewActor.html +1 -1
- package/dist/docs/types/plot.NewContact.html +4 -4
- package/dist/docs/types/plot.NewNote.html +1 -1
- package/dist/docs/types/plot.NewPriority.html +15 -5
- package/dist/docs/types/plot.NewTags.html +1 -1
- package/dist/docs/types/plot.Note.html +1 -1
- package/dist/docs/types/plot.NoteUpdate.html +2 -2
- package/dist/docs/types/plot.PickPriorityConfig.html +3 -3
- package/dist/docs/types/plot.Priority.html +9 -4
- package/dist/docs/types/plot.PriorityUpdate.html +3 -0
- package/dist/docs/types/plot.SyncUpdate.html +1 -1
- package/dist/docs/types/plot.Tags.html +1 -1
- package/dist/docs/types/tools_ai.AIAssistantMessage.html +2 -2
- package/dist/docs/types/tools_ai.AIMessage.html +1 -1
- package/dist/docs/types/tools_ai.AISource.html +1 -1
- package/dist/docs/types/tools_ai.AISystemMessage.html +2 -2
- package/dist/docs/types/tools_ai.AITool.html +1 -1
- package/dist/docs/types/tools_ai.AIToolMessage.html +2 -2
- package/dist/docs/types/tools_ai.AIToolSet.html +1 -1
- package/dist/docs/types/tools_ai.AIUsage.html +5 -5
- package/dist/docs/types/tools_ai.AIUserMessage.html +2 -2
- package/dist/docs/types/tools_ai.DataContent.html +1 -1
- package/dist/docs/types/tools_ai.ModelPreferences.html +4 -4
- package/dist/docs/types/tools_callbacks.Callback.html +1 -1
- package/dist/docs/types/tools_integrations.AuthToken.html +4 -4
- package/dist/docs/types/tools_integrations.Authorization.html +4 -4
- package/dist/docs/types/tools_network.WebhookRequest.html +6 -6
- package/dist/docs/types/tools_plot.NoteIntentHandler.html +4 -4
- package/dist/docs/types/tools_twists.Log.html +2 -2
- package/dist/docs/types/tools_twists.TwistPermissions.html +1 -1
- package/dist/docs/types/utils_types.BuiltInTools.html +2 -2
- package/dist/docs/types/utils_types.CallbackMethods.html +1 -1
- package/dist/docs/types/utils_types.ExtractBuildReturn.html +1 -1
- package/dist/docs/types/utils_types.InferOptions.html +1 -1
- package/dist/docs/types/utils_types.InferTools.html +1 -1
- package/dist/docs/types/utils_types.JSONValue.html +7 -0
- package/dist/docs/types/utils_types.NoFunctions.html +1 -1
- package/dist/docs/types/utils_types.NonFunction.html +1 -1
- package/dist/docs/types/utils_types.PromiseValues.html +1 -1
- package/dist/docs/types/utils_types.ToolBuilder.html +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/llm-docs/common/calendar.d.ts +1 -1
- package/dist/llm-docs/common/calendar.d.ts.map +1 -1
- package/dist/llm-docs/common/calendar.js +1 -1
- package/dist/llm-docs/common/calendar.js.map +1 -1
- package/dist/llm-docs/common/messaging.d.ts +1 -1
- package/dist/llm-docs/common/messaging.d.ts.map +1 -1
- package/dist/llm-docs/common/messaging.js +1 -1
- package/dist/llm-docs/common/messaging.js.map +1 -1
- package/dist/llm-docs/common/projects.d.ts +1 -1
- package/dist/llm-docs/common/projects.d.ts.map +1 -1
- package/dist/llm-docs/common/projects.js +1 -1
- package/dist/llm-docs/common/projects.js.map +1 -1
- package/dist/llm-docs/plot.d.ts +1 -1
- package/dist/llm-docs/plot.d.ts.map +1 -1
- package/dist/llm-docs/plot.js +1 -1
- package/dist/llm-docs/plot.js.map +1 -1
- package/dist/llm-docs/tool.d.ts +1 -1
- package/dist/llm-docs/tool.d.ts.map +1 -1
- package/dist/llm-docs/tool.js +1 -1
- package/dist/llm-docs/tool.js.map +1 -1
- package/dist/llm-docs/tools/network.d.ts +1 -1
- package/dist/llm-docs/tools/network.d.ts.map +1 -1
- package/dist/llm-docs/tools/network.js +1 -1
- package/dist/llm-docs/tools/network.js.map +1 -1
- package/dist/llm-docs/tools/plot.d.ts +1 -1
- package/dist/llm-docs/tools/plot.d.ts.map +1 -1
- package/dist/llm-docs/tools/plot.js +1 -1
- package/dist/llm-docs/tools/plot.js.map +1 -1
- package/dist/llm-docs/tools/store.d.ts +1 -1
- package/dist/llm-docs/tools/store.d.ts.map +1 -1
- package/dist/llm-docs/tools/store.js +1 -1
- package/dist/llm-docs/tools/store.js.map +1 -1
- package/dist/llm-docs/tools/tasks.d.ts +1 -1
- package/dist/llm-docs/tools/tasks.d.ts.map +1 -1
- package/dist/llm-docs/tools/tasks.js +1 -1
- package/dist/llm-docs/tools/tasks.js.map +1 -1
- package/dist/llm-docs/twist.d.ts +1 -1
- package/dist/llm-docs/twist.d.ts.map +1 -1
- package/dist/llm-docs/twist.js +1 -1
- package/dist/llm-docs/twist.js.map +1 -1
- package/dist/plot.d.ts +125 -14
- package/dist/plot.d.ts.map +1 -1
- package/dist/plot.js.map +1 -1
- package/dist/tool.d.ts +26 -18
- package/dist/tool.d.ts.map +1 -1
- package/dist/tool.js +25 -17
- package/dist/tool.js.map +1 -1
- package/dist/tools/network.d.ts +19 -16
- package/dist/tools/network.d.ts.map +1 -1
- package/dist/tools/network.js +6 -4
- package/dist/tools/network.js.map +1 -1
- package/dist/tools/plot.d.ts +91 -22
- package/dist/tools/plot.d.ts.map +1 -1
- package/dist/tools/plot.js +45 -0
- package/dist/tools/plot.js.map +1 -1
- package/dist/tools/store.d.ts +43 -18
- package/dist/tools/store.d.ts.map +1 -1
- package/dist/tools/store.js +12 -1
- package/dist/tools/store.js.map +1 -1
- package/dist/tools/tasks.d.ts +4 -4
- package/dist/tools/tasks.js +4 -4
- package/dist/twist.d.ts +24 -10
- package/dist/twist.d.ts.map +1 -1
- package/dist/twist.js +19 -5
- package/dist/twist.js.map +1 -1
- package/dist/utils/types.d.ts +19 -0
- package/dist/utils/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ActivityLink, SyncUpdate } from "../index";
|
|
2
|
+
import type { NoFunctions } from "../utils/types";
|
|
2
3
|
/**
|
|
3
4
|
* Represents successful calendar authorization.
|
|
4
5
|
*
|
|
@@ -82,9 +83,12 @@ export interface SyncOptions {
|
|
|
82
83
|
* const primaryCalendar = calendars.find(c => c.primary);
|
|
83
84
|
* if (primaryCalendar) {
|
|
84
85
|
* await this.googleCalendar.startSync(
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
86
|
+
* {
|
|
87
|
+
* authToken: auth.authToken,
|
|
88
|
+
* calendarId: primaryCalendar.id
|
|
89
|
+
* },
|
|
90
|
+
* this.onCalendarEvent,
|
|
91
|
+
* { initialSync: true }
|
|
88
92
|
* );
|
|
89
93
|
* }
|
|
90
94
|
* }
|
|
@@ -140,14 +144,20 @@ export interface CalendarTool {
|
|
|
140
144
|
* - Use Uuid.Generate() and store ID mappings when creating multiple activities per event
|
|
141
145
|
* - See SYNC_STRATEGIES.md for when this is appropriate
|
|
142
146
|
*
|
|
143
|
-
* @param
|
|
144
|
-
* @param
|
|
147
|
+
* @param options - Sync configuration options
|
|
148
|
+
* @param options.authToken - Authorization token for calendar access
|
|
149
|
+
* @param options.calendarId - ID of the calendar to sync
|
|
150
|
+
* @param options.timeMin - Earliest date to sync events from (inclusive)
|
|
151
|
+
* @param options.timeMax - Latest date to sync events to (exclusive)
|
|
145
152
|
* @param callback - Function receiving (syncUpdate, ...extraArgs) for each synced event
|
|
146
|
-
* @param extraArgs - Additional arguments to pass to the callback (type-checked)
|
|
153
|
+
* @param extraArgs - Additional arguments to pass to the callback (type-checked, no functions allowed)
|
|
147
154
|
* @returns Promise that resolves when sync setup is complete
|
|
148
155
|
* @throws When auth token is invalid or calendar doesn't exist
|
|
149
156
|
*/
|
|
150
|
-
startSync<TCallback extends (syncUpdate: SyncUpdate, ...args: any[]) => any>(
|
|
157
|
+
startSync<TCallback extends (syncUpdate: SyncUpdate, ...args: any[]) => any>(options: {
|
|
158
|
+
authToken: string;
|
|
159
|
+
calendarId: string;
|
|
160
|
+
} & SyncOptions, callback: TCallback, ...extraArgs: TCallback extends (syncUpdate: any, ...rest: infer R) => any ? NoFunctions<R> : []): Promise<void>;
|
|
151
161
|
/**
|
|
152
162
|
* Stops synchronizing events from a specific calendar.
|
|
153
163
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/common/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAwB,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/common/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAwB,UAAU,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACvB,6DAA6D;IAC7D,EAAE,EAAE,MAAM,CAAC;IACX,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,0DAA0D;IAC1D,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,oDAAoD;IACpD,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,gDAAgD;IAChD,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,WAAW,CAAC,SAAS,SAAS,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACvE,QAAQ,EAAE,SAAS,EACnB,GAAG,SAAS,EAAE,SAAS,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GAChE,CAAC,GACD,EAAE,GACL,OAAO,CAAC,YAAY,CAAC,CAAC;IAEzB;;;;;;;;;;OAUG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,SAAS,CAAC,SAAS,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACzE,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,WAAW,EACf,QAAQ,EAAE,SAAS,EACnB,GAAG,SAAS,EAAE,SAAS,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GACtE,WAAW,CAAC,CAAC,CAAC,GACd,EAAE,GACL,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ActivityLink, SyncUpdate } from "../index";
|
|
2
|
+
import type { NoFunctions } from "../utils/types";
|
|
2
3
|
/**
|
|
3
4
|
* Represents a successful messaging service authorization.
|
|
4
5
|
*
|
|
@@ -80,14 +81,18 @@ export interface MessagingTool {
|
|
|
80
81
|
* - Use Uuid.Generate() and store ID mappings when creating multiple activities per thread
|
|
81
82
|
* - See SYNC_STRATEGIES.md for when this is appropriate
|
|
82
83
|
*
|
|
83
|
-
* @param
|
|
84
|
-
* @param
|
|
84
|
+
* @param options - Sync configuration options
|
|
85
|
+
* @param options.authToken - Authorization token for access
|
|
86
|
+
* @param options.channelId - ID of the channel (e.g., channel, inbox) to sync
|
|
87
|
+
* @param options.timeMin - Earliest date to sync events from (inclusive)
|
|
85
88
|
* @param callback - Function receiving (syncUpdate, ...extraArgs) for each synced conversation
|
|
86
|
-
* @param
|
|
87
|
-
* @param extraArgs - Additional arguments to pass to the callback (type-checked)
|
|
89
|
+
* @param extraArgs - Additional arguments to pass to the callback (type-checked, no functions allowed)
|
|
88
90
|
* @returns Promise that resolves when sync setup is complete
|
|
89
91
|
*/
|
|
90
|
-
startSync<TCallback extends (syncUpdate: SyncUpdate, ...args: any[]) => any>(
|
|
92
|
+
startSync<TCallback extends (syncUpdate: SyncUpdate, ...args: any[]) => any>(options: {
|
|
93
|
+
authToken: string;
|
|
94
|
+
channelId: string;
|
|
95
|
+
} & MessageSyncOptions, callback: TCallback, ...extraArgs: TCallback extends (syncUpdate: any, ...rest: infer R) => any ? NoFunctions<R> : []): Promise<void>;
|
|
91
96
|
/**
|
|
92
97
|
* Stops synchronizing messages from a specific channel.
|
|
93
98
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/common/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAwB,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/common/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAwB,UAAU,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;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OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ActivityLink, ActivityUpdate, SyncUpdate } from "../index";
|
|
2
|
+
import type { NoFunctions } from "../utils/types";
|
|
2
3
|
/**
|
|
3
4
|
* Represents a successful project management service authorization.
|
|
4
5
|
*
|
|
@@ -82,14 +83,18 @@ export interface ProjectTool {
|
|
|
82
83
|
* - Use Uuid.Generate() and store ID mappings when creating multiple activities per issue
|
|
83
84
|
* - See SYNC_STRATEGIES.md for when this is appropriate
|
|
84
85
|
*
|
|
85
|
-
* @param
|
|
86
|
-
* @param
|
|
86
|
+
* @param options - Sync configuration options
|
|
87
|
+
* @param options.authToken - Authorization token for access
|
|
88
|
+
* @param options.projectId - ID of the project to sync
|
|
89
|
+
* @param options.timeMin - Earliest date to sync issues from (inclusive)
|
|
87
90
|
* @param callback - Function receiving (syncUpdate, ...extraArgs) for each synced issue
|
|
88
|
-
* @param
|
|
89
|
-
* @param extraArgs - Additional arguments to pass to the callback (type-checked)
|
|
91
|
+
* @param extraArgs - Additional arguments to pass to the callback (type-checked, no functions allowed)
|
|
90
92
|
* @returns Promise that resolves when sync setup is complete
|
|
91
93
|
*/
|
|
92
|
-
startSync<TCallback extends (syncUpdate: SyncUpdate, ...args: any[]) => any>(
|
|
94
|
+
startSync<TCallback extends (syncUpdate: SyncUpdate, ...args: any[]) => any>(options: {
|
|
95
|
+
authToken: string;
|
|
96
|
+
projectId: string;
|
|
97
|
+
} & ProjectSyncOptions, callback: TCallback, ...extraArgs: TCallback extends (syncUpdate: any, ...rest: infer R) => any ? NoFunctions<R> : []): Promise<void>;
|
|
93
98
|
/**
|
|
94
99
|
* Stops synchronizing issues from a specific project.
|
|
95
100
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/common/projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EAEd,UAAU,EACX,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/common/projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EAEd,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACtB,4DAA4D;IAC5D,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,mEAAmE;IACnE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gFAAgF;IAChF,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,oDAAoD;IACpD,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,WAAW,CAAC,SAAS,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACtE,QAAQ,EAAE,SAAS,EACnB,GAAG,SAAS,EAAE,SAAS,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GAChE,CAAC,GACD,EAAE,GACL,OAAO,CAAC,YAAY,CAAC,CAAC;IAEzB;;;;;OAKG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,SAAS,CAAC,SAAS,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACzE,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,kBAAkB,EACtB,QAAQ,EAAE,SAAS,EACnB,GAAG,SAAS,EAAE,SAAS,SAAS,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GACtE,WAAW,CAAC,CAAC,CAAC,GACd,EAAE,GACL,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvE;;;;;;;;;;OAUG;IACH,eAAe,CAAC,CACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types supported by SuperJSON serialization.
|
|
3
|
+
*
|
|
4
|
+
* SuperJSON extends standard JSON serialization to support additional JavaScript types
|
|
5
|
+
* while maintaining type safety and preventing common serialization errors.
|
|
6
|
+
*
|
|
7
|
+
* Supported types:
|
|
8
|
+
* - Primitives: string, number, boolean, null, undefined
|
|
9
|
+
* - Complex types: Date, RegExp, Map, Set, Error, URL, BigInt
|
|
10
|
+
* - Collections: Arrays and objects (recursively)
|
|
11
|
+
*
|
|
12
|
+
* NOT supported (will throw validation errors):
|
|
13
|
+
* - Functions
|
|
14
|
+
* - Symbols
|
|
15
|
+
* - Circular references
|
|
16
|
+
* - Custom class instances (unless explicitly registered)
|
|
17
|
+
*/
|
|
18
|
+
export type Serializable = string | number | boolean | null | undefined | Date | RegExp | Error | URL | bigint | SerializableArray | SerializableObject | SerializableMap | SerializableSet;
|
|
19
|
+
/**
|
|
20
|
+
* Array of serializable values
|
|
21
|
+
*/
|
|
22
|
+
export interface SerializableArray extends Array<Serializable> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Object with string keys and serializable values
|
|
26
|
+
*/
|
|
27
|
+
export interface SerializableObject {
|
|
28
|
+
[key: string]: Serializable;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Map with serializable keys and values
|
|
32
|
+
*/
|
|
33
|
+
export interface SerializableMap extends Map<Serializable, Serializable> {
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Set with serializable values
|
|
37
|
+
*/
|
|
38
|
+
export interface SerializableSet extends Set<Serializable> {
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=serializable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serializable.d.ts","sourceRoot":"","sources":["../../src/common/serializable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,GACT,IAAI,GACJ,MAAM,GACN,KAAK,GACL,GAAG,GACH,MAAM,GACN,iBAAiB,GACjB,kBAAkB,GAClB,eAAe,GACf,eAAe,CAAC;AAEpB;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,YAAY,CAAC;CAAG;AAEjE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC;CAAG;AAE3E;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,GAAG,CAAC,YAAY,CAAC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serializable.js","sourceRoot":"","sources":["../../src/common/serializable.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.hierarchyData = "
|
|
1
|
+
window.hierarchyData = "eJyNkj1vwyAQhv/LzRdqiD8IW9TJS1Wp2aqoog5pLBNTwVUZIv/3Crut6IQXBnjufe7E3cE7RwHUa8OPCN6cremod2MAdYeGx3PUVwMK2oNzFhCGfjyB4kIifHkLCjqrQzDhgZyzbKbYha4RnV9AAYXTJpZtlguE7tLbkzdj9Ja4lRWWvMJqJ7EWJdaywEaUKHmBUsjjhNCUSSerGlnRx4SwlVUafOsDhVx0eKOZYwuel5Q8lezbvED3bN/mg6udTIIftbXvuhtWDND9ouyvKG+rRfoJ7Ujmw+tlV7LCPqFZWrpCK4tE+2To5vyQN44LyH4K8p7m33jP1lFe8mkdsYjm4yVPx3gh500+P0SMzfAKg0i34aDDmk2giLEZzhmm6RsGw1xt"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.navigationData = "
|
|
1
|
+
window.navigationData = "eJytnN9z2zYSx/8Vj+41d07SNOfmzVXTq25sx2Mp14dORgNTsIWKBFQCtOx28r/fgOAPgFhgV6lejS8+uwCWILBL+be/ZoY/m9mH2X8aseF69mpWbEW5qbmcffhtbOTGCPl4tjSsNnwzezXbM7OdfZhtVNFUXBp93knWneRfW1OVs1eznZCb2YeL7y4u3r+++PpqIM5Vzc/mShZ8bzTEs4J1L8BoPzaiNP8U8mylVAniesW6VVB4GzvgeaONqvJYK1w7IY0+v1qc3fEHXnNZcHDsV4v1IMBod400ouJnH+WTqJW0BIjZydaeDCZ/8djXatOUyagoVFUpeV6wkssNq0erlet27gTrXhDaewtDF9Lw+oEVSavzyJwYukQW57Dp7997g1y+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