@salable/sdk 1.0.5 → 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 +138 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +138 -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 +189 -0
- package/package.json +1 -1
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.
|
|
@@ -9689,6 +9756,7 @@ function deserializeIntoGetAIConversationDetailSchema_data_messages_data(getAICo
|
|
|
9689
9756
|
"id": n => { getAIConversationDetailSchema_data_messages_data.id = n.getStringValue(); },
|
|
9690
9757
|
"organisation": n => { getAIConversationDetailSchema_data_messages_data.organisation = n.getStringValue(); },
|
|
9691
9758
|
"role": n => { getAIConversationDetailSchema_data_messages_data.role = n.getStringValue(); },
|
|
9759
|
+
"status": n => { getAIConversationDetailSchema_data_messages_data.status = n.getStringValue(); },
|
|
9692
9760
|
};
|
|
9693
9761
|
}
|
|
9694
9762
|
/**
|
|
@@ -9898,6 +9966,7 @@ function deserializeIntoGetAiMessageListSchema_data(getAiMessageListSchema_data
|
|
|
9898
9966
|
"id": n => { getAiMessageListSchema_data.id = n.getStringValue(); },
|
|
9899
9967
|
"organisation": n => { getAiMessageListSchema_data.organisation = n.getStringValue(); },
|
|
9900
9968
|
"role": n => { getAiMessageListSchema_data.role = n.getStringValue(); },
|
|
9969
|
+
"status": n => { getAiMessageListSchema_data.status = n.getStringValue(); },
|
|
9901
9970
|
};
|
|
9902
9971
|
}
|
|
9903
9972
|
/**
|
|
@@ -14494,6 +14563,20 @@ function serializeBatchCartActionsRequestSchema(writer, batchCartActionsRequestS
|
|
|
14494
14563
|
writer.writeEnumValue("action", batchCartActionsRequestSchema.action);
|
|
14495
14564
|
writer.writeCollectionOfPrimitiveValues("cartIds", batchCartActionsRequestSchema.cartIds);
|
|
14496
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
|
+
}
|
|
14497
14580
|
/**
|
|
14498
14581
|
* Serializes information the current object
|
|
14499
14582
|
* @param BatchSubscriptionActionsRequestSchema The instance to serialize from.
|
|
@@ -15648,13 +15731,13 @@ const CartItemsRequestBuilderRequestsMetadata = {
|
|
|
15648
15731
|
/**
|
|
15649
15732
|
* Uri template for the request builder.
|
|
15650
15733
|
*/
|
|
15651
|
-
const BatchRequestBuilderUriTemplate$
|
|
15734
|
+
const BatchRequestBuilderUriTemplate$2 = "{+baseurl}/api/carts/batch";
|
|
15652
15735
|
/**
|
|
15653
15736
|
* Metadata for all the requests in the request builder.
|
|
15654
15737
|
*/
|
|
15655
|
-
const BatchRequestBuilderRequestsMetadata$
|
|
15738
|
+
const BatchRequestBuilderRequestsMetadata$2 = {
|
|
15656
15739
|
post: {
|
|
15657
|
-
uriTemplate: BatchRequestBuilderUriTemplate$
|
|
15740
|
+
uriTemplate: BatchRequestBuilderUriTemplate$2,
|
|
15658
15741
|
responseBodyContentType: "application/json",
|
|
15659
15742
|
errorMappings: {
|
|
15660
15743
|
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
@@ -15793,7 +15876,7 @@ const CartsRequestBuilderNavigationMetadata = {
|
|
|
15793
15876
|
pathParametersMappings: ["id"],
|
|
15794
15877
|
},
|
|
15795
15878
|
batch: {
|
|
15796
|
-
requestsMetadata: BatchRequestBuilderRequestsMetadata$
|
|
15879
|
+
requestsMetadata: BatchRequestBuilderRequestsMetadata$2,
|
|
15797
15880
|
},
|
|
15798
15881
|
};
|
|
15799
15882
|
/**
|
|
@@ -17642,6 +17725,40 @@ const ProductsRequestBuilderRequestsMetadata = {
|
|
|
17642
17725
|
/* tslint:enable */
|
|
17643
17726
|
/* eslint-enable */
|
|
17644
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
|
+
|
|
17645
17762
|
/* tslint:disable */
|
|
17646
17763
|
/* eslint-disable */
|
|
17647
17764
|
// Generated by Microsoft Kiota
|
|
@@ -17654,6 +17771,20 @@ const ReceiptsItemRequestBuilderUriTemplate = "{+baseurl}/api/receipts/{id}{?exp
|
|
|
17654
17771
|
* Metadata for all the requests in the request builder.
|
|
17655
17772
|
*/
|
|
17656
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
|
+
},
|
|
17657
17788
|
get: {
|
|
17658
17789
|
uriTemplate: ReceiptsItemRequestBuilderUriTemplate,
|
|
17659
17790
|
responseBodyContentType: "application/json",
|
|
@@ -17687,6 +17818,9 @@ const ReceiptsRequestBuilderNavigationMetadata = {
|
|
|
17687
17818
|
requestsMetadata: ReceiptsItemRequestBuilderRequestsMetadata,
|
|
17688
17819
|
pathParametersMappings: ["id"],
|
|
17689
17820
|
},
|
|
17821
|
+
batch: {
|
|
17822
|
+
requestsMetadata: BatchRequestBuilderRequestsMetadata$1,
|
|
17823
|
+
},
|
|
17690
17824
|
};
|
|
17691
17825
|
/**
|
|
17692
17826
|
* Metadata for all the requests in the request builder.
|