@tradecafe/offer-service-sdk 0.0.28 → 0.0.30

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.
Files changed (94) hide show
  1. package/.openapi-generator/FILES +0 -11
  2. package/api/automatedOffersApi.ts +92 -4
  3. package/api/futureBidsApi.ts +6 -1
  4. package/api/matchedOffersApi.ts +18 -3
  5. package/api/offersApi.ts +18 -3
  6. package/dist/api/automatedOffersApi.d.ts +12 -4
  7. package/dist/api/automatedOffersApi.js +108 -30
  8. package/dist/api/automatedOffersApi.js.map +1 -1
  9. package/dist/api/futureBidsApi.d.ts +1 -1
  10. package/dist/api/futureBidsApi.js +4 -1
  11. package/dist/api/futureBidsApi.js.map +1 -1
  12. package/dist/api/matchedOffersApi.d.ts +3 -3
  13. package/dist/api/matchedOffersApi.js +12 -3
  14. package/dist/api/matchedOffersApi.js.map +1 -1
  15. package/dist/api/offersApi.d.ts +3 -3
  16. package/dist/api/offersApi.js +12 -3
  17. package/dist/api/offersApi.js.map +1 -1
  18. package/dist/model/createAutomatedOfferDto.d.ts +2 -0
  19. package/dist/model/createAutomatedOfferDto.js +10 -0
  20. package/dist/model/createAutomatedOfferDto.js.map +1 -1
  21. package/dist/model/createMatchedOfferDto.d.ts +1 -2
  22. package/dist/model/createMatchedOfferDto.js +1 -1
  23. package/dist/model/createMatchedOfferDto.js.map +1 -1
  24. package/dist/model/createOfferDto.d.ts +2 -0
  25. package/dist/model/createOfferDto.js +10 -0
  26. package/dist/model/createOfferDto.js.map +1 -1
  27. package/dist/model/createOfferDtoAttributes.d.ts +1 -2
  28. package/dist/model/createOfferDtoAttributes.js +1 -1
  29. package/dist/model/createOfferDtoAttributes.js.map +1 -1
  30. package/dist/model/generalAddressDto.d.ts +24 -0
  31. package/dist/model/generalAddressDto.js +120 -0
  32. package/dist/model/generalAddressDto.js.map +1 -1
  33. package/dist/model/models.d.ts +0 -11
  34. package/dist/model/models.js +0 -33
  35. package/dist/model/models.js.map +1 -1
  36. package/dist/model/offerAttributesDto.d.ts +1 -2
  37. package/dist/model/offerAttributesDto.js +1 -1
  38. package/dist/model/offerAttributesDto.js.map +1 -1
  39. package/dist/model/offerAttributesDtoEstablishment.d.ts +24 -0
  40. package/dist/model/offerAttributesDtoEstablishment.js +120 -0
  41. package/dist/model/offerAttributesDtoEstablishment.js.map +1 -1
  42. package/model/createAutomatedOfferDto.ts +18 -0
  43. package/model/createMatchedOfferDto.ts +5 -3
  44. package/model/createOfferDto.ts +18 -0
  45. package/model/createOfferDtoAttributes.ts +2 -3
  46. package/model/generalAddressDto.ts +216 -0
  47. package/model/models.ts +0 -33
  48. package/model/offerAttributesDto.ts +2 -3
  49. package/model/offerAttributesDtoEstablishment.ts +216 -0
  50. package/package.json +1 -1
  51. package/dist/model/bidDto.d.ts +0 -46
  52. package/dist/model/bidDto.js +0 -156
  53. package/dist/model/bidDto.js.map +0 -1
  54. package/dist/model/bidDtoPacking.d.ts +0 -15
  55. package/dist/model/bidDtoPacking.js +0 -26
  56. package/dist/model/bidDtoPacking.js.map +0 -1
  57. package/dist/model/bidDtoWeight.d.ts +0 -15
  58. package/dist/model/bidDtoWeight.js +0 -26
  59. package/dist/model/bidDtoWeight.js.map +0 -1
  60. package/dist/model/bidNoteAttributesDto.d.ts +0 -15
  61. package/dist/model/bidNoteAttributesDto.js +0 -26
  62. package/dist/model/bidNoteAttributesDto.js.map +0 -1
  63. package/dist/model/bidNoteDto.d.ts +0 -24
  64. package/dist/model/bidNoteDto.js +0 -61
  65. package/dist/model/bidNoteDto.js.map +0 -1
  66. package/dist/model/bidNoteDtoAccount.d.ts +0 -13
  67. package/dist/model/bidNoteDtoAccount.js +0 -15
  68. package/dist/model/bidNoteDtoAccount.js.map +0 -1
  69. package/dist/model/bidNoteDtoAttributes.d.ts +0 -15
  70. package/dist/model/bidNoteDtoAttributes.js +0 -26
  71. package/dist/model/bidNoteDtoAttributes.js.map +0 -1
  72. package/dist/model/bidPackingDto.d.ts +0 -15
  73. package/dist/model/bidPackingDto.js +0 -26
  74. package/dist/model/bidPackingDto.js.map +0 -1
  75. package/dist/model/bidWeightDto.d.ts +0 -15
  76. package/dist/model/bidWeightDto.js +0 -26
  77. package/dist/model/bidWeightDto.js.map +0 -1
  78. package/dist/model/createMatchedOfferDtoBid.d.ts +0 -46
  79. package/dist/model/createMatchedOfferDtoBid.js +0 -156
  80. package/dist/model/createMatchedOfferDtoBid.js.map +0 -1
  81. package/dist/model/dealProductBatchDto.d.ts +0 -20
  82. package/dist/model/dealProductBatchDto.js +0 -51
  83. package/dist/model/dealProductBatchDto.js.map +0 -1
  84. package/model/bidDto.ts +0 -270
  85. package/model/bidDtoPacking.ts +0 -47
  86. package/model/bidDtoWeight.ts +0 -47
  87. package/model/bidNoteAttributesDto.ts +0 -43
  88. package/model/bidNoteDto.ts +0 -102
  89. package/model/bidNoteDtoAccount.ts +0 -29
  90. package/model/bidNoteDtoAttributes.ts +0 -47
  91. package/model/bidPackingDto.ts +0 -43
  92. package/model/bidWeightDto.ts +0 -43
  93. package/model/createMatchedOfferDtoBid.ts +0 -274
  94. package/model/dealProductBatchDto.ts +0 -88
