@salable/sdk 1.0.36 → 1.0.38

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
@@ -8843,6 +8843,60 @@ function createGetTierTagsListSchema_dataFromDiscriminatorValue(parseNode) {
8843
8843
  function createGetTierTagsListSchemaFromDiscriminatorValue(parseNode) {
8844
8844
  return deserializeIntoGetTierTagsListSchema;
8845
8845
  }
8846
+ /**
8847
+ * Creates a new instance of the appropriate class based on discriminator value
8848
+ * @param parseNode The parse node to use to read the discriminator value and create the object
8849
+ * @returns {GetTokenBalanceListSchema_data_records_source}
8850
+ */
8851
+ // @ts-ignore
8852
+ function createGetTokenBalanceListSchema_data_records_sourceFromDiscriminatorValue(parseNode) {
8853
+ return deserializeIntoGetTokenBalanceListSchema_data_records_source;
8854
+ }
8855
+ /**
8856
+ * Creates a new instance of the appropriate class based on discriminator value
8857
+ * @param parseNode The parse node to use to read the discriminator value and create the object
8858
+ * @returns {GetTokenBalanceListSchema_data_records}
8859
+ */
8860
+ // @ts-ignore
8861
+ function createGetTokenBalanceListSchema_data_recordsFromDiscriminatorValue(parseNode) {
8862
+ return deserializeIntoGetTokenBalanceListSchema_data_records;
8863
+ }
8864
+ /**
8865
+ * Creates a new instance of the appropriate class based on discriminator value
8866
+ * @param parseNode The parse node to use to read the discriminator value and create the object
8867
+ * @returns {GetTokenBalanceListSchema_data}
8868
+ */
8869
+ // @ts-ignore
8870
+ function createGetTokenBalanceListSchema_dataFromDiscriminatorValue(parseNode) {
8871
+ return deserializeIntoGetTokenBalanceListSchema_data;
8872
+ }
8873
+ /**
8874
+ * Creates a new instance of the appropriate class based on discriminator value
8875
+ * @param parseNode The parse node to use to read the discriminator value and create the object
8876
+ * @returns {GetTokenBalanceListSchema}
8877
+ */
8878
+ // @ts-ignore
8879
+ function createGetTokenBalanceListSchemaFromDiscriminatorValue(parseNode) {
8880
+ return deserializeIntoGetTokenBalanceListSchema;
8881
+ }
8882
+ /**
8883
+ * Creates a new instance of the appropriate class based on discriminator value
8884
+ * @param parseNode The parse node to use to read the discriminator value and create the object
8885
+ * @returns {GetTokensListSchema_data}
8886
+ */
8887
+ // @ts-ignore
8888
+ function createGetTokensListSchema_dataFromDiscriminatorValue(parseNode) {
8889
+ return deserializeIntoGetTokensListSchema_data;
8890
+ }
8891
+ /**
8892
+ * Creates a new instance of the appropriate class based on discriminator value
8893
+ * @param parseNode The parse node to use to read the discriminator value and create the object
8894
+ * @returns {GetTokensListSchema}
8895
+ */
8896
+ // @ts-ignore
8897
+ function createGetTokensListSchemaFromDiscriminatorValue(parseNode) {
8898
+ return deserializeIntoGetTokensListSchema;
8899
+ }
8846
8900
  /**
8847
8901
  * Creates a new instance of the appropriate class based on discriminator value
8848
8902
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -10347,6 +10401,8 @@ function deserializeIntoGetDestinationDetailSchema_data_attempts_data(getDestina
10347
10401
  "id": n => { getDestinationDetailSchema_data_attempts_data.id = n.getStringValue(); },
10348
10402
  "message": n => { getDestinationDetailSchema_data_attempts_data.message = n.getStringValue(); },
10349
10403
  "organisation": n => { getDestinationDetailSchema_data_attempts_data.organisation = n.getStringValue(); },
10404
+ "responseCode": n => { getDestinationDetailSchema_data_attempts_data.responseCode = n.getNumberValue(); },
10405
+ "responseReceived": n => { getDestinationDetailSchema_data_attempts_data.responseReceived = n.getBooleanValue(); },
10350
10406
  "scheduledAt": n => { getDestinationDetailSchema_data_attempts_data.scheduledAt = n.getStringValue(); },
10351
10407
  "sentCount": n => { getDestinationDetailSchema_data_attempts_data.sentCount = n.getNumberValue(); },
10352
10408
  "status": n => { getDestinationDetailSchema_data_attempts_data.status = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -10470,6 +10526,8 @@ function deserializeIntoGetEventAttemptsListSchema_data(getEventAttemptsListSche
10470
10526
  "id": n => { getEventAttemptsListSchema_data.id = n.getStringValue(); },
10471
10527
  "message": n => { getEventAttemptsListSchema_data.message = n.getStringValue(); },
10472
10528
  "organisation": n => { getEventAttemptsListSchema_data.organisation = n.getStringValue(); },
10529
+ "responseCode": n => { getEventAttemptsListSchema_data.responseCode = n.getNumberValue(); },
10530
+ "responseReceived": n => { getEventAttemptsListSchema_data.responseReceived = n.getBooleanValue(); },
10473
10531
  "scheduledAt": n => { getEventAttemptsListSchema_data.scheduledAt = n.getStringValue(); },
10474
10532
  "sentCount": n => { getEventAttemptsListSchema_data.sentCount = n.getNumberValue(); },
10475
10533
  "status": n => { getEventAttemptsListSchema_data.status = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -13818,6 +13876,89 @@ function deserializeIntoGetTierTagsListSchema_data(getTierTagsListSchema_data =
13818
13876
  "updatedAt": n => { getTierTagsListSchema_data.updatedAt = n.getStringValue(); },
13819
13877
  };
13820
13878
  }
13879
+ /**
13880
+ * The deserialization information for the current model
13881
+ * @param GetTokenBalanceListSchema The instance to deserialize into.
13882
+ * @returns {Record<string, (node: ParseNode) => void>}
13883
+ */
13884
+ // @ts-ignore
13885
+ function deserializeIntoGetTokenBalanceListSchema(getTokenBalanceListSchema = {}) {
13886
+ return {
13887
+ "data": n => { getTokenBalanceListSchema.data = n.getCollectionOfObjectValues(createGetTokenBalanceListSchema_dataFromDiscriminatorValue); },
13888
+ "type": n => { getTokenBalanceListSchema.type = n.getStringValue(); },
13889
+ };
13890
+ }
13891
+ /**
13892
+ * The deserialization information for the current model
13893
+ * @param GetTokenBalanceListSchema_data The instance to deserialize into.
13894
+ * @returns {Record<string, (node: ParseNode) => void>}
13895
+ */
13896
+ // @ts-ignore
13897
+ function deserializeIntoGetTokenBalanceListSchema_data(getTokenBalanceListSchema_data = {}) {
13898
+ return {
13899
+ "balance": n => { getTokenBalanceListSchema_data.balance = n.getNumberValue(); },
13900
+ "records": n => { getTokenBalanceListSchema_data.records = n.getCollectionOfObjectValues(createGetTokenBalanceListSchema_data_recordsFromDiscriminatorValue); },
13901
+ "token": n => { getTokenBalanceListSchema_data.token = n.getStringValue(); },
13902
+ };
13903
+ }
13904
+ /**
13905
+ * The deserialization information for the current model
13906
+ * @param GetTokenBalanceListSchema_data_records The instance to deserialize into.
13907
+ * @returns {Record<string, (node: ParseNode) => void>}
13908
+ */
13909
+ // @ts-ignore
13910
+ function deserializeIntoGetTokenBalanceListSchema_data_records(getTokenBalanceListSchema_data_records = {}) {
13911
+ return {
13912
+ "expiresAt": n => { getTokenBalanceListSchema_data_records.expiresAt = n.getStringValue(); },
13913
+ "recordId": n => { getTokenBalanceListSchema_data_records.recordId = n.getStringValue(); },
13914
+ "remaining": n => { getTokenBalanceListSchema_data_records.remaining = n.getNumberValue(); },
13915
+ "source": n => { getTokenBalanceListSchema_data_records.source = n.getObjectValue(createGetTokenBalanceListSchema_data_records_sourceFromDiscriminatorValue); },
13916
+ };
13917
+ }
13918
+ /**
13919
+ * The deserialization information for the current model
13920
+ * @param GetTokenBalanceListSchema_data_records_source The instance to deserialize into.
13921
+ * @returns {Record<string, (node: ParseNode) => void>}
13922
+ */
13923
+ // @ts-ignore
13924
+ function deserializeIntoGetTokenBalanceListSchema_data_records_source(getTokenBalanceListSchema_data_records_source = {}) {
13925
+ return {
13926
+ "id": n => { getTokenBalanceListSchema_data_records_source.id = n.getStringValue(); },
13927
+ "itemId": n => { getTokenBalanceListSchema_data_records_source.itemId = n.getStringValue(); },
13928
+ "type": n => { getTokenBalanceListSchema_data_records_source.type = n.getStringValue(); },
13929
+ };
13930
+ }
13931
+ /**
13932
+ * The deserialization information for the current model
13933
+ * @param GetTokensListSchema The instance to deserialize into.
13934
+ * @returns {Record<string, (node: ParseNode) => void>}
13935
+ */
13936
+ // @ts-ignore
13937
+ function deserializeIntoGetTokensListSchema(getTokensListSchema = {}) {
13938
+ return {
13939
+ "data": n => { getTokensListSchema.data = n.getCollectionOfObjectValues(createGetTokensListSchema_dataFromDiscriminatorValue); },
13940
+ "hasMore": n => { getTokensListSchema.hasMore = n.getBooleanValue(); },
13941
+ "nextCursor": n => { getTokensListSchema.nextCursor = n.getStringValue(); },
13942
+ "previousCursor": n => { getTokensListSchema.previousCursor = n.getStringValue(); },
13943
+ "type": n => { getTokensListSchema.type = n.getStringValue(); },
13944
+ };
13945
+ }
13946
+ /**
13947
+ * The deserialization information for the current model
13948
+ * @param GetTokensListSchema_data The instance to deserialize into.
13949
+ * @returns {Record<string, (node: ParseNode) => void>}
13950
+ */
13951
+ // @ts-ignore
13952
+ function deserializeIntoGetTokensListSchema_data(getTokensListSchema_data = {}) {
13953
+ return {
13954
+ "createdAt": n => { getTokensListSchema_data.createdAt = n.getStringValue(); },
13955
+ "id": n => { getTokensListSchema_data.id = n.getStringValue(); },
13956
+ "name": n => { getTokensListSchema_data.name = n.getStringValue(); },
13957
+ "organisation": n => { getTokensListSchema_data.organisation = n.getStringValue(); },
13958
+ "slug": n => { getTokensListSchema_data.slug = n.getStringValue(); },
13959
+ "updatedAt": n => { getTokensListSchema_data.updatedAt = n.getStringValue(); },
13960
+ };
13961
+ }
13821
13962
  /**
13822
13963
  * The deserialization information for the current model
13823
13964
  * @param GetUsageListSchema The instance to deserialize into.
@@ -14342,6 +14483,21 @@ function serializeBatchSubscriptionActionsRequestSchema(writer, batchSubscriptio
14342
14483
  writer.writeEnumValue("action", batchSubscriptionActionsRequestSchema.action);
14343
14484
  writer.writeCollectionOfPrimitiveValues("subscriptionIds", batchSubscriptionActionsRequestSchema.subscriptionIds);
14344
14485
  }
14486
+ /**
14487
+ * Serializes information the current object
14488
+ * @param ConsumeTokenRequestSchema The instance to serialize from.
14489
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14490
+ * @param writer Serialization writer to use to serialize this model
14491
+ */
14492
+ // @ts-ignore
14493
+ function serializeConsumeTokenRequestSchema(writer, consumeTokenRequestSchema = {}, isSerializingDerivedType = false) {
14494
+ if (!consumeTokenRequestSchema || isSerializingDerivedType) {
14495
+ return;
14496
+ }
14497
+ writer.writeNumberValue("amount", consumeTokenRequestSchema.amount);
14498
+ writer.writeStringValue("owner", consumeTokenRequestSchema.owner);
14499
+ writer.writeStringValue("token", consumeTokenRequestSchema.token);
14500
+ }
14345
14501
  /**
14346
14502
  * Serializes information the current object
14347
14503
  * @param CopyProductToLiveModeRequestSchema The instance to serialize from.
@@ -19345,6 +19501,111 @@ const TierTagsRequestBuilderRequestsMetadata = {
19345
19501
  /* tslint:enable */
19346
19502
  /* eslint-enable */
19347
19503
 
19504
+ /* tslint:disable */
19505
+ /* eslint-disable */
19506
+ // Generated by Microsoft Kiota
19507
+ // @ts-ignore
19508
+ /**
19509
+ * Uri template for the request builder.
19510
+ */
19511
+ const BalanceRequestBuilderUriTemplate = "{+baseurl}/api/tokens/balance?owner={owner}{&source*,token*}";
19512
+ /**
19513
+ * Metadata for all the requests in the request builder.
19514
+ */
19515
+ const BalanceRequestBuilderRequestsMetadata = {
19516
+ get: {
19517
+ uriTemplate: BalanceRequestBuilderUriTemplate,
19518
+ responseBodyContentType: "application/json",
19519
+ errorMappings: {
19520
+ 400: createErrorResponseBodyFromDiscriminatorValue,
19521
+ 401: createErrorResponseBodyFromDiscriminatorValue,
19522
+ 403: createErrorResponseBodyFromDiscriminatorValue,
19523
+ 404: createErrorResponseBodyFromDiscriminatorValue,
19524
+ 405: createErrorResponseBodyFromDiscriminatorValue,
19525
+ 429: createErrorResponseBodyFromDiscriminatorValue,
19526
+ 500: createErrorResponseBodyFromDiscriminatorValue,
19527
+ },
19528
+ adapterMethodName: "send",
19529
+ responseBodyFactory: createGetTokenBalanceListSchemaFromDiscriminatorValue,
19530
+ },
19531
+ };
19532
+ /* tslint:enable */
19533
+ /* eslint-enable */
19534
+
19535
+ /* tslint:disable */
19536
+ /* eslint-disable */
19537
+ // Generated by Microsoft Kiota
19538
+ // @ts-ignore
19539
+ /**
19540
+ * Uri template for the request builder.
19541
+ */
19542
+ const ConsumeRequestBuilderUriTemplate = "{+baseurl}/api/tokens/consume";
19543
+ /**
19544
+ * Metadata for all the requests in the request builder.
19545
+ */
19546
+ const ConsumeRequestBuilderRequestsMetadata = {
19547
+ post: {
19548
+ uriTemplate: ConsumeRequestBuilderUriTemplate,
19549
+ responseBodyContentType: "application/json",
19550
+ errorMappings: {
19551
+ 400: createErrorResponseBodyFromDiscriminatorValue,
19552
+ 401: createErrorResponseBodyFromDiscriminatorValue,
19553
+ 403: createErrorResponseBodyFromDiscriminatorValue,
19554
+ 405: createErrorResponseBodyFromDiscriminatorValue,
19555
+ 409: createErrorResponseBodyFromDiscriminatorValue,
19556
+ 422: createErrorResponseBodyFromDiscriminatorValue,
19557
+ 429: createErrorResponseBodyFromDiscriminatorValue,
19558
+ 500: createErrorResponseBodyFromDiscriminatorValue,
19559
+ },
19560
+ adapterMethodName: "sendNoResponseContent",
19561
+ requestBodyContentType: "application/json",
19562
+ requestBodySerializer: serializeConsumeTokenRequestSchema,
19563
+ requestInformationContentSetMethod: "setContentFromParsable",
19564
+ },
19565
+ };
19566
+ /* tslint:enable */
19567
+ /* eslint-enable */
19568
+
19569
+ /* tslint:disable */
19570
+ /* eslint-disable */
19571
+ // Generated by Microsoft Kiota
19572
+ // @ts-ignore
19573
+ /**
19574
+ * Uri template for the request builder.
19575
+ */
19576
+ const TokensRequestBuilderUriTemplate = "{+baseurl}/api/tokens{?after*,before*,limit*,search*}";
19577
+ /**
19578
+ * Metadata for all the navigation properties in the request builder.
19579
+ */
19580
+ const TokensRequestBuilderNavigationMetadata = {
19581
+ balance: {
19582
+ requestsMetadata: BalanceRequestBuilderRequestsMetadata,
19583
+ },
19584
+ consume: {
19585
+ requestsMetadata: ConsumeRequestBuilderRequestsMetadata,
19586
+ },
19587
+ };
19588
+ /**
19589
+ * Metadata for all the requests in the request builder.
19590
+ */
19591
+ const TokensRequestBuilderRequestsMetadata = {
19592
+ get: {
19593
+ uriTemplate: TokensRequestBuilderUriTemplate,
19594
+ responseBodyContentType: "application/json",
19595
+ errorMappings: {
19596
+ 400: createErrorResponseBodyFromDiscriminatorValue,
19597
+ 401: createErrorResponseBodyFromDiscriminatorValue,
19598
+ 405: createErrorResponseBodyFromDiscriminatorValue,
19599
+ 429: createErrorResponseBodyFromDiscriminatorValue,
19600
+ 500: createErrorResponseBodyFromDiscriminatorValue,
19601
+ },
19602
+ adapterMethodName: "send",
19603
+ responseBodyFactory: createGetTokensListSchemaFromDiscriminatorValue,
19604
+ },
19605
+ };
19606
+ /* tslint:enable */
19607
+ /* eslint-enable */
19608
+
19348
19609
  /* tslint:disable */
19349
19610
  /* eslint-disable */
19350
19611
  // Generated by Microsoft Kiota
@@ -19652,6 +19913,10 @@ const ApiRequestBuilderNavigationMetadata = {
19652
19913
  tierTags: {
19653
19914
  requestsMetadata: TierTagsRequestBuilderRequestsMetadata,
19654
19915
  },
19916
+ tokens: {
19917
+ requestsMetadata: TokensRequestBuilderRequestsMetadata,
19918
+ navigationMetadata: TokensRequestBuilderNavigationMetadata,
19919
+ },
19655
19920
  usage: {
19656
19921
  navigationMetadata: UsageRequestBuilderNavigationMetadata,
19657
19922
  },