scriptable-typings 0.1.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/LICENSE +21 -0
- package/README.md +3 -0
- package/package.json +12 -0
- package/src/types.d.ts +125 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Meadowsys
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/package.json
ADDED
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
declare class Alert {
|
|
2
|
+
title: string;
|
|
3
|
+
message: string;
|
|
4
|
+
|
|
5
|
+
constructor();
|
|
6
|
+
|
|
7
|
+
addAction(title: string);
|
|
8
|
+
addDestructiveAction(title: string);
|
|
9
|
+
addCancelAction(title: string);
|
|
10
|
+
addTextField(placeholder: string, text: string): TextField;
|
|
11
|
+
addSecureTextField(placeholder: string, text: string): TextField;
|
|
12
|
+
textFieldValue(index: number): string;
|
|
13
|
+
present(): Promise<number>;
|
|
14
|
+
presentAlert(): Promise<number>;
|
|
15
|
+
presentSheet(): Promise<number>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
declare const args: Args;
|
|
19
|
+
declare type Args = {
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
23
|
+
readonly length: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
28
|
+
readonly all: Array<unknown>;
|
|
29
|
+
|
|
30
|
+
readonly plainTexts: Array<string>;
|
|
31
|
+
readonly urls: Array<string>;
|
|
32
|
+
readonly fileURLs: Array<string>;
|
|
33
|
+
readonly images: Array<string>;
|
|
34
|
+
readonly queryParameters: { [k: string]: string };
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
39
|
+
readonly siriShortcutArguments: { [k: string]: string };
|
|
40
|
+
|
|
41
|
+
readonly shortcutParameter: unknown;
|
|
42
|
+
readonly widgetParameter: unknown;
|
|
43
|
+
readonly notification: Notification;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
declare class Calendar {
|
|
47
|
+
readonly identifier: string;
|
|
48
|
+
title: string;
|
|
49
|
+
readonly isSubscribed: boolean;
|
|
50
|
+
readonly allowsContentModifications: boolean;
|
|
51
|
+
color: Color;
|
|
52
|
+
|
|
53
|
+
supportsAvailability(availability: string): boolean;
|
|
54
|
+
save();
|
|
55
|
+
remove();
|
|
56
|
+
static forReminders(): Promise<Array<Calendar>>;
|
|
57
|
+
static forEvents(): Promise<Array<Calendar>>;
|
|
58
|
+
static forRemindersByTitle(title: string): Promise<Calendar>;
|
|
59
|
+
static forEventsByTitle(title: string): Promise<Calendar>;
|
|
60
|
+
static createForReminders(title: string): Promise<Calendar>;
|
|
61
|
+
static findOrCreateForReminders(title: string): Promise<Calendar>;
|
|
62
|
+
static defaultForReminders(): Promise<Calendar>;
|
|
63
|
+
static defaultForEvents(): Promise<Calendar>;
|
|
64
|
+
// todo i'm guessing these, need to test
|
|
65
|
+
static presentPicker(allowMultiple: true): Promise<Array<Calendar>>;
|
|
66
|
+
static presentPicker(allowMultiple: false): Promise<[Calendar?]>;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// todo CalendarEvent
|
|
70
|
+
// todo CallbackURL
|
|
71
|
+
// todo Color
|
|
72
|
+
// todo config
|
|
73
|
+
// todo console
|
|
74
|
+
// todo Contact
|
|
75
|
+
// todo ContactsContainer
|
|
76
|
+
// todo ContactsGroup
|
|
77
|
+
// todo Data
|
|
78
|
+
// todo DateFormatter
|
|
79
|
+
// todo DatePicker
|
|
80
|
+
// todo Device
|
|
81
|
+
// todo Dictation
|
|
82
|
+
// todo DocumentPicker
|
|
83
|
+
// todo DrawContext
|
|
84
|
+
// todo FileManager
|
|
85
|
+
// todo Font
|
|
86
|
+
// todo Image
|
|
87
|
+
// todo importModule
|
|
88
|
+
// todo Keychain
|
|
89
|
+
// todo LinearGradient
|
|
90
|
+
// todo ListWidget
|
|
91
|
+
// todo Location
|
|
92
|
+
// todo Mail
|
|
93
|
+
// todo Message
|
|
94
|
+
// todo module
|
|
95
|
+
// todo Notification
|
|
96
|
+
// todo Pasteboard
|
|
97
|
+
// todo Path
|
|
98
|
+
// todo Photos
|
|
99
|
+
// todo Point
|
|
100
|
+
// todo QuickLook
|
|
101
|
+
// todo Rect
|
|
102
|
+
// todo RecurrenceRule
|
|
103
|
+
// todo RelativeDateTimeFormatter
|
|
104
|
+
// todo Reminder
|
|
105
|
+
// todo Request
|
|
106
|
+
// todo Safari
|
|
107
|
+
// todo Script
|
|
108
|
+
// todo SFSymbol
|
|
109
|
+
// todo ShareSheet
|
|
110
|
+
// todo Size
|
|
111
|
+
// todo Speech
|
|
112
|
+
// todo TextField
|
|
113
|
+
// todo Timer
|
|
114
|
+
// todo UITable
|
|
115
|
+
// todo UITableCell
|
|
116
|
+
// todo UITableRow
|
|
117
|
+
// todo URLScheme
|
|
118
|
+
// todo UUID
|
|
119
|
+
// todo WebView
|
|
120
|
+
// todo WidgetDate
|
|
121
|
+
// todo WidgetImage
|
|
122
|
+
// todo WidgetSpacer
|
|
123
|
+
// todo WidgetStack
|
|
124
|
+
// todo WidgetText
|
|
125
|
+
// todo XMLParser
|