@tap-payments/auth-jsconnect 2.10.6-development → 2.10.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.
@@ -167,7 +167,6 @@ declare const API: {
167
167
  };
168
168
  terminalService: {
169
169
  retrieveTerminalDeviceList: (merchants: string[]) => Promise<any>;
170
- generateAuthenticationToLinkNewTerminal: (payload: GenerateAuthLinkNewTerminalProps) => Promise<any>;
171
170
  unlinkTerminalDevice: ({ deviceId, ...payload }: UnlinkTerminalDeviceProps) => Promise<any>;
172
171
  retrieveTerminalList: (merchantIds: string[]) => Promise<any>;
173
172
  };
@@ -8,10 +8,13 @@ export interface GenerateAuthLinkNewTerminalProps {
8
8
  }
9
9
  export interface UnlinkTerminalDeviceProps {
10
10
  deviceId: string;
11
+ initiator: string;
11
12
  terminal: {
12
13
  id: string;
13
14
  };
14
- action: string;
15
+ merchant: {
16
+ id: string;
17
+ };
15
18
  }
16
19
  export interface LinkTerminalDeviceProps {
17
20
  id: string;
@@ -19,7 +22,6 @@ export interface LinkTerminalDeviceProps {
19
22
  }
20
23
  declare const terminalService: {
21
24
  retrieveTerminalDeviceList: (merchants: string[]) => Promise<any>;
22
- generateAuthenticationToLinkNewTerminal: (payload: GenerateAuthLinkNewTerminalProps) => Promise<any>;
23
25
  unlinkTerminalDevice: ({ deviceId, ...payload }: UnlinkTerminalDeviceProps) => Promise<any>;
24
26
  retrieveTerminalList: (merchantIds: string[]) => Promise<any>;
25
27
  };
@@ -29,28 +29,16 @@ var retrieveTerminalList = function (merchantIds) {
29
29
  }
30
30
  });
31
31
  };
32
- var generateAuthenticationToLinkNewTerminal = function (payload) {
33
- return httpClient({
34
- method: 'get',
35
- url: 'https://dummyjson.com/c/7544-fa91-4a47-9612'
36
- });
37
- return httpClient({
38
- method: 'post',
39
- url: "".concat(ENDPOINT_PATHS.TERMINAL, "/link"),
40
- data: payload
41
- });
42
- };
43
32
  var unlinkTerminalDevice = function (_a) {
44
33
  var deviceId = _a.deviceId, payload = __rest(_a, ["deviceId"]);
45
34
  return httpClient({
46
35
  method: 'put',
47
- url: "".concat(ENDPOINT_PATHS.TERMINAL, "/device/").concat(deviceId),
36
+ url: "".concat(ENDPOINT_PATHS.TERMINAL, "/device/").concat(deviceId, "/unlink"),
48
37
  data: payload
49
38
  });
50
39
  };
51
40
  var terminalService = {
52
41
  retrieveTerminalDeviceList: retrieveTerminalDeviceList,
53
- generateAuthenticationToLinkNewTerminal: generateAuthenticationToLinkNewTerminal,
54
42
  unlinkTerminalDevice: unlinkTerminalDevice,
55
43
  retrieveTerminalList: retrieveTerminalList
56
44
  };
@@ -250,17 +250,20 @@ export var pushNotificationLinkNewTerminal = createAsyncThunk('terminal/pushNoti
250
250
  });
251
251
  });
