@gemina/sdk 0.15.0 → 0.16.1
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.cjs +264 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +375 -168
- package/dist/index.d.ts +375 -168
- package/dist/index.js +257 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4729,6 +4729,63 @@ var DocumentApi = class extends BaseAPI {
|
|
|
4729
4729
|
const response = await this.purgeDocumentsWithExternalIdByUserRaw(requestParameters, initOverrides);
|
|
4730
4730
|
return await response.value();
|
|
4731
4731
|
}
|
|
4732
|
+
/**
|
|
4733
|
+
* Creates request options for resumeTutorialRequest without sending the request
|
|
4734
|
+
*/
|
|
4735
|
+
async resumeTutorialRequestRequestOpts(requestParameters) {
|
|
4736
|
+
if (requestParameters["attemptId"] == null) {
|
|
4737
|
+
throw new RequiredError(
|
|
4738
|
+
"attemptId",
|
|
4739
|
+
'Required parameter "attemptId" was null or undefined when calling resumeTutorialRequest().'
|
|
4740
|
+
);
|
|
4741
|
+
}
|
|
4742
|
+
const queryParameters = {};
|
|
4743
|
+
const headerParameters = {};
|
|
4744
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
4745
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
4746
|
+
}
|
|
4747
|
+
const consumes = [
|
|
4748
|
+
{ contentType: "multipart/form-data" }
|
|
4749
|
+
];
|
|
4750
|
+
const canConsumeForm2 = canConsumeForm(consumes);
|
|
4751
|
+
let formParams;
|
|
4752
|
+
let useForm = false;
|
|
4753
|
+
useForm = canConsumeForm2;
|
|
4754
|
+
if (useForm) {
|
|
4755
|
+
formParams = new FormData();
|
|
4756
|
+
} else {
|
|
4757
|
+
formParams = new URLSearchParams();
|
|
4758
|
+
}
|
|
4759
|
+
if (requestParameters["file"] != null) {
|
|
4760
|
+
formParams.append("file", requestParameters["file"]);
|
|
4761
|
+
}
|
|
4762
|
+
let urlPath = `/api/v1/documents/tutorials/{attempt_id}/resume`;
|
|
4763
|
+
urlPath = urlPath.replace("{attempt_id}", encodeURIComponent(String(requestParameters["attemptId"])));
|
|
4764
|
+
return {
|
|
4765
|
+
path: urlPath,
|
|
4766
|
+
method: "POST",
|
|
4767
|
+
headers: headerParameters,
|
|
4768
|
+
query: queryParameters,
|
|
4769
|
+
body: formParams
|
|
4770
|
+
};
|
|
4771
|
+
}
|
|
4772
|
+
/**
|
|
4773
|
+
* Explicitly recover an interrupted guided API request, using its original key and file.
|
|
4774
|
+
* Resume Tutorial Request
|
|
4775
|
+
*/
|
|
4776
|
+
async resumeTutorialRequestRaw(requestParameters, initOverrides) {
|
|
4777
|
+
const requestOptions = await this.resumeTutorialRequestRequestOpts(requestParameters);
|
|
4778
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4779
|
+
return new JSONApiResponse(response, (jsonValue) => DocumentProcessingResultOutDTOFromJSON(jsonValue));
|
|
4780
|
+
}
|
|
4781
|
+
/**
|
|
4782
|
+
* Explicitly recover an interrupted guided API request, using its original key and file.
|
|
4783
|
+
* Resume Tutorial Request
|
|
4784
|
+
*/
|
|
4785
|
+
async resumeTutorialRequest(requestParameters, initOverrides) {
|
|
4786
|
+
const response = await this.resumeTutorialRequestRaw(requestParameters, initOverrides);
|
|
4787
|
+
return await response.value();
|
|
4788
|
+
}
|
|
4732
4789
|
/**
|
|
4733
4790
|
* Creates request options for uploadDocument without sending the request
|
|
4734
4791
|
*/
|
|
@@ -6136,6 +6193,87 @@ var FileTagApi = class extends BaseAPI {
|
|
|
6136
6193
|
const response = await this.getMyFiletagCreditHistoryRaw(requestParameters, initOverrides);
|
|
6137
6194
|
return await response.value();
|
|
6138
6195
|
}
|
|
6196
|
+
/**
|
|
6197
|
+
* Creates request options for savedFiletagResult without sending the request
|
|
6198
|
+
*/
|
|
6199
|
+
async savedFiletagResultRequestOpts(requestParameters) {
|
|
6200
|
+
if (requestParameters["documentId"] == null) {
|
|
6201
|
+
throw new RequiredError(
|
|
6202
|
+
"documentId",
|
|
6203
|
+
'Required parameter "documentId" was null or undefined when calling savedFiletagResult().'
|
|
6204
|
+
);
|
|
6205
|
+
}
|
|
6206
|
+
const queryParameters = {};
|
|
6207
|
+
const headerParameters = {};
|
|
6208
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6209
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
6210
|
+
}
|
|
6211
|
+
let urlPath = `/api/v1/filetag/results/{document_id}`;
|
|
6212
|
+
urlPath = urlPath.replace("{document_id}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
6213
|
+
return {
|
|
6214
|
+
path: urlPath,
|
|
6215
|
+
method: "GET",
|
|
6216
|
+
headers: headerParameters,
|
|
6217
|
+
query: queryParameters
|
|
6218
|
+
};
|
|
6219
|
+
}
|
|
6220
|
+
/**
|
|
6221
|
+
* Saved Filetag Result
|
|
6222
|
+
*/
|
|
6223
|
+
async savedFiletagResultRaw(requestParameters, initOverrides) {
|
|
6224
|
+
const requestOptions = await this.savedFiletagResultRequestOpts(requestParameters);
|
|
6225
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
6226
|
+
return new JSONApiResponse(response, (jsonValue) => FileTagResultOutDTOFromJSON(jsonValue));
|
|
6227
|
+
}
|
|
6228
|
+
/**
|
|
6229
|
+
* Saved Filetag Result
|
|
6230
|
+
*/
|
|
6231
|
+
async savedFiletagResult(requestParameters, initOverrides) {
|
|
6232
|
+
const response = await this.savedFiletagResultRaw(requestParameters, initOverrides);
|
|
6233
|
+
return await response.value();
|
|
6234
|
+
}
|
|
6235
|
+
/**
|
|
6236
|
+
* Creates request options for savedFiletagResultUser without sending the request
|
|
6237
|
+
*/
|
|
6238
|
+
async savedFiletagResultUserRequestOpts(requestParameters) {
|
|
6239
|
+
if (requestParameters["documentId"] == null) {
|
|
6240
|
+
throw new RequiredError(
|
|
6241
|
+
"documentId",
|
|
6242
|
+
'Required parameter "documentId" was null or undefined when calling savedFiletagResultUser().'
|
|
6243
|
+
);
|
|
6244
|
+
}
|
|
6245
|
+
const queryParameters = {};
|
|
6246
|
+
const headerParameters = {};
|
|
6247
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6248
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
6249
|
+
}
|
|
6250
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
6251
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
|
|
6252
|
+
}
|
|
6253
|
+
let urlPath = `/api/v1/filetag/results/user/{document_id}`;
|
|
6254
|
+
urlPath = urlPath.replace("{document_id}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
6255
|
+
return {
|
|
6256
|
+
path: urlPath,
|
|
6257
|
+
method: "GET",
|
|
6258
|
+
headers: headerParameters,
|
|
6259
|
+
query: queryParameters
|
|
6260
|
+
};
|
|
6261
|
+
}
|
|
6262
|
+
/**
|
|
6263
|
+
* Saved Filetag Result User
|
|
6264
|
+
*/
|
|
6265
|
+
async savedFiletagResultUserRaw(requestParameters, initOverrides) {
|
|
6266
|
+
const requestOptions = await this.savedFiletagResultUserRequestOpts(requestParameters);
|
|
6267
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
6268
|
+
return new JSONApiResponse(response, (jsonValue) => FileTagResultOutDTOFromJSON(jsonValue));
|
|
6269
|
+
}
|
|
6270
|
+
/**
|
|
6271
|
+
* Saved Filetag Result User
|
|
6272
|
+
*/
|
|
6273
|
+
async savedFiletagResultUser(requestParameters, initOverrides) {
|
|
6274
|
+
const response = await this.savedFiletagResultUserRaw(requestParameters, initOverrides);
|
|
6275
|
+
return await response.value();
|
|
6276
|
+
}
|
|
6139
6277
|
/**
|
|
6140
6278
|
* Creates request options for tagDocument without sending the request
|
|
6141
6279
|
*/
|
|
@@ -6147,6 +6285,9 @@ var FileTagApi = class extends BaseAPI {
|
|
|
6147
6285
|
);
|
|
6148
6286
|
}
|
|
6149
6287
|
const queryParameters = {};
|
|
6288
|
+
if (requestParameters["externalId"] != null) {
|
|
6289
|
+
queryParameters["external_id"] = requestParameters["externalId"];
|
|
6290
|
+
}
|
|
6150
6291
|
const headerParameters = {};
|
|
6151
6292
|
if (this.configuration && this.configuration.apiKey) {
|
|
6152
6293
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
@@ -6203,6 +6344,9 @@ var FileTagApi = class extends BaseAPI {
|
|
|
6203
6344
|
);
|
|
6204
6345
|
}
|
|
6205
6346
|
const queryParameters = {};
|
|
6347
|
+
if (requestParameters["externalId"] != null) {
|
|
6348
|
+
queryParameters["external_id"] = requestParameters["externalId"];
|
|
6349
|
+
}
|
|
6206
6350
|
const headerParameters = {};
|
|
6207
6351
|
if (this.configuration && this.configuration.apiKey) {
|
|
6208
6352
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
@@ -6383,6 +6527,7 @@ function FilesUploadInstructionsOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6383
6527
|
}
|
|
6384
6528
|
return {
|
|
6385
6529
|
"fileId": json["fileId"],
|
|
6530
|
+
"handoffExpiresAt": json["handoffExpiresAt"] == null ? void 0 : new Date(json["handoffExpiresAt"]),
|
|
6386
6531
|
"nextToolCall": FilesNextToolCallOutDTOFromJSON(json["nextToolCall"]),
|
|
6387
6532
|
"upload": FilesUploadDetailsOutDTOFromJSON(json["upload"])
|
|
6388
6533
|
};
|
|
@@ -6396,6 +6541,7 @@ function FilesUploadInstructionsOutDTOToJSONTyped(value, ignoreDiscriminator = f
|
|
|
6396
6541
|
}
|
|
6397
6542
|
return {
|
|
6398
6543
|
"fileId": value["fileId"],
|
|
6544
|
+
"handoffExpiresAt": value["handoffExpiresAt"] == null ? value["handoffExpiresAt"] : value["handoffExpiresAt"].toISOString(),
|
|
6399
6545
|
"nextToolCall": FilesNextToolCallOutDTOToJSON(value["nextToolCall"]),
|
|
6400
6546
|
"upload": FilesUploadDetailsOutDTOToJSON(value["upload"])
|
|
6401
6547
|
};
|
|
@@ -6797,10 +6943,14 @@ function RetrievalFiltersDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6797
6943
|
}
|
|
6798
6944
|
return {
|
|
6799
6945
|
"buyerName": json["buyerName"] == null ? void 0 : json["buyerName"],
|
|
6946
|
+
"currencies": json["currencies"] == null ? void 0 : json["currencies"],
|
|
6800
6947
|
"currency": json["currency"] == null ? void 0 : json["currency"],
|
|
6801
6948
|
"docNumber": json["docNumber"] == null ? void 0 : json["docNumber"],
|
|
6949
|
+
"docNumbers": json["docNumbers"] == null ? void 0 : json["docNumbers"],
|
|
6802
6950
|
"documentId": json["documentId"] == null ? void 0 : json["documentId"],
|
|
6951
|
+
"documentIds": json["documentIds"] == null ? void 0 : json["documentIds"],
|
|
6803
6952
|
"documentType": json["documentType"] == null ? void 0 : json["documentType"],
|
|
6953
|
+
"documentTypes": json["documentTypes"] == null ? void 0 : json["documentTypes"],
|
|
6804
6954
|
"dueDateFrom": json["dueDateFrom"] == null ? void 0 : new Date(json["dueDateFrom"]),
|
|
6805
6955
|
"dueDateTo": json["dueDateTo"] == null ? void 0 : new Date(json["dueDateTo"]),
|
|
6806
6956
|
"endUserId": json["endUserId"] == null ? void 0 : json["endUserId"],
|
|
@@ -6812,6 +6962,7 @@ function RetrievalFiltersDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6812
6962
|
"totalAmountMax": json["totalAmountMax"] == null ? void 0 : json["totalAmountMax"],
|
|
6813
6963
|
"totalAmountMin": json["totalAmountMin"] == null ? void 0 : json["totalAmountMin"],
|
|
6814
6964
|
"vendorName": json["vendorName"] == null ? void 0 : json["vendorName"],
|
|
6965
|
+
"vendorNames": json["vendorNames"] == null ? void 0 : json["vendorNames"],
|
|
6815
6966
|
"vendorTaxId": json["vendorTaxId"] == null ? void 0 : json["vendorTaxId"]
|
|
6816
6967
|
};
|
|
6817
6968
|
}
|
|
@@ -6824,10 +6975,14 @@ function RetrievalFiltersDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6824
6975
|
}
|
|
6825
6976
|
return {
|
|
6826
6977
|
"buyerName": value["buyerName"],
|
|
6978
|
+
"currencies": value["currencies"],
|
|
6827
6979
|
"currency": value["currency"],
|
|
6828
6980
|
"docNumber": value["docNumber"],
|
|
6981
|
+
"docNumbers": value["docNumbers"],
|
|
6829
6982
|
"documentId": value["documentId"],
|
|
6983
|
+
"documentIds": value["documentIds"],
|
|
6830
6984
|
"documentType": value["documentType"],
|
|
6985
|
+
"documentTypes": value["documentTypes"],
|
|
6831
6986
|
"dueDateFrom": value["dueDateFrom"] == null ? value["dueDateFrom"] : value["dueDateFrom"].toISOString().substring(0, 10),
|
|
6832
6987
|
"dueDateTo": value["dueDateTo"] == null ? value["dueDateTo"] : value["dueDateTo"].toISOString().substring(0, 10),
|
|
6833
6988
|
"endUserId": value["endUserId"],
|
|
@@ -6839,6 +6994,7 @@ function RetrievalFiltersDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6839
6994
|
"totalAmountMax": value["totalAmountMax"],
|
|
6840
6995
|
"totalAmountMin": value["totalAmountMin"],
|
|
6841
6996
|
"vendorName": value["vendorName"],
|
|
6997
|
+
"vendorNames": value["vendorNames"],
|
|
6842
6998
|
"vendorTaxId": value["vendorTaxId"]
|
|
6843
6999
|
};
|
|
6844
7000
|
}
|
|
@@ -6907,7 +7063,8 @@ var AggregateMetricDTOFieldEnum = {
|
|
|
6907
7063
|
TotalAmount: "total_amount",
|
|
6908
7064
|
NetAmount: "net_amount",
|
|
6909
7065
|
VatAmount: "vat_amount",
|
|
6910
|
-
MeasurableQuantity: "measurable_quantity"
|
|
7066
|
+
MeasurableQuantity: "measurable_quantity",
|
|
7067
|
+
LineTotal: "line_total"
|
|
6911
7068
|
};
|
|
6912
7069
|
var AggregateMetricDTOOpEnum = {
|
|
6913
7070
|
Sum: "sum",
|
|
@@ -6958,7 +7115,10 @@ var RetrievalAggregateInDTOGroupByEnum = {
|
|
|
6958
7115
|
Month: "month",
|
|
6959
7116
|
Year: "year",
|
|
6960
7117
|
MeasurableUom: "measurable_uom",
|
|
6961
|
-
Description: "description"
|
|
7118
|
+
Description: "description",
|
|
7119
|
+
DocNumber: "doc_number",
|
|
7120
|
+
IssueDate: "issue_date",
|
|
7121
|
+
DocumentId: "document_id"
|
|
6962
7122
|
};
|
|
6963
7123
|
function instanceOfRetrievalAggregateInDTO(value) {
|
|
6964
7124
|
if (!("metrics" in value) || value["metrics"] === void 0) return false;
|
|
@@ -7242,6 +7402,11 @@ function RetrievalQueryInDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7242
7402
|
}
|
|
7243
7403
|
|
|
7244
7404
|
// src/generated/models/QueryMetaDTO.ts
|
|
7405
|
+
var QueryMetaDTOIndexingStateEnum = {
|
|
7406
|
+
Preparing: "preparing",
|
|
7407
|
+
Ready: "ready",
|
|
7408
|
+
Unavailable: "unavailable"
|
|
7409
|
+
};
|
|
7245
7410
|
function instanceOfQueryMetaDTO(value) {
|
|
7246
7411
|
if (!("count" in value) || value["count"] === void 0) return false;
|
|
7247
7412
|
if (!("mode" in value) || value["mode"] === void 0) return false;
|
|
@@ -7256,6 +7421,8 @@ function QueryMetaDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7256
7421
|
}
|
|
7257
7422
|
return {
|
|
7258
7423
|
"count": json["count"],
|
|
7424
|
+
"indexingReady": json["indexingReady"] == null ? void 0 : json["indexingReady"],
|
|
7425
|
+
"indexingState": json["indexingState"] == null ? void 0 : json["indexingState"],
|
|
7259
7426
|
"limit": json["limit"] == null ? void 0 : json["limit"],
|
|
7260
7427
|
"mode": json["mode"],
|
|
7261
7428
|
"skip": json["skip"] == null ? void 0 : json["skip"]
|
|
@@ -7270,6 +7437,8 @@ function QueryMetaDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7270
7437
|
}
|
|
7271
7438
|
return {
|
|
7272
7439
|
"count": value["count"],
|
|
7440
|
+
"indexingReady": value["indexingReady"],
|
|
7441
|
+
"indexingState": value["indexingState"],
|
|
7273
7442
|
"limit": value["limit"],
|
|
7274
7443
|
"mode": value["mode"],
|
|
7275
7444
|
"skip": value["skip"]
|
|
@@ -7823,6 +7992,48 @@ function CheckoutOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7823
7992
|
};
|
|
7824
7993
|
}
|
|
7825
7994
|
|
|
7995
|
+
// src/generated/models/PaymentMethodUpdateOutDTO.ts
|
|
7996
|
+
var PaymentMethodUpdateOutDTOPurposeEnum = {
|
|
7997
|
+
UpdatePaymentMethod: "update_payment_method",
|
|
7998
|
+
PayOverdue: "pay_overdue",
|
|
7999
|
+
ResumeSubscription: "resume_subscription"
|
|
8000
|
+
};
|
|
8001
|
+
function instanceOfPaymentMethodUpdateOutDTO(value) {
|
|
8002
|
+
if (!("paddleTransactionId" in value) || value["paddleTransactionId"] === void 0) return false;
|
|
8003
|
+
if (!("purpose" in value) || value["purpose"] === void 0) return false;
|
|
8004
|
+
return true;
|
|
8005
|
+
}
|
|
8006
|
+
function PaymentMethodUpdateOutDTOFromJSON(json) {
|
|
8007
|
+
return PaymentMethodUpdateOutDTOFromJSONTyped(json, false);
|
|
8008
|
+
}
|
|
8009
|
+
function PaymentMethodUpdateOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
8010
|
+
if (json == null) {
|
|
8011
|
+
return json;
|
|
8012
|
+
}
|
|
8013
|
+
return {
|
|
8014
|
+
"checkoutUrl": json["checkoutUrl"] == null ? void 0 : json["checkoutUrl"],
|
|
8015
|
+
"createdAt": json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
|
|
8016
|
+
"createdAtTimestamp": json["createdAtTimestamp"] == null ? void 0 : json["createdAtTimestamp"],
|
|
8017
|
+
"paddleTransactionId": json["paddleTransactionId"],
|
|
8018
|
+
"purpose": json["purpose"]
|
|
8019
|
+
};
|
|
8020
|
+
}
|
|
8021
|
+
function PaymentMethodUpdateOutDTOToJSON(json) {
|
|
8022
|
+
return PaymentMethodUpdateOutDTOToJSONTyped(json, false);
|
|
8023
|
+
}
|
|
8024
|
+
function PaymentMethodUpdateOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8025
|
+
if (value == null) {
|
|
8026
|
+
return value;
|
|
8027
|
+
}
|
|
8028
|
+
return {
|
|
8029
|
+
"checkoutUrl": value["checkoutUrl"],
|
|
8030
|
+
"createdAt": value["createdAt"] == null ? value["createdAt"] : value["createdAt"].toISOString(),
|
|
8031
|
+
"createdAtTimestamp": value["createdAtTimestamp"],
|
|
8032
|
+
"paddleTransactionId": value["paddleTransactionId"],
|
|
8033
|
+
"purpose": value["purpose"]
|
|
8034
|
+
};
|
|
8035
|
+
}
|
|
8036
|
+
|
|
7826
8037
|
// src/generated/models/DataRetentionPeriodModel.ts
|
|
7827
8038
|
var DataRetentionPeriodModel = {
|
|
7828
8039
|
OneDay: "one_day",
|
|
@@ -9077,6 +9288,40 @@ var SubscriptionsApi = class extends BaseAPI {
|
|
|
9077
9288
|
const response = await this.purchaseTopUpRaw(requestParameters, initOverrides);
|
|
9078
9289
|
return await response.value();
|
|
9079
9290
|
}
|
|
9291
|
+
/**
|
|
9292
|
+
* Creates request options for startPaymentMethodUpdate without sending the request
|
|
9293
|
+
*/
|
|
9294
|
+
async startPaymentMethodUpdateRequestOpts() {
|
|
9295
|
+
const queryParameters = {};
|
|
9296
|
+
const headerParameters = {};
|
|
9297
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
9298
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
|
|
9299
|
+
}
|
|
9300
|
+
let urlPath = `/api/v1/subscriptions/me/payment-method-update`;
|
|
9301
|
+
return {
|
|
9302
|
+
path: urlPath,
|
|
9303
|
+
method: "POST",
|
|
9304
|
+
headers: headerParameters,
|
|
9305
|
+
query: queryParameters
|
|
9306
|
+
};
|
|
9307
|
+
}
|
|
9308
|
+
/**
|
|
9309
|
+
* Start replacing the card on file for the caller\'s subscription (or enterprise contract). POST, not GET: for an active subscription Paddle creates a new zero-value transaction on every call.
|
|
9310
|
+
* Start Payment Method Update
|
|
9311
|
+
*/
|
|
9312
|
+
async startPaymentMethodUpdateRaw(initOverrides) {
|
|
9313
|
+
const requestOptions = await this.startPaymentMethodUpdateRequestOpts();
|
|
9314
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9315
|
+
return new JSONApiResponse(response, (jsonValue) => PaymentMethodUpdateOutDTOFromJSON(jsonValue));
|
|
9316
|
+
}
|
|
9317
|
+
/**
|
|
9318
|
+
* Start replacing the card on file for the caller\'s subscription (or enterprise contract). POST, not GET: for an active subscription Paddle creates a new zero-value transaction on every call.
|
|
9319
|
+
* Start Payment Method Update
|
|
9320
|
+
*/
|
|
9321
|
+
async startPaymentMethodUpdate(initOverrides) {
|
|
9322
|
+
const response = await this.startPaymentMethodUpdateRaw(initOverrides);
|
|
9323
|
+
return await response.value();
|
|
9324
|
+
}
|
|
9080
9325
|
/**
|
|
9081
9326
|
* Creates request options for subscribe without sending the request
|
|
9082
9327
|
*/
|
|
@@ -9414,6 +9659,7 @@ function TemplateOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9414
9659
|
"error": json["error"] == null ? void 0 : json["error"],
|
|
9415
9660
|
"id": json["id"],
|
|
9416
9661
|
"isActive": json["isActive"] == null ? void 0 : json["isActive"],
|
|
9662
|
+
"isStarter": json["isStarter"] == null ? void 0 : json["isStarter"],
|
|
9417
9663
|
"name": json["name"],
|
|
9418
9664
|
"schema": json["schema"] == null ? void 0 : TemplateSchemaDTOOutputFromJSON(json["schema"]),
|
|
9419
9665
|
"sourceFilename": json["sourceFilename"] == null ? void 0 : json["sourceFilename"],
|
|
@@ -9434,6 +9680,7 @@ function TemplateOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9434
9680
|
"error": value["error"],
|
|
9435
9681
|
"id": value["id"],
|
|
9436
9682
|
"isActive": value["isActive"],
|
|
9683
|
+
"isStarter": value["isStarter"],
|
|
9437
9684
|
"name": value["name"],
|
|
9438
9685
|
"schema": TemplateSchemaDTOOutputToJSON(value["schema"]),
|
|
9439
9686
|
"sourceFilename": value["sourceFilename"],
|
|
@@ -10689,7 +10936,7 @@ async function asProcessingErrorIfFailedResult(error) {
|
|
|
10689
10936
|
}
|
|
10690
10937
|
|
|
10691
10938
|
// src/version.ts
|
|
10692
|
-
var VERSION = "0.
|
|
10939
|
+
var VERSION = "0.16.1";
|
|
10693
10940
|
export {
|
|
10694
10941
|
AddExtractionsInDTOFromJSON,
|
|
10695
10942
|
AddExtractionsInDTOFromJSONTyped,
|
|
@@ -11076,6 +11323,11 @@ export {
|
|
|
11076
11323
|
OperationTypeFromJSONTyped,
|
|
11077
11324
|
OperationTypeToJSON,
|
|
11078
11325
|
OperationTypeToJSONTyped,
|
|
11326
|
+
PaymentMethodUpdateOutDTOFromJSON,
|
|
11327
|
+
PaymentMethodUpdateOutDTOFromJSONTyped,
|
|
11328
|
+
PaymentMethodUpdateOutDTOPurposeEnum,
|
|
11329
|
+
PaymentMethodUpdateOutDTOToJSON,
|
|
11330
|
+
PaymentMethodUpdateOutDTOToJSONTyped,
|
|
11079
11331
|
PeriodPresetModel,
|
|
11080
11332
|
PeriodPresetModelFromJSON,
|
|
11081
11333
|
PeriodPresetModelFromJSONTyped,
|
|
@@ -11112,6 +11364,7 @@ export {
|
|
|
11112
11364
|
PurgedDocumentsDataOutDTOToJSONTyped,
|
|
11113
11365
|
QueryMetaDTOFromJSON,
|
|
11114
11366
|
QueryMetaDTOFromJSONTyped,
|
|
11367
|
+
QueryMetaDTOIndexingStateEnum,
|
|
11115
11368
|
QueryMetaDTOToJSON,
|
|
11116
11369
|
QueryMetaDTOToJSONTyped,
|
|
11117
11370
|
QueryResultItemDTOFromJSON,
|
|
@@ -11448,6 +11701,7 @@ export {
|
|
|
11448
11701
|
instanceOfNextActionOutDTO,
|
|
11449
11702
|
instanceOfNumberOfStoredDocumentsOutDTO,
|
|
11450
11703
|
instanceOfOperationType,
|
|
11704
|
+
instanceOfPaymentMethodUpdateOutDTO,
|
|
11451
11705
|
instanceOfPeriodPresetModel,
|
|
11452
11706
|
instanceOfPlanCreditCostOutDTO,
|
|
11453
11707
|
instanceOfPlanDetailOutDTO,
|