Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/snowflake-sdk

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/snowflake-sdk - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

202

snowflake-sdk/index.d.ts

@@ -11,2 +11,154 @@ // Type definitions for snowflake-sdk 1.6

* ### Related Docs
* - {@link https://github.com/snowflakedb/snowflake-connector-nodejs/blob/master/lib/errors.js List of error codes and error factory createError()}
*/
export enum ErrorCode {
// 400001
ERR_INTERNAL_ASSERT_FAILED = 400001,
ERR_UNSUPPORTED_NODE_JS_VERSION = 400002,
// 401001
ERR_SF_NETWORK_COULD_NOT_CONNECT = 401001,
ERR_SF_RESPONSE_FAILURE = 401002,
ERR_SF_RESPONSE_NOT_JSON = 401003,
ERR_SF_RESPONSE_INVALID_TOKEN = 401004,
// 402001
ERR_LARGE_RESULT_SET_NETWORK_COULD_NOT_CONNECT = 402001,
ERR_LARGE_RESULT_SET_RESPONSE_FAILURE = 402002,
// 403001
ERR_GLOBAL_CONFIGURE_INVALID_LOG_LEVEL = 403001,
ERR_GLOBAL_CONFIGURE_INVALID_INSECURE_CONNECT = 403002,
ERR_GLOBAL_CONFIGURE_INVALID_OCSP_MODE = 403003,
// 404001
ERR_CONN_CREATE_MISSING_OPTIONS = 404001,
ERR_CONN_CREATE_INVALID_OPTIONS = 404002,
ERR_CONN_CREATE_MISSING_USERNAME = 404003,
ERR_CONN_CREATE_INVALID_USERNAME = 404004,
ERR_CONN_CREATE_MISSING_PASSWORD = 404005,
ERR_CONN_CREATE_INVALID_PASSWORD = 404006,
ERR_CONN_CREATE_MISSING_ACCOUNT = 404007,
ERR_CONN_CREATE_INVALID_ACCOUNT = 404008,
ERR_CONN_CREATE_MISSING_ACCESS_URL = 404009,
ERR_CONN_CREATE_INVALID_ACCESS_URL = 404010,
ERR_CONN_CREATE_INVALID_WAREHOUSE = 404011,
ERR_CONN_CREATE_INVALID_DATABASE = 404012,
ERR_CONN_CREATE_INVALID_SCHEMA = 404013,
ERR_CONN_CREATE_INVALID_ROLE = 404014,
ERR_CONN_CREATE_MISSING_PROXY_HOST = 404015,
ERR_CONN_CREATE_INVALID_PROXY_HOST = 404016,
ERR_CONN_CREATE_MISSING_PROXY_PORT = 404017,
ERR_CONN_CREATE_INVALID_PROXY_PORT = 404018,
ERR_CONN_CREATE_INVALID_STREAM_RESULT = 404019,
ERR_CONN_CREATE_INVALID_FETCH_AS_STRING = 404020,
ERR_CONN_CREATE_INVALID_FETCH_AS_STRING_VALUES = 404021,
ERR_CONN_CREATE_INVALID_REGION = 404022,
ERR_CONN_CREATE_INVALID_KEEP_ALIVE = 404023,
ERR_CONN_CREATE_INVALID_KEEP_ALIVE_HEARTBEAT_FREQ = 404024,
ERR_CONN_CREATE_INVALID_TREAT_INTEGER_AS_BIGINT = 404025,
ERR_CONN_CREATE_INVALID_PRIVATE_KEY = 404026,
ERR_CONN_CREATE_INVALID_PRIVATE_KEY_PATH = 404027,
ERR_CONN_CREATE_INVALID_PRIVATE_KEY_PASS = 404028,
ERR_CONN_CREATE_INVALID_OAUTH_TOKEN = 404029,
ERR_CONN_CREATE_INVALID_VALIDATE_DEFAULT_PARAMETERS = 404030,
ERR_CONN_CREATE_INVALID_APPLICATION = 404031,
// 405001
ERR_CONN_CONNECT_INVALID_CALLBACK = 405001,
// 405501
ERR_CONN_CONNECT_STATUS_CONNECTING = 405501, // sql state: 08002
ERR_CONN_CONNECT_STATUS_CONNECTED = 405502, // sql state: 08002
ERR_CONN_CONNECT_STATUS_DISCONNECTED = 405503, // sql state: 08002
// 406001
ERR_CONN_DESTROY_INVALID_CALLBACK = 406001,
// 406501
ERR_CONN_DESTROY_STATUS_PRISTINE = 406501,
ERR_CONN_DESTROY_STATUS_DISCONNECTED = 406502,
// 407001
ERR_CONN_REQUEST_STATUS_PRISTINE = 407001, // sql state: 08003
ERR_CONN_REQUEST_STATUS_DISCONNECTED = 407002, // sql state: 08003
// 408001
ERR_CONN_DESERIALIZE_MISSING_CONFIG = 408001,
ERR_CONN_DESERIALIZE_INVALID_CONFIG_TYPE = 408002,
ERR_CONN_DESERIALIZE_INVALID_CONFIG_FORM = 408003,
// 409001
ERR_CONN_EXEC_STMT_MISSING_OPTIONS = 409001,
ERR_CONN_EXEC_STMT_INVALID_OPTIONS = 409002,
ERR_CONN_EXEC_STMT_MISSING_SQL_TEXT = 409003,
ERR_CONN_EXEC_STMT_INVALID_SQL_TEXT = 409004,
ERR_CONN_EXEC_STMT_INVALID_INTERNAL = 409005,
ERR_CONN_EXEC_STMT_INVALID_PARAMETERS = 409006,
ERR_CONN_EXEC_STMT_INVALID_BINDS = 409007,
ERR_CONN_EXEC_STMT_INVALID_BIND_VALUES = 409008,
ERR_CONN_EXEC_STMT_INVALID_COMPLETE = 409009,
ERR_CONN_EXEC_STMT_INVALID_STREAM_RESULT = 409010,
ERR_CONN_EXEC_STMT_INVALID_FETCH_AS_STRING = 409011,
ERR_CONN_EXEC_STMT_INVALID_FETCH_AS_STRING_VALUES = 409012,
// 410001
ERR_CONN_FETCH_RESULT_MISSING_OPTIONS = 410001,
ERR_CONN_FETCH_RESULT_INVALID_OPTIONS = 410002,
ERR_CONN_FETCH_RESULT_MISSING_STATEMENT_ID = 410003,
ERR_CONN_FETCH_RESULT_INVALID_STATEMENT_ID = 410004,
ERR_CONN_FETCH_RESULT_INVALID_COMPLETE = 410005,
ERR_CONN_FETCH_RESULT_INVALID_STREAM_RESULT = 410006,
ERR_CONN_FETCH_RESULT_INVALID_FETCH_AS_STRING = 410007,
ERR_CONN_FETCH_RESULT_INVALID_FETCH_AS_STRING_VALUES = 410008,
// 411001
ERR_STMT_STREAM_ROWS_INVALID_OPTIONS = 411001,
ERR_STMT_STREAM_ROWS_INVALID_START = 411002,
ERR_STMT_STREAM_ROWS_INVALID_END = 411003,
ERR_STMT_STREAM_ROWS_INVALID_FETCH_AS_STRING = 411004,
ERR_STMT_STREAM_ROWS_INVALID_FETCH_AS_STRING_VALUES = 411005,
// 412001
ERR_OCSP_REVOKED = 412001,
ERR_OCSP_UNKNOWN = 412002,
ERR_OCSP_NO_SIGNATURE_ALGORITHM = 412003,
ERR_OCSP_INVALID_SIGNATURE = 412004,
ERR_OCSP_NO_RESPONSE = 412005,
ERR_OCSP_INVALID_VALIDITY = 412006,
ERR_OCSP_UNKNOWN_STATE = 412007,
ERR_OCSP_NOT_TWO_ELEMENTS = 412008,
ERR_OCSP_CACHE_EXPIRED = 412009,
ERR_OCSP_FAILED_PARSE_RESPONSE = 412010,
ERR_OCSP_INVALID_CERTIFICATE_VALIDITY = 412011,
ERR_OCSP_RESPONDER_TIMEOUT = 412012,
ERR_OCSP_CACHE_SERVER_TIMEOUT = 412013,
ERR_OCSP_FAILED_OBTAIN_OCSP_RESPONSE = 412014,
// 450001
ERR_STMT_FETCH_ROWS_MISSING_OPTIONS = 450001,
ERR_STMT_FETCH_ROWS_INVALID_OPTIONS = 450002,
ERR_STMT_FETCH_ROWS_MISSING_EACH = 450003,
ERR_STMT_FETCH_ROWS_INVALID_EACH = 450004,
ERR_STMT_FETCH_ROWS_MISSING_END = 450005,
ERR_STMT_FETCH_ROWS_INVALID_END = 450006,
ERR_STMT_FETCH_ROWS_FETCHING_RESULT = 450007,
}
export interface SnowflakeErrorExternal extends Error {
code?: ErrorCode;
sqlState?: string;
data?: object;
response?: object;
responseBody?: string;
cause?: Error;
isFatal?: boolean;
}
export interface SnowflakeError extends SnowflakeErrorExternal {
externalize?: () => SnowflakeErrorExternal;
}
/**
* ### Related Docs
* - {@link https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html#required-connection-options Required Connection Options}

@@ -103,26 +255,26 @@ */

*/
authenticator?: string;
authenticator?: string;
/**
* Specifies the OAuth token to use for authentication. Set this option if you set the authenticator option to OAUTH.
*/
token?: string;
/**
* Specifies the OAuth token to use for authentication. Set this option if you set the authenticator option to OAUTH.
*/
token?: string;
/**
* Specifies the private key (in PEM format) for key pair authentication.
* For details, see {@link https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html#label-nodejs-key-pair-authentication Using Key Pair Authentication & Key Pair Rotation}.
*/
privateKey?: string | Buffer;
/**
* Specifies the private key (in PEM format) for key pair authentication.
* For details, see {@link https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html#label-nodejs-key-pair-authentication Using Key Pair Authentication & Key Pair Rotation}.
*/
privateKey?: string | Buffer;
/**
* Specifies the local path to the private key file (e.g. rsa_key.p8).
* For details, see {@link https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html#label-nodejs-key-pair-authentication Using Key Pair Authentication & Key Pair Rotation}.
*/
privateKeyPath?: string;
/**
* Specifies the local path to the private key file (e.g. rsa_key.p8).
* For details, see {@link https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html#label-nodejs-key-pair-authentication Using Key Pair Authentication & Key Pair Rotation}.
*/
privateKeyPath?: string;
/**
* Specifies the passcode to decrypt the private key file, if the file is encrypted.
* For details, see {@link https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html#label-nodejs-key-pair-authentication Using Key Pair Authentication & Key Pair Rotation}.
*/
privateKeyPass?: string;
/**
* Specifies the passcode to decrypt the private key file, if the file is encrypted.
* For details, see {@link https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html#label-nodejs-key-pair-authentication Using Key Pair Authentication & Key Pair Rotation}.
*/
privateKeyPass?: string;
}

