@apps-in-toss/plugins 2.0.9 → 2.1.1
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 +63 -35
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +63 -35
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -208,7 +208,7 @@ var require_package = __commonJS({
|
|
|
208
208
|
module2.exports = {
|
|
209
209
|
name: "@apps-in-toss/plugins",
|
|
210
210
|
type: "module",
|
|
211
|
-
version: "2.
|
|
211
|
+
version: "2.1.1",
|
|
212
212
|
description: "The plugins for Apps In Toss",
|
|
213
213
|
scripts: {
|
|
214
214
|
test: "vitest --run",
|
|
@@ -905,15 +905,18 @@ var __typia_transform__isFormatUuid = __toESM(require_isFormatUuid(), 1);
|
|
|
905
905
|
var __typia_transform__validateReport = __toESM(require_validateReport(), 1);
|
|
906
906
|
var __typia_transform__createStandardSchema = __toESM(require_createStandardSchema(), 1);
|
|
907
907
|
var validateAppManifest = (() => {
|
|
908
|
-
const _io0 = (input) => "string" === typeof input.appName && (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && ("object" === typeof input._metadata && null !== input._metadata &&
|
|
908
|
+
const _io0 = (input) => "string" === typeof input.appName && (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && ("object" === typeof input._metadata && null !== input._metadata && _io7(input._metadata));
|
|
909
909
|
const _io1 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
|
|
910
910
|
const _io2 = (input) => "geolocation" === input.name && "access" === input.access;
|
|
911
911
|
const _io3 = (input) => "contacts" === input.name && ("read" === input.access || "write" === input.access);
|
|
912
912
|
const _io4 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
|
|
913
913
|
const _io5 = (input) => "camera" === input.name && "access" === input.access;
|
|
914
|
-
const _io6 = (input) =>
|
|
914
|
+
const _io6 = (input) => "microphone" === input.name && "access" === input.access;
|
|
915
|
+
const _io7 = (input) => Array.isArray(input.bundleFiles) && input.bundleFiles.every((elem) => "string" === typeof elem) && ("string" === typeof input.deploymentId && __typia_transform__isFormatUuid._isFormatUuid(input.deploymentId));
|
|
915
916
|
const _iu0 = (input) => (() => {
|
|
916
|
-
if ("
|
|
917
|
+
if ("microphone" === input.name)
|
|
918
|
+
return _io6(input);
|
|
919
|
+
else if ("camera" === input.name)
|
|
917
920
|
return _io5(input);
|
|
918
921
|
else if ("photos" === input.name)
|
|
919
922
|
return _io4(input);
|
|
@@ -940,11 +943,11 @@ var validateAppManifest = (() => {
|
|
|
940
943
|
value: input.permissions
|
|
941
944
|
})) && input.permissions.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
942
945
|
path: _path + ".permissions[" + _index3 + "]",
|
|
943
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
946
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
944
947
|
value: elem
|
|
945
948
|
})) && _vu0(elem, _path + ".permissions[" + _index3 + "]", _exceptionable) || _report(_exceptionable, {
|
|
946
949
|
path: _path + ".permissions[" + _index3 + "]",
|
|
947
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
950
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
948
951
|
value: elem
|
|
949
952
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
950
953
|
path: _path + ".permissions",
|
|
@@ -954,7 +957,7 @@ var validateAppManifest = (() => {
|
|
|
954
957
|
path: _path + "._metadata",
|
|
955
958
|
expected: "__type",
|
|
956
959
|
value: input._metadata
|
|
957
|
-
})) &&
|
|
960
|
+
})) && _vo7(input._metadata, _path + "._metadata", _exceptionable) || _report(_exceptionable, {
|
|
958
961
|
path: _path + "._metadata",
|
|
959
962
|
expected: "__type",
|
|
960
963
|
value: input._metadata
|
|
@@ -1004,7 +1007,16 @@ var validateAppManifest = (() => {
|
|
|
1004
1007
|
expected: '"access"',
|
|
1005
1008
|
value: input.access
|
|
1006
1009
|
})].every((flag) => flag);
|
|
1007
|
-
const _vo6 = (input, _path, _exceptionable = true) => [
|
|
1010
|
+
const _vo6 = (input, _path, _exceptionable = true) => ["microphone" === input.name || _report(_exceptionable, {
|
|
1011
|
+
path: _path + ".name",
|
|
1012
|
+
expected: '"microphone"',
|
|
1013
|
+
value: input.name
|
|
1014
|
+
}), "access" === input.access || _report(_exceptionable, {
|
|
1015
|
+
path: _path + ".access",
|
|
1016
|
+
expected: '"access"',
|
|
1017
|
+
value: input.access
|
|
1018
|
+
})].every((flag) => flag);
|
|
1019
|
+
const _vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.bundleFiles) || _report(_exceptionable, {
|
|
1008
1020
|
path: _path + ".bundleFiles",
|
|
1009
1021
|
expected: "Array<string>",
|
|
1010
1022
|
value: input.bundleFiles
|
|
@@ -1026,7 +1038,9 @@ var validateAppManifest = (() => {
|
|
|
1026
1038
|
value: input.deploymentId
|
|
1027
1039
|
})].every((flag) => flag);
|
|
1028
1040
|
const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
1029
|
-
if ("
|
|
1041
|
+
if ("microphone" === input.name)
|
|
1042
|
+
return _vo6(input, _path, _exceptionable);
|
|
1043
|
+
else if ("camera" === input.name)
|
|
1030
1044
|
return _vo5(input, _path, _exceptionable);
|
|
1031
1045
|
else if ("photos" === input.name)
|
|
1032
1046
|
return _vo4(input, _path, _exceptionable);
|
|
@@ -1039,7 +1053,7 @@ var validateAppManifest = (() => {
|
|
|
1039
1053
|
else
|
|
1040
1054
|
return _report(_exceptionable, {
|
|
1041
1055
|
path: _path,
|
|
1042
|
-
expected: "(CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
1056
|
+
expected: "(MicrophonePermission | CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
1043
1057
|
value: input
|
|
1044
1058
|
});
|
|
1045
1059
|
})();
|
|
@@ -1076,20 +1090,23 @@ var validateAppManifest = (() => {
|
|
|
1076
1090
|
});
|
|
1077
1091
|
})();
|
|
1078
1092
|
var validateAppInTossPluginOptions = (() => {
|
|
1079
|
-
const _io0 = (input) => (void 0 === input.target || "0.72.6" === input.target || "0.84.0" === input.target) && (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && ("object" === typeof input.brand && null !== input.brand && _io1(input.brand)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && (void 0 === input.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) &&
|
|
1093
|
+
const _io0 = (input) => (void 0 === input.target || "0.72.6" === input.target || "0.84.0" === input.target) && (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && ("object" === typeof input.brand && null !== input.brand && _io1(input.brand)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && (void 0 === input.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) && _io8(input.navigationBar));
|
|
1080
1094
|
const _io1 = (input) => "string" === typeof input.displayName && "string" === typeof input.primaryColor && "string" === typeof input.icon;
|
|
1081
1095
|
const _io2 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
|
|
1082
1096
|
const _io3 = (input) => "geolocation" === input.name && "access" === input.access;
|
|
1083
1097
|
const _io4 = (input) => "contacts" === input.name && ("read" === input.access || "write" === input.access);
|
|
1084
1098
|
const _io5 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
|
|
1085
1099
|
const _io6 = (input) => "camera" === input.name && "access" === input.access;
|
|
1086
|
-
const _io7 = (input) =>
|
|
1087
|
-
const _io8 = (input) => "
|
|
1088
|
-
const _io9 = (input) => "
|
|
1089
|
-
const _io10 = (input) => "
|
|
1090
|
-
const _io11 = (input) => "string" === typeof input.
|
|
1100
|
+
const _io7 = (input) => "microphone" === input.name && "access" === input.access;
|
|
1101
|
+
const _io8 = (input) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton) && (void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton) && (void 0 === input.initialAccessoryButton || "object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton && _io9(input.initialAccessoryButton));
|
|
1102
|
+
const _io9 = (input) => "string" === typeof input.id && "string" === typeof input.title && ("object" === typeof input.icon && null !== input.icon && _iu1(input.icon));
|
|
1103
|
+
const _io10 = (input) => "object" === typeof input.source && null !== input.source && _io11(input.source) && (null !== input.name && void 0 === input.name);
|
|
1104
|
+
const _io11 = (input) => "string" === typeof input.uri;
|
|
1105
|
+
const _io12 = (input) => "string" === typeof input.name && (null !== input.source && void 0 === input.source);
|
|
1091
1106
|
const _iu0 = (input) => (() => {
|
|
1092
|
-
if ("
|
|
1107
|
+
if ("microphone" === input.name)
|
|
1108
|
+
return _io7(input);
|
|
1109
|
+
else if ("camera" === input.name)
|
|
1093
1110
|
return _io6(input);
|
|
1094
1111
|
else if ("photos" === input.name)
|
|
1095
1112
|
return _io5(input);
|
|
@@ -1104,9 +1121,9 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1104
1121
|
})();
|
|
1105
1122
|
const _iu1 = (input) => (() => {
|
|
1106
1123
|
if ("string" === typeof input.name)
|
|
1107
|
-
return
|
|
1108
|
-
else if ("object" === typeof input.source && null !== input.source &&
|
|
1109
|
-
return
|
|
1124
|
+
return _io12(input);
|
|
1125
|
+
else if ("object" === typeof input.source && null !== input.source && _io11(input.source))
|
|
1126
|
+
return _io10(input);
|
|
1110
1127
|
else
|
|
1111
1128
|
return false;
|
|
1112
1129
|
})();
|
|
@@ -1132,11 +1149,11 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1132
1149
|
value: input.permissions
|
|
1133
1150
|
})) && input.permissions.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1134
1151
|
path: _path + ".permissions[" + _index2 + "]",
|
|
1135
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
1152
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
1136
1153
|
value: elem
|
|
1137
1154
|
})) && _vu0(elem, _path + ".permissions[" + _index2 + "]", _exceptionable) || _report(_exceptionable, {
|
|
1138
1155
|
path: _path + ".permissions[" + _index2 + "]",
|
|
1139
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
1156
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
1140
1157
|
value: elem
|
|
1141
1158
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
1142
1159
|
path: _path + ".permissions",
|
|
@@ -1146,7 +1163,7 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1146
1163
|
path: _path + ".navigationBar",
|
|
1147
1164
|
expected: "(__type.o1 | undefined)",
|
|
1148
1165
|
value: input.navigationBar
|
|
1149
|
-
})) &&
|
|
1166
|
+
})) && _vo8(input.navigationBar, _path + ".navigationBar", _exceptionable) || _report(_exceptionable, {
|
|
1150
1167
|
path: _path + ".navigationBar",
|
|
1151
1168
|
expected: "(__type.o1 | undefined)",
|
|
1152
1169
|
value: input.navigationBar
|
|
@@ -1209,7 +1226,16 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1209
1226
|
expected: '"access"',
|
|
1210
1227
|
value: input.access
|
|
1211
1228
|
})].every((flag) => flag);
|
|
1212
|
-
const _vo7 = (input, _path, _exceptionable = true) => [
|
|
1229
|
+
const _vo7 = (input, _path, _exceptionable = true) => ["microphone" === input.name || _report(_exceptionable, {
|
|
1230
|
+
path: _path + ".name",
|
|
1231
|
+
expected: '"microphone"',
|
|
1232
|
+
value: input.name
|
|
1233
|
+
}), "access" === input.access || _report(_exceptionable, {
|
|
1234
|
+
path: _path + ".access",
|
|
1235
|
+
expected: '"access"',
|
|
1236
|
+
value: input.access
|
|
1237
|
+
})].every((flag) => flag);
|
|
1238
|
+
const _vo8 = (input, _path, _exceptionable = true) => [void 0 === input.withBackButton || "boolean" === typeof input.withBackButton || _report(_exceptionable, {
|
|
1213
1239
|
path: _path + ".withBackButton",
|
|
1214
1240
|
expected: "(boolean | undefined)",
|
|
1215
1241
|
value: input.withBackButton
|
|
@@ -1221,12 +1247,12 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1221
1247
|
path: _path + ".initialAccessoryButton",
|
|
1222
1248
|
expected: "(InitialAccessoryButton | undefined)",
|
|
1223
1249
|
value: input.initialAccessoryButton
|
|
1224
|
-
})) &&
|
|
1250
|
+
})) && _vo9(input.initialAccessoryButton, _path + ".initialAccessoryButton", _exceptionable) || _report(_exceptionable, {
|
|
1225
1251
|
path: _path + ".initialAccessoryButton",
|
|
1226
1252
|
expected: "(InitialAccessoryButton | undefined)",
|
|
1227
1253
|
value: input.initialAccessoryButton
|
|
1228
1254
|
})].every((flag) => flag);
|
|
1229
|
-
const
|
|
1255
|
+
const _vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
1230
1256
|
path: _path + ".id",
|
|
1231
1257
|
expected: "string",
|
|
1232
1258
|
value: input.id
|
|
@@ -1243,11 +1269,11 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1243
1269
|
expected: "(__type.o2 | __type.o4)",
|
|
1244
1270
|
value: input.icon
|
|
1245
1271
|
})].every((flag) => flag);
|
|
1246
|
-
const
|
|
1272
|
+
const _vo10 = (input, _path, _exceptionable = true) => [("object" === typeof input.source && null !== input.source || _report(_exceptionable, {
|
|
1247
1273
|
path: _path + ".source",
|
|
1248
1274
|
expected: "__type.o3",
|
|
1249
1275
|
value: input.source
|
|
1250
|
-
})) &&
|
|
1276
|
+
})) && _vo11(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
|
|
1251
1277
|
path: _path + ".source",
|
|
1252
1278
|
expected: "__type.o3",
|
|
1253
1279
|
value: input.source
|
|
@@ -1260,12 +1286,12 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1260
1286
|
expected: "undefined",
|
|
1261
1287
|
value: input.name
|
|
1262
1288
|
}))].every((flag) => flag);
|
|
1263
|
-
const
|
|
1289
|
+
const _vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
|
|
1264
1290
|
path: _path + ".uri",
|
|
1265
1291
|
expected: "string",
|
|
1266
1292
|
value: input.uri
|
|
1267
1293
|
})].every((flag) => flag);
|
|
1268
|
-
const
|
|
1294
|
+
const _vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1269
1295
|
path: _path + ".name",
|
|
1270
1296
|
expected: "string",
|
|
1271
1297
|
value: input.name
|
|
@@ -1279,7 +1305,9 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1279
1305
|
value: input.source
|
|
1280
1306
|
}))].every((flag) => flag);
|
|
1281
1307
|
const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
1282
|
-
if ("
|
|
1308
|
+
if ("microphone" === input.name)
|
|
1309
|
+
return _vo7(input, _path, _exceptionable);
|
|
1310
|
+
else if ("camera" === input.name)
|
|
1283
1311
|
return _vo6(input, _path, _exceptionable);
|
|
1284
1312
|
else if ("photos" === input.name)
|
|
1285
1313
|
return _vo5(input, _path, _exceptionable);
|
|
@@ -1292,15 +1320,15 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1292
1320
|
else
|
|
1293
1321
|
return _report(_exceptionable, {
|
|
1294
1322
|
path: _path,
|
|
1295
|
-
expected: "(CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
1323
|
+
expected: "(MicrophonePermission | CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
1296
1324
|
value: input
|
|
1297
1325
|
});
|
|
1298
1326
|
})();
|
|
1299
1327
|
const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
1300
1328
|
if ("string" === typeof input.name)
|
|
1301
|
-
return
|
|
1302
|
-
else if ("object" === typeof input.source && null !== input.source &&
|
|
1303
|
-
return
|
|
1329
|
+
return _vo12(input, _path, _exceptionable);
|
|
1330
|
+
else if ("object" === typeof input.source && null !== input.source && _vo11(input.source, _path + ".source", false))
|
|
1331
|
+
return _vo10(input, _path, _exceptionable);
|
|
1304
1332
|
else
|
|
1305
1333
|
return _report(_exceptionable, {
|
|
1306
1334
|
path: _path,
|
package/dist/index.d.cts
CHANGED
|
@@ -24,7 +24,11 @@ type CameraPermission = {
|
|
|
24
24
|
name: 'camera';
|
|
25
25
|
access: PermissionAccess;
|
|
26
26
|
};
|
|
27
|
-
type
|
|
27
|
+
type MicrophonePermission = {
|
|
28
|
+
name: 'microphone';
|
|
29
|
+
access: PermissionAccess;
|
|
30
|
+
};
|
|
31
|
+
type Permission = ClipboardPermission | GeolocationPermission | ContactsPermission | PhotosPermission | CameraPermission | MicrophonePermission;
|
|
28
32
|
type AppManifest = {
|
|
29
33
|
appName: string;
|
|
30
34
|
appType?: 'general' | 'game';
|
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,11 @@ type CameraPermission = {
|
|
|
24
24
|
name: 'camera';
|
|
25
25
|
access: PermissionAccess;
|
|
26
26
|
};
|
|
27
|
-
type
|
|
27
|
+
type MicrophonePermission = {
|
|
28
|
+
name: 'microphone';
|
|
29
|
+
access: PermissionAccess;
|
|
30
|
+
};
|
|
31
|
+
type Permission = ClipboardPermission | GeolocationPermission | ContactsPermission | PhotosPermission | CameraPermission | MicrophonePermission;
|
|
28
32
|
type AppManifest = {
|
|
29
33
|
appName: string;
|
|
30
34
|
appType?: 'general' | 'game';
|
package/dist/index.js
CHANGED
|
@@ -206,7 +206,7 @@ var require_package = __commonJS({
|
|
|
206
206
|
module.exports = {
|
|
207
207
|
name: "@apps-in-toss/plugins",
|
|
208
208
|
type: "module",
|
|
209
|
-
version: "2.
|
|
209
|
+
version: "2.1.1",
|
|
210
210
|
description: "The plugins for Apps In Toss",
|
|
211
211
|
scripts: {
|
|
212
212
|
test: "vitest --run",
|
|
@@ -875,15 +875,18 @@ var __typia_transform__isFormatUuid = __toESM(require_isFormatUuid(), 1);
|
|
|
875
875
|
var __typia_transform__validateReport = __toESM(require_validateReport(), 1);
|
|
876
876
|
var __typia_transform__createStandardSchema = __toESM(require_createStandardSchema(), 1);
|
|
877
877
|
var validateAppManifest = (() => {
|
|
878
|
-
const _io0 = (input) => "string" === typeof input.appName && (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && ("object" === typeof input._metadata && null !== input._metadata &&
|
|
878
|
+
const _io0 = (input) => "string" === typeof input.appName && (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && ("object" === typeof input._metadata && null !== input._metadata && _io7(input._metadata));
|
|
879
879
|
const _io1 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
|
|
880
880
|
const _io2 = (input) => "geolocation" === input.name && "access" === input.access;
|
|
881
881
|
const _io3 = (input) => "contacts" === input.name && ("read" === input.access || "write" === input.access);
|
|
882
882
|
const _io4 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
|
|
883
883
|
const _io5 = (input) => "camera" === input.name && "access" === input.access;
|
|
884
|
-
const _io6 = (input) =>
|
|
884
|
+
const _io6 = (input) => "microphone" === input.name && "access" === input.access;
|
|
885
|
+
const _io7 = (input) => Array.isArray(input.bundleFiles) && input.bundleFiles.every((elem) => "string" === typeof elem) && ("string" === typeof input.deploymentId && __typia_transform__isFormatUuid._isFormatUuid(input.deploymentId));
|
|
885
886
|
const _iu0 = (input) => (() => {
|
|
886
|
-
if ("
|
|
887
|
+
if ("microphone" === input.name)
|
|
888
|
+
return _io6(input);
|
|
889
|
+
else if ("camera" === input.name)
|
|
887
890
|
return _io5(input);
|
|
888
891
|
else if ("photos" === input.name)
|
|
889
892
|
return _io4(input);
|
|
@@ -910,11 +913,11 @@ var validateAppManifest = (() => {
|
|
|
910
913
|
value: input.permissions
|
|
911
914
|
})) && input.permissions.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
912
915
|
path: _path + ".permissions[" + _index3 + "]",
|
|
913
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
916
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
914
917
|
value: elem
|
|
915
918
|
})) && _vu0(elem, _path + ".permissions[" + _index3 + "]", _exceptionable) || _report(_exceptionable, {
|
|
916
919
|
path: _path + ".permissions[" + _index3 + "]",
|
|
917
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
920
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
918
921
|
value: elem
|
|
919
922
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
920
923
|
path: _path + ".permissions",
|
|
@@ -924,7 +927,7 @@ var validateAppManifest = (() => {
|
|
|
924
927
|
path: _path + "._metadata",
|
|
925
928
|
expected: "__type",
|
|
926
929
|
value: input._metadata
|
|
927
|
-
})) &&
|
|
930
|
+
})) && _vo7(input._metadata, _path + "._metadata", _exceptionable) || _report(_exceptionable, {
|
|
928
931
|
path: _path + "._metadata",
|
|
929
932
|
expected: "__type",
|
|
930
933
|
value: input._metadata
|
|
@@ -974,7 +977,16 @@ var validateAppManifest = (() => {
|
|
|
974
977
|
expected: '"access"',
|
|
975
978
|
value: input.access
|
|
976
979
|
})].every((flag) => flag);
|
|
977
|
-
const _vo6 = (input, _path, _exceptionable = true) => [
|
|
980
|
+
const _vo6 = (input, _path, _exceptionable = true) => ["microphone" === input.name || _report(_exceptionable, {
|
|
981
|
+
path: _path + ".name",
|
|
982
|
+
expected: '"microphone"',
|
|
983
|
+
value: input.name
|
|
984
|
+
}), "access" === input.access || _report(_exceptionable, {
|
|
985
|
+
path: _path + ".access",
|
|
986
|
+
expected: '"access"',
|
|
987
|
+
value: input.access
|
|
988
|
+
})].every((flag) => flag);
|
|
989
|
+
const _vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.bundleFiles) || _report(_exceptionable, {
|
|
978
990
|
path: _path + ".bundleFiles",
|
|
979
991
|
expected: "Array<string>",
|
|
980
992
|
value: input.bundleFiles
|
|
@@ -996,7 +1008,9 @@ var validateAppManifest = (() => {
|
|
|
996
1008
|
value: input.deploymentId
|
|
997
1009
|
})].every((flag) => flag);
|
|
998
1010
|
const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
999
|
-
if ("
|
|
1011
|
+
if ("microphone" === input.name)
|
|
1012
|
+
return _vo6(input, _path, _exceptionable);
|
|
1013
|
+
else if ("camera" === input.name)
|
|
1000
1014
|
return _vo5(input, _path, _exceptionable);
|
|
1001
1015
|
else if ("photos" === input.name)
|
|
1002
1016
|
return _vo4(input, _path, _exceptionable);
|
|
@@ -1009,7 +1023,7 @@ var validateAppManifest = (() => {
|
|
|
1009
1023
|
else
|
|
1010
1024
|
return _report(_exceptionable, {
|
|
1011
1025
|
path: _path,
|
|
1012
|
-
expected: "(CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
1026
|
+
expected: "(MicrophonePermission | CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
1013
1027
|
value: input
|
|
1014
1028
|
});
|
|
1015
1029
|
})();
|
|
@@ -1046,20 +1060,23 @@ var validateAppManifest = (() => {
|
|
|
1046
1060
|
});
|
|
1047
1061
|
})();
|
|
1048
1062
|
var validateAppInTossPluginOptions = (() => {
|
|
1049
|
-
const _io0 = (input) => (void 0 === input.target || "0.72.6" === input.target || "0.84.0" === input.target) && (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && ("object" === typeof input.brand && null !== input.brand && _io1(input.brand)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && (void 0 === input.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) &&
|
|
1063
|
+
const _io0 = (input) => (void 0 === input.target || "0.72.6" === input.target || "0.84.0" === input.target) && (void 0 === input.appType || "general" === input.appType || "game" === input.appType) && ("object" === typeof input.brand && null !== input.brand && _io1(input.brand)) && (Array.isArray(input.permissions) && input.permissions.every((elem) => "object" === typeof elem && null !== elem && _iu0(elem))) && (void 0 === input.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) && _io8(input.navigationBar));
|
|
1050
1064
|
const _io1 = (input) => "string" === typeof input.displayName && "string" === typeof input.primaryColor && "string" === typeof input.icon;
|
|
1051
1065
|
const _io2 = (input) => "clipboard" === input.name && ("read" === input.access || "write" === input.access);
|
|
1052
1066
|
const _io3 = (input) => "geolocation" === input.name && "access" === input.access;
|
|
1053
1067
|
const _io4 = (input) => "contacts" === input.name && ("read" === input.access || "write" === input.access);
|
|
1054
1068
|
const _io5 = (input) => "photos" === input.name && ("read" === input.access || "write" === input.access);
|
|
1055
1069
|
const _io6 = (input) => "camera" === input.name && "access" === input.access;
|
|
1056
|
-
const _io7 = (input) =>
|
|
1057
|
-
const _io8 = (input) => "
|
|
1058
|
-
const _io9 = (input) => "
|
|
1059
|
-
const _io10 = (input) => "
|
|
1060
|
-
const _io11 = (input) => "string" === typeof input.
|
|
1070
|
+
const _io7 = (input) => "microphone" === input.name && "access" === input.access;
|
|
1071
|
+
const _io8 = (input) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton) && (void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton) && (void 0 === input.initialAccessoryButton || "object" === typeof input.initialAccessoryButton && null !== input.initialAccessoryButton && _io9(input.initialAccessoryButton));
|
|
1072
|
+
const _io9 = (input) => "string" === typeof input.id && "string" === typeof input.title && ("object" === typeof input.icon && null !== input.icon && _iu1(input.icon));
|
|
1073
|
+
const _io10 = (input) => "object" === typeof input.source && null !== input.source && _io11(input.source) && (null !== input.name && void 0 === input.name);
|
|
1074
|
+
const _io11 = (input) => "string" === typeof input.uri;
|
|
1075
|
+
const _io12 = (input) => "string" === typeof input.name && (null !== input.source && void 0 === input.source);
|
|
1061
1076
|
const _iu0 = (input) => (() => {
|
|
1062
|
-
if ("
|
|
1077
|
+
if ("microphone" === input.name)
|
|
1078
|
+
return _io7(input);
|
|
1079
|
+
else if ("camera" === input.name)
|
|
1063
1080
|
return _io6(input);
|
|
1064
1081
|
else if ("photos" === input.name)
|
|
1065
1082
|
return _io5(input);
|
|
@@ -1074,9 +1091,9 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1074
1091
|
})();
|
|
1075
1092
|
const _iu1 = (input) => (() => {
|
|
1076
1093
|
if ("string" === typeof input.name)
|
|
1077
|
-
return
|
|
1078
|
-
else if ("object" === typeof input.source && null !== input.source &&
|
|
1079
|
-
return
|
|
1094
|
+
return _io12(input);
|
|
1095
|
+
else if ("object" === typeof input.source && null !== input.source && _io11(input.source))
|
|
1096
|
+
return _io10(input);
|
|
1080
1097
|
else
|
|
1081
1098
|
return false;
|
|
1082
1099
|
})();
|
|
@@ -1102,11 +1119,11 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1102
1119
|
value: input.permissions
|
|
1103
1120
|
})) && input.permissions.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1104
1121
|
path: _path + ".permissions[" + _index2 + "]",
|
|
1105
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
1122
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
1106
1123
|
value: elem
|
|
1107
1124
|
})) && _vu0(elem, _path + ".permissions[" + _index2 + "]", _exceptionable) || _report(_exceptionable, {
|
|
1108
1125
|
path: _path + ".permissions[" + _index2 + "]",
|
|
1109
|
-
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | PhotosPermission)",
|
|
1126
|
+
expected: "(CameraPermission | ClipboardPermission | ContactsPermission | GeolocationPermission | MicrophonePermission | PhotosPermission)",
|
|
1110
1127
|
value: elem
|
|
1111
1128
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
1112
1129
|
path: _path + ".permissions",
|
|
@@ -1116,7 +1133,7 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1116
1133
|
path: _path + ".navigationBar",
|
|
1117
1134
|
expected: "(__type.o1 | undefined)",
|
|
1118
1135
|
value: input.navigationBar
|
|
1119
|
-
})) &&
|
|
1136
|
+
})) && _vo8(input.navigationBar, _path + ".navigationBar", _exceptionable) || _report(_exceptionable, {
|
|
1120
1137
|
path: _path + ".navigationBar",
|
|
1121
1138
|
expected: "(__type.o1 | undefined)",
|
|
1122
1139
|
value: input.navigationBar
|
|
@@ -1179,7 +1196,16 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1179
1196
|
expected: '"access"',
|
|
1180
1197
|
value: input.access
|
|
1181
1198
|
})].every((flag) => flag);
|
|
1182
|
-
const _vo7 = (input, _path, _exceptionable = true) => [
|
|
1199
|
+
const _vo7 = (input, _path, _exceptionable = true) => ["microphone" === input.name || _report(_exceptionable, {
|
|
1200
|
+
path: _path + ".name",
|
|
1201
|
+
expected: '"microphone"',
|
|
1202
|
+
value: input.name
|
|
1203
|
+
}), "access" === input.access || _report(_exceptionable, {
|
|
1204
|
+
path: _path + ".access",
|
|
1205
|
+
expected: '"access"',
|
|
1206
|
+
value: input.access
|
|
1207
|
+
})].every((flag) => flag);
|
|
1208
|
+
const _vo8 = (input, _path, _exceptionable = true) => [void 0 === input.withBackButton || "boolean" === typeof input.withBackButton || _report(_exceptionable, {
|
|
1183
1209
|
path: _path + ".withBackButton",
|
|
1184
1210
|
expected: "(boolean | undefined)",
|
|
1185
1211
|
value: input.withBackButton
|
|
@@ -1191,12 +1217,12 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1191
1217
|
path: _path + ".initialAccessoryButton",
|
|
1192
1218
|
expected: "(InitialAccessoryButton | undefined)",
|
|
1193
1219
|
value: input.initialAccessoryButton
|
|
1194
|
-
})) &&
|
|
1220
|
+
})) && _vo9(input.initialAccessoryButton, _path + ".initialAccessoryButton", _exceptionable) || _report(_exceptionable, {
|
|
1195
1221
|
path: _path + ".initialAccessoryButton",
|
|
1196
1222
|
expected: "(InitialAccessoryButton | undefined)",
|
|
1197
1223
|
value: input.initialAccessoryButton
|
|
1198
1224
|
})].every((flag) => flag);
|
|
1199
|
-
const
|
|
1225
|
+
const _vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
1200
1226
|
path: _path + ".id",
|
|
1201
1227
|
expected: "string",
|
|
1202
1228
|
value: input.id
|
|
@@ -1213,11 +1239,11 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1213
1239
|
expected: "(__type.o2 | __type.o4)",
|
|
1214
1240
|
value: input.icon
|
|
1215
1241
|
})].every((flag) => flag);
|
|
1216
|
-
const
|
|
1242
|
+
const _vo10 = (input, _path, _exceptionable = true) => [("object" === typeof input.source && null !== input.source || _report(_exceptionable, {
|
|
1217
1243
|
path: _path + ".source",
|
|
1218
1244
|
expected: "__type.o3",
|
|
1219
1245
|
value: input.source
|
|
1220
|
-
})) &&
|
|
1246
|
+
})) && _vo11(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
|
|
1221
1247
|
path: _path + ".source",
|
|
1222
1248
|
expected: "__type.o3",
|
|
1223
1249
|
value: input.source
|
|
@@ -1230,12 +1256,12 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1230
1256
|
expected: "undefined",
|
|
1231
1257
|
value: input.name
|
|
1232
1258
|
}))].every((flag) => flag);
|
|
1233
|
-
const
|
|
1259
|
+
const _vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || _report(_exceptionable, {
|
|
1234
1260
|
path: _path + ".uri",
|
|
1235
1261
|
expected: "string",
|
|
1236
1262
|
value: input.uri
|
|
1237
1263
|
})].every((flag) => flag);
|
|
1238
|
-
const
|
|
1264
|
+
const _vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1239
1265
|
path: _path + ".name",
|
|
1240
1266
|
expected: "string",
|
|
1241
1267
|
value: input.name
|
|
@@ -1249,7 +1275,9 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1249
1275
|
value: input.source
|
|
1250
1276
|
}))].every((flag) => flag);
|
|
1251
1277
|
const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
1252
|
-
if ("
|
|
1278
|
+
if ("microphone" === input.name)
|
|
1279
|
+
return _vo7(input, _path, _exceptionable);
|
|
1280
|
+
else if ("camera" === input.name)
|
|
1253
1281
|
return _vo6(input, _path, _exceptionable);
|
|
1254
1282
|
else if ("photos" === input.name)
|
|
1255
1283
|
return _vo5(input, _path, _exceptionable);
|
|
@@ -1262,15 +1290,15 @@ var validateAppInTossPluginOptions = (() => {
|
|
|
1262
1290
|
else
|
|
1263
1291
|
return _report(_exceptionable, {
|
|
1264
1292
|
path: _path,
|
|
1265
|
-
expected: "(CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
1293
|
+
expected: "(MicrophonePermission | CameraPermission | PhotosPermission | ContactsPermission | GeolocationPermission | ClipboardPermission)",
|
|
1266
1294
|
value: input
|
|
1267
1295
|
});
|
|
1268
1296
|
})();
|
|
1269
1297
|
const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
1270
1298
|
if ("string" === typeof input.name)
|
|
1271
|
-
return
|
|
1272
|
-
else if ("object" === typeof input.source && null !== input.source &&
|
|
1273
|
-
return
|
|
1299
|
+
return _vo12(input, _path, _exceptionable);
|
|
1300
|
+
else if ("object" === typeof input.source && null !== input.source && _vo11(input.source, _path + ".source", false))
|
|
1301
|
+
return _vo10(input, _path, _exceptionable);
|
|
1274
1302
|
else
|
|
1275
1303
|
return _report(_exceptionable, {
|
|
1276
1304
|
path: _path,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/plugins",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"description": "The plugins for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "vitest --run",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@apps-in-toss/ait-format": "1.0.0",
|
|
42
|
-
"@apps-in-toss/plugin-compat": "2.
|
|
43
|
-
"@granite-js/plugin-core": "1.0.
|
|
44
|
-
"@granite-js/plugin-micro-frontend": "1.0.
|
|
45
|
-
"@granite-js/plugin-sentry": "1.0.
|
|
46
|
-
"@granite-js/utils": "1.0.
|
|
42
|
+
"@apps-in-toss/plugin-compat": "2.1.1",
|
|
43
|
+
"@granite-js/plugin-core": "1.0.10",
|
|
44
|
+
"@granite-js/plugin-micro-frontend": "1.0.10",
|
|
45
|
+
"@granite-js/plugin-sentry": "1.0.10",
|
|
46
|
+
"@granite-js/utils": "1.0.10",
|
|
47
47
|
"archiver": "^7.0.1",
|
|
48
48
|
"connect": "^3.7.0",
|
|
49
49
|
"esbuild": "0.25.5",
|