@dangl/avacloud-client-node 1.62.1-avacloud-preview → 1.63.0-avacloud-preview
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/api.d.ts +34 -2
- package/api.js +121 -2
- package/api.js.map +1 -1
- package/api.ts +134 -2
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1682,6 +1682,22 @@ export declare class XRechnungConversionApi {
|
|
|
1682
1682
|
*/
|
|
1683
1683
|
xRechnungConversionConvertAvaToPdfInvoice(avaWrapper: AvaProjectWrapper): Promise<SwaggerResponse<FileResponse>>;
|
|
1684
1684
|
protected processXRechnungConversionConvertAvaToPdfInvoice(response: Response): Promise<SwaggerResponse<FileResponse>>;
|
|
1685
|
+
/**
|
|
1686
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
1687
|
+
*/
|
|
1688
|
+
xRechnungConversionMergeInvoiceIntoPdfFileWithRequestObject(pdfEmbeddModel: PostXRechnungPdfEmbedd, options?: {
|
|
1689
|
+
targetFormat?: DestinationXRechnungFormat | undefined;
|
|
1690
|
+
disablePriceRounding?: boolean | undefined;
|
|
1691
|
+
}): Promise<SwaggerResponse<FileResponse>>;
|
|
1692
|
+
/**
|
|
1693
|
+
* This will embedd an XRechnung file into an existing PDF file as an attachment.
|
|
1694
|
+
* @param targetFormat (optional) The target format for the XRechnung export. Defaults to Ubl. Options are:
|
|
1695
|
+
Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
|
|
1696
|
+
* @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
|
|
1697
|
+
Otherwise, prices will by default be rounded to two decimal places.
|
|
1698
|
+
*/
|
|
1699
|
+
xRechnungConversionMergeInvoiceIntoPdfFile(pdfEmbeddModel: PostXRechnungPdfEmbedd, targetFormat?: DestinationXRechnungFormat | undefined, disablePriceRounding?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
|
|
1700
|
+
protected processXRechnungConversionMergeInvoiceIntoPdfFile(response: Response): Promise<SwaggerResponse<FileResponse>>;
|
|
1685
1701
|
}
|
|
1686
1702
|
export declare class DanglIdentityApi {
|
|
1687
1703
|
private http;
|
|
@@ -5516,7 +5532,6 @@ export declare enum PaymentType {
|
|
|
5516
5532
|
ClearingBetweenPartners = "ClearingBetweenPartners",
|
|
5517
5533
|
JPElectronicallyRecordedMonetaryClaims = "JPElectronicallyRecordedMonetaryClaims"
|
|
5518
5534
|
}
|
|
5519
|
-
/** Represents a payment means for an invoice */
|
|
5520
5535
|
export declare class PaymentMeans implements IPaymentMeans {
|
|
5521
5536
|
/** BT-84
|
|
5522
5537
|
This is typically the IBAN or account number
|
|
@@ -5562,7 +5577,6 @@ https://github.com/itplr-kosit/validator-configuration-xrechnung/issues/53 */
|
|
|
5562
5577
|
static fromJS(data: any): PaymentMeans;
|
|
5563
5578
|
toJSON?(data?: any): any;
|
|
5564
5579
|
}
|
|
5565
|
-
/** Represents a payment means for an invoice */
|
|
5566
5580
|
export interface IPaymentMeans {
|
|
5567
5581
|
/** BT-84
|
|
5568
5582
|
This is typically the IBAN or account number
|
|
@@ -6631,6 +6645,24 @@ export declare enum DestinationXRechnungFormat {
|
|
|
6631
6645
|
CrossIndustryInvoice = "CrossIndustryInvoice",
|
|
6632
6646
|
FacturX = "FacturX"
|
|
6633
6647
|
}
|
|
6648
|
+
/** This model is a wrapper for both an invoice and a PDF file as Base64 string */
|
|
6649
|
+
export declare class PostXRechnungPdfEmbedd implements IPostXRechnungPdfEmbedd {
|
|
6650
|
+
/** The invoice to be embedded into the PDF file */
|
|
6651
|
+
invoice: Invoice;
|
|
6652
|
+
/** The PDF file as Base64 string */
|
|
6653
|
+
pdfFileBase64: string;
|
|
6654
|
+
constructor(data?: IPostXRechnungPdfEmbedd);
|
|
6655
|
+
init?(_data?: any): void;
|
|
6656
|
+
static fromJS(data: any): PostXRechnungPdfEmbedd;
|
|
6657
|
+
toJSON?(data?: any): any;
|
|
6658
|
+
}
|
|
6659
|
+
/** This model is a wrapper for both an invoice and a PDF file as Base64 string */
|
|
6660
|
+
export interface IPostXRechnungPdfEmbedd {
|
|
6661
|
+
/** The invoice to be embedded into the PDF file */
|
|
6662
|
+
invoice: IInvoice;
|
|
6663
|
+
/** The PDF file as Base64 string */
|
|
6664
|
+
pdfFileBase64: string;
|
|
6665
|
+
}
|
|
6634
6666
|
export declare class LoginPost implements ILoginPost {
|
|
6635
6667
|
identifier: string;
|
|
6636
6668
|
password: string;
|
package/api.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ProductDataDto = exports.ServiceTypeDto = exports.PriceTypeDto = exports.PositionTypeDto = exports.ItemNumberDto = exports.ComissionStatusDto = exports.STLBKeyDto = exports.STLBReferenceDto = exports.StandardReferenceTypeDto = exports.StandardizedDescriptionDto = exports.AdditionTypeDto = exports.SubDescriptionDto = exports.PriceComponentDto = exports.CalculationDto = exports.LabourPriceComponentDto = exports.PositionDto = exports.CatalogueReferenceDto = exports.CatalogueTypeDto = exports.CatalogueDto = exports.IElementDto = exports.ServiceSpecificationDto = exports.SpecialAwardKindDto = exports.AwardTypeDto = exports.PriceComponentTypeDto = exports.ItemNumberSchemaTierTypeDto = exports.ItemNumberSchemaTierAlignmentDto = exports.ItemNumberTypeDto = exports.ItemNumberSchemaTierDto = exports.ItemNumberSchemaDto = exports.BankingInformationDto = exports.PartyInformationDto = exports.ProjectInformationDto = exports.PriceRoundingModeDto = exports.ProjectDto = exports.DanglIdentityApi = exports.XRechnungConversionApi = exports.ValidationApi = exports.UglConversionApi = exports.StatusApi = exports.SiaConversionApi = exports.RebConversionApi = exports.OenormConversionApi = exports.IdsConnectConversionApi = exports.GaebConversionApi = exports.FlatAvaConversionApi = exports.ExcelConversionApi = exports.DatanormConversionApi = exports.AvaMergeApi = exports.AvaConversionApi = exports.AslvConversionApi = void 0;
|
|
9
9
|
exports.PostAvaProjectValidationSourceOptions = exports.FileValidationSourceType = exports.ValidationType = exports.ProjectValidationCheckDetails = exports.XmlSchemaValidationCheckDetails = exports.ObjectValidationCheckDetails = exports.ValidationCheckType = exports.ValidationSeverity = exports.ValidationCheckResult = exports.ValidationResult = exports.GetStatus = exports.PostAvaProjectMerge = exports.GetProjectMergeResult = exports.IdsConnectVersion = exports.UglDestinationVersion = exports.DatanormDestinationVersion = exports.SiaDestinationType = exports.DestinationRebType = exports.DestinationOenormType = exports.DestinationGaebExchangePhase = exports.DestinationGaebType = exports.FlatElementDto = exports.FlatAvaProject = exports.ApiError = exports.CommerceInquiryTypeDto = exports.ServiceSpecificationCommercePropertiesDto = exports.DurationUnitDto = exports.WarrantyDurationDto = exports.TradeDiscountDto = exports.PriceInformationDto = exports.OriginDto = exports.ExchangePhaseDto = exports.OenormPropertiesDto = exports.GrossPriceComponentDto = exports.ServiceSpecificationGroupDto = exports.OenormNoteTextPropertiesDto = exports.NoteTextDto = exports.ExecutionDescriptionDto = exports.PriceCatalogueDataDto = exports.HoldOutDurationUnitDto = exports.HoldOutTypeDto = exports.PositionHoldOutPropertiesDto = exports.PositionComplementingTypeDto = exports.AddendumStatusDto = exports.OenormOriginCodeDto = exports.OenormPositionPropertiesDto = exports.ComplementedByQuantityDto = exports.CommercePropertiesDto = exports.QuantityAssignmentDto = exports.ArticleDataDto = void 0;
|
|
10
|
-
exports.ApiException = exports.SwaggerResponse = exports.ClaimGet = exports.UserInfoGet = exports.ForgotPasswordPost = exports.RegisterPost = exports.TokenRefreshPost = exports.TokenLoginPost = exports.ResponseErrorType = exports.HttpStatusCode = exports.TokenResponseGet = exports.LoginPost = exports.DestinationXRechnungFormat = exports.AvaProjectWrapper = exports.SourceType = exports.LineItemAttribute = exports.LineItemInformation = exports.LineItemVatInformation = exports.LineItemPriceDetail = exports.LineItemCharge = exports.LineItemAllowance = exports.InvoiceLineItem = exports.ChargeReasonType = exports.InvoiceCharge = exports.AllowanceReasonType = exports.InvoiceAllowance = exports.VatCategory = exports.VatBreakdown = exports.AttachmentMimeType = exports.SupportingDocument = exports.PaymentMeans = exports.PaymentType = exports.PaymentInstructions = exports.InvoiceTotals = exports.DeliveryAddress = exports.DeliveryInformation = exports.InvoicePeriod = exports.ShortTextType = exports.InvoiceNote = exports.Payee = exports.Organization = exports.PreviousInvoice = exports.PaymentTerm = exports.References = exports.InvoiceType = exports.Invoice = exports.PostGaebDestinationOptions = exports.PostOenormDestinationOptions = exports.PostAvaSourceOptions = void 0;
|
|
10
|
+
exports.ApiException = exports.SwaggerResponse = exports.ClaimGet = exports.UserInfoGet = exports.ForgotPasswordPost = exports.RegisterPost = exports.TokenRefreshPost = exports.TokenLoginPost = exports.ResponseErrorType = exports.HttpStatusCode = exports.TokenResponseGet = exports.LoginPost = exports.PostXRechnungPdfEmbedd = exports.DestinationXRechnungFormat = exports.AvaProjectWrapper = exports.SourceType = exports.LineItemAttribute = exports.LineItemInformation = exports.LineItemVatInformation = exports.LineItemPriceDetail = exports.LineItemCharge = exports.LineItemAllowance = exports.InvoiceLineItem = exports.ChargeReasonType = exports.InvoiceCharge = exports.AllowanceReasonType = exports.InvoiceAllowance = exports.VatCategory = exports.VatBreakdown = exports.AttachmentMimeType = exports.SupportingDocument = exports.PaymentMeans = exports.PaymentType = exports.PaymentInstructions = exports.InvoiceTotals = exports.DeliveryAddress = exports.DeliveryInformation = exports.InvoicePeriod = exports.ShortTextType = exports.InvoiceNote = exports.Payee = exports.Organization = exports.PreviousInvoice = exports.PaymentTerm = exports.References = exports.InvoiceType = exports.Invoice = exports.PostGaebDestinationOptions = exports.PostOenormDestinationOptions = exports.PostAvaSourceOptions = void 0;
|
|
11
11
|
/* tslint:disable */
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
// ReSharper disable InconsistentNaming
|
|
@@ -5883,6 +5883,82 @@ class XRechnungConversionApi {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
return Promise.resolve(new SwaggerResponse(status, _headers, null));
|
|
5885
5885
|
}
|
|
5886
|
+
/**
|
|
5887
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5888
|
+
*/
|
|
5889
|
+
xRechnungConversionMergeInvoiceIntoPdfFileWithRequestObject(pdfEmbeddModel, options) {
|
|
5890
|
+
return this.xRechnungConversionMergeInvoiceIntoPdfFile(pdfEmbeddModel, options === null || options === void 0 ? void 0 : options.targetFormat, options === null || options === void 0 ? void 0 : options.disablePriceRounding);
|
|
5891
|
+
}
|
|
5892
|
+
/**
|
|
5893
|
+
* This will embedd an XRechnung file into an existing PDF file as an attachment.
|
|
5894
|
+
* @param targetFormat (optional) The target format for the XRechnung export. Defaults to Ubl. Options are:
|
|
5895
|
+
Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
|
|
5896
|
+
* @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
|
|
5897
|
+
Otherwise, prices will by default be rounded to two decimal places.
|
|
5898
|
+
*/
|
|
5899
|
+
xRechnungConversionMergeInvoiceIntoPdfFile(pdfEmbeddModel, targetFormat, disablePriceRounding) {
|
|
5900
|
+
let url_ = this.baseUrl + "/conversion/xrechnung/merge?";
|
|
5901
|
+
if (targetFormat === null)
|
|
5902
|
+
throw new Error("The parameter 'targetFormat' cannot be null.");
|
|
5903
|
+
else if (targetFormat !== undefined)
|
|
5904
|
+
url_ += "TargetFormat=" + encodeURIComponent("" + targetFormat) + "&";
|
|
5905
|
+
if (disablePriceRounding === null)
|
|
5906
|
+
throw new Error("The parameter 'disablePriceRounding' cannot be null.");
|
|
5907
|
+
else if (disablePriceRounding !== undefined)
|
|
5908
|
+
url_ += "DisablePriceRounding=" + encodeURIComponent("" + disablePriceRounding) + "&";
|
|
5909
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5910
|
+
const content_ = JSON.stringify(pdfEmbeddModel);
|
|
5911
|
+
let options_ = {
|
|
5912
|
+
body: content_,
|
|
5913
|
+
method: "POST",
|
|
5914
|
+
headers: {
|
|
5915
|
+
"Content-Type": "application/json",
|
|
5916
|
+
"Accept": "application/json"
|
|
5917
|
+
}
|
|
5918
|
+
};
|
|
5919
|
+
if (this._accessToken) {
|
|
5920
|
+
options_.headers = options_.headers || {};
|
|
5921
|
+
options_.headers['Authorization'] = `Bearer ${this._accessToken}`;
|
|
5922
|
+
}
|
|
5923
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
5924
|
+
return this.processXRechnungConversionMergeInvoiceIntoPdfFile(_response);
|
|
5925
|
+
});
|
|
5926
|
+
}
|
|
5927
|
+
processXRechnungConversionMergeInvoiceIntoPdfFile(response) {
|
|
5928
|
+
const status = response.status;
|
|
5929
|
+
let _headers = {};
|
|
5930
|
+
if (response.headers && response.headers.forEach) {
|
|
5931
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5932
|
+
}
|
|
5933
|
+
;
|
|
5934
|
+
if (status === 200 || status === 206) {
|
|
5935
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
5936
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
5937
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
5938
|
+
if (fileName) {
|
|
5939
|
+
fileName = decodeURIComponent(fileName);
|
|
5940
|
+
}
|
|
5941
|
+
else {
|
|
5942
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
5943
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
5944
|
+
}
|
|
5945
|
+
return response.blob().then(blob => { return new SwaggerResponse(status, _headers, { fileName: fileName, data: blob, status: status, headers: _headers }); });
|
|
5946
|
+
}
|
|
5947
|
+
else if (status === 400) {
|
|
5948
|
+
return response.text().then((_responseText) => {
|
|
5949
|
+
let result400 = null;
|
|
5950
|
+
let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5951
|
+
result400 = ApiError.fromJS(resultData400);
|
|
5952
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result400);
|
|
5953
|
+
});
|
|
5954
|
+
}
|
|
5955
|
+
else if (status !== 200 && status !== 204) {
|
|
5956
|
+
return response.text().then((_responseText) => {
|
|
5957
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5958
|
+
});
|
|
5959
|
+
}
|
|
5960
|
+
return Promise.resolve(new SwaggerResponse(status, _headers, null));
|
|
5961
|
+
}
|
|
5886
5962
|
}
|
|
5887
5963
|
exports.XRechnungConversionApi = XRechnungConversionApi;
|
|
5888
5964
|
class DanglIdentityApi {
|
|
@@ -11262,7 +11338,6 @@ var PaymentType;
|
|
|
11262
11338
|
PaymentType["ClearingBetweenPartners"] = "ClearingBetweenPartners";
|
|
11263
11339
|
PaymentType["JPElectronicallyRecordedMonetaryClaims"] = "JPElectronicallyRecordedMonetaryClaims";
|
|
11264
11340
|
})(PaymentType = exports.PaymentType || (exports.PaymentType = {}));
|
|
11265
|
-
/** Represents a payment means for an invoice */
|
|
11266
11341
|
class PaymentMeans {
|
|
11267
11342
|
constructor(data) {
|
|
11268
11343
|
if (data) {
|
|
@@ -12409,6 +12484,50 @@ var DestinationXRechnungFormat;
|
|
|
12409
12484
|
DestinationXRechnungFormat["CrossIndustryInvoice"] = "CrossIndustryInvoice";
|
|
12410
12485
|
DestinationXRechnungFormat["FacturX"] = "FacturX";
|
|
12411
12486
|
})(DestinationXRechnungFormat = exports.DestinationXRechnungFormat || (exports.DestinationXRechnungFormat = {}));
|
|
12487
|
+
/** This model is a wrapper for both an invoice and a PDF file as Base64 string */
|
|
12488
|
+
class PostXRechnungPdfEmbedd {
|
|
12489
|
+
constructor(data) {
|
|
12490
|
+
if (data) {
|
|
12491
|
+
for (var property in data) {
|
|
12492
|
+
if (data.hasOwnProperty(property))
|
|
12493
|
+
this[property] = data[property];
|
|
12494
|
+
}
|
|
12495
|
+
this.invoice = data.invoice && !data.invoice.toJSON ? new Invoice(data.invoice) : this.invoice;
|
|
12496
|
+
}
|
|
12497
|
+
if (!data) {
|
|
12498
|
+
this.invoice = new Invoice();
|
|
12499
|
+
}
|
|
12500
|
+
}
|
|
12501
|
+
init(_data) {
|
|
12502
|
+
if (_data) {
|
|
12503
|
+
this.invoice = _data["invoice"] ? Invoice.fromJS(_data["invoice"]) : new Invoice();
|
|
12504
|
+
this.pdfFileBase64 = _data["pdfFileBase64"];
|
|
12505
|
+
}
|
|
12506
|
+
}
|
|
12507
|
+
static fromJS(data) {
|
|
12508
|
+
data = typeof data === 'object' ? data : {};
|
|
12509
|
+
let result = new PostXRechnungPdfEmbedd();
|
|
12510
|
+
result.init(data);
|
|
12511
|
+
return result;
|
|
12512
|
+
}
|
|
12513
|
+
toJSON(data) {
|
|
12514
|
+
data = typeof data === 'object' ? data : {};
|
|
12515
|
+
if (this.invoice) {
|
|
12516
|
+
if (typeof this.invoice.toJSON !== "undefined") {
|
|
12517
|
+
data["invoice"] = this.invoice.toJSON();
|
|
12518
|
+
}
|
|
12519
|
+
else {
|
|
12520
|
+
data["invoice"] = this.invoice;
|
|
12521
|
+
}
|
|
12522
|
+
}
|
|
12523
|
+
else {
|
|
12524
|
+
data["invoice"] = undefined;
|
|
12525
|
+
}
|
|
12526
|
+
data["pdfFileBase64"] = this.pdfFileBase64;
|
|
12527
|
+
return data;
|
|
12528
|
+
}
|
|
12529
|
+
}
|
|
12530
|
+
exports.PostXRechnungPdfEmbedd = PostXRechnungPdfEmbedd;
|
|
12412
12531
|
class LoginPost {
|
|
12413
12532
|
constructor(data) {
|
|
12414
12533
|
if (data) {
|