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