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