@tradecafe/offer-service-sdk 0.0.49 → 0.0.51

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 (58) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/api/matchedOffersApi.ts +69 -0
  3. package/dist/api/matchedOffersApi.d.ts +9 -0
  4. package/dist/api/matchedOffersApi.js +120 -54
  5. package/dist/api/matchedOffersApi.js.map +1 -1
  6. package/dist/model/associatedCostDto.d.ts +16 -0
  7. package/dist/model/associatedCostDto.js +31 -0
  8. package/dist/model/associatedCostDto.js.map +1 -0
  9. package/dist/model/bulkChangeFreightRatesDto.d.ts +19 -0
  10. package/dist/model/bulkChangeFreightRatesDto.js +41 -0
  11. package/dist/model/bulkChangeFreightRatesDto.js.map +1 -0
  12. package/dist/model/costAmountDto.d.ts +3 -0
  13. package/dist/model/costAmountDto.js +15 -0
  14. package/dist/model/costAmountDto.js.map +1 -1
  15. package/dist/model/costAttributesDto.d.ts +32 -0
  16. package/dist/model/costAttributesDto.js +101 -0
  17. package/dist/model/costAttributesDto.js.map +1 -0
  18. package/dist/model/costAttributesDtoAssociated.d.ts +16 -0
  19. package/dist/model/costAttributesDtoAssociated.js +31 -0
  20. package/dist/model/costAttributesDtoAssociated.js.map +1 -0
  21. package/dist/model/costAttributesDtoDefaultCost.d.ts +18 -0
  22. package/dist/model/costAttributesDtoDefaultCost.js +41 -0
  23. package/dist/model/costAttributesDtoDefaultCost.js.map +1 -0
  24. package/dist/model/costDto.d.ts +15 -1
  25. package/dist/model/costDto.js +61 -1
  26. package/dist/model/costDto.js.map +1 -1
  27. package/dist/model/costDtoAmount.d.ts +17 -0
  28. package/dist/model/costDtoAmount.js +36 -0
  29. package/dist/model/costDtoAmount.js.map +1 -0
  30. package/dist/model/costDtoAttributes.d.ts +32 -0
  31. package/dist/model/costDtoAttributes.js +101 -0
  32. package/dist/model/costDtoAttributes.js.map +1 -0
  33. package/dist/model/costDtoSource.d.ts +2 -1
  34. package/dist/model/costDtoSource.js +8 -3
  35. package/dist/model/costDtoSource.js.map +1 -1
  36. package/dist/model/costSourceDto.d.ts +15 -0
  37. package/dist/model/costSourceDto.js +26 -0
  38. package/dist/model/costSourceDto.js.map +1 -0
  39. package/dist/model/defaultCostDto.d.ts +18 -0
  40. package/dist/model/defaultCostDto.js +41 -0
  41. package/dist/model/defaultCostDto.js.map +1 -0
  42. package/dist/model/models.d.ts +9 -0
  43. package/dist/model/models.js +27 -0
  44. package/dist/model/models.js.map +1 -1
  45. package/model/associatedCostDto.ts +52 -0
  46. package/model/bulkChangeFreightRatesDto.ts +56 -0
  47. package/model/costAmountDto.ts +28 -1
  48. package/model/costAttributesDto.ts +174 -0
  49. package/model/costAttributesDtoAssociated.ts +56 -0
  50. package/model/costAttributesDtoDefaultCost.ts +74 -0
  51. package/model/costDto.ts +110 -6
  52. package/model/costDtoAmount.ts +65 -0
  53. package/model/costDtoAttributes.ts +178 -0
  54. package/model/costDtoSource.ts +16 -7
  55. package/model/costSourceDto.ts +43 -0
  56. package/model/defaultCostDto.ts +70 -0
  57. package/model/models.ts +27 -0
  58. package/package.json +1 -1
