@salable/sdk 1.0.58 → 1.0.59
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 +52 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -1
- package/dist/sdk/models/index.d.ts +98 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6764,6 +6764,15 @@ function createGetApiKeyListSchema_dataFromDiscriminatorValue(parseNode) {
|
|
|
6764
6764
|
function createGetApiKeyListSchemaFromDiscriminatorValue(parseNode) {
|
|
6765
6765
|
return deserializeIntoGetApiKeyListSchema;
|
|
6766
6766
|
}
|
|
6767
|
+
/**
|
|
6768
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6769
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6770
|
+
* @returns {GetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter}
|
|
6771
|
+
*/
|
|
6772
|
+
// @ts-ignore
|
|
6773
|
+
function createGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meterFromDiscriminatorValue(parseNode) {
|
|
6774
|
+
return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter;
|
|
6775
|
+
}
|
|
6767
6776
|
/**
|
|
6768
6777
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6769
6778
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -6872,6 +6881,15 @@ function createGetCartDetailSchema_data_cartItems_data_plan_product_dataFromDisc
|
|
|
6872
6881
|
function createGetCartDetailSchema_data_cartItems_data_plan_productFromDiscriminatorValue(parseNode) {
|
|
6873
6882
|
return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product;
|
|
6874
6883
|
}
|
|
6884
|
+
/**
|
|
6885
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6886
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6887
|
+
* @returns {GetCartDetailSchema_data_cartItems_data_plan_tierTag}
|
|
6888
|
+
*/
|
|
6889
|
+
// @ts-ignore
|
|
6890
|
+
function createGetCartDetailSchema_data_cartItems_data_plan_tierTagFromDiscriminatorValue(parseNode) {
|
|
6891
|
+
return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_tierTag;
|
|
6892
|
+
}
|
|
6875
6893
|
/**
|
|
6876
6894
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6877
6895
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -10122,6 +10140,7 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan(getCartDeta
|
|
|
10122
10140
|
"organisation": n => { getCartDetailSchema_data_cartItems_data_plan.organisation = n.getStringValue(); },
|
|
10123
10141
|
"product": n => { getCartDetailSchema_data_cartItems_data_plan.product = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_productFromDiscriminatorValue); },
|
|
10124
10142
|
"productId": n => { getCartDetailSchema_data_cartItems_data_plan.productId = n.getStringValue(); },
|
|
10143
|
+
"tierTag": n => { getCartDetailSchema_data_cartItems_data_plan.tierTag = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_tierTagFromDiscriminatorValue); },
|
|
10125
10144
|
"tierTagId": n => { getCartDetailSchema_data_cartItems_data_plan.tierTagId = n.getStringValue(); },
|
|
10126
10145
|
"trialPeriodDays": n => { getCartDetailSchema_data_cartItems_data_plan.trialPeriodDays = n.getNumberValue(); },
|
|
10127
10146
|
"updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan.updatedAt = n.getStringValue(); },
|
|
@@ -10156,6 +10175,7 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_d
|
|
|
10156
10175
|
"isActive": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.isActive = n.getBooleanValue(); },
|
|
10157
10176
|
"isUnlimited": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.isUnlimited = n.getBooleanValue(); },
|
|
10158
10177
|
"maxQuantity": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.maxQuantity = n.getNumberValue(); },
|
|
10178
|
+
"meter": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.meter = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meterFromDiscriminatorValue); },
|
|
10159
10179
|
"meterId": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.meterId = n.getStringValue(); },
|
|
10160
10180
|
"minQuantity": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.minQuantity = n.getNumberValue(); },
|
|
10161
10181
|
"name": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.name = n.getStringValue(); },
|
|
@@ -10171,6 +10191,23 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_d
|
|
|
10171
10191
|
"updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.updatedAt = n.getStringValue(); },
|
|
10172
10192
|
};
|
|
10173
10193
|
}
|
|
10194
|
+
/**
|
|
10195
|
+
* The deserialization information for the current model
|
|
10196
|
+
* @param GetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter The instance to deserialize into.
|
|
10197
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
10198
|
+
*/
|
|
10199
|
+
// @ts-ignore
|
|
10200
|
+
function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter(getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter = {}) {
|
|
10201
|
+
return {
|
|
10202
|
+
"createdAt": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.createdAt = n.getStringValue(); },
|
|
10203
|
+
"id": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.id = n.getStringValue(); },
|
|
10204
|
+
"name": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.name = n.getStringValue(); },
|
|
10205
|
+
"organisation": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.organisation = n.getStringValue(); },
|
|
10206
|
+
"slug": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.slug = n.getStringValue(); },
|
|
10207
|
+
"stripeMeterId": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.stripeMeterId = n.getStringValue(); },
|
|
10208
|
+
"updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.updatedAt = n.getStringValue(); },
|
|
10209
|
+
};
|
|
10210
|
+
}
|
|
10174
10211
|
/**
|
|
10175
10212
|
* The deserialization information for the current model
|
|
10176
10213
|
* @param GetCartDetailSchema_data_cartItems_data_plan_lineItems_data_prices The instance to deserialize into.
|
|
@@ -10314,6 +10351,21 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_dat
|
|
|
10314
10351
|
function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1(getCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1 = {}) {
|
|
10315
10352
|
return {};
|
|
10316
10353
|
}
|
|
10354
|
+
/**
|
|
10355
|
+
* The deserialization information for the current model
|
|
10356
|
+
* @param GetCartDetailSchema_data_cartItems_data_plan_tierTag The instance to deserialize into.
|
|
10357
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
10358
|
+
*/
|
|
10359
|
+
// @ts-ignore
|
|
10360
|
+
function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_tierTag(getCartDetailSchema_data_cartItems_data_plan_tierTag = {}) {
|
|
10361
|
+
return {
|
|
10362
|
+
"createdAt": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.createdAt = n.getStringValue(); },
|
|
10363
|
+
"id": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.id = n.getStringValue(); },
|
|
10364
|
+
"name": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.name = n.getStringValue(); },
|
|
10365
|
+
"organisation": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.organisation = n.getStringValue(); },
|
|
10366
|
+
"updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.updatedAt = n.getStringValue(); },
|
|
10367
|
+
};
|
|
10368
|
+
}
|
|
10317
10369
|
/**
|
|
10318
10370
|
* The deserialization information for the current model
|
|
10319
10371
|
* @param GetCartDetailSchema_data_owner The instance to deserialize into.
|