@powersync/service-types 0.9.0 → 0.11.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/CHANGELOG.md +13 -0
- package/dist/config/PowerSyncConfig.d.ts +637 -165
- package/dist/config/PowerSyncConfig.js +392 -87
- package/dist/config/PowerSyncConfig.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/metrics.d.ts +16 -0
- package/dist/metrics.js +33 -0
- package/dist/metrics.js.map +1 -0
- package/package.json +2 -1
- package/src/config/PowerSyncConfig.ts +458 -145
- package/src/index.ts +2 -0
- package/src/metrics.ts +28 -0
- package/tsconfig.tsbuildinfo +1 -1
package/dist/metrics.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StorageMetric = exports.ReplicationMetric = exports.APIMetric = void 0;
|
|
4
|
+
var APIMetric;
|
|
5
|
+
(function (APIMetric) {
|
|
6
|
+
// Uncompressed size of synced data from PowerSync to Clients
|
|
7
|
+
APIMetric["DATA_SYNCED_BYTES"] = "powersync_data_synced_bytes_total";
|
|
8
|
+
// Number of operations synced
|
|
9
|
+
APIMetric["OPERATIONS_SYNCED"] = "powersync_operations_synced_total";
|
|
10
|
+
// Number of concurrent sync connections
|
|
11
|
+
APIMetric["CONCURRENT_CONNECTIONS"] = "powersync_concurrent_connections";
|
|
12
|
+
})(APIMetric || (exports.APIMetric = APIMetric = {}));
|
|
13
|
+
var ReplicationMetric;
|
|
14
|
+
(function (ReplicationMetric) {
|
|
15
|
+
// Uncompressed size of replicated data from data source to PowerSync
|
|
16
|
+
ReplicationMetric["DATA_REPLICATED_BYTES"] = "powersync_data_replicated_bytes_total";
|
|
17
|
+
// Total number of replicated rows. Not used for pricing.
|
|
18
|
+
ReplicationMetric["ROWS_REPLICATED"] = "powersync_rows_replicated_total";
|
|
19
|
+
// Total number of replicated transactions. Not used for pricing.
|
|
20
|
+
ReplicationMetric["TRANSACTIONS_REPLICATED"] = "powersync_transactions_replicated_total";
|
|
21
|
+
// Total number of replication chunks. Not used for pricing.
|
|
22
|
+
ReplicationMetric["CHUNKS_REPLICATED"] = "powersync_chunks_replicated_total";
|
|
23
|
+
})(ReplicationMetric || (exports.ReplicationMetric = ReplicationMetric = {}));
|
|
24
|
+
var StorageMetric;
|
|
25
|
+
(function (StorageMetric) {
|
|
26
|
+
// Size of current replication data stored in PowerSync
|
|
27
|
+
StorageMetric["REPLICATION_SIZE_BYTES"] = "powersync_replication_storage_size_bytes";
|
|
28
|
+
// Size of operations data stored in PowerSync
|
|
29
|
+
StorageMetric["OPERATION_SIZE_BYTES"] = "powersync_operation_storage_size_bytes";
|
|
30
|
+
// Size of parameter data stored in PowerSync
|
|
31
|
+
StorageMetric["PARAMETER_SIZE_BYTES"] = "powersync_parameter_storage_size_bytes";
|
|
32
|
+
})(StorageMetric || (exports.StorageMetric = StorageMetric = {}));
|
|
33
|
+
//# sourceMappingURL=metrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../src/metrics.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,6DAA6D;IAC7D,oEAAuD,CAAA;IACvD,8BAA8B;IAC9B,oEAAuD,CAAA;IACvD,wCAAwC;IACxC,wEAA2D,CAAA;AAC7D,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB;AAED,IAAY,iBASX;AATD,WAAY,iBAAiB;IAC3B,qEAAqE;IACrE,oFAA+D,CAAA;IAC/D,yDAAyD;IACzD,wEAAmD,CAAA;IACnD,iEAAiE;IACjE,wFAAmE,CAAA;IACnE,4DAA4D;IAC5D,4EAAuD,CAAA;AACzD,CAAC,EATW,iBAAiB,iCAAjB,iBAAiB,QAS5B;AAED,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,uDAAuD;IACvD,oFAAmE,CAAA;IACnE,8CAA8C;IAC9C,gFAA+D,CAAA;IAC/D,6CAA6C;IAC7C,gFAA+D,CAAA;AACjE,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/service-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "FSL-1.1-Apache-2.0",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
11
11
|
"dependencies": {
|
|
12
|
+
"dedent": "^1.6.0",
|
|
12
13
|
"ts-codec": "^1.3.0",
|
|
13
14
|
"uri-js": "^4.4.1"
|
|
14
15
|
},
|