@octane-xplat/macos-renderer 0.14.0 → 0.15.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/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
|
@@ -0,0 +1,2479 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
/// <reference path="./Foundation.d.ts" />
|
|
4
|
+
|
|
5
|
+
declare const NSValidateXMLStoreOption: string
|
|
6
|
+
|
|
7
|
+
declare const NSPersistentStoreCoordinatorStoresDidChangeNotification: string
|
|
8
|
+
|
|
9
|
+
declare const NSMigrationConstraintViolationError: number
|
|
10
|
+
|
|
11
|
+
declare const NSPersistentCloudKitContainerEventChangedNotification: string
|
|
12
|
+
|
|
13
|
+
declare const NSStoreUUIDInPathKey: string
|
|
14
|
+
|
|
15
|
+
declare const NSUpdatedObjectIDsKey: string
|
|
16
|
+
|
|
17
|
+
declare const NSCoreDataCoreSpotlightDelegateIndexDidUpdateNotification: string
|
|
18
|
+
|
|
19
|
+
declare const NSMigrationPropertyMappingKey: string
|
|
20
|
+
|
|
21
|
+
declare const NSMigrationEntityMappingKey: string
|
|
22
|
+
|
|
23
|
+
declare const NSMigrationDestinationObjectKey: string
|
|
24
|
+
|
|
25
|
+
declare const NSMigrationManagerKey: string
|
|
26
|
+
|
|
27
|
+
declare const NSPersistentStoreRebuildFromUbiquitousContentOption: string
|
|
28
|
+
|
|
29
|
+
declare const NSPersistentStoreUbiquitousPeerTokenOption: string
|
|
30
|
+
|
|
31
|
+
declare const NSPersistentStoreUbiquitousTransitionTypeKey: string
|
|
32
|
+
|
|
33
|
+
declare const NSPersistentHistoryTokenKey: string
|
|
34
|
+
|
|
35
|
+
declare const NSPersistentStoreURLKey: string
|
|
36
|
+
|
|
37
|
+
declare const NSPersistentStoreRemoteChangeNotificationPostOptionKey: string
|
|
38
|
+
|
|
39
|
+
declare const NSBinaryStoreInsecureDecodingCompatibilityOption: string
|
|
40
|
+
|
|
41
|
+
declare const NSBinaryStoreSecureDecodingClasses: string
|
|
42
|
+
|
|
43
|
+
declare const NSObjectURIKey: string
|
|
44
|
+
|
|
45
|
+
declare const NSModelPathKey: string
|
|
46
|
+
|
|
47
|
+
declare const NSStorePathKey: string
|
|
48
|
+
|
|
49
|
+
declare const NSExternalRecordsDirectoryOption: string
|
|
50
|
+
|
|
51
|
+
declare const NSBinaryExternalRecordType: string
|
|
52
|
+
|
|
53
|
+
declare const NSXMLExternalRecordType: string
|
|
54
|
+
|
|
55
|
+
declare const NSPersistentStoreOSCompatibility: string
|
|
56
|
+
|
|
57
|
+
declare const NSMigratePersistentStoresAutomaticallyOption: string
|
|
58
|
+
|
|
59
|
+
declare const NSRemovedPersistentStoresKey: string
|
|
60
|
+
|
|
61
|
+
declare const NSPersistentStoreCoordinatorWillRemoveStoreNotification: string
|
|
62
|
+
|
|
63
|
+
declare const NSStoreUUIDKey: string
|
|
64
|
+
|
|
65
|
+
declare const NSStoreTypeKey: string
|
|
66
|
+
|
|
67
|
+
declare const NSBinaryStoreType: string
|
|
68
|
+
|
|
69
|
+
declare const NSSQLiteStoreType: string
|
|
70
|
+
|
|
71
|
+
declare const NSStagedMigrationBackwardMigrationError: number
|
|
72
|
+
|
|
73
|
+
declare const NSStagedMigrationFrameworkVersionMismatchError: number
|
|
74
|
+
|
|
75
|
+
declare const NSManagedObjectModelReferenceNotFoundError: number
|
|
76
|
+
|
|
77
|
+
declare const NSEntityMigrationPolicyError: number
|
|
78
|
+
|
|
79
|
+
declare const NSMigrationManagerDestinationStoreError: number
|
|
80
|
+
|
|
81
|
+
declare const NSMigrationMissingSourceModelError: number
|
|
82
|
+
|
|
83
|
+
declare const NSMigrationCancelledError: number
|
|
84
|
+
|
|
85
|
+
declare const NSPersistentStoreUnsupportedRequestTypeError: number
|
|
86
|
+
|
|
87
|
+
declare const NSPersistentStoreTimeoutError: number
|
|
88
|
+
|
|
89
|
+
declare const NSPersistentStoreOperationError: number
|
|
90
|
+
|
|
91
|
+
declare const NSCoreDataError: number
|
|
92
|
+
|
|
93
|
+
declare const NSPersistentStoreInvalidTypeError: number
|
|
94
|
+
|
|
95
|
+
declare const NSManagedObjectMergeError: number
|
|
96
|
+
|
|
97
|
+
declare const NSManagedObjectReferentialIntegrityError: number
|
|
98
|
+
|
|
99
|
+
declare const NSPersistentStoreCoordinatorLockingError: number
|
|
100
|
+
|
|
101
|
+
declare const NSManagedObjectContextLockingError: number
|
|
102
|
+
|
|
103
|
+
declare const NSValidationInvalidURIError: number
|
|
104
|
+
|
|
105
|
+
declare const NSValidationStringPatternMatchingError: number
|
|
106
|
+
|
|
107
|
+
declare const NSValidationNumberTooSmallError: number
|
|
108
|
+
|
|
109
|
+
declare const NSValidationRelationshipExceedsMaximumCountError: number
|
|
110
|
+
|
|
111
|
+
declare const NSValidationRelationshipLacksMinimumCountError: number
|
|
112
|
+
|
|
113
|
+
declare const NSValidationMissingMandatoryPropertyError: number
|
|
114
|
+
|
|
115
|
+
declare const NSValidationMultipleErrorsError: number
|
|
116
|
+
|
|
117
|
+
declare const NSManagedObjectValidationError: number
|
|
118
|
+
|
|
119
|
+
declare const NSAffectedObjectsErrorKey: string
|
|
120
|
+
|
|
121
|
+
declare const NSValidationValueErrorKey: string
|
|
122
|
+
|
|
123
|
+
declare const NSSQLiteManualVacuumOption: string
|
|
124
|
+
|
|
125
|
+
declare const NSMigrationMissingMappingModelError: number
|
|
126
|
+
|
|
127
|
+
declare const NSExternalRecordImportError: number
|
|
128
|
+
|
|
129
|
+
declare const NSAffectedStoresErrorKey: string
|
|
130
|
+
|
|
131
|
+
declare const NSStoreModelVersionIdentifiersKey: string
|
|
132
|
+
|
|
133
|
+
declare const NSRollbackMergePolicy: interop.Object
|
|
134
|
+
|
|
135
|
+
declare const NSMergeByPropertyObjectTrumpMergePolicy: interop.Object
|
|
136
|
+
|
|
137
|
+
declare const NSRefreshedObjectIDsKey: string
|
|
138
|
+
|
|
139
|
+
declare const NSInsertedObjectIDsKey: string
|
|
140
|
+
|
|
141
|
+
declare const NSInvalidatedObjectsKey: string
|
|
142
|
+
|
|
143
|
+
declare const NSDeletedObjectsKey: string
|
|
144
|
+
|
|
145
|
+
declare const NSUpdatedObjectsKey: string
|
|
146
|
+
|
|
147
|
+
declare const NSInsertedObjectsKey: string
|
|
148
|
+
|
|
149
|
+
declare const NSManagedObjectContextObjectsDidChangeNotification: string
|
|
150
|
+
|
|
151
|
+
declare const NSManagedObjectContextDidSaveNotification: string
|
|
152
|
+
|
|
153
|
+
declare const NSCoreDataVersionNumber: number
|
|
154
|
+
|
|
155
|
+
declare const NSInvalidatedObjectIDsKey: string
|
|
156
|
+
|
|
157
|
+
declare const NSCoreDataCoreSpotlightExporter: string
|
|
158
|
+
|
|
159
|
+
declare const NSPersistentStoreUbiquitousContentURLKey: string
|
|
160
|
+
|
|
161
|
+
declare const NSPersistentStoreRemoteChangeNotification: string
|
|
162
|
+
|
|
163
|
+
declare const NSPersistentStoreCoordinatorStoresWillChangeNotification: string
|
|
164
|
+
|
|
165
|
+
declare const NSPersistentStoreRemoveUbiquitousMetadataOption: string
|
|
166
|
+
|
|
167
|
+
declare const NSValidationStringTooShortError: number
|
|
168
|
+
|
|
169
|
+
declare const NSMergeByPropertyStoreTrumpMergePolicy: interop.Object
|
|
170
|
+
|
|
171
|
+
declare const NSValidationKeyErrorKey: string
|
|
172
|
+
|
|
173
|
+
declare const NSPersistentStoreUbiquitousContainerIdentifierKey: string
|
|
174
|
+
|
|
175
|
+
declare const NSValidationDateTooSoonError: number
|
|
176
|
+
|
|
177
|
+
declare const NSValidationObjectErrorKey: string
|
|
178
|
+
|
|
179
|
+
declare const NSManagedObjectContextQueryGenerationKey: string
|
|
180
|
+
|
|
181
|
+
declare const NSInvalidatedAllObjectsKey: string
|
|
182
|
+
|
|
183
|
+
declare const NSMigrationError: number
|
|
184
|
+
|
|
185
|
+
declare const NSPersistentStoreConnectionPoolMaxSizeKey: string
|
|
186
|
+
|
|
187
|
+
declare const NSUUIDChangedPersistentStoresKey: string
|
|
188
|
+
|
|
189
|
+
declare const NSPersistentStoreIncompatibleSchemaError: number
|
|
190
|
+
|
|
191
|
+
declare const NSPersistentStoreTypeMismatchError: number
|
|
192
|
+
|
|
193
|
+
declare const NSPersistentStoreOpenError: number
|
|
194
|
+
|
|
195
|
+
declare const NSOverwriteMergePolicy: interop.Object
|
|
196
|
+
|
|
197
|
+
declare const NSManagedObjectConstraintValidationError: number
|
|
198
|
+
|
|
199
|
+
declare const NSAddedPersistentStoresKey: string
|
|
200
|
+
|
|
201
|
+
declare const NSExternalRecordExtensionOption: string
|
|
202
|
+
|
|
203
|
+
declare const NSManagedObjectContextWillSaveNotification: string
|
|
204
|
+
|
|
205
|
+
declare const NSValidationRelationshipDeniedDeleteError: number
|
|
206
|
+
|
|
207
|
+
declare const NSPersistentHistoryTrackingKey: string
|
|
208
|
+
|
|
209
|
+
declare const NSValidationNumberTooLargeError: number
|
|
210
|
+
|
|
211
|
+
declare const NSInMemoryStoreType: string
|
|
212
|
+
|
|
213
|
+
declare const NSPersistentStoreDidImportUbiquitousContentChangesNotification: string
|
|
214
|
+
|
|
215
|
+
declare const NSValidationInvalidDateError: number
|
|
216
|
+
|
|
217
|
+
declare const NSSQLiteError: number
|
|
218
|
+
|
|
219
|
+
declare const NSSQLitePragmasOption: string
|
|
220
|
+
|
|
221
|
+
declare const NSPersistentCloudKitContainerEventUserInfoKey: string
|
|
222
|
+
|
|
223
|
+
declare const NSIgnorePersistentStoreVersioningOption: string
|
|
224
|
+
|
|
225
|
+
declare const NSStoreModelVersionHashesKey: string
|
|
226
|
+
|
|
227
|
+
declare const NSRefreshedObjectsKey: string
|
|
228
|
+
|
|
229
|
+
declare const NSPersistentStoreDeferredLightweightMigrationOptionKey: string
|
|
230
|
+
|
|
231
|
+
declare const NSSQLiteAnalyzeOption: string
|
|
232
|
+
|
|
233
|
+
declare const NSMigrationEntityPolicyKey: string
|
|
234
|
+
|
|
235
|
+
declare const NSDeletedObjectIDsKey: string
|
|
236
|
+
|
|
237
|
+
declare const NSValidationStringTooLongError: number
|
|
238
|
+
|
|
239
|
+
declare const NSManagedObjectConstraintMergeError: number
|
|
240
|
+
|
|
241
|
+
declare const NSPersistentStoreSaveConflictsErrorKey: string
|
|
242
|
+
|
|
243
|
+
declare const NSXMLStoreType: string
|
|
244
|
+
|
|
245
|
+
declare const NSMigrationManagerSourceStoreError: number
|
|
246
|
+
|
|
247
|
+
declare const NSManagedObjectExternalRelationshipError: number
|
|
248
|
+
|
|
249
|
+
declare const NSEntityNameInPathKey: string
|
|
250
|
+
|
|
251
|
+
declare const NSValidationDateTooLateError: number
|
|
252
|
+
|
|
253
|
+
declare const NSPersistentStoreTimeoutOption: string
|
|
254
|
+
|
|
255
|
+
declare const NSMigrationSourceObjectKey: string
|
|
256
|
+
|
|
257
|
+
declare const NSInferredMappingModelError: number
|
|
258
|
+
|
|
259
|
+
declare const NSManagedObjectContextDidSaveObjectIDsNotification: string
|
|
260
|
+
|
|
261
|
+
declare const NSPersistentStoreSaveConflictsError: number
|
|
262
|
+
|
|
263
|
+
declare const NSDetailedErrorsKey: string
|
|
264
|
+
|
|
265
|
+
declare const NSExternalRecordsFileFormatOption: string
|
|
266
|
+
|
|
267
|
+
declare const NSPersistentStoreUbiquitousContentNameKey: string
|
|
268
|
+
|
|
269
|
+
declare const NSSQLiteErrorDomain: string
|
|
270
|
+
|
|
271
|
+
declare const NSInferMappingModelAutomaticallyOption: string
|
|
272
|
+
|
|
273
|
+
declare const NSValidationPredicateErrorKey: string
|
|
274
|
+
|
|
275
|
+
declare const NSFetchRequestExpressionType: interop.Enum<typeof NSExpressionType>
|
|
276
|
+
|
|
277
|
+
declare const NSManagedObjectContextDidMergeChangesObjectIDsNotification: string
|
|
278
|
+
|
|
279
|
+
declare const NSPersistentStoreForceDestroyOption: string
|
|
280
|
+
|
|
281
|
+
declare const NSErrorMergePolicy: interop.Object
|
|
282
|
+
|
|
283
|
+
declare const NSPersistentStoreIncompleteSaveError: number
|
|
284
|
+
|
|
285
|
+
declare const NSPersistentStoreSaveError: number
|
|
286
|
+
|
|
287
|
+
declare const NSPersistentHistoryTokenExpiredError: number
|
|
288
|
+
|
|
289
|
+
declare const NSReadOnlyPersistentStoreOption: string
|
|
290
|
+
|
|
291
|
+
declare const NSPersistentStoreIncompatibleVersionHashError: number
|
|
292
|
+
|
|
293
|
+
declare const NSEntityMappingType: {
|
|
294
|
+
Undefined: 0
|
|
295
|
+
Custom: 1
|
|
296
|
+
Add: 2
|
|
297
|
+
Remove: 3
|
|
298
|
+
Copy: 4
|
|
299
|
+
Transform: 5
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
declare const NSBatchUpdateRequestResultType: {
|
|
303
|
+
StatusOnly: 0
|
|
304
|
+
UpdatedObjectIDs: 1
|
|
305
|
+
UpdatedObjectsCount: 2
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
declare const NSFetchedResultsChangeType: {
|
|
309
|
+
Insert: 1
|
|
310
|
+
Delete: 2
|
|
311
|
+
Move: 3
|
|
312
|
+
Update: 4
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare const NSMergePolicyType: {
|
|
316
|
+
Error: 0
|
|
317
|
+
MergeByPropertyStoreTrump: 1
|
|
318
|
+
MergeByPropertyObjectTrump: 2
|
|
319
|
+
Overwrite: 3
|
|
320
|
+
Rollback: 4
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
declare const NSPersistentHistoryResultType: {
|
|
324
|
+
StatusOnly: 0
|
|
325
|
+
ObjectIDs: 1
|
|
326
|
+
Count: 2
|
|
327
|
+
TransactionsOnly: 3
|
|
328
|
+
ChangesOnly: 4
|
|
329
|
+
TransactionsAndChanges: 5
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
declare const NSBatchDeleteRequestResultType: {
|
|
333
|
+
StatusOnly: 0
|
|
334
|
+
ObjectIDs: 1
|
|
335
|
+
Count: 2
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare const NSSnapshotEventType: {
|
|
339
|
+
UndoInsertion: 2
|
|
340
|
+
UndoDeletion: 4
|
|
341
|
+
UndoUpdate: 8
|
|
342
|
+
Rollback: 16
|
|
343
|
+
Refresh: 32
|
|
344
|
+
MergePolicy: 64
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
declare const NSPersistentStoreRequestType: {
|
|
348
|
+
Fetch: 1
|
|
349
|
+
Save: 2
|
|
350
|
+
BatchInsert: 5
|
|
351
|
+
BatchUpdate: 6
|
|
352
|
+
BatchDelete: 7
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare const NSFetchIndexElementType: {
|
|
356
|
+
Binary: 0
|
|
357
|
+
RTree: 1
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
declare const NSDeleteRule: {
|
|
361
|
+
NoAction: 0
|
|
362
|
+
Nullify: 1
|
|
363
|
+
Cascade: 2
|
|
364
|
+
Deny: 3
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
declare const NSPersistentCloudKitContainerEventType: {
|
|
368
|
+
Setup: 0
|
|
369
|
+
Import: 1
|
|
370
|
+
Export: 2
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
declare const NSManagedObjectContextConcurrencyType: {
|
|
374
|
+
Confinement: 0
|
|
375
|
+
PrivateQueue: 1
|
|
376
|
+
MainQueue: 2
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
declare const NSPersistentStoreUbiquitousTransitionType: {
|
|
380
|
+
AccountAdded: 1
|
|
381
|
+
AccountRemoved: 2
|
|
382
|
+
ContentRemoved: 3
|
|
383
|
+
InitialImportCompleted: 4
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
declare const NSBatchInsertRequestResultType: {
|
|
387
|
+
StatusOnly: 0
|
|
388
|
+
ObjectIDs: 1
|
|
389
|
+
Count: 2
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
declare const NSAttributeType: {
|
|
393
|
+
Undefined: 0
|
|
394
|
+
Integer16: 100
|
|
395
|
+
Integer32: 200
|
|
396
|
+
Integer64: 300
|
|
397
|
+
Decimal: 400
|
|
398
|
+
Double: 500
|
|
399
|
+
Float: 600
|
|
400
|
+
String: 700
|
|
401
|
+
Boolean: 800
|
|
402
|
+
Date: 900
|
|
403
|
+
BinaryData: 1000
|
|
404
|
+
UUID: 1100
|
|
405
|
+
URI: 1200
|
|
406
|
+
Transformable: 1800
|
|
407
|
+
ObjectID: 2000
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
declare const NSFetchRequestResultType: {
|
|
411
|
+
ManagedObject: 0
|
|
412
|
+
ManagedObjectID: 1
|
|
413
|
+
Dictionary: 2
|
|
414
|
+
Count: 4
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare const NSPersistentHistoryChangeType: {
|
|
418
|
+
Insert: 0
|
|
419
|
+
Update: 1
|
|
420
|
+
Delete: 2
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
declare const NSPersistentCloudKitContainerSchemaInitializationOptions: {
|
|
424
|
+
None: 0
|
|
425
|
+
DryRun: 2
|
|
426
|
+
PrintSchema: 4
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
declare const NSPersistentCloudKitContainerEventResultType: {
|
|
430
|
+
NSPersistentCloudKitContainerEventResultTypeEvents: 0
|
|
431
|
+
Count: 1
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
declare interface NSFetchedResultsControllerDelegate extends NSObjectProtocol {
|
|
435
|
+
controllerDidChangeContentWithSnapshot?(
|
|
436
|
+
controller: NSFetchedResultsController,
|
|
437
|
+
snapshot: NSDiffableDataSourceSnapshot,
|
|
438
|
+
): void
|
|
439
|
+
|
|
440
|
+
controllerDidChangeContentWithDifference?(
|
|
441
|
+
controller: NSFetchedResultsController,
|
|
442
|
+
diff: NSOrderedCollectionDifference,
|
|
443
|
+
): void
|
|
444
|
+
|
|
445
|
+
controllerDidChangeObjectAtIndexPathForChangeTypeNewIndexPath?(
|
|
446
|
+
controller: NSFetchedResultsController,
|
|
447
|
+
anObject: interop.Object,
|
|
448
|
+
indexPath: NSIndexPath | null,
|
|
449
|
+
type: interop.Enum<typeof NSFetchedResultsChangeType>,
|
|
450
|
+
newIndexPath: NSIndexPath | null,
|
|
451
|
+
): void
|
|
452
|
+
|
|
453
|
+
controllerDidChangeSectionAtIndexForChangeType?(
|
|
454
|
+
controller: NSFetchedResultsController,
|
|
455
|
+
sectionInfo: NSFetchedResultsSectionInfo,
|
|
456
|
+
sectionIndex: number,
|
|
457
|
+
type: interop.Enum<typeof NSFetchedResultsChangeType>,
|
|
458
|
+
): void
|
|
459
|
+
|
|
460
|
+
controllerWillChangeContent?(controller: NSFetchedResultsController): void
|
|
461
|
+
|
|
462
|
+
controllerDidChangeContent?(controller: NSFetchedResultsController): void
|
|
463
|
+
|
|
464
|
+
controllerSectionIndexTitleForSectionName?(
|
|
465
|
+
controller: NSFetchedResultsController,
|
|
466
|
+
sectionName: string,
|
|
467
|
+
): string
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
declare class NSFetchedResultsControllerDelegate
|
|
471
|
+
extends NativeObject
|
|
472
|
+
implements NSFetchedResultsControllerDelegate {}
|
|
473
|
+
|
|
474
|
+
declare interface NSFetchedResultsSectionInfo {
|
|
475
|
+
readonly name: string
|
|
476
|
+
|
|
477
|
+
readonly indexTitle: string
|
|
478
|
+
|
|
479
|
+
readonly numberOfObjects: number
|
|
480
|
+
|
|
481
|
+
readonly objects: NSArray
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
declare class NSFetchedResultsSectionInfo
|
|
485
|
+
extends NativeObject
|
|
486
|
+
implements NSFetchedResultsSectionInfo {}
|
|
487
|
+
|
|
488
|
+
declare interface NSFetchRequestResult extends NSObjectProtocol {}
|
|
489
|
+
|
|
490
|
+
declare class NSFetchRequestResult extends NativeObject implements NSFetchRequestResult {}
|
|
491
|
+
|
|
492
|
+
declare class NSMergeConflict extends NSObject {
|
|
493
|
+
readonly sourceObject: NSManagedObject
|
|
494
|
+
|
|
495
|
+
readonly objectSnapshot: NSDictionary
|
|
496
|
+
|
|
497
|
+
readonly cachedSnapshot: NSDictionary
|
|
498
|
+
|
|
499
|
+
readonly persistedSnapshot: NSDictionary
|
|
500
|
+
|
|
501
|
+
readonly newVersionNumber: number
|
|
502
|
+
|
|
503
|
+
readonly oldVersionNumber: number
|
|
504
|
+
|
|
505
|
+
initWithSourceNewVersionOldVersionCachedSnapshotPersistedSnapshot(
|
|
506
|
+
srcObject: NSManagedObject,
|
|
507
|
+
newvers: number,
|
|
508
|
+
oldvers: number,
|
|
509
|
+
cachesnap:
|
|
510
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
511
|
+
| Record<interop.Object, interop.Object>
|
|
512
|
+
| null,
|
|
513
|
+
persnap:
|
|
514
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
515
|
+
| Record<interop.Object, interop.Object>
|
|
516
|
+
| null,
|
|
517
|
+
): this
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
declare class NSPersistentCloudKitContainerEventRequest extends NSPersistentStoreRequest {
|
|
521
|
+
resultType: interop.Enum<typeof NSPersistentCloudKitContainerEventResultType>
|
|
522
|
+
|
|
523
|
+
static fetchEventsAfterDate<This extends abstract new (...args: any) => any>(
|
|
524
|
+
this: This,
|
|
525
|
+
date: NSDate,
|
|
526
|
+
): InstanceType<This>
|
|
527
|
+
|
|
528
|
+
static fetchEventsAfterEvent<This extends abstract new (...args: any) => any>(
|
|
529
|
+
this: This,
|
|
530
|
+
event: NSPersistentCloudKitContainerEvent | null,
|
|
531
|
+
): InstanceType<This>
|
|
532
|
+
|
|
533
|
+
static fetchEventsMatchingFetchRequest<This extends abstract new (...args: any) => any>(
|
|
534
|
+
this: This,
|
|
535
|
+
fetchRequest: NSFetchRequest,
|
|
536
|
+
): InstanceType<This>
|
|
537
|
+
|
|
538
|
+
static fetchRequestForEvents(): NSFetchRequest
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
declare class NSBatchUpdateRequest extends NSPersistentStoreRequest {
|
|
542
|
+
static batchUpdateRequestWithEntityName<This extends abstract new (...args: any) => any>(
|
|
543
|
+
this: This,
|
|
544
|
+
entityName: string,
|
|
545
|
+
): InstanceType<This>
|
|
546
|
+
|
|
547
|
+
initWithEntityName(entityName: string): this
|
|
548
|
+
|
|
549
|
+
initWithEntity(entity: NSEntityDescription): this
|
|
550
|
+
|
|
551
|
+
readonly entityName: string
|
|
552
|
+
|
|
553
|
+
readonly entity: NSEntityDescription
|
|
554
|
+
|
|
555
|
+
predicate: NSPredicate
|
|
556
|
+
|
|
557
|
+
includesSubentities: boolean
|
|
558
|
+
|
|
559
|
+
resultType: interop.Enum<typeof NSBatchUpdateRequestResultType>
|
|
560
|
+
|
|
561
|
+
get propertiesToUpdate(): NSDictionary
|
|
562
|
+
set propertiesToUpdate(
|
|
563
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
564
|
+
)
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
declare class NSEntityMapping extends NSObject {
|
|
568
|
+
name: string
|
|
569
|
+
|
|
570
|
+
mappingType: interop.Enum<typeof NSEntityMappingType>
|
|
571
|
+
|
|
572
|
+
sourceEntityName: string
|
|
573
|
+
|
|
574
|
+
sourceEntityVersionHash: NSData
|
|
575
|
+
|
|
576
|
+
destinationEntityName: string
|
|
577
|
+
|
|
578
|
+
destinationEntityVersionHash: NSData
|
|
579
|
+
|
|
580
|
+
get attributeMappings(): NSArray
|
|
581
|
+
set attributeMappings(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
582
|
+
|
|
583
|
+
get relationshipMappings(): NSArray
|
|
584
|
+
set relationshipMappings(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
585
|
+
|
|
586
|
+
sourceExpression: NSExpression
|
|
587
|
+
|
|
588
|
+
get userInfo(): NSDictionary
|
|
589
|
+
set userInfo(
|
|
590
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
591
|
+
)
|
|
592
|
+
|
|
593
|
+
entityMigrationPolicyClassName: string
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
declare class NSAttributeDescription extends NSPropertyDescription {
|
|
597
|
+
attributeType: interop.Enum<typeof NSAttributeType>
|
|
598
|
+
|
|
599
|
+
attributeValueClassName: string
|
|
600
|
+
|
|
601
|
+
defaultValue: interop.Object
|
|
602
|
+
|
|
603
|
+
readonly versionHash: NSData
|
|
604
|
+
|
|
605
|
+
valueTransformerName: string
|
|
606
|
+
|
|
607
|
+
allowsExternalBinaryDataStorage: boolean
|
|
608
|
+
|
|
609
|
+
preservesValueInHistoryOnDeletion: boolean
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
declare class NSPersistentStoreDescription extends NSObject implements NSCopying {
|
|
613
|
+
static persistentStoreDescriptionWithURL<This extends abstract new (...args: any) => any>(
|
|
614
|
+
this: This,
|
|
615
|
+
URL: NSURL,
|
|
616
|
+
): InstanceType<This>
|
|
617
|
+
|
|
618
|
+
type: string
|
|
619
|
+
|
|
620
|
+
configuration: string
|
|
621
|
+
|
|
622
|
+
URL: NSURL
|
|
623
|
+
|
|
624
|
+
readonly options: NSDictionary
|
|
625
|
+
|
|
626
|
+
setOptionForKey(option: NSObject | null, key: string): void
|
|
627
|
+
|
|
628
|
+
readOnly: boolean
|
|
629
|
+
|
|
630
|
+
timeout: number
|
|
631
|
+
|
|
632
|
+
readonly sqlitePragmas: NSDictionary
|
|
633
|
+
|
|
634
|
+
setValueForPragmaNamed(value: NSObject | null, name: string): void
|
|
635
|
+
|
|
636
|
+
shouldAddStoreAsynchronously: boolean
|
|
637
|
+
|
|
638
|
+
shouldMigrateStoreAutomatically: boolean
|
|
639
|
+
|
|
640
|
+
shouldInferMappingModelAutomatically: boolean
|
|
641
|
+
|
|
642
|
+
initWithURL(url: NSURL): this
|
|
643
|
+
|
|
644
|
+
isReadOnly(): boolean
|
|
645
|
+
|
|
646
|
+
cloudKitContainerOptions: NSPersistentCloudKitContainerOptions
|
|
647
|
+
|
|
648
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
declare class NSFetchIndexDescription extends NSObject implements NSCoding, NSCopying {
|
|
652
|
+
initWithNameElements(
|
|
653
|
+
name: string,
|
|
654
|
+
elements: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
655
|
+
): this
|
|
656
|
+
|
|
657
|
+
name: string
|
|
658
|
+
|
|
659
|
+
get elements(): NSArray
|
|
660
|
+
set elements(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
661
|
+
|
|
662
|
+
readonly entity: NSEntityDescription
|
|
663
|
+
|
|
664
|
+
partialIndexPredicate: NSPredicate
|
|
665
|
+
|
|
666
|
+
encodeWithCoder(coder: NSCoder): void
|
|
667
|
+
|
|
668
|
+
initWithCoder(coder: NSCoder): this
|
|
669
|
+
|
|
670
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare class NSManagedObject extends NSObject implements NSFetchRequestResult {
|
|
674
|
+
static readonly contextShouldIgnoreUnmodeledPropertyChanges: boolean
|
|
675
|
+
|
|
676
|
+
static entity(): NSEntityDescription
|
|
677
|
+
|
|
678
|
+
static fetchRequest(): NSFetchRequest
|
|
679
|
+
|
|
680
|
+
initWithEntityInsertIntoManagedObjectContext(
|
|
681
|
+
entity: NSEntityDescription,
|
|
682
|
+
context: NSManagedObjectContext | null,
|
|
683
|
+
): this
|
|
684
|
+
|
|
685
|
+
initWithContext(moc: NSManagedObjectContext): this
|
|
686
|
+
|
|
687
|
+
readonly managedObjectContext: NSManagedObjectContext
|
|
688
|
+
|
|
689
|
+
readonly entity: NSEntityDescription
|
|
690
|
+
|
|
691
|
+
readonly objectID: NSManagedObjectID
|
|
692
|
+
|
|
693
|
+
readonly inserted: boolean
|
|
694
|
+
|
|
695
|
+
readonly updated: boolean
|
|
696
|
+
|
|
697
|
+
readonly deleted: boolean
|
|
698
|
+
|
|
699
|
+
readonly hasChanges: boolean
|
|
700
|
+
|
|
701
|
+
readonly hasPersistentChangedValues: boolean
|
|
702
|
+
|
|
703
|
+
readonly fault: boolean
|
|
704
|
+
|
|
705
|
+
hasFaultForRelationshipNamed(key: string): boolean
|
|
706
|
+
|
|
707
|
+
objectIDsForRelationshipNamed(key: string): NSArray
|
|
708
|
+
|
|
709
|
+
readonly faultingState: number
|
|
710
|
+
|
|
711
|
+
willAccessValueForKey(key: string | null): void
|
|
712
|
+
|
|
713
|
+
didAccessValueForKey(key: string | null): void
|
|
714
|
+
|
|
715
|
+
willChangeValueForKey(key: string): void
|
|
716
|
+
|
|
717
|
+
didChangeValueForKey(key: string): void
|
|
718
|
+
|
|
719
|
+
willChangeValueForKeyWithSetMutationUsingObjects(
|
|
720
|
+
key: string,
|
|
721
|
+
mutationKind: interop.Enum<typeof NSKeyValueSetMutationKind>,
|
|
722
|
+
objects: NSSet,
|
|
723
|
+
): void
|
|
724
|
+
willChangeValueForKeyWithSetMutationUsingObjects(
|
|
725
|
+
inKey: string,
|
|
726
|
+
inMutationKind: interop.Enum<typeof NSKeyValueSetMutationKind>,
|
|
727
|
+
inObjects: NSSet,
|
|
728
|
+
): void
|
|
729
|
+
|
|
730
|
+
didChangeValueForKeyWithSetMutationUsingObjects(
|
|
731
|
+
key: string,
|
|
732
|
+
mutationKind: interop.Enum<typeof NSKeyValueSetMutationKind>,
|
|
733
|
+
objects: NSSet,
|
|
734
|
+
): void
|
|
735
|
+
didChangeValueForKeyWithSetMutationUsingObjects(
|
|
736
|
+
inKey: string,
|
|
737
|
+
inMutationKind: interop.Enum<typeof NSKeyValueSetMutationKind>,
|
|
738
|
+
inObjects: NSSet,
|
|
739
|
+
): void
|
|
740
|
+
|
|
741
|
+
awakeFromFetch(): void
|
|
742
|
+
|
|
743
|
+
awakeFromInsert(): void
|
|
744
|
+
|
|
745
|
+
awakeFromSnapshotEvents(flags: interop.Enum<typeof NSSnapshotEventType>): void
|
|
746
|
+
|
|
747
|
+
prepareForDeletion(): void
|
|
748
|
+
|
|
749
|
+
willSave(): void
|
|
750
|
+
|
|
751
|
+
didSave(): void
|
|
752
|
+
|
|
753
|
+
willTurnIntoFault(): void
|
|
754
|
+
|
|
755
|
+
didTurnIntoFault(): void
|
|
756
|
+
|
|
757
|
+
valueForKey(key: string): interop.Object
|
|
758
|
+
|
|
759
|
+
setValueForKey(value: interop.Object | null, key: string): void
|
|
760
|
+
|
|
761
|
+
primitiveValueForKey(key: string): interop.Object
|
|
762
|
+
|
|
763
|
+
setPrimitiveValueForKey(value: interop.Object | null, key: string): void
|
|
764
|
+
|
|
765
|
+
committedValuesForKeys(keys: NSArray<interop.Object> | Array<interop.Object> | null): NSDictionary
|
|
766
|
+
|
|
767
|
+
changedValues(): NSDictionary
|
|
768
|
+
|
|
769
|
+
changedValuesForCurrentEvent(): NSDictionary
|
|
770
|
+
|
|
771
|
+
validateValueForKeyError(
|
|
772
|
+
ioValue: interop.PointerConvertible,
|
|
773
|
+
inKey: string,
|
|
774
|
+
outError: interop.PointerConvertible,
|
|
775
|
+
): boolean
|
|
776
|
+
validateValueForKeyError(
|
|
777
|
+
value: interop.PointerConvertible,
|
|
778
|
+
key: string,
|
|
779
|
+
error: interop.PointerConvertible,
|
|
780
|
+
): boolean
|
|
781
|
+
|
|
782
|
+
validateForDelete(error: interop.PointerConvertible): boolean
|
|
783
|
+
|
|
784
|
+
validateForInsert(error: interop.PointerConvertible): boolean
|
|
785
|
+
|
|
786
|
+
validateForUpdate(error: interop.PointerConvertible): boolean
|
|
787
|
+
|
|
788
|
+
setObservationInfo(observationInfo: interop.PointerConvertible): void
|
|
789
|
+
setObservationInfo(inObservationInfo: interop.PointerConvertible): void
|
|
790
|
+
|
|
791
|
+
get observationInfo(): interop.Pointer
|
|
792
|
+
set observationInfo(value: interop.PointerConvertible)
|
|
793
|
+
|
|
794
|
+
isInserted(): boolean
|
|
795
|
+
|
|
796
|
+
isUpdated(): boolean
|
|
797
|
+
|
|
798
|
+
isDeleted(): boolean
|
|
799
|
+
|
|
800
|
+
isFault(): boolean
|
|
801
|
+
|
|
802
|
+
isEqual(object: interop.Object): boolean
|
|
803
|
+
|
|
804
|
+
readonly hash: number
|
|
805
|
+
|
|
806
|
+
readonly superclass: interop.Pointer
|
|
807
|
+
|
|
808
|
+
class(): interop.Pointer
|
|
809
|
+
|
|
810
|
+
self(): this
|
|
811
|
+
|
|
812
|
+
performSelector(aSelector: string): interop.Object
|
|
813
|
+
|
|
814
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
815
|
+
|
|
816
|
+
performSelectorWithObjectWithObject(
|
|
817
|
+
aSelector: string,
|
|
818
|
+
object1: interop.Object,
|
|
819
|
+
object2: interop.Object,
|
|
820
|
+
): interop.Object
|
|
821
|
+
|
|
822
|
+
readonly isProxy: boolean
|
|
823
|
+
|
|
824
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
825
|
+
|
|
826
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
827
|
+
|
|
828
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
829
|
+
|
|
830
|
+
respondsToSelector(aSelector: string): boolean
|
|
831
|
+
|
|
832
|
+
retain(): this
|
|
833
|
+
|
|
834
|
+
release(): void
|
|
835
|
+
|
|
836
|
+
autorelease(): this
|
|
837
|
+
|
|
838
|
+
retainCount(): number
|
|
839
|
+
|
|
840
|
+
readonly zone: interop.Pointer
|
|
841
|
+
|
|
842
|
+
readonly description: string
|
|
843
|
+
|
|
844
|
+
readonly debugDescription: string
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
declare class NSPersistentStoreCoordinator extends NSObject implements NSLocking {
|
|
848
|
+
initWithManagedObjectModel(model: NSManagedObjectModel): this
|
|
849
|
+
|
|
850
|
+
readonly managedObjectModel: NSManagedObjectModel
|
|
851
|
+
|
|
852
|
+
readonly persistentStores: NSArray
|
|
853
|
+
|
|
854
|
+
name: string
|
|
855
|
+
|
|
856
|
+
persistentStoreForURL(URL: NSURL): NSPersistentStore
|
|
857
|
+
|
|
858
|
+
URLForPersistentStore(store: NSPersistentStore): NSURL
|
|
859
|
+
|
|
860
|
+
setURLForPersistentStore(url: NSURL, store: NSPersistentStore): boolean
|
|
861
|
+
|
|
862
|
+
addPersistentStoreWithTypeConfigurationURLOptionsError(
|
|
863
|
+
storeType: string,
|
|
864
|
+
configuration: string | null,
|
|
865
|
+
storeURL: NSURL | null,
|
|
866
|
+
options:
|
|
867
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
868
|
+
| Record<interop.Object, interop.Object>
|
|
869
|
+
| null,
|
|
870
|
+
error: interop.PointerConvertible,
|
|
871
|
+
): NSPersistentStore
|
|
872
|
+
|
|
873
|
+
addPersistentStoreWithDescriptionCompletionHandler(
|
|
874
|
+
storeDescription: NSPersistentStoreDescription,
|
|
875
|
+
block: (p1: NSPersistentStoreDescription, p2: NSError) => void | null,
|
|
876
|
+
): void
|
|
877
|
+
|
|
878
|
+
removePersistentStoreError(store: NSPersistentStore, error: interop.PointerConvertible): boolean
|
|
879
|
+
|
|
880
|
+
setMetadataForPersistentStore(
|
|
881
|
+
metadata:
|
|
882
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
883
|
+
| Record<interop.Object, interop.Object>
|
|
884
|
+
| null,
|
|
885
|
+
store: NSPersistentStore,
|
|
886
|
+
): void
|
|
887
|
+
|
|
888
|
+
metadataForPersistentStore(store: NSPersistentStore): NSDictionary
|
|
889
|
+
|
|
890
|
+
managedObjectIDForURIRepresentation(url: NSURL): NSManagedObjectID
|
|
891
|
+
|
|
892
|
+
executeRequestWithContextError(
|
|
893
|
+
request: NSPersistentStoreRequest,
|
|
894
|
+
context: NSManagedObjectContext,
|
|
895
|
+
error: interop.PointerConvertible,
|
|
896
|
+
): interop.Object
|
|
897
|
+
|
|
898
|
+
static readonly registeredStoreTypes: NSDictionary
|
|
899
|
+
|
|
900
|
+
static registerStoreClassForStoreType(
|
|
901
|
+
storeClass: interop.PointerConvertible,
|
|
902
|
+
storeType: string,
|
|
903
|
+
): void
|
|
904
|
+
|
|
905
|
+
static metadataForPersistentStoreOfTypeURLOptionsError(
|
|
906
|
+
storeType: string,
|
|
907
|
+
url: NSURL,
|
|
908
|
+
options:
|
|
909
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
910
|
+
| Record<interop.Object, interop.Object>
|
|
911
|
+
| null,
|
|
912
|
+
error: interop.PointerConvertible,
|
|
913
|
+
): NSDictionary
|
|
914
|
+
|
|
915
|
+
static setMetadataForPersistentStoreOfTypeURLOptionsError(
|
|
916
|
+
metadata:
|
|
917
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
918
|
+
| Record<interop.Object, interop.Object>
|
|
919
|
+
| null,
|
|
920
|
+
storeType: string,
|
|
921
|
+
url: NSURL,
|
|
922
|
+
options:
|
|
923
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
924
|
+
| Record<interop.Object, interop.Object>
|
|
925
|
+
| null,
|
|
926
|
+
error: interop.PointerConvertible,
|
|
927
|
+
): boolean
|
|
928
|
+
|
|
929
|
+
static elementsDerivedFromExternalRecordURL(fileURL: NSURL): NSDictionary
|
|
930
|
+
|
|
931
|
+
importStoreWithIdentifierFromExternalRecordsDirectoryToURLOptionsWithTypeError(
|
|
932
|
+
storeIdentifier: string | null,
|
|
933
|
+
externalRecordsURL: NSURL,
|
|
934
|
+
destinationURL: NSURL,
|
|
935
|
+
options:
|
|
936
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
937
|
+
| Record<interop.Object, interop.Object>
|
|
938
|
+
| null,
|
|
939
|
+
storeType: string,
|
|
940
|
+
error: interop.PointerConvertible,
|
|
941
|
+
): NSPersistentStore
|
|
942
|
+
|
|
943
|
+
migratePersistentStoreToURLOptionsWithTypeError(
|
|
944
|
+
store: NSPersistentStore,
|
|
945
|
+
URL: NSURL,
|
|
946
|
+
options:
|
|
947
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
948
|
+
| Record<interop.Object, interop.Object>
|
|
949
|
+
| null,
|
|
950
|
+
storeType: string,
|
|
951
|
+
error: interop.PointerConvertible,
|
|
952
|
+
): NSPersistentStore
|
|
953
|
+
|
|
954
|
+
destroyPersistentStoreAtURLWithTypeOptionsError(
|
|
955
|
+
url: NSURL,
|
|
956
|
+
storeType: string,
|
|
957
|
+
options:
|
|
958
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
959
|
+
| Record<interop.Object, interop.Object>
|
|
960
|
+
| null,
|
|
961
|
+
error: interop.PointerConvertible,
|
|
962
|
+
): boolean
|
|
963
|
+
|
|
964
|
+
replacePersistentStoreAtURLDestinationOptionsWithPersistentStoreFromURLSourceOptionsStoreTypeError(
|
|
965
|
+
destinationURL: NSURL,
|
|
966
|
+
destinationOptions:
|
|
967
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
968
|
+
| Record<interop.Object, interop.Object>
|
|
969
|
+
| null,
|
|
970
|
+
sourceURL: NSURL,
|
|
971
|
+
sourceOptions:
|
|
972
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
973
|
+
| Record<interop.Object, interop.Object>
|
|
974
|
+
| null,
|
|
975
|
+
storeType: string,
|
|
976
|
+
error: interop.PointerConvertible,
|
|
977
|
+
): boolean
|
|
978
|
+
|
|
979
|
+
performBlock(block: () => void): void
|
|
980
|
+
|
|
981
|
+
performBlockAndWait(block: () => void): void
|
|
982
|
+
|
|
983
|
+
currentPersistentHistoryTokenFromStores(
|
|
984
|
+
stores: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
985
|
+
): NSPersistentHistoryToken
|
|
986
|
+
|
|
987
|
+
finishDeferredLightweightMigration(error: interop.PointerConvertible): boolean
|
|
988
|
+
|
|
989
|
+
finishDeferredLightweightMigrationTask(error: interop.PointerConvertible): boolean
|
|
990
|
+
|
|
991
|
+
managedObjectIDFromUTF8StringLength(utf8string: string, len: number): NSManagedObjectID
|
|
992
|
+
|
|
993
|
+
static metadataForPersistentStoreWithURLError(
|
|
994
|
+
url: NSURL,
|
|
995
|
+
error: interop.PointerConvertible,
|
|
996
|
+
): NSDictionary
|
|
997
|
+
|
|
998
|
+
lock(): void
|
|
999
|
+
|
|
1000
|
+
unlock(): void
|
|
1001
|
+
|
|
1002
|
+
tryLock(): boolean
|
|
1003
|
+
|
|
1004
|
+
static metadataForPersistentStoreOfTypeURLError(
|
|
1005
|
+
storeType: string | null,
|
|
1006
|
+
url: NSURL,
|
|
1007
|
+
error: interop.PointerConvertible,
|
|
1008
|
+
): NSDictionary
|
|
1009
|
+
|
|
1010
|
+
static setMetadataForPersistentStoreOfTypeURLError(
|
|
1011
|
+
metadata:
|
|
1012
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1013
|
+
| Record<interop.Object, interop.Object>
|
|
1014
|
+
| null,
|
|
1015
|
+
storeType: string | null,
|
|
1016
|
+
url: NSURL,
|
|
1017
|
+
error: interop.PointerConvertible,
|
|
1018
|
+
): boolean
|
|
1019
|
+
|
|
1020
|
+
static removeUbiquitousContentAndPersistentStoreAtURLOptionsError(
|
|
1021
|
+
storeURL: NSURL,
|
|
1022
|
+
options:
|
|
1023
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1024
|
+
| Record<interop.Object, interop.Object>
|
|
1025
|
+
| null,
|
|
1026
|
+
error: interop.PointerConvertible,
|
|
1027
|
+
): boolean
|
|
1028
|
+
|
|
1029
|
+
syncWithClientInBackgroundHandlerError(
|
|
1030
|
+
client: ISyncClient,
|
|
1031
|
+
flag: boolean,
|
|
1032
|
+
syncHandler: NSPersistentStoreCoordinatorSyncing,
|
|
1033
|
+
rError: interop.PointerConvertible,
|
|
1034
|
+
): boolean
|
|
1035
|
+
|
|
1036
|
+
setStoresFastSyncDetailsAtURLForPersistentStore(url: NSURL, store: NSPersistentStore): void
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
declare class NSFetchRequestExpression extends NSExpression {
|
|
1040
|
+
static expressionForFetchContextCountOnly(
|
|
1041
|
+
fetch: NSExpression,
|
|
1042
|
+
context: NSExpression,
|
|
1043
|
+
countFlag: boolean,
|
|
1044
|
+
): NSExpression
|
|
1045
|
+
|
|
1046
|
+
readonly requestExpression: NSExpression
|
|
1047
|
+
|
|
1048
|
+
readonly contextExpression: NSExpression
|
|
1049
|
+
|
|
1050
|
+
readonly countOnlyRequest: boolean
|
|
1051
|
+
|
|
1052
|
+
isCountOnlyRequest(): boolean
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
declare class NSCoreDataCoreSpotlightDelegate extends NSObject {
|
|
1056
|
+
domainIdentifier(): string
|
|
1057
|
+
|
|
1058
|
+
indexName(): string
|
|
1059
|
+
|
|
1060
|
+
initForStoreWithDescriptionCoordinator(
|
|
1061
|
+
description: NSPersistentStoreDescription,
|
|
1062
|
+
psc: NSPersistentStoreCoordinator,
|
|
1063
|
+
): this
|
|
1064
|
+
|
|
1065
|
+
initForStoreWithDescriptionModel(
|
|
1066
|
+
description: NSPersistentStoreDescription,
|
|
1067
|
+
model: NSManagedObjectModel,
|
|
1068
|
+
): this
|
|
1069
|
+
|
|
1070
|
+
startSpotlightIndexing(): void
|
|
1071
|
+
|
|
1072
|
+
stopSpotlightIndexing(): void
|
|
1073
|
+
|
|
1074
|
+
deleteSpotlightIndexWithCompletionHandler(completionHandler: (p1: NSError) => void | null): void
|
|
1075
|
+
|
|
1076
|
+
attributeSetForObject(object: NSManagedObject): CSSearchableItemAttributeSet
|
|
1077
|
+
|
|
1078
|
+
searchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(
|
|
1079
|
+
searchableIndex: CSSearchableIndex,
|
|
1080
|
+
acknowledgementHandler: () => void,
|
|
1081
|
+
): void
|
|
1082
|
+
|
|
1083
|
+
searchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(
|
|
1084
|
+
searchableIndex: CSSearchableIndex,
|
|
1085
|
+
identifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
1086
|
+
acknowledgementHandler: () => void,
|
|
1087
|
+
): void
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
declare class NSPersistentHistoryTransaction extends NSObject implements NSCopying {
|
|
1091
|
+
static entityDescriptionWithContext(context: NSManagedObjectContext): NSEntityDescription
|
|
1092
|
+
|
|
1093
|
+
static readonly entityDescription: NSEntityDescription
|
|
1094
|
+
|
|
1095
|
+
static readonly fetchRequest: NSFetchRequest
|
|
1096
|
+
|
|
1097
|
+
readonly timestamp: NSDate
|
|
1098
|
+
|
|
1099
|
+
readonly changes: NSArray
|
|
1100
|
+
|
|
1101
|
+
readonly transactionNumber: number
|
|
1102
|
+
|
|
1103
|
+
readonly storeID: string
|
|
1104
|
+
|
|
1105
|
+
readonly bundleID: string
|
|
1106
|
+
|
|
1107
|
+
readonly processID: string
|
|
1108
|
+
|
|
1109
|
+
readonly contextName: string
|
|
1110
|
+
|
|
1111
|
+
readonly author: string
|
|
1112
|
+
|
|
1113
|
+
readonly token: NSPersistentHistoryToken
|
|
1114
|
+
|
|
1115
|
+
objectIDNotification(): NSNotification
|
|
1116
|
+
|
|
1117
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
declare class NSMigrationManager extends NSObject {
|
|
1121
|
+
initWithSourceModelDestinationModel(
|
|
1122
|
+
sourceModel: NSManagedObjectModel,
|
|
1123
|
+
destinationModel: NSManagedObjectModel,
|
|
1124
|
+
): this
|
|
1125
|
+
|
|
1126
|
+
migrateStoreFromURLTypeOptionsWithMappingModelToDestinationURLDestinationTypeDestinationOptionsError(
|
|
1127
|
+
sourceURL: NSURL,
|
|
1128
|
+
sStoreType: string,
|
|
1129
|
+
sOptions:
|
|
1130
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1131
|
+
| Record<interop.Object, interop.Object>
|
|
1132
|
+
| null,
|
|
1133
|
+
mappings: NSMappingModel | null,
|
|
1134
|
+
dURL: NSURL,
|
|
1135
|
+
dStoreType: string,
|
|
1136
|
+
dOptions:
|
|
1137
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1138
|
+
| Record<interop.Object, interop.Object>
|
|
1139
|
+
| null,
|
|
1140
|
+
error: interop.PointerConvertible,
|
|
1141
|
+
): boolean
|
|
1142
|
+
|
|
1143
|
+
usesStoreSpecificMigrationManager: boolean
|
|
1144
|
+
|
|
1145
|
+
reset(): void
|
|
1146
|
+
|
|
1147
|
+
readonly mappingModel: NSMappingModel
|
|
1148
|
+
|
|
1149
|
+
readonly sourceModel: NSManagedObjectModel
|
|
1150
|
+
|
|
1151
|
+
readonly destinationModel: NSManagedObjectModel
|
|
1152
|
+
|
|
1153
|
+
readonly sourceContext: NSManagedObjectContext
|
|
1154
|
+
|
|
1155
|
+
readonly destinationContext: NSManagedObjectContext
|
|
1156
|
+
|
|
1157
|
+
sourceEntityForEntityMapping(mEntity: NSEntityMapping): NSEntityDescription
|
|
1158
|
+
|
|
1159
|
+
destinationEntityForEntityMapping(mEntity: NSEntityMapping): NSEntityDescription
|
|
1160
|
+
|
|
1161
|
+
associateSourceInstanceWithDestinationInstanceForEntityMapping(
|
|
1162
|
+
sourceInstance: NSManagedObject,
|
|
1163
|
+
destinationInstance: NSManagedObject,
|
|
1164
|
+
entityMapping: NSEntityMapping,
|
|
1165
|
+
): void
|
|
1166
|
+
|
|
1167
|
+
destinationInstancesForEntityMappingNamedSourceInstances(
|
|
1168
|
+
mappingName: string,
|
|
1169
|
+
sourceInstances: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
1170
|
+
): NSArray
|
|
1171
|
+
|
|
1172
|
+
sourceInstancesForEntityMappingNamedDestinationInstances(
|
|
1173
|
+
mappingName: string,
|
|
1174
|
+
destinationInstances: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
1175
|
+
): NSArray
|
|
1176
|
+
|
|
1177
|
+
readonly currentEntityMapping: NSEntityMapping
|
|
1178
|
+
|
|
1179
|
+
readonly migrationProgress: number
|
|
1180
|
+
|
|
1181
|
+
get userInfo(): NSDictionary
|
|
1182
|
+
set userInfo(
|
|
1183
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1184
|
+
)
|
|
1185
|
+
|
|
1186
|
+
cancelMigrationWithError(error: NSError): void
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
declare class NSPersistentStoreRequest extends NSObject implements NSCopying {
|
|
1190
|
+
get affectedStores(): NSArray
|
|
1191
|
+
set affectedStores(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1192
|
+
|
|
1193
|
+
readonly requestType: interop.Enum<typeof NSPersistentStoreRequestType>
|
|
1194
|
+
|
|
1195
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
declare class NSPersistentCloudKitContainerOptions extends NSObject {
|
|
1199
|
+
readonly containerIdentifier: string
|
|
1200
|
+
|
|
1201
|
+
databaseScope: interop.Enum<typeof CKDatabaseScope>
|
|
1202
|
+
|
|
1203
|
+
initWithContainerIdentifier(containerIdentifier: string): this
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
declare class NSBatchInsertRequest extends NSPersistentStoreRequest {
|
|
1207
|
+
readonly entityName: string
|
|
1208
|
+
|
|
1209
|
+
readonly entity: NSEntityDescription
|
|
1210
|
+
|
|
1211
|
+
get objectsToInsert(): NSArray
|
|
1212
|
+
set objectsToInsert(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1213
|
+
|
|
1214
|
+
dictionaryHandler: (p1: NSMutableDictionary) => boolean
|
|
1215
|
+
|
|
1216
|
+
managedObjectHandler: (p1: NSManagedObject) => boolean
|
|
1217
|
+
|
|
1218
|
+
resultType: interop.Enum<typeof NSBatchInsertRequestResultType>
|
|
1219
|
+
|
|
1220
|
+
static batchInsertRequestWithEntityNameObjects<This extends abstract new (...args: any) => any>(
|
|
1221
|
+
this: This,
|
|
1222
|
+
entityName: string,
|
|
1223
|
+
dictionaries: NSArray<interop.Object> | Array<interop.Object>,
|
|
1224
|
+
): InstanceType<This>
|
|
1225
|
+
|
|
1226
|
+
static batchInsertRequestWithEntityNameDictionaryHandler<
|
|
1227
|
+
This extends abstract new (...args: any) => any,
|
|
1228
|
+
>(
|
|
1229
|
+
this: This,
|
|
1230
|
+
entityName: string,
|
|
1231
|
+
handler: (p1: NSMutableDictionary) => boolean,
|
|
1232
|
+
): InstanceType<This>
|
|
1233
|
+
|
|
1234
|
+
static batchInsertRequestWithEntityNameManagedObjectHandler<
|
|
1235
|
+
This extends abstract new (...args: any) => any,
|
|
1236
|
+
>(this: This, entityName: string, handler: (p1: NSManagedObject) => boolean): InstanceType<This>
|
|
1237
|
+
|
|
1238
|
+
init(): this
|
|
1239
|
+
|
|
1240
|
+
initWithEntityNameObjects(
|
|
1241
|
+
entityName: string,
|
|
1242
|
+
dictionaries: NSArray<interop.Object> | Array<interop.Object>,
|
|
1243
|
+
): this
|
|
1244
|
+
|
|
1245
|
+
initWithEntityObjects(
|
|
1246
|
+
entity: NSEntityDescription,
|
|
1247
|
+
dictionaries: NSArray<interop.Object> | Array<interop.Object>,
|
|
1248
|
+
): this
|
|
1249
|
+
|
|
1250
|
+
initWithEntityDictionaryHandler(
|
|
1251
|
+
entity: NSEntityDescription,
|
|
1252
|
+
handler: (p1: NSMutableDictionary) => boolean,
|
|
1253
|
+
): this
|
|
1254
|
+
|
|
1255
|
+
initWithEntityManagedObjectHandler(
|
|
1256
|
+
entity: NSEntityDescription,
|
|
1257
|
+
handler: (p1: NSManagedObject) => boolean,
|
|
1258
|
+
): this
|
|
1259
|
+
|
|
1260
|
+
initWithEntityNameDictionaryHandler(
|
|
1261
|
+
entityName: string,
|
|
1262
|
+
handler: (p1: NSMutableDictionary) => boolean,
|
|
1263
|
+
): this
|
|
1264
|
+
|
|
1265
|
+
initWithEntityNameManagedObjectHandler(
|
|
1266
|
+
entityName: string,
|
|
1267
|
+
handler: (p1: NSManagedObject) => boolean,
|
|
1268
|
+
): this
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
declare class NSPersistentCloudKitContainerEvent extends NSObject implements NSCopying {
|
|
1272
|
+
readonly identifier: NSUUID
|
|
1273
|
+
|
|
1274
|
+
readonly storeIdentifier: string
|
|
1275
|
+
|
|
1276
|
+
readonly type: interop.Enum<typeof NSPersistentCloudKitContainerEventType>
|
|
1277
|
+
|
|
1278
|
+
readonly startDate: NSDate
|
|
1279
|
+
|
|
1280
|
+
readonly endDate: NSDate
|
|
1281
|
+
|
|
1282
|
+
readonly succeeded: boolean
|
|
1283
|
+
|
|
1284
|
+
readonly error: NSError
|
|
1285
|
+
|
|
1286
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
declare class NSPersistentHistoryChangeRequest extends NSPersistentStoreRequest {
|
|
1290
|
+
static fetchHistoryAfterDate<This extends abstract new (...args: any) => any>(
|
|
1291
|
+
this: This,
|
|
1292
|
+
date: NSDate,
|
|
1293
|
+
): InstanceType<This>
|
|
1294
|
+
|
|
1295
|
+
static fetchHistoryAfterToken<This extends abstract new (...args: any) => any>(
|
|
1296
|
+
this: This,
|
|
1297
|
+
token: NSPersistentHistoryToken | null,
|
|
1298
|
+
): InstanceType<This>
|
|
1299
|
+
|
|
1300
|
+
static fetchHistoryAfterTransaction<This extends abstract new (...args: any) => any>(
|
|
1301
|
+
this: This,
|
|
1302
|
+
transaction: NSPersistentHistoryTransaction | null,
|
|
1303
|
+
): InstanceType<This>
|
|
1304
|
+
|
|
1305
|
+
static fetchHistoryWithFetchRequest<This extends abstract new (...args: any) => any>(
|
|
1306
|
+
this: This,
|
|
1307
|
+
fetchRequest: NSFetchRequest,
|
|
1308
|
+
): InstanceType<This>
|
|
1309
|
+
|
|
1310
|
+
static deleteHistoryBeforeDate<This extends abstract new (...args: any) => any>(
|
|
1311
|
+
this: This,
|
|
1312
|
+
date: NSDate,
|
|
1313
|
+
): InstanceType<This>
|
|
1314
|
+
|
|
1315
|
+
static deleteHistoryBeforeToken<This extends abstract new (...args: any) => any>(
|
|
1316
|
+
this: This,
|
|
1317
|
+
token: NSPersistentHistoryToken | null,
|
|
1318
|
+
): InstanceType<This>
|
|
1319
|
+
|
|
1320
|
+
static deleteHistoryBeforeTransaction<This extends abstract new (...args: any) => any>(
|
|
1321
|
+
this: This,
|
|
1322
|
+
transaction: NSPersistentHistoryTransaction | null,
|
|
1323
|
+
): InstanceType<This>
|
|
1324
|
+
|
|
1325
|
+
resultType: interop.Enum<typeof NSPersistentHistoryResultType>
|
|
1326
|
+
|
|
1327
|
+
readonly token: NSPersistentHistoryToken
|
|
1328
|
+
|
|
1329
|
+
fetchRequest: NSFetchRequest
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
declare class NSPersistentContainer extends NSObject {
|
|
1333
|
+
static persistentContainerWithName<This extends abstract new (...args: any) => any>(
|
|
1334
|
+
this: This,
|
|
1335
|
+
name: string,
|
|
1336
|
+
): InstanceType<This>
|
|
1337
|
+
|
|
1338
|
+
static persistentContainerWithNameManagedObjectModel<
|
|
1339
|
+
This extends abstract new (...args: any) => any,
|
|
1340
|
+
>(this: This, name: string, model: NSManagedObjectModel): InstanceType<This>
|
|
1341
|
+
|
|
1342
|
+
static defaultDirectoryURL(): NSURL
|
|
1343
|
+
|
|
1344
|
+
readonly name: string
|
|
1345
|
+
|
|
1346
|
+
readonly viewContext: NSManagedObjectContext
|
|
1347
|
+
|
|
1348
|
+
readonly managedObjectModel: NSManagedObjectModel
|
|
1349
|
+
|
|
1350
|
+
readonly persistentStoreCoordinator: NSPersistentStoreCoordinator
|
|
1351
|
+
|
|
1352
|
+
get persistentStoreDescriptions(): NSArray
|
|
1353
|
+
set persistentStoreDescriptions(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1354
|
+
|
|
1355
|
+
initWithName(name: string): this
|
|
1356
|
+
|
|
1357
|
+
initWithNameManagedObjectModel(name: string, model: NSManagedObjectModel): this
|
|
1358
|
+
|
|
1359
|
+
loadPersistentStoresWithCompletionHandler(
|
|
1360
|
+
block: (p1: NSPersistentStoreDescription, p2: NSError) => void | null,
|
|
1361
|
+
): void
|
|
1362
|
+
|
|
1363
|
+
newBackgroundContext(): NSManagedObjectContext
|
|
1364
|
+
|
|
1365
|
+
performBackgroundTask(block: (p1: NSManagedObjectContext) => void): void
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
declare class NSConstraintConflict extends NSObject {
|
|
1369
|
+
readonly constraint: NSArray
|
|
1370
|
+
|
|
1371
|
+
readonly constraintValues: NSDictionary
|
|
1372
|
+
|
|
1373
|
+
readonly databaseObject: NSManagedObject
|
|
1374
|
+
|
|
1375
|
+
readonly databaseSnapshot: NSDictionary
|
|
1376
|
+
|
|
1377
|
+
readonly conflictingObjects: NSArray
|
|
1378
|
+
|
|
1379
|
+
readonly conflictingSnapshots: NSArray
|
|
1380
|
+
|
|
1381
|
+
initWithConstraintDatabaseObjectDatabaseSnapshotConflictingObjectsConflictingSnapshots(
|
|
1382
|
+
contraint: NSArray<interop.Object> | Array<interop.Object>,
|
|
1383
|
+
databaseObject: NSManagedObject | null,
|
|
1384
|
+
databaseSnapshot:
|
|
1385
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1386
|
+
| Record<interop.Object, interop.Object>
|
|
1387
|
+
| null,
|
|
1388
|
+
conflictingObjects: NSArray<interop.Object> | Array<interop.Object>,
|
|
1389
|
+
conflictingSnapshots: NSArray<interop.Object> | Array<interop.Object>,
|
|
1390
|
+
): this
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
declare class NSBatchDeleteRequest extends NSPersistentStoreRequest {
|
|
1394
|
+
initWithFetchRequest(fetch: NSFetchRequest): this
|
|
1395
|
+
|
|
1396
|
+
initWithObjectIDs(objects: NSArray<interop.Object> | Array<interop.Object>): this
|
|
1397
|
+
|
|
1398
|
+
resultType: interop.Enum<typeof NSBatchDeleteRequestResultType>
|
|
1399
|
+
|
|
1400
|
+
readonly fetchRequest: NSFetchRequest
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
declare class NSBatchDeleteResult extends NSPersistentStoreResult {
|
|
1404
|
+
readonly result: interop.Object
|
|
1405
|
+
|
|
1406
|
+
readonly resultType: interop.Enum<typeof NSBatchDeleteRequestResultType>
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
declare class NSBatchUpdateResult extends NSPersistentStoreResult {
|
|
1410
|
+
readonly result: interop.Object
|
|
1411
|
+
|
|
1412
|
+
readonly resultType: interop.Enum<typeof NSBatchUpdateRequestResultType>
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
declare class NSAsynchronousFetchResult<
|
|
1416
|
+
ResultType = interop.Object,
|
|
1417
|
+
> extends NSPersistentStoreAsynchronousResult {
|
|
1418
|
+
readonly fetchRequest: NSAsynchronousFetchRequest
|
|
1419
|
+
|
|
1420
|
+
readonly finalResult: NSArray
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
declare class NSPersistentStoreResult extends NSObject {}
|
|
1424
|
+
|
|
1425
|
+
declare class NSIncrementalStoreNode extends NSObject {
|
|
1426
|
+
initWithObjectIDWithValuesVersion(
|
|
1427
|
+
objectID: NSManagedObjectID,
|
|
1428
|
+
values: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1429
|
+
version: number,
|
|
1430
|
+
): this
|
|
1431
|
+
|
|
1432
|
+
updateWithValuesVersion(
|
|
1433
|
+
values: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1434
|
+
version: number,
|
|
1435
|
+
): void
|
|
1436
|
+
|
|
1437
|
+
readonly objectID: NSManagedObjectID
|
|
1438
|
+
|
|
1439
|
+
readonly version: number
|
|
1440
|
+
|
|
1441
|
+
valueForPropertyDescription(prop: NSPropertyDescription): interop.Object
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
declare class NSAtomicStore extends NSPersistentStore {
|
|
1445
|
+
initWithPersistentStoreCoordinatorConfigurationNameURLOptions(
|
|
1446
|
+
root: NSPersistentStoreCoordinator | null,
|
|
1447
|
+
name: string | null,
|
|
1448
|
+
url: NSURL,
|
|
1449
|
+
options:
|
|
1450
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1451
|
+
| Record<interop.Object, interop.Object>
|
|
1452
|
+
| null,
|
|
1453
|
+
): this
|
|
1454
|
+
initWithPersistentStoreCoordinatorConfigurationNameURLOptions(
|
|
1455
|
+
coordinator: NSPersistentStoreCoordinator | null,
|
|
1456
|
+
configurationName: string | null,
|
|
1457
|
+
url: NSURL,
|
|
1458
|
+
options:
|
|
1459
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1460
|
+
| Record<interop.Object, interop.Object>
|
|
1461
|
+
| null,
|
|
1462
|
+
): this
|
|
1463
|
+
|
|
1464
|
+
load(error: interop.PointerConvertible): boolean
|
|
1465
|
+
|
|
1466
|
+
save(error: interop.PointerConvertible): boolean
|
|
1467
|
+
|
|
1468
|
+
newCacheNodeForManagedObject(managedObject: NSManagedObject): NSAtomicStoreCacheNode
|
|
1469
|
+
|
|
1470
|
+
updateCacheNodeFromManagedObject(
|
|
1471
|
+
node: NSAtomicStoreCacheNode,
|
|
1472
|
+
managedObject: NSManagedObject,
|
|
1473
|
+
): void
|
|
1474
|
+
|
|
1475
|
+
cacheNodes(): NSSet
|
|
1476
|
+
|
|
1477
|
+
addCacheNodes(cacheNodes: NSSet): void
|
|
1478
|
+
|
|
1479
|
+
willRemoveCacheNodes(cacheNodes: NSSet): void
|
|
1480
|
+
|
|
1481
|
+
cacheNodeForObjectID(objectID: NSManagedObjectID): NSAtomicStoreCacheNode
|
|
1482
|
+
|
|
1483
|
+
objectIDForEntityReferenceObject(
|
|
1484
|
+
entity: NSEntityDescription,
|
|
1485
|
+
data: interop.Object,
|
|
1486
|
+
): NSManagedObjectID
|
|
1487
|
+
|
|
1488
|
+
newReferenceObjectForManagedObject(managedObject: NSManagedObject): interop.Object
|
|
1489
|
+
|
|
1490
|
+
referenceObjectForObjectID(objectID: NSManagedObjectID): interop.Object
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
declare class NSAtomicStoreCacheNode extends NSObject {
|
|
1494
|
+
initWithObjectID(moid: NSManagedObjectID): this
|
|
1495
|
+
|
|
1496
|
+
readonly objectID: NSManagedObjectID
|
|
1497
|
+
|
|
1498
|
+
propertyCache: NSMutableDictionary
|
|
1499
|
+
|
|
1500
|
+
valueForKey(key: string): interop.Object
|
|
1501
|
+
|
|
1502
|
+
setValueForKey(value: interop.Object | null, key: string): void
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
declare class NSPersistentStore extends NSObject {
|
|
1506
|
+
static metadataForPersistentStoreWithURLError(
|
|
1507
|
+
url: NSURL,
|
|
1508
|
+
error: interop.PointerConvertible,
|
|
1509
|
+
): NSDictionary
|
|
1510
|
+
|
|
1511
|
+
static setMetadataForPersistentStoreWithURLError(
|
|
1512
|
+
metadata:
|
|
1513
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1514
|
+
| Record<interop.Object, interop.Object>
|
|
1515
|
+
| null,
|
|
1516
|
+
url: NSURL,
|
|
1517
|
+
error: interop.PointerConvertible,
|
|
1518
|
+
): boolean
|
|
1519
|
+
|
|
1520
|
+
static migrationManagerClass(): interop.Pointer
|
|
1521
|
+
|
|
1522
|
+
initWithPersistentStoreCoordinatorConfigurationNameURLOptions(
|
|
1523
|
+
root: NSPersistentStoreCoordinator | null,
|
|
1524
|
+
name: string | null,
|
|
1525
|
+
url: NSURL,
|
|
1526
|
+
options:
|
|
1527
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1528
|
+
| Record<interop.Object, interop.Object>
|
|
1529
|
+
| null,
|
|
1530
|
+
): this
|
|
1531
|
+
|
|
1532
|
+
loadMetadata(error: interop.PointerConvertible): boolean
|
|
1533
|
+
|
|
1534
|
+
readonly persistentStoreCoordinator: NSPersistentStoreCoordinator
|
|
1535
|
+
|
|
1536
|
+
readonly configurationName: string
|
|
1537
|
+
|
|
1538
|
+
readonly options: NSDictionary
|
|
1539
|
+
|
|
1540
|
+
URL: NSURL
|
|
1541
|
+
|
|
1542
|
+
identifier: string
|
|
1543
|
+
|
|
1544
|
+
readonly type: string
|
|
1545
|
+
|
|
1546
|
+
readOnly: boolean
|
|
1547
|
+
|
|
1548
|
+
get metadata(): NSDictionary
|
|
1549
|
+
set metadata(
|
|
1550
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1551
|
+
)
|
|
1552
|
+
|
|
1553
|
+
didAddToPersistentStoreCoordinator(coordinator: NSPersistentStoreCoordinator): void
|
|
1554
|
+
|
|
1555
|
+
willRemoveFromPersistentStoreCoordinator(coordinator: NSPersistentStoreCoordinator | null): void
|
|
1556
|
+
|
|
1557
|
+
readonly coreSpotlightExporter: NSCoreDataCoreSpotlightDelegate
|
|
1558
|
+
|
|
1559
|
+
isReadOnly(): boolean
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
declare class NSManagedObjectModel
|
|
1563
|
+
extends NSObject
|
|
1564
|
+
implements NSCoding, NSCopying, NSFastEnumeration
|
|
1565
|
+
{
|
|
1566
|
+
static mergedModelFromBundles(
|
|
1567
|
+
bundles: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
1568
|
+
): NSManagedObjectModel
|
|
1569
|
+
|
|
1570
|
+
static modelByMergingModels(
|
|
1571
|
+
models: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
1572
|
+
): NSManagedObjectModel
|
|
1573
|
+
|
|
1574
|
+
init(): this
|
|
1575
|
+
|
|
1576
|
+
initWithContentsOfURL(url: NSURL): this
|
|
1577
|
+
|
|
1578
|
+
readonly entitiesByName: NSDictionary
|
|
1579
|
+
|
|
1580
|
+
get entities(): NSArray
|
|
1581
|
+
set entities(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1582
|
+
|
|
1583
|
+
readonly configurations: NSArray
|
|
1584
|
+
|
|
1585
|
+
entitiesForConfiguration(configuration: string | null): NSArray
|
|
1586
|
+
|
|
1587
|
+
setEntitiesForConfiguration(
|
|
1588
|
+
entities: NSArray<interop.Object> | Array<interop.Object>,
|
|
1589
|
+
configuration: string,
|
|
1590
|
+
): void
|
|
1591
|
+
|
|
1592
|
+
setFetchRequestTemplateForName(fetchRequestTemplate: NSFetchRequest | null, name: string): void
|
|
1593
|
+
|
|
1594
|
+
fetchRequestTemplateForName(name: string): NSFetchRequest
|
|
1595
|
+
|
|
1596
|
+
fetchRequestFromTemplateWithNameSubstitutionVariables(
|
|
1597
|
+
name: string,
|
|
1598
|
+
variables:
|
|
1599
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1600
|
+
| Record<interop.Object, interop.Object>,
|
|
1601
|
+
): NSFetchRequest
|
|
1602
|
+
|
|
1603
|
+
get localizationDictionary(): NSDictionary
|
|
1604
|
+
set localizationDictionary(
|
|
1605
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1606
|
+
)
|
|
1607
|
+
|
|
1608
|
+
static mergedModelFromBundlesForStoreMetadata(
|
|
1609
|
+
bundles: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
1610
|
+
metadata: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1611
|
+
): NSManagedObjectModel
|
|
1612
|
+
|
|
1613
|
+
static modelByMergingModelsForStoreMetadata(
|
|
1614
|
+
models: NSArray<interop.Object> | Array<interop.Object>,
|
|
1615
|
+
metadata: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1616
|
+
): NSManagedObjectModel
|
|
1617
|
+
|
|
1618
|
+
readonly fetchRequestTemplatesByName: NSDictionary
|
|
1619
|
+
|
|
1620
|
+
versionIdentifiers: NSSet
|
|
1621
|
+
|
|
1622
|
+
isConfigurationCompatibleWithStoreMetadata(
|
|
1623
|
+
configuration: string | null,
|
|
1624
|
+
metadata: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1625
|
+
): boolean
|
|
1626
|
+
|
|
1627
|
+
readonly entityVersionHashesByName: NSDictionary
|
|
1628
|
+
|
|
1629
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1630
|
+
|
|
1631
|
+
initWithCoder(coder: NSCoder): this
|
|
1632
|
+
|
|
1633
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1634
|
+
|
|
1635
|
+
countByEnumeratingWithStateObjectsCount(
|
|
1636
|
+
state: interop.PointerConvertible,
|
|
1637
|
+
buffer: interop.PointerConvertible,
|
|
1638
|
+
len: number,
|
|
1639
|
+
): number
|
|
1640
|
+
|
|
1641
|
+
readonly [Symbol.iterator]: () => Iterator<any>
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
declare class NSEntityDescription
|
|
1645
|
+
extends NSObject
|
|
1646
|
+
implements NSCoding, NSCopying, NSFastEnumeration
|
|
1647
|
+
{
|
|
1648
|
+
static entityForNameInManagedObjectContext(
|
|
1649
|
+
entityName: string,
|
|
1650
|
+
context: NSManagedObjectContext,
|
|
1651
|
+
): NSEntityDescription
|
|
1652
|
+
|
|
1653
|
+
static insertNewObjectForEntityForNameInManagedObjectContext(
|
|
1654
|
+
entityName: string,
|
|
1655
|
+
context: NSManagedObjectContext,
|
|
1656
|
+
): NSManagedObject
|
|
1657
|
+
|
|
1658
|
+
readonly managedObjectModel: NSManagedObjectModel
|
|
1659
|
+
|
|
1660
|
+
managedObjectClassName: string
|
|
1661
|
+
|
|
1662
|
+
name: string
|
|
1663
|
+
|
|
1664
|
+
abstract: boolean
|
|
1665
|
+
|
|
1666
|
+
readonly subentitiesByName: NSDictionary
|
|
1667
|
+
|
|
1668
|
+
get subentities(): NSArray
|
|
1669
|
+
set subentities(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1670
|
+
|
|
1671
|
+
readonly superentity: NSEntityDescription
|
|
1672
|
+
|
|
1673
|
+
readonly propertiesByName: NSDictionary
|
|
1674
|
+
|
|
1675
|
+
get properties(): NSArray
|
|
1676
|
+
set properties(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1677
|
+
|
|
1678
|
+
get userInfo(): NSDictionary
|
|
1679
|
+
set userInfo(
|
|
1680
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1681
|
+
)
|
|
1682
|
+
|
|
1683
|
+
readonly attributesByName: NSDictionary
|
|
1684
|
+
|
|
1685
|
+
readonly relationshipsByName: NSDictionary
|
|
1686
|
+
|
|
1687
|
+
relationshipsWithDestinationEntity(entity: NSEntityDescription): NSArray
|
|
1688
|
+
|
|
1689
|
+
isKindOfEntity(entity: NSEntityDescription): boolean
|
|
1690
|
+
|
|
1691
|
+
readonly versionHash: NSData
|
|
1692
|
+
|
|
1693
|
+
versionHashModifier: string
|
|
1694
|
+
|
|
1695
|
+
renamingIdentifier: string
|
|
1696
|
+
|
|
1697
|
+
get indexes(): NSArray
|
|
1698
|
+
set indexes(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1699
|
+
|
|
1700
|
+
get uniquenessConstraints(): NSArray
|
|
1701
|
+
set uniquenessConstraints(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1702
|
+
|
|
1703
|
+
get compoundIndexes(): NSArray
|
|
1704
|
+
set compoundIndexes(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1705
|
+
|
|
1706
|
+
coreSpotlightDisplayNameExpression: NSExpression
|
|
1707
|
+
|
|
1708
|
+
isAbstract(): boolean
|
|
1709
|
+
|
|
1710
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1711
|
+
|
|
1712
|
+
initWithCoder(coder: NSCoder): this
|
|
1713
|
+
|
|
1714
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1715
|
+
|
|
1716
|
+
countByEnumeratingWithStateObjectsCount(
|
|
1717
|
+
state: interop.PointerConvertible,
|
|
1718
|
+
buffer: interop.PointerConvertible,
|
|
1719
|
+
len: number,
|
|
1720
|
+
): number
|
|
1721
|
+
|
|
1722
|
+
readonly [Symbol.iterator]: () => Iterator<any>
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
declare class NSDerivedAttributeDescription extends NSAttributeDescription {
|
|
1726
|
+
derivationExpression: NSExpression
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
declare class NSPropertyDescription extends NSObject implements NSCoding, NSCopying {
|
|
1730
|
+
readonly entity: NSEntityDescription
|
|
1731
|
+
|
|
1732
|
+
name: string
|
|
1733
|
+
|
|
1734
|
+
optional: boolean
|
|
1735
|
+
|
|
1736
|
+
transient: boolean
|
|
1737
|
+
|
|
1738
|
+
readonly validationPredicates: NSArray
|
|
1739
|
+
|
|
1740
|
+
readonly validationWarnings: NSArray
|
|
1741
|
+
|
|
1742
|
+
setValidationPredicatesWithValidationWarnings(
|
|
1743
|
+
validationPredicates: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
1744
|
+
validationWarnings: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
1745
|
+
): void
|
|
1746
|
+
|
|
1747
|
+
get userInfo(): NSDictionary
|
|
1748
|
+
set userInfo(
|
|
1749
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1750
|
+
)
|
|
1751
|
+
|
|
1752
|
+
indexed: boolean
|
|
1753
|
+
|
|
1754
|
+
readonly versionHash: NSData
|
|
1755
|
+
|
|
1756
|
+
versionHashModifier: string
|
|
1757
|
+
|
|
1758
|
+
indexedBySpotlight: boolean
|
|
1759
|
+
|
|
1760
|
+
storedInExternalRecord: boolean
|
|
1761
|
+
|
|
1762
|
+
renamingIdentifier: string
|
|
1763
|
+
|
|
1764
|
+
isOptional(): boolean
|
|
1765
|
+
|
|
1766
|
+
isTransient(): boolean
|
|
1767
|
+
|
|
1768
|
+
isIndexed(): boolean
|
|
1769
|
+
|
|
1770
|
+
isIndexedBySpotlight(): boolean
|
|
1771
|
+
|
|
1772
|
+
isStoredInExternalRecord(): boolean
|
|
1773
|
+
|
|
1774
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1775
|
+
|
|
1776
|
+
initWithCoder(coder: NSCoder): this
|
|
1777
|
+
|
|
1778
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
declare class NSEntityMigrationPolicy extends NSObject {
|
|
1782
|
+
beginEntityMappingManagerError(
|
|
1783
|
+
mapping: NSEntityMapping,
|
|
1784
|
+
manager: NSMigrationManager,
|
|
1785
|
+
error: interop.PointerConvertible,
|
|
1786
|
+
): boolean
|
|
1787
|
+
|
|
1788
|
+
createDestinationInstancesForSourceInstanceEntityMappingManagerError(
|
|
1789
|
+
sInstance: NSManagedObject,
|
|
1790
|
+
mapping: NSEntityMapping,
|
|
1791
|
+
manager: NSMigrationManager,
|
|
1792
|
+
error: interop.PointerConvertible,
|
|
1793
|
+
): boolean
|
|
1794
|
+
|
|
1795
|
+
endInstanceCreationForEntityMappingManagerError(
|
|
1796
|
+
mapping: NSEntityMapping,
|
|
1797
|
+
manager: NSMigrationManager,
|
|
1798
|
+
error: interop.PointerConvertible,
|
|
1799
|
+
): boolean
|
|
1800
|
+
|
|
1801
|
+
createRelationshipsForDestinationInstanceEntityMappingManagerError(
|
|
1802
|
+
dInstance: NSManagedObject,
|
|
1803
|
+
mapping: NSEntityMapping,
|
|
1804
|
+
manager: NSMigrationManager,
|
|
1805
|
+
error: interop.PointerConvertible,
|
|
1806
|
+
): boolean
|
|
1807
|
+
|
|
1808
|
+
endRelationshipCreationForEntityMappingManagerError(
|
|
1809
|
+
mapping: NSEntityMapping,
|
|
1810
|
+
manager: NSMigrationManager,
|
|
1811
|
+
error: interop.PointerConvertible,
|
|
1812
|
+
): boolean
|
|
1813
|
+
|
|
1814
|
+
performCustomValidationForEntityMappingManagerError(
|
|
1815
|
+
mapping: NSEntityMapping,
|
|
1816
|
+
manager: NSMigrationManager,
|
|
1817
|
+
error: interop.PointerConvertible,
|
|
1818
|
+
): boolean
|
|
1819
|
+
|
|
1820
|
+
endEntityMappingManagerError(
|
|
1821
|
+
mapping: NSEntityMapping,
|
|
1822
|
+
manager: NSMigrationManager,
|
|
1823
|
+
error: interop.PointerConvertible,
|
|
1824
|
+
): boolean
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
declare class NSFetchIndexElementDescription extends NSObject implements NSCoding, NSCopying {
|
|
1828
|
+
initWithPropertyCollationType(
|
|
1829
|
+
property: NSPropertyDescription,
|
|
1830
|
+
collationType: interop.Enum<typeof NSFetchIndexElementType>,
|
|
1831
|
+
): this
|
|
1832
|
+
|
|
1833
|
+
readonly property: NSPropertyDescription
|
|
1834
|
+
|
|
1835
|
+
readonly propertyName: string
|
|
1836
|
+
|
|
1837
|
+
collationType: interop.Enum<typeof NSFetchIndexElementType>
|
|
1838
|
+
|
|
1839
|
+
ascending: boolean
|
|
1840
|
+
|
|
1841
|
+
readonly indexDescription: NSFetchIndexDescription
|
|
1842
|
+
|
|
1843
|
+
isAscending(): boolean
|
|
1844
|
+
|
|
1845
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1846
|
+
|
|
1847
|
+
initWithCoder(coder: NSCoder): this
|
|
1848
|
+
|
|
1849
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
declare class NSFetchedPropertyDescription extends NSPropertyDescription {
|
|
1853
|
+
fetchRequest: NSFetchRequest
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
declare class NSPersistentHistoryChange extends NSObject implements NSCopying {
|
|
1857
|
+
static entityDescriptionWithContext(context: NSManagedObjectContext): NSEntityDescription
|
|
1858
|
+
|
|
1859
|
+
static readonly entityDescription: NSEntityDescription
|
|
1860
|
+
|
|
1861
|
+
static readonly fetchRequest: NSFetchRequest
|
|
1862
|
+
|
|
1863
|
+
readonly changeID: number
|
|
1864
|
+
|
|
1865
|
+
readonly changedObjectID: NSManagedObjectID
|
|
1866
|
+
|
|
1867
|
+
readonly changeType: interop.Enum<typeof NSPersistentHistoryChangeType>
|
|
1868
|
+
|
|
1869
|
+
readonly tombstone: NSDictionary
|
|
1870
|
+
|
|
1871
|
+
readonly transaction: NSPersistentHistoryTransaction
|
|
1872
|
+
|
|
1873
|
+
readonly updatedProperties: NSSet
|
|
1874
|
+
|
|
1875
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
declare class NSPersistentCloudKitContainer extends NSPersistentContainer {
|
|
1879
|
+
initializeCloudKitSchemaWithOptionsError(
|
|
1880
|
+
options: interop.Enum<typeof NSPersistentCloudKitContainerSchemaInitializationOptions>,
|
|
1881
|
+
error: interop.PointerConvertible,
|
|
1882
|
+
): this
|
|
1883
|
+
|
|
1884
|
+
recordForManagedObjectID(managedObjectID: NSManagedObjectID): CKRecord
|
|
1885
|
+
|
|
1886
|
+
recordsForManagedObjectIDs(
|
|
1887
|
+
managedObjectIDs: NSArray<interop.Object> | Array<interop.Object>,
|
|
1888
|
+
): NSDictionary
|
|
1889
|
+
|
|
1890
|
+
recordIDForManagedObjectID(managedObjectID: NSManagedObjectID): CKRecordID
|
|
1891
|
+
|
|
1892
|
+
recordIDsForManagedObjectIDs(
|
|
1893
|
+
managedObjectIDs: NSArray<interop.Object> | Array<interop.Object>,
|
|
1894
|
+
): NSDictionary
|
|
1895
|
+
|
|
1896
|
+
canUpdateRecordForManagedObjectWithID(objectID: NSManagedObjectID): boolean
|
|
1897
|
+
|
|
1898
|
+
canDeleteRecordForManagedObjectWithID(objectID: NSManagedObjectID): boolean
|
|
1899
|
+
|
|
1900
|
+
canModifyManagedObjectsInStore(store: NSPersistentStore): boolean
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
declare class NSAsynchronousFetchRequest<
|
|
1904
|
+
ResultType = interop.Object,
|
|
1905
|
+
> extends NSPersistentStoreRequest {
|
|
1906
|
+
readonly fetchRequest: NSFetchRequest
|
|
1907
|
+
|
|
1908
|
+
readonly completionBlock: (p1: NSAsynchronousFetchResult) => void
|
|
1909
|
+
|
|
1910
|
+
estimatedResultCount: number
|
|
1911
|
+
|
|
1912
|
+
initWithFetchRequestCompletionBlock(
|
|
1913
|
+
request: NSFetchRequest,
|
|
1914
|
+
blk: (p1: NSAsynchronousFetchResult) => void | null,
|
|
1915
|
+
): this
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
declare class NSExpressionDescription extends NSPropertyDescription {
|
|
1919
|
+
expression: NSExpression
|
|
1920
|
+
|
|
1921
|
+
expressionResultType: interop.Enum<typeof NSAttributeType>
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
declare class NSPropertyMapping extends NSObject {
|
|
1925
|
+
name: string
|
|
1926
|
+
|
|
1927
|
+
valueExpression: NSExpression
|
|
1928
|
+
|
|
1929
|
+
get userInfo(): NSDictionary
|
|
1930
|
+
set userInfo(
|
|
1931
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1932
|
+
)
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
declare class NSPersistentCloudKitContainerEventResult extends NSPersistentStoreResult {
|
|
1936
|
+
readonly result: interop.Object
|
|
1937
|
+
|
|
1938
|
+
readonly resultType: interop.Enum<typeof NSPersistentCloudKitContainerEventResultType>
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
declare class NSFetchRequest<ResultType = interop.Object>
|
|
1942
|
+
extends NSPersistentStoreRequest
|
|
1943
|
+
implements NSCoding, NSCopying
|
|
1944
|
+
{
|
|
1945
|
+
static fetchRequestWithEntityName<ResultType, This extends abstract new (...args: any) => any>(
|
|
1946
|
+
this: This,
|
|
1947
|
+
entityName: string,
|
|
1948
|
+
): InstanceType<This>
|
|
1949
|
+
|
|
1950
|
+
init(): this
|
|
1951
|
+
|
|
1952
|
+
initWithEntityName(entityName: string): this
|
|
1953
|
+
|
|
1954
|
+
execute(error: interop.PointerConvertible): NSArray
|
|
1955
|
+
|
|
1956
|
+
entity: NSEntityDescription
|
|
1957
|
+
|
|
1958
|
+
readonly entityName: string
|
|
1959
|
+
|
|
1960
|
+
predicate: NSPredicate
|
|
1961
|
+
|
|
1962
|
+
get sortDescriptors(): NSArray
|
|
1963
|
+
set sortDescriptors(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1964
|
+
|
|
1965
|
+
fetchLimit: number
|
|
1966
|
+
|
|
1967
|
+
get affectedStores(): NSArray
|
|
1968
|
+
set affectedStores(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1969
|
+
|
|
1970
|
+
resultType: interop.Enum<typeof NSFetchRequestResultType>
|
|
1971
|
+
|
|
1972
|
+
includesSubentities: boolean
|
|
1973
|
+
|
|
1974
|
+
includesPropertyValues: boolean
|
|
1975
|
+
|
|
1976
|
+
returnsObjectsAsFaults: boolean
|
|
1977
|
+
|
|
1978
|
+
get relationshipKeyPathsForPrefetching(): NSArray
|
|
1979
|
+
set relationshipKeyPathsForPrefetching(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1980
|
+
|
|
1981
|
+
includesPendingChanges: boolean
|
|
1982
|
+
|
|
1983
|
+
returnsDistinctResults: boolean
|
|
1984
|
+
|
|
1985
|
+
get propertiesToFetch(): NSArray
|
|
1986
|
+
set propertiesToFetch(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1987
|
+
|
|
1988
|
+
fetchOffset: number
|
|
1989
|
+
|
|
1990
|
+
fetchBatchSize: number
|
|
1991
|
+
|
|
1992
|
+
shouldRefreshRefetchedObjects: boolean
|
|
1993
|
+
|
|
1994
|
+
get propertiesToGroupBy(): NSArray
|
|
1995
|
+
set propertiesToGroupBy(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1996
|
+
|
|
1997
|
+
havingPredicate: NSPredicate
|
|
1998
|
+
|
|
1999
|
+
encodeWithCoder(coder: NSCoder): void
|
|
2000
|
+
|
|
2001
|
+
initWithCoder(coder: NSCoder): this
|
|
2002
|
+
|
|
2003
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
declare class NSBatchInsertResult extends NSPersistentStoreResult {
|
|
2007
|
+
readonly result: interop.Object
|
|
2008
|
+
|
|
2009
|
+
readonly resultType: interop.Enum<typeof NSBatchInsertRequestResultType>
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
declare class NSSaveChangesRequest extends NSPersistentStoreRequest {
|
|
2013
|
+
initWithInsertedObjectsUpdatedObjectsDeletedObjectsLockedObjects(
|
|
2014
|
+
insertedObjects: NSSet | null,
|
|
2015
|
+
updatedObjects: NSSet | null,
|
|
2016
|
+
deletedObjects: NSSet | null,
|
|
2017
|
+
lockedObjects: NSSet | null,
|
|
2018
|
+
): this
|
|
2019
|
+
|
|
2020
|
+
readonly insertedObjects: NSSet
|
|
2021
|
+
|
|
2022
|
+
readonly updatedObjects: NSSet
|
|
2023
|
+
|
|
2024
|
+
readonly deletedObjects: NSSet
|
|
2025
|
+
|
|
2026
|
+
readonly lockedObjects: NSSet
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
declare class NSQueryGenerationToken extends NSObject implements NSCopying, NSSecureCoding {
|
|
2030
|
+
static readonly currentQueryGenerationToken: NSQueryGenerationToken
|
|
2031
|
+
|
|
2032
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
2033
|
+
|
|
2034
|
+
static readonly supportsSecureCoding: boolean
|
|
2035
|
+
|
|
2036
|
+
encodeWithCoder(coder: NSCoder): void
|
|
2037
|
+
|
|
2038
|
+
initWithCoder(coder: NSCoder): this
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
declare class NSRelationshipDescription extends NSPropertyDescription {
|
|
2042
|
+
destinationEntity: NSEntityDescription
|
|
2043
|
+
|
|
2044
|
+
inverseRelationship: NSRelationshipDescription
|
|
2045
|
+
|
|
2046
|
+
maxCount: number
|
|
2047
|
+
|
|
2048
|
+
minCount: number
|
|
2049
|
+
|
|
2050
|
+
deleteRule: interop.Enum<typeof NSDeleteRule>
|
|
2051
|
+
|
|
2052
|
+
readonly toMany: boolean
|
|
2053
|
+
|
|
2054
|
+
readonly versionHash: NSData
|
|
2055
|
+
|
|
2056
|
+
ordered: boolean
|
|
2057
|
+
|
|
2058
|
+
isToMany(): boolean
|
|
2059
|
+
|
|
2060
|
+
isOrdered(): boolean
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
declare class NSFetchedResultsController<ResultType = interop.Object> extends NSObject {
|
|
2064
|
+
initWithFetchRequestManagedObjectContextSectionNameKeyPathCacheName(
|
|
2065
|
+
fetchRequest: NSFetchRequest,
|
|
2066
|
+
context: NSManagedObjectContext,
|
|
2067
|
+
sectionNameKeyPath: string | null,
|
|
2068
|
+
name: string | null,
|
|
2069
|
+
): this
|
|
2070
|
+
|
|
2071
|
+
performFetch(error: interop.PointerConvertible): boolean
|
|
2072
|
+
|
|
2073
|
+
readonly fetchRequest: NSFetchRequest
|
|
2074
|
+
|
|
2075
|
+
readonly managedObjectContext: NSManagedObjectContext
|
|
2076
|
+
|
|
2077
|
+
readonly sectionNameKeyPath: string
|
|
2078
|
+
|
|
2079
|
+
readonly cacheName: string
|
|
2080
|
+
|
|
2081
|
+
delegate: NSFetchedResultsControllerDelegate
|
|
2082
|
+
|
|
2083
|
+
static deleteCacheWithName<ResultType>(name: string | null): void
|
|
2084
|
+
|
|
2085
|
+
readonly fetchedObjects: NSArray
|
|
2086
|
+
|
|
2087
|
+
objectAtIndexPath(indexPath: NSIndexPath): ResultType
|
|
2088
|
+
|
|
2089
|
+
indexPathForObject(object: ResultType): NSIndexPath
|
|
2090
|
+
|
|
2091
|
+
sectionIndexTitleForSectionName(sectionName: string): string
|
|
2092
|
+
|
|
2093
|
+
readonly sectionIndexTitles: NSArray
|
|
2094
|
+
|
|
2095
|
+
readonly sections: NSArray
|
|
2096
|
+
|
|
2097
|
+
sectionForSectionIndexTitleAtIndex(title: string, sectionIndex: number): number
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
declare class NSManagedObjectID extends NSObject implements NSCopying, NSFetchRequestResult {
|
|
2101
|
+
readonly entity: NSEntityDescription
|
|
2102
|
+
|
|
2103
|
+
readonly persistentStore: NSPersistentStore
|
|
2104
|
+
|
|
2105
|
+
readonly temporaryID: boolean
|
|
2106
|
+
|
|
2107
|
+
URIRepresentation(): NSURL
|
|
2108
|
+
|
|
2109
|
+
isTemporaryID(): boolean
|
|
2110
|
+
|
|
2111
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
2112
|
+
|
|
2113
|
+
isEqual(object: interop.Object): boolean
|
|
2114
|
+
|
|
2115
|
+
readonly hash: number
|
|
2116
|
+
|
|
2117
|
+
readonly superclass: interop.Pointer
|
|
2118
|
+
|
|
2119
|
+
class(): interop.Pointer
|
|
2120
|
+
|
|
2121
|
+
self(): this
|
|
2122
|
+
|
|
2123
|
+
performSelector(aSelector: string): interop.Object
|
|
2124
|
+
|
|
2125
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
2126
|
+
|
|
2127
|
+
performSelectorWithObjectWithObject(
|
|
2128
|
+
aSelector: string,
|
|
2129
|
+
object1: interop.Object,
|
|
2130
|
+
object2: interop.Object,
|
|
2131
|
+
): interop.Object
|
|
2132
|
+
|
|
2133
|
+
readonly isProxy: boolean
|
|
2134
|
+
|
|
2135
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
2136
|
+
|
|
2137
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
2138
|
+
|
|
2139
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
2140
|
+
|
|
2141
|
+
respondsToSelector(aSelector: string): boolean
|
|
2142
|
+
|
|
2143
|
+
retain(): this
|
|
2144
|
+
|
|
2145
|
+
release(): void
|
|
2146
|
+
|
|
2147
|
+
autorelease(): this
|
|
2148
|
+
|
|
2149
|
+
retainCount(): number
|
|
2150
|
+
|
|
2151
|
+
readonly zone: interop.Pointer
|
|
2152
|
+
|
|
2153
|
+
readonly description: string
|
|
2154
|
+
|
|
2155
|
+
readonly debugDescription: string
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
declare class NSMergePolicy extends NSObject {
|
|
2159
|
+
static readonly errorMergePolicy: NSMergePolicy
|
|
2160
|
+
|
|
2161
|
+
static readonly rollbackMergePolicy: NSMergePolicy
|
|
2162
|
+
|
|
2163
|
+
static readonly overwriteMergePolicy: NSMergePolicy
|
|
2164
|
+
|
|
2165
|
+
static readonly mergeByPropertyObjectTrumpMergePolicy: NSMergePolicy
|
|
2166
|
+
|
|
2167
|
+
static readonly mergeByPropertyStoreTrumpMergePolicy: NSMergePolicy
|
|
2168
|
+
|
|
2169
|
+
readonly mergeType: interop.Enum<typeof NSMergePolicyType>
|
|
2170
|
+
|
|
2171
|
+
initWithMergeType(ty: interop.Enum<typeof NSMergePolicyType>): this
|
|
2172
|
+
|
|
2173
|
+
resolveConflictsError(
|
|
2174
|
+
list: NSArray<interop.Object> | Array<interop.Object>,
|
|
2175
|
+
error: interop.PointerConvertible,
|
|
2176
|
+
): boolean
|
|
2177
|
+
|
|
2178
|
+
resolveOptimisticLockingVersionConflictsError(
|
|
2179
|
+
list: NSArray<interop.Object> | Array<interop.Object>,
|
|
2180
|
+
error: interop.PointerConvertible,
|
|
2181
|
+
): boolean
|
|
2182
|
+
|
|
2183
|
+
resolveConstraintConflictsError(
|
|
2184
|
+
list: NSArray<interop.Object> | Array<interop.Object>,
|
|
2185
|
+
error: interop.PointerConvertible,
|
|
2186
|
+
): boolean
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
declare class NSPersistentStoreAsynchronousResult extends NSPersistentStoreResult {
|
|
2190
|
+
readonly managedObjectContext: NSManagedObjectContext
|
|
2191
|
+
|
|
2192
|
+
readonly operationError: NSError
|
|
2193
|
+
|
|
2194
|
+
readonly progress: NSProgress
|
|
2195
|
+
|
|
2196
|
+
cancel(): void
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
declare class NSPersistentHistoryResult extends NSPersistentStoreResult {
|
|
2200
|
+
readonly result: interop.Object
|
|
2201
|
+
|
|
2202
|
+
readonly resultType: interop.Enum<typeof NSPersistentHistoryResultType>
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
declare class NSManagedObjectContext
|
|
2206
|
+
extends NSObject
|
|
2207
|
+
implements NSCoding, NSLocking, NSEditor, NSEditorRegistration
|
|
2208
|
+
{
|
|
2209
|
+
static new<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>
|
|
2210
|
+
|
|
2211
|
+
init(): this
|
|
2212
|
+
|
|
2213
|
+
initWithConcurrencyType(ct: interop.Enum<typeof NSManagedObjectContextConcurrencyType>): this
|
|
2214
|
+
|
|
2215
|
+
performBlock(block: () => void): void
|
|
2216
|
+
|
|
2217
|
+
performBlockAndWait(block: () => void): void
|
|
2218
|
+
|
|
2219
|
+
persistentStoreCoordinator: NSPersistentStoreCoordinator
|
|
2220
|
+
|
|
2221
|
+
parentContext: NSManagedObjectContext
|
|
2222
|
+
|
|
2223
|
+
name: string
|
|
2224
|
+
|
|
2225
|
+
undoManager: NSUndoManager
|
|
2226
|
+
|
|
2227
|
+
readonly hasChanges: boolean
|
|
2228
|
+
|
|
2229
|
+
readonly userInfo: NSMutableDictionary
|
|
2230
|
+
|
|
2231
|
+
readonly concurrencyType: interop.Enum<typeof NSManagedObjectContextConcurrencyType>
|
|
2232
|
+
|
|
2233
|
+
objectRegisteredForID(objectID: NSManagedObjectID): NSManagedObject
|
|
2234
|
+
|
|
2235
|
+
objectWithID(objectID: NSManagedObjectID): NSManagedObject
|
|
2236
|
+
|
|
2237
|
+
existingObjectWithIDError(
|
|
2238
|
+
objectID: NSManagedObjectID,
|
|
2239
|
+
error: interop.PointerConvertible,
|
|
2240
|
+
): NSManagedObject
|
|
2241
|
+
|
|
2242
|
+
executeFetchRequestError(request: NSFetchRequest, error: interop.PointerConvertible): NSArray
|
|
2243
|
+
|
|
2244
|
+
countForFetchRequestError(request: NSFetchRequest, error: interop.PointerConvertible): number
|
|
2245
|
+
|
|
2246
|
+
executeRequestError(
|
|
2247
|
+
request: NSPersistentStoreRequest,
|
|
2248
|
+
error: interop.PointerConvertible,
|
|
2249
|
+
): NSPersistentStoreResult
|
|
2250
|
+
|
|
2251
|
+
insertObject(object: NSManagedObject): void
|
|
2252
|
+
|
|
2253
|
+
deleteObject(object: NSManagedObject): void
|
|
2254
|
+
|
|
2255
|
+
refreshObjectMergeChanges(object: NSManagedObject, flag: boolean): void
|
|
2256
|
+
|
|
2257
|
+
detectConflictsForObject(object: NSManagedObject): void
|
|
2258
|
+
|
|
2259
|
+
observeValueForKeyPathOfObjectChangeContext(
|
|
2260
|
+
keyPath: string | null,
|
|
2261
|
+
object: interop.Object | null,
|
|
2262
|
+
change:
|
|
2263
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
2264
|
+
| Record<interop.Object, interop.Object>
|
|
2265
|
+
| null,
|
|
2266
|
+
context: interop.PointerConvertible,
|
|
2267
|
+
): void
|
|
2268
|
+
|
|
2269
|
+
processPendingChanges(): void
|
|
2270
|
+
|
|
2271
|
+
assignObjectToPersistentStore(object: interop.Object, store: NSPersistentStore): void
|
|
2272
|
+
|
|
2273
|
+
readonly insertedObjects: NSSet
|
|
2274
|
+
|
|
2275
|
+
readonly updatedObjects: NSSet
|
|
2276
|
+
|
|
2277
|
+
readonly deletedObjects: NSSet
|
|
2278
|
+
|
|
2279
|
+
readonly registeredObjects: NSSet
|
|
2280
|
+
|
|
2281
|
+
undo(): void
|
|
2282
|
+
|
|
2283
|
+
redo(): void
|
|
2284
|
+
|
|
2285
|
+
reset(): void
|
|
2286
|
+
|
|
2287
|
+
rollback(): void
|
|
2288
|
+
|
|
2289
|
+
save(error: interop.PointerConvertible): boolean
|
|
2290
|
+
|
|
2291
|
+
refreshAllObjects(): void
|
|
2292
|
+
|
|
2293
|
+
lock(): void
|
|
2294
|
+
|
|
2295
|
+
unlock(): void
|
|
2296
|
+
|
|
2297
|
+
tryLock(): boolean
|
|
2298
|
+
|
|
2299
|
+
propagatesDeletesAtEndOfEvent: boolean
|
|
2300
|
+
|
|
2301
|
+
retainsRegisteredObjects: boolean
|
|
2302
|
+
|
|
2303
|
+
shouldDeleteInaccessibleFaults: boolean
|
|
2304
|
+
|
|
2305
|
+
shouldHandleInaccessibleFaultForObjectIDTriggeredByProperty(
|
|
2306
|
+
fault: NSManagedObject,
|
|
2307
|
+
oid: NSManagedObjectID,
|
|
2308
|
+
property: NSPropertyDescription | null,
|
|
2309
|
+
): boolean
|
|
2310
|
+
|
|
2311
|
+
stalenessInterval: number
|
|
2312
|
+
|
|
2313
|
+
mergePolicy: interop.Object
|
|
2314
|
+
|
|
2315
|
+
obtainPermanentIDsForObjectsError(
|
|
2316
|
+
objects: NSArray<interop.Object> | Array<interop.Object>,
|
|
2317
|
+
error: interop.PointerConvertible,
|
|
2318
|
+
): boolean
|
|
2319
|
+
|
|
2320
|
+
mergeChangesFromContextDidSaveNotification(notification: NSNotification): void
|
|
2321
|
+
|
|
2322
|
+
static mergeChangesFromRemoteContextSaveIntoContexts(
|
|
2323
|
+
changeNotificationData:
|
|
2324
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
2325
|
+
| Record<interop.Object, interop.Object>,
|
|
2326
|
+
contexts: NSArray<interop.Object> | Array<interop.Object>,
|
|
2327
|
+
): void
|
|
2328
|
+
|
|
2329
|
+
readonly queryGenerationToken: NSQueryGenerationToken
|
|
2330
|
+
|
|
2331
|
+
setQueryGenerationFromTokenError(
|
|
2332
|
+
generation: NSQueryGenerationToken | null,
|
|
2333
|
+
error: interop.PointerConvertible,
|
|
2334
|
+
): boolean
|
|
2335
|
+
|
|
2336
|
+
automaticallyMergesChangesFromParent: boolean
|
|
2337
|
+
|
|
2338
|
+
transactionAuthor: string
|
|
2339
|
+
|
|
2340
|
+
encodeWithCoder(coder: NSCoder): void
|
|
2341
|
+
|
|
2342
|
+
initWithCoder(coder: NSCoder): this
|
|
2343
|
+
|
|
2344
|
+
discardEditing(): void
|
|
2345
|
+
|
|
2346
|
+
commitEditing(): boolean
|
|
2347
|
+
|
|
2348
|
+
commitEditingWithDelegateDidCommitSelectorContextInfo(
|
|
2349
|
+
delegate: interop.Object | null,
|
|
2350
|
+
didCommitSelector: string | null,
|
|
2351
|
+
contextInfo: interop.PointerConvertible,
|
|
2352
|
+
): void
|
|
2353
|
+
|
|
2354
|
+
commitEditingAndReturnError(error: interop.PointerConvertible): boolean
|
|
2355
|
+
|
|
2356
|
+
isEqual(object: interop.Object): boolean
|
|
2357
|
+
|
|
2358
|
+
readonly hash: number
|
|
2359
|
+
|
|
2360
|
+
readonly superclass: interop.Pointer
|
|
2361
|
+
|
|
2362
|
+
class(): interop.Pointer
|
|
2363
|
+
|
|
2364
|
+
self(): this
|
|
2365
|
+
|
|
2366
|
+
performSelector(aSelector: string): interop.Object
|
|
2367
|
+
|
|
2368
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
2369
|
+
|
|
2370
|
+
performSelectorWithObjectWithObject(
|
|
2371
|
+
aSelector: string,
|
|
2372
|
+
object1: interop.Object,
|
|
2373
|
+
object2: interop.Object,
|
|
2374
|
+
): interop.Object
|
|
2375
|
+
|
|
2376
|
+
readonly isProxy: boolean
|
|
2377
|
+
|
|
2378
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
2379
|
+
|
|
2380
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
2381
|
+
|
|
2382
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
2383
|
+
|
|
2384
|
+
respondsToSelector(aSelector: string): boolean
|
|
2385
|
+
|
|
2386
|
+
retain(): this
|
|
2387
|
+
|
|
2388
|
+
release(): void
|
|
2389
|
+
|
|
2390
|
+
autorelease(): this
|
|
2391
|
+
|
|
2392
|
+
retainCount(): number
|
|
2393
|
+
|
|
2394
|
+
readonly zone: interop.Pointer
|
|
2395
|
+
|
|
2396
|
+
readonly description: string
|
|
2397
|
+
|
|
2398
|
+
readonly debugDescription: string
|
|
2399
|
+
|
|
2400
|
+
objectDidBeginEditing(editor: NSEditor): void
|
|
2401
|
+
|
|
2402
|
+
objectDidEndEditing(editor: NSEditor): void
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
declare class NSIncrementalStore extends NSPersistentStore {
|
|
2406
|
+
loadMetadata(error: interop.PointerConvertible): boolean
|
|
2407
|
+
|
|
2408
|
+
executeRequestWithContextError(
|
|
2409
|
+
request: NSPersistentStoreRequest,
|
|
2410
|
+
context: NSManagedObjectContext | null,
|
|
2411
|
+
error: interop.PointerConvertible,
|
|
2412
|
+
): interop.Object
|
|
2413
|
+
|
|
2414
|
+
newValuesForObjectWithIDWithContextError(
|
|
2415
|
+
objectID: NSManagedObjectID,
|
|
2416
|
+
context: NSManagedObjectContext,
|
|
2417
|
+
error: interop.PointerConvertible,
|
|
2418
|
+
): NSIncrementalStoreNode
|
|
2419
|
+
|
|
2420
|
+
newValueForRelationshipForObjectWithIDWithContextError(
|
|
2421
|
+
relationship: NSRelationshipDescription,
|
|
2422
|
+
objectID: NSManagedObjectID,
|
|
2423
|
+
context: NSManagedObjectContext | null,
|
|
2424
|
+
error: interop.PointerConvertible,
|
|
2425
|
+
): interop.Object
|
|
2426
|
+
|
|
2427
|
+
static identifierForNewStoreAtURL(storeURL: NSURL): interop.Object
|
|
2428
|
+
|
|
2429
|
+
obtainPermanentIDsForObjectsError(
|
|
2430
|
+
array: NSArray<interop.Object> | Array<interop.Object>,
|
|
2431
|
+
error: interop.PointerConvertible,
|
|
2432
|
+
): NSArray
|
|
2433
|
+
|
|
2434
|
+
managedObjectContextDidRegisterObjectsWithIDs(
|
|
2435
|
+
objectIDs: NSArray<interop.Object> | Array<interop.Object>,
|
|
2436
|
+
): void
|
|
2437
|
+
|
|
2438
|
+
managedObjectContextDidUnregisterObjectsWithIDs(
|
|
2439
|
+
objectIDs: NSArray<interop.Object> | Array<interop.Object>,
|
|
2440
|
+
): void
|
|
2441
|
+
|
|
2442
|
+
newObjectIDForEntityReferenceObject(
|
|
2443
|
+
entity: NSEntityDescription,
|
|
2444
|
+
data: interop.Object,
|
|
2445
|
+
): NSManagedObjectID
|
|
2446
|
+
|
|
2447
|
+
referenceObjectForObjectID(objectID: NSManagedObjectID): interop.Object
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
declare class NSMappingModel extends NSObject {
|
|
2451
|
+
static mappingModelFromBundlesForSourceModelDestinationModel(
|
|
2452
|
+
bundles: NSArray<interop.Object> | Array<interop.Object> | null,
|
|
2453
|
+
sourceModel: NSManagedObjectModel | null,
|
|
2454
|
+
destinationModel: NSManagedObjectModel | null,
|
|
2455
|
+
): NSMappingModel
|
|
2456
|
+
|
|
2457
|
+
static inferredMappingModelForSourceModelDestinationModelError(
|
|
2458
|
+
sourceModel: NSManagedObjectModel,
|
|
2459
|
+
destinationModel: NSManagedObjectModel,
|
|
2460
|
+
error: interop.PointerConvertible,
|
|
2461
|
+
): NSMappingModel
|
|
2462
|
+
|
|
2463
|
+
initWithContentsOfURL(url: NSURL | null): this
|
|
2464
|
+
|
|
2465
|
+
get entityMappings(): NSArray
|
|
2466
|
+
set entityMappings(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
2467
|
+
|
|
2468
|
+
readonly entityMappingsByName: NSDictionary
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
declare class NSPersistentHistoryToken extends NSObject implements NSCopying, NSSecureCoding {
|
|
2472
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
2473
|
+
|
|
2474
|
+
static readonly supportsSecureCoding: boolean
|
|
2475
|
+
|
|
2476
|
+
encodeWithCoder(coder: NSCoder): void
|
|
2477
|
+
|
|
2478
|
+
initWithCoder(coder: NSCoder): this
|
|
2479
|
+
}
|