@salable/sdk 1.0.40 → 1.0.42

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
@@ -6584,6 +6584,24 @@ function createGenerateCheckoutLinkSchema_dataFromDiscriminatorValue(parseNode)
6584
6584
  function createGenerateCheckoutLinkSchemaFromDiscriminatorValue(parseNode) {
6585
6585
  return deserializeIntoGenerateCheckoutLinkSchema;
6586
6586
  }
6587
+ /**
6588
+ * Creates a new instance of the appropriate class based on discriminator value
6589
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6590
+ * @returns {GenerateOnboardingLinkResponseSchema_data}
6591
+ */
6592
+ // @ts-ignore
6593
+ function createGenerateOnboardingLinkResponseSchema_dataFromDiscriminatorValue(parseNode) {
6594
+ return deserializeIntoGenerateOnboardingLinkResponseSchema_data;
6595
+ }
6596
+ /**
6597
+ * Creates a new instance of the appropriate class based on discriminator value
6598
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6599
+ * @returns {GenerateOnboardingLinkResponseSchema}
6600
+ */
6601
+ // @ts-ignore
6602
+ function createGenerateOnboardingLinkResponseSchemaFromDiscriminatorValue(parseNode) {
6603
+ return deserializeIntoGenerateOnboardingLinkResponseSchema;
6604
+ }
6587
6605
  /**
6588
6606
  * Creates a new instance of the appropriate class based on discriminator value
6589
6607
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -9639,7 +9657,9 @@ function deserializeIntoCreateWebhookRequestResponseSchema(createWebhookRequestR
9639
9657
  function deserializeIntoCreateWebhookRequestResponseSchema_data(createWebhookRequestResponseSchema_data = {}) {
9640
9658
  return {
9641
9659
  "createdAt": n => { createWebhookRequestResponseSchema_data.createdAt = n.getStringValue(); },
9660
+ "description": n => { createWebhookRequestResponseSchema_data.description = n.getStringValue(); },
9642
9661
  "id": n => { createWebhookRequestResponseSchema_data.id = n.getStringValue(); },
9662
+ "name": n => { createWebhookRequestResponseSchema_data.name = n.getStringValue(); },
9643
9663
  "organisation": n => { createWebhookRequestResponseSchema_data.organisation = n.getStringValue(); },
9644
9664
  "secret": n => { createWebhookRequestResponseSchema_data.secret = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
9645
9665
  "updatedAt": n => { createWebhookRequestResponseSchema_data.updatedAt = n.getStringValue(); },
@@ -9691,6 +9711,32 @@ function deserializeIntoGenerateCheckoutLinkSchema_data(generateCheckoutLinkSche
9691
9711
  "url": n => { generateCheckoutLinkSchema_data.url = n.getStringValue(); },
9692
9712
  };
9693
9713
  }
9714
+ /**
9715
+ * The deserialization information for the current model
9716
+ * @param GenerateOnboardingLinkResponseSchema The instance to deserialize into.
9717
+ * @returns {Record<string, (node: ParseNode) => void>}
9718
+ */
9719
+ // @ts-ignore
9720
+ function deserializeIntoGenerateOnboardingLinkResponseSchema(generateOnboardingLinkResponseSchema = {}) {
9721
+ return {
9722
+ "data": n => { generateOnboardingLinkResponseSchema.data = n.getObjectValue(createGenerateOnboardingLinkResponseSchema_dataFromDiscriminatorValue); },
9723
+ "type": n => { generateOnboardingLinkResponseSchema.type = n.getStringValue(); },
9724
+ };
9725
+ }
9726
+ /**
9727
+ * The deserialization information for the current model
9728
+ * @param GenerateOnboardingLinkResponseSchema_data The instance to deserialize into.
9729
+ * @returns {Record<string, (node: ParseNode) => void>}
9730
+ */
9731
+ // @ts-ignore
9732
+ function deserializeIntoGenerateOnboardingLinkResponseSchema_data(generateOnboardingLinkResponseSchema_data = {}) {
9733
+ return {
9734
+ "completionUrl": n => { generateOnboardingLinkResponseSchema_data.completionUrl = n.getStringValue(); },
9735
+ "refreshUrl": n => { generateOnboardingLinkResponseSchema_data.refreshUrl = n.getStringValue(); },
9736
+ "returnUrl": n => { generateOnboardingLinkResponseSchema_data.returnUrl = n.getStringValue(); },
9737
+ "url": n => { generateOnboardingLinkResponseSchema_data.url = n.getStringValue(); },
9738
+ };
9739
+ }
9694
9740
  /**
9695
9741
  * The deserialization information for the current model
9696
9742
  * @param GetAIConversationDetailSchema The instance to deserialize into.
@@ -10603,7 +10649,9 @@ function deserializeIntoGetEventDetailSchema_data_destinations_data(getEventDeta
10603
10649
  function deserializeIntoGetEventDetailSchema_data_destinations_data_webhook(getEventDetailSchema_data_destinations_data_webhook = {}) {
10604
10650
  return {
10605
10651
  "createdAt": n => { getEventDetailSchema_data_destinations_data_webhook.createdAt = n.getStringValue(); },
10652
+ "description": n => { getEventDetailSchema_data_destinations_data_webhook.description = n.getStringValue(); },
10606
10653
  "id": n => { getEventDetailSchema_data_destinations_data_webhook.id = n.getStringValue(); },
10654
+ "name": n => { getEventDetailSchema_data_destinations_data_webhook.name = n.getStringValue(); },
10607
10655
  "organisation": n => { getEventDetailSchema_data_destinations_data_webhook.organisation = n.getStringValue(); },
10608
10656
  "secret": n => { getEventDetailSchema_data_destinations_data_webhook.secret = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
10609
10657
  "updatedAt": n => { getEventDetailSchema_data_destinations_data_webhook.updatedAt = n.getStringValue(); },
@@ -14014,9 +14062,11 @@ function deserializeIntoGetWebhookDetailSchema(getWebhookDetailSchema = {}) {
14014
14062
  function deserializeIntoGetWebhookDetailSchema_data(getWebhookDetailSchema_data = {}) {
14015
14063
  return {
14016
14064
  "createdAt": n => { getWebhookDetailSchema_data.createdAt = n.getStringValue(); },
14065
+ "description": n => { getWebhookDetailSchema_data.description = n.getStringValue(); },
14017
14066
  "destinations": n => { getWebhookDetailSchema_data.destinations = n.getObjectValue(createGetWebhookDetailSchema_data_destinationsFromDiscriminatorValue); },
14018
14067
  "eventTypes": n => { getWebhookDetailSchema_data.eventTypes = n.getObjectValue(createGetWebhookDetailSchema_data_eventTypesFromDiscriminatorValue); },
14019
14068
  "id": n => { getWebhookDetailSchema_data.id = n.getStringValue(); },
14069
+ "name": n => { getWebhookDetailSchema_data.name = n.getStringValue(); },
14020
14070
  "organisation": n => { getWebhookDetailSchema_data.organisation = n.getStringValue(); },
14021
14071
  "secret": n => { getWebhookDetailSchema_data.secret = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
14022
14072
  "updatedAt": n => { getWebhookDetailSchema_data.updatedAt = n.getStringValue(); },
@@ -14125,8 +14175,10 @@ function deserializeIntoGetWebhookListSchema(getWebhookListSchema = {}) {
14125
14175
  function deserializeIntoGetWebhookListSchema_data(getWebhookListSchema_data = {}) {
14126
14176
  return {
14127
14177
  "createdAt": n => { getWebhookListSchema_data.createdAt = n.getStringValue(); },
14178
+ "description": n => { getWebhookListSchema_data.description = n.getStringValue(); },
14128
14179
  "eventTypes": n => { getWebhookListSchema_data.eventTypes = n.getObjectValue(createGetWebhookListSchema_data_eventTypesFromDiscriminatorValue); },
14129
14180
  "id": n => { getWebhookListSchema_data.id = n.getStringValue(); },
14181
+ "name": n => { getWebhookListSchema_data.name = n.getStringValue(); },
14130
14182
  "organisation": n => { getWebhookListSchema_data.organisation = n.getStringValue(); },
14131
14183
  "secret": n => { getWebhookListSchema_data.secret = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
14132
14184
  "updatedAt": n => { getWebhookListSchema_data.updatedAt = n.getStringValue(); },
@@ -14822,8 +14874,10 @@ function serializeCreateWebhookRequestSchema(writer, createWebhookRequestSchema
14822
14874
  if (!createWebhookRequestSchema || isSerializingDerivedType) {
14823
14875
  return;
14824
14876
  }
14877
+ writer.writeStringValue("description", createWebhookRequestSchema.description);
14825
14878
  if (createWebhookRequestSchema.events)
14826
14879
  writer.writeCollectionOfEnumValues("events", createWebhookRequestSchema.events);
14880
+ writer.writeStringValue("name", createWebhookRequestSchema.name);
14827
14881
  writer.writeStringValue("url", createWebhookRequestSchema.url);
14828
14882
  }
14829
14883
  /**
@@ -15393,8 +15447,10 @@ function serializeUpdateWebhookRequestSchema(writer, updateWebhookRequestSchema
15393
15447
  if (!updateWebhookRequestSchema || isSerializingDerivedType) {
15394
15448
  return;
15395
15449
  }
15450
+ writer.writeStringValue("description", updateWebhookRequestSchema.description);
15396
15451
  if (updateWebhookRequestSchema.events)
15397
15452
  writer.writeCollectionOfEnumValues("events", updateWebhookRequestSchema.events);
15453
+ writer.writeStringValue("name", updateWebhookRequestSchema.name);
15398
15454
  writer.writeStringValue("url", updateWebhookRequestSchema.url);
15399
15455
  }
15400
15456
  /* tslint:enable */
@@ -17154,8 +17210,8 @@ const OnboardingRequestBuilderRequestsMetadata = {
17154
17210
  429: createErrorResponseBodyFromDiscriminatorValue,
17155
17211
  500: createErrorResponseBodyFromDiscriminatorValue,
17156
17212
  },
17157
- adapterMethodName: "sendPrimitive",
17158
- responseBodyFactory: "ArrayBuffer",
17213
+ adapterMethodName: "send",
17214
+ responseBodyFactory: createGenerateOnboardingLinkResponseSchemaFromDiscriminatorValue,
17159
17215
  },
17160
17216
  };
17161
17217
  /* tslint:enable */