@salable/sdk 1.0.42 → 1.0.44
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 +438 -233
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +438 -233
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/events/index.d.ts +1 -0
- package/dist/sdk/api/webhooks/item/index.d.ts +10 -1
- package/dist/sdk/api/webhooks/item/ping/index.d.ts +32 -0
- package/dist/sdk/models/index.d.ts +20 -0
- package/dist/serialization.d.ts +18 -0
- package/package.json +7 -7
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { type GetWebhookDetailSchema, type UpdateWebhookRequestSchema } from '../../../models/index.js';
|
|
2
|
-
import { type
|
|
2
|
+
import { type PingRequestBuilder } from './ping/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
4
|
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
4
5
|
/**
|
|
5
6
|
* Builds and executes requests for operations under /api/webhooks/{id}
|
|
6
7
|
*/
|
|
7
8
|
export interface WebhooksItemRequestBuilder extends BaseRequestBuilder<WebhooksItemRequestBuilder> {
|
|
9
|
+
/**
|
|
10
|
+
* The ping property
|
|
11
|
+
*/
|
|
12
|
+
get ping(): PingRequestBuilder;
|
|
8
13
|
/**
|
|
9
14
|
* Delete Webhook Destination
|
|
10
15
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
@@ -77,6 +82,10 @@ export declare const GetExpandQueryParameterTypeObject: {
|
|
|
77
82
|
readonly EventTypes: "eventTypes";
|
|
78
83
|
readonly Destinations: "destinations";
|
|
79
84
|
};
|
|
85
|
+
/**
|
|
86
|
+
* Metadata for all the navigation properties in the request builder.
|
|
87
|
+
*/
|
|
88
|
+
export declare const WebhooksItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WebhooksItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
80
89
|
/**
|
|
81
90
|
* Metadata for all the requests in the request builder.
|
|
82
91
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Builds and executes requests for operations under /api/webhooks/{id}/ping
|
|
4
|
+
*/
|
|
5
|
+
export interface PingRequestBuilder extends BaseRequestBuilder<PingRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Queues a ping event for the specified webhook destination
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
10
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
11
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 429 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
16
|
+
*/
|
|
17
|
+
post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Queues a ping event for the specified webhook destination
|
|
20
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
21
|
+
* @returns {RequestInformation}
|
|
22
|
+
*/
|
|
23
|
+
toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Uri template for the request builder.
|
|
27
|
+
*/
|
|
28
|
+
export declare const PingRequestBuilderUriTemplate = "{+baseurl}/api/webhooks/{id}/ping";
|
|
29
|
+
/**
|
|
30
|
+
* Metadata for all the requests in the request builder.
|
|
31
|
+
*/
|
|
32
|
+
export declare const PingRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -3427,6 +3427,10 @@ export interface CreateWebhookRequestResponseSchema_data extends Parsable {
|
|
|
3427
3427
|
* The description property
|
|
3428
3428
|
*/
|
|
3429
3429
|
description?: string | null;
|
|
3430
|
+
/**
|
|
3431
|
+
* The disabledAt property
|
|
3432
|
+
*/
|
|
3433
|
+
disabledAt?: string | null;
|
|
3430
3434
|
/**
|
|
3431
3435
|
* The id property
|
|
3432
3436
|
*/
|
|
@@ -7474,6 +7478,10 @@ export interface GetEventDetailSchema_data_destinations_data_webhook extends Par
|
|
|
7474
7478
|
* The description property
|
|
7475
7479
|
*/
|
|
7476
7480
|
description?: string | null;
|
|
7481
|
+
/**
|
|
7482
|
+
* The disabledAt property
|
|
7483
|
+
*/
|
|
7484
|
+
disabledAt?: string | null;
|
|
7477
7485
|
/**
|
|
7478
7486
|
* The id property
|
|
7479
7487
|
*/
|
|
@@ -13493,6 +13501,10 @@ export interface GetWebhookDetailSchema_data extends AdditionalDataHolder, Parsa
|
|
|
13493
13501
|
* The destinations property
|
|
13494
13502
|
*/
|
|
13495
13503
|
destinations?: GetWebhookDetailSchema_data_destinations | null;
|
|
13504
|
+
/**
|
|
13505
|
+
* The disabledAt property
|
|
13506
|
+
*/
|
|
13507
|
+
disabledAt?: string | null;
|
|
13496
13508
|
/**
|
|
13497
13509
|
* The eventTypes property
|
|
13498
13510
|
*/
|
|
@@ -13676,6 +13688,10 @@ export interface GetWebhookListSchema_data extends AdditionalDataHolder, Parsabl
|
|
|
13676
13688
|
* The description property
|
|
13677
13689
|
*/
|
|
13678
13690
|
description?: string | null;
|
|
13691
|
+
/**
|
|
13692
|
+
* The disabledAt property
|
|
13693
|
+
*/
|
|
13694
|
+
disabledAt?: string | null;
|
|
13679
13695
|
/**
|
|
13680
13696
|
* The eventTypes property
|
|
13681
13697
|
*/
|
|
@@ -17946,6 +17962,10 @@ export interface UpdateWebhookRequestSchema extends Parsable {
|
|
|
17946
17962
|
* The description property
|
|
17947
17963
|
*/
|
|
17948
17964
|
description?: string | null;
|
|
17965
|
+
/**
|
|
17966
|
+
* When true, new events are dropped until the webhook is enabled; dropped events are not replayed.
|
|
17967
|
+
*/
|
|
17968
|
+
disabled?: boolean | null;
|
|
17949
17969
|
/**
|
|
17950
17970
|
* The events property
|
|
17951
17971
|
*/
|
|
@@ -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.44",
|
|
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",
|