@norskvideo/norsk-manager-sdk 1.0.365 → 1.0.367
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/lib/src/sdk.d.ts +1 -0
- package/lib/src/sdk.js +4 -2
- package/package.json +2 -2
- package/src/sdk.ts +5 -0
package/lib/src/sdk.d.ts
CHANGED
package/lib/src/sdk.js
CHANGED
|
@@ -92,7 +92,7 @@ function toJobState(state) {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
/** @internal */
|
|
95
|
-
function toPortMapping({ containerPort, protocol, hostPort, hostAddress, }) {
|
|
95
|
+
function toPortMapping({ containerPort, protocol, hostPort, hostAddress, group }) {
|
|
96
96
|
let protocolPB;
|
|
97
97
|
let hostPortPB;
|
|
98
98
|
switch (protocol) {
|
|
@@ -136,10 +136,11 @@ function toPortMapping({ containerPort, protocol, hostPort, hostAddress, }) {
|
|
|
136
136
|
protocol: protocolPB,
|
|
137
137
|
hostPort: hostPortPB,
|
|
138
138
|
hostAddress: hostAddress || "",
|
|
139
|
+
group: group || ""
|
|
139
140
|
});
|
|
140
141
|
}
|
|
141
142
|
/** @internal */
|
|
142
|
-
function fromPortMapping({ containerPort, protocol: protocolPB, hostPort: hostPortPB, hostAddress, }) {
|
|
143
|
+
function fromPortMapping({ containerPort, protocol: protocolPB, hostPort: hostPortPB, hostAddress, group }) {
|
|
143
144
|
let protocol;
|
|
144
145
|
let hostPort;
|
|
145
146
|
switch (protocolPB) {
|
|
@@ -179,6 +180,7 @@ function fromPortMapping({ containerPort, protocol: protocolPB, hostPort: hostPo
|
|
|
179
180
|
protocol,
|
|
180
181
|
hostPort,
|
|
181
182
|
hostAddress: hostAddress || "",
|
|
183
|
+
group: group || ""
|
|
182
184
|
};
|
|
183
185
|
}
|
|
184
186
|
/** @internal */
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"license": "MIT",
|
|
3
3
|
"name": "@norskvideo/norsk-manager-sdk",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.367",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@bufbuild/protobuf": "^0.3.0",
|
|
7
7
|
"@grpc/grpc-js": "^1.2.2",
|
|
8
|
-
"@norskvideo/norsk-api": "1.0.
|
|
8
|
+
"@norskvideo/norsk-api": "1.0.367",
|
|
9
9
|
"typescript-nullable": "^0.6.0"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
package/src/sdk.ts
CHANGED
|
@@ -205,6 +205,7 @@ export type PortMapping = {
|
|
|
205
205
|
protocol?: "tcp" | "udp";
|
|
206
206
|
hostPort: HostPort;
|
|
207
207
|
hostAddress?: string;
|
|
208
|
+
group?: string;
|
|
208
209
|
};
|
|
209
210
|
|
|
210
211
|
/** @public */
|
|
@@ -288,6 +289,7 @@ function toPortMapping({
|
|
|
288
289
|
protocol,
|
|
289
290
|
hostPort,
|
|
290
291
|
hostAddress,
|
|
292
|
+
group
|
|
291
293
|
}: PortMapping): CommonPB.PortMapping {
|
|
292
294
|
let protocolPB: CommonPB.ProtocolFamily;
|
|
293
295
|
let hostPortPB: CommonPB.PortMapping["hostPort"];
|
|
@@ -332,6 +334,7 @@ function toPortMapping({
|
|
|
332
334
|
protocol: protocolPB,
|
|
333
335
|
hostPort: hostPortPB,
|
|
334
336
|
hostAddress: hostAddress || "",
|
|
337
|
+
group: group || ""
|
|
335
338
|
});
|
|
336
339
|
}
|
|
337
340
|
|
|
@@ -341,6 +344,7 @@ function fromPortMapping({
|
|
|
341
344
|
protocol: protocolPB,
|
|
342
345
|
hostPort: hostPortPB,
|
|
343
346
|
hostAddress,
|
|
347
|
+
group
|
|
344
348
|
}: CommonPB.PortMapping): PortMapping {
|
|
345
349
|
let protocol: PortMapping["protocol"];
|
|
346
350
|
let hostPort: HostPort;
|
|
@@ -381,6 +385,7 @@ function fromPortMapping({
|
|
|
381
385
|
protocol,
|
|
382
386
|
hostPort,
|
|
383
387
|
hostAddress: hostAddress || "",
|
|
388
|
+
group: group || ""
|
|
384
389
|
};
|
|
385
390
|
}
|
|
386
391
|
|