@salable/sdk 1.0.64 → 1.0.65
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
CHANGED
|
@@ -6276,6 +6276,24 @@ function createBatchCartActionsResponseSchema_dataFromDiscriminatorValue(parseNo
|
|
|
6276
6276
|
function createBatchCartActionsResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6277
6277
|
return deserializeIntoBatchCartActionsResponseSchema;
|
|
6278
6278
|
}
|
|
6279
|
+
/**
|
|
6280
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6281
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6282
|
+
* @returns {BatchCreateGranteesResponseSchema_data}
|
|
6283
|
+
*/
|
|
6284
|
+
// @ts-ignore
|
|
6285
|
+
function createBatchCreateGranteesResponseSchema_dataFromDiscriminatorValue(parseNode) {
|
|
6286
|
+
return deserializeIntoBatchCreateGranteesResponseSchema_data;
|
|
6287
|
+
}
|
|
6288
|
+
/**
|
|
6289
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6290
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6291
|
+
* @returns {BatchCreateGranteesResponseSchema}
|
|
6292
|
+
*/
|
|
6293
|
+
// @ts-ignore
|
|
6294
|
+
function createBatchCreateGranteesResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6295
|
+
return deserializeIntoBatchCreateGranteesResponseSchema;
|
|
6296
|
+
}
|
|
6279
6297
|
/**
|
|
6280
6298
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6281
6299
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -9313,6 +9331,31 @@ function deserializeIntoBatchCartActionsResponseSchema_data_results(batchCartAct
|
|
|
9313
9331
|
"status": n => { batchCartActionsResponseSchema_data_results.status = n.getStringValue(); },
|
|
9314
9332
|
};
|
|
9315
9333
|
}
|
|
9334
|
+
/**
|
|
9335
|
+
* The deserialization information for the current model
|
|
9336
|
+
* @param BatchCreateGranteesResponseSchema The instance to deserialize into.
|
|
9337
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9338
|
+
*/
|
|
9339
|
+
// @ts-ignore
|
|
9340
|
+
function deserializeIntoBatchCreateGranteesResponseSchema(batchCreateGranteesResponseSchema = {}) {
|
|
9341
|
+
return {
|
|
9342
|
+
"data": n => { batchCreateGranteesResponseSchema.data = n.getObjectValue(createBatchCreateGranteesResponseSchema_dataFromDiscriminatorValue); },
|
|
9343
|
+
"type": n => { batchCreateGranteesResponseSchema.type = n.getStringValue(); },
|
|
9344
|
+
};
|
|
9345
|
+
}
|
|
9346
|
+
/**
|
|
9347
|
+
* The deserialization information for the current model
|
|
9348
|
+
* @param BatchCreateGranteesResponseSchema_data The instance to deserialize into.
|
|
9349
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9350
|
+
*/
|
|
9351
|
+
// @ts-ignore
|
|
9352
|
+
function deserializeIntoBatchCreateGranteesResponseSchema_data(batchCreateGranteesResponseSchema_data = {}) {
|
|
9353
|
+
return {
|
|
9354
|
+
"skipped": n => { batchCreateGranteesResponseSchema_data.skipped = n.getNumberValue(); },
|
|
9355
|
+
"succeeded": n => { batchCreateGranteesResponseSchema_data.succeeded = n.getNumberValue(); },
|
|
9356
|
+
"total": n => { batchCreateGranteesResponseSchema_data.total = n.getNumberValue(); },
|
|
9357
|
+
};
|
|
9358
|
+
}
|
|
9316
9359
|
/**
|
|
9317
9360
|
* The deserialization information for the current model
|
|
9318
9361
|
* @param BatchReceiptActionsResponseSchema The instance to deserialize into.
|
|
@@ -14747,6 +14790,20 @@ function serializeBatchCartActionsRequestSchema(writer, batchCartActionsRequestS
|
|
|
14747
14790
|
writer.writeEnumValue("action", batchCartActionsRequestSchema.action);
|
|
14748
14791
|
writer.writeCollectionOfPrimitiveValues("cartIds", batchCartActionsRequestSchema.cartIds);
|
|
14749
14792
|
}
|
|
14793
|
+
/**
|
|
14794
|
+
* Serializes information the current object
|
|
14795
|
+
* @param BatchCreateGranteesRequestSchema The instance to serialize from.
|
|
14796
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14797
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14798
|
+
*/
|
|
14799
|
+
// @ts-ignore
|
|
14800
|
+
function serializeBatchCreateGranteesRequestSchema(writer, batchCreateGranteesRequestSchema = {}, isSerializingDerivedType = false) {
|
|
14801
|
+
if (!batchCreateGranteesRequestSchema || isSerializingDerivedType) {
|
|
14802
|
+
return;
|
|
14803
|
+
}
|
|
14804
|
+
writer.writeStringValue("granteeId", batchCreateGranteesRequestSchema.granteeId);
|
|
14805
|
+
writer.writeStringValue("name", batchCreateGranteesRequestSchema.name);
|
|
14806
|
+
}
|
|
14750
14807
|
/**
|
|
14751
14808
|
* Serializes information the current object
|
|
14752
14809
|
* @param BatchReceiptActionsRequestSchema The instance to serialize from.
|
|
@@ -16183,13 +16240,13 @@ const CartItemsRequestBuilderRequestsMetadata = {
|
|
|
16183
16240
|
/**
|
|
16184
16241
|
* Uri template for the request builder.
|
|
16185
16242
|
*/
|
|
16186
|
-
const BatchRequestBuilderUriTemplate$
|
|
16243
|
+
const BatchRequestBuilderUriTemplate$3 = "{+baseurl}/api/carts/batch";
|
|
16187
16244
|
/**
|
|
16188
16245
|
* Metadata for all the requests in the request builder.
|
|
16189
16246
|
*/
|
|
16190
|
-
const BatchRequestBuilderRequestsMetadata$
|
|
16247
|
+
const BatchRequestBuilderRequestsMetadata$3 = {
|
|
16191
16248
|
post: {
|
|
16192
|
-
uriTemplate: BatchRequestBuilderUriTemplate$
|
|
16249
|
+
uriTemplate: BatchRequestBuilderUriTemplate$3,
|
|
16193
16250
|
responseBodyContentType: "application/json",
|
|
16194
16251
|
errorMappings: {
|
|
16195
16252
|
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
@@ -16332,7 +16389,7 @@ const CartsRequestBuilderNavigationMetadata = {
|
|
|
16332
16389
|
pathParametersMappings: ["id"],
|
|
16333
16390
|
},
|
|
16334
16391
|
batch: {
|
|
16335
|
-
requestsMetadata: BatchRequestBuilderRequestsMetadata$
|
|
16392
|
+
requestsMetadata: BatchRequestBuilderRequestsMetadata$3,
|
|
16336
16393
|
},
|
|
16337
16394
|
};
|
|
16338
16395
|
/**
|
|
@@ -16960,6 +17017,38 @@ const EventTypesRequestBuilderRequestsMetadata = {
|
|
|
16960
17017
|
/* tslint:enable */
|
|
16961
17018
|
/* eslint-enable */
|
|
16962
17019
|
|
|
17020
|
+
/* tslint:disable */
|
|
17021
|
+
/* eslint-disable */
|
|
17022
|
+
// Generated by Microsoft Kiota
|
|
17023
|
+
// @ts-ignore
|
|
17024
|
+
/**
|
|
17025
|
+
* Uri template for the request builder.
|
|
17026
|
+
*/
|
|
17027
|
+
const BatchRequestBuilderUriTemplate$2 = "{+baseurl}/api/grantees/batch";
|
|
17028
|
+
/**
|
|
17029
|
+
* Metadata for all the requests in the request builder.
|
|
17030
|
+
*/
|
|
17031
|
+
const BatchRequestBuilderRequestsMetadata$2 = {
|
|
17032
|
+
post: {
|
|
17033
|
+
uriTemplate: BatchRequestBuilderUriTemplate$2,
|
|
17034
|
+
responseBodyContentType: "application/json",
|
|
17035
|
+
errorMappings: {
|
|
17036
|
+
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
17037
|
+
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
17038
|
+
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
17039
|
+
429: createErrorResponseBodyFromDiscriminatorValue,
|
|
17040
|
+
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
17041
|
+
},
|
|
17042
|
+
adapterMethodName: "send",
|
|
17043
|
+
responseBodyFactory: createBatchCreateGranteesResponseSchemaFromDiscriminatorValue,
|
|
17044
|
+
requestBodyContentType: "application/json",
|
|
17045
|
+
requestBodySerializer: serializeBatchCreateGranteesRequestSchema,
|
|
17046
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
17047
|
+
},
|
|
17048
|
+
};
|
|
17049
|
+
/* tslint:enable */
|
|
17050
|
+
/* eslint-enable */
|
|
17051
|
+
|
|
16963
17052
|
/* tslint:disable */
|
|
16964
17053
|
/* eslint-disable */
|
|
16965
17054
|
// Generated by Microsoft Kiota
|
|
@@ -17038,6 +17127,9 @@ const GranteesRequestBuilderNavigationMetadata = {
|
|
|
17038
17127
|
requestsMetadata: GranteesItemRequestBuilderRequestsMetadata,
|
|
17039
17128
|
pathParametersMappings: ["id"],
|
|
17040
17129
|
},
|
|
17130
|
+
batch: {
|
|
17131
|
+
requestsMetadata: BatchRequestBuilderRequestsMetadata$2,
|
|
17132
|
+
},
|
|
17041
17133
|
};
|
|
17042
17134
|
/**
|
|
17043
17135
|
* Metadata for all the requests in the request builder.
|