@emilgroup/migration-sdk 0.10.1-beta.13 → 0.10.1-beta.17

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/dist/base.d.ts CHANGED
@@ -22,9 +22,19 @@ export declare const COLLECTION_FORMATS: {
22
22
  tsv: string;
23
23
  pipes: string;
24
24
  };
25
+ export interface SessionClass {
26
+ sub: string;
27
+ username?: string;
28
+ email?: string;
29
+ tenantSlug?: string;
30
+ permissions?: string;
31
+ expiresAt?: number;
32
+ }
25
33
  export interface LoginClass {
26
34
  accessToken: string;
27
35
  permissions: string;
36
+ authMode?: string;
37
+ session?: SessionClass;
28
38
  }
29
39
  export declare enum Environment {
30
40
  Production = "https://apiv2.emil.de",
@@ -55,7 +65,18 @@ export declare class BaseAPI {
55
65
  protected configuration: Configuration | undefined;
56
66
  private tokenData?;
57
67
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
58
- private useCookieAuth;
68
+ private sessionAccount;
69
+ private authBasePath;
70
+ private usesSession;
71
+ private useSessionAuth;
72
+ private useHeaderAuth;
73
+ private applyTokenReply;
74
+ private sessionHeaders;
75
+ private withCurrentAuth;
76
+ private canRetryWithToken;
77
+ private canResend;
78
+ private switchToToken;
79
+ private retryWithToken;
59
80
  selectEnvironment(env: Environment): void;
60
81
  selectBasePath(path: string): void;
61
82
  getPermissions(): Array<string>;
package/dist/base.js CHANGED
@@ -74,6 +74,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __rest = (this && this.__rest) || function (s, e) {
78
+ var t = {};
79
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
80
+ t[p] = s[p];
81
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
82
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
83
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
84
+ t[p[i]] = s[p[i]];
85
+ }
86
+ return t;
87
+ };
77
88
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
89
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
90
  };
