@tradecafe/offer-service-sdk 0.0.48 → 0.0.50

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/automatedOffersApi.ts +76 -0
  3. package/dist/api/automatedOffersApi.d.ts +9 -0
  4. package/dist/api/automatedOffersApi.js +106 -36
  5. package/dist/api/automatedOffersApi.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/bulkUpdateMatchedDeliveryDatesDto.d.ts +15 -0
  10. package/dist/model/bulkUpdateMatchedDeliveryDatesDto.js +26 -0
  11. package/dist/model/bulkUpdateMatchedDeliveryDatesDto.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/bulkUpdateMatchedDeliveryDatesDto.ts +43 -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,12 +2,20 @@ 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';
7
8
  export * from './bulkUpdateDeliveryDatesDto';
9
+ export * from './bulkUpdateMatchedDeliveryDatesDto';
8
10
  export * from './costAmountDto';
11
+ export * from './costAttributesDto';
12
+ export * from './costAttributesDtoAssociated';
13
+ export * from './costAttributesDtoDefaultCost';
9
14
  export * from './costDto';
15
+ export * from './costDtoAmount';
16
+ export * from './costDtoAttributes';
10
17
  export * from './costDtoSource';
18
+ export * from './costSourceDto';
11
19
  export * from './createAutomatedOfferDto';
12
20
  export * from './createMatchedOfferDto';
13
21
  export * from './createMatchedOfferDtoAttributes';
@@ -16,6 +24,7 @@ export * from './createOfferDtoAttributes';
16
24
  export * from './createOfferDtoFormula';
17
25
  export * from './createOfferDtoPacking';
18
26
  export * from './createOfferDtoWeight';
27
+ export * from './defaultCostDto';
19
28
  export * from './formulaDto';
20
29
  export * from './formulaLineDto';
21
30
  export * from './generalAddressDto';
@@ -54,12 +63,20 @@ export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
54
63
 
55
64
  import { AddFutureBidDto } from './addFutureBidDto';
56
65
  import { AddMatchedDeliveryDateDto } from './addMatchedDeliveryDateDto';
66
+ import { AssociatedCostDto } from './associatedCostDto';
57
67
  import { BulkAddRelistingDto } from './bulkAddRelistingDto';
58
68
  import { BulkAddTertiaryCostsDto } from './bulkAddTertiaryCostsDto';
59
69
  import { BulkUpdateDeliveryDatesDto } from './bulkUpdateDeliveryDatesDto';
70
+ import { BulkUpdateMatchedDeliveryDatesDto } from './bulkUpdateMatchedDeliveryDatesDto';
60
71
  import { CostAmountDto } from './costAmountDto';
72
+ import { CostAttributesDto } from './costAttributesDto';
73
+ import { CostAttributesDtoAssociated } from './costAttributesDtoAssociated';
74
+ import { CostAttributesDtoDefaultCost } from './costAttributesDtoDefaultCost';
61
75
  import { CostDto } from './costDto';
76
+ import { CostDtoAmount } from './costDtoAmount';
77
+ import { CostDtoAttributes } from './costDtoAttributes';
62
78
  import { CostDtoSource } from './costDtoSource';
79
+ import { CostSourceDto } from './costSourceDto';
63
80
  import { CreateAutomatedOfferDto } from './createAutomatedOfferDto';
64
81
  import { CreateMatchedOfferDto } from './createMatchedOfferDto';
65
82
  import { CreateMatchedOfferDtoAttributes } from './createMatchedOfferDtoAttributes';
@@ -68,6 +85,7 @@ import { CreateOfferDtoAttributes } from './createOfferDtoAttributes';
68
85
  import { CreateOfferDtoFormula } from './createOfferDtoFormula';
69
86
  import { CreateOfferDtoPacking } from './createOfferDtoPacking';
70
87
  import { CreateOfferDtoWeight } from './createOfferDtoWeight';
88
+ import { DefaultCostDto } from './defaultCostDto';
71
89
  import { FormulaDto } from './formulaDto';
72
90
  import { FormulaLineDto } from './formulaLineDto';
73
91
  import { GeneralAddressDto } from './generalAddressDto';
@@ -120,12 +138,20 @@ let enumsMap: {[index: string]: any} = {
120
138
  let typeMap: {[index: string]: any} = {
121
139
  "AddFutureBidDto": AddFutureBidDto,
122
140
  "AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
141
+ "AssociatedCostDto": AssociatedCostDto,
123
142
  "BulkAddRelistingDto": BulkAddRelistingDto,
124
143
  "BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
125
144
  "BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
145
+ "BulkUpdateMatchedDeliveryDatesDto": BulkUpdateMatchedDeliveryDatesDto,
126
146
  "CostAmountDto": CostAmountDto,
147
+ "CostAttributesDto": CostAttributesDto,
148
+ "CostAttributesDtoAssociated": CostAttributesDtoAssociated,
149
+ "CostAttributesDtoDefaultCost": CostAttributesDtoDefaultCost,
127
150
  "CostDto": CostDto,
151
+ "CostDtoAmount": CostDtoAmount,
152
+ "CostDtoAttributes": CostDtoAttributes,
128
153
  "CostDtoSource": CostDtoSource,
154
+ "CostSourceDto": CostSourceDto,
129
155
  "CreateAutomatedOfferDto": CreateAutomatedOfferDto,
130
156
  "CreateMatchedOfferDto": CreateMatchedOfferDto,
131
157
  "CreateMatchedOfferDtoAttributes": CreateMatchedOfferDtoAttributes,
@@ -134,6 +160,7 @@ let typeMap: {[index: string]: any} = {
134
160
  "CreateOfferDtoFormula": CreateOfferDtoFormula,
135
161
  "CreateOfferDtoPacking": CreateOfferDtoPacking,
136
162
  "CreateOfferDtoWeight": CreateOfferDtoWeight,
163
+ "DefaultCostDto": DefaultCostDto,
137
164
  "FormulaDto": FormulaDto,
138
165
  "FormulaLineDto": FormulaLineDto,
139
166
  "GeneralAddressDto": GeneralAddressDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradecafe/offer-service-sdk",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "NodeJS client for @tradecafe/offer-service-sdk",
5
5
  "repository": {
6
6
  "type": "git",