powersync 0.1.0 → 0.1.1
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/README.md +14 -14
- package/dist/commands/init.d.ts +0 -1
- package/dist/commands/init.js +9 -8
- package/dist/commands/instance/sync-rules/generate-schema.js +6 -6
- package/dist/constants.d.ts +2 -5
- package/dist/constants.js +4 -2
- package/dist/service/accounts.client.js +11129 -25
- package/dist/service/powersync.client.js +37453 -113
- package/dist/service/types.js +1 -1
- package/dist/service/utils.js +6 -6
- package/dist/utils.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +28 -20
- package/dist/powersync-sdk/accounts/api.d.ts +0 -717
- package/dist/powersync-sdk/accounts/api.js +0 -182
- package/dist/powersync-sdk/accounts/client.d.ts +0 -1096
- package/dist/powersync-sdk/accounts/client.js +0 -124
- package/dist/powersync-sdk/accounts/codecs.d.ts +0 -32
- package/dist/powersync-sdk/accounts/codecs.js +0 -93
- package/dist/powersync-sdk/accounts/index.d.ts +0 -4
- package/dist/powersync-sdk/accounts/index.js +0 -4
- package/dist/powersync-sdk/accounts/models.d.ts +0 -260
- package/dist/powersync-sdk/accounts/models.js +0 -96
- package/dist/powersync-sdk/accounts/routes.d.ts +0 -44
- package/dist/powersync-sdk/accounts/routes.js +0 -45
- package/dist/powersync-sdk/accounts/source.d.ts +0 -76
- package/dist/powersync-sdk/accounts/source.js +0 -32
- package/dist/powersync-sdk/errors/errors.d.ts +0 -62
- package/dist/powersync-sdk/errors/errors.js +0 -115
- package/dist/powersync-sdk/errors/index.d.ts +0 -2
- package/dist/powersync-sdk/errors/index.js +0 -2
- package/dist/powersync-sdk/errors/utils.d.ts +0 -4
- package/dist/powersync-sdk/errors/utils.js +0 -18
- package/dist/powersync-sdk/fetch-clients/codecs.d.ts +0 -4
- package/dist/powersync-sdk/fetch-clients/codecs.js +0 -34
- package/dist/powersync-sdk/fetch-clients/decoders.d.ts +0 -3
- package/dist/powersync-sdk/fetch-clients/decoders.js +0 -35
- package/dist/powersync-sdk/fetch-clients/definitions.d.ts +0 -97
- package/dist/powersync-sdk/fetch-clients/definitions.js +0 -22
- package/dist/powersync-sdk/fetch-clients/errors.d.ts +0 -7
- package/dist/powersync-sdk/fetch-clients/errors.js +0 -19
- package/dist/powersync-sdk/fetch-clients/index.d.ts +0 -5
- package/dist/powersync-sdk/fetch-clients/index.js +0 -5
- package/dist/powersync-sdk/fetch-clients/node-client.d.ts +0 -9
- package/dist/powersync-sdk/fetch-clients/node-client.js +0 -107
- package/dist/powersync-sdk/fetch-clients/request.d.ts +0 -11
- package/dist/powersync-sdk/fetch-clients/request.js +0 -138
- package/dist/powersync-sdk/fetch-clients/streaming.d.ts +0 -65
- package/dist/powersync-sdk/fetch-clients/streaming.js +0 -99
- package/dist/powersync-sdk/fetch-clients/utils.d.ts +0 -13
- package/dist/powersync-sdk/fetch-clients/utils.js +0 -43
- package/dist/powersync-sdk/fetch-clients/web-client.d.ts +0 -14
- package/dist/powersync-sdk/fetch-clients/web-client.js +0 -56
- package/dist/powersync-sdk/json/index.d.ts +0 -4
- package/dist/powersync-sdk/json/index.js +0 -3
- package/dist/powersync-sdk/json/json.d.ts +0 -5
- package/dist/powersync-sdk/json/json.js +0 -35
- package/dist/powersync-sdk/json/json_container.d.ts +0 -18
- package/dist/powersync-sdk/json/json_container.js +0 -28
- package/dist/powersync-sdk/json/json_stringify.d.ts +0 -36
- package/dist/powersync-sdk/json/json_stringify.js +0 -162
- package/dist/powersync-sdk/powersync/client.d.ts +0 -449
- package/dist/powersync-sdk/powersync/client.js +0 -53
- package/dist/powersync-sdk/powersync/config/HostedConfig.d.ts +0 -327
- package/dist/powersync-sdk/powersync/config/HostedConfig.js +0 -92
- package/dist/powersync-sdk/powersync/config/PowerSyncConfig.d.ts +0 -211
- package/dist/powersync-sdk/powersync/config/PowerSyncConfig.js +0 -97
- package/dist/powersync-sdk/powersync/config/normalize.d.ts +0 -32
- package/dist/powersync-sdk/powersync/config/normalize.js +0 -85
- package/dist/powersync-sdk/powersync/definitions.d.ts +0 -149
- package/dist/powersync-sdk/powersync/definitions.js +0 -97
- package/dist/powersync-sdk/powersync/index.d.ts +0 -8
- package/dist/powersync-sdk/powersync/index.js +0 -8
- package/dist/powersync-sdk/powersync/internal_routes.d.ts +0 -247
- package/dist/powersync-sdk/powersync/internal_routes.js +0 -69
- package/dist/powersync-sdk/powersync/routes.d.ts +0 -779
- package/dist/powersync-sdk/powersync/routes.js +0 -191
- package/dist/powersync-sdk/sdk-clients/endpoints.d.ts +0 -31
- package/dist/powersync-sdk/sdk-clients/endpoints.js +0 -48
- package/dist/powersync-sdk/sdk-clients/index.d.ts +0 -3
- package/dist/powersync-sdk/sdk-clients/index.js +0 -3
- package/dist/powersync-sdk/sdk-clients/pagination.d.ts +0 -14
- package/dist/powersync-sdk/sdk-clients/pagination.js +0 -21
- package/dist/powersync-sdk/sdk-clients/sdk-client.d.ts +0 -17
- package/dist/powersync-sdk/sdk-clients/sdk-client.js +0 -30
- package/dist/powersync-sdk/streaming/bson/buffer-array.d.ts +0 -31
- package/dist/powersync-sdk/streaming/bson/buffer-array.js +0 -79
- package/dist/powersync-sdk/streaming/bson/constants.d.ts +0 -2
- package/dist/powersync-sdk/streaming/bson/constants.js +0 -1
- package/dist/powersync-sdk/streaming/bson/decoder.d.ts +0 -10
- package/dist/powersync-sdk/streaming/bson/decoder.js +0 -62
- package/dist/powersync-sdk/streaming/bson/encoder.d.ts +0 -10
- package/dist/powersync-sdk/streaming/bson/encoder.js +0 -23
- package/dist/powersync-sdk/streaming/bson/header.d.ts +0 -11
- package/dist/powersync-sdk/streaming/bson/header.js +0 -52
- package/dist/powersync-sdk/streaming/bson/index.d.ts +0 -5
- package/dist/powersync-sdk/streaming/bson/index.js +0 -5
- package/dist/powersync-sdk/streaming/core/backpressure.d.ts +0 -15
- package/dist/powersync-sdk/streaming/core/backpressure.js +0 -34
- package/dist/powersync-sdk/streaming/core/cross-stream.d.ts +0 -6
- package/dist/powersync-sdk/streaming/core/cross-stream.js +0 -17
- package/dist/powersync-sdk/streaming/core/index.d.ts +0 -4
- package/dist/powersync-sdk/streaming/core/index.js +0 -4
- package/dist/powersync-sdk/streaming/core/node-utils.d.ts +0 -7
- package/dist/powersync-sdk/streaming/core/node-utils.js +0 -11
- package/dist/powersync-sdk/streaming/core/transformers.d.ts +0 -41
- package/dist/powersync-sdk/streaming/core/transformers.js +0 -70
- package/dist/powersync-sdk/streaming/core/utils.d.ts +0 -36
- package/dist/powersync-sdk/streaming/core/utils.js +0 -66
- package/dist/powersync-sdk/streaming/index.d.ts +0 -3
- package/dist/powersync-sdk/streaming/index.js +0 -3
- package/dist/powersync-sdk/streaming/web.d.ts +0 -4
- package/dist/powersync-sdk/streaming/web.js +0 -4
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binaryreader.d.ts +0 -2
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binaryreader.js +0 -36
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binarywriter.d.ts +0 -2
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/binarywriter.js +0 -58
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometry.d.ts +0 -18
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometry.js +0 -348
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometrycollection.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/geometrycollection.js +0 -118
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/linestring.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/linestring.js +0 -131
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multilinestring.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multilinestring.js +0 -134
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipoint.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipoint.js +0 -122
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipolygon.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/multipolygon.js +0 -158
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/point.d.ts +0 -14
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/point.js +0 -165
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/polygon.d.ts +0 -11
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/polygon.js +0 -207
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/types.d.ts +0 -30
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/types.js +0 -29
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wktparser.d.ts +0 -2
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wktparser.js +0 -111
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wkx.d.ts +0 -9
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/wkx.js +0 -9
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/zigzag.d.ts +0 -5
- package/dist/powersync-sdk/sync-rules/@syncpoint/wkx/zigzag.js +0 -9
- package/dist/powersync-sdk/sync-rules/DartSchemaGenerator.d.ts +0 -12
- package/dist/powersync-sdk/sync-rules/DartSchemaGenerator.js +0 -35
- package/dist/powersync-sdk/sync-rules/ExpressionType.d.ts +0 -33
- package/dist/powersync-sdk/sync-rules/ExpressionType.js +0 -62
- package/dist/powersync-sdk/sync-rules/IdSequence.d.ts +0 -4
- package/dist/powersync-sdk/sync-rules/IdSequence.js +0 -7
- package/dist/powersync-sdk/sync-rules/JsSchemaGenerator.d.ts +0 -12
- package/dist/powersync-sdk/sync-rules/JsSchemaGenerator.js +0 -38
- package/dist/powersync-sdk/sync-rules/SchemaGenerator.d.ts +0 -14
- package/dist/powersync-sdk/sync-rules/SchemaGenerator.js +0 -24
- package/dist/powersync-sdk/sync-rules/SourceTableInterface.d.ts +0 -5
- package/dist/powersync-sdk/sync-rules/SourceTableInterface.js +0 -1
- package/dist/powersync-sdk/sync-rules/SqlBucketDescriptor.d.ts +0 -37
- package/dist/powersync-sdk/sync-rules/SqlBucketDescriptor.js +0 -116
- package/dist/powersync-sdk/sync-rules/SqlDataQuery.d.ts +0 -39
- package/dist/powersync-sdk/sync-rules/SqlDataQuery.js +0 -245
- package/dist/powersync-sdk/sync-rules/SqlParameterQuery.d.ts +0 -43
- package/dist/powersync-sdk/sync-rules/SqlParameterQuery.js +0 -254
- package/dist/powersync-sdk/sync-rules/SqlSyncRules.d.ts +0 -52
- package/dist/powersync-sdk/sync-rules/SqlSyncRules.js +0 -252
- package/dist/powersync-sdk/sync-rules/StaticSchema.d.ts +0 -26
- package/dist/powersync-sdk/sync-rules/StaticSchema.js +0 -71
- package/dist/powersync-sdk/sync-rules/StaticSqlParameterQuery.d.ts +0 -24
- package/dist/powersync-sdk/sync-rules/StaticSqlParameterQuery.js +0 -71
- package/dist/powersync-sdk/sync-rules/TablePattern.d.ts +0 -17
- package/dist/powersync-sdk/sync-rules/TablePattern.js +0 -56
- package/dist/powersync-sdk/sync-rules/TableQuerySchema.d.ts +0 -9
- package/dist/powersync-sdk/sync-rules/TableQuerySchema.js +0 -41
- package/dist/powersync-sdk/sync-rules/errors.d.ts +0 -22
- package/dist/powersync-sdk/sync-rules/errors.js +0 -60
- package/dist/powersync-sdk/sync-rules/generators.d.ts +0 -6
- package/dist/powersync-sdk/sync-rules/generators.js +0 -6
- package/dist/powersync-sdk/sync-rules/index.d.ts +0 -17
- package/dist/powersync-sdk/sync-rules/index.js +0 -17
- package/dist/powersync-sdk/sync-rules/json_schema.d.ts +0 -3
- package/dist/powersync-sdk/sync-rules/json_schema.js +0 -50
- package/dist/powersync-sdk/sync-rules/sql_filters.d.ts +0 -91
- package/dist/powersync-sdk/sync-rules/sql_filters.js +0 -491
- package/dist/powersync-sdk/sync-rules/sql_functions.d.ts +0 -53
- package/dist/powersync-sdk/sync-rules/sql_functions.js +0 -755
- package/dist/powersync-sdk/sync-rules/sql_support.d.ts +0 -22
- package/dist/powersync-sdk/sync-rules/sql_support.js +0 -208
- package/dist/powersync-sdk/sync-rules/types.d.ts +0 -174
- package/dist/powersync-sdk/sync-rules/types.js +0 -9
- package/dist/powersync-sdk/sync-rules/utils.d.ts +0 -45
- package/dist/powersync-sdk/sync-rules/utils.js +0 -163
- package/dist/service/accounts.client.d.ts +0 -26
- package/dist/service/powersync.client.d.ts +0 -269
- package/dist/service/types.d.ts +0 -69
- package/dist/service/utils.d.ts +0 -5
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { JavaScriptValue, NumberStringifier, Replacer } from 'lossless-json';
|
|
2
|
-
/**
|
|
3
|
-
* The LosslessJSON.stringify() method converts a JavaScript value to a JSON string,
|
|
4
|
-
* optionally replacing values if a replacer function is specified, or
|
|
5
|
-
* optionally including only the specified properties if a replacer array is specified.
|
|
6
|
-
*
|
|
7
|
-
* @param value
|
|
8
|
-
* The value to convert to a JSON string.
|
|
9
|
-
*
|
|
10
|
-
* @param [replacer]
|
|
11
|
-
* A function that alters the behavior of the stringification process,
|
|
12
|
-
* or an array of String and Number objects that serve as a whitelist for
|
|
13
|
-
* selecting the properties of the value object to be included in the JSON string.
|
|
14
|
-
* If this value is null or not provided, all properties of the object are
|
|
15
|
-
* included in the resulting JSON string.
|
|
16
|
-
*
|
|
17
|
-
* @param [space]
|
|
18
|
-
* A String or Number object that's used to insert white space into the output
|
|
19
|
-
* JSON string for readability purposes. If this is a Number, it indicates the
|
|
20
|
-
* number of space characters to use as white space; this number is capped at 10
|
|
21
|
-
* if it's larger than that. Values less than 1 indicate that no space should be
|
|
22
|
-
* used. If this is a String, the string (or the first 10 characters of the string,
|
|
23
|
-
* if it's longer than that) is used as white space. If this parameter is not
|
|
24
|
-
* provided (or is null), no white space is used.
|
|
25
|
-
*
|
|
26
|
-
* @param [numberStringifiers]
|
|
27
|
-
* An optional list with additional number stringifiers, for example to serialize
|
|
28
|
-
* a BigNumber. The output of the function must be valid stringified JSON.
|
|
29
|
-
* When `undefined` is returned, the property will be deleted from the object.
|
|
30
|
-
* The difference with using a `replacer` is that the output of a `replacer`
|
|
31
|
-
* must be JSON and will be stringified afterwards, whereas the output of the
|
|
32
|
-
* `numberStringifiers` is already stringified JSON.
|
|
33
|
-
*
|
|
34
|
-
* @returns Returns the string representation of the JSON object.
|
|
35
|
-
*/
|
|
36
|
-
export declare function stringify(value: JavaScriptValue, replacer?: Replacer, space?: number | string, numberStringifiers?: NumberStringifier[]): string | undefined;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/* eslint-disable unicorn/filename-case */
|
|
2
|
-
/* eslint-disable unicorn/consistent-function-scoping */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
-
// Adapted from https://github.com/josdejong/lossless-json/blob/dfb8a1a787ae167fffec068c3b6623179d3bfb95/src/stringify.ts
|
|
5
|
-
import { isNumber } from 'lossless-json';
|
|
6
|
-
/**
|
|
7
|
-
* The LosslessJSON.stringify() method converts a JavaScript value to a JSON string,
|
|
8
|
-
* optionally replacing values if a replacer function is specified, or
|
|
9
|
-
* optionally including only the specified properties if a replacer array is specified.
|
|
10
|
-
*
|
|
11
|
-
* @param value
|
|
12
|
-
* The value to convert to a JSON string.
|
|
13
|
-
*
|
|
14
|
-
* @param [replacer]
|
|
15
|
-
* A function that alters the behavior of the stringification process,
|
|
16
|
-
* or an array of String and Number objects that serve as a whitelist for
|
|
17
|
-
* selecting the properties of the value object to be included in the JSON string.
|
|
18
|
-
* If this value is null or not provided, all properties of the object are
|
|
19
|
-
* included in the resulting JSON string.
|
|
20
|
-
*
|
|
21
|
-
* @param [space]
|
|
22
|
-
* A String or Number object that's used to insert white space into the output
|
|
23
|
-
* JSON string for readability purposes. If this is a Number, it indicates the
|
|
24
|
-
* number of space characters to use as white space; this number is capped at 10
|
|
25
|
-
* if it's larger than that. Values less than 1 indicate that no space should be
|
|
26
|
-
* used. If this is a String, the string (or the first 10 characters of the string,
|
|
27
|
-
* if it's longer than that) is used as white space. If this parameter is not
|
|
28
|
-
* provided (or is null), no white space is used.
|
|
29
|
-
*
|
|
30
|
-
* @param [numberStringifiers]
|
|
31
|
-
* An optional list with additional number stringifiers, for example to serialize
|
|
32
|
-
* a BigNumber. The output of the function must be valid stringified JSON.
|
|
33
|
-
* When `undefined` is returned, the property will be deleted from the object.
|
|
34
|
-
* The difference with using a `replacer` is that the output of a `replacer`
|
|
35
|
-
* must be JSON and will be stringified afterwards, whereas the output of the
|
|
36
|
-
* `numberStringifiers` is already stringified JSON.
|
|
37
|
-
*
|
|
38
|
-
* @returns Returns the string representation of the JSON object.
|
|
39
|
-
*/
|
|
40
|
-
export function stringify(value, replacer, space, numberStringifiers) {
|
|
41
|
-
const resolvedSpace = resolveSpace(space);
|
|
42
|
-
const replacedValue = typeof replacer === 'function' ? replacer.call({ '': value }, '', value) : value;
|
|
43
|
-
return stringifyValue(replacedValue, '');
|
|
44
|
-
/**
|
|
45
|
-
* Stringify a value
|
|
46
|
-
*/
|
|
47
|
-
function stringifyValue(value, indent) {
|
|
48
|
-
if (Array.isArray(numberStringifiers)) {
|
|
49
|
-
const stringifier = numberStringifiers.find((item) => item.test(value));
|
|
50
|
-
if (stringifier) {
|
|
51
|
-
const str = stringifier.stringify(value);
|
|
52
|
-
if (typeof str !== 'string' || (!isNumber(str) && false)) {
|
|
53
|
-
// Changed: The number check is disabled, so that we can use this for other types.
|
|
54
|
-
throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number ' (output: ${str})`);
|
|
55
|
-
}
|
|
56
|
-
return str;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
// boolean, null, number, string, or date
|
|
60
|
-
if (typeof value === 'boolean' ||
|
|
61
|
-
typeof value === 'number' ||
|
|
62
|
-
typeof value === 'string' ||
|
|
63
|
-
value === null ||
|
|
64
|
-
value instanceof Date ||
|
|
65
|
-
value instanceof Boolean ||
|
|
66
|
-
value instanceof Number ||
|
|
67
|
-
value instanceof String) {
|
|
68
|
-
return JSON.stringify(value);
|
|
69
|
-
}
|
|
70
|
-
// lossless number, the secret ingredient :)
|
|
71
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
72
|
-
// @ts-ignore
|
|
73
|
-
if (value && value.isLosslessNumber) {
|
|
74
|
-
return value.toString();
|
|
75
|
-
}
|
|
76
|
-
// BigInt
|
|
77
|
-
if (typeof value === 'bigint') {
|
|
78
|
-
return value.toString();
|
|
79
|
-
}
|
|
80
|
-
// Array
|
|
81
|
-
if (Array.isArray(value)) {
|
|
82
|
-
return stringifyArray(value, indent);
|
|
83
|
-
}
|
|
84
|
-
// Object (test lastly!)
|
|
85
|
-
if (value && typeof value === 'object') {
|
|
86
|
-
return stringifyObject(value, indent);
|
|
87
|
-
}
|
|
88
|
-
return undefined;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Stringify an array
|
|
92
|
-
*/
|
|
93
|
-
function stringifyArray(array, indent) {
|
|
94
|
-
if (array.length === 0) {
|
|
95
|
-
return '[]';
|
|
96
|
-
}
|
|
97
|
-
const childIndent = resolvedSpace ? indent + resolvedSpace : undefined;
|
|
98
|
-
let str = resolvedSpace ? '[\n' : '[';
|
|
99
|
-
for (let i = 0; i < array.length; i++) {
|
|
100
|
-
const item = typeof replacer === 'function' ? replacer.call(array, String(i), array[i]) : array[i];
|
|
101
|
-
if (resolvedSpace) {
|
|
102
|
-
str += childIndent;
|
|
103
|
-
}
|
|
104
|
-
str += item !== undefined && typeof item !== 'function' ? stringifyValue(item, childIndent) : 'null';
|
|
105
|
-
if (i < array.length - 1) {
|
|
106
|
-
str += resolvedSpace ? ',\n' : ',';
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
str += resolvedSpace ? '\n' + indent + ']' : ']';
|
|
110
|
-
return str;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Stringify an object
|
|
114
|
-
*/
|
|
115
|
-
function stringifyObject(object, indent) {
|
|
116
|
-
if (typeof object.toJSON === 'function') {
|
|
117
|
-
return stringify(object.toJSON(), replacer, space, numberStringifiers);
|
|
118
|
-
}
|
|
119
|
-
const keys = Array.isArray(replacer) ? replacer.map(String) : Object.keys(object);
|
|
120
|
-
if (keys.length === 0) {
|
|
121
|
-
return '{}';
|
|
122
|
-
}
|
|
123
|
-
const childIndent = resolvedSpace ? indent + resolvedSpace : undefined;
|
|
124
|
-
let first = true;
|
|
125
|
-
let str = resolvedSpace ? '{\n' : '{';
|
|
126
|
-
for (const key of keys) {
|
|
127
|
-
const value = typeof replacer === 'function' ? replacer.call(object, key, object[key]) : object[key];
|
|
128
|
-
if (includeProperty(key, value)) {
|
|
129
|
-
if (first) {
|
|
130
|
-
first = false;
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
str += resolvedSpace ? ',\n' : ',';
|
|
134
|
-
}
|
|
135
|
-
const keyStr = JSON.stringify(key);
|
|
136
|
-
str += resolvedSpace ? childIndent + keyStr + ': ' : keyStr + ':';
|
|
137
|
-
str += stringifyValue(value, childIndent);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
str += resolvedSpace ? '\n' + indent + '}' : '}';
|
|
141
|
-
return str;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Test whether to include a property in a stringified object or not.
|
|
145
|
-
*/
|
|
146
|
-
function includeProperty(key, value) {
|
|
147
|
-
return value !== undefined && typeof value !== 'function' && typeof value !== 'symbol';
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Resolve a JSON stringify space:
|
|
152
|
-
* replace a number with a string containing that number of spaces
|
|
153
|
-
*/
|
|
154
|
-
function resolveSpace(space) {
|
|
155
|
-
if (typeof space === 'number') {
|
|
156
|
-
return ' '.repeat(space);
|
|
157
|
-
}
|
|
158
|
-
if (typeof space === 'string' && space !== '') {
|
|
159
|
-
return space;
|
|
160
|
-
}
|
|
161
|
-
return undefined;
|
|
162
|
-
}
|
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
import { NetworkClient } from '../fetch-clients/definitions.js';
|
|
2
|
-
import { SDKClient } from '../sdk-clients/sdk-client.js';
|
|
3
|
-
export declare class Client<C extends NetworkClient = NetworkClient> extends SDKClient<C> {
|
|
4
|
-
createInstance: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
5
|
-
name: string;
|
|
6
|
-
app_id: string;
|
|
7
|
-
org_id: string;
|
|
8
|
-
}, {
|
|
9
|
-
id: string;
|
|
10
|
-
}, C>;
|
|
11
|
-
deactivateInstance: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
12
|
-
id: string;
|
|
13
|
-
app_id: string;
|
|
14
|
-
org_id: string;
|
|
15
|
-
}, {
|
|
16
|
-
id: string;
|
|
17
|
-
operation_id?: string | undefined;
|
|
18
|
-
}, C>;
|
|
19
|
-
deployInstance: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
20
|
-
id: string;
|
|
21
|
-
app_id: string;
|
|
22
|
-
org_id: string;
|
|
23
|
-
} & {
|
|
24
|
-
config: {
|
|
25
|
-
region: string;
|
|
26
|
-
api?: {
|
|
27
|
-
tokens?: ({
|
|
28
|
-
secret: string;
|
|
29
|
-
} | {
|
|
30
|
-
secret_ref: string;
|
|
31
|
-
})[] | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
client_auth?: {
|
|
34
|
-
additional_audiences?: string[] | undefined;
|
|
35
|
-
allow_temporary_tokens?: boolean | undefined;
|
|
36
|
-
jwks?: {
|
|
37
|
-
keys: ({
|
|
38
|
-
e: string;
|
|
39
|
-
kty: "RSA";
|
|
40
|
-
n: string;
|
|
41
|
-
kid: string;
|
|
42
|
-
alg?: "RS256" | "RS384" | "RS512" | undefined;
|
|
43
|
-
use?: string | undefined;
|
|
44
|
-
} | {
|
|
45
|
-
k: {
|
|
46
|
-
secret: string;
|
|
47
|
-
} | {
|
|
48
|
-
secret_ref: string;
|
|
49
|
-
};
|
|
50
|
-
kty: "oct";
|
|
51
|
-
alg: "HS256" | "HS384" | "HS512";
|
|
52
|
-
kid: string;
|
|
53
|
-
use?: string | undefined;
|
|
54
|
-
})[];
|
|
55
|
-
} | undefined;
|
|
56
|
-
jwks_uri?: string | undefined;
|
|
57
|
-
supabase?: boolean | undefined;
|
|
58
|
-
} | undefined;
|
|
59
|
-
dev?: {
|
|
60
|
-
crud_api?: boolean | undefined;
|
|
61
|
-
demo_auth?: boolean | undefined;
|
|
62
|
-
demo_client?: boolean | undefined;
|
|
63
|
-
demo_password?: {
|
|
64
|
-
secret: string;
|
|
65
|
-
} | {
|
|
66
|
-
secret_ref: string;
|
|
67
|
-
} | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
replication?: {
|
|
70
|
-
connections?: ({
|
|
71
|
-
type: "postgresql";
|
|
72
|
-
uri?: string | undefined;
|
|
73
|
-
hostname?: string | undefined;
|
|
74
|
-
port?: number | undefined;
|
|
75
|
-
name?: string | undefined;
|
|
76
|
-
id?: string | undefined;
|
|
77
|
-
cacert?: string | undefined;
|
|
78
|
-
client_certificate?: string | undefined;
|
|
79
|
-
client_private_key?: {
|
|
80
|
-
secret: string;
|
|
81
|
-
} | {
|
|
82
|
-
secret_ref: string;
|
|
83
|
-
} | undefined;
|
|
84
|
-
database?: string | undefined;
|
|
85
|
-
debug_api?: boolean | undefined;
|
|
86
|
-
password?: {
|
|
87
|
-
secret: string;
|
|
88
|
-
} | {
|
|
89
|
-
secret_ref: string;
|
|
90
|
-
} | undefined;
|
|
91
|
-
sslmode?: "verify-full" | "verify-ca" | undefined;
|
|
92
|
-
tag?: string | undefined;
|
|
93
|
-
username?: string | undefined;
|
|
94
|
-
} | {
|
|
95
|
-
type: "postgresql-demo";
|
|
96
|
-
tag?: string | undefined;
|
|
97
|
-
})[] | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
};
|
|
100
|
-
name?: string | undefined;
|
|
101
|
-
sync_rules?: string | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
id: string;
|
|
104
|
-
operation_id: string;
|
|
105
|
-
}, C>;
|
|
106
|
-
destroyInstance: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
107
|
-
id: string;
|
|
108
|
-
app_id: string;
|
|
109
|
-
org_id: string;
|
|
110
|
-
}, {
|
|
111
|
-
id: string;
|
|
112
|
-
operation_id?: string | undefined;
|
|
113
|
-
}, C>;
|
|
114
|
-
executeSql: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
115
|
-
id: string;
|
|
116
|
-
app_id: string;
|
|
117
|
-
org_id: string;
|
|
118
|
-
} & {
|
|
119
|
-
sql: {
|
|
120
|
-
query: string;
|
|
121
|
-
args: (string | number | boolean)[];
|
|
122
|
-
};
|
|
123
|
-
connection_id?: string | undefined;
|
|
124
|
-
}, {
|
|
125
|
-
results: {
|
|
126
|
-
columns: string[];
|
|
127
|
-
rows: (string | number | boolean | null)[][];
|
|
128
|
-
};
|
|
129
|
-
success: boolean;
|
|
130
|
-
error?: string | undefined;
|
|
131
|
-
}, C>;
|
|
132
|
-
getDemoCredentials: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
133
|
-
id: string;
|
|
134
|
-
app_id: string;
|
|
135
|
-
org_id: string;
|
|
136
|
-
} & {
|
|
137
|
-
connection_id?: string | undefined;
|
|
138
|
-
}, {
|
|
139
|
-
credentials?: {
|
|
140
|
-
postgres_uri: string;
|
|
141
|
-
} | undefined;
|
|
142
|
-
}, C>;
|
|
143
|
-
getInstanceConfig: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
144
|
-
id: string;
|
|
145
|
-
app_id: string;
|
|
146
|
-
org_id: string;
|
|
147
|
-
}, {
|
|
148
|
-
name: string;
|
|
149
|
-
id: string;
|
|
150
|
-
config?: {
|
|
151
|
-
region: string;
|
|
152
|
-
api?: {
|
|
153
|
-
tokens?: ({
|
|
154
|
-
secret: string;
|
|
155
|
-
} | {
|
|
156
|
-
secret_ref: string;
|
|
157
|
-
})[] | undefined;
|
|
158
|
-
} | undefined;
|
|
159
|
-
client_auth?: {
|
|
160
|
-
additional_audiences?: string[] | undefined;
|
|
161
|
-
allow_temporary_tokens?: boolean | undefined;
|
|
162
|
-
jwks?: {
|
|
163
|
-
keys: ({
|
|
164
|
-
e: string;
|
|
165
|
-
kty: "RSA";
|
|
166
|
-
n: string;
|
|
167
|
-
kid: string;
|
|
168
|
-
alg?: "RS256" | "RS384" | "RS512" | undefined;
|
|
169
|
-
use?: string | undefined;
|
|
170
|
-
} | {
|
|
171
|
-
k: {
|
|
172
|
-
secret: string;
|
|
173
|
-
} | {
|
|
174
|
-
secret_ref: string;
|
|
175
|
-
};
|
|
176
|
-
kty: "oct";
|
|
177
|
-
alg: "HS256" | "HS384" | "HS512";
|
|
178
|
-
kid: string;
|
|
179
|
-
use?: string | undefined;
|
|
180
|
-
})[];
|
|
181
|
-
} | undefined;
|
|
182
|
-
jwks_uri?: string | undefined;
|
|
183
|
-
supabase?: boolean | undefined;
|
|
184
|
-
} | undefined;
|
|
185
|
-
dev?: {
|
|
186
|
-
crud_api?: boolean | undefined;
|
|
187
|
-
demo_auth?: boolean | undefined;
|
|
188
|
-
demo_client?: boolean | undefined;
|
|
189
|
-
demo_password?: {
|
|
190
|
-
secret: string;
|
|
191
|
-
} | {
|
|
192
|
-
secret_ref: string;
|
|
193
|
-
} | undefined;
|
|
194
|
-
} | undefined;
|
|
195
|
-
replication?: {
|
|
196
|
-
connections?: ({
|
|
197
|
-
type: "postgresql";
|
|
198
|
-
uri?: string | undefined;
|
|
199
|
-
hostname?: string | undefined;
|
|
200
|
-
port?: number | undefined;
|
|
201
|
-
name?: string | undefined;
|
|
202
|
-
id?: string | undefined;
|
|
203
|
-
cacert?: string | undefined;
|
|
204
|
-
client_certificate?: string | undefined;
|
|
205
|
-
client_private_key?: {
|
|
206
|
-
secret: string;
|
|
207
|
-
} | {
|
|
208
|
-
secret_ref: string;
|
|
209
|
-
} | undefined;
|
|
210
|
-
database?: string | undefined;
|
|
211
|
-
debug_api?: boolean | undefined;
|
|
212
|
-
password?: {
|
|
213
|
-
secret: string;
|
|
214
|
-
} | {
|
|
215
|
-
secret_ref: string;
|
|
216
|
-
} | undefined;
|
|
217
|
-
sslmode?: "verify-full" | "verify-ca" | undefined;
|
|
218
|
-
tag?: string | undefined;
|
|
219
|
-
username?: string | undefined;
|
|
220
|
-
} | {
|
|
221
|
-
type: "postgresql-demo";
|
|
222
|
-
tag?: string | undefined;
|
|
223
|
-
})[] | undefined;
|
|
224
|
-
} | undefined;
|
|
225
|
-
} | undefined;
|
|
226
|
-
sync_rules?: string | undefined;
|
|
227
|
-
}, C>;
|
|
228
|
-
getInstanceDiagnostics: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
229
|
-
id: string;
|
|
230
|
-
app_id: string;
|
|
231
|
-
org_id: string;
|
|
232
|
-
} & {
|
|
233
|
-
sync_rules_content?: boolean | undefined;
|
|
234
|
-
}, {
|
|
235
|
-
connections: {
|
|
236
|
-
id: string;
|
|
237
|
-
errors: {
|
|
238
|
-
message: string;
|
|
239
|
-
level: "warning" | "fatal";
|
|
240
|
-
}[];
|
|
241
|
-
connected: boolean;
|
|
242
|
-
postgres_uri: string;
|
|
243
|
-
}[];
|
|
244
|
-
active_sync_rules?: {
|
|
245
|
-
connections: {
|
|
246
|
-
id: string;
|
|
247
|
-
tag: string;
|
|
248
|
-
initial_replication_done: boolean;
|
|
249
|
-
slot_name: string;
|
|
250
|
-
tables: {
|
|
251
|
-
name: string;
|
|
252
|
-
data_queries: boolean;
|
|
253
|
-
errors: {
|
|
254
|
-
message: string;
|
|
255
|
-
level: "warning" | "fatal";
|
|
256
|
-
}[];
|
|
257
|
-
parameter_queries: boolean;
|
|
258
|
-
replication_id: string[];
|
|
259
|
-
schema: string;
|
|
260
|
-
pattern?: string | undefined;
|
|
261
|
-
}[];
|
|
262
|
-
last_checkpoint_ts?: string | undefined;
|
|
263
|
-
last_keepalive_ts?: string | undefined;
|
|
264
|
-
last_lsn?: string | undefined;
|
|
265
|
-
replication_lag_bytes?: number | undefined;
|
|
266
|
-
}[];
|
|
267
|
-
errors: {
|
|
268
|
-
message: string;
|
|
269
|
-
level: "warning" | "fatal";
|
|
270
|
-
}[];
|
|
271
|
-
content?: string | undefined;
|
|
272
|
-
} | undefined;
|
|
273
|
-
deploying_sync_rules?: {
|
|
274
|
-
connections: {
|
|
275
|
-
id: string;
|
|
276
|
-
tag: string;
|
|
277
|
-
initial_replication_done: boolean;
|
|
278
|
-
slot_name: string;
|
|
279
|
-
tables: {
|
|
280
|
-
name: string;
|
|
281
|
-
data_queries: boolean;
|
|
282
|
-
errors: {
|
|
283
|
-
message: string;
|
|
284
|
-
level: "warning" | "fatal";
|
|
285
|
-
}[];
|
|
286
|
-
parameter_queries: boolean;
|
|
287
|
-
replication_id: string[];
|
|
288
|
-
schema: string;
|
|
289
|
-
pattern?: string | undefined;
|
|
290
|
-
}[];
|
|
291
|
-
last_checkpoint_ts?: string | undefined;
|
|
292
|
-
last_keepalive_ts?: string | undefined;
|
|
293
|
-
last_lsn?: string | undefined;
|
|
294
|
-
replication_lag_bytes?: number | undefined;
|
|
295
|
-
}[];
|
|
296
|
-
errors: {
|
|
297
|
-
message: string;
|
|
298
|
-
level: "warning" | "fatal";
|
|
299
|
-
}[];
|
|
300
|
-
content?: string | undefined;
|
|
301
|
-
} | undefined;
|
|
302
|
-
}, C>;
|
|
303
|
-
getInstanceSchema: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
304
|
-
id: string;
|
|
305
|
-
app_id: string;
|
|
306
|
-
org_id: string;
|
|
307
|
-
}, {
|
|
308
|
-
connections: {
|
|
309
|
-
tag: string;
|
|
310
|
-
schemas: {
|
|
311
|
-
name: string;
|
|
312
|
-
tables: {
|
|
313
|
-
name: string;
|
|
314
|
-
columns: {
|
|
315
|
-
name: string;
|
|
316
|
-
type: string;
|
|
317
|
-
pg_type: string;
|
|
318
|
-
}[];
|
|
319
|
-
}[];
|
|
320
|
-
}[];
|
|
321
|
-
id?: string | undefined;
|
|
322
|
-
}[];
|
|
323
|
-
}, C>;
|
|
324
|
-
getInstanceStatus: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
325
|
-
id: string;
|
|
326
|
-
app_id: string;
|
|
327
|
-
org_id: string;
|
|
328
|
-
}, {
|
|
329
|
-
id: string;
|
|
330
|
-
operations: {
|
|
331
|
-
type: "up" | "down";
|
|
332
|
-
id: string;
|
|
333
|
-
created_at: string;
|
|
334
|
-
status: "pending" | "running" | "failed" | "completed";
|
|
335
|
-
finished_at?: string | undefined;
|
|
336
|
-
started_at?: string | undefined;
|
|
337
|
-
}[];
|
|
338
|
-
provisioned: boolean;
|
|
339
|
-
instance_url?: string | undefined;
|
|
340
|
-
}, C>;
|
|
341
|
-
listInstances: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
342
|
-
app_id: string;
|
|
343
|
-
org_id: string;
|
|
344
|
-
}, {
|
|
345
|
-
instances: {
|
|
346
|
-
name: string;
|
|
347
|
-
id: string;
|
|
348
|
-
}[];
|
|
349
|
-
}, C>;
|
|
350
|
-
listRegions: import("../sdk-clients/endpoints.js").Endpoint<{}, {
|
|
351
|
-
regions: {
|
|
352
|
-
name: string;
|
|
353
|
-
deployable: boolean;
|
|
354
|
-
ips: string[];
|
|
355
|
-
}[];
|
|
356
|
-
}, C>;
|
|
357
|
-
reprocessSyncRules: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
358
|
-
id: string;
|
|
359
|
-
app_id: string;
|
|
360
|
-
org_id: string;
|
|
361
|
-
} & {}, {
|
|
362
|
-
connections: {
|
|
363
|
-
tag: string;
|
|
364
|
-
slot_name: string;
|
|
365
|
-
id?: string | undefined;
|
|
366
|
-
}[];
|
|
367
|
-
}, C>;
|
|
368
|
-
testConnection: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
369
|
-
connection: {
|
|
370
|
-
type: "postgresql";
|
|
371
|
-
uri?: string | undefined;
|
|
372
|
-
hostname?: string | undefined;
|
|
373
|
-
port?: number | undefined;
|
|
374
|
-
name?: string | undefined;
|
|
375
|
-
id?: string | undefined;
|
|
376
|
-
cacert?: string | undefined;
|
|
377
|
-
client_certificate?: string | undefined;
|
|
378
|
-
client_private_key?: {
|
|
379
|
-
secret: string;
|
|
380
|
-
} | {
|
|
381
|
-
secret_ref: string;
|
|
382
|
-
} | undefined;
|
|
383
|
-
database?: string | undefined;
|
|
384
|
-
debug_api?: boolean | undefined;
|
|
385
|
-
password?: {
|
|
386
|
-
secret: string;
|
|
387
|
-
} | {
|
|
388
|
-
secret_ref: string;
|
|
389
|
-
} | undefined;
|
|
390
|
-
sslmode?: "verify-full" | "verify-ca" | undefined;
|
|
391
|
-
tag?: string | undefined;
|
|
392
|
-
username?: string | undefined;
|
|
393
|
-
};
|
|
394
|
-
app_id: string;
|
|
395
|
-
org_id: string;
|
|
396
|
-
id?: string | undefined;
|
|
397
|
-
}, {
|
|
398
|
-
connection: {
|
|
399
|
-
success: boolean;
|
|
400
|
-
reachable: boolean;
|
|
401
|
-
authenticated?: boolean | undefined;
|
|
402
|
-
suggested_cacert?: string | undefined;
|
|
403
|
-
suggested_sslmode?: string | undefined;
|
|
404
|
-
tls_valid?: boolean | undefined;
|
|
405
|
-
};
|
|
406
|
-
success: boolean;
|
|
407
|
-
error?: string | undefined;
|
|
408
|
-
configuration?: {
|
|
409
|
-
success: boolean;
|
|
410
|
-
publication_valid?: boolean | undefined;
|
|
411
|
-
wal_valid?: boolean | undefined;
|
|
412
|
-
} | undefined;
|
|
413
|
-
}, C>;
|
|
414
|
-
validateSyncRules: import("../sdk-clients/endpoints.js").Endpoint<{
|
|
415
|
-
id: string;
|
|
416
|
-
app_id: string;
|
|
417
|
-
org_id: string;
|
|
418
|
-
} & {
|
|
419
|
-
sync_rules: string;
|
|
420
|
-
}, {
|
|
421
|
-
connections: {
|
|
422
|
-
id: string;
|
|
423
|
-
tag: string;
|
|
424
|
-
initial_replication_done: boolean;
|
|
425
|
-
slot_name: string;
|
|
426
|
-
tables: {
|
|
427
|
-
name: string;
|
|
428
|
-
data_queries: boolean;
|
|
429
|
-
errors: {
|
|
430
|
-
message: string;
|
|
431
|
-
level: "warning" | "fatal";
|
|
432
|
-
}[];
|
|
433
|
-
parameter_queries: boolean;
|
|
434
|
-
replication_id: string[];
|
|
435
|
-
schema: string;
|
|
436
|
-
pattern?: string | undefined;
|
|
437
|
-
}[];
|
|
438
|
-
last_checkpoint_ts?: string | undefined;
|
|
439
|
-
last_keepalive_ts?: string | undefined;
|
|
440
|
-
last_lsn?: string | undefined;
|
|
441
|
-
replication_lag_bytes?: number | undefined;
|
|
442
|
-
}[];
|
|
443
|
-
errors: {
|
|
444
|
-
message: string;
|
|
445
|
-
level: "warning" | "fatal";
|
|
446
|
-
}[];
|
|
447
|
-
content?: string | undefined;
|
|
448
|
-
}, C>;
|
|
449
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { SDKClient } from '../sdk-clients/sdk-client.js';
|
|
2
|
-
import * as routes from './routes.js';
|
|
3
|
-
const dev = routes.DEV_ROUTES;
|
|
4
|
-
const manage = routes.MANAGE_ROUTES;
|
|
5
|
-
const general = routes.GENERAL_ROUTES;
|
|
6
|
-
export class Client extends SDKClient {
|
|
7
|
-
createInstance = this.createEndpoint({
|
|
8
|
-
path: manage.CREATE
|
|
9
|
-
});
|
|
10
|
-
deactivateInstance = this.createEndpoint({
|
|
11
|
-
path: manage.DEACTIVATE
|
|
12
|
-
});
|
|
13
|
-
deployInstance = this.createEndpoint({
|
|
14
|
-
path: manage.DEPLOY
|
|
15
|
-
});
|
|
16
|
-
destroyInstance = this.createEndpoint({
|
|
17
|
-
path: manage.DESTROY
|
|
18
|
-
});
|
|
19
|
-
executeSql = this.createEndpoint({
|
|
20
|
-
path: dev.EXECUTE_SQL
|
|
21
|
-
});
|
|
22
|
-
getDemoCredentials = this.createEndpoint({
|
|
23
|
-
path: dev.DEMO_CREDENTIALS
|
|
24
|
-
});
|
|
25
|
-
getInstanceConfig = this.createEndpoint({
|
|
26
|
-
path: manage.CONFIG
|
|
27
|
-
});
|
|
28
|
-
getInstanceDiagnostics = this.createEndpoint({
|
|
29
|
-
path: manage.DIAGNOSTICS
|
|
30
|
-
});
|
|
31
|
-
getInstanceSchema = this.createEndpoint({
|
|
32
|
-
path: dev.GET_SCHEMA
|
|
33
|
-
});
|
|
34
|
-
getInstanceStatus = this.createEndpoint({
|
|
35
|
-
path: manage.STATUS
|
|
36
|
-
});
|
|
37
|
-
listInstances = this.createEndpoint({
|
|
38
|
-
path: manage.LIST
|
|
39
|
-
});
|
|
40
|
-
listRegions = this.createEndpoint({
|
|
41
|
-
method: 'get',
|
|
42
|
-
path: general.LIST_REGIONS
|
|
43
|
-
});
|
|
44
|
-
reprocessSyncRules = this.createEndpoint({
|
|
45
|
-
path: dev.VALIDATE_SYNC_RULES
|
|
46
|
-
});
|
|
47
|
-
testConnection = this.createEndpoint({
|
|
48
|
-
path: dev.TEST_CONNECTION
|
|
49
|
-
});
|
|
50
|
-
validateSyncRules = this.createEndpoint({
|
|
51
|
-
path: dev.VALIDATE_SYNC_RULES
|
|
52
|
-
});
|
|
53
|
-
}
|