Skip to content

Commit

Permalink
Merge pull request #101 from IBM/refine-interface-exports
Browse files Browse the repository at this point in the history
Export interfaces
  • Loading branch information
std4lqi authored Mar 18, 2024
2 parents faf5587 + c253ee8 commit 1f4cbad
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 30 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/__test__/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ import * as path from 'path';
import Q from 'q';

import { Writable, WritableOptions } from 'stream';
import { JobIdOption } from '../interfaces/JobIdOption';
import { Utils } from '../utils';
import { FileToOperate, ZosAccessor } from '../zosAccessor';
import { FileToOperate, ZosAccessor, JobIdOption } from '../zosAccessor';

export interface JobNameAndJCL {
jobName: string;
Expand Down
2 changes: 1 addition & 1 deletion src/__unit__/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* */
/****************************************************************************/

import { USSEntry } from '../interfaces/USSEntry';
import { USSEntry } from '../zosAccessor';
import { parseDataSets, parseLoadLibPDSMembers, parsePDSMembers, parseUSSDirList } from '../parser';
import { rawDatasetList, rawLoadLibMemberList, rawUSSList, rawUSSList2, rawUSSList3 } from './testInput';

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 1f4cbad

Please sign in to comment.