@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.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.
|
|
@@ -9691,6 +9758,7 @@ function deserializeIntoGetAIConversationDetailSchema_data_messages_data(getAICo
|
|
|
9691
9758
|
"id": n => { getAIConversationDetailSchema_data_messages_data.id = n.getStringValue(); },
|
|
9692
9759
|
"organisation": n => { getAIConversationDetailSchema_data_messages_data.organisation = n.getStringValue(); },
|
|
9693
9760
|
"role": n => { getAIConversationDetailSchema_data_messages_data.role = n.getStringValue(); },
|
|
9761
|
+
"status": n => { getAIConversationDetailSchema_data_messages_data.status = n.getStringValue(); },
|
|
9694
9762
|
};
|
|
9695
9763
|
}
|
|
9696
9764
|
/**
|
|
@@ -9900,6 +9968,7 @@ function deserializeIntoGetAiMessageListSchema_data(getAiMessageListSchema_data
|
|
|
9900
9968
|
"id": n => { getAiMessageListSchema_data.id = n.getStringValue(); },
|
|
9901
9969
|
"organisation": n => { getAiMessageListSchema_data.organisation = n.getStringValue(); },
|
|
9902
9970
|
"role": n => { getAiMessageListSchema_data.role = n.getStringValue(); },
|
|
9971
|
+
"status": n => { getAiMessageListSchema_data.status = n.getStringValue(); },
|
|
9903
9972
|
};
|
|
9904
9973
|
}
|
|
9905
9974
|
/**
|
|
@@ -14496,6 +14565,20 @@ function serializeBatchCartActionsRequestSchema(writer, batchCartActionsRequestS
|
|
|
14496
14565
|
writer.writeEnumValue("action", batchCartActionsRequestSchema.action);
|
|
14497
14566
|
writer.writeCollectionOfPrimitiveValues("cartIds", batchCartActionsRequestSchema.cartIds);
|
|
14498
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
|
+
}
|
|
14499
14582
|
/**
|
|
14500
14583
|
* Serializes information the current object
|
|
14501
14584
|
* @param BatchSubscriptionActionsRequestSchema The instance to serialize from.
|
|
@@ -15650,13 +15733,13 @@ const CartItemsRequestBuilderRequestsMetadata = {
|
|
|
15650
15733
|
/**
|
|
15651
15734
|
* Uri template for the request builder.
|
|
15652
15735
|
*/
|
|
15653
|
-
const BatchRequestBuilderUriTemplate$
|
|
15736
|
+
const BatchRequestBuilderUriTemplate$2 = "{+baseurl}/api/carts/batch";
|
|
15654
15737
|
/**
|
|
15655
15738
|
* Metadata for all the requests in the request builder.
|
|
15656
15739
|
*/
|
|
15657
|
-
const BatchRequestBuilderRequestsMetadata$
|
|
15740
|
+
const BatchRequestBuilderRequestsMetadata$2 = {
|
|
15658
15741
|
post: {
|
|
15659
|
-
uriTemplate: BatchRequestBuilderUriTemplate$
|
|
15742
|
+
uriTemplate: BatchRequestBuilderUriTemplate$2,
|
|
15660
15743
|
responseBodyContentType: "application/json",
|
|
15661
15744
|
errorMappings: {
|
|
15662
15745
|
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
@@ -15795,7 +15878,7 @@ const CartsRequestBuilderNavigationMetadata = {
|
|
|
15795
15878
|
pathParametersMappings: ["id"],
|
|
15796
15879
|
},
|
|
15797
15880
|
batch: {
|
|
15798
|
-
requestsMetadata: BatchRequestBuilderRequestsMetadata$
|
|
15881
|
+
requestsMetadata: BatchRequestBuilderRequestsMetadata$2,
|
|
15799
15882
|
},
|
|
15800
15883
|
};
|
|
15801
15884
|
/**
|
|
@@ -17644,6 +17727,40 @@ const ProductsRequestBuilderRequestsMetadata = {
|
|
|
17644
17727
|
/* tslint:enable */
|
|
17645
17728
|
/* eslint-enable */
|
|
17646
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
|
+
|
|
17647
17764
|
/* tslint:disable */
|
|
17648
17765
|
/* eslint-disable */
|
|
17649
17766
|
// Generated by Microsoft Kiota
|
|
@@ -17656,6 +17773,20 @@ const ReceiptsItemRequestBuilderUriTemplate = "{+baseurl}/api/receipts/{id}{?exp
|
|
|
17656
17773
|
* Metadata for all the requests in the request builder.
|
|
17657
17774
|
*/
|
|
17658
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
|
+
},
|
|
17659
17790
|
get: {
|
|
17660
17791
|
uriTemplate: ReceiptsItemRequestBuilderUriTemplate,
|
|
17661
17792
|
responseBodyContentType: "application/json",
|
|
@@ -17689,6 +17820,9 @@ const ReceiptsRequestBuilderNavigationMetadata = {
|
|
|
17689
17820
|
requestsMetadata: ReceiptsItemRequestBuilderRequestsMetadata,
|
|
17690
17821
|
pathParametersMappings: ["id"],
|
|
17691
17822
|
},
|
|
17823
|
+
batch: {
|
|
17824
|
+
requestsMetadata: BatchRequestBuilderRequestsMetadata$1,
|
|
17825
|
+
},
|
|
17692
17826
|
};
|
|
17693
17827
|
/**
|
|
17694
17828
|
* Metadata for all the requests in the request builder.
|