@@ -164,3 +316,3 @@

Fetching = 'fetching',
Complete = 'complete'
Complete = 'complete',
}

@@ -225,3 +377,3 @@

*/
cancel(fn: (err: Error, stmt: Statement) => void): void;
cancel(fn: (err: SnowflakeError | undefined, stmt: Statement) => void): void;

@@ -296,3 +448,3 @@ streamRows(): NodeJS.ReadableStream;

*/
connect(fn: (err: Error, conn: Connection) => void): void;
connect(fn: (err: SnowflakeError | undefined, conn: Connection) => void): void;

@@ -317,3 +469,3 @@ /**

fetchAsString?: Array<'String' | 'Boolean' | 'Number' | 'Date' | 'JSON'> | undefined;
complete: (err: Error, stmt: Statement, rows: any[] | undefined) => void;
complete: (err: SnowflakeError | undefined, stmt: Statement, rows: any[] | undefined) => void;
}): void;

@@ -330,3 +482,3 @@

*/
destroy(fn: (err: Error, conn: Connection) => void): void;
destroy(fn: (err: SnowflakeError | undefined, conn: Connection) => void): void;

@@ -333,0 +485,0 @@ /**

6

snowflake-sdk/package.json
{
"name": "@types/snowflake-sdk",
"version": "1.6.0",
"version": "1.6.1",
"description": "TypeScript definitions for snowflake-sdk",

@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/snowflake-sdk",

},
"typesPublisherContentHash": "e1ba92b8bba43b9aabc929c37377dd40de7e4c95523be8094f2f7469f2b42243",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "a6fafa5d1cf964f6afdf974a40b2e6bd9429fffe5dcd35d33e7cbfade180f613",
"typeScriptVersion": "3.7"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 09 Jul 2021 12:01:19 GMT
* Last updated: Fri, 01 Oct 2021 16:01:18 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc