@salable/sdk 1.0.42 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +394 -233
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +394 -233
- package/dist/index.js.map +1 -1
- package/dist/serialization.d.ts +18 -0
- package/package.json +7 -7
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
import { JsonSerializationWriter, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json';
|
|
3
|
+
/**
|
|
4
|
+
* Kiota's JsonSerializationWriter stringifies null enum values, producing
|
|
5
|
+
* `"interval": "null"` instead of `"interval": null`, which the API rejects
|
|
6
|
+
* with an invalid_enum_value error. Unlike every other write method, its
|
|
7
|
+
* writeEnumValue/writeCollectionOfEnumValues only filter out undefined before
|
|
8
|
+
* template-stringifying, so null slips through as the string "null".
|
|
9
|
+
* See https://github.com/microsoft/kiota-typescript — present up to at least
|
|
10
|
+
* 1.0.0-preview.107. This subclass emits a proper JSON null instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare class NullSafeJsonSerializationWriter extends JsonSerializationWriter {
|
|
13
|
+
writeEnumValue: <T>(key?: string, ...values: (T | null | undefined)[]) => void;
|
|
14
|
+
writeCollectionOfEnumValues: <T>(key?: string, values?: (T | null | undefined)[]) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare class NullSafeJsonSerializationWriterFactory extends JsonSerializationWriterFactory {
|
|
17
|
+
getSerializationWriter(contentType: string): SerializationWriter;
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salable/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@microsoft/kiota-abstractions": "1.0.0-preview.
|
|
28
|
-
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.
|
|
29
|
-
"@microsoft/kiota-serialization-form": "1.0.0-preview.
|
|
30
|
-
"@microsoft/kiota-serialization-json": "1.0.0-preview.
|
|
31
|
-
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.
|
|
32
|
-
"@microsoft/kiota-serialization-text": "1.0.0-preview.
|
|
27
|
+
"@microsoft/kiota-abstractions": "1.0.0-preview.107",
|
|
28
|
+
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.107",
|
|
29
|
+
"@microsoft/kiota-serialization-form": "1.0.0-preview.107",
|
|
30
|
+
"@microsoft/kiota-serialization-json": "1.0.0-preview.107",
|
|
31
|
+
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.107",
|
|
32
|
+
"@microsoft/kiota-serialization-text": "1.0.0-preview.107",
|
|
33
33
|
"@rollup/plugin-commonjs": "28.0.0",
|
|
34
34
|
"@rollup/plugin-json": "6.1.0",
|
|
35
35
|
"@rollup/plugin-node-resolve": "15.0.1",
|