@tradecafe/offer-service-sdk 0.0.36 → 0.0.37

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 (86) hide show
  1. package/.openapi-generator/FILES +41 -38
  2. package/dist/api/apis.d.ts +20 -20
  3. package/dist/api/apis.js +56 -56
  4. package/dist/api/automatedOffersApi.d.ts +112 -112
  5. package/dist/api/automatedOffersApi.js +876 -876
  6. package/dist/api/futureBidsApi.d.ts +65 -65
  7. package/dist/api/futureBidsApi.js +456 -456
  8. package/dist/api/healthApi.d.ts +32 -32
  9. package/dist/api/healthApi.js +174 -174
  10. package/dist/api/matchedOffersApi.d.ts +177 -177
  11. package/dist/api/matchedOffersApi.js +1410 -1410
  12. package/dist/api/offersApi.d.ts +184 -184
  13. package/dist/api/offersApi.js +1469 -1469
  14. package/dist/api.d.ts +2 -2
  15. package/dist/api.js +18 -18
  16. package/dist/model/addFutureBidDto.d.ts +17 -17
  17. package/dist/model/addFutureBidDto.js +35 -35
  18. package/dist/model/createAutomatedOfferDto.d.ts +117 -115
  19. package/dist/model/createAutomatedOfferDto.js +396 -391
  20. package/dist/model/createAutomatedOfferDto.js.map +1 -1
  21. package/dist/model/createMatchedOfferDto.d.ts +83 -83
  22. package/dist/model/createMatchedOfferDto.js +310 -310
  23. package/dist/model/createOfferDto.d.ts +107 -105
  24. package/dist/model/createOfferDto.js +377 -372
  25. package/dist/model/createOfferDto.js.map +1 -1
  26. package/dist/model/createOfferDtoAttributes.d.ts +49 -49
  27. package/dist/model/createOfferDtoAttributes.js +159 -159
  28. package/dist/model/createOfferDtoFormula.d.ts +19 -19
  29. package/dist/model/createOfferDtoFormula.js +40 -40
  30. package/dist/model/createOfferDtoPacking.d.ts +17 -17
  31. package/dist/model/createOfferDtoPacking.js +35 -35
  32. package/dist/model/createOfferDtoWeight.d.ts +15 -15
  33. package/dist/model/createOfferDtoWeight.js +25 -25
  34. package/dist/model/formulaDto.d.ts +19 -19
  35. package/dist/model/formulaDto.js +40 -40
  36. package/dist/model/formulaLineDto.d.ts +17 -17
  37. package/dist/model/formulaLineDto.js +35 -35
  38. package/dist/model/generalAddressDto.d.ts +43 -43
  39. package/dist/model/generalAddressDto.js +165 -165
  40. package/dist/model/healthControllerPing200Response.d.ts +24 -24
  41. package/dist/model/healthControllerPing200Response.js +35 -35
  42. package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +10 -10
  43. package/dist/model/healthControllerPing200ResponseInfoValue.js +36 -36
  44. package/dist/model/healthControllerPing503Response.d.ts +24 -24
  45. package/dist/model/healthControllerPing503Response.js +35 -35
  46. package/dist/model/models.d.ts +74 -71
  47. package/dist/model/models.js +316 -307
  48. package/dist/model/models.js.map +1 -1
  49. package/dist/model/offerAttributesDto.d.ts +49 -49
  50. package/dist/model/offerAttributesDto.js +159 -159
  51. package/dist/model/offerAttributesDtoEstablishment.d.ts +43 -43
  52. package/dist/model/offerAttributesDtoEstablishment.js +165 -165
  53. package/dist/model/overwriteItemDto.d.ts +21 -0
  54. package/dist/model/overwriteItemDto.js +51 -0
  55. package/dist/model/overwriteItemDto.js.map +1 -0
  56. package/dist/model/overwriteItemDtoWeight.d.ts +14 -0
  57. package/dist/model/overwriteItemDtoWeight.js +21 -0
  58. package/dist/model/overwriteItemDtoWeight.js.map +1 -0
  59. package/dist/model/packing.d.ts +17 -17
  60. package/dist/model/packing.js +35 -35
  61. package/dist/model/pinActionDto.d.ts +14 -14
  62. package/dist/model/pinActionDto.js +20 -20
  63. package/dist/model/relistingConfigDto.d.ts +17 -17
  64. package/dist/model/relistingConfigDto.js +35 -35
  65. package/dist/model/relistingDetailDto.d.ts +31 -31
  66. package/dist/model/relistingDetailDto.js +62 -62
  67. package/dist/model/relistingDetailDtoRandomConfig.d.ts +19 -19
  68. package/dist/model/relistingDetailDtoRandomConfig.js +45 -45
  69. package/dist/model/relistingRandomConfigDto.d.ts +19 -19
  70. package/dist/model/relistingRandomConfigDto.js +45 -45
  71. package/dist/model/updateFutureBidDto.d.ts +17 -17
  72. package/dist/model/updateFutureBidDto.js +35 -35
  73. package/dist/model/userPin.d.ts +15 -15
  74. package/dist/model/userPin.js +25 -25
  75. package/dist/model/weight.d.ts +15 -15
  76. package/dist/model/weight.js +25 -25
  77. package/dist/model/weightDto.d.ts +14 -0
  78. package/dist/model/weightDto.js +21 -0
  79. package/dist/model/weightDto.js.map +1 -0
  80. package/model/createAutomatedOfferDto.ts +10 -0
  81. package/model/createOfferDto.ts +10 -0
  82. package/model/models.ts +9 -0
  83. package/model/overwriteItemDto.ts +86 -0
  84. package/model/overwriteItemDtoWeight.ts +38 -0
  85. package/model/weightDto.ts +34 -0
  86. package/package.json +1 -1
