@powersync/service-module-mssql 0.0.0-dev-20251128112734 → 0.0.0-dev-20251128124236
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 +6 -6
- package/dist/types/types.d.ts +49 -4
- package/dist/types/types.js +2 -3
- package/dist/types/types.js.map +1 -1
- package/package.json +9 -9
- package/src/types/types.ts +8 -10
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @powersync/service-module-mssql
|
|
2
2
|
|
|
3
|
-
## 0.0.0-dev-
|
|
3
|
+
## 0.0.0-dev-20251128124236
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
- Updated dependencies [57f7660]
|
|
14
14
|
- Updated dependencies [0156d10]
|
|
15
15
|
- Updated dependencies [f51f987]
|
|
16
|
-
- @powersync/service-core@0.0.0-dev-
|
|
17
|
-
- @powersync/service-types@0.0.0-dev-
|
|
18
|
-
- @powersync/service-sync-rules@0.0.0-dev-
|
|
19
|
-
- @powersync/service-errors@0.0.0-dev-
|
|
20
|
-
- @powersync/lib-services-framework@0.0.0-dev-
|
|
16
|
+
- @powersync/service-core@0.0.0-dev-20251128124236
|
|
17
|
+
- @powersync/service-types@0.0.0-dev-20251128124236
|
|
18
|
+
- @powersync/service-sync-rules@0.0.0-dev-20251128124236
|
|
19
|
+
- @powersync/service-errors@0.0.0-dev-20251128124236
|
|
20
|
+
- @powersync/lib-services-framework@0.0.0-dev-20251128124236
|
package/dist/types/types.d.ts
CHANGED
|
@@ -55,6 +55,52 @@ export declare const DefaultAuthentication: t.ObjectCodec<{
|
|
|
55
55
|
}>;
|
|
56
56
|
}>;
|
|
57
57
|
export type DefaultAuthentication = t.Decoded<typeof DefaultAuthentication>;
|
|
58
|
+
export declare const Authentication: t.Union<t.Codec<{
|
|
59
|
+
type: "azure-active-directory-password";
|
|
60
|
+
options: {
|
|
61
|
+
userName: string;
|
|
62
|
+
password: string;
|
|
63
|
+
clientId: string;
|
|
64
|
+
tenantId: string;
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
type: "default";
|
|
68
|
+
options: {
|
|
69
|
+
userName: string;
|
|
70
|
+
password: string;
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
type: "azure-active-directory-password";
|
|
74
|
+
options: {
|
|
75
|
+
userName: string;
|
|
76
|
+
password: string;
|
|
77
|
+
clientId: string;
|
|
78
|
+
tenantId: string;
|
|
79
|
+
};
|
|
80
|
+
} | {
|
|
81
|
+
type: "default";
|
|
82
|
+
options: {
|
|
83
|
+
userName: string;
|
|
84
|
+
password: string;
|
|
85
|
+
};
|
|
86
|
+
}, string, t.CodecProps>, t.ObjectCodec<{
|
|
87
|
+
type: t.LiteralCodec<"azure-active-directory-service-principal-secret">;
|
|
88
|
+
options: t.ObjectCodec<{
|
|
89
|
+
/**
|
|
90
|
+
* Application (`client`) ID from your registered Azure application
|
|
91
|
+
*/
|
|
92
|
+
clientId: t.IdentityCodec<t.CodecType.String>;
|
|
93
|
+
/**
|
|
94
|
+
* The created `client secret` for this registered Azure application
|
|
95
|
+
*/
|
|
96
|
+
clientSecret: t.IdentityCodec<t.CodecType.String>;
|
|
97
|
+
/**
|
|
98
|
+
* Directory (`tenant`) ID from your registered Azure application
|
|
99
|
+
*/
|
|
100
|
+
tenantId: t.IdentityCodec<t.CodecType.String>;
|
|
101
|
+
}>;
|
|
102
|
+
}>>;
|
|
103
|
+
export type Authentication = t.Decoded<typeof Authentication>;
|
|
58
104
|
export declare const AdditionalConfig: t.ObjectCodec<{
|
|
59
105
|
/**
|
|
60
106
|
* Interval in milliseconds to wait between polling cycles. Defaults to 1000 milliseconds.
|
|
@@ -72,8 +118,8 @@ export declare const AdditionalConfig: t.ObjectCodec<{
|
|
|
72
118
|
}>;
|
|
73
119
|
export interface AdditionalConfig {
|
|
74
120
|
/**
|
|
75
|
-
|
|
76
|
-
|
|
121
|
+
* Interval in milliseconds to wait between polling cycles. Defaults to 1000 milliseconds.
|
|
122
|
+
*/
|
|
77
123
|
pollingIntervalMs: number;
|
|
78
124
|
/**
|
|
79
125
|
* Maximum number of transactions to poll per polling cycle. Defaults to 10.
|
|
@@ -85,7 +131,6 @@ export interface AdditionalConfig {
|
|
|
85
131
|
*/
|
|
86
132
|
trustServerCertificate: boolean;
|
|
87
133
|
}
|
|
88
|
-
export type AuthenticationType = DefaultAuthentication | AzureActiveDirectoryPasswordAuthentication | AzureActiveDirectoryServicePrincipalSecret;
|
|
89
134
|
export interface NormalizedMSSQLConnectionConfig {
|
|
90
135
|
id: string;
|
|
91
136
|
tag: string;
|
|
@@ -95,7 +140,7 @@ export interface NormalizedMSSQLConnectionConfig {
|
|
|
95
140
|
port: number;
|
|
96
141
|
database: string;
|
|
97
142
|
schema?: string;
|
|
98
|
-
authentication?:
|
|
143
|
+
authentication?: Authentication;
|
|
99
144
|
lookup?: LookupFunction;
|
|
100
145
|
additionalConfig: AdditionalConfig;
|
|
101
146
|
}
|
package/dist/types/types.js
CHANGED
|
@@ -54,6 +54,7 @@ export const DefaultAuthentication = t.object({
|
|
|
54
54
|
password: t.string
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
|
+
export const Authentication = DefaultAuthentication.or(AzureActiveDirectoryPasswordAuthentication).or(AzureActiveDirectoryServicePrincipalSecret);
|
|
57
58
|
export const AdditionalConfig = t.object({
|
|
58
59
|
/**
|
|
59
60
|
* Interval in milliseconds to wait between polling cycles. Defaults to 1000 milliseconds.
|
|
@@ -78,9 +79,7 @@ export const MSSQLConnectionConfig = service_types.configFile.DataSourceConfig.a
|
|
|
78
79
|
schema: t.string.optional(),
|
|
79
80
|
hostname: t.string.optional(),
|
|
80
81
|
port: service_types.configFile.portCodec.optional(),
|
|
81
|
-
authentication:
|
|
82
|
-
.or(AzureActiveDirectoryServicePrincipalSecret)
|
|
83
|
-
.optional(),
|
|
82
|
+
authentication: Authentication.optional(),
|
|
84
83
|
reject_ip_ranges: t.array(t.string).optional(),
|
|
85
84
|
additionalConfig: AdditionalConfig.optional()
|
|
86
85
|
}));
|
package/dist/types/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACxG,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAE1D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAgB,CAAC;AAEtD,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,CAAC,MAAM,CAAC;IACjE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;KACnB,CAAC;CACH,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,CAAC,MAAM,CAAC;IACjE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iDAAiD,CAAC;IAClE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB;;WAEG;QACH,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC,MAAM;KACnB,CAAC;CACH,CAAC,CAAC;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AAO,CAAC,EAAE,IAAI,SAAS;QAC3B,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,SAAS;QAE7B,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,IAAI;QACJ,QAAQ;QAER,MAAM;QACN,cAAc,EAAE,OAAO,CAAC,cAAc;QAEtC,gBAAgB,EAAE;YAChB,iBAAiB,EAAE,OAAO,CAAC,gBAAgB,EAAE,iBAAiB,IAAI,IAAI;YACtE,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,IAAI,EAAE;YAClE,sBAAsB,EAAE,OAAO,CAAC,gBAAgB,EAAE,sBAAsB,IAAI,KAAK;SAClF;KACwC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,MAAqC;IAC3D,OAAO,WAAW,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;AACxE,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@powersync/service-module-mssql",
|
|
3
3
|
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
|
-
"version": "0.0.0-dev-
|
|
5
|
+
"version": "0.0.0-dev-20251128124236",
|
|
6
6
|
"license": "FSL-1.1-ALv2",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"type": "module",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"ts-codec": "^1.3.0",
|
|
28
28
|
"uri-js": "^4.4.1",
|
|
29
29
|
"uuid": "^11.1.0",
|
|
30
|
-
"@powersync/lib-services-framework": "0.0.0-dev-
|
|
31
|
-
"@powersync/service-core": "0.0.0-dev-
|
|
32
|
-
"@powersync/service-
|
|
33
|
-
"@powersync/service-
|
|
34
|
-
"@powersync/service-
|
|
30
|
+
"@powersync/lib-services-framework": "0.0.0-dev-20251128124236",
|
|
31
|
+
"@powersync/service-core": "0.0.0-dev-20251128124236",
|
|
32
|
+
"@powersync/service-sync-rules": "0.0.0-dev-20251128124236",
|
|
33
|
+
"@powersync/service-types": "0.0.0-dev-20251128124236",
|
|
34
|
+
"@powersync/service-errors": "0.0.0-dev-20251128124236",
|
|
35
35
|
"@powersync/service-jsonbig": "0.17.12"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/mssql": "^9.1.8",
|
|
39
39
|
"@types/semver": "^7.7.1",
|
|
40
40
|
"@types/uuid": "^10.0.0",
|
|
41
|
-
"@powersync/service-core-tests": "0.0.0-dev-
|
|
42
|
-
"@powersync/service-module-mongodb-storage": "0.0.0-dev-
|
|
43
|
-
"@powersync/service-module-postgres-storage": "0.0.0-dev-
|
|
41
|
+
"@powersync/service-core-tests": "0.0.0-dev-20251128124236",
|
|
42
|
+
"@powersync/service-module-mongodb-storage": "0.0.0-dev-20251128124236",
|
|
43
|
+
"@powersync/service-module-postgres-storage": "0.0.0-dev-20251128124236"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsc -b",
|
package/src/types/types.ts
CHANGED
|
@@ -63,6 +63,11 @@ export const DefaultAuthentication = t.object({
|
|
|
63
63
|
});
|
|
64
64
|
export type DefaultAuthentication = t.Decoded<typeof DefaultAuthentication>;
|
|
65
65
|
|
|
66
|
+
export const Authentication = DefaultAuthentication.or(AzureActiveDirectoryPasswordAuthentication).or(
|
|
67
|
+
AzureActiveDirectoryServicePrincipalSecret
|
|
68
|
+
);
|
|
69
|
+
export type Authentication = t.Decoded<typeof Authentication>;
|
|
70
|
+
|
|
66
71
|
export const AdditionalConfig = t.object({
|
|
67
72
|
/**
|
|
68
73
|
* Interval in milliseconds to wait between polling cycles. Defaults to 1000 milliseconds.
|
|
@@ -81,7 +86,7 @@ export const AdditionalConfig = t.object({
|
|
|
81
86
|
});
|
|
82
87
|
|
|
83
88
|
export interface AdditionalConfig {
|
|
84
|
-
|
|
89
|
+
/**
|
|
85
90
|
* Interval in milliseconds to wait between polling cycles. Defaults to 1000 milliseconds.
|
|
86
91
|
*/
|
|
87
92
|
pollingIntervalMs: number;
|
|
@@ -96,11 +101,6 @@ export interface AdditionalConfig {
|
|
|
96
101
|
trustServerCertificate: boolean;
|
|
97
102
|
}
|
|
98
103
|
|
|
99
|
-
export type AuthenticationType =
|
|
100
|
-
| DefaultAuthentication
|
|
101
|
-
| AzureActiveDirectoryPasswordAuthentication
|
|
102
|
-
| AzureActiveDirectoryServicePrincipalSecret;
|
|
103
|
-
|
|
104
104
|
export interface NormalizedMSSQLConnectionConfig {
|
|
105
105
|
id: string;
|
|
106
106
|
tag: string;
|
|
@@ -112,7 +112,7 @@ export interface NormalizedMSSQLConnectionConfig {
|
|
|
112
112
|
database: string;
|
|
113
113
|
schema?: string;
|
|
114
114
|
|
|
115
|
-
authentication?:
|
|
115
|
+
authentication?: Authentication;
|
|
116
116
|
|
|
117
117
|
lookup?: LookupFunction;
|
|
118
118
|
|
|
@@ -130,9 +130,7 @@ export const MSSQLConnectionConfig = service_types.configFile.DataSourceConfig.a
|
|
|
130
130
|
hostname: t.string.optional(),
|
|
131
131
|
port: service_types.configFile.portCodec.optional(),
|
|
132
132
|
|
|
133
|
-
authentication:
|
|
134
|
-
.or(AzureActiveDirectoryServicePrincipalSecret)
|
|
135
|
-
.optional(),
|
|
133
|
+
authentication: Authentication.optional(),
|
|
136
134
|
|
|
137
135
|
reject_ip_ranges: t.array(t.string).optional(),
|
|
138
136
|
additionalConfig: AdditionalConfig.optional()
|