@hot-updater/standalone 1.2.0-rc.27 → 1.2.0-rc.28
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/index.cjs +44 -2
- package/dist/index.mjs +44 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -81,10 +81,11 @@ const nativeBuildScopeParams = ({ platform, channel, fingerprintHash, appVersion
|
|
|
81
81
|
channel,
|
|
82
82
|
...fingerprintHash === null ? { appVersion } : { fingerprintHash }
|
|
83
83
|
});
|
|
84
|
-
const keysetParams = ({ order, after, limit }) => ({
|
|
84
|
+
const keysetParams = ({ order, after, through, limit }) => ({
|
|
85
85
|
limit: String(limit),
|
|
86
86
|
...order === void 0 ? {} : { order },
|
|
87
|
-
...after === void 0 ? {} : { cursor: after }
|
|
87
|
+
...after === void 0 ? {} : { cursor: after },
|
|
88
|
+
...through === void 0 ? {} : { through }
|
|
88
89
|
});
|
|
89
90
|
const filterParams = (filter) => {
|
|
90
91
|
switch (filter.kind) {
|
|
@@ -246,6 +247,47 @@ const createStandaloneCoreApi = (config) => {
|
|
|
246
247
|
body: mark,
|
|
247
248
|
requiredRoute: "native build store mark"
|
|
248
249
|
}),
|
|
250
|
+
listIosDevices: async ({ status, ...input }) => await call("GET", "/ios-devices", {
|
|
251
|
+
query: {
|
|
252
|
+
...keysetParams(input),
|
|
253
|
+
...status === void 0 ? {} : { status }
|
|
254
|
+
},
|
|
255
|
+
requiredRoute: "iOS device registry"
|
|
256
|
+
}) ?? [],
|
|
257
|
+
findIosDevice: (udid) => call("GET", `/ios-devices/udid/${encode(udid)}`, { requiredRoute: "iOS device registry" }),
|
|
258
|
+
requestIosDevice: async (input) => await call("POST", "/ios-devices", {
|
|
259
|
+
body: input,
|
|
260
|
+
requiredRoute: "iOS device registry"
|
|
261
|
+
}),
|
|
262
|
+
approveIosDevice: (id, input) => call("POST", `/ios-devices/${encode(id)}/approval`, {
|
|
263
|
+
body: input,
|
|
264
|
+
requiredRoute: "iOS device registry"
|
|
265
|
+
}),
|
|
266
|
+
renameIosDevice: (id, name) => call("PATCH", `/ios-devices/${encode(id)}`, {
|
|
267
|
+
body: { name },
|
|
268
|
+
requiredRoute: "iOS device registry"
|
|
269
|
+
}),
|
|
270
|
+
recordIosDeviceOutcome: ({ id, ...input }) => call("POST", `/ios-devices/${encode(id)}/outcome`, {
|
|
271
|
+
body: input,
|
|
272
|
+
requiredRoute: "iOS device registry"
|
|
273
|
+
}),
|
|
274
|
+
markIosDevicesInBuild: async (input) => {
|
|
275
|
+
await request("POST", "/ios-devices/in-build", {
|
|
276
|
+
body: input,
|
|
277
|
+
requiredRoute: "iOS device registry"
|
|
278
|
+
});
|
|
279
|
+
},
|
|
280
|
+
claimIosDeviceAccount: async (issuerId) => await call("POST", "/ios-devices/account", {
|
|
281
|
+
body: { issuerId },
|
|
282
|
+
requiredRoute: "iOS device registry"
|
|
283
|
+
}),
|
|
284
|
+
deleteIosDevice: (id, only) => call("DELETE", `/ios-devices/${encode(id)}`, {
|
|
285
|
+
query: {
|
|
286
|
+
...only?.status === void 0 ? {} : { status: only.status },
|
|
287
|
+
...only?.requestedBy === void 0 ? {} : { requestedBy: only.requestedBy }
|
|
288
|
+
},
|
|
289
|
+
requiredRoute: "iOS device registry"
|
|
290
|
+
}),
|
|
249
291
|
deleteNativeBuild: async (id) => await call("DELETE", `/native-builds/${encode(id)}`, { requiredRoute: "native build deletion" })
|
|
250
292
|
};
|
|
251
293
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -80,10 +80,11 @@ const nativeBuildScopeParams = ({ platform, channel, fingerprintHash, appVersion
|
|
|
80
80
|
channel,
|
|
81
81
|
...fingerprintHash === null ? { appVersion } : { fingerprintHash }
|
|
82
82
|
});
|
|
83
|
-
const keysetParams = ({ order, after, limit }) => ({
|
|
83
|
+
const keysetParams = ({ order, after, through, limit }) => ({
|
|
84
84
|
limit: String(limit),
|
|
85
85
|
...order === void 0 ? {} : { order },
|
|
86
|
-
...after === void 0 ? {} : { cursor: after }
|
|
86
|
+
...after === void 0 ? {} : { cursor: after },
|
|
87
|
+
...through === void 0 ? {} : { through }
|
|
87
88
|
});
|
|
88
89
|
const filterParams = (filter) => {
|
|
89
90
|
switch (filter.kind) {
|
|
@@ -245,6 +246,47 @@ const createStandaloneCoreApi = (config) => {
|
|
|
245
246
|
body: mark,
|
|
246
247
|
requiredRoute: "native build store mark"
|
|
247
248
|
}),
|
|
249
|
+
listIosDevices: async ({ status, ...input }) => await call("GET", "/ios-devices", {
|
|
250
|
+
query: {
|
|
251
|
+
...keysetParams(input),
|
|
252
|
+
...status === void 0 ? {} : { status }
|
|
253
|
+
},
|
|
254
|
+
requiredRoute: "iOS device registry"
|
|
255
|
+
}) ?? [],
|
|
256
|
+
findIosDevice: (udid) => call("GET", `/ios-devices/udid/${encode(udid)}`, { requiredRoute: "iOS device registry" }),
|
|
257
|
+
requestIosDevice: async (input) => await call("POST", "/ios-devices", {
|
|
258
|
+
body: input,
|
|
259
|
+
requiredRoute: "iOS device registry"
|
|
260
|
+
}),
|
|
261
|
+
approveIosDevice: (id, input) => call("POST", `/ios-devices/${encode(id)}/approval`, {
|
|
262
|
+
body: input,
|
|
263
|
+
requiredRoute: "iOS device registry"
|
|
264
|
+
}),
|
|
265
|
+
renameIosDevice: (id, name) => call("PATCH", `/ios-devices/${encode(id)}`, {
|
|
266
|
+
body: { name },
|
|
267
|
+
requiredRoute: "iOS device registry"
|
|
268
|
+
}),
|
|
269
|
+
recordIosDeviceOutcome: ({ id, ...input }) => call("POST", `/ios-devices/${encode(id)}/outcome`, {
|
|
270
|
+
body: input,
|
|
271
|
+
requiredRoute: "iOS device registry"
|
|
272
|
+
}),
|
|
273
|
+
markIosDevicesInBuild: async (input) => {
|
|
274
|
+
await request("POST", "/ios-devices/in-build", {
|
|
275
|
+
body: input,
|
|
276
|
+
requiredRoute: "iOS device registry"
|
|
277
|
+
});
|
|
278
|
+
},
|
|
279
|
+
claimIosDeviceAccount: async (issuerId) => await call("POST", "/ios-devices/account", {
|
|
280
|
+
body: { issuerId },
|
|
281
|
+
requiredRoute: "iOS device registry"
|
|
282
|
+
}),
|
|
283
|
+
deleteIosDevice: (id, only) => call("DELETE", `/ios-devices/${encode(id)}`, {
|
|
284
|
+
query: {
|
|
285
|
+
...only?.status === void 0 ? {} : { status: only.status },
|
|
286
|
+
...only?.requestedBy === void 0 ? {} : { requestedBy: only.requestedBy }
|
|
287
|
+
},
|
|
288
|
+
requiredRoute: "iOS device registry"
|
|
289
|
+
}),
|
|
248
290
|
deleteNativeBuild: async (id) => await call("DELETE", `/native-builds/${encode(id)}`, { requiredRoute: "native build deletion" })
|
|
249
291
|
};
|
|
250
292
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/standalone",
|
|
3
|
-
"version": "1.2.0-rc.
|
|
3
|
+
"version": "1.2.0-rc.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@hot-updater/protocol": "1.2.0-rc.
|
|
46
|
-
"@hot-updater/plugin-core": "1.2.0-rc.
|
|
45
|
+
"@hot-updater/protocol": "1.2.0-rc.28",
|
|
46
|
+
"@hot-updater/plugin-core": "1.2.0-rc.28"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"mime": "2.6.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"msw": "^2.7.0",
|
|
53
53
|
"verkit": "0.4.0",
|
|
54
54
|
"vitest": "4.1.4",
|
|
55
|
-
"@hot-updater/test-utils": "1.2.0-rc.
|
|
55
|
+
"@hot-updater/test-utils": "1.2.0-rc.28"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsdown",
|