@tradecafe/offer-service-sdk 0.0.58 → 0.0.63

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 (176) hide show
  1. package/.openapi-generator/FILES +77 -69
  2. package/api/apis.ts +3 -1
  3. package/api/matchedOffersApi.ts +260 -0
  4. package/api/promoTextsApi.ts +426 -0
  5. package/dist/api/apis.d.ts +22 -20
  6. package/dist/api/apis.js +58 -56
  7. package/dist/api/apis.js.map +1 -1
  8. package/dist/api/automatedOffersApi.d.ts +156 -156
  9. package/dist/api/automatedOffersApi.js +1218 -1218
  10. package/dist/api/futureBidsApi.d.ts +65 -65
  11. package/dist/api/futureBidsApi.js +456 -456
  12. package/dist/api/healthApi.d.ts +32 -32
  13. package/dist/api/healthApi.js +174 -174
  14. package/dist/api/matchedOffersApi.d.ts +301 -267
  15. package/dist/api/matchedOffersApi.js +2330 -2074
  16. package/dist/api/matchedOffersApi.js.map +1 -1
  17. package/dist/api/offersApi.d.ts +200 -200
  18. package/dist/api/offersApi.js +1605 -1605
  19. package/dist/api/promoTextsApi.d.ts +67 -0
  20. package/dist/api/promoTextsApi.js +436 -0
  21. package/dist/api/promoTextsApi.js.map +1 -0
  22. package/dist/api.d.ts +2 -2
  23. package/dist/api.js +18 -18
  24. package/dist/model/addFutureBidDto.d.ts +17 -17
  25. package/dist/model/addFutureBidDto.js +35 -35
  26. package/dist/model/addMatchedDeliveryDateDto.d.ts +14 -14
  27. package/dist/model/addMatchedDeliveryDateDto.js +20 -20
  28. package/dist/model/archivePromoTextDto.d.ts +14 -0
  29. package/dist/model/archivePromoTextDto.js +21 -0
  30. package/dist/model/archivePromoTextDto.js.map +1 -0
  31. package/dist/model/associatedCostDto.d.ts +16 -16
  32. package/dist/model/associatedCostDto.js +30 -30
  33. package/dist/model/bulkAddRelistingDto.d.ts +16 -16
  34. package/dist/model/bulkAddRelistingDto.js +25 -25
  35. package/dist/model/bulkAddTertiaryCostsDto.d.ts +16 -16
  36. package/dist/model/bulkAddTertiaryCostsDto.js +25 -25
  37. package/dist/model/bulkCancelPromotionDto.d.ts +16 -0
  38. package/dist/model/bulkCancelPromotionDto.js +31 -0
  39. package/dist/model/bulkCancelPromotionDto.js.map +1 -0
  40. package/dist/model/bulkChangeDestinationLocationDto.d.ts +16 -16
  41. package/dist/model/bulkChangeDestinationLocationDto.js +30 -30
  42. package/dist/model/bulkChangeFreightRatesDto.d.ts +19 -19
  43. package/dist/model/bulkChangeFreightRatesDto.js +40 -40
  44. package/dist/model/bulkChangeIncotermDto.d.ts +16 -16
  45. package/dist/model/bulkChangeIncotermDto.js +30 -30
  46. package/dist/model/bulkChangeSellPriceItemDto.d.ts +20 -20
  47. package/dist/model/bulkChangeSellPriceItemDto.js +45 -45
  48. package/dist/model/bulkChangeSellPricesDto.d.ts +23 -23
  49. package/dist/model/bulkChangeSellPricesDto.js +55 -55
  50. package/dist/model/bulkChangeSellingTraderDto.d.ts +16 -16
  51. package/dist/model/bulkChangeSellingTraderDto.js +30 -30
  52. package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.d.ts +15 -15
  53. package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.js +25 -25
  54. package/dist/model/bulkPromoteDto.d.ts +17 -0
  55. package/dist/model/bulkPromoteDto.js +36 -0
  56. package/dist/model/bulkPromoteDto.js.map +1 -0
  57. package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.d.ts +19 -19
  58. package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js +45 -45
  59. package/dist/model/bulkUpdateDeliveryDatesDto.d.ts +16 -16
  60. package/dist/model/bulkUpdateDeliveryDatesDto.js +30 -30
  61. package/dist/model/bulkUpdateDocsCountryDto.d.ts +16 -16
  62. package/dist/model/bulkUpdateDocsCountryDto.js +30 -30
  63. package/dist/model/bulkUpdateMatchedDeliveryDatesDto.d.ts +15 -15
  64. package/dist/model/bulkUpdateMatchedDeliveryDatesDto.js +25 -25
  65. package/dist/model/costAmountDto.d.ts +17 -17
  66. package/dist/model/costAmountDto.js +35 -35
  67. package/dist/model/costAttributesDto.d.ts +32 -32
  68. package/dist/model/costAttributesDto.js +100 -100
  69. package/dist/model/costAttributesDtoAssociated.d.ts +16 -16
  70. package/dist/model/costAttributesDtoAssociated.js +30 -30
  71. package/dist/model/costAttributesDtoDefaultCost.d.ts +18 -18
  72. package/dist/model/costAttributesDtoDefaultCost.js +40 -40
  73. package/dist/model/costDto.d.ts +35 -35
  74. package/dist/model/costDto.js +110 -110
  75. package/dist/model/costDtoAmount.d.ts +17 -17
  76. package/dist/model/costDtoAmount.js +35 -35
  77. package/dist/model/costDtoAttributes.d.ts +32 -32
  78. package/dist/model/costDtoAttributes.js +100 -100
  79. package/dist/model/costDtoSource.d.ts +15 -15
  80. package/dist/model/costDtoSource.js +25 -25
  81. package/dist/model/costSourceDto.d.ts +15 -15
  82. package/dist/model/costSourceDto.js +25 -25
  83. package/dist/model/createAutomatedOfferDto.d.ts +125 -124
  84. package/dist/model/createAutomatedOfferDto.js +424 -419
  85. package/dist/model/createAutomatedOfferDto.js.map +1 -1
  86. package/dist/model/createMatchedOfferDto.d.ts +85 -85
  87. package/dist/model/createMatchedOfferDto.js +315 -315
  88. package/dist/model/createMatchedOfferDtoAttributes.d.ts +36 -34
  89. package/dist/model/createMatchedOfferDtoAttributes.js +104 -94
  90. package/dist/model/createMatchedOfferDtoAttributes.js.map +1 -1
  91. package/dist/model/createOfferDto.d.ts +112 -111
  92. package/dist/model/createOfferDto.js +402 -397
  93. package/dist/model/createOfferDto.js.map +1 -1
  94. package/dist/model/createOfferDtoAttributes.d.ts +52 -52
  95. package/dist/model/createOfferDtoAttributes.js +174 -174
  96. package/dist/model/createOfferDtoFormula.d.ts +19 -19
  97. package/dist/model/createOfferDtoFormula.js +40 -40
  98. package/dist/model/createOfferDtoPacking.d.ts +17 -17
  99. package/dist/model/createOfferDtoPacking.js +35 -35
  100. package/dist/model/createOfferDtoWeight.d.ts +15 -15
  101. package/dist/model/createOfferDtoWeight.js +25 -25
  102. package/dist/model/createPromoTextDto.d.ts +17 -0
  103. package/dist/model/createPromoTextDto.js +31 -0
  104. package/dist/model/createPromoTextDto.js.map +1 -0
  105. package/dist/model/defaultCostDto.d.ts +18 -18
  106. package/dist/model/defaultCostDto.js +40 -40
  107. package/dist/model/formulaDto.d.ts +19 -19
  108. package/dist/model/formulaDto.js +40 -40
  109. package/dist/model/formulaLineDto.d.ts +17 -17
  110. package/dist/model/formulaLineDto.js +35 -35
  111. package/dist/model/generalAddressDto.d.ts +43 -43
  112. package/dist/model/generalAddressDto.js +165 -165
  113. package/dist/model/healthControllerPing200Response.d.ts +24 -24
  114. package/dist/model/healthControllerPing200Response.js +35 -35
  115. package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +10 -10
  116. package/dist/model/healthControllerPing200ResponseInfoValue.js +36 -36
  117. package/dist/model/healthControllerPing503Response.d.ts +24 -24
  118. package/dist/model/healthControllerPing503Response.js +35 -35
  119. package/dist/model/matchedOfferAttributesDto.d.ts +36 -34
  120. package/dist/model/matchedOfferAttributesDto.js +104 -94
  121. package/dist/model/matchedOfferAttributesDto.js.map +1 -1
  122. package/dist/model/models.d.ts +109 -102
  123. package/dist/model/models.js +424 -402
  124. package/dist/model/models.js.map +1 -1
  125. package/dist/model/offerAttributesDto.d.ts +52 -52
  126. package/dist/model/offerAttributesDto.js +174 -174
  127. package/dist/model/offerAttributesDtoEstablishment.d.ts +43 -43
  128. package/dist/model/offerAttributesDtoEstablishment.js +165 -165
  129. package/dist/model/overwriteItemDto.d.ts +22 -22
  130. package/dist/model/overwriteItemDto.js +55 -55
  131. package/dist/model/overwriteItemDtoWeight.d.ts +14 -14
  132. package/dist/model/overwriteItemDtoWeight.js +20 -20
  133. package/dist/model/packing.d.ts +17 -17
  134. package/dist/model/packing.js +35 -35
  135. package/dist/model/pinActionDto.d.ts +14 -14
  136. package/dist/model/pinActionDto.js +20 -20
  137. package/dist/model/promoTextPairDto.d.ts +24 -0
  138. package/dist/model/promoTextPairDto.js +41 -0
  139. package/dist/model/promoTextPairDto.js.map +1 -0
  140. package/dist/model/relistingConfigDto.d.ts +17 -17
  141. package/dist/model/relistingConfigDto.js +35 -35
  142. package/dist/model/relistingDetailDto.d.ts +31 -31
  143. package/dist/model/relistingDetailDto.js +62 -62
  144. package/dist/model/relistingDetailDtoRandomConfig.d.ts +19 -19
  145. package/dist/model/relistingDetailDtoRandomConfig.js +45 -45
  146. package/dist/model/relistingRandomConfigDto.d.ts +19 -19
  147. package/dist/model/relistingRandomConfigDto.js +45 -45
  148. package/dist/model/searchPromoTextDto.d.ts +15 -0
  149. package/dist/model/searchPromoTextDto.js +26 -0
  150. package/dist/model/searchPromoTextDto.js.map +1 -0
  151. package/dist/model/updateFutureBidDto.d.ts +17 -17
  152. package/dist/model/updateFutureBidDto.js +35 -35
  153. package/dist/model/updateMatchedDeliveryDateDto.d.ts +15 -15
  154. package/dist/model/updateMatchedDeliveryDateDto.js +25 -25
  155. package/dist/model/updatePromoTextDto.d.ts +17 -0
  156. package/dist/model/updatePromoTextDto.js +31 -0
  157. package/dist/model/updatePromoTextDto.js.map +1 -0
  158. package/dist/model/userPin.d.ts +15 -15
  159. package/dist/model/userPin.js +25 -25
  160. package/dist/model/weight.d.ts +15 -15
  161. package/dist/model/weight.js +25 -25
  162. package/dist/model/weightDto.d.ts +14 -14
  163. package/dist/model/weightDto.js +20 -20
  164. package/model/archivePromoTextDto.ts +34 -0
  165. package/model/bulkCancelPromotionDto.ts +49 -0
  166. package/model/bulkPromoteDto.ts +55 -0
  167. package/model/createAutomatedOfferDto.ts +9 -0
  168. package/model/createMatchedOfferDtoAttributes.ts +18 -0
  169. package/model/createOfferDto.ts +9 -0
  170. package/model/createPromoTextDto.ts +53 -0
  171. package/model/matchedOfferAttributesDto.ts +18 -0
  172. package/model/models.ts +22 -0
  173. package/model/promoTextPairDto.ts +60 -0
  174. package/model/searchPromoTextDto.ts +43 -0
  175. package/model/updatePromoTextDto.ts +47 -0
  176. package/package.json +1 -1
