@salable/sdk 1.0.0 → 1.0.2
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 +127 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +127 -2
- 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/api/plans/index.d.ts +5 -4
- package/dist/sdk/models/index.d.ts +228 -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.
|
|
@@ -12246,8 +12354,12 @@ function deserializeIntoGetPlanListSchema_data_lineItems_data_prices_data_curren
|
|
|
12246
12354
|
function deserializeIntoGetPlanListSchema_data_product(getPlanListSchema_data_product = {}) {
|
|
12247
12355
|
return {
|
|
12248
12356
|
"archivedAt": n => { getPlanListSchema_data_product.archivedAt = n.getStringValue(); },
|
|
12357
|
+
"createdAt": n => { getPlanListSchema_data_product.createdAt = n.getStringValue(); },
|
|
12249
12358
|
"id": n => { getPlanListSchema_data_product.id = n.getStringValue(); },
|
|
12359
|
+
"isActive": n => { getPlanListSchema_data_product.isActive = n.getBooleanValue(); },
|
|
12250
12360
|
"name": n => { getPlanListSchema_data_product.name = n.getStringValue(); },
|
|
12361
|
+
"organisation": n => { getPlanListSchema_data_product.organisation = n.getStringValue(); },
|
|
12362
|
+
"updatedAt": n => { getPlanListSchema_data_product.updatedAt = n.getStringValue(); },
|
|
12251
12363
|
};
|
|
12252
12364
|
}
|
|
12253
12365
|
/**
|
|
@@ -16700,6 +16812,19 @@ const OwnersItemRequestBuilderUriTemplate = "{+baseurl}/api/owners/{id}{?expand}
|
|
|
16700
16812
|
* Metadata for all the requests in the request builder.
|
|
16701
16813
|
*/
|
|
16702
16814
|
const OwnersItemRequestBuilderRequestsMetadata = {
|
|
16815
|
+
delete: {
|
|
16816
|
+
uriTemplate: OwnersItemRequestBuilderUriTemplate,
|
|
16817
|
+
responseBodyContentType: "application/json",
|
|
16818
|
+
errorMappings: {
|
|
16819
|
+
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
16820
|
+
403: createErrorResponseBodyFromDiscriminatorValue,
|
|
16821
|
+
404: createErrorResponseBodyFromDiscriminatorValue,
|
|
16822
|
+
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
16823
|
+
409: createErrorResponseBodyFromDiscriminatorValue,
|
|
16824
|
+
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
16825
|
+
},
|
|
16826
|
+
adapterMethodName: "sendNoResponseContent",
|
|
16827
|
+
},
|
|
16703
16828
|
get: {
|
|
16704
16829
|
uriTemplate: OwnersItemRequestBuilderUriTemplate,
|
|
16705
16830
|
responseBodyContentType: "application/json",
|
|
@@ -16740,7 +16865,7 @@ const OwnersItemRequestBuilderRequestsMetadata = {
|
|
|
16740
16865
|
/**
|
|
16741
16866
|
* Uri template for the request builder.
|
|
16742
16867
|
*/
|
|
16743
|
-
const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,limit*,search*,stripeCustomerId*}";
|
|
16868
|
+
const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,expand,limit*,search*,stripeCustomerId*}";
|
|
16744
16869
|
/**
|
|
16745
16870
|
* Metadata for all the navigation properties in the request builder.
|
|
16746
16871
|
*/
|
|
@@ -17035,7 +17160,7 @@ const SaveRequestBuilderRequestsMetadata = {
|
|
|
17035
17160
|
/**
|
|
17036
17161
|
* Uri template for the request builder.
|
|
17037
17162
|
*/
|
|
17038
|
-
const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,
|
|
17163
|
+
const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,currency*,expand,includeArchived*,includeFilterOptions*,interval*,intervalCount*,isActive*,limit*,productId*,search*}";
|
|
17039
17164
|
/**
|
|
17040
17165
|
* Metadata for all the navigation properties in the request builder.
|
|
17041
17166
|
*/
|