@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.es.js
CHANGED
|
@@ -6762,6 +6762,15 @@ function createGetApiKeyListSchema_dataFromDiscriminatorValue(parseNode) {
|
|
|
6762
6762
|
function createGetApiKeyListSchemaFromDiscriminatorValue(parseNode) {
|
|
6763
6763
|
return deserializeIntoGetApiKeyListSchema;
|
|
6764
6764
|
}
|
|
6765
|
+
/**
|
|
6766
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6767
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6768
|
+
* @returns {GetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter}
|
|
6769
|
+
*/
|
|
6770
|
+
// @ts-ignore
|
|
6771
|
+
function createGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meterFromDiscriminatorValue(parseNode) {
|
|
6772
|
+
return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter;
|
|
6773
|
+
}
|
|
6765
6774
|
/**
|
|
6766
6775
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6767
6776
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -6870,6 +6879,15 @@ function createGetCartDetailSchema_data_cartItems_data_plan_product_dataFromDisc
|
|
|
6870
6879
|
function createGetCartDetailSchema_data_cartItems_data_plan_productFromDiscriminatorValue(parseNode) {
|
|
6871
6880
|
return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product;
|
|
6872
6881
|
}
|
|
6882
|
+
/**
|
|
6883
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6884
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6885
|
+
* @returns {GetCartDetailSchema_data_cartItems_data_plan_tierTag}
|
|
6886
|
+
*/
|
|
6887
|
+
// @ts-ignore
|
|
6888
|
+
function createGetCartDetailSchema_data_cartItems_data_plan_tierTagFromDiscriminatorValue(parseNode) {
|
|
6889
|
+
return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_tierTag;
|
|
6890
|
+
}
|
|
6873
6891
|
/**
|
|
6874
6892
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6875
6893
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -10120,6 +10138,7 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan(getCartDeta
|
|
|
10120
10138
|
"organisation": n => { getCartDetailSchema_data_cartItems_data_plan.organisation = n.getStringValue(); },
|
|
10121
10139
|
"product": n => { getCartDetailSchema_data_cartItems_data_plan.product = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_productFromDiscriminatorValue); },
|
|
10122
10140
|
"productId": n => { getCartDetailSchema_data_cartItems_data_plan.productId = n.getStringValue(); },
|
|
10141
|
+
"tierTag": n => { getCartDetailSchema_data_cartItems_data_plan.tierTag = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_tierTagFromDiscriminatorValue); },
|
|
10123
10142
|
"tierTagId": n => { getCartDetailSchema_data_cartItems_data_plan.tierTagId = n.getStringValue(); },
|
|
10124
10143
|
"trialPeriodDays": n => { getCartDetailSchema_data_cartItems_data_plan.trialPeriodDays = n.getNumberValue(); },
|
|
10125
10144
|
"updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan.updatedAt = n.getStringValue(); },
|
|
@@ -10154,6 +10173,7 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_d
|
|
|
10154
10173
|
"isActive": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.isActive = n.getBooleanValue(); },
|
|
10155
10174
|
"isUnlimited": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.isUnlimited = n.getBooleanValue(); },
|
|
10156
10175
|
"maxQuantity": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.maxQuantity = n.getNumberValue(); },
|
|
10176
|
+
"meter": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.meter = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meterFromDiscriminatorValue); },
|
|
10157
10177
|
"meterId": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.meterId = n.getStringValue(); },
|
|
10158
10178
|
"minQuantity": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.minQuantity = n.getNumberValue(); },
|
|
10159
10179
|
"name": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.name = n.getStringValue(); },
|
|
@@ -10169,6 +10189,23 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_d
|
|
|
10169
10189
|
"updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.updatedAt = n.getStringValue(); },
|
|
10170
10190
|
};
|
|
10171
10191
|
}
|
|
10192
|
+
/**
|
|
10193
|
+
* The deserialization information for the current model
|
|
10194
|
+
* @param GetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter The instance to deserialize into.
|
|
10195
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
10196
|
+
*/
|
|
10197
|
+
// @ts-ignore
|
|
10198
|
+
function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter(getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter = {}) {
|
|
10199
|
+
return {
|
|
10200
|
+
"createdAt": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.createdAt = n.getStringValue(); },
|
|
10201
|
+
"id": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.id = n.getStringValue(); },
|
|
10202
|
+
"name": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.name = n.getStringValue(); },
|
|
10203
|
+
"organisation": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.organisation = n.getStringValue(); },
|
|
10204
|
+
"slug": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.slug = n.getStringValue(); },
|
|
10205
|
+
"stripeMeterId": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.stripeMeterId = n.getStringValue(); },
|
|
10206
|
+
"updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data_meter.updatedAt = n.getStringValue(); },
|
|
10207
|
+
};
|
|
10208
|
+
}
|
|
10172
10209
|
/**
|
|
10173
10210
|
* The deserialization information for the current model
|
|
10174
10211
|
* @param GetCartDetailSchema_data_cartItems_data_plan_lineItems_data_prices The instance to deserialize into.
|
|
@@ -10312,6 +10349,21 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_dat
|
|
|
10312
10349
|
function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1(getCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1 = {}) {
|
|
10313
10350
|
return {};
|
|
10314
10351
|
}
|
|
10352
|
+
/**
|
|
10353
|
+
* The deserialization information for the current model
|
|
10354
|
+
* @param GetCartDetailSchema_data_cartItems_data_plan_tierTag The instance to deserialize into.
|
|
10355
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
10356
|
+
*/
|
|
10357
|
+
// @ts-ignore
|
|
10358
|
+
function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_tierTag(getCartDetailSchema_data_cartItems_data_plan_tierTag = {}) {
|
|
10359
|
+
return {
|
|
10360
|
+
"createdAt": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.createdAt = n.getStringValue(); },
|
|
10361
|
+
"id": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.id = n.getStringValue(); },
|
|
10362
|
+
"name": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.name = n.getStringValue(); },
|
|
10363
|
+
"organisation": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.organisation = n.getStringValue(); },
|
|
10364
|
+
"updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan_tierTag.updatedAt = n.getStringValue(); },
|
|
10365
|
+
};
|
|
10366
|
+
}
|
|
10315
10367
|
/**
|
|
10316
10368
|
* The deserialization information for the current model
|
|
10317
10369
|
* @param GetCartDetailSchema_data_owner The instance to deserialize into.
|