@@ -1,26 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserPin = void 0;
4
- var UserPin = (function () {
5
- function UserPin() {
6
- }
7
- UserPin.getAttributeTypeMap = function () {
8
- return UserPin.attributeTypeMap;
9
- };
10
- UserPin.discriminator = undefined;
11
- UserPin.attributeTypeMap = [
12
- {
13
- "name": "user_id",
14
- "baseName": "user_id",
15
- "type": "string"
16
- },
17
- {
18
- "name": "timestamp",
19
- "baseName": "timestamp",
20
- "type": "number"
21
- }
22
- ];
23
- return UserPin;
24
- }());
25
- exports.UserPin = UserPin;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserPin = void 0;
4
+ var UserPin = (function () {
5
+ function UserPin() {
6
+ }
7
+ UserPin.getAttributeTypeMap = function () {
8
+ return UserPin.attributeTypeMap;
9
+ };
10
+ UserPin.discriminator = undefined;
11
+ UserPin.attributeTypeMap = [
12
+ {
13
+ "name": "user_id",
14
+ "baseName": "user_id",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "timestamp",
19
+ "baseName": "timestamp",
20
+ "type": "number"
21
+ }
22
+ ];
23
+ return UserPin;
24
+ }());
25
+ exports.UserPin = UserPin;
26
26
  //# sourceMappingURL=userPin.js.map
