Skip to content

Commit

Permalink
fix(types): drop changes for drift and seasonal (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Apr 22, 2020
1 parent d6c9566 commit 679d990
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 39 deletions.
51 changes: 13 additions & 38 deletions src/types.d.ts
Expand Up @@ -96,15 +96,15 @@ declare namespace bigquery {
*/
type IArimaFittingMetrics = {
/**
* AIC.
* AIC
*/
aic?: number;
/**
* Log-likelihood.
* log-likelihood
*/
logLikelihood?: number;
/**
* Variance.
* variance.
*/
variance?: number;
};
Expand All @@ -121,32 +121,10 @@ declare namespace bigquery {
* Arima fitting metrics.
*/
arimaFittingMetrics?: IArimaFittingMetrics;
/**
* Whether Arima model fitted with drift or not. It is always false
* when d is not 1.
*/
hasDrift?: boolean;
/**
* Non-seasonal order.
*/
nonSeasonalOrder?: IArimaOrder;
/**
* Seasonal periods. Repeated because multiple periods are supported
* for one time series.
*/
seasonalPeriods?: Array<
| 'SEASONAL_PERIOD_TYPE_UNSPECIFIED'
| 'NO_SEASONALITY'
| 'DAILY'
| 'WEEKLY'
| 'MONTHLY'
| 'QUARTERLY'
| 'YEARLY'
>;
/**
* The id to indicate different time series.
*/
timeSeriesId?: string;
};

/**
Expand Down Expand Up @@ -488,17 +466,6 @@ declare namespace bigquery {
rows?: Array<IRow>;
};

type IConnectionProperty = {
/**
* [Required] Name of the connection property to set.
*/
key?: string;
/**
* [Required] Value of the connection property.
*/
value?: string;
};

type ICsvOptions = {
/**
* [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
Expand Down Expand Up @@ -927,6 +894,10 @@ declare namespace bigquery {
* [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
*/
googleSheetsOptions?: IGoogleSheetsOptions;
/**
* [Optional, Trusted Tester] Deprecated, do not use. Please set hivePartitioningOptions instead.
*/
hivePartitioningMode?: string;
/**
* [Optional, Trusted Tester] Options to configure hive partitioning support.
*/
Expand Down Expand Up @@ -1252,6 +1223,10 @@ declare namespace bigquery {
* [Optional] The separator for fields in a CSV file. The separator can be any ISO-8859-1 single-byte character. To use a character in the range 128-255, you must encode the character as UTF8. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (',').
*/
fieldDelimiter?: string;
/**
* [Optional, Trusted Tester] Deprecated, do not use. Please set hivePartitioningOptions instead.
*/
hivePartitioningMode?: string;
/**
* [Optional, Trusted Tester] Options to configure hive partitioning support.
*/
Expand Down Expand Up @@ -1334,7 +1309,7 @@ declare namespace bigquery {
/**
* Connection properties.
*/
connectionProperties?: Array<IConnectionProperty>;
connectionProperties?: Array<any>;
/**
* [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
*/
Expand Down Expand Up @@ -2060,7 +2035,7 @@ declare namespace bigquery {
/**
* Connection properties.
*/
connectionProperties?: Array<IConnectionProperty>;
connectionProperties?: Array<any>;
/**
* [Optional] Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'.
*/
Expand Down
2 changes: 1 addition & 1 deletion synth.metadata
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-bigquery.git",
"sha": "69cb8451edc6bcae8e237bad621e6eea2cfbc7aa"
"sha": "d6c95667577df2d32bff6f9d07117d011379ecd2"
}
},
{
Expand Down

0 comments on commit 679d990

Please sign in to comment.