@tradecafe/offer-service-sdk 0.0.44 → 0.0.46
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 +4 -0
- package/api/automatedOffersApi.ts +158 -13
- package/dist/api/automatedOffersApi.d.ts +19 -1
- package/dist/api/automatedOffersApi.js +177 -41
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/model/addMatchedDeliveryDateDto.d.ts +14 -0
- package/dist/model/addMatchedDeliveryDateDto.js +21 -0
- package/dist/model/addMatchedDeliveryDateDto.js.map +1 -0
- package/dist/model/createAutomatedOfferDto.d.ts +4 -1
- package/dist/model/createAutomatedOfferDto.js +3 -0
- package/dist/model/createAutomatedOfferDto.js.map +1 -1
- package/dist/model/createMatchedOfferDto.d.ts +2 -1
- package/dist/model/createMatchedOfferDto.js +1 -1
- package/dist/model/createMatchedOfferDto.js.map +1 -1
- package/dist/model/createMatchedOfferDtoAttributes.d.ts +14 -0
- package/dist/model/createMatchedOfferDtoAttributes.js +21 -0
- package/dist/model/createMatchedOfferDtoAttributes.js.map +1 -0
- package/dist/model/createOfferDtoAttributes.d.ts +1 -0
- package/dist/model/createOfferDtoAttributes.js +5 -0
- package/dist/model/createOfferDtoAttributes.js.map +1 -1
- package/dist/model/matchedOfferAttributesDto.d.ts +14 -0
- package/dist/model/matchedOfferAttributesDto.js +21 -0
- package/dist/model/matchedOfferAttributesDto.js.map +1 -0
- package/dist/model/models.d.ts +4 -0
- package/dist/model/models.js +12 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/offerAttributesDto.d.ts +1 -0
- package/dist/model/offerAttributesDto.js +5 -0
- package/dist/model/offerAttributesDto.js.map +1 -1
- package/dist/model/updateMatchedDeliveryDateDto.d.ts +15 -0
- package/dist/model/updateMatchedDeliveryDateDto.js +26 -0
- package/dist/model/updateMatchedDeliveryDateDto.js.map +1 -0
- package/model/addMatchedDeliveryDateDto.ts +34 -0
- package/model/createAutomatedOfferDto.ts +4 -1
- package/model/createMatchedOfferDto.ts +3 -5
- package/model/createMatchedOfferDtoAttributes.ts +38 -0
- package/model/createOfferDtoAttributes.ts +9 -0
- package/model/matchedOfferAttributesDto.ts +34 -0
- package/model/models.ts +12 -0
- package/model/offerAttributesDto.ts +9 -0
- package/model/updateMatchedDeliveryDateDto.ts +43 -0
- package/package.json +1 -1
|
@@ -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 MatchedOfferAttributesDto {
|
|
16
|
+
/**
|
|
17
|
+
* Extended name map keyed by product_id
|
|
18
|
+
*/
|
|
19
|
+
'extended_name'?: object;
|
|
20
|
+
|
|
21
|
+
static discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
24
|
+
{
|
|
25
|
+
"name": "extended_name",
|
|
26
|
+
"baseName": "extended_name",
|
|
27
|
+
"type": "object"
|
|
28
|
+
} ];
|
|
29
|
+
|
|
30
|
+
static getAttributeTypeMap() {
|
|
31
|
+
return MatchedOfferAttributesDto.attributeTypeMap;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
package/model/models.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import localVarRequest from 'request';
|
|
2
2
|
|
|
3
3
|
export * from './addFutureBidDto';
|
|
4
|
+
export * from './addMatchedDeliveryDateDto';
|
|
4
5
|
export * from './bulkAddRelistingDto';
|
|
5
6
|
export * from './createAutomatedOfferDto';
|
|
6
7
|
export * from './createMatchedOfferDto';
|
|
8
|
+
export * from './createMatchedOfferDtoAttributes';
|
|
7
9
|
export * from './createOfferDto';
|
|
8
10
|
export * from './createOfferDtoAttributes';
|
|
9
11
|
export * from './createOfferDtoFormula';
|
|
@@ -15,6 +17,7 @@ export * from './generalAddressDto';
|
|
|
15
17
|
export * from './healthControllerPing200Response';
|
|
16
18
|
export * from './healthControllerPing200ResponseInfoValue';
|
|
17
19
|
export * from './healthControllerPing503Response';
|
|
20
|
+
export * from './matchedOfferAttributesDto';
|
|
18
21
|
export * from './offerAttributesDto';
|
|
19
22
|
export * from './offerAttributesDtoEstablishment';
|
|
20
23
|
export * from './overwriteItemDto';
|
|
@@ -26,6 +29,7 @@ export * from './relistingDetailDto';
|
|
|
26
29
|
export * from './relistingDetailDtoRandomConfig';
|
|
27
30
|
export * from './relistingRandomConfigDto';
|
|
28
31
|
export * from './updateFutureBidDto';
|
|
32
|
+
export * from './updateMatchedDeliveryDateDto';
|
|
29
33
|
export * from './userPin';
|
|
30
34
|
export * from './weight';
|
|
31
35
|
export * from './weightDto';
|
|
@@ -44,9 +48,11 @@ export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
|
44
48
|
|
|
45
49
|
|
|
46
50
|
import { AddFutureBidDto } from './addFutureBidDto';
|
|
51
|
+
import { AddMatchedDeliveryDateDto } from './addMatchedDeliveryDateDto';
|
|
47
52
|
import { BulkAddRelistingDto } from './bulkAddRelistingDto';
|
|
48
53
|
import { CreateAutomatedOfferDto } from './createAutomatedOfferDto';
|
|
49
54
|
import { CreateMatchedOfferDto } from './createMatchedOfferDto';
|
|
55
|
+
import { CreateMatchedOfferDtoAttributes } from './createMatchedOfferDtoAttributes';
|
|
50
56
|
import { CreateOfferDto } from './createOfferDto';
|
|
51
57
|
import { CreateOfferDtoAttributes } from './createOfferDtoAttributes';
|
|
52
58
|
import { CreateOfferDtoFormula } from './createOfferDtoFormula';
|
|
@@ -58,6 +64,7 @@ import { GeneralAddressDto } from './generalAddressDto';
|
|
|
58
64
|
import { HealthControllerPing200Response } from './healthControllerPing200Response';
|
|
59
65
|
import { HealthControllerPing200ResponseInfoValue } from './healthControllerPing200ResponseInfoValue';
|
|
60
66
|
import { HealthControllerPing503Response } from './healthControllerPing503Response';
|
|
67
|
+
import { MatchedOfferAttributesDto } from './matchedOfferAttributesDto';
|
|
61
68
|
import { OfferAttributesDto } from './offerAttributesDto';
|
|
62
69
|
import { OfferAttributesDtoEstablishment } from './offerAttributesDtoEstablishment';
|
|
63
70
|
import { OverwriteItemDto } from './overwriteItemDto';
|
|
@@ -69,6 +76,7 @@ import { RelistingDetailDto } from './relistingDetailDto';
|
|
|
69
76
|
import { RelistingDetailDtoRandomConfig } from './relistingDetailDtoRandomConfig';
|
|
70
77
|
import { RelistingRandomConfigDto } from './relistingRandomConfigDto';
|
|
71
78
|
import { UpdateFutureBidDto } from './updateFutureBidDto';
|
|
79
|
+
import { UpdateMatchedDeliveryDateDto } from './updateMatchedDeliveryDateDto';
|
|
72
80
|
import { UserPin } from './userPin';
|
|
73
81
|
import { Weight } from './weight';
|
|
74
82
|
import { WeightDto } from './weightDto';
|
|
@@ -99,9 +107,11 @@ let enumsMap: {[index: string]: any} = {
|
|
|
99
107
|
|
|
100
108
|
let typeMap: {[index: string]: any} = {
|
|
101
109
|
"AddFutureBidDto": AddFutureBidDto,
|
|
110
|
+
"AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
|
|
102
111
|
"BulkAddRelistingDto": BulkAddRelistingDto,
|
|
103
112
|
"CreateAutomatedOfferDto": CreateAutomatedOfferDto,
|
|
104
113
|
"CreateMatchedOfferDto": CreateMatchedOfferDto,
|
|
114
|
+
"CreateMatchedOfferDtoAttributes": CreateMatchedOfferDtoAttributes,
|
|
105
115
|
"CreateOfferDto": CreateOfferDto,
|
|
106
116
|
"CreateOfferDtoAttributes": CreateOfferDtoAttributes,
|
|
107
117
|
"CreateOfferDtoFormula": CreateOfferDtoFormula,
|
|
@@ -113,6 +123,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
113
123
|
"HealthControllerPing200Response": HealthControllerPing200Response,
|
|
114
124
|
"HealthControllerPing200ResponseInfoValue": HealthControllerPing200ResponseInfoValue,
|
|
115
125
|
"HealthControllerPing503Response": HealthControllerPing503Response,
|
|
126
|
+
"MatchedOfferAttributesDto": MatchedOfferAttributesDto,
|
|
116
127
|
"OfferAttributesDto": OfferAttributesDto,
|
|
117
128
|
"OfferAttributesDtoEstablishment": OfferAttributesDtoEstablishment,
|
|
118
129
|
"OverwriteItemDto": OverwriteItemDto,
|
|
@@ -124,6 +135,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
124
135
|
"RelistingDetailDtoRandomConfig": RelistingDetailDtoRandomConfig,
|
|
125
136
|
"RelistingRandomConfigDto": RelistingRandomConfigDto,
|
|
126
137
|
"UpdateFutureBidDto": UpdateFutureBidDto,
|
|
138
|
+
"UpdateMatchedDeliveryDateDto": UpdateMatchedDeliveryDateDto,
|
|
127
139
|
"UserPin": UserPin,
|
|
128
140
|
"Weight": Weight,
|
|
129
141
|
"WeightDto": WeightDto,
|
|
@@ -120,6 +120,10 @@ export class OfferAttributesDto {
|
|
|
120
120
|
* Buyer groups
|
|
121
121
|
*/
|
|
122
122
|
'buyer_groups'?: Array<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Extended name map keyed by product_id
|
|
125
|
+
*/
|
|
126
|
+
'extended_name'?: object;
|
|
123
127
|
|
|
124
128
|
static discriminator: string | undefined = undefined;
|
|
125
129
|
|
|
@@ -258,6 +262,11 @@ export class OfferAttributesDto {
|
|
|
258
262
|
"name": "buyer_groups",
|
|
259
263
|
"baseName": "buyer_groups",
|
|
260
264
|
"type": "Array<string>"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "extended_name",
|
|
268
|
+
"baseName": "extended_name",
|
|
269
|
+
"type": "object"
|
|
261
270
|
} ];
|
|
262
271
|
|
|
263
272
|
static getAttributeTypeMap() {
|
|
@@ -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 UpdateMatchedDeliveryDateDto {
|
|
16
|
+
/**
|
|
17
|
+
* New delivery date as unix timestamp
|
|
18
|
+
*/
|
|
19
|
+
'newDeliveryDate': number;
|
|
20
|
+
/**
|
|
21
|
+
* Old delivery date to replace as unix timestamp. If omitted, new date is inserted directly
|
|
22
|
+
*/
|
|
23
|
+
'oldDeliveryDate'?: number;
|
|
24
|
+
|
|
25
|
+
static discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
|
+
{
|
|
29
|
+
"name": "newDeliveryDate",
|
|
30
|
+
"baseName": "newDeliveryDate",
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "oldDeliveryDate",
|
|
35
|
+
"baseName": "oldDeliveryDate",
|
|
36
|
+
"type": "number"
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return UpdateMatchedDeliveryDateDto.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|