252
252
  export var unlinkTerminalDevice = createAsyncThunk('terminal/unlinkTerminalDevice', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
253
- var terminal, _a, id, terminalInfo, payload, data;
253
+ var terminal, _a, id, terminalInfo, merchant, payload, data;
254
254
  return __generator(this, function (_b) {
255
255
  switch (_b.label) {
256
256
  case 0:
257
257
  terminal = thunkApi.getState().terminal;
258
- _a = terminal.data.terminalInfo.selectedTerminalDevice, id = _a.id, terminalInfo = _a.terminal;
258
+ _a = terminal.data.terminalInfo.selectedTerminalDevice, id = _a.id, terminalInfo = _a.terminal, merchant = _a.merchant;
259
259
  payload = {
260
260
  deviceId: id,
261
- action: 'unlink',
261
+ initiator: 'connect',
262
262
  terminal: {
263
263
  id: (terminalInfo === null || terminalInfo === void 0 ? void 0 : terminalInfo.id) || ''
264
+ },
265
+ merchant: {
266
+ id: (merchant === null || merchant === void 0 ? void 0 : merchant.id) || ''
264
267
  }
265
268
  };
266
269
  return [4, API.terminalService.unlinkTerminalDevice(payload)];
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
3
  children?: React.ReactNode;
4
4
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  inheritViewBox?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
20
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
21
  htmlColor?: string | undefined;
22
22
  inheritViewBox?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const MandatoryStyled: import("@emotion/styled").StyledComponent<
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
20
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
21
  htmlColor?: string | undefined;
22
22
  inheritViewBox?: boolean | undefined;
@@ -30,7 +30,7 @@ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledCom
30
30
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
31
31
  children?: React.ReactNode;
32
32
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
33
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
33
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
34
34
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
35
35
  htmlColor?: string | undefined;
36
36
  inheritViewBox?: boolean | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
3
  children?: React.ReactNode;
4
4
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  inheritViewBox?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
20
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
21
  htmlColor?: string | undefined;
22
22
  inheritViewBox?: boolean | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
3
3
  children?: React.ReactNode;
4
4
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  inheritViewBox?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledCom
16
16
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
20
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
21
  htmlColor?: string | undefined;
22
22
  inheritViewBox?: boolean | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
3
  children?: React.ReactNode;
4
4
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  inheritViewBox?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
20
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
21
  htmlColor?: string | undefined;
22
22
  inheritViewBox?: boolean | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
3
  children?: React.ReactNode;
4
4
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  inheritViewBox?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
20
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
21
  htmlColor?: string | undefined;
22
22
  inheritViewBox?: boolean | undefined;
@@ -15,7 +15,7 @@ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent
15
15
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
16
16
  children?: React.ReactNode;
17
17
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
18
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
18
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
19
19
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
20
20
  htmlColor?: string | undefined;
21
21
  inheritViewBox?: boolean | undefined;
@@ -29,7 +29,7 @@ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledCom
29
29
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
30
30
  children?: React.ReactNode;
31
31
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
32
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
32
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
33
33
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
34
34
  htmlColor?: string | undefined;
35
35
  inheritViewBox?: boolean | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
3
  children?: React.ReactNode;
4
4
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  inheritViewBox?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
20
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
21
  htmlColor?: string | undefined;
22
22
  inheritViewBox?: boolean | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
3
  children?: React.ReactNode;
4
4
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  inheritViewBox?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
20
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
21
  htmlColor?: string | undefined;
22
22
  inheritViewBox?: boolean | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
3
  children?: React.ReactNode;
4
4
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  inheritViewBox?: boolean | undefined;
@@ -16,7 +16,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
17
  children?: React.ReactNode;
18
18
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
20
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
21
  htmlColor?: string | undefined;
22
22
  inheritViewBox?: boolean | undefined;
@@ -30,7 +30,7 @@ export declare const LabelContainerStyled: import("@emotion/styled").StyledCompo
30
30
  export declare const CheckIconStyled: import("@emotion/styled").StyledComponent<{
31
31
  children?: React.ReactNode;
32
32
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
33
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
33
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
34
34
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
35
35
  htmlColor?: string | undefined;
36
36
  inheritViewBox?: boolean | undefined;
@@ -29,7 +29,7 @@ export declare const LabelContainerStyled: import("@emotion/styled").StyledCompo
29
29
  export declare const CheckIconStyled: import("@emotion/styled").StyledComponent<{
30
30
  children?: React.ReactNode;
31
31
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
32
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
32
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
33
33
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
34
34
  htmlColor?: string | undefined;
35
35
  inheritViewBox?: boolean | undefined;
@@ -121,7 +121,7 @@ export declare const StyledRadio: import("@emotion/styled").StyledComponent<impo
121
121
  export declare const ArrowIcon: import("@emotion/styled").StyledComponent<{
122
122
  children?: import("react").ReactNode;
123
123
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
124
- color?: "inherit" | "disabled" | "error" | "info" | "action" | "success" | "primary" | "secondary" | "warning" | undefined;
124
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
125
125
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
126
126
  htmlColor?: string | undefined;
127
127
  inheritViewBox?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.10.6-development",
3
+ "version": "2.10.7-development",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",