@sqlanvil/core 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle.d.ts CHANGED
@@ -61,6 +61,9 @@ namespace sqlanvil {
61
61
 
62
62
  /** WorkflowSettings connections */
63
63
  connections?: ({ [k: string]: sqlanvil.IConnectionConfig }|null);
64
+
65
+ /** WorkflowSettings environments */
66
+ environments?: ({ [k: string]: sqlanvil.IEnvironment }|null);
64
67
  }
65
68
 
66
69
  /** Represents a WorkflowSettings. */
@@ -126,6 +129,9 @@ namespace sqlanvil {
126
129
  /** WorkflowSettings connections. */
127
130
  public connections: { [k: string]: sqlanvil.IConnectionConfig };
128
131
 
132
+ /** WorkflowSettings environments. */
133
+ public environments: { [k: string]: sqlanvil.IEnvironment };
134
+
129
135
  /**
130
136
  * Creates a new WorkflowSettings instance using the specified properties.
131
137
  * @param [properties] Properties to set
@@ -204,6 +210,127 @@ namespace sqlanvil {
204
210
  public static getTypeUrl(typeUrlPrefix?: string): string;
205
211
  }
206
212
 
213
+ /** Properties of an Environment. */
214
+ interface IEnvironment {
215
+
216
+ /** Environment schemaSuffix */
217
+ schemaSuffix?: (string|null);
218
+
219
+ /** Environment vars */
220
+ vars?: ({ [k: string]: string }|null);
221
+
222
+ /** Environment defaultDatabase */
223
+ defaultDatabase?: (string|null);
224
+
225
+ /** Environment defaultLocation */
226
+ defaultLocation?: (string|null);
227
+
228
+ /** Environment credentials */
229
+ credentials?: (string|null);
230
+ }
231
+
232
+ /** Represents an Environment. */
233
+ class Environment implements IEnvironment {
234
+
235
+ /**
236
+ * Constructs a new Environment.
237
+ * @param [properties] Properties to set
238
+ */
239
+ constructor(properties?: sqlanvil.IEnvironment);
240
+
241
+ /** Environment schemaSuffix. */
242
+ public schemaSuffix: string;
243
+
244
+ /** Environment vars. */
245
+ public vars: { [k: string]: string };
246
+
247
+ /** Environment defaultDatabase. */
248
+ public defaultDatabase: string;
249
+
250
+ /** Environment defaultLocation. */
251
+ public defaultLocation: string;
252
+
253
+ /** Environment credentials. */
254
+ public credentials: string;
255
+
256
+ /**
257
+ * Creates a new Environment instance using the specified properties.
258
+ * @param [properties] Properties to set
259
+ * @returns Environment instance
260
+ */
261
+ public static create(properties?: sqlanvil.IEnvironment): sqlanvil.Environment;
262
+
263
+ /**
264
+ * Encodes the specified Environment message. Does not implicitly {@link sqlanvil.Environment.verify|verify} messages.
265
+ * @param message Environment message or plain object to encode
266
+ * @param [writer] Writer to encode to
267
+ * @returns Writer
268
+ */
269
+ public static encode(message: sqlanvil.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer;
270
+
271
+ /**
272
+ * Encodes the specified Environment message, length delimited. Does not implicitly {@link sqlanvil.Environment.verify|verify} messages.
273
+ * @param message Environment message or plain object to encode
274
+ * @param [writer] Writer to encode to
275
+ * @returns Writer
276
+ */
277
+ public static encodeDelimited(message: sqlanvil.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer;
278
+
279
+ /**
280
+ * Decodes an Environment message from the specified reader or buffer.
281
+ * @param reader Reader or buffer to decode from
282
+ * @param [length] Message length if known beforehand
283
+ * @returns Environment
284
+ * @throws {Error} If the payload is not a reader or valid buffer
285
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
286
+ */
287
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.Environment;
288
+
289
+ /**
290
+ * Decodes an Environment message from the specified reader or buffer, length delimited.
291
+ * @param reader Reader or buffer to decode from
292
+ * @returns Environment
293
+ * @throws {Error} If the payload is not a reader or valid buffer
294
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
295
+ */
296
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.Environment;
297
+
298
+ /**
299
+ * Verifies an Environment message.
300
+ * @param message Plain object to verify
301
+ * @returns `null` if valid, otherwise the reason why it is not
302
+ */
303
+ public static verify(message: { [k: string]: any }): (string|null);
304
+
305
+ /**
306
+ * Creates an Environment message from a plain object. Also converts values to their respective internal types.
307
+ * @param object Plain object
308
+ * @returns Environment
309
+ */
310
+ public static fromObject(object: { [k: string]: any }): sqlanvil.Environment;
311
+
312
+ /**
313
+ * Creates a plain object from an Environment message. Also converts values to other types if specified.
314
+ * @param message Environment
315
+ * @param [options] Conversion options
316
+ * @returns Plain object
317
+ */
318
+ public static toObject(message: sqlanvil.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any };
319
+
320
+ /**
321
+ * Converts this Environment to JSON.
322
+ * @returns JSON object
323
+ */
324
+ public toJSON(): { [k: string]: any };
325
+
326
+ /**
327
+ * Gets the default type url for Environment
328
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
329
+ * @returns The default type url
330
+ */
331
+ public static getTypeUrl(typeUrlPrefix?: string): string;
332
+ }
333
+
207
334
  /** Properties of a ConnectionConfig. */
208
335
  interface IConnectionConfig {
209
336
 
@@ -14314,7 +14441,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
14314
14441
 
14315
14442
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
14316
14443
 
14317
- declare const version = "1.6.0";
14444
+ declare const version = "1.7.0";
14318
14445
 
14319
14446
  declare const session: Session;
14320
14447
  declare const supportedFeatures: sqlanvil.SupportedFeatures[];