@tradecafe/offer-service-sdk 0.0.50 → 0.0.52
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/.openapi-generator/FILES +2 -0
- package/api/matchedOffersApi.ts +138 -0
- package/dist/api/matchedOffersApi.d.ts +18 -0
- package/dist/api/matchedOffersApi.js +186 -54
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/model/bulkChangeFreightRatesDto.d.ts +19 -0
- package/dist/model/bulkChangeFreightRatesDto.js +41 -0
- package/dist/model/bulkChangeFreightRatesDto.js.map +1 -0
- package/dist/model/bulkUpdateDocsCountryDto.d.ts +16 -0
- package/dist/model/bulkUpdateDocsCountryDto.js +31 -0
- package/dist/model/bulkUpdateDocsCountryDto.js.map +1 -0
- package/dist/model/createAutomatedOfferDto.d.ts +1 -0
- package/dist/model/createAutomatedOfferDto.js +5 -0
- package/dist/model/createAutomatedOfferDto.js.map +1 -1
- package/dist/model/createOfferDto.d.ts +1 -0
- package/dist/model/createOfferDto.js +5 -0
- package/dist/model/createOfferDto.js.map +1 -1
- package/dist/model/createOfferDtoAttributes.d.ts +2 -0
- package/dist/model/createOfferDtoAttributes.js +10 -0
- package/dist/model/createOfferDtoAttributes.js.map +1 -1
- package/dist/model/models.d.ts +2 -0
- package/dist/model/models.js +6 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/offerAttributesDto.d.ts +2 -0
- package/dist/model/offerAttributesDto.js +10 -0
- package/dist/model/offerAttributesDto.js.map +1 -1
- package/model/bulkChangeFreightRatesDto.ts +56 -0
- package/model/bulkUpdateDocsCountryDto.ts +52 -0
- package/model/createAutomatedOfferDto.ts +9 -0
- package/model/createOfferDto.ts +9 -0
- package/model/createOfferDtoAttributes.ts +18 -0
- package/model/models.ts +6 -0
- package/model/offerAttributesDto.ts +18 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -13,7 +13,9 @@ model/addMatchedDeliveryDateDto.ts
|
|
|
13
13
|
model/associatedCostDto.ts
|
|
14
14
|
model/bulkAddRelistingDto.ts
|
|
15
15
|
model/bulkAddTertiaryCostsDto.ts
|
|
16
|
+
model/bulkChangeFreightRatesDto.ts
|
|
16
17
|
model/bulkUpdateDeliveryDatesDto.ts
|
|
18
|
+
model/bulkUpdateDocsCountryDto.ts
|
|
17
19
|
model/bulkUpdateMatchedDeliveryDatesDto.ts
|
|
18
20
|
model/costAmountDto.ts
|
|
19
21
|
model/costAttributesDto.ts
|
package/api/matchedOffersApi.ts
CHANGED
|
@@ -16,7 +16,9 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
19
|
+
import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
|
|
19
20
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
21
|
+
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
20
22
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
21
23
|
import { PinActionDto } from '../model/pinActionDto';
|
|
22
24
|
|
|
@@ -321,6 +323,74 @@ export class MatchedOffersApi {
|
|
|
321
323
|
});
|
|
322
324
|
});
|
|
323
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @summary Changes freight rates for multiple matched offers in a single operation
|
|
329
|
+
* @param account
|
|
330
|
+
* @param bulkChangeFreightRatesDto
|
|
331
|
+
*/
|
|
332
|
+
public async matchedOffersControllerBulkchangefreightrates (account: string, bulkChangeFreightRatesDto: BulkChangeFreightRatesDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
333
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/freight-rates'
|
|
334
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
335
|
+
let localVarQueryParameters: any = {};
|
|
336
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
337
|
+
let localVarFormParams: any = {};
|
|
338
|
+
|
|
339
|
+
// verify required parameter 'account' is not null or undefined
|
|
340
|
+
if (account === null || account === undefined) {
|
|
341
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangefreightrates.');
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// verify required parameter 'bulkChangeFreightRatesDto' is not null or undefined
|
|
345
|
+
if (bulkChangeFreightRatesDto === null || bulkChangeFreightRatesDto === undefined) {
|
|
346
|
+
throw new Error('Required parameter bulkChangeFreightRatesDto was null or undefined when calling matchedOffersControllerBulkchangefreightrates.');
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
350
|
+
|
|
351
|
+
let localVarUseFormData = false;
|
|
352
|
+
|
|
353
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
354
|
+
method: 'PUT',
|
|
355
|
+
qs: localVarQueryParameters,
|
|
356
|
+
headers: localVarHeaderParams,
|
|
357
|
+
uri: localVarPath,
|
|
358
|
+
useQuerystring: this._useQuerystring,
|
|
359
|
+
json: true,
|
|
360
|
+
body: ObjectSerializer.serialize(bulkChangeFreightRatesDto, "BulkChangeFreightRatesDto")
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
let authenticationPromise = Promise.resolve();
|
|
364
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
365
|
+
|
|
366
|
+
let interceptorPromise = authenticationPromise;
|
|
367
|
+
for (const interceptor of this.interceptors) {
|
|
368
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
return interceptorPromise.then(() => {
|
|
372
|
+
if (Object.keys(localVarFormParams).length) {
|
|
373
|
+
if (localVarUseFormData) {
|
|
374
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
375
|
+
} else {
|
|
376
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
380
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
381
|
+
if (error) {
|
|
382
|
+
reject(error);
|
|
383
|
+
} else {
|
|
384
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
385
|
+
resolve({ response: response, body: body });
|
|
386
|
+
} else {
|
|
387
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
}
|
|
324
394
|
/**
|
|
325
395
|
*
|
|
326
396
|
* @summary Updates delivery dates on multiple matched offers in a single operation
|
|
@@ -389,6 +459,74 @@ export class MatchedOffersApi {
|
|
|
389
459
|
});
|
|
390
460
|
});
|
|
391
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @summary Updates docs_country on multiple matched offers in a single operation
|
|
465
|
+
* @param account
|
|
466
|
+
* @param bulkUpdateDocsCountryDto
|
|
467
|
+
*/
|
|
468
|
+
public async matchedOffersControllerBulkupdatedocscountry (account: string, bulkUpdateDocsCountryDto: BulkUpdateDocsCountryDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
469
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/docs-country'
|
|
470
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
471
|
+
let localVarQueryParameters: any = {};
|
|
472
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
473
|
+
let localVarFormParams: any = {};
|
|
474
|
+
|
|
475
|
+
// verify required parameter 'account' is not null or undefined
|
|
476
|
+
if (account === null || account === undefined) {
|
|
477
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// verify required parameter 'bulkUpdateDocsCountryDto' is not null or undefined
|
|
481
|
+
if (bulkUpdateDocsCountryDto === null || bulkUpdateDocsCountryDto === undefined) {
|
|
482
|
+
throw new Error('Required parameter bulkUpdateDocsCountryDto was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
486
|
+
|
|
487
|
+
let localVarUseFormData = false;
|
|
488
|
+
|
|
489
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
490
|
+
method: 'PUT',
|
|
491
|
+
qs: localVarQueryParameters,
|
|
492
|
+
headers: localVarHeaderParams,
|
|
493
|
+
uri: localVarPath,
|
|
494
|
+
useQuerystring: this._useQuerystring,
|
|
495
|
+
json: true,
|
|
496
|
+
body: ObjectSerializer.serialize(bulkUpdateDocsCountryDto, "BulkUpdateDocsCountryDto")
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
let authenticationPromise = Promise.resolve();
|
|
500
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
501
|
+
|
|
502
|
+
let interceptorPromise = authenticationPromise;
|
|
503
|
+
for (const interceptor of this.interceptors) {
|
|
504
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return interceptorPromise.then(() => {
|
|
508
|
+
if (Object.keys(localVarFormParams).length) {
|
|
509
|
+
if (localVarUseFormData) {
|
|
510
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
511
|
+
} else {
|
|
512
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
516
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
517
|
+
if (error) {
|
|
518
|
+
reject(error);
|
|
519
|
+
} else {
|
|
520
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
521
|
+
resolve({ response: response, body: body });
|
|
522
|
+
} else {
|
|
523
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
});
|
|
528
|
+
});
|
|
529
|
+
}
|
|
392
530
|
/**
|
|
393
531
|
*
|
|
394
532
|
* @summary Counts supplier offers by their status, providing a detailed breakdown.
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import http from 'http';
|
|
3
3
|
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
4
|
+
import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
|
|
4
5
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
6
|
+
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
5
7
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
6
8
|
import { PinActionDto } from '../model/pinActionDto';
|
|
7
9
|
import { Authentication, Interceptor } from '../model/models';
|
|
@@ -48,6 +50,14 @@ export declare class MatchedOffersApi {
|
|
|
48
50
|
response: http.IncomingMessage;
|
|
49
51
|
body?: any;
|
|
50
52
|
}>;
|
|
53
|
+
matchedOffersControllerBulkchangefreightrates(account: string, bulkChangeFreightRatesDto: BulkChangeFreightRatesDto, options?: {
|
|
54
|
+
headers: {
|
|
55
|
+
[name: string]: string;
|
|
56
|
+
};
|
|
57
|
+
}): Promise<{
|
|
58
|
+
response: http.IncomingMessage;
|
|
59
|
+
body?: any;
|
|
60
|
+
}>;
|
|
51
61
|
matchedOffersControllerBulkupdatedeliverydates(account: string, bulkUpdateDeliveryDatesDto: BulkUpdateDeliveryDatesDto, options?: {
|
|
52
62
|
headers: {
|
|
53
63
|
[name: string]: string;
|
|
@@ -56,6 +66,14 @@ export declare class MatchedOffersApi {
|
|
|
56
66
|
response: http.IncomingMessage;
|
|
57
67
|
body?: any;
|
|
58
68
|
}>;
|
|
69
|
+
matchedOffersControllerBulkupdatedocscountry(account: string, bulkUpdateDocsCountryDto: BulkUpdateDocsCountryDto, options?: {
|
|
70
|
+
headers: {
|
|
71
|
+
[name: string]: string;
|
|
72
|
+
};
|
|
73
|
+
}): Promise<{
|
|
74
|
+
response: http.IncomingMessage;
|
|
75
|
+
body?: any;
|
|
76
|
+
}>;
|
|
59
77
|
matchedOffersControllerCountsbystatus(account: string, options?: {
|
|
60
78
|
headers: {
|
|
61
79
|
[name: string]: string;
|