@dangl/avacloud-client-node 1.24.0 → 1.25.0
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/.swagger-codegen/VERSION +1 -1
- package/api.d.ts +82 -2
- package/api.js +194 -5
- package/api.js.map +1 -1
- package/api.ts +214 -2
- package/package.json +1 -1
package/.swagger-codegen/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.32
|
package/api.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* AVACloud API 1.
|
|
2
|
+
* AVACloud API 1.42.0
|
|
3
3
|
* AVACloud API specification
|
|
4
4
|
*
|
|
5
|
-
* OpenAPI spec version: 1.
|
|
5
|
+
* OpenAPI spec version: 1.42.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
@@ -732,6 +732,22 @@ export declare class HttpStatusCode {
|
|
|
732
732
|
}[];
|
|
733
733
|
}
|
|
734
734
|
/**
|
|
735
|
+
* Represents valid IDS Connect versions for export
|
|
736
|
+
*/
|
|
737
|
+
export declare class IdsConnectVersion {
|
|
738
|
+
static discriminator: string | undefined;
|
|
739
|
+
static attributeTypeMap: Array<{
|
|
740
|
+
name: string;
|
|
741
|
+
baseName: string;
|
|
742
|
+
type: string;
|
|
743
|
+
}>;
|
|
744
|
+
static getAttributeTypeMap(): {
|
|
745
|
+
name: string;
|
|
746
|
+
baseName: string;
|
|
747
|
+
type: string;
|
|
748
|
+
}[];
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
735
751
|
* This class represents as identifier of a certain service specification's element and is uniquely within the service specification.
|
|
736
752
|
*/
|
|
737
753
|
export declare class ItemNumberDto {
|
|
@@ -3237,6 +3253,29 @@ export declare class AvaConversionApi {
|
|
|
3237
3253
|
/**
|
|
3238
3254
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
3239
3255
|
*/
|
|
3256
|
+
avaConversionConvertToIdsConnectWithRequestObject(avaProject: ProjectDto, options: {
|
|
3257
|
+
tryAutoGenerateItemNumbersAndSchema?: boolean;
|
|
3258
|
+
version?: 'V2_5';
|
|
3259
|
+
options?: any;
|
|
3260
|
+
}): Promise<{
|
|
3261
|
+
response: http.IncomingMessage;
|
|
3262
|
+
body: Buffer;
|
|
3263
|
+
}>;
|
|
3264
|
+
/**
|
|
3265
|
+
*
|
|
3266
|
+
* @summary Converts Dangl.AVA projects to IDS Connect files
|
|
3267
|
+
* @param avaProject The Dangl.AVA project
|
|
3268
|
+
* @param tryAutoGenerateItemNumbersAndSchema If this is set to true, AVACloud will try to generate item numbers and an item number schema automatically for the input project. The operation will not have any effect if either an item number schema is already present, or if any of the elements already has an item number.
|
|
3269
|
+
* @param version The IDS Connect version to convert to. Defaults to V2_5.
|
|
3270
|
+
* @param {*} [options] Override http request options.
|
|
3271
|
+
*/
|
|
3272
|
+
avaConversionConvertToIdsConnect(avaProject: ProjectDto, tryAutoGenerateItemNumbersAndSchema?: boolean, version?: 'V2_5', options?: any): Promise<{
|
|
3273
|
+
response: http.IncomingMessage;
|
|
3274
|
+
body: Buffer;
|
|
3275
|
+
}>;
|
|
3276
|
+
/**
|
|
3277
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
3278
|
+
*/
|
|
3240
3279
|
avaConversionConvertToOenormWithRequestObject(avaProject: ProjectDto, options: {
|
|
3241
3280
|
tryAutoGenerateItemNumbersAndSchema?: boolean;
|
|
3242
3281
|
destinationOenormType?: 'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021';
|
|
@@ -3754,6 +3793,47 @@ export declare class GaebConversionApi {
|
|
|
3754
3793
|
body: Buffer;
|
|
3755
3794
|
}>;
|
|
3756
3795
|
}
|
|
3796
|
+
export declare enum IdsConnectConversionApiApiKeys {
|
|
3797
|
+
}
|
|
3798
|
+
export declare class IdsConnectConversionApi {
|
|
3799
|
+
protected _basePath: string;
|
|
3800
|
+
protected defaultHeaders: any;
|
|
3801
|
+
protected _useQuerystring: boolean;
|
|
3802
|
+
protected authentications: {
|
|
3803
|
+
default: Authentication;
|
|
3804
|
+
'Dangl.Identity': OAuth;
|
|
3805
|
+
};
|
|
3806
|
+
constructor(basePath?: string);
|
|
3807
|
+
set useQuerystring(value: boolean);
|
|
3808
|
+
set basePath(basePath: string);
|
|
3809
|
+
get basePath(): string;
|
|
3810
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
3811
|
+
setApiKey(key: IdsConnectConversionApiApiKeys, value: string): void;
|
|
3812
|
+
set accessToken(token: string);
|
|
3813
|
+
/**
|
|
3814
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
3815
|
+
*/
|
|
3816
|
+
idsConnectConversionConvertToAvaWithRequestObject(idsConnectFile: FileParameter, options: {
|
|
3817
|
+
removePlainTextLongTexts?: boolean;
|
|
3818
|
+
removeHtmlLongTexts?: boolean;
|
|
3819
|
+
options?: any;
|
|
3820
|
+
}): Promise<{
|
|
3821
|
+
response: http.IncomingMessage;
|
|
3822
|
+
body: ProjectDto;
|
|
3823
|
+
}>;
|
|
3824
|
+
/**
|
|
3825
|
+
*
|
|
3826
|
+
* @summary Converts IDS Connect files to Dangl.AVA projects
|
|
3827
|
+
* @param idsConnectFile The input file
|
|
3828
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
3829
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
3830
|
+
* @param {*} [options] Override http request options.
|
|
3831
|
+
*/
|
|
3832
|
+
idsConnectConversionConvertToAva(idsConnectFile: FileParameter, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options?: any): Promise<{
|
|
3833
|
+
response: http.IncomingMessage;
|
|
3834
|
+
body: ProjectDto;
|
|
3835
|
+
}>;
|
|
3836
|
+
}
|
|
3757
3837
|
export declare enum OenormConversionApiApiKeys {
|
|
3758
3838
|
}
|
|
3759
3839
|
export declare class OenormConversionApi {
|
package/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* AVACloud API 1.
|
|
3
|
+
* AVACloud API 1.42.0
|
|
4
4
|
* AVACloud API specification
|
|
5
5
|
*
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.42.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.ValidationApi = exports.ValidationApiApiKeys = exports.UglConversionApi = exports.UglConversionApiApiKeys = exports.StatusApi = exports.StatusApiApiKeys = exports.SiaConversionApi = exports.SiaConversionApiApiKeys = exports.RebConversionApi = exports.RebConversionApiApiKeys = exports.OenormConversionApi = exports.OenormConversionApiApiKeys = exports.GaebConversionApi = exports.GaebConversionApiApiKeys = exports.ExcelConversionApi = void 0;
|
|
14
|
+
exports.PositionTypeDto = exports.PositionHoldOutPropertiesDto = exports.PositionDto = exports.PositionComplementingTypeDto = exports.PartyInformationDto = exports.OriginDto = exports.OenormPropertiesDto = exports.OenormPositionPropertiesDto = exports.OenormOriginCodeDto = exports.OenormNoteTextPropertiesDto = exports.ObjectValidationCheckDetails = exports.NoteTextDto = exports.LoginPost = exports.LabourPriceComponentDto = exports.ItemNumberTypeDto = exports.ItemNumberSchemaTierTypeDto = exports.ItemNumberSchemaTierDto = exports.ItemNumberSchemaDto = exports.ItemNumberDto = exports.IdsConnectVersion = exports.HttpStatusCode = exports.HoldOutTypeDto = exports.HoldOutDurationUnitDto = exports.GrossPriceComponentDto = exports.GetStatus = exports.ForgotPasswordPost = exports.FileValidationSourceType = exports.ExecutionDescriptionDto = exports.IElementDto = exports.ExchangePhaseDto = exports.DurationUnitDto = exports.DestinationRebType = exports.DestinationOenormType = exports.DestinationGaebType = exports.DestinationGaebExchangePhase = exports.DatanormDestinationVersion = exports.ComplementedByQuantityDto = exports.CommercePropertiesDto = exports.CommerceInquiryTypeDto = exports.ComissionStatusDto = exports.CatalogueTypeDto = exports.CatalogueReferenceDto = exports.CatalogueDto = exports.CalculationDto = exports.BankingInformationDto = exports.AwardTypeDto = exports.ArticleDataDto = exports.ApiError = exports.AdditionTypeDto = exports.AddendumStatusDto = void 0;
|
|
15
|
+
exports.DatanormConversionApi = exports.DatanormConversionApiApiKeys = exports.DanglIdentityApi = exports.DanglIdentityApiApiKeys = exports.AvaConversionApi = exports.AvaConversionApiApiKeys = exports.AslvConversionApi = exports.AslvConversionApiApiKeys = exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBasicAuth = exports.XmlSchemaValidationCheckDetails = exports.WarrantyDurationDto = exports.ValidationType = exports.ValidationSeverity = exports.ValidationResult = exports.ValidationCheckType = exports.ValidationCheckResult = exports.UglDestinationVersion = exports.TradeDiscountDto = exports.TokenResponseGet = exports.TokenRefreshPost = exports.TokenLoginPost = exports.SubDescriptionDto = exports.StandardizedDescriptionDto = exports.StandardReferenceTypeDto = exports.SpecialAwardKindDto = exports.ServiceTypeDto = exports.ServiceSpecificationGroupDto = exports.ServiceSpecificationDto = exports.ServiceSpecificationCommercePropertiesDto = exports.STLBReferenceDto = exports.STLBKeyDto = exports.ResponseErrorType = exports.RegisterPost = exports.QuantityAssignmentDto = exports.ProjectValidationCheckDetails = exports.ProjectInformationDto = exports.ProjectDto = exports.ProductDataDto = exports.PriceTypeDto = exports.PriceRoundingModeDto = exports.PriceInformationDto = exports.PriceComponentTypeDto = exports.PriceComponentDto = exports.PostOenormDestinationOptions = exports.PostGaebDestinationOptions = exports.PostAvaSourceOptions = exports.PostAvaProjectValidationSourceOptions = void 0;
|
|
16
|
+
exports.ValidationApi = exports.ValidationApiApiKeys = exports.UglConversionApi = exports.UglConversionApiApiKeys = exports.StatusApi = exports.StatusApiApiKeys = exports.SiaConversionApi = exports.SiaConversionApiApiKeys = exports.RebConversionApi = exports.RebConversionApiApiKeys = exports.OenormConversionApi = exports.OenormConversionApiApiKeys = exports.IdsConnectConversionApi = exports.IdsConnectConversionApiApiKeys = exports.GaebConversionApi = exports.GaebConversionApiApiKeys = exports.ExcelConversionApi = exports.ExcelConversionApiApiKeys = void 0;
|
|
17
17
|
const localVarRequest = require("request");
|
|
18
18
|
let defaultBasePath = 'https://avacloud-api.dangl-it.com';
|
|
19
19
|
// ===============================================
|
|
@@ -805,6 +805,17 @@ exports.HttpStatusCode = HttpStatusCode;
|
|
|
805
805
|
HttpStatusCode.discriminator = undefined;
|
|
806
806
|
HttpStatusCode.attributeTypeMap = [];
|
|
807
807
|
/**
|
|
808
|
+
* Represents valid IDS Connect versions for export
|
|
809
|
+
*/
|
|
810
|
+
class IdsConnectVersion {
|
|
811
|
+
static getAttributeTypeMap() {
|
|
812
|
+
return IdsConnectVersion.attributeTypeMap;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
exports.IdsConnectVersion = IdsConnectVersion;
|
|
816
|
+
IdsConnectVersion.discriminator = undefined;
|
|
817
|
+
IdsConnectVersion.attributeTypeMap = [];
|
|
818
|
+
/**
|
|
808
819
|
* This class represents as identifier of a certain service specification's element and is uniquely within the service specification.
|
|
809
820
|
*/
|
|
810
821
|
class ItemNumberDto {
|
|
@@ -3254,6 +3265,7 @@ let typeMap = {
|
|
|
3254
3265
|
"HoldOutTypeDto": HoldOutTypeDto,
|
|
3255
3266
|
"HttpStatusCode": HttpStatusCode,
|
|
3256
3267
|
"IElementDto": IElementDto,
|
|
3268
|
+
"IdsConnectVersion": IdsConnectVersion,
|
|
3257
3269
|
"ItemNumberDto": ItemNumberDto,
|
|
3258
3270
|
"ItemNumberSchemaDto": ItemNumberSchemaDto,
|
|
3259
3271
|
"ItemNumberSchemaTierDto": ItemNumberSchemaTierDto,
|
|
@@ -4051,6 +4063,74 @@ class AvaConversionApi {
|
|
|
4051
4063
|
/**
|
|
4052
4064
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4053
4065
|
*/
|
|
4066
|
+
avaConversionConvertToIdsConnectWithRequestObject(avaProject, options) {
|
|
4067
|
+
return this.avaConversionConvertToIdsConnect(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.version, options.options || {});
|
|
4068
|
+
}
|
|
4069
|
+
/**
|
|
4070
|
+
*
|
|
4071
|
+
* @summary Converts Dangl.AVA projects to IDS Connect files
|
|
4072
|
+
* @param avaProject The Dangl.AVA project
|
|
4073
|
+
* @param tryAutoGenerateItemNumbersAndSchema If this is set to true, AVACloud will try to generate item numbers and an item number schema automatically for the input project. The operation will not have any effect if either an item number schema is already present, or if any of the elements already has an item number.
|
|
4074
|
+
* @param version The IDS Connect version to convert to. Defaults to V2_5.
|
|
4075
|
+
* @param {*} [options] Override http request options.
|
|
4076
|
+
*/
|
|
4077
|
+
avaConversionConvertToIdsConnect(avaProject, tryAutoGenerateItemNumbersAndSchema, version, options = {}) {
|
|
4078
|
+
const localVarPath = this.basePath + '/conversion/ava/ids-connect';
|
|
4079
|
+
let localVarQueryParameters = {};
|
|
4080
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
4081
|
+
let localVarFormParams = {};
|
|
4082
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
4083
|
+
if (avaProject === null || avaProject === undefined) {
|
|
4084
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToIdsConnect.');
|
|
4085
|
+
}
|
|
4086
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
4087
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
4088
|
+
}
|
|
4089
|
+
if (version !== undefined) {
|
|
4090
|
+
localVarQueryParameters['Version'] = ObjectSerializer.serialize(version, "'V2_5'");
|
|
4091
|
+
}
|
|
4092
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4093
|
+
let localVarUseFormData = false;
|
|
4094
|
+
let localVarRequestOptions = {
|
|
4095
|
+
method: 'POST',
|
|
4096
|
+
qs: localVarQueryParameters,
|
|
4097
|
+
headers: localVarHeaderParams,
|
|
4098
|
+
uri: localVarPath,
|
|
4099
|
+
useQuerystring: this._useQuerystring,
|
|
4100
|
+
encoding: null,
|
|
4101
|
+
body: avaProject,
|
|
4102
|
+
json: true
|
|
4103
|
+
};
|
|
4104
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
4105
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
4106
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4107
|
+
if (localVarUseFormData) {
|
|
4108
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4109
|
+
}
|
|
4110
|
+
else {
|
|
4111
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4112
|
+
}
|
|
4113
|
+
}
|
|
4114
|
+
return new Promise((resolve, reject) => {
|
|
4115
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4116
|
+
if (error) {
|
|
4117
|
+
reject(error);
|
|
4118
|
+
}
|
|
4119
|
+
else {
|
|
4120
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
4121
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4122
|
+
resolve({ response: response, body: body });
|
|
4123
|
+
}
|
|
4124
|
+
else {
|
|
4125
|
+
reject({ response: response, body: body });
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
});
|
|
4129
|
+
});
|
|
4130
|
+
}
|
|
4131
|
+
/**
|
|
4132
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4133
|
+
*/
|
|
4054
4134
|
avaConversionConvertToOenormWithRequestObject(avaProject, options) {
|
|
4055
4135
|
return this.avaConversionConvertToOenorm(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.options || {});
|
|
4056
4136
|
}
|
|
@@ -5568,6 +5648,115 @@ class GaebConversionApi {
|
|
|
5568
5648
|
}
|
|
5569
5649
|
}
|
|
5570
5650
|
exports.GaebConversionApi = GaebConversionApi;
|
|
5651
|
+
var IdsConnectConversionApiApiKeys;
|
|
5652
|
+
(function (IdsConnectConversionApiApiKeys) {
|
|
5653
|
+
})(IdsConnectConversionApiApiKeys = exports.IdsConnectConversionApiApiKeys || (exports.IdsConnectConversionApiApiKeys = {}));
|
|
5654
|
+
class IdsConnectConversionApi {
|
|
5655
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
5656
|
+
this._basePath = defaultBasePath;
|
|
5657
|
+
this.defaultHeaders = {};
|
|
5658
|
+
this._useQuerystring = false;
|
|
5659
|
+
this.authentications = {
|
|
5660
|
+
'default': new VoidAuth(),
|
|
5661
|
+
'Dangl.Identity': new OAuth(),
|
|
5662
|
+
};
|
|
5663
|
+
if (password) {
|
|
5664
|
+
if (basePath) {
|
|
5665
|
+
this.basePath = basePath;
|
|
5666
|
+
}
|
|
5667
|
+
}
|
|
5668
|
+
else {
|
|
5669
|
+
if (basePathOrUsername) {
|
|
5670
|
+
this.basePath = basePathOrUsername;
|
|
5671
|
+
}
|
|
5672
|
+
}
|
|
5673
|
+
}
|
|
5674
|
+
set useQuerystring(value) {
|
|
5675
|
+
this._useQuerystring = value;
|
|
5676
|
+
}
|
|
5677
|
+
set basePath(basePath) {
|
|
5678
|
+
this._basePath = basePath;
|
|
5679
|
+
}
|
|
5680
|
+
get basePath() {
|
|
5681
|
+
return this._basePath;
|
|
5682
|
+
}
|
|
5683
|
+
setDefaultAuthentication(auth) {
|
|
5684
|
+
this.authentications.default = auth;
|
|
5685
|
+
}
|
|
5686
|
+
setApiKey(key, value) {
|
|
5687
|
+
this.authentications[IdsConnectConversionApiApiKeys[key]].apiKey = value;
|
|
5688
|
+
}
|
|
5689
|
+
set accessToken(token) {
|
|
5690
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
5691
|
+
}
|
|
5692
|
+
/**
|
|
5693
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5694
|
+
*/
|
|
5695
|
+
idsConnectConversionConvertToAvaWithRequestObject(idsConnectFile, options) {
|
|
5696
|
+
return this.idsConnectConversionConvertToAva(idsConnectFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
5697
|
+
}
|
|
5698
|
+
/**
|
|
5699
|
+
*
|
|
5700
|
+
* @summary Converts IDS Connect files to Dangl.AVA projects
|
|
5701
|
+
* @param idsConnectFile The input file
|
|
5702
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
5703
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
5704
|
+
* @param {*} [options] Override http request options.
|
|
5705
|
+
*/
|
|
5706
|
+
idsConnectConversionConvertToAva(idsConnectFile, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
|
|
5707
|
+
const localVarPath = this.basePath + '/conversion/ids-connect/ava';
|
|
5708
|
+
let localVarQueryParameters = {};
|
|
5709
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
5710
|
+
let localVarFormParams = {};
|
|
5711
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
5712
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
5713
|
+
}
|
|
5714
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
5715
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
5716
|
+
}
|
|
5717
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5718
|
+
let localVarUseFormData = false;
|
|
5719
|
+
if (idsConnectFile !== undefined) {
|
|
5720
|
+
localVarFormParams['idsConnectFile'] = idsConnectFile;
|
|
5721
|
+
}
|
|
5722
|
+
localVarUseFormData = true;
|
|
5723
|
+
let localVarRequestOptions = {
|
|
5724
|
+
method: 'POST',
|
|
5725
|
+
qs: localVarQueryParameters,
|
|
5726
|
+
headers: localVarHeaderParams,
|
|
5727
|
+
uri: localVarPath,
|
|
5728
|
+
useQuerystring: this._useQuerystring,
|
|
5729
|
+
json: true,
|
|
5730
|
+
};
|
|
5731
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
5732
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
5733
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5734
|
+
if (localVarUseFormData) {
|
|
5735
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5736
|
+
}
|
|
5737
|
+
else {
|
|
5738
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5739
|
+
}
|
|
5740
|
+
}
|
|
5741
|
+
return new Promise((resolve, reject) => {
|
|
5742
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5743
|
+
if (error) {
|
|
5744
|
+
reject(error);
|
|
5745
|
+
}
|
|
5746
|
+
else {
|
|
5747
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
5748
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5749
|
+
resolve({ response: response, body: body });
|
|
5750
|
+
}
|
|
5751
|
+
else {
|
|
5752
|
+
reject({ response: response, body: body });
|
|
5753
|
+
}
|
|
5754
|
+
}
|
|
5755
|
+
});
|
|
5756
|
+
});
|
|
5757
|
+
}
|
|
5758
|
+
}
|
|
5759
|
+
exports.IdsConnectConversionApi = IdsConnectConversionApi;
|
|
5571
5760
|
var OenormConversionApiApiKeys;
|
|
5572
5761
|
(function (OenormConversionApiApiKeys) {
|
|
5573
5762
|
})(OenormConversionApiApiKeys = exports.OenormConversionApiApiKeys || (exports.OenormConversionApiApiKeys = {}));
|