@@ -1,15 +1,15 @@
1
- export declare class Weight {
2
- 'amount': number;
3
- 'unit': string;
4
- static discriminator: string | undefined;
5
- static attributeTypeMap: Array<{
6
- name: string;
7
- baseName: string;
8
- type: string;
9
- }>;
10
- static getAttributeTypeMap(): {
11
- name: string;
12
- baseName: string;
13
- type: string;
14
- }[];
15
- }
1
+ export declare class Weight {
2
+ 'amount': number;
3
+ 'unit': string;
4
+ static discriminator: string | undefined;
5
+ static attributeTypeMap: Array<{
6
+ name: string;
7
+ baseName: string;
8
+ type: string;
9
+ }>;
10
+ static getAttributeTypeMap(): {
11
+ name: string;
12
+ baseName: string;
13
+ type: string;
14
+ }[];
15
+ }
@@ -1,26 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Weight = void 0;
4
- var Weight = (function () {
5
- function Weight() {
6
- }
7
- Weight.getAttributeTypeMap = function () {
8
- return Weight.attributeTypeMap;
9
- };
10
- Weight.discriminator = undefined;
11
- Weight.attributeTypeMap = [
12
- {
13
- "name": "amount",
14
- "baseName": "amount",
15
- "type": "number"
16
- },
17
- {
18
- "name": "unit",
19
- "baseName": "unit",
20
- "type": "string"
21
- }
22
- ];
23
- return Weight;
24
- }());
25
- exports.Weight = Weight;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Weight = void 0;
4
+ var Weight = (function () {
5
+ function Weight() {
6
+ }
7
+ Weight.getAttributeTypeMap = function () {
8
+ return Weight.attributeTypeMap;
9
+ };
10
+ Weight.discriminator = undefined;
11
+ Weight.attributeTypeMap = [
12
+ {
13
+ "name": "amount",
14
+ "baseName": "amount",
15
+ "type": "number"
16
+ },
17
+ {
18
+ "name": "unit",
19
+ "baseName": "unit",
20
+ "type": "string"
21
+ }
22
+ ];
23
+ return Weight;
24
+ }());
25
+ exports.Weight = Weight;
26
26
  //# sourceMappingURL=weight.js.map
