@powersync/management-types 0.0.2 → 0.0.4

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/dist/errors.d.ts CHANGED
@@ -5,6 +5,7 @@ export declare enum PowerSyncErrorCodes {
5
5
  INVALID_REGION = "INVALID_REGION",
6
6
  INVALID_CONFIG = "INVALID_CONFIG",
7
7
  PROJECT_NOT_FOUND = "PROJECT_NOT_FOUND",
8
+ REGION_AT_CAPACITY = "REGION_AT_CAPACITY",
8
9
  PSYNC_M1202_CONNECTION_TEST_TIMEOUT = "PSYNC_M1202",
9
10
  PSYNC_M1203_CONNECTION_TEST_FAILED = "PSYNC_M1203",
10
11
  PSYNC_M1204_CONNECTION_TEST_BUSY = "PSYNC_M1204"
package/dist/errors.js CHANGED
@@ -7,6 +7,7 @@ export var PowerSyncErrorCodes;
7
7
  PowerSyncErrorCodes["INVALID_REGION"] = "INVALID_REGION";
8
8
  PowerSyncErrorCodes["INVALID_CONFIG"] = "INVALID_CONFIG";
9
9
  PowerSyncErrorCodes["PROJECT_NOT_FOUND"] = "PROJECT_NOT_FOUND";
10
+ PowerSyncErrorCodes["REGION_AT_CAPACITY"] = "REGION_AT_CAPACITY";
10
11
  PowerSyncErrorCodes["PSYNC_M1202_CONNECTION_TEST_TIMEOUT"] = "PSYNC_M1202";
11
12
  PowerSyncErrorCodes["PSYNC_M1203_CONNECTION_TEST_FAILED"] = "PSYNC_M1203";
12
13
  PowerSyncErrorCodes["PSYNC_M1204_CONNECTION_TEST_BUSY"] = "PSYNC_M1204";
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,MAAM,CAAN,IAAY,mBAWX;AAXD,WAAY,mBAAmB;IAC7B,wDAAiC,CAAA;IACjC,gEAAyC,CAAA;IACzC,4DAAqC,CAAA;IACrC,wDAAiC,CAAA;IACjC,wDAAiC,CAAA;IACjC,8DAAuC,CAAA;IAEvC,0EAAmD,CAAA;IACnD,yEAAkD,CAAA;IAClD,uEAAgD,CAAA;AAClD,CAAC,EAXW,mBAAmB,KAAnB,mBAAmB,QAW9B"}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,MAAM,CAAN,IAAY,mBAYX;AAZD,WAAY,mBAAmB;IAC7B,wDAAiC,CAAA;IACjC,gEAAyC,CAAA;IACzC,4DAAqC,CAAA;IACrC,wDAAiC,CAAA;IACjC,wDAAiC,CAAA;IACjC,8DAAuC,CAAA;IACvC,gEAAyC,CAAA;IAEzC,0EAAmD,CAAA;IACnD,yEAAkD,CAAA;IAClD,uEAAgD,CAAA;AAClD,CAAC,EAZW,mBAAmB,KAAnB,mBAAmB,QAY9B"}
@@ -540,6 +540,13 @@ export declare const ValidateSyncRulesResponse: t.ObjectCodec<{
540
540
  errors: t.ArrayCodec<t.ObjectCodec<{
541
541
  level: t.Union<t.Codec<"warning", "warning", string, t.CodecProps>, t.LiteralCodec<"fatal">>;
542
542
  message: t.IdentityCodec<t.CodecType.String>;
543
+ location: t.OptionalCodec<t.Codec<{
544
+ start_offset: number;
545
+ end_offset: number;
546
+ }, {
547
+ start_offset: number;
548
+ end_offset: number;
549
+ }, string, t.CodecProps>>;
543
550
  ts: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
544
551
  }>>;
545
552
  }>>;
@@ -547,6 +554,13 @@ export declare const ValidateSyncRulesResponse: t.ObjectCodec<{
547
554
  errors: t.ArrayCodec<t.ObjectCodec<{
548
555
  level: t.Union<t.Codec<"warning", "warning", string, t.CodecProps>, t.LiteralCodec<"fatal">>;
549
556
  message: t.IdentityCodec<t.CodecType.String>;
557
+ location: t.OptionalCodec<t.Codec<{
558
+ start_offset: number;
559
+ end_offset: number;
560
+ }, {
561
+ start_offset: number;
562
+ end_offset: number;
563
+ }, string, t.CodecProps>>;
550
564
  ts: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
551
565
  }>>;
552
566
  }>;
