@tsonic/efcore-sqlserver 10.0.40 → 10.0.42
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/Azure/internal/index.d.ts +68 -70
- package/Azure.Core/bindings.json +2859 -2859
- package/Azure.Core/internal/index.d.ts +100 -102
- package/Azure.Core.Cryptography/internal/index.d.ts +3 -2
- package/Azure.Core.Cryptography.d.ts +4 -0
- package/Azure.Core.Diagnostics/internal/index.d.ts +3 -2
- package/Azure.Core.Diagnostics.d.ts +4 -0
- package/Azure.Core.Extensions/internal/index.d.ts +12 -10
- package/Azure.Core.Extensions.d.ts +6 -2
- package/Azure.Core.GeoJson/internal/index.d.ts +20 -22
- package/Azure.Core.GeoJson.d.ts +4 -0
- package/Azure.Core.Pipeline/internal/index.d.ts +20 -19
- package/Azure.Core.Pipeline.d.ts +4 -0
- package/Azure.Core.Serialization/internal/index.d.ts +15 -14
- package/Azure.Core.Serialization.d.ts +4 -0
- package/Azure.Core.d.ts +7 -3
- package/Azure.Identity/internal/index.d.ts +3 -2
- package/Azure.Identity.d.ts +4 -0
- package/Azure.Messaging/internal/index.d.ts +16 -15
- package/Azure.Messaging.d.ts +4 -0
- package/Azure.d.ts +8 -4
- package/Microsoft.Data/internal/index.d.ts +3 -2
- package/Microsoft.Data.Sql/internal/index.d.ts +3 -2
- package/Microsoft.Data.Sql.d.ts +4 -0
- package/Microsoft.Data.SqlClient/internal/index.d.ts +7 -9
- package/Microsoft.Data.SqlClient.DataClassification/internal/index.d.ts +3 -2
- package/Microsoft.Data.SqlClient.DataClassification.d.ts +4 -0
- package/Microsoft.Data.SqlClient.Diagnostics/internal/index.d.ts +3 -2
- package/Microsoft.Data.SqlClient.Diagnostics.d.ts +4 -0
- package/Microsoft.Data.SqlClient.Server/internal/index.d.ts +3 -2
- package/Microsoft.Data.SqlClient.Server.d.ts +4 -0
- package/Microsoft.Data.SqlClient.d.ts +4 -0
- package/Microsoft.Data.SqlTypes/bindings.json +4 -1
- package/Microsoft.Data.SqlTypes/internal/index.d.ts +8 -7
- package/Microsoft.Data.SqlTypes.d.ts +4 -0
- package/Microsoft.Data.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore/internal/index.d.ts +200 -202
- package/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.d.ts +3 -2
- package/Microsoft.EntityFrameworkCore.Diagnostics.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.Infrastructure/internal/index.d.ts +10 -9
- package/Microsoft.EntityFrameworkCore.Infrastructure.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.Metadata/internal/index.d.ts +3 -2
- package/Microsoft.EntityFrameworkCore.Metadata.Builders/internal/index.d.ts +23 -22
- package/Microsoft.EntityFrameworkCore.Metadata.Builders.d.ts +6 -2
- package/Microsoft.EntityFrameworkCore.Metadata.Conventions/internal/index.d.ts +20 -22
- package/Microsoft.EntityFrameworkCore.Metadata.Conventions.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/index.d.ts +2 -4
- package/Microsoft.EntityFrameworkCore.Metadata.Internal.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.Metadata.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.Migrations/internal/index.d.ts +45 -44
- package/Microsoft.EntityFrameworkCore.Migrations.Operations/internal/index.d.ts +5 -4
- package/Microsoft.EntityFrameworkCore.Migrations.Operations.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.Migrations.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/internal/index.d.ts +5 -4
- package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/internal/index.d.ts +26 -25
- package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/internal/index.d.ts +27 -26
- package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal.d.ts +5 -1
- package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/internal/index.d.ts +16 -18
- package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal.d.ts +5 -1
- package/Microsoft.EntityFrameworkCore.SqlServer.Internal/internal/index.d.ts +50 -49
- package/Microsoft.EntityFrameworkCore.SqlServer.Internal.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/internal/index.d.ts +3 -2
- package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/internal/index.d.ts +4 -3
- package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/bindings.json +418 -418
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/internal/index.d.ts +96 -98
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/internal/index.d.ts +4 -3
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.d.ts +8 -4
- package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/internal/index.d.ts +9 -8
- package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal.d.ts +5 -1
- package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/internal/index.d.ts +18 -20
- package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.d.ts +6 -2
- package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/internal/index.d.ts +8 -10
- package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/internal/index.d.ts +10 -12
- package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal.d.ts +4 -0
- package/Microsoft.EntityFrameworkCore.d.ts +4 -0
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +6 -5
- package/Microsoft.Extensions.DependencyInjection.d.ts +4 -0
- package/Microsoft.Identity.Client/bindings.json +100 -100
- package/Microsoft.Identity.Client/internal/index.d.ts +33 -35
- package/Microsoft.Identity.Client.Advanced/internal/index.d.ts +4 -3
- package/Microsoft.Identity.Client.Advanced.d.ts +4 -0
- package/Microsoft.Identity.Client.AppConfig/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.AppConfig.d.ts +4 -0
- package/Microsoft.Identity.Client.AuthScheme/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.AuthScheme.PoP/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.AuthScheme.PoP.d.ts +4 -0
- package/Microsoft.Identity.Client.AuthScheme.d.ts +4 -0
- package/Microsoft.Identity.Client.Cache/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.Cache.d.ts +4 -0
- package/Microsoft.Identity.Client.Extensibility/internal/index.d.ts +8 -7
- package/Microsoft.Identity.Client.Extensibility.d.ts +4 -0
- package/Microsoft.Identity.Client.Extensions.Msal/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.Extensions.Msal.d.ts +4 -0
- package/Microsoft.Identity.Client.Kerberos/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.Kerberos.d.ts +4 -0
- package/Microsoft.Identity.Client.ManagedIdentity/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.ManagedIdentity.d.ts +4 -0
- package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos.d.ts +4 -0
- package/Microsoft.Identity.Client.RP/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.RP.d.ts +4 -0
- package/Microsoft.Identity.Client.Region/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.Region.d.ts +4 -0
- package/Microsoft.Identity.Client.SSHCertificates/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.SSHCertificates.d.ts +4 -0
- package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient.d.ts +4 -0
- package/Microsoft.Identity.Client.Utils/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.Utils.Windows/internal/index.d.ts +3 -2
- package/Microsoft.Identity.Client.Utils.Windows.d.ts +4 -0
- package/Microsoft.Identity.Client.Utils.d.ts +4 -0
- package/Microsoft.Identity.Client.d.ts +5 -1
- package/Microsoft.IdentityModel.Abstractions/internal/index.d.ts +11 -10
- package/Microsoft.IdentityModel.Abstractions.d.ts +4 -0
- package/Microsoft.IdentityModel.JsonWebTokens/internal/index.d.ts +8 -10
- package/Microsoft.IdentityModel.JsonWebTokens.d.ts +4 -0
- package/Microsoft.IdentityModel.Logging/internal/index.d.ts +19 -18
- package/Microsoft.IdentityModel.Logging.d.ts +4 -0
- package/Microsoft.IdentityModel.Protocols/internal/index.d.ts +22 -21
- package/Microsoft.IdentityModel.Protocols.Configuration/internal/index.d.ts +3 -2
- package/Microsoft.IdentityModel.Protocols.Configuration.d.ts +4 -0
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect/internal/index.d.ts +3 -2
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/internal/index.d.ts +3 -2
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration.d.ts +4 -0
- package/Microsoft.IdentityModel.Protocols.OpenIdConnect.d.ts +4 -0
- package/Microsoft.IdentityModel.Protocols.d.ts +7 -3
- package/Microsoft.IdentityModel.Tokens/internal/index.d.ts +3 -5
- package/Microsoft.IdentityModel.Tokens.Configuration/internal/index.d.ts +3 -2
- package/Microsoft.IdentityModel.Tokens.Configuration.d.ts +4 -0
- package/Microsoft.IdentityModel.Tokens.d.ts +4 -0
- package/Microsoft.SqlServer.Server/internal/index.d.ts +3 -2
- package/Microsoft.SqlServer.Server.d.ts +4 -0
- package/README.md +36 -13
- package/System/internal/index.d.ts +20 -19
- package/System.ClientModel/internal/index.d.ts +23 -25
- package/System.ClientModel.Primitives/internal/index.d.ts +73 -75
- package/System.ClientModel.Primitives.d.ts +6 -2
- package/System.ClientModel.d.ts +6 -2
- package/System.Configuration/internal/index.d.ts +3 -2
- package/System.Configuration.Internal/internal/index.d.ts +2 -4
- package/System.Configuration.Internal.d.ts +4 -0
- package/System.Configuration.Provider/internal/index.d.ts +3 -2
- package/System.Configuration.Provider.d.ts +4 -0
- package/System.Configuration.d.ts +4 -0
- package/System.Diagnostics/internal/index.d.ts +3 -2
- package/System.Diagnostics.d.ts +4 -0
- package/System.Drawing.Configuration/internal/index.d.ts +3 -2
- package/System.Drawing.Configuration.d.ts +4 -0
- package/System.IdentityModel.Tokens.Jwt/internal/index.d.ts +3 -5
- package/System.IdentityModel.Tokens.Jwt.d.ts +4 -0
- package/System.Security.Cryptography/internal/index.d.ts +5 -4
- package/System.Security.Cryptography.d.ts +4 -0
- package/System.Text.Json.Serialization/internal/index.d.ts +3 -5
- package/System.Text.Json.Serialization.d.ts +4 -0
- package/System.d.ts +4 -0
- package/__internal/extensions/index.d.ts +222 -224
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
# @tsonic/efcore-sqlserver
|
|
2
2
|
|
|
3
|
-
TypeScript
|
|
3
|
+
TypeScript declarations and CLR binding metadata for the EF Core SQL Server
|
|
4
|
+
provider (`Microsoft.EntityFrameworkCore.SqlServer`) on .NET 10.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
This is a generated binding package. It exposes provider APIs to TypeScript and
|
|
7
|
+
Tsonic while your workspace references the real NuGet assemblies.
|
|
6
8
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
- ✅ TypeScript bindings for the **SQL Server provider** (and its required dependency assemblies).
|
|
10
|
-
- ❌ Not a JavaScript runtime module (the `.js` files are module stubs for type-only use).
|
|
11
|
-
- ✅ You still need the real **.NET assemblies** via NuGet in your Tsonic workspace.
|
|
12
|
-
|
|
13
|
-
## Install (types)
|
|
9
|
+
## Install
|
|
14
10
|
|
|
15
11
|
```bash
|
|
16
12
|
npm install @tsonic/efcore-sqlserver @tsonic/efcore @tsonic/dotnet @tsonic/core
|
|
17
13
|
```
|
|
18
14
|
|
|
19
|
-
## Use with Tsonic
|
|
15
|
+
## Use with Tsonic
|
|
20
16
|
|
|
21
17
|
```bash
|
|
22
18
|
tsonic add nuget Microsoft.EntityFrameworkCore.SqlServer <version> @tsonic/efcore-sqlserver
|
|
19
|
+
tsonic restore
|
|
23
20
|
```
|
|
24
21
|
|
|
25
22
|
## Imports
|
|
26
23
|
|
|
24
|
+
Provider APIs are exported from the generated `Microsoft.EntityFrameworkCore`
|
|
25
|
+
namespace facade:
|
|
26
|
+
|
|
27
27
|
```ts
|
|
28
28
|
import { SqlServerDbContextOptionsExtensions } from "@tsonic/efcore-sqlserver/Microsoft.EntityFrameworkCore.js";
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Use EF Core base types from `@tsonic/efcore`:
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
34
|
import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
##
|
|
37
|
+
## UseSqlServer example
|
|
38
38
|
|
|
39
39
|
```ts
|
|
40
40
|
import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
|
|
@@ -45,12 +45,35 @@ SqlServerDbContextOptionsExtensions.UseSqlServer(builder, "Server=.;Database=app
|
|
|
45
45
|
const options = builder.Options;
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
## Package shape
|
|
49
|
+
|
|
50
|
+
The package contains generated namespace facades, ESM stubs, internal
|
|
51
|
+
declarations, extension buckets, and `bindings.json` compiler metadata. It uses
|
|
52
|
+
`@tsonic/efcore`, `@tsonic/microsoft-extensions`, `@tsonic/dotnet`, and
|
|
53
|
+
`@tsonic/core` as peer packages for shared CLR types.
|
|
54
|
+
|
|
55
|
+
Generated CLR object slots use TypeScript `unknown`; value-type constraints use
|
|
56
|
+
`NonNullable<unknown>`. Provider code that receives a broad CLR value should
|
|
57
|
+
narrow it through a proven API before member access.
|
|
58
|
+
|
|
48
59
|
## Versioning
|
|
49
60
|
|
|
50
|
-
This repo is versioned by
|
|
61
|
+
This repo is versioned by .NET major:
|
|
51
62
|
|
|
52
63
|
- .NET 10 → npm: `@tsonic/efcore-sqlserver@10.x`
|
|
53
64
|
|
|
65
|
+
## Development
|
|
66
|
+
|
|
67
|
+
Regenerate from sibling checkouts:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
npm install
|
|
71
|
+
./__build/scripts/generate.sh
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The generation script requires .NET 10, `../tsbindgen`, `../dotnet`,
|
|
75
|
+
`../microsoft-extensions`, and `../efcore`.
|
|
76
|
+
|
|
54
77
|
## License
|
|
55
78
|
|
|
56
79
|
MIT
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: System
|
|
3
3
|
// Assembly: System.ComponentModel, System.ComponentModel.TypeConverter, System.Configuration.ConfigurationManager, System.Console, System.Memory, System.Memory.Data, System.Private.CoreLib, System.Private.Uri
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
6
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
|
+
|
|
7
8
|
|
|
8
9
|
// Import types from other namespaces
|
|
9
10
|
import type { Stream } from "@tsonic/dotnet/System.IO/internal/index.js";
|
|
@@ -27,40 +28,40 @@ export interface BinaryData$instance {
|
|
|
27
28
|
|
|
28
29
|
readonly IsEmpty: boolean;
|
|
29
30
|
readonly Length: int;
|
|
30
|
-
readonly MediaType: string |
|
|
31
|
-
Equals(obj: unknown): boolean;
|
|
31
|
+
readonly MediaType: string | null;
|
|
32
|
+
Equals(obj: unknown | null): boolean;
|
|
32
33
|
GetHashCode(): int;
|
|
33
34
|
ToArray(): byte[];
|
|
34
35
|
ToMemory(): ReadOnlyMemory_1<Byte>;
|
|
35
|
-
ToObjectFromJson<T>(options?: JsonSerializerOptions): T |
|
|
36
|
-
ToObjectFromJson<T>(jsonTypeInfo: JsonTypeInfo_1<T>): T |
|
|
36
|
+
ToObjectFromJson<T extends unknown>(options?: JsonSerializerOptions | null): T | null;
|
|
37
|
+
ToObjectFromJson<T extends unknown>(jsonTypeInfo: JsonTypeInfo_1<T>): T | null;
|
|
37
38
|
ToStream(): Stream;
|
|
38
39
|
ToString(): string;
|
|
39
|
-
WithMediaType(mediaType: string): BinaryData;
|
|
40
|
+
WithMediaType(mediaType: string | null): BinaryData;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
|
|
43
44
|
export const BinaryData: {
|
|
44
45
|
new(data: byte[]): BinaryData;
|
|
45
|
-
new(data: byte[], mediaType: string): BinaryData;
|
|
46
|
-
new(jsonSerializable: unknown, options: JsonSerializerOptions, type: Type): BinaryData;
|
|
47
|
-
new(jsonSerializable: unknown, context: JsonSerializerContext, type: Type): BinaryData;
|
|
46
|
+
new(data: byte[], mediaType: string | null): BinaryData;
|
|
47
|
+
new(jsonSerializable: unknown | null, options: JsonSerializerOptions | null, type: Type | null): BinaryData;
|
|
48
|
+
new(jsonSerializable: unknown | null, context: JsonSerializerContext, type: Type | null): BinaryData;
|
|
48
49
|
new(data: ReadOnlyMemory_1<Byte>): BinaryData;
|
|
49
|
-
new(data: ReadOnlyMemory_1<Byte>, mediaType: string): BinaryData;
|
|
50
|
+
new(data: ReadOnlyMemory_1<Byte>, mediaType: string | null): BinaryData;
|
|
50
51
|
new(data: string): BinaryData;
|
|
51
|
-
new(data: string, mediaType: string): BinaryData;
|
|
52
|
+
new(data: string, mediaType: string | null): BinaryData;
|
|
52
53
|
readonly Empty: BinaryData;
|
|
53
|
-
FromBytes(data: byte[], mediaType: string): BinaryData;
|
|
54
|
+
FromBytes(data: byte[], mediaType: string | null): BinaryData;
|
|
54
55
|
FromBytes(data: byte[]): BinaryData;
|
|
55
|
-
FromBytes(data: ReadOnlyMemory_1<Byte>, mediaType: string): BinaryData;
|
|
56
|
+
FromBytes(data: ReadOnlyMemory_1<Byte>, mediaType: string | null): BinaryData;
|
|
56
57
|
FromBytes(data: ReadOnlyMemory_1<Byte>): BinaryData;
|
|
57
|
-
FromObjectAsJson<T>(jsonSerializable: T, jsonTypeInfo: JsonTypeInfo_1<T>): BinaryData;
|
|
58
|
-
FromObjectAsJson<T>(jsonSerializable: T, options?: JsonSerializerOptions): BinaryData;
|
|
59
|
-
FromStream(stream: Stream, mediaType: string): BinaryData;
|
|
58
|
+
FromObjectAsJson<T extends unknown>(jsonSerializable: T, jsonTypeInfo: JsonTypeInfo_1<T>): BinaryData;
|
|
59
|
+
FromObjectAsJson<T extends unknown>(jsonSerializable: T, options?: JsonSerializerOptions | null): BinaryData;
|
|
60
|
+
FromStream(stream: Stream, mediaType: string | null): BinaryData;
|
|
60
61
|
FromStream(stream: Stream): BinaryData;
|
|
61
|
-
FromStreamAsync(stream: Stream, mediaType: string, cancellationToken?: CancellationToken): Task_1<BinaryData>;
|
|
62
|
+
FromStreamAsync(stream: Stream, mediaType: string | null, cancellationToken?: CancellationToken): Task_1<BinaryData>;
|
|
62
63
|
FromStreamAsync(stream: Stream, cancellationToken?: CancellationToken): Task_1<BinaryData>;
|
|
63
|
-
FromString(data: string, mediaType: string): BinaryData;
|
|
64
|
+
FromString(data: string, mediaType: string | null): BinaryData;
|
|
64
65
|
FromString(data: string): BinaryData;
|
|
65
66
|
};
|
|
66
67
|
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: System.ClientModel
|
|
3
3
|
// Assembly: System.ClientModel
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
6
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
7
|
|
|
8
|
-
// Import support types from @tsonic/core
|
|
9
|
-
import type { ptr } from "@tsonic/core/types.js";
|
|
10
8
|
|
|
11
9
|
// Import types from other namespaces
|
|
12
10
|
import * as System_ClientModel_Primitives_Internal from "../../System.ClientModel.Primitives/internal/index.js";
|
|
@@ -41,7 +39,7 @@ export const ApiKeyCredential: {
|
|
|
41
39
|
|
|
42
40
|
export type ApiKeyCredential = ApiKeyCredential$instance;
|
|
43
41
|
|
|
44
|
-
export interface AsyncCollectionResult_1$instance<T> extends AsyncCollectionResult {
|
|
42
|
+
export interface AsyncCollectionResult_1$instance<T extends unknown> extends AsyncCollectionResult {
|
|
45
43
|
readonly __tsonic_type_System_ClientModel_AsyncCollectionResult_1: never;
|
|
46
44
|
|
|
47
45
|
readonly __tsonic_iface_System_Collections_Generic_IAsyncEnumerable_1: never;
|
|
@@ -51,16 +49,16 @@ export interface AsyncCollectionResult_1$instance<T> extends AsyncCollectionResu
|
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
|
|
54
|
-
export const AsyncCollectionResult_1: (abstract new<T>() => AsyncCollectionResult_1<T>) & {
|
|
52
|
+
export const AsyncCollectionResult_1: (abstract new<T extends unknown>() => AsyncCollectionResult_1<T>) & {
|
|
55
53
|
};
|
|
56
54
|
|
|
57
55
|
|
|
58
|
-
export type AsyncCollectionResult_1<T> = AsyncCollectionResult_1$instance<T>;
|
|
56
|
+
export type AsyncCollectionResult_1<T extends unknown> = AsyncCollectionResult_1$instance<T>;
|
|
59
57
|
|
|
60
58
|
export interface AuthenticationTokenProvider$instance {
|
|
61
59
|
readonly __tsonic_type_System_ClientModel_AuthenticationTokenProvider: never;
|
|
62
60
|
|
|
63
|
-
CreateTokenOptions(properties: IReadOnlyDictionary_2<System_Internal.String, unknown>): GetTokenOptions |
|
|
61
|
+
CreateTokenOptions(properties: IReadOnlyDictionary_2<System_Internal.String, unknown>): GetTokenOptions | null;
|
|
64
62
|
GetToken(options: GetTokenOptions, cancellationToken: CancellationToken): AuthenticationToken;
|
|
65
63
|
GetTokenAsync(options: GetTokenOptions, cancellationToken: CancellationToken): ValueTask_1<AuthenticationToken>;
|
|
66
64
|
}
|
|
@@ -77,8 +75,8 @@ export interface BinaryContent$instance {
|
|
|
77
75
|
|
|
78
76
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
79
77
|
|
|
80
|
-
get MediaType(): string |
|
|
81
|
-
set MediaType(value: string |
|
|
78
|
+
get MediaType(): string | null;
|
|
79
|
+
set MediaType(value: string | null);
|
|
82
80
|
Dispose(): void;
|
|
83
81
|
TryComputeLength(length: long): boolean;
|
|
84
82
|
WriteTo(stream: Stream, cancellationToken?: CancellationToken): void;
|
|
@@ -89,10 +87,10 @@ export interface BinaryContent$instance {
|
|
|
89
87
|
export const BinaryContent: (abstract new() => BinaryContent) & {
|
|
90
88
|
Create(value: BinaryData): BinaryContent;
|
|
91
89
|
Create(stream: Stream): BinaryContent;
|
|
92
|
-
Create<T extends IPersistableModel_1<T>>(model: T, options?: ModelReaderWriterOptions): BinaryContent;
|
|
90
|
+
Create<T extends unknown & IPersistableModel_1<T>>(model: T, options?: ModelReaderWriterOptions | null): BinaryContent;
|
|
93
91
|
CreateJson(jsonString: string, validate?: boolean): BinaryContent;
|
|
94
|
-
CreateJson<T>(jsonSerializable: T, jsonTypeInfo: JsonTypeInfo_1<T>): BinaryContent;
|
|
95
|
-
CreateJson<T>(jsonSerializable: T, options?: JsonSerializerOptions): BinaryContent;
|
|
92
|
+
CreateJson<T extends unknown>(jsonSerializable: T, jsonTypeInfo: JsonTypeInfo_1<T>): BinaryContent;
|
|
93
|
+
CreateJson<T extends unknown>(jsonSerializable: T, options?: JsonSerializerOptions | null): BinaryContent;
|
|
96
94
|
};
|
|
97
95
|
|
|
98
96
|
|
|
@@ -106,26 +104,26 @@ export interface ClientResult$instance {
|
|
|
106
104
|
|
|
107
105
|
|
|
108
106
|
export const ClientResult: (abstract new(response: PipelineResponse) => ClientResult) & {
|
|
109
|
-
FromOptionalValue<T>(value: T, response: PipelineResponse): ClientResult_1<T |
|
|
107
|
+
FromOptionalValue<T extends unknown>(value: T | null, response: PipelineResponse): ClientResult_1<T | null>;
|
|
110
108
|
FromResponse(response: PipelineResponse): ClientResult;
|
|
111
|
-
FromValue<T>(value: T, response: PipelineResponse): ClientResult_1<T>;
|
|
109
|
+
FromValue<T extends unknown>(value: T, response: PipelineResponse): ClientResult_1<T>;
|
|
112
110
|
};
|
|
113
111
|
|
|
114
112
|
|
|
115
113
|
export type ClientResult = ClientResult$instance;
|
|
116
114
|
|
|
117
|
-
export interface ClientResult_1$instance<T> extends ClientResult {
|
|
115
|
+
export interface ClientResult_1$instance<T extends unknown> extends ClientResult {
|
|
118
116
|
readonly __tsonic_type_System_ClientModel_ClientResult_1: never;
|
|
119
117
|
|
|
120
118
|
readonly Value: T;
|
|
121
119
|
}
|
|
122
120
|
|
|
123
121
|
|
|
124
|
-
export const ClientResult_1: (abstract new<T>(value: T, response: PipelineResponse) => ClientResult_1<T>) & {
|
|
122
|
+
export const ClientResult_1: (abstract new<T extends unknown>(value: T, response: PipelineResponse) => ClientResult_1<T>) & {
|
|
125
123
|
};
|
|
126
124
|
|
|
127
125
|
|
|
128
|
-
export type ClientResult_1<T> = ClientResult_1$instance<T>;
|
|
126
|
+
export type ClientResult_1<T extends unknown> = ClientResult_1$instance<T>;
|
|
129
127
|
|
|
130
128
|
export interface ClientResultException$instance extends Exception {
|
|
131
129
|
readonly __tsonic_type_System_ClientModel_ClientResultException: never;
|
|
@@ -133,20 +131,20 @@ export interface ClientResultException$instance extends Exception {
|
|
|
133
131
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
134
132
|
|
|
135
133
|
Status: int;
|
|
136
|
-
GetRawResponse(): PipelineResponse |
|
|
134
|
+
GetRawResponse(): PipelineResponse | null;
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
|
|
140
138
|
export const ClientResultException: {
|
|
141
|
-
new(response: PipelineResponse, innerException: Exception): ClientResultException;
|
|
142
|
-
new(message: string, response: PipelineResponse, innerException: Exception): ClientResultException;
|
|
143
|
-
CreateAsync(response: PipelineResponse, innerException?: Exception): Task_1<ClientResultException>;
|
|
139
|
+
new(response: PipelineResponse, innerException: Exception | null): ClientResultException;
|
|
140
|
+
new(message: string, response: PipelineResponse | null, innerException: Exception | null): ClientResultException;
|
|
141
|
+
CreateAsync(response: PipelineResponse, innerException?: Exception | null): Task_1<ClientResultException>;
|
|
144
142
|
};
|
|
145
143
|
|
|
146
144
|
|
|
147
145
|
export type ClientResultException = ClientResultException$instance;
|
|
148
146
|
|
|
149
|
-
export interface CollectionResult_1$instance<T> extends CollectionResult {
|
|
147
|
+
export interface CollectionResult_1$instance<T extends unknown> extends CollectionResult {
|
|
150
148
|
readonly __tsonic_type_System_ClientModel_CollectionResult_1: never;
|
|
151
149
|
|
|
152
150
|
readonly __tsonic_iface_System_Collections_Generic_IEnumerable_1: never;
|
|
@@ -157,11 +155,11 @@ export interface CollectionResult_1$instance<T> extends CollectionResult {
|
|
|
157
155
|
}
|
|
158
156
|
|
|
159
157
|
|
|
160
|
-
export const CollectionResult_1: (abstract new<T>() => CollectionResult_1<T>) & {
|
|
158
|
+
export const CollectionResult_1: (abstract new<T extends unknown>() => CollectionResult_1<T>) & {
|
|
161
159
|
};
|
|
162
160
|
|
|
163
161
|
|
|
164
|
-
export type CollectionResult_1<T> = CollectionResult_1$instance<T>;
|
|
162
|
+
export type CollectionResult_1<T extends unknown> = CollectionResult_1$instance<T>;
|
|
165
163
|
|
|
166
164
|
export interface ContinuationToken$instance {
|
|
167
165
|
readonly __tsonic_type_System_ClientModel_ContinuationToken: never;
|