Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { apiUrls } from './lib/utils/apis';
import { createEvents } from './lib/events';

const _ = require('underscore');

Check warning on line 5 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden
const winston = require('winston');

Check warning on line 6 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden

// Possible TODO: Namespace parameters for different subcomponents
// E.g. clientOptions.requestor.instance OR
Expand All @@ -20,7 +20,7 @@

requestorConfig.logger = buildLogger(clientOptions);

return require('./lib/utils/httpRequestor.js').create(requestorConfig);

Check warning on line 23 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden
}

function buildLogger(clientOptions) {
Expand Down Expand Up @@ -88,14 +88,23 @@
};

return {
constants: require('./lib/utils/constants.js'),

Check warning on line 91 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden
contacts: require('./lib/contacts/').create(options),

Check warning on line 92 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden
events: createEvents(options),
favorites: require('./lib/favorites/').create(options),

Check warning on line 94 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden
folders: require('./lib/folders/').create(options),

Check warning on line 95 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden
groups: require('./lib/groups/').create(options),

Check warning on line 96 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden
/**
* @deprecated
* The home module is deprecated. The endpoints powering this module
* are being shut off as part of the sheets folder deprecation.
* The endpoints will be available until June.
*
* See this changelog entry for more information
* https://developers.smartsheet.com/api/smartsheet/changelog#2025-03-25
*/
home: require('./lib/home/').create(options),

Check warning on line 106 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden
images: require('./lib/images/').create(options),

Check warning on line 107 in index.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden
reports: require('./lib/reports/').create(options),
request: require('./lib/request/').create(options),
search: require('./lib/search/').create(options),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smartsheet",
"version": "4.2.1",
"version": "4.2.2",
"description": "Smartsheet JavaScript client SDK",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down