@@ -926,6 +926,13 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
926
926
  errors: t.ArrayCodec<t.ObjectCodec<{
927
927
  level: t.Union<t.Codec<"warning", "warning", string, t.CodecProps>, t.LiteralCodec<"fatal">>;
928
928
  message: t.IdentityCodec<t.CodecType.String>;
929
+ location: t.OptionalCodec<t.Codec<{
930
+ start_offset: number;
931
+ end_offset: number;
932
+ }, {
933
+ start_offset: number;
934
+ end_offset: number;
935
+ }, string, t.CodecProps>>;
929
936
  ts: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
930
937
  }>>;
931
938
  }>>;
@@ -933,6 +940,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
933
940
  errors: {
934
941
  level: "warning" | "fatal";
935
942
  message: string;
943
+ location?: {
944
+ start_offset: number;
945
+ end_offset: number;
946
+ } | undefined;
936
947
  ts?: string | undefined;
937
948
  }[];
938
949
  connections: {
@@ -949,6 +960,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
949
960
  errors: {
950
961
  level: "warning" | "fatal";
951
962
  message: string;
963
+ location?: {
964
+ start_offset: number;
965
+ end_offset: number;
966
+ } | undefined;
952
967
  ts?: string | undefined;
953
968
  }[];
954
969
  pattern?: string | undefined;
@@ -963,6 +978,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
963
978
  errors: {
964
979
  level: "warning" | "fatal";
965
980
  message: string;
981
+ location?: {
982
+ start_offset: number;
983
+ end_offset: number;
984
+ } | undefined;
966
985
  ts?: string | undefined;
967
986
  }[];
968
987
  connections: {
@@ -979,6 +998,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
979
998
  errors: {
980
999
  level: "warning" | "fatal";
981
1000
  message: string;
1001
+ location?: {
1002
+ start_offset: number;
1003
+ end_offset: number;
1004
+ } | undefined;
982
1005
  ts?: string | undefined;
983
1006
  }[];
984
1007
  pattern?: string | undefined;
@@ -994,6 +1017,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
994
1017
  errors: {
995
1018
  level: "warning" | "fatal";
996
1019
  message: string;
1020
+ location?: {
1021
+ start_offset: number;
1022
+ end_offset: number;
1023
+ } | undefined;
997
1024
  ts?: string | undefined;
998
1025
  }[];
999
1026
  connections: {
@@ -1010,6 +1037,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
1010
1037
  errors: {
1011
1038
  level: "warning" | "fatal";
1012
1039
  message: string;
1040
+ location?: {
1041
+ start_offset: number;
1042
+ end_offset: number;
1043
+ } | undefined;
1013
1044
  ts?: string | undefined;
1014
1045
  }[];
1015
1046
  pattern?: string | undefined;
@@ -1024,6 +1055,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
1024
1055
  errors: {
1025
1056
  level: "warning" | "fatal";
1026
1057
  message: string;
1058
+ location?: {
1059
+ start_offset: number;
1060
+ end_offset: number;
1061
+ } | undefined;
1027
1062
  ts?: string | undefined;
1028
1063
  }[];
1029
1064
  connections: {
@@ -1040,6 +1075,10 @@ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
1040
1075
  errors: {
1041
1076
  level: "warning" | "fatal";
1042
1077
  message: string;
1078
+ location?: {
1079
+ start_offset: number;
1080
+ end_offset: number;
1081
+ } | undefined;
1043
1082
  ts?: string | undefined;
1044
1083
  }[];
1045
1084
  pattern?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powersync/management-types",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Common TypeScript types for PowerSync Management Service API requests",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@journeyapps-labs/micro-codecs": "^1.0.1",
32
- "@powersync/service-module-mssql": "^0.3.1",
33
- "@powersync/service-types": "^0.14.0",
32
+ "@powersync/service-module-mssql": "0.5.0",
33
+ "@powersync/service-types": "0.15.0",
34
34
  "bson": "^6.10.4",
35
35
  "ts-codec": "^1.3.0"
36
36
  },