@@ -0,0 +1,49 @@
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 BulkCancelPromotionDto {
16
+ 'ids'?: Array<string>;
17
+ /**
18
+ * Cancels every live promotion in this campaign
19
+ */
20
+ 'promotion_id'?: string;
21
+ /**
22
+ * Acting user; recorded as the cancelor on every promotion
23
+ */
24
+ 'user_id': string;
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": "promotion_id",
36
+ "baseName": "promotion_id",
37
+ "type": "string"
38
+ },
39
+ {
40
+ "name": "user_id",
41
+ "baseName": "user_id",
42
+ "type": "string"
43
+ } ];
44
+
45
+ static getAttributeTypeMap() {
46
+ return BulkCancelPromotionDto.attributeTypeMap;
47
+ }
48
+ }
49
+
@@ -0,0 +1,55 @@
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 BulkPromoteDto {
16
+ 'ids': Array<string>;
17
+ /**
18
+ * Promo text the trader picked; must not be archived
19
+ */
20
+ 'promo_text_id': string;
21
+ /**
22
+ * The language pair chosen within that promo text
23
+ */
24
+ 'pair_id': string;
25
+ 'user_id': string;
26
+
27
+ static discriminator: string | undefined = undefined;
28
+
29
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
30
+ {
31
+ "name": "ids",
32
+ "baseName": "ids",
33
+ "type": "Array<string>"
34
+ },
35
+ {
36
+ "name": "promo_text_id",
37
+ "baseName": "promo_text_id",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "name": "pair_id",
42
+ "baseName": "pair_id",
43
+ "type": "string"
44
+ },
45
+ {
46
+ "name": "user_id",
47
+ "baseName": "user_id",
48
+ "type": "string"
49
+ } ];
50
+
51
+ static getAttributeTypeMap() {
52
+ return BulkPromoteDto.attributeTypeMap;
53
+ }
54
+ }
55
+
@@ -244,6 +244,10 @@ export class CreateAutomatedOfferDto {
244
244
  */
245
245
  'product_pic_file_id'?: string;
246
246
  /**
247
+ * Which of attachment_file_ids is the tech spec. Never the same file as product_pic_file_id.
248
+ */
249
+ 'tech_spec_file_id'?: string;
250
+ /**
247
251
  * Skip cost matching flag
248
252
  */
249
253
  'skip_cost_matching'?: boolean;
@@ -594,6 +598,11 @@ export class CreateAutomatedOfferDto {
594
598
  "baseName": "product_pic_file_id",
595
599
  "type": "string"
596
600
  },
601
+ {
602
+ "name": "tech_spec_file_id",
603
+ "baseName": "tech_spec_file_id",
604
+ "type": "string"
605
+ },
597
606
  {
598
607
  "name": "skip_cost_matching",
599
608
  "baseName": "skip_cost_matching",
@@ -46,6 +46,14 @@ export class CreateMatchedOfferDtoAttributes {
46
46
  */
47
47
  'supplier_anticipated_liability'?: number;
48
48
  /**
49
+ * Supplier balance liability (Unix timestamp)
50
+ */
51
+ 'supplier_balance_liability_date'?: number;
52
+ /**
53
+ * Whether supplier anticipated liability is weighted
54
+ */
55
+ 'supplier_anticipated_liability_is_weighted'?: boolean;
56
+ /**
49
57
  * Supplier liability date (Unix timestamp)
50
58
  */
51
59
  'supplier_liability_date'?: number;
@@ -112,6 +120,16 @@ export class CreateMatchedOfferDtoAttributes {
112
120
  "baseName": "supplier_anticipated_liability",
113
121
  "type": "number"
114
122
  },
123
+ {
124
+ "name": "supplier_balance_liability_date",
125
+ "baseName": "supplier_balance_liability_date",
126
+ "type": "number"
127
+ },
128
+ {
129
+ "name": "supplier_anticipated_liability_is_weighted",
130
+ "baseName": "supplier_anticipated_liability_is_weighted",
131
+ "type": "boolean"
132
+ },
115
133
  {
116
134
  "name": "supplier_liability_date",
117
135
  "baseName": "supplier_liability_date",
@@ -243,6 +243,10 @@ export class CreateOfferDto {
243
243
  */
244
244
  'product_pic_file_id'?: string;
245
245
  /**
246
+ * Which of attachment_file_ids is the tech spec. Never the same file as product_pic_file_id.
247
+ */
248
+ 'tech_spec_file_id'?: string;
249
+ /**
246
250
  * Skip cost matching flag
247
251
  */
248
252
  'skip_cost_matching'?: boolean;
@@ -585,6 +589,11 @@ export class CreateOfferDto {
585
589
  "baseName": "product_pic_file_id",
586
590
  "type": "string"
587
591
  },
592
+ {
593
+ "name": "tech_spec_file_id",
594
+ "baseName": "tech_spec_file_id",
595
+ "type": "string"
596
+ },
588
597
  {
589
598
  "name": "skip_cost_matching",
590
599
  "baseName": "skip_cost_matching",
@@ -0,0 +1,53 @@
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 { PromoTextPairDto } from './promoTextPairDto';
15
+
16
+ export class CreatePromoTextDto {
17
+ /**
18
+ * Canonical English name, shown in the trader dropdown
19
+ */
20
+ 'name': string;
21
+ /**
22
+ * Language pairs. When omitted, the first pair is seeded from the name in English.
23
+ */
24
+ 'texts'?: Array<PromoTextPairDto>;
25
+ /**
26
+ * Acting user, supplied by the auctioneer
27
+ */
28
+ 'user_id': string;
29
+
30
+ static discriminator: string | undefined = undefined;
31
+
32
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
33
+ {
34
+ "name": "name",
35
+ "baseName": "name",
36
+ "type": "string"
37
+ },
38
+ {
39
+ "name": "texts",
40
+ "baseName": "texts",
41
+ "type": "Array<PromoTextPairDto>"
42
+ },
43
+ {
44
+ "name": "user_id",
45
+ "baseName": "user_id",
46
+ "type": "string"
47
+ } ];
48
+
49
+ static getAttributeTypeMap() {
50
+ return CreatePromoTextDto.attributeTypeMap;
51
+ }
52
+ }
53
+
@@ -42,6 +42,14 @@ export class MatchedOfferAttributesDto {
42
42
  */
43
43
  'supplier_anticipated_liability'?: number;
44
44
  /**
45
+ * Supplier balance liability (Unix timestamp)
46
+ */
47
+ 'supplier_balance_liability_date'?: number;
48
+ /**
49
+ * Whether supplier anticipated liability is weighted
50
+ */
51
+ 'supplier_anticipated_liability_is_weighted'?: boolean;
52
+ /**
45
53
  * Supplier liability date (Unix timestamp)
46
54
  */
47
55
  'supplier_liability_date'?: number;
@@ -108,6 +116,16 @@ export class MatchedOfferAttributesDto {
108
116
  "baseName": "supplier_anticipated_liability",
109
117
  "type": "number"
110
118
  },
119
+ {
120
+ "name": "supplier_balance_liability_date",
121
+ "baseName": "supplier_balance_liability_date",
122
+ "type": "number"
123
+ },
124
+ {
125
+ "name": "supplier_anticipated_liability_is_weighted",
126
+ "baseName": "supplier_anticipated_liability_is_weighted",
127
+ "type": "boolean"
128
+ },
111
129
  {
112
130
  "name": "supplier_liability_date",
113
131
  "baseName": "supplier_liability_date",
package/model/models.ts CHANGED
@@ -2,9 +2,11 @@ import localVarRequest from 'request';
2
2
 
3
3
  export * from './addFutureBidDto';
4
4
  export * from './addMatchedDeliveryDateDto';
5
+ export * from './archivePromoTextDto';
5
6
  export * from './associatedCostDto';
6
7
  export * from './bulkAddRelistingDto';
7
8
  export * from './bulkAddTertiaryCostsDto';
9
+ export * from './bulkCancelPromotionDto';
8
10
  export * from './bulkChangeDestinationLocationDto';
9
11
  export * from './bulkChangeFreightRatesDto';
10
12
  export * from './bulkChangeIncotermDto';
@@ -12,6 +14,7 @@ export * from './bulkChangeSellPriceItemDto';
12
14
  export * from './bulkChangeSellPricesDto';
13
15
  export * from './bulkChangeSellingTraderDto';
14
16
  export * from './bulkDeleteBuyerSpecialInstructionsDto';
17
+ export * from './bulkPromoteDto';
15
18
  export * from './bulkUpdateBuyerSpecialInstructionsDto';
16
19
  export * from './bulkUpdateDeliveryDatesDto';
17
20
  export * from './bulkUpdateDocsCountryDto';
@@ -33,6 +36,7 @@ export * from './createOfferDtoAttributes';
33
36
  export * from './createOfferDtoFormula';
34
37
  export * from './createOfferDtoPacking';
35
38
  export * from './createOfferDtoWeight';
39
+ export * from './createPromoTextDto';
36
40
  export * from './defaultCostDto';
37
41
  export * from './formulaDto';
38
42
  export * from './formulaLineDto';
@@ -47,12 +51,15 @@ export * from './overwriteItemDto';
47
51
  export * from './overwriteItemDtoWeight';
48
52
  export * from './packing';
49
53
  export * from './pinActionDto';
54
+ export * from './promoTextPairDto';
50
55
  export * from './relistingConfigDto';
51
56
  export * from './relistingDetailDto';
52
57
  export * from './relistingDetailDtoRandomConfig';
53
58
  export * from './relistingRandomConfigDto';
59
+ export * from './searchPromoTextDto';
54
60
  export * from './updateFutureBidDto';
55
61
  export * from './updateMatchedDeliveryDateDto';
62
+ export * from './updatePromoTextDto';
56
63
  export * from './userPin';
57
64
  export * from './weight';
58
65
  export * from './weightDto';
@@ -72,9 +79,11 @@ export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
72
79
 
73
80
  import { AddFutureBidDto } from './addFutureBidDto';
74
81
  import { AddMatchedDeliveryDateDto } from './addMatchedDeliveryDateDto';
82
+ import { ArchivePromoTextDto } from './archivePromoTextDto';
75
83
  import { AssociatedCostDto } from './associatedCostDto';
76
84
  import { BulkAddRelistingDto } from './bulkAddRelistingDto';
77
85
  import { BulkAddTertiaryCostsDto } from './bulkAddTertiaryCostsDto';
86
+ import { BulkCancelPromotionDto } from './bulkCancelPromotionDto';
78
87
  import { BulkChangeDestinationLocationDto } from './bulkChangeDestinationLocationDto';
79
88
  import { BulkChangeFreightRatesDto } from './bulkChangeFreightRatesDto';
80
89
  import { BulkChangeIncotermDto } from './bulkChangeIncotermDto';
@@ -82,6 +91,7 @@ import { BulkChangeSellPriceItemDto } from './bulkChangeSellPriceItemDto';
82
91
  import { BulkChangeSellPricesDto } from './bulkChangeSellPricesDto';
83
92
  import { BulkChangeSellingTraderDto } from './bulkChangeSellingTraderDto';
84
93
  import { BulkDeleteBuyerSpecialInstructionsDto } from './bulkDeleteBuyerSpecialInstructionsDto';
94
+ import { BulkPromoteDto } from './bulkPromoteDto';
85
95
  import { BulkUpdateBuyerSpecialInstructionsDto } from './bulkUpdateBuyerSpecialInstructionsDto';
86
96
  import { BulkUpdateDeliveryDatesDto } from './bulkUpdateDeliveryDatesDto';
87
97
  import { BulkUpdateDocsCountryDto } from './bulkUpdateDocsCountryDto';
@@ -103,6 +113,7 @@ import { CreateOfferDtoAttributes } from './createOfferDtoAttributes';
103
113
  import { CreateOfferDtoFormula } from './createOfferDtoFormula';
104
114
  import { CreateOfferDtoPacking } from './createOfferDtoPacking';
105
115
  import { CreateOfferDtoWeight } from './createOfferDtoWeight';
116
+ import { CreatePromoTextDto } from './createPromoTextDto';
106
117
  import { DefaultCostDto } from './defaultCostDto';
107
118
  import { FormulaDto } from './formulaDto';
108
119
  import { FormulaLineDto } from './formulaLineDto';
@@ -117,12 +128,15 @@ import { OverwriteItemDto } from './overwriteItemDto';
117
128
  import { OverwriteItemDtoWeight } from './overwriteItemDtoWeight';
118
129
  import { Packing } from './packing';
119
130
  import { PinActionDto } from './pinActionDto';
131
+ import { PromoTextPairDto } from './promoTextPairDto';
120
132
  import { RelistingConfigDto } from './relistingConfigDto';
121
133
  import { RelistingDetailDto } from './relistingDetailDto';
122
134
  import { RelistingDetailDtoRandomConfig } from './relistingDetailDtoRandomConfig';
123
135
  import { RelistingRandomConfigDto } from './relistingRandomConfigDto';
136
+ import { SearchPromoTextDto } from './searchPromoTextDto';
124
137
  import { UpdateFutureBidDto } from './updateFutureBidDto';
125
138
  import { UpdateMatchedDeliveryDateDto } from './updateMatchedDeliveryDateDto';
139
+ import { UpdatePromoTextDto } from './updatePromoTextDto';
126
140
  import { UserPin } from './userPin';
127
141
  import { Weight } from './weight';
128
142
  import { WeightDto } from './weightDto';
@@ -150,15 +164,18 @@ let enumsMap: {[index: string]: any} = {
150
164
  "CreateOfferDtoAttributes.DeliveryPreferenceEnum": CreateOfferDtoAttributes.DeliveryPreferenceEnum,
151
165
  "MatchedOfferAttributesDto.DeliveryPreferenceEnum": MatchedOfferAttributesDto.DeliveryPreferenceEnum,
152
166
  "OfferAttributesDto.DeliveryPreferenceEnum": OfferAttributesDto.DeliveryPreferenceEnum,
167
+ "PromoTextPairDto.LanguageEnum": PromoTextPairDto.LanguageEnum,
153
168
  "RelistingDetailDto.StatusEnum": RelistingDetailDto.StatusEnum,
154
169
  }
155
170
 
156
171
  let typeMap: {[index: string]: any} = {
157
172
  "AddFutureBidDto": AddFutureBidDto,
158
173
  "AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
174
+ "ArchivePromoTextDto": ArchivePromoTextDto,
159
175
  "AssociatedCostDto": AssociatedCostDto,
160
176
  "BulkAddRelistingDto": BulkAddRelistingDto,
161
177
  "BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
178
+ "BulkCancelPromotionDto": BulkCancelPromotionDto,
162
179
  "BulkChangeDestinationLocationDto": BulkChangeDestinationLocationDto,
163
180
  "BulkChangeFreightRatesDto": BulkChangeFreightRatesDto,
164
181
  "BulkChangeIncotermDto": BulkChangeIncotermDto,
@@ -166,6 +183,7 @@ let typeMap: {[index: string]: any} = {
166
183
  "BulkChangeSellPricesDto": BulkChangeSellPricesDto,
167
184
  "BulkChangeSellingTraderDto": BulkChangeSellingTraderDto,
168
185
  "BulkDeleteBuyerSpecialInstructionsDto": BulkDeleteBuyerSpecialInstructionsDto,
186
+ "BulkPromoteDto": BulkPromoteDto,
169
187
  "BulkUpdateBuyerSpecialInstructionsDto": BulkUpdateBuyerSpecialInstructionsDto,
170
188
  "BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
171
189
  "BulkUpdateDocsCountryDto": BulkUpdateDocsCountryDto,
@@ -187,6 +205,7 @@ let typeMap: {[index: string]: any} = {
187
205
  "CreateOfferDtoFormula": CreateOfferDtoFormula,
188
206
  "CreateOfferDtoPacking": CreateOfferDtoPacking,
189
207
  "CreateOfferDtoWeight": CreateOfferDtoWeight,
208
+ "CreatePromoTextDto": CreatePromoTextDto,
190
209
  "DefaultCostDto": DefaultCostDto,
191
210
  "FormulaDto": FormulaDto,
192
211
  "FormulaLineDto": FormulaLineDto,
@@ -201,12 +220,15 @@ let typeMap: {[index: string]: any} = {
201
220
  "OverwriteItemDtoWeight": OverwriteItemDtoWeight,
202
221
  "Packing": Packing,
203
222
  "PinActionDto": PinActionDto,
223
+ "PromoTextPairDto": PromoTextPairDto,
204
224
  "RelistingConfigDto": RelistingConfigDto,
205
225
  "RelistingDetailDto": RelistingDetailDto,
206
226
  "RelistingDetailDtoRandomConfig": RelistingDetailDtoRandomConfig,
207
227
  "RelistingRandomConfigDto": RelistingRandomConfigDto,
228
+ "SearchPromoTextDto": SearchPromoTextDto,
208
229
  "UpdateFutureBidDto": UpdateFutureBidDto,
209
230
  "UpdateMatchedDeliveryDateDto": UpdateMatchedDeliveryDateDto,
231
+ "UpdatePromoTextDto": UpdatePromoTextDto,
210
232
  "UserPin": UserPin,
211
233
  "Weight": Weight,
212
234
  "WeightDto": WeightDto,
@@ -0,0 +1,60 @@
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 PromoTextPairDto {
16
+ /**
17
+ * Existing pair to update. Omitted for a new pair, which is assigned one.
18
+ */
19
+ 'pair_id'?: string;
20
+ /**
21
+ * Promo copy as the buyer sees it
22
+ */
23
+ 'text': string;
24
+ /**
25
+ * Vendor Portal locale
26
+ */
27
+ 'language': PromoTextPairDto.LanguageEnum;
28
+
29
+ static discriminator: string | undefined = undefined;
30
+
31
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
32
+ {
33
+ "name": "pair_id",
34
+ "baseName": "pair_id",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "text",
39
+ "baseName": "text",
40
+ "type": "string"
41
+ },
42
+ {
43
+ "name": "language",
44
+ "baseName": "language",
45
+ "type": "PromoTextPairDto.LanguageEnum"
46
+ } ];
47
+
48
+ static getAttributeTypeMap() {
49
+ return PromoTextPairDto.attributeTypeMap;
50
+ }
51
+ }
52
+
53
+ export namespace PromoTextPairDto {
54
+ export enum LanguageEnum {
55
+ En = <any> 'en',
56
+ EsMx = <any> 'es-mx',
57
+ FrCa = <any> 'fr-ca',
58
+ ZhCn = <any> 'zh-cn'
59
+ }
60
+ }
@@ -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 SearchPromoTextDto {
16
+ /**
17
+ * Archived promo texts. Defaults to false — the trader dropdown never shows them.
18
+ */
19
+ 'archived'?: boolean;
20
+ /**
21
+ * Case-insensitive match on the promo name
22
+ */
23
+ 'name'?: string;
24
+
25
+ static discriminator: string | undefined = undefined;
26
+
27
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28
+ {
29
+ "name": "archived",
30
+ "baseName": "archived",
31
+ "type": "boolean"
32
+ },
33
+ {
34
+ "name": "name",
35
+ "baseName": "name",
36
+ "type": "string"
37
+ } ];
38
+
39
+ static getAttributeTypeMap() {
40
+ return SearchPromoTextDto.attributeTypeMap;
41
+ }
42
+ }
43
+
@@ -0,0 +1,47 @@
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 { PromoTextPairDto } from './promoTextPairDto';
15
+
16
+ export class UpdatePromoTextDto {
17
+ 'name'?: string;
18
+ 'texts'?: Array<PromoTextPairDto>;
19
+ /**
20
+ * Acting user, supplied by the auctioneer
21
+ */
22
+ 'user_id': string;
23
+
24
+ static discriminator: string | undefined = undefined;
25
+
26
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
27
+ {
28
+ "name": "name",
29
+ "baseName": "name",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "texts",
34
+ "baseName": "texts",
35
+ "type": "Array<PromoTextPairDto>"
36
+ },
37
+ {
38
+ "name": "user_id",
39
+ "baseName": "user_id",
40
+ "type": "string"
41
+ } ];
42
+
43
+ static getAttributeTypeMap() {
44
+ return UpdatePromoTextDto.attributeTypeMap;
45
+ }
46
+ }
47
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradecafe/offer-service-sdk",
3
- "version": "0.0.58",
3
+ "version": "0.0.63",
4
4
  "description": "NodeJS client for @tradecafe/offer-service-sdk",
5
5
  "repository": {
6
6
  "type": "git",