@dangl/avacloud-client-node 1.67.0-beta0032-avacloud-preview → 1.67.0-beta0044-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 +0 -19
- package/api.js +4 -78
- package/api.js.map +1 -1
- package/api.ts +0 -77
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1316,25 +1316,6 @@ export declare class OenormConversionApi {
|
|
|
1316
1316
|
oenormConversionConvertToOenorm(oenormFile: FileParameter | null | undefined, destinationOenormType?: DestinationOenormType | undefined, tryRepairProjectStructure?: boolean | undefined, skipTryEnforceSchemaCompliantXmlOutput?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined, useOenormFileDeclarationForItemNumberSchema?: boolean | undefined, destinationOenormPhase?: DestinationOenormExchangePhase | undefined): Promise<SwaggerResponse<FileResponse>>;
|
|
1317
1317
|
protected processOenormConversionConvertToOenorm(response: Response): Promise<SwaggerResponse<FileResponse>>;
|
|
1318
1318
|
}
|
|
1319
|
-
export declare class PdfConversionApi {
|
|
1320
|
-
private http;
|
|
1321
|
-
private _accessToken;
|
|
1322
|
-
set accessToken(token: string | null);
|
|
1323
|
-
private baseUrl;
|
|
1324
|
-
get basePath(): string;
|
|
1325
|
-
set basePath(value: string);
|
|
1326
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
1327
|
-
constructor(baseUrl?: string, http?: {
|
|
1328
|
-
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1329
|
-
});
|
|
1330
|
-
/**
|
|
1331
|
-
* This endpoint is currently experimental and may change in the future. It is not intended for production use.
|
|
1332
|
-
It takes a PDF file as input and attempts to extract the project structure from it using Azure Document Intelligence and OpenAI's GPT model.
|
|
1333
|
-
* @param pdfFile (optional)
|
|
1334
|
-
*/
|
|
1335
|
-
pdfConversionConvertPdfToAva(pdfFile: FileParameter | null | undefined): Promise<SwaggerResponse<ProjectDto>>;
|
|
1336
|
-
protected processPdfConversionConvertPdfToAva(response: Response): Promise<SwaggerResponse<ProjectDto>>;
|
|
1337
|
-
}
|
|
1338
1319
|
export declare class RebConversionApi {
|
|
1339
1320
|
private http;
|
|
1340
1321
|
private _accessToken;
|
package/api.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
// </auto-generated>
|
|
6
6
|
//----------------------
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.PositionTypeDto = exports.ItemNumberDto = exports.SustainabilityLifeCycleStageDto = exports.PositionSustainabilityIndicatorDto = 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.
|
|
9
|
-
exports.ValidationSeverity = exports.ValidationCheckResult = exports.ValidationResult = exports.GetStatus = exports.PostAvaProjectMerge = exports.GetProjectMergeResult = exports.IdsConnectVersion = exports.UglDestinationVersion = exports.DatanormDestinationVersion = exports.SiaDestinationType = exports.DestinationRebType = exports.DestinationOenormExchangePhase = exports.DestinationOenormType = exports.DestinationGaebExchangePhase = exports.DestinationGaebType = exports.FlatElementDto = exports.FlatAvaProject = exports.ApiError = exports.OenormLBReferenceDto = exports.ServiceSpecificationOenormPropertiesDto = exports.CommerceInquiryTypeDto = exports.ServiceSpecificationCommercePropertiesDto = exports.DurationUnitDto = exports.WarrantyDurationDto = exports.SustainabilityCatalogueDto = 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 = exports.ProductDataDto = exports.ServiceTypeDto =
|
|
10
|
-
exports.TokenResponseGet = exports.LoginPost = exports.PostXRechnungPdfEmbedd = exports.DestinationXRechnungFormat = exports.AvaProjectWrapper = exports.FacturXPaymentTerm = exports.FacturXProfile = exports.FacturXData = 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 = exports.PostAvaProjectValidationSourceOptions = exports.FileValidationSourceType = exports.ValidationType = exports.ProjectValidationCheckDetails = exports.XmlSchemaValidationCheckDetails = exports.ObjectValidationCheckDetails =
|
|
11
|
-
exports.ApiException = exports.SwaggerResponse = exports.ClaimGet = exports.UserInfoGet = exports.ForgotPasswordPost = exports.RegisterPost = exports.TokenRefreshPost = exports.TokenLoginPost = exports.ResponseErrorType =
|
|
8
|
+
exports.PriceTypeDto = exports.PositionTypeDto = exports.ItemNumberDto = exports.SustainabilityLifeCycleStageDto = exports.PositionSustainabilityIndicatorDto = 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
|
+
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.DestinationOenormExchangePhase = exports.DestinationOenormType = exports.DestinationGaebExchangePhase = exports.DestinationGaebType = exports.FlatElementDto = exports.FlatAvaProject = exports.ApiError = exports.OenormLBReferenceDto = exports.ServiceSpecificationOenormPropertiesDto = exports.CommerceInquiryTypeDto = exports.ServiceSpecificationCommercePropertiesDto = exports.DurationUnitDto = exports.WarrantyDurationDto = exports.SustainabilityCatalogueDto = 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 = exports.ProductDataDto = exports.ServiceTypeDto = void 0;
|
|
10
|
+
exports.HttpStatusCode = exports.TokenResponseGet = exports.LoginPost = exports.PostXRechnungPdfEmbedd = exports.DestinationXRechnungFormat = exports.AvaProjectWrapper = exports.FacturXPaymentTerm = exports.FacturXProfile = exports.FacturXData = 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 = exports.PostAvaProjectValidationSourceOptions = exports.FileValidationSourceType = exports.ValidationType = exports.ProjectValidationCheckDetails = exports.XmlSchemaValidationCheckDetails = exports.ObjectValidationCheckDetails = void 0;
|
|
11
|
+
exports.ApiException = exports.SwaggerResponse = exports.ClaimGet = exports.UserInfoGet = exports.ForgotPasswordPost = exports.RegisterPost = exports.TokenRefreshPost = exports.TokenLoginPost = exports.ResponseErrorType = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
// ReSharper disable InconsistentNaming
|
|
14
14
|
class AslvConversionApi {
|
|
@@ -4317,80 +4317,6 @@ class OenormConversionApi {
|
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
4319
4319
|
exports.OenormConversionApi = OenormConversionApi;
|
|
4320
|
-
class PdfConversionApi {
|
|
4321
|
-
set accessToken(token) {
|
|
4322
|
-
this._accessToken = token;
|
|
4323
|
-
}
|
|
4324
|
-
get basePath() {
|
|
4325
|
-
return this.baseUrl;
|
|
4326
|
-
}
|
|
4327
|
-
set basePath(value) {
|
|
4328
|
-
this.baseUrl = value;
|
|
4329
|
-
}
|
|
4330
|
-
constructor(baseUrl, http) {
|
|
4331
|
-
this._accessToken = null;
|
|
4332
|
-
this.jsonParseReviver = undefined;
|
|
4333
|
-
this.http = http ? http : (typeof window !== 'undefined' ? window : { fetch });
|
|
4334
|
-
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "https://avacloud-api.dangl-it.com";
|
|
4335
|
-
}
|
|
4336
|
-
/**
|
|
4337
|
-
* This endpoint is currently experimental and may change in the future. It is not intended for production use.
|
|
4338
|
-
It takes a PDF file as input and attempts to extract the project structure from it using Azure Document Intelligence and OpenAI's GPT model.
|
|
4339
|
-
* @param pdfFile (optional)
|
|
4340
|
-
*/
|
|
4341
|
-
pdfConversionConvertPdfToAva(pdfFile) {
|
|
4342
|
-
let url_ = this.baseUrl + "/conversion/pdf/ava";
|
|
4343
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
4344
|
-
const content_ = new FormData();
|
|
4345
|
-
if (pdfFile !== null && pdfFile !== undefined)
|
|
4346
|
-
content_.append("pdfFile", pdfFile.data, pdfFile.fileName ? pdfFile.fileName : "pdfFile");
|
|
4347
|
-
let options_ = {
|
|
4348
|
-
body: content_,
|
|
4349
|
-
method: "POST",
|
|
4350
|
-
headers: {
|
|
4351
|
-
"Accept": "application/json"
|
|
4352
|
-
}
|
|
4353
|
-
};
|
|
4354
|
-
if (this._accessToken) {
|
|
4355
|
-
options_.headers = options_.headers || {};
|
|
4356
|
-
options_.headers['Authorization'] = `Bearer ${this._accessToken}`;
|
|
4357
|
-
}
|
|
4358
|
-
return this.http.fetch(url_, options_).then((_response) => {
|
|
4359
|
-
return this.processPdfConversionConvertPdfToAva(_response);
|
|
4360
|
-
});
|
|
4361
|
-
}
|
|
4362
|
-
processPdfConversionConvertPdfToAva(response) {
|
|
4363
|
-
const status = response.status;
|
|
4364
|
-
let _headers = {};
|
|
4365
|
-
if (response.headers && response.headers.forEach) {
|
|
4366
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4367
|
-
}
|
|
4368
|
-
;
|
|
4369
|
-
if (status === 200) {
|
|
4370
|
-
return response.text().then((_responseText) => {
|
|
4371
|
-
let result200 = null;
|
|
4372
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4373
|
-
result200 = ProjectDto.fromJS(resultData200);
|
|
4374
|
-
return new SwaggerResponse(status, _headers, result200);
|
|
4375
|
-
});
|
|
4376
|
-
}
|
|
4377
|
-
else if (status === 400) {
|
|
4378
|
-
return response.text().then((_responseText) => {
|
|
4379
|
-
let result400 = null;
|
|
4380
|
-
let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4381
|
-
result400 = ApiError.fromJS(resultData400);
|
|
4382
|
-
return throwException("A server side error occurred.", status, _responseText, _headers, result400);
|
|
4383
|
-
});
|
|
4384
|
-
}
|
|
4385
|
-
else if (status !== 200 && status !== 204) {
|
|
4386
|
-
return response.text().then((_responseText) => {
|
|
4387
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4388
|
-
});
|
|
4389
|
-
}
|
|
4390
|
-
return Promise.resolve(new SwaggerResponse(status, _headers, null));
|
|
4391
|
-
}
|
|
4392
|
-
}
|
|
4393
|
-
exports.PdfConversionApi = PdfConversionApi;
|
|
4394
4320
|
class RebConversionApi {
|
|
4395
4321
|
set accessToken(token) {
|
|
4396
4322
|
this._accessToken = token;
|