@salable/sdk 1.0.6 → 1.0.7
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 +136 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +136 -4
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/receipts/batch/index.d.ts +36 -0
- package/dist/sdk/api/receipts/index.d.ts +5 -0
- package/dist/sdk/api/receipts/item/index.d.ts +18 -0
- package/dist/sdk/models/index.d.ts +151 -0
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type BatchReceiptActionsRequestSchema, type BatchReceiptActionsResponseSchema } from '../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api/receipts/batch
|
|
5
|
+
*/
|
|
6
|
+
export interface BatchRequestBuilder extends BaseRequestBuilder<BatchRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Perform batch actions on multiple receipts. Currently supports deleting receipts (test mode only). Returns detailed results for each receipt including success or failure status.
|
|
9
|
+
* @param body The request body
|
|
10
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
+
* @returns {Promise<BatchReceiptActionsResponseSchema>}
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
17
|
+
* @throws {ErrorResponseBody} error when the service returns a 429 status code
|
|
18
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
19
|
+
*/
|
|
20
|
+
post(body: BatchReceiptActionsRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<BatchReceiptActionsResponseSchema | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Perform batch actions on multiple receipts. Currently supports deleting receipts (test mode only). Returns detailed results for each receipt including success or failure status.
|
|
23
|
+
* @param body The request body
|
|
24
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
25
|
+
* @returns {RequestInformation}
|
|
26
|
+
*/
|
|
27
|
+
toPostRequestInformation(body: BatchReceiptActionsRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Uri template for the request builder.
|
|
31
|
+
*/
|
|
32
|
+
export declare const BatchRequestBuilderUriTemplate = "{+baseurl}/api/receipts/batch";
|
|
33
|
+
/**
|
|
34
|
+
* Metadata for all the requests in the request builder.
|
|
35
|
+
*/
|
|
36
|
+
export declare const BatchRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type GetReceiptListSchema } from '../../models/index.js';
|
|
2
|
+
import { type BatchRequestBuilder } from './batch/index.js';
|
|
2
3
|
import { type ReceiptsItemRequestBuilder } from './item/index.js';
|
|
3
4
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
5
|
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
@@ -6,6 +7,10 @@ export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObj
|
|
|
6
7
|
* Builds and executes requests for operations under /api/receipts
|
|
7
8
|
*/
|
|
8
9
|
export interface ReceiptsRequestBuilder extends BaseRequestBuilder<ReceiptsRequestBuilder> {
|
|
10
|
+
/**
|
|
11
|
+
* The batch property
|
|
12
|
+
*/
|
|
13
|
+
get batch(): BatchRequestBuilder;
|
|
9
14
|
/**
|
|
10
15
|
* Gets an item from the ApiSdk.api.receipts.item collection
|
|
11
16
|
* @param id Resource ID
|
|
@@ -5,6 +5,18 @@ export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObj
|
|
|
5
5
|
* Builds and executes requests for operations under /api/receipts/{id}
|
|
6
6
|
*/
|
|
7
7
|
export interface ReceiptsItemRequestBuilder extends BaseRequestBuilder<ReceiptsItemRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Permanently deletes a receipt and its associated receipt items. This endpoint is only available in test mode.
|
|
10
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 429 status code
|
|
17
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
18
|
+
*/
|
|
19
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
8
20
|
/**
|
|
9
21
|
* Retrieve Receipt
|
|
10
22
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
@@ -16,6 +28,12 @@ export interface ReceiptsItemRequestBuilder extends BaseRequestBuilder<ReceiptsI
|
|
|
16
28
|
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
17
29
|
*/
|
|
18
30
|
get(requestConfiguration?: RequestConfiguration<ReceiptsItemRequestBuilderGetQueryParameters> | undefined): Promise<GetReceiptDetailSchema | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* Permanently deletes a receipt and its associated receipt items. This endpoint is only available in test mode.
|
|
33
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
34
|
+
* @returns {RequestInformation}
|
|
35
|
+
*/
|
|
36
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
19
37
|
/**
|
|
20
38
|
* Retrieve Receipt
|
|
21
39
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
@@ -57,6 +57,64 @@ export interface BatchCartActionsResponseSchema_data_results extends Parsable {
|
|
|
57
57
|
status?: string | null;
|
|
58
58
|
}
|
|
59
59
|
export type BatchCartActionsResponseSchema_data_results_status = string;
|
|
60
|
+
export interface BatchReceiptActionsRequestSchema extends Parsable {
|
|
61
|
+
/**
|
|
62
|
+
* The action property
|
|
63
|
+
*/
|
|
64
|
+
action?: BatchReceiptActionsRequestSchema_action | null;
|
|
65
|
+
/**
|
|
66
|
+
* The receiptIds property
|
|
67
|
+
*/
|
|
68
|
+
receiptIds?: string[] | null;
|
|
69
|
+
}
|
|
70
|
+
export type BatchReceiptActionsRequestSchema_action = (typeof BatchReceiptActionsRequestSchema_actionObject)[keyof typeof BatchReceiptActionsRequestSchema_actionObject];
|
|
71
|
+
export interface BatchReceiptActionsResponseSchema extends Parsable {
|
|
72
|
+
/**
|
|
73
|
+
* The data property
|
|
74
|
+
*/
|
|
75
|
+
data?: BatchReceiptActionsResponseSchema_data | null;
|
|
76
|
+
/**
|
|
77
|
+
* The type property
|
|
78
|
+
*/
|
|
79
|
+
type?: string | null;
|
|
80
|
+
}
|
|
81
|
+
export interface BatchReceiptActionsResponseSchema_data extends Parsable {
|
|
82
|
+
/**
|
|
83
|
+
* The failed property
|
|
84
|
+
*/
|
|
85
|
+
failed?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
* The results property
|
|
88
|
+
*/
|
|
89
|
+
results?: BatchReceiptActionsResponseSchema_data_results[] | null;
|
|
90
|
+
/**
|
|
91
|
+
* The skipped property
|
|
92
|
+
*/
|
|
93
|
+
skipped?: number | null;
|
|
94
|
+
/**
|
|
95
|
+
* The succeeded property
|
|
96
|
+
*/
|
|
97
|
+
succeeded?: number | null;
|
|
98
|
+
/**
|
|
99
|
+
* The total property
|
|
100
|
+
*/
|
|
101
|
+
total?: number | null;
|
|
102
|
+
}
|
|
103
|
+
export interface BatchReceiptActionsResponseSchema_data_results extends Parsable {
|
|
104
|
+
/**
|
|
105
|
+
* The id property
|
|
106
|
+
*/
|
|
107
|
+
id?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* The reason property
|
|
110
|
+
*/
|
|
111
|
+
reason?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* The status property
|
|
114
|
+
*/
|
|
115
|
+
status?: string | null;
|
|
116
|
+
}
|
|
117
|
+
export type BatchReceiptActionsResponseSchema_data_results_status = string;
|
|
60
118
|
export interface BatchSubscriptionActionsRequestSchema extends Parsable {
|
|
61
119
|
/**
|
|
62
120
|
* The action property
|
|
@@ -244,6 +302,36 @@ export declare function createBatchCartActionsResponseSchema_dataFromDiscriminat
|
|
|
244
302
|
* @returns {BatchCartActionsResponseSchema}
|
|
245
303
|
*/
|
|
246
304
|
export declare function createBatchCartActionsResponseSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
305
|
+
/**
|
|
306
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
307
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
308
|
+
* @returns {BatchReceiptActionsRequestSchema}
|
|
309
|
+
*/
|
|
310
|
+
export declare function createBatchReceiptActionsRequestSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
311
|
+
/**
|
|
312
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
313
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
314
|
+
* @returns {string}
|
|
315
|
+
*/
|
|
316
|
+
export declare function createBatchReceiptActionsResponseSchema_data_results_statusFromDiscriminatorValue(parseNode: ParseNode | undefined): string | undefined;
|
|
317
|
+
/**
|
|
318
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
319
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
320
|
+
* @returns {BatchReceiptActionsResponseSchema_data_results}
|
|
321
|
+
*/
|
|
322
|
+
export declare function createBatchReceiptActionsResponseSchema_data_resultsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
323
|
+
/**
|
|
324
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
325
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
326
|
+
* @returns {BatchReceiptActionsResponseSchema_data}
|
|
327
|
+
*/
|
|
328
|
+
export declare function createBatchReceiptActionsResponseSchema_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
329
|
+
/**
|
|
330
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
331
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
332
|
+
* @returns {BatchReceiptActionsResponseSchema}
|
|
333
|
+
*/
|
|
334
|
+
export declare function createBatchReceiptActionsResponseSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
247
335
|
/**
|
|
248
336
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
249
337
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3194,6 +3282,30 @@ export declare function deserializeIntoBatchCartActionsResponseSchema_data(batch
|
|
|
3194
3282
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3195
3283
|
*/
|
|
3196
3284
|
export declare function deserializeIntoBatchCartActionsResponseSchema_data_results(batchCartActionsResponseSchema_data_results?: Partial<BatchCartActionsResponseSchema_data_results> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3285
|
+
/**
|
|
3286
|
+
* The deserialization information for the current model
|
|
3287
|
+
* @param BatchReceiptActionsRequestSchema The instance to deserialize into.
|
|
3288
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3289
|
+
*/
|
|
3290
|
+
export declare function deserializeIntoBatchReceiptActionsRequestSchema(batchReceiptActionsRequestSchema?: Partial<BatchReceiptActionsRequestSchema> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3291
|
+
/**
|
|
3292
|
+
* The deserialization information for the current model
|
|
3293
|
+
* @param BatchReceiptActionsResponseSchema The instance to deserialize into.
|
|
3294
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3295
|
+
*/
|
|
3296
|
+
export declare function deserializeIntoBatchReceiptActionsResponseSchema(batchReceiptActionsResponseSchema?: Partial<BatchReceiptActionsResponseSchema> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3297
|
+
/**
|
|
3298
|
+
* The deserialization information for the current model
|
|
3299
|
+
* @param BatchReceiptActionsResponseSchema_data The instance to deserialize into.
|
|
3300
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3301
|
+
*/
|
|
3302
|
+
export declare function deserializeIntoBatchReceiptActionsResponseSchema_data(batchReceiptActionsResponseSchema_data?: Partial<BatchReceiptActionsResponseSchema_data> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3303
|
+
/**
|
|
3304
|
+
* The deserialization information for the current model
|
|
3305
|
+
* @param BatchReceiptActionsResponseSchema_data_results The instance to deserialize into.
|
|
3306
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3307
|
+
*/
|
|
3308
|
+
export declare function deserializeIntoBatchReceiptActionsResponseSchema_data_results(batchReceiptActionsResponseSchema_data_results?: Partial<BatchReceiptActionsResponseSchema_data_results> | undefined): Record<string, (node: ParseNode) => void>;
|
|
3197
3309
|
/**
|
|
3198
3310
|
* The deserialization information for the current model
|
|
3199
3311
|
* @param BatchSubscriptionActionsRequestSchema The instance to deserialize into.
|
|
@@ -14165,6 +14277,42 @@ export declare function serializeBatchCartActionsResponseSchema_data_results(wri
|
|
|
14165
14277
|
* @param writer Serialization writer to use to serialize this model
|
|
14166
14278
|
*/
|
|
14167
14279
|
export declare function serializeBatchCartActionsResponseSchema_data_results_status(writer: SerializationWriter, key: string, batchCartActionsResponseSchema_data_results_status: Parsable | BatchCartActionsResponseSchema_data_results_status | undefined, isSerializingDerivedType?: boolean): void;
|
|
14280
|
+
/**
|
|
14281
|
+
* Serializes information the current object
|
|
14282
|
+
* @param BatchReceiptActionsRequestSchema The instance to serialize from.
|
|
14283
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14284
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14285
|
+
*/
|
|
14286
|
+
export declare function serializeBatchReceiptActionsRequestSchema(writer: SerializationWriter, batchReceiptActionsRequestSchema?: Partial<BatchReceiptActionsRequestSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
14287
|
+
/**
|
|
14288
|
+
* Serializes information the current object
|
|
14289
|
+
* @param BatchReceiptActionsResponseSchema The instance to serialize from.
|
|
14290
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14291
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14292
|
+
*/
|
|
14293
|
+
export declare function serializeBatchReceiptActionsResponseSchema(writer: SerializationWriter, batchReceiptActionsResponseSchema?: Partial<BatchReceiptActionsResponseSchema> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
14294
|
+
/**
|
|
14295
|
+
* Serializes information the current object
|
|
14296
|
+
* @param BatchReceiptActionsResponseSchema_data The instance to serialize from.
|
|
14297
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14298
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14299
|
+
*/
|
|
14300
|
+
export declare function serializeBatchReceiptActionsResponseSchema_data(writer: SerializationWriter, batchReceiptActionsResponseSchema_data?: Partial<BatchReceiptActionsResponseSchema_data> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
14301
|
+
/**
|
|
14302
|
+
* Serializes information the current object
|
|
14303
|
+
* @param BatchReceiptActionsResponseSchema_data_results The instance to serialize from.
|
|
14304
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14305
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14306
|
+
*/
|
|
14307
|
+
export declare function serializeBatchReceiptActionsResponseSchema_data_results(writer: SerializationWriter, batchReceiptActionsResponseSchema_data_results?: Partial<BatchReceiptActionsResponseSchema_data_results> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
14308
|
+
/**
|
|
14309
|
+
* Serializes information the current object
|
|
14310
|
+
* @param BatchReceiptActionsResponseSchema_data_results_status The instance to serialize from.
|
|
14311
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14312
|
+
* @param key The name of the property to write in the serialization.
|
|
14313
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14314
|
+
*/
|
|
14315
|
+
export declare function serializeBatchReceiptActionsResponseSchema_data_results_status(writer: SerializationWriter, key: string, batchReceiptActionsResponseSchema_data_results_status: Parsable | BatchReceiptActionsResponseSchema_data_results_status | undefined, isSerializingDerivedType?: boolean): void;
|
|
14168
14316
|
/**
|
|
14169
14317
|
* Serializes information the current object
|
|
14170
14318
|
* @param BatchSubscriptionActionsRequestSchema The instance to serialize from.
|
|
@@ -17557,6 +17705,9 @@ export type UpdateWebhookRequestSchema_events = (typeof UpdateWebhookRequestSche
|
|
|
17557
17705
|
export declare const BatchCartActionsRequestSchema_actionObject: {
|
|
17558
17706
|
readonly Abandon: "abandon";
|
|
17559
17707
|
};
|
|
17708
|
+
export declare const BatchReceiptActionsRequestSchema_actionObject: {
|
|
17709
|
+
readonly Delete: "delete";
|
|
17710
|
+
};
|
|
17560
17711
|
export declare const BatchSubscriptionActionsRequestSchema_actionObject: {
|
|
17561
17712
|
readonly Cancel: "cancel";
|
|
17562
17713
|
readonly EnableAutoRenew: "enable-auto-renew";
|