Skip to content

Commit

Permalink
Export interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
std4lqi committed Mar 12, 2024
1 parent faf5587 commit d2c068b
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 27 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zos-node-accessor",
"version": "2.0.9",
"version": "2.0.10",
"description": "Accessing z/OS dataset and interacting with JES in NodeJS way",
"main": "./lib/zosAccessor.js",
"types": "./lib/zosAccessor.d.ts",
Expand Down
3 changes: 1 addition & 2 deletions src/__test__/allocateDataset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
/* */
/****************************************************************************/

import { ZosAccessor } from '../zosAccessor';
import { ZosAccessor, DatasetEntry } from '../zosAccessor';
import { connectFTPServer, getRandomDatasetName, deleteDataset } from './testUtils';
import { Utils } from '../utils';
import { DatasetEntry } from '../interfaces/DatasetEntry';

let dsn: string;

Expand Down
3 changes: 1 addition & 2 deletions src/__test__/deleteJob.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
/* */
/****************************************************************************/

import { JobIdOption } from '../interfaces/JobIdOption';
import { ZosAccessor } from '../zosAccessor';
import { ZosAccessor, JobIdOption } from '../zosAccessor';
import { connectFTPServer, submitHelloJob } from './testUtils';

describe('The method of submitJCL()', () => {
Expand Down
3 changes: 1 addition & 2 deletions src/__test__/getJobLog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
/* */
/****************************************************************************/

import { JobLogOption } from '../interfaces/JobIdOption';
import { ZosAccessor } from '../zosAccessor';
import { ZosAccessor, JobLogOption } from '../zosAccessor';
import { connectFTPServer, submitHelloJob } from './testUtils';

describe('The method of getJobLog()', () => {
Expand Down
4 changes: 1 addition & 3 deletions src/__test__/getJobStatus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
/* */
/****************************************************************************/

import { JobIdOption } from '../interfaces/JobIdOption';
import { SpoolFile } from '../interfaces/SpoolFile';
import { ZosAccessor } from '../zosAccessor';
import { ZosAccessor, JobIdOption, SpoolFile } from '../zosAccessor';
import { connectFTPServer, submitHelloJob, USERNAME } from './testUtils';

describe('The method of getJobStatus()', () => {
Expand Down
4 changes: 1 addition & 3 deletions src/__test__/listDatasets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
/* */
/****************************************************************************/

import { DatasetEntry } from '../interfaces/DatasetEntry';
import { DatasetMemberEntry } from '../interfaces/DatasetMemberEntry';
import { TransferMode, ZosAccessor } from '../zosAccessor';
import { TransferMode, ZosAccessor, DatasetEntry, DatasetMemberEntry } from '../zosAccessor';
import {
connectFTPServer,
deleteDataset,
Expand Down
3 changes: 1 addition & 2 deletions src/__test__/listFiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

import path from 'path';

import { FileType, USSEntry } from '../interfaces/USSEntry';
import { ZosAccessor } from '../zosAccessor';
import { ZosAccessor, FileType, USSEntry } from '../zosAccessor';
import {
connectFTPServer,
deleteDirectory,
Expand Down
3 changes: 1 addition & 2 deletions src/__test__/listJobs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
/* */
/****************************************************************************/

import { JobListOption } from '../interfaces/JobListOption';
import { ZosAccessor } from '../zosAccessor';
import { ZosAccessor, JobListOption } from '../zosAccessor';
import { connectFTPServer, submitHelloJob } from './testUtils';

describe('The method of listJobs()', () => {
Expand Down
3 changes: 1 addition & 2 deletions src/__test__/queryJob.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
/* */
/****************************************************************************/

import { ZosAccessor, JobStatusResult } from '../zosAccessor';
import { ZosAccessor, JobStatusResult, JobIdOption } from '../zosAccessor';
import { connectFTPServer, submitHelloJob } from './testUtils';
import { JobIdOption } from '../interfaces/JobIdOption';

describe('The method of queryJob()', () => {

Expand Down
3 changes: 1 addition & 2 deletions src/__unit__/zosAccessor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ ftp4.mockImplementation(() => {
import Q from 'q';
import * as stream from 'stream';

import { SpoolFile } from '../interfaces/SpoolFile';
import { JobStatusResult, TransferMode, ZosAccessor } from '../zosAccessor';
import { JobStatusResult, TransferMode, ZosAccessor, SpoolFile } from '../zosAccessor';
import { rawDatasetList } from './testInput';

const USERNAME = 'ADCDA';
Expand Down
16 changes: 12 additions & 4 deletions src/zosAccessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,15 @@ class ZosAccessor {
}
}

export {
ZosAccessor,
};

export { ZosAccessor };

export { ConnectionOption } from "./interfaces/ConnectionOption";
export { DatasetEntry } from "./interfaces/DatasetEntry";
export { DatasetMemberEntry } from "./interfaces/DatasetMemberEntry";
export { Entry } from "./interfaces/Entry";
export { Job, JobStatus } from "./interfaces/Job"
export { JobLogOption, JobIdOption } from "./interfaces/JobIdOption"
export { JobListOption } from "./interfaces/JobListOption"
export { LoadLibMemberEntry } from "./interfaces/LoadLibMemberEntry";
export { SpoolFile } from "./interfaces/SpoolFile"
export { USSEntry, FileType } from "./interfaces/USSEntry";

0 comments on commit d2c068b

Please sign in to comment.