@@ -0,0 +1,178 @@
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 { CostAttributesDto } from './costAttributesDto';
15
+ import { CostAttributesDtoAssociated } from './costAttributesDtoAssociated';
16
+ import { CostAttributesDtoDefaultCost } from './costAttributesDtoDefaultCost';
17
+
18
+ /**
19
+ * Cost attributes
20
+ */
21
+ export class CostDtoAttributes {
22
+ 'default_cost'?: CostAttributesDtoDefaultCost;
23
+ /**
24
+ * Actual amount
25
+ */
26
+ 'actual_amount'?: number;
27
+ /**
28
+ * Actual currency
29
+ */
30
+ 'actual_currency'?: string;
31
+ /**
32
+ * Total actual CAD
33
+ */
34
+ 'total_actual_cad'?: number;
35
+ /**
36
+ * Actual buy price
37
+ */
38
+ 'actual_buy_price'?: number;
39
+ /**
40
+ * Actual buy weight
41
+ */
42
+ 'actual_buy_weight'?: number;
43
+ /**
44
+ * Actual sell price
45
+ */
46
+ 'actual_sell_price'?: number;
47
+ /**
48
+ * Actual sell weight
49
+ */
50
+ 'actual_sell_weight'?: number;
51
+ 'associated'?: CostAttributesDtoAssociated;
52
+ /**
53
+ * Product index
54
+ */
55
+ 'product_index'?: number;
56
+ /**
57
+ * Buy weight
58
+ */
59
+ 'buy_weight'?: number;
60
+ /**
61
+ * Freight type
62
+ */
63
+ 'freight_type'?: string;
64
+ /**
65
+ * Rate created timestamp
66
+ */
67
+ 'rate_created'?: number;
68
+ /**
69
+ * Rate ID
70
+ */
71
+ 'rate_id'?: string;
72
+ /**
73
+ * Rate valid until timestamp
74
+ */
75
+ 'rate_until'?: number;
76
+ /**
77
+ * Finance term
78
+ */
79
+ 'finance_term'?: number;
80
+ /**
81
+ * Estimated finance term
82
+ */
83
+ 'est_finance_term'?: number;
84
+
85
+ static discriminator: string | undefined = undefined;
86
+
87
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
88
+ {
89
+ "name": "default_cost",
90
+ "baseName": "default_cost",
91
+ "type": "CostAttributesDtoDefaultCost"
92
+ },
93
+ {
94
+ "name": "actual_amount",
95
+ "baseName": "actual_amount",
96
+ "type": "number"
97
+ },
98
+ {
99
+ "name": "actual_currency",
100
+ "baseName": "actual_currency",
101
+ "type": "string"
102
+ },
103
+ {
104
+ "name": "total_actual_cad",
105
+ "baseName": "total_actual_cad",
106
+ "type": "number"
107
+ },
108
+ {
109
+ "name": "actual_buy_price",
110
+ "baseName": "actual_buy_price",
111
+ "type": "number"
112
+ },
113
+ {
114
+ "name": "actual_buy_weight",
115
+ "baseName": "actual_buy_weight",
116
+ "type": "number"
117
+ },
118
+ {
119
+ "name": "actual_sell_price",
120
+ "baseName": "actual_sell_price",
121
+ "type": "number"
122
+ },
123
+ {
124
+ "name": "actual_sell_weight",
125
+ "baseName": "actual_sell_weight",
126
+ "type": "number"
127
+ },
128
+ {
129
+ "name": "associated",
130
+ "baseName": "associated",
131
+ "type": "CostAttributesDtoAssociated"
132
+ },
133
+ {
134
+ "name": "product_index",
135
+ "baseName": "product_index",
136
+ "type": "number"
137
+ },
138
+ {
139
+ "name": "buy_weight",
140
+ "baseName": "buy_weight",
141
+ "type": "number"
142
+ },
143
+ {
144
+ "name": "freight_type",
145
+ "baseName": "freight_type",
146
+ "type": "string"
147
+ },
148
+ {
149
+ "name": "rate_created",
150
+ "baseName": "rate_created",
151
+ "type": "number"
152
+ },
153
+ {
154
+ "name": "rate_id",
155
+ "baseName": "rate_id",
156
+ "type": "string"
157
+ },
158
+ {
159
+ "name": "rate_until",
160
+ "baseName": "rate_until",
161
+ "type": "number"
162
+ },
163
+ {
164
+ "name": "finance_term",
165
+ "baseName": "finance_term",
166
+ "type": "number"
167
+ },
168
+ {
169
+ "name": "est_finance_term",
170
+ "baseName": "est_finance_term",
171
+ "type": "number"
172
+ } ];
173
+
174
+ static getAttributeTypeMap() {
175
+ return CostDtoAttributes.attributeTypeMap;
176
+ }
177
+ }
178
+
@@ -11,24 +11,33 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
- import { CostAmountDto } from './costAmountDto';
14
+ import { CostSourceDto } from './costSourceDto';
15
15
 
