@epilot/message-client 1.1.7 → 1.2.0

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 epilot GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/dist/client.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import { Client } from './openapi';
2
2
  export declare const getClient: () => Client;
3
+ export declare const createClient: () => Client;
package/dist/client.js CHANGED
@@ -14,16 +14,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.getClient = void 0;
17
+ exports.createClient = exports.getClient = void 0;
18
18
  var lambda_powertools_correlation_ids_1 = __importDefault(require("@dazn/lambda-powertools-correlation-ids"));
19
19
  var openapi_client_axios_1 = __importDefault(require("openapi-client-axios"));
20
20
  var definition_1 = __importDefault(require("./definition"));
21
+ var client;
21
22
  var getClient = function () {
23
+ if (!client) {
24
+ client = (0, exports.createClient)();
25
+ }
26
+ return client;
27
+ };
28
+ exports.getClient = getClient;
29
+ var createClient = function () {
22
30
  var _a;
23
31
  var api = new openapi_client_axios_1.default({ definition: definition_1.default, quick: true });
24
32
  var apiClient = api.initSync();
25
33
  apiClient.defaults.headers.common = __assign(__assign({}, ((_a = apiClient.defaults.headers.common) !== null && _a !== void 0 ? _a : {})), (lambda_powertools_correlation_ids_1.default.get() || {}));
26
34
  return apiClient;
27
35
  };
28
- exports.getClient = getClient;
36
+ exports.createClient = createClient;
29
37
  //# sourceMappingURL=client.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/message-client",
3
- "version": "1.1.7",
3
+ "version": "1.2.0",
4
4
  "description": "API Client for epilot Message API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -70,5 +70,6 @@
70
70
  "typescript": "^4.1.3",
71
71
  "webpack": "~5.18.0",
72
72
  "webpack-cli": "^4.4.0"
73
- }
73
+ },
74
+ "gitHead": "d41cf7334964ffb68c562b531d6cf3c286367f76"
74
75
  }
