@salable/sdk 1.0.0 → 1.0.1
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 +122 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +122 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/owners/index.d.ts +7 -1
- package/dist/sdk/api/owners/item/index.d.ts +17 -0
- package/dist/sdk/models/index.d.ts +212 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -7626,6 +7626,42 @@ function createGetOwnerDetailSchema_dataFromDiscriminatorValue(parseNode) {
|
|
|
7626
7626
|
function createGetOwnerDetailSchemaFromDiscriminatorValue(parseNode) {
|
|
7627
7627
|
return deserializeIntoGetOwnerDetailSchema;
|
|
7628
7628
|
}
|
|
7629
|
+
/**
|
|
7630
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
7631
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7632
|
+
* @returns {GetOwnerListSchema_data_receipts_data}
|
|
7633
|
+
*/
|
|
7634
|
+
// @ts-ignore
|
|
7635
|
+
function createGetOwnerListSchema_data_receipts_dataFromDiscriminatorValue(parseNode) {
|
|
7636
|
+
return deserializeIntoGetOwnerListSchema_data_receipts_data;
|
|
7637
|
+
}
|
|
7638
|
+
/**
|
|
7639
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
7640
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7641
|
+
* @returns {GetOwnerListSchema_data_receipts}
|
|
7642
|
+
*/
|
|
7643
|
+
// @ts-ignore
|
|
7644
|
+
function createGetOwnerListSchema_data_receiptsFromDiscriminatorValue(parseNode) {
|
|
7645
|
+
return deserializeIntoGetOwnerListSchema_data_receipts;
|
|
7646
|
+
}
|
|
7647
|
+
/**
|
|
7648
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
7649
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7650
|
+
* @returns {GetOwnerListSchema_data_subscriptions_data}
|
|
7651
|
+
*/
|
|
7652
|
+
// @ts-ignore
|
|
7653
|
+
function createGetOwnerListSchema_data_subscriptions_dataFromDiscriminatorValue(parseNode) {
|
|
7654
|
+
return deserializeIntoGetOwnerListSchema_data_subscriptions_data;
|
|
7655
|
+
}
|
|
7656
|
+
/**
|
|
7657
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
7658
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7659
|
+
* @returns {GetOwnerListSchema_data_subscriptions}
|
|
7660
|
+
*/
|
|
7661
|
+
// @ts-ignore
|
|
7662
|
+
function createGetOwnerListSchema_data_subscriptionsFromDiscriminatorValue(parseNode) {
|
|
7663
|
+
return deserializeIntoGetOwnerListSchema_data_subscriptions;
|
|
7664
|
+
}
|
|
7629
7665
|
/**
|
|
7630
7666
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
7631
7667
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -11615,11 +11651,83 @@ function deserializeIntoGetOwnerListSchema_data(getOwnerListSchema_data = {}) {
|
|
|
11615
11651
|
"emailAddress": n => { getOwnerListSchema_data.emailAddress = n.getStringValue(); },
|
|
11616
11652
|
"id": n => { getOwnerListSchema_data.id = n.getStringValue(); },
|
|
11617
11653
|
"organisation": n => { getOwnerListSchema_data.organisation = n.getStringValue(); },
|
|
11654
|
+
"receipts": n => { getOwnerListSchema_data.receipts = n.getObjectValue(createGetOwnerListSchema_data_receiptsFromDiscriminatorValue); },
|
|
11618
11655
|
"stripeCustomerId": n => { getOwnerListSchema_data.stripeCustomerId = n.getStringValue(); },
|
|
11656
|
+
"subscriptions": n => { getOwnerListSchema_data.subscriptions = n.getObjectValue(createGetOwnerListSchema_data_subscriptionsFromDiscriminatorValue); },
|
|
11619
11657
|
"updatedAt": n => { getOwnerListSchema_data.updatedAt = n.getStringValue(); },
|
|
11620
11658
|
"value": n => { getOwnerListSchema_data.value = n.getStringValue(); },
|
|
11621
11659
|
};
|
|
11622
11660
|
}
|
|
11661
|
+
/**
|
|
11662
|
+
* The deserialization information for the current model
|
|
11663
|
+
* @param GetOwnerListSchema_data_receipts The instance to deserialize into.
|
|
11664
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
11665
|
+
*/
|
|
11666
|
+
// @ts-ignore
|
|
11667
|
+
function deserializeIntoGetOwnerListSchema_data_receipts(getOwnerListSchema_data_receipts = {}) {
|
|
11668
|
+
return {
|
|
11669
|
+
"data": n => { getOwnerListSchema_data_receipts.data = n.getCollectionOfObjectValues(createGetOwnerListSchema_data_receipts_dataFromDiscriminatorValue); },
|
|
11670
|
+
"hasMore": n => { getOwnerListSchema_data_receipts.hasMore = n.getBooleanValue(); },
|
|
11671
|
+
"path": n => { getOwnerListSchema_data_receipts.path = n.getStringValue(); },
|
|
11672
|
+
"type": n => { getOwnerListSchema_data_receipts.type = n.getStringValue(); },
|
|
11673
|
+
};
|
|
11674
|
+
}
|
|
11675
|
+
/**
|
|
11676
|
+
* The deserialization information for the current model
|
|
11677
|
+
* @param GetOwnerListSchema_data_receipts_data The instance to deserialize into.
|
|
11678
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
11679
|
+
*/
|
|
11680
|
+
// @ts-ignore
|
|
11681
|
+
function deserializeIntoGetOwnerListSchema_data_receipts_data(getOwnerListSchema_data_receipts_data = {}) {
|
|
11682
|
+
return {
|
|
11683
|
+
"createdAt": n => { getOwnerListSchema_data_receipts_data.createdAt = n.getStringValue(); },
|
|
11684
|
+
"id": n => { getOwnerListSchema_data_receipts_data.id = n.getStringValue(); },
|
|
11685
|
+
"organisation": n => { getOwnerListSchema_data_receipts_data.organisation = n.getStringValue(); },
|
|
11686
|
+
"ownerId": n => { getOwnerListSchema_data_receipts_data.ownerId = n.getStringValue(); },
|
|
11687
|
+
"subscriptionId": n => { getOwnerListSchema_data_receipts_data.subscriptionId = n.getStringValue(); },
|
|
11688
|
+
"updatedAt": n => { getOwnerListSchema_data_receipts_data.updatedAt = n.getStringValue(); },
|
|
11689
|
+
};
|
|
11690
|
+
}
|
|
11691
|
+
/**
|
|
11692
|
+
* The deserialization information for the current model
|
|
11693
|
+
* @param GetOwnerListSchema_data_subscriptions The instance to deserialize into.
|
|
11694
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
11695
|
+
*/
|
|
11696
|
+
// @ts-ignore
|
|
11697
|
+
function deserializeIntoGetOwnerListSchema_data_subscriptions(getOwnerListSchema_data_subscriptions = {}) {
|
|
11698
|
+
return {
|
|
11699
|
+
"data": n => { getOwnerListSchema_data_subscriptions.data = n.getCollectionOfObjectValues(createGetOwnerListSchema_data_subscriptions_dataFromDiscriminatorValue); },
|
|
11700
|
+
"hasMore": n => { getOwnerListSchema_data_subscriptions.hasMore = n.getBooleanValue(); },
|
|
11701
|
+
"path": n => { getOwnerListSchema_data_subscriptions.path = n.getStringValue(); },
|
|
11702
|
+
"type": n => { getOwnerListSchema_data_subscriptions.type = n.getStringValue(); },
|
|
11703
|
+
};
|
|
11704
|
+
}
|
|
11705
|
+
/**
|
|
11706
|
+
* The deserialization information for the current model
|
|
11707
|
+
* @param GetOwnerListSchema_data_subscriptions_data The instance to deserialize into.
|
|
11708
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
11709
|
+
*/
|
|
11710
|
+
// @ts-ignore
|
|
11711
|
+
function deserializeIntoGetOwnerListSchema_data_subscriptions_data(getOwnerListSchema_data_subscriptions_data = {}) {
|
|
11712
|
+
return {
|
|
11713
|
+
"cancelAtPeriodEnd": n => { getOwnerListSchema_data_subscriptions_data.cancelAtPeriodEnd = n.getBooleanValue(); },
|
|
11714
|
+
"cancelledAt": n => { getOwnerListSchema_data_subscriptions_data.cancelledAt = n.getStringValue(); },
|
|
11715
|
+
"createdAt": n => { getOwnerListSchema_data_subscriptions_data.createdAt = n.getStringValue(); },
|
|
11716
|
+
"currencyShortCode": n => { getOwnerListSchema_data_subscriptions_data.currencyShortCode = n.getStringValue(); },
|
|
11717
|
+
"customerId": n => { getOwnerListSchema_data_subscriptions_data.customerId = n.getStringValue(); },
|
|
11718
|
+
"id": n => { getOwnerListSchema_data_subscriptions_data.id = n.getStringValue(); },
|
|
11719
|
+
"interval": n => { getOwnerListSchema_data_subscriptions_data.interval = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
11720
|
+
"intervalCount": n => { getOwnerListSchema_data_subscriptions_data.intervalCount = n.getNumberValue(); },
|
|
11721
|
+
"isPerpetual": n => { getOwnerListSchema_data_subscriptions_data.isPerpetual = n.getBooleanValue(); },
|
|
11722
|
+
"isSalableOnly": n => { getOwnerListSchema_data_subscriptions_data.isSalableOnly = n.getBooleanValue(); },
|
|
11723
|
+
"organisation": n => { getOwnerListSchema_data_subscriptions_data.organisation = n.getStringValue(); },
|
|
11724
|
+
"ownerId": n => { getOwnerListSchema_data_subscriptions_data.ownerId = n.getStringValue(); },
|
|
11725
|
+
"startDate": n => { getOwnerListSchema_data_subscriptions_data.startDate = n.getStringValue(); },
|
|
11726
|
+
"status": n => { getOwnerListSchema_data_subscriptions_data.status = n.getStringValue(); },
|
|
11727
|
+
"stripeSubscriptionId": n => { getOwnerListSchema_data_subscriptions_data.stripeSubscriptionId = n.getStringValue(); },
|
|
11728
|
+
"updatedAt": n => { getOwnerListSchema_data_subscriptions_data.updatedAt = n.getStringValue(); },
|
|
11729
|
+
};
|
|
11730
|
+
}
|
|
11623
11731
|
/**
|
|
11624
11732
|
* The deserialization information for the current model
|
|
11625
11733
|
* @param GetPaymentIntegrationListSchema The instance to deserialize into.
|
|
@@ -16700,6 +16808,19 @@ const OwnersItemRequestBuilderUriTemplate = "{+baseurl}/api/owners/{id}{?expand}
|
|
|
16700
16808
|
* Metadata for all the requests in the request builder.
|
|
16701
16809
|
*/
|
|
16702
16810
|
const OwnersItemRequestBuilderRequestsMetadata = {
|
|
16811
|
+
delete: {
|
|
16812
|
+
uriTemplate: OwnersItemRequestBuilderUriTemplate,
|
|
16813
|
+
responseBodyContentType: "application/json",
|
|
16814
|
+
errorMappings: {
|
|
16815
|
+
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
16816
|
+
403: createErrorResponseBodyFromDiscriminatorValue,
|
|
16817
|
+
404: createErrorResponseBodyFromDiscriminatorValue,
|
|
16818
|
+
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
16819
|
+
409: createErrorResponseBodyFromDiscriminatorValue,
|
|
16820
|
+
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
16821
|
+
},
|
|
16822
|
+
adapterMethodName: "sendNoResponseContent",
|
|
16823
|
+
},
|
|
16703
16824
|
get: {
|
|
16704
16825
|
uriTemplate: OwnersItemRequestBuilderUriTemplate,
|
|
16705
16826
|
responseBodyContentType: "application/json",
|
|
@@ -16740,7 +16861,7 @@ const OwnersItemRequestBuilderRequestsMetadata = {
|
|
|
16740
16861
|
/**
|
|
16741
16862
|
* Uri template for the request builder.
|
|
16742
16863
|
*/
|
|
16743
|
-
const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,limit*,search*,stripeCustomerId*}";
|
|
16864
|
+
const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,expand,limit*,search*,stripeCustomerId*}";
|
|
16744
16865
|
/**
|
|
16745
16866
|
* Metadata for all the navigation properties in the request builder.
|
|
16746
16867
|
*/
|