@adminforth/import-export 1.4.24 → 1.4.25
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/index.js +0 -4
- package/index.ts +0 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53,7 +53,6 @@ export default class ImportExport extends AdminForthPlugin {
|
|
|
53
53
|
server.endpoint({
|
|
54
54
|
method: 'POST',
|
|
55
55
|
path: `/plugin/${this.pluginInstanceId}/export-csv`,
|
|
56
|
-
noAuth: true,
|
|
57
56
|
handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body }) {
|
|
58
57
|
const { filters, sort } = body;
|
|
59
58
|
const data = yield this.adminforth.connectors[this.resourceConfig.dataSource].getData({
|
|
@@ -86,7 +85,6 @@ export default class ImportExport extends AdminForthPlugin {
|
|
|
86
85
|
server.endpoint({
|
|
87
86
|
method: 'POST',
|
|
88
87
|
path: `/plugin/${this.pluginInstanceId}/import-csv`,
|
|
89
|
-
noAuth: true,
|
|
90
88
|
handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body }) {
|
|
91
89
|
const { data } = body;
|
|
92
90
|
const columns = this.getColumnNames(data);
|
|
@@ -124,7 +122,6 @@ export default class ImportExport extends AdminForthPlugin {
|
|
|
124
122
|
server.endpoint({
|
|
125
123
|
method: 'POST',
|
|
126
124
|
path: `/plugin/${this.pluginInstanceId}/import-csv-new-only`,
|
|
127
|
-
noAuth: true,
|
|
128
125
|
handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body }) {
|
|
129
126
|
const { data } = body;
|
|
130
127
|
const columns = this.getColumnNames(data);
|
|
@@ -157,7 +154,6 @@ export default class ImportExport extends AdminForthPlugin {
|
|
|
157
154
|
server.endpoint({
|
|
158
155
|
method: 'POST',
|
|
159
156
|
path: `/plugin/${this.pluginInstanceId}/check-records`,
|
|
160
|
-
noAuth: true,
|
|
161
157
|
handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body }) {
|
|
162
158
|
const { data } = body;
|
|
163
159
|
const primaryKeyColumn = this.resourceConfig.columns.find(col => col.primaryKey);
|
package/index.ts
CHANGED
|
@@ -53,7 +53,6 @@ export default class ImportExport extends AdminForthPlugin {
|
|
|
53
53
|
server.endpoint({
|
|
54
54
|
method: 'POST',
|
|
55
55
|
path: `/plugin/${this.pluginInstanceId}/export-csv`,
|
|
56
|
-
noAuth: true,
|
|
57
56
|
handler: async ({ body }) => {
|
|
58
57
|
const { filters, sort } = body;
|
|
59
58
|
|
|
@@ -93,7 +92,6 @@ export default class ImportExport extends AdminForthPlugin {
|
|
|
93
92
|
server.endpoint({
|
|
94
93
|
method: 'POST',
|
|
95
94
|
path: `/plugin/${this.pluginInstanceId}/import-csv`,
|
|
96
|
-
noAuth: true,
|
|
97
95
|
handler: async ({ body }) => {
|
|
98
96
|
const { data } = body;
|
|
99
97
|
const columns = this.getColumnNames(data);
|
|
@@ -136,7 +134,6 @@ export default class ImportExport extends AdminForthPlugin {
|
|
|
136
134
|
server.endpoint({
|
|
137
135
|
method: 'POST',
|
|
138
136
|
path: `/plugin/${this.pluginInstanceId}/import-csv-new-only`,
|
|
139
|
-
noAuth: true,
|
|
140
137
|
handler: async ({ body }) => {
|
|
141
138
|
const { data } = body;
|
|
142
139
|
const columns = this.getColumnNames(data);
|
|
@@ -174,7 +171,6 @@ export default class ImportExport extends AdminForthPlugin {
|
|
|
174
171
|
server.endpoint({
|
|
175
172
|
method: 'POST',
|
|
176
173
|
path: `/plugin/${this.pluginInstanceId}/check-records`,
|
|
177
|
-
noAuth: true,
|
|
178
174
|
handler: async ({ body }) => {
|
|
179
175
|
const { data } = body as { data: Record<string, unknown[]> };
|
|
180
176
|
const primaryKeyColumn = this.resourceConfig.columns.find(col => col.primaryKey);
|