@salable/sdk 1.0.53 → 1.0.55
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 +79 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/owners/index.d.ts +21 -1
- package/dist/sdk/models/index.d.ts +111 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6492,6 +6492,24 @@ function createCreateOwnerPortalResponseSchema_dataFromDiscriminatorValue(parseN
|
|
|
6492
6492
|
function createCreateOwnerPortalResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6493
6493
|
return deserializeIntoCreateOwnerPortalResponseSchema;
|
|
6494
6494
|
}
|
|
6495
|
+
/**
|
|
6496
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6497
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6498
|
+
* @returns {CreateOwnerResponseSchema_data}
|
|
6499
|
+
*/
|
|
6500
|
+
// @ts-ignore
|
|
6501
|
+
function createCreateOwnerResponseSchema_dataFromDiscriminatorValue(parseNode) {
|
|
6502
|
+
return deserializeIntoCreateOwnerResponseSchema_data;
|
|
6503
|
+
}
|
|
6504
|
+
/**
|
|
6505
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6506
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6507
|
+
* @returns {CreateOwnerResponseSchema}
|
|
6508
|
+
*/
|
|
6509
|
+
// @ts-ignore
|
|
6510
|
+
function createCreateOwnerResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6511
|
+
return deserializeIntoCreateOwnerResponseSchema;
|
|
6512
|
+
}
|
|
6495
6513
|
/**
|
|
6496
6514
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6497
6515
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -9593,6 +9611,36 @@ function deserializeIntoCreateOwnerPortalResponseSchema_data(createOwnerPortalRe
|
|
|
9593
9611
|
"url": n => { createOwnerPortalResponseSchema_data.url = n.getStringValue(); },
|
|
9594
9612
|
};
|
|
9595
9613
|
}
|
|
9614
|
+
/**
|
|
9615
|
+
* The deserialization information for the current model
|
|
9616
|
+
* @param CreateOwnerResponseSchema The instance to deserialize into.
|
|
9617
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9618
|
+
*/
|
|
9619
|
+
// @ts-ignore
|
|
9620
|
+
function deserializeIntoCreateOwnerResponseSchema(createOwnerResponseSchema = {}) {
|
|
9621
|
+
return {
|
|
9622
|
+
"data": n => { createOwnerResponseSchema.data = n.getObjectValue(createCreateOwnerResponseSchema_dataFromDiscriminatorValue); },
|
|
9623
|
+
"type": n => { createOwnerResponseSchema.type = n.getStringValue(); },
|
|
9624
|
+
};
|
|
9625
|
+
}
|
|
9626
|
+
/**
|
|
9627
|
+
* The deserialization information for the current model
|
|
9628
|
+
* @param CreateOwnerResponseSchema_data The instance to deserialize into.
|
|
9629
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9630
|
+
*/
|
|
9631
|
+
// @ts-ignore
|
|
9632
|
+
function deserializeIntoCreateOwnerResponseSchema_data(createOwnerResponseSchema_data = {}) {
|
|
9633
|
+
return {
|
|
9634
|
+
"createdAt": n => { createOwnerResponseSchema_data.createdAt = n.getStringValue(); },
|
|
9635
|
+
"emailAddress": n => { createOwnerResponseSchema_data.emailAddress = n.getStringValue(); },
|
|
9636
|
+
"id": n => { createOwnerResponseSchema_data.id = n.getStringValue(); },
|
|
9637
|
+
"name": n => { createOwnerResponseSchema_data.name = n.getStringValue(); },
|
|
9638
|
+
"organisation": n => { createOwnerResponseSchema_data.organisation = n.getStringValue(); },
|
|
9639
|
+
"stripeCustomerId": n => { createOwnerResponseSchema_data.stripeCustomerId = n.getStringValue(); },
|
|
9640
|
+
"updatedAt": n => { createOwnerResponseSchema_data.updatedAt = n.getStringValue(); },
|
|
9641
|
+
"value": n => { createOwnerResponseSchema_data.value = n.getStringValue(); },
|
|
9642
|
+
};
|
|
9643
|
+
}
|
|
9596
9644
|
/**
|
|
9597
9645
|
* The deserialization information for the current model
|
|
9598
9646
|
* @param CreatePlanResponseSchema The instance to deserialize into.
|
|
@@ -14947,6 +14995,20 @@ function serializeCreateOwnerPortalRequestSchema_features_subscriptionCancel(wri
|
|
|
14947
14995
|
writer.writeBooleanValue("enabled", createOwnerPortalRequestSchema_features_subscriptionCancel.enabled);
|
|
14948
14996
|
writer.writeEnumValue("when", createOwnerPortalRequestSchema_features_subscriptionCancel.when);
|
|
14949
14997
|
}
|
|
14998
|
+
/**
|
|
14999
|
+
* Serializes information the current object
|
|
15000
|
+
* @param CreateOwnerRequestSchema The instance to serialize from.
|
|
15001
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
15002
|
+
* @param writer Serialization writer to use to serialize this model
|
|
15003
|
+
*/
|
|
15004
|
+
// @ts-ignore
|
|
15005
|
+
function serializeCreateOwnerRequestSchema(writer, createOwnerRequestSchema = {}, isSerializingDerivedType = false) {
|
|
15006
|
+
if (!createOwnerRequestSchema || isSerializingDerivedType) {
|
|
15007
|
+
return;
|
|
15008
|
+
}
|
|
15009
|
+
writer.writeStringValue("name", createOwnerRequestSchema.name);
|
|
15010
|
+
writer.writeStringValue("value", createOwnerRequestSchema.value);
|
|
15011
|
+
}
|
|
14950
15012
|
/**
|
|
14951
15013
|
* Serializes information the current object
|
|
14952
15014
|
* @param CreateProductRequestSchema The instance to serialize from.
|
|
@@ -17522,6 +17584,23 @@ const OwnersRequestBuilderRequestsMetadata = {
|
|
|
17522
17584
|
adapterMethodName: "send",
|
|
17523
17585
|
responseBodyFactory: createGetOwnerListSchemaFromDiscriminatorValue,
|
|
17524
17586
|
},
|
|
17587
|
+
post: {
|
|
17588
|
+
uriTemplate: OwnersRequestBuilderUriTemplate,
|
|
17589
|
+
responseBodyContentType: "application/json",
|
|
17590
|
+
errorMappings: {
|
|
17591
|
+
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
17592
|
+
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
17593
|
+
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
17594
|
+
409: createErrorResponseBodyFromDiscriminatorValue,
|
|
17595
|
+
429: createErrorResponseBodyFromDiscriminatorValue,
|
|
17596
|
+
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
17597
|
+
},
|
|
17598
|
+
adapterMethodName: "send",
|
|
17599
|
+
responseBodyFactory: createCreateOwnerResponseSchemaFromDiscriminatorValue,
|
|
17600
|
+
requestBodyContentType: "application/json",
|
|
17601
|
+
requestBodySerializer: serializeCreateOwnerRequestSchema,
|
|
17602
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
17603
|
+
},
|
|
17525
17604
|
};
|
|
17526
17605
|
/* tslint:enable */
|
|
17527
17606
|
/* eslint-enable */
|