@mpgd/cli 0.46.1 → 0.48.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/capacitor-shell-starter.d.ts +57 -1
- package/dist/capacitor-shell-starter.js +311 -34
- package/dist/command-launcher.d.ts +13 -0
- package/dist/command-launcher.js +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +149 -12
- package/dist/microsoft-store-submission.js +11 -6
- package/dist/native-build-info.json +2 -2
- package/dist/native-build-target.js +2413 -345
- package/dist/windows-host/Core/BridgeCommand.cs +17 -0
- package/dist/windows-host/Core/Mpgd.MicrosoftStore.Host.csproj +9 -0
- package/dist/windows-host/Core/NativeBridgeContracts.cs +33 -0
- package/dist/windows-host/Core/NativeBridgeHost.cs +162 -0
- package/dist/windows-host/Core/NativeBridgeOrigin.cs +19 -0
- package/dist/windows-host/Core/NativeBridgeProtocol.cs +335 -0
- package/dist/windows-host/Core/NativeBridgeRequestGate.cs +76 -0
- package/dist/windows-host/Core/NativeBridgeResult.cs +65 -0
- package/dist/windows-host/README.md +118 -0
- package/dist/windows-host/WinUI/DispatcherQueueBridgeDispatcher.cs +39 -0
- package/dist/windows-host/WinUI/WebView2DocumentTransport.cs +46 -0
- package/dist/windows-host/WinUI/WebView2NativeBridge.cs +185 -0
- package/dist/windows-host/WinUI/WindowStoreContext.cs +20 -0
- package/dist/windows-native-tools.d.ts +4 -0
- package/dist/windows-native-tools.js +21 -0
- package/native-tools/windows-msix/WindowsMsixAcceptance.psm1 +333 -0
- package/package.json +24 -14
- package/templates/lite-overlay/.agents/skills/use-mpgd-kit/SKILL.md +22 -0
- package/templates/lite-overlay/AGENTS.md +27 -0
- package/templates/lite-overlay/README.md +37 -0
- package/templates/lite-overlay/agent/acceptance.md +27 -0
- package/templates/lite-overlay/agent/brief.md +17 -0
- package/templates/lite-overlay/apps/target-devvit/README.md +134 -0
- package/templates/lite-overlay/docs/MPGD_KIT_WORKFLOWS.md +37 -0
- package/templates/lite-overlay/src/lite/tapGame.ts +77 -0
- package/templates/lite-overlay/src/platform/devvitEntrypoint.ts +116 -0
- package/templates/lite-overlay/src/platform/devvitInlineMode.css +146 -0
- package/templates/lite-overlay/src/runtime/createGame.ts +57 -0
- package/templates/phaser-game/README.md +5 -3
- package/templates/phaser-game/apps/target-ait/package.json +2 -2
- package/templates/phaser-game/apps/target-ait/src/main.ts +17 -0
- package/templates/phaser-game/apps/target-ait/src/runtime-config.types.ts +2 -0
- package/templates/phaser-game/apps/target-ait/vite.config.ts +27 -0
- package/templates/phaser-game/apps/target-devvit/package.json +2 -1
- package/templates/phaser-game/apps/target-devvit/src/server/bridge.ts +137 -18
- package/templates/phaser-game/apps/target-devvit/src/server/index.ts +35 -1
- package/templates/phaser-game/package.json +3 -1
- package/templates/phaser-game/pnpm-workspace.yaml +2 -0
- package/templates/phaser-game/src/env.d.ts +2 -0
- package/templates/phaser-game/src/main.ts +8 -1
- package/templates/phaser-game/src/platform/buildGateways/ait.ts +9 -0
- package/templates/phaser-game/src/platform/buildGateways/aitSandbox.ts +13 -1
- package/templates/phaser-game/src/platform/buildGateways/capacitorAndroid.ts +51 -2
- package/templates/phaser-game/src/platform/buildGateways/capacitorIos.ts +51 -2
- package/templates/phaser-game/src/platform/buildGateways/microsoftStore.ts +59 -26
- package/templates/phaser-game/src/platform/buildGateways/reddit.ts +36 -1
- package/templates/phaser-game/src/platform/buildGateways/verse8.ts +39 -2
- package/templates/phaser-game/src/platform/commerceAccountBinding.ts +79 -0
- package/templates/phaser-game/src/platform/commerceProducts.ts +69 -0
- package/templates/phaser-game/src/platform/gameServices.ts +22 -2
- package/templates/phaser-game/src/platform/monetizationJournal.ts +286 -0
- package/templates/phaser-game/src/platform/verse8Agent8Client.ts +22 -0
- package/templates/phaser-game/vite.shared.ts +40 -1
|
@@ -1882,7 +1882,7 @@ async function verifyAssetPackDelivery(options) {
|
|
|
1882
1882
|
positiveIntegerOption(failures, "maxEntryBytes", maxEntryBytes),
|
|
1883
1883
|
positiveIntegerOption(failures, "maxExpandedBytes", maxExpandedBytes),
|
|
1884
1884
|
...Object.entries(hostLimits ?? {}).map(([name, value]) => positiveIntegerOption(failures, `--${name.replace(/[A-Z]/gu, (letter) => `-${letter.toLowerCase()}`)}`, value))
|
|
1885
|
-
].every((
|
|
1885
|
+
].every((valid2) => valid2);
|
|
1886
1886
|
const startedAt = performance.now();
|
|
1887
1887
|
const deadlineBreached = () => {
|
|
1888
1888
|
if (performance.now() - startedAt <= verifyTimeoutMs) {
|
|
@@ -4445,14 +4445,1719 @@ function requireOutput2(result, purpose, width) {
|
|
|
4445
4445
|
}
|
|
4446
4446
|
|
|
4447
4447
|
// node_modules/.cache/mpgd-native-build/packages/target-config/src/index.js
|
|
4448
|
+
import * as _assertGuard_13 from "typia/lib/internal/_assertGuard";
|
|
4449
|
+
import * as _accessExpressionAsString_14 from "typia/lib/internal/_accessExpressionAsString";
|
|
4450
|
+
import typia5 from "typia";
|
|
4451
|
+
|
|
4452
|
+
// node_modules/.cache/mpgd-native-build/packages/catalog/src/index.js
|
|
4448
4453
|
import * as _assertGuard_12 from "typia/lib/internal/_assertGuard";
|
|
4454
|
+
import * as _accessExpressionAsString_13 from "typia/lib/internal/_accessExpressionAsString";
|
|
4455
|
+
import typia3 from "typia";
|
|
4456
|
+
|
|
4457
|
+
// node_modules/.cache/mpgd-native-build/packages/platform/src/notifications.js
|
|
4458
|
+
import * as _isTypeUint32_1 from "typia/lib/internal/_isTypeUint32";
|
|
4459
|
+
import * as _isFormatDateTime_1 from "typia/lib/internal/_isFormatDateTime";
|
|
4460
|
+
import * as _isFormatDate_1 from "typia/lib/internal/_isFormatDate";
|
|
4461
|
+
import * as _assertGuard_1 from "typia/lib/internal/_assertGuard";
|
|
4462
|
+
import * as _accessExpressionAsString_1 from "typia/lib/internal/_accessExpressionAsString";
|
|
4463
|
+
import typia from "typia";
|
|
4464
|
+
|
|
4465
|
+
// node_modules/.cache/mpgd-native-build/packages/platform/src/notifications-policy.js
|
|
4466
|
+
var recordableNotificationPermissionStates = Object.freeze([
|
|
4467
|
+
"granted",
|
|
4468
|
+
"prompt-with-rationale",
|
|
4469
|
+
"denied",
|
|
4470
|
+
"blocked"
|
|
4471
|
+
]);
|
|
4472
|
+
var referenceNotificationProviders = deepFreeze({
|
|
4473
|
+
fcm: {
|
|
4474
|
+
provider: "fcm",
|
|
4475
|
+
purposes: ["service", "requested", "advertising"],
|
|
4476
|
+
addressing: "device",
|
|
4477
|
+
content: "free-form",
|
|
4478
|
+
permission: { scope: "app", serverReadable: false, allowance: "persistent" },
|
|
4479
|
+
expiry: true,
|
|
4480
|
+
actions: true,
|
|
4481
|
+
link: false,
|
|
4482
|
+
mappingFields: [],
|
|
4483
|
+
mapping: { channelId: { required: false } }
|
|
4484
|
+
},
|
|
4485
|
+
"apps-in-toss": {
|
|
4486
|
+
provider: "apps-in-toss",
|
|
4487
|
+
purposes: ["service", "requested"],
|
|
4488
|
+
addressing: "platform-user",
|
|
4489
|
+
content: "host-template",
|
|
4490
|
+
permission: { scope: "topic", serverReadable: false, allowance: "persistent" },
|
|
4491
|
+
limits: [{ count: 10, windowSeconds: 60 }],
|
|
4492
|
+
rate: { count: 15e3, windowSeconds: 60 },
|
|
4493
|
+
expiry: false,
|
|
4494
|
+
actions: false,
|
|
4495
|
+
link: false,
|
|
4496
|
+
mappingFields: ["templateSetCode", "agreement"],
|
|
4497
|
+
mapping: {
|
|
4498
|
+
templateSetCode: { required: true },
|
|
4499
|
+
agreement: { required: true, values: ["required", "none"] }
|
|
4500
|
+
}
|
|
4501
|
+
},
|
|
4502
|
+
devvit: {
|
|
4503
|
+
provider: "devvit",
|
|
4504
|
+
purposes: ["service", "requested"],
|
|
4505
|
+
addressing: "platform-user",
|
|
4506
|
+
content: "free-form",
|
|
4507
|
+
permission: { scope: "app", serverReadable: true, allowance: "persistent" },
|
|
4508
|
+
limits: [{ count: 2, windowSeconds: 86400 }],
|
|
4509
|
+
rate: { count: 25e3, windowSeconds: 86400 },
|
|
4510
|
+
expiry: false,
|
|
4511
|
+
actions: false,
|
|
4512
|
+
link: true,
|
|
4513
|
+
mappingFields: ["title", "body"],
|
|
4514
|
+
mapping: {
|
|
4515
|
+
title: { required: true, maxLength: 60 },
|
|
4516
|
+
body: { required: true, maxLength: 100 },
|
|
4517
|
+
link: { required: false, pattern: "^t[13]_[A-Za-z0-9]+$" }
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4520
|
+
});
|
|
4521
|
+
var referenceNotificationTargetProviders = Object.freeze({
|
|
4522
|
+
android: "fcm",
|
|
4523
|
+
ios: "fcm",
|
|
4524
|
+
ait: "apps-in-toss",
|
|
4525
|
+
reddit: "devvit"
|
|
4526
|
+
});
|
|
4527
|
+
var notificationSuppressionReasons = Object.freeze([
|
|
4528
|
+
"topic-unknown",
|
|
4529
|
+
"channel-unsupported",
|
|
4530
|
+
"purpose-unsupported",
|
|
4531
|
+
"permission-denied",
|
|
4532
|
+
"agreement-missing",
|
|
4533
|
+
"allowance-exhausted",
|
|
4534
|
+
"request-missing",
|
|
4535
|
+
"preference-off",
|
|
4536
|
+
"advertising-consent-missing",
|
|
4537
|
+
"night-consent-missing",
|
|
4538
|
+
"quiet-hours",
|
|
4539
|
+
"frequency-capped",
|
|
4540
|
+
"provider-limit",
|
|
4541
|
+
"advertising-sender-missing"
|
|
4542
|
+
]);
|
|
4543
|
+
var notificationInputBounds = Object.freeze({
|
|
4544
|
+
keyLength: 2048,
|
|
4545
|
+
entries: 128,
|
|
4546
|
+
stringLength: 16384
|
|
4547
|
+
});
|
|
4548
|
+
var notificationReservedKeyPrefixes = Object.freeze(["reminder:", "notice:"]);
|
|
4549
|
+
var minuteMs = 6e4;
|
|
4550
|
+
var hourMs = 60 * minuteMs;
|
|
4551
|
+
var dayMs = 24 * hourMs;
|
|
4552
|
+
var seoulOffsetMs = 9 * hourMs;
|
|
4553
|
+
var notificationNightWindow = Object.freeze({
|
|
4554
|
+
timeZone: "Asia/Seoul",
|
|
4555
|
+
start: "21:00",
|
|
4556
|
+
end: "08:00"
|
|
4557
|
+
});
|
|
4558
|
+
var isoInstantPattern = /^(\d{4})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,9}))?(?:[Zz]|([+-])(\d{2}):(\d{2}))$/u;
|
|
4559
|
+
function instantOrNaN(at) {
|
|
4560
|
+
const match = isoInstantPattern.exec(at);
|
|
4561
|
+
return match === null ? Number.NaN : instantOf(match);
|
|
4562
|
+
}
|
|
4563
|
+
function isNotificationTimestamp(at) {
|
|
4564
|
+
return !Number.isNaN(instantOrNaN(at));
|
|
4565
|
+
}
|
|
4566
|
+
function notificationTimeFieldIssue(value, fields, path10 = "") {
|
|
4567
|
+
if (Array.isArray(value)) {
|
|
4568
|
+
for (const [index, item] of value.entries()) {
|
|
4569
|
+
const issue = notificationTimeFieldIssue(item, fields, `${path10}[${index}]`);
|
|
4570
|
+
if (issue !== void 0) {
|
|
4571
|
+
return issue;
|
|
4572
|
+
}
|
|
4573
|
+
}
|
|
4574
|
+
return void 0;
|
|
4575
|
+
}
|
|
4576
|
+
if (typeof value !== "object" || value === null) {
|
|
4577
|
+
return void 0;
|
|
4578
|
+
}
|
|
4579
|
+
for (const [key, format] of Object.entries(fields)) {
|
|
4580
|
+
if (!Object.prototype.hasOwnProperty.call(value, key)) {
|
|
4581
|
+
continue;
|
|
4582
|
+
}
|
|
4583
|
+
const field = value[key];
|
|
4584
|
+
const at = path10 === "" ? key : `${path10}.${key}`;
|
|
4585
|
+
if (typeof format !== "string") {
|
|
4586
|
+
const issue = notificationTimeFieldIssue(field, format, at);
|
|
4587
|
+
if (issue !== void 0) {
|
|
4588
|
+
return issue;
|
|
4589
|
+
}
|
|
4590
|
+
} else if (typeof field === "string" && !(format === "date" ? isNotificationCalendarDate(field) : isNotificationTimestamp(field))) {
|
|
4591
|
+
return format === "date" ? `${at} must be a date that exists, YYYY-MM-DD; got ${JSON.stringify(field)}` : `${at} must be RFC 3339 with a date that exists, T, and an offset; got ${JSON.stringify(field)}`;
|
|
4592
|
+
}
|
|
4593
|
+
}
|
|
4594
|
+
return void 0;
|
|
4595
|
+
}
|
|
4596
|
+
var noticeTimeFields = { record: { at: "date-time" }, dueBy: "date" };
|
|
4597
|
+
var notificationTimeFields = {
|
|
4598
|
+
LocalNotificationRequest: { fireAt: "date-time" },
|
|
4599
|
+
LocalNotificationEntry: { fireAt: "date-time" },
|
|
4600
|
+
NotificationBridgeListLocalResult: { pending: { fireAt: "date-time" } },
|
|
4601
|
+
NotificationConsentRecord: { at: "date-time" },
|
|
4602
|
+
NotificationNotice: noticeTimeFields,
|
|
4603
|
+
RecordNotificationNoticeInput: noticeTimeFields,
|
|
4604
|
+
NotificationConformanceVector: {
|
|
4605
|
+
context: { now: "date-time" },
|
|
4606
|
+
steps: {
|
|
4607
|
+
at: "date-time",
|
|
4608
|
+
input: { fireAt: "date-time", ...noticeTimeFields },
|
|
4609
|
+
returns: { until: "date-time", ...noticeTimeFields }
|
|
4610
|
+
},
|
|
4611
|
+
expect: {
|
|
4612
|
+
deliveries: { until: "date-time" },
|
|
4613
|
+
providerCalls: { expiresAt: "date-time" },
|
|
4614
|
+
local: { operations: { fireAt: "date-time" }, pending: { fireAt: "date-time" } },
|
|
4615
|
+
reminders: { fireAt: "date-time" },
|
|
4616
|
+
notices: noticeTimeFields
|
|
4617
|
+
}
|
|
4618
|
+
}
|
|
4619
|
+
};
|
|
4620
|
+
function instantOf(match) {
|
|
4621
|
+
const [year, month, day, hour, minute, second] = match.slice(1, 7).map(Number);
|
|
4622
|
+
const offsetHours = Number(match[9] ?? 0);
|
|
4623
|
+
const offsetMinutes = Number(match[10] ?? 0);
|
|
4624
|
+
if (year === void 0 || month === void 0 || day === void 0 || hour === void 0 || minute === void 0 || second === void 0 || month < 1 || month > 12 || day < 1 || day > daysInMonth(year, month) || hour > 23 || minute > 59 || second > 59 || offsetHours > 23 || offsetMinutes > 59) {
|
|
4625
|
+
return Number.NaN;
|
|
4626
|
+
}
|
|
4627
|
+
const date = /* @__PURE__ */ new Date(0);
|
|
4628
|
+
date.setUTCFullYear(year, month - 1, day);
|
|
4629
|
+
date.setUTCHours(hour, minute, second, Number((match[7] ?? "0").slice(0, 3).padEnd(3, "0")));
|
|
4630
|
+
const offsetMs = (offsetHours * 60 + offsetMinutes) * minuteMs;
|
|
4631
|
+
return date.getTime() - (match[8] === "-" ? -offsetMs : offsetMs);
|
|
4632
|
+
}
|
|
4633
|
+
function daysInMonth(year, month) {
|
|
4634
|
+
const leap = year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
4635
|
+
return [31, leap ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1] ?? 0;
|
|
4636
|
+
}
|
|
4637
|
+
function fixedOffsetZone(offsetMs) {
|
|
4638
|
+
return {
|
|
4639
|
+
wall(millis) {
|
|
4640
|
+
const local = new Date(millis + offsetMs);
|
|
4641
|
+
return {
|
|
4642
|
+
year: local.getUTCFullYear(),
|
|
4643
|
+
month: local.getUTCMonth() + 1,
|
|
4644
|
+
day: local.getUTCDate(),
|
|
4645
|
+
minute: local.getUTCHours() * 60 + local.getUTCMinutes()
|
|
4646
|
+
};
|
|
4647
|
+
},
|
|
4648
|
+
instants(year, month, day, minute) {
|
|
4649
|
+
return [Date.UTC(year, month - 1, day, 0, minute) - offsetMs];
|
|
4650
|
+
},
|
|
4651
|
+
shiftedInstant(year, month, day, minute) {
|
|
4652
|
+
return Date.UTC(year, month - 1, day, 0, minute) - offsetMs;
|
|
4653
|
+
}
|
|
4654
|
+
};
|
|
4655
|
+
}
|
|
4656
|
+
var seoulZone = fixedOffsetZone(seoulOffsetMs);
|
|
4657
|
+
var notificationNoticeVariants = Object.freeze([
|
|
4658
|
+
"consent-result.advertising.granted",
|
|
4659
|
+
"consent-result.advertising.refused",
|
|
4660
|
+
"consent-result.advertising.withdrawn",
|
|
4661
|
+
"consent-result.night.granted",
|
|
4662
|
+
"consent-result.night.refused",
|
|
4663
|
+
"consent-result.night.withdrawn",
|
|
4664
|
+
"reconfirmation.advertising",
|
|
4665
|
+
"reconfirmation.night"
|
|
4666
|
+
]);
|
|
4667
|
+
var notificationNoticeVariantFallbacks = Object.freeze({
|
|
4668
|
+
"consent-result.advertising.refused": "consent-result.advertising.withdrawn",
|
|
4669
|
+
"consent-result.night.refused": "consent-result.night.withdrawn"
|
|
4670
|
+
});
|
|
4671
|
+
function isNotificationCalendarDate(date) {
|
|
4672
|
+
return !Number.isNaN(calendarDateMillis(date));
|
|
4673
|
+
}
|
|
4674
|
+
function calendarDateMillis(date) {
|
|
4675
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})$/u.exec(date);
|
|
4676
|
+
if (match === null) {
|
|
4677
|
+
return Number.NaN;
|
|
4678
|
+
}
|
|
4679
|
+
const [year, month, day] = match.slice(1, 4).map(Number);
|
|
4680
|
+
if (year === void 0 || month === void 0 || day === void 0 || month < 1 || month > 12 || day < 1 || day > daysInMonth(year, month)) {
|
|
4681
|
+
return Number.NaN;
|
|
4682
|
+
}
|
|
4683
|
+
const midnight = /* @__PURE__ */ new Date(0);
|
|
4684
|
+
midnight.setUTCFullYear(year, month - 1, day);
|
|
4685
|
+
return midnight.getTime();
|
|
4686
|
+
}
|
|
4687
|
+
function deepFreeze(value) {
|
|
4688
|
+
if (typeof value === "object" && value !== null) {
|
|
4689
|
+
for (const nested of Object.values(value)) {
|
|
4690
|
+
deepFreeze(nested);
|
|
4691
|
+
}
|
|
4692
|
+
Object.freeze(value);
|
|
4693
|
+
}
|
|
4694
|
+
return value;
|
|
4695
|
+
}
|
|
4696
|
+
|
|
4697
|
+
// node_modules/.cache/mpgd-native-build/packages/platform/src/notifications.js
|
|
4698
|
+
var __typia_transform__accessExpressionAsString = _accessExpressionAsString_1._accessExpressionAsString;
|
|
4699
|
+
var notificationErrorCodes = Object.freeze([
|
|
4700
|
+
"NOTIFICATIONS_UNSUPPORTED",
|
|
4701
|
+
"NOTIFICATIONS_CONFIGURATION_REQUIRED",
|
|
4702
|
+
"NOTIFICATIONS_USER_GESTURE_REQUIRED",
|
|
4703
|
+
"NOTIFICATIONS_HOST_VERSION_UNSUPPORTED",
|
|
4704
|
+
"NOTIFICATIONS_INVALID_INPUT",
|
|
4705
|
+
"NOTIFICATIONS_IDEMPOTENCY_CONFLICT",
|
|
4706
|
+
"NOTIFICATIONS_TEMPORARILY_UNAVAILABLE",
|
|
4707
|
+
"NOTIFICATIONS_V2_UNAVAILABLE"
|
|
4708
|
+
]);
|
|
4709
|
+
var notificationBridgeMethods = Object.freeze([
|
|
4710
|
+
"notifications.v2.getCapabilities",
|
|
4711
|
+
"notifications.v2.getPermission",
|
|
4712
|
+
"notifications.v2.requestPermission",
|
|
4713
|
+
"notifications.v2.revokePermission",
|
|
4714
|
+
"notifications.v2.register",
|
|
4715
|
+
"notifications.v2.scheduleLocal",
|
|
4716
|
+
"notifications.v2.cancelLocal",
|
|
4717
|
+
"notifications.v2.listLocal",
|
|
4718
|
+
"notifications.v2.openSettings"
|
|
4719
|
+
]);
|
|
4720
|
+
function withStrictTimes(what, assert, fields) {
|
|
4721
|
+
return (input) => {
|
|
4722
|
+
const value = assert(input);
|
|
4723
|
+
const issue = notificationTimeFieldIssue(value, fields);
|
|
4724
|
+
if (issue !== void 0) {
|
|
4725
|
+
throw new TypeError(`Invalid ${what}: ${issue}.`);
|
|
4726
|
+
}
|
|
4727
|
+
return value;
|
|
4728
|
+
};
|
|
4729
|
+
}
|
|
4730
|
+
var assertLocalNotificationRequestShape = withStrictTimes("local reminder request", /* @__PURE__ */ (() => {
|
|
4731
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.key && (1 <= input.key.length || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4732
|
+
method: "typia.createAssertEquals",
|
|
4733
|
+
path: _path + ".key",
|
|
4734
|
+
expected: "string & CommerceMinLength<1>",
|
|
4735
|
+
value: input.key
|
|
4736
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4737
|
+
method: "typia.createAssertEquals",
|
|
4738
|
+
path: _path + ".key",
|
|
4739
|
+
expected: "(string & CommerceMinLength<1>)",
|
|
4740
|
+
value: input.key
|
|
4741
|
+
}, _errorFactory)) && ("string" === typeof input.topic || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4742
|
+
method: "typia.createAssertEquals",
|
|
4743
|
+
path: _path + ".topic",
|
|
4744
|
+
expected: "string",
|
|
4745
|
+
value: input.topic
|
|
4746
|
+
}, _errorFactory)) && ("string" === typeof input.fireAt && (_isFormatDateTime_1._isFormatDateTime(input.fireAt) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4747
|
+
method: "typia.createAssertEquals",
|
|
4748
|
+
path: _path + ".fireAt",
|
|
4749
|
+
expected: "string & CommerceDateTimeFormat",
|
|
4750
|
+
value: input.fireAt
|
|
4751
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4752
|
+
method: "typia.createAssertEquals",
|
|
4753
|
+
path: _path + ".fireAt",
|
|
4754
|
+
expected: "(string & CommerceDateTimeFormat)",
|
|
4755
|
+
value: input.fireAt
|
|
4756
|
+
}, _errorFactory)) && ("string" === typeof input.title || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4757
|
+
method: "typia.createAssertEquals",
|
|
4758
|
+
path: _path + ".title",
|
|
4759
|
+
expected: "string",
|
|
4760
|
+
value: input.title
|
|
4761
|
+
}, _errorFactory)) && ("string" === typeof input.body || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4762
|
+
method: "typia.createAssertEquals",
|
|
4763
|
+
path: _path + ".body",
|
|
4764
|
+
expected: "string",
|
|
4765
|
+
value: input.body
|
|
4766
|
+
}, _errorFactory)) && (void 0 === input.route || "string" === typeof input.route || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4767
|
+
method: "typia.createAssertEquals",
|
|
4768
|
+
path: _path + ".route",
|
|
4769
|
+
expected: "(string | undefined)",
|
|
4770
|
+
value: input.route
|
|
4771
|
+
}, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
4772
|
+
if (["key", "topic", "fireAt", "title", "body", "route"].some((prop) => key === prop))
|
|
4773
|
+
return true;
|
|
4774
|
+
const value = input[key];
|
|
4775
|
+
if (void 0 === value)
|
|
4776
|
+
return true;
|
|
4777
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
4778
|
+
method: "typia.createAssertEquals",
|
|
4779
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
4780
|
+
expected: "undefined",
|
|
4781
|
+
value
|
|
4782
|
+
}, _errorFactory);
|
|
4783
|
+
})));
|
|
4784
|
+
const _io0 = (input, _exceptionable = true) => "string" === typeof input.key && 1 <= input.key.length && "string" === typeof input.topic && ("string" === typeof input.fireAt && _isFormatDateTime_1._isFormatDateTime(input.fireAt)) && "string" === typeof input.title && "string" === typeof input.body && (void 0 === input.route || "string" === typeof input.route) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
4785
|
+
if (["key", "topic", "fireAt", "title", "body", "route"].some((prop) => key === prop))
|
|
4786
|
+
return true;
|
|
4787
|
+
const value = input[key];
|
|
4788
|
+
if (void 0 === value)
|
|
4789
|
+
return true;
|
|
4790
|
+
return false;
|
|
4791
|
+
}));
|
|
4792
|
+
const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
|
|
4793
|
+
let _errorFactory;
|
|
4794
|
+
return (input, errorFactory) => {
|
|
4795
|
+
if (false === __is(input)) {
|
|
4796
|
+
_errorFactory = errorFactory;
|
|
4797
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
|
|
4798
|
+
method: "typia.createAssertEquals",
|
|
4799
|
+
path: _path + "",
|
|
4800
|
+
expected: "LocalNotificationRequest",
|
|
4801
|
+
value: input2
|
|
4802
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
|
|
4803
|
+
method: "typia.createAssertEquals",
|
|
4804
|
+
path: _path + "",
|
|
4805
|
+
expected: "LocalNotificationRequest",
|
|
4806
|
+
value: input2
|
|
4807
|
+
}, _errorFactory))(input, "$input", true);
|
|
4808
|
+
}
|
|
4809
|
+
return input;
|
|
4810
|
+
};
|
|
4811
|
+
})(), notificationTimeFields.LocalNotificationRequest);
|
|
4812
|
+
var assertLocalNotificationEntry = withStrictTimes("local reminder entry", /* @__PURE__ */ (() => {
|
|
4813
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.key && (1 <= input.key.length || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4814
|
+
method: "typia.createAssertEquals",
|
|
4815
|
+
path: _path + ".key",
|
|
4816
|
+
expected: "string & CommerceMinLength<1>",
|
|
4817
|
+
value: input.key
|
|
4818
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4819
|
+
method: "typia.createAssertEquals",
|
|
4820
|
+
path: _path + ".key",
|
|
4821
|
+
expected: "(string & CommerceMinLength<1>)",
|
|
4822
|
+
value: input.key
|
|
4823
|
+
}, _errorFactory)) && ("string" === typeof input.topic || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4824
|
+
method: "typia.createAssertEquals",
|
|
4825
|
+
path: _path + ".topic",
|
|
4826
|
+
expected: "string",
|
|
4827
|
+
value: input.topic
|
|
4828
|
+
}, _errorFactory)) && ("string" === typeof input.fireAt && (_isFormatDateTime_1._isFormatDateTime(input.fireAt) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4829
|
+
method: "typia.createAssertEquals",
|
|
4830
|
+
path: _path + ".fireAt",
|
|
4831
|
+
expected: "string & CommerceDateTimeFormat",
|
|
4832
|
+
value: input.fireAt
|
|
4833
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4834
|
+
method: "typia.createAssertEquals",
|
|
4835
|
+
path: _path + ".fireAt",
|
|
4836
|
+
expected: "(string & CommerceDateTimeFormat)",
|
|
4837
|
+
value: input.fireAt
|
|
4838
|
+
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
4839
|
+
if (["key", "topic", "fireAt"].some((prop) => key === prop))
|
|
4840
|
+
return true;
|
|
4841
|
+
const value = input[key];
|
|
4842
|
+
if (void 0 === value)
|
|
4843
|
+
return true;
|
|
4844
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
4845
|
+
method: "typia.createAssertEquals",
|
|
4846
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
4847
|
+
expected: "undefined",
|
|
4848
|
+
value
|
|
4849
|
+
}, _errorFactory);
|
|
4850
|
+
})));
|
|
4851
|
+
const _io0 = (input, _exceptionable = true) => "string" === typeof input.key && 1 <= input.key.length && "string" === typeof input.topic && ("string" === typeof input.fireAt && _isFormatDateTime_1._isFormatDateTime(input.fireAt)) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
4852
|
+
if (["key", "topic", "fireAt"].some((prop) => key === prop))
|
|
4853
|
+
return true;
|
|
4854
|
+
const value = input[key];
|
|
4855
|
+
if (void 0 === value)
|
|
4856
|
+
return true;
|
|
4857
|
+
return false;
|
|
4858
|
+
}));
|
|
4859
|
+
const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
|
|
4860
|
+
let _errorFactory;
|
|
4861
|
+
return (input, errorFactory) => {
|
|
4862
|
+
if (false === __is(input)) {
|
|
4863
|
+
_errorFactory = errorFactory;
|
|
4864
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
|
|
4865
|
+
method: "typia.createAssertEquals",
|
|
4866
|
+
path: _path + "",
|
|
4867
|
+
expected: "LocalNotificationEntry",
|
|
4868
|
+
value: input2
|
|
4869
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
|
|
4870
|
+
method: "typia.createAssertEquals",
|
|
4871
|
+
path: _path + "",
|
|
4872
|
+
expected: "LocalNotificationEntry",
|
|
4873
|
+
value: input2
|
|
4874
|
+
}, _errorFactory))(input, "$input", true);
|
|
4875
|
+
}
|
|
4876
|
+
return input;
|
|
4877
|
+
};
|
|
4878
|
+
})(), notificationTimeFields.LocalNotificationEntry);
|
|
4879
|
+
var assertNotificationConsentRecord = withStrictTimes("consent record", /* @__PURE__ */ (() => {
|
|
4880
|
+
const _ae0 = '({ readonly kind: "advertising" | "night"; readonly topic?: never; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion: NonEmptyString; } | { readonly kind: "delivery-permission"; readonly topic?: never; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "player"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "host-agreement"; readonly topic: NonEmptyString; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "provider"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "topic-preference"; readonly topic: NonEmptyString; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion?: never; })';
|
|
4881
|
+
const _ae1 = '({ readonly kind: "advertising" | "night"; readonly topic?: never; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion: NonEmptyString; } | { readonly kind: "topic-preference"; readonly topic: NonEmptyString; readonly state: "granted" | "withdrawn"; readonly source: "player"; readonly at: IsoDateTime; readonly evidence?: never; readonly textVersion?: never; } | { readonly kind: "host-agreement"; readonly topic: NonEmptyString; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "provider"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; } | { readonly kind: "delivery-permission"; readonly topic?: never; readonly state: NotificationRecordablePermissionState; readonly source: "client-report" | "player"; readonly at: IsoDateTime; readonly evidence?: PlatformEvidenceEnvelope; readonly textVersion?: never; })';
|
|
4882
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("delivery-permission" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4883
|
+
method: "typia.createAssertEquals",
|
|
4884
|
+
path: _path + ".kind",
|
|
4885
|
+
expected: '"delivery-permission"',
|
|
4886
|
+
value: input.kind
|
|
4887
|
+
}, _errorFactory)) && ((null !== input.topic || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4888
|
+
method: "typia.createAssertEquals",
|
|
4889
|
+
path: _path + ".topic",
|
|
4890
|
+
expected: "undefined",
|
|
4891
|
+
value: input.topic
|
|
4892
|
+
}, _errorFactory)) && (void 0 === input.topic || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4893
|
+
method: "typia.createAssertEquals",
|
|
4894
|
+
path: _path + ".topic",
|
|
4895
|
+
expected: "undefined",
|
|
4896
|
+
value: input.topic
|
|
4897
|
+
}, _errorFactory))) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4898
|
+
method: "typia.createAssertEquals",
|
|
4899
|
+
path: _path + ".state",
|
|
4900
|
+
expected: '("blocked" | "denied" | "granted" | "prompt-with-rationale")',
|
|
4901
|
+
value: input.state
|
|
4902
|
+
}, _errorFactory)) && ("client-report" === input.source || "player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4903
|
+
method: "typia.createAssertEquals",
|
|
4904
|
+
path: _path + ".source",
|
|
4905
|
+
expected: '("client-report" | "player")',
|
|
4906
|
+
value: input.source
|
|
4907
|
+
}, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4908
|
+
method: "typia.createAssertEquals",
|
|
4909
|
+
path: _path + ".at",
|
|
4910
|
+
expected: 'string & Format<"date-time">',
|
|
4911
|
+
value: input.at
|
|
4912
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4913
|
+
method: "typia.createAssertEquals",
|
|
4914
|
+
path: _path + ".at",
|
|
4915
|
+
expected: '(string & Format<"date-time">)',
|
|
4916
|
+
value: input.at
|
|
4917
|
+
}, _errorFactory)) && (void 0 === input.evidence || ("object" === typeof input.evidence && null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4918
|
+
method: "typia.createAssertEquals",
|
|
4919
|
+
path: _path + ".evidence",
|
|
4920
|
+
expected: "(PlatformEvidenceEnvelope | undefined)",
|
|
4921
|
+
value: input.evidence
|
|
4922
|
+
}, _errorFactory)) && _ao1(input.evidence, _path + ".evidence", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4923
|
+
method: "typia.createAssertEquals",
|
|
4924
|
+
path: _path + ".evidence",
|
|
4925
|
+
expected: "(PlatformEvidenceEnvelope | undefined)",
|
|
4926
|
+
value: input.evidence
|
|
4927
|
+
}, _errorFactory)) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4928
|
+
method: "typia.createAssertEquals",
|
|
4929
|
+
path: _path + ".textVersion",
|
|
4930
|
+
expected: "undefined",
|
|
4931
|
+
value: input.textVersion
|
|
4932
|
+
}, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4933
|
+
method: "typia.createAssertEquals",
|
|
4934
|
+
path: _path + ".textVersion",
|
|
4935
|
+
expected: "undefined",
|
|
4936
|
+
value: input.textVersion
|
|
4937
|
+
}, _errorFactory))) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
4938
|
+
if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
|
|
4939
|
+
return true;
|
|
4940
|
+
const value = input[key];
|
|
4941
|
+
if (void 0 === value)
|
|
4942
|
+
return true;
|
|
4943
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
4944
|
+
method: "typia.createAssertEquals",
|
|
4945
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
4946
|
+
expected: "undefined",
|
|
4947
|
+
value
|
|
4948
|
+
}, _errorFactory);
|
|
4949
|
+
})));
|
|
4950
|
+
const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.schema || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4951
|
+
method: "typia.createAssertEquals",
|
|
4952
|
+
path: _path + ".schema",
|
|
4953
|
+
expected: "string",
|
|
4954
|
+
value: input.schema
|
|
4955
|
+
}, _errorFactory)) && (("object" === typeof input.payload && null !== input.payload && false === Array.isArray(input.payload) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4956
|
+
method: "typia.createAssertEquals",
|
|
4957
|
+
path: _path + ".payload",
|
|
4958
|
+
expected: "Readonly<Record<string, string | number | boolean>>",
|
|
4959
|
+
value: input.payload
|
|
4960
|
+
}, _errorFactory)) && _ao2(input.payload, _path + ".payload", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4961
|
+
method: "typia.createAssertEquals",
|
|
4962
|
+
path: _path + ".payload",
|
|
4963
|
+
expected: "Readonly<Record<string, string | number | boolean>>",
|
|
4964
|
+
value: input.payload
|
|
4965
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
4966
|
+
if (["schema", "payload"].some((prop) => key === prop))
|
|
4967
|
+
return true;
|
|
4968
|
+
const value = input[key];
|
|
4969
|
+
if (void 0 === value)
|
|
4970
|
+
return true;
|
|
4971
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
4972
|
+
method: "typia.createAssertEquals",
|
|
4973
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
4974
|
+
expected: "undefined",
|
|
4975
|
+
value
|
|
4976
|
+
}, _errorFactory);
|
|
4977
|
+
})));
|
|
4978
|
+
const _ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every((key) => {
|
|
4979
|
+
const value = input[key];
|
|
4980
|
+
if (void 0 === value)
|
|
4981
|
+
return true;
|
|
4982
|
+
return "string" === typeof value || "number" === typeof value || "boolean" === typeof value || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4983
|
+
method: "typia.createAssertEquals",
|
|
4984
|
+
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
4985
|
+
expected: "(boolean | number | string)",
|
|
4986
|
+
value
|
|
4987
|
+
}, _errorFactory);
|
|
4988
|
+
});
|
|
4989
|
+
const _ao3 = (input, _path, _exceptionable = true) => ("host-agreement" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4990
|
+
method: "typia.createAssertEquals",
|
|
4991
|
+
path: _path + ".kind",
|
|
4992
|
+
expected: '"host-agreement"',
|
|
4993
|
+
value: input.kind
|
|
4994
|
+
}, _errorFactory)) && ("string" === typeof input.topic && (1 <= input.topic.length || _assertGuard_1._assertGuard(_exceptionable, {
|
|
4995
|
+
method: "typia.createAssertEquals",
|
|
4996
|
+
path: _path + ".topic",
|
|
4997
|
+
expected: "string & MinLength<1>",
|
|
4998
|
+
value: input.topic
|
|
4999
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5000
|
+
method: "typia.createAssertEquals",
|
|
5001
|
+
path: _path + ".topic",
|
|
5002
|
+
expected: "(string & MinLength<1>)",
|
|
5003
|
+
value: input.topic
|
|
5004
|
+
}, _errorFactory)) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5005
|
+
method: "typia.createAssertEquals",
|
|
5006
|
+
path: _path + ".state",
|
|
5007
|
+
expected: '("blocked" | "denied" | "granted" | "prompt-with-rationale")',
|
|
5008
|
+
value: input.state
|
|
5009
|
+
}, _errorFactory)) && ("client-report" === input.source || "provider" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5010
|
+
method: "typia.createAssertEquals",
|
|
5011
|
+
path: _path + ".source",
|
|
5012
|
+
expected: '("client-report" | "provider")',
|
|
5013
|
+
value: input.source
|
|
5014
|
+
}, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5015
|
+
method: "typia.createAssertEquals",
|
|
5016
|
+
path: _path + ".at",
|
|
5017
|
+
expected: 'string & Format<"date-time">',
|
|
5018
|
+
value: input.at
|
|
5019
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5020
|
+
method: "typia.createAssertEquals",
|
|
5021
|
+
path: _path + ".at",
|
|
5022
|
+
expected: '(string & Format<"date-time">)',
|
|
5023
|
+
value: input.at
|
|
5024
|
+
}, _errorFactory)) && (void 0 === input.evidence || ("object" === typeof input.evidence && null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5025
|
+
method: "typia.createAssertEquals",
|
|
5026
|
+
path: _path + ".evidence",
|
|
5027
|
+
expected: "(PlatformEvidenceEnvelope | undefined)",
|
|
5028
|
+
value: input.evidence
|
|
5029
|
+
}, _errorFactory)) && _ao1(input.evidence, _path + ".evidence", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5030
|
+
method: "typia.createAssertEquals",
|
|
5031
|
+
path: _path + ".evidence",
|
|
5032
|
+
expected: "(PlatformEvidenceEnvelope | undefined)",
|
|
5033
|
+
value: input.evidence
|
|
5034
|
+
}, _errorFactory)) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5035
|
+
method: "typia.createAssertEquals",
|
|
5036
|
+
path: _path + ".textVersion",
|
|
5037
|
+
expected: "undefined",
|
|
5038
|
+
value: input.textVersion
|
|
5039
|
+
}, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5040
|
+
method: "typia.createAssertEquals",
|
|
5041
|
+
path: _path + ".textVersion",
|
|
5042
|
+
expected: "undefined",
|
|
5043
|
+
value: input.textVersion
|
|
5044
|
+
}, _errorFactory))) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5045
|
+
if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
|
|
5046
|
+
return true;
|
|
5047
|
+
const value = input[key];
|
|
5048
|
+
if (void 0 === value)
|
|
5049
|
+
return true;
|
|
5050
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5051
|
+
method: "typia.createAssertEquals",
|
|
5052
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5053
|
+
expected: "undefined",
|
|
5054
|
+
value
|
|
5055
|
+
}, _errorFactory);
|
|
5056
|
+
})));
|
|
5057
|
+
const _ao4 = (input, _path, _exceptionable = true) => ("topic-preference" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5058
|
+
method: "typia.createAssertEquals",
|
|
5059
|
+
path: _path + ".kind",
|
|
5060
|
+
expected: '"topic-preference"',
|
|
5061
|
+
value: input.kind
|
|
5062
|
+
}, _errorFactory)) && ("string" === typeof input.topic && (1 <= input.topic.length || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5063
|
+
method: "typia.createAssertEquals",
|
|
5064
|
+
path: _path + ".topic",
|
|
5065
|
+
expected: "string & MinLength<1>",
|
|
5066
|
+
value: input.topic
|
|
5067
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5068
|
+
method: "typia.createAssertEquals",
|
|
5069
|
+
path: _path + ".topic",
|
|
5070
|
+
expected: "(string & MinLength<1>)",
|
|
5071
|
+
value: input.topic
|
|
5072
|
+
}, _errorFactory)) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5073
|
+
method: "typia.createAssertEquals",
|
|
5074
|
+
path: _path + ".state",
|
|
5075
|
+
expected: '("granted" | "withdrawn")',
|
|
5076
|
+
value: input.state
|
|
5077
|
+
}, _errorFactory)) && ("player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5078
|
+
method: "typia.createAssertEquals",
|
|
5079
|
+
path: _path + ".source",
|
|
5080
|
+
expected: '"player"',
|
|
5081
|
+
value: input.source
|
|
5082
|
+
}, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5083
|
+
method: "typia.createAssertEquals",
|
|
5084
|
+
path: _path + ".at",
|
|
5085
|
+
expected: 'string & Format<"date-time">',
|
|
5086
|
+
value: input.at
|
|
5087
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5088
|
+
method: "typia.createAssertEquals",
|
|
5089
|
+
path: _path + ".at",
|
|
5090
|
+
expected: '(string & Format<"date-time">)',
|
|
5091
|
+
value: input.at
|
|
5092
|
+
}, _errorFactory)) && ((null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5093
|
+
method: "typia.createAssertEquals",
|
|
5094
|
+
path: _path + ".evidence",
|
|
5095
|
+
expected: "undefined",
|
|
5096
|
+
value: input.evidence
|
|
5097
|
+
}, _errorFactory)) && (void 0 === input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5098
|
+
method: "typia.createAssertEquals",
|
|
5099
|
+
path: _path + ".evidence",
|
|
5100
|
+
expected: "undefined",
|
|
5101
|
+
value: input.evidence
|
|
5102
|
+
}, _errorFactory))) && ((null !== input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5103
|
+
method: "typia.createAssertEquals",
|
|
5104
|
+
path: _path + ".textVersion",
|
|
5105
|
+
expected: "undefined",
|
|
5106
|
+
value: input.textVersion
|
|
5107
|
+
}, _errorFactory)) && (void 0 === input.textVersion || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5108
|
+
method: "typia.createAssertEquals",
|
|
5109
|
+
path: _path + ".textVersion",
|
|
5110
|
+
expected: "undefined",
|
|
5111
|
+
value: input.textVersion
|
|
5112
|
+
}, _errorFactory))) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5113
|
+
if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
|
|
5114
|
+
return true;
|
|
5115
|
+
const value = input[key];
|
|
5116
|
+
if (void 0 === value)
|
|
5117
|
+
return true;
|
|
5118
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5119
|
+
method: "typia.createAssertEquals",
|
|
5120
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5121
|
+
expected: "undefined",
|
|
5122
|
+
value
|
|
5123
|
+
}, _errorFactory);
|
|
5124
|
+
})));
|
|
5125
|
+
const _ao5 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5126
|
+
method: "typia.createAssertEquals",
|
|
5127
|
+
path: _path + ".kind",
|
|
5128
|
+
expected: '("advertising" | "night")',
|
|
5129
|
+
value: input.kind
|
|
5130
|
+
}, _errorFactory)) && ((null !== input.topic || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5131
|
+
method: "typia.createAssertEquals",
|
|
5132
|
+
path: _path + ".topic",
|
|
5133
|
+
expected: "undefined",
|
|
5134
|
+
value: input.topic
|
|
5135
|
+
}, _errorFactory)) && (void 0 === input.topic || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5136
|
+
method: "typia.createAssertEquals",
|
|
5137
|
+
path: _path + ".topic",
|
|
5138
|
+
expected: "undefined",
|
|
5139
|
+
value: input.topic
|
|
5140
|
+
}, _errorFactory))) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5141
|
+
method: "typia.createAssertEquals",
|
|
5142
|
+
path: _path + ".state",
|
|
5143
|
+
expected: '("granted" | "withdrawn")',
|
|
5144
|
+
value: input.state
|
|
5145
|
+
}, _errorFactory)) && ("player" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5146
|
+
method: "typia.createAssertEquals",
|
|
5147
|
+
path: _path + ".source",
|
|
5148
|
+
expected: '"player"',
|
|
5149
|
+
value: input.source
|
|
5150
|
+
}, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5151
|
+
method: "typia.createAssertEquals",
|
|
5152
|
+
path: _path + ".at",
|
|
5153
|
+
expected: 'string & Format<"date-time">',
|
|
5154
|
+
value: input.at
|
|
5155
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5156
|
+
method: "typia.createAssertEquals",
|
|
5157
|
+
path: _path + ".at",
|
|
5158
|
+
expected: '(string & Format<"date-time">)',
|
|
5159
|
+
value: input.at
|
|
5160
|
+
}, _errorFactory)) && ((null !== input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5161
|
+
method: "typia.createAssertEquals",
|
|
5162
|
+
path: _path + ".evidence",
|
|
5163
|
+
expected: "undefined",
|
|
5164
|
+
value: input.evidence
|
|
5165
|
+
}, _errorFactory)) && (void 0 === input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5166
|
+
method: "typia.createAssertEquals",
|
|
5167
|
+
path: _path + ".evidence",
|
|
5168
|
+
expected: "undefined",
|
|
5169
|
+
value: input.evidence
|
|
5170
|
+
}, _errorFactory))) && ("string" === typeof input.textVersion && (1 <= input.textVersion.length || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5171
|
+
method: "typia.createAssertEquals",
|
|
5172
|
+
path: _path + ".textVersion",
|
|
5173
|
+
expected: "string & MinLength<1>",
|
|
5174
|
+
value: input.textVersion
|
|
5175
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5176
|
+
method: "typia.createAssertEquals",
|
|
5177
|
+
path: _path + ".textVersion",
|
|
5178
|
+
expected: "(string & MinLength<1>)",
|
|
5179
|
+
value: input.textVersion
|
|
5180
|
+
}, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5181
|
+
if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
|
|
5182
|
+
return true;
|
|
5183
|
+
const value = input[key];
|
|
5184
|
+
if (void 0 === value)
|
|
5185
|
+
return true;
|
|
5186
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5187
|
+
method: "typia.createAssertEquals",
|
|
5188
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5189
|
+
expected: "undefined",
|
|
5190
|
+
value
|
|
5191
|
+
}, _errorFactory);
|
|
5192
|
+
})));
|
|
5193
|
+
const _au0 = (input, _path, _exceptionable = true) => (() => {
|
|
5194
|
+
if ("advertising" === input.kind || "night" === input.kind)
|
|
5195
|
+
return _ao5(input, _path, _exceptionable);
|
|
5196
|
+
else if ("topic-preference" === input.kind)
|
|
5197
|
+
return _ao4(input, _path, _exceptionable);
|
|
5198
|
+
else if ("host-agreement" === input.kind)
|
|
5199
|
+
return _ao3(input, _path, _exceptionable);
|
|
5200
|
+
else if ("delivery-permission" === input.kind)
|
|
5201
|
+
return _ao0(input, _path, _exceptionable);
|
|
5202
|
+
else
|
|
5203
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5204
|
+
method: "typia.createAssertEquals",
|
|
5205
|
+
path: _path,
|
|
5206
|
+
expected: _ae1,
|
|
5207
|
+
value: input
|
|
5208
|
+
}, _errorFactory);
|
|
5209
|
+
})();
|
|
5210
|
+
const _io0 = (input, _exceptionable = true) => "delivery-permission" === input.kind && (null !== input.topic && void 0 === input.topic) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state) && ("client-report" === input.source || "player" === input.source) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.evidence || "object" === typeof input.evidence && null !== input.evidence && _io1(input.evidence, _exceptionable)) && (null !== input.textVersion && void 0 === input.textVersion) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5211
|
+
if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
|
|
5212
|
+
return true;
|
|
5213
|
+
const value = input[key];
|
|
5214
|
+
if (void 0 === value)
|
|
5215
|
+
return true;
|
|
5216
|
+
return false;
|
|
5217
|
+
}));
|
|
5218
|
+
const _io1 = (input, _exceptionable = true) => "string" === typeof input.schema && ("object" === typeof input.payload && null !== input.payload && false === Array.isArray(input.payload) && _io2(input.payload, _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5219
|
+
if (["schema", "payload"].some((prop) => key === prop))
|
|
5220
|
+
return true;
|
|
5221
|
+
const value = input[key];
|
|
5222
|
+
if (void 0 === value)
|
|
5223
|
+
return true;
|
|
5224
|
+
return false;
|
|
5225
|
+
}));
|
|
5226
|
+
const _io2 = (input, _exceptionable = true) => Object.keys(input).every((key) => {
|
|
5227
|
+
const value = input[key];
|
|
5228
|
+
if (void 0 === value)
|
|
5229
|
+
return true;
|
|
5230
|
+
return "string" === typeof value || "number" === typeof value || "boolean" === typeof value;
|
|
5231
|
+
});
|
|
5232
|
+
const _io3 = (input, _exceptionable = true) => "host-agreement" === input.kind && ("string" === typeof input.topic && 1 <= input.topic.length) && ("blocked" === input.state || "denied" === input.state || "granted" === input.state || "prompt-with-rationale" === input.state) && ("client-report" === input.source || "provider" === input.source) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.evidence || "object" === typeof input.evidence && null !== input.evidence && _io1(input.evidence, _exceptionable)) && (null !== input.textVersion && void 0 === input.textVersion) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5233
|
+
if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
|
|
5234
|
+
return true;
|
|
5235
|
+
const value = input[key];
|
|
5236
|
+
if (void 0 === value)
|
|
5237
|
+
return true;
|
|
5238
|
+
return false;
|
|
5239
|
+
}));
|
|
5240
|
+
const _io4 = (input, _exceptionable = true) => "topic-preference" === input.kind && ("string" === typeof input.topic && 1 <= input.topic.length) && ("granted" === input.state || "withdrawn" === input.state) && "player" === input.source && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (null !== input.evidence && void 0 === input.evidence) && (null !== input.textVersion && void 0 === input.textVersion) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5241
|
+
if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
|
|
5242
|
+
return true;
|
|
5243
|
+
const value = input[key];
|
|
5244
|
+
if (void 0 === value)
|
|
5245
|
+
return true;
|
|
5246
|
+
return false;
|
|
5247
|
+
}));
|
|
5248
|
+
const _io5 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && (null !== input.topic && void 0 === input.topic) && ("granted" === input.state || "withdrawn" === input.state) && "player" === input.source && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (null !== input.evidence && void 0 === input.evidence) && ("string" === typeof input.textVersion && 1 <= input.textVersion.length) && (5 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5249
|
+
if (["kind", "topic", "state", "source", "at", "evidence", "textVersion"].some((prop) => key === prop))
|
|
5250
|
+
return true;
|
|
5251
|
+
const value = input[key];
|
|
5252
|
+
if (void 0 === value)
|
|
5253
|
+
return true;
|
|
5254
|
+
return false;
|
|
5255
|
+
}));
|
|
5256
|
+
const _iu0 = (input, _exceptionable = true) => (() => {
|
|
5257
|
+
if ("advertising" === input.kind || "night" === input.kind)
|
|
5258
|
+
return _io5(input, _exceptionable);
|
|
5259
|
+
else if ("topic-preference" === input.kind)
|
|
5260
|
+
return _io4(input, _exceptionable);
|
|
5261
|
+
else if ("host-agreement" === input.kind)
|
|
5262
|
+
return _io3(input, _exceptionable);
|
|
5263
|
+
else if ("delivery-permission" === input.kind)
|
|
5264
|
+
return _io0(input, _exceptionable);
|
|
5265
|
+
else
|
|
5266
|
+
return false;
|
|
5267
|
+
})();
|
|
5268
|
+
const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _iu0(input, true);
|
|
5269
|
+
let _errorFactory;
|
|
5270
|
+
return (input, errorFactory) => {
|
|
5271
|
+
if (false === __is(input)) {
|
|
5272
|
+
_errorFactory = errorFactory;
|
|
5273
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
|
|
5274
|
+
method: "typia.createAssertEquals",
|
|
5275
|
+
path: _path + "",
|
|
5276
|
+
expected: _ae0,
|
|
5277
|
+
value: input2
|
|
5278
|
+
}, _errorFactory)) && _au0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
|
|
5279
|
+
method: "typia.createAssertEquals",
|
|
5280
|
+
path: _path + "",
|
|
5281
|
+
expected: _ae0,
|
|
5282
|
+
value: input2
|
|
5283
|
+
}, _errorFactory))(input, "$input", true);
|
|
5284
|
+
}
|
|
5285
|
+
return input;
|
|
5286
|
+
};
|
|
5287
|
+
})(), notificationTimeFields.NotificationConsentRecord);
|
|
5288
|
+
var assertNotificationNotice = withStrictTimes("notice", /* @__PURE__ */ (() => {
|
|
5289
|
+
const _ae0 = '{ readonly kind: "advertising" | "night"; readonly state: "granted" | "withdrawn"; readonly at: IsoDateTime; readonly textVersion?: NonEmptyString; }';
|
|
5290
|
+
const _ae1 = '("consent-result.advertising.granted" | "consent-result.advertising.refused" | "consent-result.advertising.withdrawn" | "consent-result.night.granted" | "consent-result.night.refused" | "consent-result.night.withdrawn" | "reconfirmation.advertising" | "reconfirmation.night")';
|
|
5291
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5292
|
+
method: "typia.createAssertEquals",
|
|
5293
|
+
path: _path + ".kind",
|
|
5294
|
+
expected: '("consent-result" | "reconfirmation")',
|
|
5295
|
+
value: input.kind
|
|
5296
|
+
}, _errorFactory)) && (("object" === typeof input.record && null !== input.record || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5297
|
+
method: "typia.createAssertEquals",
|
|
5298
|
+
path: _path + ".record",
|
|
5299
|
+
expected: _ae0,
|
|
5300
|
+
value: input.record
|
|
5301
|
+
}, _errorFactory)) && _ao1(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5302
|
+
method: "typia.createAssertEquals",
|
|
5303
|
+
path: _path + ".record",
|
|
5304
|
+
expected: _ae0,
|
|
5305
|
+
value: input.record
|
|
5306
|
+
}, _errorFactory)) && ("string" === typeof input.dueBy && (_isFormatDate_1._isFormatDate(input.dueBy) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5307
|
+
method: "typia.createAssertEquals",
|
|
5308
|
+
path: _path + ".dueBy",
|
|
5309
|
+
expected: 'string & Format<"date">',
|
|
5310
|
+
value: input.dueBy
|
|
5311
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5312
|
+
method: "typia.createAssertEquals",
|
|
5313
|
+
path: _path + ".dueBy",
|
|
5314
|
+
expected: '(string & Format<"date">)',
|
|
5315
|
+
value: input.dueBy
|
|
5316
|
+
}, _errorFactory)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5317
|
+
method: "typia.createAssertEquals",
|
|
5318
|
+
path: _path + ".variant",
|
|
5319
|
+
expected: _ae1,
|
|
5320
|
+
value: input.variant
|
|
5321
|
+
}, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5322
|
+
if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
|
|
5323
|
+
return true;
|
|
5324
|
+
const value = input[key];
|
|
5325
|
+
if (void 0 === value)
|
|
5326
|
+
return true;
|
|
5327
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5328
|
+
method: "typia.createAssertEquals",
|
|
5329
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5330
|
+
expected: "undefined",
|
|
5331
|
+
value
|
|
5332
|
+
}, _errorFactory);
|
|
5333
|
+
})));
|
|
5334
|
+
const _ao1 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5335
|
+
method: "typia.createAssertEquals",
|
|
5336
|
+
path: _path + ".kind",
|
|
5337
|
+
expected: '("advertising" | "night")',
|
|
5338
|
+
value: input.kind
|
|
5339
|
+
}, _errorFactory)) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5340
|
+
method: "typia.createAssertEquals",
|
|
5341
|
+
path: _path + ".state",
|
|
5342
|
+
expected: '("granted" | "withdrawn")',
|
|
5343
|
+
value: input.state
|
|
5344
|
+
}, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5345
|
+
method: "typia.createAssertEquals",
|
|
5346
|
+
path: _path + ".at",
|
|
5347
|
+
expected: 'string & Format<"date-time">',
|
|
5348
|
+
value: input.at
|
|
5349
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5350
|
+
method: "typia.createAssertEquals",
|
|
5351
|
+
path: _path + ".at",
|
|
5352
|
+
expected: '(string & Format<"date-time">)',
|
|
5353
|
+
value: input.at
|
|
5354
|
+
}, _errorFactory)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && (1 <= input.textVersion.length || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5355
|
+
method: "typia.createAssertEquals",
|
|
5356
|
+
path: _path + ".textVersion",
|
|
5357
|
+
expected: "string & MinLength<1>",
|
|
5358
|
+
value: input.textVersion
|
|
5359
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5360
|
+
method: "typia.createAssertEquals",
|
|
5361
|
+
path: _path + ".textVersion",
|
|
5362
|
+
expected: "((string & MinLength<1>) | undefined)",
|
|
5363
|
+
value: input.textVersion
|
|
5364
|
+
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5365
|
+
if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
|
|
5366
|
+
return true;
|
|
5367
|
+
const value = input[key];
|
|
5368
|
+
if (void 0 === value)
|
|
5369
|
+
return true;
|
|
5370
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5371
|
+
method: "typia.createAssertEquals",
|
|
5372
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5373
|
+
expected: "undefined",
|
|
5374
|
+
value
|
|
5375
|
+
}, _errorFactory);
|
|
5376
|
+
})));
|
|
5377
|
+
const _io0 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io1(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5378
|
+
if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
|
|
5379
|
+
return true;
|
|
5380
|
+
const value = input[key];
|
|
5381
|
+
if (void 0 === value)
|
|
5382
|
+
return true;
|
|
5383
|
+
return false;
|
|
5384
|
+
}));
|
|
5385
|
+
const _io1 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("granted" === input.state || "withdrawn" === input.state) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && 1 <= input.textVersion.length) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5386
|
+
if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
|
|
5387
|
+
return true;
|
|
5388
|
+
const value = input[key];
|
|
5389
|
+
if (void 0 === value)
|
|
5390
|
+
return true;
|
|
5391
|
+
return false;
|
|
5392
|
+
}));
|
|
5393
|
+
const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
|
|
5394
|
+
let _errorFactory;
|
|
5395
|
+
return (input, errorFactory) => {
|
|
5396
|
+
if (false === __is(input)) {
|
|
5397
|
+
_errorFactory = errorFactory;
|
|
5398
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
|
|
5399
|
+
method: "typia.createAssertEquals",
|
|
5400
|
+
path: _path + "",
|
|
5401
|
+
expected: "NotificationNotice",
|
|
5402
|
+
value: input2
|
|
5403
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
|
|
5404
|
+
method: "typia.createAssertEquals",
|
|
5405
|
+
path: _path + "",
|
|
5406
|
+
expected: "NotificationNotice",
|
|
5407
|
+
value: input2
|
|
5408
|
+
}, _errorFactory))(input, "$input", true);
|
|
5409
|
+
}
|
|
5410
|
+
return input;
|
|
5411
|
+
};
|
|
5412
|
+
})(), notificationTimeFields.NotificationNotice);
|
|
5413
|
+
var assertRecordNotificationNoticeInput = withStrictTimes("notice to record", /* @__PURE__ */ (() => {
|
|
5414
|
+
const _ae0 = '{ readonly kind: "advertising" | "night"; readonly state: "granted" | "withdrawn"; readonly at: IsoDateTime; readonly textVersion?: NonEmptyString; }';
|
|
5415
|
+
const _ae1 = '("consent-result.advertising.granted" | "consent-result.advertising.refused" | "consent-result.advertising.withdrawn" | "consent-result.night.granted" | "consent-result.night.refused" | "consent-result.night.withdrawn" | "reconfirmation.advertising" | "reconfirmation.night")';
|
|
5416
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5417
|
+
method: "typia.createAssertEquals",
|
|
5418
|
+
path: _path + ".kind",
|
|
5419
|
+
expected: '("consent-result" | "reconfirmation")',
|
|
5420
|
+
value: input.kind
|
|
5421
|
+
}, _errorFactory)) && (("object" === typeof input.record && null !== input.record || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5422
|
+
method: "typia.createAssertEquals",
|
|
5423
|
+
path: _path + ".record",
|
|
5424
|
+
expected: _ae0,
|
|
5425
|
+
value: input.record
|
|
5426
|
+
}, _errorFactory)) && _ao1(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5427
|
+
method: "typia.createAssertEquals",
|
|
5428
|
+
path: _path + ".record",
|
|
5429
|
+
expected: _ae0,
|
|
5430
|
+
value: input.record
|
|
5431
|
+
}, _errorFactory)) && ("string" === typeof input.dueBy && (_isFormatDate_1._isFormatDate(input.dueBy) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5432
|
+
method: "typia.createAssertEquals",
|
|
5433
|
+
path: _path + ".dueBy",
|
|
5434
|
+
expected: 'string & Format<"date">',
|
|
5435
|
+
value: input.dueBy
|
|
5436
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5437
|
+
method: "typia.createAssertEquals",
|
|
5438
|
+
path: _path + ".dueBy",
|
|
5439
|
+
expected: '(string & Format<"date">)',
|
|
5440
|
+
value: input.dueBy
|
|
5441
|
+
}, _errorFactory)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5442
|
+
method: "typia.createAssertEquals",
|
|
5443
|
+
path: _path + ".variant",
|
|
5444
|
+
expected: _ae1,
|
|
5445
|
+
value: input.variant
|
|
5446
|
+
}, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5447
|
+
if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
|
|
5448
|
+
return true;
|
|
5449
|
+
const value = input[key];
|
|
5450
|
+
if (void 0 === value)
|
|
5451
|
+
return true;
|
|
5452
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5453
|
+
method: "typia.createAssertEquals",
|
|
5454
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5455
|
+
expected: "undefined",
|
|
5456
|
+
value
|
|
5457
|
+
}, _errorFactory);
|
|
5458
|
+
})));
|
|
5459
|
+
const _ao1 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5460
|
+
method: "typia.createAssertEquals",
|
|
5461
|
+
path: _path + ".kind",
|
|
5462
|
+
expected: '("advertising" | "night")',
|
|
5463
|
+
value: input.kind
|
|
5464
|
+
}, _errorFactory)) && ("granted" === input.state || "withdrawn" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5465
|
+
method: "typia.createAssertEquals",
|
|
5466
|
+
path: _path + ".state",
|
|
5467
|
+
expected: '("granted" | "withdrawn")',
|
|
5468
|
+
value: input.state
|
|
5469
|
+
}, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5470
|
+
method: "typia.createAssertEquals",
|
|
5471
|
+
path: _path + ".at",
|
|
5472
|
+
expected: 'string & Format<"date-time">',
|
|
5473
|
+
value: input.at
|
|
5474
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5475
|
+
method: "typia.createAssertEquals",
|
|
5476
|
+
path: _path + ".at",
|
|
5477
|
+
expected: '(string & Format<"date-time">)',
|
|
5478
|
+
value: input.at
|
|
5479
|
+
}, _errorFactory)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && (1 <= input.textVersion.length || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5480
|
+
method: "typia.createAssertEquals",
|
|
5481
|
+
path: _path + ".textVersion",
|
|
5482
|
+
expected: "string & MinLength<1>",
|
|
5483
|
+
value: input.textVersion
|
|
5484
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5485
|
+
method: "typia.createAssertEquals",
|
|
5486
|
+
path: _path + ".textVersion",
|
|
5487
|
+
expected: "((string & MinLength<1>) | undefined)",
|
|
5488
|
+
value: input.textVersion
|
|
5489
|
+
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5490
|
+
if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
|
|
5491
|
+
return true;
|
|
5492
|
+
const value = input[key];
|
|
5493
|
+
if (void 0 === value)
|
|
5494
|
+
return true;
|
|
5495
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5496
|
+
method: "typia.createAssertEquals",
|
|
5497
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5498
|
+
expected: "undefined",
|
|
5499
|
+
value
|
|
5500
|
+
}, _errorFactory);
|
|
5501
|
+
})));
|
|
5502
|
+
const _ao2 = (input, _path, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5503
|
+
method: "typia.createAssertEquals",
|
|
5504
|
+
path: _path + ".kind",
|
|
5505
|
+
expected: '("consent-result" | "reconfirmation")',
|
|
5506
|
+
value: input.kind
|
|
5507
|
+
}, _errorFactory)) && (("object" === typeof input.record && null !== input.record || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5508
|
+
method: "typia.createAssertEquals",
|
|
5509
|
+
path: _path + ".record",
|
|
5510
|
+
expected: '{ readonly kind: "advertising" | "night"; readonly at: IsoDateTime; }',
|
|
5511
|
+
value: input.record
|
|
5512
|
+
}, _errorFactory)) && _ao3(input.record, _path + ".record", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5513
|
+
method: "typia.createAssertEquals",
|
|
5514
|
+
path: _path + ".record",
|
|
5515
|
+
expected: '{ readonly kind: "advertising" | "night"; readonly at: IsoDateTime; }',
|
|
5516
|
+
value: input.record
|
|
5517
|
+
}, _errorFactory)) && ("string" === typeof input.dueBy && (_isFormatDate_1._isFormatDate(input.dueBy) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5518
|
+
method: "typia.createAssertEquals",
|
|
5519
|
+
path: _path + ".dueBy",
|
|
5520
|
+
expected: 'string & Format<"date">',
|
|
5521
|
+
value: input.dueBy
|
|
5522
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5523
|
+
method: "typia.createAssertEquals",
|
|
5524
|
+
path: _path + ".dueBy",
|
|
5525
|
+
expected: '(string & Format<"date">)',
|
|
5526
|
+
value: input.dueBy
|
|
5527
|
+
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5528
|
+
if (["kind", "record", "dueBy"].some((prop) => key === prop))
|
|
5529
|
+
return true;
|
|
5530
|
+
const value = input[key];
|
|
5531
|
+
if (void 0 === value)
|
|
5532
|
+
return true;
|
|
5533
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5534
|
+
method: "typia.createAssertEquals",
|
|
5535
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5536
|
+
expected: "undefined",
|
|
5537
|
+
value
|
|
5538
|
+
}, _errorFactory);
|
|
5539
|
+
})));
|
|
5540
|
+
const _ao3 = (input, _path, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5541
|
+
method: "typia.createAssertEquals",
|
|
5542
|
+
path: _path + ".kind",
|
|
5543
|
+
expected: '("advertising" | "night")',
|
|
5544
|
+
value: input.kind
|
|
5545
|
+
}, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5546
|
+
method: "typia.createAssertEquals",
|
|
5547
|
+
path: _path + ".at",
|
|
5548
|
+
expected: 'string & Format<"date-time">',
|
|
5549
|
+
value: input.at
|
|
5550
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5551
|
+
method: "typia.createAssertEquals",
|
|
5552
|
+
path: _path + ".at",
|
|
5553
|
+
expected: '(string & Format<"date-time">)',
|
|
5554
|
+
value: input.at
|
|
5555
|
+
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5556
|
+
if (["kind", "at"].some((prop) => key === prop))
|
|
5557
|
+
return true;
|
|
5558
|
+
const value = input[key];
|
|
5559
|
+
if (void 0 === value)
|
|
5560
|
+
return true;
|
|
5561
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5562
|
+
method: "typia.createAssertEquals",
|
|
5563
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5564
|
+
expected: "undefined",
|
|
5565
|
+
value
|
|
5566
|
+
}, _errorFactory);
|
|
5567
|
+
})));
|
|
5568
|
+
const _au0 = (input, _path, _exceptionable = true) => (() => {
|
|
5569
|
+
if (void 0 !== input.variant)
|
|
5570
|
+
return _ao0(input, _path, _exceptionable);
|
|
5571
|
+
else
|
|
5572
|
+
return _ao2(input, _path, _exceptionable);
|
|
5573
|
+
})();
|
|
5574
|
+
const _io0 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io1(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && ("consent-result.advertising.granted" === input.variant || "consent-result.advertising.refused" === input.variant || "consent-result.advertising.withdrawn" === input.variant || "consent-result.night.granted" === input.variant || "consent-result.night.refused" === input.variant || "consent-result.night.withdrawn" === input.variant || "reconfirmation.advertising" === input.variant || "reconfirmation.night" === input.variant) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5575
|
+
if (["kind", "record", "dueBy", "variant"].some((prop) => key === prop))
|
|
5576
|
+
return true;
|
|
5577
|
+
const value = input[key];
|
|
5578
|
+
if (void 0 === value)
|
|
5579
|
+
return true;
|
|
5580
|
+
return false;
|
|
5581
|
+
}));
|
|
5582
|
+
const _io1 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("granted" === input.state || "withdrawn" === input.state) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (void 0 === input.textVersion || "string" === typeof input.textVersion && 1 <= input.textVersion.length) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5583
|
+
if (["kind", "state", "at", "textVersion"].some((prop) => key === prop))
|
|
5584
|
+
return true;
|
|
5585
|
+
const value = input[key];
|
|
5586
|
+
if (void 0 === value)
|
|
5587
|
+
return true;
|
|
5588
|
+
return false;
|
|
5589
|
+
}));
|
|
5590
|
+
const _io2 = (input, _exceptionable = true) => ("consent-result" === input.kind || "reconfirmation" === input.kind) && ("object" === typeof input.record && null !== input.record && _io3(input.record, _exceptionable)) && ("string" === typeof input.dueBy && _isFormatDate_1._isFormatDate(input.dueBy)) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5591
|
+
if (["kind", "record", "dueBy"].some((prop) => key === prop))
|
|
5592
|
+
return true;
|
|
5593
|
+
const value = input[key];
|
|
5594
|
+
if (void 0 === value)
|
|
5595
|
+
return true;
|
|
5596
|
+
return false;
|
|
5597
|
+
}));
|
|
5598
|
+
const _io3 = (input, _exceptionable = true) => ("advertising" === input.kind || "night" === input.kind) && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5599
|
+
if (["kind", "at"].some((prop) => key === prop))
|
|
5600
|
+
return true;
|
|
5601
|
+
const value = input[key];
|
|
5602
|
+
if (void 0 === value)
|
|
5603
|
+
return true;
|
|
5604
|
+
return false;
|
|
5605
|
+
}));
|
|
5606
|
+
const _iu0 = (input, _exceptionable = true) => (() => {
|
|
5607
|
+
if (void 0 !== input.variant)
|
|
5608
|
+
return _io0(input, _exceptionable);
|
|
5609
|
+
else
|
|
5610
|
+
return _io2(input, _exceptionable);
|
|
5611
|
+
})();
|
|
5612
|
+
const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _iu0(input, true);
|
|
5613
|
+
let _errorFactory;
|
|
5614
|
+
return (input, errorFactory) => {
|
|
5615
|
+
if (false === __is(input)) {
|
|
5616
|
+
_errorFactory = errorFactory;
|
|
5617
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
|
|
5618
|
+
method: "typia.createAssertEquals",
|
|
5619
|
+
path: _path + "",
|
|
5620
|
+
expected: "(NotificationNotice | NotificationNoticeIdentity)",
|
|
5621
|
+
value: input2
|
|
5622
|
+
}, _errorFactory)) && _au0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
|
|
5623
|
+
method: "typia.createAssertEquals",
|
|
5624
|
+
path: _path + "",
|
|
5625
|
+
expected: "(NotificationNotice | NotificationNoticeIdentity)",
|
|
5626
|
+
value: input2
|
|
5627
|
+
}, _errorFactory))(input, "$input", true);
|
|
5628
|
+
}
|
|
5629
|
+
return input;
|
|
5630
|
+
};
|
|
5631
|
+
})(), notificationTimeFields.RecordNotificationNoticeInput);
|
|
5632
|
+
var assertNotificationBridgeListLocalResult = withStrictTimes("listLocal result", /* @__PURE__ */ (() => {
|
|
5633
|
+
const _ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.pending) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5634
|
+
method: "typia.createAssertEquals",
|
|
5635
|
+
path: _path + ".pending",
|
|
5636
|
+
expected: "ReadonlyArray<LocalNotificationEntry>",
|
|
5637
|
+
value: input.pending
|
|
5638
|
+
}, _errorFactory)) && input.pending.every((elem, _index2) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5639
|
+
method: "typia.createAssertEquals",
|
|
5640
|
+
path: _path + ".pending[" + _index2 + "]",
|
|
5641
|
+
expected: "LocalNotificationEntry",
|
|
5642
|
+
value: elem
|
|
5643
|
+
}, _errorFactory)) && _ao1(elem, _path + ".pending[" + _index2 + "]", _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5644
|
+
method: "typia.createAssertEquals",
|
|
5645
|
+
path: _path + ".pending[" + _index2 + "]",
|
|
5646
|
+
expected: "LocalNotificationEntry",
|
|
5647
|
+
value: elem
|
|
5648
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5649
|
+
method: "typia.createAssertEquals",
|
|
5650
|
+
path: _path + ".pending",
|
|
5651
|
+
expected: "ReadonlyArray<LocalNotificationEntry>",
|
|
5652
|
+
value: input.pending
|
|
5653
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5654
|
+
if (["pending"].some((prop) => key === prop))
|
|
5655
|
+
return true;
|
|
5656
|
+
const value = input[key];
|
|
5657
|
+
if (void 0 === value)
|
|
5658
|
+
return true;
|
|
5659
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5660
|
+
method: "typia.createAssertEquals",
|
|
5661
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5662
|
+
expected: "undefined",
|
|
5663
|
+
value
|
|
5664
|
+
}, _errorFactory);
|
|
5665
|
+
})));
|
|
5666
|
+
const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.key && (1 <= input.key.length || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5667
|
+
method: "typia.createAssertEquals",
|
|
5668
|
+
path: _path + ".key",
|
|
5669
|
+
expected: "string & CommerceMinLength<1>",
|
|
5670
|
+
value: input.key
|
|
5671
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5672
|
+
method: "typia.createAssertEquals",
|
|
5673
|
+
path: _path + ".key",
|
|
5674
|
+
expected: "(string & CommerceMinLength<1>)",
|
|
5675
|
+
value: input.key
|
|
5676
|
+
}, _errorFactory)) && ("string" === typeof input.topic || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5677
|
+
method: "typia.createAssertEquals",
|
|
5678
|
+
path: _path + ".topic",
|
|
5679
|
+
expected: "string",
|
|
5680
|
+
value: input.topic
|
|
5681
|
+
}, _errorFactory)) && ("string" === typeof input.fireAt && (_isFormatDateTime_1._isFormatDateTime(input.fireAt) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5682
|
+
method: "typia.createAssertEquals",
|
|
5683
|
+
path: _path + ".fireAt",
|
|
5684
|
+
expected: "string & CommerceDateTimeFormat",
|
|
5685
|
+
value: input.fireAt
|
|
5686
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
5687
|
+
method: "typia.createAssertEquals",
|
|
5688
|
+
path: _path + ".fireAt",
|
|
5689
|
+
expected: "(string & CommerceDateTimeFormat)",
|
|
5690
|
+
value: input.fireAt
|
|
5691
|
+
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every((key) => {
|
|
5692
|
+
if (["key", "topic", "fireAt"].some((prop) => key === prop))
|
|
5693
|
+
return true;
|
|
5694
|
+
const value = input[key];
|
|
5695
|
+
if (void 0 === value)
|
|
5696
|
+
return true;
|
|
5697
|
+
return _assertGuard_1._assertGuard(_exceptionable, {
|
|
5698
|
+
method: "typia.createAssertEquals",
|
|
5699
|
+
path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
|
|
5700
|
+
expected: "undefined",
|
|
5701
|
+
value
|
|
5702
|
+
}, _errorFactory);
|
|
5703
|
+
})));
|
|
5704
|
+
const _io0 = (input, _exceptionable = true) => Array.isArray(input.pending) && input.pending.every((elem, _index1) => "object" === typeof elem && null !== elem && _io1(elem, _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5705
|
+
if (["pending"].some((prop) => key === prop))
|
|
5706
|
+
return true;
|
|
5707
|
+
const value = input[key];
|
|
5708
|
+
if (void 0 === value)
|
|
5709
|
+
return true;
|
|
5710
|
+
return false;
|
|
5711
|
+
}));
|
|
5712
|
+
const _io1 = (input, _exceptionable = true) => "string" === typeof input.key && 1 <= input.key.length && "string" === typeof input.topic && ("string" === typeof input.fireAt && _isFormatDateTime_1._isFormatDateTime(input.fireAt)) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5713
|
+
if (["key", "topic", "fireAt"].some((prop) => key === prop))
|
|
5714
|
+
return true;
|
|
5715
|
+
const value = input[key];
|
|
5716
|
+
if (void 0 === value)
|
|
5717
|
+
return true;
|
|
5718
|
+
return false;
|
|
5719
|
+
}));
|
|
5720
|
+
const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
|
|
5721
|
+
let _errorFactory;
|
|
5722
|
+
return (input, errorFactory) => {
|
|
5723
|
+
if (false === __is(input)) {
|
|
5724
|
+
_errorFactory = errorFactory;
|
|
5725
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_1._assertGuard(true, {
|
|
5726
|
+
method: "typia.createAssertEquals",
|
|
5727
|
+
path: _path + "",
|
|
5728
|
+
expected: "NotificationBridgeListLocalResult",
|
|
5729
|
+
value: input2
|
|
5730
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_1._assertGuard(true, {
|
|
5731
|
+
method: "typia.createAssertEquals",
|
|
5732
|
+
path: _path + "",
|
|
5733
|
+
expected: "NotificationBridgeListLocalResult",
|
|
5734
|
+
value: input2
|
|
5735
|
+
}, _errorFactory))(input, "$input", true);
|
|
5736
|
+
}
|
|
5737
|
+
return input;
|
|
5738
|
+
};
|
|
5739
|
+
})(), notificationTimeFields.NotificationBridgeListLocalResult);
|
|
5740
|
+
|
|
5741
|
+
// node_modules/.cache/mpgd-native-build/packages/catalog/src/notification-topics-shape.js
|
|
5742
|
+
import * as _isTypeUint32_12 from "typia/lib/internal/_isTypeUint32";
|
|
4449
5743
|
import * as _accessExpressionAsString_12 from "typia/lib/internal/_accessExpressionAsString";
|
|
5744
|
+
import * as _validateReport_1 from "typia/lib/internal/_validateReport";
|
|
5745
|
+
import * as _createStandardSchema_1 from "typia/lib/internal/_createStandardSchema";
|
|
4450
5746
|
import typia2 from "typia";
|
|
5747
|
+
var __typia_transform__accessExpressionAsString2 = _accessExpressionAsString_12._accessExpressionAsString;
|
|
5748
|
+
var validateShape = (() => {
|
|
5749
|
+
const _io0 = (input, _exceptionable = true) => (void 0 === input.notices || "object" === typeof input.notices && null !== input.notices && _io1(input.notices, _exceptionable)) && ("string" === typeof input.version && 1 <= input.version.length) && ("string" === typeof input.defaultLocale && 1 <= input.defaultLocale.length) && (Array.isArray(input.topics) && input.topics.every((elem, _index1) => "object" === typeof elem && null !== elem && _io2(elem, _exceptionable))) && (3 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5750
|
+
if (["notices", "version", "defaultLocale", "topics"].some((prop) => key === prop))
|
|
5751
|
+
return true;
|
|
5752
|
+
const value = input[key];
|
|
5753
|
+
if (void 0 === value)
|
|
5754
|
+
return true;
|
|
5755
|
+
return false;
|
|
5756
|
+
}));
|
|
5757
|
+
const _io1 = (input, _exceptionable = true) => "string" === typeof input.topic && 1 <= input.topic.length && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5758
|
+
if (["copy", "topic"].some((prop) => key === prop))
|
|
5759
|
+
return true;
|
|
5760
|
+
const value = input[key];
|
|
5761
|
+
if (void 0 === value)
|
|
5762
|
+
return true;
|
|
5763
|
+
return false;
|
|
5764
|
+
}));
|
|
5765
|
+
const _io2 = (input, _exceptionable = true) => "string" === typeof input.id && 1 <= input.id.length && ("advertising" === input.purpose || "requested" === input.purpose || "service" === input.purpose) && (Array.isArray(input.channels) && (1 <= input.channels.length && input.channels.every((elem, _index2) => "local" === elem || "remote" === elem))) && ("string" === typeof input.route && 1 <= input.route.length) && (void 0 === input.optOutRoute || "string" === typeof input.optOutRoute && 1 <= input.optOutRoute.length) && (void 0 === input.copy || "object" === typeof input.copy && null !== input.copy && false === Array.isArray(input.copy) && _io3(input.copy, _exceptionable)) && (void 0 === input.frequency || "object" === typeof input.frequency && null !== input.frequency && _io5(input.frequency, _exceptionable)) && (void 0 === input.quietHours || "object" === typeof input.quietHours && null !== input.quietHours && _io6(input.quietHours, _exceptionable)) && (void 0 === input.deferrable || "boolean" === typeof input.deferrable) && (void 0 === input.targets || "object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) && _io7(input.targets, _exceptionable)) && (4 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5766
|
+
if (["id", "purpose", "channels", "route", "optOutRoute", "copy", "frequency", "quietHours", "deferrable", "targets"].some((prop) => key === prop))
|
|
5767
|
+
return true;
|
|
5768
|
+
const value = input[key];
|
|
5769
|
+
if (void 0 === value)
|
|
5770
|
+
return true;
|
|
5771
|
+
return false;
|
|
5772
|
+
}));
|
|
5773
|
+
const _io3 = (input, _exceptionable = true) => Object.keys(input).every((key) => {
|
|
5774
|
+
const value = input[key];
|
|
5775
|
+
if (void 0 === value)
|
|
5776
|
+
return true;
|
|
5777
|
+
return "object" === typeof value && null !== value && _io4(value, _exceptionable);
|
|
5778
|
+
});
|
|
5779
|
+
const _io4 = (input, _exceptionable = true) => "string" === typeof input.title && 1 <= input.title.length && ("string" === typeof input.body && 1 <= input.body.length) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5780
|
+
if (["title", "body"].some((prop) => key === prop))
|
|
5781
|
+
return true;
|
|
5782
|
+
const value = input[key];
|
|
5783
|
+
if (void 0 === value)
|
|
5784
|
+
return true;
|
|
5785
|
+
return false;
|
|
5786
|
+
}));
|
|
5787
|
+
const _io5 = (input, _exceptionable = true) => "number" === typeof input.maxPerDay && (_isTypeUint32_12._isTypeUint32(input.maxPerDay) && 1 <= input.maxPerDay) && (1 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5788
|
+
if (["maxPerDay"].some((prop) => key === prop))
|
|
5789
|
+
return true;
|
|
5790
|
+
const value = input[key];
|
|
5791
|
+
if (void 0 === value)
|
|
5792
|
+
return true;
|
|
5793
|
+
return false;
|
|
5794
|
+
}));
|
|
5795
|
+
const _io6 = (input, _exceptionable = true) => "string" === typeof input.start && RegExp("^(?:[01][0-9]|2[0-3]):[0-5][0-9]$").test(input.start) && ("string" === typeof input.end && RegExp("^(?:[01][0-9]|2[0-3]):[0-5][0-9]$").test(input.end)) && (2 === Object.keys(input).length || Object.keys(input).every((key) => {
|
|
5796
|
+
if (["start", "end"].some((prop) => key === prop))
|
|
5797
|
+
return true;
|
|
5798
|
+
const value = input[key];
|
|
5799
|
+
if (void 0 === value)
|
|
5800
|
+
return true;
|
|
5801
|
+
return false;
|
|
5802
|
+
}));
|
|
5803
|
+
const _io7 = (input, _exceptionable = true) => Object.keys(input).every((key) => {
|
|
5804
|
+
const value = input[key];
|
|
5805
|
+
if (void 0 === value)
|
|
5806
|
+
return true;
|
|
5807
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io8(value, _exceptionable);
|
|
5808
|
+
});
|
|
5809
|
+
const _io8 = (input, _exceptionable = true) => Object.keys(input).every((key) => {
|
|
5810
|
+
const value = input[key];
|
|
5811
|
+
if (void 0 === value)
|
|
5812
|
+
return true;
|
|
5813
|
+
return "string" === typeof value || "number" === typeof value || "boolean" === typeof value;
|
|
5814
|
+
});
|
|
5815
|
+
const _vo0 = (input, _path, _exceptionable = true) => [void 0 === input.notices || ("object" === typeof input.notices && null !== input.notices || _report(_exceptionable, {
|
|
5816
|
+
path: _path + ".notices",
|
|
5817
|
+
expected: "(NotificationTopicCatalogNotices | undefined)",
|
|
5818
|
+
value: input.notices
|
|
5819
|
+
})) && _vo1(input.notices, _path + ".notices", _exceptionable) || _report(_exceptionable, {
|
|
5820
|
+
path: _path + ".notices",
|
|
5821
|
+
expected: "(NotificationTopicCatalogNotices | undefined)",
|
|
5822
|
+
value: input.notices
|
|
5823
|
+
}), "string" === typeof input.version && (1 <= input.version.length || _report(_exceptionable, {
|
|
5824
|
+
path: _path + ".version",
|
|
5825
|
+
expected: "string & MinLength<1>",
|
|
5826
|
+
value: input.version
|
|
5827
|
+
})) || _report(_exceptionable, {
|
|
5828
|
+
path: _path + ".version",
|
|
5829
|
+
expected: "(string & MinLength<1>)",
|
|
5830
|
+
value: input.version
|
|
5831
|
+
}), "string" === typeof input.defaultLocale && (1 <= input.defaultLocale.length || _report(_exceptionable, {
|
|
5832
|
+
path: _path + ".defaultLocale",
|
|
5833
|
+
expected: "string & MinLength<1>",
|
|
5834
|
+
value: input.defaultLocale
|
|
5835
|
+
})) || _report(_exceptionable, {
|
|
5836
|
+
path: _path + ".defaultLocale",
|
|
5837
|
+
expected: "(string & MinLength<1>)",
|
|
5838
|
+
value: input.defaultLocale
|
|
5839
|
+
}), (Array.isArray(input.topics) || _report(_exceptionable, {
|
|
5840
|
+
path: _path + ".topics",
|
|
5841
|
+
expected: "ReadonlyArray<NotificationTopicCatalogEntry>",
|
|
5842
|
+
value: input.topics
|
|
5843
|
+
})) && input.topics.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5844
|
+
path: _path + ".topics[" + _index3 + "]",
|
|
5845
|
+
expected: "NotificationTopicCatalogEntry",
|
|
5846
|
+
value: elem
|
|
5847
|
+
})) && _vo2(elem, _path + ".topics[" + _index3 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5848
|
+
path: _path + ".topics[" + _index3 + "]",
|
|
5849
|
+
expected: "NotificationTopicCatalogEntry",
|
|
5850
|
+
value: elem
|
|
5851
|
+
})).every((flag) => flag) || _report(_exceptionable, {
|
|
5852
|
+
path: _path + ".topics",
|
|
5853
|
+
expected: "ReadonlyArray<NotificationTopicCatalogEntry>",
|
|
5854
|
+
value: input.topics
|
|
5855
|
+
}), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map((key) => {
|
|
5856
|
+
if (["notices", "version", "defaultLocale", "topics"].some((prop) => key === prop))
|
|
5857
|
+
return true;
|
|
5858
|
+
const value = input[key];
|
|
5859
|
+
if (void 0 === value)
|
|
5860
|
+
return true;
|
|
5861
|
+
return _report(_exceptionable, {
|
|
5862
|
+
path: _path + _accessExpressionAsString_12._accessExpressionAsString(key),
|
|
5863
|
+
expected: "undefined",
|
|
5864
|
+
value,
|
|
5865
|
+
description: [
|
|
5866
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
5867
|
+
"",
|
|
5868
|
+
"Please remove the property next time."
|
|
5869
|
+
].join("\n")
|
|
5870
|
+
});
|
|
5871
|
+
}).every((flag) => flag))].every((flag) => flag);
|
|
5872
|
+
const _vo1 = (input, _path, _exceptionable = true) => [true, "string" === typeof input.topic && (1 <= input.topic.length || _report(_exceptionable, {
|
|
5873
|
+
path: _path + ".topic",
|
|
5874
|
+
expected: "string & MinLength<1>",
|
|
5875
|
+
value: input.topic
|
|
5876
|
+
})) || _report(_exceptionable, {
|
|
5877
|
+
path: _path + ".topic",
|
|
5878
|
+
expected: "(string & MinLength<1>)",
|
|
5879
|
+
value: input.topic
|
|
5880
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map((key) => {
|
|
5881
|
+
if (["copy", "topic"].some((prop) => key === prop))
|
|
5882
|
+
return true;
|
|
5883
|
+
const value = input[key];
|
|
5884
|
+
if (void 0 === value)
|
|
5885
|
+
return true;
|
|
5886
|
+
return _report(_exceptionable, {
|
|
5887
|
+
path: _path + _accessExpressionAsString_12._accessExpressionAsString(key),
|
|
5888
|
+
expected: "undefined",
|
|
5889
|
+
value,
|
|
5890
|
+
description: [
|
|
5891
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
5892
|
+
"",
|
|
5893
|
+
"Please remove the property next time."
|
|
5894
|
+
].join("\n")
|
|
5895
|
+
});
|
|
5896
|
+
}).every((flag) => flag))].every((flag) => flag);
|
|
5897
|
+
const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.id && (1 <= input.id.length || _report(_exceptionable, {
|
|
5898
|
+
path: _path + ".id",
|
|
5899
|
+
expected: "string & MinLength<1>",
|
|
5900
|
+
value: input.id
|
|
5901
|
+
})) || _report(_exceptionable, {
|
|
5902
|
+
path: _path + ".id",
|
|
5903
|
+
expected: "(string & MinLength<1>)",
|
|
5904
|
+
value: input.id
|
|
5905
|
+
}), "advertising" === input.purpose || "requested" === input.purpose || "service" === input.purpose || _report(_exceptionable, {
|
|
5906
|
+
path: _path + ".purpose",
|
|
5907
|
+
expected: '("advertising" | "requested" | "service")',
|
|
5908
|
+
value: input.purpose
|
|
5909
|
+
}), (Array.isArray(input.channels) || _report(_exceptionable, {
|
|
5910
|
+
path: _path + ".channels",
|
|
5911
|
+
expected: "(ReadonlyArray<NotificationChannel> & MinItems<1>)",
|
|
5912
|
+
value: input.channels
|
|
5913
|
+
})) && ((1 <= input.channels.length || _report(_exceptionable, {
|
|
5914
|
+
path: _path + ".channels",
|
|
5915
|
+
expected: "Array<> & MinItems<1>",
|
|
5916
|
+
value: input.channels
|
|
5917
|
+
})) && input.channels.map((elem, _index4) => "local" === elem || "remote" === elem || _report(_exceptionable, {
|
|
5918
|
+
path: _path + ".channels[" + _index4 + "]",
|
|
5919
|
+
expected: '("local" | "remote")',
|
|
5920
|
+
value: elem
|
|
5921
|
+
})).every((flag) => flag)) || _report(_exceptionable, {
|
|
5922
|
+
path: _path + ".channels",
|
|
5923
|
+
expected: "(ReadonlyArray<NotificationChannel> & MinItems<1>)",
|
|
5924
|
+
value: input.channels
|
|
5925
|
+
}), "string" === typeof input.route && (1 <= input.route.length || _report(_exceptionable, {
|
|
5926
|
+
path: _path + ".route",
|
|
5927
|
+
expected: "string & MinLength<1>",
|
|
5928
|
+
value: input.route
|
|
5929
|
+
})) || _report(_exceptionable, {
|
|
5930
|
+
path: _path + ".route",
|
|
5931
|
+
expected: "(string & MinLength<1>)",
|
|
5932
|
+
value: input.route
|
|
5933
|
+
}), void 0 === input.optOutRoute || "string" === typeof input.optOutRoute && (1 <= input.optOutRoute.length || _report(_exceptionable, {
|
|
5934
|
+
path: _path + ".optOutRoute",
|
|
5935
|
+
expected: "string & MinLength<1>",
|
|
5936
|
+
value: input.optOutRoute
|
|
5937
|
+
})) || _report(_exceptionable, {
|
|
5938
|
+
path: _path + ".optOutRoute",
|
|
5939
|
+
expected: "((string & MinLength<1>) | undefined)",
|
|
5940
|
+
value: input.optOutRoute
|
|
5941
|
+
}), void 0 === input.copy || ("object" === typeof input.copy && null !== input.copy && false === Array.isArray(input.copy) || _report(_exceptionable, {
|
|
5942
|
+
path: _path + ".copy",
|
|
5943
|
+
expected: "(Readonly<Record<string, NotificationTopicCopy>> | undefined)",
|
|
5944
|
+
value: input.copy
|
|
5945
|
+
})) && _vo3(input.copy, _path + ".copy", _exceptionable) || _report(_exceptionable, {
|
|
5946
|
+
path: _path + ".copy",
|
|
5947
|
+
expected: "(Readonly<Record<string, NotificationTopicCopy>> | undefined)",
|
|
5948
|
+
value: input.copy
|
|
5949
|
+
}), void 0 === input.frequency || ("object" === typeof input.frequency && null !== input.frequency || _report(_exceptionable, {
|
|
5950
|
+
path: _path + ".frequency",
|
|
5951
|
+
expected: "(NotificationTopicFrequency | undefined)",
|
|
5952
|
+
value: input.frequency
|
|
5953
|
+
})) && _vo5(input.frequency, _path + ".frequency", _exceptionable) || _report(_exceptionable, {
|
|
5954
|
+
path: _path + ".frequency",
|
|
5955
|
+
expected: "(NotificationTopicFrequency | undefined)",
|
|
5956
|
+
value: input.frequency
|
|
5957
|
+
}), void 0 === input.quietHours || ("object" === typeof input.quietHours && null !== input.quietHours || _report(_exceptionable, {
|
|
5958
|
+
path: _path + ".quietHours",
|
|
5959
|
+
expected: "(NotificationQuietHours | undefined)",
|
|
5960
|
+
value: input.quietHours
|
|
5961
|
+
})) && _vo6(input.quietHours, _path + ".quietHours", _exceptionable) || _report(_exceptionable, {
|
|
5962
|
+
path: _path + ".quietHours",
|
|
5963
|
+
expected: "(NotificationQuietHours | undefined)",
|
|
5964
|
+
value: input.quietHours
|
|
5965
|
+
}), void 0 === input.deferrable || "boolean" === typeof input.deferrable || _report(_exceptionable, {
|
|
5966
|
+
path: _path + ".deferrable",
|
|
5967
|
+
expected: "(boolean | undefined)",
|
|
5968
|
+
value: input.deferrable
|
|
5969
|
+
}), void 0 === input.targets || ("object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) || _report(_exceptionable, {
|
|
5970
|
+
path: _path + ".targets",
|
|
5971
|
+
expected: "(Readonly<Record<string, Readonly<Record<string, string | number | boolean>>>> | undefined)",
|
|
5972
|
+
value: input.targets
|
|
5973
|
+
})) && _vo7(input.targets, _path + ".targets", _exceptionable) || _report(_exceptionable, {
|
|
5974
|
+
path: _path + ".targets",
|
|
5975
|
+
expected: "(Readonly<Record<string, Readonly<Record<string, string | number | boolean>>>> | undefined)",
|
|
5976
|
+
value: input.targets
|
|
5977
|
+
}), 4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map((key) => {
|
|
5978
|
+
if (["id", "purpose", "channels", "route", "optOutRoute", "copy", "frequency", "quietHours", "deferrable", "targets"].some((prop) => key === prop))
|
|
5979
|
+
return true;
|
|
5980
|
+
const value = input[key];
|
|
5981
|
+
if (void 0 === value)
|
|
5982
|
+
return true;
|
|
5983
|
+
return _report(_exceptionable, {
|
|
5984
|
+
path: _path + _accessExpressionAsString_12._accessExpressionAsString(key),
|
|
5985
|
+
expected: "undefined",
|
|
5986
|
+
value,
|
|
5987
|
+
description: [
|
|
5988
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
5989
|
+
"",
|
|
5990
|
+
"Please remove the property next time."
|
|
5991
|
+
].join("\n")
|
|
5992
|
+
});
|
|
5993
|
+
}).every((flag) => flag))].every((flag) => flag);
|
|
5994
|
+
const _vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
5995
|
+
const value = input[key];
|
|
5996
|
+
if (void 0 === value)
|
|
5997
|
+
return true;
|
|
5998
|
+
return ("object" === typeof value && null !== value || _report(_exceptionable, {
|
|
5999
|
+
path: _path + __typia_transform__accessExpressionAsString2(key),
|
|
6000
|
+
expected: "NotificationTopicCopy",
|
|
6001
|
+
value
|
|
6002
|
+
})) && _vo4(value, _path + __typia_transform__accessExpressionAsString2(key), _exceptionable) || _report(_exceptionable, {
|
|
6003
|
+
path: _path + __typia_transform__accessExpressionAsString2(key),
|
|
6004
|
+
expected: "NotificationTopicCopy",
|
|
6005
|
+
value
|
|
6006
|
+
});
|
|
6007
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
6008
|
+
const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.title && (1 <= input.title.length || _report(_exceptionable, {
|
|
6009
|
+
path: _path + ".title",
|
|
6010
|
+
expected: "string & MinLength<1>",
|
|
6011
|
+
value: input.title
|
|
6012
|
+
})) || _report(_exceptionable, {
|
|
6013
|
+
path: _path + ".title",
|
|
6014
|
+
expected: "(string & MinLength<1>)",
|
|
6015
|
+
value: input.title
|
|
6016
|
+
}), "string" === typeof input.body && (1 <= input.body.length || _report(_exceptionable, {
|
|
6017
|
+
path: _path + ".body",
|
|
6018
|
+
expected: "string & MinLength<1>",
|
|
6019
|
+
value: input.body
|
|
6020
|
+
})) || _report(_exceptionable, {
|
|
6021
|
+
path: _path + ".body",
|
|
6022
|
+
expected: "(string & MinLength<1>)",
|
|
6023
|
+
value: input.body
|
|
6024
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map((key) => {
|
|
6025
|
+
if (["title", "body"].some((prop) => key === prop))
|
|
6026
|
+
return true;
|
|
6027
|
+
const value = input[key];
|
|
6028
|
+
if (void 0 === value)
|
|
6029
|
+
return true;
|
|
6030
|
+
return _report(_exceptionable, {
|
|
6031
|
+
path: _path + _accessExpressionAsString_12._accessExpressionAsString(key),
|
|
6032
|
+
expected: "undefined",
|
|
6033
|
+
value,
|
|
6034
|
+
description: [
|
|
6035
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6036
|
+
"",
|
|
6037
|
+
"Please remove the property next time."
|
|
6038
|
+
].join("\n")
|
|
6039
|
+
});
|
|
6040
|
+
}).every((flag) => flag))].every((flag) => flag);
|
|
6041
|
+
const _vo5 = (input, _path, _exceptionable = true) => ["number" === typeof input.maxPerDay && (_isTypeUint32_12._isTypeUint32(input.maxPerDay) || _report(_exceptionable, {
|
|
6042
|
+
path: _path + ".maxPerDay",
|
|
6043
|
+
expected: 'number & Type<"uint32">',
|
|
6044
|
+
value: input.maxPerDay
|
|
6045
|
+
})) && (1 <= input.maxPerDay || _report(_exceptionable, {
|
|
6046
|
+
path: _path + ".maxPerDay",
|
|
6047
|
+
expected: "number & Minimum<1>",
|
|
6048
|
+
value: input.maxPerDay
|
|
6049
|
+
})) || _report(_exceptionable, {
|
|
6050
|
+
path: _path + ".maxPerDay",
|
|
6051
|
+
expected: '(number & Type<"uint32"> & Minimum<1>)',
|
|
6052
|
+
value: input.maxPerDay
|
|
6053
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map((key) => {
|
|
6054
|
+
if (["maxPerDay"].some((prop) => key === prop))
|
|
6055
|
+
return true;
|
|
6056
|
+
const value = input[key];
|
|
6057
|
+
if (void 0 === value)
|
|
6058
|
+
return true;
|
|
6059
|
+
return _report(_exceptionable, {
|
|
6060
|
+
path: _path + _accessExpressionAsString_12._accessExpressionAsString(key),
|
|
6061
|
+
expected: "undefined",
|
|
6062
|
+
value,
|
|
6063
|
+
description: [
|
|
6064
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6065
|
+
"",
|
|
6066
|
+
"Please remove the property next time."
|
|
6067
|
+
].join("\n")
|
|
6068
|
+
});
|
|
6069
|
+
}).every((flag) => flag))].every((flag) => flag);
|
|
6070
|
+
const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.start && (RegExp("^(?:[01][0-9]|2[0-3]):[0-5][0-9]$").test(input.start) || _report(_exceptionable, {
|
|
6071
|
+
path: _path + ".start",
|
|
6072
|
+
expected: 'string & Pattern<"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$">',
|
|
6073
|
+
value: input.start
|
|
6074
|
+
})) || _report(_exceptionable, {
|
|
6075
|
+
path: _path + ".start",
|
|
6076
|
+
expected: '(string & Pattern<"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$">)',
|
|
6077
|
+
value: input.start
|
|
6078
|
+
}), "string" === typeof input.end && (RegExp("^(?:[01][0-9]|2[0-3]):[0-5][0-9]$").test(input.end) || _report(_exceptionable, {
|
|
6079
|
+
path: _path + ".end",
|
|
6080
|
+
expected: 'string & Pattern<"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$">',
|
|
6081
|
+
value: input.end
|
|
6082
|
+
})) || _report(_exceptionable, {
|
|
6083
|
+
path: _path + ".end",
|
|
6084
|
+
expected: '(string & Pattern<"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$">)',
|
|
6085
|
+
value: input.end
|
|
6086
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map((key) => {
|
|
6087
|
+
if (["start", "end"].some((prop) => key === prop))
|
|
6088
|
+
return true;
|
|
6089
|
+
const value = input[key];
|
|
6090
|
+
if (void 0 === value)
|
|
6091
|
+
return true;
|
|
6092
|
+
return _report(_exceptionable, {
|
|
6093
|
+
path: _path + _accessExpressionAsString_12._accessExpressionAsString(key),
|
|
6094
|
+
expected: "undefined",
|
|
6095
|
+
value,
|
|
6096
|
+
description: [
|
|
6097
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6098
|
+
"",
|
|
6099
|
+
"Please remove the property next time."
|
|
6100
|
+
].join("\n")
|
|
6101
|
+
});
|
|
6102
|
+
}).every((flag) => flag))].every((flag) => flag);
|
|
6103
|
+
const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
6104
|
+
const value = input[key];
|
|
6105
|
+
if (void 0 === value)
|
|
6106
|
+
return true;
|
|
6107
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
6108
|
+
path: _path + __typia_transform__accessExpressionAsString2(key),
|
|
6109
|
+
expected: "Readonly<Record<string, string | number | boolean>>",
|
|
6110
|
+
value
|
|
6111
|
+
})) && _vo8(value, _path + __typia_transform__accessExpressionAsString2(key), _exceptionable) || _report(_exceptionable, {
|
|
6112
|
+
path: _path + __typia_transform__accessExpressionAsString2(key),
|
|
6113
|
+
expected: "Readonly<Record<string, string | number | boolean>>",
|
|
6114
|
+
value
|
|
6115
|
+
});
|
|
6116
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
6117
|
+
const _vo8 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
6118
|
+
const value = input[key];
|
|
6119
|
+
if (void 0 === value)
|
|
6120
|
+
return true;
|
|
6121
|
+
return "string" === typeof value || "number" === typeof value || "boolean" === typeof value || _report(_exceptionable, {
|
|
6122
|
+
path: _path + __typia_transform__accessExpressionAsString2(key),
|
|
6123
|
+
expected: "(boolean | number | string)",
|
|
6124
|
+
value
|
|
6125
|
+
});
|
|
6126
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
6127
|
+
const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
|
|
6128
|
+
let errors;
|
|
6129
|
+
let _report;
|
|
6130
|
+
return _createStandardSchema_1._createStandardSchema((input) => {
|
|
6131
|
+
if (false === __is(input)) {
|
|
6132
|
+
errors = [];
|
|
6133
|
+
_report = _validateReport_1._validateReport(errors);
|
|
6134
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _report(true, {
|
|
6135
|
+
path: _path + "",
|
|
6136
|
+
expected: "NotificationTopicCatalog",
|
|
6137
|
+
value: input2
|
|
6138
|
+
})) && _vo0(input2, _path + "", true) || _report(true, {
|
|
6139
|
+
path: _path + "",
|
|
6140
|
+
expected: "NotificationTopicCatalog",
|
|
6141
|
+
value: input2
|
|
6142
|
+
}))(input, "$input", true);
|
|
6143
|
+
const success = 0 === errors.length;
|
|
6144
|
+
return success ? {
|
|
6145
|
+
success,
|
|
6146
|
+
data: input
|
|
6147
|
+
} : {
|
|
6148
|
+
success,
|
|
6149
|
+
errors,
|
|
6150
|
+
data: input
|
|
6151
|
+
};
|
|
6152
|
+
}
|
|
6153
|
+
return {
|
|
6154
|
+
success: true,
|
|
6155
|
+
data: input
|
|
6156
|
+
};
|
|
6157
|
+
});
|
|
6158
|
+
})();
|
|
4451
6159
|
|
|
4452
6160
|
// node_modules/.cache/mpgd-native-build/packages/catalog/src/index.js
|
|
4453
|
-
import * as _assertGuard_1 from "typia/lib/internal/_assertGuard";
|
|
4454
|
-
import * as _accessExpressionAsString_1 from "typia/lib/internal/_accessExpressionAsString";
|
|
4455
|
-
import typia from "typia";
|
|
4456
6161
|
var defaultCatalogCurrencies = Object.freeze(["coin", "gem"]);
|
|
4457
6162
|
function resolveProductPlatformId(product, target2) {
|
|
4458
6163
|
const identifier = readOwnPlatformIdentifier(product.platformProductIds, target2);
|
|
@@ -4470,6 +6175,8 @@ function normalizePlatformIdentifier(identifier) {
|
|
|
4470
6175
|
}
|
|
4471
6176
|
|
|
4472
6177
|
// node_modules/.cache/mpgd-native-build/packages/target-config/src/runtime.js
|
|
6178
|
+
import * as _isTypeUint32_13 from "typia/lib/internal/_isTypeUint32";
|
|
6179
|
+
import typia4 from "typia";
|
|
4473
6180
|
var adPlacementFeatureByType = {
|
|
4474
6181
|
rewarded: "rewardedAds",
|
|
4475
6182
|
interstitial: "interstitialAds",
|
|
@@ -4959,9 +6666,238 @@ import { createHash as createHash7 } from "node:crypto";
|
|
|
4959
6666
|
import { existsSync as existsSync8, mkdirSync as mkdirSync5, readFileSync as readFileSync12, writeFileSync as writeFileSync6 } from "node:fs";
|
|
4960
6667
|
import { dirname as dirname7, join as join10 } from "node:path";
|
|
4961
6668
|
|
|
6669
|
+
// node_modules/.cache/mpgd-native-build/adapters/ait/src/iap-config.js
|
|
6670
|
+
var defaultAitCatalogTarget = "ait";
|
|
6671
|
+
function extractAitIapProductConfig(input, options = {}) {
|
|
6672
|
+
const target2 = options.target ?? defaultAitCatalogTarget;
|
|
6673
|
+
const sourceLabel = options.sourceLabel ?? "product catalog";
|
|
6674
|
+
if (!isRecord2(input) || !Array.isArray(input.products)) {
|
|
6675
|
+
throw new Error(`AIT product catalog is invalid: ${sourceLabel}`);
|
|
6676
|
+
}
|
|
6677
|
+
const products = input.products;
|
|
6678
|
+
const productIds = /* @__PURE__ */ new Set();
|
|
6679
|
+
const skus = /* @__PURE__ */ new Set();
|
|
6680
|
+
const iapProducts = [];
|
|
6681
|
+
for (const [index, product] of products.entries()) {
|
|
6682
|
+
if (!isRecord2(product) || typeof product.id !== "string" || product.id.trim().length === 0) {
|
|
6683
|
+
throw new Error(`AIT product catalog entry at index ${index} is invalid: ${sourceLabel}`);
|
|
6684
|
+
}
|
|
6685
|
+
if (productIds.has(product.id)) {
|
|
6686
|
+
throw new Error(`Duplicate AIT product ID "${product.id}" at index ${index}: ${sourceLabel}`);
|
|
6687
|
+
}
|
|
6688
|
+
productIds.add(product.id);
|
|
6689
|
+
if (product.type === "subscription") {
|
|
6690
|
+
continue;
|
|
6691
|
+
}
|
|
6692
|
+
const identifiers = product.platformProductIds;
|
|
6693
|
+
if (!isRecord2(identifiers) || !Object.prototype.hasOwnProperty.call(identifiers, target2)) {
|
|
6694
|
+
continue;
|
|
6695
|
+
}
|
|
6696
|
+
const value = identifiers[target2];
|
|
6697
|
+
if (typeof value !== "string") {
|
|
6698
|
+
continue;
|
|
6699
|
+
}
|
|
6700
|
+
const sku = value.trim();
|
|
6701
|
+
if (sku.length === 0) {
|
|
6702
|
+
continue;
|
|
6703
|
+
}
|
|
6704
|
+
if (skus.has(sku)) {
|
|
6705
|
+
throw new Error(`Duplicate AIT SKU "${sku}" for ${target2}: ${sourceLabel}`);
|
|
6706
|
+
}
|
|
6707
|
+
skus.add(sku);
|
|
6708
|
+
iapProducts.push({ productId: product.id, sku });
|
|
6709
|
+
}
|
|
6710
|
+
return iapProducts;
|
|
6711
|
+
}
|
|
6712
|
+
function isRecord2(value) {
|
|
6713
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6714
|
+
}
|
|
6715
|
+
|
|
6716
|
+
// node_modules/.cache/mpgd-native-build/packages/bridge/src/index.js
|
|
6717
|
+
import * as _isTypeUint32_15 from "typia/lib/internal/_isTypeUint32";
|
|
6718
|
+
import * as _isFormatDateTime_13 from "typia/lib/internal/_isFormatDateTime";
|
|
6719
|
+
import * as _assertGuard_15 from "typia/lib/internal/_assertGuard";
|
|
6720
|
+
import * as _accessExpressionAsString_16 from "typia/lib/internal/_accessExpressionAsString";
|
|
6721
|
+
import typia7 from "typia";
|
|
6722
|
+
|
|
6723
|
+
// node_modules/.cache/mpgd-native-build/packages/platform/src/commerce.js
|
|
6724
|
+
import * as _isTypeInt64_1 from "typia/lib/internal/_isTypeInt64";
|
|
6725
|
+
import * as _isTypeUint32_14 from "typia/lib/internal/_isTypeUint32";
|
|
6726
|
+
import * as _isFormatDateTime_12 from "typia/lib/internal/_isFormatDateTime";
|
|
6727
|
+
import * as _assertGuard_14 from "typia/lib/internal/_assertGuard";
|
|
6728
|
+
import * as _accessExpressionAsString_15 from "typia/lib/internal/_accessExpressionAsString";
|
|
6729
|
+
import typia6 from "typia";
|
|
6730
|
+
var commerceErrorCodes = Object.freeze([
|
|
6731
|
+
"USER_CANCELLED",
|
|
6732
|
+
"OUTCOME_UNKNOWN",
|
|
6733
|
+
"ALREADY_OWNED",
|
|
6734
|
+
"IN_PROGRESS",
|
|
6735
|
+
"ITEM_UNAVAILABLE",
|
|
6736
|
+
"NOT_PREPARED",
|
|
6737
|
+
"NETWORK",
|
|
6738
|
+
"STORE_UNAVAILABLE",
|
|
6739
|
+
"CONFIGURATION_REQUIRED",
|
|
6740
|
+
"ACTION_REQUIRED",
|
|
6741
|
+
"ACCOUNT_BINDING_REQUIRED",
|
|
6742
|
+
"INSUFFICIENT_BALANCE",
|
|
6743
|
+
"INVALID_RESPONSE",
|
|
6744
|
+
"UNKNOWN"
|
|
6745
|
+
]);
|
|
6746
|
+
var commerceBridgeMethods = Object.freeze([
|
|
6747
|
+
"commerce.v2.getCapabilities",
|
|
6748
|
+
"commerce.v2.fetchProducts",
|
|
6749
|
+
"commerce.v2.requestPurchase",
|
|
6750
|
+
"commerce.v2.getAvailablePurchases",
|
|
6751
|
+
"commerce.v2.finishTransaction",
|
|
6752
|
+
"commerce.v2.restorePurchases"
|
|
6753
|
+
]);
|
|
6754
|
+
var commercePurchaseStates = Object.freeze([
|
|
6755
|
+
"requested",
|
|
6756
|
+
"launched",
|
|
6757
|
+
"pending",
|
|
6758
|
+
"purchased",
|
|
6759
|
+
"verifying",
|
|
6760
|
+
"granted",
|
|
6761
|
+
"finishing",
|
|
6762
|
+
"finished",
|
|
6763
|
+
"cancelled",
|
|
6764
|
+
"failed",
|
|
6765
|
+
"rejected",
|
|
6766
|
+
"revoked"
|
|
6767
|
+
]);
|
|
6768
|
+
var commercePurchaseTransitions = Object.freeze({
|
|
6769
|
+
requested: Object.freeze(["launched", "cancelled", "failed"]),
|
|
6770
|
+
launched: Object.freeze(["pending", "purchased", "cancelled", "failed"]),
|
|
6771
|
+
pending: Object.freeze(["purchased", "verifying", "cancelled", "failed"]),
|
|
6772
|
+
purchased: Object.freeze(["verifying"]),
|
|
6773
|
+
verifying: Object.freeze(["granted", "pending", "rejected"]),
|
|
6774
|
+
granted: Object.freeze(["finishing", "finished", "revoked"]),
|
|
6775
|
+
finishing: Object.freeze(["finished", "revoked"]),
|
|
6776
|
+
finished: Object.freeze(["revoked"]),
|
|
6777
|
+
cancelled: Object.freeze([]),
|
|
6778
|
+
failed: Object.freeze([]),
|
|
6779
|
+
rejected: Object.freeze([]),
|
|
6780
|
+
revoked: Object.freeze([])
|
|
6781
|
+
});
|
|
6782
|
+
var terminalCommercePurchaseStates = Object.freeze([
|
|
6783
|
+
"finished",
|
|
6784
|
+
"cancelled",
|
|
6785
|
+
"failed",
|
|
6786
|
+
"rejected",
|
|
6787
|
+
"revoked"
|
|
6788
|
+
]);
|
|
6789
|
+
|
|
6790
|
+
// node_modules/.cache/mpgd-native-build/packages/bridge/src/index.js
|
|
6791
|
+
var bridgeCommerceV2Methods = commerceBridgeMethods;
|
|
6792
|
+
var bridgeCommerceV2MethodSet = new Set(bridgeCommerceV2Methods);
|
|
6793
|
+
var notificationsV2MethodList = [
|
|
6794
|
+
"notifications.v2.getCapabilities",
|
|
6795
|
+
"notifications.v2.getPermission",
|
|
6796
|
+
"notifications.v2.requestPermission",
|
|
6797
|
+
"notifications.v2.revokePermission",
|
|
6798
|
+
"notifications.v2.register",
|
|
6799
|
+
"notifications.v2.scheduleLocal",
|
|
6800
|
+
"notifications.v2.cancelLocal",
|
|
6801
|
+
"notifications.v2.listLocal",
|
|
6802
|
+
"notifications.v2.openSettings"
|
|
6803
|
+
];
|
|
6804
|
+
var bridgeNotificationsV2Methods = Object.freeze(notificationsV2MethodList);
|
|
6805
|
+
var bridgeNotificationsV2MethodSet = new Set(bridgeNotificationsV2Methods);
|
|
6806
|
+
|
|
6807
|
+
// node_modules/.cache/mpgd-native-build/adapters/devvit/src/catalog-products.js
|
|
6808
|
+
var defaultDevvitCatalogTarget = "reddit";
|
|
6809
|
+
function createDevvitCommerceBridgeProducts(catalog, target2 = defaultDevvitCatalogTarget) {
|
|
6810
|
+
const skus = /* @__PURE__ */ new Set();
|
|
6811
|
+
const productIds = /* @__PURE__ */ new Set();
|
|
6812
|
+
const products = [];
|
|
6813
|
+
for (const product of catalog.products) {
|
|
6814
|
+
const sku = readSku(product, target2);
|
|
6815
|
+
if (sku === void 0 || product.type === "subscription") {
|
|
6816
|
+
continue;
|
|
6817
|
+
}
|
|
6818
|
+
if (productIds.has(product.id)) {
|
|
6819
|
+
throw new TypeError(`Duplicate Devvit logical product ID: ${product.id}`);
|
|
6820
|
+
}
|
|
6821
|
+
if (skus.has(sku)) {
|
|
6822
|
+
throw new TypeError(`Duplicate Devvit product SKU: ${sku}`);
|
|
6823
|
+
}
|
|
6824
|
+
productIds.add(product.id);
|
|
6825
|
+
skus.add(sku);
|
|
6826
|
+
products.push(Object.freeze({ productId: product.id, sku }));
|
|
6827
|
+
}
|
|
6828
|
+
return Object.freeze(products);
|
|
6829
|
+
}
|
|
6830
|
+
function readSku(product, target2) {
|
|
6831
|
+
const identifiers = product.platformProductIds;
|
|
6832
|
+
if (!Object.prototype.hasOwnProperty.call(identifiers, target2)) {
|
|
6833
|
+
return void 0;
|
|
6834
|
+
}
|
|
6835
|
+
const value = identifiers[target2];
|
|
6836
|
+
if (typeof value !== "string") {
|
|
6837
|
+
return void 0;
|
|
6838
|
+
}
|
|
6839
|
+
const sku = value.trim();
|
|
6840
|
+
return sku.length === 0 ? void 0 : sku;
|
|
6841
|
+
}
|
|
6842
|
+
|
|
6843
|
+
// node_modules/.cache/mpgd-native-build/packages/game-services/src/validation.js
|
|
6844
|
+
var gameServicesRequestLimits = {
|
|
6845
|
+
/** Maximum length of any identifier or timestamp string in a client request. */
|
|
6846
|
+
maxStringLength: 256,
|
|
6847
|
+
/** Maximum number of entries accepted inside a platform evidence payload. */
|
|
6848
|
+
maxEvidencePayloadEntries: 64,
|
|
6849
|
+
/** Maximum request body size accepted by the HTTP and oRPC fetch handlers. */
|
|
6850
|
+
maxBodyBytes: 64 * 1024
|
|
6851
|
+
};
|
|
6852
|
+
|
|
6853
|
+
// node_modules/.cache/mpgd-native-build/packages/game-services/src/types.js
|
|
6854
|
+
var reservedDeploymentTargetNames = /* @__PURE__ */ new Set([
|
|
6855
|
+
"aux",
|
|
6856
|
+
"browser",
|
|
6857
|
+
"con",
|
|
6858
|
+
"devvit",
|
|
6859
|
+
"index",
|
|
6860
|
+
"msstore",
|
|
6861
|
+
"nul",
|
|
6862
|
+
"prn",
|
|
6863
|
+
"constructor",
|
|
6864
|
+
"prototype",
|
|
6865
|
+
...Array.from({ length: 9 }, (_, index) => `com${String(index + 1)}`),
|
|
6866
|
+
...Array.from({ length: 9 }, (_, index) => `lpt${String(index + 1)}`)
|
|
6867
|
+
]);
|
|
6868
|
+
|
|
6869
|
+
// node_modules/.cache/mpgd-native-build/packages/game-services/src/commerce-evidence-registry.js
|
|
6870
|
+
var defaultPurchaseCapabilities = Object.freeze({
|
|
6871
|
+
consumable: true,
|
|
6872
|
+
durable: true,
|
|
6873
|
+
subscription: false
|
|
6874
|
+
});
|
|
6875
|
+
var referenceCommerceLedgerTargets = Object.freeze({
|
|
6876
|
+
"google-play": Object.freeze(["android"]),
|
|
6877
|
+
"app-store": Object.freeze(["ios"]),
|
|
6878
|
+
"microsoft-store": Object.freeze(["microsoft-store"]),
|
|
6879
|
+
"apps-in-toss": Object.freeze(["ait"]),
|
|
6880
|
+
devvit: Object.freeze(["reddit"]),
|
|
6881
|
+
verse8: Object.freeze(["verse8"])
|
|
6882
|
+
});
|
|
6883
|
+
var referenceCommercePurchaseCapabilities = Object.freeze({
|
|
6884
|
+
"google-play": Object.freeze({ consumable: true, durable: true, subscription: false }),
|
|
6885
|
+
"app-store": Object.freeze({ consumable: true, durable: true, subscription: false }),
|
|
6886
|
+
"microsoft-store": Object.freeze({ consumable: true, durable: false, subscription: false }),
|
|
6887
|
+
"apps-in-toss": Object.freeze({ consumable: true, durable: true, subscription: false }),
|
|
6888
|
+
devvit: Object.freeze({ consumable: true, durable: true, subscription: false }),
|
|
6889
|
+
verse8: Object.freeze({ consumable: true, durable: true, subscription: false })
|
|
6890
|
+
});
|
|
6891
|
+
|
|
6892
|
+
// node_modules/.cache/mpgd-native-build/adapters/devvit/src/server/post-operation.js
|
|
6893
|
+
var maximumLeaseTtlMs = 60 * 60 * 1e3;
|
|
6894
|
+
|
|
6895
|
+
// node_modules/.cache/mpgd-native-build/packages/game-services/src/verified-leaderboard.js
|
|
6896
|
+
var timestampPattern = new RegExp("^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d{1,3}))?(Z|([+-])(\\d{2}):(\\d{2}))$");
|
|
6897
|
+
|
|
4962
6898
|
// node_modules/.cache/mpgd-native-build/packages/cli/src/target-name.js
|
|
4963
6899
|
var deploymentTargetNamePattern = /^[a-z0-9]+(?:-[a-z0-9]+)*$/u;
|
|
4964
|
-
var
|
|
6900
|
+
var reservedDeploymentTargetNames2 = /* @__PURE__ */ new Set([
|
|
4965
6901
|
"aux",
|
|
4966
6902
|
"browser",
|
|
4967
6903
|
"con",
|
|
@@ -4977,7 +6913,7 @@ var reservedDeploymentTargetNames = /* @__PURE__ */ new Set([
|
|
|
4977
6913
|
]);
|
|
4978
6914
|
var maximumDeploymentTargetNameLength = 64;
|
|
4979
6915
|
function assertDeploymentTargetName(target2) {
|
|
4980
|
-
if (!deploymentTargetNamePattern.test(target2) || target2.length > maximumDeploymentTargetNameLength ||
|
|
6916
|
+
if (!deploymentTargetNamePattern.test(target2) || target2.length > maximumDeploymentTargetNameLength || reservedDeploymentTargetNames2.has(target2)) {
|
|
4981
6917
|
throw new Error(`Invalid deployment target name: ${target2}. Use lowercase kebab-case and avoid reserved names.`);
|
|
4982
6918
|
}
|
|
4983
6919
|
}
|
|
@@ -5214,7 +7150,7 @@ function assertMiniGameArtifactPathsPortable(paths) {
|
|
|
5214
7150
|
}
|
|
5215
7151
|
}
|
|
5216
7152
|
function readMiniGameSubpackages(gameConfig) {
|
|
5217
|
-
if (!
|
|
7153
|
+
if (!isRecord3(gameConfig)) {
|
|
5218
7154
|
throw new Error("Mini-game game.json must contain a JSON object.");
|
|
5219
7155
|
}
|
|
5220
7156
|
if (gameConfig.subpackages === void 0) {
|
|
@@ -5224,7 +7160,7 @@ function readMiniGameSubpackages(gameConfig) {
|
|
|
5224
7160
|
throw new Error("Mini-game game.json subpackages must be an array.");
|
|
5225
7161
|
}
|
|
5226
7162
|
return gameConfig.subpackages.map((input, index) => {
|
|
5227
|
-
if (!
|
|
7163
|
+
if (!isRecord3(input) || typeof input.root !== "string") {
|
|
5228
7164
|
throw new Error(`Mini-game subpackage ${String(index)} must define a string root.`);
|
|
5229
7165
|
}
|
|
5230
7166
|
if (input.independent !== void 0 && typeof input.independent !== "boolean") {
|
|
@@ -5306,7 +7242,7 @@ function assertMiniGameArtifactPathAllowed(path10) {
|
|
|
5306
7242
|
throw new Error(`Mini-game Canvas MVP does not support audio assets yet: ${path10}`);
|
|
5307
7243
|
}
|
|
5308
7244
|
}
|
|
5309
|
-
function
|
|
7245
|
+
function isRecord3(input) {
|
|
5310
7246
|
return typeof input === "object" && input !== null && !Array.isArray(input);
|
|
5311
7247
|
}
|
|
5312
7248
|
function formatError4(error) {
|
|
@@ -5314,10 +7250,10 @@ function formatError4(error) {
|
|
|
5314
7250
|
}
|
|
5315
7251
|
|
|
5316
7252
|
// node_modules/.cache/mpgd-native-build/tools/target/schemas.js
|
|
5317
|
-
import * as
|
|
5318
|
-
import * as
|
|
5319
|
-
import
|
|
5320
|
-
var
|
|
7253
|
+
import * as _assertGuard_16 from "typia/lib/internal/_assertGuard";
|
|
7254
|
+
import * as _accessExpressionAsString_17 from "typia/lib/internal/_accessExpressionAsString";
|
|
7255
|
+
import typia8 from "typia";
|
|
7256
|
+
var __typia_transform__accessExpressionAsString3 = _accessExpressionAsString_17._accessExpressionAsString;
|
|
5321
7257
|
var assertPlatformTargetsConfig = /* @__PURE__ */ (() => {
|
|
5322
7258
|
const _ip0 = (input) => void 0 === input["assetPacks"] || "object" === typeof input["assetPacks"] && null !== input["assetPacks"] && _io3(input["assetPacks"]);
|
|
5323
7259
|
const _ip1 = (input) => "string" === typeof input["gameApp"];
|
|
@@ -5329,75 +7265,75 @@ var assertPlatformTargetsConfig = /* @__PURE__ */ (() => {
|
|
|
5329
7265
|
const _ip7 = (input) => "string" === typeof input["wrapperApp"];
|
|
5330
7266
|
const _ip8 = (input) => "string" === typeof input["webDir"];
|
|
5331
7267
|
const _ip9 = (input) => "string" === typeof input["output"];
|
|
5332
|
-
const _ap0 = (input, _path, _exceptionable = true) => void 0 === input["assetPacks"] || ("object" === typeof input["assetPacks"] && null !== input["assetPacks"] ||
|
|
7268
|
+
const _ap0 = (input, _path, _exceptionable = true) => void 0 === input["assetPacks"] || ("object" === typeof input["assetPacks"] && null !== input["assetPacks"] || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5333
7269
|
method: "typia.createAssert",
|
|
5334
7270
|
path: _path + ".assetPacks",
|
|
5335
7271
|
expected: "(AssetPackTargetPolicy | undefined)",
|
|
5336
7272
|
value: input["assetPacks"]
|
|
5337
|
-
}, _errorFactory)) && _ao3(input["assetPacks"], _path + ".assetPacks", _exceptionable) ||
|
|
7273
|
+
}, _errorFactory)) && _ao3(input["assetPacks"], _path + ".assetPacks", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5338
7274
|
method: "typia.createAssert",
|
|
5339
7275
|
path: _path + ".assetPacks",
|
|
5340
7276
|
expected: "(AssetPackTargetPolicy | undefined)",
|
|
5341
7277
|
value: input["assetPacks"]
|
|
5342
7278
|
}, _errorFactory);
|
|
5343
|
-
const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["gameApp"] ||
|
|
7279
|
+
const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["gameApp"] || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5344
7280
|
method: "typia.createAssert",
|
|
5345
7281
|
path: _path + ".gameApp",
|
|
5346
7282
|
expected: "string",
|
|
5347
7283
|
value: input["gameApp"]
|
|
5348
7284
|
}, _errorFactory);
|
|
5349
|
-
const _ap2 = (input, _path, _exceptionable = true) => "string" === typeof input["adapter"] ||
|
|
7285
|
+
const _ap2 = (input, _path, _exceptionable = true) => "string" === typeof input["adapter"] || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5350
7286
|
method: "typia.createAssert",
|
|
5351
7287
|
path: _path + ".adapter",
|
|
5352
7288
|
expected: "string",
|
|
5353
7289
|
value: input["adapter"]
|
|
5354
7290
|
}, _errorFactory);
|
|
5355
|
-
const _ap3 = (input, _path, _exceptionable = true) => void 0 === input["metadata"] || ("object" === typeof input["metadata"] && null !== input["metadata"] && false === Array.isArray(input["metadata"]) ||
|
|
7291
|
+
const _ap3 = (input, _path, _exceptionable = true) => void 0 === input["metadata"] || ("object" === typeof input["metadata"] && null !== input["metadata"] && false === Array.isArray(input["metadata"]) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5356
7292
|
method: "typia.createAssert",
|
|
5357
7293
|
path: _path + ".metadata",
|
|
5358
7294
|
expected: "(TargetReleaseMetadata | undefined)",
|
|
5359
7295
|
value: input["metadata"]
|
|
5360
|
-
}, _errorFactory)) && _ao5(input["metadata"], _path + ".metadata", _exceptionable) ||
|
|
7296
|
+
}, _errorFactory)) && _ao5(input["metadata"], _path + ".metadata", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5361
7297
|
method: "typia.createAssert",
|
|
5362
7298
|
path: _path + ".metadata",
|
|
5363
7299
|
expected: "(TargetReleaseMetadata | undefined)",
|
|
5364
7300
|
value: input["metadata"]
|
|
5365
7301
|
}, _errorFactory);
|
|
5366
|
-
const _ap4 = (input, _path, _exceptionable = true) => void 0 === input["authoritativeGameServices"] || "boolean" === typeof input["authoritativeGameServices"] ||
|
|
7302
|
+
const _ap4 = (input, _path, _exceptionable = true) => void 0 === input["authoritativeGameServices"] || "boolean" === typeof input["authoritativeGameServices"] || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5367
7303
|
method: "typia.createAssert",
|
|
5368
7304
|
path: _path + ".authoritativeGameServices",
|
|
5369
7305
|
expected: "(boolean | undefined)",
|
|
5370
7306
|
value: input["authoritativeGameServices"]
|
|
5371
7307
|
}, _errorFactory);
|
|
5372
|
-
const _ap5 = (input, _path, _exceptionable = true) => void 0 === input["integrations"] || ("object" === typeof input["integrations"] && null !== input["integrations"] && false === Array.isArray(input["integrations"]) ||
|
|
7308
|
+
const _ap5 = (input, _path, _exceptionable = true) => void 0 === input["integrations"] || ("object" === typeof input["integrations"] && null !== input["integrations"] && false === Array.isArray(input["integrations"]) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5373
7309
|
method: "typia.createAssert",
|
|
5374
7310
|
path: _path + ".integrations",
|
|
5375
7311
|
expected: "(Partial<TargetIntegrationConfig> | undefined)",
|
|
5376
7312
|
value: input["integrations"]
|
|
5377
|
-
}, _errorFactory)) && _ao6(input["integrations"], _path + ".integrations", _exceptionable) ||
|
|
7313
|
+
}, _errorFactory)) && _ao6(input["integrations"], _path + ".integrations", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5378
7314
|
method: "typia.createAssert",
|
|
5379
7315
|
path: _path + ".integrations",
|
|
5380
7316
|
expected: "(Partial<TargetIntegrationConfig> | undefined)",
|
|
5381
7317
|
value: input["integrations"]
|
|
5382
7318
|
}, _errorFactory);
|
|
5383
|
-
const _ap6 = (input, _path, _exceptionable = true) => void 0 === input["icon"] || ("object" === typeof input["icon"] && null !== input["icon"] && false === Array.isArray(input["icon"]) ||
|
|
7319
|
+
const _ap6 = (input, _path, _exceptionable = true) => void 0 === input["icon"] || ("object" === typeof input["icon"] && null !== input["icon"] && false === Array.isArray(input["icon"]) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5384
7320
|
method: "typia.createAssert",
|
|
5385
7321
|
path: _path + ".icon",
|
|
5386
7322
|
expected: "(TargetIconConfig | undefined)",
|
|
5387
7323
|
value: input["icon"]
|
|
5388
|
-
}, _errorFactory)) && _ao7(input["icon"], _path + ".icon", _exceptionable) ||
|
|
7324
|
+
}, _errorFactory)) && _ao7(input["icon"], _path + ".icon", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5389
7325
|
method: "typia.createAssert",
|
|
5390
7326
|
path: _path + ".icon",
|
|
5391
7327
|
expected: "(TargetIconConfig | undefined)",
|
|
5392
7328
|
value: input["icon"]
|
|
5393
7329
|
}, _errorFactory);
|
|
5394
|
-
const _ap7 = (input, _path, _exceptionable = true) => "string" === typeof input["wrapperApp"] ||
|
|
7330
|
+
const _ap7 = (input, _path, _exceptionable = true) => "string" === typeof input["wrapperApp"] || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5395
7331
|
method: "typia.createAssert",
|
|
5396
7332
|
path: _path + ".wrapperApp",
|
|
5397
7333
|
expected: "string",
|
|
5398
7334
|
value: input["wrapperApp"]
|
|
5399
7335
|
}, _errorFactory);
|
|
5400
|
-
const _ap8 = (input, _path, _exceptionable = true) => "string" === typeof input["webDir"] ||
|
|
7336
|
+
const _ap8 = (input, _path, _exceptionable = true) => "string" === typeof input["webDir"] || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5401
7337
|
method: "typia.createAssert",
|
|
5402
7338
|
path: _path + ".webDir",
|
|
5403
7339
|
expected: "string",
|
|
@@ -5405,18 +7341,18 @@ var assertPlatformTargetsConfig = /* @__PURE__ */ (() => {
|
|
|
5405
7341
|
}, _errorFactory);
|
|
5406
7342
|
const _ae0 = '("action-required" | "approval-required" | "available" | "configuration-required" | "disabled" | "temporarily-unavailable" | "unsupported" | undefined)';
|
|
5407
7343
|
const _ae1 = "(undefined | { readonly maskable?: string; readonly androidForeground?: string; readonly monochrome?: string; readonly background?: string; })";
|
|
5408
|
-
const _ap9 = (input, _path, _exceptionable = true) => "string" === typeof input["output"] ||
|
|
7344
|
+
const _ap9 = (input, _path, _exceptionable = true) => "string" === typeof input["output"] || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5409
7345
|
method: "typia.createAssert",
|
|
5410
7346
|
path: _path + ".output",
|
|
5411
7347
|
expected: "string",
|
|
5412
7348
|
value: input["output"]
|
|
5413
7349
|
}, _errorFactory);
|
|
5414
|
-
const _ao0 = (input, _path, _exceptionable = true) => ("object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) ||
|
|
7350
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5415
7351
|
method: "typia.createAssert",
|
|
5416
7352
|
path: _path + ".targets",
|
|
5417
7353
|
expected: "Record<string, PlatformTargetConfig>",
|
|
5418
7354
|
value: input.targets
|
|
5419
|
-
}, _errorFactory)) && _ao1(input.targets, _path + ".targets", _exceptionable) ||
|
|
7355
|
+
}, _errorFactory)) && _ao1(input.targets, _path + ".targets", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5420
7356
|
method: "typia.createAssert",
|
|
5421
7357
|
path: _path + ".targets",
|
|
5422
7358
|
expected: "Record<string, PlatformTargetConfig>",
|
|
@@ -5426,190 +7362,241 @@ var assertPlatformTargetsConfig = /* @__PURE__ */ (() => {
|
|
|
5426
7362
|
const value = input[key];
|
|
5427
7363
|
if (void 0 === value)
|
|
5428
7364
|
return true;
|
|
5429
|
-
return ("object" === typeof value && null !== value ||
|
|
7365
|
+
return ("object" === typeof value && null !== value || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5430
7366
|
method: "typia.createAssert",
|
|
5431
|
-
path: _path +
|
|
7367
|
+
path: _path + __typia_transform__accessExpressionAsString3(key),
|
|
5432
7368
|
expected: "(AppsInTossTargetConfig | CapacitorTargetConfig | DevvitTargetConfig | MiniGameTargetConfig | WebTargetConfig)",
|
|
5433
7369
|
value
|
|
5434
|
-
}, _errorFactory)) && _au0(value, _path +
|
|
7370
|
+
}, _errorFactory)) && _au0(value, _path + __typia_transform__accessExpressionAsString3(key), _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5435
7371
|
method: "typia.createAssert",
|
|
5436
|
-
path: _path +
|
|
7372
|
+
path: _path + __typia_transform__accessExpressionAsString3(key),
|
|
5437
7373
|
expected: "(AppsInTossTargetConfig | CapacitorTargetConfig | DevvitTargetConfig | MiniGameTargetConfig | WebTargetConfig)",
|
|
5438
7374
|
value
|
|
5439
7375
|
}, _errorFactory);
|
|
5440
7376
|
});
|
|
5441
|
-
const _ao10 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && _ap4(input, _path, _exceptionable) && _ap5(input, _path, _exceptionable) && _ap6(input, _path, _exceptionable) && ("capacitor-android" === input.kind || "capacitor-ios" === input.kind ||
|
|
7377
|
+
const _ao10 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && _ap4(input, _path, _exceptionable) && _ap5(input, _path, _exceptionable) && _ap6(input, _path, _exceptionable) && ("capacitor-android" === input.kind || "capacitor-ios" === input.kind || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5442
7378
|
method: "typia.createAssert",
|
|
5443
7379
|
path: _path + ".kind",
|
|
5444
7380
|
expected: '("capacitor-android" | "capacitor-ios")',
|
|
5445
7381
|
value: input.kind
|
|
5446
|
-
}, _errorFactory)) && ("string" === typeof input.shellApp ||
|
|
7382
|
+
}, _errorFactory)) && ("string" === typeof input.shellApp || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5447
7383
|
method: "typia.createAssert",
|
|
5448
7384
|
path: _path + ".shellApp",
|
|
5449
7385
|
expected: "string",
|
|
5450
7386
|
value: input.shellApp
|
|
5451
|
-
}, _errorFactory)) && _ap8(input, _path, _exceptionable) && ("aab" === input.artifact || "apk" === input.artifact || "ipa" === input.artifact ||
|
|
7387
|
+
}, _errorFactory)) && _ap8(input, _path, _exceptionable) && ("aab" === input.artifact || "apk" === input.artifact || "ipa" === input.artifact || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5452
7388
|
method: "typia.createAssert",
|
|
5453
7389
|
path: _path + ".artifact",
|
|
5454
7390
|
expected: '("aab" | "apk" | "ipa")',
|
|
5455
7391
|
value: input.artifact
|
|
5456
7392
|
}, _errorFactory));
|
|
5457
|
-
const _ao11 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && _ap4(input, _path, _exceptionable) && _ap5(input, _path, _exceptionable) && _ap6(input, _path, _exceptionable) && ("devvit-web" === input.kind ||
|
|
7393
|
+
const _ao11 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && _ap4(input, _path, _exceptionable) && _ap5(input, _path, _exceptionable) && _ap6(input, _path, _exceptionable) && ("devvit-web" === input.kind || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5458
7394
|
method: "typia.createAssert",
|
|
5459
7395
|
path: _path + ".kind",
|
|
5460
7396
|
expected: '"devvit-web"',
|
|
5461
7397
|
value: input.kind
|
|
5462
|
-
}, _errorFactory)) && _ap7(input, _path, _exceptionable) && _ap8(input, _path, _exceptionable) && ("devvit" === input.artifact ||
|
|
7398
|
+
}, _errorFactory)) && _ap7(input, _path, _exceptionable) && _ap8(input, _path, _exceptionable) && ("devvit" === input.artifact || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5463
7399
|
method: "typia.createAssert",
|
|
5464
7400
|
path: _path + ".artifact",
|
|
5465
7401
|
expected: '"devvit"',
|
|
5466
7402
|
value: input.artifact
|
|
7403
|
+
}, _errorFactory)) && (void 0 === input.inlineEntry || "string" === typeof input.inlineEntry || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7404
|
+
method: "typia.createAssert",
|
|
7405
|
+
path: _path + ".inlineEntry",
|
|
7406
|
+
expected: "(string | undefined)",
|
|
7407
|
+
value: input.inlineEntry
|
|
7408
|
+
}, _errorFactory)) && (void 0 === input.inlineBudget || ("object" === typeof input.inlineBudget && null !== input.inlineBudget && false === Array.isArray(input.inlineBudget) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7409
|
+
method: "typia.createAssert",
|
|
7410
|
+
path: _path + ".inlineBudget",
|
|
7411
|
+
expected: "(DevvitInlineBudget | undefined)",
|
|
7412
|
+
value: input.inlineBudget
|
|
7413
|
+
}, _errorFactory)) && _ao12(input.inlineBudget, _path + ".inlineBudget", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7414
|
+
method: "typia.createAssert",
|
|
7415
|
+
path: _path + ".inlineBudget",
|
|
7416
|
+
expected: "(DevvitInlineBudget | undefined)",
|
|
7417
|
+
value: input.inlineBudget
|
|
7418
|
+
}, _errorFactory));
|
|
7419
|
+
const _ao12 = (input, _path, _exceptionable = true) => (void 0 === input.maxGzipKb || "number" === typeof input.maxGzipKb || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7420
|
+
method: "typia.createAssert",
|
|
7421
|
+
path: _path + ".maxGzipKb",
|
|
7422
|
+
expected: "(number | undefined)",
|
|
7423
|
+
value: input.maxGzipKb
|
|
7424
|
+
}, _errorFactory)) && (void 0 === input.forbidModules || (Array.isArray(input.forbidModules) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7425
|
+
method: "typia.createAssert",
|
|
7426
|
+
path: _path + ".forbidModules",
|
|
7427
|
+
expected: "(ReadonlyArray<string> | undefined)",
|
|
7428
|
+
value: input.forbidModules
|
|
7429
|
+
}, _errorFactory)) && input.forbidModules.every((elem, _index6) => "string" === typeof elem || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7430
|
+
method: "typia.createAssert",
|
|
7431
|
+
path: _path + ".forbidModules[" + _index6 + "]",
|
|
7432
|
+
expected: "string",
|
|
7433
|
+
value: elem
|
|
7434
|
+
}, _errorFactory)) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7435
|
+
method: "typia.createAssert",
|
|
7436
|
+
path: _path + ".forbidModules",
|
|
7437
|
+
expected: "(ReadonlyArray<string> | undefined)",
|
|
7438
|
+
value: input.forbidModules
|
|
7439
|
+
}, _errorFactory)) && (void 0 === input.deferredChunks || (Array.isArray(input.deferredChunks) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7440
|
+
method: "typia.createAssert",
|
|
7441
|
+
path: _path + ".deferredChunks",
|
|
7442
|
+
expected: "(ReadonlyArray<string> | undefined)",
|
|
7443
|
+
value: input.deferredChunks
|
|
7444
|
+
}, _errorFactory)) && input.deferredChunks.every((elem, _index7) => "string" === typeof elem || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7445
|
+
method: "typia.createAssert",
|
|
7446
|
+
path: _path + ".deferredChunks[" + _index7 + "]",
|
|
7447
|
+
expected: "string",
|
|
7448
|
+
value: elem
|
|
7449
|
+
}, _errorFactory)) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
7450
|
+
method: "typia.createAssert",
|
|
7451
|
+
path: _path + ".deferredChunks",
|
|
7452
|
+
expected: "(ReadonlyArray<string> | undefined)",
|
|
7453
|
+
value: input.deferredChunks
|
|
5467
7454
|
}, _errorFactory));
|
|
5468
|
-
const
|
|
7455
|
+
const _ao13 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && _ap4(input, _path, _exceptionable) && _ap5(input, _path, _exceptionable) && _ap6(input, _path, _exceptionable) && ("tiktok-minigame" === input.kind || "wechat-minigame" === input.kind || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5469
7456
|
method: "typia.createAssert",
|
|
5470
7457
|
path: _path + ".kind",
|
|
5471
7458
|
expected: '("tiktok-minigame" | "wechat-minigame")',
|
|
5472
7459
|
value: input.kind
|
|
5473
|
-
}, _errorFactory)) && _ap9(input, _path, _exceptionable) && ("canvas" === input.renderer ||
|
|
7460
|
+
}, _errorFactory)) && _ap9(input, _path, _exceptionable) && ("canvas" === input.renderer || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5474
7461
|
method: "typia.createAssert",
|
|
5475
7462
|
path: _path + ".renderer",
|
|
5476
7463
|
expected: '"canvas"',
|
|
5477
7464
|
value: input.renderer
|
|
5478
|
-
}, _errorFactory)) && ("landscape" === input.orientation || "portrait" === input.orientation ||
|
|
7465
|
+
}, _errorFactory)) && ("landscape" === input.orientation || "portrait" === input.orientation || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5479
7466
|
method: "typia.createAssert",
|
|
5480
7467
|
path: _path + ".orientation",
|
|
5481
7468
|
expected: '("landscape" | "portrait")',
|
|
5482
7469
|
value: input.orientation
|
|
5483
|
-
}, _errorFactory)) && (true === input.experimental ||
|
|
7470
|
+
}, _errorFactory)) && (true === input.experimental || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5484
7471
|
method: "typia.createAssert",
|
|
5485
7472
|
path: _path + ".experimental",
|
|
5486
7473
|
expected: "true",
|
|
5487
7474
|
value: input.experimental
|
|
5488
|
-
}, _errorFactory)) && (void 0 === input.remoteAssetOrigins || (Array.isArray(input.remoteAssetOrigins) ||
|
|
7475
|
+
}, _errorFactory)) && (void 0 === input.remoteAssetOrigins || (Array.isArray(input.remoteAssetOrigins) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5489
7476
|
method: "typia.createAssert",
|
|
5490
7477
|
path: _path + ".remoteAssetOrigins",
|
|
5491
7478
|
expected: "(ReadonlyArray<string> | undefined)",
|
|
5492
7479
|
value: input.remoteAssetOrigins
|
|
5493
|
-
}, _errorFactory)) && input.remoteAssetOrigins.every((elem,
|
|
7480
|
+
}, _errorFactory)) && input.remoteAssetOrigins.every((elem, _index8) => "string" === typeof elem || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5494
7481
|
method: "typia.createAssert",
|
|
5495
|
-
path: _path + ".remoteAssetOrigins[" +
|
|
7482
|
+
path: _path + ".remoteAssetOrigins[" + _index8 + "]",
|
|
5496
7483
|
expected: "string",
|
|
5497
7484
|
value: elem
|
|
5498
|
-
}, _errorFactory)) ||
|
|
7485
|
+
}, _errorFactory)) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5499
7486
|
method: "typia.createAssert",
|
|
5500
7487
|
path: _path + ".remoteAssetOrigins",
|
|
5501
7488
|
expected: "(ReadonlyArray<string> | undefined)",
|
|
5502
7489
|
value: input.remoteAssetOrigins
|
|
5503
|
-
}, _errorFactory)) && (("object" === typeof input.packageBudget && null !== input.packageBudget ||
|
|
7490
|
+
}, _errorFactory)) && (("object" === typeof input.packageBudget && null !== input.packageBudget || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5504
7491
|
method: "typia.createAssert",
|
|
5505
7492
|
path: _path + ".packageBudget",
|
|
5506
7493
|
expected: "MiniGamePackageBudget",
|
|
5507
7494
|
value: input.packageBudget
|
|
5508
|
-
}, _errorFactory)) &&
|
|
7495
|
+
}, _errorFactory)) && _ao14(input.packageBudget, _path + ".packageBudget", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5509
7496
|
method: "typia.createAssert",
|
|
5510
7497
|
path: _path + ".packageBudget",
|
|
5511
7498
|
expected: "MiniGamePackageBudget",
|
|
5512
7499
|
value: input.packageBudget
|
|
5513
7500
|
}, _errorFactory));
|
|
5514
|
-
const
|
|
7501
|
+
const _ao14 = (input, _path, _exceptionable = true) => ("number" === typeof input.mainBytes || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5515
7502
|
method: "typia.createAssert",
|
|
5516
7503
|
path: _path + ".mainBytes",
|
|
5517
7504
|
expected: "number",
|
|
5518
7505
|
value: input.mainBytes
|
|
5519
|
-
}, _errorFactory)) && ("number" === typeof input.totalBytes ||
|
|
7506
|
+
}, _errorFactory)) && ("number" === typeof input.totalBytes || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5520
7507
|
method: "typia.createAssert",
|
|
5521
7508
|
path: _path + ".totalBytes",
|
|
5522
7509
|
expected: "number",
|
|
5523
7510
|
value: input.totalBytes
|
|
5524
|
-
}, _errorFactory)) && (void 0 === input.independentSubpackageBytes || "number" === typeof input.independentSubpackageBytes ||
|
|
7511
|
+
}, _errorFactory)) && (void 0 === input.independentSubpackageBytes || "number" === typeof input.independentSubpackageBytes || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5525
7512
|
method: "typia.createAssert",
|
|
5526
7513
|
path: _path + ".independentSubpackageBytes",
|
|
5527
7514
|
expected: "(number | undefined)",
|
|
5528
7515
|
value: input.independentSubpackageBytes
|
|
5529
7516
|
}, _errorFactory));
|
|
5530
|
-
const
|
|
7517
|
+
const _ao15 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && _ap4(input, _path, _exceptionable) && _ap5(input, _path, _exceptionable) && _ap6(input, _path, _exceptionable) && ("web" === input.kind || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5531
7518
|
method: "typia.createAssert",
|
|
5532
7519
|
path: _path + ".kind",
|
|
5533
7520
|
expected: '"web"',
|
|
5534
7521
|
value: input.kind
|
|
5535
|
-
}, _errorFactory)) && _ap9(input, _path, _exceptionable) && (void 0 === input.installable || "boolean" === typeof input.installable ||
|
|
7522
|
+
}, _errorFactory)) && _ap9(input, _path, _exceptionable) && (void 0 === input.installable || "boolean" === typeof input.installable || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5536
7523
|
method: "typia.createAssert",
|
|
5537
7524
|
path: _path + ".installable",
|
|
5538
7525
|
expected: "(boolean | undefined)",
|
|
5539
7526
|
value: input.installable
|
|
5540
|
-
}, _errorFactory)) && (void 0 === input.crazyGamesLaunch || "basic" === input.crazyGamesLaunch || "full" === input.crazyGamesLaunch ||
|
|
7527
|
+
}, _errorFactory)) && (void 0 === input.crazyGamesLaunch || "basic" === input.crazyGamesLaunch || "full" === input.crazyGamesLaunch || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5541
7528
|
method: "typia.createAssert",
|
|
5542
7529
|
path: _path + ".crazyGamesLaunch",
|
|
5543
7530
|
expected: '("basic" | "full" | undefined)',
|
|
5544
7531
|
value: input.crazyGamesLaunch
|
|
5545
|
-
}, _errorFactory)) && (void 0 === input.staticDir || "string" === typeof input.staticDir ||
|
|
7532
|
+
}, _errorFactory)) && (void 0 === input.staticDir || "string" === typeof input.staticDir || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5546
7533
|
method: "typia.createAssert",
|
|
5547
7534
|
path: _path + ".staticDir",
|
|
5548
7535
|
expected: "(string | undefined)",
|
|
5549
7536
|
value: input.staticDir
|
|
5550
7537
|
}, _errorFactory));
|
|
5551
|
-
const _ao2 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && _ap4(input, _path, _exceptionable) && _ap5(input, _path, _exceptionable) && _ap6(input, _path, _exceptionable) && ("apps-in-toss" === input.kind ||
|
|
7538
|
+
const _ao2 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && _ap4(input, _path, _exceptionable) && _ap5(input, _path, _exceptionable) && _ap6(input, _path, _exceptionable) && ("apps-in-toss" === input.kind || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5552
7539
|
method: "typia.createAssert",
|
|
5553
7540
|
path: _path + ".kind",
|
|
5554
7541
|
expected: '"apps-in-toss"',
|
|
5555
7542
|
value: input.kind
|
|
5556
|
-
}, _errorFactory)) && _ap7(input, _path, _exceptionable) && _ap8(input, _path, _exceptionable) && (".ait" === input.artifact ||
|
|
7543
|
+
}, _errorFactory)) && _ap7(input, _path, _exceptionable) && _ap8(input, _path, _exceptionable) && (".ait" === input.artifact || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5557
7544
|
method: "typia.createAssert",
|
|
5558
7545
|
path: _path + ".artifact",
|
|
5559
7546
|
expected: '".ait"',
|
|
5560
7547
|
value: input.artifact
|
|
5561
|
-
}, _errorFactory)) && (void 0 === input.navigationBar || ("object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) ||
|
|
7548
|
+
}, _errorFactory)) && (void 0 === input.navigationBar || ("object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5562
7549
|
method: "typia.createAssert",
|
|
5563
7550
|
path: _path + ".navigationBar",
|
|
5564
7551
|
expected: "(AppsInTossNavigationBarConfig | undefined)",
|
|
5565
7552
|
value: input.navigationBar
|
|
5566
|
-
}, _errorFactory)) && _ao9(input.navigationBar, _path + ".navigationBar", _exceptionable) ||
|
|
7553
|
+
}, _errorFactory)) && _ao9(input.navigationBar, _path + ".navigationBar", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5567
7554
|
method: "typia.createAssert",
|
|
5568
7555
|
path: _path + ".navigationBar",
|
|
5569
7556
|
expected: "(AppsInTossNavigationBarConfig | undefined)",
|
|
5570
7557
|
value: input.navigationBar
|
|
5571
7558
|
}, _errorFactory));
|
|
5572
|
-
const _ao3 = (input, _path, _exceptionable = true) => ("packaged" === input.defaultLocation || "remote" === input.defaultLocation ||
|
|
7559
|
+
const _ao3 = (input, _path, _exceptionable = true) => ("packaged" === input.defaultLocation || "remote" === input.defaultLocation || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5573
7560
|
method: "typia.createAssert",
|
|
5574
7561
|
path: _path + ".defaultLocation",
|
|
5575
7562
|
expected: '("packaged" | "remote")',
|
|
5576
7563
|
value: input.defaultLocation
|
|
5577
|
-
}, _errorFactory)) && (void 0 === input.packs || ("object" === typeof input.packs && null !== input.packs && false === Array.isArray(input.packs) ||
|
|
7564
|
+
}, _errorFactory)) && (void 0 === input.packs || ("object" === typeof input.packs && null !== input.packs && false === Array.isArray(input.packs) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5578
7565
|
method: "typia.createAssert",
|
|
5579
7566
|
path: _path + ".packs",
|
|
5580
7567
|
expected: "(Readonly<Record<string, AssetPackLocation>> | undefined)",
|
|
5581
7568
|
value: input.packs
|
|
5582
|
-
}, _errorFactory)) && _ao4(input.packs, _path + ".packs", _exceptionable) ||
|
|
7569
|
+
}, _errorFactory)) && _ao4(input.packs, _path + ".packs", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5583
7570
|
method: "typia.createAssert",
|
|
5584
7571
|
path: _path + ".packs",
|
|
5585
7572
|
expected: "(Readonly<Record<string, AssetPackLocation>> | undefined)",
|
|
5586
7573
|
value: input.packs
|
|
5587
|
-
}, _errorFactory)) && (void 0 === input.offlineRequired || (Array.isArray(input.offlineRequired) ||
|
|
7574
|
+
}, _errorFactory)) && (void 0 === input.offlineRequired || (Array.isArray(input.offlineRequired) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5588
7575
|
method: "typia.createAssert",
|
|
5589
7576
|
path: _path + ".offlineRequired",
|
|
5590
7577
|
expected: "(ReadonlyArray<string> | undefined)",
|
|
5591
7578
|
value: input.offlineRequired
|
|
5592
|
-
}, _errorFactory)) && input.offlineRequired.every((elem,
|
|
7579
|
+
}, _errorFactory)) && input.offlineRequired.every((elem, _index5) => "string" === typeof elem || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5593
7580
|
method: "typia.createAssert",
|
|
5594
|
-
path: _path + ".offlineRequired[" +
|
|
7581
|
+
path: _path + ".offlineRequired[" + _index5 + "]",
|
|
5595
7582
|
expected: "string",
|
|
5596
7583
|
value: elem
|
|
5597
|
-
}, _errorFactory)) ||
|
|
7584
|
+
}, _errorFactory)) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5598
7585
|
method: "typia.createAssert",
|
|
5599
7586
|
path: _path + ".offlineRequired",
|
|
5600
7587
|
expected: "(ReadonlyArray<string> | undefined)",
|
|
5601
7588
|
value: input.offlineRequired
|
|
5602
|
-
}, _errorFactory)) && (void 0 === input.remoteBaseUrl || "string" === typeof input.remoteBaseUrl ||
|
|
7589
|
+
}, _errorFactory)) && (void 0 === input.remoteBaseUrl || "string" === typeof input.remoteBaseUrl || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5603
7590
|
method: "typia.createAssert",
|
|
5604
7591
|
path: _path + ".remoteBaseUrl",
|
|
5605
7592
|
expected: "(string | undefined)",
|
|
5606
7593
|
value: input.remoteBaseUrl
|
|
5607
|
-
}, _errorFactory)) && (void 0 === input.maxPackagedBytes || "number" === typeof input.maxPackagedBytes ||
|
|
7594
|
+
}, _errorFactory)) && (void 0 === input.maxPackagedBytes || "number" === typeof input.maxPackagedBytes || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5608
7595
|
method: "typia.createAssert",
|
|
5609
7596
|
path: _path + ".maxPackagedBytes",
|
|
5610
7597
|
expected: "(number | undefined)",
|
|
5611
7598
|
value: input.maxPackagedBytes
|
|
5612
|
-
}, _errorFactory)) && ("string" === typeof input.buildConfig ||
|
|
7599
|
+
}, _errorFactory)) && ("string" === typeof input.buildConfig || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5613
7600
|
method: "typia.createAssert",
|
|
5614
7601
|
path: _path + ".buildConfig",
|
|
5615
7602
|
expected: "string",
|
|
@@ -5619,148 +7606,148 @@ var assertPlatformTargetsConfig = /* @__PURE__ */ (() => {
|
|
|
5619
7606
|
const value = input[key];
|
|
5620
7607
|
if (void 0 === value)
|
|
5621
7608
|
return true;
|
|
5622
|
-
return "packaged" === value || "remote" === value ||
|
|
7609
|
+
return "packaged" === value || "remote" === value || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5623
7610
|
method: "typia.createAssert",
|
|
5624
|
-
path: _path +
|
|
7611
|
+
path: _path + __typia_transform__accessExpressionAsString3(key),
|
|
5625
7612
|
expected: '("packaged" | "remote")',
|
|
5626
7613
|
value
|
|
5627
7614
|
}, _errorFactory);
|
|
5628
7615
|
});
|
|
5629
|
-
const _ao5 = (input, _path, _exceptionable = true) => (void 0 === input.appName || "string" === typeof input.appName ||
|
|
7616
|
+
const _ao5 = (input, _path, _exceptionable = true) => (void 0 === input.appName || "string" === typeof input.appName || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5630
7617
|
method: "typia.createAssert",
|
|
5631
7618
|
path: _path + ".appName",
|
|
5632
7619
|
expected: "(string | undefined)",
|
|
5633
7620
|
value: input.appName
|
|
5634
|
-
}, _errorFactory)) && (void 0 === input.displayName || "string" === typeof input.displayName ||
|
|
7621
|
+
}, _errorFactory)) && (void 0 === input.displayName || "string" === typeof input.displayName || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5635
7622
|
method: "typia.createAssert",
|
|
5636
7623
|
path: _path + ".displayName",
|
|
5637
7624
|
expected: "(string | undefined)",
|
|
5638
7625
|
value: input.displayName
|
|
5639
|
-
}, _errorFactory)) && (void 0 === input.primaryColor || "string" === typeof input.primaryColor ||
|
|
7626
|
+
}, _errorFactory)) && (void 0 === input.primaryColor || "string" === typeof input.primaryColor || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5640
7627
|
method: "typia.createAssert",
|
|
5641
7628
|
path: _path + ".primaryColor",
|
|
5642
7629
|
expected: "(string | undefined)",
|
|
5643
7630
|
value: input.primaryColor
|
|
5644
|
-
}, _errorFactory)) && (void 0 === input.packageId || "string" === typeof input.packageId ||
|
|
7631
|
+
}, _errorFactory)) && (void 0 === input.packageId || "string" === typeof input.packageId || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5645
7632
|
method: "typia.createAssert",
|
|
5646
7633
|
path: _path + ".packageId",
|
|
5647
7634
|
expected: "(string | undefined)",
|
|
5648
7635
|
value: input.packageId
|
|
5649
|
-
}, _errorFactory)) && (void 0 === input.bundleId || "string" === typeof input.bundleId ||
|
|
7636
|
+
}, _errorFactory)) && (void 0 === input.bundleId || "string" === typeof input.bundleId || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5650
7637
|
method: "typia.createAssert",
|
|
5651
7638
|
path: _path + ".bundleId",
|
|
5652
7639
|
expected: "(string | undefined)",
|
|
5653
7640
|
value: input.bundleId
|
|
5654
|
-
}, _errorFactory)) && (void 0 === input.sdkMajor || "number" === typeof input.sdkMajor ||
|
|
7641
|
+
}, _errorFactory)) && (void 0 === input.sdkMajor || "number" === typeof input.sdkMajor || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5655
7642
|
method: "typia.createAssert",
|
|
5656
7643
|
path: _path + ".sdkMajor",
|
|
5657
7644
|
expected: "(number | undefined)",
|
|
5658
7645
|
value: input.sdkMajor
|
|
5659
7646
|
}, _errorFactory));
|
|
5660
|
-
const _ao6 = (input, _path, _exceptionable = true) => (void 0 === input.identityUpgrade || "action-required" === input.identityUpgrade || "approval-required" === input.identityUpgrade || "available" === input.identityUpgrade || "configuration-required" === input.identityUpgrade || "disabled" === input.identityUpgrade || "temporarily-unavailable" === input.identityUpgrade || "unsupported" === input.identityUpgrade ||
|
|
7647
|
+
const _ao6 = (input, _path, _exceptionable = true) => (void 0 === input.identityUpgrade || "action-required" === input.identityUpgrade || "approval-required" === input.identityUpgrade || "available" === input.identityUpgrade || "configuration-required" === input.identityUpgrade || "disabled" === input.identityUpgrade || "temporarily-unavailable" === input.identityUpgrade || "unsupported" === input.identityUpgrade || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5661
7648
|
method: "typia.createAssert",
|
|
5662
7649
|
path: _path + ".identityUpgrade",
|
|
5663
7650
|
expected: _ae0,
|
|
5664
7651
|
value: input.identityUpgrade
|
|
5665
|
-
}, _errorFactory)) && (void 0 === input.presentation || "action-required" === input.presentation || "approval-required" === input.presentation || "available" === input.presentation || "configuration-required" === input.presentation || "disabled" === input.presentation || "temporarily-unavailable" === input.presentation || "unsupported" === input.presentation ||
|
|
7652
|
+
}, _errorFactory)) && (void 0 === input.presentation || "action-required" === input.presentation || "approval-required" === input.presentation || "available" === input.presentation || "configuration-required" === input.presentation || "disabled" === input.presentation || "temporarily-unavailable" === input.presentation || "unsupported" === input.presentation || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5666
7653
|
method: "typia.createAssert",
|
|
5667
7654
|
path: _path + ".presentation",
|
|
5668
7655
|
expected: _ae0,
|
|
5669
7656
|
value: input.presentation
|
|
5670
|
-
}, _errorFactory)) && (void 0 === input.sharing || "action-required" === input.sharing || "approval-required" === input.sharing || "available" === input.sharing || "configuration-required" === input.sharing || "disabled" === input.sharing || "temporarily-unavailable" === input.sharing || "unsupported" === input.sharing ||
|
|
7657
|
+
}, _errorFactory)) && (void 0 === input.sharing || "action-required" === input.sharing || "approval-required" === input.sharing || "available" === input.sharing || "configuration-required" === input.sharing || "disabled" === input.sharing || "temporarily-unavailable" === input.sharing || "unsupported" === input.sharing || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5671
7658
|
method: "typia.createAssert",
|
|
5672
7659
|
path: _path + ".sharing",
|
|
5673
7660
|
expected: _ae0,
|
|
5674
7661
|
value: input.sharing
|
|
5675
|
-
}, _errorFactory)) && (void 0 === input.inboundShare || "action-required" === input.inboundShare || "approval-required" === input.inboundShare || "available" === input.inboundShare || "configuration-required" === input.inboundShare || "disabled" === input.inboundShare || "temporarily-unavailable" === input.inboundShare || "unsupported" === input.inboundShare ||
|
|
7662
|
+
}, _errorFactory)) && (void 0 === input.inboundShare || "action-required" === input.inboundShare || "approval-required" === input.inboundShare || "available" === input.inboundShare || "configuration-required" === input.inboundShare || "disabled" === input.inboundShare || "temporarily-unavailable" === input.inboundShare || "unsupported" === input.inboundShare || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5676
7663
|
method: "typia.createAssert",
|
|
5677
7664
|
path: _path + ".inboundShare",
|
|
5678
7665
|
expected: _ae0,
|
|
5679
7666
|
value: input.inboundShare
|
|
5680
|
-
}, _errorFactory)) && (void 0 === input.notifications || "action-required" === input.notifications || "approval-required" === input.notifications || "available" === input.notifications || "configuration-required" === input.notifications || "disabled" === input.notifications || "temporarily-unavailable" === input.notifications || "unsupported" === input.notifications ||
|
|
7667
|
+
}, _errorFactory)) && (void 0 === input.notifications || "action-required" === input.notifications || "approval-required" === input.notifications || "available" === input.notifications || "configuration-required" === input.notifications || "disabled" === input.notifications || "temporarily-unavailable" === input.notifications || "unsupported" === input.notifications || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5681
7668
|
method: "typia.createAssert",
|
|
5682
7669
|
path: _path + ".notifications",
|
|
5683
7670
|
expected: _ae0,
|
|
5684
7671
|
value: input.notifications
|
|
5685
|
-
}, _errorFactory)) && (void 0 === input.presentationMode || "fullscreen" === input.presentationMode || "inline-expanded" === input.presentationMode ||
|
|
7672
|
+
}, _errorFactory)) && (void 0 === input.presentationMode || "fullscreen" === input.presentationMode || "inline-expanded" === input.presentationMode || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5686
7673
|
method: "typia.createAssert",
|
|
5687
7674
|
path: _path + ".presentationMode",
|
|
5688
7675
|
expected: '("fullscreen" | "inline-expanded" | undefined)',
|
|
5689
7676
|
value: input.presentationMode
|
|
5690
7677
|
}, _errorFactory));
|
|
5691
|
-
const _ao7 = (input, _path, _exceptionable = true) => (void 0 === input.profile || "string" === typeof input.profile ||
|
|
7678
|
+
const _ao7 = (input, _path, _exceptionable = true) => (void 0 === input.profile || "string" === typeof input.profile || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5692
7679
|
method: "typia.createAssert",
|
|
5693
7680
|
path: _path + ".profile",
|
|
5694
7681
|
expected: "(string | undefined)",
|
|
5695
7682
|
value: input.profile
|
|
5696
|
-
}, _errorFactory)) && (void 0 === input.source || "string" === typeof input.source ||
|
|
7683
|
+
}, _errorFactory)) && (void 0 === input.source || "string" === typeof input.source || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5697
7684
|
method: "typia.createAssert",
|
|
5698
7685
|
path: _path + ".source",
|
|
5699
7686
|
expected: "(string | undefined)",
|
|
5700
7687
|
value: input.source
|
|
5701
|
-
}, _errorFactory)) && (void 0 === input.backgroundColor || "string" === typeof input.backgroundColor ||
|
|
7688
|
+
}, _errorFactory)) && (void 0 === input.backgroundColor || "string" === typeof input.backgroundColor || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5702
7689
|
method: "typia.createAssert",
|
|
5703
7690
|
path: _path + ".backgroundColor",
|
|
5704
7691
|
expected: "(string | undefined)",
|
|
5705
7692
|
value: input.backgroundColor
|
|
5706
|
-
}, _errorFactory)) && (void 0 === input.externalUrl || "string" === typeof input.externalUrl ||
|
|
7693
|
+
}, _errorFactory)) && (void 0 === input.externalUrl || "string" === typeof input.externalUrl || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5707
7694
|
method: "typia.createAssert",
|
|
5708
7695
|
path: _path + ".externalUrl",
|
|
5709
7696
|
expected: "(string | undefined)",
|
|
5710
7697
|
value: input.externalUrl
|
|
5711
|
-
}, _errorFactory)) && (void 0 === input.variants || ("object" === typeof input.variants && null !== input.variants && false === Array.isArray(input.variants) ||
|
|
7698
|
+
}, _errorFactory)) && (void 0 === input.variants || ("object" === typeof input.variants && null !== input.variants && false === Array.isArray(input.variants) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5712
7699
|
method: "typia.createAssert",
|
|
5713
7700
|
path: _path + ".variants",
|
|
5714
7701
|
expected: _ae1,
|
|
5715
7702
|
value: input.variants
|
|
5716
|
-
}, _errorFactory)) && _ao8(input.variants, _path + ".variants", _exceptionable) ||
|
|
7703
|
+
}, _errorFactory)) && _ao8(input.variants, _path + ".variants", _exceptionable) || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5717
7704
|
method: "typia.createAssert",
|
|
5718
7705
|
path: _path + ".variants",
|
|
5719
7706
|
expected: _ae1,
|
|
5720
7707
|
value: input.variants
|
|
5721
7708
|
}, _errorFactory));
|
|
5722
|
-
const _ao8 = (input, _path, _exceptionable = true) => (void 0 === input.maskable || "string" === typeof input.maskable ||
|
|
7709
|
+
const _ao8 = (input, _path, _exceptionable = true) => (void 0 === input.maskable || "string" === typeof input.maskable || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5723
7710
|
method: "typia.createAssert",
|
|
5724
7711
|
path: _path + ".maskable",
|
|
5725
7712
|
expected: "(string | undefined)",
|
|
5726
7713
|
value: input.maskable
|
|
5727
|
-
}, _errorFactory)) && (void 0 === input.androidForeground || "string" === typeof input.androidForeground ||
|
|
7714
|
+
}, _errorFactory)) && (void 0 === input.androidForeground || "string" === typeof input.androidForeground || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5728
7715
|
method: "typia.createAssert",
|
|
5729
7716
|
path: _path + ".androidForeground",
|
|
5730
7717
|
expected: "(string | undefined)",
|
|
5731
7718
|
value: input.androidForeground
|
|
5732
|
-
}, _errorFactory)) && (void 0 === input.monochrome || "string" === typeof input.monochrome ||
|
|
7719
|
+
}, _errorFactory)) && (void 0 === input.monochrome || "string" === typeof input.monochrome || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5733
7720
|
method: "typia.createAssert",
|
|
5734
7721
|
path: _path + ".monochrome",
|
|
5735
7722
|
expected: "(string | undefined)",
|
|
5736
7723
|
value: input.monochrome
|
|
5737
|
-
}, _errorFactory)) && (void 0 === input.background || "string" === typeof input.background ||
|
|
7724
|
+
}, _errorFactory)) && (void 0 === input.background || "string" === typeof input.background || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5738
7725
|
method: "typia.createAssert",
|
|
5739
7726
|
path: _path + ".background",
|
|
5740
7727
|
expected: "(string | undefined)",
|
|
5741
7728
|
value: input.background
|
|
5742
7729
|
}, _errorFactory));
|
|
5743
|
-
const _ao9 = (input, _path, _exceptionable = true) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton ||
|
|
7730
|
+
const _ao9 = (input, _path, _exceptionable = true) => (void 0 === input.withBackButton || "boolean" === typeof input.withBackButton || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5744
7731
|
method: "typia.createAssert",
|
|
5745
7732
|
path: _path + ".withBackButton",
|
|
5746
7733
|
expected: "(boolean | undefined)",
|
|
5747
7734
|
value: input.withBackButton
|
|
5748
|
-
}, _errorFactory)) && (void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton ||
|
|
7735
|
+
}, _errorFactory)) && (void 0 === input.withHomeButton || "boolean" === typeof input.withHomeButton || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5749
7736
|
method: "typia.createAssert",
|
|
5750
7737
|
path: _path + ".withHomeButton",
|
|
5751
7738
|
expected: "(boolean | undefined)",
|
|
5752
7739
|
value: input.withHomeButton
|
|
5753
|
-
}, _errorFactory)) && (void 0 === input.withTitle || "boolean" === typeof input.withTitle ||
|
|
7740
|
+
}, _errorFactory)) && (void 0 === input.withTitle || "boolean" === typeof input.withTitle || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5754
7741
|
method: "typia.createAssert",
|
|
5755
7742
|
path: _path + ".withTitle",
|
|
5756
7743
|
expected: "(boolean | undefined)",
|
|
5757
7744
|
value: input.withTitle
|
|
5758
|
-
}, _errorFactory)) && (void 0 === input.transparentBackground || "boolean" === typeof input.transparentBackground ||
|
|
7745
|
+
}, _errorFactory)) && (void 0 === input.transparentBackground || "boolean" === typeof input.transparentBackground || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5759
7746
|
method: "typia.createAssert",
|
|
5760
7747
|
path: _path + ".transparentBackground",
|
|
5761
7748
|
expected: "(boolean | undefined)",
|
|
5762
7749
|
value: input.transparentBackground
|
|
5763
|
-
}, _errorFactory)) && (void 0 === input.theme || "dark" === input.theme || "light" === input.theme ||
|
|
7750
|
+
}, _errorFactory)) && (void 0 === input.theme || "dark" === input.theme || "light" === input.theme || _assertGuard_16._assertGuard(_exceptionable, {
|
|
5764
7751
|
method: "typia.createAssert",
|
|
5765
7752
|
path: _path + ".theme",
|
|
5766
7753
|
expected: '("dark" | "light" | undefined)',
|
|
@@ -5774,11 +7761,11 @@ var assertPlatformTargetsConfig = /* @__PURE__ */ (() => {
|
|
|
5774
7761
|
else if ("devvit-web" === input.kind)
|
|
5775
7762
|
return _ao11(input, _path, _exceptionable);
|
|
5776
7763
|
else if ("tiktok-minigame" === input.kind || "wechat-minigame" === input.kind)
|
|
5777
|
-
return
|
|
7764
|
+
return _ao13(input, _path, _exceptionable);
|
|
5778
7765
|
else if ("web" === input.kind)
|
|
5779
|
-
return
|
|
7766
|
+
return _ao15(input, _path, _exceptionable);
|
|
5780
7767
|
else
|
|
5781
|
-
return
|
|
7768
|
+
return _assertGuard_16._assertGuard(_exceptionable, {
|
|
5782
7769
|
method: "typia.createAssert",
|
|
5783
7770
|
path: _path,
|
|
5784
7771
|
expected: "(AppsInTossTargetConfig | CapacitorTargetConfig | DevvitTargetConfig | MiniGameTargetConfig | WebTargetConfig)",
|
|
@@ -5793,10 +7780,11 @@ var assertPlatformTargetsConfig = /* @__PURE__ */ (() => {
|
|
|
5793
7780
|
return "object" === typeof value && null !== value && _iu0(value);
|
|
5794
7781
|
});
|
|
5795
7782
|
const _io10 = (input) => _ip0(input) && _ip1(input) && _ip2(input) && _ip3(input) && _ip4(input) && _ip5(input) && _ip6(input) && ("capacitor-android" === input.kind || "capacitor-ios" === input.kind) && "string" === typeof input.shellApp && _ip8(input) && ("aab" === input.artifact || "apk" === input.artifact || "ipa" === input.artifact);
|
|
5796
|
-
const _io11 = (input) => _ip0(input) && _ip1(input) && _ip2(input) && _ip3(input) && _ip4(input) && _ip5(input) && _ip6(input) && "devvit-web" === input.kind && _ip7(input) && _ip8(input) && "devvit" === input.artifact;
|
|
5797
|
-
const _io12 = (input) =>
|
|
5798
|
-
const _io13 = (input) => "
|
|
5799
|
-
const _io14 = (input) =>
|
|
7783
|
+
const _io11 = (input) => _ip0(input) && _ip1(input) && _ip2(input) && _ip3(input) && _ip4(input) && _ip5(input) && _ip6(input) && "devvit-web" === input.kind && _ip7(input) && _ip8(input) && "devvit" === input.artifact && (void 0 === input.inlineEntry || "string" === typeof input.inlineEntry) && (void 0 === input.inlineBudget || "object" === typeof input.inlineBudget && null !== input.inlineBudget && false === Array.isArray(input.inlineBudget) && _io12(input.inlineBudget));
|
|
7784
|
+
const _io12 = (input) => (void 0 === input.maxGzipKb || "number" === typeof input.maxGzipKb) && (void 0 === input.forbidModules || Array.isArray(input.forbidModules) && input.forbidModules.every((elem) => "string" === typeof elem)) && (void 0 === input.deferredChunks || Array.isArray(input.deferredChunks) && input.deferredChunks.every((elem) => "string" === typeof elem));
|
|
7785
|
+
const _io13 = (input) => _ip0(input) && _ip1(input) && _ip2(input) && _ip3(input) && _ip4(input) && _ip5(input) && _ip6(input) && ("tiktok-minigame" === input.kind || "wechat-minigame" === input.kind) && _ip9(input) && "canvas" === input.renderer && ("landscape" === input.orientation || "portrait" === input.orientation) && true === input.experimental && (void 0 === input.remoteAssetOrigins || Array.isArray(input.remoteAssetOrigins) && input.remoteAssetOrigins.every((elem) => "string" === typeof elem)) && ("object" === typeof input.packageBudget && null !== input.packageBudget && _io14(input.packageBudget));
|
|
7786
|
+
const _io14 = (input) => "number" === typeof input.mainBytes && "number" === typeof input.totalBytes && (void 0 === input.independentSubpackageBytes || "number" === typeof input.independentSubpackageBytes);
|
|
7787
|
+
const _io15 = (input) => _ip0(input) && _ip1(input) && _ip2(input) && _ip3(input) && _ip4(input) && _ip5(input) && _ip6(input) && "web" === input.kind && _ip9(input) && (void 0 === input.installable || "boolean" === typeof input.installable) && (void 0 === input.crazyGamesLaunch || "basic" === input.crazyGamesLaunch || "full" === input.crazyGamesLaunch) && (void 0 === input.staticDir || "string" === typeof input.staticDir);
|
|
5800
7788
|
const _io2 = (input) => _ip0(input) && _ip1(input) && _ip2(input) && _ip3(input) && _ip4(input) && _ip5(input) && _ip6(input) && "apps-in-toss" === input.kind && _ip7(input) && _ip8(input) && ".ait" === input.artifact && (void 0 === input.navigationBar || "object" === typeof input.navigationBar && null !== input.navigationBar && false === Array.isArray(input.navigationBar) && _io9(input.navigationBar));
|
|
5801
7789
|
const _io3 = (input) => ("packaged" === input.defaultLocation || "remote" === input.defaultLocation) && (void 0 === input.packs || "object" === typeof input.packs && null !== input.packs && false === Array.isArray(input.packs) && _io4(input.packs)) && (void 0 === input.offlineRequired || Array.isArray(input.offlineRequired) && input.offlineRequired.every((elem) => "string" === typeof elem)) && (void 0 === input.remoteBaseUrl || "string" === typeof input.remoteBaseUrl) && (void 0 === input.maxPackagedBytes || "number" === typeof input.maxPackagedBytes) && "string" === typeof input.buildConfig;
|
|
5802
7790
|
const _io4 = (input) => Object.keys(input).every((key) => {
|
|
@@ -5818,9 +7806,9 @@ var assertPlatformTargetsConfig = /* @__PURE__ */ (() => {
|
|
|
5818
7806
|
else if ("devvit-web" === input.kind)
|
|
5819
7807
|
return _io11(input);
|
|
5820
7808
|
else if ("tiktok-minigame" === input.kind || "wechat-minigame" === input.kind)
|
|
5821
|
-
return
|
|
7809
|
+
return _io13(input);
|
|
5822
7810
|
else if ("web" === input.kind)
|
|
5823
|
-
return
|
|
7811
|
+
return _io15(input);
|
|
5824
7812
|
else
|
|
5825
7813
|
return false;
|
|
5826
7814
|
})();
|
|
@@ -5829,12 +7817,12 @@ var assertPlatformTargetsConfig = /* @__PURE__ */ (() => {
|
|
|
5829
7817
|
return (input, errorFactory) => {
|
|
5830
7818
|
if (false === __is(input)) {
|
|
5831
7819
|
_errorFactory = errorFactory;
|
|
5832
|
-
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 ||
|
|
7820
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_16._assertGuard(true, {
|
|
5833
7821
|
method: "typia.createAssert",
|
|
5834
7822
|
path: _path + "",
|
|
5835
7823
|
expected: "PlatformTargetsConfig",
|
|
5836
7824
|
value: input2
|
|
5837
|
-
}, _errorFactory)) && _ao0(input2, _path + "", true) ||
|
|
7825
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_16._assertGuard(true, {
|
|
5838
7826
|
method: "typia.createAssert",
|
|
5839
7827
|
path: _path + "",
|
|
5840
7828
|
expected: "PlatformTargetsConfig",
|
|
@@ -6133,12 +8121,12 @@ function assertTargetKind(input, target2) {
|
|
|
6133
8121
|
}
|
|
6134
8122
|
|
|
6135
8123
|
// node_modules/.cache/mpgd-native-build/tools/target/target-config-matrix.js
|
|
6136
|
-
import * as
|
|
6137
|
-
import * as
|
|
8124
|
+
import * as _assertGuard_17 from "typia/lib/internal/_assertGuard";
|
|
8125
|
+
import * as _accessExpressionAsString_18 from "typia/lib/internal/_accessExpressionAsString";
|
|
6138
8126
|
import { createHash as createHash6 } from "node:crypto";
|
|
6139
8127
|
import { readFileSync as readFileSync11 } from "node:fs";
|
|
6140
|
-
import
|
|
6141
|
-
var
|
|
8128
|
+
import typia9 from "typia";
|
|
8129
|
+
var __typia_transform__accessExpressionAsString4 = _accessExpressionAsString_18._accessExpressionAsString;
|
|
6142
8130
|
var defaultTargetConfigMatrixFile = "packages/target-config/targets.json";
|
|
6143
8131
|
var assertTargetConfigMatrix = /* @__PURE__ */ (() => {
|
|
6144
8132
|
const _iv0 = /* @__PURE__ */ new Set(["apps-in-toss", "capacitor-android", "capacitor-ios", "crazygames-web", "devvit-web", "microsoft-store-pwa", "oneplay-web", "tiktok-minigame", "verse8-web", "web", "web-preview", "wechat-minigame"]);
|
|
@@ -6150,31 +8138,31 @@ var assertTargetConfigMatrix = /* @__PURE__ */ (() => {
|
|
|
6150
8138
|
const _iv1 = /* @__PURE__ */ new Set(["app-store", "apps-in-toss", "crazygames", "devvit", "google-play", "microsoft-store", "oneplay", "tiktok-minigame", "verse8", "web", "web-preview", "wechat-minigame"]);
|
|
6151
8139
|
const _av0 = /* @__PURE__ */ new Set(["apps-in-toss", "capacitor-android", "capacitor-ios", "crazygames-web", "devvit-web", "microsoft-store-pwa", "oneplay-web", "tiktok-minigame", "verse8-web", "web", "web-preview", "wechat-minigame"]);
|
|
6152
8140
|
const _ae0 = '("apps-in-toss" | "capacitor-android" | "capacitor-ios" | "crazygames-web" | "devvit-web" | "microsoft-store-pwa" | "oneplay-web" | "tiktok-minigame" | "verse8-web" | "web" | "web-preview" | "wechat-minigame")';
|
|
6153
|
-
const _ap0 = (input, _path, _exceptionable = true) => "boolean" === typeof input["iap"] ||
|
|
8141
|
+
const _ap0 = (input, _path, _exceptionable = true) => "boolean" === typeof input["iap"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6154
8142
|
method: "typia.createAssert",
|
|
6155
8143
|
path: _path + ".iap",
|
|
6156
8144
|
expected: "boolean",
|
|
6157
8145
|
value: input["iap"]
|
|
6158
8146
|
}, _errorFactory);
|
|
6159
|
-
const _ap1 = (input, _path, _exceptionable = true) => void 0 === input["bannerAds"] || "boolean" === typeof input["bannerAds"] ||
|
|
8147
|
+
const _ap1 = (input, _path, _exceptionable = true) => void 0 === input["bannerAds"] || "boolean" === typeof input["bannerAds"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6160
8148
|
method: "typia.createAssert",
|
|
6161
8149
|
path: _path + ".bannerAds",
|
|
6162
8150
|
expected: "(boolean | undefined)",
|
|
6163
8151
|
value: input["bannerAds"]
|
|
6164
8152
|
}, _errorFactory);
|
|
6165
|
-
const _ap2 = (input, _path, _exceptionable = true) => "boolean" === typeof input["rewardedAds"] ||
|
|
8153
|
+
const _ap2 = (input, _path, _exceptionable = true) => "boolean" === typeof input["rewardedAds"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6166
8154
|
method: "typia.createAssert",
|
|
6167
8155
|
path: _path + ".rewardedAds",
|
|
6168
8156
|
expected: "boolean",
|
|
6169
8157
|
value: input["rewardedAds"]
|
|
6170
8158
|
}, _errorFactory);
|
|
6171
|
-
const _ap3 = (input, _path, _exceptionable = true) => "boolean" === typeof input["interstitialAds"] ||
|
|
8159
|
+
const _ap3 = (input, _path, _exceptionable = true) => "boolean" === typeof input["interstitialAds"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6172
8160
|
method: "typia.createAssert",
|
|
6173
8161
|
path: _path + ".interstitialAds",
|
|
6174
8162
|
expected: "boolean",
|
|
6175
8163
|
value: input["interstitialAds"]
|
|
6176
8164
|
}, _errorFactory);
|
|
6177
|
-
const _ap4 = (input, _path, _exceptionable = true) => "boolean" === typeof input["localization"] ||
|
|
8165
|
+
const _ap4 = (input, _path, _exceptionable = true) => "boolean" === typeof input["localization"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6178
8166
|
method: "typia.createAssert",
|
|
6179
8167
|
path: _path + ".localization",
|
|
6180
8168
|
expected: "boolean",
|
|
@@ -6183,17 +8171,17 @@ var assertTargetConfigMatrix = /* @__PURE__ */ (() => {
|
|
|
6183
8171
|
const _av1 = /* @__PURE__ */ new Set(["app-store", "apps-in-toss", "crazygames", "devvit", "google-play", "microsoft-store", "oneplay", "tiktok-minigame", "verse8", "web", "web-preview", "wechat-minigame"]);
|
|
6184
8172
|
const _ae1 = '("app-store" | "apps-in-toss" | "crazygames" | "devvit" | "google-play" | "microsoft-store" | "oneplay" | "tiktok-minigame" | "verse8" | "web" | "web-preview" | "wechat-minigame")';
|
|
6185
8173
|
const _ae2 = '("action-required" | "approval-required" | "available" | "configuration-required" | "disabled" | "temporarily-unavailable" | "unsupported")';
|
|
6186
|
-
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.version ||
|
|
8174
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.version || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6187
8175
|
method: "typia.createAssert",
|
|
6188
8176
|
path: _path + ".version",
|
|
6189
8177
|
expected: "string",
|
|
6190
8178
|
value: input.version
|
|
6191
|
-
}, _errorFactory)) && (("object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) ||
|
|
8179
|
+
}, _errorFactory)) && (("object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6192
8180
|
method: "typia.createAssert",
|
|
6193
8181
|
path: _path + ".targets",
|
|
6194
8182
|
expected: "Record<string, TargetConfig>",
|
|
6195
8183
|
value: input.targets
|
|
6196
|
-
}, _errorFactory)) && _ao1(input.targets, _path + ".targets", _exceptionable) ||
|
|
8184
|
+
}, _errorFactory)) && _ao1(input.targets, _path + ".targets", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6197
8185
|
method: "typia.createAssert",
|
|
6198
8186
|
path: _path + ".targets",
|
|
6199
8187
|
expected: "Record<string, TargetConfig>",
|
|
@@ -6203,207 +8191,207 @@ var assertTargetConfigMatrix = /* @__PURE__ */ (() => {
|
|
|
6203
8191
|
const value = input[key];
|
|
6204
8192
|
if (void 0 === value)
|
|
6205
8193
|
return true;
|
|
6206
|
-
return ("object" === typeof value && null !== value ||
|
|
8194
|
+
return ("object" === typeof value && null !== value || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6207
8195
|
method: "typia.createAssert",
|
|
6208
|
-
path: _path +
|
|
8196
|
+
path: _path + __typia_transform__accessExpressionAsString4(key),
|
|
6209
8197
|
expected: "TargetConfig",
|
|
6210
8198
|
value
|
|
6211
|
-
}, _errorFactory)) && _ao2(value, _path +
|
|
8199
|
+
}, _errorFactory)) && _ao2(value, _path + __typia_transform__accessExpressionAsString4(key), _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6212
8200
|
method: "typia.createAssert",
|
|
6213
|
-
path: _path +
|
|
8201
|
+
path: _path + __typia_transform__accessExpressionAsString4(key),
|
|
6214
8202
|
expected: "TargetConfig",
|
|
6215
8203
|
value
|
|
6216
8204
|
}, _errorFactory);
|
|
6217
8205
|
});
|
|
6218
|
-
const _ao10 = (input, _path, _exceptionable = true) => ("action-required" === input.identityUpgrade || "approval-required" === input.identityUpgrade || "available" === input.identityUpgrade || "configuration-required" === input.identityUpgrade || "disabled" === input.identityUpgrade || "temporarily-unavailable" === input.identityUpgrade || "unsupported" === input.identityUpgrade ||
|
|
8206
|
+
const _ao10 = (input, _path, _exceptionable = true) => ("action-required" === input.identityUpgrade || "approval-required" === input.identityUpgrade || "available" === input.identityUpgrade || "configuration-required" === input.identityUpgrade || "disabled" === input.identityUpgrade || "temporarily-unavailable" === input.identityUpgrade || "unsupported" === input.identityUpgrade || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6219
8207
|
method: "typia.createAssert",
|
|
6220
8208
|
path: _path + ".identityUpgrade",
|
|
6221
8209
|
expected: _ae2,
|
|
6222
8210
|
value: input.identityUpgrade
|
|
6223
|
-
}, _errorFactory)) && ("action-required" === input.presentation || "approval-required" === input.presentation || "available" === input.presentation || "configuration-required" === input.presentation || "disabled" === input.presentation || "temporarily-unavailable" === input.presentation || "unsupported" === input.presentation ||
|
|
8211
|
+
}, _errorFactory)) && ("action-required" === input.presentation || "approval-required" === input.presentation || "available" === input.presentation || "configuration-required" === input.presentation || "disabled" === input.presentation || "temporarily-unavailable" === input.presentation || "unsupported" === input.presentation || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6224
8212
|
method: "typia.createAssert",
|
|
6225
8213
|
path: _path + ".presentation",
|
|
6226
8214
|
expected: _ae2,
|
|
6227
8215
|
value: input.presentation
|
|
6228
|
-
}, _errorFactory)) && ("action-required" === input.sharing || "approval-required" === input.sharing || "available" === input.sharing || "configuration-required" === input.sharing || "disabled" === input.sharing || "temporarily-unavailable" === input.sharing || "unsupported" === input.sharing ||
|
|
8216
|
+
}, _errorFactory)) && ("action-required" === input.sharing || "approval-required" === input.sharing || "available" === input.sharing || "configuration-required" === input.sharing || "disabled" === input.sharing || "temporarily-unavailable" === input.sharing || "unsupported" === input.sharing || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6229
8217
|
method: "typia.createAssert",
|
|
6230
8218
|
path: _path + ".sharing",
|
|
6231
8219
|
expected: _ae2,
|
|
6232
8220
|
value: input.sharing
|
|
6233
|
-
}, _errorFactory)) && ("action-required" === input.inboundShare || "approval-required" === input.inboundShare || "available" === input.inboundShare || "configuration-required" === input.inboundShare || "disabled" === input.inboundShare || "temporarily-unavailable" === input.inboundShare || "unsupported" === input.inboundShare ||
|
|
8221
|
+
}, _errorFactory)) && ("action-required" === input.inboundShare || "approval-required" === input.inboundShare || "available" === input.inboundShare || "configuration-required" === input.inboundShare || "disabled" === input.inboundShare || "temporarily-unavailable" === input.inboundShare || "unsupported" === input.inboundShare || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6234
8222
|
method: "typia.createAssert",
|
|
6235
8223
|
path: _path + ".inboundShare",
|
|
6236
8224
|
expected: _ae2,
|
|
6237
8225
|
value: input.inboundShare
|
|
6238
|
-
}, _errorFactory)) && ("action-required" === input.notifications || "approval-required" === input.notifications || "available" === input.notifications || "configuration-required" === input.notifications || "disabled" === input.notifications || "temporarily-unavailable" === input.notifications || "unsupported" === input.notifications ||
|
|
8226
|
+
}, _errorFactory)) && ("action-required" === input.notifications || "approval-required" === input.notifications || "available" === input.notifications || "configuration-required" === input.notifications || "disabled" === input.notifications || "temporarily-unavailable" === input.notifications || "unsupported" === input.notifications || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6239
8227
|
method: "typia.createAssert",
|
|
6240
8228
|
path: _path + ".notifications",
|
|
6241
8229
|
expected: _ae2,
|
|
6242
8230
|
value: input.notifications
|
|
6243
|
-
}, _errorFactory)) && ("fullscreen" === input.presentationMode || "inline-expanded" === input.presentationMode ||
|
|
8231
|
+
}, _errorFactory)) && ("fullscreen" === input.presentationMode || "inline-expanded" === input.presentationMode || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6244
8232
|
method: "typia.createAssert",
|
|
6245
8233
|
path: _path + ".presentationMode",
|
|
6246
8234
|
expected: '("fullscreen" | "inline-expanded")',
|
|
6247
8235
|
value: input.presentationMode
|
|
6248
8236
|
}, _errorFactory));
|
|
6249
|
-
const _ao2 = (input, _path, _exceptionable = true) => (true === _av0.has(input.runtime) ||
|
|
8237
|
+
const _ao2 = (input, _path, _exceptionable = true) => (true === _av0.has(input.runtime) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6250
8238
|
method: "typia.createAssert",
|
|
6251
8239
|
path: _path + ".runtime",
|
|
6252
8240
|
expected: _ae0,
|
|
6253
8241
|
value: input.runtime
|
|
6254
|
-
}, _errorFactory)) && (("object" === typeof input.features && null !== input.features ||
|
|
8242
|
+
}, _errorFactory)) && (("object" === typeof input.features && null !== input.features || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6255
8243
|
method: "typia.createAssert",
|
|
6256
8244
|
path: _path + ".features",
|
|
6257
8245
|
expected: "TargetFeatureConfig",
|
|
6258
8246
|
value: input.features
|
|
6259
|
-
}, _errorFactory)) && _ao3(input.features, _path + ".features", _exceptionable) ||
|
|
8247
|
+
}, _errorFactory)) && _ao3(input.features, _path + ".features", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6260
8248
|
method: "typia.createAssert",
|
|
6261
8249
|
path: _path + ".features",
|
|
6262
8250
|
expected: "TargetFeatureConfig",
|
|
6263
8251
|
value: input.features
|
|
6264
|
-
}, _errorFactory)) && (("object" === typeof input.capabilities && null !== input.capabilities ||
|
|
8252
|
+
}, _errorFactory)) && (("object" === typeof input.capabilities && null !== input.capabilities || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6265
8253
|
method: "typia.createAssert",
|
|
6266
8254
|
path: _path + ".capabilities",
|
|
6267
8255
|
expected: "TargetCapabilityConfig",
|
|
6268
8256
|
value: input.capabilities
|
|
6269
|
-
}, _errorFactory)) && _ao4(input.capabilities, _path + ".capabilities", _exceptionable) ||
|
|
8257
|
+
}, _errorFactory)) && _ao4(input.capabilities, _path + ".capabilities", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6270
8258
|
method: "typia.createAssert",
|
|
6271
8259
|
path: _path + ".capabilities",
|
|
6272
8260
|
expected: "TargetCapabilityConfig",
|
|
6273
8261
|
value: input.capabilities
|
|
6274
|
-
}, _errorFactory)) && (("object" === typeof input.localization && null !== input.localization ||
|
|
8262
|
+
}, _errorFactory)) && (("object" === typeof input.localization && null !== input.localization || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6275
8263
|
method: "typia.createAssert",
|
|
6276
8264
|
path: _path + ".localization",
|
|
6277
8265
|
expected: "TargetLocalizationConfig",
|
|
6278
8266
|
value: input.localization
|
|
6279
|
-
}, _errorFactory)) && _ao5(input.localization, _path + ".localization", _exceptionable) ||
|
|
8267
|
+
}, _errorFactory)) && _ao5(input.localization, _path + ".localization", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6280
8268
|
method: "typia.createAssert",
|
|
6281
8269
|
path: _path + ".localization",
|
|
6282
8270
|
expected: "TargetLocalizationConfig",
|
|
6283
8271
|
value: input.localization
|
|
6284
|
-
}, _errorFactory)) && (("object" === typeof input.monetization && null !== input.monetization ||
|
|
8272
|
+
}, _errorFactory)) && (("object" === typeof input.monetization && null !== input.monetization || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6285
8273
|
method: "typia.createAssert",
|
|
6286
8274
|
path: _path + ".monetization",
|
|
6287
8275
|
expected: "TargetMonetizationConfig",
|
|
6288
8276
|
value: input.monetization
|
|
6289
|
-
}, _errorFactory)) && _ao6(input.monetization, _path + ".monetization", _exceptionable) ||
|
|
8277
|
+
}, _errorFactory)) && _ao6(input.monetization, _path + ".monetization", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6290
8278
|
method: "typia.createAssert",
|
|
6291
8279
|
path: _path + ".monetization",
|
|
6292
8280
|
expected: "TargetMonetizationConfig",
|
|
6293
8281
|
value: input.monetization
|
|
6294
|
-
}, _errorFactory)) && (("object" === typeof input.leaderboard && null !== input.leaderboard ||
|
|
8282
|
+
}, _errorFactory)) && (("object" === typeof input.leaderboard && null !== input.leaderboard || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6295
8283
|
method: "typia.createAssert",
|
|
6296
8284
|
path: _path + ".leaderboard",
|
|
6297
8285
|
expected: "TargetLeaderboardConfig",
|
|
6298
8286
|
value: input.leaderboard
|
|
6299
|
-
}, _errorFactory)) && _ao7(input.leaderboard, _path + ".leaderboard", _exceptionable) ||
|
|
8287
|
+
}, _errorFactory)) && _ao7(input.leaderboard, _path + ".leaderboard", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6300
8288
|
method: "typia.createAssert",
|
|
6301
8289
|
path: _path + ".leaderboard",
|
|
6302
8290
|
expected: "TargetLeaderboardConfig",
|
|
6303
8291
|
value: input.leaderboard
|
|
6304
|
-
}, _errorFactory)) && (("object" === typeof input.release && null !== input.release ||
|
|
8292
|
+
}, _errorFactory)) && (("object" === typeof input.release && null !== input.release || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6305
8293
|
method: "typia.createAssert",
|
|
6306
8294
|
path: _path + ".release",
|
|
6307
8295
|
expected: "TargetReleaseConfig",
|
|
6308
8296
|
value: input.release
|
|
6309
|
-
}, _errorFactory)) && _ao8(input.release, _path + ".release", _exceptionable) ||
|
|
8297
|
+
}, _errorFactory)) && _ao8(input.release, _path + ".release", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6310
8298
|
method: "typia.createAssert",
|
|
6311
8299
|
path: _path + ".release",
|
|
6312
8300
|
expected: "TargetReleaseConfig",
|
|
6313
8301
|
value: input.release
|
|
6314
|
-
}, _errorFactory)) && (("object" === typeof input.policy && null !== input.policy ||
|
|
8302
|
+
}, _errorFactory)) && (("object" === typeof input.policy && null !== input.policy || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6315
8303
|
method: "typia.createAssert",
|
|
6316
8304
|
path: _path + ".policy",
|
|
6317
8305
|
expected: "TargetPolicyRestrictions",
|
|
6318
8306
|
value: input.policy
|
|
6319
|
-
}, _errorFactory)) && _ao9(input.policy, _path + ".policy", _exceptionable) ||
|
|
8307
|
+
}, _errorFactory)) && _ao9(input.policy, _path + ".policy", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6320
8308
|
method: "typia.createAssert",
|
|
6321
8309
|
path: _path + ".policy",
|
|
6322
8310
|
expected: "TargetPolicyRestrictions",
|
|
6323
8311
|
value: input.policy
|
|
6324
|
-
}, _errorFactory)) && (void 0 === input.integrations || ("object" === typeof input.integrations && null !== input.integrations ||
|
|
8312
|
+
}, _errorFactory)) && (void 0 === input.integrations || ("object" === typeof input.integrations && null !== input.integrations || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6325
8313
|
method: "typia.createAssert",
|
|
6326
8314
|
path: _path + ".integrations",
|
|
6327
8315
|
expected: "(TargetIntegrationConfig | undefined)",
|
|
6328
8316
|
value: input.integrations
|
|
6329
|
-
}, _errorFactory)) && _ao10(input.integrations, _path + ".integrations", _exceptionable) ||
|
|
8317
|
+
}, _errorFactory)) && _ao10(input.integrations, _path + ".integrations", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6330
8318
|
method: "typia.createAssert",
|
|
6331
8319
|
path: _path + ".integrations",
|
|
6332
8320
|
expected: "(TargetIntegrationConfig | undefined)",
|
|
6333
8321
|
value: input.integrations
|
|
6334
8322
|
}, _errorFactory));
|
|
6335
|
-
const _ao3 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && (void 0 === input.subscriptions || "boolean" === typeof input.subscriptions ||
|
|
8323
|
+
const _ao3 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && (void 0 === input.subscriptions || "boolean" === typeof input.subscriptions || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6336
8324
|
method: "typia.createAssert",
|
|
6337
8325
|
path: _path + ".subscriptions",
|
|
6338
8326
|
expected: "(boolean | undefined)",
|
|
6339
8327
|
value: input.subscriptions
|
|
6340
|
-
}, _errorFactory)) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && ("boolean" === typeof input.leaderboard ||
|
|
8328
|
+
}, _errorFactory)) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && ("boolean" === typeof input.leaderboard || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6341
8329
|
method: "typia.createAssert",
|
|
6342
8330
|
path: _path + ".leaderboard",
|
|
6343
8331
|
expected: "boolean",
|
|
6344
8332
|
value: input.leaderboard
|
|
6345
|
-
}, _errorFactory)) && (void 0 === input.nativeLeaderboard || "boolean" === typeof input.nativeLeaderboard ||
|
|
8333
|
+
}, _errorFactory)) && (void 0 === input.nativeLeaderboard || "boolean" === typeof input.nativeLeaderboard || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6346
8334
|
method: "typia.createAssert",
|
|
6347
8335
|
path: _path + ".nativeLeaderboard",
|
|
6348
8336
|
expected: "(boolean | undefined)",
|
|
6349
8337
|
value: input.nativeLeaderboard
|
|
6350
|
-
}, _errorFactory)) && (void 0 === input.remoteLeaderboard || "boolean" === typeof input.remoteLeaderboard ||
|
|
8338
|
+
}, _errorFactory)) && (void 0 === input.remoteLeaderboard || "boolean" === typeof input.remoteLeaderboard || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6351
8339
|
method: "typia.createAssert",
|
|
6352
8340
|
path: _path + ".remoteLeaderboard",
|
|
6353
8341
|
expected: "(boolean | undefined)",
|
|
6354
8342
|
value: input.remoteLeaderboard
|
|
6355
8343
|
}, _errorFactory)) && _ap4(input, _path, _exceptionable);
|
|
6356
|
-
const _ao4 = (input, _path, _exceptionable = true) => ("local" === input.storage || "native" === input.storage || "none" === input.storage ||
|
|
8344
|
+
const _ao4 = (input, _path, _exceptionable = true) => ("local" === input.storage || "native" === input.storage || "none" === input.storage || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6357
8345
|
method: "typia.createAssert",
|
|
6358
8346
|
path: _path + ".storage",
|
|
6359
8347
|
expected: '("local" | "native" | "none")',
|
|
6360
8348
|
value: input.storage
|
|
6361
8349
|
}, _errorFactory)) && _ap4(input, _path, _exceptionable);
|
|
6362
|
-
const _ao5 = (input, _path, _exceptionable = true) => "en" === input.fallbackLocale || "ko" === input.fallbackLocale ||
|
|
8350
|
+
const _ao5 = (input, _path, _exceptionable = true) => "en" === input.fallbackLocale || "ko" === input.fallbackLocale || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6363
8351
|
method: "typia.createAssert",
|
|
6364
8352
|
path: _path + ".fallbackLocale",
|
|
6365
8353
|
expected: '("en" | "ko")',
|
|
6366
8354
|
value: input.fallbackLocale
|
|
6367
8355
|
}, _errorFactory);
|
|
6368
8356
|
const _ao6 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable);
|
|
6369
|
-
const _ao7 = (input, _path, _exceptionable = true) => "boolean" === typeof input.native ||
|
|
8357
|
+
const _ao7 = (input, _path, _exceptionable = true) => "boolean" === typeof input.native || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6370
8358
|
method: "typia.createAssert",
|
|
6371
8359
|
path: _path + ".native",
|
|
6372
8360
|
expected: "boolean",
|
|
6373
8361
|
value: input.native
|
|
6374
8362
|
}, _errorFactory);
|
|
6375
|
-
const _ao8 = (input, _path, _exceptionable = true) => (true === _av1.has(input.profile) ||
|
|
8363
|
+
const _ao8 = (input, _path, _exceptionable = true) => (true === _av1.has(input.profile) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6376
8364
|
method: "typia.createAssert",
|
|
6377
8365
|
path: _path + ".profile",
|
|
6378
8366
|
expected: _ae1,
|
|
6379
8367
|
value: input.profile
|
|
6380
|
-
}, _errorFactory)) && (void 0 === input.billingAuthority || "host" === input.billingAuthority || "store" === input.billingAuthority ||
|
|
8368
|
+
}, _errorFactory)) && (void 0 === input.billingAuthority || "host" === input.billingAuthority || "store" === input.billingAuthority || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6381
8369
|
method: "typia.createAssert",
|
|
6382
8370
|
path: _path + ".billingAuthority",
|
|
6383
8371
|
expected: '("host" | "store" | undefined)',
|
|
6384
8372
|
value: input.billingAuthority
|
|
6385
8373
|
}, _errorFactory));
|
|
6386
|
-
const _ao9 = (input, _path, _exceptionable = true) => ("boolean" === typeof input.externalPaymentAllowed ||
|
|
8374
|
+
const _ao9 = (input, _path, _exceptionable = true) => ("boolean" === typeof input.externalPaymentAllowed || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6387
8375
|
method: "typia.createAssert",
|
|
6388
8376
|
path: _path + ".externalPaymentAllowed",
|
|
6389
8377
|
expected: "boolean",
|
|
6390
8378
|
value: input.externalPaymentAllowed
|
|
6391
|
-
}, _errorFactory)) && ("boolean" === typeof input.remoteExecutableCodeAllowed ||
|
|
8379
|
+
}, _errorFactory)) && ("boolean" === typeof input.remoteExecutableCodeAllowed || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6392
8380
|
method: "typia.createAssert",
|
|
6393
8381
|
path: _path + ".remoteExecutableCodeAllowed",
|
|
6394
8382
|
expected: "boolean",
|
|
6395
8383
|
value: input.remoteExecutableCodeAllowed
|
|
6396
|
-
}, _errorFactory)) && ("boolean" === typeof input.installOtherAppCTAAllowed ||
|
|
8384
|
+
}, _errorFactory)) && ("boolean" === typeof input.installOtherAppCTAAllowed || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6397
8385
|
method: "typia.createAssert",
|
|
6398
8386
|
path: _path + ".installOtherAppCTAAllowed",
|
|
6399
8387
|
expected: "boolean",
|
|
6400
8388
|
value: input.installOtherAppCTAAllowed
|
|
6401
|
-
}, _errorFactory)) && ("boolean" === typeof input.requiresStoreReview ||
|
|
8389
|
+
}, _errorFactory)) && ("boolean" === typeof input.requiresStoreReview || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6402
8390
|
method: "typia.createAssert",
|
|
6403
8391
|
path: _path + ".requiresStoreReview",
|
|
6404
8392
|
expected: "boolean",
|
|
6405
8393
|
value: input.requiresStoreReview
|
|
6406
|
-
}, _errorFactory)) && ("boolean" === typeof input.requiresAitReview ||
|
|
8394
|
+
}, _errorFactory)) && ("boolean" === typeof input.requiresAitReview || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6407
8395
|
method: "typia.createAssert",
|
|
6408
8396
|
path: _path + ".requiresAitReview",
|
|
6409
8397
|
expected: "boolean",
|
|
@@ -6430,12 +8418,12 @@ var assertTargetConfigMatrix = /* @__PURE__ */ (() => {
|
|
|
6430
8418
|
return (input, errorFactory) => {
|
|
6431
8419
|
if (false === __is(input)) {
|
|
6432
8420
|
_errorFactory = errorFactory;
|
|
6433
|
-
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 ||
|
|
8421
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_17._assertGuard(true, {
|
|
6434
8422
|
method: "typia.createAssert",
|
|
6435
8423
|
path: _path + "",
|
|
6436
8424
|
expected: "TargetConfigMatrix",
|
|
6437
8425
|
value: input2
|
|
6438
|
-
}, _errorFactory)) && _ao0(input2, _path + "", true) ||
|
|
8426
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_17._assertGuard(true, {
|
|
6439
8427
|
method: "typia.createAssert",
|
|
6440
8428
|
path: _path + "",
|
|
6441
8429
|
expected: "TargetConfigMatrix",
|
|
@@ -6455,31 +8443,31 @@ var assertTargetConfigExtensions = /* @__PURE__ */ (() => {
|
|
|
6455
8443
|
const _iv1 = /* @__PURE__ */ new Set(["app-store", "apps-in-toss", "crazygames", "devvit", "google-play", "microsoft-store", "oneplay", "tiktok-minigame", "verse8", "web", "web-preview", "wechat-minigame"]);
|
|
6456
8444
|
const _av0 = /* @__PURE__ */ new Set(["apps-in-toss", "capacitor-android", "capacitor-ios", "crazygames-web", "devvit-web", "microsoft-store-pwa", "oneplay-web", "tiktok-minigame", "verse8-web", "web", "web-preview", "wechat-minigame"]);
|
|
6457
8445
|
const _ae0 = '("apps-in-toss" | "capacitor-android" | "capacitor-ios" | "crazygames-web" | "devvit-web" | "microsoft-store-pwa" | "oneplay-web" | "tiktok-minigame" | "verse8-web" | "web" | "web-preview" | "wechat-minigame")';
|
|
6458
|
-
const _ap0 = (input, _path, _exceptionable = true) => "boolean" === typeof input["iap"] ||
|
|
8446
|
+
const _ap0 = (input, _path, _exceptionable = true) => "boolean" === typeof input["iap"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6459
8447
|
method: "typia.createAssert",
|
|
6460
8448
|
path: _path + ".iap",
|
|
6461
8449
|
expected: "boolean",
|
|
6462
8450
|
value: input["iap"]
|
|
6463
8451
|
}, _errorFactory);
|
|
6464
|
-
const _ap1 = (input, _path, _exceptionable = true) => void 0 === input["bannerAds"] || "boolean" === typeof input["bannerAds"] ||
|
|
8452
|
+
const _ap1 = (input, _path, _exceptionable = true) => void 0 === input["bannerAds"] || "boolean" === typeof input["bannerAds"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6465
8453
|
method: "typia.createAssert",
|
|
6466
8454
|
path: _path + ".bannerAds",
|
|
6467
8455
|
expected: "(boolean | undefined)",
|
|
6468
8456
|
value: input["bannerAds"]
|
|
6469
8457
|
}, _errorFactory);
|
|
6470
|
-
const _ap2 = (input, _path, _exceptionable = true) => "boolean" === typeof input["rewardedAds"] ||
|
|
8458
|
+
const _ap2 = (input, _path, _exceptionable = true) => "boolean" === typeof input["rewardedAds"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6471
8459
|
method: "typia.createAssert",
|
|
6472
8460
|
path: _path + ".rewardedAds",
|
|
6473
8461
|
expected: "boolean",
|
|
6474
8462
|
value: input["rewardedAds"]
|
|
6475
8463
|
}, _errorFactory);
|
|
6476
|
-
const _ap3 = (input, _path, _exceptionable = true) => "boolean" === typeof input["interstitialAds"] ||
|
|
8464
|
+
const _ap3 = (input, _path, _exceptionable = true) => "boolean" === typeof input["interstitialAds"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6477
8465
|
method: "typia.createAssert",
|
|
6478
8466
|
path: _path + ".interstitialAds",
|
|
6479
8467
|
expected: "boolean",
|
|
6480
8468
|
value: input["interstitialAds"]
|
|
6481
8469
|
}, _errorFactory);
|
|
6482
|
-
const _ap4 = (input, _path, _exceptionable = true) => "boolean" === typeof input["localization"] ||
|
|
8470
|
+
const _ap4 = (input, _path, _exceptionable = true) => "boolean" === typeof input["localization"] || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6483
8471
|
method: "typia.createAssert",
|
|
6484
8472
|
path: _path + ".localization",
|
|
6485
8473
|
expected: "boolean",
|
|
@@ -6488,17 +8476,17 @@ var assertTargetConfigExtensions = /* @__PURE__ */ (() => {
|
|
|
6488
8476
|
const _av1 = /* @__PURE__ */ new Set(["app-store", "apps-in-toss", "crazygames", "devvit", "google-play", "microsoft-store", "oneplay", "tiktok-minigame", "verse8", "web", "web-preview", "wechat-minigame"]);
|
|
6489
8477
|
const _ae1 = '("app-store" | "apps-in-toss" | "crazygames" | "devvit" | "google-play" | "microsoft-store" | "oneplay" | "tiktok-minigame" | "verse8" | "web" | "web-preview" | "wechat-minigame")';
|
|
6490
8478
|
const _ae2 = '("action-required" | "approval-required" | "available" | "configuration-required" | "disabled" | "temporarily-unavailable" | "unsupported")';
|
|
6491
|
-
const _ao0 = (input, _path, _exceptionable = true) => (1 === input.schemaVersion ||
|
|
8479
|
+
const _ao0 = (input, _path, _exceptionable = true) => (1 === input.schemaVersion || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6492
8480
|
method: "typia.createAssert",
|
|
6493
8481
|
path: _path + ".schemaVersion",
|
|
6494
8482
|
expected: "1",
|
|
6495
8483
|
value: input.schemaVersion
|
|
6496
|
-
}, _errorFactory)) && (("object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) ||
|
|
8484
|
+
}, _errorFactory)) && (("object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6497
8485
|
method: "typia.createAssert",
|
|
6498
8486
|
path: _path + ".targets",
|
|
6499
8487
|
expected: "Readonly<Record<string, TargetConfig>>",
|
|
6500
8488
|
value: input.targets
|
|
6501
|
-
}, _errorFactory)) && _ao1(input.targets, _path + ".targets", _exceptionable) ||
|
|
8489
|
+
}, _errorFactory)) && _ao1(input.targets, _path + ".targets", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6502
8490
|
method: "typia.createAssert",
|
|
6503
8491
|
path: _path + ".targets",
|
|
6504
8492
|
expected: "Readonly<Record<string, TargetConfig>>",
|
|
@@ -6508,207 +8496,207 @@ var assertTargetConfigExtensions = /* @__PURE__ */ (() => {
|
|
|
6508
8496
|
const value = input[key];
|
|
6509
8497
|
if (void 0 === value)
|
|
6510
8498
|
return true;
|
|
6511
|
-
return ("object" === typeof value && null !== value ||
|
|
8499
|
+
return ("object" === typeof value && null !== value || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6512
8500
|
method: "typia.createAssert",
|
|
6513
|
-
path: _path +
|
|
8501
|
+
path: _path + __typia_transform__accessExpressionAsString4(key),
|
|
6514
8502
|
expected: "TargetConfig",
|
|
6515
8503
|
value
|
|
6516
|
-
}, _errorFactory)) && _ao2(value, _path +
|
|
8504
|
+
}, _errorFactory)) && _ao2(value, _path + __typia_transform__accessExpressionAsString4(key), _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6517
8505
|
method: "typia.createAssert",
|
|
6518
|
-
path: _path +
|
|
8506
|
+
path: _path + __typia_transform__accessExpressionAsString4(key),
|
|
6519
8507
|
expected: "TargetConfig",
|
|
6520
8508
|
value
|
|
6521
8509
|
}, _errorFactory);
|
|
6522
8510
|
});
|
|
6523
|
-
const _ao10 = (input, _path, _exceptionable = true) => ("action-required" === input.identityUpgrade || "approval-required" === input.identityUpgrade || "available" === input.identityUpgrade || "configuration-required" === input.identityUpgrade || "disabled" === input.identityUpgrade || "temporarily-unavailable" === input.identityUpgrade || "unsupported" === input.identityUpgrade ||
|
|
8511
|
+
const _ao10 = (input, _path, _exceptionable = true) => ("action-required" === input.identityUpgrade || "approval-required" === input.identityUpgrade || "available" === input.identityUpgrade || "configuration-required" === input.identityUpgrade || "disabled" === input.identityUpgrade || "temporarily-unavailable" === input.identityUpgrade || "unsupported" === input.identityUpgrade || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6524
8512
|
method: "typia.createAssert",
|
|
6525
8513
|
path: _path + ".identityUpgrade",
|
|
6526
8514
|
expected: _ae2,
|
|
6527
8515
|
value: input.identityUpgrade
|
|
6528
|
-
}, _errorFactory)) && ("action-required" === input.presentation || "approval-required" === input.presentation || "available" === input.presentation || "configuration-required" === input.presentation || "disabled" === input.presentation || "temporarily-unavailable" === input.presentation || "unsupported" === input.presentation ||
|
|
8516
|
+
}, _errorFactory)) && ("action-required" === input.presentation || "approval-required" === input.presentation || "available" === input.presentation || "configuration-required" === input.presentation || "disabled" === input.presentation || "temporarily-unavailable" === input.presentation || "unsupported" === input.presentation || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6529
8517
|
method: "typia.createAssert",
|
|
6530
8518
|
path: _path + ".presentation",
|
|
6531
8519
|
expected: _ae2,
|
|
6532
8520
|
value: input.presentation
|
|
6533
|
-
}, _errorFactory)) && ("action-required" === input.sharing || "approval-required" === input.sharing || "available" === input.sharing || "configuration-required" === input.sharing || "disabled" === input.sharing || "temporarily-unavailable" === input.sharing || "unsupported" === input.sharing ||
|
|
8521
|
+
}, _errorFactory)) && ("action-required" === input.sharing || "approval-required" === input.sharing || "available" === input.sharing || "configuration-required" === input.sharing || "disabled" === input.sharing || "temporarily-unavailable" === input.sharing || "unsupported" === input.sharing || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6534
8522
|
method: "typia.createAssert",
|
|
6535
8523
|
path: _path + ".sharing",
|
|
6536
8524
|
expected: _ae2,
|
|
6537
8525
|
value: input.sharing
|
|
6538
|
-
}, _errorFactory)) && ("action-required" === input.inboundShare || "approval-required" === input.inboundShare || "available" === input.inboundShare || "configuration-required" === input.inboundShare || "disabled" === input.inboundShare || "temporarily-unavailable" === input.inboundShare || "unsupported" === input.inboundShare ||
|
|
8526
|
+
}, _errorFactory)) && ("action-required" === input.inboundShare || "approval-required" === input.inboundShare || "available" === input.inboundShare || "configuration-required" === input.inboundShare || "disabled" === input.inboundShare || "temporarily-unavailable" === input.inboundShare || "unsupported" === input.inboundShare || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6539
8527
|
method: "typia.createAssert",
|
|
6540
8528
|
path: _path + ".inboundShare",
|
|
6541
8529
|
expected: _ae2,
|
|
6542
8530
|
value: input.inboundShare
|
|
6543
|
-
}, _errorFactory)) && ("action-required" === input.notifications || "approval-required" === input.notifications || "available" === input.notifications || "configuration-required" === input.notifications || "disabled" === input.notifications || "temporarily-unavailable" === input.notifications || "unsupported" === input.notifications ||
|
|
8531
|
+
}, _errorFactory)) && ("action-required" === input.notifications || "approval-required" === input.notifications || "available" === input.notifications || "configuration-required" === input.notifications || "disabled" === input.notifications || "temporarily-unavailable" === input.notifications || "unsupported" === input.notifications || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6544
8532
|
method: "typia.createAssert",
|
|
6545
8533
|
path: _path + ".notifications",
|
|
6546
8534
|
expected: _ae2,
|
|
6547
8535
|
value: input.notifications
|
|
6548
|
-
}, _errorFactory)) && ("fullscreen" === input.presentationMode || "inline-expanded" === input.presentationMode ||
|
|
8536
|
+
}, _errorFactory)) && ("fullscreen" === input.presentationMode || "inline-expanded" === input.presentationMode || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6549
8537
|
method: "typia.createAssert",
|
|
6550
8538
|
path: _path + ".presentationMode",
|
|
6551
8539
|
expected: '("fullscreen" | "inline-expanded")',
|
|
6552
8540
|
value: input.presentationMode
|
|
6553
8541
|
}, _errorFactory));
|
|
6554
|
-
const _ao2 = (input, _path, _exceptionable = true) => (true === _av0.has(input.runtime) ||
|
|
8542
|
+
const _ao2 = (input, _path, _exceptionable = true) => (true === _av0.has(input.runtime) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6555
8543
|
method: "typia.createAssert",
|
|
6556
8544
|
path: _path + ".runtime",
|
|
6557
8545
|
expected: _ae0,
|
|
6558
8546
|
value: input.runtime
|
|
6559
|
-
}, _errorFactory)) && (("object" === typeof input.features && null !== input.features ||
|
|
8547
|
+
}, _errorFactory)) && (("object" === typeof input.features && null !== input.features || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6560
8548
|
method: "typia.createAssert",
|
|
6561
8549
|
path: _path + ".features",
|
|
6562
8550
|
expected: "TargetFeatureConfig",
|
|
6563
8551
|
value: input.features
|
|
6564
|
-
}, _errorFactory)) && _ao3(input.features, _path + ".features", _exceptionable) ||
|
|
8552
|
+
}, _errorFactory)) && _ao3(input.features, _path + ".features", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6565
8553
|
method: "typia.createAssert",
|
|
6566
8554
|
path: _path + ".features",
|
|
6567
8555
|
expected: "TargetFeatureConfig",
|
|
6568
8556
|
value: input.features
|
|
6569
|
-
}, _errorFactory)) && (("object" === typeof input.capabilities && null !== input.capabilities ||
|
|
8557
|
+
}, _errorFactory)) && (("object" === typeof input.capabilities && null !== input.capabilities || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6570
8558
|
method: "typia.createAssert",
|
|
6571
8559
|
path: _path + ".capabilities",
|
|
6572
8560
|
expected: "TargetCapabilityConfig",
|
|
6573
8561
|
value: input.capabilities
|
|
6574
|
-
}, _errorFactory)) && _ao4(input.capabilities, _path + ".capabilities", _exceptionable) ||
|
|
8562
|
+
}, _errorFactory)) && _ao4(input.capabilities, _path + ".capabilities", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6575
8563
|
method: "typia.createAssert",
|
|
6576
8564
|
path: _path + ".capabilities",
|
|
6577
8565
|
expected: "TargetCapabilityConfig",
|
|
6578
8566
|
value: input.capabilities
|
|
6579
|
-
}, _errorFactory)) && (("object" === typeof input.localization && null !== input.localization ||
|
|
8567
|
+
}, _errorFactory)) && (("object" === typeof input.localization && null !== input.localization || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6580
8568
|
method: "typia.createAssert",
|
|
6581
8569
|
path: _path + ".localization",
|
|
6582
8570
|
expected: "TargetLocalizationConfig",
|
|
6583
8571
|
value: input.localization
|
|
6584
|
-
}, _errorFactory)) && _ao5(input.localization, _path + ".localization", _exceptionable) ||
|
|
8572
|
+
}, _errorFactory)) && _ao5(input.localization, _path + ".localization", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6585
8573
|
method: "typia.createAssert",
|
|
6586
8574
|
path: _path + ".localization",
|
|
6587
8575
|
expected: "TargetLocalizationConfig",
|
|
6588
8576
|
value: input.localization
|
|
6589
|
-
}, _errorFactory)) && (("object" === typeof input.monetization && null !== input.monetization ||
|
|
8577
|
+
}, _errorFactory)) && (("object" === typeof input.monetization && null !== input.monetization || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6590
8578
|
method: "typia.createAssert",
|
|
6591
8579
|
path: _path + ".monetization",
|
|
6592
8580
|
expected: "TargetMonetizationConfig",
|
|
6593
8581
|
value: input.monetization
|
|
6594
|
-
}, _errorFactory)) && _ao6(input.monetization, _path + ".monetization", _exceptionable) ||
|
|
8582
|
+
}, _errorFactory)) && _ao6(input.monetization, _path + ".monetization", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6595
8583
|
method: "typia.createAssert",
|
|
6596
8584
|
path: _path + ".monetization",
|
|
6597
8585
|
expected: "TargetMonetizationConfig",
|
|
6598
8586
|
value: input.monetization
|
|
6599
|
-
}, _errorFactory)) && (("object" === typeof input.leaderboard && null !== input.leaderboard ||
|
|
8587
|
+
}, _errorFactory)) && (("object" === typeof input.leaderboard && null !== input.leaderboard || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6600
8588
|
method: "typia.createAssert",
|
|
6601
8589
|
path: _path + ".leaderboard",
|
|
6602
8590
|
expected: "TargetLeaderboardConfig",
|
|
6603
8591
|
value: input.leaderboard
|
|
6604
|
-
}, _errorFactory)) && _ao7(input.leaderboard, _path + ".leaderboard", _exceptionable) ||
|
|
8592
|
+
}, _errorFactory)) && _ao7(input.leaderboard, _path + ".leaderboard", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6605
8593
|
method: "typia.createAssert",
|
|
6606
8594
|
path: _path + ".leaderboard",
|
|
6607
8595
|
expected: "TargetLeaderboardConfig",
|
|
6608
8596
|
value: input.leaderboard
|
|
6609
|
-
}, _errorFactory)) && (("object" === typeof input.release && null !== input.release ||
|
|
8597
|
+
}, _errorFactory)) && (("object" === typeof input.release && null !== input.release || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6610
8598
|
method: "typia.createAssert",
|
|
6611
8599
|
path: _path + ".release",
|
|
6612
8600
|
expected: "TargetReleaseConfig",
|
|
6613
8601
|
value: input.release
|
|
6614
|
-
}, _errorFactory)) && _ao8(input.release, _path + ".release", _exceptionable) ||
|
|
8602
|
+
}, _errorFactory)) && _ao8(input.release, _path + ".release", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6615
8603
|
method: "typia.createAssert",
|
|
6616
8604
|
path: _path + ".release",
|
|
6617
8605
|
expected: "TargetReleaseConfig",
|
|
6618
8606
|
value: input.release
|
|
6619
|
-
}, _errorFactory)) && (("object" === typeof input.policy && null !== input.policy ||
|
|
8607
|
+
}, _errorFactory)) && (("object" === typeof input.policy && null !== input.policy || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6620
8608
|
method: "typia.createAssert",
|
|
6621
8609
|
path: _path + ".policy",
|
|
6622
8610
|
expected: "TargetPolicyRestrictions",
|
|
6623
8611
|
value: input.policy
|
|
6624
|
-
}, _errorFactory)) && _ao9(input.policy, _path + ".policy", _exceptionable) ||
|
|
8612
|
+
}, _errorFactory)) && _ao9(input.policy, _path + ".policy", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6625
8613
|
method: "typia.createAssert",
|
|
6626
8614
|
path: _path + ".policy",
|
|
6627
8615
|
expected: "TargetPolicyRestrictions",
|
|
6628
8616
|
value: input.policy
|
|
6629
|
-
}, _errorFactory)) && (void 0 === input.integrations || ("object" === typeof input.integrations && null !== input.integrations ||
|
|
8617
|
+
}, _errorFactory)) && (void 0 === input.integrations || ("object" === typeof input.integrations && null !== input.integrations || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6630
8618
|
method: "typia.createAssert",
|
|
6631
8619
|
path: _path + ".integrations",
|
|
6632
8620
|
expected: "(TargetIntegrationConfig | undefined)",
|
|
6633
8621
|
value: input.integrations
|
|
6634
|
-
}, _errorFactory)) && _ao10(input.integrations, _path + ".integrations", _exceptionable) ||
|
|
8622
|
+
}, _errorFactory)) && _ao10(input.integrations, _path + ".integrations", _exceptionable) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6635
8623
|
method: "typia.createAssert",
|
|
6636
8624
|
path: _path + ".integrations",
|
|
6637
8625
|
expected: "(TargetIntegrationConfig | undefined)",
|
|
6638
8626
|
value: input.integrations
|
|
6639
8627
|
}, _errorFactory));
|
|
6640
|
-
const _ao3 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && (void 0 === input.subscriptions || "boolean" === typeof input.subscriptions ||
|
|
8628
|
+
const _ao3 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && (void 0 === input.subscriptions || "boolean" === typeof input.subscriptions || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6641
8629
|
method: "typia.createAssert",
|
|
6642
8630
|
path: _path + ".subscriptions",
|
|
6643
8631
|
expected: "(boolean | undefined)",
|
|
6644
8632
|
value: input.subscriptions
|
|
6645
|
-
}, _errorFactory)) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && ("boolean" === typeof input.leaderboard ||
|
|
8633
|
+
}, _errorFactory)) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable) && ("boolean" === typeof input.leaderboard || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6646
8634
|
method: "typia.createAssert",
|
|
6647
8635
|
path: _path + ".leaderboard",
|
|
6648
8636
|
expected: "boolean",
|
|
6649
8637
|
value: input.leaderboard
|
|
6650
|
-
}, _errorFactory)) && (void 0 === input.nativeLeaderboard || "boolean" === typeof input.nativeLeaderboard ||
|
|
8638
|
+
}, _errorFactory)) && (void 0 === input.nativeLeaderboard || "boolean" === typeof input.nativeLeaderboard || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6651
8639
|
method: "typia.createAssert",
|
|
6652
8640
|
path: _path + ".nativeLeaderboard",
|
|
6653
8641
|
expected: "(boolean | undefined)",
|
|
6654
8642
|
value: input.nativeLeaderboard
|
|
6655
|
-
}, _errorFactory)) && (void 0 === input.remoteLeaderboard || "boolean" === typeof input.remoteLeaderboard ||
|
|
8643
|
+
}, _errorFactory)) && (void 0 === input.remoteLeaderboard || "boolean" === typeof input.remoteLeaderboard || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6656
8644
|
method: "typia.createAssert",
|
|
6657
8645
|
path: _path + ".remoteLeaderboard",
|
|
6658
8646
|
expected: "(boolean | undefined)",
|
|
6659
8647
|
value: input.remoteLeaderboard
|
|
6660
8648
|
}, _errorFactory)) && _ap4(input, _path, _exceptionable);
|
|
6661
|
-
const _ao4 = (input, _path, _exceptionable = true) => ("local" === input.storage || "native" === input.storage || "none" === input.storage ||
|
|
8649
|
+
const _ao4 = (input, _path, _exceptionable = true) => ("local" === input.storage || "native" === input.storage || "none" === input.storage || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6662
8650
|
method: "typia.createAssert",
|
|
6663
8651
|
path: _path + ".storage",
|
|
6664
8652
|
expected: '("local" | "native" | "none")',
|
|
6665
8653
|
value: input.storage
|
|
6666
8654
|
}, _errorFactory)) && _ap4(input, _path, _exceptionable);
|
|
6667
|
-
const _ao5 = (input, _path, _exceptionable = true) => "en" === input.fallbackLocale || "ko" === input.fallbackLocale ||
|
|
8655
|
+
const _ao5 = (input, _path, _exceptionable = true) => "en" === input.fallbackLocale || "ko" === input.fallbackLocale || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6668
8656
|
method: "typia.createAssert",
|
|
6669
8657
|
path: _path + ".fallbackLocale",
|
|
6670
8658
|
expected: '("en" | "ko")',
|
|
6671
8659
|
value: input.fallbackLocale
|
|
6672
8660
|
}, _errorFactory);
|
|
6673
8661
|
const _ao6 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && _ap3(input, _path, _exceptionable);
|
|
6674
|
-
const _ao7 = (input, _path, _exceptionable = true) => "boolean" === typeof input.native ||
|
|
8662
|
+
const _ao7 = (input, _path, _exceptionable = true) => "boolean" === typeof input.native || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6675
8663
|
method: "typia.createAssert",
|
|
6676
8664
|
path: _path + ".native",
|
|
6677
8665
|
expected: "boolean",
|
|
6678
8666
|
value: input.native
|
|
6679
8667
|
}, _errorFactory);
|
|
6680
|
-
const _ao8 = (input, _path, _exceptionable = true) => (true === _av1.has(input.profile) ||
|
|
8668
|
+
const _ao8 = (input, _path, _exceptionable = true) => (true === _av1.has(input.profile) || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6681
8669
|
method: "typia.createAssert",
|
|
6682
8670
|
path: _path + ".profile",
|
|
6683
8671
|
expected: _ae1,
|
|
6684
8672
|
value: input.profile
|
|
6685
|
-
}, _errorFactory)) && (void 0 === input.billingAuthority || "host" === input.billingAuthority || "store" === input.billingAuthority ||
|
|
8673
|
+
}, _errorFactory)) && (void 0 === input.billingAuthority || "host" === input.billingAuthority || "store" === input.billingAuthority || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6686
8674
|
method: "typia.createAssert",
|
|
6687
8675
|
path: _path + ".billingAuthority",
|
|
6688
8676
|
expected: '("host" | "store" | undefined)',
|
|
6689
8677
|
value: input.billingAuthority
|
|
6690
8678
|
}, _errorFactory));
|
|
6691
|
-
const _ao9 = (input, _path, _exceptionable = true) => ("boolean" === typeof input.externalPaymentAllowed ||
|
|
8679
|
+
const _ao9 = (input, _path, _exceptionable = true) => ("boolean" === typeof input.externalPaymentAllowed || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6692
8680
|
method: "typia.createAssert",
|
|
6693
8681
|
path: _path + ".externalPaymentAllowed",
|
|
6694
8682
|
expected: "boolean",
|
|
6695
8683
|
value: input.externalPaymentAllowed
|
|
6696
|
-
}, _errorFactory)) && ("boolean" === typeof input.remoteExecutableCodeAllowed ||
|
|
8684
|
+
}, _errorFactory)) && ("boolean" === typeof input.remoteExecutableCodeAllowed || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6697
8685
|
method: "typia.createAssert",
|
|
6698
8686
|
path: _path + ".remoteExecutableCodeAllowed",
|
|
6699
8687
|
expected: "boolean",
|
|
6700
8688
|
value: input.remoteExecutableCodeAllowed
|
|
6701
|
-
}, _errorFactory)) && ("boolean" === typeof input.installOtherAppCTAAllowed ||
|
|
8689
|
+
}, _errorFactory)) && ("boolean" === typeof input.installOtherAppCTAAllowed || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6702
8690
|
method: "typia.createAssert",
|
|
6703
8691
|
path: _path + ".installOtherAppCTAAllowed",
|
|
6704
8692
|
expected: "boolean",
|
|
6705
8693
|
value: input.installOtherAppCTAAllowed
|
|
6706
|
-
}, _errorFactory)) && ("boolean" === typeof input.requiresStoreReview ||
|
|
8694
|
+
}, _errorFactory)) && ("boolean" === typeof input.requiresStoreReview || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6707
8695
|
method: "typia.createAssert",
|
|
6708
8696
|
path: _path + ".requiresStoreReview",
|
|
6709
8697
|
expected: "boolean",
|
|
6710
8698
|
value: input.requiresStoreReview
|
|
6711
|
-
}, _errorFactory)) && ("boolean" === typeof input.requiresAitReview ||
|
|
8699
|
+
}, _errorFactory)) && ("boolean" === typeof input.requiresAitReview || _assertGuard_17._assertGuard(_exceptionable, {
|
|
6712
8700
|
method: "typia.createAssert",
|
|
6713
8701
|
path: _path + ".requiresAitReview",
|
|
6714
8702
|
expected: "boolean",
|
|
@@ -6735,12 +8723,12 @@ var assertTargetConfigExtensions = /* @__PURE__ */ (() => {
|
|
|
6735
8723
|
return (input, errorFactory) => {
|
|
6736
8724
|
if (false === __is(input)) {
|
|
6737
8725
|
_errorFactory = errorFactory;
|
|
6738
|
-
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 ||
|
|
8726
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_17._assertGuard(true, {
|
|
6739
8727
|
method: "typia.createAssert",
|
|
6740
8728
|
path: _path + "",
|
|
6741
8729
|
expected: "TargetConfigExtensions",
|
|
6742
8730
|
value: input2
|
|
6743
|
-
}, _errorFactory)) && _ao0(input2, _path + "", true) ||
|
|
8731
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_17._assertGuard(true, {
|
|
6744
8732
|
method: "typia.createAssert",
|
|
6745
8733
|
path: _path + "",
|
|
6746
8734
|
expected: "TargetConfigExtensions",
|
|
@@ -6876,8 +8864,43 @@ function validateEffectiveTargetConfigMatrix(matrix = loadEffectiveTargetConfigM
|
|
|
6876
8864
|
}
|
|
6877
8865
|
validateEffectiveTargetConfig(config2);
|
|
6878
8866
|
}
|
|
8867
|
+
const hostTargets = targets.filter((target2) => {
|
|
8868
|
+
const adapter = matrix.targets[target2]?.sources.platformAdapter;
|
|
8869
|
+
return adapter === "ait" || adapter === "devvit";
|
|
8870
|
+
});
|
|
8871
|
+
if (hostTargets.length > 0) {
|
|
8872
|
+
const catalog = readJsonFile(productCatalogFilePath());
|
|
8873
|
+
for (const target2 of hostTargets) {
|
|
8874
|
+
const config2 = matrix.targets[target2];
|
|
8875
|
+
if (config2 !== void 0) {
|
|
8876
|
+
validateHostProductList(config2, catalog);
|
|
8877
|
+
}
|
|
8878
|
+
}
|
|
8879
|
+
}
|
|
6879
8880
|
return matrix;
|
|
6880
8881
|
}
|
|
8882
|
+
function validateHostProductList(config2, catalog) {
|
|
8883
|
+
if (!config2.features.iap) {
|
|
8884
|
+
return;
|
|
8885
|
+
}
|
|
8886
|
+
const ait = config2.sources.platformAdapter === "ait";
|
|
8887
|
+
const hostLabel = ait ? "the Apps in Toss wrapper (platformProductIds.ait)" : "the Devvit server (platformProductIds.reddit)";
|
|
8888
|
+
const hostProducts = new Map(ait ? extractAitIapProductConfig(catalog).map((product) => [product.productId, product.sku]) : createDevvitCommerceBridgeProducts(catalog).map((product) => [
|
|
8889
|
+
product.productId,
|
|
8890
|
+
product.sku
|
|
8891
|
+
]));
|
|
8892
|
+
const sold = new Map(config2.monetization.products.flatMap((product) => product.enabled && product.platformProductId !== void 0 ? [[product.id, product.platformProductId]] : []));
|
|
8893
|
+
for (const [productId, sku] of sold) {
|
|
8894
|
+
if (hostProducts.get(productId) !== sku) {
|
|
8895
|
+
throw new Error(`Effective target ${config2.target} sells ${productId} as ${sku}, but ${hostLabel} ${hostProducts.has(productId) ? `lists it as ${String(hostProducts.get(productId))}` : "does not list it"}.`);
|
|
8896
|
+
}
|
|
8897
|
+
}
|
|
8898
|
+
for (const productId of hostProducts.keys()) {
|
|
8899
|
+
if (!sold.has(productId)) {
|
|
8900
|
+
throw new Error(`Effective target ${config2.target} does not sell ${productId}, but ${hostLabel} lists it.`);
|
|
8901
|
+
}
|
|
8902
|
+
}
|
|
8903
|
+
}
|
|
6881
8904
|
function writeEffectiveTargetConfigs(options = {}) {
|
|
6882
8905
|
const matrix = loadEffectiveTargetConfigMatrix();
|
|
6883
8906
|
const outputDir = options.outputDir ?? "artifacts/target-config";
|
|
@@ -6945,11 +8968,12 @@ function validateEffectiveTargetConfig(config2) {
|
|
|
6945
8968
|
if (config2.sources.platformAdapter !== expectedPlatformAdapter) {
|
|
6946
8969
|
throw new Error(`Effective target ${config2.target} runtime ${config2.runtime} does not match platform adapter ${config2.sources.platformAdapter ?? "undefined"}; expected ${expectedPlatformAdapter}.`);
|
|
6947
8970
|
}
|
|
8971
|
+
const catalogNamesTarget = config2.monetization.products.some((product) => product.platformProductId !== void 0);
|
|
6948
8972
|
for (const product of config2.monetization.products) {
|
|
6949
8973
|
if (!config2.features.iap && product.enabled) {
|
|
6950
8974
|
throw new Error(`Effective target ${config2.target} enables product ${product.id} while IAP is disabled.`);
|
|
6951
8975
|
}
|
|
6952
|
-
if (config2.features.iap && product.reason === "missing-platform-id" && config2.target !== "reddit") {
|
|
8976
|
+
if (config2.features.iap && product.reason === "missing-platform-id" && (config2.target !== "reddit" || catalogNamesTarget)) {
|
|
6953
8977
|
throw new Error(`Effective target ${config2.target} is missing a platform product id for ${product.id}.`);
|
|
6954
8978
|
}
|
|
6955
8979
|
}
|
|
@@ -7061,104 +9085,104 @@ function sha2562(content) {
|
|
|
7061
9085
|
}
|
|
7062
9086
|
|
|
7063
9087
|
// node_modules/.cache/mpgd-native-build/tools/target/generate-release-manifest.js
|
|
7064
|
-
import * as
|
|
7065
|
-
import * as
|
|
9088
|
+
import * as _assertGuard_19 from "typia/lib/internal/_assertGuard";
|
|
9089
|
+
import * as _accessExpressionAsString_110 from "typia/lib/internal/_accessExpressionAsString";
|
|
7066
9090
|
import { execFileSync } from "node:child_process";
|
|
7067
9091
|
import { createHash as createHash8, randomUUID as randomUUID2 } from "node:crypto";
|
|
7068
9092
|
import { existsSync as existsSync10, readFileSync as readFileSync14, realpathSync as realpathSync6, renameSync as renameSync2, rmSync as rmSync5, writeFileSync as writeFileSync8 } from "node:fs";
|
|
7069
9093
|
import { isAbsolute as isAbsolute8, relative as relative9, resolve as resolve12 } from "node:path";
|
|
7070
|
-
import
|
|
9094
|
+
import typia11 from "typia";
|
|
7071
9095
|
|
|
7072
9096
|
// node_modules/.cache/mpgd-native-build/packages/release-manifest/src/index.js
|
|
7073
|
-
import * as
|
|
7074
|
-
import * as
|
|
7075
|
-
import
|
|
7076
|
-
var
|
|
9097
|
+
import * as _assertGuard_18 from "typia/lib/internal/_assertGuard";
|
|
9098
|
+
import * as _accessExpressionAsString_19 from "typia/lib/internal/_accessExpressionAsString";
|
|
9099
|
+
import typia10 from "typia";
|
|
9100
|
+
var __typia_transform__accessExpressionAsString5 = _accessExpressionAsString_19._accessExpressionAsString;
|
|
7077
9101
|
var assertReleaseManifestStructure = /* @__PURE__ */ (() => {
|
|
7078
9102
|
const _ip0 = (input) => "string" === typeof input["gameVersion"];
|
|
7079
9103
|
const _ip1 = (input) => "string" === typeof input["path"];
|
|
7080
9104
|
const _ip2 = (input) => "string" === typeof input["digest"];
|
|
7081
|
-
const _ap0 = (input, _path, _exceptionable = true) => "string" === typeof input["gameVersion"] ||
|
|
9105
|
+
const _ap0 = (input, _path, _exceptionable = true) => "string" === typeof input["gameVersion"] || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7082
9106
|
method: "typia.createAssert",
|
|
7083
9107
|
path: _path + ".gameVersion",
|
|
7084
9108
|
expected: "string",
|
|
7085
9109
|
value: input["gameVersion"]
|
|
7086
9110
|
}, _errorFactory);
|
|
7087
9111
|
const _ae0 = "{ readonly path: string; readonly digest: string; readonly sourceSha256: string; readonly sharedConfigSha256: string; readonly renderConfigSha256: string; readonly generatorVersion: string; readonly targetProfile: string; readonly targetProfileVersion: string; }";
|
|
7088
|
-
const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["path"] ||
|
|
9112
|
+
const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["path"] || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7089
9113
|
method: "typia.createAssert",
|
|
7090
9114
|
path: _path + ".path",
|
|
7091
9115
|
expected: "string",
|
|
7092
9116
|
value: input["path"]
|
|
7093
9117
|
}, _errorFactory);
|
|
7094
|
-
const _ap2 = (input, _path, _exceptionable = true) => "string" === typeof input["digest"] ||
|
|
9118
|
+
const _ap2 = (input, _path, _exceptionable = true) => "string" === typeof input["digest"] || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7095
9119
|
method: "typia.createAssert",
|
|
7096
9120
|
path: _path + ".digest",
|
|
7097
9121
|
expected: "string",
|
|
7098
9122
|
value: input["digest"]
|
|
7099
9123
|
}, _errorFactory);
|
|
7100
|
-
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.releaseId ||
|
|
9124
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.releaseId || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7101
9125
|
method: "typia.createAssert",
|
|
7102
9126
|
path: _path + ".releaseId",
|
|
7103
9127
|
expected: "string",
|
|
7104
9128
|
value: input.releaseId
|
|
7105
|
-
}, _errorFactory)) && ("string" === typeof input.gitSha ||
|
|
9129
|
+
}, _errorFactory)) && ("string" === typeof input.gitSha || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7106
9130
|
method: "typia.createAssert",
|
|
7107
9131
|
path: _path + ".gitSha",
|
|
7108
9132
|
expected: "string",
|
|
7109
9133
|
value: input.gitSha
|
|
7110
|
-
}, _errorFactory)) && ("string" === typeof input.kitGitSha ||
|
|
9134
|
+
}, _errorFactory)) && ("string" === typeof input.kitGitSha || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7111
9135
|
method: "typia.createAssert",
|
|
7112
9136
|
path: _path + ".kitGitSha",
|
|
7113
9137
|
expected: "string",
|
|
7114
9138
|
value: input.kitGitSha
|
|
7115
|
-
}, _errorFactory)) && _ap0(input, _path, _exceptionable) && (void 0 === input.releaseIdentity || ("object" === typeof input.releaseIdentity && null !== input.releaseIdentity ||
|
|
9139
|
+
}, _errorFactory)) && _ap0(input, _path, _exceptionable) && (void 0 === input.releaseIdentity || ("object" === typeof input.releaseIdentity && null !== input.releaseIdentity || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7116
9140
|
method: "typia.createAssert",
|
|
7117
9141
|
path: _path + ".releaseIdentity",
|
|
7118
9142
|
expected: "(MpgdReleaseIdentity | undefined)",
|
|
7119
9143
|
value: input.releaseIdentity
|
|
7120
|
-
}, _errorFactory)) && _ao1(input.releaseIdentity, _path + ".releaseIdentity", _exceptionable) ||
|
|
9144
|
+
}, _errorFactory)) && _ao1(input.releaseIdentity, _path + ".releaseIdentity", _exceptionable) || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7121
9145
|
method: "typia.createAssert",
|
|
7122
9146
|
path: _path + ".releaseIdentity",
|
|
7123
9147
|
expected: "(MpgdReleaseIdentity | undefined)",
|
|
7124
9148
|
value: input.releaseIdentity
|
|
7125
|
-
}, _errorFactory)) && ("string" === typeof input.buildId ||
|
|
9149
|
+
}, _errorFactory)) && ("string" === typeof input.buildId || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7126
9150
|
method: "typia.createAssert",
|
|
7127
9151
|
path: _path + ".buildId",
|
|
7128
9152
|
expected: "string",
|
|
7129
9153
|
value: input.buildId
|
|
7130
|
-
}, _errorFactory)) && ("string" === typeof input.targetConfigVersion ||
|
|
9154
|
+
}, _errorFactory)) && ("string" === typeof input.targetConfigVersion || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7131
9155
|
method: "typia.createAssert",
|
|
7132
9156
|
path: _path + ".targetConfigVersion",
|
|
7133
9157
|
expected: "string",
|
|
7134
9158
|
value: input.targetConfigVersion
|
|
7135
|
-
}, _errorFactory)) && ("string" === typeof input.catalogVersion ||
|
|
9159
|
+
}, _errorFactory)) && ("string" === typeof input.catalogVersion || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7136
9160
|
method: "typia.createAssert",
|
|
7137
9161
|
path: _path + ".catalogVersion",
|
|
7138
9162
|
expected: "string",
|
|
7139
9163
|
value: input.catalogVersion
|
|
7140
|
-
}, _errorFactory)) && ("string" === typeof input.adPlacementVersion ||
|
|
9164
|
+
}, _errorFactory)) && ("string" === typeof input.adPlacementVersion || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7141
9165
|
method: "typia.createAssert",
|
|
7142
9166
|
path: _path + ".adPlacementVersion",
|
|
7143
9167
|
expected: "string",
|
|
7144
9168
|
value: input.adPlacementVersion
|
|
7145
|
-
}, _errorFactory)) && (("object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) ||
|
|
9169
|
+
}, _errorFactory)) && (("object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7146
9170
|
method: "typia.createAssert",
|
|
7147
9171
|
path: _path + ".targets",
|
|
7148
9172
|
expected: "Record<string, ReleaseTargetManifest>",
|
|
7149
9173
|
value: input.targets
|
|
7150
|
-
}, _errorFactory)) && _ao2(input.targets, _path + ".targets", _exceptionable) ||
|
|
9174
|
+
}, _errorFactory)) && _ao2(input.targets, _path + ".targets", _exceptionable) || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7151
9175
|
method: "typia.createAssert",
|
|
7152
9176
|
path: _path + ".targets",
|
|
7153
9177
|
expected: "Record<string, ReleaseTargetManifest>",
|
|
7154
9178
|
value: input.targets
|
|
7155
9179
|
}, _errorFactory));
|
|
7156
|
-
const _ao1 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && (void 0 === input.releaseRevision || "number" === typeof input.releaseRevision ||
|
|
9180
|
+
const _ao1 = (input, _path, _exceptionable = true) => _ap0(input, _path, _exceptionable) && (void 0 === input.releaseRevision || "number" === typeof input.releaseRevision || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7157
9181
|
method: "typia.createAssert",
|
|
7158
9182
|
path: _path + ".releaseRevision",
|
|
7159
9183
|
expected: "(number | undefined)",
|
|
7160
9184
|
value: input.releaseRevision
|
|
7161
|
-
}, _errorFactory)) && ("string" === typeof input.label ||
|
|
9185
|
+
}, _errorFactory)) && ("string" === typeof input.label || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7162
9186
|
method: "typia.createAssert",
|
|
7163
9187
|
path: _path + ".label",
|
|
7164
9188
|
expected: "string",
|
|
@@ -7168,142 +9192,142 @@ var assertReleaseManifestStructure = /* @__PURE__ */ (() => {
|
|
|
7168
9192
|
const value = input[key];
|
|
7169
9193
|
if (void 0 === value)
|
|
7170
9194
|
return true;
|
|
7171
|
-
return ("object" === typeof value && null !== value ||
|
|
9195
|
+
return ("object" === typeof value && null !== value || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7172
9196
|
method: "typia.createAssert",
|
|
7173
|
-
path: _path +
|
|
9197
|
+
path: _path + __typia_transform__accessExpressionAsString5(key),
|
|
7174
9198
|
expected: "ReleaseTargetManifest",
|
|
7175
9199
|
value
|
|
7176
|
-
}, _errorFactory)) && _ao3(value, _path +
|
|
9200
|
+
}, _errorFactory)) && _ao3(value, _path + __typia_transform__accessExpressionAsString5(key), _exceptionable) || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7177
9201
|
method: "typia.createAssert",
|
|
7178
|
-
path: _path +
|
|
9202
|
+
path: _path + __typia_transform__accessExpressionAsString5(key),
|
|
7179
9203
|
expected: "ReleaseTargetManifest",
|
|
7180
9204
|
value
|
|
7181
9205
|
}, _errorFactory);
|
|
7182
9206
|
});
|
|
7183
|
-
const _ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.artifact ||
|
|
9207
|
+
const _ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.artifact || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7184
9208
|
method: "typia.createAssert",
|
|
7185
9209
|
path: _path + ".artifact",
|
|
7186
9210
|
expected: "string",
|
|
7187
9211
|
value: input.artifact
|
|
7188
|
-
}, _errorFactory)) && (void 0 === input.profile || "string" === typeof input.profile ||
|
|
9212
|
+
}, _errorFactory)) && (void 0 === input.profile || "string" === typeof input.profile || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7189
9213
|
method: "typia.createAssert",
|
|
7190
9214
|
path: _path + ".profile",
|
|
7191
9215
|
expected: "(string | undefined)",
|
|
7192
9216
|
value: input.profile
|
|
7193
|
-
}, _errorFactory)) && (("object" === typeof input.effectiveConfig && null !== input.effectiveConfig ||
|
|
9217
|
+
}, _errorFactory)) && (("object" === typeof input.effectiveConfig && null !== input.effectiveConfig || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7194
9218
|
method: "typia.createAssert",
|
|
7195
9219
|
path: _path + ".effectiveConfig",
|
|
7196
9220
|
expected: "{ readonly path: string; readonly version: string; readonly digest: string; }",
|
|
7197
9221
|
value: input.effectiveConfig
|
|
7198
|
-
}, _errorFactory)) && _ao4(input.effectiveConfig, _path + ".effectiveConfig", _exceptionable) ||
|
|
9222
|
+
}, _errorFactory)) && _ao4(input.effectiveConfig, _path + ".effectiveConfig", _exceptionable) || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7199
9223
|
method: "typia.createAssert",
|
|
7200
9224
|
path: _path + ".effectiveConfig",
|
|
7201
9225
|
expected: "{ readonly path: string; readonly version: string; readonly digest: string; }",
|
|
7202
9226
|
value: input.effectiveConfig
|
|
7203
|
-
}, _errorFactory)) && (("object" === typeof input.iconManifest && null !== input.iconManifest ||
|
|
9227
|
+
}, _errorFactory)) && (("object" === typeof input.iconManifest && null !== input.iconManifest || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7204
9228
|
method: "typia.createAssert",
|
|
7205
9229
|
path: _path + ".iconManifest",
|
|
7206
9230
|
expected: _ae0,
|
|
7207
9231
|
value: input.iconManifest
|
|
7208
|
-
}, _errorFactory)) && _ao5(input.iconManifest, _path + ".iconManifest", _exceptionable) ||
|
|
9232
|
+
}, _errorFactory)) && _ao5(input.iconManifest, _path + ".iconManifest", _exceptionable) || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7209
9233
|
method: "typia.createAssert",
|
|
7210
9234
|
path: _path + ".iconManifest",
|
|
7211
9235
|
expected: _ae0,
|
|
7212
9236
|
value: input.iconManifest
|
|
7213
|
-
}, _errorFactory)) && (void 0 === input.versionName || "string" === typeof input.versionName ||
|
|
9237
|
+
}, _errorFactory)) && (void 0 === input.versionName || "string" === typeof input.versionName || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7214
9238
|
method: "typia.createAssert",
|
|
7215
9239
|
path: _path + ".versionName",
|
|
7216
9240
|
expected: "(string | undefined)",
|
|
7217
9241
|
value: input.versionName
|
|
7218
|
-
}, _errorFactory)) && (void 0 === input.versionCode || "number" === typeof input.versionCode ||
|
|
9242
|
+
}, _errorFactory)) && (void 0 === input.versionCode || "number" === typeof input.versionCode || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7219
9243
|
method: "typia.createAssert",
|
|
7220
9244
|
path: _path + ".versionCode",
|
|
7221
9245
|
expected: "(number | undefined)",
|
|
7222
9246
|
value: input.versionCode
|
|
7223
|
-
}, _errorFactory)) && (void 0 === input.marketingVersion || "string" === typeof input.marketingVersion ||
|
|
9247
|
+
}, _errorFactory)) && (void 0 === input.marketingVersion || "string" === typeof input.marketingVersion || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7224
9248
|
method: "typia.createAssert",
|
|
7225
9249
|
path: _path + ".marketingVersion",
|
|
7226
9250
|
expected: "(string | undefined)",
|
|
7227
9251
|
value: input.marketingVersion
|
|
7228
|
-
}, _errorFactory)) && (void 0 === input.buildNumber || "string" === typeof input.buildNumber ||
|
|
9252
|
+
}, _errorFactory)) && (void 0 === input.buildNumber || "string" === typeof input.buildNumber || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7229
9253
|
method: "typia.createAssert",
|
|
7230
9254
|
path: _path + ".buildNumber",
|
|
7231
9255
|
expected: "(string | undefined)",
|
|
7232
9256
|
value: input.buildNumber
|
|
7233
|
-
}, _errorFactory)) && (void 0 === input.nativeDelivery || ("object" === typeof input.nativeDelivery && null !== input.nativeDelivery ||
|
|
9257
|
+
}, _errorFactory)) && (void 0 === input.nativeDelivery || ("object" === typeof input.nativeDelivery && null !== input.nativeDelivery || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7234
9258
|
method: "typia.createAssert",
|
|
7235
9259
|
path: _path + ".nativeDelivery",
|
|
7236
9260
|
expected: "(ReleaseNativeDelivery | undefined)",
|
|
7237
9261
|
value: input.nativeDelivery
|
|
7238
|
-
}, _errorFactory)) && _ao6(input.nativeDelivery, _path + ".nativeDelivery", _exceptionable) ||
|
|
9262
|
+
}, _errorFactory)) && _ao6(input.nativeDelivery, _path + ".nativeDelivery", _exceptionable) || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7239
9263
|
method: "typia.createAssert",
|
|
7240
9264
|
path: _path + ".nativeDelivery",
|
|
7241
9265
|
expected: "(ReleaseNativeDelivery | undefined)",
|
|
7242
9266
|
value: input.nativeDelivery
|
|
7243
|
-
}, _errorFactory)) && (void 0 === input.appName || "string" === typeof input.appName ||
|
|
9267
|
+
}, _errorFactory)) && (void 0 === input.appName || "string" === typeof input.appName || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7244
9268
|
method: "typia.createAssert",
|
|
7245
9269
|
path: _path + ".appName",
|
|
7246
9270
|
expected: "(string | undefined)",
|
|
7247
9271
|
value: input.appName
|
|
7248
|
-
}, _errorFactory)) && (void 0 === input.sdkMajor || "number" === typeof input.sdkMajor ||
|
|
9272
|
+
}, _errorFactory)) && (void 0 === input.sdkMajor || "number" === typeof input.sdkMajor || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7249
9273
|
method: "typia.createAssert",
|
|
7250
9274
|
path: _path + ".sdkMajor",
|
|
7251
9275
|
expected: "(number | undefined)",
|
|
7252
9276
|
value: input.sdkMajor
|
|
7253
9277
|
}, _errorFactory));
|
|
7254
|
-
const _ao4 = (input, _path, _exceptionable = true) => _ap1(input, _path, _exceptionable) && ("string" === typeof input.version ||
|
|
9278
|
+
const _ao4 = (input, _path, _exceptionable = true) => _ap1(input, _path, _exceptionable) && ("string" === typeof input.version || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7255
9279
|
method: "typia.createAssert",
|
|
7256
9280
|
path: _path + ".version",
|
|
7257
9281
|
expected: "string",
|
|
7258
9282
|
value: input.version
|
|
7259
9283
|
}, _errorFactory)) && _ap2(input, _path, _exceptionable);
|
|
7260
|
-
const _ao5 = (input, _path, _exceptionable = true) => _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && ("string" === typeof input.sourceSha256 ||
|
|
9284
|
+
const _ao5 = (input, _path, _exceptionable = true) => _ap1(input, _path, _exceptionable) && _ap2(input, _path, _exceptionable) && ("string" === typeof input.sourceSha256 || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7261
9285
|
method: "typia.createAssert",
|
|
7262
9286
|
path: _path + ".sourceSha256",
|
|
7263
9287
|
expected: "string",
|
|
7264
9288
|
value: input.sourceSha256
|
|
7265
|
-
}, _errorFactory)) && ("string" === typeof input.sharedConfigSha256 ||
|
|
9289
|
+
}, _errorFactory)) && ("string" === typeof input.sharedConfigSha256 || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7266
9290
|
method: "typia.createAssert",
|
|
7267
9291
|
path: _path + ".sharedConfigSha256",
|
|
7268
9292
|
expected: "string",
|
|
7269
9293
|
value: input.sharedConfigSha256
|
|
7270
|
-
}, _errorFactory)) && ("string" === typeof input.renderConfigSha256 ||
|
|
9294
|
+
}, _errorFactory)) && ("string" === typeof input.renderConfigSha256 || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7271
9295
|
method: "typia.createAssert",
|
|
7272
9296
|
path: _path + ".renderConfigSha256",
|
|
7273
9297
|
expected: "string",
|
|
7274
9298
|
value: input.renderConfigSha256
|
|
7275
|
-
}, _errorFactory)) && ("string" === typeof input.generatorVersion ||
|
|
9299
|
+
}, _errorFactory)) && ("string" === typeof input.generatorVersion || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7276
9300
|
method: "typia.createAssert",
|
|
7277
9301
|
path: _path + ".generatorVersion",
|
|
7278
9302
|
expected: "string",
|
|
7279
9303
|
value: input.generatorVersion
|
|
7280
|
-
}, _errorFactory)) && ("string" === typeof input.targetProfile ||
|
|
9304
|
+
}, _errorFactory)) && ("string" === typeof input.targetProfile || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7281
9305
|
method: "typia.createAssert",
|
|
7282
9306
|
path: _path + ".targetProfile",
|
|
7283
9307
|
expected: "string",
|
|
7284
9308
|
value: input.targetProfile
|
|
7285
|
-
}, _errorFactory)) && ("string" === typeof input.targetProfileVersion ||
|
|
9309
|
+
}, _errorFactory)) && ("string" === typeof input.targetProfileVersion || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7286
9310
|
method: "typia.createAssert",
|
|
7287
9311
|
path: _path + ".targetProfileVersion",
|
|
7288
9312
|
expected: "string",
|
|
7289
9313
|
value: input.targetProfileVersion
|
|
7290
9314
|
}, _errorFactory));
|
|
7291
|
-
const _ao6 = (input, _path, _exceptionable = true) => ("android" === input.platform || "ios" === input.platform ||
|
|
9315
|
+
const _ao6 = (input, _path, _exceptionable = true) => ("android" === input.platform || "ios" === input.platform || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7292
9316
|
method: "typia.createAssert",
|
|
7293
9317
|
path: _path + ".platform",
|
|
7294
9318
|
expected: '("android" | "ios")',
|
|
7295
9319
|
value: input.platform
|
|
7296
|
-
}, _errorFactory)) && ("debug" === input.mode || "signed-archive" === input.mode || "simulator" === input.mode || "store-export" === input.mode || "sync" === input.mode || "unsigned-archive" === input.mode ||
|
|
9320
|
+
}, _errorFactory)) && ("debug" === input.mode || "signed-archive" === input.mode || "simulator" === input.mode || "store-export" === input.mode || "sync" === input.mode || "unsigned-archive" === input.mode || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7297
9321
|
method: "typia.createAssert",
|
|
7298
9322
|
path: _path + ".mode",
|
|
7299
9323
|
expected: '("debug" | "signed-archive" | "simulator" | "store-export" | "sync" | "unsigned-archive")',
|
|
7300
9324
|
value: input.mode
|
|
7301
|
-
}, _errorFactory)) && ("boolean" === typeof input.signed ||
|
|
9325
|
+
}, _errorFactory)) && ("boolean" === typeof input.signed || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7302
9326
|
method: "typia.createAssert",
|
|
7303
9327
|
path: _path + ".signed",
|
|
7304
9328
|
expected: "boolean",
|
|
7305
9329
|
value: input.signed
|
|
7306
|
-
}, _errorFactory)) && ("boolean" === typeof input.submissionCandidate ||
|
|
9330
|
+
}, _errorFactory)) && ("boolean" === typeof input.submissionCandidate || _assertGuard_18._assertGuard(_exceptionable, {
|
|
7307
9331
|
method: "typia.createAssert",
|
|
7308
9332
|
path: _path + ".submissionCandidate",
|
|
7309
9333
|
expected: "boolean",
|
|
@@ -7326,12 +9350,12 @@ var assertReleaseManifestStructure = /* @__PURE__ */ (() => {
|
|
|
7326
9350
|
return (input, errorFactory) => {
|
|
7327
9351
|
if (false === __is(input)) {
|
|
7328
9352
|
_errorFactory = errorFactory;
|
|
7329
|
-
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 ||
|
|
9353
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_18._assertGuard(true, {
|
|
7330
9354
|
method: "typia.createAssert",
|
|
7331
9355
|
path: _path + "",
|
|
7332
9356
|
expected: "ReleaseManifest",
|
|
7333
9357
|
value: input2
|
|
7334
|
-
}, _errorFactory)) && _ao0(input2, _path + "", true) ||
|
|
9358
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_18._assertGuard(true, {
|
|
7335
9359
|
method: "typia.createAssert",
|
|
7336
9360
|
path: _path + "",
|
|
7337
9361
|
expected: "ReleaseManifest",
|
|
@@ -7479,149 +9503,149 @@ function canRecoverLock(lockFile) {
|
|
|
7479
9503
|
}
|
|
7480
9504
|
|
|
7481
9505
|
// node_modules/.cache/mpgd-native-build/tools/target/generate-release-manifest.js
|
|
7482
|
-
var
|
|
9506
|
+
var __typia_transform__accessExpressionAsString6 = _accessExpressionAsString_110._accessExpressionAsString;
|
|
7483
9507
|
var assertProductCatalog = /* @__PURE__ */ (() => {
|
|
7484
9508
|
const _ae0 = '({ readonly type: "currency"; readonly currency: string & MinLength<1>; readonly amount: number; } | { readonly type: "entitlement"; readonly entitlement: string; } | { readonly type: "resource"; readonly resource: string & MinLength<1>; readonly amount: number & ExclusiveMinimum<0> & Maximum<1.7976931348623157e+308>; })';
|
|
7485
|
-
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.version ||
|
|
9509
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.version || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7486
9510
|
method: "typia.createAssert",
|
|
7487
9511
|
path: _path + ".version",
|
|
7488
9512
|
expected: "string",
|
|
7489
9513
|
value: input.version
|
|
7490
|
-
}, _errorFactory)) && (void 0 === input.currencies || (Array.isArray(input.currencies) ||
|
|
9514
|
+
}, _errorFactory)) && (void 0 === input.currencies || (Array.isArray(input.currencies) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7491
9515
|
method: "typia.createAssert",
|
|
7492
9516
|
path: _path + ".currencies",
|
|
7493
9517
|
expected: "((ReadonlyArray<string & MinLength<1>> & MinItems<1>) | undefined)",
|
|
7494
9518
|
value: input.currencies
|
|
7495
|
-
}, _errorFactory)) && ((1 <= input.currencies.length ||
|
|
9519
|
+
}, _errorFactory)) && ((1 <= input.currencies.length || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7496
9520
|
method: "typia.createAssert",
|
|
7497
9521
|
path: _path + ".currencies",
|
|
7498
9522
|
expected: "Array<> & MinItems<1>",
|
|
7499
9523
|
value: input.currencies
|
|
7500
|
-
}, _errorFactory)) && input.currencies.every((elem, _index3) => "string" === typeof elem && (1 <= elem.length ||
|
|
9524
|
+
}, _errorFactory)) && input.currencies.every((elem, _index3) => "string" === typeof elem && (1 <= elem.length || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7501
9525
|
method: "typia.createAssert",
|
|
7502
9526
|
path: _path + ".currencies[" + _index3 + "]",
|
|
7503
9527
|
expected: "string & MinLength<1>",
|
|
7504
9528
|
value: elem
|
|
7505
|
-
}, _errorFactory)) ||
|
|
9529
|
+
}, _errorFactory)) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7506
9530
|
method: "typia.createAssert",
|
|
7507
9531
|
path: _path + ".currencies[" + _index3 + "]",
|
|
7508
9532
|
expected: "(string & MinLength<1>)",
|
|
7509
9533
|
value: elem
|
|
7510
|
-
}, _errorFactory))) ||
|
|
9534
|
+
}, _errorFactory))) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7511
9535
|
method: "typia.createAssert",
|
|
7512
9536
|
path: _path + ".currencies",
|
|
7513
9537
|
expected: "((ReadonlyArray<string & MinLength<1>> & MinItems<1>) | undefined)",
|
|
7514
9538
|
value: input.currencies
|
|
7515
|
-
}, _errorFactory)) && ((Array.isArray(input.products) ||
|
|
9539
|
+
}, _errorFactory)) && ((Array.isArray(input.products) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7516
9540
|
method: "typia.createAssert",
|
|
7517
9541
|
path: _path + ".products",
|
|
7518
9542
|
expected: "ReadonlyArray<ProductCatalogEntry>",
|
|
7519
9543
|
value: input.products
|
|
7520
|
-
}, _errorFactory)) && input.products.every((elem, _index4) => ("object" === typeof elem && null !== elem ||
|
|
9544
|
+
}, _errorFactory)) && input.products.every((elem, _index4) => ("object" === typeof elem && null !== elem || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7521
9545
|
method: "typia.createAssert",
|
|
7522
9546
|
path: _path + ".products[" + _index4 + "]",
|
|
7523
9547
|
expected: "ProductCatalogEntry",
|
|
7524
9548
|
value: elem
|
|
7525
|
-
}, _errorFactory)) && _ao1(elem, _path + ".products[" + _index4 + "]", _exceptionable) ||
|
|
9549
|
+
}, _errorFactory)) && _ao1(elem, _path + ".products[" + _index4 + "]", _exceptionable) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7526
9550
|
method: "typia.createAssert",
|
|
7527
9551
|
path: _path + ".products[" + _index4 + "]",
|
|
7528
9552
|
expected: "ProductCatalogEntry",
|
|
7529
9553
|
value: elem
|
|
7530
|
-
}, _errorFactory)) ||
|
|
9554
|
+
}, _errorFactory)) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7531
9555
|
method: "typia.createAssert",
|
|
7532
9556
|
path: _path + ".products",
|
|
7533
9557
|
expected: "ReadonlyArray<ProductCatalogEntry>",
|
|
7534
9558
|
value: input.products
|
|
7535
9559
|
}, _errorFactory));
|
|
7536
|
-
const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.id ||
|
|
9560
|
+
const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7537
9561
|
method: "typia.createAssert",
|
|
7538
9562
|
path: _path + ".id",
|
|
7539
9563
|
expected: "string",
|
|
7540
9564
|
value: input.id
|
|
7541
|
-
}, _errorFactory)) && ("consumable" === input.type || "non_consumable" === input.type || "subscription" === input.type ||
|
|
9565
|
+
}, _errorFactory)) && ("consumable" === input.type || "non_consumable" === input.type || "subscription" === input.type || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7542
9566
|
method: "typia.createAssert",
|
|
7543
9567
|
path: _path + ".type",
|
|
7544
9568
|
expected: '("consumable" | "non_consumable" | "subscription")',
|
|
7545
9569
|
value: input.type
|
|
7546
|
-
}, _errorFactory)) && (("object" === typeof input.grant && null !== input.grant ||
|
|
9570
|
+
}, _errorFactory)) && (("object" === typeof input.grant && null !== input.grant || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7547
9571
|
method: "typia.createAssert",
|
|
7548
9572
|
path: _path + ".grant",
|
|
7549
9573
|
expected: _ae0,
|
|
7550
9574
|
value: input.grant
|
|
7551
|
-
}, _errorFactory)) && _au0(input.grant, _path + ".grant", _exceptionable) ||
|
|
9575
|
+
}, _errorFactory)) && _au0(input.grant, _path + ".grant", _exceptionable) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7552
9576
|
method: "typia.createAssert",
|
|
7553
9577
|
path: _path + ".grant",
|
|
7554
9578
|
expected: _ae0,
|
|
7555
9579
|
value: input.grant
|
|
7556
|
-
}, _errorFactory)) && (("object" === typeof input.platformProductIds && null !== input.platformProductIds && false === Array.isArray(input.platformProductIds) ||
|
|
9580
|
+
}, _errorFactory)) && (("object" === typeof input.platformProductIds && null !== input.platformProductIds && false === Array.isArray(input.platformProductIds) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7557
9581
|
method: "typia.createAssert",
|
|
7558
9582
|
path: _path + ".platformProductIds",
|
|
7559
9583
|
expected: "Partial<Record<string, string>>",
|
|
7560
9584
|
value: input.platformProductIds
|
|
7561
|
-
}, _errorFactory)) && _ao5(input.platformProductIds, _path + ".platformProductIds", _exceptionable) ||
|
|
9585
|
+
}, _errorFactory)) && _ao5(input.platformProductIds, _path + ".platformProductIds", _exceptionable) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7562
9586
|
method: "typia.createAssert",
|
|
7563
9587
|
path: _path + ".platformProductIds",
|
|
7564
9588
|
expected: "Partial<Record<string, string>>",
|
|
7565
9589
|
value: input.platformProductIds
|
|
7566
9590
|
}, _errorFactory));
|
|
7567
|
-
const _ao2 = (input, _path, _exceptionable = true) => ("currency" === input.type ||
|
|
9591
|
+
const _ao2 = (input, _path, _exceptionable = true) => ("currency" === input.type || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7568
9592
|
method: "typia.createAssert",
|
|
7569
9593
|
path: _path + ".type",
|
|
7570
9594
|
expected: '"currency"',
|
|
7571
9595
|
value: input.type
|
|
7572
|
-
}, _errorFactory)) && ("string" === typeof input.currency && (1 <= input.currency.length ||
|
|
9596
|
+
}, _errorFactory)) && ("string" === typeof input.currency && (1 <= input.currency.length || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7573
9597
|
method: "typia.createAssert",
|
|
7574
9598
|
path: _path + ".currency",
|
|
7575
9599
|
expected: "string & MinLength<1>",
|
|
7576
9600
|
value: input.currency
|
|
7577
|
-
}, _errorFactory)) ||
|
|
9601
|
+
}, _errorFactory)) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7578
9602
|
method: "typia.createAssert",
|
|
7579
9603
|
path: _path + ".currency",
|
|
7580
9604
|
expected: "(string & MinLength<1>)",
|
|
7581
9605
|
value: input.currency
|
|
7582
|
-
}, _errorFactory)) && ("number" === typeof input.amount ||
|
|
9606
|
+
}, _errorFactory)) && ("number" === typeof input.amount || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7583
9607
|
method: "typia.createAssert",
|
|
7584
9608
|
path: _path + ".amount",
|
|
7585
9609
|
expected: "number",
|
|
7586
9610
|
value: input.amount
|
|
7587
9611
|
}, _errorFactory));
|
|
7588
|
-
const _ao3 = (input, _path, _exceptionable = true) => ("entitlement" === input.type ||
|
|
9612
|
+
const _ao3 = (input, _path, _exceptionable = true) => ("entitlement" === input.type || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7589
9613
|
method: "typia.createAssert",
|
|
7590
9614
|
path: _path + ".type",
|
|
7591
9615
|
expected: '"entitlement"',
|
|
7592
9616
|
value: input.type
|
|
7593
|
-
}, _errorFactory)) && ("string" === typeof input.entitlement ||
|
|
9617
|
+
}, _errorFactory)) && ("string" === typeof input.entitlement || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7594
9618
|
method: "typia.createAssert",
|
|
7595
9619
|
path: _path + ".entitlement",
|
|
7596
9620
|
expected: "string",
|
|
7597
9621
|
value: input.entitlement
|
|
7598
9622
|
}, _errorFactory));
|
|
7599
|
-
const _ao4 = (input, _path, _exceptionable = true) => ("resource" === input.type ||
|
|
9623
|
+
const _ao4 = (input, _path, _exceptionable = true) => ("resource" === input.type || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7600
9624
|
method: "typia.createAssert",
|
|
7601
9625
|
path: _path + ".type",
|
|
7602
9626
|
expected: '"resource"',
|
|
7603
9627
|
value: input.type
|
|
7604
|
-
}, _errorFactory)) && ("string" === typeof input.resource && (1 <= input.resource.length ||
|
|
9628
|
+
}, _errorFactory)) && ("string" === typeof input.resource && (1 <= input.resource.length || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7605
9629
|
method: "typia.createAssert",
|
|
7606
9630
|
path: _path + ".resource",
|
|
7607
9631
|
expected: "string & MinLength<1>",
|
|
7608
9632
|
value: input.resource
|
|
7609
|
-
}, _errorFactory)) ||
|
|
9633
|
+
}, _errorFactory)) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7610
9634
|
method: "typia.createAssert",
|
|
7611
9635
|
path: _path + ".resource",
|
|
7612
9636
|
expected: "(string & MinLength<1>)",
|
|
7613
9637
|
value: input.resource
|
|
7614
|
-
}, _errorFactory)) && ("number" === typeof input.amount && (0 < input.amount ||
|
|
9638
|
+
}, _errorFactory)) && ("number" === typeof input.amount && (0 < input.amount || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7615
9639
|
method: "typia.createAssert",
|
|
7616
9640
|
path: _path + ".amount",
|
|
7617
9641
|
expected: "number & ExclusiveMinimum<0>",
|
|
7618
9642
|
value: input.amount
|
|
7619
|
-
}, _errorFactory)) && (input.amount <= 17976931348623157e292 ||
|
|
9643
|
+
}, _errorFactory)) && (input.amount <= 17976931348623157e292 || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7620
9644
|
method: "typia.createAssert",
|
|
7621
9645
|
path: _path + ".amount",
|
|
7622
9646
|
expected: "number & Maximum<1.7976931348623157e+308>",
|
|
7623
9647
|
value: input.amount
|
|
7624
|
-
}, _errorFactory)) ||
|
|
9648
|
+
}, _errorFactory)) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7625
9649
|
method: "typia.createAssert",
|
|
7626
9650
|
path: _path + ".amount",
|
|
7627
9651
|
expected: "(number & ExclusiveMinimum<0> & Maximum<1.7976931348623157e+308>)",
|
|
@@ -7631,9 +9655,9 @@ var assertProductCatalog = /* @__PURE__ */ (() => {
|
|
|
7631
9655
|
const value = input[key];
|
|
7632
9656
|
if (void 0 === value)
|
|
7633
9657
|
return true;
|
|
7634
|
-
return void 0 === value || "string" === typeof value ||
|
|
9658
|
+
return void 0 === value || "string" === typeof value || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7635
9659
|
method: "typia.createAssert",
|
|
7636
|
-
path: _path +
|
|
9660
|
+
path: _path + __typia_transform__accessExpressionAsString6(key),
|
|
7637
9661
|
expected: "(string | undefined)",
|
|
7638
9662
|
value
|
|
7639
9663
|
}, _errorFactory);
|
|
@@ -7646,7 +9670,7 @@ var assertProductCatalog = /* @__PURE__ */ (() => {
|
|
|
7646
9670
|
else if ("resource" === input.type)
|
|
7647
9671
|
return _ao4(input, _path, _exceptionable);
|
|
7648
9672
|
else
|
|
7649
|
-
return
|
|
9673
|
+
return _assertGuard_19._assertGuard(_exceptionable, {
|
|
7650
9674
|
method: "typia.createAssert",
|
|
7651
9675
|
path: _path,
|
|
7652
9676
|
expected: _ae0,
|
|
@@ -7679,12 +9703,12 @@ var assertProductCatalog = /* @__PURE__ */ (() => {
|
|
|
7679
9703
|
return (input, errorFactory) => {
|
|
7680
9704
|
if (false === __is(input)) {
|
|
7681
9705
|
_errorFactory = errorFactory;
|
|
7682
|
-
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 ||
|
|
9706
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_19._assertGuard(true, {
|
|
7683
9707
|
method: "typia.createAssert",
|
|
7684
9708
|
path: _path + "",
|
|
7685
9709
|
expected: "ProductCatalog",
|
|
7686
9710
|
value: input2
|
|
7687
|
-
}, _errorFactory)) && _ao0(input2, _path + "", true) ||
|
|
9711
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_19._assertGuard(true, {
|
|
7688
9712
|
method: "typia.createAssert",
|
|
7689
9713
|
path: _path + "",
|
|
7690
9714
|
expected: "ProductCatalog",
|
|
@@ -7698,107 +9722,107 @@ var assertAdPlacements = /* @__PURE__ */ (() => {
|
|
|
7698
9722
|
const _ip0 = (input) => "number" === typeof input["amount"];
|
|
7699
9723
|
const _ae0 = '(AdPlacementEntryBase & { readonly type: "banner" | "interstitial"; readonly reward?: never; } | AdPlacementEntryBase & { readonly type: "rewarded"; readonly reward?: AdReward; })';
|
|
7700
9724
|
const _ae1 = '(undefined | { readonly type: "continue"; readonly amount: number; } | { readonly type: "currency"; readonly amount: number; readonly currency: string & MinLength<1>; })';
|
|
7701
|
-
const _ap0 = (input, _path, _exceptionable = true) => "number" === typeof input["amount"] ||
|
|
9725
|
+
const _ap0 = (input, _path, _exceptionable = true) => "number" === typeof input["amount"] || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7702
9726
|
method: "typia.createAssert",
|
|
7703
9727
|
path: _path + ".amount",
|
|
7704
9728
|
expected: "number",
|
|
7705
9729
|
value: input["amount"]
|
|
7706
9730
|
}, _errorFactory);
|
|
7707
9731
|
const _ae2 = '({ readonly type: "continue"; readonly amount: number; } | { readonly type: "currency"; readonly amount: number; readonly currency: string & MinLength<1>; })';
|
|
7708
|
-
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.version ||
|
|
9732
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.version || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7709
9733
|
method: "typia.createAssert",
|
|
7710
9734
|
path: _path + ".version",
|
|
7711
9735
|
expected: "string",
|
|
7712
9736
|
value: input.version
|
|
7713
|
-
}, _errorFactory)) && ((Array.isArray(input.placements) ||
|
|
9737
|
+
}, _errorFactory)) && ((Array.isArray(input.placements) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7714
9738
|
method: "typia.createAssert",
|
|
7715
9739
|
path: _path + ".placements",
|
|
7716
9740
|
expected: "ReadonlyArray<AdPlacementEntry>",
|
|
7717
9741
|
value: input.placements
|
|
7718
|
-
}, _errorFactory)) && input.placements.every((elem, _index3) => ("object" === typeof elem && null !== elem ||
|
|
9742
|
+
}, _errorFactory)) && input.placements.every((elem, _index3) => ("object" === typeof elem && null !== elem || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7719
9743
|
method: "typia.createAssert",
|
|
7720
9744
|
path: _path + ".placements[" + _index3 + "]",
|
|
7721
9745
|
expected: _ae0,
|
|
7722
9746
|
value: elem
|
|
7723
|
-
}, _errorFactory)) && _au0(elem, _path + ".placements[" + _index3 + "]", _exceptionable) ||
|
|
9747
|
+
}, _errorFactory)) && _au0(elem, _path + ".placements[" + _index3 + "]", _exceptionable) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7724
9748
|
method: "typia.createAssert",
|
|
7725
9749
|
path: _path + ".placements[" + _index3 + "]",
|
|
7726
9750
|
expected: _ae0,
|
|
7727
9751
|
value: elem
|
|
7728
|
-
}, _errorFactory)) ||
|
|
9752
|
+
}, _errorFactory)) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7729
9753
|
method: "typia.createAssert",
|
|
7730
9754
|
path: _path + ".placements",
|
|
7731
9755
|
expected: "ReadonlyArray<AdPlacementEntry>",
|
|
7732
9756
|
value: input.placements
|
|
7733
|
-
}, _errorFactory)) && (void 0 === input.sharedPlatformPlacementTargets || (Array.isArray(input.sharedPlatformPlacementTargets) ||
|
|
9757
|
+
}, _errorFactory)) && (void 0 === input.sharedPlatformPlacementTargets || (Array.isArray(input.sharedPlatformPlacementTargets) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7734
9758
|
method: "typia.createAssert",
|
|
7735
9759
|
path: _path + ".sharedPlatformPlacementTargets",
|
|
7736
9760
|
expected: "(ReadonlyArray<string> | undefined)",
|
|
7737
9761
|
value: input.sharedPlatformPlacementTargets
|
|
7738
|
-
}, _errorFactory)) && input.sharedPlatformPlacementTargets.every((elem, _index4) => "string" === typeof elem ||
|
|
9762
|
+
}, _errorFactory)) && input.sharedPlatformPlacementTargets.every((elem, _index4) => "string" === typeof elem || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7739
9763
|
method: "typia.createAssert",
|
|
7740
9764
|
path: _path + ".sharedPlatformPlacementTargets[" + _index4 + "]",
|
|
7741
9765
|
expected: "string",
|
|
7742
9766
|
value: elem
|
|
7743
|
-
}, _errorFactory)) ||
|
|
9767
|
+
}, _errorFactory)) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7744
9768
|
method: "typia.createAssert",
|
|
7745
9769
|
path: _path + ".sharedPlatformPlacementTargets",
|
|
7746
9770
|
expected: "(ReadonlyArray<string> | undefined)",
|
|
7747
9771
|
value: input.sharedPlatformPlacementTargets
|
|
7748
9772
|
}, _errorFactory));
|
|
7749
|
-
const _ao1 = (input, _path, _exceptionable = true) => _ao2(input, _path, _exceptionable) && (("rewarded" === input.type ||
|
|
9773
|
+
const _ao1 = (input, _path, _exceptionable = true) => _ao2(input, _path, _exceptionable) && (("rewarded" === input.type || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7750
9774
|
method: "typia.createAssert",
|
|
7751
9775
|
path: _path + ".type",
|
|
7752
9776
|
expected: '"rewarded"',
|
|
7753
9777
|
value: input.type
|
|
7754
|
-
}, _errorFactory)) && (void 0 === input.reward || ("object" === typeof input.reward && null !== input.reward ||
|
|
9778
|
+
}, _errorFactory)) && (void 0 === input.reward || ("object" === typeof input.reward && null !== input.reward || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7755
9779
|
method: "typia.createAssert",
|
|
7756
9780
|
path: _path + ".reward",
|
|
7757
9781
|
expected: _ae1,
|
|
7758
9782
|
value: input.reward
|
|
7759
|
-
}, _errorFactory)) && _au1(input.reward, _path + ".reward", _exceptionable) ||
|
|
9783
|
+
}, _errorFactory)) && _au1(input.reward, _path + ".reward", _exceptionable) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7760
9784
|
method: "typia.createAssert",
|
|
7761
9785
|
path: _path + ".reward",
|
|
7762
9786
|
expected: _ae1,
|
|
7763
9787
|
value: input.reward
|
|
7764
9788
|
}, _errorFactory)));
|
|
7765
|
-
const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.id ||
|
|
9789
|
+
const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7766
9790
|
method: "typia.createAssert",
|
|
7767
9791
|
path: _path + ".id",
|
|
7768
9792
|
expected: "string",
|
|
7769
9793
|
value: input.id
|
|
7770
|
-
}, _errorFactory)) && (("object" === typeof input.frequencyCap && null !== input.frequencyCap ||
|
|
9794
|
+
}, _errorFactory)) && (("object" === typeof input.frequencyCap && null !== input.frequencyCap || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7771
9795
|
method: "typia.createAssert",
|
|
7772
9796
|
path: _path + ".frequencyCap",
|
|
7773
9797
|
expected: "FrequencyCap",
|
|
7774
9798
|
value: input.frequencyCap
|
|
7775
|
-
}, _errorFactory)) && _ao3(input.frequencyCap, _path + ".frequencyCap", _exceptionable) ||
|
|
9799
|
+
}, _errorFactory)) && _ao3(input.frequencyCap, _path + ".frequencyCap", _exceptionable) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7776
9800
|
method: "typia.createAssert",
|
|
7777
9801
|
path: _path + ".frequencyCap",
|
|
7778
9802
|
expected: "FrequencyCap",
|
|
7779
9803
|
value: input.frequencyCap
|
|
7780
|
-
}, _errorFactory)) && (("object" === typeof input.platformPlacementIds && null !== input.platformPlacementIds && false === Array.isArray(input.platformPlacementIds) ||
|
|
9804
|
+
}, _errorFactory)) && (("object" === typeof input.platformPlacementIds && null !== input.platformPlacementIds && false === Array.isArray(input.platformPlacementIds) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7781
9805
|
method: "typia.createAssert",
|
|
7782
9806
|
path: _path + ".platformPlacementIds",
|
|
7783
9807
|
expected: "Partial<Record<string, string>>",
|
|
7784
9808
|
value: input.platformPlacementIds
|
|
7785
|
-
}, _errorFactory)) && _ao4(input.platformPlacementIds, _path + ".platformPlacementIds", _exceptionable) ||
|
|
9809
|
+
}, _errorFactory)) && _ao4(input.platformPlacementIds, _path + ".platformPlacementIds", _exceptionable) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7786
9810
|
method: "typia.createAssert",
|
|
7787
9811
|
path: _path + ".platformPlacementIds",
|
|
7788
9812
|
expected: "Partial<Record<string, string>>",
|
|
7789
9813
|
value: input.platformPlacementIds
|
|
7790
9814
|
}, _errorFactory));
|
|
7791
|
-
const _ao3 = (input, _path, _exceptionable = true) => ("number" === typeof input.cooldownSeconds ||
|
|
9815
|
+
const _ao3 = (input, _path, _exceptionable = true) => ("number" === typeof input.cooldownSeconds || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7792
9816
|
method: "typia.createAssert",
|
|
7793
9817
|
path: _path + ".cooldownSeconds",
|
|
7794
9818
|
expected: "number",
|
|
7795
9819
|
value: input.cooldownSeconds
|
|
7796
|
-
}, _errorFactory)) && (void 0 === input.maxPerSession || "number" === typeof input.maxPerSession ||
|
|
9820
|
+
}, _errorFactory)) && (void 0 === input.maxPerSession || "number" === typeof input.maxPerSession || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7797
9821
|
method: "typia.createAssert",
|
|
7798
9822
|
path: _path + ".maxPerSession",
|
|
7799
9823
|
expected: "(number | undefined)",
|
|
7800
9824
|
value: input.maxPerSession
|
|
7801
|
-
}, _errorFactory)) && (void 0 === input.minStageInterval || "number" === typeof input.minStageInterval ||
|
|
9825
|
+
}, _errorFactory)) && (void 0 === input.minStageInterval || "number" === typeof input.minStageInterval || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7802
9826
|
method: "typia.createAssert",
|
|
7803
9827
|
path: _path + ".minStageInterval",
|
|
7804
9828
|
expected: "(number | undefined)",
|
|
@@ -7808,46 +9832,46 @@ var assertAdPlacements = /* @__PURE__ */ (() => {
|
|
|
7808
9832
|
const value = input[key];
|
|
7809
9833
|
if (void 0 === value)
|
|
7810
9834
|
return true;
|
|
7811
|
-
return void 0 === value || "string" === typeof value ||
|
|
9835
|
+
return void 0 === value || "string" === typeof value || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7812
9836
|
method: "typia.createAssert",
|
|
7813
|
-
path: _path +
|
|
9837
|
+
path: _path + __typia_transform__accessExpressionAsString6(key),
|
|
7814
9838
|
expected: "(string | undefined)",
|
|
7815
9839
|
value
|
|
7816
9840
|
}, _errorFactory);
|
|
7817
9841
|
});
|
|
7818
|
-
const _ao5 = (input, _path, _exceptionable = true) => ("continue" === input.type ||
|
|
9842
|
+
const _ao5 = (input, _path, _exceptionable = true) => ("continue" === input.type || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7819
9843
|
method: "typia.createAssert",
|
|
7820
9844
|
path: _path + ".type",
|
|
7821
9845
|
expected: '"continue"',
|
|
7822
9846
|
value: input.type
|
|
7823
9847
|
}, _errorFactory)) && _ap0(input, _path, _exceptionable);
|
|
7824
|
-
const _ao6 = (input, _path, _exceptionable = true) => ("currency" === input.type ||
|
|
9848
|
+
const _ao6 = (input, _path, _exceptionable = true) => ("currency" === input.type || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7825
9849
|
method: "typia.createAssert",
|
|
7826
9850
|
path: _path + ".type",
|
|
7827
9851
|
expected: '"currency"',
|
|
7828
9852
|
value: input.type
|
|
7829
|
-
}, _errorFactory)) && _ap0(input, _path, _exceptionable) && ("string" === typeof input.currency && (1 <= input.currency.length ||
|
|
9853
|
+
}, _errorFactory)) && _ap0(input, _path, _exceptionable) && ("string" === typeof input.currency && (1 <= input.currency.length || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7830
9854
|
method: "typia.createAssert",
|
|
7831
9855
|
path: _path + ".currency",
|
|
7832
9856
|
expected: "string & MinLength<1>",
|
|
7833
9857
|
value: input.currency
|
|
7834
|
-
}, _errorFactory)) ||
|
|
9858
|
+
}, _errorFactory)) || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7835
9859
|
method: "typia.createAssert",
|
|
7836
9860
|
path: _path + ".currency",
|
|
7837
9861
|
expected: "(string & MinLength<1>)",
|
|
7838
9862
|
value: input.currency
|
|
7839
9863
|
}, _errorFactory));
|
|
7840
|
-
const _ao7 = (input, _path, _exceptionable = true) => _ao2(input, _path, _exceptionable) && (("banner" === input.type || "interstitial" === input.type ||
|
|
9864
|
+
const _ao7 = (input, _path, _exceptionable = true) => _ao2(input, _path, _exceptionable) && (("banner" === input.type || "interstitial" === input.type || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7841
9865
|
method: "typia.createAssert",
|
|
7842
9866
|
path: _path + ".type",
|
|
7843
9867
|
expected: '("banner" | "interstitial")',
|
|
7844
9868
|
value: input.type
|
|
7845
|
-
}, _errorFactory)) && ((null !== input.reward ||
|
|
9869
|
+
}, _errorFactory)) && ((null !== input.reward || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7846
9870
|
method: "typia.createAssert",
|
|
7847
9871
|
path: _path + ".reward",
|
|
7848
9872
|
expected: "undefined",
|
|
7849
9873
|
value: input.reward
|
|
7850
|
-
}, _errorFactory)) && (void 0 === input.reward ||
|
|
9874
|
+
}, _errorFactory)) && (void 0 === input.reward || _assertGuard_19._assertGuard(_exceptionable, {
|
|
7851
9875
|
method: "typia.createAssert",
|
|
7852
9876
|
path: _path + ".reward",
|
|
7853
9877
|
expected: "undefined",
|
|
@@ -7859,7 +9883,7 @@ var assertAdPlacements = /* @__PURE__ */ (() => {
|
|
|
7859
9883
|
else if ("rewarded" === input.type)
|
|
7860
9884
|
return _ao1(input, _path, _exceptionable);
|
|
7861
9885
|
else
|
|
7862
|
-
return
|
|
9886
|
+
return _assertGuard_19._assertGuard(_exceptionable, {
|
|
7863
9887
|
method: "typia.createAssert",
|
|
7864
9888
|
path: _path,
|
|
7865
9889
|
expected: _ae0,
|
|
@@ -7872,7 +9896,7 @@ var assertAdPlacements = /* @__PURE__ */ (() => {
|
|
|
7872
9896
|
else if ("currency" === input.type)
|
|
7873
9897
|
return _ao6(input, _path, _exceptionable);
|
|
7874
9898
|
else
|
|
7875
|
-
return
|
|
9899
|
+
return _assertGuard_19._assertGuard(_exceptionable, {
|
|
7876
9900
|
method: "typia.createAssert",
|
|
7877
9901
|
path: _path,
|
|
7878
9902
|
expected: _ae2,
|
|
@@ -7913,12 +9937,12 @@ var assertAdPlacements = /* @__PURE__ */ (() => {
|
|
|
7913
9937
|
return (input, errorFactory) => {
|
|
7914
9938
|
if (false === __is(input)) {
|
|
7915
9939
|
_errorFactory = errorFactory;
|
|
7916
|
-
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 ||
|
|
9940
|
+
((input2, _path, _exceptionable = true) => ("object" === typeof input2 && null !== input2 || _assertGuard_19._assertGuard(true, {
|
|
7917
9941
|
method: "typia.createAssert",
|
|
7918
9942
|
path: _path + "",
|
|
7919
9943
|
expected: "AdPlacements",
|
|
7920
9944
|
value: input2
|
|
7921
|
-
}, _errorFactory)) && _ao0(input2, _path + "", true) ||
|
|
9945
|
+
}, _errorFactory)) && _ao0(input2, _path + "", true) || _assertGuard_19._assertGuard(true, {
|
|
7922
9946
|
method: "typia.createAssert",
|
|
7923
9947
|
path: _path + "",
|
|
7924
9948
|
expected: "AdPlacements",
|
|
@@ -11601,7 +13625,7 @@ import { createHash as createHash11 } from "node:crypto";
|
|
|
11601
13625
|
var profileUuidPattern = /^[0-9A-F]{8}-(?:[0-9A-F]{4}-){3}[0-9A-F]{12}$/iu;
|
|
11602
13626
|
var certFingerprintPattern = /^[0-9A-F]{64}$/u;
|
|
11603
13627
|
function inspectIosDistributionProfile(value, input) {
|
|
11604
|
-
if (!
|
|
13628
|
+
if (!isRecord4(value)) {
|
|
11605
13629
|
throw new Error("iOS provisioning profile is malformed.");
|
|
11606
13630
|
}
|
|
11607
13631
|
const uuid = value.UUID;
|
|
@@ -11618,7 +13642,7 @@ function inspectIosDistributionProfile(value, input) {
|
|
|
11618
13642
|
if (!Array.isArray(appIdPrefixes) || appIdPrefixes.length !== 1 || typeof appIdPrefixes[0] !== "string" || !/^[A-Z0-9]{10}$/u.test(appIdPrefixes[0])) {
|
|
11619
13643
|
throw new Error("iOS provisioning profile has an invalid App ID prefix.");
|
|
11620
13644
|
}
|
|
11621
|
-
if (!
|
|
13645
|
+
if (!isRecord4(value.Entitlements) || value.Entitlements["application-identifier"] !== `${appIdPrefixes[0]}.${input.bundleId}` || value.Entitlements["get-task-allow"] === true || value.Entitlements["com.apple.developer.team-identifier"] !== void 0 && value.Entitlements["com.apple.developer.team-identifier"] !== input.teamId) {
|
|
11622
13646
|
throw new Error("iOS provisioning profile does not match the app ID or distribution rights.");
|
|
11623
13647
|
}
|
|
11624
13648
|
if (!Array.isArray(value.DeveloperCertificates) || !value.DeveloperCertificates.some((certificate) => {
|
|
@@ -11635,7 +13659,7 @@ function inspectIosDistributionProfile(value, input) {
|
|
|
11635
13659
|
}
|
|
11636
13660
|
return { uuid, name, expiresAt };
|
|
11637
13661
|
}
|
|
11638
|
-
function
|
|
13662
|
+
function isRecord4(value) {
|
|
11639
13663
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11640
13664
|
}
|
|
11641
13665
|
|
|
@@ -12296,6 +14320,7 @@ import { dirname as dirname9, isAbsolute as isAbsolute11, join as join13, relati
|
|
|
12296
14320
|
import { chmodSync as chmodSync2, existsSync as existsSync21, lstatSync as lstatSync12, mkdirSync as mkdirSync11, readdirSync as readdirSync6, readFileSync as readFileSync21, realpathSync as realpathSync9, renameSync as renameSync5, unlinkSync as unlinkSync2, writeFileSync as writeFileSync15 } from "node:fs";
|
|
12297
14321
|
import path9 from "node:path";
|
|
12298
14322
|
import { DOMParser as DOMParser2 } from "@xmldom/xmldom";
|
|
14323
|
+
import { satisfies, valid } from "semver";
|
|
12299
14324
|
|
|
12300
14325
|
// node_modules/.cache/mpgd-native-build/packages/cli/src/native-shell-identity.js
|
|
12301
14326
|
function assertAndroidSettingsAppProject(source) {
|
|
@@ -12676,6 +14701,45 @@ var javaKeywords = new Set(`
|
|
|
12676
14701
|
synchronized this throw throws transient try void volatile while true false null record sealed
|
|
12677
14702
|
permits var yield
|
|
12678
14703
|
`.trim().split(/\s+/u));
|
|
14704
|
+
var unwiredCapacitorGateway = (target2) => [
|
|
14705
|
+
"import { createCapacitorPlatformGateway } from '@mpgd/adapter-capacitor';",
|
|
14706
|
+
"import type { PlatformGateway } from '@mpgd/platform';",
|
|
14707
|
+
"",
|
|
14708
|
+
"import type { RuntimeConfig } from '../runtimeDetector';",
|
|
14709
|
+
"",
|
|
14710
|
+
"export async function createBuildGateway(runtime: RuntimeConfig): Promise<PlatformGateway> {",
|
|
14711
|
+
" return createCapacitorPlatformGateway({",
|
|
14712
|
+
` target: '${target2}',`,
|
|
14713
|
+
" appVersion: runtime.appVersion,",
|
|
14714
|
+
" buildId: runtime.buildId,",
|
|
14715
|
+
" });",
|
|
14716
|
+
"}",
|
|
14717
|
+
""
|
|
14718
|
+
].join("\n");
|
|
14719
|
+
var capacitorShellProviderPlugins = Object.freeze([
|
|
14720
|
+
{
|
|
14721
|
+
id: "play-billing",
|
|
14722
|
+
packageName: "@mpgd/capacitor-play-billing",
|
|
14723
|
+
packageDir: "native-plugins/capacitor-play-billing",
|
|
14724
|
+
platform: "android",
|
|
14725
|
+
gatewayFile: "src/platform/buildGateways/capacitorAndroid.ts",
|
|
14726
|
+
gatewayFactory: "createCapacitorPlayBillingServiceProvider",
|
|
14727
|
+
legacyGatewaySources: [unwiredCapacitorGateway("android")]
|
|
14728
|
+
},
|
|
14729
|
+
{
|
|
14730
|
+
id: "storekit",
|
|
14731
|
+
packageName: "@mpgd/capacitor-storekit",
|
|
14732
|
+
packageDir: "native-plugins/capacitor-storekit",
|
|
14733
|
+
platform: "ios",
|
|
14734
|
+
gatewayFile: "src/platform/buildGateways/capacitorIos.ts",
|
|
14735
|
+
gatewayFactory: "createCapacitorStoreKitServiceProvider",
|
|
14736
|
+
legacyGatewaySources: [unwiredCapacitorGateway("ios")]
|
|
14737
|
+
}
|
|
14738
|
+
]);
|
|
14739
|
+
var capacitorShellProviderSupportFiles = Object.freeze([
|
|
14740
|
+
"src/platform/commerceProducts.ts",
|
|
14741
|
+
"src/platform/commerceAccountBinding.ts"
|
|
14742
|
+
]);
|
|
12679
14743
|
var androidBackupDomains = ["root", "file", "database", "sharedpref", "external"];
|
|
12680
14744
|
var androidBackupExcludes = androidBackupDomains.map((domain) => `<exclude domain="${domain}" path="." />`);
|
|
12681
14745
|
var androidBackupRulesXml = [
|
|
@@ -14367,7 +16431,7 @@ function requireString(value, label) {
|
|
|
14367
16431
|
return value;
|
|
14368
16432
|
}
|
|
14369
16433
|
|
|
14370
|
-
// node_modules/.cache/mpgd-native-build/
|
|
16434
|
+
// node_modules/.cache/mpgd-native-build/packages/cli/src/command-launcher.js
|
|
14371
16435
|
function resolveNativeCommandLaunch(input) {
|
|
14372
16436
|
if ((input.platform ?? process.platform) !== "win32") {
|
|
14373
16437
|
return { command: input.command, args: input.args };
|
|
@@ -14378,13 +16442,17 @@ function resolveNativeCommandLaunch(input) {
|
|
|
14378
16442
|
if (input.command !== "pnpm") {
|
|
14379
16443
|
return { command: input.command, args: input.args };
|
|
14380
16444
|
}
|
|
14381
|
-
const
|
|
14382
|
-
|
|
14383
|
-
|
|
16445
|
+
const pnpmEntry = input.environment.npm_execpath;
|
|
16446
|
+
const pnpmBase = pnpmEntry?.split(/[\\/]/u).at(-1) ?? "";
|
|
16447
|
+
if (pnpmEntry === void 0 || !/^pnpm(?:\.exe|\.[cm]?js)$/iu.test(pnpmBase)) {
|
|
16448
|
+
throw new Error("Windows builds require pnpm exec mpgd so npm_execpath resolves the pnpm executable or JavaScript entrypoint.");
|
|
16449
|
+
}
|
|
16450
|
+
if (/\.exe$/iu.test(pnpmEntry)) {
|
|
16451
|
+
return { command: pnpmEntry, args: input.args };
|
|
14384
16452
|
}
|
|
14385
16453
|
return {
|
|
14386
16454
|
command: input.nodeExecutable ?? process.execPath,
|
|
14387
|
-
args: [
|
|
16455
|
+
args: [pnpmEntry, ...input.args]
|
|
14388
16456
|
};
|
|
14389
16457
|
}
|
|
14390
16458
|
|