@@ -0,0 +1,14 @@
1
+ export declare class WeightDto {
2
+ 'unit': string;
3
+ static discriminator: string | undefined;
4
+ static attributeTypeMap: Array<{
5
+ name: string;
6
+ baseName: string;
7
+ type: string;
8
+ }>;
9
+ static getAttributeTypeMap(): {
10
+ name: string;
11
+ baseName: string;
12
+ type: string;
13
+ }[];
14
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WeightDto = void 0;
4
+ var WeightDto = (function () {
5
+ function WeightDto() {
6
+ }
7
+ WeightDto.getAttributeTypeMap = function () {
8
+ return WeightDto.attributeTypeMap;
9
+ };
10
+ WeightDto.discriminator = undefined;
11
+ WeightDto.attributeTypeMap = [
12
+ {
13
+ "name": "unit",
14
+ "baseName": "unit",
15
+ "type": "string"
16
+ }
17
+ ];
18
+ return WeightDto;
19
+ }());
20
+ exports.WeightDto = WeightDto;
21
+ //# sourceMappingURL=weightDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weightDto.js","sourceRoot":"","sources":["../../model/weightDto.ts"],"names":[],"mappings":";;;AAcA;IAAA;IAkBA,CAAC;IAHU,6BAAmB,GAA1B;QACI,OAAO,SAAS,CAAC,gBAAgB,CAAC;IACtC,CAAC;IAXM,uBAAa,GAAuB,SAAS,CAAC;IAE9C,0BAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,gBAAC;CAAA,AAlBD,IAkBC;AAlBY,8BAAS"}
@@ -15,6 +15,7 @@ import { CreateOfferDtoAttributes } from './createOfferDtoAttributes';
15
15
  import { CreateOfferDtoFormula } from './createOfferDtoFormula';
16
16
  import { CreateOfferDtoPacking } from './createOfferDtoPacking';
17
17
  import { CreateOfferDtoWeight } from './createOfferDtoWeight';
18
+ import { OverwriteItemDto } from './overwriteItemDto';
18
19
  import { RelistingDetailDto } from './relistingDetailDto';
19
20
 
20
21
  export class CreateAutomatedOfferDto {
@@ -267,6 +268,10 @@ export class CreateAutomatedOfferDto {
267
268
  */
268
269
  'mo_costs'?: Array<string>;
269
270
  /**
271
+ * Array for overwrites values
272
+ */
273
+ 'overwrites'?: Array<OverwriteItemDto>;
274
+ /**
270
275
  * Automated offer status
271
276
  */
272
277
  'automated_offer_status'?: CreateAutomatedOfferDto.AutomatedOfferStatusEnum = CreateAutomatedOfferDto.AutomatedOfferStatusEnum.NUMBER_0;
@@ -603,6 +608,11 @@ export class CreateAutomatedOfferDto {
603
608
  "baseName": "mo_costs",
604
609
  "type": "Array<string>"
605
610
  },
611
+ {
612
+ "name": "overwrites",
613
+ "baseName": "overwrites",
614
+ "type": "Array<OverwriteItemDto>"
615
+ },
606
616
  {
607
617
  "name": "automated_offer_status",
608
618
  "baseName": "automated_offer_status",
@@ -15,6 +15,7 @@ import { CreateOfferDtoAttributes } from './createOfferDtoAttributes';
15
15
  import { CreateOfferDtoFormula } from './createOfferDtoFormula';
16
16
  import { CreateOfferDtoPacking } from './createOfferDtoPacking';
17
17
  import { CreateOfferDtoWeight } from './createOfferDtoWeight';
18
+ import { OverwriteItemDto } from './overwriteItemDto';
18
19
 
19
20
  export class CreateOfferDto {
20
21
  /**
@@ -265,6 +266,10 @@ export class CreateOfferDto {
265
266
  * Array of matched offer cost IDs
266
267
  */
267
268
  'mo_costs'?: Array<string>;
269
+ /**
270
+ * Array for overwrites values
271
+ */
272
+ 'overwrites'?: Array<OverwriteItemDto>;
268
273
 
269
274
  static discriminator: string | undefined = undefined;
270
275
 
@@ -593,6 +598,11 @@ export class CreateOfferDto {
593
598
  "name": "mo_costs",
594
599
  "baseName": "mo_costs",
595
600
  "type": "Array<string>"
601
+ },
602
+ {
603
+ "name": "overwrites",
604
+ "baseName": "overwrites",
605
+ "type": "Array<OverwriteItemDto>"
596
606
  } ];
597
607
 
598
608
  static getAttributeTypeMap() {
package/model/models.ts CHANGED
@@ -16,6 +16,8 @@ export * from './healthControllerPing200ResponseInfoValue';
16
16
  export * from './healthControllerPing503Response';
17
17
  export * from './offerAttributesDto';
18
18
  export * from './offerAttributesDtoEstablishment';
19
+ export * from './overwriteItemDto';
20
+ export * from './overwriteItemDtoWeight';
19
21
  export * from './packing';
20
22
  export * from './pinActionDto';
21
23
  export * from './relistingConfigDto';
@@ -25,6 +27,7 @@ export * from './relistingRandomConfigDto';
25
27
  export * from './updateFutureBidDto';
26
28
  export * from './userPin';
27
29
  export * from './weight';
30
+ export * from './weightDto';
28
31
 
29
32
  import * as fs from 'fs';
30
33
 
@@ -55,6 +58,8 @@ import { HealthControllerPing200ResponseInfoValue } from './healthControllerPing
55
58
  import { HealthControllerPing503Response } from './healthControllerPing503Response';
56
59
  import { OfferAttributesDto } from './offerAttributesDto';
57
60
  import { OfferAttributesDtoEstablishment } from './offerAttributesDtoEstablishment';
61
+ import { OverwriteItemDto } from './overwriteItemDto';
62
+ import { OverwriteItemDtoWeight } from './overwriteItemDtoWeight';
58
63
  import { Packing } from './packing';
59
64
  import { PinActionDto } from './pinActionDto';
60
65
  import { RelistingConfigDto } from './relistingConfigDto';
@@ -64,6 +69,7 @@ import { RelistingRandomConfigDto } from './relistingRandomConfigDto';
64
69
  import { UpdateFutureBidDto } from './updateFutureBidDto';
65
70
  import { UserPin } from './userPin';
66
71
  import { Weight } from './weight';
72
+ import { WeightDto } from './weightDto';
67
73
 
68
74
  /* tslint:disable:no-unused-variable */
69
75
  let primitives = [
@@ -106,6 +112,8 @@ let typeMap: {[index: string]: any} = {
106
112
  "HealthControllerPing503Response": HealthControllerPing503Response,
107
113
  "OfferAttributesDto": OfferAttributesDto,
108
114
  "OfferAttributesDtoEstablishment": OfferAttributesDtoEstablishment,
115
+ "OverwriteItemDto": OverwriteItemDto,
116
+ "OverwriteItemDtoWeight": OverwriteItemDtoWeight,
109
117
  "Packing": Packing,
110
118
  "PinActionDto": PinActionDto,
111
119
  "RelistingConfigDto": RelistingConfigDto,
@@ -115,6 +123,7 @@ let typeMap: {[index: string]: any} = {
115
123
  "UpdateFutureBidDto": UpdateFutureBidDto,
116
124
  "UserPin": UserPin,
117
125
  "Weight": Weight,
126
+ "WeightDto": WeightDto,
118
127
  }
119
128
 
120
129
  export class ObjectSerializer {
@@ -0,0 +1,86 @@
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 { OverwriteItemDtoWeight } from './overwriteItemDtoWeight';
15
+
16
+ export class OverwriteItemDto {
17
+ /**
18
+ * Account of buyer
19
+ */
20
+ 'buyer'?: string;
21
+ /**
22
+ * Overwrites Price
23
+ */
24
+ 'price': number;
25
+ /**
26
+ * Shipment overwrites end date (Unix timestamp)
27
+ */
28
+ 'ship_end': number;
29
+ /**
30
+ * Shipment overwrites start date (Unix timestamp)
31
+ */
32
+ 'ship_start': number;
33
+ /**
34
+ * Overwrite delivery ID
35
+ */
36
+ 'delivery'?: string;
37
+ /**
38
+ * Overwrite Currency code (uppercase)
39
+ */
40
+ 'currency': string;
41
+ 'weight': OverwriteItemDtoWeight;
42
+
43
+ static discriminator: string | undefined = undefined;
44
+
45
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
46
+ {
47
+ "name": "buyer",
48
+ "baseName": "buyer",
49
+ "type": "string"
50
+ },
51
+ {
52
+ "name": "price",
53
+ "baseName": "price",
54
+ "type": "number"
55
+ },
56
+ {
57
+ "name": "ship_end",
58
+ "baseName": "ship_end",
59
+ "type": "number"
60
+ },
61
+ {
62
+ "name": "ship_start",
63
+ "baseName": "ship_start",
64
+ "type": "number"
65
+ },
66
+ {
67
+ "name": "delivery",
68
+ "baseName": "delivery",
69
+ "type": "string"
70
+ },
71
+ {
72
+ "name": "currency",
73
+ "baseName": "currency",
74
+ "type": "string"
75
+ },
76
+ {
77
+ "name": "weight",
78
+ "baseName": "weight",
79
+ "type": "OverwriteItemDtoWeight"
80
+ } ];
81
+
82
+ static getAttributeTypeMap() {
83
+ return OverwriteItemDto.attributeTypeMap;
84
+ }
85
+ }
86
+
@@ -0,0 +1,38 @@
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 { WeightDto } from './weightDto';
15
+
16
+ /**
17
+ * Overwrites Weight information
18
+ */
19
+ export class OverwriteItemDtoWeight {
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": "unit",
30
+ "baseName": "unit",
31
+ "type": "string"
32
+ } ];
33
+
34
+ static getAttributeTypeMap() {
35
+ return OverwriteItemDtoWeight.attributeTypeMap;
36
+ }
37
+ }
38
+
@@ -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 WeightDto {
16
+ /**
17
+ * Weight unit
18
+ */
19
+ 'unit': string;
20
+
21
+ static discriminator: string | undefined = undefined;
22
+
23
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24
+ {
25
+ "name": "unit",
26
+ "baseName": "unit",
27
+ "type": "string"
28
+ } ];
29
+
30
+ static getAttributeTypeMap() {
31
+ return WeightDto.attributeTypeMap;
32
+ }
33
+ }
34
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradecafe/offer-service-sdk",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "NodeJS client for @tradecafe/offer-service-sdk",
5
5
  "repository": {
6
6
  "type": "git",