@salable/sdk 1.0.50 → 1.0.51
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 +164 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +164 -0
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/eventTypes/index.d.ts +53 -0
- package/dist/sdk/api/index.d.ts +10 -0
- package/dist/sdk/api/receiptItems/index.d.ts +53 -0
- package/dist/sdk/models/index.d.ts +195 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -7176,6 +7176,24 @@ function createGetEventListSchema_dataFromDiscriminatorValue(parseNode) {
|
|
|
7176
7176
|
function createGetEventListSchemaFromDiscriminatorValue(parseNode) {
|
|
7177
7177
|
return deserializeIntoGetEventListSchema;
|
|
7178
7178
|
}
|
|
7179
|
+
/**
|
|
7180
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
7181
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7182
|
+
* @returns {GetEventTypeListSchema_data}
|
|
7183
|
+
*/
|
|
7184
|
+
// @ts-ignore
|
|
7185
|
+
function createGetEventTypeListSchema_dataFromDiscriminatorValue(parseNode) {
|
|
7186
|
+
return deserializeIntoGetEventTypeListSchema_data;
|
|
7187
|
+
}
|
|
7188
|
+
/**
|
|
7189
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
7190
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7191
|
+
* @returns {GetEventTypeListSchema}
|
|
7192
|
+
*/
|
|
7193
|
+
// @ts-ignore
|
|
7194
|
+
function createGetEventTypeListSchemaFromDiscriminatorValue(parseNode) {
|
|
7195
|
+
return deserializeIntoGetEventTypeListSchema;
|
|
7196
|
+
}
|
|
7179
7197
|
/**
|
|
7180
7198
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
7181
7199
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -8211,6 +8229,24 @@ function createGetReceiptDetailSchema_dataFromDiscriminatorValue(parseNode) {
|
|
|
8211
8229
|
function createGetReceiptDetailSchemaFromDiscriminatorValue(parseNode) {
|
|
8212
8230
|
return deserializeIntoGetReceiptDetailSchema;
|
|
8213
8231
|
}
|
|
8232
|
+
/**
|
|
8233
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
8234
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
8235
|
+
* @returns {GetReceiptItemListSchema_data}
|
|
8236
|
+
*/
|
|
8237
|
+
// @ts-ignore
|
|
8238
|
+
function createGetReceiptItemListSchema_dataFromDiscriminatorValue(parseNode) {
|
|
8239
|
+
return deserializeIntoGetReceiptItemListSchema_data;
|
|
8240
|
+
}
|
|
8241
|
+
/**
|
|
8242
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
8243
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
8244
|
+
* @returns {GetReceiptItemListSchema}
|
|
8245
|
+
*/
|
|
8246
|
+
// @ts-ignore
|
|
8247
|
+
function createGetReceiptItemListSchemaFromDiscriminatorValue(parseNode) {
|
|
8248
|
+
return deserializeIntoGetReceiptItemListSchema;
|
|
8249
|
+
}
|
|
8214
8250
|
/**
|
|
8215
8251
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
8216
8252
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -10726,6 +10762,38 @@ function deserializeIntoGetEventListSchema_data(getEventListSchema_data = {}) {
|
|
|
10726
10762
|
"updatedAt": n => { getEventListSchema_data.updatedAt = n.getStringValue(); },
|
|
10727
10763
|
};
|
|
10728
10764
|
}
|
|
10765
|
+
/**
|
|
10766
|
+
* The deserialization information for the current model
|
|
10767
|
+
* @param GetEventTypeListSchema The instance to deserialize into.
|
|
10768
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
10769
|
+
*/
|
|
10770
|
+
// @ts-ignore
|
|
10771
|
+
function deserializeIntoGetEventTypeListSchema(getEventTypeListSchema = {}) {
|
|
10772
|
+
return {
|
|
10773
|
+
"data": n => { getEventTypeListSchema.data = n.getCollectionOfObjectValues(createGetEventTypeListSchema_dataFromDiscriminatorValue); },
|
|
10774
|
+
"hasMore": n => { getEventTypeListSchema.hasMore = n.getBooleanValue(); },
|
|
10775
|
+
"nextCursor": n => { getEventTypeListSchema.nextCursor = n.getStringValue(); },
|
|
10776
|
+
"previousCursor": n => { getEventTypeListSchema.previousCursor = n.getStringValue(); },
|
|
10777
|
+
"type": n => { getEventTypeListSchema.type = n.getStringValue(); },
|
|
10778
|
+
};
|
|
10779
|
+
}
|
|
10780
|
+
/**
|
|
10781
|
+
* The deserialization information for the current model
|
|
10782
|
+
* @param GetEventTypeListSchema_data The instance to deserialize into.
|
|
10783
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
10784
|
+
*/
|
|
10785
|
+
// @ts-ignore
|
|
10786
|
+
function deserializeIntoGetEventTypeListSchema_data(getEventTypeListSchema_data = {}) {
|
|
10787
|
+
return {
|
|
10788
|
+
"createdAt": n => { getEventTypeListSchema_data.createdAt = n.getStringValue(); },
|
|
10789
|
+
"deletedAt": n => { getEventTypeListSchema_data.deletedAt = n.getStringValue(); },
|
|
10790
|
+
"event": n => { getEventTypeListSchema_data.event = n.getStringValue(); },
|
|
10791
|
+
"id": n => { getEventTypeListSchema_data.id = n.getStringValue(); },
|
|
10792
|
+
"organisation": n => { getEventTypeListSchema_data.organisation = n.getStringValue(); },
|
|
10793
|
+
"updatedAt": n => { getEventTypeListSchema_data.updatedAt = n.getStringValue(); },
|
|
10794
|
+
"webhookId": n => { getEventTypeListSchema_data.webhookId = n.getStringValue(); },
|
|
10795
|
+
};
|
|
10796
|
+
}
|
|
10729
10797
|
/**
|
|
10730
10798
|
* The deserialization information for the current model
|
|
10731
10799
|
* @param GetGranteeDetailSchema The instance to deserialize into.
|
|
@@ -12704,6 +12772,38 @@ function deserializeIntoGetReceiptDetailSchema_data_receiptItems_data_lineItem(g
|
|
|
12704
12772
|
"updatedAt": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.updatedAt = n.getStringValue(); },
|
|
12705
12773
|
};
|
|
12706
12774
|
}
|
|
12775
|
+
/**
|
|
12776
|
+
* The deserialization information for the current model
|
|
12777
|
+
* @param GetReceiptItemListSchema The instance to deserialize into.
|
|
12778
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
12779
|
+
*/
|
|
12780
|
+
// @ts-ignore
|
|
12781
|
+
function deserializeIntoGetReceiptItemListSchema(getReceiptItemListSchema = {}) {
|
|
12782
|
+
return {
|
|
12783
|
+
"data": n => { getReceiptItemListSchema.data = n.getCollectionOfObjectValues(createGetReceiptItemListSchema_dataFromDiscriminatorValue); },
|
|
12784
|
+
"hasMore": n => { getReceiptItemListSchema.hasMore = n.getBooleanValue(); },
|
|
12785
|
+
"nextCursor": n => { getReceiptItemListSchema.nextCursor = n.getStringValue(); },
|
|
12786
|
+
"previousCursor": n => { getReceiptItemListSchema.previousCursor = n.getStringValue(); },
|
|
12787
|
+
"type": n => { getReceiptItemListSchema.type = n.getStringValue(); },
|
|
12788
|
+
};
|
|
12789
|
+
}
|
|
12790
|
+
/**
|
|
12791
|
+
* The deserialization information for the current model
|
|
12792
|
+
* @param GetReceiptItemListSchema_data The instance to deserialize into.
|
|
12793
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
12794
|
+
*/
|
|
12795
|
+
// @ts-ignore
|
|
12796
|
+
function deserializeIntoGetReceiptItemListSchema_data(getReceiptItemListSchema_data = {}) {
|
|
12797
|
+
return {
|
|
12798
|
+
"createdAt": n => { getReceiptItemListSchema_data.createdAt = n.getStringValue(); },
|
|
12799
|
+
"id": n => { getReceiptItemListSchema_data.id = n.getStringValue(); },
|
|
12800
|
+
"lineItemStripeProductId": n => { getReceiptItemListSchema_data.lineItemStripeProductId = n.getStringValue(); },
|
|
12801
|
+
"organisation": n => { getReceiptItemListSchema_data.organisation = n.getStringValue(); },
|
|
12802
|
+
"quantity": n => { getReceiptItemListSchema_data.quantity = n.getNumberValue(); },
|
|
12803
|
+
"receiptId": n => { getReceiptItemListSchema_data.receiptId = n.getStringValue(); },
|
|
12804
|
+
"updatedAt": n => { getReceiptItemListSchema_data.updatedAt = n.getStringValue(); },
|
|
12805
|
+
};
|
|
12806
|
+
}
|
|
12707
12807
|
/**
|
|
12708
12808
|
* The deserialization information for the current model
|
|
12709
12809
|
* @param GetReceiptListSchema The instance to deserialize into.
|
|
@@ -16716,6 +16816,35 @@ const EventsRequestBuilderRequestsMetadata = {
|
|
|
16716
16816
|
/* tslint:enable */
|
|
16717
16817
|
/* eslint-enable */
|
|
16718
16818
|
|
|
16819
|
+
/* tslint:disable */
|
|
16820
|
+
/* eslint-disable */
|
|
16821
|
+
// Generated by Microsoft Kiota
|
|
16822
|
+
// @ts-ignore
|
|
16823
|
+
/**
|
|
16824
|
+
* Uri template for the request builder.
|
|
16825
|
+
*/
|
|
16826
|
+
const EventTypesRequestBuilderUriTemplate = "{+baseurl}/api/event-types{?after*,before*,limit*,webhook*}";
|
|
16827
|
+
/**
|
|
16828
|
+
* Metadata for all the requests in the request builder.
|
|
16829
|
+
*/
|
|
16830
|
+
const EventTypesRequestBuilderRequestsMetadata = {
|
|
16831
|
+
get: {
|
|
16832
|
+
uriTemplate: EventTypesRequestBuilderUriTemplate,
|
|
16833
|
+
responseBodyContentType: "application/json",
|
|
16834
|
+
errorMappings: {
|
|
16835
|
+
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
16836
|
+
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
16837
|
+
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
16838
|
+
429: createErrorResponseBodyFromDiscriminatorValue,
|
|
16839
|
+
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
16840
|
+
},
|
|
16841
|
+
adapterMethodName: "send",
|
|
16842
|
+
responseBodyFactory: createGetEventTypeListSchemaFromDiscriminatorValue,
|
|
16843
|
+
},
|
|
16844
|
+
};
|
|
16845
|
+
/* tslint:enable */
|
|
16846
|
+
/* eslint-enable */
|
|
16847
|
+
|
|
16719
16848
|
/* tslint:disable */
|
|
16720
16849
|
/* eslint-disable */
|
|
16721
16850
|
// Generated by Microsoft Kiota
|
|
@@ -18102,6 +18231,35 @@ const ProductsRequestBuilderRequestsMetadata = {
|
|
|
18102
18231
|
/* tslint:enable */
|
|
18103
18232
|
/* eslint-enable */
|
|
18104
18233
|
|
|
18234
|
+
/* tslint:disable */
|
|
18235
|
+
/* eslint-disable */
|
|
18236
|
+
// Generated by Microsoft Kiota
|
|
18237
|
+
// @ts-ignore
|
|
18238
|
+
/**
|
|
18239
|
+
* Uri template for the request builder.
|
|
18240
|
+
*/
|
|
18241
|
+
const ReceiptItemsRequestBuilderUriTemplate = "{+baseurl}/api/receipt-items{?after*,before*,limit*,receipt*}";
|
|
18242
|
+
/**
|
|
18243
|
+
* Metadata for all the requests in the request builder.
|
|
18244
|
+
*/
|
|
18245
|
+
const ReceiptItemsRequestBuilderRequestsMetadata = {
|
|
18246
|
+
get: {
|
|
18247
|
+
uriTemplate: ReceiptItemsRequestBuilderUriTemplate,
|
|
18248
|
+
responseBodyContentType: "application/json",
|
|
18249
|
+
errorMappings: {
|
|
18250
|
+
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
18251
|
+
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
18252
|
+
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
18253
|
+
429: createErrorResponseBodyFromDiscriminatorValue,
|
|
18254
|
+
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
18255
|
+
},
|
|
18256
|
+
adapterMethodName: "send",
|
|
18257
|
+
responseBodyFactory: createGetReceiptItemListSchemaFromDiscriminatorValue,
|
|
18258
|
+
},
|
|
18259
|
+
};
|
|
18260
|
+
/* tslint:enable */
|
|
18261
|
+
/* eslint-enable */
|
|
18262
|
+
|
|
18105
18263
|
/* tslint:disable */
|
|
18106
18264
|
/* eslint-disable */
|
|
18107
18265
|
// Generated by Microsoft Kiota
|
|
@@ -20151,6 +20309,9 @@ const ApiRequestBuilderNavigationMetadata = {
|
|
|
20151
20309
|
requestsMetadata: EventsRequestBuilderRequestsMetadata,
|
|
20152
20310
|
navigationMetadata: EventsRequestBuilderNavigationMetadata,
|
|
20153
20311
|
},
|
|
20312
|
+
eventTypes: {
|
|
20313
|
+
requestsMetadata: EventTypesRequestBuilderRequestsMetadata,
|
|
20314
|
+
},
|
|
20154
20315
|
grantees: {
|
|
20155
20316
|
requestsMetadata: GranteesRequestBuilderRequestsMetadata$1,
|
|
20156
20317
|
navigationMetadata: GranteesRequestBuilderNavigationMetadata,
|
|
@@ -20190,6 +20351,9 @@ const ApiRequestBuilderNavigationMetadata = {
|
|
|
20190
20351
|
requestsMetadata: ProductsRequestBuilderRequestsMetadata,
|
|
20191
20352
|
navigationMetadata: ProductsRequestBuilderNavigationMetadata,
|
|
20192
20353
|
},
|
|
20354
|
+
receiptItems: {
|
|
20355
|
+
requestsMetadata: ReceiptItemsRequestBuilderRequestsMetadata,
|
|
20356
|
+
},
|
|
20193
20357
|
receipts: {
|
|
20194
20358
|
requestsMetadata: ReceiptsRequestBuilderRequestsMetadata,
|
|
20195
20359
|
navigationMetadata: ReceiptsRequestBuilderNavigationMetadata,
|