@@ -1,102 +0,0 @@
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 { BidNoteDtoAccount } from './bidNoteDtoAccount';
15
- import { BidNoteDtoAttributes } from './bidNoteDtoAttributes';
16
-
17
- export class BidNoteDto {
18
- /**
19
- * Note body/content
20
- */
21
- 'body': string;
22
- /**
23
- * Note visibility level
24
- */
25
- 'visibility'?: number;
26
- 'attributes'?: BidNoteDtoAttributes;
27
- /**
28
- * User ID who created the note
29
- */
30
- 'user_id'?: string;
31
- 'account'?: BidNoteDtoAccount;
32
- /**
33
- * Note creation timestamp
34
- */
35
- 'created'?: number;
36
- /**
37
- * Note ID
38
- */
39
- 'note_id'?: string;
40
- /**
41
- * Whether the note is archived
42
- */
43
- 'archived'?: number;
44
- /**
45
- * Note update timestamp
46
- */
47
- 'updated'?: number;
48
-
49
- static discriminator: string | undefined = undefined;
50
-
51
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
52
- {
53
- "name": "body",
54
- "baseName": "body",
55
- "type": "string"
56
- },
57
- {
58
- "name": "visibility",
59
- "baseName": "visibility",
60
- "type": "number"
61
- },
62
- {
63
- "name": "attributes",
64
- "baseName": "attributes",
65
- "type": "BidNoteDtoAttributes"
66
- },
67
- {
68
- "name": "user_id",
69
- "baseName": "user_id",
70
- "type": "string"
71
- },
72
- {
73
- "name": "account",
74
- "baseName": "account",
75
- "type": "BidNoteDtoAccount"
76
- },
77
- {
78
- "name": "created",
79
- "baseName": "created",
80
- "type": "number"
81
- },
82
- {
83
- "name": "note_id",
84
- "baseName": "note_id",
85
- "type": "string"
86
- },
87
- {
88
- "name": "archived",
89
- "baseName": "archived",
90
- "type": "number"
91
- },
92
- {
93
- "name": "updated",
94
- "baseName": "updated",
95
- "type": "number"
96
- } ];
97
-
98
- static getAttributeTypeMap() {
99
- return BidNoteDto.attributeTypeMap;
100
- }
101
- }
102
-
@@ -1,29 +0,0 @@
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
- /**
16
- * Account identifier
17
- */
18
- export class BidNoteDtoAccount {
19
-
20
- static discriminator: string | undefined = undefined;
21
-
22
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
23
- ];
24
-
25
- static getAttributeTypeMap() {
26
- return BidNoteDtoAccount.attributeTypeMap;
27
- }
28
- }
29
-
@@ -1,47 +0,0 @@
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 { BidNoteAttributesDto } from './bidNoteAttributesDto';
15
-
16
- /**
17
- * Note attributes
18
- */
19
- export class BidNoteDtoAttributes {
20
- /**
21
- * Company IDs associated with the note
22
- */
23
- 'company'?: Array<string>;
24
- /**
25
- * Note category
26
- */
27
- 'category'?: string;
28
-
29
- static discriminator: string | undefined = undefined;
30
-
31
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
32
- {
33
- "name": "company",
34
- "baseName": "company",
35
- "type": "Array<string>"
36
- },
37
- {
38
- "name": "category",
39
- "baseName": "category",
40
- "type": "string"
41
- } ];
42
-
43
- static getAttributeTypeMap() {
44
- return BidNoteDtoAttributes.attributeTypeMap;
45
- }
46
- }
47
-
@@ -1,43 +0,0 @@
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 BidPackingDto {
16
- /**
17
- * Packing type
18
- */
19
- 'type'?: string;
20
- /**
21
- * Packing unit
22
- */
23
- 'unit'?: number;
24
-
25
- static discriminator: string | undefined = undefined;
26
-
27
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28
- {
29
- "name": "type",
30
- "baseName": "type",
31
- "type": "string"
32
- },
33
- {
34
- "name": "unit",
35
- "baseName": "unit",
36
- "type": "number"
37
- } ];
38
-
39
- static getAttributeTypeMap() {
40
- return BidPackingDto.attributeTypeMap;
41
- }
42
- }
43
-
@@ -1,43 +0,0 @@
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 BidWeightDto {
16
- /**
17
- * Weight amount
18
- */
19
- 'amount': number;
20
- /**
21
- * Weight unit
22
- */
23
- 'unit': string;
24
-
25
- static discriminator: string | undefined = undefined;
26
-
27
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28
- {
29
- "name": "amount",
30
- "baseName": "amount",
31
- "type": "number"
32
- },
33
- {
34
- "name": "unit",
35
- "baseName": "unit",
36
- "type": "string"
37
- } ];
38
-
39
- static getAttributeTypeMap() {
40
- return BidWeightDto.attributeTypeMap;
41
- }
42
- }
43
-
@@ -1,274 +0,0 @@
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 { BidDto } from './bidDto';
15
- import { BidDtoPacking } from './bidDtoPacking';
16
- import { BidDtoWeight } from './bidDtoWeight';
17
- import { BidNoteDto } from './bidNoteDto';
18
- import { BidNoteDtoAccount } from './bidNoteDtoAccount';
19
- import { CreateOfferDtoFormula } from './createOfferDtoFormula';
20
-
21
- /**
22
- * Bid information
23
- */
24
- export class CreateMatchedOfferDtoBid {
25
- /**
26
- * Delivery location
27
- */
28
- 'delivery'?: string;
29
- /**
30
- * Currency code
31
- */
32
- 'currency'?: string;
33
- /**
34
- * Bid price
35
- */
36
- 'price'?: number;
37
- /**
38
- * Country code
39
- */
40
- 'country'?: string;
41
- /**
42
- * Incoterm
43
- */
44
- 'incoterm'?: string;
45
- 'account'?: BidNoteDtoAccount;
46
- /**
47
- * Shipment end date (Unix timestamp)
48
- */
49
- 'ship_end'?: number;
50
- /**
51
- * Shipment start date (Unix timestamp)
52
- */
53
- 'ship_start'?: number;
54
- 'weight'?: BidDtoWeight;
55
- /**
56
- * Wrapping information
57
- */
58
- 'wrapping'?: string;
59
- /**
60
- * Product ID
61
- */
62
- 'product'?: string;
63
- /**
64
- * Bid attributes
65
- */
66
- 'attributes'?: object | null;
67
- 'packing'?: BidDtoPacking;
68
- /**
69
- * Quantity
70
- */
71
- 'quantity'?: number;
72
- 'formula'?: CreateOfferDtoFormula;
73
- /**
74
- * Buyer index
75
- */
76
- 'buyerIndex'?: number;
77
- /**
78
- * Bid amount
79
- */
80
- 'amount'?: number;
81
- /**
82
- * Bid ratio
83
- */
84
- 'ratio'?: number;
85
- /**
86
- * User ID
87
- */
88
- 'user_id'?: string;
89
- /**
90
- * Initial bid price
91
- */
92
- 'initial_price'?: number;
93
- /**
94
- * Price change delta
95
- */
96
- 'price_change_delta'?: number;
97
- /**
98
- * Buyer differential
99
- */
100
- 'buyerDifferential'?: number;
101
- /**
102
- * Bid ID
103
- */
104
- 'bid_id'?: string;
105
- /**
106
- * Creation timestamp
107
- */
108
- 'created'?: number;
109
- /**
110
- * Offer number
111
- */
112
- 'offer_number'?: string;
113
- /**
114
- * Whether the bid is active
115
- */
116
- 'active'?: boolean;
117
- /**
118
- * Array of notification user IDs
119
- */
120
- 'notifications'?: Array<string>;
121
- /**
122
- * Array of bid notes
123
- */
124
- 'notes'?: Array<BidNoteDto>;
125
-
126
- static discriminator: string | undefined = undefined;
127
-
128
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
129
- {
130
- "name": "delivery",
131
- "baseName": "delivery",
132
- "type": "string"
133
- },
134
- {
135
- "name": "currency",
136
- "baseName": "currency",
137
- "type": "string"
138
- },
139
- {
140
- "name": "price",
141
- "baseName": "price",
142
- "type": "number"
143
- },
144
- {
145
- "name": "country",
146
- "baseName": "country",
147
- "type": "string"
148
- },
149
- {
150
- "name": "incoterm",
151
- "baseName": "incoterm",
152
- "type": "string"
153
- },
154
- {
155
- "name": "account",
156
- "baseName": "account",
157
- "type": "BidNoteDtoAccount"
158
- },
159
- {
160
- "name": "ship_end",
161
- "baseName": "ship_end",
162
- "type": "number"
163
- },
164
- {
165
- "name": "ship_start",
166
- "baseName": "ship_start",
167
- "type": "number"
168
- },
169
- {
170
- "name": "weight",
171
- "baseName": "weight",
172
- "type": "BidDtoWeight"
173
- },
174
- {
175
- "name": "wrapping",
176
- "baseName": "wrapping",
177
- "type": "string"
178
- },
179
- {
180
- "name": "product",
181
- "baseName": "product",
182
- "type": "string"
183
- },
184
- {
185
- "name": "attributes",
186
- "baseName": "attributes",
187
- "type": "object"
188
- },
189
- {
190
- "name": "packing",
191
- "baseName": "packing",
192
- "type": "BidDtoPacking"
193
- },
194
- {
195
- "name": "quantity",
196
- "baseName": "quantity",
197
- "type": "number"
198
- },
199
- {
200
- "name": "formula",
201
- "baseName": "formula",
202
- "type": "CreateOfferDtoFormula"
203
- },
204
- {
205
- "name": "buyerIndex",
206
- "baseName": "buyerIndex",
207
- "type": "number"
208
- },
209
- {
210
- "name": "amount",
211
- "baseName": "amount",
212
- "type": "number"
213
- },
214
- {
215
- "name": "ratio",
216
- "baseName": "ratio",
217
- "type": "number"
218
- },
219
- {
220
- "name": "user_id",
221
- "baseName": "user_id",
222
- "type": "string"
223
- },
224
- {
225
- "name": "initial_price",
226
- "baseName": "initial_price",
227
- "type": "number"
228
- },
229
- {
230
- "name": "price_change_delta",
231
- "baseName": "price_change_delta",
232
- "type": "number"
233
- },
234
- {
235
- "name": "buyerDifferential",
236
- "baseName": "buyerDifferential",
237
- "type": "number"
238
- },
239
- {
240
- "name": "bid_id",
241
- "baseName": "bid_id",
242
- "type": "string"
243
- },
244
- {
245
- "name": "created",
246
- "baseName": "created",
247
- "type": "number"
248
- },
249
- {
250
- "name": "offer_number",
251
- "baseName": "offer_number",
252
- "type": "string"
253
- },
254
- {
255
- "name": "active",
256
- "baseName": "active",
257
- "type": "boolean"
258
- },
259
- {
260
- "name": "notifications",
261
- "baseName": "notifications",
262
- "type": "Array<string>"
263
- },
264
- {
265
- "name": "notes",
266
- "baseName": "notes",
267
- "type": "Array<BidNoteDto>"
268
- } ];
269
-
270
- static getAttributeTypeMap() {
271
- return CreateMatchedOfferDtoBid.attributeTypeMap;
272
- }
273
- }
274
-
@@ -1,88 +0,0 @@
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 DealProductBatchDto {
16
- /**
17
- * Number of cases
18
- */
19
- 'cases': string;
20
- /**
21
- * Lot number
22
- */
23
- 'lot_no': string;
24
- /**
25
- * Expiry information
26
- */
27
- 'expiry_in': string;
28
- /**
29
- * Expiry date (Unix timestamp)
30
- */
31
- 'expiry_date': number;
32
- /**
33
- * Production start date (Unix timestamp)
34
- */
35
- 'production_date_start': number;
36
- /**
37
- * Production end date (Unix timestamp)
38
- */
39
- 'production_date_end': number;
40
- /**
41
- * Number of pallets
42
- */
43
- 'pallets': string;
44
-
45
- static discriminator: string | undefined = undefined;
46
-
47
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
48
- {
49
- "name": "cases",
50
- "baseName": "cases",
51
- "type": "string"
52
- },
53
- {
54
- "name": "lot_no",
55
- "baseName": "lot_no",
56
- "type": "string"
57
- },
58
- {
59
- "name": "expiry_in",
60
- "baseName": "expiry_in",
61
- "type": "string"
62
- },
63
- {
64
- "name": "expiry_date",
65
- "baseName": "expiry_date",
66
- "type": "number"
67
- },
68
- {
69
- "name": "production_date_start",
70
- "baseName": "production_date_start",
71
- "type": "number"
72
- },
73
- {
74
- "name": "production_date_end",
75
- "baseName": "production_date_end",
76
- "type": "number"
77
- },
78
- {
79
- "name": "pallets",
80
- "baseName": "pallets",
81
- "type": "string"
82
- } ];
83
-
84
- static getAttributeTypeMap() {
85
- return DealProductBatchDto.attributeTypeMap;
86
- }
87
- }
88
-