@truenas/api-client 6.0.3 → 7.0.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/dist/{chunk-6PF34AWT.cjs → chunk-QJRF5DK4.cjs} +2 -2
- package/dist/chunk-QJRF5DK4.cjs.map +1 -0
- package/dist/{chunk-FUTD4L5T.js → chunk-SAJ5HZHK.js} +2 -2
- package/dist/chunk-SAJ5HZHK.js.map +1 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/testing/index.cjs +10 -10
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +2 -2
- package/dist/{truenas-auth-mechanism.enum-DikfjVxa.d.cts → truenas-auth-mechanism.enum-CHo_zr2p.d.cts} +1479 -1267
- package/dist/{truenas-auth-mechanism.enum-DikfjVxa.d.ts → truenas-auth-mechanism.enum-CHo_zr2p.d.ts} +1479 -1267
- package/package.json +1 -1
- package/dist/chunk-6PF34AWT.cjs.map +0 -1
- package/dist/chunk-FUTD4L5T.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQJRF5DK4_cjs = require('./chunk-QJRF5DK4.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AppState", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkQJRF5DK4_cjs.AppState; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AuthError", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQJRF5DK4_cjs.AuthError; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "AuthErrorCode", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQJRF5DK4_cjs.AuthErrorCode; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "AuthResponseType", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkQJRF5DK4_cjs.AuthResponseType; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "InvalidVersionResponseError", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkQJRF5DK4_cjs.InvalidVersionResponseError; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "JobState", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkQJRF5DK4_cjs.JobState; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "NoCompatibleVersionsError", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkQJRF5DK4_cjs.NoCompatibleVersionsError; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "SUPPORTED_API_VERSIONS", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkQJRF5DK4_cjs.SUPPORTED_API_VERSIONS; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "TrueNasApiClient", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkQJRF5DK4_cjs.TrueNasApiClient; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "TrueNasApiClientV2510", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkQJRF5DK4_cjs.TrueNasApiClientV2510; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "TrueNasApiClientV26", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkQJRF5DK4_cjs.TrueNasApiClientV26; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "TrueNasApiClientV27", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkQJRF5DK4_cjs.TrueNasApiClientV27; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "TrueNasAuthMechanism", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkQJRF5DK4_cjs.TrueNasAuthMechanism; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "UserRole", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkQJRF5DK4_cjs.UserRole; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "VersionCompatibility", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkQJRF5DK4_cjs.VersionCompatibility; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "VersionDiscovery", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkQJRF5DK4_cjs.VersionDiscovery; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "VersionDiscoveryError", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkQJRF5DK4_cjs.VersionDiscoveryError; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "VersionDiscoveryNetworkError", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkQJRF5DK4_cjs.VersionDiscoveryNetworkError; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "VersionDiscoveryTimeoutError", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkQJRF5DK4_cjs.VersionDiscoveryTimeoutError; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "VersionEndpointNotFoundError", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkQJRF5DK4_cjs.VersionEndpointNotFoundError; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "VersionTooNewError", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkQJRF5DK4_cjs.VersionTooNewError; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "VersionTooOldError", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkQJRF5DK4_cjs.VersionTooOldError; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "consoleLogger", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkQJRF5DK4_cjs.consoleLogger; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "createTrueNasClient", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkQJRF5DK4_cjs.createTrueNasClient; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "getApiErrorMessage", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkQJRF5DK4_cjs.getApiErrorMessage; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "isJobFinished", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkQJRF5DK4_cjs.isJobFinished; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "noopLogger", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkQJRF5DK4_cjs.noopLogger; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "v25_10_0", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkQJRF5DK4_cjs.v25_10_0_exports; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "v25_10_1", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkQJRF5DK4_cjs.v25_10_1_exports; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "v25_10_2", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkQJRF5DK4_cjs.v25_10_2_exports; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "v25_10_3", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkQJRF5DK4_cjs.v25_10_3_exports; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "v25_10_4", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkQJRF5DK4_cjs.v25_10_4_exports; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "v25_10_5", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkQJRF5DK4_cjs.v25_10_5_exports; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "v26_0_0", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkQJRF5DK4_cjs.v26_0_0_exports; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "v27_0_0", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkQJRF5DK4_cjs.v27_0_0_exports; }
|
|
146
146
|
});
|
|
147
147
|
//# sourceMappingURL=index.cjs.map
|
|
148
148
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TrueNasApiClient, A as ApiDirectory, O as OperationMappings, a as ApiDirectory$1, b as ApiDirectory$2, L as Logger, c as ApplianceProtocol, d as ApiVersion } from './truenas-auth-mechanism.enum-
|
|
2
|
-
export { e as ApiCallDirectoryV25_10_0, f as ApiCallDirectoryV25_10_1, g as ApiCallDirectoryV25_10_2, h as ApiCallDirectoryV25_10_3, i as ApiCallDirectoryV25_10_4, j as ApiCallDirectoryV25_10_5, k as ApiCallDirectoryV26_0_0, l as ApiCallDirectoryV27_0_0, m as ApiDirectoryByVersion, n as ApiDirectoryShape, o as ApiDirectoryV25_10_1, p as ApiDirectoryV25_10_2, q as ApiDirectoryV25_10_3, r as ApiDirectoryV25_10_4, s as ApiDirectoryV25_10_5, t as ApiError, u as ApiEventDirectoryV25_10_0, v as ApiEventDirectoryV25_10_1, w as ApiEventDirectoryV25_10_2, x as ApiEventDirectoryV25_10_3, y as ApiEventDirectoryV25_10_4, z as ApiEventDirectoryV25_10_5, B as ApiEventDirectoryV26_0_0, C as ApiEventDirectoryV27_0_0, D as ApiJobDirectoryV25_10_0, E as ApiJobDirectoryV25_10_1, F as ApiJobDirectoryV25_10_2, G as ApiJobDirectoryV25_10_3, H as ApiJobDirectoryV25_10_4, I as ApiJobDirectoryV25_10_5, J as ApiJobDirectoryV26_0_0, K as ApiJobDirectoryV27_0_0, M as ApiKeyCreate, N as ApiVersionResponse, P as AppState, Q as ArgsOf, R as AuthResponse, S as AuthResponseType, U as BaseApiDirectory, V as CallMethod, W as CallParams, X as CallResponse, Y as Container, Z as CreateClientOptions, _ as DefaultApiDirectory, $ as EventKind, a0 as EventName, a1 as EventUnion, a2 as Job, a3 as JobMethod, a4 as JobParams, a5 as JobProgress, a6 as JobResult, a7 as JobState, a8 as QueryDirectory, a9 as QueryEntity, aa as QueryListOptions, ab as QueryMethod, ac as QuerySingleOptions, ad as SUPPORTED_API_VERSIONS, ae as SmbStatusInfoLevel, af as SmbStatusOptions, ag as SmbStatusRequest, ah as SmbStatusResponse, ai as SmbStatusRow, aj as SupportedApiVersion, ak as TrueNasAuthMechanism, al as TrueNasDate, am as TrueNasErrorData, an as TrueNasErrorFrame, ao as UserRole, ap as UserRoleName, aq as VersionCompatibility, ar as consoleLogger, as as createTrueNasClient, at as getApiErrorMessage, au as isJobFinished, av as noopLogger, aw as v25_10_0, ax as v25_10_1, ay as v25_10_2, az as v25_10_3, aA as v25_10_4, aB as v25_10_5, aC as v26_0_0, aD as v27_0_0 } from './truenas-auth-mechanism.enum-
|
|
1
|
+
import { T as TrueNasApiClient, A as ApiDirectory, O as OperationMappings, a as ApiDirectory$1, b as ApiDirectory$2, L as Logger, c as ApplianceProtocol, d as ApiVersion } from './truenas-auth-mechanism.enum-CHo_zr2p.cjs';
|
|
2
|
+
export { e as ApiCallDirectoryV25_10_0, f as ApiCallDirectoryV25_10_1, g as ApiCallDirectoryV25_10_2, h as ApiCallDirectoryV25_10_3, i as ApiCallDirectoryV25_10_4, j as ApiCallDirectoryV25_10_5, k as ApiCallDirectoryV26_0_0, l as ApiCallDirectoryV27_0_0, m as ApiDirectoryByVersion, n as ApiDirectoryShape, o as ApiDirectoryV25_10_1, p as ApiDirectoryV25_10_2, q as ApiDirectoryV25_10_3, r as ApiDirectoryV25_10_4, s as ApiDirectoryV25_10_5, t as ApiError, u as ApiEventDirectoryV25_10_0, v as ApiEventDirectoryV25_10_1, w as ApiEventDirectoryV25_10_2, x as ApiEventDirectoryV25_10_3, y as ApiEventDirectoryV25_10_4, z as ApiEventDirectoryV25_10_5, B as ApiEventDirectoryV26_0_0, C as ApiEventDirectoryV27_0_0, D as ApiJobDirectoryV25_10_0, E as ApiJobDirectoryV25_10_1, F as ApiJobDirectoryV25_10_2, G as ApiJobDirectoryV25_10_3, H as ApiJobDirectoryV25_10_4, I as ApiJobDirectoryV25_10_5, J as ApiJobDirectoryV26_0_0, K as ApiJobDirectoryV27_0_0, M as ApiKeyCreate, N as ApiVersionResponse, P as AppState, Q as ArgsOf, R as AuthResponse, S as AuthResponseType, U as BaseApiDirectory, V as CallMethod, W as CallParams, X as CallResponse, Y as Container, Z as CreateClientOptions, _ as DefaultApiDirectory, $ as EventKind, a0 as EventName, a1 as EventUnion, a2 as Job, a3 as JobMethod, a4 as JobParams, a5 as JobProgress, a6 as JobResult, a7 as JobState, a8 as QueryDirectory, a9 as QueryEntity, aa as QueryListOptions, ab as QueryMethod, ac as QuerySingleOptions, ad as SUPPORTED_API_VERSIONS, ae as SmbStatusInfoLevel, af as SmbStatusOptions, ag as SmbStatusRequest, ah as SmbStatusResponse, ai as SmbStatusRow, aj as SupportedApiVersion, ak as TrueNasAuthMechanism, al as TrueNasDate, am as TrueNasErrorData, an as TrueNasErrorFrame, ao as UserRole, ap as UserRoleName, aq as VersionCompatibility, ar as consoleLogger, as as createTrueNasClient, at as getApiErrorMessage, au as isJobFinished, av as noopLogger, aw as v25_10_0, ax as v25_10_1, ay as v25_10_2, az as v25_10_3, aA as v25_10_4, aB as v25_10_5, aC as v26_0_0, aD as v27_0_0 } from './truenas-auth-mechanism.enum-CHo_zr2p.cjs';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import 'rxjs/webSocket';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TrueNasApiClient, A as ApiDirectory, O as OperationMappings, a as ApiDirectory$1, b as ApiDirectory$2, L as Logger, c as ApplianceProtocol, d as ApiVersion } from './truenas-auth-mechanism.enum-
|
|
2
|
-
export { e as ApiCallDirectoryV25_10_0, f as ApiCallDirectoryV25_10_1, g as ApiCallDirectoryV25_10_2, h as ApiCallDirectoryV25_10_3, i as ApiCallDirectoryV25_10_4, j as ApiCallDirectoryV25_10_5, k as ApiCallDirectoryV26_0_0, l as ApiCallDirectoryV27_0_0, m as ApiDirectoryByVersion, n as ApiDirectoryShape, o as ApiDirectoryV25_10_1, p as ApiDirectoryV25_10_2, q as ApiDirectoryV25_10_3, r as ApiDirectoryV25_10_4, s as ApiDirectoryV25_10_5, t as ApiError, u as ApiEventDirectoryV25_10_0, v as ApiEventDirectoryV25_10_1, w as ApiEventDirectoryV25_10_2, x as ApiEventDirectoryV25_10_3, y as ApiEventDirectoryV25_10_4, z as ApiEventDirectoryV25_10_5, B as ApiEventDirectoryV26_0_0, C as ApiEventDirectoryV27_0_0, D as ApiJobDirectoryV25_10_0, E as ApiJobDirectoryV25_10_1, F as ApiJobDirectoryV25_10_2, G as ApiJobDirectoryV25_10_3, H as ApiJobDirectoryV25_10_4, I as ApiJobDirectoryV25_10_5, J as ApiJobDirectoryV26_0_0, K as ApiJobDirectoryV27_0_0, M as ApiKeyCreate, N as ApiVersionResponse, P as AppState, Q as ArgsOf, R as AuthResponse, S as AuthResponseType, U as BaseApiDirectory, V as CallMethod, W as CallParams, X as CallResponse, Y as Container, Z as CreateClientOptions, _ as DefaultApiDirectory, $ as EventKind, a0 as EventName, a1 as EventUnion, a2 as Job, a3 as JobMethod, a4 as JobParams, a5 as JobProgress, a6 as JobResult, a7 as JobState, a8 as QueryDirectory, a9 as QueryEntity, aa as QueryListOptions, ab as QueryMethod, ac as QuerySingleOptions, ad as SUPPORTED_API_VERSIONS, ae as SmbStatusInfoLevel, af as SmbStatusOptions, ag as SmbStatusRequest, ah as SmbStatusResponse, ai as SmbStatusRow, aj as SupportedApiVersion, ak as TrueNasAuthMechanism, al as TrueNasDate, am as TrueNasErrorData, an as TrueNasErrorFrame, ao as UserRole, ap as UserRoleName, aq as VersionCompatibility, ar as consoleLogger, as as createTrueNasClient, at as getApiErrorMessage, au as isJobFinished, av as noopLogger, aw as v25_10_0, ax as v25_10_1, ay as v25_10_2, az as v25_10_3, aA as v25_10_4, aB as v25_10_5, aC as v26_0_0, aD as v27_0_0 } from './truenas-auth-mechanism.enum-
|
|
1
|
+
import { T as TrueNasApiClient, A as ApiDirectory, O as OperationMappings, a as ApiDirectory$1, b as ApiDirectory$2, L as Logger, c as ApplianceProtocol, d as ApiVersion } from './truenas-auth-mechanism.enum-CHo_zr2p.js';
|
|
2
|
+
export { e as ApiCallDirectoryV25_10_0, f as ApiCallDirectoryV25_10_1, g as ApiCallDirectoryV25_10_2, h as ApiCallDirectoryV25_10_3, i as ApiCallDirectoryV25_10_4, j as ApiCallDirectoryV25_10_5, k as ApiCallDirectoryV26_0_0, l as ApiCallDirectoryV27_0_0, m as ApiDirectoryByVersion, n as ApiDirectoryShape, o as ApiDirectoryV25_10_1, p as ApiDirectoryV25_10_2, q as ApiDirectoryV25_10_3, r as ApiDirectoryV25_10_4, s as ApiDirectoryV25_10_5, t as ApiError, u as ApiEventDirectoryV25_10_0, v as ApiEventDirectoryV25_10_1, w as ApiEventDirectoryV25_10_2, x as ApiEventDirectoryV25_10_3, y as ApiEventDirectoryV25_10_4, z as ApiEventDirectoryV25_10_5, B as ApiEventDirectoryV26_0_0, C as ApiEventDirectoryV27_0_0, D as ApiJobDirectoryV25_10_0, E as ApiJobDirectoryV25_10_1, F as ApiJobDirectoryV25_10_2, G as ApiJobDirectoryV25_10_3, H as ApiJobDirectoryV25_10_4, I as ApiJobDirectoryV25_10_5, J as ApiJobDirectoryV26_0_0, K as ApiJobDirectoryV27_0_0, M as ApiKeyCreate, N as ApiVersionResponse, P as AppState, Q as ArgsOf, R as AuthResponse, S as AuthResponseType, U as BaseApiDirectory, V as CallMethod, W as CallParams, X as CallResponse, Y as Container, Z as CreateClientOptions, _ as DefaultApiDirectory, $ as EventKind, a0 as EventName, a1 as EventUnion, a2 as Job, a3 as JobMethod, a4 as JobParams, a5 as JobProgress, a6 as JobResult, a7 as JobState, a8 as QueryDirectory, a9 as QueryEntity, aa as QueryListOptions, ab as QueryMethod, ac as QuerySingleOptions, ad as SUPPORTED_API_VERSIONS, ae as SmbStatusInfoLevel, af as SmbStatusOptions, ag as SmbStatusRequest, ah as SmbStatusResponse, ai as SmbStatusRow, aj as SupportedApiVersion, ak as TrueNasAuthMechanism, al as TrueNasDate, am as TrueNasErrorData, an as TrueNasErrorFrame, ao as UserRole, ap as UserRoleName, aq as VersionCompatibility, ar as consoleLogger, as as createTrueNasClient, at as getApiErrorMessage, au as isJobFinished, av as noopLogger, aw as v25_10_0, ax as v25_10_1, ay as v25_10_2, az as v25_10_3, aA as v25_10_4, aB as v25_10_5, aC as v26_0_0, aD as v27_0_0 } from './truenas-auth-mechanism.enum-CHo_zr2p.js';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import 'rxjs/webSocket';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AppState, AuthError, AuthErrorCode, AuthResponseType, InvalidVersionResponseError, JobState, NoCompatibleVersionsError, SUPPORTED_API_VERSIONS, TrueNasApiClient, TrueNasApiClientV2510, TrueNasApiClientV26, TrueNasApiClientV27, TrueNasAuthMechanism, UserRole, VersionCompatibility, VersionDiscovery, VersionDiscoveryError, VersionDiscoveryNetworkError, VersionDiscoveryTimeoutError, VersionEndpointNotFoundError, VersionTooNewError, VersionTooOldError, consoleLogger, createTrueNasClient, getApiErrorMessage, isJobFinished, noopLogger, v25_10_0_exports as v25_10_0, v25_10_1_exports as v25_10_1, v25_10_2_exports as v25_10_2, v25_10_3_exports as v25_10_3, v25_10_4_exports as v25_10_4, v25_10_5_exports as v25_10_5, v26_0_0_exports as v26_0_0, v27_0_0_exports as v27_0_0 } from './chunk-
|
|
1
|
+
export { AppState, AuthError, AuthErrorCode, AuthResponseType, InvalidVersionResponseError, JobState, NoCompatibleVersionsError, SUPPORTED_API_VERSIONS, TrueNasApiClient, TrueNasApiClientV2510, TrueNasApiClientV26, TrueNasApiClientV27, TrueNasAuthMechanism, UserRole, VersionCompatibility, VersionDiscovery, VersionDiscoveryError, VersionDiscoveryNetworkError, VersionDiscoveryTimeoutError, VersionEndpointNotFoundError, VersionTooNewError, VersionTooOldError, consoleLogger, createTrueNasClient, getApiErrorMessage, isJobFinished, noopLogger, v25_10_0_exports as v25_10_0, v25_10_1_exports as v25_10_1, v25_10_2_exports as v25_10_2, v25_10_3_exports as v25_10_3, v25_10_4_exports as v25_10_4, v25_10_5_exports as v25_10_5, v26_0_0_exports as v26_0_0, v27_0_0_exports as v27_0_0 } from './chunk-SAJ5HZHK.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/testing/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQJRF5DK4_cjs = require('../chunk-QJRF5DK4.cjs');
|
|
4
4
|
var rxjs = require('rxjs');
|
|
5
5
|
|
|
6
6
|
// src/testing/unmocked-call-error.ts
|
|
@@ -17,7 +17,7 @@ var UnmockedCallError = class extends Error {
|
|
|
17
17
|
|
|
18
18
|
// src/testing/fake-connection.ts
|
|
19
19
|
var CLIENT_HOUSEKEEPING = /* @__PURE__ */ new Set(["core.subscribe"]);
|
|
20
|
-
var FakeConnection = class extends
|
|
20
|
+
var FakeConnection = class extends chunkQJRF5DK4_cjs.TrueNasConnection {
|
|
21
21
|
constructor(options = {}) {
|
|
22
22
|
super(
|
|
23
23
|
// Disabled: `connection$` derives from this, so no socket is ever built
|
|
@@ -29,7 +29,7 @@ var FakeConnection = class extends chunk6PF34AWT_cjs.TrueNasConnection {
|
|
|
29
29
|
void 0,
|
|
30
30
|
0,
|
|
31
31
|
0,
|
|
32
|
-
|
|
32
|
+
chunkQJRF5DK4_cjs.noopLogger
|
|
33
33
|
);
|
|
34
34
|
this.incoming = new rxjs.Subject();
|
|
35
35
|
this.frames = [];
|
|
@@ -203,7 +203,7 @@ var FakeConnection = class extends chunk6PF34AWT_cjs.TrueNasConnection {
|
|
|
203
203
|
};
|
|
204
204
|
|
|
205
205
|
// src/testing/fake-authenticator.ts
|
|
206
|
-
var FakeAuthenticator = class extends
|
|
206
|
+
var FakeAuthenticator = class extends chunkQJRF5DK4_cjs.TrueNasAuthenticator {
|
|
207
207
|
constructor(fakeConnection, version) {
|
|
208
208
|
super(fakeConnection, version);
|
|
209
209
|
this.fakeConnection = fakeConnection;
|
|
@@ -553,12 +553,12 @@ function withFakeCollaborators(Base, options) {
|
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
function createFakeClient(options = {}) {
|
|
556
|
-
const versionString = options.version ??
|
|
557
|
-
const version =
|
|
556
|
+
const versionString = options.version ?? chunkQJRF5DK4_cjs.SUPPORTED_API_VERSIONS[0];
|
|
557
|
+
const version = chunkQJRF5DK4_cjs.parseApiVersion(versionString);
|
|
558
558
|
if (!version) {
|
|
559
559
|
throw new Error(`'${versionString}' is not a version this package parses.`);
|
|
560
560
|
}
|
|
561
|
-
const Base =
|
|
561
|
+
const Base = chunkQJRF5DK4_cjs.clientClassFor(version);
|
|
562
562
|
if (!Base) {
|
|
563
563
|
throw new Error(
|
|
564
564
|
`No client implementation for '${versionString}'. The real factory would have refused it too.`
|
|
@@ -644,8 +644,8 @@ function withSpies(client, spy) {
|
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
// src/testing/fake-api-version.ts
|
|
647
|
-
function fakeApiVersion(version =
|
|
648
|
-
const parsed =
|
|
647
|
+
function fakeApiVersion(version = chunkQJRF5DK4_cjs.SUPPORTED_API_VERSIONS[0], overrides = {}) {
|
|
648
|
+
const parsed = chunkQJRF5DK4_cjs.parseApiVersion(version);
|
|
649
649
|
if (!parsed) {
|
|
650
650
|
throw new Error(
|
|
651
651
|
`fakeApiVersion('${version}'): not a version this package parses. Expected vYY.MINOR.PATCH \u2014 v25.10.0, v27.0.0. For a version the parser rejects, pass one it accepts and override its fields.`
|
|
@@ -714,7 +714,7 @@ function fakeAuthResponse(overrides = {}) {
|
|
|
714
714
|
|
|
715
715
|
Object.defineProperty(exports, "AuthResponseType", {
|
|
716
716
|
enumerable: true,
|
|
717
|
-
get: function () { return
|
|
717
|
+
get: function () { return chunkQJRF5DK4_cjs.AuthResponseType; }
|
|
718
718
|
});
|
|
719
719
|
exports.FakeAuthenticator = FakeAuthenticator;
|
|
720
720
|
exports.FakeConnection = FakeConnection;
|
package/dist/testing/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import { Subscription, Observable } from 'rxjs';
|
|
3
|
-
import { aE as TrueNasConnection, aF as TrueNasMessage, an as TrueNasErrorFrame, aG as TrueNasAuthenticator, d as ApiVersion, ak as TrueNasAuthMechanism, R as AuthResponse, S as AuthResponseType, a2 as Job, a5 as JobProgress, n as ApiDirectoryShape, V as CallMethod, ab as QueryMethod, X as CallResponse, W as CallParams, a9 as QueryEntity, a3 as JobMethod, a6 as JobResult, a0 as EventName, a1 as EventUnion, aj as SupportedApiVersion, T as TrueNasApiClient, aH as DerivedDirectory, am as TrueNasErrorData } from '../truenas-auth-mechanism.enum-
|
|
3
|
+
import { aE as TrueNasConnection, aF as TrueNasMessage, an as TrueNasErrorFrame, aG as TrueNasAuthenticator, d as ApiVersion, ak as TrueNasAuthMechanism, R as AuthResponse, S as AuthResponseType, a2 as Job, a5 as JobProgress, n as ApiDirectoryShape, V as CallMethod, ab as QueryMethod, X as CallResponse, W as CallParams, a9 as QueryEntity, a3 as JobMethod, a6 as JobResult, a0 as EventName, a1 as EventUnion, aj as SupportedApiVersion, T as TrueNasApiClient, aH as DerivedDirectory, am as TrueNasErrorData } from '../truenas-auth-mechanism.enum-CHo_zr2p.cjs';
|
|
4
4
|
import 'rxjs/webSocket';
|
|
5
5
|
|
|
6
6
|
/** How a fake connection is set up. Every field has a usable default. */
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import { Subscription, Observable } from 'rxjs';
|
|
3
|
-
import { aE as TrueNasConnection, aF as TrueNasMessage, an as TrueNasErrorFrame, aG as TrueNasAuthenticator, d as ApiVersion, ak as TrueNasAuthMechanism, R as AuthResponse, S as AuthResponseType, a2 as Job, a5 as JobProgress, n as ApiDirectoryShape, V as CallMethod, ab as QueryMethod, X as CallResponse, W as CallParams, a9 as QueryEntity, a3 as JobMethod, a6 as JobResult, a0 as EventName, a1 as EventUnion, aj as SupportedApiVersion, T as TrueNasApiClient, aH as DerivedDirectory, am as TrueNasErrorData } from '../truenas-auth-mechanism.enum-
|
|
3
|
+
import { aE as TrueNasConnection, aF as TrueNasMessage, an as TrueNasErrorFrame, aG as TrueNasAuthenticator, d as ApiVersion, ak as TrueNasAuthMechanism, R as AuthResponse, S as AuthResponseType, a2 as Job, a5 as JobProgress, n as ApiDirectoryShape, V as CallMethod, ab as QueryMethod, X as CallResponse, W as CallParams, a9 as QueryEntity, a3 as JobMethod, a6 as JobResult, a0 as EventName, a1 as EventUnion, aj as SupportedApiVersion, T as TrueNasApiClient, aH as DerivedDirectory, am as TrueNasErrorData } from '../truenas-auth-mechanism.enum-CHo_zr2p.js';
|
|
4
4
|
import 'rxjs/webSocket';
|
|
5
5
|
|
|
6
6
|
/** How a fake connection is set up. Every field has a usable default. */
|
package/dist/testing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SUPPORTED_API_VERSIONS, TrueNasConnection, noopLogger, TrueNasAuthenticator, parseApiVersion, clientClassFor } from '../chunk-
|
|
2
|
-
export { AuthResponseType } from '../chunk-
|
|
1
|
+
import { SUPPORTED_API_VERSIONS, TrueNasConnection, noopLogger, TrueNasAuthenticator, parseApiVersion, clientClassFor } from '../chunk-SAJ5HZHK.js';
|
|
2
|
+
export { AuthResponseType } from '../chunk-SAJ5HZHK.js';
|
|
3
3
|
import { Subject, distinctUntilChanged, takeUntil, filter, map, Subscription } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
// src/testing/unmocked-call-error.ts
|