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