@powersync/management-types 0.0.1 → 0.0.3
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 +1 -0
- package/dist/errors.js +1 -0
- package/dist/errors.js.map +1 -1
- package/dist/routes/dev-routes.d.ts +24 -10
- package/dist/routes/manage-routes.d.ts +57 -18
- package/dist/routes/manage-routes.js +5 -4
- package/dist/routes/manage-routes.js.map +1 -1
- package/dist/routes/reporting-routes.d.ts +4 -4
- package/dist/shared.d.ts +4 -4
- package/dist/shared.js +5 -4
- package/dist/shared.js.map +1 -1
- package/package.json +8 -4
- package/dist/schema.d.ts +0 -2
- package/dist/schema.js +0 -3
- package/dist/schema.js.map +0 -1
package/dist/errors.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare enum PowerSyncErrorCodes {
|
|
|
4
4
|
SECRET_NOT_FOUND = "SECRET_NOT_FOUND",
|
|
5
5
|
INVALID_REGION = "INVALID_REGION",
|
|
6
6
|
INVALID_CONFIG = "INVALID_CONFIG",
|
|
7
|
+
PROJECT_NOT_FOUND = "PROJECT_NOT_FOUND",
|
|
7
8
|
PSYNC_M1202_CONNECTION_TEST_TIMEOUT = "PSYNC_M1202",
|
|
8
9
|
PSYNC_M1203_CONNECTION_TEST_FAILED = "PSYNC_M1203",
|
|
9
10
|
PSYNC_M1204_CONNECTION_TEST_BUSY = "PSYNC_M1204"
|
package/dist/errors.js
CHANGED
|
@@ -6,6 +6,7 @@ export var PowerSyncErrorCodes;
|
|
|
6
6
|
PowerSyncErrorCodes["SECRET_NOT_FOUND"] = "SECRET_NOT_FOUND";
|
|
7
7
|
PowerSyncErrorCodes["INVALID_REGION"] = "INVALID_REGION";
|
|
8
8
|
PowerSyncErrorCodes["INVALID_CONFIG"] = "INVALID_CONFIG";
|
|
9
|
+
PowerSyncErrorCodes["PROJECT_NOT_FOUND"] = "PROJECT_NOT_FOUND";
|
|
9
10
|
PowerSyncErrorCodes["PSYNC_M1202_CONNECTION_TEST_TIMEOUT"] = "PSYNC_M1202";
|
|
10
11
|
PowerSyncErrorCodes["PSYNC_M1203_CONNECTION_TEST_FAILED"] = "PSYNC_M1203";
|
|
11
12
|
PowerSyncErrorCodes["PSYNC_M1204_CONNECTION_TEST_BUSY"] = "PSYNC_M1204";
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,MAAM,CAAN,IAAY,
|
|
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"}
|
|
@@ -454,8 +454,8 @@ export declare const TestConnectionResponse: t.Union<t.Codec<{
|
|
|
454
454
|
}>>>;
|
|
455
455
|
export type TestConnectionResponse = t.Encoded<typeof TestConnectionResponse>;
|
|
456
456
|
export declare const GetSchemaRequest: t.ObjectCodec<{
|
|
457
|
-
org_id: t.
|
|
458
|
-
app_id: t.
|
|
457
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
458
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
459
459
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
460
460
|
}>;
|
|
461
461
|
export type GetSchemaRequest = t.Encoded<typeof GetSchemaRequest>;
|
|
@@ -484,8 +484,8 @@ export declare const GetSchemaResponse: t.ObjectCodec<{
|
|
|
484
484
|
export type GetSchemaResponse = t.Encoded<typeof GetSchemaResponse>;
|
|
485
485
|
export declare const ExecuteSqlRequest: t.Intersection<t.Codec<{
|
|
486
486
|
id: string;
|
|
487
|
-
org_id:
|
|
488
|
-
app_id:
|
|
487
|
+
org_id: import("bson").ObjectId;
|
|
488
|
+
app_id: import("bson").ObjectId;
|
|
489
489
|
}, {
|
|
490
490
|
id: string;
|
|
491
491
|
org_id: string;
|
|
@@ -509,8 +509,8 @@ export declare const ExecuteSqlResponse: t.ObjectCodec<{
|
|
|
509
509
|
export type ExecuteSqlResponse = internal_routes.ExecuteSqlResponse;
|
|
510
510
|
export declare const ValidateSyncRulesRequest: t.Intersection<t.Codec<{
|
|
511
511
|
id: string;
|
|
512
|
-
org_id:
|
|
513
|
-
app_id:
|
|
512
|
+
org_id: import("bson").ObjectId;
|
|
513
|
+
app_id: import("bson").ObjectId;
|
|
514
514
|
}, {
|
|
515
515
|
id: string;
|
|
516
516
|
org_id: string;
|
|
@@ -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,14 +554,21 @@ 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
|
}>;
|
|
553
567
|
export type ValidateSyncRulesResponse = t.Encoded<typeof ValidateSyncRulesResponse>;
|
|
554
568
|
export declare const ReprocessSyncRulesRequest: t.Intersection<t.Codec<{
|
|
555
569
|
id: string;
|
|
556
|
-
org_id:
|
|
557
|
-
app_id:
|
|
570
|
+
org_id: import("bson").ObjectId;
|
|
571
|
+
app_id: import("bson").ObjectId;
|
|
558
572
|
}, {
|
|
559
573
|
id: string;
|
|
560
574
|
org_id: string;
|
|
@@ -571,8 +585,8 @@ export declare const ReprocessSyncRulesResponse: t.ObjectCodec<{
|
|
|
571
585
|
export type ReprocessSyncRulesResponse = t.Encoded<typeof ReprocessSyncRulesResponse>;
|
|
572
586
|
export declare const GenerateDevTokenRequest: t.Intersection<t.Codec<{
|
|
573
587
|
id: string;
|
|
574
|
-
org_id:
|
|
575
|
-
app_id:
|
|
588
|
+
org_id: import("bson").ObjectId;
|
|
589
|
+
app_id: import("bson").ObjectId;
|
|
576
590
|
}, {
|
|
577
591
|
id: string;
|
|
578
592
|
org_id: string;
|
|
@@ -12,8 +12,8 @@ export declare enum MANAGE_ROUTES {
|
|
|
12
12
|
DIAGNOSTICS = "/api/v1/instances/diagnostics"
|
|
13
13
|
}
|
|
14
14
|
export declare const ListInstancesRequest: t.ObjectCodec<{
|
|
15
|
-
org_id: t.
|
|
16
|
-
app_id: t.
|
|
15
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
16
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
17
17
|
}>;
|
|
18
18
|
export type ListInstancesRequest = t.Encoded<typeof ListInstancesRequest>;
|
|
19
19
|
export declare const ListInstancesResponse: t.ObjectCodec<{
|
|
@@ -26,8 +26,8 @@ export declare const ListInstancesResponse: t.ObjectCodec<{
|
|
|
26
26
|
}>;
|
|
27
27
|
export type ListInstancesResponse = t.Encoded<typeof ListInstancesResponse>;
|
|
28
28
|
export declare const CreateInstanceRequest: t.ObjectCodec<{
|
|
29
|
-
org_id: t.
|
|
30
|
-
app_id: t.
|
|
29
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
30
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
31
31
|
name: t.IdentityCodec<t.CodecType.String>;
|
|
32
32
|
region: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
|
|
33
33
|
}>;
|
|
@@ -38,8 +38,8 @@ export declare const CreateInstanceResponse: t.ObjectCodec<{
|
|
|
38
38
|
export type CreateInstanceResponse = t.Encoded<typeof CreateInstanceResponse>;
|
|
39
39
|
export declare const DeployInstanceRequest: t.Intersection<t.Codec<{
|
|
40
40
|
id: string;
|
|
41
|
-
org_id:
|
|
42
|
-
app_id:
|
|
41
|
+
org_id: import("bson").ObjectId;
|
|
42
|
+
app_id: import("bson").ObjectId;
|
|
43
43
|
}, {
|
|
44
44
|
id: string;
|
|
45
45
|
org_id: string;
|
|
@@ -437,8 +437,8 @@ export declare const DeployInstanceResponse: t.ObjectCodec<{
|
|
|
437
437
|
}>;
|
|
438
438
|
export type DeployInstanceResponse = t.Encoded<typeof DeployInstanceResponse>;
|
|
439
439
|
export declare const InstanceConfigRequest: t.ObjectCodec<{
|
|
440
|
-
org_id: t.
|
|
441
|
-
app_id: t.
|
|
440
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
441
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
442
442
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
443
443
|
}>;
|
|
444
444
|
export type InstanceConfigRequest = t.Encoded<typeof InstanceConfigRequest>;
|
|
@@ -834,8 +834,8 @@ export declare const InstanceConfigResponse: t.ObjectCodec<{
|
|
|
834
834
|
}>;
|
|
835
835
|
export type InstanceConfigResponse = t.Encoded<typeof InstanceConfigResponse>;
|
|
836
836
|
export declare const InstanceStatusRequest: t.ObjectCodec<{
|
|
837
|
-
org_id: t.
|
|
838
|
-
app_id: t.
|
|
837
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
838
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
839
839
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
840
840
|
}>;
|
|
841
841
|
export type InstanceStatusRequest = t.Encoded<typeof InstanceStatusRequest>;
|
|
@@ -874,8 +874,8 @@ export declare const InstanceStatusResponse: t.ObjectCodec<{
|
|
|
874
874
|
}>;
|
|
875
875
|
export type InstanceStatusResponse = t.Encoded<typeof InstanceStatusResponse>;
|
|
876
876
|
export declare const DestroyInstanceRequest: t.ObjectCodec<{
|
|
877
|
-
org_id: t.
|
|
878
|
-
app_id: t.
|
|
877
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
878
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
879
879
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
880
880
|
}>;
|
|
881
881
|
export type DestroyInstanceRequest = t.Encoded<typeof DestroyInstanceRequest>;
|
|
@@ -885,8 +885,8 @@ export declare const DestroyInstanceResponse: t.ObjectCodec<{
|
|
|
885
885
|
}>;
|
|
886
886
|
export type DestroyInstanceResponse = t.Encoded<typeof DestroyInstanceResponse>;
|
|
887
887
|
export declare const DeactivateInstanceRequest: t.ObjectCodec<{
|
|
888
|
-
org_id: t.
|
|
889
|
-
app_id: t.
|
|
888
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
889
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
890
890
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
891
891
|
}>;
|
|
892
892
|
export type DeactivateInstanceRequest = t.Encoded<typeof DeactivateInstanceRequest>;
|
|
@@ -896,8 +896,8 @@ export declare const DeactivateInstanceResponse: t.ObjectCodec<{
|
|
|
896
896
|
}>;
|
|
897
897
|
export type DeactivateInstanceResponse = t.Encoded<typeof DeactivateInstanceResponse>;
|
|
898
898
|
export declare const CompactInstanceRequest: t.ObjectCodec<{
|
|
899
|
-
org_id: t.
|
|
900
|
-
app_id: t.
|
|
899
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
900
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
901
901
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
902
902
|
}>;
|
|
903
903
|
export type CompactInstanceRequest = t.Encoded<typeof CompactInstanceRequest>;
|
|
@@ -908,8 +908,8 @@ export declare const CompactInstanceResponse: t.ObjectCodec<{
|
|
|
908
908
|
export type CompactInstanceResponse = t.Encoded<typeof CompactInstanceResponse>;
|
|
909
909
|
export declare const InstanceDiagnosticsRequest: t.Intersection<t.Codec<{
|
|
910
910
|
id: string;
|
|
911
|
-
org_id:
|
|
912
|
-
app_id:
|
|
911
|
+
org_id: import("bson").ObjectId;
|
|
912
|
+
app_id: import("bson").ObjectId;
|
|
913
913
|
}, {
|
|
914
914
|
id: string;
|
|
915
915
|
org_id: string;
|
|
@@ -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;
|
|
@@ -2,6 +2,7 @@ import { internal_routes } from '@powersync/service-types';
|
|
|
2
2
|
import * as t from 'ts-codec';
|
|
3
3
|
import { BasePowerSyncHostedConfig } from '../config/HostedConfig.js';
|
|
4
4
|
import { InstanceId, ProgramVersionConstraint } from '../shared.js';
|
|
5
|
+
import { ObjectId } from '@journeyapps-labs/micro-codecs';
|
|
5
6
|
export var MANAGE_ROUTES;
|
|
6
7
|
(function (MANAGE_ROUTES) {
|
|
7
8
|
MANAGE_ROUTES["LIST"] = "/api/v1/instances/list";
|
|
@@ -16,8 +17,8 @@ export var MANAGE_ROUTES;
|
|
|
16
17
|
})(MANAGE_ROUTES || (MANAGE_ROUTES = {}));
|
|
17
18
|
// POST /api/v1/instances/list
|
|
18
19
|
export const ListInstancesRequest = t.object({
|
|
19
|
-
org_id:
|
|
20
|
-
app_id:
|
|
20
|
+
org_id: ObjectId,
|
|
21
|
+
app_id: ObjectId
|
|
21
22
|
});
|
|
22
23
|
export const ListInstancesResponse = t.object({
|
|
23
24
|
instances: t.array(t.object({
|
|
@@ -29,8 +30,8 @@ export const ListInstancesResponse = t.object({
|
|
|
29
30
|
});
|
|
30
31
|
// POST /api/v1/instances/create
|
|
31
32
|
export const CreateInstanceRequest = t.object({
|
|
32
|
-
org_id:
|
|
33
|
-
app_id:
|
|
33
|
+
org_id: ObjectId,
|
|
34
|
+
app_id: ObjectId,
|
|
34
35
|
name: t.string,
|
|
35
36
|
region: t.string.optional()
|
|
36
37
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage-routes.js","sourceRoot":"","sources":["../../src/routes/manage-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAA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,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,CAAC,CAAC,MAAM;IACZ,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGH,oCAAoC;AACpC,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAAC;AAGpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,EAAE,EAAE,CAAC,CAAC,MAAM;IACZ,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGH,iCAAiC;AACjC,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAAC;AAGjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,CAAC,CAAC,MAAM;IACZ,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGH,qCAAqC;AACrC,6CAA6C;AAC7C,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAG7F,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC,mBAAmB,CAAC"}
|
|
@@ -17,14 +17,14 @@ export declare const ClientConnectionsReportRequest: t.Intersection<t.Codec<{
|
|
|
17
17
|
date: string;
|
|
18
18
|
} | undefined;
|
|
19
19
|
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
20
|
-
org_id: t.
|
|
21
|
-
app_id: t.
|
|
20
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
21
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
22
22
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
23
23
|
}>>;
|
|
24
24
|
export type ClientConnectionsReportRequest = t.Encoded<typeof ClientConnectionsReportRequest>;
|
|
25
25
|
export declare const CurrentConnectionsRequest: t.ObjectCodec<{
|
|
26
|
-
org_id: t.
|
|
27
|
-
app_id: t.
|
|
26
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
27
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
28
28
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
29
29
|
}>;
|
|
30
30
|
export type CurrentConnectionsRequest = t.Encoded<typeof CurrentConnectionsRequest>;
|
package/dist/shared.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as t from 'ts-codec';
|
|
2
2
|
export declare const InstanceId: t.ObjectCodec<{
|
|
3
|
-
org_id: t.
|
|
4
|
-
app_id: t.
|
|
3
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
4
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
5
5
|
id: t.IdentityCodec<t.CodecType.String>;
|
|
6
6
|
}>;
|
|
7
7
|
export type InstanceId = t.Encoded<typeof InstanceId>;
|
|
8
8
|
export declare const AppId: t.ObjectCodec<{
|
|
9
|
-
org_id: t.
|
|
10
|
-
app_id: t.
|
|
9
|
+
org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
10
|
+
app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
|
|
11
11
|
}>;
|
|
12
12
|
export type AppId = t.Encoded<typeof AppId>;
|
|
13
13
|
export declare const ProgramVersionConstraint: t.ObjectCodec<{
|
package/dist/shared.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as t from 'ts-codec';
|
|
2
|
+
import { ObjectId } from '@journeyapps-labs/micro-codecs';
|
|
2
3
|
// Manage instances
|
|
3
4
|
export const InstanceId = t.object({
|
|
4
|
-
org_id:
|
|
5
|
-
app_id:
|
|
5
|
+
org_id: ObjectId,
|
|
6
|
+
app_id: ObjectId,
|
|
6
7
|
id: t.string
|
|
7
8
|
});
|
|
8
9
|
export const AppId = t.object({
|
|
9
|
-
org_id:
|
|
10
|
-
app_id:
|
|
10
|
+
org_id: ObjectId,
|
|
11
|
+
app_id: ObjectId
|
|
11
12
|
});
|
|
12
13
|
export const ProgramVersionConstraint = t.object({
|
|
13
14
|
channel: t.string,
|
package/dist/shared.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,mBAAmB;AACnB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,EAAE,EAAE,CAAC,CAAC,MAAM;CACb,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACjB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/management-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
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",
|
|
@@ -22,14 +22,18 @@
|
|
|
22
22
|
},
|
|
23
23
|
"keywords": [],
|
|
24
24
|
"author": "POWERSYNC",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+ssh://git@github.com/journeyapps-platform/powersync.git",
|
|
28
|
+
"directory": "public-packages/types"
|
|
29
|
+
},
|
|
25
30
|
"dependencies": {
|
|
26
31
|
"@journeyapps-labs/micro-codecs": "^1.0.1",
|
|
27
|
-
"@powersync/service-
|
|
28
|
-
"@powersync/service-
|
|
32
|
+
"@powersync/service-module-mssql": "0.4.0",
|
|
33
|
+
"@powersync/service-types": "0.15.0",
|
|
29
34
|
"bson": "^6.10.4",
|
|
30
35
|
"ts-codec": "^1.3.0"
|
|
31
36
|
},
|
|
32
|
-
"devDependencies": {},
|
|
33
37
|
"scripts": {
|
|
34
38
|
"build:ts": "tsc -b",
|
|
35
39
|
"build:extra": "node ./dist/scripts/compile-json-schema.js",
|
package/dist/schema.d.ts
DELETED
package/dist/schema.js
DELETED
package/dist/schema.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,sCAAsC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEhF,eAAe,MAAM,CAAC"}
|