@tradecafe/offer-service-sdk 0.0.29 → 0.0.31
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/futureBidsApi.ts +1 -8
- package/dist/api/apis.d.ts +20 -0
- package/dist/api/apis.js +57 -0
- package/dist/api/apis.js.map +1 -0
- package/dist/api/automatedOffersApi.d.ts +112 -0
- package/dist/api/automatedOffersApi.js +877 -0
- package/dist/api/automatedOffersApi.js.map +1 -0
- package/dist/api/futureBidsApi.d.ts +65 -0
- package/dist/api/futureBidsApi.js +455 -0
- package/dist/api/futureBidsApi.js.map +1 -0
- package/dist/api/healthApi.d.ts +32 -0
- package/dist/api/healthApi.js +175 -0
- package/dist/api/healthApi.js.map +1 -0
- package/dist/api/matchedOffersApi.d.ts +177 -0
- package/dist/api/matchedOffersApi.js +1411 -0
- package/dist/api/matchedOffersApi.js.map +1 -0
- package/dist/api/offersApi.d.ts +184 -0
- package/dist/api/offersApi.js +1470 -0
- package/dist/api/offersApi.js.map +1 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +19 -0
- package/dist/api.js.map +1 -0
- package/dist/model/addFutureBidDto.d.ts +17 -0
- package/dist/model/addFutureBidDto.js +36 -0
- package/dist/model/addFutureBidDto.js.map +1 -0
- package/dist/model/createAutomatedOfferDto.d.ts +109 -0
- package/dist/model/createAutomatedOfferDto.js +362 -0
- package/dist/model/createAutomatedOfferDto.js.map +1 -0
- package/dist/model/createMatchedOfferDto.d.ts +83 -0
- package/dist/model/createMatchedOfferDto.js +311 -0
- package/dist/model/createMatchedOfferDto.js.map +1 -0
- package/dist/model/createOfferDto.d.ts +99 -0
- package/dist/model/createOfferDto.js +343 -0
- package/dist/model/createOfferDto.js.map +1 -0
- package/dist/model/createOfferDtoAttributes.d.ts +48 -0
- package/dist/model/createOfferDtoAttributes.js +155 -0
- package/dist/model/createOfferDtoAttributes.js.map +1 -0
- package/dist/model/createOfferDtoFormula.d.ts +19 -0
- package/dist/model/createOfferDtoFormula.js +41 -0
- package/dist/model/createOfferDtoFormula.js.map +1 -0
- package/dist/model/createOfferDtoPacking.d.ts +17 -0
- package/dist/model/createOfferDtoPacking.js +36 -0
- package/dist/model/createOfferDtoPacking.js.map +1 -0
- package/dist/model/createOfferDtoWeight.d.ts +15 -0
- package/dist/model/createOfferDtoWeight.js +26 -0
- package/dist/model/createOfferDtoWeight.js.map +1 -0
- package/dist/model/formulaDto.d.ts +19 -0
- package/dist/model/formulaDto.js +41 -0
- package/dist/model/formulaDto.js.map +1 -0
- package/dist/model/formulaLineDto.d.ts +17 -0
- package/dist/model/formulaLineDto.js +36 -0
- package/dist/model/formulaLineDto.js.map +1 -0
- package/dist/model/generalAddressDto.d.ts +43 -0
- package/dist/model/generalAddressDto.js +166 -0
- package/dist/model/generalAddressDto.js.map +1 -0
- package/dist/model/healthControllerPing200Response.d.ts +24 -0
- package/dist/model/healthControllerPing200Response.js +36 -0
- package/dist/model/healthControllerPing200Response.js.map +1 -0
- package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +10 -0
- package/dist/model/healthControllerPing200ResponseInfoValue.js +37 -0
- package/dist/model/healthControllerPing200ResponseInfoValue.js.map +1 -0
- package/dist/model/healthControllerPing503Response.d.ts +24 -0
- package/dist/model/healthControllerPing503Response.js +36 -0
- package/dist/model/healthControllerPing503Response.js.map +1 -0
- package/dist/model/models.d.ts +71 -0
- package/dist/model/models.js +308 -0
- package/dist/model/models.js.map +1 -0
- package/dist/model/offerAttributesDto.d.ts +48 -0
- package/dist/model/offerAttributesDto.js +155 -0
- package/dist/model/offerAttributesDto.js.map +1 -0
- package/dist/model/offerAttributesDtoEstablishment.d.ts +43 -0
- package/dist/model/offerAttributesDtoEstablishment.js +166 -0
- package/dist/model/offerAttributesDtoEstablishment.js.map +1 -0
- package/dist/model/packing.d.ts +17 -0
- package/dist/model/packing.js +36 -0
- package/dist/model/packing.js.map +1 -0
- package/dist/model/pinActionDto.d.ts +14 -0
- package/dist/model/pinActionDto.js +21 -0
- package/dist/model/pinActionDto.js.map +1 -0
- package/dist/model/relistingConfigDto.d.ts +17 -0
- package/dist/model/relistingConfigDto.js +36 -0
- package/dist/model/relistingConfigDto.js.map +1 -0
- package/dist/model/relistingDetailDto.d.ts +31 -0
- package/dist/model/relistingDetailDto.js +63 -0
- package/dist/model/relistingDetailDto.js.map +1 -0
- package/dist/model/relistingDetailDtoRandomConfig.d.ts +19 -0
- package/dist/model/relistingDetailDtoRandomConfig.js +46 -0
- package/dist/model/relistingDetailDtoRandomConfig.js.map +1 -0
- package/dist/model/relistingRandomConfigDto.d.ts +19 -0
- package/dist/model/relistingRandomConfigDto.js +46 -0
- package/dist/model/relistingRandomConfigDto.js.map +1 -0
- package/dist/model/updateFutureBidDto.d.ts +17 -0
- package/dist/model/updateFutureBidDto.js +36 -0
- package/dist/model/updateFutureBidDto.js.map +1 -0
- package/dist/model/userPin.d.ts +15 -0
- package/dist/model/userPin.js +26 -0
- package/dist/model/userPin.js.map +1 -0
- package/dist/model/weight.d.ts +15 -0
- package/dist/model/weight.js +26 -0
- package/dist/model/weight.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import localVarRequest from 'request';
|
|
4
|
+
export * from './addFutureBidDto';
|
|
5
|
+
export * from './createAutomatedOfferDto';
|
|
6
|
+
export * from './createMatchedOfferDto';
|
|
7
|
+
export * from './createOfferDto';
|
|
8
|
+
export * from './createOfferDtoAttributes';
|
|
9
|
+
export * from './createOfferDtoFormula';
|
|
10
|
+
export * from './createOfferDtoPacking';
|
|
11
|
+
export * from './createOfferDtoWeight';
|
|
12
|
+
export * from './formulaDto';
|
|
13
|
+
export * from './formulaLineDto';
|
|
14
|
+
export * from './generalAddressDto';
|
|
15
|
+
export * from './healthControllerPing200Response';
|
|
16
|
+
export * from './healthControllerPing200ResponseInfoValue';
|
|
17
|
+
export * from './healthControllerPing503Response';
|
|
18
|
+
export * from './offerAttributesDto';
|
|
19
|
+
export * from './offerAttributesDtoEstablishment';
|
|
20
|
+
export * from './packing';
|
|
21
|
+
export * from './pinActionDto';
|
|
22
|
+
export * from './relistingConfigDto';
|
|
23
|
+
export * from './relistingDetailDto';
|
|
24
|
+
export * from './relistingDetailDtoRandomConfig';
|
|
25
|
+
export * from './relistingRandomConfigDto';
|
|
26
|
+
export * from './updateFutureBidDto';
|
|
27
|
+
export * from './userPin';
|
|
28
|
+
export * from './weight';
|
|
29
|
+
import * as fs from 'fs';
|
|
30
|
+
export interface RequestDetailedFile {
|
|
31
|
+
value: Buffer;
|
|
32
|
+
options?: {
|
|
33
|
+
filename?: string;
|
|
34
|
+
contentType?: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
38
|
+
export declare class ObjectSerializer {
|
|
39
|
+
static findCorrectType(data: any, expectedType: string): any;
|
|
40
|
+
static serialize(data: any, type: string): any;
|
|
41
|
+
static deserialize(data: any, type: string): any;
|
|
42
|
+
}
|
|
43
|
+
export interface Authentication {
|
|
44
|
+
applyToRequest(requestOptions: localVarRequest.Options): Promise<void> | void;
|
|
45
|
+
}
|
|
46
|
+
export declare class HttpBasicAuth implements Authentication {
|
|
47
|
+
username: string;
|
|
48
|
+
password: string;
|
|
49
|
+
applyToRequest(requestOptions: localVarRequest.Options): void;
|
|
50
|
+
}
|
|
51
|
+
export declare class HttpBearerAuth implements Authentication {
|
|
52
|
+
accessToken: string | (() => string);
|
|
53
|
+
applyToRequest(requestOptions: localVarRequest.Options): void;
|
|
54
|
+
}
|
|
55
|
+
export declare class ApiKeyAuth implements Authentication {
|
|
56
|
+
private location;
|
|
57
|
+
private paramName;
|
|
58
|
+
apiKey: string;
|
|
59
|
+
constructor(location: string, paramName: string);
|
|
60
|
+
applyToRequest(requestOptions: localVarRequest.Options): void;
|
|
61
|
+
}
|
|
62
|
+
export declare class OAuth implements Authentication {
|
|
63
|
+
accessToken: string;
|
|
64
|
+
applyToRequest(requestOptions: localVarRequest.Options): void;
|
|
65
|
+
}
|
|
66
|
+
export declare class VoidAuth implements Authentication {
|
|
67
|
+
username: string;
|
|
68
|
+
password: string;
|
|
69
|
+
applyToRequest(_: localVarRequest.Options): void;
|
|
70
|
+
}
|
|
71
|
+
export type Interceptor = (requestOptions: localVarRequest.Options) => (Promise<void> | void);
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBearerAuth = exports.HttpBasicAuth = exports.ObjectSerializer = void 0;
|
|
18
|
+
__exportStar(require("./addFutureBidDto"), exports);
|
|
19
|
+
__exportStar(require("./createAutomatedOfferDto"), exports);
|
|
20
|
+
__exportStar(require("./createMatchedOfferDto"), exports);
|
|
21
|
+
__exportStar(require("./createOfferDto"), exports);
|
|
22
|
+
__exportStar(require("./createOfferDtoAttributes"), exports);
|
|
23
|
+
__exportStar(require("./createOfferDtoFormula"), exports);
|
|
24
|
+
__exportStar(require("./createOfferDtoPacking"), exports);
|
|
25
|
+
__exportStar(require("./createOfferDtoWeight"), exports);
|
|
26
|
+
__exportStar(require("./formulaDto"), exports);
|
|
27
|
+
__exportStar(require("./formulaLineDto"), exports);
|
|
28
|
+
__exportStar(require("./generalAddressDto"), exports);
|
|
29
|
+
__exportStar(require("./healthControllerPing200Response"), exports);
|
|
30
|
+
__exportStar(require("./healthControllerPing200ResponseInfoValue"), exports);
|
|
31
|
+
__exportStar(require("./healthControllerPing503Response"), exports);
|
|
32
|
+
__exportStar(require("./offerAttributesDto"), exports);
|
|
33
|
+
__exportStar(require("./offerAttributesDtoEstablishment"), exports);
|
|
34
|
+
__exportStar(require("./packing"), exports);
|
|
35
|
+
__exportStar(require("./pinActionDto"), exports);
|
|
36
|
+
__exportStar(require("./relistingConfigDto"), exports);
|
|
37
|
+
__exportStar(require("./relistingDetailDto"), exports);
|
|
38
|
+
__exportStar(require("./relistingDetailDtoRandomConfig"), exports);
|
|
39
|
+
__exportStar(require("./relistingRandomConfigDto"), exports);
|
|
40
|
+
__exportStar(require("./updateFutureBidDto"), exports);
|
|
41
|
+
__exportStar(require("./userPin"), exports);
|
|
42
|
+
__exportStar(require("./weight"), exports);
|
|
43
|
+
var addFutureBidDto_1 = require("./addFutureBidDto");
|
|
44
|
+
var createAutomatedOfferDto_1 = require("./createAutomatedOfferDto");
|
|
45
|
+
var createMatchedOfferDto_1 = require("./createMatchedOfferDto");
|
|
46
|
+
var createOfferDto_1 = require("./createOfferDto");
|
|
47
|
+
var createOfferDtoAttributes_1 = require("./createOfferDtoAttributes");
|
|
48
|
+
var createOfferDtoFormula_1 = require("./createOfferDtoFormula");
|
|
49
|
+
var createOfferDtoPacking_1 = require("./createOfferDtoPacking");
|
|
50
|
+
var createOfferDtoWeight_1 = require("./createOfferDtoWeight");
|
|
51
|
+
var formulaDto_1 = require("./formulaDto");
|
|
52
|
+
var formulaLineDto_1 = require("./formulaLineDto");
|
|
53
|
+
var generalAddressDto_1 = require("./generalAddressDto");
|
|
54
|
+
var healthControllerPing200Response_1 = require("./healthControllerPing200Response");
|
|
55
|
+
var healthControllerPing200ResponseInfoValue_1 = require("./healthControllerPing200ResponseInfoValue");
|
|
56
|
+
var healthControllerPing503Response_1 = require("./healthControllerPing503Response");
|
|
57
|
+
var offerAttributesDto_1 = require("./offerAttributesDto");
|
|
58
|
+
var offerAttributesDtoEstablishment_1 = require("./offerAttributesDtoEstablishment");
|
|
59
|
+
var packing_1 = require("./packing");
|
|
60
|
+
var pinActionDto_1 = require("./pinActionDto");
|
|
61
|
+
var relistingConfigDto_1 = require("./relistingConfigDto");
|
|
62
|
+
var relistingDetailDto_1 = require("./relistingDetailDto");
|
|
63
|
+
var relistingDetailDtoRandomConfig_1 = require("./relistingDetailDtoRandomConfig");
|
|
64
|
+
var relistingRandomConfigDto_1 = require("./relistingRandomConfigDto");
|
|
65
|
+
var updateFutureBidDto_1 = require("./updateFutureBidDto");
|
|
66
|
+
var userPin_1 = require("./userPin");
|
|
67
|
+
var weight_1 = require("./weight");
|
|
68
|
+
var primitives = [
|
|
69
|
+
"string",
|
|
70
|
+
"boolean",
|
|
71
|
+
"double",
|
|
72
|
+
"integer",
|
|
73
|
+
"long",
|
|
74
|
+
"float",
|
|
75
|
+
"number",
|
|
76
|
+
"any"
|
|
77
|
+
];
|
|
78
|
+
var enumsMap = {
|
|
79
|
+
"CreateAutomatedOfferDto.TypeEnum": createAutomatedOfferDto_1.CreateAutomatedOfferDto.TypeEnum,
|
|
80
|
+
"CreateAutomatedOfferDto.StatusEnum": createAutomatedOfferDto_1.CreateAutomatedOfferDto.StatusEnum,
|
|
81
|
+
"CreateAutomatedOfferDto.AutomatedOfferStatusEnum": createAutomatedOfferDto_1.CreateAutomatedOfferDto.AutomatedOfferStatusEnum,
|
|
82
|
+
"CreateMatchedOfferDto.StatusEnum": createMatchedOfferDto_1.CreateMatchedOfferDto.StatusEnum,
|
|
83
|
+
"CreateOfferDto.TypeEnum": createOfferDto_1.CreateOfferDto.TypeEnum,
|
|
84
|
+
"CreateOfferDto.StatusEnum": createOfferDto_1.CreateOfferDto.StatusEnum,
|
|
85
|
+
"CreateOfferDtoAttributes.DeliveryPreferenceEnum": createOfferDtoAttributes_1.CreateOfferDtoAttributes.DeliveryPreferenceEnum,
|
|
86
|
+
"OfferAttributesDto.DeliveryPreferenceEnum": offerAttributesDto_1.OfferAttributesDto.DeliveryPreferenceEnum,
|
|
87
|
+
"RelistingDetailDto.StatusEnum": relistingDetailDto_1.RelistingDetailDto.StatusEnum,
|
|
88
|
+
};
|
|
89
|
+
var typeMap = {
|
|
90
|
+
"AddFutureBidDto": addFutureBidDto_1.AddFutureBidDto,
|
|
91
|
+
"CreateAutomatedOfferDto": createAutomatedOfferDto_1.CreateAutomatedOfferDto,
|
|
92
|
+
"CreateMatchedOfferDto": createMatchedOfferDto_1.CreateMatchedOfferDto,
|
|
93
|
+
"CreateOfferDto": createOfferDto_1.CreateOfferDto,
|
|
94
|
+
"CreateOfferDtoAttributes": createOfferDtoAttributes_1.CreateOfferDtoAttributes,
|
|
95
|
+
"CreateOfferDtoFormula": createOfferDtoFormula_1.CreateOfferDtoFormula,
|
|
96
|
+
"CreateOfferDtoPacking": createOfferDtoPacking_1.CreateOfferDtoPacking,
|
|
97
|
+
"CreateOfferDtoWeight": createOfferDtoWeight_1.CreateOfferDtoWeight,
|
|
98
|
+
"FormulaDto": formulaDto_1.FormulaDto,
|
|
99
|
+
"FormulaLineDto": formulaLineDto_1.FormulaLineDto,
|
|
100
|
+
"GeneralAddressDto": generalAddressDto_1.GeneralAddressDto,
|
|
101
|
+
"HealthControllerPing200Response": healthControllerPing200Response_1.HealthControllerPing200Response,
|
|
102
|
+
"HealthControllerPing200ResponseInfoValue": healthControllerPing200ResponseInfoValue_1.HealthControllerPing200ResponseInfoValue,
|
|
103
|
+
"HealthControllerPing503Response": healthControllerPing503Response_1.HealthControllerPing503Response,
|
|
104
|
+
"OfferAttributesDto": offerAttributesDto_1.OfferAttributesDto,
|
|
105
|
+
"OfferAttributesDtoEstablishment": offerAttributesDtoEstablishment_1.OfferAttributesDtoEstablishment,
|
|
106
|
+
"Packing": packing_1.Packing,
|
|
107
|
+
"PinActionDto": pinActionDto_1.PinActionDto,
|
|
108
|
+
"RelistingConfigDto": relistingConfigDto_1.RelistingConfigDto,
|
|
109
|
+
"RelistingDetailDto": relistingDetailDto_1.RelistingDetailDto,
|
|
110
|
+
"RelistingDetailDtoRandomConfig": relistingDetailDtoRandomConfig_1.RelistingDetailDtoRandomConfig,
|
|
111
|
+
"RelistingRandomConfigDto": relistingRandomConfigDto_1.RelistingRandomConfigDto,
|
|
112
|
+
"UpdateFutureBidDto": updateFutureBidDto_1.UpdateFutureBidDto,
|
|
113
|
+
"UserPin": userPin_1.UserPin,
|
|
114
|
+
"Weight": weight_1.Weight,
|
|
115
|
+
};
|
|
116
|
+
var ObjectSerializer = (function () {
|
|
117
|
+
function ObjectSerializer() {
|
|
118
|
+
}
|
|
119
|
+
ObjectSerializer.findCorrectType = function (data, expectedType) {
|
|
120
|
+
if (data == undefined) {
|
|
121
|
+
return expectedType;
|
|
122
|
+
}
|
|
123
|
+
else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
|
|
124
|
+
return expectedType;
|
|
125
|
+
}
|
|
126
|
+
else if (expectedType === "Date") {
|
|
127
|
+
return expectedType;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
if (enumsMap[expectedType]) {
|
|
131
|
+
return expectedType;
|
|
132
|
+
}
|
|
133
|
+
if (!typeMap[expectedType]) {
|
|
134
|
+
return expectedType;
|
|
135
|
+
}
|
|
136
|
+
var discriminatorProperty = typeMap[expectedType].discriminator;
|
|
137
|
+
if (discriminatorProperty == null) {
|
|
138
|
+
return expectedType;
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
if (data[discriminatorProperty]) {
|
|
142
|
+
var discriminatorType = data[discriminatorProperty];
|
|
143
|
+
if (typeMap[discriminatorType]) {
|
|
144
|
+
return discriminatorType;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
return expectedType;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
return expectedType;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
ObjectSerializer.serialize = function (data, type) {
|
|
157
|
+
if (data == undefined) {
|
|
158
|
+
return data;
|
|
159
|
+
}
|
|
160
|
+
else if (primitives.indexOf(type.toLowerCase()) !== -1) {
|
|
161
|
+
return data;
|
|
162
|
+
}
|
|
163
|
+
else if (type.lastIndexOf("Array<", 0) === 0) {
|
|
164
|
+
var subType = type.replace("Array<", "");
|
|
165
|
+
subType = subType.substring(0, subType.length - 1);
|
|
166
|
+
var transformedData = [];
|
|
167
|
+
for (var index = 0; index < data.length; index++) {
|
|
168
|
+
var datum = data[index];
|
|
169
|
+
transformedData.push(ObjectSerializer.serialize(datum, subType));
|
|
170
|
+
}
|
|
171
|
+
return transformedData;
|
|
172
|
+
}
|
|
173
|
+
else if (type === "Date") {
|
|
174
|
+
return data.toISOString();
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
if (enumsMap[type]) {
|
|
178
|
+
return data;
|
|
179
|
+
}
|
|
180
|
+
if (!typeMap[type]) {
|
|
181
|
+
return data;
|
|
182
|
+
}
|
|
183
|
+
type = this.findCorrectType(data, type);
|
|
184
|
+
var attributeTypes = typeMap[type].getAttributeTypeMap();
|
|
185
|
+
var instance = {};
|
|
186
|
+
for (var index = 0; index < attributeTypes.length; index++) {
|
|
187
|
+
var attributeType = attributeTypes[index];
|
|
188
|
+
instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
|
|
189
|
+
}
|
|
190
|
+
return instance;
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
ObjectSerializer.deserialize = function (data, type) {
|
|
194
|
+
type = ObjectSerializer.findCorrectType(data, type);
|
|
195
|
+
if (data == undefined) {
|
|
196
|
+
return data;
|
|
197
|
+
}
|
|
198
|
+
else if (primitives.indexOf(type.toLowerCase()) !== -1) {
|
|
199
|
+
return data;
|
|
200
|
+
}
|
|
201
|
+
else if (type.lastIndexOf("Array<", 0) === 0) {
|
|
202
|
+
var subType = type.replace("Array<", "");
|
|
203
|
+
subType = subType.substring(0, subType.length - 1);
|
|
204
|
+
var transformedData = [];
|
|
205
|
+
for (var index = 0; index < data.length; index++) {
|
|
206
|
+
var datum = data[index];
|
|
207
|
+
transformedData.push(ObjectSerializer.deserialize(datum, subType));
|
|
208
|
+
}
|
|
209
|
+
return transformedData;
|
|
210
|
+
}
|
|
211
|
+
else if (type === "Date") {
|
|
212
|
+
return new Date(data);
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
if (enumsMap[type]) {
|
|
216
|
+
return data;
|
|
217
|
+
}
|
|
218
|
+
if (!typeMap[type]) {
|
|
219
|
+
return data;
|
|
220
|
+
}
|
|
221
|
+
var instance = new typeMap[type]();
|
|
222
|
+
var attributeTypes = typeMap[type].getAttributeTypeMap();
|
|
223
|
+
for (var index = 0; index < attributeTypes.length; index++) {
|
|
224
|
+
var attributeType = attributeTypes[index];
|
|
225
|
+
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
|
|
226
|
+
}
|
|
227
|
+
return instance;
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
return ObjectSerializer;
|
|
231
|
+
}());
|
|
232
|
+
exports.ObjectSerializer = ObjectSerializer;
|
|
233
|
+
var HttpBasicAuth = (function () {
|
|
234
|
+
function HttpBasicAuth() {
|
|
235
|
+
this.username = '';
|
|
236
|
+
this.password = '';
|
|
237
|
+
}
|
|
238
|
+
HttpBasicAuth.prototype.applyToRequest = function (requestOptions) {
|
|
239
|
+
requestOptions.auth = {
|
|
240
|
+
username: this.username, password: this.password
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
return HttpBasicAuth;
|
|
244
|
+
}());
|
|
245
|
+
exports.HttpBasicAuth = HttpBasicAuth;
|
|
246
|
+
var HttpBearerAuth = (function () {
|
|
247
|
+
function HttpBearerAuth() {
|
|
248
|
+
this.accessToken = '';
|
|
249
|
+
}
|
|
250
|
+
HttpBearerAuth.prototype.applyToRequest = function (requestOptions) {
|
|
251
|
+
if (requestOptions && requestOptions.headers) {
|
|
252
|
+
var accessToken = typeof this.accessToken === 'function'
|
|
253
|
+
? this.accessToken()
|
|
254
|
+
: this.accessToken;
|
|
255
|
+
requestOptions.headers["Authorization"] = "Bearer " + accessToken;
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
return HttpBearerAuth;
|
|
259
|
+
}());
|
|
260
|
+
exports.HttpBearerAuth = HttpBearerAuth;
|
|
261
|
+
var ApiKeyAuth = (function () {
|
|
262
|
+
function ApiKeyAuth(location, paramName) {
|
|
263
|
+
this.location = location;
|
|
264
|
+
this.paramName = paramName;
|
|
265
|
+
this.apiKey = '';
|
|
266
|
+
}
|
|
267
|
+
ApiKeyAuth.prototype.applyToRequest = function (requestOptions) {
|
|
268
|
+
if (this.location == "query") {
|
|
269
|
+
requestOptions.qs[this.paramName] = this.apiKey;
|
|
270
|
+
}
|
|
271
|
+
else if (this.location == "header" && requestOptions && requestOptions.headers) {
|
|
272
|
+
requestOptions.headers[this.paramName] = this.apiKey;
|
|
273
|
+
}
|
|
274
|
+
else if (this.location == 'cookie' && requestOptions && requestOptions.headers) {
|
|
275
|
+
if (requestOptions.headers['Cookie']) {
|
|
276
|
+
requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
return ApiKeyAuth;
|
|
284
|
+
}());
|
|
285
|
+
exports.ApiKeyAuth = ApiKeyAuth;
|
|
286
|
+
var OAuth = (function () {
|
|
287
|
+
function OAuth() {
|
|
288
|
+
this.accessToken = '';
|
|
289
|
+
}
|
|
290
|
+
OAuth.prototype.applyToRequest = function (requestOptions) {
|
|
291
|
+
if (requestOptions && requestOptions.headers) {
|
|
292
|
+
requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
return OAuth;
|
|
296
|
+
}());
|
|
297
|
+
exports.OAuth = OAuth;
|
|
298
|
+
var VoidAuth = (function () {
|
|
299
|
+
function VoidAuth() {
|
|
300
|
+
this.username = '';
|
|
301
|
+
this.password = '';
|
|
302
|
+
}
|
|
303
|
+
VoidAuth.prototype.applyToRequest = function (_) {
|
|
304
|
+
};
|
|
305
|
+
return VoidAuth;
|
|
306
|
+
}());
|
|
307
|
+
exports.VoidAuth = VoidAuth;
|
|
308
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../model/models.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,oDAAkC;AAClC,4DAA0C;AAC1C,0DAAwC;AACxC,mDAAiC;AACjC,6DAA2C;AAC3C,0DAAwC;AACxC,0DAAwC;AACxC,yDAAuC;AACvC,+CAA6B;AAC7B,mDAAiC;AACjC,sDAAoC;AACpC,oEAAkD;AAClD,6EAA2D;AAC3D,oEAAkD;AAClD,uDAAqC;AACrC,oEAAkD;AAClD,4CAA0B;AAC1B,iDAA+B;AAC/B,uDAAqC;AACrC,uDAAqC;AACrC,mEAAiD;AACjD,6DAA2C;AAC3C,uDAAqC;AACrC,4CAA0B;AAC1B,2CAAyB;AAezB,qDAAoD;AACpD,qEAAoE;AACpE,iEAAgE;AAChE,mDAAkD;AAClD,uEAAsE;AACtE,iEAAgE;AAChE,iEAAgE;AAChE,+DAA8D;AAC9D,2CAA0C;AAC1C,mDAAkD;AAClD,yDAAwD;AACxD,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CAAU;AAsBvB;IAAA;QACW,gBAAW,GAAW,EAAE,CAAC;IAOpC,CAAC;IALG,8BAAc,GAAd,UAAe,cAAuC;QAClD,IAAI,cAAc,IAAI,cAAc,CAAC,OAAO,EAAE;YAC1C,cAAc,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC;SAC1E;IACL,CAAC;IACL,YAAC;AAAD,CAAC,AARD,IAQC;AARY,sBAAK;AAUlB;IAAA;QACW,aAAQ,GAAW,EAAE,CAAC;QACtB,aAAQ,GAAW,EAAE,CAAC;IAKjC,CAAC;IAHG,iCAAc,GAAd,UAAe,CAA0B;IAEzC,CAAC;IACL,eAAC;AAAD,CAAC,AAPD,IAOC;AAPY,4BAAQ"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { GeneralAddressDto } from './generalAddressDto';
|
|
2
|
+
import { OfferAttributesDtoEstablishment } from './offerAttributesDtoEstablishment';
|
|
3
|
+
export declare class OfferAttributesDto {
|
|
4
|
+
'old_supplier_offer_id'?: string;
|
|
5
|
+
'old_matched_offer_id'?: string;
|
|
6
|
+
'weight_type_id'?: string;
|
|
7
|
+
'item_type_id'?: string;
|
|
8
|
+
'locked'?: number;
|
|
9
|
+
'additional_specs'?: string;
|
|
10
|
+
'comments'?: string;
|
|
11
|
+
'hs_code'?: string;
|
|
12
|
+
'shipping_marks'?: string;
|
|
13
|
+
'batches'?: Array<object>;
|
|
14
|
+
'incoterm_location'?: string;
|
|
15
|
+
'brand'?: string;
|
|
16
|
+
'product_code'?: string;
|
|
17
|
+
'gross_weight'?: number;
|
|
18
|
+
'establishment'?: OfferAttributesDtoEstablishment;
|
|
19
|
+
'establishments'?: Array<GeneralAddressDto>;
|
|
20
|
+
'delivery_preference'?: OfferAttributesDto.DeliveryPreferenceEnum;
|
|
21
|
+
'supplier_ref'?: string;
|
|
22
|
+
'supplier_user_ids'?: Array<string>;
|
|
23
|
+
'trader_user_id_supplier'?: string;
|
|
24
|
+
'future_bid_id'?: string;
|
|
25
|
+
'assign_future_bid'?: boolean;
|
|
26
|
+
'future_bid_price'?: number;
|
|
27
|
+
'supplier_payment_terms'?: object;
|
|
28
|
+
'automated_offer_id'?: string;
|
|
29
|
+
'bwi_inventory'?: boolean;
|
|
30
|
+
static discriminator: string | undefined;
|
|
31
|
+
static attributeTypeMap: Array<{
|
|
32
|
+
name: string;
|
|
33
|
+
baseName: string;
|
|
34
|
+
type: string;
|
|
35
|
+
}>;
|
|
36
|
+
static getAttributeTypeMap(): {
|
|
37
|
+
name: string;
|
|
38
|
+
baseName: string;
|
|
39
|
+
type: string;
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
42
|
+
export declare namespace OfferAttributesDto {
|
|
43
|
+
enum DeliveryPreferenceEnum {
|
|
44
|
+
Length,
|
|
45
|
+
Cost,
|
|
46
|
+
Time
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfferAttributesDto = void 0;
|
|
4
|
+
var OfferAttributesDto = (function () {
|
|
5
|
+
function OfferAttributesDto() {
|
|
6
|
+
}
|
|
7
|
+
OfferAttributesDto.getAttributeTypeMap = function () {
|
|
8
|
+
return OfferAttributesDto.attributeTypeMap;
|
|
9
|
+
};
|
|
10
|
+
OfferAttributesDto.discriminator = undefined;
|
|
11
|
+
OfferAttributesDto.attributeTypeMap = [
|
|
12
|
+
{
|
|
13
|
+
"name": "old_supplier_offer_id",
|
|
14
|
+
"baseName": "old_supplier_offer_id",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "old_matched_offer_id",
|
|
19
|
+
"baseName": "old_matched_offer_id",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "weight_type_id",
|
|
24
|
+
"baseName": "weight_type_id",
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "item_type_id",
|
|
29
|
+
"baseName": "item_type_id",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "locked",
|
|
34
|
+
"baseName": "locked",
|
|
35
|
+
"type": "number"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "additional_specs",
|
|
39
|
+
"baseName": "additional_specs",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "comments",
|
|
44
|
+
"baseName": "comments",
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "hs_code",
|
|
49
|
+
"baseName": "hs_code",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "shipping_marks",
|
|
54
|
+
"baseName": "shipping_marks",
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "batches",
|
|
59
|
+
"baseName": "batches",
|
|
60
|
+
"type": "Array<object>"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "incoterm_location",
|
|
64
|
+
"baseName": "incoterm_location",
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "brand",
|
|
69
|
+
"baseName": "brand",
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "product_code",
|
|
74
|
+
"baseName": "product_code",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "gross_weight",
|
|
79
|
+
"baseName": "gross_weight",
|
|
80
|
+
"type": "number"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "establishment",
|
|
84
|
+
"baseName": "establishment",
|
|
85
|
+
"type": "OfferAttributesDtoEstablishment"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "establishments",
|
|
89
|
+
"baseName": "establishments",
|
|
90
|
+
"type": "Array<GeneralAddressDto>"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "delivery_preference",
|
|
94
|
+
"baseName": "delivery_preference",
|
|
95
|
+
"type": "OfferAttributesDto.DeliveryPreferenceEnum"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "supplier_ref",
|
|
99
|
+
"baseName": "supplier_ref",
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "supplier_user_ids",
|
|
104
|
+
"baseName": "supplier_user_ids",
|
|
105
|
+
"type": "Array<string>"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "trader_user_id_supplier",
|
|
109
|
+
"baseName": "trader_user_id_supplier",
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "future_bid_id",
|
|
114
|
+
"baseName": "future_bid_id",
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "assign_future_bid",
|
|
119
|
+
"baseName": "assign_future_bid",
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "future_bid_price",
|
|
124
|
+
"baseName": "future_bid_price",
|
|
125
|
+
"type": "number"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "supplier_payment_terms",
|
|
129
|
+
"baseName": "supplier_payment_terms",
|
|
130
|
+
"type": "object"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "automated_offer_id",
|
|
134
|
+
"baseName": "automated_offer_id",
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "bwi_inventory",
|
|
139
|
+
"baseName": "bwi_inventory",
|
|
140
|
+
"type": "boolean"
|
|
141
|
+
}
|
|
142
|
+
];
|
|
143
|
+
return OfferAttributesDto;
|
|
144
|
+
}());
|
|
145
|
+
exports.OfferAttributesDto = OfferAttributesDto;
|
|
146
|
+
(function (OfferAttributesDto) {
|
|
147
|
+
var DeliveryPreferenceEnum;
|
|
148
|
+
(function (DeliveryPreferenceEnum) {
|
|
149
|
+
DeliveryPreferenceEnum[DeliveryPreferenceEnum["Length"] = 'length'] = "Length";
|
|
150
|
+
DeliveryPreferenceEnum[DeliveryPreferenceEnum["Cost"] = 'cost'] = "Cost";
|
|
151
|
+
DeliveryPreferenceEnum[DeliveryPreferenceEnum["Time"] = 'time'] = "Time";
|
|
152
|
+
})(DeliveryPreferenceEnum = OfferAttributesDto.DeliveryPreferenceEnum || (OfferAttributesDto.DeliveryPreferenceEnum = {}));
|
|
153
|
+
})(OfferAttributesDto = exports.OfferAttributesDto || (exports.OfferAttributesDto = {}));
|
|
154
|
+
exports.OfferAttributesDto = OfferAttributesDto;
|
|
155
|
+
//# sourceMappingURL=offerAttributesDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offerAttributesDto.js","sourceRoot":"","sources":["../../model/offerAttributesDto.ts"],"names":[],"mappings":";;;AAgBA;IAAA;IAgPA,CAAC;IAHU,sCAAmB,GAA1B;QACI,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAxIM,gCAAa,GAAuB,SAAS,CAAC;IAE9C,mCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,uBAAuB;YAC/B,UAAU,EAAE,uBAAuB;YACnC,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,sBAAsB;YAC9B,UAAU,EAAE,sBAAsB;YAClC,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,gBAAgB;YACxB,UAAU,EAAE,gBAAgB;YAC5B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE,cAAc;YAC1B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QACD;YACI,MAAM,EAAE,mBAAmB;YAC3B,UAAU,EAAE,mBAAmB;YAC/B,MAAM,EAAE,eAAe;SAC1B;QACD;YACI,MAAM,EAAE,yBAAyB;YACjC,UAAU,EAAE,yBAAyB;YACrC,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,eAAe;YAC3B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,mBAAmB;YAC3B,UAAU,EAAE,mBAAmB;YAC/B,MAAM,EAAE,SAAS;SACpB;QACD;YACI,MAAM,EAAE,kBAAkB;YAC1B,UAAU,EAAE,kBAAkB;YAC9B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,wBAAwB;YAChC,UAAU,EAAE,wBAAwB;YACpC,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,oBAAoB;YAC5B,UAAU,EAAE,oBAAoB;YAChC,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,eAAe;YAC3B,MAAM,EAAE,SAAS;SACpB;KAAK,CAAC;IAKf,yBAAC;CAAA,AAhPD,IAgPC;AAhPY,gDAAkB;AAkP/B,WAAiB,kBAAkB;IAC/B,IAAY,sBAIX;IAJD,WAAY,sBAAsB;QAC9B,0DAAe,QAAQ,YAAA,CAAA;QACvB,wDAAa,MAAM,UAAA,CAAA;QACnB,wDAAa,MAAM,UAAA,CAAA;IACvB,CAAC,EAJW,sBAAsB,GAAtB,yCAAsB,KAAtB,yCAAsB,QAIjC;AACL,CAAC,EANgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAMlC;AAxPY,gDAAkB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare class OfferAttributesDtoEstablishment {
|
|
2
|
+
'name'?: string;
|
|
3
|
+
'address'?: string;
|
|
4
|
+
'city'?: string;
|
|
5
|
+
'state'?: string;
|
|
6
|
+
'country'?: string;
|
|
7
|
+
'postal_code'?: string;
|
|
8
|
+
'cc'?: string;
|
|
9
|
+
'department'?: string;
|
|
10
|
+
'establishment'?: string;
|
|
11
|
+
'postal'?: string;
|
|
12
|
+
'primary'?: number;
|
|
13
|
+
'state_code'?: string;
|
|
14
|
+
'street1'?: string;
|
|
15
|
+
'street2'?: string;
|
|
16
|
+
'telephone1'?: string;
|
|
17
|
+
'telephone1_ext'?: string;
|
|
18
|
+
'email'?: string;
|
|
19
|
+
'telephone2'?: string;
|
|
20
|
+
'telephone2_ext'?: string;
|
|
21
|
+
'fax'?: string;
|
|
22
|
+
'fax_ext'?: string;
|
|
23
|
+
'tax_id'?: string;
|
|
24
|
+
'note'?: string;
|
|
25
|
+
'inalfresco'?: number;
|
|
26
|
+
'aes_address'?: number;
|
|
27
|
+
'def_delivery'?: number;
|
|
28
|
+
'consignee'?: number;
|
|
29
|
+
'contact_name'?: string;
|
|
30
|
+
'integration_codes'?: object;
|
|
31
|
+
'archived'?: boolean;
|
|
32
|
+
static discriminator: string | undefined;
|
|
33
|
+
static attributeTypeMap: Array<{
|
|
34
|
+
name: string;
|
|
35
|
+
baseName: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}>;
|
|
38
|
+
static getAttributeTypeMap(): {
|
|
39
|
+
name: string;
|
|
40
|
+
baseName: string;
|
|
41
|
+
type: string;
|
|
42
|
+
}[];
|
|
43
|
+
}
|