@tap-payments/auth-jsconnect 2.11.6-development → 2.11.7-development

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.
@@ -9,10 +9,7 @@ export interface GenerateAuthLinkNewTerminalProps {
9
9
  export interface UnlinkTerminalDeviceProps {
10
10
  deviceId: string;
11
11
  initiator: string;
12
- terminal: {
13
- id: string;
14
- };
15
- merchant: {
12
+ device: {
16
13
  id: string;
17
14
  };
18
15
  }
@@ -43,7 +43,7 @@ var unlinkTerminalDevice = function (_a) {
43
43
  var deviceId = _a.deviceId, payload = __rest(_a, ["deviceId"]);
44
44
  return httpClient({
45
45
  method: 'put',
46
- url: "".concat(ENDPOINT_PATHS.TERMINAL, "/device/").concat(deviceId, "/unlink"),
46
+ url: "".concat(ENDPOINT_PATHS.TERMINAL, "/").concat(deviceId, "/unlink"),
47
47
  data: payload
48
48
  });
49
49
  };
@@ -248,20 +248,16 @@ export var pushNotificationLinkNewTerminal = createAsyncThunk('terminal/pushNoti
248
248
  });
249
249
  });
250
250
  export var unlinkTerminalDevice = createAsyncThunk('terminal/unlinkTerminalDevice', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
251
- var terminal, _a, id, terminal_device, merchant, payload, data;
251
+ var _a, id, device, payload, data;
252
252
  return __generator(this, function (_b) {
253
253
  switch (_b.label) {
254
254
  case 0:
255
- terminal = thunkApi.getState().terminal;
256
- _a = terminal.data.terminalInfo.selectedTerminal, id = _a.id, terminal_device = _a.terminal_device, merchant = _a.merchant;
255
+ _a = thunkApi.getState().terminal.data.terminalInfo.selectedTerminal, id = _a.id, device = _a.device;
257
256
  payload = {
258
257
  deviceId: id,
259
- initiator: 'connect',
260
- terminal: {
261
- id: terminal_device.id
262
- },
263
- merchant: {
264
- id: (merchant === null || merchant === void 0 ? void 0 : merchant.id) || ''
258
+ initiator: 'terminal_device',
259
+ device: {
260
+ id: (device === null || device === void 0 ? void 0 : device.id) || ''
265
261
  }
266
262
  };
267
263
  return [4, API.terminalService.unlinkTerminalDevice(payload)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.11.6-development",
3
+ "version": "2.11.7-development",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",