@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
package/dist/index.js
CHANGED
|
@@ -6242,6 +6242,33 @@ function createBatchCartActionsResponseSchema_dataFromDiscriminatorValue(parseNo
|
|
|
6242
6242
|
function createBatchCartActionsResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6243
6243
|
return deserializeIntoBatchCartActionsResponseSchema;
|
|
6244
6244
|
}
|
|
6245
|
+
/**
|
|
6246
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6247
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6248
|
+
* @returns {BatchReceiptActionsResponseSchema_data_results}
|
|
6249
|
+
*/
|
|
6250
|
+
// @ts-ignore
|
|
6251
|
+
function createBatchReceiptActionsResponseSchema_data_resultsFromDiscriminatorValue(parseNode) {
|
|
6252
|
+
return deserializeIntoBatchReceiptActionsResponseSchema_data_results;
|
|
6253
|
+
}
|
|
6254
|
+
/**
|
|
6255
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6256
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6257
|
+
* @returns {BatchReceiptActionsResponseSchema_data}
|
|
6258
|
+
*/
|
|
6259
|
+
// @ts-ignore
|
|
6260
|
+
function createBatchReceiptActionsResponseSchema_dataFromDiscriminatorValue(parseNode) {
|
|
6261
|
+
return deserializeIntoBatchReceiptActionsResponseSchema_data;
|
|
6262
|
+
}
|
|
6263
|
+
/**
|
|
6264
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6265
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6266
|
+
* @returns {BatchReceiptActionsResponseSchema}
|
|
6267
|
+
*/
|
|
6268
|
+
// @ts-ignore
|
|
6269
|
+
function createBatchReceiptActionsResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6270
|
+
return deserializeIntoBatchReceiptActionsResponseSchema;
|
|
6271
|
+
}
|
|
6245
6272
|
/**
|
|
6246
6273
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6247
6274
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -9198,6 +9225,46 @@ function deserializeIntoBatchCartActionsResponseSchema_data_results(batchCartAct
|
|
|
9198
9225
|
"status": n => { batchCartActionsResponseSchema_data_results.status = n.getStringValue(); },
|
|
9199
9226
|
};
|
|
9200
9227
|
}
|
|
9228
|
+
/**
|
|
9229
|
+
* The deserialization information for the current model
|
|
9230
|
+
* @param BatchReceiptActionsResponseSchema The instance to deserialize into.
|
|
9231
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9232
|
+
*/
|
|
9233
|
+
// @ts-ignore
|
|
9234
|
+
function deserializeIntoBatchReceiptActionsResponseSchema(batchReceiptActionsResponseSchema = {}) {
|
|
9235
|
+
return {
|
|
9236
|
+
"data": n => { batchReceiptActionsResponseSchema.data = n.getObjectValue(createBatchReceiptActionsResponseSchema_dataFromDiscriminatorValue); },
|
|
9237
|
+
"type": n => { batchReceiptActionsResponseSchema.type = n.getStringValue(); },
|
|
9238
|
+
};
|
|
9239
|
+
}
|
|
9240
|
+
/**
|
|
9241
|
+
* The deserialization information for the current model
|
|
9242
|
+
* @param BatchReceiptActionsResponseSchema_data The instance to deserialize into.
|
|
9243
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9244
|
+
*/
|
|
9245
|
+
// @ts-ignore
|
|
9246
|
+
function deserializeIntoBatchReceiptActionsResponseSchema_data(batchReceiptActionsResponseSchema_data = {}) {
|
|
9247
|
+
return {
|
|
9248
|
+
"failed": n => { batchReceiptActionsResponseSchema_data.failed = n.getNumberValue(); },
|
|
9249
|
+
"results": n => { batchReceiptActionsResponseSchema_data.results = n.getCollectionOfObjectValues(createBatchReceiptActionsResponseSchema_data_resultsFromDiscriminatorValue); },
|
|
9250
|
+
"skipped": n => { batchReceiptActionsResponseSchema_data.skipped = n.getNumberValue(); },
|
|
9251
|
+
"succeeded": n => { batchReceiptActionsResponseSchema_data.succeeded = n.getNumberValue(); },
|
|
9252
|
+
"total": n => { batchReceiptActionsResponseSchema_data.total = n.getNumberValue(); },
|
|
9253
|
+
};
|
|
9254
|
+
}
|
|
9255
|
+
/**
|
|
9256
|
+
* The deserialization information for the current model
|
|
9257
|
+
* @param BatchReceiptActionsResponseSchema_data_results The instance to deserialize into.
|
|
9258
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9259
|
+
*/
|
|
9260
|
+
// @ts-ignore
|
|
9261
|
+
function deserializeIntoBatchReceiptActionsResponseSchema_data_results(batchReceiptActionsResponseSchema_data_results = {}) {
|
|
9262
|
+
return {
|
|
9263
|
+
"id": n => { batchReceiptActionsResponseSchema_data_results.id = n.getStringValue(); },
|
|
9264
|
+
"reason": n => { batchReceiptActionsResponseSchema_data_results.reason = n.getStringValue(); },
|
|
9265
|
+
"status": n => { batchReceiptActionsResponseSchema_data_results.status = n.getStringValue(); },
|
|
9266
|
+
};
|
|
9267
|
+
}
|
|
9201
9268
|
/**
|
|
9202
9269
|
* The deserialization information for the current model
|
|
9203
9270
|
* @param BatchSubscriptionActionsResponseSchema The instance to deserialize into.
|
|
@@ -14498,6 +14565,20 @@ function serializeBatchCartActionsRequestSchema(writer, batchCartActionsRequestS
|
|
|
14498
14565
|
writer.writeEnumValue("action", batchCartActionsRequestSchema.action);
|
|
14499
14566
|
writer.writeCollectionOfPrimitiveValues("cartIds", batchCartActionsRequestSchema.cartIds);
|
|
14500
14567
|
}
|
|
14568
|
+
/**
|
|
14569
|
+
* Serializes information the current object
|
|
14570
|
+
* @param BatchReceiptActionsRequestSchema The instance to serialize from.
|
|
14571
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14572
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14573
|
+
*/
|
|
14574
|
+
// @ts-ignore
|
|
14575
|
+
function serializeBatchReceiptActionsRequestSchema(writer, batchReceiptActionsRequestSchema = {}, isSerializingDerivedType = false) {
|
|
14576
|
+
if (!batchReceiptActionsRequestSchema || isSerializingDerivedType) {
|
|
14577
|
+
return;
|
|
14578
|
+
}
|
|
14579
|
+
writer.writeEnumValue("action", batchReceiptActionsRequestSchema.action);
|
|
14580
|
+
writer.writeCollectionOfPrimitiveValues("receiptIds", batchReceiptActionsRequestSchema.receiptIds);
|
|
14581
|
+
}
|
|
14501
14582
|
/**
|
|
14502
14583
|
* Serializes information the current object
|
|
14503
14584
|
* @param BatchSubscriptionActionsRequestSchema The instance to serialize from.
|
|
@@ -15652,13 +15733,13 @@ const CartItemsRequestBuilderRequestsMetadata = {
|
|
|
15652
15733
|
/**
|
|
15653
15734
|
* Uri template for the request builder.
|
|
15654
15735
|
*/
|
|
15655
|
-
const BatchRequestBuilderUriTemplate$
|
|
15736
|
+
const BatchRequestBuilderUriTemplate$2 = "{+baseurl}/api/carts/batch";
|
|
15656
15737
|
/**
|
|
15657
15738
|
* Metadata for all the requests in the request builder.
|
|
15658
15739
|
*/
|
|
15659
|
-
const BatchRequestBuilderRequestsMetadata$
|
|
15740
|
+
const BatchRequestBuilderRequestsMetadata$2 = {
|
|
15660
15741
|
post: {
|
|
15661
|
-
uriTemplate: BatchRequestBuilderUriTemplate$
|
|
15742
|
+
uriTemplate: BatchRequestBuilderUriTemplate$2,
|
|
15662
15743
|
responseBodyContentType: "application/json",
|
|
15663
15744
|
errorMappings: {
|
|
15664
15745
|
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
@@ -15797,7 +15878,7 @@ const CartsRequestBuilderNavigationMetadata = {
|
|
|
15797
15878
|
pathParametersMappings: ["id"],
|
|
15798
15879
|
},
|
|
15799
15880
|
batch: {
|
|
15800
|
-
requestsMetadata: BatchRequestBuilderRequestsMetadata$
|
|
15881
|
+
requestsMetadata: BatchRequestBuilderRequestsMetadata$2,
|
|
15801
15882
|
},
|
|
15802
15883
|
};
|
|
15803
15884
|
/**
|
|
@@ -17646,6 +17727,40 @@ const ProductsRequestBuilderRequestsMetadata = {
|
|
|
17646
17727
|
/* tslint:enable */
|
|
17647
17728
|
/* eslint-enable */
|
|
17648
17729
|
|
|
17730
|
+
/* tslint:disable */
|
|
17731
|
+
/* eslint-disable */
|
|
17732
|
+
// Generated by Microsoft Kiota
|
|
17733
|
+
// @ts-ignore
|
|
17734
|
+
/**
|
|
17735
|
+
* Uri template for the request builder.
|
|
17736
|
+
*/
|
|
17737
|
+
const BatchRequestBuilderUriTemplate$1 = "{+baseurl}/api/receipts/batch";
|
|
17738
|
+
/**
|
|
17739
|
+
* Metadata for all the requests in the request builder.
|
|
17740
|
+
*/
|
|
17741
|
+
const BatchRequestBuilderRequestsMetadata$1 = {
|
|
17742
|
+
post: {
|
|
17743
|
+
uriTemplate: BatchRequestBuilderUriTemplate$1,
|
|
17744
|
+
responseBodyContentType: "application/json",
|
|
17745
|
+
errorMappings: {
|
|
17746
|
+
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
17747
|
+
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
17748
|
+
403: createErrorResponseBodyFromDiscriminatorValue,
|
|
17749
|
+
404: createErrorResponseBodyFromDiscriminatorValue,
|
|
17750
|
+
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
17751
|
+
429: createErrorResponseBodyFromDiscriminatorValue,
|
|
17752
|
+
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
17753
|
+
},
|
|
17754
|
+
adapterMethodName: "send",
|
|
17755
|
+
responseBodyFactory: createBatchReceiptActionsResponseSchemaFromDiscriminatorValue,
|
|
17756
|
+
requestBodyContentType: "application/json",
|
|
17757
|
+
requestBodySerializer: serializeBatchReceiptActionsRequestSchema,
|
|
17758
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
17759
|
+
},
|
|
17760
|
+
};
|
|
17761
|
+
/* tslint:enable */
|
|
17762
|
+
/* eslint-enable */
|
|
17763
|
+
|
|
17649
17764
|
/* tslint:disable */
|
|
17650
17765
|
/* eslint-disable */
|
|
17651
17766
|
// Generated by Microsoft Kiota
|
|
@@ -17658,6 +17773,20 @@ const ReceiptsItemRequestBuilderUriTemplate = "{+baseurl}/api/receipts/{id}{?exp
|
|
|
17658
17773
|
* Metadata for all the requests in the request builder.
|
|
17659
17774
|
*/
|
|
17660
17775
|
const ReceiptsItemRequestBuilderRequestsMetadata = {
|
|
17776
|
+
delete: {
|
|
17777
|
+
uriTemplate: ReceiptsItemRequestBuilderUriTemplate,
|
|
17778
|
+
responseBodyContentType: "application/json",
|
|
17779
|
+
errorMappings: {
|
|
17780
|
+
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
17781
|
+
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
17782
|
+
403: createErrorResponseBodyFromDiscriminatorValue,
|
|
17783
|
+
404: createErrorResponseBodyFromDiscriminatorValue,
|
|
17784
|
+
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
17785
|
+
429: createErrorResponseBodyFromDiscriminatorValue,
|
|
17786
|
+
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
17787
|
+
},
|
|
17788
|
+
adapterMethodName: "sendNoResponseContent",
|
|
17789
|
+
},
|
|
17661
17790
|
get: {
|
|
17662
17791
|
uriTemplate: ReceiptsItemRequestBuilderUriTemplate,
|
|
17663
17792
|
responseBodyContentType: "application/json",
|
|
@@ -17691,6 +17820,9 @@ const ReceiptsRequestBuilderNavigationMetadata = {
|
|
|
17691
17820
|
requestsMetadata: ReceiptsItemRequestBuilderRequestsMetadata,
|
|
17692
17821
|
pathParametersMappings: ["id"],
|
|
17693
17822
|
},
|
|
17823
|
+
batch: {
|
|
17824
|
+
requestsMetadata: BatchRequestBuilderRequestsMetadata$1,
|
|
17825
|
+
},
|
|
17694
17826
|
};
|
|
17695
17827
|
/**
|
|
17696
17828
|
* Metadata for all the requests in the request builder.
|