16
16
  /**
17
- * Cost amount information
17
+ * Cost source
18
18
  */
19
19
  export class CostDtoSource {
20
20
  /**
21
- * Total amount in CAD
21
+ * Source type
22
22
  */
23
- 'total'?: number;
23
+ 'type'?: string;
24
+ /**
25
+ * Source ID
26
+ */
27
+ 'source_id'?: string;
24
28
 
25
29
  static discriminator: string | undefined = undefined;
26
30
 
27
31
  static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28
32
  {
29
- "name": "total",
30
- "baseName": "total",
31
- "type": "number"
33
+ "name": "type",
34
+ "baseName": "type",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "source_id",
39
+ "baseName": "source_id",
40
+ "type": "string"
32
41
  } ];
33
42
 
34
43
  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 CostSourceDto {
16
+ /**
17
+ * Source type
18
+ */
19
+ 'type'?: string;
20
+ /**
21
+ * Source ID
22
+ */
23
+ 'source_id'?: string;
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": "source_id",
35
+ "baseName": "source_id",
36
+ "type": "string"
37
+ } ];
38
+
39
+ static getAttributeTypeMap() {
40
+ return CostSourceDto.attributeTypeMap;
41
+ }
42
+ }
43
+
@@ -0,0 +1,70 @@
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 DefaultCostDto {
16
+ /**
17
+ * Cost value
18
+ */
19
+ 'value'?: number;
20
+ /**
21
+ * Cost type
22
+ */
23
+ 'type'?: string;
24
+ /**
25
+ * Cost name
26
+ */
27
+ 'name'?: string;
28
+ /**
29
+ * Cost type ID
30
+ */
31
+ 'cost_type_id'?: string;
32
+ /**
33
+ * Currency
34
+ */
35
+ 'currency'?: string;
36
+
37
+ static discriminator: string | undefined = undefined;
38
+
39
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
40
+ {
41
+ "name": "value",
42
+ "baseName": "value",
43
+ "type": "number"
44
+ },
45
+ {
46
+ "name": "type",
47
+ "baseName": "type",
48
+ "type": "string"
49
+ },
50
+ {
51
+ "name": "name",
52
+ "baseName": "name",
53
+ "type": "string"
54
+ },
55
+ {
56
+ "name": "cost_type_id",
57
+ "baseName": "cost_type_id",
58
+ "type": "string"
59
+ },
60
+ {
61
+ "name": "currency",
62
+ "baseName": "currency",
63
+ "type": "string"
64
+ } ];
65
+
66
+ static getAttributeTypeMap() {
67
+ return DefaultCostDto.attributeTypeMap;
68
+ }
69
+ }
70
+
package/model/models.ts CHANGED
@@ -2,13 +2,21 @@ import localVarRequest from 'request';
2
2
 
3
3
  export * from './addFutureBidDto';
4
4
  export * from './addMatchedDeliveryDateDto';
5
+ export * from './associatedCostDto';
5
6
  export * from './bulkAddRelistingDto';
6
7
  export * from './bulkAddTertiaryCostsDto';
8
+ export * from './bulkChangeFreightRatesDto';
7
9
  export * from './bulkUpdateDeliveryDatesDto';
8
10
  export * from './bulkUpdateMatchedDeliveryDatesDto';
9
11
  export * from './costAmountDto';
12
+ export * from './costAttributesDto';
13
+ export * from './costAttributesDtoAssociated';
14
+ export * from './costAttributesDtoDefaultCost';
10
15
  export * from './costDto';
16
+ export * from './costDtoAmount';
17
+ export * from './costDtoAttributes';
11
18
  export * from './costDtoSource';
19
+ export * from './costSourceDto';
12
20
  export * from './createAutomatedOfferDto';
13
21
  export * from './createMatchedOfferDto';
14
22
  export * from './createMatchedOfferDtoAttributes';
@@ -17,6 +25,7 @@ export * from './createOfferDtoAttributes';
17
25
  export * from './createOfferDtoFormula';
18
26
  export * from './createOfferDtoPacking';
19
27
  export * from './createOfferDtoWeight';
28
+ export * from './defaultCostDto';
20
29
  export * from './formulaDto';
21
30
  export * from './formulaLineDto';
22
31
  export * from './generalAddressDto';
@@ -55,13 +64,21 @@ export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
55
64
 
56
65
  import { AddFutureBidDto } from './addFutureBidDto';
57
66
  import { AddMatchedDeliveryDateDto } from './addMatchedDeliveryDateDto';
