@adaptabletools/adaptable-plugin-ipushpull 12.0.0-canary.3 → 12.0.0-canary.6
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/package.json +2 -2
- package/src/Redux/ActionReducers/IPushPullRedux.js +44 -22
- package/src/Utilities/Services/Interface/IPushPullService.d.ts +2 -2
- package/src/Utilities/Services/PushPullService.d.ts +2 -2
- package/src/View/IPushPullAddPagePopup.d.ts +1 -1
- package/src/View/IPushPullLoginPopup.d.ts +1 -1
- package/src/View/IPushPullPopup.d.ts +1 -1
- package/src/View/IPushPullViewPanel.d.ts +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-ipushpull",
|
|
3
|
-
"version": "12.0.0-canary.
|
|
3
|
+
"version": "12.0.0-canary.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"redux": "4.0.5",
|
|
20
20
|
"styled-components": "^4.4.1",
|
|
21
21
|
"tslib": "^2.0.0",
|
|
22
|
-
"@adaptabletools/adaptable": "12.0.0-canary.
|
|
22
|
+
"@adaptabletools/adaptable": "12.0.0-canary.6"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -3,86 +3,107 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.IPushPullReducer = exports.iPushPullInitialState = exports.IPushPullSetCurrentAvailablePages = exports.IPushPullSetCurrentPage = exports.IPushPullSetCurrentFolder = exports.IPushPullSetCurrentReportName = exports.IPushPullLiveReportClear = exports.IPushPullLiveReportSet = exports.IPushPullClearDomainsPages = exports.IPushPullSetDomainsPages = exports.SetIPushPullRunningOff = exports.SetIPushPullRunningOn = exports.SetIPushPullAvailableOff = exports.SetIPushPullAvailableOn = exports.IPushPullAddPage = exports.IPushPullSetLoginErrorMessage = exports.IPushPullSetLoginDetails = exports.IPushPullLogout = exports.IPushPullLogin = exports.IPushPullStopLiveData = exports.IPushPullStartLiveData = exports.IPushPullSendSnapshot = exports.IPushPullSetThrottleTime = void 0;
|
|
4
4
|
const GeneralConstants_1 = require("@adaptabletools/adaptable/src/Utilities/Constants/GeneralConstants");
|
|
5
5
|
const PluginsRedux_1 = require("@adaptabletools/adaptable/src/Redux/ActionsReducers/PluginsRedux");
|
|
6
|
-
|
|
6
|
+
const IPushPullSetThrottleTime = (throttleTime) => ({
|
|
7
7
|
type: PluginsRedux_1.IPUSHPULL_SET_THROTTLE_TIME,
|
|
8
8
|
throttleTime,
|
|
9
9
|
});
|
|
10
|
-
exports.
|
|
10
|
+
exports.IPushPullSetThrottleTime = IPushPullSetThrottleTime;
|
|
11
|
+
const IPushPullSendSnapshot = (iPushPullReport) => ({
|
|
11
12
|
type: PluginsRedux_1.IPUSHPULL_SEND_SNAPSHOT,
|
|
12
13
|
iPushPullReport,
|
|
13
14
|
});
|
|
14
|
-
exports.
|
|
15
|
+
exports.IPushPullSendSnapshot = IPushPullSendSnapshot;
|
|
16
|
+
const IPushPullStartLiveData = (iPushPullReport) => ({
|
|
15
17
|
type: PluginsRedux_1.IPUSHPULL_START_LIVE_DATA,
|
|
16
18
|
iPushPullReport,
|
|
17
19
|
});
|
|
18
|
-
exports.
|
|
20
|
+
exports.IPushPullStartLiveData = IPushPullStartLiveData;
|
|
21
|
+
const IPushPullStopLiveData = () => ({
|
|
19
22
|
type: PluginsRedux_1.IPUSHPULL_STOP_LIVE_DATA,
|
|
20
23
|
});
|
|
21
|
-
exports.
|
|
24
|
+
exports.IPushPullStopLiveData = IPushPullStopLiveData;
|
|
25
|
+
const IPushPullLogin = (username, password) => ({
|
|
22
26
|
type: PluginsRedux_1.IPUSHPULL_LOGIN,
|
|
23
27
|
username,
|
|
24
28
|
password,
|
|
25
29
|
});
|
|
26
|
-
exports.
|
|
30
|
+
exports.IPushPullLogin = IPushPullLogin;
|
|
31
|
+
const IPushPullLogout = () => ({
|
|
27
32
|
type: PluginsRedux_1.IPUSHPULL_LOGOUT,
|
|
28
33
|
});
|
|
29
|
-
exports.
|
|
34
|
+
exports.IPushPullLogout = IPushPullLogout;
|
|
35
|
+
const IPushPullSetLoginDetails = (username, password) => ({
|
|
30
36
|
type: PluginsRedux_1.IPUSHPULL_SET_LOGIN_DETAILS,
|
|
31
37
|
username,
|
|
32
38
|
password,
|
|
33
39
|
});
|
|
34
|
-
exports.
|
|
40
|
+
exports.IPushPullSetLoginDetails = IPushPullSetLoginDetails;
|
|
41
|
+
const IPushPullSetLoginErrorMessage = (errorMessage) => ({
|
|
35
42
|
type: PluginsRedux_1.IPUSHPULL_SET_LOGIN_ERROR_MESSAGE,
|
|
36
43
|
errorMessage,
|
|
37
44
|
});
|
|
38
|
-
exports.
|
|
45
|
+
exports.IPushPullSetLoginErrorMessage = IPushPullSetLoginErrorMessage;
|
|
46
|
+
const IPushPullAddPage = (folder, page) => ({
|
|
39
47
|
type: PluginsRedux_1.IPUSHPULL_ADD_PAGE,
|
|
40
48
|
folder,
|
|
41
49
|
page,
|
|
42
50
|
});
|
|
43
|
-
exports.
|
|
51
|
+
exports.IPushPullAddPage = IPushPullAddPage;
|
|
52
|
+
const SetIPushPullAvailableOn = () => ({
|
|
44
53
|
type: PluginsRedux_1.IPUSHPULL_SET_AVAILABLE_ON,
|
|
45
54
|
});
|
|
46
|
-
exports.
|
|
55
|
+
exports.SetIPushPullAvailableOn = SetIPushPullAvailableOn;
|
|
56
|
+
const SetIPushPullAvailableOff = () => ({
|
|
47
57
|
type: PluginsRedux_1.IPUSHPULL_SET_AVAILABLE_OFF,
|
|
48
58
|
});
|
|
49
|
-
exports.
|
|
59
|
+
exports.SetIPushPullAvailableOff = SetIPushPullAvailableOff;
|
|
60
|
+
const SetIPushPullRunningOn = () => ({
|
|
50
61
|
type: PluginsRedux_1.IPUSHPULL_SET_RUNNING_ON,
|
|
51
62
|
});
|
|
52
|
-
exports.
|
|
63
|
+
exports.SetIPushPullRunningOn = SetIPushPullRunningOn;
|
|
64
|
+
const SetIPushPullRunningOff = () => ({
|
|
53
65
|
type: PluginsRedux_1.IPUSHPULL_SET_RUNNING_OFF,
|
|
54
66
|
});
|
|
55
|
-
exports.
|
|
67
|
+
exports.SetIPushPullRunningOff = SetIPushPullRunningOff;
|
|
68
|
+
const IPushPullSetDomainsPages = (IPushPullDomainsPages) => {
|
|
56
69
|
return {
|
|
57
70
|
type: PluginsRedux_1.IPUSHPULL_DOMAIN_PAGES_SET,
|
|
58
71
|
IPushPullDomainsPages,
|
|
59
72
|
};
|
|
60
73
|
};
|
|
61
|
-
exports.
|
|
74
|
+
exports.IPushPullSetDomainsPages = IPushPullSetDomainsPages;
|
|
75
|
+
const IPushPullClearDomainsPages = () => {
|
|
62
76
|
return {
|
|
63
77
|
type: PluginsRedux_1.IPUSHPULL_DOMAIN_PAGES_CLEAR,
|
|
64
78
|
};
|
|
65
79
|
};
|
|
66
|
-
exports.
|
|
80
|
+
exports.IPushPullClearDomainsPages = IPushPullClearDomainsPages;
|
|
81
|
+
const IPushPullLiveReportSet = (iPushPullReport) => ({
|
|
67
82
|
type: PluginsRedux_1.IPUSHPULL_LIVE_REPORT_SET,
|
|
68
83
|
iPushPullReport,
|
|
69
84
|
});
|
|
70
|
-
exports.
|
|
85
|
+
exports.IPushPullLiveReportSet = IPushPullLiveReportSet;
|
|
86
|
+
const IPushPullLiveReportClear = () => ({
|
|
71
87
|
type: PluginsRedux_1.IPUSHPULL_LIVE_REPORT_CLEAR,
|
|
72
88
|
});
|
|
73
|
-
exports.
|
|
74
|
-
|
|
89
|
+
exports.IPushPullLiveReportClear = IPushPullLiveReportClear;
|
|
90
|
+
const IPushPullSetCurrentReportName = (reportName) => ({ type: PluginsRedux_1.IPUSHPULL_SET_CURRENT_REPORTNAME, reportName });
|
|
91
|
+
exports.IPushPullSetCurrentReportName = IPushPullSetCurrentReportName;
|
|
92
|
+
const IPushPullSetCurrentFolder = (folder) => ({
|
|
75
93
|
type: PluginsRedux_1.IPUSHPULL_SET_CURRENT_FOLDER,
|
|
76
94
|
folder,
|
|
77
95
|
});
|
|
78
|
-
exports.
|
|
96
|
+
exports.IPushPullSetCurrentFolder = IPushPullSetCurrentFolder;
|
|
97
|
+
const IPushPullSetCurrentPage = (page) => ({
|
|
79
98
|
type: PluginsRedux_1.IPUSHPULL_SET_CURRENT_PAGE,
|
|
80
99
|
page,
|
|
81
100
|
});
|
|
82
|
-
exports.
|
|
101
|
+
exports.IPushPullSetCurrentPage = IPushPullSetCurrentPage;
|
|
102
|
+
const IPushPullSetCurrentAvailablePages = (availablePages) => ({
|
|
83
103
|
type: PluginsRedux_1.IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES,
|
|
84
104
|
availablePages,
|
|
85
105
|
});
|
|
106
|
+
exports.IPushPullSetCurrentAvailablePages = IPushPullSetCurrentAvailablePages;
|
|
86
107
|
exports.iPushPullInitialState = {
|
|
87
108
|
IsIPushPullRunning: false,
|
|
88
109
|
IPushPullDomainsPages: GeneralConstants_1.EMPTY_ARRAY,
|
|
@@ -93,7 +114,7 @@ exports.iPushPullInitialState = {
|
|
|
93
114
|
IPushPullCurrentPage: GeneralConstants_1.EMPTY_STRING,
|
|
94
115
|
IPushPullCurrentAvailablePages: GeneralConstants_1.EMPTY_ARRAY,
|
|
95
116
|
};
|
|
96
|
-
|
|
117
|
+
const IPushPullReducer = (
|
|
97
118
|
// initial state is handled in the plugin rootReducer
|
|
98
119
|
state, action) => {
|
|
99
120
|
switch (action.type) {
|
|
@@ -155,3 +176,4 @@ state, action) => {
|
|
|
155
176
|
return state;
|
|
156
177
|
}
|
|
157
178
|
};
|
|
179
|
+
exports.IPushPullReducer = IPushPullReducer;
|
|
@@ -3,9 +3,9 @@ import { IPushPullDomain } from '@adaptabletools/adaptable/src/PredefinedConfig/
|
|
|
3
3
|
export interface IPushPullService {
|
|
4
4
|
login(login: string, password: string): Promise<any>;
|
|
5
5
|
getDomainPages(): Promise<IPushPullDomain[]>;
|
|
6
|
-
loadPage(folderIPP: string, pageIPP: string): Promise<
|
|
6
|
+
loadPage(folderIPP: string, pageIPP: string): Promise<void>;
|
|
7
7
|
unloadPage(page: string): void;
|
|
8
|
-
pushData(page: string, data: any[]): Promise<
|
|
8
|
+
pushData(page: string, data: any[]): Promise<void>;
|
|
9
9
|
getIPushPullStatus(): ServiceStatus;
|
|
10
10
|
addNewPage(folderId: number, page: string): Promise<any>;
|
|
11
11
|
}
|
|
@@ -16,8 +16,8 @@ export declare class PushPullService implements IPushPullService {
|
|
|
16
16
|
private getIPPApi;
|
|
17
17
|
login(login: string, password: string): Promise<any>;
|
|
18
18
|
getDomainPages(): Promise<IPushPullDomain[]>;
|
|
19
|
-
loadPage(folderIPP: string, pageIPP: string): Promise<
|
|
19
|
+
loadPage(folderIPP: string, pageIPP: string): Promise<void>;
|
|
20
20
|
unloadPage(page: string): void;
|
|
21
21
|
addNewPage(folderId: number, page: string): Promise<any>;
|
|
22
|
-
pushData(page: string, data: any[]): Promise<
|
|
22
|
+
pushData(page: string, data: any[]): Promise<void>;
|
|
23
23
|
}
|
|
@@ -5,5 +5,5 @@ interface IPushPullAddPagePopupProps {
|
|
|
5
5
|
onAddPage: (folder: string, page: string) => IPushPullRedux.IPushPullAddPageAction;
|
|
6
6
|
onCancel: () => any;
|
|
7
7
|
}
|
|
8
|
-
export declare let IPushPullAddPagePopup: import("react-redux").ConnectedComponent<(props: IPushPullAddPagePopupProps) => JSX.Element,
|
|
8
|
+
export declare let IPushPullAddPagePopup: import("react-redux").ConnectedComponent<(props: IPushPullAddPagePopupProps) => JSX.Element, import("react-redux").Omit<IPushPullAddPagePopupProps, "onCancel" | "IPushPullDomainsPages" | "onAddPage">>;
|
|
9
9
|
export {};
|
|
@@ -6,5 +6,5 @@ interface IPushPullLoginPopupProps {
|
|
|
6
6
|
onLogin: (login: string, password: string) => IPushPullRedux.IPushPullLoginAction;
|
|
7
7
|
onCancel: () => any;
|
|
8
8
|
}
|
|
9
|
-
export declare let IPushPullLoginPopup: import("react-redux").ConnectedComponent<(props: IPushPullLoginPopupProps) => JSX.Element,
|
|
9
|
+
export declare let IPushPullLoginPopup: import("react-redux").ConnectedComponent<(props: IPushPullLoginPopupProps) => JSX.Element, import("react-redux").Omit<IPushPullLoginPopupProps, "onCancel" | "pushpullLogin" | "pushpullPassword" | "pushpullLoginErrorMessage" | "onLogin">>;
|
|
10
10
|
export {};
|
|
@@ -18,5 +18,5 @@ declare class IPushPullPopupComponent extends React.Component<IPushPullPopupProp
|
|
|
18
18
|
render(): JSX.Element;
|
|
19
19
|
onApplyExport(iPushPullReport: IPushPullReport): void;
|
|
20
20
|
}
|
|
21
|
-
export declare let IPushPullPopup: import("react-redux").ConnectedComponent<typeof IPushPullPopupComponent,
|
|
21
|
+
export declare let IPushPullPopup: import("react-redux").ConnectedComponent<typeof IPushPullPopupComponent, import("react-redux").Omit<React.ClassAttributes<IPushPullPopupComponent> & IPushPullPopupProps, "api" | "key" | "ref" | "onSuspend" | "accessLevel" | "popupParams" | "onClearPopupParams" | "teamSharingActivated" | "onClosePopup" | "moduleInfo" | "onUnSuspend" | "modalContainer" | "onShare" | "onIPushPullSendSnapshot" | "onIPushPullStopLiveData">>;
|
|
22
22
|
export {};
|
|
@@ -24,4 +24,4 @@ export interface IPushPullViewPanelComponentProps extends ViewPanelProps {
|
|
|
24
24
|
onCurrentIPushPullFolderChange: (folder: string) => IPushPullRedux.IPushPullSetCurrentFolderAction;
|
|
25
25
|
onCurrentIPushPullPageChange: (page: string) => IPushPullRedux.IPushPullSetCurrentPageAction;
|
|
26
26
|
}
|
|
27
|
-
export declare const IPushPullViewPanelControl: import("react-redux").ConnectedComponent<(props: IPushPullViewPanelComponentProps) => JSX.Element,
|
|
27
|
+
export declare const IPushPullViewPanelControl: import("react-redux").ConnectedComponent<(props: IPushPullViewPanelComponentProps) => JSX.Element, import("react-redux").Omit<IPushPullViewPanelComponentProps, "api" | "accessLevel" | "IsIPushPullRunning" | "IPushPullDomainsPages" | "CurrentLiveIPushPullReport" | "moduleInfo" | "Columns" | "viewType" | "Reports" | "onIPushPullSendSnapshot" | "onIPushPullStartLiveData" | "onIPushPullStopLiveData" | "onNewIPushPullSchedule" | "onShowIPushPullLogin" | "onShowAddIPushPullPage" | "CurrentIPushPullReportName" | "CurrentIPushPullFolder" | "CurrentIPushPullPage" | "CurrentIPushPullAvailablePages" | "onCurrentIPushPullReportNameChange" | "onCurrentIPushPullFolderChange" | "onCurrentIPushPullPageChange">>;
|