package/CHANGELOG.md DELETED
@@ -1,253 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [1.12.3](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.12.2...@epilot/pricing-client@1.12.3) (2022-05-11)
7
-
8
- **Note:** Version bump only for package @epilot/pricing-client
9
-
10
-
11
-
12
-
13
-
14
- ## [1.12.2](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.12.2-alpha.0...@epilot/pricing-client@1.12.2) (2022-05-03)
15
-
16
-
17
- ### Reverts
18
-
19
- * Revert "chore(release): publish" ([79a1d35](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/79a1d359edd3d0bd3442a9dd3da293b40017d363))
20
-
21
-
22
-
23
-
24
-
25
- ## [1.12.1](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.10.0...@epilot/pricing-client@1.12.1) (2022-04-28)
26
-
27
- **Note:** Version bump only for package @epilot/pricing-client
28
-
29
-
30
-
31
-
32
-
33
- # [1.10.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.9.0...@epilot/pricing-client@1.10.0) (2022-04-25)
34
-
35
-
36
- ### Features
37
-
38
- * prod availability ([ca41cc0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/ca41cc0f87823ffbc6936b3f8b1fe143e512a446))
39
-
40
-
41
-
42
-
43
-
44
- # [1.9.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.8.0...@epilot/pricing-client@1.9.0) (2022-04-22)
45
-
46
-
47
- ### Features
48
-
49
- * support additional addresses for orders ([4db6f30](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/4db6f30428ed57233ceccb6d697288354d7b02db))
50
-
51
-
52
-
53
-
54
-
55
- # [1.8.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.7.0...@epilot/pricing-client@1.8.0) (2022-04-08)
56
-
57
-
58
- ### Features
59
-
60
- * tracing for staging ([2182fed](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/2182fed2fec3fa108004dceef35ff3f2440bc816))
61
-
62
-
63
-
64
-
65
-
66
- # [1.7.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.5...@epilot/pricing-client@1.7.0) (2022-04-07)
67
-
68
- **Note:** Version bump only for package @epilot/pricing-client
69
-
70
-
71
-
72
-
73
-
74
- ## [1.6.6-alpha.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.5...@epilot/pricing-client@1.6.6-alpha.0) (2022-04-07)
75
-
76
- **Note:** Version bump only for package @epilot/pricing-client
77
-
78
-
79
-
80
-
81
-
82
- ## [1.6.5](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.4...@epilot/pricing-client@1.6.5) (2022-04-04)
83
-
84
- **Note:** Version bump only for package @epilot/pricing-client
85
-
86
-
87
-
88
-
89
-
90
- ## [1.6.4](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.3...@epilot/pricing-client@1.6.4) (2022-04-04)
91
-
92
- **Note:** Version bump only for package @epilot/pricing-client
93
-
94
-
95
-
96
-
97
-
98
- ## [1.6.3](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.6.2...@epilot/pricing-client@1.6.3) (2022-03-29)
99
-
100
- **Note:** Version bump only for package @epilot/pricing-client
101
-
102
-
103
-
104
-
105
-
106
- ## [1.6.2](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.4...@epilot/pricing-client@1.6.2) (2022-03-25)
107
-
108
- **Note:** Version bump only for package @epilot/pricing-client
109
-
110
-
111
-
112
-
113
-
114
- ## [1.6.1](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.7-alpha.0...@epilot/pricing-client@1.6.1) (2022-03-18)
115
-
116
- **Note:** Version bump only for package @epilot/pricing-client
117
-
118
-
119
-
120
-
121
-
122
- ## [1.5.7-alpha.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.4...@epilot/pricing-client@1.5.7-alpha.0) (2022-03-16)
123
-
124
- **Note:** Version bump only for package @epilot/pricing-client
125
-
126
-
127
-
128
-
129
-
130
- ## [1.5.6](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.4...@epilot/pricing-client@1.5.6) (2022-03-12)
131
-
132
- **Note:** Version bump only for package @epilot/pricing-client
133
-
134
-
135
-
136
-
137
-
138
- ## [1.5.5](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.4...@epilot/pricing-client@1.5.5) (2022-03-11)
139
-
140
- **Note:** Version bump only for package @epilot/pricing-client
141
-
142
-
143
-
144
-
145
-
146
- ## [1.5.4](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.2...@epilot/pricing-client@1.5.4) (2022-02-11)
147
-
148
- **Note:** Version bump only for package @epilot/pricing-client
149
-
150
-
151
-
152
-
153
-
154
- ## [1.5.2](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.1...@epilot/pricing-client@1.5.2) (2022-01-19)
155
-
156
- **Note:** Version bump only for package @epilot/pricing-client
157
-
158
-
159
-
160
-
161
-
162
- ## [1.5.1](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.5.0...@epilot/pricing-client@1.5.1) (2022-01-19)
163
-
164
-
165
- ### Bug Fixes
166
-
167
- * create opportunity api spec ([c1480fa](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/c1480fa810fb018e451773f1805988cad371b669))
168
-
169
-
170
-
171
-
172
-
173
- # [1.5.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.3.1...@epilot/pricing-client@1.5.0) (2022-01-19)
174
-
175
-
176
- ### Bug Fixes
177
-
178
- * lock files ([cf87d25](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/cf87d25cb8de79b92e5d9da5904fd9e4ac612099))
179
-
180
-
181
- ### Features
182
-
183
- * adds opportunity support ([d9cd33f](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/d9cd33fca52e62ae198a64b3fbb4479d41b24be4))
184
-
185
-
186
-
187
-
188
-
189
- ## [1.3.1](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.3.0...@epilot/pricing-client@1.3.1) (2022-01-19)
190
-
191
-
192
- ### Bug Fixes
193
-
194
- * bug generating orders and updates types with opportunity ([b8c6e64](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/b8c6e64d414edeb0d9f5b66f7554dea4c56539d9))
195
-
196
-
197
-
198
-
199
-
200
- # [1.3.0](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.15...@epilot/pricing-client@1.3.0) (2022-01-03)
201
-
202
-
203
- ### Features
204
-
205
- * adds support for files ([709e89f](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/commit/709e89f98064646d6111f76c2cde255490e5ed79))
206
-
207
-
208
-
209
-
210
-
211
- ## [1.2.15](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.14...@epilot/pricing-client@1.2.15) (2021-12-22)
212
-
213
- **Note:** Version bump only for package @epilot/pricing-client
214
-
215
-
216
-
217
-
218
-
219
- ## [1.2.14](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.13...@epilot/pricing-client@1.2.14) (2021-12-22)
220
-
221
- **Note:** Version bump only for package @epilot/pricing-client
222
-
223
-
224
-
225
-
226
-
227
- ## [1.2.13](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.12...@epilot/pricing-client@1.2.13) (2021-12-16)
228
-
229
- **Note:** Version bump only for package @epilot/pricing-client
230
-
231
-
232
-
233
-
234
-
235
- ## [1.2.12](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.11...@epilot/pricing-client@1.2.12) (2021-12-16)
236
-
237
- **Note:** Version bump only for package @epilot/pricing-client
238
-
239
-
240
-
241
-
242
-
243
- ## [1.2.11](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.10...@epilot/pricing-client@1.2.11) (2021-12-16)
244
-
245
- **Note:** Version bump only for package @epilot/pricing-client
246
-
247
-
248
-
249
-
250
-
251
- ## [1.2.10](https://gitlab.com/e-pilot/product/checkout-and-pricing/pricing-api/compare/@epilot/pricing-client@1.2.9...@epilot/pricing-client@1.2.10) (2021-12-16)
252
-
253
- **Note:** Version bump only for package @epilot/pricing-client