67
+ import { AssociatedCostDto } from './associatedCostDto';
58
68
  import { BulkAddRelistingDto } from './bulkAddRelistingDto';
59
69
  import { BulkAddTertiaryCostsDto } from './bulkAddTertiaryCostsDto';
70
+ import { BulkChangeFreightRatesDto } from './bulkChangeFreightRatesDto';
60
71
  import { BulkUpdateDeliveryDatesDto } from './bulkUpdateDeliveryDatesDto';
61
72
  import { BulkUpdateMatchedDeliveryDatesDto } from './bulkUpdateMatchedDeliveryDatesDto';
62
73
  import { CostAmountDto } from './costAmountDto';
74
+ import { CostAttributesDto } from './costAttributesDto';
75
+ import { CostAttributesDtoAssociated } from './costAttributesDtoAssociated';
76
+ import { CostAttributesDtoDefaultCost } from './costAttributesDtoDefaultCost';
63
77
  import { CostDto } from './costDto';
78
+ import { CostDtoAmount } from './costDtoAmount';
79
+ import { CostDtoAttributes } from './costDtoAttributes';
64
80
  import { CostDtoSource } from './costDtoSource';
81
+ import { CostSourceDto } from './costSourceDto';
65
82
  import { CreateAutomatedOfferDto } from './createAutomatedOfferDto';
66
83
  import { CreateMatchedOfferDto } from './createMatchedOfferDto';
67
84
  import { CreateMatchedOfferDtoAttributes } from './createMatchedOfferDtoAttributes';
@@ -70,6 +87,7 @@ import { CreateOfferDtoAttributes } from './createOfferDtoAttributes';
70
87
  import { CreateOfferDtoFormula } from './createOfferDtoFormula';
71
88
  import { CreateOfferDtoPacking } from './createOfferDtoPacking';
72
89
  import { CreateOfferDtoWeight } from './createOfferDtoWeight';
90
+ import { DefaultCostDto } from './defaultCostDto';
73
91
  import { FormulaDto } from './formulaDto';
74
92
  import { FormulaLineDto } from './formulaLineDto';
75
93
  import { GeneralAddressDto } from './generalAddressDto';
@@ -122,13 +140,21 @@ let enumsMap: {[index: string]: any} = {
122
140
  let typeMap: {[index: string]: any} = {
123
141
  "AddFutureBidDto": AddFutureBidDto,
124
142
  "AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
143
+ "AssociatedCostDto": AssociatedCostDto,
125
144
  "BulkAddRelistingDto": BulkAddRelistingDto,
126
145
  "BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
146
+ "BulkChangeFreightRatesDto": BulkChangeFreightRatesDto,
127
147
  "BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
128
148
  "BulkUpdateMatchedDeliveryDatesDto": BulkUpdateMatchedDeliveryDatesDto,
129
149
  "CostAmountDto": CostAmountDto,
150
+ "CostAttributesDto": CostAttributesDto,
151
+ "CostAttributesDtoAssociated": CostAttributesDtoAssociated,
152
+ "CostAttributesDtoDefaultCost": CostAttributesDtoDefaultCost,
130
153
  "CostDto": CostDto,
154
+ "CostDtoAmount": CostDtoAmount,
155
+ "CostDtoAttributes": CostDtoAttributes,
131
156
  "CostDtoSource": CostDtoSource,
157
+ "CostSourceDto": CostSourceDto,
132
158
  "CreateAutomatedOfferDto": CreateAutomatedOfferDto,
133
159
  "CreateMatchedOfferDto": CreateMatchedOfferDto,
134
160
  "CreateMatchedOfferDtoAttributes": CreateMatchedOfferDtoAttributes,
@@ -137,6 +163,7 @@ let typeMap: {[index: string]: any} = {
137
163
  "CreateOfferDtoFormula": CreateOfferDtoFormula,
138
164
  "CreateOfferDtoPacking": CreateOfferDtoPacking,
139
165
  "CreateOfferDtoWeight": CreateOfferDtoWeight,
166
+ "DefaultCostDto": DefaultCostDto,
140
167
  "FormulaDto": FormulaDto,
141
168
  "FormulaLineDto": FormulaLineDto,
142
169
  "GeneralAddressDto": GeneralAddressDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradecafe/offer-service-sdk",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "NodeJS client for @tradecafe/offer-service-sdk",
5
5
  "repository": {
6
6
  "type": "git",