@tradecafe/offer-service-sdk 0.0.47 → 0.0.49
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 +6 -0
- package/api/automatedOffersApi.ts +76 -0
- package/api/matchedOffersApi.ts +145 -0
- package/dist/api/automatedOffersApi.d.ts +9 -0
- package/dist/api/automatedOffersApi.js +106 -36
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/api/matchedOffersApi.d.ts +18 -0
- package/dist/api/matchedOffersApi.js +187 -51
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/model/bulkAddTertiaryCostsDto.d.ts +16 -0
- package/dist/model/bulkAddTertiaryCostsDto.js +26 -0
- package/dist/model/bulkAddTertiaryCostsDto.js.map +1 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.d.ts +16 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.js +31 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.js.map +1 -0
- package/dist/model/bulkUpdateMatchedDeliveryDatesDto.d.ts +15 -0
- package/dist/model/bulkUpdateMatchedDeliveryDatesDto.js +26 -0
- package/dist/model/bulkUpdateMatchedDeliveryDatesDto.js.map +1 -0
- package/dist/model/costAmountDto.d.ts +14 -0
- package/dist/model/costAmountDto.js +21 -0
- package/dist/model/costAmountDto.js.map +1 -0
- package/dist/model/costDto.d.ts +21 -0
- package/dist/model/costDto.js +51 -0
- package/dist/model/costDto.js.map +1 -0
- package/dist/model/costDtoSource.d.ts +14 -0
- package/dist/model/costDtoSource.js +21 -0
- package/dist/model/costDtoSource.js.map +1 -0
- package/dist/model/models.d.ts +6 -0
- package/dist/model/models.js +18 -0
- package/dist/model/models.js.map +1 -1
- package/model/bulkAddTertiaryCostsDto.ts +44 -0
- package/model/bulkUpdateDeliveryDatesDto.ts +52 -0
- package/model/bulkUpdateMatchedDeliveryDatesDto.ts +43 -0
- package/model/costAmountDto.ts +34 -0
- package/model/costDto.ts +86 -0
- package/model/costDtoSource.ts +38 -0
- package/model/models.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { CostDto } from './costDto';
|
|
15
|
+
|
|
16
|
+
export class BulkAddTertiaryCostsDto {
|
|
17
|
+
/**
|
|
18
|
+
* IDs of matched offers to add tertiary costs to
|
|
19
|
+
*/
|
|
20
|
+
'ids': Array<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Tertiary costs to add to each matched offer
|
|
23
|
+
*/
|
|
24
|
+
'costs': Array<CostDto>;
|
|
25
|
+
|
|
26
|
+
static discriminator: string | undefined = undefined;
|
|
27
|
+
|
|
28
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
29
|
+
{
|
|
30
|
+
"name": "ids",
|
|
31
|
+
"baseName": "ids",
|
|
32
|
+
"type": "Array<string>"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "costs",
|
|
36
|
+
"baseName": "costs",
|
|
37
|
+
"type": "Array<CostDto>"
|
|
38
|
+
} ];
|
|
39
|
+
|
|
40
|
+
static getAttributeTypeMap() {
|
|
41
|
+
return BulkAddTertiaryCostsDto.attributeTypeMap;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class BulkUpdateDeliveryDatesDto {
|
|
16
|
+
/**
|
|
17
|
+
* IDs of matched offers to update
|
|
18
|
+
*/
|
|
19
|
+
'ids': Array<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Delivery start date as unix timestamp
|
|
22
|
+
*/
|
|
23
|
+
'from': number;
|
|
24
|
+
/**
|
|
25
|
+
* Delivery end date as unix timestamp
|
|
26
|
+
*/
|
|
27
|
+
'to': number;
|
|
28
|
+
|
|
29
|
+
static discriminator: string | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "ids",
|
|
34
|
+
"baseName": "ids",
|
|
35
|
+
"type": "Array<string>"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "from",
|
|
39
|
+
"baseName": "from",
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "to",
|
|
44
|
+
"baseName": "to",
|
|
45
|
+
"type": "number"
|
|
46
|
+
} ];
|
|
47
|
+
|
|
48
|
+
static getAttributeTypeMap() {
|
|
49
|
+
return BulkUpdateDeliveryDatesDto.attributeTypeMap;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class BulkUpdateMatchedDeliveryDatesDto {
|
|
16
|
+
/**
|
|
17
|
+
* One entry per MO, duplicates allowed
|
|
18
|
+
*/
|
|
19
|
+
'datesToRemove': Array<number>;
|
|
20
|
+
/**
|
|
21
|
+
* New delivery date, added once per successful removal
|
|
22
|
+
*/
|
|
23
|
+
'newDeliveryDate': number;
|
|
24
|
+
|
|
25
|
+
static discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
|
+
{
|
|
29
|
+
"name": "datesToRemove",
|
|
30
|
+
"baseName": "datesToRemove",
|
|
31
|
+
"type": "Array<number>"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "newDeliveryDate",
|
|
35
|
+
"baseName": "newDeliveryDate",
|
|
36
|
+
"type": "number"
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return BulkUpdateMatchedDeliveryDatesDto.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class CostAmountDto {
|
|
16
|
+
/**
|
|
17
|
+
* Total amount in CAD
|
|
18
|
+
*/
|
|
19
|
+
'total'?: number;
|
|
20
|
+
|
|
21
|
+
static discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
24
|
+
{
|
|
25
|
+
"name": "total",
|
|
26
|
+
"baseName": "total",
|
|
27
|
+
"type": "number"
|
|
28
|
+
} ];
|
|
29
|
+
|
|
30
|
+
static getAttributeTypeMap() {
|
|
31
|
+
return CostAmountDto.attributeTypeMap;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
package/model/costDto.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { CostDtoSource } from './costDtoSource';
|
|
15
|
+
|
|
16
|
+
export class CostDto {
|
|
17
|
+
/**
|
|
18
|
+
* Cost ID
|
|
19
|
+
*/
|
|
20
|
+
'type'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Cost provider
|
|
23
|
+
*/
|
|
24
|
+
'product_id'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Cost attributes
|
|
27
|
+
*/
|
|
28
|
+
'attributes'?: object | null;
|
|
29
|
+
/**
|
|
30
|
+
* Cost status
|
|
31
|
+
*/
|
|
32
|
+
'updated_by'?: string;
|
|
33
|
+
'source'?: CostDtoSource;
|
|
34
|
+
/**
|
|
35
|
+
* Product ID
|
|
36
|
+
*/
|
|
37
|
+
'ID'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Creator ID
|
|
40
|
+
*/
|
|
41
|
+
'creator_id'?: string;
|
|
42
|
+
|
|
43
|
+
static discriminator: string | undefined = undefined;
|
|
44
|
+
|
|
45
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
46
|
+
{
|
|
47
|
+
"name": "type",
|
|
48
|
+
"baseName": "type",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "product_id",
|
|
53
|
+
"baseName": "product_id",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "attributes",
|
|
58
|
+
"baseName": "attributes",
|
|
59
|
+
"type": "object"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "updated_by",
|
|
63
|
+
"baseName": "updated_by",
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "source",
|
|
68
|
+
"baseName": "source",
|
|
69
|
+
"type": "CostDtoSource"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "ID",
|
|
73
|
+
"baseName": "ID",
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "creator_id",
|
|
78
|
+
"baseName": "creator_id",
|
|
79
|
+
"type": "string"
|
|
80
|
+
} ];
|
|
81
|
+
|
|
82
|
+
static getAttributeTypeMap() {
|
|
83
|
+
return CostDto.attributeTypeMap;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { CostAmountDto } from './costAmountDto';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Cost amount information
|
|
18
|
+
*/
|
|
19
|
+
export class CostDtoSource {
|
|
20
|
+
/**
|
|
21
|
+
* Total amount in CAD
|
|
22
|
+
*/
|
|
23
|
+
'total'?: number;
|
|
24
|
+
|
|
25
|
+
static discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
|
+
{
|
|
29
|
+
"name": "total",
|
|
30
|
+
"baseName": "total",
|
|
31
|
+
"type": "number"
|
|
32
|
+
} ];
|
|
33
|
+
|
|
34
|
+
static getAttributeTypeMap() {
|
|
35
|
+
return CostDtoSource.attributeTypeMap;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
package/model/models.ts
CHANGED
|
@@ -3,6 +3,12 @@ import localVarRequest from 'request';
|
|
|
3
3
|
export * from './addFutureBidDto';
|
|
4
4
|
export * from './addMatchedDeliveryDateDto';
|
|
5
5
|
export * from './bulkAddRelistingDto';
|
|
6
|
+
export * from './bulkAddTertiaryCostsDto';
|
|
7
|
+
export * from './bulkUpdateDeliveryDatesDto';
|
|
8
|
+
export * from './bulkUpdateMatchedDeliveryDatesDto';
|
|
9
|
+
export * from './costAmountDto';
|
|
10
|
+
export * from './costDto';
|
|
11
|
+
export * from './costDtoSource';
|
|
6
12
|
export * from './createAutomatedOfferDto';
|
|
7
13
|
export * from './createMatchedOfferDto';
|
|
8
14
|
export * from './createMatchedOfferDtoAttributes';
|
|
@@ -50,6 +56,12 @@ export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
|
50
56
|
import { AddFutureBidDto } from './addFutureBidDto';
|
|
51
57
|
import { AddMatchedDeliveryDateDto } from './addMatchedDeliveryDateDto';
|
|
52
58
|
import { BulkAddRelistingDto } from './bulkAddRelistingDto';
|
|
59
|
+
import { BulkAddTertiaryCostsDto } from './bulkAddTertiaryCostsDto';
|
|
60
|
+
import { BulkUpdateDeliveryDatesDto } from './bulkUpdateDeliveryDatesDto';
|
|
61
|
+
import { BulkUpdateMatchedDeliveryDatesDto } from './bulkUpdateMatchedDeliveryDatesDto';
|
|
62
|
+
import { CostAmountDto } from './costAmountDto';
|
|
63
|
+
import { CostDto } from './costDto';
|
|
64
|
+
import { CostDtoSource } from './costDtoSource';
|
|
53
65
|
import { CreateAutomatedOfferDto } from './createAutomatedOfferDto';
|
|
54
66
|
import { CreateMatchedOfferDto } from './createMatchedOfferDto';
|
|
55
67
|
import { CreateMatchedOfferDtoAttributes } from './createMatchedOfferDtoAttributes';
|
|
@@ -111,6 +123,12 @@ let typeMap: {[index: string]: any} = {
|
|
|
111
123
|
"AddFutureBidDto": AddFutureBidDto,
|
|
112
124
|
"AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
|
|
113
125
|
"BulkAddRelistingDto": BulkAddRelistingDto,
|
|
126
|
+
"BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
|
|
127
|
+
"BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
|
|
128
|
+
"BulkUpdateMatchedDeliveryDatesDto": BulkUpdateMatchedDeliveryDatesDto,
|
|
129
|
+
"CostAmountDto": CostAmountDto,
|
|
130
|
+
"CostDto": CostDto,
|
|
131
|
+
"CostDtoSource": CostDtoSource,
|
|
114
132
|
"CreateAutomatedOfferDto": CreateAutomatedOfferDto,
|
|
115
133
|
"CreateMatchedOfferDto": CreateMatchedOfferDto,
|
|
116
134
|
"CreateMatchedOfferDtoAttributes": CreateMatchedOfferDtoAttributes,
|