@@ -112,6 +123,12 @@ function resetRetry() {
112
123
  exports.resetRetry = resetRetry;
113
124
  var NETWORK_ERROR_MESSAGE = "Network Error";
114
125
  var TOKEN_DATA = 'APP_TOKEN';
126
+ // Sent only to authservice, to ask for a server session.
127
+ var AUTH_MODE_HEADER = 'X-Emil-Auth-Mode';
128
+ // Names the account on every call; one browser session can hold several.
129
+ var ACCOUNT_HEADER = 'X-Emil-Account';
130
+ var SESSION_MODES = ['both', 'session'];
131
+ var RESEND_SAFE_METHODS = ['get', 'head', 'options'];
115
132
  /**
116
133
  *
117
134
  * @export
@@ -129,7 +146,10 @@ var BaseAPI = /** @class */ (function () {
129
146
  this.configuration = configuration;
130
147
  this.basePath = configuration.basePath || this.basePath;
131
148
  if (configuration.cookieAuth) {
132
- this.useCookieAuth();
149
+ this.configuration.username = this.configuration.username || this.tokenData.username;
150
+ }
151
+ if (this.usesSession()) {
152
+ this.useSessionAuth();
133
153
  }
134
154
  else {
135
155
  // Use config token if provided, otherwise use tokenData token
@@ -148,10 +168,94 @@ var BaseAPI = /** @class */ (function () {
148
168
  }
149
169
  this.attachInterceptor(axios);
150
170
  }
151
- // Cookie mode: the browser sends the HttpOnly access cookie, so no token is read from storage.
152
- BaseAPI.prototype.useCookieAuth = function () {
153
- this.configuration.username = this.configuration.username || this.tokenData.username;
154
- this.configuration.baseOptions = __assign(__assign({}, this.configuration.baseOptions), { withCredentials: true });
171
+ // The app's own account wins over APP_TOKEN, which holds whichever tab wrote last.
172
+ BaseAPI.prototype.sessionAccount = function () {
173
+ return this.configuration.account || this.tokenData.sub;
174
+ };
175
+ // Apps may pass the address as the second argument only; authservice is on the same host.
176
+ BaseAPI.prototype.authBasePath = function () {
177
+ return this.configuration.basePath || this.basePath;
178
+ };
179
+ BaseAPI.prototype.usesSession = function () {
180
+ return !!this.configuration.cookieAuth && SESSION_MODES.indexOf(this.tokenData.authMode) !== -1 && !!this.sessionAccount();
181
+ };
182
+ BaseAPI.prototype.useSessionAuth = function () {
183
+ var _a;
184
+ var _b = this.configuration.baseOptions || {}, headers = _b.headers, baseOptions = __rest(_b, ["headers"]);
185
+ this.configuration.accessToken = '';
186
+ this.configuration.baseOptions = __assign(__assign({}, baseOptions), { withCredentials: true, headers: __assign(__assign({}, headers), (_a = {}, _a[ACCOUNT_HEADER] = this.sessionAccount(), _a)) });
187
+ };
188
+ BaseAPI.prototype.useHeaderAuth = function (accessToken) {
189
+ this.configuration.accessToken = accessToken ? "Bearer ".concat(accessToken) : '';
190
+ this.tokenData.accessToken = accessToken;
191
+ delete this.tokenData.authMode;
192
+ delete this.tokenData.sub;
193
+ if (this.configuration.cookieAuth) {
194
+ var _a = this.configuration.baseOptions || {}, withCredentials = _a.withCredentials, headers = _a.headers, baseOptions = __rest(_a, ["withCredentials", "headers"]);
195
+ var _b = headers || {}, _c = ACCOUNT_HEADER, account = _b[_c], otherHeaders = __rest(_b, [typeof _c === "symbol" ? _c : _c + ""]);
196
+ this.configuration.baseOptions = __assign(__assign({}, baseOptions), { headers: otherHeaders });
197
+ }
198
+ };
199
+ BaseAPI.prototype.applyTokenReply = function (_a) {
200
+ var accessToken = _a.accessToken, authMode = _a.authMode, session = _a.session;
201
+ if (this.configuration.cookieAuth && SESSION_MODES.indexOf(authMode) !== -1 && (session === null || session === void 0 ? void 0 : session.sub)) {
202
+ this.tokenData.authMode = authMode;
203
+ this.tokenData.sub = session.sub;
204
+ if (this.configuration.account) {
205
+ // A workspace switch moves the app to another account.
206
+ this.configuration.account = session.sub;
207
+ }
208
+ // Both keeps the token for apps not moved yet; session mode keeps no token at all.
209
+ if (authMode === 'both' && accessToken) {
210
+ this.tokenData.accessToken = accessToken;
211
+ }
212
+ else {
213
+ delete this.tokenData.accessToken;
214
+ }
215
+ this.useSessionAuth();
216
+ }
217
+ else {
218
+ this.useHeaderAuth(accessToken);
219
+ }
220
+ };
221
+ BaseAPI.prototype.sessionHeaders = function () {
222
+ var _a, _b;
223
+ if (!this.configuration.cookieAuth) {
224
+ return {};
225
+ }
226
+ return __assign((_a = {}, _a[AUTH_MODE_HEADER] = 'session', _a), (this.usesSession() && (_b = {}, _b[ACCOUNT_HEADER] = this.sessionAccount(), _b)));
227
+ };
228
+ BaseAPI.prototype.withCurrentAuth = function (config) {
229
+ delete config.headers['Authorization'];
230
+ delete config.headers[ACCOUNT_HEADER];
231
+ if (this.usesSession()) {
232
+ config.headers[ACCOUNT_HEADER] = this.sessionAccount();
233
+ config.withCredentials = true;
234
+ }
235
+ else if (this.configuration.accessToken) {
236
+ config.headers['Authorization'] = this.configuration.accessToken;
237
+ }
238
+ return config;
239
+ };
240
+ // Both keeps the token, so a session call the browser could not complete can be sent again with it.
241
+ BaseAPI.prototype.canRetryWithToken = function (config) {
242
+ var _a;
243
+ return !!config.withCredentials && !!((_a = config.headers) === null || _a === void 0 ? void 0 : _a[ACCOUNT_HEADER])
244
+ && !!this.tokenData.accessToken && this.tokenData.authMode !== 'session';
245
+ };
246
+ // A network error can come after the server ran the call, so only a call that is safe to repeat is sent again.
247
+ BaseAPI.prototype.canResend = function (config) {
248
+ return RESEND_SAFE_METHODS.indexOf((config.method || 'get').toLowerCase()) !== -1
249
+ || Object.keys(config.headers || {}).some(function (name) { return name.toLowerCase() === 'idempotency-key'; });
250
+ };
251
+ BaseAPI.prototype.switchToToken = function () {
252
+ this.useHeaderAuth(this.tokenData.accessToken);
253
+ this.storeTokenData(this.tokenData);
254
+ };
255
+ BaseAPI.prototype.retryWithToken = function (axios, config) {
256
+ this.switchToToken();
257
+ config.withCredentials = false;
258
+ return axios(this.withCurrentAuth(config));
155
259
  };
156
260
  BaseAPI.prototype.selectEnvironment = function (env) {
157
261
  this.selectBasePath(env);
@@ -168,14 +272,15 @@ var BaseAPI = /** @class */ (function () {
168
272
  };
169
273
  BaseAPI.prototype.authorize = function (username, password, targetWorkspace) {
170
274
  return __awaiter(this, void 0, void 0, function () {
171
- var options, response, _a, accessToken, permissions;
275
+ var options, response;
276
+ var _a;
172
277
  return __generator(this, function (_b) {
173
278
  switch (_b.label) {
174
279
  case 0:
175
280
  options = {
176
281
  method: 'POST',
177
- url: "".concat(this.configuration.basePath, "/authservice/v1/login"),
178
- headers: { 'Content-Type': 'application/json' },
282
+ url: "".concat(this.authBasePath(), "/authservice/v1/login"),
283
+ headers: __assign({ 'Content-Type': 'application/json' }, (this.configuration.cookieAuth && (_a = {}, _a[AUTH_MODE_HEADER] = 'session', _a))),
179
284
  data: {
180
285
  username: username,
181
286
  password: password,
@@ -185,14 +290,10 @@ var BaseAPI = /** @class */ (function () {
185
290
  return [4 /*yield*/, axios_1.default.request(options)];
186
291
  case 1:
187
292
  response = _b.sent();
188
- _a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
189
293
  this.configuration.username = username;
190
294
  this.tokenData.username = username;
191
- this.tokenData.permissions = permissions;
192
- if (!this.configuration.cookieAuth) {
193
- this.configuration.accessToken = "Bearer ".concat(accessToken);
194
- this.tokenData.accessToken = accessToken;
195
- }
295
+ this.tokenData.permissions = response.data.permissions;
296
+ this.applyTokenReply(response.data);
196
297
  return [2 /*return*/];
197
298
  }
198
299
  });
@@ -218,10 +319,8 @@ var BaseAPI = /** @class */ (function () {
218
319
  });
219
320
  options = {
220
321
  method: 'POST',
221
- url: "".concat(this.configuration.basePath, "/authservice/v1/refresh-token"),
222
- headers: {
223
- 'Content-Type': 'application/json',
224
- },
322
+ url: "".concat(this.authBasePath(), "/authservice/v1/refresh-token"),
323
+ headers: __assign({ 'Content-Type': 'application/json' }, this.sessionHeaders()),
225
324
  data: { username: username },
226
325
  withCredentials: true,
227
326
  };
@@ -234,13 +333,7 @@ var BaseAPI = /** @class */ (function () {
234
333
  });
235
334
  };
236
335
  BaseAPI.prototype.storeTokenData = function (tokenData) {
237
- var _a;
238
336
  if (typeof window !== 'undefined') {
239
- if (tokenData && ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.cookieAuth)) {
240
- // Cookie mode saves who is logged in, never the token; a token saved by apps not yet migrated stays.
241
- var username = tokenData.username, permissions = tokenData.permissions;
242
- tokenData = __assign(__assign({}, ((0, common_1.defaultStorage)().get(TOKEN_DATA) || {})), { username: username, permissions: permissions });
243
- }
244
337
  (0, common_1.defaultStorage)().set(TOKEN_DATA, tokenData);
245
338
  }
246
339
  };
@@ -260,65 +353,75 @@ var BaseAPI = /** @class */ (function () {
260
353
  axios.interceptors.response.use(function (res) {
261
354
  return res;
262
355
  }, function (err) { return __awaiter(_this, void 0, void 0, function () {
263
- var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
264
- return __generator(this, function (_c) {
265
- switch (_c.label) {
356
+ var originalConfig, reply, _error_1, reply, _error_2;
357
+ var _this = this;
358
+ return __generator(this, function (_a) {
359
+ switch (_a.label) {
266
360
  case 0:
267
361
  originalConfig = err.config;
268
362
  if (!(err.response && !(err.response instanceof XMLHttpRequest))) return [3 /*break*/, 5];
269
363
  if (!((err.response.status === 401 || err.response.status === 403)
270
364
  && !originalConfig._retry)) return [3 /*break*/, 4];
271
365
  originalConfig._retry = true;
272
- _c.label = 1;
366
+ _a.label = 1;
273
367
  case 1:
274
- _c.trys.push([1, 3, , 4]);
368
+ _a.trys.push([1, 3, , 4]);
275
369
  return [4 /*yield*/, this.refreshTokenInternal()];
276
370
  case 2:
277
- _a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
278
- this.tokenData.permissions = permissions;
279
- delete originalConfig.headers['Authorization'];
280
- // In cookie mode the refresh reply renewed the access cookie, so retry without a header.
281
- if (!this.configuration.cookieAuth) {
282
- accessToken = "Bearer ".concat(tokenString);
283
- originalConfig.headers['Authorization'] = accessToken;
284
- this.configuration.accessToken = accessToken;
285
- this.tokenData.accessToken = tokenString;
286
- }
371
+ reply = _a.sent();
372
+ this.tokenData.permissions = reply.permissions;
373
+ this.applyTokenReply(reply);
287
374
  this.storeTokenData(this.tokenData);
288
- return [2 /*return*/, axios(originalConfig)];
375
+ if (!this.usesSession()) {
376
+ return [2 /*return*/, axios(this.withCurrentAuth(originalConfig))];
377
+ }
378
+ // Both mode: if the browser does not send the session cookie (another site), use the token.
379
+ return [2 /*return*/, axios(this.withCurrentAuth(originalConfig)).catch(function (retryError) {
380
+ var _a;
381
+ if (((_a = retryError === null || retryError === void 0 ? void 0 : retryError.response) === null || _a === void 0 ? void 0 : _a.status) !== 401 || !_this.tokenData.accessToken) {
382
+ return Promise.reject(retryError);
383
+ }
384
+ return _this.retryWithToken(axios, originalConfig);
385
+ })];
289
386
  case 3:
290
- _error_1 = _c.sent();
387
+ _error_1 = _a.sent();
291
388
  if (_error_1.response && _error_1.response.data) {
292
389
  return [2 /*return*/, Promise.reject(_error_1.response.data)];
293
390
  }
294
391
  return [2 /*return*/, Promise.reject(_error_1)];
295
- case 4: return [3 /*break*/, 9];
392
+ case 4: return [3 /*break*/, 10];
296
393
  case 5:
394
+ if (!(err.message === NETWORK_ERROR_MESSAGE && this.canRetryWithToken(originalConfig))) return [3 /*break*/, 6];
395
+ // Both mode: the browser blocked the session call or hid its reply; later calls use the token.
396
+ if (!this.canResend(originalConfig)) {
397
+ this.switchToToken();
398
+ return [2 /*return*/, Promise.reject(err)];
399
+ }
400
+ return [2 /*return*/, this.retryWithToken(axios, originalConfig)];
401
+ case 6:
297
402
  if (!(err.message === NETWORK_ERROR_MESSAGE
298
- && originalConfig.headers.hasOwnProperty('Authorization')
299
- && _retry_count < 4)) return [3 /*break*/, 9];
403
+ && (originalConfig.headers.hasOwnProperty('Authorization')
404
+ || (this.configuration.cookieAuth && originalConfig.withCredentials && this.canResend(originalConfig)))
405
+ && _retry_count < 4)) return [3 /*break*/, 10];
300
406
  _retry_count++;
301
- _c.label = 6;
302
- case 6:
303
- _c.trys.push([6, 8, , 9]);
304
- return [4 /*yield*/, this.refreshTokenInternal()];
407
+ _a.label = 7;
305
408
  case 7:
306
- _b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
307
- accessToken = "Bearer ".concat(tokenString);
308
- this.tokenData.permissions = permissions;
409
+ _a.trys.push([7, 9, , 10]);
410
+ return [4 /*yield*/, this.refreshTokenInternal()];
411
+ case 8:
412
+ reply = _a.sent();
413
+ this.tokenData.permissions = reply.permissions;
309
414
  _retry = true;
310
- originalConfig.headers['Authorization'] = accessToken;
311
- this.configuration.accessToken = accessToken;
312
- this.tokenData.accessToken = tokenString;
415
+ this.applyTokenReply(reply);
313
416
  this.storeTokenData(this.tokenData);
314
- return [2 /*return*/, axios.request(__assign({}, originalConfig))];
315
- case 8:
316
- _error_2 = _c.sent();
417
+ return [2 /*return*/, axios.request(__assign({}, this.withCurrentAuth(originalConfig)))];
418
+ case 9:
419
+ _error_2 = _a.sent();
317
420
  if (_error_2.response && _error_2.response.data) {
318
421
  return [2 /*return*/, Promise.reject(_error_2.response.data)];
319
422
  }
320
423
  return [2 /*return*/, Promise.reject(_error_2)];
321
- case 9: return [2 /*return*/, Promise.reject(err)];
424
+ case 10: return [2 /*return*/, Promise.reject(err)];
322
425
  }
323
426
  });
324
427
  }); });
package/dist/common.d.ts CHANGED
@@ -62,7 +62,7 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
66
  /**
67
67
  * EMIL MigrationService
68
68
  * The EMIL MigrationService API description
package/dist/common.js CHANGED
@@ -233,6 +233,7 @@ exports.toPathString = toPathString;
233
233
  * @export
234
234
  */
235
235
  var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
236
+ // Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
236
237
  return function (axios, basePath) {
237
238
  if (axios === void 0) { axios = globalAxios; }
238
239
  if (basePath === void 0) { basePath = BASE_PATH; }
@@ -18,6 +18,7 @@ export interface ConfigurationParameters {
18
18
  baseOptions?: any;
19
19
  formDataCtor?: new () => any;
20
20
  cookieAuth?: boolean;
21
+ account?: string;
21
22
  }
22
23
  export declare class Configuration {
23
24
  /**
@@ -70,13 +71,20 @@ export declare class Configuration {
70
71
  */
71
72
  formDataCtor?: new () => any;
72
73
  /**
73
- * Authenticate with the HttpOnly access cookie instead of a stored token: every call sends credentials.
74
- * The browser holds one cookie, so use it with one logged-in account; log out through the auth service.
74
+ * Use a server session when authservice makes one; otherwise the token, as without this option.
75
+ * Set `account` too, so each SDK object keeps its own account.
75
76
  *
76
77
  * @type {boolean}
77
78
  * @memberof Configuration
78
79
  */
79
80
  cookieAuth?: boolean;
81
+ /**
82
+ * The session account (Cognito sub) this app shows, so the SDK never takes another tab's account.
83
+ *
84
+ * @type {string}
85
+ * @memberof Configuration
86
+ */
87
+ account?: string;
80
88
  constructor(param?: ConfigurationParameters);
81
89
  /**
82
90
  * Check if the given MIME is a JSON MIME.
@@ -25,6 +25,7 @@ var Configuration = /** @class */ (function () {
25
25
  this.baseOptions = param.baseOptions;
26
26
  this.formDataCtor = param.formDataCtor;
27
27
  this.cookieAuth = param.cookieAuth;
28
+ this.account = param.account;
28
29
  }
29
30
  /**
30
31
  * Check if the given MIME is a JSON MIME.
@@ -39,5 +39,6 @@ export declare const CreateIngestRunAsyncRequestDtoSourceEntityEnum: {
39
39
  readonly PartnerRelations: "partner_relations";
40
40
  readonly Policies: "policies";
41
41
  readonly Leads: "leads";
42
+ readonly Claims: "claims";
42
43
  };
43
44
  export type CreateIngestRunAsyncRequestDtoSourceEntityEnum = typeof CreateIngestRunAsyncRequestDtoSourceEntityEnum[keyof typeof CreateIngestRunAsyncRequestDtoSourceEntityEnum];
@@ -18,5 +18,6 @@ exports.CreateIngestRunAsyncRequestDtoSourceEntityEnum = {
18
18
  Partners: 'partners',
19
19
  PartnerRelations: 'partner_relations',
20
20
  Policies: 'policies',
21
- Leads: 'leads'
21
+ Leads: 'leads',
22
+ Claims: 'claims'
22
23
  };
@@ -41,5 +41,6 @@ export declare const CreateIngestRunSyncRequestDtoSourceEntityEnum: {
41
41
  readonly PartnerRelations: "partner_relations";
42
42
  readonly Policies: "policies";
43
43
  readonly Leads: "leads";
44
+ readonly Claims: "claims";
44
45
  };
45
46
  export type CreateIngestRunSyncRequestDtoSourceEntityEnum = typeof CreateIngestRunSyncRequestDtoSourceEntityEnum[keyof typeof CreateIngestRunSyncRequestDtoSourceEntityEnum];
@@ -18,5 +18,6 @@ exports.CreateIngestRunSyncRequestDtoSourceEntityEnum = {
18
18
  Partners: 'partners',
19
19
  PartnerRelations: 'partner_relations',
20
20
  Policies: 'policies',
21
- Leads: 'leads'
21
+ Leads: 'leads',
22
+ Claims: 'claims'
22
23
  };
@@ -33,5 +33,6 @@ export declare const FlushIngestedDataRequestDtoDataTypeEnum: {
33
33
  readonly PartnerRelations: "partner_relations";
34
34
  readonly Policies: "policies";
35
35
  readonly Leads: "leads";
36
+ readonly Claims: "claims";
36
37
  };
37
38
  export type FlushIngestedDataRequestDtoDataTypeEnum = typeof FlushIngestedDataRequestDtoDataTypeEnum[keyof typeof FlushIngestedDataRequestDtoDataTypeEnum];
@@ -18,5 +18,6 @@ exports.FlushIngestedDataRequestDtoDataTypeEnum = {
18
18
  Partners: 'partners',
19
19
  PartnerRelations: 'partner_relations',
20
20
  Policies: 'policies',
21
- Leads: 'leads'
21
+ Leads: 'leads',
22
+ Claims: 'claims'
22
23
  };
@@ -44,7 +44,8 @@ export const CreateIngestRunAsyncRequestDtoSourceEntityEnum = {
44
44
  Partners: 'partners',
45
45
  PartnerRelations: 'partner_relations',
46
46
  Policies: 'policies',
47
- Leads: 'leads'
47
+ Leads: 'leads',
48
+ Claims: 'claims'
48
49
  } as const;
49
50
 
50
51
  export type CreateIngestRunAsyncRequestDtoSourceEntityEnum = typeof CreateIngestRunAsyncRequestDtoSourceEntityEnum[keyof typeof CreateIngestRunAsyncRequestDtoSourceEntityEnum];
@@ -44,7 +44,8 @@ export const CreateIngestRunSyncRequestDtoSourceEntityEnum = {
44
44
  Partners: 'partners',
45
45
  PartnerRelations: 'partner_relations',
46
46
  Policies: 'policies',
47
- Leads: 'leads'
47
+ Leads: 'leads',
48
+ Claims: 'claims'
48
49
  } as const;
49
50
 
50
51
  export type CreateIngestRunSyncRequestDtoSourceEntityEnum = typeof CreateIngestRunSyncRequestDtoSourceEntityEnum[keyof typeof CreateIngestRunSyncRequestDtoSourceEntityEnum];
@@ -38,7 +38,8 @@ export const FlushIngestedDataRequestDtoDataTypeEnum = {
38
38
  Partners: 'partners',
39
39
  PartnerRelations: 'partner_relations',
40
40
  Policies: 'policies',
41
- Leads: 'leads'
41
+ Leads: 'leads',
42
+ Claims: 'claims'
42
43
  } as const;
43
44
 
44
45
  export type FlushIngestedDataRequestDtoDataTypeEnum = typeof FlushIngestedDataRequestDtoDataTypeEnum[keyof typeof FlushIngestedDataRequestDtoDataTypeEnum];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/migration-sdk",
3
- "version": "0.10.1-beta.13",
3
+ "version": "0.10.1-beta.17",
4
4
  "description": "OpenAPI client for @emilgroup/migration-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.18.0"
21
+ "axios": "1.20.0"
22
22
  },
23
23
  "devDependencies": {
24
24