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