@salable/sdk 1.0.53 → 1.0.54

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